@fox-js/foxui 4.0.1-66 → 4.0.1-68
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 +7048 -6790
- package/dist/index.umd.js +5 -5
- package/dist/locale/index.esm.js +7 -4
- package/dist/locale/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +186 -182
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(B,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("@fox-js/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","@fox-js/icons-vue","@fox-js/i18n"],t):(B=typeof globalThis<"u"?globalThis:B||self,t(B.FoxUI={},B.Vue,B.FoxValidator,B.FoxIconsVue,B.FoxI18n))})(this,function(B,t,
|
|
2
|
-
* @fox-js/foxui-base v4.0.0
|
|
3
|
-
*/const
|
|
1
|
+
(function(B,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("@fox-js/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","@fox-js/icons-vue","@fox-js/i18n"],t):(B=typeof globalThis<"u"?globalThis:B||self,t(B.FoxUI={},B.Vue,B.FoxValidator,B.FoxIconsVue,B.FoxI18n))})(this,function(B,t,ot,le,ie){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-base v4.0.0 Wed Nov 13 2024 21:53:03 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const tn=window,js=typeof window<"u";function Ws(){return typeof tn<"u"?tn.requestAnimationFrame||tn.webkitRequestAnimationFrame||function(e){tn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ka(e){js?cancelAnimationFrame(e):clearTimeout(e)}const Qe=Ws();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function tn(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=Ae(e),n=Ae(n),[e,n]=ro(Ae(e),Ae(n)),a==1&&(o==1?e=ao(e):n=ao(n));let l=Ra(e,n);return a?a==2?"-"+Ae(l):e.length<l.length?Ae(l.substring(1)):"-"+Ae(ao(l)):Ae(l)}function ao(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 Ra(n,r)}function Ae(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 ro(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 Ra(e,n){[e,n]=ro(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 Ce=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(Ce||{});function xt(e,n=0,a=Ce.HALF_EVEN){if(a===Ce.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let 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=xt(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,Oa(l[1],r,o,a)?(o?"-":"")+so(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&&Oa(i,s,o,a)&&(s=so(s),s.length>n)?(o?"-":"")+so(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function Oa(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===Ce.DOWN||!a&&o===Ce.FLOOR||a&&o===Ce.CEILING)return!1;if(o===Ce.UP||a&&o===Ce.FLOOR||!a&&o===Ce.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 Ce.HALF_DOWN:return!1;case Ce.HALF_UP:return!0;case Ce.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function so(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 io(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=[],u=s-1,m="";for(let d=0;d<s;d++)c[d]=e.length-1;for(let d=0;d<2*e.length;d++){let g=0;for(let S=n.length-1;S>=u&&S>=0;S--)c[S]>-1&&c[S]<e.length&&(g+=parseInt(e[c[S]--])*parseInt(n[S]));g+=i,i=Math.floor(g/10),m=g%10+m,u--}return m=vt(Ws(m,r)),a==1&&(m="-"+m),m}function Ws(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 co(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=Ae(n.replace(".","")),l>=0){let u=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(u==-1)e=Ae(e+new Array(l+1).join("0"));else if(l>u)e=e.replace(".",""),e=Ae(e+new Array(l-u+1).join("0"));else if(l<u){e=e.replace(".","");let m=e.length-u+l;e=Ae(e.substring(0,m)+"."+e.substring(m))}else l==u&&(e=Ae(e.replace(".","")))}let r=0,s=n.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let u=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(u+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=u,i="0."+new Array(u).join("0")}for(a=a+2;r<=a;){let u=0;for(;parseInt(c)>=parseInt(n);)c=tn(c,"-"+n),u++;i+=u,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(o==1?"-":"")+Ae(xt(i,a-2))}function uo(e,n){return e=e.toString(),n=n.toString(),n=fo(n),tn(e,n)}function fo(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ka(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Ua(e),Ua(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=uo(e,io(n,xt(co(e,n),0,Ce.FLOOR)));return a+o}function Ua(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ha(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]=ro(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 ce{value;static RoundingModes=Ce;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,o]=n.split(/[eE]/);a=Ae(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+Ae(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=ce.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=ce.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 ce.getPrettyValue(this.value,n,a)}static round(n,a=0,o=Ce.HALF_EVEN){if(n=ce.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return xt(n,a,o)}round(n=0,a=Ce.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ce(xt(this.value,n,a))}static floor(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,Ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,Ce.FLOOR)}static ceil(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,Ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,Ce.CEILING)}static add(n,a){return n=ce.validate(n),a=ce.validate(a),tn(n,a)}add(n){return new ce(tn(this.value,n.getValue()))}static subtract(n,a){return n=ce.validate(n),a=ce.validate(a),uo(n,a)}subtract(n){return new ce(uo(this.value,n.getValue()))}static multiply(n,a){return n=ce.validate(n),a=ce.validate(a),io(n,a)}multiply(n){return new ce(io(this.value,n.getValue()))}static divide(n,a,o){return n=ce.validate(n),a=ce.validate(a),co(n,a,o)}divide(n,a){return new ce(co(this.value,n.getValue(),a))}static modulus(n,a){return n=ce.validate(n),a=ce.validate(a),Ka(n,a)}modulus(n){return new ce(Ka(this.value,n.getValue()))}static compareTo(n,a){return n=ce.validate(n),a=ce.validate(a),Ha(n,a)}compareTo(n){return Ha(this.value,n.getValue())}static negate(n){return n=ce.validate(n),fo(n)}negate(){return new ce(fo(this.value))}}function ja(e,n){return ce.multiply(`${e}`,`${n}`)}function mo(e,n,a=8){return ce.divide(`${e}`,`${n}`,a)}function po(e,n){return e=`${e}`,n=`${n}`,ce.compareTo(e,n)}function Wa(e){return ce.negate(e)}function nn(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="",u=r.indexOf(".");u!=-1&&(i=r.substring(0,u),c=r.substring(u+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let m;if(o>0){let d="",g=i.split("").reverse();for(let S=0;S<g.length;S++)d+=g[S]+((S+1)%o==0&&S+1!=g.length?l:"");c.length==0?m=`${s}${d.split("").reverse().join("")}`:m=`${s}${d.split("").reverse().join("")}.${c}`}else c.length==0?m=`${s}${i}`:m=`${s}${i}.${c}`;return m}function Ya(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const nt=typeof window<"u",Ue=Qe;function Xa(e){return e==null}const on=Array.isArray,Ys=e=>an(e)==="[object Map]",Xs=e=>an(e)==="[object Set]",He=e=>e instanceof Date,ln=e=>typeof e=="function",Qa=e=>typeof e=="string",Qs=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",ut=e=>Ie(e)&&ln(e.then)&&ln(e.catch),Ga=Object.prototype.toString,an=e=>Ga.call(e),ho=e=>an(e)==="[object Object]",Za=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Gs(e){return e.__esModule||Za&&e[Symbol.toStringTag]==="Module"}const Zs=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ot(...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 u;Array.isArray(c)?u=i&&Array.isArray(i)?i:[]:u=i&&typeof i=="object"?i:{},n[s]=ot(l,u,c)}else c!==void 0&&(n[s]=c)}}return n}function go(e,n,a=!1){if(!a)ot(!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)&&!ho(s))continue;r=go(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)&&!ho(s))continue;r=go(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const yo=Zs?Promise.resolve():null;function Js(e,...n){yo!==null?n&&n.length>0?yo.then(()=>{e(n)}):yo.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function be(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function pe(e){return typeof e=="number"?e:Number(e)}const _s={"[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 lt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):_s[a]||"object"}function rn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Ja(e){return e&&typeof e=="object"&&"setInterval"in e}function _a(e){let n=!!e&&"length"in e&&e.length,a=lt(e);return a==="function"||Ja(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function er(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 ei(e,n=[]){let a=n;return e!=null&&(_a(Object(e))?er(a,typeof e=="string"?[e]:e):a.push(e)),a}function Me(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=lt(e),o=lt(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],u=n[i];if(!Me(c,u))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],s=n[l];if(!Me(r,s))return!1}return!0}return!1}function tr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function nr(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 or(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function lr(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 ar(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 bo(e,n=!0,a=!0){n?e=ar(e,".",/\./g):e=e.replace(/\./g,""),a?e=ar(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function ti(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Me(e,a))return!0}):n.indexOf(e)}function ni(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Me(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function ke(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Se(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function ft(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 rr=(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 ko(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const at=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},je=(e,n,a)=>Math.min(Math.max(e,n),a),we=Symbol.for("BroadcastKey");class So{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="*"):tr(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 So(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function oi(e,n,a){const o=a;if(o[we])return o[we];const l=t.inject(we,null),r=new So(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[we]=r,t.provide(we,r),t.onUnmounted(()=>{r.destroy(),o[we]=void 0}),r}function qt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[we]??t.inject(we,null):t.inject(we,null)}const rt=e=>e.default??e;class li{error(n,a){const o=a,l=a||t.hasInjectionContext()?qt(a):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=n||t.hasInjectionContext()?qt(n):null;o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=n||t.hasInjectionContext()?qt(n):null;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=o||t.hasInjectionContext()?qt(o):null,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 Pt=new li;function ai(e){Pt=e}function ri(e){Pt?Object.assign(Pt,e):Pt=e}function si(e,n){rt(tt).setValidator(e,n)}function ii(e){rt(tt).deleteValidator(e)}let sr=["blur","clear"];function ci(e){sr=e}function ir(){return sr}let cr=["focus","change","setValue"];function di(e){cr=e}function dr(){return cr}function ui(e){rt(tt).messages(e)}function Mt(...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 cn(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 Le=Symbol("ValidateSchemaKey");class ur{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(!0),this.scope.run(()=>{t.watchEffect(()=>{const a=cn(Mt(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=cn(o);const l=Mt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=Pt;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?rt(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?rt(tt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return rt(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=Mt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=cn(n):this.rules=cn([n]);const o=Mt(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=Mt(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=rt(tt),c=new i(l),u=this.proxy??s;return c.validate(s,{context:u}).then(d=>{if(d.pass)this.success();else{let g="error";Array.isArray(d.errors)&&d.errors.length>0&&(g=d.errors[0].message??g,d.errors=[d.errors[0]],d.errors[0].ref=u),this.error(g)}return d}).catch(d=>{const g=d.message??`${d}`;return this.error(g),d})}}return Promise.resolve({pass:!0})}}function dn(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 ur(n,a,e)}const un=Symbol.for("EventEmitterKey");class fr{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 mt(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function fn(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function fi(e,n){const a=mt((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function mi(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function Co(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 xe=Symbol("DomainKey"),pt=Symbol("DataItemsKey");class mn{_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 pi=new mn;function ht(){return pi}function We(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[xe]??t.inject(xe,null):t.inject(xe,null)}const wo=Symbol("OriginalDateKey");function No(e,n,a=[],o){const l=t.getCurrentInstance();let r=l?.proxy,s=t.inject(xe,null);s===null&&(s=ht());const i=e||n.prop||n.name;let c=new mn(i);c.parent=s;const u=y=>{r[wo]||g(y),c?.set("modelValue",y)},m=()=>c?.getForSelf("modelValue")??null,d=()=>r[wo]??null,g=y=>{const k={};ot(!0,k,t.toRaw(y)),r[wo]=k};t.isReactive(n)||typeof n=="function"?t.watch(n,y=>{c?.merge(y,a)},{immediate:!0}):c.merge(n,a),n.modelValue&&g(n.modelValue);const S=(y,k)=>{c?.set(y,k)},b=y=>c?.getForSelf(y)??null;if(r[xe]=c,t.provide(xe,c),l!==null){const y=t.inject(we,null),k=sn(r,y,i,o);c.broadcast=k,r[we]=k,t.provide(we,k),r.broadcast=(h,C,...A)=>Reflect.apply(k.emit,k,[h,C,...A]);const f=t.inject(Le,null),p=dn(r,f,{componentName:""});c.validateSchema=p,r[Le]=p,t.provide(Le,p),r[pt]=new Map,r.validate=(h=!0)=>{const C=[];let A=null;const w={deep:!1};if(h===!0)A={name:"*"};else if(Array.isArray(h)&&h.length>0){const N=h;A={name:T=>T?N.indexOf(T)!==-1:!1}}else if(h!=null&&typeof h=="object"){const N=h;if(Object.assign(w,N),Array.isArray(N.include)&&N.include.length>0){const T=N.include;A={name:V=>V?T.indexOf(V)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const T=N.exclude;A={name:V=>V?T.indexOf(V)===-1:!1}}else A={name:"*"}}if(A){const N=k?.emitToChildren(A,"validate",w);N&&Reflect.apply([].push,C,N)}return C.length==1?C[0]:C.length>1?Promise.all(C).then(N=>{let T=[];return N.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(T=[...T,...V.errors])}),T.length>0?{pass:!1,errors:T}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(h,C=!0,A=!1)=>{if(A===!0){Reflect.ownKeys(h).forEach(N=>{let T=String(N);const V={componentName:"",fieldName:T,pureDataValidate:!0};if(c){const E=hr(c,T,V,k,p);r[pt].set(T,E);const D=h[T];D&&E.validateSchema.setRule(D)}});return}if(C){const w=Reflect.ownKeys(h),N={name:T=>w.includes(T)};k?.emitToChildren(N,"setNameValidateRules",h,!1)}},r.clearValidate=(h=!0)=>{let C=null;if(h===!0)C={name:"*"};else if(Array.isArray(h)&&h.length>0){const A=h;C={name:w=>w?A.indexOf(w)!==-1:!1}}else if(h!=null&&typeof h=="object"){const A=h;if(Array.isArray(A.include)&&A.include.length>0){const w=A.include;C={name:N=>N?w.indexOf(N)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const w=A.exclude;C={name:N=>N?w.indexOf(N)===-1:!1}}else C={name:"*"}}C&&k?.emitToChildren(C,"clearValidate",!1)},r.resetFields=h=>{const C=m();if(!C)return;const A={};if(ot(!0,A,d()??{}),Array.isArray(h))h.forEach(w=>{C[w]=A[w]});else if(h&&Array.isArray(h.include))(h.include??[]).forEach(N=>{C[N]=A[N]});else if(h&&Array.isArray(h.exclude)){let w=h.exclude??[];Reflect.ownKeys(A).forEach(N=>{w.includes(N)||(C[N]=A[N])})}else Object.assign(C,A);r.clearValidate(h)},r.setModelValue=(h,C)=>{!C||C===i?u(h):k?.emitToChildren({name:C},"setModelValue",h)},r.getModelValue=()=>m(),r.setDomainProperty=(h,C)=>{S(h,C)},r.getDomainProperty=h=>b(h)}return t.onUnmounted(function(){c?.validateSchema&&(c.validateSchema.destroy(),r[Le]=void 0,t.provide(Le,null)),c?.broadcast&&(c?.broadcast?.destroy(),r[we]=void 0,t.provide(we,null)),c?.destroy(),r[xe]=void 0,t.provide(xe,null),r[pt]&&(r[pt].clear(),r[pt]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,c=null,r=null}),c}function mr(e,n,a=[]){let l=t.getCurrentInstance()?.proxy,r=t.inject(xe,null);r===null&&(r=ht());const s=e||n.prop||n.name;let i=new mn(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[xe]=i,t.provide(xe,i),t.onUnmounted(()=>{i?.destroy(),l[xe]=void 0,t.provide(xe,null),i=null,l=null}),i}function pr(e,n,a){const l=We(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Te(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(we,null);let i=sn(l,s,r,a);l[we]=i,t.provide(we,i),l.broadcast=(b,y,...k)=>i?Reflect.apply(i.emit,i,[b,y,...k]):null;const c=t.inject(Le,null);e.fieldName=e.fieldName??r;let u=dn(l,c,e);l[Le]=u,t.provide(Le,u),pr(l,u,r),l.validate=(b=null)=>{if(!u)return Promise.resolve({pass:!0});const y=[];let k=!1,f=!1;if(Array.isArray(b)&&b.indexOf(r)!==-1)f=!0,k=!0;else if(b&&typeof b=="object"){const p=b,h=p.ignoreDisabled??!0,C=p.ignoreReadonly??!0,A=p.ignoreHidden??!0;h===!0&&e.disabled===!0||C===!0&&e.readonly===!0||A===!0&&rn(l.$el)?f=!1:(Array.isArray(p.include)&&p.include.indexOf(r)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(r),f=!0),k=p.deep??!1}else typeof b=="boolean"&&(k=b),f=!0;if(f){const p=u?.validate();y.push(p)}if(k){let p=null;const h={deep:!1};if(b===!0)p={name:"*"};else if(Array.isArray(b)&&b.length>0){const C=b;p={name:A=>A?C.indexOf(A)!==-1:!1}}else if(b!=null&&typeof b=="object"){const C=b;if(Object.assign(h,C),Array.isArray(C.include)&&C.include.length>0){const A=C.include;p={name:w=>w?A.indexOf(w)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const A=C.exclude;p={name:w=>w?A.indexOf(w)===-1:!1}}else p={name:"*"}}if(p&&i){const C=i.emitToChildren(p,"validate",h);Reflect.apply([].push,y,C)}}return y.length==1?y[0]:y.length>1?Promise.all(y).then(p=>{let h=[];return p.forEach(C=>{C.pass===!1&&Array.isArray(C.errors)&&(h=[...h,...C.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=b=>u?.setRule(b),l.setNameValidateRules=(b,y=!1)=>{const k=b[r];if(k&&u?.setRule(k),y&&i){const f={name:p=>Reflect.ownKeys(b).includes(p)};i.emitToChildren(f,"setNameValidateRules",b,!1)}},l.clearValidate=(b=null)=>{(!Array.isArray(b)||b.indexOf(n??"")!==-1)&&u?.clear();let y=null;if(b===!0)y={name:"*"};else if(Array.isArray(b)&&b.length>0){const k=b;y={name:f=>f?k.indexOf(f)!==-1:!1}}else if(b!=null&&typeof b=="object"){const k=b;if(Array.isArray(k.include)&&k.include.length>0){const f=k.include;y={name:p=>p?f.indexOf(p)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;y={name:p=>p?f.indexOf(p)===-1:!1}}else y={name:"*"}}y&&i&&i.emitToChildren(y,"clearValidate",!1)};let m=new fr(l);l[un]=m;const d=mt((b="validate")=>{u&&(b==="reset"?u.clear():u.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ir()).forEach(b=>{m&&m.on(b,y=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:dr()).forEach(b=>{m&&m.on(b,y=>{d("reset")})}),t.onUnmounted(()=>{i?.destroy(),l[we]=void 0,t.provide(we,null),i=null,u?.destroy(),l[Le]=void 0,t.provide(Le,null),u=null,m?.destroy(),l[un]=void 0,m=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:i,validateSchema:u,emitEvent:(b,...y)=>{m&&Reflect.apply(m.emit,m,[b,...y])},onEvent:(b,y)=>{m&&Reflect.apply(m.on,m,[y])},offEvent:(b,y)=>{m&&Reflect.apply(m.off,m,[y])}}}function hr(e,n,a,o,l){const r={},s=n??"",i={getValue(){const m=e.getForSelf("modelValue");return m?m[s]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,s):!1}};a.fieldName=s,a.validateHandler={getValue(m){return i.getValue()}};let c=dn({},l,a);r.validate=(m=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];let g=!1,S=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)S=!0,g=!0;else if(m&&typeof m=="object"){const b=m;Array.isArray(b.include)&&b.include.indexOf(s)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(s),S=!0,g=b.deep??!1}else typeof m=="boolean"&&(g=m),S=!0;if(S&&c){const b=c.validate();d.push(b)}if(g){let b=null;const y={deep:!1};if(m===!0)b={name:"*"};else if(Array.isArray(m)&&m.length>0){const k=m;b={name:f=>f?k.indexOf(f)!==-1:!1}}else if(m!=null&&typeof m=="object"){const k=m;if(Object.assign(y,k),Array.isArray(k.include)&&k.include.length>0){const f=k.include;b={name:p=>p?f.indexOf(p)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;b={name:p=>p?f.indexOf(p)===-1:!1}}else b={name:"*"}}if(b&&u){const k=u.emitToChildren(b,"validate",y);Reflect.apply([].push,d,k)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(b=>{let y=[];return b.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(y=[...y,...k.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>c?.setRule(m),r.setNameValidateRules=m=>{const d=m[s];d&&c?.setRule(d)};let u=sn(null,o,s,r);return t.onUnmounted(()=>{c=null,u=null}),{broadcast:u,validateSchema:c}}function gt(){let n=t.getCurrentInstance()?.proxy,a=new fr(n);return n[un]=a,t.onUnmounted(()=>{a?.destroy(),n[un]=void 0,a=null,n=null}),{emitEvent:(o,...l)=>{a&&Reflect.apply(a.emit,a,[o,...l])},onEvent:(o,l)=>{a&&Reflect.apply(a.on,a,[l])},offEvent:(o,l)=>{a&&Reflect.apply(a.off,a,[l])}}}const ge=e=>e?`${fe(e)}px`:"";function fe(e,n=-1){if(e==null)return 0;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(nt){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 Ge="PageStateKey";function Fe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=fe(e.top)),e.left!==null&&e.left!==void 0&&(n.left=fe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=fe(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=fe(e.right))),n}function Bo(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=fe(a.headerHeight??n.headerHeight??-1),e.headerPadding=Fe(a.headerPadding??n.headerPadding),e.footerHeight=fe(a.footerHeight??n.footerHeight??-1),e.footerPadding=Fe(a.footerPadding??n.footerPadding),e.contentPadding=Fe(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=fe(c,r):e.height=fe(r)-fe(s,r)-fe(i,r),e.width=fe(a.width??n.width??0,l)}}function gr(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=fe(l.top),o.safeAreaBottom=fe(l.bottom),o.safeAreaLeft=fe(l.left),o.safeAreaRight=fe(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,u=e.get("footerBarHeight")??0;Bo(o,r,n,!0,s,i,c,u);const m=t.reactive(o),d=e.getForParent(Ge);d&&(o.height=yn(e,d),o.width=bn(e,d),t.watch([()=>yn(e,d),()=>bn(e,d)],([S,b])=>{m.height=S,m.width=b}));const g=!d;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([S,b,y=-1,k=-1,f=0,p=0])=>{Bo(m,b,n,g,y,k,f,p)}),e.set(Ge,m),m}function pn(e){return e.get(Ge)}function hn(e,n){if(n=n??e.get(Ge),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function gn(e,n){if(n=n??e.get(Ge),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function yn(e,n){if(n=n??e.get(Ge),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=hn(e,n),o=gn(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function bn(e,n){return n=n??e.get(Ge),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function hi(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function gi(e){return!!e.getForParent(Ge)}var kn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(kn||{});function Sn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function $e(e,n,a=1,o){const l=We();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(Sn(c,o))return c}const s=e.value;return Sn(s,o)?s:null}):t.computed(()=>{const r=e.value;if(Sn(r,o))return r;const s=l.getAll(n);for(let i=0;i<s.length;i++){const c=s[i];if(Sn(c,o))return c}return null})}function Ee(e){return $e(e,"readonly",1)}function De(e){return $e(e,"disabled",1)}function Pe(e,n="modelValue",a=null,o){const l=t.toRef(e,n);let r=l.value;typeof a=="function"&&(r=a(l.value));const s=t.ref(r);return t.watch(l,i=>{if(typeof a=="function"){const c=a(i);c!==s.value&&(s.value=c,o&&o("setValue",c))}else i!==s.value&&(s.value=i,o&&o("setValue",i))}),s}const yr=new Map,Cn=new Map;let Ao=null;function yi(e){Ao=e}function br(e,n,a){if(a){let o=Cn.get(a);o||(o=new Map,Cn.set(a,o)),o.set(e,n)}else yr.set(e,n)}function Ze(e,n,a){!a&&Ao&&(a=Ao(e)??void 0);let o=null;if(a){let l=Cn.get(a);l&&(o=l.get(n))}return o||(o=yr.get(n)),o}function bi(e,n){for(let a in e){const o=e[a];br(a,o,n)}}function ki(e){Cn.delete(e)}function Si(){return{top:0,left:0,bottom:0,right:0}}function Ci(){if(nt){const e=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:n,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{headerHeight:-1,footerHeight:-1}}}function wi(e,n){if(n.componentPrefix){const a=e.indexOf("-");return`${n.componentPrefix}${e.slice(a)}`}return e}class Ni{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=>{if(r.install)n.use(r);else if(r.name){const s=wi(r.name,a);n.component(s,r)}});const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=ht();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=fn(()=>{const i={...a},c=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=u,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=ot({},Si(),n.safeAreaInset),s=Ci(),i=ot({},s.pageLayout,n.pageLayout);a=a??ht(),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){yi(n)}setAPI(n,a,o){br(n,a,o)}getAPI(n,a,o){return Ze(n,a,o)}batchSetAPI(n,a){bi(n,a)}clearScopeAPI(n){ki(n)}getRootDomain(){return ht()}}function G(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"&&(Qa(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={};ln(n.wrapper)?i=n.wrapper(a,l):i=n.wrapper;const c=t.createApp(i,e),u=n.components;return u&&u.forEach(m=>{c.use(m)}),a.appendChild(l),{instance:c.mount(l),unmount:()=>{c.unmount(),a.removeChild(l)}}},kr=(e,n)=>e?t.h(e,n):"";function ve(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const he={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},ye={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Sr={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}},Cr={name:{type:String,required:!1},prop:{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}},wr=[];for(const e in Cr)wr.push(e);const Ai=Symbol.for("InnerPageScopeKey"),Ti={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}},Vi=(e,n)=>({inheritAttrs:!0,props:{...he,...Sr,...Ti},setup(a,{slots:o}){const l=No(a.name,a),r=t.inject(Ai,!1);if(l){const m=gr(l,a);ve({getPageContentHeight:()=>yn(l,m),getPageContentWidth:()=>bn(l,m),getPageHeaderHeight:()=>hn(l,m),getPageFooterHeight:()=>gn(l,m)}),m&&r&&(m.contentHeight="100%")}const s=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),c=t.getCurrentInstance(),u=(m,d=!1)=>{const g=c?.proxy;g&&typeof g.setNameValidateRules=="function"&&g.setNameValidateRules(m,!0,d)};return t.watch([()=>a.rules,()=>a.pureDataRules],([m,d],[g,S])=>{if(m&&g){const b=t.toRaw(g),y=t.toRaw(m),k=y?Reflect.ownKeys(y):[];(b?Reflect.ownKeys(b):[]).forEach(p=>{k.includes(p)||(y[p]=[])}),u(y)}if(d&&S){const b=t.toRaw(S),y=t.toRaw(d),k=y?Reflect.ownKeys(y):[];(b?Reflect.ownKeys(b):[]).forEach(p=>{k.includes(p)||(y[p]=[])}),u(y,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const m=t.toRaw(a.rules);u(m)}if(a.pureDataRules){const m=t.toRaw(a.pureDataRules);u(m,!0)}}),()=>{const m={class:s.value,style:i.value};return t.h("div",m,[o?.default?.()])}}}),{componentName:$i,create:Ei,scope:lA}=G("page"),To=Ei(Vi($i));function Vo(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function wn(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 Di=Symbol.for("InnerPageScopeKey"),Nr={headerbar:{},radio:{},checkbox:{}};function Ii(e){Object.assign(Nr,e)}function Nn(){return Nr}const xi=(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},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=We(),i=s?pn(s):null,c=t.inject(Di,!1),u=Nn(),m=e,d=t.computed(()=>{const q={[m]:!0,[`${m}--border`]:l.border,[`${m}--fixed`]:l.fixed};return c||(q[`${m}--safe-area-inset-top`]=l.safeAreaInsetTop),q}),g=t.computed(()=>({[`${m}__inner`]:!0,[`${m}__inner--${l.align}`]:!0})),S=l.height!==null&&l.height!==void 0?fe(l.height):null,b=t.computed(()=>{const q={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const R=Fe(l.padding??i.headerPadding);return Object.assign(q,R),S&&(i.headerHeight=S),i.headerHeight>0&&(q.height=i.headerHeight),q.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,q.safeAreaTop>0&&(q.top=q.safeAreaTop+(R.top??0),q.height&&q.height>0&&(q.height=q.height+q.safeAreaTop)),q}if(S&&(q.height=S),l.padding){const R=Fe(l.padding);Object.assign(q,R)}return q}),y=t.ref(null),k=()=>{if(i&&y.value&&!rn(y.value)){if(!o){const q=Vo(y.value);i.headerAllHeight=q.height}return i.headerMounted=!0,!0}return!1};let f=null;t.onMounted(()=>{i&&(Co(k,50,5,50,!0),window.ResizeObserver&&y.value&&(f=new window.ResizeObserver(()=>{k()}),f.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,f&&(f.disconnect(),f=null))});const p=t.computed(()=>{const q={};return b.value.height!==null&&b.value.height!==void 0&&(q.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(q.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(q.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(q.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(q.paddingBottom=`${b.value.bottom}px`),q}),h=t.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function C(){r.emit("back")}function A(){r.emit("click-title")}function w(){r.emit("click-right")}function N(){r.emit("click-right-text")}const T=()=>{if(!l.leftShow)return null;const q=[];if(r.slots.left)q.push(r.slots.left());else{if(r.slots.leftIcon){const R=t.h("view",{class:"left-icon",onClick:C},[r.slots.leftIcon()]);q.push(R)}else{const R=l.leftIcon??u.headerbar.Left??a,$=t.h("view",{class:"left-icon",onClick:C},[t.h(R)]);q.push($)}if(l.leftText){const R=t.h("view",{class:"left-text",onClick:C},[l.leftText]);q.push(R)}}return q.length===0?null:t.h("view",{class:"fox-header-bar__left"},q)},V=()=>{if(!l.rightShow)return null;const q=[];if(r.slots.right)q.push(r.slots.right());else{if(l.rightText){const R=t.h("view",{class:"right-text",onClick:N},[l.rightText]);q.push(R)}if(r.slots.rightIcon){const R=t.h("view",{class:"right-icon",onClick:w},[r.slots.rightIcon()]);q.push(R)}else if(l.rightIcon){const R=t.h("view",{class:"right-icon",onClick:w},[t.h(l.rightIcon)]);q.push(R)}}return q.length===0?null:t.h("view",{class:"fox-header-bar__right"},q)},E=()=>{if(!l.titleShow)return null;const q=[],R=r.slots.default?r.slots.default():null;if(R)q.push(R);else{if(l.title){const $=t.h("view",{class:"title-text"},[l.title]);q.push($)}if(r.slots.titleIcon){const $=t.h("view",{class:"title-icon",onClick:A},[r.slots.titleIcon()]);q.push($)}else if(l.titleIcon){const $=t.h("view",{class:"title-icon",onClick:A},[t.h(l.titleIcon)]);q.push($)}}return q.length===0?null:t.h("view",{class:"fox-header-bar__title"},q)},D=()=>{const q=[],R=r.slots.bottom?r.slots.bottom():null;return R&&q.push(R),q.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},q)};return()=>{if(!h.value)return null;const q=[];if(r.slots.all)q.push(r.slots.all());else{const $=[],I=T();I&&$.push(I);const M=E();M&&$.push(M);const x=V();if(x&&$.push(x),$.length>0){const U=t.h("view",{class:g.value},$);q.push(U)}const H=D();H&&q.push(H)}if(q.length===0)return null;const R={class:d.value,style:p.value,ref:y};return t.h("view",R,q)}}}),{componentName:vi,create:qi,scope:Pi}=G("header-bar"),$o=qi(xi(vi,Pi,oe.Left,!1)),Mi=Symbol.for("InnerPageScopeKey");function Li(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=We(),s=r?pn(r):null,i=t.inject(Mi,!1),c=e,u=t.computed(()=>{const k={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return i||(k[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),k}),m=o.height!==null&&o.height!==void 0?fe(o.height):null,d=t.computed(()=>{const k={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const f=Fe(o.padding??s.footerPadding);return Object.assign(k,f),m&&(s.footerHeight=m),s.footerHeight>0&&(k.height=s.footerHeight),k.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,k.safeAreaBottom>0&&(k.bottom=k.safeAreaBottom+(f.bottom??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaBottom)),k}if(m&&(k.height=m),o.padding){const f=Fe(o.padding);Object.assign(k,f)}return k}),g=t.ref(null),S=()=>{if(s&&g.value&&!rn(g.value)){if(!a){const k=Vo(g.value);s.footerAllHeight=k.height}return s.footerMounted=!0,!0}return!1};let b=null;t.onMounted(()=>{s&&(Co(S,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{S()}),b.observe(g.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,b&&(b.disconnect(),b=null))});const y=t.computed(()=>{const k={};return d.value.height!==null&&d.value.height!==void 0&&(k.height=ge(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(k.paddingTop=ge(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(k.paddingLeft=ge(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(k.paddingRight=ge(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(k.paddingBottom=ge(d.value.bottom)),k});return()=>{const k=l.slots.default?l.slots.default():[],f={ref:g,class:u.value,style:y.value};return t.h("view",f,k)}}}}const{componentName:zi,create:Fi,scope:Ri}=G("footer-bar"),Eo=Fi(Li(zi,Ri,!1));function Oi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=We(),l=t.computed(()=>({[e]:!0})),r=o?pn(o):null,s=t.computed(()=>{const u={};if(o&&r){if(a.padding){const f=Fe(a.padding);Object.assign(r.contentPadding,f)}const m=hn(o,r),d=gn(o,r);let g="";r.contentHeight?g=`${r.contentHeight}`:g=`${r.height}px`,console.debug("[content]page height:",g),console.debug("[content]header height:",m),console.debug("[content]footer height:",d),console.debug("[content]padding:",r.contentPadding),u.height=g;let S=(r&&r.contentPadding&&r.contentPadding.top)??-1;(S>=0||m>0)&&(S=S<0?0:S,u.paddingTop=`${m+S}px`);let b=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(b>=0||d>0)&&(b=b<0?0:b,u.paddingBottom=`${d+b}px`);const y=(r&&r.contentPadding&&r.contentPadding.left)??-1;y>=0&&(u.paddingLeft=`${y}px`);const k=(r&&r.contentPadding&&r.contentPadding.right)??-1;return k>=0&&(u.paddingRight=`${k}px`),u}if(a.padding){const m=Fe(a.padding);m.left&&(u.paddingLeft=`${m.left}px`),m.top&&(u.paddingTop=`${m.top}px`),m.right&&(u.paddingRight=`${m.right}px`),m.bottom&&(u.paddingBottom=`${m.bottom}px`)}return u}),i=t.ref(null),c=mt(()=>{if(r&&i.value){const u=wn(i.value);r.contentInnerHeight=u.height,r.contentInnerWidth=u.width}},0);return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>s.value,()=>l.value],([])=>{c()}),{contentRef:i,classes:l,styles:s}}}}const{componentName:Ki,create:Ui,scope:aA}=G("content"),Hi=Ui(Oi(Ki));function ji(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 te=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},Do=te(Hi,[["render",ji]]),yt="GroupStateKey",Br=Symbol.for("GroupScopeKey");function Bn(){return t.inject(Br,!1)}function An(e=!0){t.provide(Br,e)}function Wi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Xa(l)||(e[o]=l)})}function Yi(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Wi(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(yt,r),r}function Io(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(yt);if(!c)return;const u=e.get("groupLayout")??{};a===-1&&(a=u.column??1),o===-1&&(o=u.gutter??0),r||(r=u.minItemWidth??-1),s||(s=u.maxItemWidth??-1);const m=fe(r),d=fe(s);i||(i=u.type??"grid");const g=()=>{const S=n===""||n===-1,b=fe(n);let y=pe(a);const k=fe(o);if(!S){let h=(b-(y-1)*k)/y;for(;d!==-1&&h>d;)y++,h=(b-(y-1)*k)/y;for(;m!==-1&&y>1&&h<m;)y--,h=(b-(y-1)*k)/y}let f=!1;const p=c.layout;p.value.width=n,p.value.column!==y&&(p.value.column=y,f=!0),p.value.gutter!==k&&(p.value.gutter=k,f=!0),p.value.type!==i&&(p.value.type=i,f=!0),f&&t.triggerRef(p)};if(l)g();else{const S=++c.passport;setTimeout(()=>{S===c.passport&&g()},50)}}function Tn(e,n=!1){let a;return n?a=e.getForParent(yt):a=e.get(yt),a.layout}function Vn(e,n=!1){let a;return n?a=e.getForParent(yt):a=e.get(yt),a.order}function Ar(e,n=1){if(n==="stretch")return-1;const a=pe(n);return a===-1?100:100*a/e}function $n(e,n,a=1,o=0,l){const r={};let s=0;l?s=fe(l):s=Ar(n.column,a),s>0&&(r.width=`${s}%`);const i=Ar(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 En(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,u=c+(n.column-c);return e.index=e.index+(u-c),{"grid-column":`${c+1} / -1`}}let l=pe(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=pe(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 Tr=Symbol("RollingStateKey");function Xi(e){t.provide(Tr,e)}function Qi(){return t.inject(Tr,null)}function xo(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 Gi(e){let n=xo(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=xo(a),console.info("2.---------- get expand height",n),document.body.removeChild(a)}return n}function Zi(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const Ji={...he,...Sr,...Cr};function _i(e,n,a){return{props:Ji,emits:["update:collapse","header-click"],setup(o,l){const r=No(o.prop??o.name,o,wr),s=Yi(r,{type:o.type}),i=Bn();An(!0);const c=o.rollingDisplay?Qi():null,u=t.ref(null),m=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),d=t.computed(()=>i&&r?Tn(r,!0).value:null),g=t.getCurrentInstance(),S=(O,j=!1)=>{const X=g?.proxy;X&&typeof X.setNameValidateRules=="function"&&X.setNameValidateRules(O,!0,j)};t.watch([()=>o.rules,()=>o.pureDataRules],([O,j],[X,K])=>{if(O&&X){const Z=t.toRaw(X),le=t.toRaw(O),ae=le?Reflect.ownKeys(le):[];(Z?Reflect.ownKeys(Z):[]).forEach(de=>{ae.includes(de)||(le[de]=[])}),S(le)}if(j&&K){const Z=t.toRaw(K),le=t.toRaw(j),ae=le?Reflect.ownKeys(le):[];(Z?Reflect.ownKeys(Z):[]).forEach(de=>{ae.includes(de)||(le[de]=[])}),S(le,!0)}},{deep:!0});const b=e,y=t.computed(()=>{const O={};if(O.height=I.value,o.width)o.width!=="auto"&&(O.width=ge(o.width));else{const j=i?Vn(r,!0):null;if(d.value&&j){if(d.value.type==="grid"){const X=En(j,d.value,o.span,o.offset);Object.assign(O,X)}else if(d.value.type==="flow"){const X=$n(j,d.value,o.span,o.offset,o.width);Object.assign(O,X)}}}return O}),k=t.computed(()=>{const O=s.layout.value.type;return O==="grid"||O==="flow"?{[`${b}--${O}`]:!0,[`${b}--${O}-justify-${o.justify}`]:!0,[`${b}--${O}-align-${o.align}`]:!0,[`${b}--gutter`]:!0}:{[`${b}--${O}`]:!0,[`${b}--gutter`]:!0}}),f=t.computed(()=>{if(s.layout.value.type==="grid"){let j="";if(o.columnWidth)j=`repeat(auto-fill, ${o.columnWidth})`;else{const X=Zi(T.value,s.layout.value.column,s.layout.value.gutter);j=`repeat(${s.layout.value.column}, ${X})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":j}}}),p=t.toRef(o,"gutter"),h=t.toRef(o,"column"),C=t.computed(()=>i||m.value?!0:be(o.isWrap)),A=[],w=O=>{A.push(O)},N=()=>{let O=A.length;A.splice(0,O)},T=t.ref(-1),V=O=>{const j=wn(O).width;j>0&&j!==T.value&&(T.value=j)};Io(r,T.value,h.value,p.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([T,h,p],([O,j,X])=>{s.order.index=0,Io(r,O,j,X,!1,o.minItemWidth,o.maxItemWidth,o.type)});const E=t.computed(()=>M.value?o.expandText??"":o.collapseText??""),D=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),R=t.ref(),$=t.ref(),I=t.computed(()=>x.value||ge(o.height)||""),M=t.ref(!1),x=t.ref(""),H=t.ref(!1);let U=-1;const _=(O,j=!0)=>{const X=R.value;if(X&&M.value!==O){if(U=U<=0?Gi(X):U,H.value=!0,j)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",O||(x.value="",H.value=!1)},O){let K=0;o.collapseHeight?K=o.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(K=$.value.offsetHeight),x.value=`${U}px`,t.nextTick(()=>{x.value=`${K}px`})}else x.value=`${U}px`;else if(O){let K=0;o.collapseHeight?K=o.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(K=$.value.offsetHeight),x.value=`${K}px`}else H.value=!1,x.value=`${U}px`;M.value=O,l.emit("update:collapse",O)}};t.watch(()=>o.collapse,O=>{_(O)});const ee=O=>{l.emit("header-click",O)},W=()=>{P()},P=O=>{O=O??!M.value,_(O)};ve({toggleCollapse:P,doLayout:()=>{A[0]&&(V(A[0]),Io(r,T.value,h.value,p.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let v=null,Y=!0;const z=O=>{if(o.rules){const j=t.toRaw(o.rules);S(j)}if(o.pureDataRules){const j=t.toRaw(o.pureDataRules);S(j,!0)}if(nt&&(O&&_(be(o.collapse),!1),o.autoLayout&&Array.isArray(A)&&A.length>0)){const j=A[0];V(j),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{V(j)}),v.observe(j))}},F=()=>{v?.disconnect(),v=null},Q=!m.value||c?.acquire();Q&&(u.value=m.value?!0:null),t.onMounted(()=>{if(Q&&(z(Y),Y=!1),m.value&&c){let O=null,j=c.initialHeight;c.observe(R.value,X=>{if(X!==u.value)if(X)u.value=!0,M.value||(x.value=""),O=setTimeout(()=>{O=null,u.value!==!1&&(z(Y),Y=!1)},100);else{if(O!==null&&clearTimeout(O),u.value=!1,!M.value)if(Y)x.value=c.initialHeight;else{let K=xo(R.value);K<=0?x.value=j:(x.value=`${K}px`,j=x.value)}Y||F()}})}}),t.onUnmounted(()=>{v?.disconnect(),c&&c.unobserve(R.value)});const J=(O="right")=>{const j=[];if(E.value){const le={class:D.value},ae=t.h("span",le,[E.value]);j.push(ae)}const X={class:q.value},K=o.collapseIcon??a,Z=t.h(K,X);return j.push(Z),j.length>0?t.h("div",{class:{[`${b}__header-collapse`]:!0,[`is-${O}`]:!0},onClick:W},j):null},ne=(O,j,X,K)=>{const Z={...k.value};return j===0&&(Z[`${b}__first`]=!0),X>=K-1&&(Z[`${b}__last`]=!0),t.h("div",{ref:w,key:`${j}`,class:Z,style:f.value},O)};return()=>{if(m.value&&u.value!==!0){const Z=o.tag||"div";return t.h(Z,{ref:R,prop:o.name,class:{[`${b}`]:!0,"is-collapse":H.value},style:y.value},[])}s.order.index=0;const O=[];let j=0;if(l.slots.header){const Z={key:`${j++}`,ref:$,class:{[`${b}__header`]:!0,[`${b}__first`]:!0},onClick:ee},le=t.h("div",Z,[l.slots.header()]);O.push(le)}else{const Z=[],le=o.collapsePosition==="left";if(le&&o.showCollapse){const ae=J("left");ae&&Z.push(ae)}if(o.title||l.slots.title){if(o.showMark){const ae={class:{[`${b}__header-mark`]:!0}};o.markColor&&(ae.style={background:o.markColor});const se=t.h("div",ae);Z.push(se)}if(l.slots.title){const ae=t.h("div",{class:{[`${b}__header-title`]:!0}},[l.slots.title()]);Z.push(ae)}else if(o.title){const ae=t.h("div",{class:{[`${b}__header-title`]:!0}},[o.title]);Z.push(ae)}}if(l.slots.toolbar&&Z.push(l.slots.toolbar()),!le&&o.showCollapse){const ae=J("right");ae&&Z.push(ae)}if(Z.length>0){const ae={key:`${j++}`,ref:$,class:{[`${b}__header`]:!0,[`${b}__first`]:!0},onClick:ee},se=t.h("div",ae,Z);O.push(se)}}N();const X=l.slots.default?l.slots.default():[],K=s.layout.value.type;if(K==="grid"){const Z=ne(X,j++,0,X.length);O.push(Z)}else if(K==="flow"){const Z=ne(X,j++,0,X.length);O.push(Z)}else for(let Z=0;Z<X.length;Z++){const le=X[Z],ae=ne([le],j++,Z,X.length);O.push(ae)}if(C.value){const Z=o.tag||"div";return t.h(Z,{ref:R,prop:o.name,class:{[`${b}`]:!0,"is-collapse":H.value},style:y.value},[O])}else return O}}}}const{componentName:ec,create:tc,scope:nc}=G("group"),vo=tc(_i(ec,nc,oe.RectUp));function oc(e){return e===window}const lc=/matrix\((.+)\)/,Vr=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(oc(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:u}=window.getComputedStyle(l);if(u){const m=lc.exec(u);if(m){let g=m[1].split(/\s*,\s*/);g.length==6&&(i+=Number(g[4]),c+=Number(g[5]))}}l=l.parentNode}return a-=r,o-=s,a+=i,o+=c,{x:a,y:o}};class ac{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 rc{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 ac,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 $r=new rc,Er={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:sc,create:ic}=G("price"),cc=ic({props:{...Er},setup(e){const n=t.computed(()=>({[sc]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ke(e.price)==0?"":nn(e.price,e.decimalLength,!0,pe(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}}}),dc=["innerHTML"],uc=["innerHTML"];function fc(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,dc)):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,uc)):t.createCommentVNode("",!0)],2)}const Je=te(cc,[["render",fc]]),{componentName:qo,create:mc}=G("hint-text"),pc=mc({components:{Price:Je},props:{...Er,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),u=(D,q,R,$,I,M)=>{const x=document.documentElement.clientWidth||document.body.clientWidth,H=document.documentElement.clientHeight||document.body.clientHeight,U=D.split("-");let _=[];U[0]==="top"?_=["top","bottom","right","left"]:U[0]==="bottom"?_=["bottom","top","right","left"]:U[0]==="left"?_=["left","top","bottom","right"]:U[0]==="right"&&(_=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},W=[];for(let P=0;P<_.length;P++){const L=_[P];if(W[0]=L,U[1]&&(W[1]=U[1]),L==="top"){const v=q.y-M-e.arrowSize-e.offset;if(v>=0){ee.top=v;let Y=0;U[1]==="start"?Y=q.x:U[1]==="end"?Y=q.x+R-I:Y=q.x+R/2-I/2;const z=x-Y-I;z<0?(Y+=z,d.value=-z):d.value=0,ee.left=Y<0?0:Y;break}}else if(L==="bottom"){const v=q.y+$+e.arrowSize+e.offset;if(v+M<=H){ee.top=v;let Y=0;U[1]==="start"?Y=q.x:U[1]==="end"?Y=q.x+R-I:Y=q.x+R/2-I/2;const z=x-Y-I;z<0?(Y+=z,d.value=-z):d.value=0,ee.left=Y<0?0:Y;break}}else if(L==="left"){const v=q.x-I-e.arrowSize-e.offset;if(v>=0){ee.left=v;let Y=0;U[1]==="start"?Y=q.y:U[1]==="end"?Y=q.y+$-M:Y=q.y+$/2-M/2,ee.top=Y<0?0:Y;break}}else if(L==="right"){const v=q.x+R+e.arrowSize+e.offset;if(v+I<=x){ee.left=v;let Y=0;U[1]==="start"?Y=q.y:U[1]==="end"?Y=q.y+$-M:Y=q.y+$/2-M/2,ee.top=Y<0?0:Y;break}}}return{bestPlacement:W.join("-"),bestInsetRect:ee}},m=(D,q,R=10)=>{if(!nt||q===!1||!D)return;o.value=Vr(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const $=c.value.offsetHeight,I=c.value.offsetWidth,{bestPlacement:M,bestInsetRect:x}=u(e.placement,o.value,l.value,r.value,I,$);s.value=M,a.value=x,i.value=!0},d=t.ref(0),g=mt(()=>{m(e.message,e.visible)},10),S=t.ref(e.visible);t.watch(()=>e.visible,D=>{S.value=D});const b=t.computed(()=>S.value&&y.value),y=t.ref(!0),k=mt(D=>{const q=D[0];q&&(y.value=q.isIntersecting)},10),f=new IntersectionObserver(k);t.watch([()=>e.message,()=>e.visible],([D,q])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{m(e.message,e.visible)},0),$r.watch(e.reference,g),f.observe(e.reference)}),t.onBeforeMount(()=>{$r.unwatch(e.reference,g),f.unobserve(e.reference),f.disconnect()});const p=t.computed(()=>{const D={[qo]:!0};return s.value.startsWith("top")?D["is-top"]=!0:s.value.startsWith("right")?D["is-right"]=!0:s.value.startsWith("bottom")?D["is-bottom"]=!0:s.value.startsWith("right")&&(D["is-right"]=!0),e.size==="small"?D["is-small"]=!0:e.size==="large"&&(D["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(D[`${e.customClass}`]=!0),D}),h=t.computed(()=>{const D={};a.value.top!==null&&(D.top=`${a.value.top}px`),a.value.right!==null&&(D.right=`${a.value.right}px`),a.value.bottom!==null&&(D.bottom=`${a.value.bottom}px`),a.value.left!==null&&(D.left=`${a.value.left}px`),e.autoFit&&(D["min-width"]=`${l.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return D["max-width"]=`${q}px`,i.value&&(D.opacity="1"),e.transition||(D.transition="none"),e.zIndex&&(D["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(D,e.customStyle),D}),C=t.computed(()=>{const D=[`${qo}__content`];return e.customTextClass&&D.push(e.customTextClass),D}),A=t.computed(()=>{const D={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(D,e.customTextStyle),D}),w=t.computed(()=>({[`${qo}__arrow`]:!0})),N=t.computed(()=>{const D={};return e.showArrow?(D.width=`${e.arrowSize}px`,D.height=`${e.arrowSize}px`,s.value==="top"?(D.left="50%",D.bottom=`-${e.arrowSize}px`,D.transform=" translate(-50%, 0%)"):s.value==="top-start"?(D.left=`${e.arrowOffset+d.value}px`,D.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(D.right=`${e.arrowOffset-d.value}px`,D.bottom=`-${e.arrowSize}px`):s.value==="right"?(D.left=`-${e.arrowSize}px`,D.top="50%",D.transform=" translate(0%, -50%)"):s.value==="right-start"?(D.left=`-${e.arrowSize}px`,D.top=`${e.arrowOffset}px`):s.value==="right-end"?(D.left=`-${e.arrowSize}px`,D.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(D.left="50%",D.top=`-${e.arrowSize}px`,D.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(D.left=`${e.arrowOffset+d.value}px`,D.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(D.right=`${e.arrowOffset-d.value}px`,D.top=`-${e.arrowSize}px`):s.value==="left"?(D.right=`-${e.arrowSize}px`,D.top="50%",D.transform=" translate(0%, -50%)"):s.value==="left-start"?(D.right=`-${e.arrowSize}px`,D.top=`${e.arrowOffset}px`):s.value==="left-end"&&(D.right=`-${e.arrowSize}px`,D.bottom=`-${e.arrowOffset}px`),D):{display:"none"}}),T=t.computed(()=>b.value&&e.closeOnClick),V=t.computed(()=>{const D={};return e.zIndex&&(D["z-index"]=`${e.zIndex}`),D});return{show:b,tipRef:c,classes:p,styles:h,textClasses:C,textStyles:A,arrowClasses:w,arrowStyles:N,overlayShow:T,overlayStyle:V,onClickOverlay:()=>{S.value=!1,n.emit("update:visible",!1)}}}}),hc=["innerHTML"];function gc(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,hc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Dr=te(pc,[["render",gc]]);class Dn{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 Po={},yc=new Dn,bt=new Map,In=e=>{if(e){const n=document.getElementById(e);bt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of bt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}bt.clear()}},bc=e=>{e.unmount=In;const n=document.getElementById(e.id);if(n){const a=bt.get(e.id);a?e={...Po,...a,...e}:e={...Po,...e},e.transition=!1;const o=t.createVNode(Dr,e);return t.render(o,n),e.id}},kc=e=>{e.unmount=In;let n=e.id??`hinttext_${yc.get()}`;e={...Po,...e},e.id=n,bt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Dr,e);return t.render(o,a),document.body.appendChild(a),n},Sc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},kt={show(e,n,a={},o=!0){Sc(n);const l=a.id;return l&&bt.has(l)?bc({...a,message:n,reference:e}):(o&&In(),kc({...a,message:n,reference:e}))},hide(e){In(e)},install(e){e.config.globalProperties.$hintText=kt}};function Cc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...he,...ye},emits:["appear","disappear"],setup(l,r){const s=l.prop??r.attrs.name;Te({componentName:e,validate:!1},s);const i=We(),c=Bn();An(!1);const u=t.computed(()=>c&&i?Tn(i,!1).value:null),m=e,d=t.ref(null),g=t.computed(()=>{const K={[m]:!0,[`${m}__gutter`]:u.value&&u.value.type!=="flow",[`${m}__stretch`]:l.span==="stretch",[`${m}__input--border`]:be(l.hasBorder)};if(K[l.errorMarkClass]=!!M.value,K[l.warnMarkClass]=!!$.value,K[l.infoMarkClass]=!!q.value,typeof d.value=="function"){const Z=d.value(s);K[Z]=!0}else if(typeof d.value=="string"){const Z=d.value;K[Z]=!0}return K}),S=t.ref(null),b=t.computed(()=>{const K={};if(l.width)l.width!=="auto"&&(K.width=ge(l.width));else{const Z=c&&i?Vn(i,!1):null;if(u.value&&Z){if(u.value.type==="grid"){const le=En(Z,u.value,l.span,l.offset);Object.assign(K,le)}else if(u.value.type==="flow"){const le=$n(Z,u.value,l.span,l.offset,l.width);Object.assign(K,le)}}}if(typeof S.value=="function"){const Z=S.value(s);Z&&Object.assign(K,Z)}else if(S.value&&typeof S.value=="object"){const Z=S.value;Object.assign(K,Z)}return K}),y=t.ref(null),k=t.computed({get:()=>y.value??be(l.isRequired),set:K=>{y.value=K}}),f=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",p=$e(t.toRef(l,"labelPosition"),"labelPosition",kn.Near),h=t.computed(()=>p&&p.value==="top"?"top":p&&p.value==="right"?"right":"left"),C=t.computed(()=>({[`${m}__main`]:!0,[`${m}__main--${h.value}`]:!0})),A=t.computed(()=>({label:!0,[`label--${h.value}`]:!0})),w=$e(t.toRef(l,"labelWidth"),"labelWidth",kn.Near),N=t.computed(()=>w&&w.value?{width:ge(w.value)}:{}),T=t.computed(()=>({"label--string":!0,"label--required":k.value})),V=t.computed(()=>({content:!0,[l.contentClass]:!0})),E=t.computed(()=>({...l.contentStyle})),D=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});ve({setRequired(K){k.value=K},setErrorTip(K){D.errorTip=K},setErrorIcon(K){D.errorIcon=K},setWarnTip(K){D.warnTip=K},setWarnIcon(K){D.warnIcon=K},setInfoTip(K){D.infoTip=K},setInfoIcon(K){D.infoIcon=K},setCustomClassName(K){d.value=K},setCustomStyle(K){S.value=K}});const q=t.computed(()=>l.infoTip||D.infoTip),R=t.computed(()=>l.infoIcon||D.infoIcon),$=t.computed(()=>l.warnTip||D.warnTip),I=t.computed(()=>l.warnIcon||D.warnIcon),M=t.computed(()=>l.errorTip||D.errorTip),x=t.computed(()=>l.errorIcon||D.errorIcon),H=t.computed(()=>M.value?"error":$.value?"warn":q.value?"info":""),U=()=>H.value.length>0,_=t.computed(()=>H.value==="error"?M.value:H.value==="warn"?$.value:H.value==="info"?q.value:""),ee=t.computed(()=>H.value==="error"?x.value:H.value==="warn"?I.value:H.value==="info"?R.value:null),W=t.computed(()=>{const K={[`${m}__tip`]:!0,[`${m}__tip--${H.value}`]:!0,[`${m}--animate`]:!0};return H.value==="error"&&l.errorClass?K[`${l.errorClass}`]=!0:H.value==="warn"&&l.warnClass?K[`${l.warnClass}`]=!0:H.value==="info"&&l.infoClass&&(K[`${l.infoClass}`]=!0),K}),P=t.computed(()=>{const K={};return p&&p.value==="top"||!f()?K["padding-left"]="0px":w&&w.value&&(K["padding-left"]=ge(w.value)),K}),L=t.ref();let v="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([K,Z,le,ae])=>{L.value&&(K&&!ue(Z)?v?a.show(L.value,Z,{...ae,id:v,type:le},!0):v=a.show(L.value,Z,{...ae,type:le},!0):a.hide(v))});let Y=null;const z=()=>{Y||!L.value||(Y=new IntersectionObserver(K=>{let Z=!1;for(let le of K)if(le.intersectionRatio>0){Z=!0,Z&&r.emit("appear",le);break}Z||r.emit("disappear")}),Y.observe(L.value))},F=()=>{!Y||!L.value||(Y.unobserve(L.value),Y=null)};t.watch(()=>be(l.appearListen),K=>{K?z():F()}),t.onMounted(()=>{be(l.appearListen)&&z()}),t.onUnmounted(F);const Q=()=>{if(!f())return null;const K=[],Z=r.slots?.label?.()??l.label,le={class:T.value},ae=t.h("div",le,[Z]);if(K.push(ae),r.slots.fixedPreTip){const de=r.slots.fixedPreTip();K.push(de)}const se={class:A.value,style:N.value};return t.h("div",se,K)},J=()=>{const K=[];if(r.slots.prepend){const le=r.slots.prepend();K.push(le)}if(r.slots.default){const le=r.slots.default();K.push(le)}if(r.slots.append){const le=r.slots.append();K.push(le)}if(r.slots.fixedTip){const le={class:[`${m}__fixed-tip`]},ae=t.h("div",le,[r.slots.fixedTip()]);K.push(ae)}const Z={ref:L,class:V.value,style:E.value};return t.h("div",Z,K)},ne=()=>{const K=ee.value;return K?typeof K=="function"?t.h("div",{class:"fox-item__tip--icon"},[K()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(K)]):null},O=()=>{const K=_.value;return K?typeof K=="function"?t.h("div",{class:"fox-item__tip--text"},[K()]):t.h("div",{class:"fox-item__tip--text"},[K]):null},j=()=>{if(!U())return null;const K=[],Z=ne();Z&&K.push(Z);const le=O();le&&K.push(le);const ae={class:W.value,style:P.value};return t.h("div",ae,K)},X=()=>r.slots?.hide?.()??null;return()=>{const K=[],Z=[],le=Q();le&&Z.push(le);const ae=J();ae&&Z.push(ae);const se={class:C.value},de=t.h("div",se,Z);K.push(de);const Ve=j();Ve&&K.push(Ve);const Ne=X();Ne&&K.push(Ne);const lo={class:g.value,style:b.value,prop:l.prop};return t.h("div",lo,K)}}}}const{componentName:wc,create:Nc,scope:Bc}=G("item"),Be=Nc(Cc(wc,Bc,kt,!1));function Ac(e,n){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(a,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=We(),i=Bn();An(!1);const c=t.computed(()=>{const u={};if(a.width)a.width!=="auto"&&(u.width=ge(a.width));else if(i&&s){const m=Tn(s,!1),d=Vn(s,!1);if(m.value&&d){if(m.value.type==="grid"){const g=En(d,m.value,a.span,a.offset);Object.assign(u,g)}else if(m.value.type==="flow"){const g=$n(d,m.value,a.span,a.offset,a.width);Object.assign(u,g)}}}return u});return()=>{const u=[];if(o.slots.default){const d=o.slots.default();if(a.divide)for(let g=0;g<d.length;g++){if(g>0){const S=t.h("div",{class:{[`${l}__divide`]:!0}});u.push(S)}u.push(d[g])}else Reflect.apply([].push,u,d)}const m={class:r.value,style:c.value};return t.h("div",m,u)}}}}const{componentName:Tc,create:Vc,scope:rA}=G("row-item"),Mo=Vc(Ac(Tc));function $c(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=We(),r=Bn();An(!1);const s=t.computed(()=>r&&l?Tn(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),u=t.computed(()=>{const m={};if(a.width)a.width!=="auto"&&(m.width=ge(a.width));else{const d=r&&l?Vn(l,!1):null;if(s.value&&d){if(s.value.type==="grid"){const g=En(d,s.value,a.span,a.offset);Object.assign(m,g)}else if(s.value.type==="flow"){const g=$n(d,s.value,a.span,a.offset,a.width);Object.assign(m,g)}}}return m});return()=>{const m={class:c.value,style:u.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",m,o.slots.default()):t.h("div",m)}}}}const{componentName:Ec,create:Dc,scope:sA}=G("slot-item"),Lo=Dc($c(Ec)),Ir={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 Ic(e,n,a,o){return{props:{...he,...ye,...Ir},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:u}=ie.useFoxI18n(n),m=u(l,["placeholder"]),d=t.ref(!1),g=Pe(l,"modelValue",null,c),S=e,b=t.computed(()=>({[S]:!0,"is-disabled":s.value,"is-readonly":i.value})),y=$e(t.computed(()=>l.textAlign),"textAlign"),k=t.computed(()=>{const I={};return y.value&&(I["text-align"]=y.value),I}),f=I=>{let x=I.target.value;l.type==="digit"&&(x=bo(x,!0)),l.type==="number"&&(x=bo(x,!1)),l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),g.value=x,c("update:modelValue",x,I),c("change",x,I)};let p=Pe(l,"hintText"),h=t.ref(!1);const C=I=>{let x=I.target.value;d.value=!0,ue(p.value)||(h.value=!0),c("focus",x,I)},A=I=>{setTimeout(()=>{h.value&&(h.value=!1),d.value=!1},0);let x=I.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),c("blur",x,I)},w=t.computed(()=>({[`${S}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),N=t.computed(()=>{const I={};return r.slots.append&&!T.value&&!R.value&&(I.display="none"),I}),T=t.computed(()=>ke(l.unit)>0),V=t.computed(()=>!R.value),E=t.computed(()=>({[`${S}__unit`]:!0,hidden:!V.value})),D=I=>{g.value="",c("update:modelValue","",I),c("change","",I),c("clear","")},q=t.computed(()=>be(l.clearable)&&!s.value&&!i.value),R=t.computed(()=>{let I=ke(g.value)>0;return be(l.clearable)&&I&&d.value}),$=t.computed(()=>({action:!0,hidden:!R.value}));return()=>{const I={class:b.value,style:k.value,type:l.type,maxlength:l.maxLength,placeholder:m.placeholder.value,disabled:s.value,readonly:i.value,value:g.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:f,onFocus:C,onBlur:A},M=[],x=t.h("input",I);M.push(x);const H=[];if(q.value){const v={class:["action-icon"]},Y=t.h(o,v),z={class:$.value,onClick:D},F=t.h("view",z,{default:()=>[Y]});H.push(F)}if(T.value){const v=t.h("view",{class:E.value},[l.unit]);H.push(v)}const U={class:w.value,style:N.value},_=t.h("view",U,{default:()=>H});M.push(_);const ee={default:()=>M};ee.label=r.slots.default,ee.prepend=r.slots.prepend,ee.append=r.slots.append,ee.fixedPreTip=r.slots.fixedPreTip,ee.fixedTip=r.slots.fixedTip;const P={...ft(l,Ir),hintText:p.value,hintVisible:h.value};return l.prop&&(P.prop=`${l.prop}_item`),t.h(a,P,ee)}}}}const{componentName:xc,create:vc,scope:qc}=G("input-item"),zo=vc(Ic(xc,qc,Be,oe.CircleClose));function xr(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 vr(e,n,a=20){if(typeof n=="string"&&(n=pe(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=ja(`${e}`,`${n}`);return xr(o)}else{let o=mo(`${e}`,Wa(`${n}`),20);return xr(o)}}function Pc(e,n=-1,a=!1,o=3,l=","){return nn(e,n,a,o,l)}function qr(e,n,a,o,l=!0){if(e==="")return"";if(e=Ya(e),n=pe(n),n==1)return e;if(o)e=vr(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(pe(a)+2,"0"):e=mo(e,1,pe(a)));else{let r=-1*n;e=vr(e,r)}return e}function Pr(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=be(n.minInclude),l=po(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=be(n.maxInclude),l=po(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Mr={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 Mc(e,n,a,o){return{props:{...he,...ye,...Mr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),u=t.ref(!1),m=Pe(l,"modelValue",null,c),d=t.ref("");t.watch([()=>m.value,()=>l.rates,()=>l.precision],([U,_,ee])=>{if(ue(U)){d.value="";return}const W=qr(U,_,ee,!1);d.value!==W&&(d.value=W)},{immediate:!0});const g=t.computed(()=>{let U="";return u.value&&(U=d.value),U}),{t:S}=ie.useFoxI18n(n),b=t.computed(()=>{let U=l.placeholder??"";return!u.value&&!ue(d.value)?U=Pc(d.value,l.decimalLength,l.autoPadding,l.digits,l.separator):U=ue(U)?S(["placeholder"]):U,U}),y=e,k=t.computed(()=>({[y]:!0,[`${y}__placeholder`]:d.value.length>0,"is-disabled":s.value,"is-readonly":i.value})),f=$e(t.computed(()=>l.textAlign),"textAlign"),p=t.computed(()=>{const U={};return f.value&&(U["text-align"]=f.value),U}),h=t.ref(""),C=t.computed(()=>{let U=h.value;return ue(U)&&(U=l.errorTip??""),U}),A=t.ref(""),w=t.ref(!1),N=U=>{let ee=U.target.value;if(ue(ee)){d.value="",m.value="",c("update:modelValue","",U),c("change","",U),be(l.showTip)&&w.value&&(w.value=!1);return}if(ee.length>=2){let W=ee;if(W.charAt(0)=="-"&&(W=W.substring(1)),W.length>=2&&W.charAt(0)=="0"&&W.charAt(1)!="."){t.triggerRef(d);return}}if(ee!="-"){if(!nr(ee)){t.triggerRef(d);return}if(l.integerLength!=-1&&or(ee)>Number(l.integerLength)){t.triggerRef(d);return}if(l.decimalLength&&l.decimalLength!=-1&&lr(ee)>Number(l.decimalLength)){t.triggerRef(d);return}let W=Pr(ee,l);if(W.maxValid===!1){h.value=W.message,t.triggerRef(d);return}}else if(l.min!=null&&pe(l.min)>=0){t.triggerRef(d);return}A.value=ee,be(l.showTip)&&(w.value=ee.length>0),d.value=ee,m.value=qr(ee,l.rates,l.precision,!0),c("update:modelValue",m.value,U),c("change",m.value,U)},T=U=>{if(u.value=!0,be(l.showTip)){let _=d.value;ue(_)&&(_=l.hintText),ue(_)||(A.value=_,w.value=!0)}h.value="",c("focus",m.value,U)},V=U=>{if(setTimeout(()=>{u.value=!1,be(l.showTip)&&w.value===!0&&(w.value=!1)},0),!ue(d.value)){let _=Pr(d.value,l);if(_.minValid===!1||_.maxValid===!1){h.value=_.message;return}}c("update:modelValue",m.value,U),c("blur",m.value,U)},E=t.computed(()=>({[`${y}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),D=t.computed(()=>{const U={};return r.slots.append&&!q.value&&!x.value&&(U.display="none"),U}),q=t.computed(()=>ke(l.unit)>0),R=t.computed(()=>!x.value),$=t.computed(()=>({[`${y}__unit`]:!0,hidden:!R.value})),I=U=>{m.value="",c("update:modelValue","",U),c("change","",U),c("clear","")},M=t.computed(()=>be(l.clearable)&&!s.value&&!i.value),x=t.computed(()=>{let U=ke(m.value)>0;return be(l.clearable)&&U&&u.value}),H=t.computed(()=>({action:!0,hidden:!x.value}));return()=>{let U={class:k.value,style:p.value,type:"digit",maxlength:l.maxLength,placeholder:b.value,disabled:s.value,readonly:i.value,value:g.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:N,onFocus:T,onBlur:V},_=[],ee=t.h("input",U);_.push(ee);let W=[];if(M.value){const F={class:["action-icon"]},Q=t.h(o,F),J={class:H.value,onClick:I},ne=t.h("view",J,{default:()=>[Q]});W.push(ne)}if(q.value){const F=t.h("view",{class:$.value},[l.unit]);W.push(F)}const P={class:E.value,style:D.value},L=t.h("view",P,{default:()=>W});_.push(L);const v={default:()=>_};v.label=r.slots.default,v.prepend=r.slots.prepend,v.append=r.slots.append,v.fixedPreTip=r.slots.fixedPreTip,v.fixedTip=r.slots.fixedTip;const z={...ft(l,Mr),errorTip:C.value,hintText:A.value,hintVisible:w.value,hintType:"number"};return l.prop&&(z.prop=`${l.prop}_item`),t.h(a,z,v)}}}}const{componentName:Lc,create:zc,scope:Fc}=G("money-item"),Fo=zc(Mc(Lc,Fc,Be,oe.CircleClose)),Ro={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:Rc,create:Oc,scope:Kc}=G("textarea"),Uc=Oc({props:{...Ro},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=ie.useFoxI18n(Kc);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const g=Rc;return{[g]:!0,[`${g}--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 g=l.value;g.style.height="auto";let S=g.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:b,minHeight:y}=e.autosize;b!==void 0&&(S=Math.min(S,b)),y!==void 0&&(S=Math.max(S,y))}S&&(console.info("----------- height",S),g.style.height=S+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(g,S)=>{e.maxLength&&g.length>Number(e.maxLength)&&(g=g.substring(0,Number(e.maxLength))),n("update:modelValue",g,S),n("change",g,S)};return{...o,textareaRef:l,classes:r,styles:s,change:g=>{const S=g.target;c(S.value,g)},focus:g=>{e.disabled||e.readonly||n("focus",g)},blur:g=>{if(e.disabled||e.readonly)return;let b=g.target.value;c(b,g),n("blur",{value:b,event:g})}}}}),Hc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],jc={key:0,class:"fox-textarea__limit"};function Wc(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,Hc),e.limitShow?(t.openBlock(),t.createElementBlock("view",jc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const xn=te(Uc,[["render",Wc]]);function Yc(e,n,a,o){return{props:{...he,...ye,...Ro},emits:["update:modelValue","change","blur","focus","setValue"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),u=Pe(l,"modelValue",null,c),m=y=>{u.value=y,c("update:modelValue",y,{}),c("change",y,{})};let d=Pe(l,"hintText"),g=t.ref(!1);const S=y=>{ue(d.value)||(g.value=!0),c("focus",u.value,y)},b=y=>{setTimeout(()=>{g.value&&(g.value=!1)},0),c("blur",u.value,y)};return()=>{const k={...Se(l,Ro),disabled:s.value,readonly:i.value,value:u.value,"onUpdate:modelValue":m,onFocus:S,onBlur:b},f=[],p=t.h(o,k);f.push(p);const h={default:()=>f};h.label=r.slots.default,h.prepend=r.slots.prepend,h.append=r.slots.append,h.fixedPreTip=r.slots.fixedPreTip,h.fixedTip=r.slots.fixedTip;const A={...Se(l,ye,he)};return l.prop&&(A.prop=`${l.prop}_item`),t.h(a,A,h)}}}}const{componentName:Xc,create:Qc,scope:Gc}=G("textarea-item"),Oo=Qc(Yc(Xc,Gc,Be,xn));function Zc(e){return e===window}const qe=e=>{const n=t.unref(e);if(Zc(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 Jc=2e3;const Lr=()=>Jc++,Re={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:{}}},_c=(e,n)=>({components:n,props:{...Re},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});a.visible&&(l.zIndex=Lr());const r=t.computed(()=>{const y=e,k=[y,`${y}--${a.position}`];return a.round&&k.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&k.push(`${y}--${a.position}--safebottom`),typeof a.popClass=="string"?k.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(f=>{k.push(f)}),k}),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=Lr(),a.destroyOnClose&&(l.showSlot=!0),o("open")},u=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},m=y=>{o("click-pop",y)},d=y=>{y.stopPropagation(),o("click-close-icon",y),o("update:visible",!1)},g=y=>{o("click-overlay",y),a.closeOnClickOverlay&&o("update:visible",!1)},S=y=>{o("opend",y)},b=y=>{o("closed",y)};return t.watch(()=>a.visible,y=>{a.visible?c():u()}),t.watch(()=>a.closeable,y=>{l.closed=y}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:m,onClickCloseIcon:d,onClickOverlay:g,onOpened:S,onClosed:b}}});let Lt=0;const zr="fox-overflow-hidden",Fr=()=>nt?document.body:{classList:[]},ed=e=>[()=>{if(e())try{!Lt&&Fr().classList.add(zr),Lt++}catch{}},()=>{if(e()&&Lt)try{Lt--,!Lt&&Fr().classList.remove(zr)}catch{}}],td={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:nd,create:od}=G("overlay"),ld=od({props:{...td},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=ed(()=>e.lockScroll),l=t.computed(()=>({[nd]:!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 ad(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 st=te(ld,[["render",ad]]),{componentName:rd,create:sd}=G("popup"),id=sd(_c(rd,{FoxOverLay:st,Close:oe.Close}));function cd(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 me=te(id,[["render",cd]]),Rr=10;function Or(e,n){return e>n&&e>Rr?"horizontal":n>e&&n>Rr?"vertical":""}function Ko(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Uo(){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 u=s.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.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=Or(e.offsetX,e.offsetY))},start:s=>{if(o(),s.touches){const u=s.touches[0];e.startX=u.clientX,e.startY=u.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),u=t.ref(0),m=t.ref(""),d=()=>m.value==="vertical",g=()=>m.value==="horizontal",S=()=>{s.value=0,i.value=0,c.value=0,u.value=0,m.value="",a.value=0};return{move:k=>{if(k.touches){const h=k.touches[0];s.value=h.clientX-e.value,i.value=h.clientY-n.value,l.value=h.clientX,r.value=h.clientY}else{const p=k;s.value=p.clientX-e.value,i.value=p.clientY-n.value,l.value=p.clientX,r.value=p.clientY}c.value=Math.abs(s.value),u.value=Math.abs(i.value),o.value=Date.now()-a.value,m.value||(m.value=Or(c.value,u.value))},start:k=>{if(S(),k.touches){const h=k.touches[0];e.value=h.clientX,n.value=h.clientY}else{const p=k;e.value=p.clientX,n.value=p.clientY}a.value=Date.now()},reset:S,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:u,direction:m,isVertical:d,isHorizontal:g}}const Kr={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},Ho={...Re,...Kr,modelValue:{type:[String,Number,Boolean,Object,Array],default:()=>""},text:{type:[Array],default:()=>[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:()=>[]},params:{type:Object},valueType:{type:String,required:!1,default:()=>"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String},isAutoBackFill:{type:[Boolean],default:()=>!0}};let Ur=36;function dd(){return Ur}function ud(e){Ur=e}function Oe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function jo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function fd(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function it(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Hr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let md=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`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function pd(){const e=t.getCurrentInstance();return new md(e.proxy)}function jr(e,n,a){const o=Oe(e,n),l=Oe(e,a);if(o!==l)return!1;const r=it(e,n),s=it(e,a);return r===s}function hd(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 u=a[s].findIndex(m=>{if(r==="text")return Oe(e,m)===i;if(r==="value"){let d=it(e,m);return d==null&&(d=Oe(e,m)),d===i}else if(r==="item")return jr(e,m,i)});if(u==-1)break;l.push(u)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let u=s.findIndex(d=>{if(r==="text")return Oe(e,d)===c;if(r==="value"){let g=it(e,d);return g==null&&(g=Oe(e,d)),g===c}else if(r==="item")return jr(e,d,c)});if(u==-1)break;l.push(u);const m=jo(e,s[u]);if(!Array.isArray(m))break;s=m}}return l}function Wr(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 u=i[c],m=Oe(e,u);if(l.texts.push(m),l.items.push(u),r==="text")l.values.push(m);else if(r==="value"){let d=it(e,u);d==null&&(d=m),l.values.push(d)}else l.values.push(u)}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 u=s[c],m=Object.assign({},u);m.children=null;const d=Oe(e,u);if(l.texts.push(d),l.items.push(m),r==="text")l.values.push(d);else if(r==="value"){let g=it(e,u);g==null&&(g=d),l.values.push(g)}else l.values.push(m);if(!Array.isArray(u.children))break;s=u.children}}return l}function Yr(e){return{text:e,value:e}}const gd=15,yd=300,bd=200,{create:kd}=G("picker-column");function Sd(e){e.stopPropagation()}function Cd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),Sd(e)}const wd=kd({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},...Kr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${pe(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)`,u=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)`})),m=t.ref(null),d=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),g=N=>Oe(e,N),S=N=>it(e,N),b=_e(),y=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},k=(N,T=!1,V=!1)=>{if(d.currIndex=N,T){const E=()=>{d.moving=!1,n("update:modelValue",N),n("change",N)};V?d.transitionEndTrigger=E:E()}},f=(N,T,V)=>{let E=N+d.startDistance;if(T==="end"){const D=-(e.source.length-1)*e.itemHeight;E<D&&(E=D),E>0&&(E=0);let q=Math.abs(Math.round(-E/e.itemHeight));const R=-q*e.itemHeight,$=`${(q+1)*d.rotation}deg`,I=V?V>0:!1;k(q,!0,I),p(R,T,V,$)}else{let D=(-E/e.itemHeight+1)*d.rotation;const q=(e.source.length+1)*d.rotation,R=0;if(D=Math.min(Math.max(D,R),q),e.threeDimensional&&(D<R||D>q))return;p(E,null,void 0,`${D}deg`)}},p=(N=0,T,V=bd,E)=>{T==="end"?d.scrollTime=V:d.scrollTime=0,d.deg=E,d.scrollDistance=N},h=(N,T)=>(N=Math.abs(N/T)/.003*(N<0?-1:1),N),C=N=>{e.readonly||(d.startDistance=d.scrollDistance,b.start(N),d.transitionEndTrigger=null)},A=N=>{e.readonly||(d.moving=!0,b.move(N),b.isVertical()&&(d.moving=!0,Cd(N)),f(b.deltaY.value,"",0))},w=()=>{if(e.readonly)return;const N=b.deltaY.value,T=b.duration.value;if(T<yd&&Math.abs(N)>gd){const E=h(N,T);f(E,"end",e.swipeDuration)}else f(N,"end",0)};return t.watch(()=>e.modelValue,N=>{const T=d.currIndex-N;if(T!==0){d.currIndex=N,d.startDistance=d.scrollDistance;const V=T*e.itemHeight;f(V,"",0)}}),t.watch(()=>e.source,N=>{if(d.currIndex>=N.length){const E=(N.length-1-d.currIndex)*e.itemHeight;d.startDistance=d.scrollDistance,f(E,"end",0)}}),t.watch(()=>e.visible,N=>{N===!1&&y()}),t.onMounted(()=>{const N=-e.modelValue*e.itemHeight;f(N)}),{classes:a,styles:o,contentClasses:l,itemText:g,itemValue:S,...t.toRefs(d),roller:m,getItemText:Oe,onTouchStart:C,onTouchMove:A,onTouchEnd:w,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:u,stopMomentum:y}}}),Nd={key:1,class:"fox-picker__item-tile"};function Bd(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",Nd,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Ad=te(wd,[["render",Bd]]),{create:Td,componentName:Vd,scope:$d}=G("picker"),Ed=Td({components:{Column:Ad,Popup:me},props:{...Ho},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=ie.useFoxI18n($d),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(dd());t.watch(()=>e.visible,$=>{$&&s.value<=0&&setTimeout(()=>{if(r.value){const I=qe(r.value);s.value=I.height,ud(s.value)}},50)});const i=t.computed(()=>({[Vd]:!0})),c=pd(),u=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([$,I])=>{if($){let M=await c.load("picker",$,I);if(M.length>0){let x=M[0];if(Array.isArray(x)){if(typeof x[0]=="string"){let H=M,U=[];H.forEach(_=>{let ee=_.map(W=>Yr(W));U.push(ee)}),m.value=U}else m.value=M;u.value="multipleColumn"}else if(typeof x=="string"){let H=M,U=[],_=H.map(ee=>Yr(ee));U.push(_),m.value=U,u.value="singleColumn"}else{const H=jo(e,x);Array.isArray(H)?(u.value="cascade",m.value=[M]):(u.value="singleColumn",m.value=[M])}}else m.value=[]}},{immediate:!0});const d=t.ref([]),g=t.ref(e.modelValue),S=t.ref([]);let b=null;const y=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([$,I])=>{let M=hd(e,$,I,u.value);if(!Me(M,y.value)){y.value=M,b||(b=M?[...M]:[]);let x=Wr(e,M,I,u.value);x&&(d.value=x.texts,n("update:text",d.value))}});let k="";const f=t.ref(e.visible);t.watch(()=>e.visible,$=>{f.value=$,$&&(k="active",y.value.length>0&&(b=[...y.value]))});const p=$=>{let I=Hr(e,$);return Ie(I)?I.defaultIndex??0:0},h=$=>{if(e.readonly===!0)return!0;let I=Hr(e,$);return Ie(I)?I.readonly??!1:!1},C=($,I)=>{let M=y.value;M[$]=I;for(let H=0;H<$;H++)M[H]==null&&(M[H]=p(H));if(u.value==="cascade")for(let H=$+1;H<w.value.length;H++){let U=p(H);H<M.length?M[H]=U:M.push(U)}else for(let H=M.length;H<w.value.length;H++){let U=p(H);M.push(U)}y.value=M;let x=Wr(e,M,m.value,u.value);x&&(d.value=x.texts,g.value=x.values,S.value=x.items)},A=$=>$<y.value.length?y.value[$]:p($),w=t.computed(()=>{if(m.value.length==0)return[];if(u.value=="singleColumn"||u.value=="multipleColumn")return m.value;let $=[],I=0,M=m.value[0],x=0;for(;;){let H=M.map(ee=>{let W=Object.assign({},ee);return fd(e,W,null),W});$.push(H),I>=y.value.length?x=0:x=y.value[I],(x<0||x>=M.length)&&(x=0);let U=M[x];const _=jo(e,U);if(!Array.isArray(_))break;M=_,I++}return $}),N=t.computed(()=>pe(+e.visibleItemCount-1)/2*s.value),T=($=!1)=>{if(e.readonly===!0){$&&n("update:visible",!1);return}let I=m.value.length-1;for(;I>=0&&!(y.value[I]===null||y.value[I]===void 0);I--);if(I>=0&&C(I,0),u.value==="singleColumn"){let M=g.value.length>0?g.value[0]:"",x=S.value.length>0?S.value[0]:null;n("update:modelValue",M),n("update:text",d.value),n("change",M,x),$&&(n("confirm",M),n("update:visible",!1))}else n("update:modelValue",g.value),n("update:text",d.value),n("change",g.value,S.value),$&&(n("confirm",g.value),n("update:visible",!1))},V=($,I)=>{if(k!=="close"&&(C($,I),e.isAutoBackFill)){const M=!f.value;T(M)}},E=()=>{k==="active"&&(k="confirm",b=Array.isArray(y.value)?[...y.value]:[],T(!0))},D=()=>{u.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),y.value=[],b=null};return{...l,pickerLineRef:r,classes:i,columns:w,dataType:u,show:f,itemHeight:s,top:N,isReadonly:h,getIndex:A,change:V,close:()=>{if(k==="active"){if(k="close",b===null||b.length===0)D();else{if(Array.isArray(b))for(let $=0;$<b.length;$++)C($,b[$]);T(!1)}n("close"),n("update:visible",!1)}},confirm:E,clear:()=>{if(k==="active"){if(k="clear",e.readonly===!0){n("update:visible",!1);return}D(),b=null,n("clear",""),n("update:visible",!1)}}}}}),Dd={class:"fox-picker__bar"},Id={class:"fox-picker__title"},xd={class:"fox-picker__bar__action"},vd={class:"fox-picker__column"};function qd(e,n,a,o,l,r){const s=t.resolveComponent("Column"),i=t.resolveComponent("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",Dd,[t.createElementVNode("view",Id,t.toDisplayString(e.title),1),t.createElementVNode("view",xd,[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",vd,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:"fox-picker__columnitem"},[t.createVNode(s,{visible:e.show,source:c,readonly:e.isReadonly(u),"column-index":u,modelValue:e.getIndex(u),"onUpdate:modelValue":m=>e.change(u,m),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const St=te(Ed,[["render",qd]]);function Pd(e,n,a,o,l,r,s=!0){return{props:{...he,...ye,...Ho,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","setValue"],setup(i,c){const u=De(t.computed(()=>i.disabled)),m=Ee(t.computed(()=>i.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:g}=ie.useFoxI18n(n),S=g(i,["placeholder"]),b=t.ref(!1),y=Pe(i,"modelValue",null,d),k=t.ref([]),f=t.computed(()=>Array.isArray(k.value)?k.value.join(i.separator):k.value),p="fox-input-item",h=t.computed(()=>({[p]:!0,"is-disabled":u.value,"is-readonly":m.value})),C=$e(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const L={};return C.value&&(L["text-align"]=C.value),L}),w=t.ref(!1),N=()=>{w.value=!0},T=L=>{w.value=L},V=L=>{y.value=L,d("update:modelValue",L)},E=(L,v)=>{d("change",L,v)},D=L=>{let Y=L.target.value;b.value=!0,d("focus",Y,L)},q=L=>{setTimeout(()=>{b.value=!1},0);let Y=L.target.value;i.maxLength&&Y.length>Number(i.maxLength)&&(Y=Y.slice(0,Number(i.maxLength))),d("blur",Y,L)},R=L=>{k.value=L,Array.isArray(L)&&L.length===0?d("update:text",L[0]):d("update:text",L)},$=t.computed(()=>({[`${p}__append`]:!0,"is-disabled":u.value,"is-readonly":m.value})),I=t.computed(()=>ke(i.unit)>0),M=t.computed(()=>ke(i.unit)>0&&!b.value),x=t.computed(()=>({hidden:!M.value})),H=L=>{y.value="",d("update:modelValue","",L),d("change","",L),d("clear","")},U=t.computed(()=>i.clearable&&!u.value&&!m.value),_=t.computed(()=>ke(y.value)>0&&b.value),ee=L=>{_.value?H(L):N()},W=t.computed(()=>_.value&&U.value?o:l),P=t.computed(()=>({action:!0}));return()=>{const L={class:h.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:D,onBlur:q};s&&(L.disabled=!0);const v=[],Y=t.h("input",L);v.push(Y);const z=[],F={class:["action-icon"]},Q=t.h(W.value,F),J={class:P.value,onClick:ee},ne=t.h("view",J,{default:()=>[Q]});if(z.push(ne),I.value){const se=t.h("view",{class:x.value},[i.unit]);z.push(se)}const O={class:$.value},j=t.h("view",O,{default:()=>z});v.push(j);const X={default:()=>v};X.label=c.slots.default,X.prepend=c.slots.prepend,X.append=c.slots.append,X.fixedPreTip=c.slots.fixedPreTip,X.fixedTip=c.slots.fixedTip;const K=Se(i,Ho);K.disabled=!1,K.readonly=u.value||m.value,K.visible=w.value,K["onUpdate:visible"]=T,K.modelValue=y.value,K["onUpdate:modelValue"]=V,K.text=k.value,K["onUpdate:text"]=R,K.onChange=E;const Z=t.h(r,K);X.hide=()=>[Z];const le=Se(i,ye,he);return i.prop&&(le.prop=`${i.prop}_item`),t.h(a,le,X)}}}}const{componentName:Md,create:Ld,scope:zd}=G("picker-item"),Wo=Ld(Pd(Md,zd,Be,oe.CircleClose,oe.ArrowRight,St,!1)),vn=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:u,...m}=o,d={loading:!1,...m,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:u,_parent:n};return d.children&&d.children.length&&(d.children=vn(d.children,d,a)),d}),Xr=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&Xr(o.children,n)},Fd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Rd=(e,n)=>{const a={...Fd,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(u=>{u={...u};const{[l]:m,[r]:d}=u,g=c[d]=c[d]||[];!i.length&&d===o&&(i=g),g.push(u),u.children=c[m]||(c[m]=[])}),s&&Object.keys(c).forEach(u=>{c[u].length>1&&c[u].sort((m,d)=>m[s]-d[s])}),c=null,i},Od={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}},Qr=(e,n)=>n[e.textKey],zt=(e,n)=>n[e.valueKey],Kd=(e,n)=>n[e.visibleKey],Gr=(e,n)=>n[e.disabledKey],Ud=(e,n)=>{const a=n[e.doitKey];return be(a)},Hd=(e,n)=>{const a=n[e.numKey];return a==null?null:pe(n[a])},Zr=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function jd(e,n,a,o=!1){return{props:{...Od},emits:["update:modelValue","change","click"],setup(l,{slots:r,emit:s}){const i=t.computed(()=>{const W={};return W[`${e}`]=!0,W}),c=t.computed(()=>{const W={};return W[`${e}__titles`]=!0,W[`${l.direction}`]=!0,l.align==="left"&&(W.left=!0),l.scroll===!0&&(W.scrollable=!0),l.shape&&(W[`${l.shape}`]=!0),W}),u=t.computed(()=>({})),m=t.computed(()=>{if(!l.gutter)return 0;const W=fe(l.gutter);return W<=0?0:W}),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,W=>{d.value!==W&&(d.value=W,x(!1))});const g=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),S=t.computed(()=>{const W={};return y.value||(W.display="none"),W}),b=t.ref(),y=t.ref(!1),k=()=>{const W=!y.value;f(W)},f=W=>{const P=W;P?(y.value=P,setTimeout(()=>{g.value["fox-tabs-bar__popup--show"]=!0,g.value["fox-tabs-bar__popup--hide"]=!1},0)):(g.value["fox-tabs-bar__popup--show"]=!1,g.value["fox-tabs-bar__popup--hide"]=!0,b.value?b.value.addEventListener("transitionend",()=>{y.value=!1},{once:!0}):setTimeout(()=>{y.value=!1},0))},p=t.ref(),h=t.ref([]),C=(W,P)=>{h.value[P]=W},A=W=>P=>{C(P,W)},w=(W,P)=>{const L=p.value,v=h.value;if(!L||!v||!v[W])return;const Y=v[W];let z=0;l.direction==="vertical"?z=Y.offsetTop-(L.offsetHeight-Y.offsetHeight)/2:z=Y.offsetLeft-(L.offsetWidth-Y.offsetWidth)/2,N(L,z,P?0:.3,l.direction)},N=(W,P,L,v)=>{let Y=0;const z=v==="horizontal"?W.scrollLeft:W.scrollTop,F=L===0?1:Math.round(L*1e3/16);function Q(){v==="horizontal"?W.scrollLeft+=(P-z)/F:W.scrollTop+=(P-z)/F,++Y<F&&Ue(Q)}Q()},T=(W,P)=>{const L=zt(l,W),v={};return v[`${e}__titles-item`]=!0,v.disabled=Gr(l,W),v.active=L===d.value,l.shape&&(v[`${l.shape}`]=!0),l.ellipsis&&(v.ellipsis=!0),P&&(P.class&&(v[`${P.class}`]=!0),P.disabled===!0&&(v.disabled=P.disabled)),v},V=(W,P)=>{const L={};if(m.value>0){const v=Math.abs(m.value/2);l.direction==="vertical"?(L["margin-top"]=`${v}px`,L["margin-bottom"]=`${v}px`):(L["margin-left"]=`${v}px`,L["margin-right"]=`${v}px`)}return P&&P.style&&Object.assign(L,P.style),L},E=(W,P)=>`${zt(l,W)??P}`,D=(W,P)=>{const L=zt(l,W),v={};v[`${e}__popup-item`]=!0,v.disabled=Gr(l,W),v.active=L===d.value,l.shape&&(v[`${l.shape}`]=!0);const Y=Zr(l,W,P);return Y&&Y.disabled===!0&&(v.disabled=Y.disabled),v},q=t.computed(()=>(l.data??[]).filter(P=>Kd(l,P)!==!1)),R=(W,P)=>{const L=zt(l,W);if(s("click",W,P),d.value==L)return;const v=()=>{d.value=L,l.scroll&&w(P,!1),s("update:modelValue",L),s("change",W,P)};if(typeof l.beforeChange=="function"){const Y=l.beforeChange(W,P);ut(Y)?Y.then(z=>{z!==!1&&v()}).catch(()=>{v()}):Y!==!1&&v()}else v()},$=(W,P)=>function(){R(W,P)},I=(W,P)=>{R(W,P),f(!1)},M=(W,P)=>function(){I(W,P)},x=W=>{if(!Array.isArray(l.data)||!l.scroll)return;const P=l.data.findIndex(L=>zt(l,L)===d.value);P!==-1&&w(P,W)};t.watch(()=>l.data,()=>{setTimeout(x,0)}),t.onMounted(()=>{x(!0)});const H=(W,P)=>{if(r.item)return r.item({item:W,index:P});const L=Zr(l,W,P),v=[];if(r.text){const Q=r.text({item:W,index:P});v.push(Q)}else{const Q=[];if(L?.doit===!0||Ud(l,W)){const j={class:[`${e}__titles-item-tip`,"doit"]},X=t.h("view",j);Q.push(X)}const J=L?.num??Hd(l,W);if(J){let j="";const X=pe(J);X>=100?j="99+":j=`${X}`;const K={class:[`${e}__titles-item-tip`,"num"]},Z=t.h("view",K,[j]);Q.push(Z)}const ne={class:`${e}__titles-item-text`};Q.push(Qr(l,W));const O=t.h("view",ne,Q);v.push(O)}const Y={class:`${e}__titles-item-line`},z=t.h("view",Y);v.push(z);const F={ref:A(P),class:T(W,L),style:V(W,L),key:E(W,P),onClick:$(W,P)};return t.h("view",F,v)},U=()=>{const W=r.default?r.default():[];if(W.length===0)for(let L=0;L<q.value.length;L++){const v=q.value[L],Y=H(v,L);W.push(Y)}const P={ref:p,class:c.value,style:u.value};return t.h("view",P,W)},_=()=>{let W=null;r.navigation?W=r.navigation():W=t.h(a);const P={class:`${e}__navigation`,onClick:k};return t.h("view",P,[W])},ee=()=>{const W=[];for(let L=0;L<q.value.length;L++){const v=q.value[L];let Y=null;r.popupItem?Y=r.popupItem({item:v,index:L}):Y=Qr(l,v);const z={class:D(v,L),key:E(v,L),onClick:M(v,L)},F=t.h("view",z,[Y]);W.push(F)}const P={class:g.value,style:S.value};return t.h("view",P,W)};return()=>{const W=[],P=U();if(W.push(P),l.showQuickNavigation){const v=_();W.push(v);const Y=ee();W.push(Y)}const L={class:i.value};return t.h("view",L,W)}}}}const{create:Wd,componentName:Yd,scope:Xd}=G("tabs-bar"),qn=Wd(jd(Yd,Xd,oe.MoreH,!1)),Jr=Symbol("TabsStatesKey"),Qd={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Gd(e,n,a=!1){return{props:{...Qd},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:y=>{const k={name:y};i.current.value===y&&(k.loaded=!0),s.value.push(k),t.triggerRef(s)},remove:y=>{const k=s.value.findIndex(f=>f.name===y);k!==-1&&s.value.splice(k,1)},isLoaded:y=>{if(!o.lazy)return!0;const k=s.value.findIndex(f=>f.name===y);return k!==-1?i.current.value?s.value[k].loaded??!1:k===0:!1}};t.provide(Jr,i);const c=y=>{const k=s.value.findIndex(f=>f.name===y);k!==-1&&(s.value[k].loaded=!0,t.triggerRef(s))};t.watch([()=>o.modelValue,()=>o.direction],([y,k])=>{i.current.value!==y&&(i.current.value=y??"",c(y??"")),i.direction.value!==k&&(i.direction.value=k)});const u=t.ref(null),m=t.ref(null),d=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0}));let g=!0;const S=t.computed(()=>{const y={},k=s.value.length;if(k<=0)return y;const f=s.value.findIndex(p=>p.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(y.height=`${k*i.tabHeight.value}px`,f!==-1&&(y.transform=`translate(0, -${f*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(y.width=`${k*i.tabWidth.value}px`,f!==-1&&(y.transform=`translate(-${f*i.tabWidth.value}px, 0)`)),g&&(g=!1,y.transition="transform 0s ease"),y});let b=null;return t.onMounted(()=>{if(!u.value)return;const y=()=>{const k=wn(u.value);i.tabWidth.value=k.width,i.tabHeight.value=k.height};window.ResizeObserver&&(b=new window.ResizeObserver(y),b.observe(u.value)),y()}),t.onBeforeUnmount(()=>{b&&(b.disconnect(),b=null)}),()=>{const y={class:`${e}__panes`,style:S.value,ref:m},k=t.h("view",y,[r?.default?.()]),f={class:d.value,ref:u};return t.h("view",f,[k])}}}}const{create:Zd,componentName:Jd,scope:_d}=G("tabs-container"),Pn=Zd(Gd(Jd,_d,!1)),eu={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function tu(e,n,a){return{props:{...eu},setup(o,{emit:l,slots:r}){const s=t.inject(Jr);t.onMounted(()=>{s.add(o.paneKey)}),t.onBeforeUnmount(()=>{s.remove(o.paneKey)});const i=t.computed(()=>{const u={};return s.direction.value==="vertical"&&s.tabHeight.value>0?u.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(u.width=`${s.tabWidth.value}px`),u}),c=t.computed(()=>o.loaded!=null?be(o.loaded):s.isLoaded(o.paneKey));return()=>{let u=[];if(c.value)u=r?.default?.()??[];else if(r.empty)u=r.empty();else{const d={class:`${e}__empty-icon`},g=o.emptyIcon??a,S=t.h(g,d),b={class:`${e}__empty-text`},y=o.emptyText??"Loading",k=t.h("view",b,[y]),f={class:`${e}__empty`},p=t.h("view",f,[S,k]);u.push(p)}const m={class:`${e}`,style:i.value};return t.h("view",m,u)}}}}const{create:nu,componentName:ou,scope:lu}=G("tabs-pane"),Mn=nu(tu(ou,lu,oe.Loading));class _r{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=vn(n,null,this.config)}updateChildren(n,a){a?a.children=vn(n,a,this.config):this.nodes=vn(n,null,this.config)}getNodeByValue(n){let a;return Xr(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:au,scope:ru}=G("cascader-pane"),su=au({components:{Loading:oe.Loading,Checklist:oe.Checklist,TabsBar:qn,TabsContainer:Pn,TabsPane:Mn},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}=ie.useFoxI18n(ru),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 _r([],{})),c=t.ref([]),u=t.computed(()=>o.value.lazy&&!!o.value.lazyLoad),m=t.computed(()=>r.value==!0||c.value.length==0?[{text:"Loading",value:0}]:c.value.map((p,h)=>({text:p.selectedNode?p.selectedNode.text:a("select"),value:h}))),d=new Map;let g;const S=async()=>{d.clear(),c.value=[],l.value=0,r.value=!1,g=null;let{options:p}=e;o.value.convertConfig&&(p=Rd(p,o.value.convertConfig)),i.value=new _r(p,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),u.value&&!i.value.nodes.length&&await y({root:!0,loading:!0,text:"",value:""}),c.value=[{nodes:i.value.nodes,selectedNode:null}],b(!u.value)},b=async(p=!0)=>{const h=s.value;if(h===void 0||!i.value.nodes.length)return;if(h.length===0){l.value=0,c.value=[{nodes:i.value.nodes,selectedNode:null}];return}let C=h;if(u.value&&Array.isArray(h)&&h.length){C=[];let A=i.value.nodes.find(w=>w.value===h[0]);if(A){C=[A.value],r.value=!0;const w=await h.slice(1).reduce(async(N,T)=>{const V=await N;await y(V);const E=V?.children?.find(D=>D.value===T);return E&&C.push(T),Promise.resolve(E)},Promise.resolve(A));await y(w),r.value=!1}}C.length&&h===e.modelValue&&i.value.getPathNodesByValue(C).map((w,N)=>{l.value=N,f.handleNode(w,p)})},y=async p=>{if(!p)return;if(!o.value.lazyLoad){p.leaf=!0;return}if(i.value.isLeaf(p,u.value)||i.value.hasChildren(p,u.value))return;p.loading=!0;const h=p.root?null:p;let C=d.get(p);C||(C=new Promise(w=>{o.value.lazyLoad?.(p,w)}),d.set(p,C));const A=await C;Array.isArray(A)&&A.length>0?i.value.updateChildren(A,h):p.leaf=!0,p.loading=!1,d.delete(p)},k=p=>{const h=p.map(C=>C.value);s.value=h,n("change",h,p),n("pathChange",p),n("update:modelValue",h)},f={async handleNode(p,h){const{disabled:C,loading:A}=p;if(!(!h&&C||!c.value[l.value])){if(i.value.isLeaf(p,u.value)){if(p.leaf=!0,c.value[l.value].selectedNode=p,c.value=c.value.slice(0,p.level+1),!h){const w=c.value.map(N=>N.selectedNode);k(w),n("pathChange",w)}return}if(i.value.hasChildren(p,u.value)){const w=p.level+1;if(c.value[l.value].selectedNode=p,c.value=c.value.slice(0,w),c.value.push({nodes:p.children||[],selectedNode:null}),l.value=w,!h){const N=c.value.map(T=>T.selectedNode);n("pathChange",N)}return}g=p,!A&&(await y(p),g===p&&(c.value[l.value].selectedNode=p,f.handleNode(p,h)))}},handleTabChange(p,h){g=null},formatTabTitle(p){return p.selectedNode?p.selectedNode.text:a("select")},isSelected(p,h){return p.selectedNode&&p.selectedNode.value===h.value}};return t.watch([o,()=>e.options],()=>{S()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,p=>{Me(p,s.value)||(s.value=p,b(!u.value))}),t.watch(()=>e.visible,p=>{p&&Array.isArray(s.value)&&s.value.length>0&&b()}),{panes:c,panesTitles:m,initLoading:r,tabsCursor:l,...f}}}),iu={class:"fox-cascader"},cu={role:"menu",class:"fox-cascader__pane"},du=["aria-checked","aria-disabled","onClick"],uu={class:"fox-cascader__item__title"};function fu(e,n,a,o,l,r){const s=t.resolveComponent("TabsBar"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),u=t.resolveComponent("TabsPane"),m=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",iu,[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(m,{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,g)=>(t.openBlock(),t.createBlock(u,{"pane-key":g,key:g},{default:t.withCtx(()=>[t.createElementVNode("view",cu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,S=>(t.openBlock(),t.createElementBlock("view",{key:S.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,S),disabled:S.disabled}]),"aria-checked":e.isSelected(d,S),"aria-disabled":S.disabled||void 0,role:"menuitemradio",onClick:b=>e.handleNode(S,!1)},[t.createElementVNode("view",uu,t.toDisplayString(S.text),1),S.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,du))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(u,{key:1,"pane-key":0},{default:t.withCtx(()=>n[2]||(n[2]=[t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1)])),_:1}))]),_:1},8,["modelValue"])])}const mu=te(su,[["render",fu]]),{create:pu}=G("cascader"),hu=pu({components:{FoxCascaderPane:mu,FoxPopup:me},props:{...Re,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}}}),gu=["innerHTML"];function yu(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,gu)):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 Ln=te(hu,[["render",yu]]);function Ct(e,n){const a=e.textKey??"text";return n[a]??""}function wt(e,n){const a=e.valueKey??"value";return n[a]}function es(e,n){const a=e.childrenKey??"children";return n[a]}function zn(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=Ct(e,l),s=wt(e,l);a.texts.push(r),a.values.push(s??"")}return a}function ts(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Ct(e,n[s])===r){const c=wt(e,n[s])??"",u={[e.textKey]:r,[e.valueKey]:c};l.push(u);const m=es(e,n[s]);Array.isArray(m)&&ts(e,m,a,o+1,l);return}}function ns(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(wt(e,n[s])===r){const c=Ct(e,n[s])??"",u={[e.textKey]:c,[e.valueKey]:r};l.push(u);const m=es(e,n[s]);Array.isArray(m)&&ns(e,m,a,o+1,l);return}}function Yo(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=Ct(e,n[o]),r=Ct(e,a[o]);if(l!==r)return!1;const s=wt(e,n[o]),i=wt(e,a[o]);if(s!==i)return!1}return!0}let bu=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){const l="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a,o);const r=Ze(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(Ie(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await r(n,a,o))}};function ku(){const e=t.getCurrentInstance();return new bu(e.proxy)}const os={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},showAllLevels:{type:[Boolean],default:!0},separator:{type:[String],default:"/"}};function Su(e,n,a,o,l,r,s=!1){return{props:{...he,...ye,...os},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(i,c){const u=De(t.computed(()=>i.disabled)),m=Ee(t.computed(()=>i.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:g}=ie.useFoxI18n(n),S=g(i,["placeholder"]),b=t.ref(!1),y=ku(),k=t.ref([]),f=t.ref([]),p=t.computed(()=>{if(Array.isArray(f.value)){if(i.showAllLevels===!1){const F=f.value.length-1;return f.value[F]}return f.value.join(i.separator)}else return f.value}),h=t.ref([]),C=t.ref([]);t.watch([()=>i.modelValue,()=>k.value],async([F,Q])=>{if(d("setValue",F),i.lazy===!0){C.value.length==0&&(h.value=Array.isArray(F)?F:[]);return}if(i.valueType==="item"){let J=F;if(!Yo(i,J,C.value)){C.value=J;let ne=zn(i,J);f.value=ne.texts,h.value=ne.values}}else if(i.valueType==="text"){let J=F,ne=[];if(ts(i,Q,J,0,ne),!Yo(i,ne,C.value)){C.value=ne;let O=zn(i,ne);J.value=O.texts,h.value=O.values}}else{let J=[];if(ns(i,Q,F,0,J),!Yo(i,J,C.value)){C.value=J;let ne=zn(i,J);f.value=ne.texts,h.value=ne.values}}}),i.lazy===!0&&(h.value=Array.isArray(i.modelValue)?i.modelValue:[]),t.watch([()=>i.source,()=>i.params],async([F,Q])=>{i.lazy||F&&(k.value=await y.load(F,Q))},{immediate:!0});const A="fox-input-item",w=t.computed(()=>({[A]:!0,"is-disabled":u.value,"is-readonly":m.value})),N=$e(t.computed(()=>i.textAlign),"textAlign"),T=t.computed(()=>{const F={};return N.value&&(F["text-align"]=N.value),F}),V=t.ref(!1),E=()=>{u.value===!0||m.value===!0||(V.value=!0)},D=F=>{V.value=F},q=(F,Q)=>{let J=Q.map(O=>{if(O==null)return O;let j={...O};return Reflect.deleteProperty(j,"text"),j[i.textKey]=O.text??"",Reflect.deleteProperty(j,"value"),j[i.valueKey]=O.value??"",j});C.value=J;let ne=zn(i,J);f.value=ne.texts,h.value=ne.values,i.valueType==="text"?(d("change",f.value,J),d("update:modelValue",f.value)):i.valueType==="item"?(d("change",J,J),d("update:modelValue",J)):(d("change",h.value,J),d("update:modelValue",h.value)),d("update:pathNodes",J)},R=F=>{let Q=F.map(J=>{if(J==null)return J;let ne={...J};return Reflect.deleteProperty(ne,"text"),ne[i.textKey]=J.text??"",Reflect.deleteProperty(ne,"value"),ne[i.valueKey]=J.value??"",ne});d("pathChange",Q)},$=F=>{b.value=!0,d("focus",h.value,F)},I=F=>{setTimeout(()=>{b.value=!1},0),d("blur",h.value,F)},M=t.computed(()=>({[`${A}__append`]:!0,"is-disabled":u.value,"is-readonly":m.value})),x=t.computed(()=>ke(i.unit)>0),H=t.computed(()=>ke(i.unit)>0&&!b.value),U=t.computed(()=>({hidden:!H.value})),_=F=>{C.value=[],f.value=[],h.value=[],d("update:modelValue",[]),d("change",[],F),d("clear",[]),d("update:pathNodes",[])},ee=t.computed(()=>i.clearable&&!u.value&&!m.value),W=t.computed(()=>{let F=h.value&&h.value.length>0;return i.clearable&&F&&b.value}),P=F=>{W.value?_(F):E()},L=t.computed(()=>W.value&&ee.value?o:l),v=t.computed(()=>({action:!0}));let Y=null;const z=()=>typeof Y=="function"?Y:typeof i.lazyLoad=="function"?i.lazyLoad:(Y=async(F,Q)=>{const J=[],ne=[];let O=0;if(!F.root){let X=F;for(;X;){const K=Ct(i,X),Z=wt(i,X);ne.splice(0,0,K),J.splice(0,0,Z),X=X._parent}O=J.length}const j=await y.load(i.source,{...F,level:O,pathLabels:ne,pathValues:J},!0);Q(j)},Y);return()=>{const F={class:w.value,style:T.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:E,onFocus:$,onBlur:I};s&&(F.disabled=!0);const Q=[],J=t.h("input",F);Q.push(J);const ne=[],O={class:["action-icon"]},j=t.h(L.value,O),X={class:v.value,onClick:P},K=t.h("view",X,{default:()=>[j]});if(ne.push(K),x.value){const dt=t.h("view",{class:U.value},[i.unit]);ne.push(dt)}const Z={class:M.value},le=t.h("view",Z,{default:()=>ne});Q.push(le);const ae={default:()=>Q};ae.label=c.slots.default,ae.prepend=c.slots.prepend,ae.append=c.slots.append,ae.fixedPreTip=c.slots.fixedPreTip,ae.fixedTip=c.slots.fixedTip;let se={};se.visible=V.value,se["onUpdate:visible"]=D,se.modelValue=h.value,se.onChange=q,se.onPathChange=R,se.title=i.title,se.valueKey=i.valueKey,se.textKey=i.textKey,se.childrenKey=i.childrenKey,se.convertConfig=i.convertConfig,i.lazy?(se.lazy=!0,se.lazyLoad=z()):se.options=k.value;const de=t.h(r,se);ae.hide=()=>[de];const Ne={...ft(i,os)};return i.prop&&(Ne.prop=`${i.prop}_item`),t.h(a,Ne,ae)}}}}const{componentName:Cu,create:wu,scope:Nu}=G("cascader-item"),Xo=wu(Su(Cu,Nu,Be,oe.CircleClose,oe.ArrowRight,Ln,!1));var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ls={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",u="day",m="week",d="month",g="quarter",S="year",b="date",y="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},h=function(R,$,I){var M=String(R);return!M||M.length>=$?R:""+Array($+1-M.length).join(I)+R},C={s:h,z:function(R){var $=-R.utcOffset(),I=Math.abs($),M=Math.floor(I/60),x=I%60;return($<=0?"+":"-")+h(M,2,"0")+":"+h(x,2,"0")},m:function R($,I){if($.date()<I.date())return-R(I,$);var M=12*(I.year()-$.year())+(I.month()-$.month()),x=$.clone().add(M,d),H=I-x<0,U=$.clone().add(M+(H?-1:1),d);return+(-(M+(I-x)/(H?x-U:U-x))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:d,y:S,w:m,d:u,D:b,h:c,m:i,s,ms:r,Q:g}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},A="en",w={};w[A]=p;var N=function(R){return R instanceof D},T=function R($,I,M){var x;if(!$)return A;if(typeof $=="string"){var H=$.toLowerCase();w[H]&&(x=H),I&&(w[H]=I,x=H);var U=$.split("-");if(!x&&U.length>1)return R(U[0])}else{var _=$.name;w[_]=$,x=_}return!M&&x&&(A=x),x||!M&&A},V=function(R,$){if(N(R))return R.clone();var I=typeof $=="object"?$:{};return I.date=R,I.args=arguments,new D(I)},E=C;E.l=T,E.i=N,E.w=function(R,$){return V(R,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var D=function(){function R(I){this.$L=T(I.locale,null,!0),this.parse(I)}var $=R.prototype;return $.parse=function(I){this.$d=function(M){var x=M.date,H=M.utc;if(x===null)return new Date(NaN);if(E.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var U=x.match(k);if(U){var _=U[2]-1||0,ee=(U[7]||"0").substring(0,3);return H?new Date(Date.UTC(U[1],_,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ee)):new Date(U[1],_,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ee)}}return new Date(x)}(I),this.$x=I.x||{},this.init()},$.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},$.$utils=function(){return E},$.isValid=function(){return this.$d.toString()!==y},$.isSame=function(I,M){var x=V(I);return this.startOf(M)<=x&&x<=this.endOf(M)},$.isAfter=function(I,M){return V(I)<this.startOf(M)},$.isBefore=function(I,M){return this.endOf(M)<V(I)},$.$g=function(I,M,x){return E.u(I)?this[M]:this.set(x,I)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(I,M){var x=this,H=!!E.u(M)||M,U=E.p(I),_=function(F,Q){var J=E.w(x.$u?Date.UTC(x.$y,Q,F):new Date(x.$y,Q,F),x);return H?J:J.endOf(u)},ee=function(F,Q){return E.w(x.toDate()[F].apply(x.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(Q)),x)},W=this.$W,P=this.$M,L=this.$D,v="set"+(this.$u?"UTC":"");switch(U){case S:return H?_(1,0):_(31,11);case d:return H?_(1,P):_(0,P+1);case m:var Y=this.$locale().weekStart||0,z=(W<Y?W+7:W)-Y;return _(H?L-z:L+(6-z),P);case u:case b:return ee(v+"Hours",0);case c:return ee(v+"Minutes",1);case i:return ee(v+"Seconds",2);case s:return ee(v+"Milliseconds",3);default:return this.clone()}},$.endOf=function(I){return this.startOf(I,!1)},$.$set=function(I,M){var x,H=E.p(I),U="set"+(this.$u?"UTC":""),_=(x={},x[u]=U+"Date",x[b]=U+"Date",x[d]=U+"Month",x[S]=U+"FullYear",x[c]=U+"Hours",x[i]=U+"Minutes",x[s]=U+"Seconds",x[r]=U+"Milliseconds",x)[H],ee=H===u?this.$D+(M-this.$W):M;if(H===d||H===S){var W=this.clone().set(b,1);W.$d[_](ee),W.init(),this.$d=W.set(b,Math.min(this.$D,W.daysInMonth())).$d}else _&&this.$d[_](ee);return this.init(),this},$.set=function(I,M){return this.clone().$set(I,M)},$.get=function(I){return this[E.p(I)]()},$.add=function(I,M){var x,H=this;I=Number(I);var U=E.p(M),_=function(P){var L=V(H);return E.w(L.date(L.date()+Math.round(P*I)),H)};if(U===d)return this.set(d,this.$M+I);if(U===S)return this.set(S,this.$y+I);if(U===u)return _(1);if(U===m)return _(7);var ee=(x={},x[i]=o,x[c]=l,x[s]=a,x)[U]||1,W=this.$d.getTime()+I*ee;return E.w(W,this)},$.subtract=function(I,M){return this.add(-1*I,M)},$.format=function(I){var M=this,x=this.$locale();if(!this.isValid())return x.invalidDate||y;var H=I||"YYYY-MM-DDTHH:mm:ssZ",U=E.z(this),_=this.$H,ee=this.$m,W=this.$M,P=x.weekdays,L=x.months,v=function(Q,J,ne,O){return Q&&(Q[J]||Q(M,H))||ne[J].slice(0,O)},Y=function(Q){return E.s(_%12||12,Q,"0")},z=x.meridiem||function(Q,J,ne){var O=Q<12?"AM":"PM";return ne?O.toLowerCase():O},F={YY:String(this.$y).slice(-2),YYYY:this.$y,M:W+1,MM:E.s(W+1,2,"0"),MMM:v(x.monthsShort,W,L,3),MMMM:v(L,W),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:v(x.weekdaysMin,this.$W,P,2),ddd:v(x.weekdaysShort,this.$W,P,3),dddd:P[this.$W],H:String(_),HH:E.s(_,2,"0"),h:Y(1),hh:Y(2),a:z(_,ee,!0),A:z(_,ee,!1),m:String(ee),mm:E.s(ee,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:U};return H.replace(f,function(Q,J){return J||F[Q]||U.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(I,M,x){var H,U=E.p(M),_=V(I),ee=(_.utcOffset()-this.utcOffset())*o,W=this-_,P=E.m(this,_);return P=(H={},H[S]=P/12,H[d]=P,H[g]=P/3,H[m]=(W-ee)/6048e5,H[u]=(W-ee)/864e5,H[c]=W/l,H[i]=W/o,H[s]=W/a,H)[U]||W,x?P:E.a(P)},$.daysInMonth=function(){return this.endOf(d).$D},$.$locale=function(){return w[this.$L]},$.locale=function(I,M){if(!I)return this.$L;var x=this.clone(),H=T(I,M,!0);return H&&(x.$L=H),x},$.clone=function(){return E.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()},R}(),q=D.prototype;return V.prototype=q,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",u],["$M",d],["$y",S],["$D",b]].forEach(function(R){q[R[1]]=function($){return this.$g($,R[0],R[1])}}),V.extend=function(R,$){return R.$i||(R($,D,V),R.$i=!0),V},V.locale=T,V.isDayjs=N,V.unix=function(R){return V(1e3*R)},V.en=w[A],V.Ls=w,V.p={},V})})(ls);var Bu=ls.exports;const Ke=Xe(Bu);var as={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,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(y){return(y=+y)+(y>68?1900:2e3)},u=function(y){return function(k){this[y]=+k}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var f=k.match(/([+-]|\d\d)/g),p=60*f[1]+(+f[2]||0);return p===0?0:f[0]==="+"?-p:p}(y)}],d=function(y){var k=i[y];return k&&(k.indexOf?k:k.s.concat(k.f))},g=function(y,k){var f,p=i.meridiem;if(p){for(var h=1;h<=24;h+=1)if(y.indexOf(p(h,0,k))>-1){f=h>12;break}}else f=y===(k?"pm":"PM");return f},S={A:[s,function(y){this.afternoon=g(y,!1)}],a:[s,function(y){this.afternoon=g(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[l,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[r,u("seconds")],ss:[r,u("seconds")],m:[r,u("minutes")],mm:[r,u("minutes")],H:[r,u("hours")],h:[r,u("hours")],HH:[r,u("hours")],hh:[r,u("hours")],D:[r,u("day")],DD:[l,u("day")],Do:[s,function(y){var k=i.ordinal,f=y.match(/\d+/);if(this.day=f[0],k)for(var p=1;p<=31;p+=1)k(p).replace(/\[|\]/g,"")===y&&(this.day=p)}],M:[r,u("month")],MM:[l,u("month")],MMM:[s,function(y){var k=d("months"),f=(d("monthsShort")||k.map(function(p){return p.slice(0,3)})).indexOf(y)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[s,function(y){var k=d("months").indexOf(y)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,u("year")],YY:[l,function(y){this.year=c(y)}],YYYY:[/\d{4}/,u("year")],Z:m,ZZ:m};function b(y){var k,f;k=y,f=i&&i.formats;for(var p=(y=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,E,D){var q=D&&D.toUpperCase();return E||f[D]||a[D]||f[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,$,I){return $||I.slice(1)})})).match(o),h=p.length,C=0;C<h;C+=1){var A=p[C],w=S[A],N=w&&w[0],T=w&&w[1];p[C]=T?{regex:N,parser:T}:A.replace(/^\[|\]$/g,"")}return function(V){for(var E={},D=0,q=0;D<h;D+=1){var R=p[D];if(typeof R=="string")q+=R.length;else{var $=R.regex,I=R.parser,M=V.slice(q),x=$.exec(M)[0];I.call(E,x),V=V.replace(x,"")}}return function(H){var U=H.afternoon;if(U!==void 0){var _=H.hours;U?_<12&&(H.hours+=12):_===12&&(H.hours=0),delete H.afternoon}}(E),E}}return function(y,k,f){f.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var p=k.prototype,h=p.parse;p.parse=function(C){var A=C.date,w=C.utc,N=C.args;this.$u=w;var T=N[1];if(typeof T=="string"){var V=N[2]===!0,E=N[3]===!0,D=V||E,q=N[2];E&&(q=N[2]),i=this.$locale(),!V&&q&&(i=f.Ls[q]),this.$d=function(M,x,H){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1e3:1)*M);var U=b(x)(M),_=U.year,ee=U.month,W=U.day,P=U.hours,L=U.minutes,v=U.seconds,Y=U.milliseconds,z=U.zone,F=new Date,Q=W||(_||ee?1:F.getDate()),J=_||F.getFullYear(),ne=0;_&&!ee||(ne=ee>0?ee-1:F.getMonth());var O=P||0,j=L||0,X=v||0,K=Y||0;return z?new Date(Date.UTC(J,ne,Q,O,j,X,K+60*z.offset*1e3)):H?new Date(Date.UTC(J,ne,Q,O,j,X,K)):new Date(J,ne,Q,O,j,X,K)}catch{return new Date("")}}(A,T,w),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),D&&A!=this.format(T)&&(this.$d=new Date("")),i={}}else if(T instanceof Array)for(var R=T.length,$=1;$<=R;$+=1){N[1]=T[$-1];var I=f.apply(this,N);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}$===R&&(this.$d=new Date(""))}else h.call(this,C)}}})})(as);var Au=as.exports;const Tu=Xe(Au);var rs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o,l){var r=o.prototype,s=r.format;l.en.ordinal=function(i){var c=["th","st","nd","rd"],u=i%100;return"["+i+(c[(u-20)%10]||c[u]||c[0])+"]"},r.format=function(i){var c=this,u=this.$locale();if(!this.isValid())return s.bind(this)(i);var m=this.$utils(),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(g){switch(g){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return u.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return u.ordinal(c.week(),"W");case"w":case"ww":return m.s(c.week(),g==="w"?1:2,"0");case"W":case"WW":return m.s(c.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return m.s(String(c.$H===0?24:c.$H),g==="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 g}});return s.bind(this)(d)}}})})(rs);var Vu=rs.exports;const $u=Xe(Vu);var ss={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o,l){var r=o.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,g,S,b,y){var k=d.name?d:d.$locale(),f=s(k[g]),p=s(k[S]),h=f||p.map(function(A){return A.slice(0,b)});if(!y)return h;var C=k.weekStart;return h.map(function(A,w){return h[(w+(C||0))%7]})},c=function(){return l.Ls[l.locale()]},u=function(d,g){return d.formats[g]||function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,y,k){return y||k.slice(1)})}(d.formats[g.toUpperCase()])},m=function(){var d=this;return{months:function(g){return g?g.format("MMMM"):i(d,"months")},monthsShort:function(g){return g?g.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):i(d,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return u(d.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return m.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(g){return u(d,g)},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 Eu=ss.exports;const Du=Xe(Eu);var is={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,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 u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(o).add(1,o).date(u),d=s(this).endOf(a);if(m.isBefore(d))return 1}var g=s(this).startOf(o).date(u).startOf(a).subtract(1,"millisecond"),S=this.diff(g,a,!0);return S<0?s(this).startOf("week").week():Math.ceil(S)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(is);var Iu=is.exports;const xu=Xe(Iu);var cs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,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}}})})(cs);var vu=cs.exports;const qu=Xe(vu);var ds={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,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")}}})})(ds);var Pu=ds.exports;const Mu=Xe(Pu);var us={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(us);var Lu=us.exports;const zu=Xe(Lu);var fs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(fs);var Fu=fs.exports;const Ru=Xe(Fu);Ke.extend(Du),Ke.extend($u),Ke.extend(Tu),Ke.extend(xu),Ke.extend(qu),Ke.extend(Mu),Ke.extend(zu),Ke.extend(Ru);const re={format(e,n){return Ke(e).format(n)},parser(e,n){return Ke(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const 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,u=r+(6-s)*864e5,m=this.date2Str(new Date(c)),d=this.date2Str(new Date(u));return[m,d]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,u=r+(7-s)*i,m=this.date2Str(new Date(c)),d=this.date2Str(new Date(u));return[m,d]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=re.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=re.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const 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}},ms=new Date().getFullYear(),Qo={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"},Fn=(e,n,a)=>{let o;if(He(n)?o=n:typeof n=="string"&&ke(n)>0?o=re.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)},Go=(e,n,a)=>{He(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),re.format(new Date(o),a)};let Zo={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(ms-10,0,1),validator:He},maxDate:{type:Date,default:()=>new Date(ms+10,11,31),validator:He},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:Ou,scope:Ku}=G("date-picker"),Uu=Ou({components:{[St.name]:St},props:{...Zo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(Ku),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,p=>{l.value=p});function r(p,h){return new Date(p,h,0).getDate()}const s=(p,h)=>{const C=e[`${p}Date`],A=C.getFullYear();let w=1,N=1,T=0,V=0;p==="max"&&(w=12,N=r(h.getFullYear(),h.getMonth()+1),T=23,V=59);const E=V;return h.getFullYear()===A&&(w=C.getMonth()+1,h.getMonth()+1===w&&(N=C.getDate(),h.getDate()===N&&(T=C.getHours(),h.getHours()===T&&(V=C.getMinutes())))),{[`${p}Year`]:A,[`${p}Month`]:w,[`${p}Date`]:N,[`${p}Hour`]:T,[`${p}Minute`]:V,[`${p}Seconds`]:E}},i=t.computed(()=>{if(!g.value)return[];const{maxYear:p,maxDate:h,maxMonth:C,maxHour:A,maxMinute:w,maxSeconds:N}=s("max",g.value),{minYear:T,minDate:V,minMonth:E,minHour:D,minMinute:q,minSeconds:R}=s("min",g.value);let $=[{type:"year",range:[T,p]},{type:"month",range:[E,C]},{type:"day",range:[V,h]},{type:"hour",range:[D,A]},{type:"minute",range:[q,w]},{type:"seconds",range:[R,N]}];switch(e.type){case"date":$=$.slice(0,3);break;case"datetime":$=$.slice(0,5);break;case"time":$=$.slice(3,6);break;case"year-month":$=$.slice(0,2);break;case"month-day":$=$.slice(1,3);break;case"datehour":$=$.slice(0,4);break;case"hour-minute":$=$.slice(3,5);break}return $}),c=(p,h,C)=>{if(!(h>p))return null;const A=[];for(;p<=h;)e.isShowChinese?A.push({text:p+o[C],value:p}):A.push({text:`${p}`,value:p}),C==="minute"?p+=e.minuteStep:p++;return A},u=t.computed(()=>{let p=[];return i.value.forEach(h=>{let C=c(h.range[0],h.range[1],h.type);C&&p.push(C)}),p}),m=(p,h)=>p==="year"?h.getFullYear():p==="month"?h.getMonth()+1:p==="day"?h.getDate():p==="hour"?h.getHours():p==="minute"?h.getMinutes():p==="seconds"?h.getSeconds():0,d=t.ref(),g=t.ref(null);t.watch(()=>e.modelValue,p=>{let h;if(typeof p=="string"?p.length==0?h=new Date:e.valueFormat?h=Fn(e,e.modelValue,e.valueFormat):h=Fn(e,p,Qo[e.type]):He(p)?h=p:h=new Date,!!h&&(!g.value||h.getTime()!==g.value.getTime())){g.value=h;let C=[];i.value.forEach(A=>{let w=m(A.type,h);C.push(w)}),d.value=C}},{immediate:!0});const S=p=>{if(e.type==="date"){const h=p[0],C=p[1]-1,A=Math.min(p[2],r(h,C+1));A!==p[2]&&(p[2]=A),g.value=new Date(h,C,A)}else if(e.type==="datetime"){const h=p[0],C=p[1]-1,A=Math.min(p[2],r(h,C+1)),w=p[3],N=p[4];A!==p[2]&&(p[2]=A),g.value=new Date(h,C,A,w,N)}else if(e.type==="time"){const h=p[0],C=p[1],A=p[2],w=g.value??new Date,N=new Date(w.getFullYear(),w.getMonth(),w.getDate(),h,C,A);g.value=N}else if(e.type==="year-month"){const h=p[0],C=p[1]-1;g.value=new Date(h,C)}else if(e.type==="month-day"){const C=(g.value??new Date).getFullYear(),A=p[0]-1,w=Math.min(p[1],r(C,A+1));w!==p[1]&&(p[1]=w);const N=new Date(C,A,w);g.value=N}else if(e.type==="datehour"){const h=p[0],C=p[1]-1,A=Math.min(p[2],r(h,C+1)),w=p[3];A!==p[2]&&(p[2]=A),g.value=new Date(h,C,A,w)}else if(e.type==="hour-minute"){const h=p[0],C=p[1],A=g.value??new Date,w=new Date(A.getFullYear(),A.getMonth(),A.getDate(),h,C);g.value=w}d.value=p};return{columns:u,dateIndexs:d,show:l,onChange:p=>{S(p)},onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:p=>{S(p),l.value=!1;let h=g.value??new Date;if(e.valueFormat){let C=Go(e,h,e.valueFormat);n("update:modelValue",C)}else n("update:modelValue",h);n("update:visible",!1),n("confirm",p)},onClear:()=>{n("clear")}}}});function Hu(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,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Rn=te(Uu,[["render",Hu]]),ju={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Wu(e){let n=e.format;if(!n){let a=e.type??"date";n=Qo[a]}return n}function Yu(e,n,a,o,l,r,s=!1){return{props:{...he,...ye,...Zo,...ju},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const u=De(t.computed(()=>i.disabled)),m=Ee(t.computed(()=>i.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:g}=ie.useFoxI18n(n),S=g(i,["placeholder"]),b=t.ref(!1),k=Pe(i,"modelValue",P=>P==null?null:typeof P=="string"?P.length==0?null:i.valueFormat?Fn(i,P,i.valueFormat)??P:Fn(i,P,Qo[i.type])??P:He(P)?P:null,d),f=t.computed(()=>{if(!k.value)return"";const P=Wu(i);return Go(i,k.value,P)}),p="fox-input-item",h=t.computed(()=>({[p]:!0,"is-disabled":u.value,"is-readonly":m.value})),C=$e(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const P={};return C.value&&(P["text-align"]=C.value),P}),w=t.ref(!1),N=()=>{w.value=!0},T=()=>{w.value=!1};c.expose({showPicker:N,hidePicker:T});const V=P=>{w.value=P},E=P=>{if(k.value=P,i.valueFormat){let L=Go(i,P,i.valueFormat);d("update:modelValue",L,{}),d("change",L,{})}else d("update:modelValue",P,{}),d("change",P,{})},D=P=>{let v=P.target.value;b.value=!0,d("focus",v,P)},q=P=>{setTimeout(()=>{b.value=!1},0);let v=P.target.value;i.maxLength&&v.length>Number(i.maxLength)&&(v=v.slice(0,Number(i.maxLength))),d("blur",v,P)},R=t.computed(()=>({[`${p}__append`]:!0,"is-disabled":u.value,"is-readonly":m.value})),$=t.computed(()=>ke(i.unit)>0),I=t.computed(()=>ke(i.unit)>0&&!b.value),M=t.computed(()=>({hidden:!I.value})),x=P=>{k.value="",d("update:modelValue","",P),d("change","",P),d("clear",""),T()},H=t.computed(()=>i.clearable&&!u.value&&!m.value),U=t.computed(()=>{let P=ke(k.value)>0;return i.clearable&&P&&b.value}),_=P=>{U.value?x(P):N()},ee=t.computed(()=>U.value&&H.value?o:l),W=t.computed(()=>({action:!0}));return()=>{const P={class:h.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:D,onBlur:q};s&&(P.disabled=!0);const L=[],v=t.h("input",P);L.push(v);const Y=[],z={class:["action-icon"]},F=t.h(ee.value,z),Q={class:W.value,onClick:_},J=t.h("view",Q,{default:()=>[F]});if(Y.push(J),$.value){const de=t.h("view",{class:M.value},[i.unit]);Y.push(de)}const ne={class:R.value},O=t.h("view",ne,{default:()=>Y});L.push(O);const j={default:()=>L};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 X=Se(i,Zo);X.valueFormat=null,X.disabled=!1,X.readonly=u.value||m.value,X.visible=w.value,X["onUpdate:visible"]=V,X.modelValue=k.value,X["onUpdate:modelValue"]=E,X.onClear=x;const K={};if(c.slots.top){const de=c.slots.top();K.top=()=>de}if(c.slots.bottom){const de=c.slots.bottom();K.default=()=>de}const Z=t.h(r,X,K);j.hide=()=>[Z];const ae={...Se(i,ye,he)};return i.prop&&(ae.prop=`${i.prop}_item`),t.h(a,ae,j)}}}}const{create:Xu,componentName:Qu,scope:Gu}=G("date-item"),Jo=Xu(Yu(Qu,Gu,Be,oe.CircleClose,oe.Date,Rn,!1)),Zu=39,Ju=64,{create:_u,scope:ef}=G("calendar-pane"),tf=_u({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:re.getDay(0)},endDate:{type:String,default:re.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=ie.useFoxI18n(ef),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),u=t.ref(null),m=t.ref(null),d=t.ref(null),g=t.ref(0),S=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),b=t.computed(()=>a.btn),y=t.computed(()=>a["top-info"]),k=t.computed(()=>a["bottom-info"]),f=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),p=z=>z.split("-"),h=z=>re.isEqual(f.currDate[0],z),C=z=>re.isEqual(f.currDate[1],z),A=z=>f.currDate?.length>0?f.currDate?.some(F=>re.isEqual(F,z)):!1,w=(z,F)=>F.curData[0]+"-"+F.curData[1]+"-"+re.getNumTwoBit(+z.day),N=(z,F)=>{const Q=w(z,F),{type:J}=e;return z.type=="curr"?re.isEqual(f.currDate,Q)||(J=="range"||J=="week")&&(h(Q)||C(Q))||J=="multiple"&&A(Q)?`${f.dayPrefix}--active`:f.propStartDate&&re.compareDate(Q,f.propStartDate)||f.propEndDate&&re.compareDate(f.propEndDate,Q)?`${f.dayPrefix}--disabled`:(J=="range"||J=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&re.compareDate(f.currDate[0],Q)&&re.compareDate(Q,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},T=()=>{const{type:z}=e;if(z=="range"&&f.chooseData.length==2||z!="range"){let F=f.chooseData.slice(0);z=="week"&&(F={weekDate:[E(f.chooseData[0]),E(f.chooseData[1])]}),n("choose",F),e.poppable&&n("update")}},V=(z,F,Q=!1)=>{if(N(z,F)!=`${f.dayPrefix}--disabled`){const{type:J}=e;let[ne,O]=F.curData,j=[...F.curData];if(j[2]=re.getNumTwoBit(Number(z.day)),j[3]=`${j[0]}-${j[1]}-${j[2]}`,j[4]=re.getWhatDay(+j[0],+j[1],+j[2]),J=="multiple")if(f.currDate?.length>0){let X;f.currDate?.forEach((K,Z)=>{K==j[3]&&(X=Z)}),Q?f.chooseData.push([...j]):X!==void 0?(f.currDate.splice(X,1),f.chooseData.splice(X,1)):(f.currDate.push(j[3]),f.chooseData.push([...j]))}else f.currDate=[j[3]],f.chooseData=[[...j]];else if(J=="range"){let X=Object.values(f.currDate).length;X==2||X==0?f.currDate=[j[3]]:re.compareDate(f.currDate[0],j[3])?Array.isArray(f.currDate)&&f.currDate.push(j[3]):Array.isArray(f.currDate)&&f.currDate.unshift(j[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...j]]:re.compareDate(f.chooseData[0][3],j[3])?f.chooseData=[...f.chooseData,[...j]]:f.chooseData=[[...j],...f.chooseData]}else if(J=="week"){let X=re.getWeekDate(ne,O,z.day,e.firstDayOfWeek);f.propStartDate&&re.compareDate(X[0],f.propStartDate)&&X.splice(0,1,f.propStartDate),f.propEndDate&&re.compareDate(f.propEndDate,X[1])&&X.splice(1,1,f.propEndDate),f.currDate=X,f.chooseData=[re.formatResultDate(X[0]),re.formatResultDate(X[1])]}else f.currDate=j[3],f.chooseData=[...j];if(!Q){let X=f.chooseData;J=="week"&&(X={weekDate:[E(f.chooseData[0]),E(f.chooseData[1])]}),n("select",X),(e.isAutoBackFill||!e.poppable)&&T()}}},E=z=>{let[F,Q,J]=z;return{date:z,monthWeekNum:re.getMonthWeek(F,Q,J,e.firstDayOfWeek),yearWeekNum:re.getYearWeek(F,Q,J,e.firstDayOfWeek)}},D=z=>{const F=f.monthsData[f.monthsData.length-1];let Q=parseInt(F.curData[0]),J=parseInt(F.curData[1].toString().replace(/^0/,""));switch(z){case"prev":J==1&&(Q-=1),J=J==1?12:--J;break;case"next":J==12&&(Q+=1),J=J==12?1:++J;break}return[Q+"",re.getNumTwoBit(J),re.getMonthDays(String(Q),String(J))+""]},q=(z,F,Q)=>{let{year:J,month:ne}=Q;return Array.from(Array(z),(O,j)=>({day:String(j+1),type:F,year:J,month:ne}))},R=(z,F,Q,J)=>{z=z-e.firstDayOfWeek;let{year:ne,month:O}=Q;return z>=7&&(z-=7),Array.from(Array(J),(X,K)=>({day:String(K+1),type:F,year:ne,month:O})).slice(J-z)},$=(z,F)=>{const Q=re.getMonthPreDay(+z[0],+z[1]);let J=Number(z[1])-1,ne=Number(z[0]);J<=0&&(J=12,ne+=1);const O=re.getMonthDays(String(z[0]),String(z[1])),j=re.getMonthDays(ne+"",J+""),X={year:z[0],month:z[1]},K={curData:z,title:l("monthTitle",{year:X.year,month:X.month}),monthData:[...R(Q,"prev",{month:String(J),year:String(ne)},j),...q(O,"curr",X)],cssHeight:0,cssScrollHeight:0},Z=K.monthData.length>35?6:5;K.cssHeight=Zu+Ju*Z;let le=0;f.monthsData.length>0&&(le=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),K.cssScrollHeight=le,(!f.endData||!re.compareDate(`${f.endData[0]}-${f.endData[1]}-${re.getMonthDays(f.endData[0],f.endData[1])}`,`${z[0]}-${z[1]}-${z[2]}`))&&f.monthsData.push(K)},I=()=>{let z=e.startDate?e.startDate:re.getDay(0),F=e.endDate?e.endDate:re.getDay(365);f.propStartDate=z,f.propEndDate=F,f.startData=p(z),f.endData=p(F),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const Q={year:Number(f.startData[0]),month:Number(f.startData[1])},J={year:Number(f.endData[0]),month:Number(f.endData[1])};let ne=J.month-Q.month;J.year-Q.year>0&&(ne=ne+12*(J.year-Q.year)),ne<=0&&(ne=1),$(f.startData);let O=1;do $(D("next"));while(O++<ne);if(f.monthsNum=ne,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(z&&re.compareDate(f.currDate[0],z)&&f.currDate.splice(0,1,z),F&&re.compareDate(F,f.currDate[1])&&f.currDate.splice(1,1,F),f.defaultData=[...p(f.currDate[0]),...p(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let j=[],X={};f.currDate.forEach(K=>{z&&!re.compareDate(K,z)&&F&&!re.compareDate(F,K)&&(Object.hasOwnProperty.call(X,K)||(j.push(K),X[K]=K))}),f.currDate=[...j],f.defaultData=[...p(j[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[j,X,K]=p(f.currDate[0]),Z=re.getWeekDate(j,X,K,e.firstDayOfWeek);f.currDate=Z,z&&re.compareDate(f.currDate[0],z)&&f.currDate.splice(0,1,z),F&&re.compareDate(F,f.currDate[1])&&f.currDate.splice(1,1,F),f.defaultData=[...p(f.currDate[0]),...p(f.currDate[1])]}}else f.currDate&&(z&&re.compareDate(f.currDate,z)?f.currDate=z:F&&!re.compareDate(f.currDate,F)&&(f.currDate=F),f.defaultData=[...p(f.currDate)])};ve({scrollToDate:z=>{re.compareDate(z,f.propStartDate)?z=f.propStartDate:re.compareDate(z,f.propEndDate)||(z=f.propEndDate);let F=p(z);f.monthsData.forEach((Q,J)=>{if(Q.title==l("monthTitle",{year:F[0],month:F[1]})&&c.value){let ne=f.monthsData[J].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let O=0,j=setInterval(()=>{if(O++,c.value){let X=ne/10;c.value.scrollTop=c.value.scrollTop+X}O>=10&&(clearInterval(j),c.value&&(c.value.scrollTop=f.monthsData[J].cssScrollHeight))},40)}else c.value.scrollTop=f.monthsData[J].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let z=0,F=0;f.defaultData.length>0&&f.monthsData.forEach((ne,O)=>{ne.title==l("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(z=O),(e.type=="range"||e.type=="week")&&ne.title==l("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(F=O)}),U(f.monthsNum,z),f.currentIndex=z,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(V({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),V({day:f.defaultData[5],type:"curr"},f.monthsData[F],!0)):e.type=="week"?V({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(ne=>{let O=p(ne),j=f.currentIndex;f.monthsData.forEach((X,K)=>{X.title==l("monthTitle",{year:O[0],month:O[1]})&&(j=K)}),V({day:O[2],type:"curr"},f.monthsData[j],!0)}):V({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let Q=f.monthsData[f.monthsData.length-1],J=Q.cssHeight+Q.cssScrollHeight;Qe(()=>{c?.value&&u?.value&&d?.value&&(g.value=c.value.clientHeight,u.value.style.height=`${J}px`,c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(J/(f.monthsNum+1))}});const U=(z,F)=>{z>=3?F>0&&F<z?f.defaultRange=[F-1,F+3]:F==0?f.defaultRange=[F,F+4]:F==z&&(f.defaultRange=[F-2,F+2]):f.defaultRange=[0,z+2];let Q=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=Q},_=(z,F)=>(e.type=="range"||e.type=="week")&&z.type=="curr"&&N(z,F)=="fox-calendar__day--active",ee=(z,F)=>_(z,F)&&h(w(z,F)),W=(z,F)=>f.currDate.length>=2&&C(w(z,F))?_(z,F):!1,P=()=>{if(f.currDate.length>=2)return re.isEqual(f.currDate[0],f.currDate[1])},L=z=>{const F=`${z.year}-${z.month}-${Number(z.day)<10?"0"+z.day:z.day}`;return re.isEqual(F,re.date2Str(new Date))},v=z=>{if(f.monthsData.length<=1)return;const F=z.target.scrollTop;let Q=Math.floor(F/f.avgHeight);if(Q==0)F>=f.monthsData[Q+1].cssScrollHeight&&(Q+=1);else if(Q>0&&Q<f.monthsNum-1)F>=f.monthsData[Q+1].cssScrollHeight&&(Q+=1),F<f.monthsData[Q].cssScrollHeight&&(Q-=1);else{const J=Math.round(F+g.value);J<f.monthsData[Q].cssScrollHeight+f.monthsData[Q].cssHeight&&F>f.monthsData[Q-1].cssScrollHeight&&(Q-=1),Q+1<=f.monthsNum&&J>=f.monthsData[Q+1].cssScrollHeight+f.monthsData[Q+1].cssHeight&&(Q+=1),Q>=1&&F<f.monthsData[Q-1].cssScrollHeight&&(Q-=1)}f.currentIndex!==Q&&(f.currentIndex=Q,U(f.monthsNum,Q)),f.yearMonthTitle=f.monthsData[Q].title},Y=()=>{f.chooseData.splice(0),f.monthsData.splice(0),I()};return I(),t.watch(()=>e.defaultValue,z=>{z&&e.poppable&&Y()}),{weeks:i,compConthsData:S,showTopBtn:b,topInfo:y,bottomInfo:k,rangeTip:P,mothsViewScroll:v,getClass:N,isStartTip:ee,isEndTip:W,chooseDay:V,isCurrDay:L,confirm:T,months:c,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:u,weeksPanel:m,viewArea:d}}}),nf={class:"fox-calendar__header"},of={key:0,class:"fox-calendar__header-title"},lf={key:1,class:"fox-calendar__header-slot"},af={key:2,class:"fox-calendar__header-subtitle"},rf={class:"fox-calendar__weekdays",ref:"weeksPanel"},sf={class:"fox-calendar__panel",ref:"monthsPanel"},cf={class:"fox-calendar__month-title"},df={class:"fox-calendar__days"},uf=["onClick"],ff={class:"fox-calendar__day-value"},mf={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},pf={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},hf={key:2,class:"fox-calendar__day-tips--curr"},gf={key:4,class:"fox-calendar__day-tip"},yf={key:0,class:"fox-calendar__footer"};function bf(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",nf,[e.showTitle?(t.openBlock(),t.createElementBlock("view",of,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",lf,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",af,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",rf,[(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",sf,[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",cf,t.toDisplayString(s.title),1),t.createElementVNode("view",df,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:m=>e.chooseDay(c,s)},[t.createElementVNode("view",ff,[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",mf,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",pf,[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",hf,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",gf,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,uf))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",yf,[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 ps=te(tf,[["render",bf]]),kf=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),On={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:Sf}=G("calendar"),Cf=Sf({components:{[ps.name]:ps,[me.name]:me},props:{...On},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=y=>{i.value?.scrollToDate(y)},u=()=>{i.value?.initPosition()};t.watch(()=>e.visible,y=>{y&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),ve({scrollToDate:c,initPosition:u});const m=()=>{n("update:visible",!1)},d=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{d()},update:m,close:d,select:y=>{n("select",y)},choose:y=>{d(),n("choose",y)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function wf(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 Kn=te(Cf,[["render",wf]]),hs={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}},_o=(e,n)=>{let a;return He(e)?a=e:typeof e=="string"&&ke(e)>0?a=re.parser(e,n):a=new Date,a},Nt=(e,n,a)=>(He(n)||(n=new Date),re.format(n,a)),Bt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=re.date2Str(e),r=re.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function Nf(e,n,a,o,{CloseIcon:l,MarkIcon:r},s=!1){return{props:{...he,...ye,...On,...hs},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const u=De(t.computed(()=>i.disabled)),m=Ee(t.computed(()=>i.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:g}=ie.useFoxI18n(n),S=g(i,["placeholder"]),b=t.ref(!1),y=t.computed(()=>i.type==="range"),k=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),f=()=>{k.startDate!==null&&(k.startDate=null,k.endDate=null,k.startArray=[],k.endArray=[])},p=(v,Y="one",z="YYYY-MM-DD")=>{if(kf(v)){f();return}if(y.value&&Array.isArray(v)&&v.length==2){let F,Q;typeof v[0]=="string"?(F=_o(v[0],z),Q=_o(v[1],z)):(F=v[0],Q=v[1]);let J=Bt(F),ne=Bt(Q);(k.startDate===null||k.startDate.getTime()!==F.getTime()||k.endDate?.getTime()!==Q.getTime())&&(k.startDate=F,k.startArray=J,k.endDate=Q,k.endArray=ne)}else{let F;typeof v=="string"?F=_o(v,z):F=v;let Q=Bt(F);(k.startDate===null||k.startDate.getTime()!==F.getTime())&&(k.startDate=F,k.startArray=Q)}};p(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,v=>{p(v,i.type,i.valueFormat),d("setValue",v)});const h=t.computed(()=>{if(k.startDate===null)return"";if(y.value){let v=Nt(i,k.startDate,i.format),Y=Nt(i,k.endDate,i.format);return`${v} ${i.rangeSeparator} ${Y}`}else{let v=Nt(i,k.startDate,i.format);return i.showWeek&&(v=`${v} ${k.startArray[4]}`),v}}),C=t.computed(()=>{if(k.startDate===null)return null;if(y.value){let v=re.date2Str(k.startDate),Y=re.date2Str(k.endDate??new Date);return[v,Y]}else return re.date2Str(k.startDate)}),A="fox-input-item",w=t.computed(()=>({[A]:!0,"is-disabled":u.value,"is-readonly":m.value})),N=$e(t.computed(()=>i.textAlign),"textAlign"),T=t.computed(()=>{const v={};return N.value&&(v["text-align"]=N.value),v}),V=t.ref(!1),E=()=>{m.value||u.value||(V.value=!0)},D=v=>{V.value=v},q=v=>{if(v){if(y.value&&Array.isArray(v)){let Y=v[0],z=pe(Y[0]),F=pe(Y[1]),Q=pe(Y[2]),J=new Date(z,F-1,Q),ne=v[1];z=pe(ne[0]),F=pe(ne[1]),Q=pe(ne[2]);let O=new Date(z,F-1,Q);if(k.startDate=J,k.startArray=Bt(J),k.endDate=O,k.endArray=Bt(O),i.valueFormat){let j=Nt(i,J,i.valueFormat),X=Nt(i,O,i.valueFormat);d("update:modelValue",[j,X],{})}else d("update:modelValue",[J,O],{})}else{let Y=v,z=pe(Y[0]),F=pe(Y[1]),Q=pe(Y[2]),J=new Date(z,F-1,Q);if(k.startDate=J,k.startArray=Bt(J),i.valueFormat){let ne=Nt(i,J,i.valueFormat);d("update:modelValue",ne,{})}else d("update:modelValue",J,{})}d("change",v,{})}},R=v=>{let z=v.target.value;b.value=!0,d("focus",z,v)},$=v=>{setTimeout(()=>{b.value=!1},0);let z=v.target.value;i.maxLength&&z.length>Number(i.maxLength)&&(z=z.slice(0,Number(i.maxLength))),d("blur",z,v)},I=t.computed(()=>({[`${A}__append`]:!0,"is-disabled":u.value,"is-readonly":m.value})),M=t.computed(()=>ke(i.unit)>0),x=t.computed(()=>ke(i.unit)>0&&!b.value),H=t.computed(()=>({hidden:!x.value})),U=v=>{f(),d("update:modelValue",null,v),d("change","",v),d("clear","")},_=t.computed(()=>i.clearable&&!u.value&&!m.value),ee=t.computed(()=>{let v=ke(h.value)>0;return i.clearable&&v&&b.value}),W=v=>{ee.value?U(v):E()},P=t.computed(()=>ee.value&&_.value?l:r),L=t.computed(()=>({action:!0}));return()=>{const v={class:w.value,style:T.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:h.value,onClick:E,onFocus:R,onBlur:$};s&&(v.disabled=!0);const Y=[],z=t.h("input",v);Y.push(z);const F=[],Q={class:["action-icon"]},J=t.h(P.value,Q),ne={class:L.value,onClick:W},O=t.h("view",ne,{default:()=>[J]});if(F.push(O),M.value){const Ne=t.h("view",{class:H.value},[i.unit]);F.push(Ne)}const j={class:I.value},X=t.h("view",j,{default:()=>F});Y.push(X);const K={default:()=>Y};K.label=c.slots.default,K.prepend=c.slots.prepend,K.append=c.slots.append,K.fixedPreTip=c.slots.fixedPreTip,K.fixedTip=c.slots.fixedTip;const Z=Se(i,On);Z.visible=V.value,Z["onUpdate:visible"]=D,Z["default-value"]=C.value,Z.onChoose=q;const le={};if(c.slots.btn){const Ne=c.slots.btn();le.btn=()=>Ne}c.slots.day&&(le.day=c.slots.day),c.slots.topInfo&&(le.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(le.bottomInfo=c.slots.bottomInfo);const ae=t.h(a,Z,le);K.hide=()=>[ae];const de={...ft(i,On,hs)};return i.prop&&(de.prop=`${i.prop}_item`),t.h(o,de,K)}}}}const{componentName:Bf,create:Af,scope:Tf}=G("calendar-item"),el=Af(Nf(Bf,Tf,Kn,Be,{CloseIcon:oe.CircleClose,MarkIcon:oe.Date},!1)),Vf={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 $f(e,{CheckNormal:n,Checked:a}){return{props:{...Vf},setup(o,{emit:l,slots:r}){const s=t.inject("parent",null),i=Nn(),c=t.computed(()=>s.label.value===o.label),u=t.computed(()=>s.position),m=()=>{const y=[];if(c.value){if(r.checkedIcon)return r.checkedIcon();{const k=fe(o.iconSize),f=o.checkedIcon??i.radio.Checked??a;return y.push("fox-radio__icon"),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h(f,{width:k,height:k,class:y})}}else{if(r.icon)return r.icon();{const k=fe(o.iconSize),f=o.icon??i.radio.CheckNormal??n;return y.push("fox-radio__icon--unchecked"),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h(f,{width:k,height:k,class:y})}}},d=()=>{const y=[`${e}__label`];return o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h("view",{class:y},r.default?.())},g=()=>{const y=[`${e}__button`];return c.value&&y.push(`${e}__button--active`),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h("view",{class:y},r.default?.())},S=()=>{c.value||o.disabled||o.readonly||s.updateValue(o.label)},b=u.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${b?`${e}--reverse`:""}`,onClick:S},[o.shape=="button"?g():b?[d(),m()]:[m(),d()]])}}}const{componentName:Ef,create:Df}=G("radio"),Un=Df($f(Ef,{CheckNormal:oe.CheckNormal,Checked:oe.CheckChecked})),{componentName:gs,create:If}=G("radio-group"),Hn=If({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:a}=gt(),o=l=>a("update:modelValue",l);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:o}),t.watch(()=>e.modelValue,l=>a("change",l)),()=>{const l={};return e.textAlign&&(l["text-align"]=e.textAlign),t.h("view",{class:`${gs} ${gs}--${e.direction}`,style:l},n.default?.())}}});function ys(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(jn(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if(Ft(e,r)===a)return l}return-1}function jn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ft(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function xf(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 qf=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`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Pf(){const e=t.getCurrentInstance();return new qf(e.proxy)}function Mf(e){return{text:e,value:e}}const bs={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},Lf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},zf={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,Object],default:""}};function Ff(e,n,a,o,l){return{props:{...he,...ye,...bs,...Lf,...zf},emits:["change","update:modelValue","setValue"],setup(r,s){const i=Ee(t.computed(()=>r.readonly)),c=De(t.computed(()=>r.disabled)),u=$e(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return c.value}},r.prop??s.attrs.name),d=Pf(),g=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,p])=>{if(f){const h=await d.load("radio",f,p);if(h.length>0)if(typeof h[0]=="string"){const w=h.map(N=>Mf(N));g.value=w}else g.value=h;else g.value=[]}},{immediate:!0});let S=t.ref(-1);t.watch([()=>r.modelValue,()=>g.value],async([f,p])=>{S.value=ys(r,p,f,r.valueType),m("setValue",f)},{deep:!0});const b=t.computed(()=>{if(!r.source)return r.modelValue;if(S.value===-1)return null;const f=g.value[S.value];return Ft(r,f)}),y=f=>{let p=null,h=null;if(g.value.length>0){let C=ys(r,g.value,f,"value");S.value=C,C>=0&&(h=g.value[C],r.valueType==="text"?p=jn(r,h):r.valueType==="item"?p=h:p=Ft(r,h))}else p=f;m("update:modelValue",p),m("change",p,h)},k=()=>{let f=null,p=null;if(g.value.length>0&&S.value!==-1){let h=g.value[S.value];r.valueType==="text"?f=jn(r,h):r.valueType==="item"?f=h:f=Ft(r,h)}m("update:modelValue",f),m("change",f,p)};if(ve({clear(){S.value!==-1&&(S.value=-1,k())}}),r.source){const f=()=>{const p=[],h=Se(r,bs);return g.value.forEach((C,A)=>{const w=Ft(r,C),N=xf(r,C);let T={...h,label:w,disabled:N};const V=vf(r,C,A);T={...T,...V},c.value&&(T.disabled=!0),i.value&&(T.readonly=!0);const E={};if(s.slots.icon&&(E.icon=s.slots.icon),s.slots.checkedIcon&&(E.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const q=s.slots.text(C);E.default=()=>[q]}else{const q=jn(r,C);E.default=()=>q}let D=t.h(l,T,E);p.push(D)}),p};return()=>{const p=f(),h={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:b,"onUpdate:modelValue":y},C=t.h(o,h,{default:()=>p}),A={default:()=>C};A.label=s.slots.default,A.prepend=s.slots.prepend,A.append=s.slots.append,A.fixedPreTip=s.slots.fixedPreTip,A.fixedTip=s.slots.fixedTip;const N={...Se(r,ye,he)};return r.prop&&(N.prop=`${r.prop}_item`),t.h(a,N,A)}}else return()=>{const f=s.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:b,"update:modelValue":y},{default:()=>f})}}}}const{componentName:Rf,create:Of,scope:Kf}=G("radio-item"),tl=Of(Ff(Rf,Kf,Be,Hn,Un)),Uf=(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,{slots:r}){const{emitEvent:s}=gt(),i=Nn(),c=t.inject("parent",null),u=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,h=>{u.partialSelect=h});const m=t.computed(()=>!!c),d=t.computed(()=>m.value?c.value.value.includes(l.label):!!l.modelValue),g=t.computed(()=>m.value?c.position:l.textPosition);let S="";const b=(h,C)=>{S="click",s("update:modelValue",h),s("change",h,C)};t.watch(()=>l.modelValue,h=>{S=="click"?S="":s("change",h)});const y=()=>{const h=[];if(u.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const C=fe(l.iconSize),A=l.indeterminateIcon??i.checkbox.Indeterminate??o;return h.push("fox-checkbox__icon--indeterminate"),l.disabled&&h.push("is-disabled"),l.readonly&&h.push("is-readonly"),t.h(A,{width:C,height:C,class:h})}}else if(d.value){if(r.checkedIcon)return r.checkedIcon();{const C=fe(l.iconSize),A=l.checkedIcon??i.checkbox.Checked??a;return h.push("fox-checkbox__icon"),l.disabled&&h.push("is-disabled"),l.readonly&&h.push("is-readonly"),t.h(A,{width:C,height:C,class:h})}}else{if(r.icon)return r.icon();{const C=fe(l.iconSize),A=l.icon??i.checkbox.CheckNormal??n;return h.push("fox-checkbox__icon--unchecked"),l.disabled&&h.push("is-disabled"),l.readonly&&h.push("is-readonly"),t.h(A,{width:C,height:C,class:h})}}},k=()=>{const h=[`${e}__label`];return l.disabled&&h.push("is-disabled"),l.readonly&&h.push("is-readonly"),t.h("view",{class:h},r.default?.())},f=()=>{const h=[`${e}__button`];return d.value&&h.push(`${e}__button--active`),l.disabled&&h.push("is-disabled"),l.readonly&&h.push("is-readonly"),t.h("view",{class:h},r.default?.())},p=h=>{if(!(l.disabled||l.readonly)){if(d.value&&u.partialSelect){u.partialSelect=!1,b(d.value,r.default?.()[0].children);return}if(b(!d.value,r.default?.()[0].children),m.value){const C=c.value.value,A=c.max.value,{label:w}=l,N=C.indexOf(w);N>-1?C.splice(N,1):N<=-1&&(C.length<A||!A)&&C.push(w),c.updateValue(C)}}};return t.onMounted(()=>{m.value&&c.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{m.value&&c.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${l.shape} ${g.value==="left"?`${e}--reverse`:""}`,onClick:p},[l.shape=="button"?f():[y(),k()]])}}),{componentName:Hf,create:jf}=G("checkbox"),Wn=jf(Uf(Hf,{CheckNormal:oe.CheckNormal,Checked:oe.Checked,Indeterminate:oe.CheckDisabled})),{create:Wf,componentName:ks}=G("checkbox-group"),Yn=Wf({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:a}=gt(),o=t.reactive({children:[]}),l=u=>{u.proxy&&o.children.push(u.proxy)},r=u=>{u.proxy&&(o.children=o.children.filter(m=>m!==u.proxy))},s=u=>{a("update:modelValue",u),a("change",u)},i=u=>{const m=[];u&&o.children.forEach(d=>{d?.disabled||m.push(d?.label)}),a("update:modelValue",m)},c=()=>{const u=o.children.filter(m=>m?.disabled?!1:!e.modelValue.includes(m.label)).map(m=>m.label);a("update:modelValue",u)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:l,unlink:r}),t.watch(()=>e.modelValue,u=>{a("change",u)}),ve({toggleAll:i,toggleReverse:c}),()=>{const u={};return e.textAlign&&(u["text-align"]=e.textAlign),t.h("view",{class:`${ks} ${ks}--${e.direction}`,style:u},n.default?.())}}});function Ss(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(nl(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if(Xn(e,r)===a)return l}return-1}function nl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Xn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Yf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Xf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Qf=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`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Gf(){const e=t.getCurrentInstance();return new Qf(e.proxy)}function Zf(e){return{text:e,value:e}}const Jf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Cs={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},_f={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 em(e,n,a,o,l){return{props:{...he,...ye,...Jf,...Cs,..._f},emits:["change","update:modelValue","setValue"],setup(r,s){const i=De(t.computed(()=>r.disabled)),c=Ee(t.computed(()=>r.readonly)),u=$e(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return i.value}},r.prop??s.attrs.name),d=Gf(),g=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,p])=>{if(f){const h=await d.load("checkbox",f,p);if(h.length>0)if(typeof h[0]=="string"){const w=h.map(N=>Zf(N));g.value=w}else g.value=h;else g.value=[]}},{immediate:!0});const S=t.ref([]);t.watch([()=>r.modelValue,()=>g.value],async([f,p])=>{const h=[];Array.isArray(f)&&f.forEach(C=>{let A=Ss(r,p,C,r.valueType);A!==-1&&h.push(A)}),!Me(h,S.value)&&(S.value=h,m("setValue",h))},{deep:!0});const b=t.computed(()=>{if(!r.source)return r.modelValue;let f=[];return S.value.forEach(p=>{let h=g.value[p];f.push(Xn(r,h))}),f}),y=f=>{let p=[],h=[];if(g.value.length>0){const C=[];Array.isArray(f)&&f.forEach(A=>{let w=Ss(r,g.value,A,"value");w!==-1&&C.push(w);const N=g.value[w];h.push(N),r.valueType==="text"?p.push(nl(r,N)):r.valueType==="item"?p.push(N):p.push(Xn(r,N))}),S.value=C}else p=f;m("update:modelValue",p),m("change",p,h)},k=t.ref();if(ve({toggleAll:f=>{k.value.toggleAll(f)},toggleReverse:()=>{k.value.toggleReverse()}}),r.source){const f=()=>{const p=[],h=Se(r,Cs);return g.value.forEach((C,A)=>{const w=Xn(r,C),N=Yf(r,C);let T={...h,label:w,disabled:N};const V=Xf(r,C,A);T={...T,...V},i.value&&(T.disabled=!0),c.value&&(T.readonly=!0);const E={};if(s.slots.icon&&(E.icon=s.slots.icon),s.slots.checkedIcon&&(E.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(E.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const q=s.slots.text(C);E.default=()=>[q]}else{const q=nl(r,C);E.default=()=>q}let D=t.h(l,T,E);p.push(D)}),p};return()=>{const p=f(),h={class:`${e}`,ref:k,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:b.value,"onUpdate:modelValue":y},C=t.h(o,h,{default:()=>p}),A={default:()=>C};A.label=s.slots.default,A.prepend=s.slots.prepend,A.append=s.slots.append,A.fixedPreTip=s.slots.fixedPreTip,A.fixedTip=s.slots.fixedTip;const N={...Se(r,ye,he)};return r.prop&&(N.prop=`${r.prop}_item`),t.h(a,N,A)}}else return()=>{const f=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:k,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:u.value,modelValue:b,"onUpdate:modelValue":y},{default:()=>f})}}}}const{componentName:tm,create:nm,scope:om}=G("checkbox-item"),ol=nm(em(tm,om,Be,Yn,Wn)),ll={modelValue:{type:[String,Boolean,Number],default:!1},disabled:{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:lm,create:am}=G("switch"),rm=am({components:{Loading1:oe.Loading1},props:{...ll},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const i=lm;return{[i]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-base`]:!0,"is-disabled":e.disabled}}),l=t.computed(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disabled||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}}}),sm={class:"fox-switch-button"};function im(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",sm,[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 Qn=te(rm,[["render",im]]);function cm(e,n,a,o){return{props:{...he,...ye,...ll},emits:["change","update:modelValue","setValue"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),u=e,m=Pe(l,"modelValue",null,c),d=g=>{m.value=g,c("update:modelValue",g,{}),c("change",g,{})};return()=>{const S={...Se(l,ll),disabled:s.value||i.value,value:m.value,"onUpdate:modelValue":d},b=[],y=t.h(o,S);b.push(y);const k={default:()=>b};k.label=r.slots.default,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const p={...Se(l,ye,he)};return l.prop&&(p.prop=`${l.prop}_item`),p["content-class"]=u,t.h(a,p,k)}}}}const{componentName:dm,create:um,scope:fm}=G("switch-item"),al=um(cm(dm,fm,Be,Qn));function mm(e,n,a,o){return{props:{...he,...ye,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:u}=ie.useFoxI18n(n),m=u(l,["placeholder"]),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,q=>{d.value=q,c("change",q)});const g=t.computed(()=>({[`${e}`]:!0})),S=t.computed(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&ue(d.value),"is-disabled":s.value,"is-readonly":i.value})),b=$e(t.computed(()=>l.textAlign),"textAlign"),y=t.computed(()=>{const q={};return b.value&&(q["text-align"]=b.value),q}),k=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),f=t.computed(()=>ue(d.value)?m.placeholder.value:d.value),p=t.computed(()=>!ue(l.desc)||r.slots.sub),h=t.computed(()=>({[`${e}__sub`]:!0})),C=t.computed(()=>{const q={};return b.value&&(q["text-align"]=b.value),q}),A=()=>{c("focus",d.value)},w=()=>{c("blur",d.value)},N=t.computed(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),T=t.computed(()=>ke(l.unit)>0),V=q=>{s.value==!0||i.value==!0||c("click")},E=t.computed(()=>l.icon??a),D=t.computed(()=>({action:!0}));return()=>{const q=[];if(typeof r.slots.content=="function"){const L=r.slots.content();q.push(L)}else{const L=[];if(k.value){const z={tabIndex:0,class:S.value,style:y.value,onFocus:A,onBlur:w};let F=null;r.slots.main?F=t.h("view",z,[r.slots.main(f.value)]):F=t.h("view",z,[f.value]),L.push(F)}if(p.value){const z={tabIndex:0,class:h.value,style:C.value,onFocus:A,onBlur:w};let F=null;r.slots.sub?F=t.h("view",z,[r.slots.sub(l.desc)]):F=t.h("view",z,[l.desc]),L.push(F)}const v={class:g.value,onClick:V},Y=t.h("view",v,L);q.push(Y)}const R=[],$=fe(l.iconSize);let I=r.slots.icon;if(!I){const L={width:$,height:$,class:["action-icon"]};I=t.h(E.value,L)}const M={class:D.value,onClick:V},x=t.h("view",M,{default:()=>[I]});if(R.push(x),T.value){const L=t.h("view",{},[l.unit]);R.push(L)}const H={class:N.value},U=t.h("view",H,{default:()=>R});q.push(U);const _={default:()=>q};_.label=r.slots.default,_.prepend=r.slots.prepend,_.append=r.slots.append,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const W={...Se(l,ye,he)};return l.prop&&(W.prop=`${l.prop}_item`),t.h(o,W,_)}}}}const{componentName:pm,create:hm,scope:gm}=G("link-item"),rl=hm(mm(pm,gm,oe.ArrowRight,Be)),sl={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:ym,componentName:bm}=G("rate"),km=ym({props:{...sl},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[bm]:!0})),r=S=>{n("update:modelValue",S),n("change",S)},s=(S,b)=>{if(e.disabled||e.readonly)return;let y=0;b===1&&e.modelValue===b||(y=b,e.allowHalf&&S==2&&(y-=.5)),r(y)},i=(S,b,y)=>{let k=0;for(let f=b.value.length-1;f>=0;f--){const p=b.value[f];if(S>p.offsetLeft){y?k=f+(S>p.offsetLeft+p.clientWidth/2?1:.5):k=f+1;break}}return k},c=_e(),u={onTouchStart(S){!e.touchable||e.readonly||c.start(S)},onTouchMove(S){e.touchable&&(c.move(S),c.isHorizontal()&&o.value&&(S.preventDefault(),r(i(c.moveX.value,o,e.allowHalf))))}},m=Math.random().toString(36).slice(-8),d=t.computed(()=>e.customIcon??oe.StarFillN);return{classes:l,...u,onClick:s,toPxDesc:ge,renderIcon:(S,b)=>t.h(S,b),rateRefs:o,refRandomId:m,slots:a,customIcon:d}}}),Sm=["id"],Cm={class:"fox-rate-item__icon--full"},wm={key:0,class:"fox-rate-item__icon--half"},Nm={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",Cm,[(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",wm,[(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",Nm,[(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,Sm))),128))],34)}const At=te(km,[["render",Bm]]);function Am(e,n,a,o){return{props:{...he,...ye,...sl},emits:["change","update:modelValue","setValue"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),u=e,m=Pe(l,"modelValue",null,c),d=g=>{m.value=g,c("update:modelValue",g,{}),c("change",g,{})};return()=>{const S={...Se(l,sl),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":d},b=[],y=t.h(o,S);b.push(y);const k={default:()=>b};if(r.slots.default){const h=r.slots.default();k.label=()=>h}const f=Se(l,ye,he);return l.prop&&(f.prop=`${l.prop}_item`),f["content-class"]=u,t.h(a,f,k)}}}}const{componentName:Tm,create:Vm,scope:$m}=G("rate-item"),il=Vm(Am(Tm,$m,Be,At)),Em=/scroll|auto|overlay/i,ws=window;function Dm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function cl(e,n=ws){let a=e;for(;a&&a!==n&&Dm(a);){const{overflowY:o}=window.getComputedStyle(a);if(Em.test(o))return a;a=a.parentNode}return n}function Ns(e,n=ws){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=cl(e.value,n))}),a}const Bs=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Im={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 xm(e,n,a){return{props:{...Im},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["pullText","loadText","loadMoreText"]),c=t.ref(),u=Ns(c),m=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=t.computed(()=>({[e]:!0})),g=p=>p?p.offsetTop+g(p.offsetParent):0,S=()=>{let p=0,h=0,C="down";if(u.value==window){const A=Bs();c.value&&(p=g(c.value)+c.value.offsetHeight-A-window.innerHeight),h=A}else{const{scrollHeight:A,clientHeight:w,scrollTop:N}=u.value;p=A-w-N,h=N}return m.beforeScrollTop>h?C="up":C="down",m.beforeScrollTop=h,l("scroll-change",h),p<=o.threshold&&C=="down"},b=()=>{Qe(()=>{if(!S()||!o.hasMore||m.isInfiniting)return!1;m.isInfiniting=!0,l("update:modelValue",!0),t.nextTick(()=>l("load-more"))})},y=()=>{u.value&&u.value.addEventListener("scroll",b,o.useCapture)},k=()=>{u.value&&u.value.removeEventListener("scroll",b,o.useCapture)};t.onMounted(()=>{y(),o.immediate&&b()}),t.onUnmounted(()=>{k()});const f=t.ref(!1);return t.onActivated(()=>{f.value&&(f.value=!1,y())}),t.onDeactivated(()=>{f.value=!0,k()}),t.watch(()=>o.modelValue,p=>{p||(m.isInfiniting=!1)}),()=>{const p={class:"fox-infinite__container"},h=t.h("view",p,[r?.default?.()]),C=[];if(m.isInfiniting){let T=r?.loading?.()??null;if(!T){let D=r?.loadingIcon?.()??null;if(!D){const $={class:["fox-infinite__bottom-box__img"]};D=t.h(a,$)}const q={class:"fox-infinite__bottom-box__text"},R=t.h("view",q,[i.loadText.value]);T=[D,R]}const V={class:"fox-infinite__bottom-box"},E=t.h("view",V,T);C.push(E)}else if(!o.hasMore){let T=r?.finished?.()??null;if(!T){const V={class:"fox-infinite__bottom-tips"};T=t.h("view",V,[i.loadMoreText.value]),C.push(T)}}const A={class:"fox-infinite__bottom"},w=t.h("view",A,C),N={class:d.value,ref:c};return t.h("view",N,[h,w])}}}}const{componentName:vm,create:qm,scope:Pm}=G("infinite-loading"),Gn=qm(xm(vm,Pm,oe.Loading)),{componentName:Mm,create:Lm}=G("button"),zm=Lm({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:u,block:m}=t.toRefs(e),d=b=>{!i.value&&!s.value&&n("click",b)},g=t.computed(()=>{const b=Mm;return{[b]:!0,[`${b}--${o.value}`]:o.value,[`${b}--${l.value}`]:l.value,[`${b}--${r.value}`]:r.value,[`${b}--plain`]:u.value,[`${b}--block`]:m.value,[`${b}--disabled`]:s.value,[`${b}--loading`]:i.value}}),S=t.computed(()=>{const b={};return c?.value&&(u.value?(b.color=c.value,b.background="#fff",c.value?.includes("gradient")||(b.borderColor=c.value)):(b.color="#fff",b.background=c.value)),b});return{handleClick:d,classes:g,getStyle:S}}}),Fm={class:"fox-button__wrap"};function Rm(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",Fm,[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 ze=te(zm,[["render",Rm]]),Om={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},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Km=(e,n,a)=>({props:{...Om},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(o,{slots:l}){const{emitEvent:r}=gt(),{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["placeholder"]),c=t.reactive({active:!1}),u=t.computed(()=>({background:o.background})),m=t.computed(()=>({background:o.inputBackground})),d=V=>{let D=V.target.value;o.maxLength&&D.length>Number(o.maxLength)&&(D=D.slice(0,Number(o.maxLength))),r("update:modelValue",D,V),r("change",D,V)},g=t.ref({}),S=V=>{let D=V.target.value;c.active=!0,g.value=o.focusStyle,r("focus",D,V)},b=V=>{setTimeout(()=>{c.active=!1},0);let D=V.target.value;o.maxLength&&D.length>Number(o.maxLength)&&(D=D.slice(0,Number(o.maxLength))),g.value={},r("blur",D,V)},y=V=>{r("update:modelValue","",V),r("change","",V),r("clear","")},k=t.computed(()=>String(o.modelValue).length>0),f=t.computed(()=>{const V={};return k.value||(V.display="none"),V}),p=V=>{o.autoblur&&N.value?.blur(),(typeof V.cancelable!="boolean"||V.cancelable)&&V.preventDefault(),r("search",o.modelValue)},h=V=>{r("keyup-input",V)},C=V=>{r("click-input",V)},A=V=>{r("click-left-icon",o.modelValue,V)},w=t.computed(()=>({textAlign:o.inputAlign})),N=t.ref(null);t.onMounted(()=>{o.autofocus&&N.value.focus()});const T=()=>{const V=[];if(l.leftin){const M={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:A},x=t.h("view",M,[l.leftin()]);V.push(x)}const E={class:`${e}__input-inner-input`,ref:N,style:w.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:S,onBlur:b,onkeyup:h},D=t.h("input",E),q={class:[`${e}__input-inner`],action:"#",onSubmit:p},R=t.h("form",q,[D]);V.push(R);const $=[];if(o.clearable){const M={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:y},x=l?.clear?.()??o.clearIcon??a,H=t.h("view",M,[t.h(x)]);$.push(H)}if(l.rightin){const M={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},x=t.h("view",M,[l.rightin()]);$.push(x)}if($.length>0){const M={class:`${e}__input-inner-right`},x=t.h("view",M,$);V.push(x)}const I={class:[`${e}__search-input`,`${o.shape}`],style:{...m.value,...g.value}};return t.h("view",I,V)};return()=>{const V=[];if(o.label){const q={class:`${e}__search-label`},R=t.h("span",q,[o.label]);V.push(R)}if(l.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},R=t.h("view",q,[l.leftout()]);V.push(R)}const E=T();if(V.push(E),l.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},R=t.h("view",q,[l.rightout()]);V.push(R)}const D={class:`${e}`,style:u.value};return t.h("view",D,V)}}}),{componentName:Um,create:Hm,scope:jm}=G("searchbar"),Zn=Hm(Km(Um,jm,oe.CircleClose)),Jn={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,String,Object],default(){return[]}},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},searchDelayTriggerClear:{type:Number,default:250},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Wm(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(_n(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if(Ts(e,r)===a)return l}return-1}function _n(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function As(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Ts(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ym(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Xm(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Qm=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let u=a;typeof i=="function"&&(u=u.filter(i));let m=(o-1)*l,d=m+l;d>u.length&&(d=u.length);const g=u.slice(m,d);return{totalSize:u.length,page:g}}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:[]}):(Ie(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r]))}};function Gm(){const e=t.getCurrentInstance();return new Qm(e.proxy)}function Zm(e,n,a,o,l,r,s,i,c,u,m){return{props:{...Jn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{slots:g}){const{emitEvent:S}=gt(),{toLocaleRefs:b}=ie.useFoxI18n(n),y=b(d,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),k=Gm(),f=t.ref([]),p=t.ref(0),h=t.ref(""),C=t.shallowRef(null),A=t.computed(()=>{const O={};return d.params&&Object.assign(O,d.params),ue(h.value)||(O[`${d.searchKey}`]=h.value),C.value&&Object.assign(O,C.value),O});let w=!0;const N=async(O,j,X)=>{try{if(V.value===!1)return;let K=null;ue(h.value)||(K=le=>{const ae=_n(d,le);if(typeof ae=="string"&&ae.includes(h.value))return!0;const se=As(d,le);return!!(typeof se=="string"&&se.includes(h.value))});const Z=await k.load("actionsheet",O,j,X,A.value,w,K??void 0);w=!1,Array.isArray(Z)?(f.value=Z,p.value=1,V.value=!1):!Array.isArray(Z.page)||Z.page.length===0?(console.warn("[FoxUI] can not load more data"),V.value=!1):(Reflect.apply([].push,f.value,Z.page),p.value=Math.ceil(f.value.length/d.pageSize),(Z.totalSize&&f.value.length>=Z.totalSize||X<Z.page.length)&&(V.value=!1)),T.value=!1}catch(K){console.error("[FoxUI] ActionSheet load more data fail",K),V.value=!0,p.value=0,f.value=[]}setTimeout(()=>{S("loaded-data")},250)},T=t.ref(!1),V=t.ref(!0),E=async()=>{if(!d.source){T.value=!1;return}await N(d.source,p.value+1,d.pageSize)};let D=null;t.watch(h,(O,j)=>{D&&(clearTimeout(D),D=null),ue(O)&&!ue(j)&&(D=setTimeout(()=>{R()},d.searchDelayTriggerClear))});const q=()=>{V.value=!0,p.value=0,f.value=[],d.source&&E()},R=()=>{q()};t.watch([()=>d.source,()=>d.pageSize,()=>d.params],async([O,j,X])=>{d.source&&q()},{immediate:!0});const $=t.computed(()=>!d.multiple&&d.isAutoBackFill),I=t.ref([]);let M=null;const x=t.ref(d.visible);t.watch(()=>d.visible,O=>{x.value!==O&&(x.value=O),O?M=[...I.value]:M=null});const H=(O,j)=>{const X=[];return Array.isArray(O)||(O=[O]),O.forEach(K=>{let Z=Wm(d,j,K,d.valueType);Z!==-1&&X.push(Z)}),Me(X,I.value)?!1:(I.value=X,!0)};t.watch([()=>d.modelValue,()=>f.value],([O,j],[X,K])=>{if(H(O,j)){const le=U();_(le)}},{deep:!0});const U=()=>{const O=[],j=[],X=[];for(let ae of I.value){const se=f.value[ae];j.push(se);const de=_n(d,se);if(X.push(de),d.valueType==="item")O.push(se);else if(d.valueType==="text")O.push(de);else{const Ve=Ts(d,se);O.push(Ve)}}let K=null,Z=null,le=null;return d.multiple?(K=O,Z=X,le=j):(K=O[0]??null,Z=X[0]??null,le=j[0]??null),{value:K,text:Z,item:le}},_=O=>{S("update:modelValue",O.value),S("update:text",O.text),S("change",O.value,O.item,O.text)},ee=()=>{M&&(I.value=M)},W=O=>{const j=I.value.indexOf(O);d.multiple?j===-1?I.value.push(O):I.value.splice(j,1):j===-1?I.value=[O]:I.value=[],($.value||!d.poppable&&!d.showFooter)&&v()},P=O=>{x.value=O,S("update:visible",O)},L=()=>{const O=()=>{ee(),P(!1)},j=d.beforeMethod??d.beforeClose;if(typeof j=="function"){const X=j("close");ut(X)?X.then(K=>{K!==!1&&O()}).catch(()=>{O()}):X!==!1&&O()}else O()},v=()=>{const O=U(),j=()=>{_(O),P(!1)},X=d.beforeMethod??d.beforeClose;if(typeof X=="function"){const K=X("confirm",O.value,O.item,O.text);ut(K)?K.then(Z=>{Z!==!1&&j()}).catch(()=>{j()}):K!==!1&&j()}else j()},Y=()=>{let O=y.title.value??"";g.title&&(O=g.title());const j=t.h("view",{class:["fox-actionsheet__header-title"]},[O]),X=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:L});return t.h("view",{class:["fox-actionsheet__header"]},[j,X])},z=()=>{let O=null;if(g.search)O=g.search();else{const j={onSearch:q,placeholder:y.seachPlaceholder.value,disabled:d.disabled,modelValue:h.value,"onUpdate:modelValue":X=>{h.value=X}};O=t.h(r,j,{leftin:()=>t.h(u)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[O])},F=(O,j,X,K,Z)=>{if(g.optionLabel)return g.optionLabel({text:O,checked:j,disabled:X,subText:K,item:Z});const le=[],ae=t.h("view",{class:"fox-actionsheet__list-item-text"},[O]);if(le.push(ae),K){const se=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[K]);le.push(se)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},le)},Q=(O,j,X,K)=>{if(g.optionIcon)return g.optionIcon({checked:O,disabled:j,iconSize:X,item:K});if(O){if(g.checkedIcon)return g.checkedIcon({disabled:j,item:K});{const Z=d.checkedIcon??i;return t.h(Z,{width:X,height:X,class:["fox-actionsheet__list-item-icon"]})}}else{if(g.icon)return g.icon({disabled:j,item:K});{const Z=d.icon??s;return t.h(Z,{width:X,height:X,class:["fox-actionsheet__list-item-icon"]})}}},J=()=>{const O=[];for(let j=0;j<f.value.length;j++){const X=f.value[j],K=_n(d,X),Z=As(d,X),le=["fox-actionsheet__list-item"],ae={};let se=Ym(d,X),de=d.iconSize?fe(d.iconSize):null;const Ve=Xm(d,X,j);Ve&&(se=se||Ve.disabled,Ve.class&&le.push(Ve.class),Ve.style&&Object.assign(ae,Ve.style)),se=!!(d.disabled||se);const Ne=I.value.includes(j);se&&le.push("is-disabled"),Ne&&le.push("is-checked");const lo={class:le,style:ae,key:`${j}`,onClick:()=>{se||W(j)}};let dt=[];if(g.option)dt.push(g.option({item:X,checked:Ne,disabled:se}));else{const nA=F(K,Ne,se,Z,X);dt.push(nA);const oA=Q(Ne,se,de,X);dt.push(oA),d.textPosition==="right"&&dt.reverse()}const tA=t.h("view",lo,dt);O.push(tA)}return O},ne=()=>{let O=[];if(g.buttons)O=g.buttons();else{const X=t.h(l,{type:"primary",block:"block",onClick:v,disabled:d.disabled},{default:()=>y.confirmText.value});O.push(X)}return t.h("view",{class:"fox-actionsheet__footer"},[O])};return ve({search:async(O=null,j=!0)=>{C.value=O&&t.toRaw(O),t.triggerRef(C),j&&(V.value=!0,p.value=0,f.value=[]),t.nextTick(()=>{E()})},clear:()=>{V.value=!0,p.value=0,f.value=[]},confirm:()=>{v()},cancel:()=>{L()}}),()=>{const O=[];if(d.showHeader){const de=Y();O.push(de)}if(d.showSearchbar){const de=z();O.push(de)}let j=null;if(g.content)j=g.content();else{const de=J(),Ve={hasMore:V.value,loadText:y.loadText.value,loadMoreText:y.loadMoreText.value,modelValue:T.value,"onUpdate:modelValue":Ne=>{T.value=Ne},onLoadMore:E};j=t.h(o,Ve,{default:()=>de})}const X={};d.optionsHeight&&(X.height=d.optionsHeight);const K={"fox-actionsheet__list":!0};d.poppable||(K["fox-actionsheet__list--inner"]=!0);const Z=t.h("view",{class:K,style:X},[j]);if(O.push(Z),d.showFooter&&!$.value){const de=ne();O.push(de)}const le=t.h("view",{class:"fox-actionsheet"},O);if(!d.poppable)return le;const ae=["fox-actionsheet__popup"];d.popClass&&ae.push(d.popClass);const se={popClass:ae.join(" "),visible:x.value,closeable:!1,"onUpdate:visible":P,position:d.position,round:"round",onClickOverlay:L,closeOnClickOverlay:d.closeOnClickOverlay};return t.h(a,se,{default:()=>le})}}}}const{componentName:Jm,create:_m,scope:ep}=G("actionsheet-pane"),eo=_m(Zm(Jm,ep,me,Gn,ze,Zn,oe.CheckNormal,oe.Checked,oe.Close,oe.Search2)),Vs={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 tp(e,n,a,o,l,r,s){return{props:{...he,...ye,...Vs,...Jn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,c){const u=De(t.computed(()=>i.disabled)),m=Ee(t.computed(()=>i.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:g}=ie.useFoxI18n(n),S=g(i,["placeholder"]),b=t.ref(!1),y=Pe(i,"modelValue",null,d),k=t.ref(""),f=t.computed(()=>Array.isArray(k.value)?k.value.join(i.separator):k.value),p="fox-input-item",h=t.computed(()=>({[p]:!0,"is-disabled":u.value,"is-readonly":m.value})),C=$e(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const v={};return C.value&&(v["text-align"]=C.value),v}),w=t.ref(!1),N=()=>{w.value=!0},T=v=>{w.value=v},V=v=>{y.value=v,d("update:modelValue",v)},E=(v,Y)=>{d("change",v,Y)},D=v=>{let z=v.target.value;b.value=!0,d("focus",z,v)},q=v=>{setTimeout(()=>{b.value=!1},0);let z=v.target.value;i.maxLength&&z.length>Number(i.maxLength)&&(z=z.slice(0,Number(i.maxLength))),d("blur",z,v)},R=v=>{k.value=v,d("update:text",v)},$=t.computed(()=>({[`${p}__append`]:!0,"is-disabled":u.value,"is-readonly":m.value})),I=t.computed(()=>ke(i.unit)>0),M=t.computed(()=>ke(i.unit)>0&&!b.value),x=t.computed(()=>({hidden:!M.value})),H=v=>{y.value="",d("update:modelValue","",v),d("change","",v),d("clear","")},U=t.computed(()=>i.clearable&&!u.value&&!m.value),_=t.computed(()=>ke(y.value)>0&&b.value),ee=v=>{_.value?H(v):N()},W=t.computed(()=>_.value&&U.value?o:l),P=t.computed(()=>({action:!0})),L=t.ref(null);return ve({search:v=>{L.value&&L.value.search(v)},clear:()=>{L.value&&L.value.clear},confirm:v=>{L.value&&L.value.confirm()},cancel:()=>{L.value&&L.value.cancel()}}),()=>{const v={class:h.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:D,onBlur:q},Y=[],z=t.h("input",v);Y.push(z);const F=[],Q={class:["action-icon"]},J=t.h(W.value,Q),ne={class:P.value,onClick:ee},O=t.h("view",ne,{default:()=>[J]});if(F.push(O),I.value){const Ne=t.h("view",{class:x.value},[i.unit]);F.push(Ne)}const j={class:$.value},X=t.h("view",j,{default:()=>F});Y.push(X);const K={default:()=>Y};K.label=c.slots.default,K.prepend=c.slots.prepend,K.append=c.slots.append,K.fixedPreTip=c.slots.fixedPreTip,K.fixedTip=c.slots.fixedTip;const Z=Se(i,Jn);Z.ref=L,Z.class=i.actionsheetProps,Z.disabled=u.value||m.value,Z.visible=w.value,Z["onUpdate:visible"]=T,Z.modelValue=y.value,Z["onUpdate:modelValue"]=V,Z.text=k.value,Z["onUpdate:text"]=R,Z.onChange=E,Z.poppable=!0,Z["text-position"]=i.textPosition;const le={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,Z,le);K.hide=()=>[ae];const de={...ft(i,Vs,Jn)};return i.prop&&(de.prop=`${i.prop}_item`),t.h(a,de,K)}}}}const{componentName:np,create:op,scope:lp}=G("actionsheet-item"),dl=op(tp(np,lp,Be,oe.CircleClose,oe.ArrowRight,eo)),ul={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:ap,create:rp}=G("input-number"),sp=rp({components:{Minus:oe.Minus,Plus:oe.Plus},props:{...ul},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const S=ap;return{[S]:!0,[`${S}--disabled`]:e.disabled}}),o=S=>Number(S).toFixed(Number(e.decimalPlaces)),l=S=>{const b=S.target;n("update:modelValue",b.valueAsNumber,S)},r=(S,b)=>{let y=o(S);n("update:modelValue",y,b),n("change",y,b)},s=(S=Number(e.modelValue))=>S<Number(e.max)&&!e.disabled,i=(S=Number(e.modelValue))=>S>Number(e.min)&&!e.disabled,c=S=>{if(n("reduce",S),i()){let b=Number(e.modelValue)-Number(e.step);r(b,S)}else n("overlimit",S,"reduce")},u=S=>{if(n("add",S),s()){let b=Number(e.modelValue)+Number(e.step);r(b,S)}else n("overlimit",S,"add")},m=S=>{e.disabled||e.readonly||n("focus",S)},d=S=>{if(e.disabled||e.readonly)return;let y=S.target.valueAsNumber;y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),r(y,S),n("blur",S)},g=S=>{let b=Number(S);return b<Number(e.min)?b=Number(e.min):b>Number(e.max)&&(b=Number(e.max)),b};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const S=g(e.modelValue);S!==Number(e.modelValue)&&r(S,{})}),{classes:a,change:l,blur:d,focus:m,add:u,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:ge}}}),ip=["min","max","disabled","readonly","value"];function cp(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,ip),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 et=te(sp,[["render",cp]]);function dp(e,n,a,o){return{props:{...he,...ye,...ul},emits:["change","update:modelValue","setValue","add","reduce"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),u=e,m=Pe(l,"modelValue",null,c),d=b=>{m.value=b,c("update:modelValue",b,{}),c("change",b,{})},g=b=>{c("add",b)},S=b=>{c("reduce",b)};return()=>{const b={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},y=Se(l,ul),f={...r.attrs,...y,disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":d,onAdd:g,onReduce:S},p=t.h(o,f,b),h=[];h.push(p);const C={default:()=>h};C.label=r.slots.default,C.fixedPreTip=r.slots.fixedPreTip,C.fixedTip=r.slots.fixedTip;const w={...Se(l,ye,he)};return l.prop&&(w.prop=`${l.prop}_item`),w["content-class"]=u,t.h(a,w,C)}}}}const{componentName:up,create:fp,scope:mp}=G("inputnumber-item"),fl=fp(dp(up,mp,Be,et)),pp={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:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function hp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function $s(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Es(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function gp(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function ml(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Ds(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Is(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function pl(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let yp=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`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(l,null,[a,o]))}};function bp(){const e=t.getCurrentInstance();return new yp(e.proxy)}function kp(e,n,a,o){return{props:{...pp},emits:["update:modelValue","change","loaded-data","click"],setup(l,{slots:r,emit:s}){const i=e,c=bp(),u=t.ref([]),m=t.computed(()=>u.value.filter(P=>gp(l,P)!==!1)),d=t.ref(-1),g=()=>{const P=l.modelValue,L=m.value.findIndex(v=>$s(l,v)===P);d.value!==L&&(d.value=L,l.scroll&&ee(L))};t.watch([()=>l.modelValue,m],()=>{g()});const S=P=>d.value===P,b=P=>{if(P<0&&P>=m.value.length)return!1;const L=m.value[P],Y=(pl(l,L,P)??{}).status??ml(l,L);return S(P)||Y},y=t.computed(()=>{const P={[i]:!0};return l.mode?P[`is-${l.mode}`]=!0:l.direction&&(P[`is-${l.direction}`]=!0),l.scroll&&(P["is-scroll"]=!0),P}),k=t.computed(()=>({})),f=(P,L,v,Y,z)=>{const F={[`${i}__step`]:!0};return z&&(F[`${z}`]=!0),F[`${p.value}`]=!0,Y&&(F["is-doit"]=!0),P===d.value?F["is-active"]=!0:L==="done"?F["is-done"]=!0:L==="error"?F["is-error"]=!0:L==="half"?F["is-half"]=!0:v?F["is-disabled"]=!0:F["is-normal"]=!0,F},p=t.computed(()=>{if(l.mode==="simple")return"start";let P=l.align;return P||(l.direction==="vertical"?P="start":P="center"),P}),h=(P,L={})=>{const v={...L};return p.value==="start"&&P===m.value.length-1?v.flex="0 0 auto":l.step?l.direction==="vertical"?v.height=l.step:v.width=l.step:v.flex="1 1 100%",v},C=(P,L)=>{let v={};if(L<m.value.length-1){const Y=L+1;b(L)&&b(Y)?l.direction==="vertical"?v.height="100%":v.width="100%":v.opacity="0"}return v},A=P=>m.value.length-1===P,w=(P,L)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&L>d.value||d.value===L)return;const v=d.value,Y=L;d.value=L,l.scroll&&ee(L);const z=$s(l,P);s("update:modelValue",z);const F={fromIndex:v,currentIndex:Y,item:P,items:m.value,clickNavigatePolicy:l.clickNavigatePolicy};s("change",z,F)},N=t.ref(!0),T=async(P,L)=>{try{const v=await c.load("stesbar",P,L);Array.isArray(v)&&(u.value=v),N.value=!1}catch(v){console.error("[FoxUI] Load StepsBar Data Fail",v),u.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([P,L])=>{P&&T(P,L)},{immediate:!0});const V=(P,L,v,Y,z)=>{let F=null;if(r.icon)F=r.icon({item:P,index:L,status:Y});else if(Y==="done"){const J={};l.iconSize&&(J.width=l.iconSize,J.height=l.iconSize);const ne=l.icon??a;F=t.h(ne,J)}else{const J=v??`${L+1}`;F=t.h("span",{},[J])}const Q={class:"fox-steps-bar__icon",onClick:()=>{s("click",{item:P,index:L}),!z&&w(P,L)}};return t.h("view",Q,[F])},E=(P,L,v)=>{const Y=t.h("i",{class:"fox-steps-bar__line-inner",style:C(P,L)});return t.h("view",{class:"fox-steps-bar__line"},[Y])},D=()=>{let P=null;if(r.markIcon)P=r.markIcon();else{const v={};l.iconSize&&(v.width=l.markIconSize,v.height=l.markIconSize);const Y=l.markIcon??o;P=t.h(Y,v)}return t.h("view",{class:"fox-steps-bar__mark"},[P])},q=(P,L,v,Y,z)=>{const F=[];if(!A(L)){const ne=E(P,L);F.push(ne)}const Q=V(P,L,v,Y,z);F.push(Q);const J={class:"fox-steps-bar__head"};return t.h("view",J,F)},R=(P,L,v,Y)=>{let z=null;r.main?z=r.main({item:P,index:L,status:v}):z=hp(l,P);const F={class:"fox-steps-bar__main",onClick:()=>{s("click",{item:P,index:L}),!Y&&w(P,L)}};return t.h("view",F,[z])},$=(P,L,v)=>{let Y=null;if(r.sub){Y=r.sub({item:P,index:L,status:v});const z={class:"fox-steps-bar__sub"};return t.h("view",z,[Y])}return null},I=(P,L)=>{const v=pl(l,P,L)??{},Y=v.status??ml(l,P);let z=Es(l,P);v.disabled===!0&&(z=!0),l.disabled===!0&&(z=!0);const F=v.label??Is(l,P),Q=[],J=V(P,L,F,Y,z);J&&Q.push(J);const ne=R(P,L,Y,z);if(ne&&Q.push(ne),!A(L)){const le=E(P,L);le&&Q.push(le)}const O=t.h("view",{class:"fox-steps-bar__head"},Q),j=v.class,X=v.style??{};let K=Ds(l,P);v.doit===!0&&(K=!0);const Z={ref:_(L),class:f(L,Y,z,K,j),style:h(L,X)};return t.h("view",Z,[O])},M=(P,L)=>{const v=pl(l,P,L)??{},Y=v.status??ml(l,P);let z=Es(l,P);v.disabled===!0&&(z=!0),l.disabled===!0&&(z=!0);const F=v.label??Is(l,P),Q=[],J=l.layout;for(let K of J)if(K==="head"){const Z=q(P,L,F,Y,z);Q.push(Z)}else if(K==="main"){const Z=R(P,L,Y,z);Q.push(Z)}else if(K==="sub"){const Z=$(P,L,Y);Q.push(Z)}else if(K==="mark"){const Z=D();Q.push(Z)}const ne=v.class,O=v.style??{};let j=Ds(l,P);v.doit===!0&&(j=!0);const X={ref:_(L),class:f(L,Y,z,j,ne),style:h(L,O)};return t.h("view",X,Q)},x=t.ref(),H=t.ref([]),U=(P,L)=>{H.value[L]=P},_=P=>L=>{U(L,P)},ee=(P,L)=>{const v=x.value,Y=H.value;if(!v||!Y||!Y[P])return;const z=Y[P];let F=0;l.direction==="vertical"?F=z.offsetTop-(v.offsetHeight-z.offsetHeight)/2:F=z.offsetLeft-(v.offsetWidth-z.offsetWidth)/2,W(v,F,.3,l.direction)},W=(P,L,v,Y)=>{let z=0;const F=Y==="horizontal"?P.scrollLeft:P.scrollTop,Q=Math.round(v*1e3/16);function J(){Y==="horizontal"?P.scrollLeft+=(L-F)/Q:P.scrollTop+=(L-F)/Q,++z<Q&&Ue(J)}J()};return()=>{const P=[];if(l.mode==="simple")for(let v=0;v<m.value.length;v++){const Y=m.value[v],z=I(Y,v);P.push(z)}else for(let v=0;v<m.value.length;v++){const Y=m.value[v],z=M(Y,v);P.push(z)}const L={ref:x,class:y.value,style:k.value};return t.h("view",L,P)}}}}const{componentName:Sp,create:Cp,scope:wp}=G("steps-bar"),hl=Cp(kp(Sp,wp,oe.Checklist,oe.ArrowRight));function Np(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=Ko()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=Uo(),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),Np(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 Ap(e,n){return new Bp(e,n)}const Tp={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]}},Vp=(e,n,a,o=!1)=>({props:{...Tp},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 p=[`${e}`];return l.customClass&&p.push(l.customClass),p}),u=t.computed(()=>{const p={};return ue(i.top)||(p.top=i.top),ue(i.right)||(p.right=i.right),ue(i.bottom)||(p.bottom=i.bottom),ue(i.left)||(p.left=i.left),ue(l.width)||(p.width=l.width),ue(l.height)||(p.height=l.height),ue(l.color)||(p.color=l.color),ue(l.background)||(p.background=l.background),ue(l.borderRadius)||(p["border-radius"]=l.borderRadius),p}),m=t.computed(()=>({[`${e}__icon`]:!0})),d=()=>{s("click")},g=t.ref(null),S=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},b={x:0,y:0},f=Ap(p=>{if(!g.value)return;const h=g.value;S(),i.left=h.offsetLeft,i.top=h.offsetTop,h.style.left=`${i.left}px`,h.style.top=`${i.top}px`,h.style.right=null,h.style.bottom=null,b.x=i.left,b.y=i.top},p=>{if(!g.value)return;const h=g.value;S(),i.left=b.x+p.x,i.top=b.y+p.y,h.style.left=`${i.left}px`,h.style.top=`${i.top}px`});return t.onMounted(()=>{if(l.draggable&&g.value){const p=[g.value];f.open(p)}}),t.onBeforeUnmount(()=>{l.draggable&&g.value&&f.close()}),()=>{let p=[];const h=typeof r.default=="function"?r.default():[];if(h&&h.length>0)p=h;else{const A=t.h(a,{class:m.value});p.push(A)}const C={ref:A=>{g.value=A},class:c.value,style:u.value,onClick:d};return t.h("view",C,p)}}}),{componentName:$p,create:Ep,scope:Dp}=G("floating-button"),gl=Ep(Vp($p,Dp,oe.Uploader,!1)),Ip={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 xp(e,n,a){return{props:{...Ip},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=Pe(o,"modelValue"),i=t.computed(()=>s.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),u=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),m=()=>{l("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const k={class:c.value},f=t.h("span",k,[i.value]);d.push(f)}const g={class:u.value},S=o.icon??a,b=t.h(S,g);return d.push(b),o.textPosition==="right"&&d.reverse(),t.h("view",{class:r.value,onClick:m},d)}}}}const{componentName:vp,create:qp,scope:Pp}=G("more-button"),yl=qp(xp(vp,Pp,oe.RectUp)),Mp={width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},Lp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function zp(e,n,a){return{props:{...Mp},setup(o,{attrs:l,slots:r}){const{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["confirmText","cancelText"]),c=e,u=t.ref(!0),m=C=>{u.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)}},g=()=>{d("confirm")},S=()=>{d("cancel")},b=()=>{o.closeOnClickOverlay!==!1&&d("close")},y=(C,A)=>Lp(C)?(A.src=C,t.h("img",A)):typeof C=="string"?(Array.isArray(A.class)?A.class.push(C):A.class&&typeof A.class=="object"?A[`${C}`]=!0:typeof A.class=="string"?A.class=`${A.class}, ${C}`:A.class=C,t.h(o.tag,A)):t.h(C,A),k=()=>{const C=[];if(o.icon){const w={class:[`${c}__header-icon`]},N=y(o.icon,w);C.push(N)}if(o.title){const w=t.h("view",{class:`${c}__header-title`},[o.title]);C.push(w)}if(o.showClose&&o.closeIcon){const w={class:[`${c}__header-close-icon`],onClick:b},N=y(o.closeIcon,w);C.push(N)}const A={class:[`${c}__header`]};return t.h("view",A,C)},f=(C,A)=>{const w=[];if(A){const T={class:`${c}__group-title`},V=t.h("view",T,[A]);w.push(V)}if(C){const T=[];Array.isArray(C)||(C=[C]);for(let V of C){const E={class:`${c}__group-row`,innerHTML:V},D=t.h("view",E);T.push(D)}if(T.length>0){const V={class:`${c}__group-rows`},E=t.h("view",V,T);w.push(E)}}if(w.length===0)return null;const N={class:`${c}__group`};return t.h("view",N,w)},p=()=>{const C=[];if(typeof o.message=="string")C.push(o.message);else if(Array.isArray(o.message))for(let w of o.message)if(typeof w=="string"){const N=f(w);C.push(N)}else{const N=f(w.content,w.title);C.push(N)}else if(typeof o.message=="function"){const w=o.message();C.push(w)}else{const w=o.message;C.push(w)}const A={class:`${c}__body`};return t.h("view",A,C)},h=()=>{const C=[];if(o.showCancelButton){const w={class:[`${c}__footer-button`],style:{},onClick:S};o.cancelButtonClass&&w.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(w.style,o.cancleButtonStyle);const N=t.h("button",w,[o.cancelButtonText??i.cancelText.value]);C.push(N)}if(o.showConfirmButton){const w={class:[`${c}__footer-button`],style:{},onClick:g};o.confirmButtonClass&&w.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(w.style,o.confirmButtonStyle);const N=t.h("button",w,[o.confirmButtonText??i.confirmText.value]);C.push(N)}if(C.length===0)return null;const A={class:`${c}__footer`};return t.h("view",A,C)};return()=>{const C=[],A=k();A&&C.push(A);const w=p();w&&C.push(w);const N=h();N&&C.push(N);const T={class:{[`${c}`]:!0,[`${c}--${o.type||"info"}`]:!0}},V=t.h("view",T,C),E=[`${c}__popup`];o.popClass&&E.push(o.popClass);const D={};o.width&&(D.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(D.height=typeof o.height=="number"?`${o.height}px`:o.height);const q={popClass:E.join(" "),style:D,visible:u.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":m,position:o.position,round:"round",onClickOverlay:b,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,q,{default:()=>V})}}}}const{componentName:Fp,create:Rp,scope:Op}=G("messagebox"),Kp=Rp(zp(Fp,Op,me)),Up="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",Hp="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",jp="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",Wp="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",Yp=new Dn,Xp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Qp=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-${Yp.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(Kp,e);n.appendChild(o),t.render(r,o)},ct={show:(e,n,a,o)=>{const l={...Xp};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=jp:r==="warning"?l.icon=Wp:r==="error"?l.icon=Up:l.icon=Hp),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=u=>{if(typeof c=="function")try{c(u)}catch(m){console.error(m)}s({action:u})},Qp(l)})},alert:(e,n,a)=>ct.show("alert",e,n,a),confirm:(e,n,a)=>ct.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=ct.alert,e.config.globalProperties.$confirm=ct.confirm}},Gp=(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)},Zp=new Dn,Jp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),_p=e=>`${e}-${Zp.get()}`,eh=Symbol.for("InnerPageScopeKey"),th=Symbol.for("PageWrapperKey"),nh="FoxLeave",oh="FoxLeaveEnd",lh={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 ah(e,n,a,o){return{props:{...Re,...lh},emits:["update:visible"],setup(l,{attrs:r,slots:s,emit:i}){t.provide(eh,!0);const c={};t.provide(th,c);const u=w=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),m=()=>{u()},d=e,g=w=>{S.value=w,i("update:visible",w)},S=t.ref(!1),b=(w,N)=>Jp(w)?(N.src=w,t.h("img",N)):typeof w=="string"?(Array.isArray(N.class)?N.class.push(w):N.class&&typeof N.class=="object"?N[`${w}`]=!0:typeof N.class=="string"?N.class=`${N.class}, ${w}`:N.class=w,t.h(l.tag,N)):t.h(w,N),y=()=>{if(!l.showHeader)return null;const w=[];if(s.header){const T=s.header();w.push(T)}else if(l.title){const T=t.h("view",{class:`${d}__header-title`},[l.title]);w.push(T)}if(w.length===0)return null;const N={class:[`${d}__header`]};return t.h("view",N,w)},k=()=>{if(!l.showClose)return null;const w={class:[`${d}__close-icon`],onClick:m},N=l.closeIcon??o;return b(N,w)};let f=null;const p=w=>{Gp(oh,{},f)},h=_p(e),C=()=>{g(!0)},A=()=>{if(!f)return;const w=f.querySelector(".fox-overlay");w&&(w.classList.add("overlay-fade-leave-active"),w.classList.add("overlay-fade-leave-to"));const N=f.querySelector(".fox-popup");N&&(N.classList.add(`fox-popup-slide-${l.position}-leave-active`),N.classList.add(`fox-popup-slide-${l.position}-leave-to`),N.addEventListener("animationend",p,{once:!0}),N.addEventListener("transitionend",p,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{f=document.querySelector(`.${h}`),f?.addEventListener(nh,A,{once:!0}),C()}),()=>{const w=[],N=y();N&&w.push(N);const T=k();T&&w.push(T);const V=s.default?s.default():[];Reflect.apply([].push,w,V);const E={[`${d}`]:!0};l.mode&&(E[`${d}--${l.mode}`]=!0);const D={class:E},q=t.h("view",D,w),R=[`${d}__popup`,h];l.popClass&&R.push(l.popClass),l.position&&R.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 M={...Se(l,Re),popClass:R.join(" "),style:$,visible:S.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:m,"onUpdate:visible":g},x=t.h(a,M,{default:()=>q});return t.h("div",{class:[`${d}__root`,h]},[x])}}}}const{componentName:rh,create:sh,scope:ih}=G("popup-wrapper"),bl=sh(ah(rh,ih,me,oe.Close)),ch={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function dh(e,n,a,o){return{props:{...ch},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 u={popClass:c,style:l.popStyle??{},position:"top",zIndex:l.zIndex,closeOnClickOverlay:l.closeOnClickOverlay,teleportDisable:!0,visible:l.visible,"onUpdate:visible":i},m=t.h(a,u,s),d={class:`${e}`};return t.h("view",d,[m])}}}}const{componentName:uh,create:fh,scope:mh}=G("dropdown"),kl=fh(dh(uh,mh,me));function ph(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 hh={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1},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 gh(e,n,a,o=!1){return{props:{...hh},emits:["click"],setup(l,r){const s=t.ref(null),i=t.computed(()=>{const h={[`${e}`]:!0,"is-truncated":l.truncated};return l.type&&(h[`${e}--${l.type??"default"}`]=!0),l.size&&(h[`${e}--${l.size}`]=!0),h}),c=t.computed(()=>{const h={},C=l.textColor??l.color;return C&&(h.color=C),h}),u=(h,C)=>{let A=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const w=l.highlightFilter;if(h.indexOf(w)!==-1){const T=h.replace(new RegExp(w,"g"),`<span>${w}</span>`);C.innerHTML=T,C.class["is-highlight"]=!0,A=t.h(l.tag,C)}}else if(typeof l.highlightFilter=="function"){const w=l.highlightFilter(h);w&&(C.innerHTML=w,C.class["is-highlight"]=!0,A=t.h(l.tag,C))}return A},m=h=>{r.emit("click",h)};let d="";const g=()=>{const h=s.value;if(!h)return;const C=h.clientWidth;ph(h,A=>{const w=h.innerHTML??"";ue(w)||A<C||(d?a?.show(h,w,{type:"text",id:d,showArrow:l.showArrow},!0):d=a?.show(h,w,{type:"text",showArrow:l.showArrow},!0)??"")})},S=()=>{d&&a?.hide(d)};let b=null;const y=h=>{b||(b=setTimeout(()=>{g(),b=null},l.showAfter??0))},k=h=>{b&&(clearTimeout(b),b=null),setTimeout(()=>{S()},l.hideAfter??0)},f=()=>{const h=s.value;h&&(h.addEventListener("mouseover",y),h.addEventListener("mouseleave",k))},p=()=>{const h=s.value;h&&(h.removeEventListener("mouseover",y),h.removeEventListener("mouseleave",k))};return t.onMounted(()=>{!be(l.showOverflowTooltip)||!a||f()}),t.onBeforeUnmount(()=>{!be(l.showOverflowTooltip)||!a||p()}),()=>{const h={onClick:m,class:i.value,style:c.value,ref:s};let C=null;if(be(l.numberFormat)&&typeof r.slots.default=="function"){const T=r.slots.default();if(Array.isArray(T)&&T.length===1){const V=T[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const E=pe(l.digits),D=pe(l.decimalLength),q=be(l.autoPadding);let R=`${T[0].children}`,$=R.split("").reverse().join("");$=nn($,D,q,E,l.separator),R=$.split("").reverse().join(""),l.highlightFilter!==void 0&&(C=u(R,h)),C||(h.innerHTML=R,C=t.h(l.tag,h))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const T=r.slots.default();if(Array.isArray(T)&&T.length===1){const V=T[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const E=`${T[0].children}`;C=u(E,h),C||(h.innerHTML=E,C=t.h(l.tag,h))}}}C||(C=t.h(l.tag,h,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return C;let w=null;if(l.icon){const T={[`${e}__mark-wrap`]:!0};l.type&&(T[`${e}__mark-wrap--${l.type}`]=!0);const V={},E=l.color;E&&(V.color=E);const D={class:T,style:V};w=t.h("view",D,t.h(l.icon))}else if(r.slots.mark){const T={[`${e}__mark-wrap`]:!0};l.type&&(T[`${e}__mark-wrap--${l.type}`]=!0);const V={},E=l.color;E&&(V.color=E);const D={class:T,style:V};w=t.h("view",D,{default:r.slots.mark})}else{const T={[`${e}__mark`]:!0};l.type&&(T[`${e}__mark--${l.type??"default"}`]=!0);const V={},E=l.color;E&&(V["background-color"]=E);const D={class:T,style:V};w=t.h("view",D)}const N={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",N,[w,C])}}}}const{componentName:yh,create:bh,scope:kh}=G("text"),Sl=bh(gh(yh,kh,kt,!1));function Sh(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 u=0;c&&u<r.length;u++){let m=r[u],d=c.find(g=>g[o]===m);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 u=n[c],m=r[c];const d=u.find(g=>g[o]===m);if(!d)break;s.push(d[a])}else{let c=n;for(let u=0;c&&u<r.length;u++){let m=r[u],d=c.find(g=>g[o]===m);if(!d)break;s.push(d[a]),c=d[l]}}return s}class Ch{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Ze(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function wh(){const e=t.getCurrentInstance();return new Ch(e.proxy)}const Nh={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Bh(e,n,a=!1){return{props:{...Nh},setup(o,{attrs:l,slots:r}){const s=wh(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([m,d])=>{i.value=await s.load(o.sourceType,m,d)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let m=Sh(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return m.length==0?o.emptyText??"":m.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${m[0]}`:m[0]:m.join(o.separator)}),u=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const m={...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(u,m,{default:()=>c.value}):t.h(u,m,c.value)}}}}const{componentName:Ah,create:Th,scope:Vh}=G("mapping"),Cl=Th(Bh(Ah,Vh,!1));function $h(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return mr(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:iA,create:Eh,scope:cA}=G("domain-provider"),wl=Eh($h()),Dh={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 Ih(e,n){return{inheritAttrs:!1,props:Dh,setup(a,{slots:o}){if(nt&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const s=(g,S)=>{if(m===null){r.set(g,{visible:null,callback:S});return}l.has(g)&&m.unobserve(g),l.set(g,{visible:null,callback:S}),m.observe(g)},i=g=>{if(m===null){r.delete(g);return}l.has(g)&&(l.delete(g),m.unobserve(g))};let c=a.initialVisibleObserverSize;Xi({acquire:()=>{const g=c>0;return c--,g},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:s,unobserve:i});let m=null;const d=(g,S,b)=>{m=new IntersectionObserver(y=>{for(let k of y){let f=!1;k.intersectionRatio>0&&(f=!0);const p=l.get(k.target);if(p)try{if(a.loadPolicy==="lazy"&&!f&&p.visible!==null)return;p.visible=f,p.callback(f)}catch(h){console.error(h)}}},{root:g,rootMargin:S,threshold:b}),r.forEach((y,k)=>{l.set(k,y),m?.observe(k)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([g,S])=>{if(S||!g||m)return;let b=null;typeof g=="string"?b=document.querySelector(g):b=g,b&&d(b,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{m&&(m.disconnect(),m=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:dA,create:xh,scope:uA}=G("rolling-provider"),Nl=xh(Ih()),{componentName:vh,create:qh}=G("cell"),Ph=qh({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=vh;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:ge(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),Mh={key:0,class:"fox-cell__icon"},Lh={key:1,class:"fox-cell__title"},zh={class:"title"},Fh={class:"fox-cell__title-desc"};function Rh(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",Mh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Lh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",zh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Fh,t.toDisplayString(e.subTitle),1)],64)):t.renderSlot(e.$slots,"title",{key:1},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),7)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"link",{},()=>[e.isLink?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const Bl=te(Ph,[["render",Rh]]),{componentName:Oh,create:Kh}=G("cell-group"),Uh=Kh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Oh]:!0}))}}}),Hh={key:1,class:"fox-cell-group__title"},jh={key:3,class:"fox-cell-group__desc"},Wh={class:"fox-cell-group__wrap"};function Yh(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",Hh,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",jh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Wh,[t.renderSlot(e.$slots,"default")])],2)}const Al=te(Uh,[["render",Yh]]),{componentName:Xh,create:Qh}=G("image"),Gh=Qh({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 S=Xh;return{[S]:!0,[`${S}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const S={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(b=>{b.forEach(y=>{y.isIntersecting&&(r.value=!0,l.value.disconnect())})},S),s.value&&l.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let S={};return e.width&&(S.width=ge(e.width)),e.height&&(S.height=ge(e.height)),e.radius!==void 0&&e.radius!==null&&(S.overflow="hidden",S.borderRadius=ge(e.radius)),S}),u=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,S=>{a.isError=!1,a.loading=!0});const m=()=>{a.loading=!1,n("load")},d=()=>{a.isError=!0,a.loading=!1,n("error")},g=S=>{n("click",S)};return{...t.toRefs(a),imageClick:g,classes:o,styles:u,stylebox:c,error:d,load:m,show:r,imgRef:s}}}),Zh=["src","date-src","alt"],Jh={key:0,class:"fox-img-loading"},_h={key:1,class:"fox-img-error"};function eg(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,Zh),e.loading?(t.openBlock(),t.createElementBlock("div",Jh,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,width:"16px",height:"20px",name:"image"})),t.renderSlot(e.$slots,"loading")])):t.createCommentVNode("",!0),e.isError&&!e.loading?(t.openBlock(),t.createElementBlock("div",_h,[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 Tl=te(Gh,[["render",eg]]),{create:tg}=G("layout"),Vl=tg({}),{componentName:ng,create:og}=G("col"),lg=og({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=ng,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 ag(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 $l=te(lg,[["render",ag]]),{componentName:rg,create:sg}=G("row"),ig=sg({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=rg;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 nn(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=Ae(e),n=Ae(n),[e,n]=so(Ae(e),Ae(n)),a==1&&(o==1?e=ro(e):n=ro(n));let l=Ua(e,n);return a?a==2?"-"+Ae(l):e.length<l.length?Ae(l.substring(1)):"-"+Ae(ro(l)):Ae(l)}function ro(e){let n="",a=e.length,o=e.split(".")[1],l=o?o.length:0;for(let i=0;i<a;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=l>0?"0."+new Array(l).join("0")+"1":"1";return Ua(n,r)}function Ae(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 so(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 Ua(e,n){[e,n]=so(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 Ce=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(Ce||{});function It(e,n=0,a=Ce.HALF_EVEN){if(a===Ce.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let l=e.split("."),r=l[0],i=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)+i,c=It(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,Ha(l[1],r,o,a)?(o?"-":"")+io(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");i=l[1].substring(0,n);let s=l[1].substring(n);return s&&Ha(s,i,o,a)&&(i=io(i),i.length>n)?(o?"-":"")+io(r,parseInt(i[0]))+"."+i.substring(1):(o?"-":"")+r+"."+i}function Ha(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===Ce.DOWN||!a&&o===Ce.FLOOR||a&&o===Ce.CEILING)return!1;if(o===Ce.UP||a&&o===Ce.FLOOR||!a&&o===Ce.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 Ce.HALF_DOWN:return!1;case Ce.HALF_UP:return!0;case Ce.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function io(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 co(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=xt(e),n=xt(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=xt(e.replace(".","")),n=xt(n.replace(".","")),e.length<n.length){let d=e;e=n,n=d}if(n=="0")return"0";let i=n.length,s=0,c=[],u=i-1,p="";for(let d=0;d<i;d++)c[d]=e.length-1;for(let d=0;d<2*e.length;d++){let g=0;for(let S=n.length-1;S>=u&&S>=0;S--)c[S]>-1&&c[S]<e.length&&(g+=parseInt(e[c[S]--])*parseInt(n[S]));g+=s,s=Math.floor(g/10),p=g%10+p,u--}return p=xt(Ys(p,r)),a==1&&(p="-"+p),p}function Ys(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 xt(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 uo(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=Ae(n.replace(".","")),l>=0){let u=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(u==-1)e=Ae(e+new Array(l+1).join("0"));else if(l>u)e=e.replace(".",""),e=Ae(e+new Array(l-u+1).join("0"));else if(l<u){e=e.replace(".","");let p=e.length-u+l;e=Ae(e.substring(0,p)+"."+e.substring(p))}else l==u&&(e=Ae(e.replace(".","")))}let r=0,i=n.length,s="",c=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),c.indexOf(".")>-1){let u=c.length-c.indexOf(".")-1;c=c.replace(".",""),i>c.length&&(u+=i-c.length,c=c+new Array(i-c.length+1).join("0")),r=u,s="0."+new Array(u).join("0")}for(a=a+2;r<=a;){let u=0;for(;parseInt(c)>=parseInt(n);)c=nn(c,"-"+n),u++;s+=u,e?(e[0]=="."&&(s+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(s+="."),r++,c=c+"0")}return(o==1?"-":"")+Ae(It(s,a-2))}function fo(e,n){return e=e.toString(),n=n.toString(),n=mo(n),nn(e,n)}function mo(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function ja(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Wa(e),Wa(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=fo(e,co(n,It(uo(e,n),0,Ce.FLOOR)));return a+o}function Wa(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ya(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]=so(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 ce{value;static RoundingModes=Ce;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,o]=n.split(/[eE]/);a=Ae(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+Ae(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=ce.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=ce.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",s=r;s>0;)s<a?(a=s,s=0):s-=a,i=n.substring(s,s+a)+(s<r-a&&s>=0?o:"")+i;return(l?"-":"")+i+n.substring(r)}getPrettyValue(n,a){return ce.getPrettyValue(this.value,n,a)}static round(n,a=0,o=Ce.HALF_EVEN){if(n=ce.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return It(n,a,o)}round(n=0,a=Ce.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ce(It(this.value,n,a))}static floor(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,Ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,Ce.FLOOR)}static ceil(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,Ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,Ce.CEILING)}static add(n,a){return n=ce.validate(n),a=ce.validate(a),nn(n,a)}add(n){return new ce(nn(this.value,n.getValue()))}static subtract(n,a){return n=ce.validate(n),a=ce.validate(a),fo(n,a)}subtract(n){return new ce(fo(this.value,n.getValue()))}static multiply(n,a){return n=ce.validate(n),a=ce.validate(a),co(n,a)}multiply(n){return new ce(co(this.value,n.getValue()))}static divide(n,a,o){return n=ce.validate(n),a=ce.validate(a),uo(n,a,o)}divide(n,a){return new ce(uo(this.value,n.getValue(),a))}static modulus(n,a){return n=ce.validate(n),a=ce.validate(a),ja(n,a)}modulus(n){return new ce(ja(this.value,n.getValue()))}static compareTo(n,a){return n=ce.validate(n),a=ce.validate(a),Ya(n,a)}compareTo(n){return Ya(this.value,n.getValue())}static negate(n){return n=ce.validate(n),mo(n)}negate(){return new ce(mo(this.value))}}function Xa(e,n){return ce.multiply(`${e}`,`${n}`)}function po(e,n,a=8){return ce.divide(`${e}`,`${n}`,a)}function ho(e,n){return e=`${e}`,n=`${n}`,ce.compareTo(e,n)}function Qa(e){return ce.negate(e)}function on(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let s=r,c="",u=r.indexOf(".");u!=-1&&(s=r.substring(0,u),c=r.substring(u+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="",g=s.split("").reverse();for(let S=0;S<g.length;S++)d+=g[S]+((S+1)%o==0&&S+1!=g.length?l:"");c.length==0?p=`${i}${d.split("").reverse().join("")}`:p=`${i}${d.split("").reverse().join("")}.${c}`}else c.length==0?p=`${i}${s}`:p=`${i}${s}.${c}`;return p}function Ga(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const Ge=typeof window<"u",Ue=Qe;function Za(e){return e==null}const ln=Array.isArray,Xs=e=>rn(e)==="[object Map]",Qs=e=>rn(e)==="[object Set]",He=e=>e instanceof Date,an=e=>typeof e=="function",Ja=e=>typeof e=="string",Gs=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",ft=e=>Ie(e)&&an(e.then)&&an(e.catch),_a=Object.prototype.toString,rn=e=>_a.call(e),go=e=>rn(e)==="[object Object]",er=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Zs(e){return e.__esModule||er&&e[Symbol.toStringTag]==="Module"}const Js=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 i in r){let s=n[i],c=r[i];if(s!==c)if(l===!0&&c&&typeof c=="object"){let u;Array.isArray(c)?u=s&&Array.isArray(s)?s:[]:u=s&&typeof s=="object"?s:{},n[i]=lt(l,u,c)}else c!==void 0&&(n[i]=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],i=n[l];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!go(i))continue;r=yo(r,i,a),e[l]=r}else{if(typeof i=="function")continue;e[l]=i}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],i=n[l];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!go(i))continue;r=yo(r,i,a),e[l]=r}else{if(typeof i=="function")continue;e[l]=i}}}return e}const bo=Js?Promise.resolve():null;function _s(e,...n){bo!==null?n&&n.length>0?bo.then(()=>{e(n)}):bo.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function be(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function pe(e){return typeof e=="number"?e:Number(e)}const ei={"[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):ei[a]||"object"}function sn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function tr(e){return e&&typeof e=="object"&&"setInterval"in e}function nr(e){let n=!!e&&"length"in e&&e.length,a=at(e);return a==="function"||tr(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function or(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 ti(e,n=[]){let a=n;return e!=null&&(nr(Object(e))?or(a,typeof e=="string"?[e]:e):a.push(e)),a}function Me(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=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 i=0;i<l.length;i++){let s=l[i],c=e[s],u=n[s];if(!Me(c,u))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],i=n[l];if(!Me(r,i))return!1}return!0}return!1}function lr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function ar(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 sr(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 ir(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 ko(e,n=!0,a=!0){n?e=ir(e,".",/\./g):e=e.replace(/\./g,""),a?e=ir(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function ni(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Me(e,a))return!0}):n.indexOf(e)}function oi(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Me(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function ke(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Se(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function mt(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 cr=(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 So(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const rt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},je=(e,n,a)=>Math.min(Math.max(e,n),a),we=Symbol.for("BroadcastKey");class Co{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="*"):lr(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 i=this.callbacks.get(a);if(typeof i=="function"){const c=Reflect.apply(i,this.proxy,[...o]);c!=null&&r.push(c)}const s=this.proxy??{};if(typeof s[a]=="function"){const c=Reflect.apply(s[a],s,[...o]);c!=null&&r.push(c)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...n},a,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),r}emitToChildren(n,a,...o){const l=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},a,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(n,a){this.callbacks.set(n,a)}}function cn(e,n,a,o){const l=new Co(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function li(e,n,a){const o=a;if(o[we])return o[we];const l=t.inject(we,null),r=new Co(l,a,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return o[we]=r,t.provide(we,r),t.onUnmounted(()=>{r.destroy(),o[we]=void 0}),r}function vt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[we]??t.inject(we,null):t.inject(we,null)}const st=e=>e.default??e;class ai{error(n,a){const o=a,l=a||t.hasInjectionContext()?vt(a):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=n||t.hasInjectionContext()?vt(n):null;o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=n||t.hasInjectionContext()?vt(n):null;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=o||t.hasInjectionContext()?vt(o):null,i=a.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),s=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!i&&s?r?r.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):i&&!s&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let qt=new ai;function ri(e){qt=e}function si(e){qt?Object.assign(qt,e):qt=e}function ii(e,n){st(ot).setValidator(e,n)}function ci(e){st(ot).deleteValidator(e)}let dr=["blur","clear"];function di(e){dr=e}function ur(){return dr}let fr=["focus","change","setValue"];function ui(e){fr=e}function mr(){return fr}function fi(e){st(ot).messages(e)}function Pt(...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 dn(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 Le=Symbol("ValidateSchemaKey");class pr{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(!0),this.scope.run(()=>{t.watchEffect(()=>{const a=dn(Pt(this.attrRules,this.rules)),o=[];for(let r in n){let i=n[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let c={type:r};i!==null&&typeof i=="object"&&Object.assign(c,i),o.push(c);continue}let s=this.getValidator(r);if(s!==null){let c={type:r,validator:s};o.push(c)}}this.attrRules=dn(o);const l=Pt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=qt;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?st(ot).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?st(ot).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return st(ot).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=Pt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=dn(n):this.rules=dn([n]);const o=Pt(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=Pt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${o}`]:a},r=this.getValue(),i={[`${o}`]:r},s=st(ot),c=new s(l),u=this.proxy??i;return c.validate(i,{context:u}).then(d=>{if(d.pass)this.success();else{let g="error";Array.isArray(d.errors)&&d.errors.length>0&&(g=d.errors[0].message??g,d.errors=[d.errors[0]],d.errors[0].ref=u),this.error(g)}return d}).catch(d=>{const g=d.message??`${d}`;return this.error(g),d})}}return Promise.resolve({pass:!0})}}function un(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 pr(n,a,e)}const fn=Symbol.for("EventEmitterKey");class hr{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 Ze(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function mn(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function mi(e,n){const a=Ze((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function pi(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function wo(e,n,a,o=0,l=!0){let r=n,i=0;if(l){const c=e();if(i++,c||i>a)return}const s=()=>{const c=e();i++,!(c||i>a)&&(r+=o,setTimeout(s,r))};setTimeout(s,r)}const xe=Symbol("DomainKey"),pt=Symbol("DataItemsKey");class pn{_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 hi=new pn;function ht(){return hi}function We(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[xe]??t.inject(xe,null):t.inject(xe,null)}const No=Symbol("OriginalDateKey");function Bo(e,n,a=[],o){const l=t.getCurrentInstance();let r=l?.proxy,i=t.inject(xe,null);i===null&&(i=ht());const s=e||n.prop||n.name;let c=new pn(s);c.parent=i;const u=y=>{r[No]||g(y),c?.set("modelValue",y)},p=()=>c?.getForSelf("modelValue")??null,d=()=>r[No]??null,g=y=>{const k={};lt(!0,k,t.toRaw(y)),r[No]=k};t.isReactive(n)||typeof n=="function"?t.watch(n,y=>{c?.merge(y,a)},{immediate:!0}):c.merge(n,a),n.modelValue&&g(n.modelValue);const S=(y,k)=>{c?.set(y,k)},b=y=>c?.getForSelf(y)??null;if(r[xe]=c,t.provide(xe,c),l!==null){const y=t.inject(we,null),k=cn(r,y,s,o);c.broadcast=k,r[we]=k,t.provide(we,k),r.broadcast=(h,C,...A)=>Reflect.apply(k.emit,k,[h,C,...A]);const f=t.inject(Le,null),m=un(r,f,{componentName:""});c.validateSchema=m,r[Le]=m,t.provide(Le,m),r[pt]=new Map,r.validate=(h=!0)=>{const C=[];let A=null;const w={deep:!1};if(h===!0)A={name:"*"};else if(Array.isArray(h)&&h.length>0){const N=h;A={name:T=>T?N.indexOf(T)!==-1:!1}}else if(h!=null&&typeof h=="object"){const N=h;if(Object.assign(w,N),Array.isArray(N.include)&&N.include.length>0){const T=N.include;A={name:$=>$?T.indexOf($)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const T=N.exclude;A={name:$=>$?T.indexOf($)===-1:!1}}else A={name:"*"}}if(A){const N=k?.emitToChildren(A,"validate",w);N&&Reflect.apply([].push,C,N)}return C.length==1?C[0]:C.length>1?Promise.all(C).then(N=>{let T=[];return N.forEach($=>{$.pass===!1&&Array.isArray($.errors)&&(T=[...T,...$.errors])}),T.length>0?{pass:!1,errors:T}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(h,C=!0,A=!1)=>{if(A===!0){Reflect.ownKeys(h).forEach(N=>{let T=String(N);const $={componentName:"",fieldName:T,pureDataValidate:!0};if(c){const E=br(c,T,$,k,m);r[pt].set(T,E);const D=h[T];D&&E.validateSchema.setRule(D)}});return}if(C){const w=Reflect.ownKeys(h),N={name:T=>w.includes(T)};k?.emitToChildren(N,"setNameValidateRules",h,!1)}},r.clearValidate=(h=!0)=>{let C=null;if(h===!0)C={name:"*"};else if(Array.isArray(h)&&h.length>0){const A=h;C={name:w=>w?A.indexOf(w)!==-1:!1}}else if(h!=null&&typeof h=="object"){const A=h;if(Array.isArray(A.include)&&A.include.length>0){const w=A.include;C={name:N=>N?w.indexOf(N)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const w=A.exclude;C={name:N=>N?w.indexOf(N)===-1:!1}}else C={name:"*"}}C&&k?.emitToChildren(C,"clearValidate",!1)},r.resetFields=h=>{const C=p();if(!C)return;const A={};if(lt(!0,A,d()??{}),Array.isArray(h))h.forEach(w=>{C[w]=A[w]});else if(h&&Array.isArray(h.include))(h.include??[]).forEach(N=>{C[N]=A[N]});else if(h&&Array.isArray(h.exclude)){let w=h.exclude??[];Reflect.ownKeys(A).forEach(N=>{w.includes(N)||(C[N]=A[N])})}else Object.assign(C,A);r.clearValidate(h)},r.setModelValue=(h,C)=>{!C||C===s?u(h):k?.emitToChildren({name:C},"setModelValue",h)},r.getModelValue=()=>p(),r.setDomainProperty=(h,C)=>{S(h,C)},r.getDomainProperty=h=>b(h)}return t.onUnmounted(function(){c?.validateSchema&&(c.validateSchema.destroy(),r[Le]=void 0,t.provide(Le,null)),c?.broadcast&&(c?.broadcast?.destroy(),r[we]=void 0,t.provide(we,null)),c?.destroy(),r[xe]=void 0,t.provide(xe,null),r[pt]&&(r[pt].clear(),r[pt]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,c=null,r=null}),c}function gr(e,n,a=[]){let l=t.getCurrentInstance()?.proxy,r=t.inject(xe,null);r===null&&(r=ht());const i=e||n.prop||n.name;let s=new pn(i);return s.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{s?.merge(c,a)},{immediate:!0}):s.merge(n,a),l[xe]=s,t.provide(xe,s),t.onUnmounted(()=>{s?.destroy(),l[xe]=void 0,t.provide(xe,null),s=null,l=null}),s}function yr(e,n,a){const l=We(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Te(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(we,null);let s=cn(l,i,r,a);l[we]=s,t.provide(we,s),l.broadcast=(b,y,...k)=>s?Reflect.apply(s.emit,s,[b,y,...k]):null;const c=t.inject(Le,null);e.fieldName=e.fieldName??r;let u=un(l,c,e);l[Le]=u,t.provide(Le,u),yr(l,u,r),l.validate=(b=null)=>{if(!u)return Promise.resolve({pass:!0});const y=[];let k=!1,f=!1;if(Array.isArray(b)&&b.indexOf(r)!==-1)f=!0,k=!0;else if(b&&typeof b=="object"){const m=b,h=m.ignoreDisabled??!0,C=m.ignoreReadonly??!0,A=m.ignoreHidden??!0;h===!0&&e.disabled===!0||C===!0&&e.readonly===!0||A===!0&&sn(l.$el)?f=!1:(Array.isArray(m.include)&&m.include.indexOf(r)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(r),f=!0),k=m.deep??!1}else typeof b=="boolean"&&(k=b),f=!0;if(f){const m=u?.validate();y.push(m)}if(k){let m=null;const h={deep:!1};if(b===!0)m={name:"*"};else if(Array.isArray(b)&&b.length>0){const C=b;m={name:A=>A?C.indexOf(A)!==-1:!1}}else if(b!=null&&typeof b=="object"){const C=b;if(Object.assign(h,C),Array.isArray(C.include)&&C.include.length>0){const A=C.include;m={name:w=>w?A.indexOf(w)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const A=C.exclude;m={name:w=>w?A.indexOf(w)===-1:!1}}else m={name:"*"}}if(m&&s){const C=s.emitToChildren(m,"validate",h);Reflect.apply([].push,y,C)}}return y.length==1?y[0]:y.length>1?Promise.all(y).then(m=>{let h=[];return m.forEach(C=>{C.pass===!1&&Array.isArray(C.errors)&&(h=[...h,...C.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=b=>u?.setRule(b),l.setNameValidateRules=(b,y=!1)=>{const k=b[r];if(k&&u?.setRule(k),y&&s){const f={name:m=>Reflect.ownKeys(b).includes(m)};s.emitToChildren(f,"setNameValidateRules",b,!1)}},l.clearValidate=(b=null)=>{(!Array.isArray(b)||b.indexOf(n??"")!==-1)&&u?.clear();let y=null;if(b===!0)y={name:"*"};else if(Array.isArray(b)&&b.length>0){const k=b;y={name:f=>f?k.indexOf(f)!==-1:!1}}else if(b!=null&&typeof b=="object"){const k=b;if(Array.isArray(k.include)&&k.include.length>0){const f=k.include;y={name:m=>m?f.indexOf(m)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;y={name:m=>m?f.indexOf(m)===-1:!1}}else y={name:"*"}}y&&s&&s.emitToChildren(y,"clearValidate",!1)};let p=new hr(l);l[fn]=p;const d=Ze((b="validate")=>{u&&(b==="reset"?u.clear():u.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ur()).forEach(b=>{p&&p.on(b,y=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:mr()).forEach(b=>{p&&p.on(b,y=>{d("reset")})}),t.onUnmounted(()=>{s?.destroy(),l[we]=void 0,t.provide(we,null),s=null,u?.destroy(),l[Le]=void 0,t.provide(Le,null),u=null,p?.destroy(),l[fn]=void 0,p=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:s,validateSchema:u,emitEvent:(b,...y)=>{p&&Reflect.apply(p.emit,p,[b,...y])},onEvent:(b,y)=>{p&&Reflect.apply(p.on,p,[y])},offEvent:(b,y)=>{p&&Reflect.apply(p.off,p,[y])}}}function br(e,n,a,o,l){const r={},i=n??"",s={getValue(){const p=e.getForSelf("modelValue");return p?p[i]:null},isExist(){const p=e.getForSelf("modelValue");return p?Reflect.has(p,i):!1}};a.fieldName=i,a.validateHandler={getValue(p){return s.getValue()}};let c=un({},l,a);r.validate=(p=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let g=!1,S=!1;if(Array.isArray(p)&&p.indexOf(i)!==-1)S=!0,g=!0;else if(p&&typeof p=="object"){const b=p;Array.isArray(b.include)&&b.include.indexOf(i)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(i),S=!0,g=b.deep??!1}else typeof p=="boolean"&&(g=p),S=!0;if(S&&c){const b=c.validate();d.push(b)}if(g){let b=null;const y={deep:!1};if(p===!0)b={name:"*"};else if(Array.isArray(p)&&p.length>0){const k=p;b={name:f=>f?k.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const k=p;if(Object.assign(y,k),Array.isArray(k.include)&&k.include.length>0){const f=k.include;b={name:m=>m?f.indexOf(m)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;b={name:m=>m?f.indexOf(m)===-1:!1}}else b={name:"*"}}if(b&&u){const k=u.emitToChildren(b,"validate",y);Reflect.apply([].push,d,k)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(b=>{let y=[];return b.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(y=[...y,...k.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>c?.setRule(p),r.setNameValidateRules=p=>{const d=p[i];d&&c?.setRule(d)};let u=cn(null,o,i,r);return t.onUnmounted(()=>{c=null,u=null}),{broadcast:u,validateSchema:c}}function gt(){let n=t.getCurrentInstance()?.proxy,a=new hr(n);return n[fn]=a,t.onUnmounted(()=>{a?.destroy(),n[fn]=void 0,a=null,n=null}),{emitEvent:(o,...l)=>{a&&Reflect.apply(a.emit,a,[o,...l])},onEvent:(o,l)=>{a&&Reflect.apply(a.on,a,[l])},offEvent:(o,l)=>{a&&Reflect.apply(a.off,a,[l])}}}const ge=e=>e?`${fe(e)}px`:"";function fe(e,n=-1){if(e==null)return 0;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(Ge){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(r=Number(i.substring(0,s)))}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 Je="PageStateKey";function Oe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=fe(e.top)),e.left!==null&&e.left!==void 0&&(n.left=fe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=fe(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=fe(e.right))),n}function Ao(e,n,a={},o=!0,l=-1,r=-1,i=0,s=0){if(e.headerHeight=fe(a.headerHeight??n.headerHeight??-1),e.headerPadding=Oe(a.headerPadding??n.headerPadding),e.footerHeight=fe(a.footerHeight??n.footerHeight??-1),e.footerPadding=Oe(a.footerPadding??n.footerPadding),e.contentPadding=Oe(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=fe(c,r):e.height=fe(r)-fe(i,r)-fe(s,r),e.width=fe(a.width??n.width??0,l)}}function kr(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=fe(l.top),o.safeAreaBottom=fe(l.bottom),o.safeAreaLeft=fe(l.left),o.safeAreaRight=fe(l.right));const r=e.get("pageLayout");if(!r)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,u=e.get("footerBarHeight")??0;Ao(o,r,n,!0,i,s,c,u);const p=t.reactive(o),d=e.getForParent(Je);d&&(o.height=bn(e,d),o.width=kn(e,d),t.watch([()=>bn(e,d),()=>kn(e,d)],([S,b])=>{p.height=S,p.width=b}));const g=!d;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([S,b,y=-1,k=-1,f=0,m=0])=>{Ao(p,b,n,g,y,k,f,m)}),e.set(Je,p),p}function hn(e){return e.get(Je)}function gn(e,n){if(n=n??e.get(Je),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function yn(e,n){if(n=n??e.get(Je),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function bn(e,n){if(n=n??e.get(Je),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=gn(e,n),o=yn(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function kn(e,n){return n=n??e.get(Je),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function gi(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function yi(e){return!!e.getForParent(Je)}var Sn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Sn||{});function Cn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ve(e,n,a=1,o){const l=We();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let s=r.length-1;s>=0;s--){const c=r[s];if(Cn(c,o))return c}const i=e.value;return Cn(i,o)?i:null}):t.computed(()=>{const r=e.value;if(Cn(r,o))return r;const i=l.getAll(n);for(let s=0;s<i.length;s++){const c=i[s];if(Cn(c,o))return c}return null})}function Ee(e){return Ve(e,"readonly",1)}function De(e){return Ve(e,"disabled",1)}function Pe(e,n="modelValue",a=null,o){const l=t.toRef(e,n);let r=l.value;typeof a=="function"&&(r=a(l.value));const i=t.ref(r);return t.watch(l,s=>{if(typeof a=="function"){const c=a(s);c!==i.value&&(i.value=c,o&&o("setValue",c))}else s!==i.value&&(i.value=s,o&&o("setValue",s))}),i}const Sr=new Map,wn=new Map;let To=null;function bi(e){To=e}function Cr(e,n,a){if(a){let o=wn.get(a);o||(o=new Map,wn.set(a,o)),o.set(e,n)}else Sr.set(e,n)}function _e(e,n,a){!a&&To&&(a=To(e)??void 0);let o=null;if(a){let l=wn.get(a);l&&(o=l.get(n))}return o||(o=Sr.get(n)),o}function ki(e,n){for(let a in e){const o=e[a];Cr(a,o,n)}}function Si(e){wn.delete(e)}function Ci(){return{top:0,left:0,bottom:0,right:0}}function wi(){if(Ge){const e=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:n,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{headerHeight:-1,footerHeight:-1}}}function Ni(e,n){if(n.componentPrefix){const a=e.indexOf("-");return`${n.componentPrefix}${e.slice(a)}`}return e}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=>{if(r.install)n.use(r);else if(r.name){const i=Ni(r.name,a);n.component(i,r)}});const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=ht();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=mn(()=>{const s={...a},c=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight;s.width=c,s.height=u,this.initPageLayout(s,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({},Ci(),n.safeAreaInset),i=wi(),s=lt({},i.pageLayout,n.pageLayout);a=a??ht(),a.set("safeAreaInset",r),a.set("headerBarHeight",o),a.set("footerBarHeight",l),a.set("pageLayout",s),a.set("rootWidth",i.rootWidth),a.set("rootHeight",i.rootHeight)}setScopeGetter(n){bi(n)}setAPI(n,a,o){Cr(n,a,o)}getAPI(n,a,o){return _e(n,a,o)}batchSetAPI(n,a){ki(n,a)}clearScopeAPI(n){Si(n)}getRootDomain(){return ht()}}function _(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 Ai=(e,n)=>{let a=document.body;const o=e.teleport||"body";o!="body"&&(Ja(o)?a=document.querySelector(o):a=e.teleport);const l=document.createElement("view"),r=n.name?n.name+"-":"",i=e.id||new Date().getTime();l.id=r+i;let s={};an(n.wrapper)?s=n.wrapper(a,l):s=n.wrapper;const c=t.createApp(s,e),u=n.components;return u&&u.forEach(p=>{c.use(p)}),a.appendChild(l),{instance:c.mount(l),unmount:()=>{c.unmount(),a.removeChild(l)}}},wr=(e,n)=>e?t.h(e,n):"";function ve(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const he={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},ye={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Nr={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Br={name:{type:String,required:!1},prop:{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}},Ar=[];for(const e in Br)Ar.push(e);const Ti=Symbol.for("InnerPageScopeKey"),$i={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}},Vi=(e,n)=>({inheritAttrs:!0,props:{...he,...Nr,...$i},setup(a,{slots:o}){const l=Bo(a.name,a),r=t.inject(Ti,!1);if(l){const p=kr(l,a);ve({getPageContentHeight:()=>bn(l,p),getPageContentWidth:()=>kn(l,p),getPageHeaderHeight:()=>gn(l,p),getPageFooterHeight:()=>yn(l,p)}),p&&r&&(p.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),c=t.getCurrentInstance(),u=(p,d=!1)=>{const g=c?.proxy;g&&typeof g.setNameValidateRules=="function"&&g.setNameValidateRules(p,!0,d)};return t.watch([()=>a.rules,()=>a.pureDataRules],([p,d],[g,S])=>{if(p&&g){const b=t.toRaw(g),y=t.toRaw(p),k=y?Reflect.ownKeys(y):[];(b?Reflect.ownKeys(b):[]).forEach(m=>{k.includes(m)||(y[m]=[])}),u(y)}if(d&&S){const b=t.toRaw(S),y=t.toRaw(d),k=y?Reflect.ownKeys(y):[];(b?Reflect.ownKeys(b):[]).forEach(m=>{k.includes(m)||(y[m]=[])}),u(y,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const p=t.toRaw(a.rules);u(p)}if(a.pureDataRules){const p=t.toRaw(a.pureDataRules);u(p,!0)}}),()=>{const p={class:i.value,style:s.value};return t.h("div",p,[o?.default?.()])}}}),{componentName:Ei,create:Di,scope:d2}=_("page"),$o=Di(Vi(Ei));function Vo(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Nn(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")),i=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-i}}const Ii=Symbol.for("InnerPageScopeKey"),Tr={headerbar:{},radio:{},checkbox:{}};function xi(e){Object.assign(Tr,e)}function Bn(){return Tr}const 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},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 i=We(),s=i?hn(i):null,c=t.inject(Ii,!1),u=Bn(),p=e,d=t.computed(()=>{const M={[p]:!0,[`${p}--border`]:l.border,[`${p}--fixed`]:l.fixed};return c||(M[`${p}--safe-area-inset-top`]=l.safeAreaInsetTop),M}),g=t.computed(()=>({[`${p}__inner`]:!0,[`${p}__inner--${l.align}`]:!0})),S=l.height!==null&&l.height!==void 0?fe(l.height):null,b=t.computed(()=>{const M={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const K=Oe(l.padding??s.headerPadding);return Object.assign(M,K),S&&(s.headerHeight=S),s.headerHeight>0&&(M.height=s.headerHeight),M.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,M.safeAreaTop>0&&(M.top=M.safeAreaTop+(K.top??0),M.height&&M.height>0&&(M.height=M.height+M.safeAreaTop)),M}if(S&&(M.height=S),l.padding){const K=Oe(l.padding);Object.assign(M,K)}return M}),y=t.ref(null),k=()=>{if(s&&y.value&&!sn(y.value)){if(!o){const M=Vo(y.value);s.headerAllHeight=M.height}return s.headerMounted=!0,!0}return!1};let f=null;t.onMounted(()=>{s&&(wo(k,50,5,50,!0),window.ResizeObserver&&y.value&&(f=new window.ResizeObserver(()=>{k()}),f.observe(y.value)))}),t.onUnmounted(()=>{s&&(s.headerMounted=!1,f&&(f.disconnect(),f=null))});const m=t.computed(()=>{const M={};return b.value.height!==null&&b.value.height!==void 0&&(M.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(M.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(M.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(M.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(M.paddingBottom=`${b.value.bottom}px`),M}),h=t.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function C(){r.emit("back")}function A(){r.emit("click-title")}function w(){r.emit("click-right")}function N(){r.emit("click-right-text")}const T=()=>{if(!l.leftShow)return null;const M=[];if(r.slots.left)M.push(r.slots.left());else{if(r.slots.leftIcon){const K=t.h("view",{class:"left-icon",onClick:C},[r.slots.leftIcon()]);M.push(K)}else{const K=l.leftIcon??u.headerbar.Left??a,V=t.h("view",{class:"left-icon",onClick:C},[t.h(K)]);M.push(V)}if(l.leftText){const K=t.h("view",{class:"left-text",onClick:C},[l.leftText]);M.push(K)}}return M.length===0?null:t.h("view",{class:"fox-header-bar__left"},M)},$=()=>{if(!l.rightShow)return null;const M=[];if(r.slots.right)M.push(r.slots.right());else{if(l.rightText){const K=t.h("view",{class:"right-text",onClick:N},[l.rightText]);M.push(K)}if(r.slots.rightIcon){const K=t.h("view",{class:"right-icon",onClick:w},[r.slots.rightIcon()]);M.push(K)}else if(l.rightIcon){const K=t.h("view",{class:"right-icon",onClick:w},[t.h(l.rightIcon)]);M.push(K)}}return M.length===0?null:t.h("view",{class:"fox-header-bar__right"},M)},E=()=>{if(!l.titleShow)return null;const M=[],K=r.slots.default?r.slots.default():null;if(K)M.push(K);else{if(l.title){const V=t.h("view",{class:"title-text"},[l.title]);M.push(V)}if(r.slots.titleIcon){const V=t.h("view",{class:"title-icon",onClick:A},[r.slots.titleIcon()]);M.push(V)}else if(l.titleIcon){const V=t.h("view",{class:"title-icon",onClick:A},[t.h(l.titleIcon)]);M.push(V)}}return M.length===0?null:t.h("view",{class:"fox-header-bar__title"},M)},D=()=>{const M=[],K=r.slots.bottom?r.slots.bottom():null;return K&&M.push(K),M.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},M)};return()=>{if(!h.value)return null;const M=[];if(r.slots.all)M.push(r.slots.all());else{const V=[],I=T();I&&V.push(I);const z=E();z&&V.push(z);const x=$();if(x&&V.push(x),V.length>0){const q=t.h("view",{class:g.value},V);M.push(q)}const H=D();H&&M.push(H)}if(M.length===0)return null;const K={class:d.value,style:m.value,ref:y};return t.h("view",K,M)}}}),{componentName:qi,create:Pi,scope:Mi}=_("header-bar"),Eo=Pi(vi(qi,Mi,le.Left,!1)),Li=Symbol.for("InnerPageScopeKey");function zi(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=We(),i=r?hn(r):null,s=t.inject(Li,!1),c=e,u=t.computed(()=>{const k={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return s||(k[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),k}),p=o.height!==null&&o.height!==void 0?fe(o.height):null,d=t.computed(()=>{const k={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const f=Oe(o.padding??i.footerPadding);return Object.assign(k,f),p&&(i.footerHeight=p),i.footerHeight>0&&(k.height=i.footerHeight),k.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,k.safeAreaBottom>0&&(k.bottom=k.safeAreaBottom+(f.bottom??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaBottom)),k}if(p&&(k.height=p),o.padding){const f=Oe(o.padding);Object.assign(k,f)}return k}),g=t.ref(null),S=()=>{if(i&&g.value&&!sn(g.value)){if(!a){const k=Vo(g.value);i.footerAllHeight=k.height}return i.footerMounted=!0,!0}return!1};let b=null;t.onMounted(()=>{i&&(wo(S,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{S()}),b.observe(g.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const y=t.computed(()=>{const k={};return d.value.height!==null&&d.value.height!==void 0&&(k.height=ge(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(k.paddingTop=ge(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(k.paddingLeft=ge(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(k.paddingRight=ge(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(k.paddingBottom=ge(d.value.bottom)),k});return()=>{const k=l.slots.default?l.slots.default():[],f={ref:g,class:u.value,style:y.value};return t.h("view",f,k)}}}}const{componentName:Oi,create:Fi,scope:Ri}=_("footer-bar"),Do=Fi(zi(Oi,Ri,!1));function Ki(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=We(),l=t.computed(()=>({[e]:!0})),r=o?hn(o):null,i=t.computed(()=>{const u={};if(o&&r){if(a.padding){const f=Oe(a.padding);Object.assign(r.contentPadding,f)}const p=gn(o,r),d=yn(o,r);let g="";r.contentHeight?g=`${r.contentHeight}`:g=`${r.height}px`,console.debug("[content]page height:",g),console.debug("[content]header height:",p),console.debug("[content]footer height:",d),console.debug("[content]padding:",r.contentPadding),u.height=g;let S=(r&&r.contentPadding&&r.contentPadding.top)??-1;(S>=0||p>0)&&(S=S<0?0:S,u.paddingTop=`${p+S}px`);let b=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(b>=0||d>0)&&(b=b<0?0:b,u.paddingBottom=`${d+b}px`);const y=(r&&r.contentPadding&&r.contentPadding.left)??-1;y>=0&&(u.paddingLeft=`${y}px`);const k=(r&&r.contentPadding&&r.contentPadding.right)??-1;return k>=0&&(u.paddingRight=`${k}px`),u}if(a.padding){const p=Oe(a.padding);p.left&&(u.paddingLeft=`${p.left}px`),p.top&&(u.paddingTop=`${p.top}px`),p.right&&(u.paddingRight=`${p.right}px`),p.bottom&&(u.paddingBottom=`${p.bottom}px`)}return u}),s=t.ref(null),c=Ze(()=>{if(r&&s.value){const u=Nn(s.value);r.contentInnerHeight=u.height,r.contentInnerWidth=u.width}},0);return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>i.value,()=>l.value],([])=>{c()}),{contentRef:s,classes:l,styles:i}}}}const{componentName:Ui,create:Hi,scope:u2}=_("content"),ji=Hi(Ki(Ui));function Wi(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},Io=ne(ji,[["render",Wi]]),yt="GroupStateKey",$r=Symbol.for("GroupScopeKey");function An(){return t.inject($r,!1)}function Tn(e=!0){t.provide($r,e)}function Yi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Za(l)||(e[o]=l)})}function Xi(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Yi(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(yt,r),r}function xo(e,n,a=-1,o=-1,l=!1,r,i,s){const c=e.get(yt);if(!c)return;const u=e.get("groupLayout")??{};a===-1&&(a=u.column??1),o===-1&&(o=u.gutter??0),r||(r=u.minItemWidth??-1),i||(i=u.maxItemWidth??-1);const p=fe(r),d=fe(i);s||(s=u.type??"grid");const g=()=>{const S=n===""||n===-1,b=fe(n);let y=pe(a);const k=fe(o);if(!S){let h=(b-(y-1)*k)/y;for(;d!==-1&&h>d;)y++,h=(b-(y-1)*k)/y;for(;p!==-1&&y>1&&h<p;)y--,h=(b-(y-1)*k)/y}let f=!1;const m=c.layout;m.value.width=n,m.value.column!==y&&(m.value.column=y,f=!0),m.value.gutter!==k&&(m.value.gutter=k,f=!0),m.value.type!==s&&(m.value.type=s,f=!0),f&&t.triggerRef(m)};if(l)g();else{const S=++c.passport;setTimeout(()=>{S===c.passport&&g()},50)}}function $n(e,n=!1){let a;return n?a=e.getForParent(yt):a=e.get(yt),a.layout}function Vn(e,n=!1){let a;return n?a=e.getForParent(yt):a=e.get(yt),a.order}function Vr(e,n=1){if(n==="stretch")return-1;const a=pe(n);return a===-1?100:100*a/e}function En(e,n,a=1,o=0,l){const r={};let i=0;l?i=fe(l):i=Vr(n.column,a),i>0&&(r.width=`${i}%`);const s=Vr(n.column,o);s>0&&(r["margin-left"]=`${s}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function Dn(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,u=c+(n.column-c);return e.index=e.index+(u-c),{"grid-column":`${c+1} / -1`}}let l=pe(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=pe(o)%n.column;let i=(e.index+r)%n.column,s=i+l;return s>n.column?(i=0,s=i+l,e.index=e.index+(n.column-i)+l):e.index=e.index+r+l,r>0?{"grid-column":`${i+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const Er=Symbol("RollingStateKey");function Qi(e){t.provide(Er,e)}function Gi(){return t.inject(Er,null)}function vo(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 Zi(e){let n=vo(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=vo(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 _i={...he,...Nr,...Br};function ec(e,n,a){return{props:_i,emits:["update:collapse","header-click"],setup(o,l){const r=Bo(o.prop??o.name,o,Ar),i=Xi(r,{type:o.type}),s=An();Tn(!0);const c=o.rollingDisplay?Gi():null,u=t.ref(null),p=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),d=t.computed(()=>s&&r?$n(r,!0).value:null),g=t.getCurrentInstance(),S=(U,W=!1)=>{const G=g?.proxy;G&&typeof G.setNameValidateRules=="function"&&G.setNameValidateRules(U,!0,W)};t.watch([()=>o.rules,()=>o.pureDataRules],([U,W],[G,R])=>{if(U&&G){const X=t.toRaw(G),oe=t.toRaw(U),ae=oe?Reflect.ownKeys(oe):[];(X?Reflect.ownKeys(X):[]).forEach(de=>{ae.includes(de)||(oe[de]=[])}),S(oe)}if(W&&R){const X=t.toRaw(R),oe=t.toRaw(W),ae=oe?Reflect.ownKeys(oe):[];(X?Reflect.ownKeys(X):[]).forEach(de=>{ae.includes(de)||(oe[de]=[])}),S(oe,!0)}},{deep:!0});const b=e,y=t.computed(()=>{const U={};if(U.height=I.value,o.width)o.width!=="auto"&&(U.width=ge(o.width));else{const W=s?Vn(r,!0):null;if(d.value&&W){if(d.value.type==="grid"){const G=Dn(W,d.value,o.span,o.offset);Object.assign(U,G)}else if(d.value.type==="flow"){const G=En(W,d.value,o.span,o.offset,o.width);Object.assign(U,G)}}}return U}),k=t.computed(()=>{const U=i.layout.value.type;return U==="grid"||U==="flow"?{[`${b}--${U}`]:!0,[`${b}--${U}-justify-${o.justify}`]:!0,[`${b}--${U}-align-${o.align}`]:!0,[`${b}--gutter`]:!0}:{[`${b}--${U}`]:!0,[`${b}--gutter`]:!0}}),f=t.computed(()=>{if(i.layout.value.type==="grid"){let W="";if(o.columnWidth)W=`repeat(auto-fill, ${o.columnWidth})`;else{const G=Ji(T.value,i.layout.value.column,i.layout.value.gutter);W=`repeat(${i.layout.value.column}, ${G})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":W}}}),m=t.toRef(o,"gutter"),h=t.toRef(o,"column"),C=t.computed(()=>s||p.value?!0:be(o.isWrap)),A=[],w=U=>{A.push(U)},N=()=>{let U=A.length;A.splice(0,U)},T=t.ref(-1),$=U=>{const W=Nn(U).width;W>0&&W!==T.value&&(T.value=W)};xo(r,T.value,h.value,m.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([T,h,m],([U,W,G])=>{i.order.index=0,xo(r,U,W,G,!1,o.minItemWidth,o.maxItemWidth,o.type)});const E=t.computed(()=>z.value?o.expandText??"":o.collapseText??""),D=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),M=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!z.value,"is-collapse":z.value})),K=t.ref(),V=t.ref(),I=t.computed(()=>x.value||ge(o.height)||""),z=t.ref(!1),x=t.ref(""),H=t.ref(!1);let q=-1;const Z=(U,W=!0)=>{const G=K.value;if(G&&z.value!==U){if(q=q<=0?Zi(G):q,H.value=!0,W)if(G.style["will-change"]="height",G.ontransitionend=function(){G.ontransitionend=null,this.style["will-change"]="auto",U||(x.value="",H.value=!1)},U){let R=0;o.collapseHeight?R=o.collapseHeight:V.value&&V.value.classList.contains(`${e}__header`)&&(R=V.value.offsetHeight),x.value=`${q}px`,t.nextTick(()=>{x.value=`${R}px`})}else x.value=`${q}px`;else if(U){let R=0;o.collapseHeight?R=o.collapseHeight:V.value&&V.value.classList.contains(`${e}__header`)&&(R=V.value.offsetHeight),x.value=`${R}px`}else H.value=!1,x.value=`${q}px`;z.value=U,l.emit("update:collapse",U)}};t.watch(()=>o.collapse,U=>{Z(U)});const ee=U=>{l.emit("header-click",U)},j=()=>{P()},P=U=>{U=U??!z.value,Z(U)};ve({toggleCollapse:P,doLayout:()=>{A[0]&&($(A[0]),xo(r,T.value,h.value,m.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let v=null,Y=!0;const O=U=>{if(o.rules){const W=t.toRaw(o.rules);S(W)}if(o.pureDataRules){const W=t.toRaw(o.pureDataRules);S(W,!0)}if(Ge&&(U&&Z(be(o.collapse),!1),o.autoLayout&&Array.isArray(A)&&A.length>0)){const W=A[0];$(W),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{$(W)}),v.observe(W))}},F=()=>{v?.disconnect(),v=null},Q=!p.value||c?.acquire();Q&&(u.value=p.value?!0:null),t.onMounted(()=>{if(Q&&(O(Y),Y=!1),p.value&&c){let U=null,W=c.initialHeight;c.observe(K.value,G=>{if(G!==u.value)if(G)u.value=!0,z.value||(x.value=""),U=setTimeout(()=>{U=null,u.value!==!1&&(O(Y),Y=!1)},100);else{if(U!==null&&clearTimeout(U),u.value=!1,!z.value)if(Y)x.value=c.initialHeight;else{let R=vo(K.value);R<=0?x.value=W:(x.value=`${R}px`,W=x.value)}Y||F()}})}}),t.onUnmounted(()=>{v?.disconnect(),c&&c.unobserve(K.value)});const J=(U="right")=>{const W=[];if(E.value){const oe={class:D.value},ae=t.h("span",oe,[E.value]);W.push(ae)}const G={class:M.value},R=o.collapseIcon??a,X=t.h(R,G);return W.push(X),W.length>0?t.h("div",{class:{[`${b}__header-collapse`]:!0,[`is-${U}`]:!0},onClick:j},W):null},te=(U,W,G,R)=>{const X={...k.value};return W===0&&(X[`${b}__first`]=!0),G>=R-1&&(X[`${b}__last`]=!0),t.h("div",{ref:w,key:`${W}`,class:X,style:f.value},U)};return()=>{if(p.value&&u.value!==!0){const X=o.tag||"div";return t.h(X,{ref:K,prop:o.name,class:{[`${b}`]:!0,"is-collapse":H.value},style:y.value},[])}i.order.index=0;const U=[];let W=0;if(l.slots.header){const X={key:`${W++}`,ref:V,class:{[`${b}__header`]:!0,[`${b}__first`]:!0},onClick:ee},oe=t.h("div",X,[l.slots.header()]);U.push(oe)}else{const X=[],oe=o.collapsePosition==="left";if(oe&&o.showCollapse){const ae=J("left");ae&&X.push(ae)}if(o.title||l.slots.title){if(o.showMark){const ae={class:{[`${b}__header-mark`]:!0}};o.markColor&&(ae.style={background:o.markColor});const se=t.h("div",ae);X.push(se)}if(l.slots.title){const ae=t.h("div",{class:{[`${b}__header-title`]:!0}},[l.slots.title()]);X.push(ae)}else if(o.title){const ae=t.h("div",{class:{[`${b}__header-title`]:!0}},[o.title]);X.push(ae)}}if(l.slots.toolbar&&X.push(l.slots.toolbar()),!oe&&o.showCollapse){const ae=J("right");ae&&X.push(ae)}if(X.length>0){const ae={key:`${W++}`,ref:V,class:{[`${b}__header`]:!0,[`${b}__first`]:!0},onClick:ee},se=t.h("div",ae,X);U.push(se)}}N();const G=l.slots.default?l.slots.default():[],R=i.layout.value.type;if(R==="grid"){const X=te(G,W++,0,G.length);U.push(X)}else if(R==="flow"){const X=te(G,W++,0,G.length);U.push(X)}else for(let X=0;X<G.length;X++){const oe=G[X],ae=te([oe],W++,X,G.length);U.push(ae)}if(C.value){const X=o.tag||"div";return t.h(X,{ref:K,prop:o.name,class:{[`${b}`]:!0,"is-collapse":H.value},style:y.value},[U])}else return U}}}}const{componentName:tc,create:nc,scope:oc}=_("group"),qo=nc(ec(tc,oc,le.RectUp));function lc(e){return e===window}const ac=/matrix\((.+)\)/,Po=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(lc(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,i=0,s=0,c=0;for(l=n;l!==document;){i+=l.scrollTop,r+=l.scrollLeft;const{transform:u}=window.getComputedStyle(l);if(u){const p=ac.exec(u);if(p){let g=p[1].split(/\s*,\s*/);g.length==6&&(s+=Number(g[4]),c+=Number(g[5]))}}l=l.parentNode}return a-=r,o-=i,a+=s,o+=c,{x:a,y:o}};class rc{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 sc{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 rc,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 Mt=new sc,Dr={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:ic,create:cc}=_("price"),dc=cc({props:{...Dr},setup(e){const n=t.computed(()=>({[ic]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ke(e.price)==0?"":on(e.price,e.decimalLength,!0,pe(e.digits),e.separator)),l=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),r=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),uc=["innerHTML"],fc=["innerHTML"];function mc(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,uc)):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,fc)):t.createCommentVNode("",!0)],2)}const et=ne(dc,[["render",mc]]),{componentName:Mo,create:pc}=_("hint-text"),hc=pc({components:{Price:et},props:{...Dr,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),i=t.ref(e.placement),s=t.ref(!1),c=t.ref(null),u=(D,M,K,V,I,z)=>{const x=document.documentElement.clientWidth||document.body.clientWidth,H=document.documentElement.clientHeight||document.body.clientHeight,q=D.split("-");let Z=[];q[0]==="top"?Z=["top","bottom","right","left"]:q[0]==="bottom"?Z=["bottom","top","right","left"]:q[0]==="left"?Z=["left","top","bottom","right"]:q[0]==="right"&&(Z=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},j=[];for(let P=0;P<Z.length;P++){const L=Z[P];if(j[0]=L,q[1]&&(j[1]=q[1]),L==="top"){const v=M.y-z-e.arrowSize-e.offset;if(v>=0){ee.top=v;let Y=0;q[1]==="start"?Y=M.x:q[1]==="end"?Y=M.x+K-I:Y=M.x+K/2-I/2;const O=x-Y-I;O<0?(Y+=O,d.value=-O):d.value=0,ee.left=Y<0?0:Y;break}}else if(L==="bottom"){const v=M.y+V+e.arrowSize+e.offset;if(v+z<=H){ee.top=v;let Y=0;q[1]==="start"?Y=M.x:q[1]==="end"?Y=M.x+K-I:Y=M.x+K/2-I/2;const O=x-Y-I;O<0?(Y+=O,d.value=-O):d.value=0,ee.left=Y<0?0:Y;break}}else if(L==="left"){const v=M.x-I-e.arrowSize-e.offset;if(v>=0){ee.left=v;let Y=0;q[1]==="start"?Y=M.y:q[1]==="end"?Y=M.y+V-z:Y=M.y+V/2-z/2,ee.top=Y<0?0:Y;break}}else if(L==="right"){const v=M.x+K+e.arrowSize+e.offset;if(v+I<=x){ee.left=v;let Y=0;q[1]==="start"?Y=M.y:q[1]==="end"?Y=M.y+V-z:Y=M.y+V/2-z/2,ee.top=Y<0?0:Y;break}}}return{bestPlacement:j.join("-"),bestInsetRect:ee}},p=(D,M,K=10)=>{if(!Ge||M===!1||!D)return;o.value=Po(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const V=c.value.offsetHeight,I=c.value.offsetWidth,{bestPlacement:z,bestInsetRect:x}=u(e.placement,o.value,l.value,r.value,I,V);i.value=z,a.value=x,s.value=!0},d=t.ref(0),g=Ze(()=>{p(e.message,e.visible)},10),S=t.ref(e.visible);t.watch(()=>e.visible,D=>{S.value=D});const b=t.computed(()=>S.value&&y.value),y=t.ref(!0),k=Ze(D=>{const M=D[0];M&&(y.value=M.isIntersecting)},10),f=new IntersectionObserver(k);t.watch([()=>e.message,()=>e.visible],([D,M])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Mt.watch(e.reference,g),f.observe(e.reference)}),t.onBeforeUnmount(()=>{Mt.unwatch(e.reference,g),f.unobserve(e.reference),f.disconnect()});const m=t.computed(()=>{const D={[Mo]:!0};return i.value.startsWith("top")?D["is-top"]=!0:i.value.startsWith("right")?D["is-right"]=!0:i.value.startsWith("bottom")?D["is-bottom"]=!0:i.value.startsWith("right")&&(D["is-right"]=!0),e.size==="small"?D["is-small"]=!0:e.size==="large"&&(D["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(D[`${e.customClass}`]=!0),D}),h=t.computed(()=>{const D={};a.value.top!==null&&(D.top=`${a.value.top}px`),a.value.right!==null&&(D.right=`${a.value.right}px`),a.value.bottom!==null&&(D.bottom=`${a.value.bottom}px`),a.value.left!==null&&(D.left=`${a.value.left}px`),e.autoFit&&(D["min-width"]=`${l.value}px`);const M=document.documentElement.clientWidth||document.body.clientWidth;return D["max-width"]=`${M}px`,s.value&&(D.opacity="1"),e.transition||(D.transition="none"),e.zIndex&&(D["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(D,e.customStyle),D}),C=t.computed(()=>{const D=[`${Mo}__content`];return e.customTextClass&&D.push(e.customTextClass),D}),A=t.computed(()=>{const D={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(D,e.customTextStyle),D}),w=t.computed(()=>({[`${Mo}__arrow`]:!0})),N=t.computed(()=>{const D={};return e.showArrow?(D.width=`${e.arrowSize}px`,D.height=`${e.arrowSize}px`,i.value==="top"?(D.left="50%",D.bottom=`-${e.arrowSize}px`,D.transform=" translate(-50%, 0%)"):i.value==="top-start"?(D.left=`${e.arrowOffset+d.value}px`,D.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(D.right=`${e.arrowOffset-d.value}px`,D.bottom=`-${e.arrowSize}px`):i.value==="right"?(D.left=`-${e.arrowSize}px`,D.top="50%",D.transform=" translate(0%, -50%)"):i.value==="right-start"?(D.left=`-${e.arrowSize}px`,D.top=`${e.arrowOffset}px`):i.value==="right-end"?(D.left=`-${e.arrowSize}px`,D.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(D.left="50%",D.top=`-${e.arrowSize}px`,D.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(D.left=`${e.arrowOffset+d.value}px`,D.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(D.right=`${e.arrowOffset-d.value}px`,D.top=`-${e.arrowSize}px`):i.value==="left"?(D.right=`-${e.arrowSize}px`,D.top="50%",D.transform=" translate(0%, -50%)"):i.value==="left-start"?(D.right=`-${e.arrowSize}px`,D.top=`${e.arrowOffset}px`):i.value==="left-end"&&(D.right=`-${e.arrowSize}px`,D.bottom=`-${e.arrowOffset}px`),D):{display:"none"}}),T=t.computed(()=>b.value&&e.closeOnClick),$=t.computed(()=>{const D={};return e.zIndex&&(D["z-index"]=`${e.zIndex}`),D});return{show:b,tipRef:c,classes:m,styles:h,textClasses:C,textStyles:A,arrowClasses:w,arrowStyles:N,overlayShow:T,overlayStyle:$,onClickOverlay:()=>{S.value=!1,n.emit("update:visible",!1)}}}}),gc=["innerHTML"];function yc(e,n,a,o,l,r){const i=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,gc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Ir=ne(hc,[["render",yc]]);class In{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 Lo={},bc=new In,bt=new Map,xn=e=>{if(e){const n=document.getElementById(e);bt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of bt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}bt.clear()}},kc=e=>{e.unmount=xn;const n=document.getElementById(e.id);if(n){const a=bt.get(e.id);a?e={...Lo,...a,...e}:e={...Lo,...e},e.transition=!1;const o=t.createVNode(Ir,e);return t.render(o,n),e.id}},Sc=e=>{e.unmount=xn;let n=e.id??`hinttext_${bc.get()}`;e={...Lo,...e},e.id=n,bt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Ir,e);return t.render(o,a),document.body.appendChild(a),n},Cc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},kt={show(e,n,a={},o=!0){Cc(n);const l=a.id;return l&&bt.has(l)?kc({...a,message:n,reference:e}):(o&&xn(),Sc({...a,message:n,reference:e}))},hide(e){xn(e)},install(e){e.config.globalProperties.$hintText=kt}};function wc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...he,...ye},emits:["appear","disappear"],setup(l,r){const i=l.prop??r.attrs.name;Te({componentName:e,validate:!1},i);const s=We(),c=An();Tn(!1);const u=t.computed(()=>c&&s?$n(s,!1).value:null),p=e,d=t.ref(null),g=t.computed(()=>{const R={[p]:!0,[`${p}__gutter`]:u.value&&u.value.type!=="flow",[`${p}__stretch`]:l.span==="stretch",[`${p}__input--border`]:be(l.hasBorder)};if(R[l.errorMarkClass]=!!z.value,R[l.warnMarkClass]=!!V.value,R[l.infoMarkClass]=!!M.value,typeof d.value=="function"){const X=d.value(i);R[X]=!0}else if(typeof d.value=="string"){const X=d.value;R[X]=!0}return R}),S=t.ref(null),b=t.computed(()=>{const R={};if(l.width)l.width!=="auto"&&(R.width=ge(l.width));else{const X=c&&s?Vn(s,!1):null;if(u.value&&X){if(u.value.type==="grid"){const oe=Dn(X,u.value,l.span,l.offset);Object.assign(R,oe)}else if(u.value.type==="flow"){const oe=En(X,u.value,l.span,l.offset,l.width);Object.assign(R,oe)}}}if(typeof S.value=="function"){const X=S.value(i);X&&Object.assign(R,X)}else if(S.value&&typeof S.value=="object"){const X=S.value;Object.assign(R,X)}return R}),y=t.ref(null),k=t.computed({get:()=>y.value??be(l.isRequired),set:R=>{y.value=R}}),f=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",m=Ve(t.toRef(l,"labelPosition"),"labelPosition",Sn.Near),h=t.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),C=t.computed(()=>({[`${p}__main`]:!0,[`${p}__main--${h.value}`]:!0})),A=t.computed(()=>({label:!0,[`label--${h.value}`]:!0})),w=Ve(t.toRef(l,"labelWidth"),"labelWidth",Sn.Near),N=t.computed(()=>w&&w.value?{width:ge(w.value)}:{}),T=t.computed(()=>({"label--string":!0,"label--required":k.value})),$=t.computed(()=>({content:!0,[l.contentClass]:!0})),E=t.computed(()=>({...l.contentStyle})),D=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});ve({setRequired(R){k.value=R},setErrorTip(R){D.errorTip=R},setErrorIcon(R){D.errorIcon=R},setWarnTip(R){D.warnTip=R},setWarnIcon(R){D.warnIcon=R},setInfoTip(R){D.infoTip=R},setInfoIcon(R){D.infoIcon=R},setCustomClassName(R){d.value=R},setCustomStyle(R){S.value=R}});const M=t.computed(()=>l.infoTip||D.infoTip),K=t.computed(()=>l.infoIcon||D.infoIcon),V=t.computed(()=>l.warnTip||D.warnTip),I=t.computed(()=>l.warnIcon||D.warnIcon),z=t.computed(()=>l.errorTip||D.errorTip),x=t.computed(()=>l.errorIcon||D.errorIcon),H=t.computed(()=>z.value?"error":V.value?"warn":M.value?"info":""),q=()=>H.value.length>0,Z=t.computed(()=>H.value==="error"?z.value:H.value==="warn"?V.value:H.value==="info"?M.value:""),ee=t.computed(()=>H.value==="error"?x.value:H.value==="warn"?I.value:H.value==="info"?K.value:null),j=t.computed(()=>{const R={[`${p}__tip`]:!0,[`${p}__tip--${H.value}`]:!0,[`${p}--animate`]:!0};return H.value==="error"&&l.errorClass?R[`${l.errorClass}`]=!0:H.value==="warn"&&l.warnClass?R[`${l.warnClass}`]=!0:H.value==="info"&&l.infoClass&&(R[`${l.infoClass}`]=!0),R}),P=t.computed(()=>{const R={};return m&&m.value==="top"||!f()?R["padding-left"]="0px":w&&w.value&&(R["padding-left"]=ge(w.value)),R}),L=t.ref();let v="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([R,X,oe,ae])=>{L.value&&(R&&!ue(X)?v?a.show(L.value,X,{...ae,id:v,type:oe},!0):v=a.show(L.value,X,{...ae,type:oe},!0):a.hide(v))});let Y=null;const O=()=>{Y||!L.value||(Y=new IntersectionObserver(R=>{let X=!1;for(let oe of R)if(oe.intersectionRatio>0){X=!0,X&&r.emit("appear",oe);break}X||r.emit("disappear")}),Y.observe(L.value))},F=()=>{!Y||!L.value||(Y.unobserve(L.value),Y=null)};t.watch(()=>be(l.appearListen),R=>{R?O():F()}),t.onMounted(()=>{be(l.appearListen)&&O()}),t.onUnmounted(F);const Q=()=>{if(!f())return null;const R=[],X=r.slots?.label?.()??l.label,oe={class:T.value},ae=t.h("div",oe,[X]);if(R.push(ae),r.slots.fixedPreTip){const de=r.slots.fixedPreTip();R.push(de)}const se={class:A.value,style:N.value};return t.h("div",se,R)},J=()=>{const R=[];if(r.slots.prepend){const oe=r.slots.prepend();R.push(oe)}if(r.slots.default){const oe=r.slots.default();R.push(oe)}if(r.slots.append){const oe=r.slots.append();R.push(oe)}if(r.slots.fixedTip){const oe={class:[`${p}__fixed-tip`]},ae=t.h("div",oe,[r.slots.fixedTip()]);R.push(ae)}const X={ref:L,class:$.value,style:E.value};return t.h("div",X,R)},te=()=>{const R=ee.value;return R?typeof R=="function"?t.h("div",{class:"fox-item__tip--icon"},[R()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(R)]):null},U=()=>{const R=Z.value;return R?typeof R=="function"?t.h("div",{class:"fox-item__tip--text"},[R()]):t.h("div",{class:"fox-item__tip--text"},[R]):null},W=()=>{if(!q())return null;const R=[],X=te();X&&R.push(X);const oe=U();oe&&R.push(oe);const ae={class:j.value,style:P.value};return t.h("div",ae,R)},G=()=>r.slots?.hide?.()??null;return()=>{const R=[],X=[],oe=Q();oe&&X.push(oe);const ae=J();ae&&X.push(ae);const se={class:C.value},de=t.h("div",se,X);R.push(de);const $e=W();$e&&R.push($e);const Ne=G();Ne&&R.push(Ne);const ao={class:g.value,style:b.value,prop:l.prop};return t.h("div",ao,R)}}}}const{componentName:Nc,create:Bc,scope:Ac}=_("item"),Be=Bc(wc(Nc,Ac,kt,!1));function Tc(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})),i=We(),s=An();Tn(!1);const c=t.computed(()=>{const u={};if(a.width)a.width!=="auto"&&(u.width=ge(a.width));else if(s&&i){const p=$n(i,!1),d=Vn(i,!1);if(p.value&&d){if(p.value.type==="grid"){const g=Dn(d,p.value,a.span,a.offset);Object.assign(u,g)}else if(p.value.type==="flow"){const g=En(d,p.value,a.span,a.offset,a.width);Object.assign(u,g)}}}return u});return()=>{const u=[];if(o.slots.default){const d=o.slots.default();if(a.divide)for(let g=0;g<d.length;g++){if(g>0){const S=t.h("div",{class:{[`${l}__divide`]:!0}});u.push(S)}u.push(d[g])}else Reflect.apply([].push,u,d)}const p={class:r.value,style:c.value};return t.h("div",p,u)}}}}const{componentName:$c,create:Vc,scope:f2}=_("row-item"),zo=Vc(Tc($c));function Ec(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=We(),r=An();Tn(!1);const i=t.computed(()=>r&&l?$n(l,!1).value:null),s=e,c=t.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:a.span==="stretch"})),u=t.computed(()=>{const p={};if(a.width)a.width!=="auto"&&(p.width=ge(a.width));else{const d=r&&l?Vn(l,!1):null;if(i.value&&d){if(i.value.type==="grid"){const g=Dn(d,i.value,a.span,a.offset);Object.assign(p,g)}else if(i.value.type==="flow"){const g=En(d,i.value,a.span,a.offset,a.width);Object.assign(p,g)}}}return p});return()=>{const p={class:c.value,style:u.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",p,o.slots.default()):t.h("div",p)}}}}const{componentName:Dc,create:Ic,scope:m2}=_("slot-item"),Oo=Ic(Ec(Dc)),xr={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 xc(e,n,a,o){return{props:{...he,...ye,...xr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const i=De(t.computed(()=>l.disabled)),s=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:u}=ie.useFoxI18n(n),p=u(l,["placeholder"]),d=t.ref(!1),g=Pe(l,"modelValue",null,c),S=e,b=t.computed(()=>({[S]:!0,"is-disabled":i.value,"is-readonly":s.value})),y=Ve(t.computed(()=>l.textAlign),"textAlign"),k=t.computed(()=>{const I={};return y.value&&(I["text-align"]=y.value),I}),f=I=>{let x=I.target.value;l.type==="digit"&&(x=ko(x,!0)),l.type==="number"&&(x=ko(x,!1)),l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),g.value=x,c("update:modelValue",x,I),c("change",x,I)};let m=Pe(l,"hintText"),h=t.ref(!1);const C=I=>{let x=I.target.value;d.value=!0,ue(m.value)||(h.value=!0),c("focus",x,I)},A=I=>{setTimeout(()=>{h.value&&(h.value=!1),d.value=!1},0);let x=I.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),c("blur",x,I)},w=t.computed(()=>({[`${S}__append`]:!0,"is-disabled":i.value,"is-readonly":s.value})),N=t.computed(()=>{const I={};return r.slots.append&&!T.value&&!K.value&&(I.display="none"),I}),T=t.computed(()=>ke(l.unit)>0),$=t.computed(()=>!K.value),E=t.computed(()=>({[`${S}__unit`]:!0,hidden:!$.value})),D=I=>{g.value="",c("update:modelValue","",I),c("change","",I),c("clear","")},M=t.computed(()=>be(l.clearable)&&!i.value&&!s.value),K=t.computed(()=>{let I=ke(g.value)>0;return be(l.clearable)&&I&&d.value}),V=t.computed(()=>({action:!0,hidden:!K.value}));return()=>{const I={class:b.value,style:k.value,type:l.type,maxlength:l.maxLength,placeholder:p.placeholder.value,disabled:i.value,readonly:s.value,value:g.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:f,onFocus:C,onBlur:A},z=[],x=t.h("input",I);z.push(x);const H=[];if(M.value){const v={class:["action-icon"]},Y=t.h(o,v),O={class:V.value,onClick:D},F=t.h("view",O,{default:()=>[Y]});H.push(F)}if(T.value){const v=t.h("view",{class:E.value},[l.unit]);H.push(v)}const q={class:w.value,style:N.value},Z=t.h("view",q,{default:()=>H});z.push(Z);const ee={default:()=>z};ee.label=r.slots.default,ee.prepend=r.slots.prepend,ee.append=r.slots.append,ee.fixedPreTip=r.slots.fixedPreTip,ee.fixedTip=r.slots.fixedTip;const P={...mt(l,xr),hintText:m.value,hintVisible:h.value};return l.prop&&(P.prop=`${l.prop}_item`),t.h(a,P,ee)}}}}const{componentName:vc,create:qc,scope:Pc}=_("input-item"),Fo=qc(xc(vc,Pc,Be,le.CircleClose));function vr(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 qr(e,n,a=20){if(typeof n=="string"&&(n=pe(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Xa(`${e}`,`${n}`);return vr(o)}else{let o=po(`${e}`,Qa(`${n}`),20);return vr(o)}}function Mc(e,n=-1,a=!1,o=3,l=","){return on(e,n,a,o,l)}function Pr(e,n,a,o,l=!0){if(e==="")return"";if(e=Ga(e),n=pe(n),n==1)return e;if(o)e=qr(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(pe(a)+2,"0"):e=po(e,1,pe(a)));else{let r=-1*n;e=qr(e,r)}return e}function Mr(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=be(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=be(n.maxInclude),l=ho(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Lr={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 Lc(e,n,a,o){return{props:{...he,...ye,...Lr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const i=De(t.computed(()=>l.disabled)),s=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),u=t.ref(!1),p=Pe(l,"modelValue",null,c),d=t.ref("");t.watch([()=>p.value,()=>l.rates,()=>l.precision],([q,Z,ee])=>{if(ue(q)){d.value="";return}const j=Pr(q,Z,ee,!1);d.value!==j&&(d.value=j)},{immediate:!0});const g=t.computed(()=>{let q="";return u.value&&(q=d.value),q}),{t:S}=ie.useFoxI18n(n),b=t.computed(()=>{let q=l.placeholder??"";return!u.value&&!ue(d.value)?q=Mc(d.value,l.decimalLength,l.autoPadding,l.digits,l.separator):q=ue(q)?S(["placeholder"]):q,q}),y=e,k=t.computed(()=>({[y]:!0,[`${y}__placeholder`]:d.value.length>0,"is-disabled":i.value,"is-readonly":s.value})),f=Ve(t.computed(()=>l.textAlign),"textAlign"),m=t.computed(()=>{const q={};return f.value&&(q["text-align"]=f.value),q}),h=t.ref(""),C=t.computed(()=>{let q=h.value;return ue(q)&&(q=l.errorTip??""),q}),A=t.ref(""),w=t.ref(!1),N=q=>{let ee=q.target.value;if(ue(ee)){d.value="",p.value="",c("update:modelValue","",q),c("change","",q),be(l.showTip)&&w.value&&(w.value=!1);return}if(ee.length>=2){let j=ee;if(j.charAt(0)=="-"&&(j=j.substring(1)),j.length>=2&&j.charAt(0)=="0"&&j.charAt(1)!="."){t.triggerRef(d);return}}if(ee!="-"){if(!ar(ee)){t.triggerRef(d);return}if(l.integerLength!=-1&&rr(ee)>Number(l.integerLength)){t.triggerRef(d);return}if(l.decimalLength&&l.decimalLength!=-1&&sr(ee)>Number(l.decimalLength)){t.triggerRef(d);return}let j=Mr(ee,l);if(j.maxValid===!1){h.value=j.message,t.triggerRef(d);return}}else if(l.min!=null&&pe(l.min)>=0){t.triggerRef(d);return}A.value=ee,be(l.showTip)&&(w.value=ee.length>0),d.value=ee,p.value=Pr(ee,l.rates,l.precision,!0),c("update:modelValue",p.value,q),c("change",p.value,q)},T=q=>{if(u.value=!0,be(l.showTip)){let Z=d.value;ue(Z)&&(Z=l.hintText),ue(Z)||(A.value=Z,w.value=!0)}h.value="",c("focus",p.value,q)},$=q=>{if(setTimeout(()=>{u.value=!1,be(l.showTip)&&w.value===!0&&(w.value=!1)},0),!ue(d.value)){let Z=Mr(d.value,l);if(Z.minValid===!1||Z.maxValid===!1){h.value=Z.message;return}}c("update:modelValue",p.value,q),c("blur",p.value,q)},E=t.computed(()=>({[`${y}__append`]:!0,"is-disabled":i.value,"is-readonly":s.value})),D=t.computed(()=>{const q={};return r.slots.append&&!M.value&&!x.value&&(q.display="none"),q}),M=t.computed(()=>ke(l.unit)>0),K=t.computed(()=>!x.value),V=t.computed(()=>({[`${y}__unit`]:!0,hidden:!K.value})),I=q=>{p.value="",c("update:modelValue","",q),c("change","",q),c("clear","")},z=t.computed(()=>be(l.clearable)&&!i.value&&!s.value),x=t.computed(()=>{let q=ke(p.value)>0;return be(l.clearable)&&q&&u.value}),H=t.computed(()=>({action:!0,hidden:!x.value}));return()=>{let q={class:k.value,style:m.value,type:"digit",maxlength:l.maxLength,placeholder:b.value,disabled:i.value,readonly:s.value,value:g.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:N,onFocus:T,onBlur:$},Z=[],ee=t.h("input",q);Z.push(ee);let j=[];if(z.value){const F={class:["action-icon"]},Q=t.h(o,F),J={class:H.value,onClick:I},te=t.h("view",J,{default:()=>[Q]});j.push(te)}if(M.value){const F=t.h("view",{class:V.value},[l.unit]);j.push(F)}const P={class:E.value,style:D.value},L=t.h("view",P,{default:()=>j});Z.push(L);const v={default:()=>Z};v.label=r.slots.default,v.prepend=r.slots.prepend,v.append=r.slots.append,v.fixedPreTip=r.slots.fixedPreTip,v.fixedTip=r.slots.fixedTip;const O={...mt(l,Lr),errorTip:C.value,hintText:A.value,hintVisible:w.value,hintType:"number"};return l.prop&&(O.prop=`${l.prop}_item`),t.h(a,O,v)}}}}const{componentName:zc,create:Oc,scope:Fc}=_("money-item"),Ro=Oc(Lc(zc,Fc,Be,le.CircleClose)),Ko={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:Rc,create:Kc,scope:Uc}=_("textarea"),Hc=Kc({props:{...Ko},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=ie.useFoxI18n(Uc);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const g=Rc;return{[g]:!0,[`${g}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(s)});const i=t.computed(()=>({textAlign:e.textAlign})),s=()=>{let g=l.value;g.style.height="auto";let S=g.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:b,minHeight:y}=e.autosize;b!==void 0&&(S=Math.min(S,b)),y!==void 0&&(S=Math.max(S,y))}S&&(console.info("----------- height",S),g.style.height=S+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(s)});const c=(g,S)=>{e.maxLength&&g.length>Number(e.maxLength)&&(g=g.substring(0,Number(e.maxLength))),n("update:modelValue",g,S),n("change",g,S)};return{...o,textareaRef:l,classes:r,styles:i,change:g=>{const S=g.target;c(S.value,g)},focus:g=>{e.disabled||e.readonly||n("focus",g)},blur:g=>{if(e.disabled||e.readonly)return;let b=g.target.value;c(b,g),n("blur",{value:b,event:g})}}}}),jc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Wc={key:0,class:"fox-textarea__limit"};function Yc(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]=(...i)=>e.change&&e.change(...i)),onBlur:n[1]||(n[1]=(...i)=>e.blur&&e.blur(...i)),onFocus:n[2]||(n[2]=(...i)=>e.focus&&e.focus(...i)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,jc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Wc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const vn=ne(Hc,[["render",Yc]]);function Xc(e,n,a,o){return{props:{...he,...ye,...Ko},emits:["update:modelValue","change","blur","focus","setValue"],setup(l,r){const i=De(t.computed(()=>l.disabled)),s=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),u=Pe(l,"modelValue",null,c),p=y=>{u.value=y,c("update:modelValue",y,{}),c("change",y,{})};let d=Pe(l,"hintText"),g=t.ref(!1);const S=y=>{ue(d.value)||(g.value=!0),c("focus",u.value,y)},b=y=>{setTimeout(()=>{g.value&&(g.value=!1)},0),c("blur",u.value,y)};return()=>{const k={...Se(l,Ko),disabled:i.value,readonly:s.value,value:u.value,"onUpdate:modelValue":p,onFocus:S,onBlur:b},f=[],m=t.h(o,k);f.push(m);const h={default:()=>f};h.label=r.slots.default,h.prepend=r.slots.prepend,h.append=r.slots.append,h.fixedPreTip=r.slots.fixedPreTip,h.fixedTip=r.slots.fixedTip;const A={...Se(l,ye,he)};return l.prop&&(A.prop=`${l.prop}_item`),t.h(a,A,h)}}}}const{componentName:Qc,create:Gc,scope:Zc}=_("textarea-item"),Uo=Gc(Xc(Qc,Zc,Be,vn));function Jc(e){return e===window}const qe=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 _c=2e3;const zr=()=>_c++,Fe={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:{}}},ed=(e,n)=>({components:n,props:{...Fe},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});a.visible&&(l.zIndex=zr());const r=t.computed(()=>{const y=e,k=[y,`${y}--${a.position}`];return a.round&&k.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&k.push(`${y}--${a.position}--safebottom`),typeof a.popClass=="string"?k.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(f=>{k.push(f)}),k}),i=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),s=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{o("update:visible",!0),a.zIndex?l.zIndex=a.zIndex:l.zIndex=zr(),a.destroyOnClose&&(l.showSlot=!0),o("open")},u=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},p=y=>{o("click-pop",y)},d=y=>{y.stopPropagation(),o("click-close-icon",y),o("update:visible",!1)},g=y=>{o("click-overlay",y),a.closeOnClickOverlay&&o("update:visible",!1)},S=y=>{o("opend",y)},b=y=>{o("closed",y)};return t.watch(()=>a.visible,y=>{a.visible?c():u()}),t.watch(()=>a.closeable,y=>{l.closed=y}),{...t.toRefs(l),popStyle:i,transitionName:s,classes:r,onClick:p,onClickCloseIcon:d,onClickOverlay:g,onOpened:S,onClosed:b}}});let Lt=0;const Or="fox-overflow-hidden",Fr=()=>Ge?document.body:{classList:[]},td=e=>[()=>{if(e())try{!Lt&&Fr().classList.add(Or),Lt++}catch{}},()=>{if(e()&&Lt)try{Lt--,!Lt&&Fr().classList.remove(Or)}catch{}}],nd={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:od,create:ld}=_("overlay"),ad=ld({props:{...nd},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=td(()=>e.lockScroll),l=t.computed(()=>({[od]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,s=>{s?a():o()}),{classes:l,style:r,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function rd(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((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const it=ne(ad,[["render",rd]]),{componentName:sd,create:id}=_("popup"),cd=id(ed(sd,{FoxOverLay:it,Close:le.Close}));function dd(e,n,a,o,l,r){const i=t.resolveComponent("FoxOverLay"),s=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...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(s)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const me=ne(cd,[["render",dd]]),Rr=10;function Kr(e,n){return e>n&&e>Rr?"horizontal":n>e&&n>Rr?"vertical":""}function Ho(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function jo(){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:i=>{if(i.touches){const u=i.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const c=i;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=Kr(e.offsetX,e.offsetY))},start:i=>{if(o(),i.touches){const u=i.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const c=i;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function tt(){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),i=t.ref(0),s=t.ref(0),c=t.ref(0),u=t.ref(0),p=t.ref(""),d=()=>p.value==="vertical",g=()=>p.value==="horizontal",S=()=>{i.value=0,s.value=0,c.value=0,u.value=0,p.value="",a.value=0};return{move:k=>{if(k.touches){const h=k.touches[0];i.value=h.clientX-e.value,s.value=h.clientY-n.value,l.value=h.clientX,r.value=h.clientY}else{const m=k;i.value=m.clientX-e.value,s.value=m.clientY-n.value,l.value=m.clientX,r.value=m.clientY}c.value=Math.abs(i.value),u.value=Math.abs(s.value),o.value=Date.now()-a.value,p.value||(p.value=Kr(c.value,u.value))},start:k=>{if(S(),k.touches){const h=k.touches[0];e.value=h.clientX,n.value=h.clientY}else{const m=k;e.value=m.clientX,n.value=m.clientY}a.value=Date.now()},reset:S,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:i,deltaY:s,offsetX:c,offsetY:u,direction:p,isVertical:d,isHorizontal:g}}const Ur={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},Wo={...Fe,...Ur,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},isAutoBackFill:{type:[Boolean],default:()=>!0}};let Hr=36;function ud(){return Hr}function fd(e){Hr=e}function Re(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Yo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function md(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function ct(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function jr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let pd=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=_e(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function hd(){const e=t.getCurrentInstance();return new pd(e.proxy)}function Wr(e,n,a){const o=Re(e,n),l=Re(e,a);if(o!==l)return!1;const r=ct(e,n),i=ct(e,a);return r===i}function gd(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 i=0;i<n.length&&i<a.length;i++){const s=n[i];let u=a[i].findIndex(p=>{if(r==="text")return Re(e,p)===s;if(r==="value"){let d=ct(e,p);return d==null&&(d=Re(e,p)),d===s}else if(r==="item")return Wr(e,p,s)});if(u==-1)break;l.push(u)}else{let i=a[0];for(let s=0;s<n.length;s++){const c=n[s];let u=i.findIndex(d=>{if(r==="text")return Re(e,d)===c;if(r==="value"){let g=ct(e,d);return g==null&&(g=Re(e,d)),g===c}else if(r==="item")return Wr(e,d,c)});if(u==-1)break;l.push(u);const p=Yo(e,i[u]);if(!Array.isArray(p))break;i=p}}return l}function Yr(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 i=0;i<n.length&&i<a.length;i++){const s=a[i];let c=n[i];c<0&&c>=s.length&&(c=0);const u=s[c],p=Re(e,u);if(l.texts.push(p),l.items.push(u),r==="text")l.values.push(p);else if(r==="value"){let d=ct(e,u);d==null&&(d=p),l.values.push(d)}else l.values.push(u)}else{let i=a[0];for(let s=0;s<n.length;s++){let c=n[s];c<0&&c>=i.length&&(c=0);const u=i[c],p=Object.assign({},u);p.children=null;const d=Re(e,u);if(l.texts.push(d),l.items.push(p),r==="text")l.values.push(d);else if(r==="value"){let g=ct(e,u);g==null&&(g=d),l.values.push(g)}else l.values.push(p);if(!Array.isArray(u.children))break;i=u.children}}return l}function Xr(e){return{text:e,value:e}}const yd=15,bd=300,kd=200,{create:Sd}=_("picker-column");function Cd(e){e.stopPropagation()}function wd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),Cd(e)}const Nd=Sd({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},...Ur},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${pe(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)),i=N=>N>=d.currIndex+8||N<=d.currIndex-8,s=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)`,u=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}),g=N=>Re(e,N),S=N=>ct(e,N),b=tt(),y=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},k=(N,T=!1,$=!1)=>{if(d.currIndex=N,T){const E=()=>{d.moving=!1,n("update:modelValue",N),n("change",N)};$?d.transitionEndTrigger=E:E()}},f=(N,T,$)=>{let E=N+d.startDistance;if(T==="end"){const D=-(e.source.length-1)*e.itemHeight;E<D&&(E=D),E>0&&(E=0);let M=Math.abs(Math.round(-E/e.itemHeight));const K=-M*e.itemHeight,V=`${(M+1)*d.rotation}deg`,I=$?$>0:!1;k(M,!0,I),m(K,T,$,V)}else{let D=(-E/e.itemHeight+1)*d.rotation;const M=(e.source.length+1)*d.rotation,K=0;if(D=Math.min(Math.max(D,K),M),e.threeDimensional&&(D<K||D>M))return;m(E,null,void 0,`${D}deg`)}},m=(N=0,T,$=kd,E)=>{T==="end"?d.scrollTime=$:d.scrollTime=0,d.deg=E,d.scrollDistance=N},h=(N,T)=>(N=Math.abs(N/T)/.003*(N<0?-1:1),N),C=N=>{e.readonly||(d.startDistance=d.scrollDistance,b.start(N),d.transitionEndTrigger=null)},A=N=>{e.readonly||(d.moving=!0,b.move(N),b.isVertical()&&(d.moving=!0,wd(N)),f(b.deltaY.value,"",0))},w=()=>{if(e.readonly)return;const N=b.deltaY.value,T=b.duration.value;if(T<bd&&Math.abs(N)>yd){const E=h(N,T);f(E,"end",e.swipeDuration)}else f(N,"end",0)};return t.watch(()=>e.modelValue,N=>{const T=d.currIndex-N;if(T!==0){d.currIndex=N,d.startDistance=d.scrollDistance;const $=T*e.itemHeight;f($,"",0)}}),t.watch(()=>e.source,N=>{if(d.currIndex>=N.length){const E=(N.length-1-d.currIndex)*e.itemHeight;d.startDistance=d.scrollDistance,f(E,"end",0)}}),t.watch(()=>e.visible,N=>{N===!1&&y()}),t.onMounted(()=>{const N=-e.modelValue*e.itemHeight;f(N)}),{classes:a,styles:o,contentClasses:l,itemText:g,itemValue:S,...t.toRefs(d),roller:p,getItemText:Re,onTouchStart:C,onTouchMove:A,onTouchEnd:w,isHidden:i,setRollerStyle:c,touchRollerStyle:s,touchTileStyle:u,stopMomentum:y}}}),Bd={key:1,class:"fox-picker__item-tile"};function Ad(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]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${s}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(s+1)}]),style:t.normalizeStyle(e.setRollerStyle(s+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",Bd,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const Td=ne(Nd,[["render",Ad]]),{create:$d,componentName:Vd,scope:Ed}=_("picker"),Dd=$d({components:{Column:Td,Popup:me},props:{...Wo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=ie.useFoxI18n(Ed),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(ud());t.watch(()=>e.visible,V=>{V&&i.value<=0&&setTimeout(()=>{if(r.value){const I=qe(r.value);i.value=I.height,fd(i.value)}},50)});const s=t.computed(()=>({[Vd]:!0})),c=hd(),u=t.ref("singleColumn");let p=t.ref([]);t.watch([()=>e.source,()=>e.params],async([V,I])=>{if(V){let z=await c.load("picker",V,I);if(z.length>0){let x=z[0];if(Array.isArray(x)){if(typeof x[0]=="string"){let H=z,q=[];H.forEach(Z=>{let ee=Z.map(j=>Xr(j));q.push(ee)}),p.value=q}else p.value=z;u.value="multipleColumn"}else if(typeof x=="string"){let H=z,q=[],Z=H.map(ee=>Xr(ee));q.push(Z),p.value=q,u.value="singleColumn"}else{const H=Yo(e,x);Array.isArray(H)?(u.value="cascade",p.value=[z]):(u.value="singleColumn",p.value=[z])}}else p.value=[]}},{immediate:!0});const d=t.ref([]),g=t.ref(e.modelValue),S=t.ref([]);let b=null;const y=t.ref([]);t.watch([()=>e.modelValue,()=>p.value],([V,I])=>{let z=gd(e,V,I,u.value);if(!Me(z,y.value)){y.value=z,b||(b=z?[...z]:[]);let x=Yr(e,z,I,u.value);x&&(d.value=x.texts,n("update:text",d.value))}});let k="";const f=t.ref(e.visible);t.watch(()=>e.visible,V=>{f.value=V,V&&(k="active",y.value.length>0&&(b=[...y.value]))});const m=V=>{let I=jr(e,V);return Ie(I)?I.defaultIndex??0:0},h=V=>{if(e.readonly===!0)return!0;let I=jr(e,V);return Ie(I)?I.readonly??!1:!1},C=(V,I)=>{let z=y.value;z[V]=I;for(let H=0;H<V;H++)z[H]==null&&(z[H]=m(H));if(u.value==="cascade")for(let H=V+1;H<w.value.length;H++){let q=m(H);H<z.length?z[H]=q:z.push(q)}else for(let H=z.length;H<w.value.length;H++){let q=m(H);z.push(q)}y.value=z;let x=Yr(e,z,p.value,u.value);x&&(d.value=x.texts,g.value=x.values,S.value=x.items)},A=V=>V<y.value.length?y.value[V]:m(V),w=t.computed(()=>{if(p.value.length==0)return[];if(u.value=="singleColumn"||u.value=="multipleColumn")return p.value;let V=[],I=0,z=p.value[0],x=0;for(;;){let H=z.map(ee=>{let j=Object.assign({},ee);return md(e,j,null),j});V.push(H),I>=y.value.length?x=0:x=y.value[I],(x<0||x>=z.length)&&(x=0);let q=z[x];const Z=Yo(e,q);if(!Array.isArray(Z))break;z=Z,I++}return V}),N=t.computed(()=>pe(+e.visibleItemCount-1)/2*i.value),T=(V=!1)=>{if(e.readonly===!0){V&&n("update:visible",!1);return}let I=p.value.length-1;for(;I>=0&&!(y.value[I]===null||y.value[I]===void 0);I--);if(I>=0&&C(I,0),u.value==="singleColumn"){let z=g.value.length>0?g.value[0]:"",x=S.value.length>0?S.value[0]:null;n("update:modelValue",z),n("update:text",d.value),n("change",z,x),V&&(n("confirm",z),n("update:visible",!1))}else n("update:modelValue",g.value),n("update:text",d.value),n("change",g.value,S.value),V&&(n("confirm",g.value),n("update:visible",!1))},$=(V,I)=>{if(k!=="close"&&(C(V,I),e.isAutoBackFill)){const z=!f.value;T(z)}},E=()=>{k==="active"&&(k="confirm",b=Array.isArray(y.value)?[...y.value]:[],T(!0))},D=()=>{u.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),y.value=[],b=null};return{...l,pickerLineRef:r,classes:s,columns:w,dataType:u,show:f,itemHeight:i,top:N,isReadonly:h,getIndex:A,change:$,close:()=>{if(k==="active"){if(k="close",b===null||b.length===0)D();else{if(Array.isArray(b))for(let V=0;V<b.length;V++)C(V,b[V]);T(!1)}n("close"),n("update:visible",!1)}},confirm:E,clear:()=>{if(k==="active"){if(k="clear",e.readonly===!0){n("update:visible",!1);return}D(),b=null,n("clear",""),n("update:visible",!1)}}}}}),Id={class:"fox-picker__bar"},xd={class:"fox-picker__title"},vd={class:"fox-picker__bar__action"},qd={class:"fox-picker__column"};function Pd(e,n,a,o,l,r){const i=t.resolveComponent("Column"),s=t.resolveComponent("Popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(s,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",Id,[t.createElementVNode("view",xd,t.toDisplayString(e.title),1),t.createElementVNode("view",vd,[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",qd,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:"fox-picker__columnitem"},[t.createVNode(i,{visible:e.show,source:c,readonly:e.isReadonly(u),"column-index":u,modelValue:e.getIndex(u),"onUpdate:modelValue":p=>e.change(u,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,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const zt=ne(Dd,[["render",Pd]]);function Md(e,n,a,o,l,r,i=!0){return{props:{...he,...ye,...Wo,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","setValue"],setup(s,c){const u=De(t.computed(()=>s.disabled)),p=Ee(t.computed(()=>s.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},s.prop??c.attrs.name),{toLocaleRefs:g}=ie.useFoxI18n(n),S=g(s,["placeholder"]),b=t.ref(!1),y=Pe(s,"modelValue",null,d),k=t.ref([]),f=t.computed(()=>Array.isArray(k.value)?k.value.join(s.separator):k.value),m="fox-input-item",h=t.computed(()=>({[m]:!0,"is-disabled":u.value,"is-readonly":p.value})),C=Ve(t.computed(()=>s.textAlign),"textAlign"),A=t.computed(()=>{const L={};return C.value&&(L["text-align"]=C.value),L}),w=t.ref(!1),N=()=>{w.value=!0},T=L=>{w.value=L},$=L=>{y.value=L,d("update:modelValue",L)},E=(L,v)=>{d("change",L,v)},D=L=>{let Y=L.target.value;b.value=!0,d("focus",Y,L)},M=L=>{setTimeout(()=>{b.value=!1},0);let Y=L.target.value;s.maxLength&&Y.length>Number(s.maxLength)&&(Y=Y.slice(0,Number(s.maxLength))),d("blur",Y,L)},K=L=>{k.value=L,Array.isArray(L)&&L.length===0?d("update:text",L[0]):d("update:text",L)},V=t.computed(()=>({[`${m}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),I=t.computed(()=>ke(s.unit)>0),z=t.computed(()=>ke(s.unit)>0&&!b.value),x=t.computed(()=>({hidden:!z.value})),H=L=>{y.value="",d("update:modelValue","",L),d("change","",L),d("clear","")},q=t.computed(()=>s.clearable&&!u.value&&!p.value),Z=t.computed(()=>ke(y.value)>0&&b.value),ee=L=>{Z.value?H(L):N()},j=t.computed(()=>Z.value&&q.value?o:l),P=t.computed(()=>({action:!0}));return()=>{const L={class:h.value,style:A.value,type:"text",maxlength:s.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:D,onBlur:M};i&&(L.disabled=!0);const v=[],Y=t.h("input",L);v.push(Y);const O=[],F={class:["action-icon"]},Q=t.h(j.value,F),J={class:P.value,onClick:ee},te=t.h("view",J,{default:()=>[Q]});if(O.push(te),I.value){const se=t.h("view",{class:x.value},[s.unit]);O.push(se)}const U={class:V.value},W=t.h("view",U,{default:()=>O});v.push(W);const G={default:()=>v};G.label=c.slots.default,G.prepend=c.slots.prepend,G.append=c.slots.append,G.fixedPreTip=c.slots.fixedPreTip,G.fixedTip=c.slots.fixedTip;const R=Se(s,Wo);R.disabled=!1,R.readonly=u.value||p.value,R.visible=w.value,R["onUpdate:visible"]=T,R.modelValue=y.value,R["onUpdate:modelValue"]=$,R.text=k.value,R["onUpdate:text"]=K,R.onChange=E;const X=t.h(r,R);G.hide=()=>[X];const oe=Se(s,ye,he);return s.prop&&(oe.prop=`${s.prop}_item`),t.h(a,oe,G)}}}}const{componentName:Ld,create:zd,scope:Od}=_("picker-item"),Xo=zd(Md(Ld,Od,Be,le.CircleClose,le.ArrowRight,zt,!1)),qn=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:i="children"}=a??{},{[l]:s,[r]:c,[i]:u,...p}=o,d={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:s,text:c,children:u,_parent:n};return d.children&&d.children.length&&(d.children=qn(d.children,d,a)),d}),Qr=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&Qr(o.children,n)},Fd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Rd=(e,n)=>{const a={...Fd,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:i}=a;let s=[],c={};return e.forEach(u=>{u={...u};const{[l]:p,[r]:d}=u,g=c[d]=c[d]||[];!s.length&&d===o&&(s=g),g.push(u),u.children=c[p]||(c[p]=[])}),i&&Object.keys(c).forEach(u=>{c[u].length>1&&c[u].sort((p,d)=>p[i]-d[i])}),c=null,s},Kd={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}},Gr=(e,n)=>n[e.textKey],Ot=(e,n)=>n[e.valueKey],Ud=(e,n)=>n[e.visibleKey],Zr=(e,n)=>n[e.disabledKey],Hd=(e,n)=>{const a=n[e.doitKey];return be(a)},jd=(e,n)=>{const a=n[e.numKey];return a==null?null:pe(n[a])},Jr=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function Wd(e,n,a,o=!1){return{props:{...Kd},emits:["update:modelValue","change","click"],setup(l,{slots:r,emit:i}){const s=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}),u=t.computed(()=>({})),p=t.computed(()=>{if(!l.gutter)return 0;const j=fe(l.gutter);return j<=0?0:j}),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,j=>{d.value!==j&&(d.value=j,x(!1))});const g=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),S=t.computed(()=>{const j={};return y.value||(j.display="none"),j}),b=t.ref(),y=t.ref(!1),k=()=>{const j=!y.value;f(j)},f=j=>{const P=j;P?(y.value=P,setTimeout(()=>{g.value["fox-tabs-bar__popup--show"]=!0,g.value["fox-tabs-bar__popup--hide"]=!1},0)):(g.value["fox-tabs-bar__popup--show"]=!1,g.value["fox-tabs-bar__popup--hide"]=!0,b.value?b.value.addEventListener("transitionend",()=>{y.value=!1},{once:!0}):setTimeout(()=>{y.value=!1},0))},m=t.ref(),h=t.ref([]),C=(j,P)=>{h.value[P]=j},A=j=>P=>{C(P,j)},w=(j,P)=>{const L=m.value,v=h.value;if(!L||!v||!v[j])return;const Y=v[j];let O=0;l.direction==="vertical"?O=Y.offsetTop-(L.offsetHeight-Y.offsetHeight)/2:O=Y.offsetLeft-(L.offsetWidth-Y.offsetWidth)/2,N(L,O,P?0:.3,l.direction)},N=(j,P,L,v)=>{let Y=0;const O=v==="horizontal"?j.scrollLeft:j.scrollTop,F=L===0?1:Math.round(L*1e3/16);function Q(){v==="horizontal"?j.scrollLeft+=(P-O)/F:j.scrollTop+=(P-O)/F,++Y<F&&Ue(Q)}Q()},T=(j,P)=>{const L=Ot(l,j),v={};return v[`${e}__titles-item`]=!0,v.disabled=Zr(l,j),v.active=L===d.value,l.shape&&(v[`${l.shape}`]=!0),l.ellipsis&&(v.ellipsis=!0),P&&(P.class&&(v[`${P.class}`]=!0),P.disabled===!0&&(v.disabled=P.disabled)),v},$=(j,P)=>{const L={};if(p.value>0){const v=Math.abs(p.value/2);l.direction==="vertical"?(L["margin-top"]=`${v}px`,L["margin-bottom"]=`${v}px`):(L["margin-left"]=`${v}px`,L["margin-right"]=`${v}px`)}return P&&P.style&&Object.assign(L,P.style),L},E=(j,P)=>`${Ot(l,j)??P}`,D=(j,P)=>{const L=Ot(l,j),v={};v[`${e}__popup-item`]=!0,v.disabled=Zr(l,j),v.active=L===d.value,l.shape&&(v[`${l.shape}`]=!0);const Y=Jr(l,j,P);return Y&&Y.disabled===!0&&(v.disabled=Y.disabled),v},M=t.computed(()=>(l.data??[]).filter(P=>Ud(l,P)!==!1)),K=(j,P)=>{const L=Ot(l,j);if(i("click",j,P),d.value==L)return;const v=()=>{d.value=L,l.scroll&&w(P,!1),i("update:modelValue",L),i("change",j,P)};if(typeof l.beforeChange=="function"){const Y=l.beforeChange(j,P);ft(Y)?Y.then(O=>{O!==!1&&v()}).catch(()=>{v()}):Y!==!1&&v()}else v()},V=(j,P)=>function(){K(j,P)},I=(j,P)=>{K(j,P),f(!1)},z=(j,P)=>function(){I(j,P)},x=j=>{if(!Array.isArray(l.data)||!l.scroll)return;const P=l.data.findIndex(L=>Ot(l,L)===d.value);P!==-1&&w(P,j)};t.watch(()=>l.data,()=>{setTimeout(x,0)}),t.onMounted(()=>{x(!0)});const H=(j,P)=>{if(r.item)return r.item({item:j,index:P});const L=Jr(l,j,P),v=[];if(r.text){const Q=r.text({item:j,index:P});v.push(Q)}else{const Q=[];if(L?.doit===!0||Hd(l,j)){const W={class:[`${e}__titles-item-tip`,"doit"]},G=t.h("view",W);Q.push(G)}const J=L?.num??jd(l,j);if(J){let W="";const G=pe(J);G>=100?W="99+":W=`${G}`;const R={class:[`${e}__titles-item-tip`,"num"]},X=t.h("view",R,[W]);Q.push(X)}const te={class:`${e}__titles-item-text`};Q.push(Gr(l,j));const U=t.h("view",te,Q);v.push(U)}const Y={class:`${e}__titles-item-line`},O=t.h("view",Y);v.push(O);const F={ref:A(P),class:T(j,L),style:$(j,L),key:E(j,P),onClick:V(j,P)};return t.h("view",F,v)},q=()=>{const j=r.default?r.default():[];if(j.length===0)for(let L=0;L<M.value.length;L++){const v=M.value[L],Y=H(v,L);j.push(Y)}const P={ref:m,class:c.value,style:u.value};return t.h("view",P,j)},Z=()=>{let j=null;r.navigation?j=r.navigation():j=t.h(a);const P={class:`${e}__navigation`,onClick:k};return t.h("view",P,[j])},ee=()=>{const j=[];for(let L=0;L<M.value.length;L++){const v=M.value[L];let Y=null;r.popupItem?Y=r.popupItem({item:v,index:L}):Y=Gr(l,v);const O={class:D(v,L),key:E(v,L),onClick:z(v,L)},F=t.h("view",O,[Y]);j.push(F)}const P={class:g.value,style:S.value};return t.h("view",P,j)};return()=>{const j=[],P=q();if(j.push(P),l.showQuickNavigation){const v=Z();j.push(v);const Y=ee();j.push(Y)}const L={class:s.value};return t.h("view",L,j)}}}}const{create:Yd,componentName:Xd,scope:Qd}=_("tabs-bar"),Pn=Yd(Wd(Xd,Qd,le.MoreH,!1)),_r=Symbol("TabsStatesKey"),Gd={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Zd(e,n,a=!1){return{props:{...Gd},emits:["update:modelValue","change"],setup(o,{emit:l,slots:r}){const i=t.shallowRef([]),s={current:t.ref(o.modelValue??""),direction:t.ref(o.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:y=>{const k={name:y};s.current.value===y&&(k.loaded=!0),i.value.push(k),t.triggerRef(i)},remove:y=>{const k=i.value.findIndex(f=>f.name===y);k!==-1&&i.value.splice(k,1)},isLoaded:y=>{if(!o.lazy)return!0;const k=i.value.findIndex(f=>f.name===y);return k!==-1?s.current.value?i.value[k].loaded??!1:k===0:!1}};t.provide(_r,s);const c=y=>{const k=i.value.findIndex(f=>f.name===y);k!==-1&&(i.value[k].loaded=!0,t.triggerRef(i))};t.watch([()=>o.modelValue,()=>o.direction],([y,k])=>{s.current.value!==y&&(s.current.value=y??"",c(y??"")),s.direction.value!==k&&(s.direction.value=k)});const u=t.ref(null),p=t.ref(null),d=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0}));let g=!0;const S=t.computed(()=>{const y={},k=i.value.length;if(k<=0)return y;const f=i.value.findIndex(m=>m.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(y.height=`${k*s.tabHeight.value}px`,f!==-1&&(y.transform=`translate(0, -${f*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(y.width=`${k*s.tabWidth.value}px`,f!==-1&&(y.transform=`translate(-${f*s.tabWidth.value}px, 0)`)),g&&(g=!1,y.transition="transform 0s ease"),y});let b=null;return t.onMounted(()=>{if(!u.value)return;const y=()=>{const k=Nn(u.value);s.tabWidth.value=k.width,s.tabHeight.value=k.height};window.ResizeObserver&&(b=new window.ResizeObserver(y),b.observe(u.value)),y()}),t.onBeforeUnmount(()=>{b&&(b.disconnect(),b=null)}),()=>{const y={class:`${e}__panes`,style:S.value,ref:p},k=t.h("view",y,[r?.default?.()]),f={class:d.value,ref:u};return t.h("view",f,[k])}}}}const{create:Jd,componentName:_d,scope:eu}=_("tabs-container"),Mn=Jd(Zd(_d,eu,!1)),tu={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function nu(e,n,a){return{props:{...tu},setup(o,{emit:l,slots:r}){const i=t.inject(_r);t.onMounted(()=>{i.add(o.paneKey)}),t.onBeforeUnmount(()=>{i.remove(o.paneKey)});const s=t.computed(()=>{const u={};return i.direction.value==="vertical"&&i.tabHeight.value>0?u.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(u.width=`${i.tabWidth.value}px`),u}),c=t.computed(()=>o.loaded!=null?be(o.loaded):i.isLoaded(o.paneKey));return()=>{let u=[];if(c.value)u=r?.default?.()??[];else if(r.empty)u=r.empty();else{const d={class:`${e}__empty-icon`},g=o.emptyIcon??a,S=t.h(g,d),b={class:`${e}__empty-text`},y=o.emptyText??"Loading",k=t.h("view",b,[y]),f={class:`${e}__empty`},m=t.h("view",f,[S,k]);u.push(m)}const p={class:`${e}`,style:s.value};return t.h("view",p,u)}}}}const{create:ou,componentName:lu,scope:au}=_("tabs-pane"),Ln=ou(nu(lu,au,le.Loading));class es{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=qn(n,null,this.config)}updateChildren(n,a){a?a.children=qn(n,a,this.config):this.nodes=qn(n,null,this.config)}getNodeByValue(n){let a;return Qr(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:ru,scope:su}=_("cascader-pane"),iu=ru({components:{Loading:le.Loading,Checklist:le.Checklist,TabsBar:Pn,TabsContainer:Mn,TabsPane:Ln},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}=ie.useFoxI18n(su),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),i=t.ref(e.modelValue),s=t.ref(new es([],{})),c=t.ref([]),u=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,h)=>({text:m.selectedNode?m.selectedNode.text:a("select"),value:h}))),d=new Map;let g;const S=async()=>{d.clear(),c.value=[],l.value=0,r.value=!1,g=null;let{options:m}=e;o.value.convertConfig&&(m=Rd(m,o.value.convertConfig)),s.value=new es(m,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),u.value&&!s.value.nodes.length&&await y({root:!0,loading:!0,text:"",value:""}),c.value=[{nodes:s.value.nodes,selectedNode:null}],b(!u.value)},b=async(m=!0)=>{const h=i.value;if(h===void 0||!s.value.nodes.length)return;if(h.length===0){l.value=0,c.value=[{nodes:s.value.nodes,selectedNode:null}];return}let C=h;if(u.value&&Array.isArray(h)&&h.length){C=[];let A=s.value.nodes.find(w=>w.value===h[0]);if(A){C=[A.value],r.value=!0;const w=await h.slice(1).reduce(async(N,T)=>{const $=await N;await y($);const E=$?.children?.find(D=>D.value===T);return E&&C.push(T),Promise.resolve(E)},Promise.resolve(A));await y(w),r.value=!1}}C.length&&h===e.modelValue&&s.value.getPathNodesByValue(C).map((w,N)=>{l.value=N,f.handleNode(w,m)})},y=async m=>{if(!m)return;if(!o.value.lazyLoad){m.leaf=!0;return}if(s.value.isLeaf(m,u.value)||s.value.hasChildren(m,u.value))return;m.loading=!0;const h=m.root?null:m;let C=d.get(m);C||(C=new Promise(w=>{o.value.lazyLoad?.(m,w)}),d.set(m,C));const A=await C;Array.isArray(A)&&A.length>0?s.value.updateChildren(A,h):m.leaf=!0,m.loading=!1,d.delete(m)},k=m=>{const h=m.map(C=>C.value);i.value=h,n("change",h,m),n("pathChange",m),n("update:modelValue",h)},f={async handleNode(m,h){const{disabled:C,loading:A}=m;if(!(!h&&C||!c.value[l.value])){if(s.value.isLeaf(m,u.value)){if(m.leaf=!0,c.value[l.value].selectedNode=m,c.value=c.value.slice(0,m.level+1),!h){const w=c.value.map(N=>N.selectedNode);k(w),n("pathChange",w)}return}if(s.value.hasChildren(m,u.value)){const w=m.level+1;if(c.value[l.value].selectedNode=m,c.value=c.value.slice(0,w),c.value.push({nodes:m.children||[],selectedNode:null}),l.value=w,!h){const N=c.value.map(T=>T.selectedNode);n("pathChange",N)}return}g=m,!A&&(await y(m),g===m&&(c.value[l.value].selectedNode=m,f.handleNode(m,h)))}},handleTabChange(m,h){g=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:a("select")},isSelected(m,h){return m.selectedNode&&m.selectedNode.value===h.value}};return t.watch([o,()=>e.options],()=>{S()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,m=>{Me(m,i.value)||(i.value=m,b(!u.value))}),t.watch(()=>e.visible,m=>{m&&Array.isArray(i.value)&&i.value.length>0&&b()}),{panes:c,panesTitles:p,initLoading:r,tabsCursor:l,...f}}}),cu={class:"fox-cascader"},du={role:"menu",class:"fox-cascader__pane"},uu=["aria-checked","aria-disabled","onClick"],fu={class:"fox-cascader__item__title"};function mu(e,n,a,o,l,r){const i=t.resolveComponent("TabsBar"),s=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),u=t.resolveComponent("TabsPane"),p=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",cu,[t.createVNode(i,{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,g)=>(t.openBlock(),t.createBlock(u,{"pane-key":g,key:g},{default:t.withCtx(()=>[t.createElementVNode("view",du,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,S=>(t.openBlock(),t.createElementBlock("view",{key:S.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,S),disabled:S.disabled}]),"aria-checked":e.isSelected(d,S),"aria-disabled":S.disabled||void 0,role:"menuitemradio",onClick:b=>e.handleNode(S,!1)},[t.createElementVNode("view",fu,t.toDisplayString(S.text),1),S.loading?(t.openBlock(),t.createBlock(s,{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,uu))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(u,{key:1,"pane-key":0},{default:t.withCtx(()=>n[2]||(n[2]=[t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1)])),_:1}))]),_:1},8,["modelValue"])])}const pu=ne(iu,[["render",mu]]),{create:hu}=_("cascader"),gu=hu({components:{FoxCascaderPane:pu,FoxPopup:me},props:{...Fe,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(i){n("update:visible",i)}}),l=(i,s)=>{a.value=i,o.value=!1,n("change",i,s),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==a.value&&(a.value=i)}),{onChange:l,onPathChange:r,innerValue:a,innerVisible:o}}}),yu=["innerHTML"];function bu(e,n,a,o,l,r){const i=t.resolveComponent("FoxCascaderPane"),s=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(s,{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,yu)):t.createCommentVNode("",!0),t.createVNode(i,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(i,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}const zn=ne(gu,[["render",bu]]);function St(e,n){const a=e.textKey??"text";return n[a]??""}function Ct(e,n){const a=e.valueKey??"value";return n[a]}function ts(e,n){const a=e.childrenKey??"children";return n[a]}function On(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=St(e,l),i=Ct(e,l);a.texts.push(r),a.values.push(i??"")}return a}function ns(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let i=0;i<n.length;i++)if(St(e,n[i])===r){const c=Ct(e,n[i])??"",u={[e.textKey]:r,[e.valueKey]:c};l.push(u);const p=ts(e,n[i]);Array.isArray(p)&&ns(e,p,a,o+1,l);return}}function os(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let i=0;i<n.length;i++)if(Ct(e,n[i])===r){const c=St(e,n[i])??"",u={[e.textKey]:c,[e.valueKey]:r};l.push(u);const p=ts(e,n[i]);Array.isArray(p)&&os(e,p,a,o+1,l);return}}function Qo(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=St(e,n[o]),r=St(e,a[o]);if(l!==r)return!1;const i=Ct(e,n[o]),s=Ct(e,a[o]);if(i!==s)return!1}return!0}let ku=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){const l="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a,o);const r=_e(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(Ie(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await r(n,a,o))}};function Su(){const e=t.getCurrentInstance();return new ku(e.proxy)}const ls={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},showAllLevels:{type:[Boolean],default:!0},separator:{type:[String],default:"/"}};function Cu(e,n,a,o,l,r,i=!1){return{props:{...he,...ye,...ls},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,c){const u=De(t.computed(()=>s.disabled)),p=Ee(t.computed(()=>s.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},s.prop??c.attrs.name),{toLocaleRefs:g}=ie.useFoxI18n(n),S=g(s,["placeholder"]),b=t.ref(!1),y=Su(),k=t.ref([]),f=t.ref([]),m=t.computed(()=>{if(Array.isArray(f.value)){if(s.showAllLevels===!1){const F=f.value.length-1;return f.value[F]}return f.value.join(s.separator)}else return f.value}),h=t.ref([]),C=t.ref([]);t.watch([()=>s.modelValue,()=>k.value],async([F,Q])=>{if(d("setValue",F),s.lazy===!0){C.value.length==0&&(h.value=Array.isArray(F)?F:[]);return}if(s.valueType==="item"){let J=F;if(!Qo(s,J,C.value)){C.value=J;let te=On(s,J);f.value=te.texts,h.value=te.values}}else if(s.valueType==="text"){let J=F,te=[];if(ns(s,Q,J,0,te),!Qo(s,te,C.value)){C.value=te;let U=On(s,te);J.value=U.texts,h.value=U.values}}else{let J=[];if(os(s,Q,F,0,J),!Qo(s,J,C.value)){C.value=J;let te=On(s,J);f.value=te.texts,h.value=te.values}}}),s.lazy===!0&&(h.value=Array.isArray(s.modelValue)?s.modelValue:[]),t.watch([()=>s.source,()=>s.params],async([F,Q])=>{s.lazy||F&&(k.value=await y.load(F,Q))},{immediate:!0});const A="fox-input-item",w=t.computed(()=>({[A]:!0,"is-disabled":u.value,"is-readonly":p.value})),N=Ve(t.computed(()=>s.textAlign),"textAlign"),T=t.computed(()=>{const F={};return N.value&&(F["text-align"]=N.value),F}),$=t.ref(!1),E=()=>{u.value===!0||p.value===!0||($.value=!0)},D=F=>{$.value=F},M=(F,Q)=>{let J=Q.map(U=>{if(U==null)return U;let W={...U};return Reflect.deleteProperty(W,"text"),W[s.textKey]=U.text??"",Reflect.deleteProperty(W,"value"),W[s.valueKey]=U.value??"",W});C.value=J;let te=On(s,J);f.value=te.texts,h.value=te.values,s.valueType==="text"?(d("change",f.value,J),d("update:modelValue",f.value)):s.valueType==="item"?(d("change",J,J),d("update:modelValue",J)):(d("change",h.value,J),d("update:modelValue",h.value)),d("update:pathNodes",J)},K=F=>{let Q=F.map(J=>{if(J==null)return J;let te={...J};return Reflect.deleteProperty(te,"text"),te[s.textKey]=J.text??"",Reflect.deleteProperty(te,"value"),te[s.valueKey]=J.value??"",te});d("pathChange",Q)},V=F=>{b.value=!0,d("focus",h.value,F)},I=F=>{setTimeout(()=>{b.value=!1},0),d("blur",h.value,F)},z=t.computed(()=>({[`${A}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),x=t.computed(()=>ke(s.unit)>0),H=t.computed(()=>ke(s.unit)>0&&!b.value),q=t.computed(()=>({hidden:!H.value})),Z=F=>{C.value=[],f.value=[],h.value=[],d("update:modelValue",[]),d("change",[],F),d("clear",[]),d("update:pathNodes",[])},ee=t.computed(()=>s.clearable&&!u.value&&!p.value),j=t.computed(()=>{let F=h.value&&h.value.length>0;return s.clearable&&F&&b.value}),P=F=>{j.value?Z(F):E()},L=t.computed(()=>j.value&&ee.value?o:l),v=t.computed(()=>({action:!0}));let Y=null;const O=()=>typeof Y=="function"?Y:typeof s.lazyLoad=="function"?s.lazyLoad:(Y=async(F,Q)=>{const J=[],te=[];let U=0;if(!F.root){let G=F;for(;G;){const R=St(s,G),X=Ct(s,G);te.splice(0,0,R),J.splice(0,0,X),G=G._parent}U=J.length}const W=await y.load(s.source,{...F,level:U,pathLabels:te,pathValues:J},!0);Q(W)},Y);return()=>{const F={class:w.value,style:T.value,type:"text",maxlength:s.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:E,onFocus:V,onBlur:I};i&&(F.disabled=!0);const Q=[],J=t.h("input",F);Q.push(J);const te=[],U={class:["action-icon"]},W=t.h(L.value,U),G={class:v.value,onClick:P},R=t.h("view",G,{default:()=>[W]});if(te.push(R),x.value){const ut=t.h("view",{class:q.value},[s.unit]);te.push(ut)}const X={class:z.value},oe=t.h("view",X,{default:()=>te});Q.push(oe);const ae={default:()=>Q};ae.label=c.slots.default,ae.prepend=c.slots.prepend,ae.append=c.slots.append,ae.fixedPreTip=c.slots.fixedPreTip,ae.fixedTip=c.slots.fixedTip;let se={};se.visible=$.value,se["onUpdate:visible"]=D,se.modelValue=h.value,se.onChange=M,se.onPathChange=K,se.title=s.title,se.valueKey=s.valueKey,se.textKey=s.textKey,se.childrenKey=s.childrenKey,se.convertConfig=s.convertConfig,s.lazy?(se.lazy=!0,se.lazyLoad=O()):se.options=k.value;const de=t.h(r,se);ae.hide=()=>[de];const Ne={...mt(s,ls)};return s.prop&&(Ne.prop=`${s.prop}_item`),t.h(a,Ne,ae)}}}}const{componentName:wu,create:Nu,scope:Bu}=_("cascader-item"),Go=Nu(Cu(wu,Bu,Be,le.CircleClose,le.ArrowRight,zn,!1));var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var as={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",i="second",s="minute",c="hour",u="day",p="week",d="month",g="quarter",S="year",b="date",y="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|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("_")},h=function(K,V,I){var z=String(K);return!z||z.length>=V?K:""+Array(V+1-z.length).join(I)+K},C={s:h,z:function(K){var V=-K.utcOffset(),I=Math.abs(V),z=Math.floor(I/60),x=I%60;return(V<=0?"+":"-")+h(z,2,"0")+":"+h(x,2,"0")},m:function K(V,I){if(V.date()<I.date())return-K(I,V);var z=12*(I.year()-V.year())+(I.month()-V.month()),x=V.clone().add(z,d),H=I-x<0,q=V.clone().add(z+(H?-1:1),d);return+(-(z+(I-x)/(H?x-q:q-x))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:d,y:S,w:p,d:u,D:b,h:c,m:s,s:i,ms:r,Q:g}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},A="en",w={};w[A]=m;var N=function(K){return K instanceof D},T=function K(V,I,z){var x;if(!V)return A;if(typeof V=="string"){var H=V.toLowerCase();w[H]&&(x=H),I&&(w[H]=I,x=H);var q=V.split("-");if(!x&&q.length>1)return K(q[0])}else{var Z=V.name;w[Z]=V,x=Z}return!z&&x&&(A=x),x||!z&&A},$=function(K,V){if(N(K))return K.clone();var I=typeof V=="object"?V:{};return I.date=K,I.args=arguments,new D(I)},E=C;E.l=T,E.i=N,E.w=function(K,V){return $(K,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var D=function(){function K(I){this.$L=T(I.locale,null,!0),this.parse(I)}var V=K.prototype;return V.parse=function(I){this.$d=function(z){var x=z.date,H=z.utc;if(x===null)return new Date(NaN);if(E.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var q=x.match(k);if(q){var Z=q[2]-1||0,ee=(q[7]||"0").substring(0,3);return H?new Date(Date.UTC(q[1],Z,q[3]||1,q[4]||0,q[5]||0,q[6]||0,ee)):new Date(q[1],Z,q[3]||1,q[4]||0,q[5]||0,q[6]||0,ee)}}return new Date(x)}(I),this.$x=I.x||{},this.init()},V.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},V.$utils=function(){return E},V.isValid=function(){return this.$d.toString()!==y},V.isSame=function(I,z){var x=$(I);return this.startOf(z)<=x&&x<=this.endOf(z)},V.isAfter=function(I,z){return $(I)<this.startOf(z)},V.isBefore=function(I,z){return this.endOf(z)<$(I)},V.$g=function(I,z,x){return E.u(I)?this[z]:this.set(x,I)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(I,z){var x=this,H=!!E.u(z)||z,q=E.p(I),Z=function(F,Q){var J=E.w(x.$u?Date.UTC(x.$y,Q,F):new Date(x.$y,Q,F),x);return H?J:J.endOf(u)},ee=function(F,Q){return E.w(x.toDate()[F].apply(x.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(Q)),x)},j=this.$W,P=this.$M,L=this.$D,v="set"+(this.$u?"UTC":"");switch(q){case S:return H?Z(1,0):Z(31,11);case d:return H?Z(1,P):Z(0,P+1);case p:var Y=this.$locale().weekStart||0,O=(j<Y?j+7:j)-Y;return Z(H?L-O:L+(6-O),P);case u:case b:return ee(v+"Hours",0);case c:return ee(v+"Minutes",1);case s:return ee(v+"Seconds",2);case i:return ee(v+"Milliseconds",3);default:return this.clone()}},V.endOf=function(I){return this.startOf(I,!1)},V.$set=function(I,z){var x,H=E.p(I),q="set"+(this.$u?"UTC":""),Z=(x={},x[u]=q+"Date",x[b]=q+"Date",x[d]=q+"Month",x[S]=q+"FullYear",x[c]=q+"Hours",x[s]=q+"Minutes",x[i]=q+"Seconds",x[r]=q+"Milliseconds",x)[H],ee=H===u?this.$D+(z-this.$W):z;if(H===d||H===S){var j=this.clone().set(b,1);j.$d[Z](ee),j.init(),this.$d=j.set(b,Math.min(this.$D,j.daysInMonth())).$d}else Z&&this.$d[Z](ee);return this.init(),this},V.set=function(I,z){return this.clone().$set(I,z)},V.get=function(I){return this[E.p(I)]()},V.add=function(I,z){var x,H=this;I=Number(I);var q=E.p(z),Z=function(P){var L=$(H);return E.w(L.date(L.date()+Math.round(P*I)),H)};if(q===d)return this.set(d,this.$M+I);if(q===S)return this.set(S,this.$y+I);if(q===u)return Z(1);if(q===p)return Z(7);var ee=(x={},x[s]=o,x[c]=l,x[i]=a,x)[q]||1,j=this.$d.getTime()+I*ee;return E.w(j,this)},V.subtract=function(I,z){return this.add(-1*I,z)},V.format=function(I){var z=this,x=this.$locale();if(!this.isValid())return x.invalidDate||y;var H=I||"YYYY-MM-DDTHH:mm:ssZ",q=E.z(this),Z=this.$H,ee=this.$m,j=this.$M,P=x.weekdays,L=x.months,v=function(Q,J,te,U){return Q&&(Q[J]||Q(z,H))||te[J].slice(0,U)},Y=function(Q){return E.s(Z%12||12,Q,"0")},O=x.meridiem||function(Q,J,te){var U=Q<12?"AM":"PM";return te?U.toLowerCase():U},F={YY:String(this.$y).slice(-2),YYYY:this.$y,M:j+1,MM:E.s(j+1,2,"0"),MMM:v(x.monthsShort,j,L,3),MMMM:v(L,j),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:v(x.weekdaysMin,this.$W,P,2),ddd:v(x.weekdaysShort,this.$W,P,3),dddd:P[this.$W],H:String(Z),HH:E.s(Z,2,"0"),h:Y(1),hh:Y(2),a:O(Z,ee,!0),A:O(Z,ee,!1),m:String(ee),mm:E.s(ee,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:q};return H.replace(f,function(Q,J){return J||F[Q]||q.replace(":","")})},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(I,z,x){var H,q=E.p(z),Z=$(I),ee=(Z.utcOffset()-this.utcOffset())*o,j=this-Z,P=E.m(this,Z);return P=(H={},H[S]=P/12,H[d]=P,H[g]=P/3,H[p]=(j-ee)/6048e5,H[u]=(j-ee)/864e5,H[c]=j/l,H[s]=j/o,H[i]=j/a,H)[q]||j,x?P:E.a(P)},V.daysInMonth=function(){return this.endOf(d).$D},V.$locale=function(){return w[this.$L]},V.locale=function(I,z){if(!I)return this.$L;var x=this.clone(),H=T(I,z,!0);return H&&(x.$L=H),x},V.clone=function(){return E.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},K}(),M=D.prototype;return $.prototype=M,[["$ms",r],["$s",i],["$m",s],["$H",c],["$W",u],["$M",d],["$y",S],["$D",b]].forEach(function(K){M[K[1]]=function(V){return this.$g(V,K[0],K[1])}}),$.extend=function(K,V){return K.$i||(K(V,D,$),K.$i=!0),$},$.locale=T,$.isDayjs=N,$.unix=function(K){return $(1e3*K)},$.en=w[A],$.Ls=w,$.p={},$})})(as);var Au=as.exports;const Ke=Xe(Au);var rs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,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?/,i=/\d*[^-_:/,()\s\d]+/,s={},c=function(y){return(y=+y)+(y>68?1900:2e3)},u=function(y){return function(k){this[y]=+k}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var f=k.match(/([+-]|\d\d)/g),m=60*f[1]+(+f[2]||0);return m===0?0:f[0]==="+"?-m:m}(y)}],d=function(y){var k=s[y];return k&&(k.indexOf?k:k.s.concat(k.f))},g=function(y,k){var f,m=s.meridiem;if(m){for(var h=1;h<=24;h+=1)if(y.indexOf(m(h,0,k))>-1){f=h>12;break}}else f=y===(k?"pm":"PM");return f},S={A:[i,function(y){this.afternoon=g(y,!1)}],a:[i,function(y){this.afternoon=g(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[l,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[r,u("seconds")],ss:[r,u("seconds")],m:[r,u("minutes")],mm:[r,u("minutes")],H:[r,u("hours")],h:[r,u("hours")],HH:[r,u("hours")],hh:[r,u("hours")],D:[r,u("day")],DD:[l,u("day")],Do:[i,function(y){var k=s.ordinal,f=y.match(/\d+/);if(this.day=f[0],k)for(var m=1;m<=31;m+=1)k(m).replace(/\[|\]/g,"")===y&&(this.day=m)}],M:[r,u("month")],MM:[l,u("month")],MMM:[i,function(y){var k=d("months"),f=(d("monthsShort")||k.map(function(m){return m.slice(0,3)})).indexOf(y)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[i,function(y){var k=d("months").indexOf(y)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,u("year")],YY:[l,function(y){this.year=c(y)}],YYYY:[/\d{4}/,u("year")],Z:p,ZZ:p};function b(y){var k,f;k=y,f=s&&s.formats;for(var m=(y=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,E,D){var M=D&&D.toUpperCase();return E||f[D]||a[D]||f[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,V,I){return V||I.slice(1)})})).match(o),h=m.length,C=0;C<h;C+=1){var A=m[C],w=S[A],N=w&&w[0],T=w&&w[1];m[C]=T?{regex:N,parser:T}:A.replace(/^\[|\]$/g,"")}return function($){for(var E={},D=0,M=0;D<h;D+=1){var K=m[D];if(typeof K=="string")M+=K.length;else{var V=K.regex,I=K.parser,z=$.slice(M),x=V.exec(z)[0];I.call(E,x),$=$.replace(x,"")}}return function(H){var q=H.afternoon;if(q!==void 0){var Z=H.hours;q?Z<12&&(H.hours+=12):Z===12&&(H.hours=0),delete H.afternoon}}(E),E}}return function(y,k,f){f.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var m=k.prototype,h=m.parse;m.parse=function(C){var A=C.date,w=C.utc,N=C.args;this.$u=w;var T=N[1];if(typeof T=="string"){var $=N[2]===!0,E=N[3]===!0,D=$||E,M=N[2];E&&(M=N[2]),s=this.$locale(),!$&&M&&(s=f.Ls[M]),this.$d=function(z,x,H){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1e3:1)*z);var q=b(x)(z),Z=q.year,ee=q.month,j=q.day,P=q.hours,L=q.minutes,v=q.seconds,Y=q.milliseconds,O=q.zone,F=new Date,Q=j||(Z||ee?1:F.getDate()),J=Z||F.getFullYear(),te=0;Z&&!ee||(te=ee>0?ee-1:F.getMonth());var U=P||0,W=L||0,G=v||0,R=Y||0;return O?new Date(Date.UTC(J,te,Q,U,W,G,R+60*O.offset*1e3)):H?new Date(Date.UTC(J,te,Q,U,W,G,R)):new Date(J,te,Q,U,W,G,R)}catch{return new Date("")}}(A,T,w),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),D&&A!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var K=T.length,V=1;V<=K;V+=1){N[1]=T[V-1];var I=f.apply(this,N);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}V===K&&(this.$d=new Date(""))}else h.call(this,C)}}})})(rs);var Tu=rs.exports;const $u=Xe(Tu);var ss={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o,l){var r=o.prototype,i=r.format;l.en.ordinal=function(s){var c=["th","st","nd","rd"],u=s%100;return"["+s+(c[(u-20)%10]||c[u]||c[0])+"]"},r.format=function(s){var c=this,u=this.$locale();if(!this.isValid())return i.bind(this)(s);var p=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(g){switch(g){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return u.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return u.ordinal(c.week(),"W");case"w":case"ww":return p.s(c.week(),g==="w"?1:2,"0");case"W":case"WW":return p.s(c.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return p.s(String(c.$H===0?24:c.$H),g==="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 g}});return i.bind(this)(d)}}})})(ss);var Vu=ss.exports;const Eu=Xe(Vu);var is={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o,l){var r=o.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,g,S,b,y){var k=d.name?d:d.$locale(),f=i(k[g]),m=i(k[S]),h=f||m.map(function(A){return A.slice(0,b)});if(!y)return h;var C=k.weekStart;return h.map(function(A,w){return h[(w+(C||0))%7]})},c=function(){return l.Ls[l.locale()]},u=function(d,g){return d.formats[g]||function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,y,k){return y||k.slice(1)})}(d.formats[g.toUpperCase()])},p=function(){var d=this;return{months:function(g){return g?g.format("MMMM"):s(d,"months")},monthsShort:function(g){return g?g.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):s(d,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return u(d.$locale(),g)},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(g){return u(d,g)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return s(c(),"months")},l.monthsShort=function(){return s(c(),"monthsShort","months",3)},l.weekdays=function(d){return s(c(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return s(c(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return s(c(),"weekdaysMin","weekdays",2,d)}}})})(is);var Du=is.exports;const Iu=Xe(Du);var cs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){var a="week",o="year";return function(l,r,i){var s=r.prototype;s.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=i(this).startOf(o).add(1,o).date(u),d=i(this).endOf(a);if(p.isBefore(d))return 1}var g=i(this).startOf(o).date(u).startOf(a).subtract(1,"millisecond"),S=this.diff(g,a,!0);return S<0?i(this).startOf("week").week():Math.ceil(S)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(cs);var xu=cs.exports;const vu=Xe(xu);var ds={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),i=this.year();return r===1&&l===11?i+1:l===0&&r>=52?i-1:i}}})})(ds);var qu=ds.exports;const Pu=Xe(qu);var us={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var i=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})})(us);var Mu=us.exports;const Lu=Xe(Mu);var fs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(fs);var zu=fs.exports;const Ou=Xe(zu);var ms={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(ms);var Fu=ms.exports;const Ru=Xe(Fu);Ke.extend(Iu),Ke.extend(Eu),Ke.extend($u),Ke.extend(vu),Ke.extend(Pu),Ke.extend(Lu),Ke.extend(Ou),Ke.extend(Ru);const re={format(e,n){return Ke(e).format(n)},parser(e,n){return Ke(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const 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(),i=l.getDate(),s=6-r;return o!==0&&(r=r==0?7:r,s=7-r),Math.ceil((i+s)/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),i=Math.round((l.valueOf()-r.valueOf())/864e5);let s=l.getDay(),c=6-s;return o!==0&&(s=s==0?7:s,c=7-s),Math.ceil((i+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let i=l.getDay();if(o===0){const c=r-i*864e5,u=r+(6-i)*864e5,p=this.date2Str(new Date(c)),d=this.date2Str(new Date(u));return[p,d]}else{i=i==0?7:i;const s=24*60*60*1e3,c=r-(i-1)*s,u=r+(7-i)*s,p=this.date2Str(new Date(c)),d=this.date2Str(new Date(u));return[p,d]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=re.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=re.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),i=n.getTime();return r>i?l>=i&&l<=r:l>=r&&l<=i},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),i=n.getTime();return r>i?l>=i&&l<=r:l>=r&&l<=i}},ps=new Date().getFullYear(),Zo={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"},Fn=(e,n,a)=>{let o;if(He(n)?o=n:typeof n=="string"&&ke(n)>0?o=re.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)},Jo=(e,n,a)=>{He(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),re.format(new Date(o),a)};let _o={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(ps-10,0,1),validator:He},maxDate:{type:Date,default:()=>new Date(ps+10,11,31),validator:He},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:Ku,scope:Uu}=_("date-picker"),Hu=Ku({components:{Picker:zt},props:{..._o},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(Uu),o={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds"),today:a("today")},l=t.ref(!1);t.watch(()=>e.visible,m=>{l.value=m});function r(m,h){return new Date(m,h,0).getDate()}const i=(m,h)=>{const C=e[`${m}Date`],A=C.getFullYear();let w=1,N=1,T=0,$=0;m==="max"&&(w=12,N=r(h.getFullYear(),h.getMonth()+1),T=23,$=59);const E=$;return h.getFullYear()===A&&(w=C.getMonth()+1,h.getMonth()+1===w&&(N=C.getDate(),h.getDate()===N&&(T=C.getHours(),h.getHours()===T&&($=C.getMinutes())))),{[`${m}Year`]:A,[`${m}Month`]:w,[`${m}Date`]:N,[`${m}Hour`]:T,[`${m}Minute`]:$,[`${m}Seconds`]:E}},s=t.computed(()=>{if(!g.value)return[];const{maxYear:m,maxDate:h,maxMonth:C,maxHour:A,maxMinute:w,maxSeconds:N}=i("max",g.value),{minYear:T,minDate:$,minMonth:E,minHour:D,minMinute:M,minSeconds:K}=i("min",g.value);let V=[{type:"year",range:[T,m]},{type:"month",range:[E,C]},{type:"day",range:[$,h]},{type:"hour",range:[D,A]},{type:"minute",range:[M,w]},{type:"seconds",range:[K,N]}];switch(e.type){case"date":V=V.slice(0,3);break;case"datetime":V=V.slice(0,5);break;case"time":V=V.slice(3,6);break;case"year-month":V=V.slice(0,2);break;case"month-day":V=V.slice(1,3);break;case"datehour":V=V.slice(0,4);break;case"hour-minute":V=V.slice(3,5);break}return V}),c=(m,h,C,A,w)=>{if(!(h>m))return null;const N=[];for(;m<=h;)e.isShowChinese?C==="day"&&A&&m===w?N.push({text:o.today,value:m}):N.push({text:m+o[C],value:m}):N.push({text:`${m}`,value:m}),C==="minute"?m+=e.minuteStep:m++;return N},u=t.computed(()=>{let m=!1;const h=new Date;let C=h.getDate();g.value&&(m=h.getFullYear()===g.value.getFullYear()&&h.getMonth()===g.value.getMonth());let A=[];return s.value.forEach(w=>{let N=c(w.range[0],w.range[1],w.type,m,C);N&&A.push(N)}),A}),p=(m,h)=>m==="year"?h.getFullYear():m==="month"?h.getMonth()+1:m==="day"?h.getDate():m==="hour"?h.getHours():m==="minute"?h.getMinutes():m==="seconds"?h.getSeconds():0,d=t.ref(),g=t.ref(null);t.watch(()=>e.modelValue,m=>{let h;if(typeof m=="string"?m.length==0?h=new Date:e.valueFormat?h=Fn(e,e.modelValue,e.valueFormat):h=Fn(e,m,Zo[e.type]):He(m)?h=m:h=new Date,!!h&&(!g.value||h.getTime()!==g.value.getTime())){g.value=h;let C=[];s.value.forEach(A=>{let w=p(A.type,h);C.push(w)}),d.value=C}},{immediate:!0});const S=m=>{if(e.type==="date"){const h=m[0],C=m[1]-1,A=Math.min(m[2],r(h,C+1));A!==m[2]&&(m[2]=A),g.value=new Date(h,C,A)}else if(e.type==="datetime"){const h=m[0],C=m[1]-1,A=Math.min(m[2],r(h,C+1)),w=m[3],N=m[4];A!==m[2]&&(m[2]=A),g.value=new Date(h,C,A,w,N)}else if(e.type==="time"){const h=m[0],C=m[1],A=m[2],w=g.value??new Date,N=new Date(w.getFullYear(),w.getMonth(),w.getDate(),h,C,A);g.value=N}else if(e.type==="year-month"){const h=m[0],C=m[1]-1;g.value=new Date(h,C)}else if(e.type==="month-day"){const C=(g.value??new Date).getFullYear(),A=m[0]-1,w=Math.min(m[1],r(C,A+1));w!==m[1]&&(m[1]=w);const N=new Date(C,A,w);g.value=N}else if(e.type==="datehour"){const h=m[0],C=m[1]-1,A=Math.min(m[2],r(h,C+1)),w=m[3];A!==m[2]&&(m[2]=A),g.value=new Date(h,C,A,w)}else if(e.type==="hour-minute"){const h=m[0],C=m[1],A=g.value??new Date,w=new Date(A.getFullYear(),A.getMonth(),A.getDate(),h,C);g.value=w}d.value=m};return{columns:u,dateIndexs:d,show:l,onChange:m=>{S(m)},onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:m=>{S(m),l.value=!1;let h=g.value??new Date;if(e.valueFormat){let C=Jo(e,h,e.valueFormat);n("update:modelValue",C)}else n("update:modelValue",h);n("update:visible",!1),n("confirm",m)},onClear:()=>{n("clear")}}}});function ju(e,n,a,o,l,r){const i=t.resolveComponent("Picker");return t.openBlock(),t.createBlock(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Rn=ne(Hu,[["render",ju]]),Wu={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Yu(e){let n=e.format;if(!n){let a=e.type??"date";n=Zo[a]}return n}function Xu(e,n,a,o,l,r,i=!1){return{props:{...he,...ye,..._o,...Wu},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,c){const u=De(t.computed(()=>s.disabled)),p=Ee(t.computed(()=>s.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},s.prop??c.attrs.name),{toLocaleRefs:g}=ie.useFoxI18n(n),S=g(s,["placeholder"]),b=t.ref(!1),k=Pe(s,"modelValue",P=>P==null?null:typeof P=="string"?P.length==0?null:s.valueFormat?Fn(s,P,s.valueFormat)??P:Fn(s,P,Zo[s.type])??P:He(P)?P:null,d),f=t.computed(()=>{if(!k.value)return"";const P=Yu(s);return Jo(s,k.value,P)}),m="fox-input-item",h=t.computed(()=>({[m]:!0,"is-disabled":u.value,"is-readonly":p.value})),C=Ve(t.computed(()=>s.textAlign),"textAlign"),A=t.computed(()=>{const P={};return C.value&&(P["text-align"]=C.value),P}),w=t.ref(!1),N=()=>{w.value=!0},T=()=>{w.value=!1};c.expose({showPicker:N,hidePicker:T});const $=P=>{w.value=P},E=P=>{if(k.value=P,s.valueFormat){let L=Jo(s,P,s.valueFormat);d("update:modelValue",L,{}),d("change",L,{})}else d("update:modelValue",P,{}),d("change",P,{})},D=P=>{let v=P.target.value;b.value=!0,d("focus",v,P)},M=P=>{setTimeout(()=>{b.value=!1},0);let v=P.target.value;s.maxLength&&v.length>Number(s.maxLength)&&(v=v.slice(0,Number(s.maxLength))),d("blur",v,P)},K=t.computed(()=>({[`${m}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),V=t.computed(()=>ke(s.unit)>0),I=t.computed(()=>ke(s.unit)>0&&!b.value),z=t.computed(()=>({hidden:!I.value})),x=P=>{k.value="",d("update:modelValue","",P),d("change","",P),d("clear",""),T()},H=t.computed(()=>s.clearable&&!u.value&&!p.value),q=t.computed(()=>{let P=ke(k.value)>0;return s.clearable&&P&&b.value}),Z=P=>{q.value?x(P):N()},ee=t.computed(()=>q.value&&H.value?o:l),j=t.computed(()=>({action:!0}));return()=>{const P={class:h.value,style:A.value,type:"text",maxlength:s.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:D,onBlur:M};i&&(P.disabled=!0);const L=[],v=t.h("input",P);L.push(v);const Y=[],O={class:["action-icon"]},F=t.h(ee.value,O),Q={class:j.value,onClick:Z},J=t.h("view",Q,{default:()=>[F]});if(Y.push(J),V.value){const de=t.h("view",{class:z.value},[s.unit]);Y.push(de)}const te={class:K.value},U=t.h("view",te,{default:()=>Y});L.push(U);const W={default:()=>L};W.label=c.slots.default,W.prepend=c.slots.prepend,W.append=c.slots.append,W.fixedPreTip=c.slots.fixedPreTip,W.fixedTip=c.slots.fixedTip;const G=Se(s,_o);G.valueFormat=null,G.disabled=!1,G.readonly=u.value||p.value,G.visible=w.value,G["onUpdate:visible"]=$,G.modelValue=k.value,G["onUpdate:modelValue"]=E,G.onClear=x;const R={};if(c.slots.top){const de=c.slots.top();R.top=()=>de}if(c.slots.bottom){const de=c.slots.bottom();R.default=()=>de}const X=t.h(r,G,R);W.hide=()=>[X];const ae={...Se(s,ye,he)};return s.prop&&(ae.prop=`${s.prop}_item`),t.h(a,ae,W)}}}}const{create:Qu,componentName:Gu,scope:Zu}=_("date-item"),el=Qu(Xu(Gu,Zu,Be,le.CircleClose,le.Date,Rn,!1)),Ju=39,_u=64,{create:ef,scope:tf}=_("calendar-pane"),nf=ef({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:re.getDay(0)},endDate:{type:String,default:re.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=ie.useFoxI18n(tf),r=o(e,["title","confirmText","startText","endText","today"]),i=JSON.parse(l("weekdays")),s=t.ref([...i.slice(e.firstDayOfWeek,7),...i.slice(0,e.firstDayOfWeek)]),c=t.ref(null),u=t.ref(null),p=t.ref(null),d=t.ref(null),g=t.ref(0),S=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),b=t.computed(()=>a.btn),y=t.computed(()=>a["top-info"]),k=t.computed(()=>a["bottom-info"]),f=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),m=O=>O.split("-"),h=O=>re.isEqual(f.currDate[0],O),C=O=>re.isEqual(f.currDate[1],O),A=O=>f.currDate?.length>0?f.currDate?.some(F=>re.isEqual(F,O)):!1,w=(O,F)=>F.curData[0]+"-"+F.curData[1]+"-"+re.getNumTwoBit(+O.day),N=(O,F)=>{const Q=w(O,F),{type:J}=e;return O.type=="curr"?re.isEqual(f.currDate,Q)||(J=="range"||J=="week")&&(h(Q)||C(Q))||J=="multiple"&&A(Q)?`${f.dayPrefix}--active`:f.propStartDate&&re.compareDate(Q,f.propStartDate)||f.propEndDate&&re.compareDate(f.propEndDate,Q)?`${f.dayPrefix}--disabled`:(J=="range"||J=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&re.compareDate(f.currDate[0],Q)&&re.compareDate(Q,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},T=()=>{const{type:O}=e;if(O=="range"&&f.chooseData.length==2||O!="range"){let F=f.chooseData.slice(0);O=="week"&&(F={weekDate:[E(f.chooseData[0]),E(f.chooseData[1])]}),n("choose",F),e.poppable&&n("update")}},$=(O,F,Q=!1)=>{if(N(O,F)!=`${f.dayPrefix}--disabled`){const{type:J}=e;let[te,U]=F.curData,W=[...F.curData];if(W[2]=re.getNumTwoBit(Number(O.day)),W[3]=`${W[0]}-${W[1]}-${W[2]}`,W[4]=re.getWhatDay(+W[0],+W[1],+W[2]),J=="multiple")if(f.currDate?.length>0){let G;f.currDate?.forEach((R,X)=>{R==W[3]&&(G=X)}),Q?f.chooseData.push([...W]):G!==void 0?(f.currDate.splice(G,1),f.chooseData.splice(G,1)):(f.currDate.push(W[3]),f.chooseData.push([...W]))}else f.currDate=[W[3]],f.chooseData=[[...W]];else if(J=="range"){let G=Object.values(f.currDate).length;G==2||G==0?f.currDate=[W[3]]:re.compareDate(f.currDate[0],W[3])?Array.isArray(f.currDate)&&f.currDate.push(W[3]):Array.isArray(f.currDate)&&f.currDate.unshift(W[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...W]]:re.compareDate(f.chooseData[0][3],W[3])?f.chooseData=[...f.chooseData,[...W]]:f.chooseData=[[...W],...f.chooseData]}else if(J=="week"){let G=re.getWeekDate(te,U,O.day,e.firstDayOfWeek);f.propStartDate&&re.compareDate(G[0],f.propStartDate)&&G.splice(0,1,f.propStartDate),f.propEndDate&&re.compareDate(f.propEndDate,G[1])&&G.splice(1,1,f.propEndDate),f.currDate=G,f.chooseData=[re.formatResultDate(G[0]),re.formatResultDate(G[1])]}else f.currDate=W[3],f.chooseData=[...W];if(!Q){let G=f.chooseData;J=="week"&&(G={weekDate:[E(f.chooseData[0]),E(f.chooseData[1])]}),n("select",G),(e.isAutoBackFill||!e.poppable)&&T()}}},E=O=>{let[F,Q,J]=O;return{date:O,monthWeekNum:re.getMonthWeek(F,Q,J,e.firstDayOfWeek),yearWeekNum:re.getYearWeek(F,Q,J,e.firstDayOfWeek)}},D=O=>{const F=f.monthsData[f.monthsData.length-1];let Q=parseInt(F.curData[0]),J=parseInt(F.curData[1].toString().replace(/^0/,""));switch(O){case"prev":J==1&&(Q-=1),J=J==1?12:--J;break;case"next":J==12&&(Q+=1),J=J==12?1:++J;break}return[Q+"",re.getNumTwoBit(J),re.getMonthDays(String(Q),String(J))+""]},M=(O,F,Q)=>{let{year:J,month:te}=Q;return Array.from(Array(O),(U,W)=>({day:String(W+1),type:F,year:J,month:te}))},K=(O,F,Q,J)=>{O=O-e.firstDayOfWeek;let{year:te,month:U}=Q;return O>=7&&(O-=7),Array.from(Array(J),(G,R)=>({day:String(R+1),type:F,year:te,month:U})).slice(J-O)},V=(O,F)=>{const Q=re.getMonthPreDay(+O[0],+O[1]);let J=Number(O[1])-1,te=Number(O[0]);J<=0&&(J=12,te+=1);const U=re.getMonthDays(String(O[0]),String(O[1])),W=re.getMonthDays(te+"",J+""),G={year:O[0],month:O[1]},R={curData:O,title:l("monthTitle",{year:G.year,month:G.month}),monthData:[...K(Q,"prev",{month:String(J),year:String(te)},W),...M(U,"curr",G)],cssHeight:0,cssScrollHeight:0},X=R.monthData.length>35?6:5;R.cssHeight=Ju+_u*X;let oe=0;f.monthsData.length>0&&(oe=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),R.cssScrollHeight=oe,(!f.endData||!re.compareDate(`${f.endData[0]}-${f.endData[1]}-${re.getMonthDays(f.endData[0],f.endData[1])}`,`${O[0]}-${O[1]}-${O[2]}`))&&f.monthsData.push(R)},I=()=>{let O=e.startDate?e.startDate:re.getDay(0),F=e.endDate?e.endDate:re.getDay(365);f.propStartDate=O,f.propEndDate=F,f.startData=m(O),f.endData=m(F),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const Q={year:Number(f.startData[0]),month:Number(f.startData[1])},J={year:Number(f.endData[0]),month:Number(f.endData[1])};let te=J.month-Q.month;J.year-Q.year>0&&(te=te+12*(J.year-Q.year)),te<=0&&(te=1),V(f.startData);let U=1;do V(D("next"));while(U++<te);if(f.monthsNum=te,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(O&&re.compareDate(f.currDate[0],O)&&f.currDate.splice(0,1,O),F&&re.compareDate(F,f.currDate[1])&&f.currDate.splice(1,1,F),f.defaultData=[...m(f.currDate[0]),...m(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let W=[],G={};f.currDate.forEach(R=>{O&&!re.compareDate(R,O)&&F&&!re.compareDate(F,R)&&(Object.hasOwnProperty.call(G,R)||(W.push(R),G[R]=R))}),f.currDate=[...W],f.defaultData=[...m(W[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[W,G,R]=m(f.currDate[0]),X=re.getWeekDate(W,G,R,e.firstDayOfWeek);f.currDate=X,O&&re.compareDate(f.currDate[0],O)&&f.currDate.splice(0,1,O),F&&re.compareDate(F,f.currDate[1])&&f.currDate.splice(1,1,F),f.defaultData=[...m(f.currDate[0]),...m(f.currDate[1])]}}else f.currDate&&(O&&re.compareDate(f.currDate,O)?f.currDate=O:F&&!re.compareDate(f.currDate,F)&&(f.currDate=F),f.defaultData=[...m(f.currDate)])};ve({scrollToDate:O=>{re.compareDate(O,f.propStartDate)?O=f.propStartDate:re.compareDate(O,f.propEndDate)||(O=f.propEndDate);let F=m(O);f.monthsData.forEach((Q,J)=>{if(Q.title==l("monthTitle",{year:F[0],month:F[1]})&&c.value){let te=f.monthsData[J].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let U=0,W=setInterval(()=>{if(U++,c.value){let G=te/10;c.value.scrollTop=c.value.scrollTop+G}U>=10&&(clearInterval(W),c.value&&(c.value.scrollTop=f.monthsData[J].cssScrollHeight))},40)}else c.value.scrollTop=f.monthsData[J].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let O=0,F=0;f.defaultData.length>0&&f.monthsData.forEach((te,U)=>{te.title==l("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(O=U),(e.type=="range"||e.type=="week")&&te.title==l("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(F=U)}),q(f.monthsNum,O),f.currentIndex=O,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?($({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),$({day:f.defaultData[5],type:"curr"},f.monthsData[F],!0)):e.type=="week"?$({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(te=>{let U=m(te),W=f.currentIndex;f.monthsData.forEach((G,R)=>{G.title==l("monthTitle",{year:U[0],month:U[1]})&&(W=R)}),$({day:U[2],type:"curr"},f.monthsData[W],!0)}):$({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let Q=f.monthsData[f.monthsData.length-1],J=Q.cssHeight+Q.cssScrollHeight;Qe(()=>{c?.value&&u?.value&&d?.value&&(g.value=c.value.clientHeight,u.value.style.height=`${J}px`,c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(J/(f.monthsNum+1))}});const q=(O,F)=>{O>=3?F>0&&F<O?f.defaultRange=[F-1,F+3]:F==0?f.defaultRange=[F,F+4]:F==O&&(f.defaultRange=[F-2,F+2]):f.defaultRange=[0,O+2];let Q=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=Q},Z=(O,F)=>(e.type=="range"||e.type=="week")&&O.type=="curr"&&N(O,F)=="fox-calendar__day--active",ee=(O,F)=>Z(O,F)&&h(w(O,F)),j=(O,F)=>f.currDate.length>=2&&C(w(O,F))?Z(O,F):!1,P=()=>{if(f.currDate.length>=2)return re.isEqual(f.currDate[0],f.currDate[1])},L=O=>{const F=`${O.year}-${O.month}-${Number(O.day)<10?"0"+O.day:O.day}`;return re.isEqual(F,re.date2Str(new Date))},v=O=>{if(f.monthsData.length<=1)return;const F=O.target.scrollTop;let Q=Math.floor(F/f.avgHeight);if(Q==0)F>=f.monthsData[Q+1].cssScrollHeight&&(Q+=1);else if(Q>0&&Q<f.monthsNum-1)F>=f.monthsData[Q+1].cssScrollHeight&&(Q+=1),F<f.monthsData[Q].cssScrollHeight&&(Q-=1);else{const J=Math.round(F+g.value);J<f.monthsData[Q].cssScrollHeight+f.monthsData[Q].cssHeight&&F>f.monthsData[Q-1].cssScrollHeight&&(Q-=1),Q+1<=f.monthsNum&&J>=f.monthsData[Q+1].cssScrollHeight+f.monthsData[Q+1].cssHeight&&(Q+=1),Q>=1&&F<f.monthsData[Q-1].cssScrollHeight&&(Q-=1)}f.currentIndex!==Q&&(f.currentIndex=Q,q(f.monthsNum,Q)),f.yearMonthTitle=f.monthsData[Q].title},Y=()=>{f.chooseData.splice(0),f.monthsData.splice(0),I()};return I(),t.watch(()=>e.defaultValue,O=>{O&&e.poppable&&Y()}),{weeks:s,compConthsData:S,showTopBtn:b,topInfo:y,bottomInfo:k,rangeTip:P,mothsViewScroll:v,getClass:N,isStartTip:ee,isEndTip:j,chooseDay:$,isCurrDay:L,confirm:T,months:c,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:u,weeksPanel:p,viewArea:d}}}),of={class:"fox-calendar__header"},lf={key:0,class:"fox-calendar__header-title"},af={key:1,class:"fox-calendar__header-slot"},rf={key:2,class:"fox-calendar__header-subtitle"},sf={class:"fox-calendar__weekdays",ref:"weeksPanel"},cf={class:"fox-calendar__panel",ref:"monthsPanel"},df={class:"fox-calendar__month-title"},uf={class:"fox-calendar__days"},ff=["onClick"],mf={class:"fox-calendar__day-value"},pf={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},hf={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},gf={key:2,class:"fox-calendar__day-tips--curr"},yf={key:4,class:"fox-calendar__day-tip"},bf={key:0,class:"fox-calendar__footer"};function kf(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",of,[e.showTitle?(t.openBlock(),t.createElementBlock("view",lf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",af,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",rf,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",sf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:s},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[t.createElementVNode("view",cf,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:s},[t.createElementVNode("view",df,t.toDisplayString(i.title),1),t.createElementVNode("view",uf,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.monthData,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,i)]),onClick:p=>e.chooseDay(c,i)},[t.createElementVNode("view",mf,[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",pf,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",hf,[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",gf,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,i)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,i)?(t.openBlock(),t.createElementBlock("view",yf,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,ff))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",bf,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const hs=ne(nf,[["render",kf]]),Sf=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Kn={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:Cf}=_("calendar"),wf=Cf({components:{[hs.name]:hs,[me.name]:me},props:{...Kn},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),i=t.computed(()=>a["bottom-info"]),s=t.ref(null),c=y=>{s.value?.scrollToDate(y)},u=()=>{s.value?.initPosition()};t.watch(()=>e.visible,y=>{y&&t.nextTick(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),ve({scrollToDate:c,initPosition:u});const p=()=>{n("update:visible",!1)},d=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{d()},update:p,close:d,select:y=>{n("select",y)},choose:y=>{d(),n("choose",y)},calendarRef:s,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:i}}});function Nf(e,n,a,o,l,r){const i=t.resolveComponent("fox-calendar-pane"),s=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:{height:"85vh"}}),{default:t.withCtx(()=>[t.createVNode(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(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(i,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(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 Un=ne(wf,[["render",Nf]]),gs={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}},tl=(e,n)=>{let a;return He(e)?a=e:typeof e=="string"&&ke(e)>0?a=re.parser(e,n):a=new Date,a},wt=(e,n,a)=>(He(n)||(n=new Date),re.format(n,a)),Nt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=re.date2Str(e),r=re.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function Bf(e,n,a,o,{CloseIcon:l,MarkIcon:r},i=!1){return{props:{...he,...ye,...Kn,...gs},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,c){const u=De(t.computed(()=>s.disabled)),p=Ee(t.computed(()=>s.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},s.prop??c.attrs.name),{toLocaleRefs:g}=ie.useFoxI18n(n),S=g(s,["placeholder"]),b=t.ref(!1),y=t.computed(()=>s.type==="range"),k=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),f=()=>{k.startDate!==null&&(k.startDate=null,k.endDate=null,k.startArray=[],k.endArray=[])},m=(v,Y="one",O="YYYY-MM-DD")=>{if(Sf(v)){f();return}if(y.value&&Array.isArray(v)&&v.length==2){let F,Q;typeof v[0]=="string"?(F=tl(v[0],O),Q=tl(v[1],O)):(F=v[0],Q=v[1]);let J=Nt(F),te=Nt(Q);(k.startDate===null||k.startDate.getTime()!==F.getTime()||k.endDate?.getTime()!==Q.getTime())&&(k.startDate=F,k.startArray=J,k.endDate=Q,k.endArray=te)}else{let F;typeof v=="string"?F=tl(v,O):F=v;let Q=Nt(F);(k.startDate===null||k.startDate.getTime()!==F.getTime())&&(k.startDate=F,k.startArray=Q)}};m(s.modelValue,s.type,s.valueFormat),t.watch(()=>s.modelValue,v=>{m(v,s.type,s.valueFormat),d("setValue",v)});const h=t.computed(()=>{if(k.startDate===null)return"";if(y.value){let v=wt(s,k.startDate,s.format),Y=wt(s,k.endDate,s.format);return`${v} ${s.rangeSeparator} ${Y}`}else{let v=wt(s,k.startDate,s.format);return s.showWeek&&(v=`${v} ${k.startArray[4]}`),v}}),C=t.computed(()=>{if(k.startDate===null)return null;if(y.value){let v=re.date2Str(k.startDate),Y=re.date2Str(k.endDate??new Date);return[v,Y]}else return re.date2Str(k.startDate)}),A="fox-input-item",w=t.computed(()=>({[A]:!0,"is-disabled":u.value,"is-readonly":p.value})),N=Ve(t.computed(()=>s.textAlign),"textAlign"),T=t.computed(()=>{const v={};return N.value&&(v["text-align"]=N.value),v}),$=t.ref(!1),E=()=>{p.value||u.value||($.value=!0)},D=v=>{$.value=v},M=v=>{if(v){if(y.value&&Array.isArray(v)){let Y=v[0],O=pe(Y[0]),F=pe(Y[1]),Q=pe(Y[2]),J=new Date(O,F-1,Q),te=v[1];O=pe(te[0]),F=pe(te[1]),Q=pe(te[2]);let U=new Date(O,F-1,Q);if(k.startDate=J,k.startArray=Nt(J),k.endDate=U,k.endArray=Nt(U),s.valueFormat){let W=wt(s,J,s.valueFormat),G=wt(s,U,s.valueFormat);d("update:modelValue",[W,G],{})}else d("update:modelValue",[J,U],{})}else{let Y=v,O=pe(Y[0]),F=pe(Y[1]),Q=pe(Y[2]),J=new Date(O,F-1,Q);if(k.startDate=J,k.startArray=Nt(J),s.valueFormat){let te=wt(s,J,s.valueFormat);d("update:modelValue",te,{})}else d("update:modelValue",J,{})}d("change",v,{})}},K=v=>{let O=v.target.value;b.value=!0,d("focus",O,v)},V=v=>{setTimeout(()=>{b.value=!1},0);let O=v.target.value;s.maxLength&&O.length>Number(s.maxLength)&&(O=O.slice(0,Number(s.maxLength))),d("blur",O,v)},I=t.computed(()=>({[`${A}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),z=t.computed(()=>ke(s.unit)>0),x=t.computed(()=>ke(s.unit)>0&&!b.value),H=t.computed(()=>({hidden:!x.value})),q=v=>{f(),d("update:modelValue",null,v),d("change","",v),d("clear","")},Z=t.computed(()=>s.clearable&&!u.value&&!p.value),ee=t.computed(()=>{let v=ke(h.value)>0;return s.clearable&&v&&b.value}),j=v=>{ee.value?q(v):E()},P=t.computed(()=>ee.value&&Z.value?l:r),L=t.computed(()=>({action:!0}));return()=>{const v={class:w.value,style:T.value,type:"text",maxlength:s.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:h.value,onClick:E,onFocus:K,onBlur:V};i&&(v.disabled=!0);const Y=[],O=t.h("input",v);Y.push(O);const F=[],Q={class:["action-icon"]},J=t.h(P.value,Q),te={class:L.value,onClick:j},U=t.h("view",te,{default:()=>[J]});if(F.push(U),z.value){const Ne=t.h("view",{class:H.value},[s.unit]);F.push(Ne)}const W={class:I.value},G=t.h("view",W,{default:()=>F});Y.push(G);const R={default:()=>Y};R.label=c.slots.default,R.prepend=c.slots.prepend,R.append=c.slots.append,R.fixedPreTip=c.slots.fixedPreTip,R.fixedTip=c.slots.fixedTip;const X=Se(s,Kn);X.visible=$.value,X["onUpdate:visible"]=D,X["default-value"]=C.value,X.onChoose=M;const oe={};if(c.slots.btn){const Ne=c.slots.btn();oe.btn=()=>Ne}c.slots.day&&(oe.day=c.slots.day),c.slots.topInfo&&(oe.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(oe.bottomInfo=c.slots.bottomInfo);const ae=t.h(a,X,oe);R.hide=()=>[ae];const de={...mt(s,Kn,gs)};return s.prop&&(de.prop=`${s.prop}_item`),t.h(o,de,R)}}}}const{componentName:Af,create:Tf,scope:$f}=_("calendar-item"),nl=Tf(Bf(Af,$f,Un,Be,{CloseIcon:le.CircleClose,MarkIcon:le.Date},!1)),Vf={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 Ef(e,{CheckNormal:n,Checked:a}){return{props:{...Vf},setup(o,{emit:l,slots:r}){const i=t.inject("parent",null),s=Bn(),c=t.computed(()=>i.label.value===o.label),u=t.computed(()=>i.position),p=()=>{const y=[];if(c.value){if(r.checkedIcon)return r.checkedIcon();{const k=fe(o.iconSize),f=o.checkedIcon??s.radio.Checked??a;return y.push("fox-radio__icon"),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h(f,{width:k,height:k,class:y})}}else{if(r.icon)return r.icon();{const k=fe(o.iconSize),f=o.icon??s.radio.CheckNormal??n;return y.push("fox-radio__icon--unchecked"),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h(f,{width:k,height:k,class:y})}}},d=()=>{const y=[`${e}__label`];return o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h("view",{class:y},r.default?.())},g=()=>{const y=[`${e}__button`];return c.value&&y.push(`${e}__button--active`),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h("view",{class:y},r.default?.())},S=()=>{c.value||o.disabled||o.readonly||i.updateValue(o.label)},b=u.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${b?`${e}--reverse`:""}`,onClick:S},[o.shape=="button"?g():b?[d(),p()]:[p(),d()]])}}}const{componentName:Df,create:If}=_("radio"),Hn=If(Ef(Df,{CheckNormal:le.CheckNormal,Checked:le.CheckChecked})),{componentName:ys,create:xf}=_("radio-group"),jn=xf({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:a}=gt(),o=l=>a("update:modelValue",l);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:o}),t.watch(()=>e.modelValue,l=>a("change",l)),()=>{const l={};return e.textAlign&&(l["text-align"]=e.textAlign),t.h("view",{class:`${ys} ${ys}--${e.direction}`,style:l},n.default?.())}}});function bs(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(Wn(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if(Ft(e,r)===a)return l}return-1}function Wn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ft(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function vf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function qf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Pf=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=_e(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Mf(){const e=t.getCurrentInstance();return new Pf(e.proxy)}function Lf(e){return{text:e,value:e}}const ks={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},zf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},Of={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,Object],default:""}};function Ff(e,n,a,o,l){return{props:{...he,...ye,...ks,...zf,...Of},emits:["change","update:modelValue","setValue"],setup(r,i){const s=Ee(t.computed(()=>r.readonly)),c=De(t.computed(()=>r.disabled)),u=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return c.value}},r.prop??i.attrs.name),d=Mf(),g=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,m])=>{if(f){const h=await d.load("radio",f,m);if(h.length>0)if(typeof h[0]=="string"){const w=h.map(N=>Lf(N));g.value=w}else g.value=h;else g.value=[]}},{immediate:!0});let S=t.ref(-1);t.watch([()=>r.modelValue,()=>g.value],async([f,m])=>{S.value=bs(r,m,f,r.valueType),p("setValue",f)},{deep:!0});const b=t.computed(()=>{if(!r.source)return r.modelValue;if(S.value===-1)return null;const f=g.value[S.value];return Ft(r,f)}),y=f=>{let m=null,h=null;if(g.value.length>0){let C=bs(r,g.value,f,"value");S.value=C,C>=0&&(h=g.value[C],r.valueType==="text"?m=Wn(r,h):r.valueType==="item"?m=h:m=Ft(r,h))}else m=f;p("update:modelValue",m),p("change",m,h)},k=()=>{let f=null,m=null;if(g.value.length>0&&S.value!==-1){let h=g.value[S.value];r.valueType==="text"?f=Wn(r,h):r.valueType==="item"?f=h:f=Ft(r,h)}p("update:modelValue",f),p("change",f,m)};if(ve({clear(){S.value!==-1&&(S.value=-1,k())}}),r.source){const f=()=>{const m=[],h=Se(r,ks);return g.value.forEach((C,A)=>{const w=Ft(r,C),N=vf(r,C);let T={...h,label:w,disabled:N};const $=qf(r,C,A);T={...T,...$},c.value&&(T.disabled=!0),s.value&&(T.readonly=!0);const E={};if(i.slots.icon&&(E.icon=i.slots.icon),i.slots.checkedIcon&&(E.checkedIcon=i.slots.checkedIcon),typeof i.slots.text=="function"){const M=i.slots.text(C);E.default=()=>[M]}else{const M=Wn(r,C);E.default=()=>M}let D=t.h(l,T,E);m.push(D)}),m};return()=>{const m=f(),h={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:b,"onUpdate:modelValue":y},C=t.h(o,h,{default:()=>m}),A={default:()=>C};A.label=i.slots.default,A.prepend=i.slots.prepend,A.append=i.slots.append,A.fixedPreTip=i.slots.fixedPreTip,A.fixedTip=i.slots.fixedTip;const N={...Se(r,ye,he)};return r.prop&&(N.prop=`${r.prop}_item`),t.h(a,N,A)}}else return()=>{const f=i.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:b,"update:modelValue":y},{default:()=>f})}}}}const{componentName:Rf,create:Kf,scope:Uf}=_("radio-item"),ol=Kf(Ff(Rf,Uf,Be,jn,Hn)),Hf=(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,{slots:r}){const{emitEvent:i}=gt(),s=Bn(),c=t.inject("parent",null),u=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,h=>{u.partialSelect=h});const p=t.computed(()=>!!c),d=t.computed(()=>p.value?c.value.value.includes(l.label):!!l.modelValue),g=t.computed(()=>p.value?c.position:l.textPosition);let S="";const b=(h,C)=>{S="click",i("update:modelValue",h),i("change",h,C)};t.watch(()=>l.modelValue,h=>{S=="click"?S="":i("change",h)});const y=()=>{const h=[];if(u.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const C=fe(l.iconSize),A=l.indeterminateIcon??s.checkbox.Indeterminate??o;return h.push("fox-checkbox__icon--indeterminate"),l.disabled&&h.push("is-disabled"),l.readonly&&h.push("is-readonly"),t.h(A,{width:C,height:C,class:h})}}else if(d.value){if(r.checkedIcon)return r.checkedIcon();{const C=fe(l.iconSize),A=l.checkedIcon??s.checkbox.Checked??a;return h.push("fox-checkbox__icon"),l.disabled&&h.push("is-disabled"),l.readonly&&h.push("is-readonly"),t.h(A,{width:C,height:C,class:h})}}else{if(r.icon)return r.icon();{const C=fe(l.iconSize),A=l.icon??s.checkbox.CheckNormal??n;return h.push("fox-checkbox__icon--unchecked"),l.disabled&&h.push("is-disabled"),l.readonly&&h.push("is-readonly"),t.h(A,{width:C,height:C,class:h})}}},k=()=>{const h=[`${e}__label`];return l.disabled&&h.push("is-disabled"),l.readonly&&h.push("is-readonly"),t.h("view",{class:h},r.default?.())},f=()=>{const h=[`${e}__button`];return d.value&&h.push(`${e}__button--active`),l.disabled&&h.push("is-disabled"),l.readonly&&h.push("is-readonly"),t.h("view",{class:h},r.default?.())},m=h=>{if(!(l.disabled||l.readonly)){if(d.value&&u.partialSelect){u.partialSelect=!1,b(d.value,r.default?.()[0].children);return}if(b(!d.value,r.default?.()[0].children),p.value){const C=c.value.value,A=c.max.value,{label:w}=l,N=C.indexOf(w);N>-1?C.splice(N,1):N<=-1&&(C.length<A||!A)&&C.push(w),c.updateValue(C)}}};return t.onMounted(()=>{p.value&&c.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{p.value&&c.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${l.shape} ${g.value==="left"?`${e}--reverse`:""}`,onClick:m},[l.shape=="button"?f():[y(),k()]])}}),{componentName:jf,create:Wf}=_("checkbox"),Yn=Wf(Hf(jf,{CheckNormal:le.CheckNormal,Checked:le.Checked,Indeterminate:le.CheckDisabled})),{create:Yf,componentName:Ss}=_("checkbox-group"),Xn=Yf({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}){const{emitEvent:a}=gt(),o=t.reactive({children:[]}),l=u=>{u.proxy&&o.children.push(u.proxy)},r=u=>{u.proxy&&(o.children=o.children.filter(p=>p!==u.proxy))},i=u=>{a("update:modelValue",u),a("change",u)},s=u=>{const p=[];u&&o.children.forEach(d=>{d?.disabled||p.push(d?.label)}),a("update:modelValue",p)},c=()=>{const u=o.children.filter(p=>p?.disabled?!1:!e.modelValue.includes(p.label)).map(p=>p.label);a("update:modelValue",u)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:i,link:l,unlink:r}),t.watch(()=>e.modelValue,u=>{a("change",u)}),ve({toggleAll:s,toggleReverse:c}),()=>{const u={};return e.textAlign&&(u["text-align"]=e.textAlign),t.h("view",{class:`${Ss} ${Ss}--${e.direction}`,style:u},n.default?.())}}});function Cs(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(ll(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if(Qn(e,r)===a)return l}return-1}function ll(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Qn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Xf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Qf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Gf=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=_e(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Zf(){const e=t.getCurrentInstance();return new Gf(e.proxy)}function Jf(e){return{text:e,value:e}}const _f={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},ws={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},em={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 tm(e,n,a,o,l){return{props:{...he,...ye,..._f,...ws,...em},emits:["change","update:modelValue","setValue"],setup(r,i){const s=De(t.computed(()=>r.disabled)),c=Ee(t.computed(()=>r.readonly)),u=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return s.value}},r.prop??i.attrs.name),d=Zf(),g=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,m])=>{if(f){const h=await d.load("checkbox",f,m);if(h.length>0)if(typeof h[0]=="string"){const w=h.map(N=>Jf(N));g.value=w}else g.value=h;else g.value=[]}},{immediate:!0});const S=t.ref([]);t.watch([()=>r.modelValue,()=>g.value],async([f,m])=>{const h=[];Array.isArray(f)&&f.forEach(C=>{let A=Cs(r,m,C,r.valueType);A!==-1&&h.push(A)}),!Me(h,S.value)&&(S.value=h,p("setValue",h))},{deep:!0});const b=t.computed(()=>{if(!r.source)return r.modelValue;let f=[];return S.value.forEach(m=>{let h=g.value[m];f.push(Qn(r,h))}),f}),y=f=>{let m=[],h=[];if(g.value.length>0){const C=[];Array.isArray(f)&&f.forEach(A=>{let w=Cs(r,g.value,A,"value");w!==-1&&C.push(w);const N=g.value[w];h.push(N),r.valueType==="text"?m.push(ll(r,N)):r.valueType==="item"?m.push(N):m.push(Qn(r,N))}),S.value=C}else m=f;p("update:modelValue",m),p("change",m,h)},k=t.ref();if(ve({toggleAll:f=>{k.value.toggleAll(f)},toggleReverse:()=>{k.value.toggleReverse()}}),r.source){const f=()=>{const m=[],h=Se(r,ws);return g.value.forEach((C,A)=>{const w=Qn(r,C),N=Xf(r,C);let T={...h,label:w,disabled:N};const $=Qf(r,C,A);T={...T,...$},s.value&&(T.disabled=!0),c.value&&(T.readonly=!0);const E={};if(i.slots.icon&&(E.icon=i.slots.icon),i.slots.checkedIcon&&(E.checkedIcon=i.slots.checkedIcon),i.slots.indeterminateIcon&&(E.indeterminateIcon=i.slots.indeterminateIcon),typeof i.slots.text=="function"){const M=i.slots.text(C);E.default=()=>[M]}else{const M=ll(r,C);E.default=()=>M}let D=t.h(l,T,E);m.push(D)}),m};return()=>{const m=f(),h={class:`${e}`,ref:k,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:b.value,"onUpdate:modelValue":y},C=t.h(o,h,{default:()=>m}),A={default:()=>C};A.label=i.slots.default,A.prepend=i.slots.prepend,A.append=i.slots.append,A.fixedPreTip=i.slots.fixedPreTip,A.fixedTip=i.slots.fixedTip;const N={...Se(r,ye,he)};return r.prop&&(N.prop=`${r.prop}_item`),t.h(a,N,A)}}else return()=>{const f=i.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:k,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:u.value,modelValue:b,"onUpdate:modelValue":y},{default:()=>f})}}}}const{componentName:nm,create:om,scope:lm}=_("checkbox-item"),al=om(tm(nm,lm,Be,Xn,Yn)),rl={modelValue:{type:[String,Boolean,Number],default:!1},disabled:{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:am,create:rm}=_("switch"),sm=rm({components:{Loading1:le.Loading1},props:{...rl},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const s=am;return{[s]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${s}-base`]:!0,"is-disabled":e.disabled}}),l=t.computed(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let r="";const i=s=>{if(e.disabled||e.loading)return;r="click";const c=a.value?e.inactiveValue:e.activeValue;n("update:modelValue",c),n("change",c,s)};return t.watch(()=>e.modelValue,s=>{r=="click"?r="":n("change",s)}),{classes:o,style:l,isActive:a,onClick:i}}}),im={class:"fox-switch-button"};function cm(e,n,a,o,l,r){const i=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",im,[e.loading?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(i,{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 Gn=ne(sm,[["render",cm]]);function dm(e,n,a,o){return{props:{...he,...ye,...rl},emits:["change","update:modelValue","setValue"],setup(l,r){const i=De(t.computed(()=>l.disabled)),s=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),u=e,p=Pe(l,"modelValue",null,c),d=g=>{p.value=g,c("update:modelValue",g,{}),c("change",g,{})};return()=>{const S={...Se(l,rl),disabled:i.value||s.value,value:p.value,"onUpdate:modelValue":d},b=[],y=t.h(o,S);b.push(y);const k={default:()=>b};k.label=r.slots.default,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const m={...Se(l,ye,he)};return l.prop&&(m.prop=`${l.prop}_item`),m["content-class"]=u,t.h(a,m,k)}}}}const{componentName:um,create:fm,scope:mm}=_("switch-item"),sl=fm(dm(um,mm,Be,Gn));function pm(e,n,a,o){return{props:{...he,...ye,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(l,r){const i=De(t.computed(()=>l.disabled)),s=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:u}=ie.useFoxI18n(n),p=u(l,["placeholder"]),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,M=>{d.value=M,c("change",M)});const g=t.computed(()=>({[`${e}`]:!0})),S=t.computed(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!i.value&&ue(d.value),"is-disabled":i.value,"is-readonly":s.value})),b=Ve(t.computed(()=>l.textAlign),"textAlign"),y=t.computed(()=>{const M={};return b.value&&(M["text-align"]=b.value),M}),k=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),f=t.computed(()=>ue(d.value)?p.placeholder.value:d.value),m=t.computed(()=>!ue(l.desc)||r.slots.sub),h=t.computed(()=>({[`${e}__sub`]:!0})),C=t.computed(()=>{const M={};return b.value&&(M["text-align"]=b.value),M}),A=()=>{c("focus",d.value)},w=()=>{c("blur",d.value)},N=t.computed(()=>({[`${e}__append`]:!0,"is-disabled":i.value,"is-readonly":s.value})),T=t.computed(()=>ke(l.unit)>0),$=M=>{i.value==!0||s.value==!0||c("click")},E=t.computed(()=>l.icon??a),D=t.computed(()=>({action:!0}));return()=>{const M=[];if(typeof r.slots.content=="function"){const L=r.slots.content();M.push(L)}else{const L=[];if(k.value){const O={tabIndex:0,class:S.value,style:y.value,onFocus:A,onBlur:w};let F=null;r.slots.main?F=t.h("view",O,[r.slots.main(f.value)]):F=t.h("view",O,[f.value]),L.push(F)}if(m.value){const O={tabIndex:0,class:h.value,style:C.value,onFocus:A,onBlur:w};let F=null;r.slots.sub?F=t.h("view",O,[r.slots.sub(l.desc)]):F=t.h("view",O,[l.desc]),L.push(F)}const v={class:g.value,onClick:$},Y=t.h("view",v,L);M.push(Y)}const K=[],V=fe(l.iconSize);let I=r.slots.icon;if(!I){const L={width:V,height:V,class:["action-icon"]};I=t.h(E.value,L)}const z={class:D.value,onClick:$},x=t.h("view",z,{default:()=>[I]});if(K.push(x),T.value){const L=t.h("view",{},[l.unit]);K.push(L)}const H={class:N.value},q=t.h("view",H,{default:()=>K});M.push(q);const Z={default:()=>M};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 j={...Se(l,ye,he)};return l.prop&&(j.prop=`${l.prop}_item`),t.h(o,j,Z)}}}}const{componentName:hm,create:gm,scope:ym}=_("link-item"),il=gm(pm(hm,ym,le.ArrowRight,Be)),cl={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:bm,componentName:km}=_("rate"),Sm=bm({props:{...cl},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[km]:!0})),r=S=>{n("update:modelValue",S),n("change",S)},i=(S,b)=>{if(e.disabled||e.readonly)return;let y=0;b===1&&e.modelValue===b||(y=b,e.allowHalf&&S==2&&(y-=.5)),r(y)},s=(S,b,y)=>{let k=0;for(let f=b.value.length-1;f>=0;f--){const m=b.value[f];if(S>m.offsetLeft){y?k=f+(S>m.offsetLeft+m.clientWidth/2?1:.5):k=f+1;break}}return k},c=tt(),u={onTouchStart(S){!e.touchable||e.readonly||c.start(S)},onTouchMove(S){e.touchable&&(c.move(S),c.isHorizontal()&&o.value&&(S.preventDefault(),r(s(c.moveX.value,o,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),d=t.computed(()=>e.customIcon??le.StarFillN);return{classes:l,...u,onClick:i,toPxDesc:ge,renderIcon:(S,b)=>t.h(S,b),rateRefs:o,refRandomId:p,slots:a,customIcon:d}}}),Cm=["id"],wm={class:"fox-rate-item__icon--full"},Nm={key:0,class:"fox-rate-item__icon--half"},Bm={key:1,class:"fox-rate-item__icon--half"};function Am(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),i=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:i,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+i,style:t.normalizeStyle(i<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",wm,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=e.modelValue?e.activeColor:e.voidColor})),{class:t.normalizeClass(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||i>e.modelValue}]),onClick:s=>e.onClick(1,i)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>i?(t.openBlock(),t.createElementBlock("view",Nm,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:s=>e.onClick(2,i)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<i?(t.openBlock(),t.createElementBlock("view",Bm,[(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:s=>e.onClick(2,i)},null,8,["onClick"]))])):t.createCommentVNode("",!0)],12,Cm))),128))],34)}const Bt=ne(Sm,[["render",Am]]);function Tm(e,n,a,o){return{props:{...he,...ye,...cl},emits:["change","update:modelValue","setValue"],setup(l,r){const i=De(t.computed(()=>l.disabled)),s=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),u=e,p=Pe(l,"modelValue",null,c),d=g=>{p.value=g,c("update:modelValue",g,{}),c("change",g,{})};return()=>{const S={...Se(l,cl),disabled:i.value,readonly:s.value,value:p.value,"onUpdate:modelValue":d},b=[],y=t.h(o,S);b.push(y);const k={default:()=>b};if(r.slots.default){const h=r.slots.default();k.label=()=>h}const f=Se(l,ye,he);return l.prop&&(f.prop=`${l.prop}_item`),f["content-class"]=u,t.h(a,f,k)}}}}const{componentName:$m,create:Vm,scope:Em}=_("rate-item"),dl=Vm(Tm($m,Em,Be,Bt)),Dm=/scroll|auto|overlay/i,Ns=window;function Im(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function ul(e,n=Ns){let a=e;for(;a&&a!==n&&Im(a);){const{overflowY:o}=window.getComputedStyle(a);if(Dm.test(o))return a;a=a.parentNode}return n}function Bs(e,n=Ns){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=ul(e.value,n))}),a}const As=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,xm={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:{...xm},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:i}=ie.useFoxI18n(n),s=i(o,["pullText","loadText","loadMoreText"]),c=t.ref(),u=Bs(c),p=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=t.computed(()=>({[e]:!0})),g=m=>m?m.offsetTop+g(m.offsetParent):0,S=()=>{let m=0,h=0,C="down";if(u.value==window){const A=As();c.value&&(m=g(c.value)+c.value.offsetHeight-A-window.innerHeight),h=A}else{const{scrollHeight:A,clientHeight:w,scrollTop:N}=u.value;m=A-w-N,h=N}return p.beforeScrollTop>h?C="up":C="down",p.beforeScrollTop=h,l("scroll-change",h),m<=o.threshold&&C=="down"},b=()=>{Qe(()=>{if(!S()||!o.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,l("update:modelValue",!0),t.nextTick(()=>l("load-more"))})},y=()=>{u.value&&u.value.addEventListener("scroll",b,o.useCapture)},k=()=>{u.value&&u.value.removeEventListener("scroll",b,o.useCapture)};t.onMounted(()=>{y(),o.immediate&&b()}),t.onUnmounted(()=>{k()});const f=t.ref(!1);return t.onActivated(()=>{f.value&&(f.value=!1,y())}),t.onDeactivated(()=>{f.value=!0,k()}),t.watch(()=>o.modelValue,m=>{m||(p.isInfiniting=!1)}),()=>{const m={class:"fox-infinite__container"},h=t.h("view",m,[r?.default?.()]),C=[];if(p.isInfiniting){let T=r?.loading?.()??null;if(!T){let D=r?.loadingIcon?.()??null;if(!D){const V={class:["fox-infinite__bottom-box__img"]};D=t.h(a,V)}const M={class:"fox-infinite__bottom-box__text"},K=t.h("view",M,[s.loadText.value]);T=[D,K]}const $={class:"fox-infinite__bottom-box"},E=t.h("view",$,T);C.push(E)}else if(!o.hasMore){let T=r?.finished?.()??null;if(!T){const $={class:"fox-infinite__bottom-tips"};T=t.h("view",$,[s.loadMoreText.value]),C.push(T)}}const A={class:"fox-infinite__bottom"},w=t.h("view",A,C),N={class:d.value,ref:c};return t.h("view",N,[h,w])}}}}const{componentName:qm,create:Pm,scope:Mm}=_("infinite-loading"),Zn=Pm(vm(qm,Mm,le.Loading)),{componentName:Lm,create:zm}=_("button"),Om=zm({components:{Loading:le.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:o,size:l,shape:r,disabled:i,loading:s,color:c,plain:u,block:p}=t.toRefs(e),d=b=>{!s.value&&!i.value&&n("click",b)},g=t.computed(()=>{const b=Lm;return{[b]:!0,[`${b}--${o.value}`]:o.value,[`${b}--${l.value}`]:l.value,[`${b}--${r.value}`]:r.value,[`${b}--plain`]:u.value,[`${b}--block`]:p.value,[`${b}--disabled`]:i.value,[`${b}--loading`]:s.value}}),S=t.computed(()=>{const b={};return c?.value&&(u.value?(b.color=c.value,b.background="#fff",c.value?.includes("gradient")||(b.borderColor=c.value)):(b.color="#fff",b.background=c.value)),b});return{handleClick:d,classes:g,getStyle:S}}}),Fm={class:"fox-button__wrap"};function Rm(e,n,a,o,l,r){const i=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",Fm,[e.loading?(t.openBlock(),t.createBlock(i,{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 ze=ne(Om,[["render",Rm]]),Km={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},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Um=(e,n,a)=>({props:{...Km},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(o,{slots:l}){const{emitEvent:r}=gt(),{toLocaleRefs:i}=ie.useFoxI18n(n),s=i(o,["placeholder"]),c=t.reactive({active:!1}),u=t.computed(()=>({background:o.background})),p=t.computed(()=>({background:o.inputBackground})),d=$=>{let D=$.target.value;o.maxLength&&D.length>Number(o.maxLength)&&(D=D.slice(0,Number(o.maxLength))),r("update:modelValue",D,$),r("change",D,$)},g=t.ref({}),S=$=>{let D=$.target.value;c.active=!0,g.value=o.focusStyle,r("focus",D,$)},b=$=>{setTimeout(()=>{c.active=!1},0);let D=$.target.value;o.maxLength&&D.length>Number(o.maxLength)&&(D=D.slice(0,Number(o.maxLength))),g.value={},r("blur",D,$)},y=$=>{r("update:modelValue","",$),r("change","",$),r("clear","")},k=t.computed(()=>String(o.modelValue).length>0),f=t.computed(()=>{const $={};return k.value||($.display="none"),$}),m=$=>{o.autoblur&&N.value?.blur(),(typeof $.cancelable!="boolean"||$.cancelable)&&$.preventDefault(),r("search",o.modelValue)},h=$=>{r("keyup-input",$)},C=$=>{r("click-input",$)},A=$=>{r("click-left-icon",o.modelValue,$)},w=t.computed(()=>({textAlign:o.inputAlign})),N=t.ref(null);t.onMounted(()=>{o.autofocus&&N.value.focus()});const T=()=>{const $=[];if(l.leftin){const z={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:A},x=t.h("view",z,[l.leftin()]);$.push(x)}const E={class:`${e}__input-inner-input`,ref:N,style:w.value,type:o.inputType,maxlengt:o.maxLength,placeholder:s.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:C,onInput:d,onFocus:S,onBlur:b,onkeyup:h},D=t.h("input",E),M={class:[`${e}__input-inner`],action:"#",onSubmit:m},K=t.h("form",M,[D]);$.push(K);const V=[];if(o.clearable){const z={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:y},x=l?.clear?.()??o.clearIcon??a,H=t.h("view",z,[t.h(x)]);V.push(H)}if(l.rightin){const z={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},x=t.h("view",z,[l.rightin()]);V.push(x)}if(V.length>0){const z={class:`${e}__input-inner-right`},x=t.h("view",z,V);$.push(x)}const I={class:[`${e}__search-input`,`${o.shape}`],style:{...p.value,...g.value}};return t.h("view",I,$)};return()=>{const $=[];if(o.label){const M={class:`${e}__search-label`},K=t.h("span",M,[o.label]);$.push(K)}if(l.leftout){const M={class:[`${e}__search-icon`,`${e}__left-search-icon`]},K=t.h("view",M,[l.leftout()]);$.push(K)}const E=T();if($.push(E),l.rightout){const M={class:[`${e}__search-icon`,`${e}__right-search-icon`]},K=t.h("view",M,[l.rightout()]);$.push(K)}const D={class:`${e}`,style:u.value};return t.h("view",D,$)}}}),{componentName:Hm,create:jm,scope:Wm}=_("searchbar"),Jn=jm(Um(Hm,Wm,le.CircleClose)),_n={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,String,Object],default(){return[]}},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},searchDelayTriggerClear:{type:Number,default:250},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Ym(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(eo(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if($s(e,r)===a)return l}return-1}function eo(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ts(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function $s(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Xm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Qm(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Gm=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,i,s){if(Array.isArray(a)){let u=a;typeof s=="function"&&(u=u.filter(s));let p=(o-1)*l,d=p+l;d>u.length&&(d=u.length);const g=u.slice(p,d);return{totalSize:u.length,page:g}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,i]);const c=_e(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ie(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r]))}};function Zm(){const e=t.getCurrentInstance();return new Gm(e.proxy)}function Jm(e,n,a,o,l,r,i,s,c,u,p){return{props:{..._n},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{slots:g}){const{emitEvent:S}=gt(),{toLocaleRefs:b}=ie.useFoxI18n(n),y=b(d,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),k=Zm(),f=t.ref([]),m=t.ref(0),h=t.ref(""),C=t.shallowRef(null),A=t.computed(()=>{const U={};return d.params&&Object.assign(U,d.params),ue(h.value)||(U[`${d.searchKey}`]=h.value),C.value&&Object.assign(U,C.value),U});let w=!0;const N=async(U,W,G)=>{try{if($.value===!1)return;let R=null;ue(h.value)||(R=oe=>{const ae=eo(d,oe);if(typeof ae=="string"&&ae.includes(h.value))return!0;const se=Ts(d,oe);return!!(typeof se=="string"&&se.includes(h.value))});const X=await k.load("actionsheet",U,W,G,A.value,w,R??void 0);w=!1,Array.isArray(X)?(f.value=X,m.value=1,$.value=!1):!Array.isArray(X.page)||X.page.length===0?(console.warn("[FoxUI] can not load more data"),$.value=!1):(Reflect.apply([].push,f.value,X.page),m.value=Math.ceil(f.value.length/d.pageSize),(X.totalSize&&f.value.length>=X.totalSize||G<X.page.length)&&($.value=!1)),T.value=!1}catch(R){console.error("[FoxUI] ActionSheet load more data fail",R),$.value=!0,m.value=0,f.value=[]}setTimeout(()=>{S("loaded-data")},250)},T=t.ref(!1),$=t.ref(!0),E=async()=>{if(!d.source){T.value=!1;return}await N(d.source,m.value+1,d.pageSize)};let D=null;t.watch(h,(U,W)=>{D&&(clearTimeout(D),D=null),ue(U)&&!ue(W)&&(D=setTimeout(()=>{K()},d.searchDelayTriggerClear))});const M=()=>{$.value=!0,m.value=0,f.value=[],d.source&&E()},K=()=>{M()};t.watch([()=>d.source,()=>d.pageSize,()=>d.params],async([U,W,G])=>{d.source&&M()},{immediate:!0});const V=t.computed(()=>!d.multiple&&d.isAutoBackFill),I=t.ref([]);let z=null;const x=t.ref(d.visible);t.watch(()=>d.visible,U=>{x.value!==U&&(x.value=U),U?z=[...I.value]:z=null});const H=(U,W)=>{const G=[];return Array.isArray(U)||(U=[U]),U.forEach(R=>{let X=Ym(d,W,R,d.valueType);X!==-1&&G.push(X)}),Me(G,I.value)?!1:(I.value=G,!0)};t.watch([()=>d.modelValue,()=>f.value],([U,W],[G,R])=>{if(H(U,W)){const oe=q();Z(oe)}},{deep:!0});const q=()=>{const U=[],W=[],G=[];for(let ae of I.value){const se=f.value[ae];W.push(se);const de=eo(d,se);if(G.push(de),d.valueType==="item")U.push(se);else if(d.valueType==="text")U.push(de);else{const $e=$s(d,se);U.push($e)}}let R=null,X=null,oe=null;return d.multiple?(R=U,X=G,oe=W):(R=U[0]??null,X=G[0]??null,oe=W[0]??null),{value:R,text:X,item:oe}},Z=U=>{S("update:modelValue",U.value),S("update:text",U.text),S("change",U.value,U.item,U.text)},ee=()=>{z&&(I.value=z)},j=U=>{const W=I.value.indexOf(U);d.multiple?W===-1?I.value.push(U):I.value.splice(W,1):W===-1?I.value=[U]:I.value=[],(V.value||!d.poppable&&!d.showFooter)&&v()},P=U=>{x.value=U,S("update:visible",U)},L=()=>{const U=()=>{ee(),P(!1)},W=d.beforeMethod??d.beforeClose;if(typeof W=="function"){const G=W("close");ft(G)?G.then(R=>{R!==!1&&U()}).catch(()=>{U()}):G!==!1&&U()}else U()},v=()=>{const U=q(),W=()=>{Z(U),P(!1)},G=d.beforeMethod??d.beforeClose;if(typeof G=="function"){const R=G("confirm",U.value,U.item,U.text);ft(R)?R.then(X=>{X!==!1&&W()}).catch(()=>{W()}):R!==!1&&W()}else W()},Y=()=>{let U=y.title.value??"";g.title&&(U=g.title());const W=t.h("view",{class:["fox-actionsheet__header-title"]},[U]),G=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:L});return t.h("view",{class:["fox-actionsheet__header"]},[W,G])},O=()=>{let U=null;if(g.search)U=g.search();else{const W={onSearch:M,placeholder:y.seachPlaceholder.value,disabled:d.disabled,modelValue:h.value,"onUpdate:modelValue":G=>{h.value=G}};U=t.h(r,W,{leftin:()=>t.h(u)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[U])},F=(U,W,G,R,X)=>{if(g.optionLabel)return g.optionLabel({text:U,checked:W,disabled:G,subText:R,item:X});const oe=[],ae=t.h("view",{class:"fox-actionsheet__list-item-text"},[U]);if(oe.push(ae),R){const se=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[R]);oe.push(se)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},oe)},Q=(U,W,G,R)=>{if(g.optionIcon)return g.optionIcon({checked:U,disabled:W,iconSize:G,item:R});if(U){if(g.checkedIcon)return g.checkedIcon({disabled:W,item:R});{const X=d.checkedIcon??s;return t.h(X,{width:G,height:G,class:["fox-actionsheet__list-item-icon"]})}}else{if(g.icon)return g.icon({disabled:W,item:R});{const X=d.icon??i;return t.h(X,{width:G,height:G,class:["fox-actionsheet__list-item-icon"]})}}},J=()=>{const U=[];for(let W=0;W<f.value.length;W++){const G=f.value[W],R=eo(d,G),X=Ts(d,G),oe=["fox-actionsheet__list-item"],ae={};let se=Xm(d,G),de=d.iconSize?fe(d.iconSize):null;const $e=Qm(d,G,W);$e&&(se=se||$e.disabled,$e.class&&oe.push($e.class),$e.style&&Object.assign(ae,$e.style)),se=!!(d.disabled||se);const Ne=I.value.includes(W);se&&oe.push("is-disabled"),Ne&&oe.push("is-checked");const ao={class:oe,style:ae,key:`${W}`,onClick:()=>{se||j(W)}};let ut=[];if(g.option)ut.push(g.option({item:G,checked:Ne,disabled:se}));else{const i2=F(R,Ne,se,X,G);ut.push(i2);const c2=Q(Ne,se,de,G);ut.push(c2),d.textPosition==="right"&&ut.reverse()}const s2=t.h("view",ao,ut);U.push(s2)}return U},te=()=>{let U=[];if(g.buttons)U=g.buttons();else{const G=t.h(l,{type:"primary",block:"block",onClick:v,disabled:d.disabled},{default:()=>y.confirmText.value});U.push(G)}return t.h("view",{class:"fox-actionsheet__footer"},[U])};return ve({search:async(U=null,W=!0)=>{C.value=U&&t.toRaw(U),t.triggerRef(C),W&&($.value=!0,m.value=0,f.value=[]),t.nextTick(()=>{E()})},clear:()=>{$.value=!0,m.value=0,f.value=[]},confirm:()=>{v()},cancel:()=>{L()}}),()=>{const U=[];if(d.showHeader){const de=Y();U.push(de)}if(d.showSearchbar){const de=O();U.push(de)}let W=null;if(g.content)W=g.content();else{const de=J(),$e={hasMore:$.value,loadText:y.loadText.value,loadMoreText:y.loadMoreText.value,modelValue:T.value,"onUpdate:modelValue":Ne=>{T.value=Ne},onLoadMore:E};W=t.h(o,$e,{default:()=>de})}const G={};d.optionsHeight&&(G.height=d.optionsHeight);const R={"fox-actionsheet__list":!0};d.poppable||(R["fox-actionsheet__list--inner"]=!0);const X=t.h("view",{class:R,style:G},[W]);if(U.push(X),d.showFooter&&!V.value){const de=te();U.push(de)}const oe=t.h("view",{class:"fox-actionsheet"},U);if(!d.poppable)return oe;const ae=["fox-actionsheet__popup"];d.popClass&&ae.push(d.popClass);const se={popClass:ae.join(" "),visible:x.value,closeable:!1,"onUpdate:visible":P,position:d.position,round:"round",onClickOverlay:L,closeOnClickOverlay:d.closeOnClickOverlay};return t.h(a,se,{default:()=>oe})}}}}const{componentName:_m,create:ep,scope:tp}=_("actionsheet-pane"),to=ep(Jm(_m,tp,me,Zn,ze,Jn,le.CheckNormal,le.Checked,le.Close,le.Search2)),Vs={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 np(e,n,a,o,l,r,i){return{props:{...he,...ye,...Vs,..._n},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,c){const u=De(t.computed(()=>s.disabled)),p=Ee(t.computed(()=>s.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},s.prop??c.attrs.name),{toLocaleRefs:g}=ie.useFoxI18n(n),S=g(s,["placeholder"]),b=t.ref(!1),y=Pe(s,"modelValue",null,d),k=t.ref(""),f=t.computed(()=>Array.isArray(k.value)?k.value.join(s.separator):k.value),m="fox-input-item",h=t.computed(()=>({[m]:!0,"is-disabled":u.value,"is-readonly":p.value})),C=Ve(t.computed(()=>s.textAlign),"textAlign"),A=t.computed(()=>{const v={};return C.value&&(v["text-align"]=C.value),v}),w=t.ref(!1),N=()=>{w.value=!0},T=v=>{w.value=v},$=v=>{y.value=v,d("update:modelValue",v)},E=(v,Y)=>{d("change",v,Y)},D=v=>{let O=v.target.value;b.value=!0,d("focus",O,v)},M=v=>{setTimeout(()=>{b.value=!1},0);let O=v.target.value;s.maxLength&&O.length>Number(s.maxLength)&&(O=O.slice(0,Number(s.maxLength))),d("blur",O,v)},K=v=>{k.value=v,d("update:text",v)},V=t.computed(()=>({[`${m}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),I=t.computed(()=>ke(s.unit)>0),z=t.computed(()=>ke(s.unit)>0&&!b.value),x=t.computed(()=>({hidden:!z.value})),H=v=>{y.value="",d("update:modelValue","",v),d("change","",v),d("clear","")},q=t.computed(()=>s.clearable&&!u.value&&!p.value),Z=t.computed(()=>ke(y.value)>0&&b.value),ee=v=>{Z.value?H(v):N()},j=t.computed(()=>Z.value&&q.value?o:l),P=t.computed(()=>({action:!0})),L=t.ref(null);return ve({search:v=>{L.value&&L.value.search(v)},clear:()=>{L.value&&L.value.clear},confirm:v=>{L.value&&L.value.confirm()},cancel:()=>{L.value&&L.value.cancel()}}),()=>{const v={class:h.value,style:A.value,type:"text",maxlength:s.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:D,onBlur:M},Y=[],O=t.h("input",v);Y.push(O);const F=[],Q={class:["action-icon"]},J=t.h(j.value,Q),te={class:P.value,onClick:ee},U=t.h("view",te,{default:()=>[J]});if(F.push(U),I.value){const Ne=t.h("view",{class:x.value},[s.unit]);F.push(Ne)}const W={class:V.value},G=t.h("view",W,{default:()=>F});Y.push(G);const R={default:()=>Y};R.label=c.slots.default,R.prepend=c.slots.prepend,R.append=c.slots.append,R.fixedPreTip=c.slots.fixedPreTip,R.fixedTip=c.slots.fixedTip;const X=Se(s,_n);X.ref=L,X.class=s.actionsheetProps,X.disabled=u.value||p.value,X.visible=w.value,X["onUpdate:visible"]=T,X.modelValue=y.value,X["onUpdate:modelValue"]=$,X.text=k.value,X["onUpdate:text"]=K,X.onChange=E,X.poppable=!0,X["text-position"]=s.textPosition;const oe={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,X,oe);R.hide=()=>[ae];const de={...mt(s,Vs,_n)};return s.prop&&(de.prop=`${s.prop}_item`),t.h(a,de,R)}}}}const{componentName:op,create:lp,scope:ap}=_("actionsheet-item"),fl=lp(np(op,ap,Be,le.CircleClose,le.ArrowRight,to)),ml={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:rp,create:sp}=_("input-number"),ip=sp({components:{Minus:le.Minus,Plus:le.Plus},props:{...ml},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const S=rp;return{[S]:!0,[`${S}--disabled`]:e.disabled}}),o=S=>Number(S).toFixed(Number(e.decimalPlaces)),l=S=>{const b=S.target;n("update:modelValue",b.valueAsNumber,S)},r=(S,b)=>{let y=o(S);n("update:modelValue",y,b),n("change",y,b)},i=(S=Number(e.modelValue))=>S<Number(e.max)&&!e.disabled,s=(S=Number(e.modelValue))=>S>Number(e.min)&&!e.disabled,c=S=>{if(n("reduce",S),s()){let b=Number(e.modelValue)-Number(e.step);r(b,S)}else n("overlimit",S,"reduce")},u=S=>{if(n("add",S),i()){let b=Number(e.modelValue)+Number(e.step);r(b,S)}else n("overlimit",S,"add")},p=S=>{e.disabled||e.readonly||n("focus",S)},d=S=>{if(e.disabled||e.readonly)return;let y=S.target.valueAsNumber;y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),r(y,S),n("blur",S)},g=S=>{let b=Number(S);return b<Number(e.min)?b=Number(e.min):b>Number(e.max)&&(b=Number(e.max)),b};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const S=g(e.modelValue);S!==Number(e.modelValue)&&r(S,{})}),{classes:a,change:l,blur:d,focus:p,add:u,addAllow:i,reduce:c,reduceAllow:s,toPxDesc:ge}}}),cp=["min","max","disabled","readonly","value"];function dp(e,n,a,o,l,r){const i=t.resolveComponent("Minus"),s=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(i,{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,cp),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(s,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2)],2)}const nt=ne(ip,[["render",dp]]);function up(e,n,a,o){return{props:{...he,...ye,...ml},emits:["change","update:modelValue","setValue","add","reduce"],setup(l,r){const i=De(t.computed(()=>l.disabled)),s=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!i.value&&!s.value}},l.prop??r.attrs.name),u=e,p=Pe(l,"modelValue",null,c),d=b=>{p.value=b,c("update:modelValue",b,{}),c("change",b,{})},g=b=>{c("add",b)},S=b=>{c("reduce",b)};return()=>{const b={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},y=Se(l,ml),f={...r.attrs,...y,disabled:i.value,readonly:s.value,value:p.value,"onUpdate:modelValue":d,onAdd:g,onReduce:S},m=t.h(o,f,b),h=[];h.push(m);const C={default:()=>h};C.label=r.slots.default,C.fixedPreTip=r.slots.fixedPreTip,C.fixedTip=r.slots.fixedTip;const w={...Se(l,ye,he)};return l.prop&&(w.prop=`${l.prop}_item`),w["content-class"]=u,t.h(a,w,C)}}}}const{componentName:fp,create:mp,scope:pp}=_("inputnumber-item"),pl=mp(up(fp,pp,Be,nt)),hp={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:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function gp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Es(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ds(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function yp(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function hl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Is(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function xs(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function gl(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let bp=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=_e(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(l,null,[a,o]))}};function kp(){const e=t.getCurrentInstance();return new bp(e.proxy)}function Sp(e,n,a,o){return{props:{...hp},emits:["update:modelValue","change","loaded-data","click"],setup(l,{slots:r,emit:i}){const s=e,c=kp(),u=t.ref([]),p=t.computed(()=>u.value.filter(P=>yp(l,P)!==!1)),d=t.ref(-1),g=()=>{const P=l.modelValue,L=p.value.findIndex(v=>Es(l,v)===P);d.value!==L&&(d.value=L,l.scroll&&ee(L))};t.watch([()=>l.modelValue,p],()=>{g()});const S=P=>d.value===P,b=P=>{if(P<0&&P>=p.value.length)return!1;const L=p.value[P],Y=(gl(l,L,P)??{}).status??hl(l,L);return S(P)||Y},y=t.computed(()=>{const P={[s]:!0};return l.mode?P[`is-${l.mode}`]=!0:l.direction&&(P[`is-${l.direction}`]=!0),l.scroll&&(P["is-scroll"]=!0),P}),k=t.computed(()=>({})),f=(P,L,v,Y,O)=>{const F={[`${s}__step`]:!0};return O&&(F[`${O}`]=!0),F[`${m.value}`]=!0,Y&&(F["is-doit"]=!0),P===d.value?F["is-active"]=!0:L==="done"?F["is-done"]=!0:L==="error"?F["is-error"]=!0:L==="half"?F["is-half"]=!0:v?F["is-disabled"]=!0:F["is-normal"]=!0,F},m=t.computed(()=>{if(l.mode==="simple")return"start";let P=l.align;return P||(l.direction==="vertical"?P="start":P="center"),P}),h=(P,L={})=>{const v={...L};return m.value==="start"&&P===p.value.length-1?v.flex="0 0 auto":l.step?l.direction==="vertical"?v.height=l.step:v.width=l.step:v.flex="1 1 100%",v},C=(P,L)=>{let v={};if(L<p.value.length-1){const Y=L+1;b(L)&&b(Y)?l.direction==="vertical"?v.height="100%":v.width="100%":v.opacity="0"}return v},A=P=>p.value.length-1===P,w=(P,L)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&L>d.value||d.value===L)return;const v=d.value,Y=L;d.value=L,l.scroll&&ee(L);const O=Es(l,P);i("update:modelValue",O);const F={fromIndex:v,currentIndex:Y,item:P,items:p.value,clickNavigatePolicy:l.clickNavigatePolicy};i("change",O,F)},N=t.ref(!0),T=async(P,L)=>{try{const v=await c.load("stesbar",P,L);Array.isArray(v)&&(u.value=v),N.value=!1}catch(v){console.error("[FoxUI] Load StepsBar Data Fail",v),u.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([P,L])=>{P&&T(P,L)},{immediate:!0});const $=(P,L,v,Y,O)=>{let F=null;if(r.icon)F=r.icon({item:P,index:L,status:Y});else if(Y==="done"){const J={};l.iconSize&&(J.width=l.iconSize,J.height=l.iconSize);const te=l.icon??a;F=t.h(te,J)}else{const J=v??`${L+1}`;F=t.h("span",{},[J])}const Q={class:"fox-steps-bar__icon",onClick:()=>{i("click",{item:P,index:L}),!O&&w(P,L)}};return t.h("view",Q,[F])},E=(P,L,v)=>{const Y=t.h("i",{class:"fox-steps-bar__line-inner",style:C(P,L)});return t.h("view",{class:"fox-steps-bar__line"},[Y])},D=()=>{let P=null;if(r.markIcon)P=r.markIcon();else{const v={};l.iconSize&&(v.width=l.markIconSize,v.height=l.markIconSize);const Y=l.markIcon??o;P=t.h(Y,v)}return t.h("view",{class:"fox-steps-bar__mark"},[P])},M=(P,L,v,Y,O)=>{const F=[];if(!A(L)){const te=E(P,L);F.push(te)}const Q=$(P,L,v,Y,O);F.push(Q);const J={class:"fox-steps-bar__head"};return t.h("view",J,F)},K=(P,L,v,Y)=>{let O=null;r.main?O=r.main({item:P,index:L,status:v}):O=gp(l,P);const F={class:"fox-steps-bar__main",onClick:()=>{i("click",{item:P,index:L}),!Y&&w(P,L)}};return t.h("view",F,[O])},V=(P,L,v)=>{let Y=null;if(r.sub){Y=r.sub({item:P,index:L,status:v});const O={class:"fox-steps-bar__sub"};return t.h("view",O,[Y])}return null},I=(P,L)=>{const v=gl(l,P,L)??{},Y=v.status??hl(l,P);let O=Ds(l,P);v.disabled===!0&&(O=!0),l.disabled===!0&&(O=!0);const F=v.label??xs(l,P),Q=[],J=$(P,L,F,Y,O);J&&Q.push(J);const te=K(P,L,Y,O);if(te&&Q.push(te),!A(L)){const oe=E(P,L);oe&&Q.push(oe)}const U=t.h("view",{class:"fox-steps-bar__head"},Q),W=v.class,G=v.style??{};let R=Is(l,P);v.doit===!0&&(R=!0);const X={ref:Z(L),class:f(L,Y,O,R,W),style:h(L,G)};return t.h("view",X,[U])},z=(P,L)=>{const v=gl(l,P,L)??{},Y=v.status??hl(l,P);let O=Ds(l,P);v.disabled===!0&&(O=!0),l.disabled===!0&&(O=!0);const F=v.label??xs(l,P),Q=[],J=l.layout;for(let R of J)if(R==="head"){const X=M(P,L,F,Y,O);Q.push(X)}else if(R==="main"){const X=K(P,L,Y,O);Q.push(X)}else if(R==="sub"){const X=V(P,L,Y);Q.push(X)}else if(R==="mark"){const X=D();Q.push(X)}const te=v.class,U=v.style??{};let W=Is(l,P);v.doit===!0&&(W=!0);const G={ref:Z(L),class:f(L,Y,O,W,te),style:h(L,U)};return t.h("view",G,Q)},x=t.ref(),H=t.ref([]),q=(P,L)=>{H.value[L]=P},Z=P=>L=>{q(L,P)},ee=(P,L)=>{const v=x.value,Y=H.value;if(!v||!Y||!Y[P])return;const O=Y[P];let F=0;l.direction==="vertical"?F=O.offsetTop-(v.offsetHeight-O.offsetHeight)/2:F=O.offsetLeft-(v.offsetWidth-O.offsetWidth)/2,j(v,F,.3,l.direction)},j=(P,L,v,Y)=>{let O=0;const F=Y==="horizontal"?P.scrollLeft:P.scrollTop,Q=Math.round(v*1e3/16);function J(){Y==="horizontal"?P.scrollLeft+=(L-F)/Q:P.scrollTop+=(L-F)/Q,++O<Q&&Ue(J)}J()};return()=>{const P=[];if(l.mode==="simple")for(let v=0;v<p.value.length;v++){const Y=p.value[v],O=I(Y,v);P.push(O)}else for(let v=0;v<p.value.length;v++){const Y=p.value[v],O=z(Y,v);P.push(O)}const L={ref:x,class:y.value,style:k.value};return t.h("view",L,P)}}}}const{componentName:Cp,create:wp,scope:Np}=_("steps-bar"),yl=wp(Sp(Cp,Np,le.Checklist,le.ArrowRight));function Bp(e){e.stopPropagation()}class Ap{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=Ho()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=jo(),o=(l,r,i,s)=>{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),Bp(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 Tp(e,n){return new Ap(e,n)}const $p={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]}},Vp=(e,n,a,o=!1)=>({props:{...$p},emits:["click"],setup(l,{slots:r,emit:i}){const s=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}),u=t.computed(()=>{const m={};return ue(s.top)||(m.top=s.top),ue(s.right)||(m.right=s.right),ue(s.bottom)||(m.bottom=s.bottom),ue(s.left)||(m.left=s.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=()=>{i("click")},g=t.ref(null),S=()=>{s.top=null,s.right=null,s.bottom=null,s.left=null},b={x:0,y:0},f=Tp(m=>{if(!g.value)return;const h=g.value;S(),s.left=h.offsetLeft,s.top=h.offsetTop,h.style.left=`${s.left}px`,h.style.top=`${s.top}px`,h.style.right=null,h.style.bottom=null,b.x=s.left,b.y=s.top},m=>{if(!g.value)return;const h=g.value;S(),s.left=b.x+m.x,s.top=b.y+m.y,h.style.left=`${s.left}px`,h.style.top=`${s.top}px`});return t.onMounted(()=>{if(l.draggable&&g.value){const m=[g.value];f.open(m)}}),t.onBeforeUnmount(()=>{l.draggable&&g.value&&f.close()}),()=>{let m=[];const h=typeof r.default=="function"?r.default():[];if(h&&h.length>0)m=h;else{const A=t.h(a,{class:p.value});m.push(A)}const C={ref:A=>{g.value=A},class:c.value,style:u.value,onClick:d};return t.h("view",C,m)}}}),{componentName:Ep,create:Dp,scope:Ip}=_("floating-button"),bl=Dp(Vp(Ep,Ip,le.Uploader,!1)),xp={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:{...xp},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}),i=Pe(o,"modelValue"),s=t.computed(()=>i.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),u=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),p=()=>{l("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const k={class:c.value},f=t.h("span",k,[s.value]);d.push(f)}const g={class:u.value},S=o.icon??a,b=t.h(S,g);return d.push(b),o.textPosition==="right"&&d.reverse(),t.h("view",{class:r.value,onClick:p},d)}}}}const{componentName:qp,create:Pp,scope:Mp}=_("more-button"),kl=Pp(vp(qp,Mp,le.RectUp)),Lp={width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},zp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Op(e,n,a){return{props:{...Lp},setup(o,{attrs:l,slots:r}){const{toLocaleRefs:i}=ie.useFoxI18n(n),s=i(o,["confirmText","cancelText"]),c=e,u=t.ref(!0),p=C=>{u.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)}},g=()=>{d("confirm")},S=()=>{d("cancel")},b=()=>{o.closeOnClickOverlay!==!1&&d("close")},y=(C,A)=>zp(C)?(A.src=C,t.h("img",A)):typeof C=="string"?(Array.isArray(A.class)?A.class.push(C):A.class&&typeof A.class=="object"?A[`${C}`]=!0:typeof A.class=="string"?A.class=`${A.class}, ${C}`:A.class=C,t.h(o.tag,A)):t.h(C,A),k=()=>{const C=[];if(o.icon){const w={class:[`${c}__header-icon`]},N=y(o.icon,w);C.push(N)}if(o.title){const w=t.h("view",{class:`${c}__header-title`},[o.title]);C.push(w)}if(o.showClose&&o.closeIcon){const w={class:[`${c}__header-close-icon`],onClick:b},N=y(o.closeIcon,w);C.push(N)}const A={class:[`${c}__header`]};return t.h("view",A,C)},f=(C,A)=>{const w=[];if(A){const T={class:`${c}__group-title`},$=t.h("view",T,[A]);w.push($)}if(C){const T=[];Array.isArray(C)||(C=[C]);for(let $ of C){const E={class:`${c}__group-row`,innerHTML:$},D=t.h("view",E);T.push(D)}if(T.length>0){const $={class:`${c}__group-rows`},E=t.h("view",$,T);w.push(E)}}if(w.length===0)return null;const N={class:`${c}__group`};return t.h("view",N,w)},m=()=>{const C=[];if(typeof o.message=="string")C.push(o.message);else if(Array.isArray(o.message))for(let w of o.message)if(typeof w=="string"){const N=f(w);C.push(N)}else{const N=f(w.content,w.title);C.push(N)}else if(typeof o.message=="function"){const w=o.message();C.push(w)}else{const w=o.message;C.push(w)}const A={class:`${c}__body`};return t.h("view",A,C)},h=()=>{const C=[];if(o.showCancelButton){const w={class:[`${c}__footer-button`],style:{},onClick:S};o.cancelButtonClass&&w.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(w.style,o.cancleButtonStyle);const N=t.h("button",w,[o.cancelButtonText??s.cancelText.value]);C.push(N)}if(o.showConfirmButton){const w={class:[`${c}__footer-button`],style:{},onClick:g};o.confirmButtonClass&&w.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(w.style,o.confirmButtonStyle);const N=t.h("button",w,[o.confirmButtonText??s.confirmText.value]);C.push(N)}if(C.length===0)return null;const A={class:`${c}__footer`};return t.h("view",A,C)};return()=>{const C=[],A=k();A&&C.push(A);const w=m();w&&C.push(w);const N=h();N&&C.push(N);const T={class:{[`${c}`]:!0,[`${c}--${o.type||"info"}`]:!0}},$=t.h("view",T,C),E=[`${c}__popup`];o.popClass&&E.push(o.popClass);const D={};o.width&&(D.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(D.height=typeof o.height=="number"?`${o.height}px`:o.height);const M={popClass:E.join(" "),style:D,visible:u.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":p,position:o.position,round:"round",onClickOverlay:b,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,M,{default:()=>$})}}}}const{componentName:Fp,create:Rp,scope:Kp}=_("messagebox"),Up=Rp(Op(Fp,Kp,me)),Hp="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",jp="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",Wp="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",Yp="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",Xp=new In,Qp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Gp=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-${Xp.get()}`;o.id=l,o.classList.add("fox-messagebox__root"),e.zIndex&&(o.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const i=document.querySelector(`#${l}`);i&&i.parentNode?.removeChild(i)};const r=t.createVNode(Up,e);n.appendChild(o),t.render(r,o)},dt={show:(e,n,a,o)=>{const l={...Qp};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=Wp:r==="warning"?l.icon=Yp:r==="error"?l.icon=Hp:l.icon=jp),e==="alert"?(l.showCancelButton=!1,l.showConfirmButton=!0):e==="confirm"&&(l.showCancelButton=!0,l.showConfirmButton=!0),l.showClose&&!l.closeIcon&&(l.closeIcon=le.Close),new Promise((i,s)=>{const c=l.callback;l.callback=u=>{if(typeof c=="function")try{c(u)}catch(p){console.error(p)}i({action:u})},Gp(l)})},alert:(e,n,a)=>dt.show("alert",e,n,a),confirm:(e,n,a)=>dt.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=dt.alert,e.config.globalProperties.$confirm=dt.confirm}},Zp=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let l=!0,r=!0;for(let s in n)s==="bubbles"?l=!!n[s]:s==="cancelable"?r=!!n[s]:o[s]=n[s];o.initEvent(e,l,r),(a??document).dispatchEvent(o)},Jp=new In,_p=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),eh=e=>`${e}-${Jp.get()}`,th=Symbol.for("InnerPageScopeKey"),nh=Symbol.for("PageWrapperKey"),oh="FoxLeave",lh="FoxLeaveEnd",ah={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 rh(e,n,a,o){return{props:{...Fe,...ah},emits:["update:visible"],setup(l,{attrs:r,slots:i,emit:s}){t.provide(th,!0);const c={};t.provide(nh,c);const u=w=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),p=()=>{u()},d=e,g=w=>{S.value=w,s("update:visible",w)},S=t.ref(!1),b=(w,N)=>_p(w)?(N.src=w,t.h("img",N)):typeof w=="string"?(Array.isArray(N.class)?N.class.push(w):N.class&&typeof N.class=="object"?N[`${w}`]=!0:typeof N.class=="string"?N.class=`${N.class}, ${w}`:N.class=w,t.h(l.tag,N)):t.h(w,N),y=()=>{if(!l.showHeader)return null;const w=[];if(i.header){const T=i.header();w.push(T)}else if(l.title){const T=t.h("view",{class:`${d}__header-title`},[l.title]);w.push(T)}if(w.length===0)return null;const N={class:[`${d}__header`]};return t.h("view",N,w)},k=()=>{if(!l.showClose)return null;const w={class:[`${d}__close-icon`],onClick:p},N=l.closeIcon??o;return b(N,w)};let f=null;const m=w=>{Zp(lh,{},f)},h=eh(e),C=()=>{g(!0)},A=()=>{if(!f)return;const w=f.querySelector(".fox-overlay");w&&(w.classList.add("overlay-fade-leave-active"),w.classList.add("overlay-fade-leave-to"));const N=f.querySelector(".fox-popup");N&&(N.classList.add(`fox-popup-slide-${l.position}-leave-active`),N.classList.add(`fox-popup-slide-${l.position}-leave-to`),N.addEventListener("animationend",m,{once:!0}),N.addEventListener("transitionend",m,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{f=document.querySelector(`.${h}`),f?.addEventListener(oh,A,{once:!0}),C()}),()=>{const w=[],N=y();N&&w.push(N);const T=k();T&&w.push(T);const $=i.default?i.default():[];Reflect.apply([].push,w,$);const E={[`${d}`]:!0};l.mode&&(E[`${d}--${l.mode}`]=!0);const D={class:E},M=t.h("view",D,w),K=[`${d}__popup`,h];l.popClass&&K.push(l.popClass),l.position&&K.push(`${d}__popup--${l.position}`);const V={};l.width&&(V.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(V.height=typeof l.height=="number"?`${l.height}px`:l.height);const z={...Se(l,Fe),popClass:K.join(" "),style:V,visible:S.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":g},x=t.h(a,z,{default:()=>M});return t.h("div",{class:[`${d}__root`,h]},[x])}}}}const{componentName:sh,create:ih,scope:ch}=_("popup-wrapper"),Sl=ih(rh(sh,ch,me,le.Close)),dh={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function uh(e,n,a,o){return{props:{...dh},emits:["update:visible"],setup(l,{emit:r,slots:i}){const s=c=>{r("update:visible",c)};return()=>{const c=[`${e}__popup`];l.popClass&&c.push(l.popClass);const u={popClass:c,style:l.popStyle??{},position:"top",zIndex:l.zIndex,closeOnClickOverlay:l.closeOnClickOverlay,teleportDisable:!0,visible:l.visible,"onUpdate:visible":s},p=t.h(a,u,i),d={class:`${e}`};return t.h("view",d,[p])}}}}const{componentName:fh,create:mh,scope:ph}=_("dropdown"),Cl=mh(uh(fh,ph,me)),hh={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Number,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]}};function gh(e,n,a=!1){return{props:{...hh},emits:["update:visible"],setup(o,{emit:l,slots:r,expose:i}){const s=t.ref({top:null,right:null,bottom:null,left:null}),c=t.ref(0),u=t.ref(0),p=t.ref(0),d=t.ref(0),g=t.ref(o.placement),S=t.ref(!1),b=t.ref(!1),y=t.ref(null),k=()=>typeof o.reference=="string"?document.querySelector(o.reference):o.reference,f=(q,Z,ee,j,P,L,v,Y=!0)=>{const O=document.documentElement.clientWidth||document.body.clientWidth,F=document.documentElement.clientHeight||document.body.clientHeight,Q=q.split("-");let J=[];Y?Q[0]==="top"?J=["top","bottom","right","left"]:Q[0]==="bottom"?J=["bottom","top","right","left"]:Q[0]==="left"?J=["left","top","bottom","right"]:Q[0]==="right"&&(J=["right","top","bottom","left"]):J=[q[0]];const te={top:null,right:null,bottom:null,left:null},U=[];for(let W=0;W<J.length;W++){const G=J[W];if(U[0]=G,Q[1]&&(U[1]=Q[1]),G==="top"){const R=ee-v-o.arrowSize/2-o.offset;if(R>=0){te.top=R;let X=0;Q[1]==="start"?X=Z:Q[1]==="end"?X=Z+j-L:X=Z+j/2-L/2;const oe=O-X-L;oe<0?(X+=oe,h.value=-oe):h.value=0,te.left=X<0?0:X;break}}else if(G==="bottom"){const R=ee+P+o.arrowSize/2+o.offset;if(R+v<=F){te.top=R;let X=0;Q[1]==="start"?X=Z:Q[1]==="end"?X=Z+j-L:X=Z+j/2-L/2;const oe=O-X-L;oe<0?(X+=oe,h.value=-oe):h.value=0,te.left=X<0?0:X;break}}else if(G==="left"){const R=Z-L-o.arrowSize/2-o.offset;if(R>=0){te.left=R;let X=0;Q[1]==="start"?X=ee:Q[1]==="end"?X=ee+P-v:X=ee+P/2-v/2,te.top=X<0?0:X;break}}else if(G==="right"){const R=Z+j+o.arrowSize/2+o.offset;if(R+L<=O){te.left=R;let X=0;Q[1]==="start"?X=ee:Q[1]==="end"?X=ee+P-v:X=ee+P/2-v/2,te.top=X<0?0:X;break}}}return{bestPlacement:U.join("-"),bestInsetRect:te}},m=()=>{const q=o.visible,Z=o.autoFit;if(!Ge||q===!1)return;if(o.reference){const v=k(),Y=Po(v);c.value=Y.x,u.value=Y.y,p.value=v.offsetWidth,d.value=v.offsetHeight}else o.referenceInset&&(c.value=o.referenceInset.left,u.value=o.referenceInset.top,p.value=o.referenceInset.right-o.referenceInset.left,d.value=o.referenceInset.bottom-o.referenceInset.top);const ee=y.value.offsetWidth,j=y.value.offsetHeight,{bestPlacement:P,bestInsetRect:L}=f(o.placement,c.value,u.value,p.value,d.value,ee,j,Z);g.value=P,s.value=L},h=t.ref(0),C=Ze(()=>{m()},10),A=t.ref(o.visible);t.watch([()=>o.visible],([q])=>{A.value=q,q?(S.value=q,setTimeout(()=>{m(),b.value=!0},0)):b.value=!1});const w=t.computed(()=>A.value&&N.value),N=t.ref(!0),T=Ze(q=>{const Z=q[0];Z&&(N.value=Z.isIntersecting)},10),$=new IntersectionObserver(T);t.watch([()=>o.reference,()=>o.referenceInset],([q,Z],[ee,j])=>{!q&&!Z||(setTimeout(()=>{m()},0),o.autoFit&&(ee&&(Mt.unwatch(ee,C),$.unobserve(ee)),q&&(Mt.watch(q,C),$.observe(q))))},{immediate:!0}),t.onBeforeUnmount(()=>{o.reference&&(Mt.unwatch(o.reference,C),$.unobserve(o.reference),$.disconnect())});const E=t.computed(()=>{const q={[e]:!0};return g.value.startsWith("top")?q["is-top"]=!0:g.value.startsWith("right")?q["is-right"]=!0:g.value.startsWith("bottom")?q["is-bottom"]=!0:g.value.startsWith("left")&&(q["is-left"]=!0),q[`is-${o.effect}`]=!0,!b.value&&w.value&&(q["is-opacity"]=!0),b.value&&w.value&&(q["is-show"]=!0),w.value||(q["is-hide"]=!0),o.customClass&&typeof o.customClass=="string"&&(q[`${o.customClass}`]=!0),q}),D=t.computed(()=>{const q={};return s.value.top!==null&&(q.top=`${s.value.top}px`),s.value.right!==null&&(q.right=`${s.value.right}px`),s.value.bottom!==null&&(q.bottom=`${s.value.bottom}px`),s.value.left!==null&&(q.left=`${s.value.left}px`),o.width&&(q.width=o.width),o.zIndex&&(q["z-index"]=`${o.zIndex}`),o.customStyle&&typeof o.customStyle=="object"&&Object.assign(q,o.customStyle),q}),M=()=>{A.value=!1,l("update:visible",!1)},K=()=>{if(!o.showOverlay)return null;const q={class:`${e}__overlay`,onClick:M};return t.h("div",q)},V=()=>{let q=null;return r.title?q=t.h("div",{class:`${e}__title`},{default:r.title}):o.title&&(q=t.h("div",{class:`${e}__title`},[o.title])),q},I=t.computed(()=>({[`${e}__arrow`]:!0})),z=t.computed(()=>{const q={};return o.showArrow?(q.width=`${o.arrowSize}px`,q.height=`${o.arrowSize}px`,g.value==="top"?(q.left="50%",q.bottom="0",q.transform="translate(-50%, 50%)"):g.value==="top-start"?(q.left=`${o.arrowOffset+h.value}px`,q.bottom="0",q.transform="translate(-50%, 50%)"):g.value==="top-end"?(q.right=`${o.arrowOffset-h.value}px`,q.bottom="0",q.transform="translate(-50%, 50%)"):g.value==="right"?(q.left="0",q.top="50%",q.transform="translate(-50%, -50%)"):g.value==="right-start"?(q.left="0",q.top=`${o.arrowOffset}px`,q.transform="translate(-50%, 50%)"):g.value==="right-end"?(q.left="0",q.bottom=`-${o.arrowOffset}px`,q.transform="translate(-50%, 50%)"):g.value==="bottom"?(q.left="50%",q.top="0",q.transform="translate(-50%, -50%)"):g.value==="bottom-start"?(q.left=`${o.arrowOffset+h.value}px`,q.top="0",q.transform="translate(-50%, -50%)"):g.value==="bottom-end"?(q.right=`${o.arrowOffset-h.value}px`,q.top="0",q.transform="translate(-50%, -50%)"):g.value==="left"?(q.right="0",q.top="50%",q.transform="translate(50%, -50%)"):g.value==="left-start"?(q.right="0",q.top=`${o.arrowOffset}px`,q.transform="translate(50%, -50%)"):g.value==="left-end"&&(q.right="0",q.bottom=`-${o.arrowOffset}px`,q.transform="translate(50%, -50%)"),q):{display:"none"}}),x=()=>{const q={class:I.value,style:z.value};return t.h("div",q)},H=()=>{A.value===!1&&(S.value=!1)};return i({doLayout:m}),()=>{if(!S.value)return null;const q=[],Z=K();Z&&q.push(Z);const ee=[],j=V();if(j&&ee.push(j),r.default){const Y=r.default();ee.push(Y)}const P=x();P&&ee.push(P);const L={ref:y,class:E.value,style:D.value,onAnimationend:H},v=t.h("div",L,{default:()=>ee});return q.push(v),q}}}}const{componentName:yh,create:bh,scope:kh}=_("popover-dialog"),wl=bh(gh(yh,kh,!1));function Sh(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 Ch={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1},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 wh(e,n,a,o=!1){return{props:{...Ch},emits:["click"],setup(l,r){const i=t.ref(null),s=t.computed(()=>{const h={[`${e}`]:!0,"is-truncated":l.truncated};return l.type&&(h[`${e}--${l.type??"default"}`]=!0),l.size&&(h[`${e}--${l.size}`]=!0),h}),c=t.computed(()=>{const h={},C=l.textColor??l.color;return C&&(h.color=C),h}),u=(h,C)=>{let A=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const w=l.highlightFilter;if(h.indexOf(w)!==-1){const T=h.replace(new RegExp(w,"g"),`<span>${w}</span>`);C.innerHTML=T,C.class["is-highlight"]=!0,A=t.h(l.tag,C)}}else if(typeof l.highlightFilter=="function"){const w=l.highlightFilter(h);w&&(C.innerHTML=w,C.class["is-highlight"]=!0,A=t.h(l.tag,C))}return A},p=h=>{r.emit("click",h)};let d="";const g=()=>{const h=i.value;if(!h)return;const C=h.clientWidth;Sh(h,A=>{const w=h.innerHTML??"";ue(w)||A<C||(d?a?.show(h,w,{type:"text",id:d,showArrow:l.showArrow},!0):d=a?.show(h,w,{type:"text",showArrow:l.showArrow},!0)??"")})},S=()=>{d&&a?.hide(d)};let b=null;const y=h=>{b||(b=setTimeout(()=>{g(),b=null},l.showAfter??0))},k=h=>{b&&(clearTimeout(b),b=null),setTimeout(()=>{S()},l.hideAfter??0)},f=()=>{const h=i.value;h&&(h.addEventListener("mouseover",y),h.addEventListener("mouseleave",k))},m=()=>{const h=i.value;h&&(h.removeEventListener("mouseover",y),h.removeEventListener("mouseleave",k))};return t.onMounted(()=>{!be(l.showOverflowTooltip)||!a||f()}),t.onBeforeUnmount(()=>{!be(l.showOverflowTooltip)||!a||m()}),()=>{const h={onClick:p,class:s.value,style:c.value,ref:i};let C=null;if(be(l.numberFormat)&&typeof r.slots.default=="function"){const T=r.slots.default();if(Array.isArray(T)&&T.length===1){const $=T[0].type.toString();if($==="Symbol(Text)"||$==="Symbol(v-txt)"){const E=pe(l.digits),D=pe(l.decimalLength),M=be(l.autoPadding);let K=`${T[0].children}`,V=K.split("").reverse().join("");V=on(V,D,M,E,l.separator),K=V.split("").reverse().join(""),l.highlightFilter!==void 0&&(C=u(K,h)),C||(h.innerHTML=K,C=t.h(l.tag,h))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const T=r.slots.default();if(Array.isArray(T)&&T.length===1){const $=T[0].type.toString();if($==="Symbol(Text)"||$==="Symbol(v-txt)"){const E=`${T[0].children}`;C=u(E,h),C||(h.innerHTML=E,C=t.h(l.tag,h))}}}C||(C=t.h(l.tag,h,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return C;let w=null;if(l.icon){const T={[`${e}__mark-wrap`]:!0};l.type&&(T[`${e}__mark-wrap--${l.type}`]=!0);const $={},E=l.color;E&&($.color=E);const D={class:T,style:$};w=t.h("view",D,t.h(l.icon))}else if(r.slots.mark){const T={[`${e}__mark-wrap`]:!0};l.type&&(T[`${e}__mark-wrap--${l.type}`]=!0);const $={},E=l.color;E&&($.color=E);const D={class:T,style:$};w=t.h("view",D,{default:r.slots.mark})}else{const T={[`${e}__mark`]:!0};l.type&&(T[`${e}__mark--${l.type??"default"}`]=!0);const $={},E=l.color;E&&($["background-color"]=E);const D={class:T,style:$};w=t.h("view",D)}const N={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",N,[w,C])}}}}const{componentName:Nh,create:Bh,scope:Ah}=_("text"),Nl=Bh(wh(Nh,Ah,kt,!1));function Th(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[l]){let c=n;for(let u=0;c&&u<r.length;u++){let p=r[u],d=c.find(g=>g[o]===p);if(!d)break;i.push(d[a])}return i}if(Array.isArray(s))for(let c=0;c<n.length&&c<r.length;c++){let u=n[c],p=r[c];const d=u.find(g=>g[o]===p);if(!d)break;i.push(d[a])}else{let c=n;for(let u=0;c&&u<r.length;u++){let p=r[u],d=c.find(g=>g[o]===p);if(!d)break;i.push(d[a]),c=d[l]}}return i}class $h{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=_e(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function Vh(){const e=t.getCurrentInstance();return new $h(e.proxy)}const Eh={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 Dh(e,n,a=!1){return{props:{...Eh},setup(o,{attrs:l,slots:r}){const i=Vh(),s=t.ref([]);t.watch([()=>o.source,()=>o.params],async([p,d])=>{s.value=await i.load(o.sourceType,p,d)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let p=Th(o.modelValue,s.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)}),u=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(u,p,{default:()=>c.value}):t.h(u,p,c.value)}}}}const{componentName:Ih,create:xh,scope:vh}=_("mapping"),Bl=xh(Dh(Ih,vh,!1));function qh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return gr(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:p2,create:Ph,scope:h2}=_("domain-provider"),Al=Ph(qh()),Mh={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 Lh(e,n){return{inheritAttrs:!1,props:Mh,setup(a,{slots:o}){if(Ge&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const i=(g,S)=>{if(p===null){r.set(g,{visible:null,callback:S});return}l.has(g)&&p.unobserve(g),l.set(g,{visible:null,callback:S}),p.observe(g)},s=g=>{if(p===null){r.delete(g);return}l.has(g)&&(l.delete(g),p.unobserve(g))};let c=a.initialVisibleObserverSize;Qi({acquire:()=>{const g=c>0;return c--,g},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:i,unobserve:s});let p=null;const d=(g,S,b)=>{p=new IntersectionObserver(y=>{for(let k of y){let f=!1;k.intersectionRatio>0&&(f=!0);const m=l.get(k.target);if(m)try{if(a.loadPolicy==="lazy"&&!f&&m.visible!==null)return;m.visible=f,m.callback(f)}catch(h){console.error(h)}}},{root:g,rootMargin:S,threshold:b}),r.forEach((y,k)=>{l.set(k,y),p?.observe(k)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([g,S])=>{if(S||!g||p)return;let b=null;typeof g=="string"?b=document.querySelector(g):b=g,b&&d(b,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:g2,create:zh,scope:y2}=_("rolling-provider"),Tl=zh(Lh()),{componentName:Oh,create:Fh}=_("cell"),Rh=Fh({components:{Right:le.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.computed(()=>{const r=Oh;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:ge(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),Kh={key:0,class:"fox-cell__icon"},Uh={key:1,class:"fox-cell__title"},Hh={class:"title"},jh={class:"fox-cell__title-desc"};function Wh(e,n,a,o,l,r){const i=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",Kh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Uh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Hh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",jh,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(i,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const $l=ne(Rh,[["render",Wh]]),{componentName:Yh,create:Xh}=_("cell-group"),Qh=Xh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Yh]:!0}))}}}),Gh={key:1,class:"fox-cell-group__title"},Zh={key:3,class:"fox-cell-group__desc"},Jh={class:"fox-cell-group__wrap"};function _h(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",Gh,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",Zh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Jh,[t.renderSlot(e.$slots,"default")])],2)}const Vl=ne(Qh,[["render",_h]]),{componentName:eg,create:tg}=_("image"),ng=tg({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:le.Image,ImageError:le.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),o=t.computed(()=>{const S=eg;return{[S]:!0,[`${S}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),i=t.ref(null),s=()=>{const S={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(b=>{b.forEach(y=>{y.isIntersecting&&(r.value=!0,l.value.disconnect())})},S),i.value&&l.value.observe(i.value)};t.onMounted(()=>{e.lazyLoad&&s()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let S={};return e.width&&(S.width=ge(e.width)),e.height&&(S.height=ge(e.height)),e.radius!==void 0&&e.radius!==null&&(S.overflow="hidden",S.borderRadius=ge(e.radius)),S}),u=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,S=>{a.isError=!1,a.loading=!0});const p=()=>{a.loading=!1,n("load")},d=()=>{a.isError=!0,a.loading=!1,n("error")},g=S=>{n("click",S)};return{...t.toRefs(a),imageClick:g,classes:o,styles:u,stylebox:c,error:d,load:p,show:r,imgRef:i}}}),og=["src","date-src","alt"],lg={key:0,class:"fox-img-loading"},ag={key:1,class:"fox-img-error"};function rg(e,n,a,o,l,r){const i=t.resolveComponent("Image"),s=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,og),e.loading?(t.openBlock(),t.createElementBlock("div",lg,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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",ag,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,width:"16px",height:"20px",name:"imageError"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}const El=ne(ng,[["render",rg]]),{create:sg}=_("layout"),Dl=sg({}),{componentName:ig,create:cg}=_("col"),dg=cg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=ig,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 ug(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 Il=ne(dg,[["render",ug]]),{componentName:fg,create:mg}=_("row"),pg=mg({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=fg;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 cg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const El=te(ig,[["render",cg]]),{create:dg}=G("sticky"),ug=dg({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 u=e.container;if(!a.value&&!u)return;const m=qe(a),d=o.value,g=qe(d),S=qe(u);l.height=m.height;const b=()=>{let k=!1;if(e.position==="top")k=u?r.value>m.top&&S.bottom>0:r.value>m.top;else{const f=document.documentElement.clientHeight;k=u?S.bottom>0&&f-r.value-g.height>S.top:f-r.value<m.bottom}return k},y=()=>{if(u)if(e.position==="top"){const k=S.bottom-r.value-g.height;return k<0?k:0}else{const k=document.documentElement.clientHeight,f=S.bottom-(k-r.value);return f<0?f:0}return 0};l.transform=y(),l.fixed=b()};return t.watch(()=>l.fixed,u=>{n("change",u)}),t.onMounted(()=>{c(),cl(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{cl(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function fg(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 Rt=te(ug,[["render",fg]]),{componentName:mg,create:pg}=G("divider"),hg=pg({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=mg;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 gg(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 Dl=te(hg,[["render",gg]]);function yg(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 bg(e,n,a){const o=yg(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function kg(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=i=>{i.proxy&&(a.push(t.markRaw(i)),bg(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:xs}=G("grid"),vs=Symbol("grid"),Sg={props:{columnNum:{type:[Number,String],default:4},border:{type:Boolean,default:!0},gutter:{type:[Number,String],default:0},center:{type:Boolean,default:!0},square:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},direction:{type:String},clickable:{type:Boolean,default:!1}},setup(e,{slots:n}){kg(vs,`${xs}-item`)({props:e});const a=t.computed(()=>{const l=xs;return{[l]:!0,[`${l}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const l={};return e.gutter&&(l.paddingLeft=ge(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:Cg}=G("grid"),Il=Cg(Sg);function wg(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:Ng,componentName:qs}=G("grid-item"),Bg=Ng({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=wg(vs);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[qs]:!0})),s=t.computed(()=>{const u={flexBasis:`${100/+l.columnNum}%`};return l.square?u.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(u.paddingRight=ge(l.gutter),o.value>=l.columnNum&&(u.marginTop=ge(l.gutter))),u}),i=t.computed(()=>{const u=`${qs}__content`;return{[`${u}`]:!0,[`${u}--border`]:l.border,[`${u}--surround`]:l.border&&l.gutter,[`${u}--center`]:l.center,[`${u}--square`]:l.square,[`${u}--reverse`]:l.reverse,[`${u}--${l.direction}`]:!!l.direction,[`${u}--clickable`]:l.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:u=>{n("click",u)}}}}),Ag={class:"fox-grid-item__text"};function Tg(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",Ag,[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 xl=te(Bg,[["render",Tg]]),{componentName:Vg,create:$g}=G("navbar"),Eg=$g({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 u=t.ref();const m=t.computed(()=>{const k=Vg;return{[k]:!0,[`${k}--border`]:a.value,[`${k}--fixed`]:o.value,[`${k}--safe-area-inset-top`]:l.value}}),d=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{u.value=c?.value?.getBoundingClientRect().height,i.value.style.height=u.value+"px"})});function g(){n("on-click-back")}function S(){n("on-click-title")}function b(){n("on-click-icon")}function y(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:m,styles:d,handleLeft:g,handleCenter:S,handleCenterIcon:b,handleRight:y}}}),Dg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Ig={key:1,class:"fox-navbar__text"},xg={class:"fox-navbar__title"},vg={key:0,class:"fox-navbar__text"},qg={key:1,class:"fox-navbar__text"},Pg={class:"fox-navbar__title"},Mg={key:0,class:"fox-navbar__text"};function Lg(e,n,a,o,l,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Dg,[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",Ig,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[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",vg,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",qg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Pg,[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",Mg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const vl=te(Eg,[["render",Lg]]),zg=(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}=ie.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,g)=>{l("selected",{item:d,event:g}),c.value=d.id},current:c}}}),{componentName:Fg,create:Rg,scope:Og}=G("fixednav"),Kg=Rg(zg(Fg,Og,{[st.name]:st,Left:oe.Left})),Ug={class:"fox-fixednav__list"},Hg=["onClick"],jg=["src"],Wg={class:"span"},Yg={key:0,class:"b"},Xg={class:"text"};function Qg(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",Ug,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:m=>e.selected(c,m),key:c.id||u},[t.createElementVNode("img",{src:c.icon},null,8,jg),t.createElementVNode("view",Wg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Yg,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Hg))),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",Xg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const ql=te(Kg,[["render",Qg]]),{componentName:Gg,create:Zg}=G("menu"),Jg=Zg({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 k=t.reactive([]),f=t.reactive([]);return{children:k,linkChildren:h=>{const C=w=>{w.proxy&&(f.push(w),k.push(w.proxy))},A=w=>{if(w.proxy){let N=f.indexOf(w);N>-1&&f.splice(N,1);let T=k.indexOf(w.proxy);N>-1&&k.splice(T,1)}};t.provide("menuParent",Object.assign({removeLink:A,link:C,children:k,internalChildren:f},h))}}},{children:i,linkChildren:c}=s(),u=t.computed(()=>i.some(k=>k.state.showWrapper)),m=t.computed(()=>({[Gg]:!0,"scroll-fixed":r.value})),d=()=>{if(o.value){const k=qe(o);e.direction==="down"?l.value=k.bottom:l.value=window.innerHeight-k.top}};c({props:e,offset:l});const g=k=>{i.forEach((f,p)=>{p===k?(d(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},S=k=>Math.max(0,"scrollTop"in k?k.scrollTop:k.pageYOffset),b=()=>{const{scrollFixed:k}=e,f=S(window);r.value=f>(typeof k=="boolean"?30:Number(k))},y=k=>{let f="";const{titleClass:p}=e;return k&&(f+="active"),p&&(f+=` ${p}`),f};return t.onMounted(()=>{const{scrollFixed:k}=e;k&&window.addEventListener("scroll",b)}),t.onUnmounted(()=>{const{scrollFixed:k}=e;k&&window.removeEventListener("scroll",b)}),{toggleItem:g,children:i,opened:u,classes:m,barRef:o,getClasses:y}}}),_g=["onClick"],ey={class:"fox-menu__title-text"},ty={class:"fox-menu__title-icon"};function ny(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,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:m=>!c.disabled&&e.toggleItem(u),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",ey,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",ty,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,_g))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Pl=te(Jg,[["render",ny]]),{componentName:oy,create:ly}=G("menu-item"),ay=ly({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:{[me.name]:me,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 S=t.inject("menuParent",null);if(S){const b=t.getCurrentInstance(),{link:y,removeLink:k}=S;return y(b),t.onUnmounted(()=>{k(b)}),{parent:S}}},{parent:r}=l(),s=t.computed(()=>({[oy]:!0})),i=t.computed(()=>{const S={height:r.offset.value+"px"};return r.props.direction==="down"?S:{...S,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const S=e.options?.find(b=>b.value===e.modelValue);return S?S.text:""},state:o,parent:r,toggle:(S=!o.showPopup,b={})=>{S!==o.showPopup&&(o.showPopup=S,o.isShowPlaceholderElement=S,S&&(o.showWrapper=!0,n("open")))},onClick:S=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,S.value!==e.modelValue&&(n("update:modelValue",S.value),n("change",S.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),ry={class:"fox-menu-item__content fox-menu-item__overflow"},sy=["onClick"];function iy(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",ry,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:m=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps({ref_for:!0},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,sy))),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 Ml=te(ay,[["render",iy]]),{create:cy}=G("tabbar"),dy=cy({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 uy(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 Ll=te(dy,[["render",uy]]),{create:fy}=G("tabbar-item"),my=fy({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&&(u=>{if(u.proxy){let m=a.children.length;o.index=m;let d=Object.assign(u.proxy,{index:m});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}}}),py={class:"fox-tabbar-item_icon-box"},hy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},gy={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},yy={key:1,class:"fox-tabbar-item_icon-box_dot"},by={key:2},ky={key:0};function Sy(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",py,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",hy,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",gy,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",yy)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",by,[(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",ky,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const zl=te(my,[["render",Sy]]),{componentName:Cy,create:wy}=G("elevator"),Ny=wy({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const a=t.ref(null),o=t.reactive({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),l=t.computed(()=>({[Cy]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>a.value.clientHeight),i=(f,p)=>f.getAttribute("data-"+p),c=f=>{t.nextTick(()=>{!o.listGroup.includes(f)&&f!=null&&o.listGroup.push(f)})},u=()=>{let f=0;o.listHeight.push(f);for(let p=0;p<o.listGroup.length;p++){let h=o.listGroup[p];f+=Math.floor(h.clientHeight),o.listHeight.push(f)}},m=f=>{!f&&f!==0||(f<0&&(f=0),f>o.listHeight.length-2&&(f=o.listHeight.length-2),o.codeIndex=f,a.value.scrollTo(0,o.listHeight[f]))},d=f=>{o.scrollStart=!0;let p=i(f.target,"index"),h=f.touches[0];o.touchState.y1=h.pageY,o.anchorIndex=+p,o.codeIndex=+p,m(+p)},g=f=>{let p=f.touches[0];o.touchState.y2=p.pageY;let h=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+h,m(o.codeIndex)},S=()=>{o.scrollStart=!1},b=(f,p)=>{n.emit("click-item",f,p),o.currentData=p,o.currentKey=f},y=f=>{n.emit("click-index",f)},k=f=>{let h=f.target.scrollTop;const C=o.listHeight;o.scrollY=h;for(let A=0;A<C.length-1;A++){let w=C[A],N=C[A+1];if(o.scrollY>=w&&o.scrollY<N){o.currentIndex=A,o.diff=N-o.scrollY;return}}o.currentIndex=C.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",k)}),ve({scrollTo:m}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(u)}),t.watch(()=>o.diff,f=>{const p=o.listHeight;let h=f>0&&f<e.titleHeight?f-e.titleHeight:0;o.scrollY+s.value===p[p.length-1]&&h!==0&&(h=0),o.fixedTop!==h&&(o.fixedTop=h)}),t.watch(()=>o.currentIndex,f=>{n.emit("change",f)}),{classes:l,...t.toRefs(o),fixedStyle:r,clientHeight:s,setListGroup:c,listview:a,touchStart:d,touchMove:g,touchEnd:S,handleClickItem:b,handleClickIndex:y}}}),By={class:"fox-elevator__list__item__code"},Ay=["onClick"],Ty=["innerHTML"],Vy={class:"fox-elevator__fixed-title"},$y={class:"fox-elevator__bars__inner"},Ey=["data-index","onClick"];function Dy(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",By,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,Ty))],10,Ay))),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",Vy,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",$y,[(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,Ey))),128))])],32)],2)}const Ot=te(Ny,[["render",Dy]]),{componentName:mA,create:Iy,scope:xy}=G("pagination"),vy=Iy({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}=ie.useFoxI18n(xy),o=a(e,["prevText","nextText"]),{modelValue:l,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:g,totalItems:S,itemsPerPage:b}=t.toRefs(e),y=+g.value||Math.ceil(+S.value/+b.value);return Math.max(1,y)}),u=(g,S)=>{g>c.value||g<1||(g!=l.value&&n("update:modelValue",g),S&&n("change",g))},m=(g,S,b=!1)=>({number:g,text:S,active:b}),d=t.computed(()=>{if(r.value=="simple")return;let g=[];const S=c.value,b=+s.value;let y=1,k=S;const f=S>b;f&&(y=Math.max(l.value-Math.floor(b/2),1),k=y+b-1,k>S&&(k=S,y=k-b+1));for(var p=y;p<=k;p++){const h=m(p,p,l.value==p);g.push(h)}if(f&&b>0&&i.value){if(y>1){const h=m(y-1,"...");g.unshift(h)}if(k<S){const h=m(k+1,"...");g.push(h)}}return g});return t.watchEffect(()=>{u(l.value,!1)}),{...o,modelValue:l,select:u,countRef:c,mode:r,pages:d,forceEllipses:i}}}),qy={class:"fox-pagination"},Py={key:0,class:"fox-pagination-contain"},My=["onClick"],Ly={key:1,class:"fox-pagination-contain"},zy={class:"fox-pagination-simple"};function Fy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",qy,[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",Py,[(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,My))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Ly,[t.createElementVNode("view",zy,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 Fl=te(vy,[["render",Fy]]),Ry=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{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 u="";const m=(g,S)=>{let b=g;switch(e.direction=="horizontal"?(u=g>0?"right":"left",b=Math.abs(b)/r.value.width*100):(u=S>0?"bottom":"top",b=S,b=Math.abs(b)/r.value?.height*100),b>85&&(b=85),u){case"left":case"top":n.isEnd()&&(b=0,i.moving=!1);break;case"right":case"bottom":b=-b,n.isBegin()&&(b=0,i.moving=!1);break}i.offset=b};return{touchMethods:{onTouchStart(g){e.swipeable&&c.start(g)},onTouchMove(g){e.swipeable&&(c.move(g),i.moving=!0,m(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(g.preventDefault(),g.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(g.preventDefault(),g.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,u){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:l}};class Oy{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Ky}=G("tabs"),Uy=Ky({components:{[Rt.name]:Rt,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=E=>{E.forEach((D,q)=>{let R=D.type;if(R=R.name||R,R=="fox-tab-pane"){let $=new Oy;if(D.props?.title||D.props?.["pane-key"]||D.props?.paneKey){let I=lt(D.props?.["pane-key"]),M=I=="number"||I=="string"?String(D.props?.["pane-key"]):null,x=lt(D.props?.paneKey),H=x=="number"||x=="string"?String(D.props?.paneKey):null;$.title=D.props?.title,$.paneKey=M||H||String(q),$.disabled=D.props?.disabled}r.value.push($)}else{if(D.children==" ")return;Array.isArray(D.children)&&s(D.children)}})},i=t.ref(e.modelValue||0),c=E=>{let D=r.value.findIndex(q=>q.paneKey==E);r.value.length==0||D==-1||(i.value=D)},u=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),d=t.ref([]),g=E=>{const D=m.value,q=d.value;if(!D||!q||!q[i.value])return;const R=q[i.value];let $=0;e.direction==="vertical"?$=R.offsetTop-D.offsetTop+10-(D.offsetHeight-R.offsetHeight)/2:$=R.offsetLeft-(D.offsetWidth-R.offsetWidth)/2,S(D,$,.3,e.direction)},S=(E,D,q,R)=>{let $=0;const I=R==="horizontal"?E.scrollLeft:E.scrollTop,M=Math.round(q*1e3/16);function x(){R==="horizontal"?E.scrollLeft+=(D-I)/M:E.scrollTop+=(D-I)/M,++$<M&&Ue(x)}x()},b=(E=a.default?.())=>{r.value=[],E=E?.filter(D=>typeof D.children!="string"),E&&E.length&&s(E),c(e.modelValue),t.nextTick(()=>{g()})},y=E=>{l=E.fixed};t.watch(()=>a.default?.(),E=>{b(E)});const k=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,E=>{if(c(E),g(),l){let D=qe(o.value).top+k(),q=Math.ceil(D-e.top);window.scrollTo({top:q,behavior:"smooth"})}}),t.onMounted(b),t.onActivated(b);const f={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,f.updateValue(r.value[i.value])},prev:()=>{i.value-=1,f.updateValue(r.value[i.value])},updateValue:E=>{n("update:modelValue",E.paneKey),n("change",E)},tabChange:(E,D)=>{n("click",E),!(E.disabled||i.value==D)&&(i.value=D,f.updateValue(E))},setTabItemRef:(E,D)=>{d.value[D]=E}},{tabsContentRef:p,touchState:h,touchMethods:C}=Ry(e,f),A=t.computed(()=>{let E=i.value*100;h.moving&&(E+=h.offset);let D={transform:e.direction=="horizontal"?`translate3d(-${E}%, 0, 0)`:`translate3d( 0,-${E}%, 0)`,transitionDuration:h.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(D={}),D}),w=t.computed(()=>({background:e.background})),N=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),T=t.computed(()=>{if(!e.titleGutter)return{};const E=ge(e.titleGutter);return e.direction==="vertical"?{marginTop:E,marginBottom:E}:{marginLeft:E,marginRight:E}}),V=t.computed(()=>a.fixedTitle);return{navRef:m,tabsContentRef:p,titles:r,contentStyle:A,tabsNavStyle:w,titleStyle:T,tabsActiveStyle:N,container:o,getScrollY:u,onStickyScroll:y,...f,...C,hasFixedTitle:V}}}),Hy=["onClick"],jy={key:0,class:"fox-tabs__titles-fixed-item"},Wy=["onClick"],Yy={key:0,class:"fox-tabs__titles-fixed-item"};function Xy(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,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,u),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Hy))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",jy,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,u),key:c.paneKey,ref_for:!0,ref:m=>e.setTabItemRef(m,u)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Wy))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Yy,[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 Rl=te(Uy,[["render",Xy]]),{create:Qy}=G("tab-pane"),Gy=Qy({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 Zy(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 Ol=te(Gy,[["render",Zy]]),{componentName:Ps,create:Jy}=G("indicator"),_y=Jy({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=Ps;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Ps,padZero:at}}});function e0(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 Kl=te(_y,[["render",e0]]),{componentName:t0,create:n0}=G("side-navbar"),o0=n0({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(()=>({[t0]:!0})),l=(s,i=1)=>{for(let c=0;c<s.length;c++){let u=s[c];u?.children?.[0]&&(u.children[0].style.paddingLeft=+e.offset*i+"px",u.className.includes("fox-side-navbar-item")||l(Array.from(u.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}}}),l0={class:"fox-side-navbar__content"},a0={class:"fox-side-navbar__content__list",ref:"list"};function r0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",l0,[t.createElementVNode("view",a0,[t.renderSlot(e.$slots,"default")],512)])],2)}const Ul=te(o0,[["render",r0]]),{componentName:s0,create:i0}=G("side-navbar-item"),c0=i0({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[s0]:!0})),handleClick:()=>{n.emit("click")}})}),d0=["ikey"],u0={class:"fox-side-navbar-item__title"};function f0(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",u0,t.toDisplayString(e.title),1)],10,d0)}const Hl=te(c0,[["render",f0]]),{componentName:m0,create:p0}=G("sub-side-navbar"),h0=p0({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(()=>({[m0]:!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}}}),g0=["ikey"],y0={class:"fox-sub-side-navbar__title__text"},b0={class:"fox-sub-side-navbar__title__icon"};function k0(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",y0,t.toDisplayString(e.title),1),t.createElementVNode("span",b0,[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,g0)}const jl=te(h0,[["render",k0]]),{componentName:S0,create:C0}=G("range"),w0=C0({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const a=t.ref(0);let o,l;const r=t.ref(),s=t.ref(),i=_e(),c=t.computed(()=>{const{marks:$,max:I,min:M}=e;return Object.keys($).map(parseFloat).sort((U,_)=>U-_).filter(U=>U>=M&&U<=I)}),u=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const $=S0;return{[$]:!0,[`${$}-disabled`]:e.disabled,[`${$}-vertical`]:e.vertical,[`${$}-show-number`]:!e.hiddenRange}}),d=t.computed(()=>{const $="fox-range-container";return{[$]:!0,[`${$}-vertical`]:e.vertical}}),g=t.computed(()=>({background:e.inactiveColor})),S=t.computed(()=>({borderColor:e.buttonColor})),b=$=>!!e.range&&Array.isArray($),y=()=>{const{modelValue:$,min:I}=e;return b($)?`${($[1]-$[0])*100/u.value}%`:`${($-Number(I))*100/u.value}%`},k=()=>{const{modelValue:$,min:I}=e;return b($)?`${($[0]-Number(I))*100/u.value}%`:"0%"},f=t.computed(()=>e.vertical?{height:y(),top:k(),background:e.activeColor,transition:s.value?"none":void 0}:{width:y(),left:k(),background:e.activeColor,transition:s.value?"none":void 0}),p=$=>{const I="fox-range-mark",{modelValue:M,max:x,min:H}=e;let U=Number(H),_=Number(x);if(e.range){const[W,P]=M;U=W,_=P}else _=M;let ee=$<=_&&$>=U;return{[`${I}-text`]:!0,[`${I}-text-active`]:ee}},h=$=>{const{min:I,vertical:M}=e;let x={left:`${($-Number(I))/u.value*100}%`};return M&&(x={top:`${($-Number(I))/u.value*100}%`}),x},C=$=>{const{modelValue:I,max:M,min:x}=e;let H=Number(x),U=Number(M);if(e.range){const[W,P]=I;H=W,U=P}return{background:$<=U&&$>=H?e.activeColor:e.inactiveColor}},A=$=>{const{min:I,max:M,step:x}=e;return $=Math.max(+I,Math.min($,+M)),Math.round($/+x)*+x},w=($,I)=>JSON.stringify($)===JSON.stringify(I),N=$=>$[0]>$[1]?$.slice(0).reverse():$,T=($,I)=>{b($)?$=N($).map(A):$=A($),w($,e.modelValue)||n("update:modelValue",$),I&&!w($,o)&&n("change",$)},V=$=>{if(e.disabled)return;const{min:I,modelValue:M}=e,x=qe(r);let H=$.clientX-x.left,U=x.width;e.vertical&&(H=$.clientY-x.top,U=x.height);const _=Number(I)+H/U*u.value;if(b(M)){const[ee,W]=M,P=(ee+W)/2;_<=P?T([_,W],!0):T([ee,_],!0)}else T(_,!0)},E=$=>{e.disabled||(i.start($),l=e.modelValue,b(l)?o=l.map(A):o=A(l),s.value="start")},D=$=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move($),s.value="draging";const I=qe(r);let M=i.deltaX.value,x=I.width,H=M/x*u.value;e.vertical&&(M=i.deltaY.value,x=I.height,H=M/x*u.value),b(o)?l[a.value]=o[a.value]+H:l=o+H,T(l),$.stopPropagation(),$.preventDefault()},q=()=>{e.disabled||(s.value==="draging"&&(T(l,!0),n("drag-end")),s.value="")},R=$=>on(e.modelValue)&&typeof $=="number"?e.modelValue[$]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:g,buttonStyle:S,onClick:V,onTouchStart:E,onTouchMove:D,onTouchEnd:q,...t.toRefs(e),barStyle:f,curValue:R,buttonIndex:a,containerClasses:d,markClassName:p,marksStyle:h,marksList:c,tickStyle:C}}}),N0={key:0,class:"fox-range-min"},B0={key:0,class:"fox-range-mark"},A0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],T0={key:0,class:"number"},V0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],$0={key:0,class:"number"},E0={key:1,class:"fox-range-max"};function D0(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",N0,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",B0,[(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",T0,t.toDisplayString(e.curValue(s)),1))],4))],42,A0)),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",$0,t.toDisplayString(e.curValue()),1))],4))],40,V0))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",E0,t.toDisplayString(+e.max),1))],2)}const Kt=te(w0,[["render",D0]]),{create:I0,scope:x0}=G("short-password"),v0=I0({components:{[me.name]:me,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}=ie.useFoxI18n(x0),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>u(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")},u=d=>Math.min(Math.max(4,d),6);return{comLen:r,realInput:l,onTouchStart:i,range:u,close:c,onTips:()=>{n("tips")},show:s,...o}}}),q0={class:"fox-short-password-title"},P0={class:"fox-short-password-subtitle"},M0={class:"fox-short-password-wrapper"},L0={key:0,class:"fox-short-password__item-icon"},z0={class:"fox-short-password__message"},F0={class:"fox-short-password--error"},R0={key:0,class:"fox-short-password--forget"};function O0(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",q0,t.toDisplayString(e.title),1),t.createElementVNode("view",P0,t.toDisplayString(e.desc),1),t.createElementVNode("div",M0,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:u},[String(e.realInput).length>u?(t.openBlock(),t.createElementBlock("view",L0)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",z0,[t.createElementVNode("view",F0,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",R0,[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 Wl=te(v0,[["render",O0]]);class K0{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let U0=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 H0{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const Ms=(e,{args:n=[],done:a,canceled:o})=>{if(e){const l=e.apply(null,n);ut(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:j0}=G("progress"),W0=j0({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}}}),Y0={class:"fox-progress"},X0={key:0,class:"fox-progress-text"};function Q0(e,n,a,o,l,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",Y0,[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-outer",[e.showText&&!e.textInside?"fox-progress-outer-part":"",e.size?"fox-progress-"+e.size:""]]),ref:"progressOuter",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-inner",e.status=="active"?"fox-active":""]),style:t.normalizeStyle(e.bgStyle)},null,6),e.showText&&e.textInside&&!e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-progress-text fox-progress-insidetext",ref:"insideText",style:t.normalizeStyle({lineHeight:e.height,left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`,background:e.textBackground||e.strokeColor})},[t.createElementVNode("span",{style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)],4)):t.createCommentVNode("",!0),e.showText&&e.textInside&&e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:1,ref:"insideText",style:t.normalizeStyle({position:"absolute",top:"50%",left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`})},[t.renderSlot(e.$slots,"default")],4)):t.createCommentVNode("",!0)],6),e.showText&&!e.textInside?(t.openBlock(),t.createElementBlock("div",X0,[e.status=="active"||e.status==""?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)):e.status=="icon"?t.renderSlot(e.$slots,"icon-name",{key:1},()=>[t.createVNode(s,{width:"15px",height:"15px",color:"#439422"})]):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const Ut=te(W0,[["render",Q0]]),{componentName:G0,create:Z0,scope:J0}=G("uploader"),_0=Z0({components:{[Ut.name]:Ut,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}=ie.useFoxI18n(J0),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[G0]:!0})),s=()=>{let p={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(p.capture="camera"),t.h("input",p)},i=p=>{p.value=""},c=p=>{n("file-item-click",{fileItem:p})},u=(p,h)=>{const C=new K0;C.url=e.url,C.formData=p.formData,C.timeout=e.timeout*1,C.method=e.method,C.xhrState=e.xhrState,C.headers=e.headers,C.withCredentials=e.withCredentials,C.beforeXhrUpload=e.beforeXhrUpload;try{C.sourceFile=p.formData.get(e.name)}catch{}C.onStart=w=>{p.status="ready",p.message=a("readyUpload"),m(h),n("start",w)},C.onProgress=(w,N)=>{p.status="uploading",p.message=a("uploading"),p.percentage=(w.loaded/w.total*100).toFixed(0),n("progress",{event:w,option:N,percentage:p.percentage})},C.onSuccess=(w,N)=>{p.status="success",p.message=a("success"),n("success",{responseText:w,option:N,fileItem:p}),n("update:fileList",o)},C.onFailure=(w,N)=>{p.status="error",p.message=a("error"),n("failure",{responseText:w,option:N,fileItem:p})};let A=new U0(C);e.autoUpload?A.upload():l.push(new Promise((w,N)=>{w(A)}))},m=(p=-1)=>{p>-1?l.splice(p,1):(l=[],o.splice(0,o.length))},d=()=>{Promise.all(l).then(p=>{p.forEach(h=>h.upload())})},g=p=>{p.forEach((h,C)=>{const A=new FormData;for(const[N,T]of Object.entries(e.data))A.append(N,T);A.append(e.name,h);const w=t.reactive(new H0);if(w.name=h.name,w.status="ready",w.type=h.type,w.formData=A,w.message=a("waitingUpload"),u(w,C),e.isPreview&&h.type.includes("image")){const N=new FileReader;N.onload=T=>{w.url=T.target.result,o.push(w)},N.readAsDataURL(h)}else o.push(w)})},S=p=>{const h=e.maximum*1,C=e.maximize*1,A=new Array;p=p.filter(N=>N.size>C?(A.push(N),!1):!0),A.length&&n("oversize",A);let w=p.length+o.length;return w>h&&p.splice(p.length-(w-h)),p},b=(p,h)=>{o.splice(h,1),n("delete",{file:p,fileList:o,index:h})},y=(p,h)=>{m(h),Ms(e.beforeDelete,{args:[p,o],done:()=>b(p,h)})},k=p=>{if(e.disabled)return;const h=p.target;let{files:C}=h;e.beforeUpload?e.beforeUpload(C).then(A=>f(A)):f(C),n("change",{fileList:o,event:p}),e.clearInput&&i(h)},f=p=>{const h=S(new Array().slice.call(p));g(h)};return{onChange:k,onDelete:y,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:m,submit:d,renderInput:s}}}),eb={key:0,class:"fox-uploader__slot"},tb={key:0,class:"fox-uploader__preview-img"},nb={key:0,class:"fox-uploader__preview__progress"},ob={class:"fox-uploader__preview__progress__msg"},lb=["onClick"],ab=["onClick","src"],rb={key:3,class:"fox-uploader__preview-img__file"},sb=["onClick"],ib={class:"file__name_tips"},cb={class:"tips"},db={key:1,class:"fox-uploader__preview-list"},ub=["onClick"],fb={class:"file__name_tips"};function mb(e,n,a,o,l,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),u=t.resolveComponent("Del"),m=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",eb,[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,(g,S)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:g.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",tb,[g.status!="success"?(t.openBlock(),t.createElementBlock("view",nb,[g.status!="ready"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[g.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",ob,t.toDisplayString(g.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:b=>e.onDelete(g,S)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,lb)):t.createCommentVNode("",!0),g?.type?.includes("image")&&g.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:b=>e.fileItemClick(g),src:g.url},null,8,ab)):(t.openBlock(),t.createElementBlock("view",rb,[t.createElementVNode("view",{onClick:b=>e.fileItemClick(g),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",ib,t.toDisplayString(g.name),1)],8,sb)])),t.createElementVNode("view",cb,t.toDisplayString(g.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",db,[t.createElementVNode("view",{onClick:b=>e.fileItemClick(g),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[g.status]])},[t.createVNode(c,{class:"fox-uploader__preview-img__file__link"}),t.createElementVNode("view",fb,t.toDisplayString(g.name),1),e.isDeletable?(t.openBlock(),t.createBlock(u,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:b=>e.onDelete(g,S)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,ub),g.status=="uploading"?(t.openBlock(),t.createBlock(m,{key:0,size:"small",percentage:g.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 Yl=te(_0,[["render",mb]]),pb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4O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h5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:gb,scope:yb}=G("number-keyboard"),bb=gb({components:{[me.name]:me},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}=ie.useFoxI18n(yb),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:f}=e;let p={id:"lock",type:"lock"},h=Array.isArray(f)?f:[f];return h.length===1&&(p={id:h[0],type:"custom"}),[...c(),p,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const f=[];for(let p=1;p<=9;p++)f.push({id:p,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function u(){const f=c(),{customKey:p}=e;let h=Array.isArray(p)?p:[p];return h.length>2&&(h=[h[0],h[1]]),h.length==2&&e.title&&e.type!="rightColumn"&&(h=[h[0]]),h.length===1?e.title&&e.type!="rightColumn"?f.push({id:h[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:h[0],type:"custom"}):h.length===2&&f.push({id:h[0],type:"custom"},{id:0,type:"number"},{id:h[1],type:"custom"}),f}const m=t.computed(()=>e.type=="rightColumn"||e.title!=""?u():i()),d=()=>{e.visible&&n("blur")},g=f=>{const p=s.value;p&&!p.contains(f.target)&&d()};t.watch(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",g,!1):window.removeEventListener("touchstart",g,!1)});function S(f,p){p.stopPropagation(),l.value=f.id,(f.type=="number"||f.type=="custom")&&(n("input",f.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+f.id)),f.type=="lock"&&k(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function b(f){f.stopPropagation()}function y(f){f.preventDefault(),l.value=void 0}function k(){n("update:visible",!1),n("close")}return{...o,delImg:pb,lockImg:hb,clickKeyIndex:l,defaultKey:i,closeBoard:k,onTouchEnd:y,onTouchMove:b,onTouchstart:S,keysList:m,genCustomKeys:u,getBasicKeys:c,root:s,show:r}}}),kb={ref:"root"},Sb={class:"fox-number-keyboard"},Cb={key:0,class:"fox-number-keyboard__header"},wb={class:"fox-number-keyboard__title"},Nb={class:"fox-number-keyboard__body"},Bb={class:"fox-number-keyboard__keys"},Ab=["onTouchstart"],Tb=["src"],Vb=["src"],$b={key:0,class:"fox-number-keyboard__sidebar"},Eb={class:"fox-key__wrapper"},Db=["src"];function Ib(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",kb,[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",Sb,[e.title?(t.openBlock(),t.createElementBlock("div",Cb,[t.createElementVNode("h3",wb,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",Nb,[t.createElementVNode("div",Bb,[(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,Tb)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,Vb)):t.createCommentVNode("",!0)],42,Ab)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",$b,[t.createElementVNode("div",Eb,[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,Db)],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 Xl=te(bb,[["render",Ib]]),{componentName:xb,create:vb}=G("swipe"),qb=vb({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(()=>({[xb]:!0})),o=p=>p.value?.clientWidth||0,l=t.ref(),r=t.computed(()=>o(l)),s=t.ref(),i=t.computed(()=>o(s));let c=!1,u="",m="";const d=t.reactive({offset:0,moving:!1}),g=(p="")=>{c=!0,p&&(d.offset=p==="left"?-i.value:r.value),n("open",{name:e.name,position:u||p})},S=()=>{d.offset=0,c=!1,n("close",{name:e.name,position:u})},b=t.computed(()=>({transform:`translate3d(${d.offset}px, 0, 0)`})),y=p=>{u=p>0?"right":"left";let h=p;switch(u){case"left":c&&m===u?h=-i.value:h=Math.abs(p)>i.value?-i.value:p;break;case"right":c&&m===u?h=r.value:h=Math.abs(p)>r.value?r.value:p;break}d.offset=h},k=_e();return{classes:a,touchStyle:b,...{onTouchStart(p){e.disabled||k.start(p)},onTouchMove(p){e.disabled||(k.move(p),k.isHorizontal()&&(d.moving=!0,y(k.deltaX.value),e.touchMovePreventDefault&&p.preventDefault(),e.touchMoveStopPropagation&&p.stopPropagation()))},onTouchEnd(){if(d.moving)switch(d.moving=!1,m=u,u){case"left":Math.abs(d.offset)<=i.value/2?S():(d.offset=-i.value,g());break;case"right":Math.abs(d.offset)<=r.value/2?S():(d.offset=r.value,g());break}}},leftRef:l,rightRef:s,open:g,close:S}}}),Pb={class:"fox-swipe__left",ref:"leftRef"},Mb={class:"fox-swipe__content"},Lb={class:"fox-swipe__right",ref:"rightRef"};function zb(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",Pb,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",Mb,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Lb,[t.renderSlot(e.$slots,"right")],512)],38)}const Ht=te(qb,[["render",zb]]),{componentName:Fb,create:Rb}=G("action-sheet"),Ob=Rb({components:{[me.name]:me,Loading:oe.Loading},props:{...Re,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(()=>({[Fb]:!0}));return{slotDefault:a,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(c,u)=>{!c.disable&&!c.loading&&(n("choose",c,u),n("update:visible",!1))},close:c=>{n("close",c),n("update:visible",!1)},classes:o}}}),Kb={key:0,class:"fox-action-sheet__title"},Ub={key:1},Hb={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},jb={key:1,class:"fox-action-sheet__menu"},Wb=["onClick"],Yb={key:1},Xb={class:"fox-action-sheet__subdesc"};function Qb(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",Kb,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Ub,[e.description?(t.openBlock(),t.createElementBlock("view",Hb,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",jb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:t.normalizeStyle({color:e.isHighlight(c)||c.color}),key:u,onClick:m=>e.chooseItem(c,u)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",Yb,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",Xb,t.toDisplayString(c[e.optionSubTag]),1)],14,Wb))),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 Ql=te(Ob,[["render",Qb]]),{componentName:Gb,create:Zb}=G("backtop"),Gl=Zb({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(()=>({[Gb]:!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(b=0){o.scrollEl instanceof Window?window.scrollTo(0,b):o.scrollEl.scrollTop=b}function c(){let b=Qe(function y(){var k=e.duration-Math.max(0,o.startTime-+new Date+e.duration),f=k*-o.scrollTop/e.duration+o.scrollTop;i(f),b=Qe(y),(k==e.duration||f==0)&&Fa(b)})}function u(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function m(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function d(b){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",b)}function g(){S.value?o.scrollEl=S.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),u()}t.onMounted(()=>{e.distance==0&&(o.backTop=!0),g()}),t.onUnmounted(()=>{m()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,g())}),t.onDeactivated(()=>{o.keepAlive=!0,m()});const S=t.computed(()=>{if(typeof a.content=="function"){const b=a.content();return Array.isArray(b)?b[0]:b}return null});return()=>{const b=[];S.value&&b.push(S.value);const y=[];if(typeof a.default=="function")y.push(a.default());else{const f=t.h(oe.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});y.push(f)}const k=t.h("div",{class:l.value,style:r.value,onClick:d},y);return b.push(k),b}}}),{componentName:Jb,create:_b}=G("drag"),ek=_b({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(()=>({[Jb]:!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",Ue(()=>{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",Ue(()=>{s(d)})):d.style.left="0px"}function i(d,g){g-parseInt(d.style.left.split("px")[0])>10?(d.style.left=parseInt(d.style.left.split("px")[0])+10+"px",Ue(()=>{i(d,g)})):d.style.left=g+"px"}function c(d){d.preventDefault();const g=d.currentTarget;if(d.targetTouches.length===1){const S=d.targetTouches[0];o.nx=S.clientX-o.position.x,o.ny=S.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const b=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>b?o.xPum=b: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"&&(g.style.left=o.xPum+"px"),e.direction!="x"&&(g.style.top=o.yPum+"px")}}function u(d){const g=d.currentTarget;let b=d.changedTouches[0].clientX;const y=o.screenWidth-o.elWidth-o.boundary.right;b>y?b=y:b<o.boundary.left?b=o.boundary.left:b=b<o.screenWidth/2?o.boundary.left:y,e.direction!="y"&&e.attract&&(b<o.screenWidth/2?Ue(()=>{s(g)}):Ue(()=>{i(g,y)})),e.direction!="x"&&(g.style.top=o.yPum+"px")}function m(d){const g=d.currentTarget,S=d.touches[0],b=d.targetTouches[0];o.startTop=g.offsetTop,o.startLeft=g.offsetLeft,o.position.x=S.clientX,o.position.y=S.clientY,o.nx=b.clientX-o.position.x,o.ny=b.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny}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",m),d.value.removeEventListener("touchmove",c),d.value.removeEventListener("touchend",u)}),{classes:l,myDrag:a,touchStart:m,touchMove:c,touchEnd:u}}});function tk(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 Zl=te(ek,[["render",tk]]),nk={width:{type:[String,Number]},height:{type:[String,Number]},plain:{type:[Boolean]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},showClose:{type:Boolean,default:!1},closeIcon:{type:Object},content:{type:[String,Object]},showFooter:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},cancelButtonText:{type:String},cancelText:{type:String},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},confirmButtonText:{type:String},confirmText:{type:String},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},footerDirection:{type:String,default:"horizontal"},popClass:{type:String},popStyle:{type:Object},beforeClose:{type:Function}},ok=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function lk(e,n,a,o,l){return{props:{...Re,...nk},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:u}=ie.useFoxI18n(n),m=u(r,["confirmText","cancelText"]),d=e,g=t.ref(r.visible);t.watch(()=>r.visible,w=>{g.value!==w&&(g.value=w,w&&c("opened"))});const S=w=>{g.value=w,c("update:visible",w),c("update",w)},b=w=>{if(c(w),!(w==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const N=r.beforeClose(w);ut(N)?N.then(T=>{T&&(S(!1),c("closed",w))}):N===!0&&(S(!1),c("closed",w))}else S(!1),c("closed",w)},y=()=>{b("confirm")},k=()=>{b("cancel")},f=()=>{b("close")},p=(w,N)=>ok(w)?(N.src=w,t.h("img",N)):typeof w=="string"?(Array.isArray(N.class)?N.class.push(w):N.class&&typeof N.class=="object"?N[`${w}`]=!0:typeof N.class=="string"?N.class=`${N.class}, ${w}`:N.class=w,t.h(r.tag,N)):t.h(w,N),h=()=>{const w=[];if(i.header){const T=i.header();w.push(T)}else{if(r.title){const T=t.h("view",{class:`${d}__header-title`},[r.title]);w.push(T)}if(r.showClose){const T={class:[`${d}__header-close-icon`],onClick:f},V=r.closeIcon??l,E=p(V,T);w.push(E)}}if(w.length===0)return null;const N={class:[`${d}__header`]};return t.h("view",N,w)},C=()=>{const w=[];if(i.default)w.push(i.default());else{const T={class:[`${d}__content`]};if(r.textAlign&&T.class.push(r.textAlign),typeof r.content=="string"){T.innerHTML=r.content;const V=t.h("view",T);w.push(V)}else if(typeof r.content=="function"){const V=t.h("view",T,[r.content()]);w.push(V)}else{const V=t.h("view",T,[r.content]);w.push(V)}}if(w.length===0)return null;const N={class:[`${d}__body`]};return t.h("view",N,w)},A=()=>{if(!r.showFooter)return null;const w=[];if(i.footer)w.push(i.footer());else if(r.plain){if(r.showCancelButton){const T={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},onClick:k};r.cancelButtonClass&&T.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(T.style,r.cancleButtonStyle);const V=t.h("view",T,[r.cancelButtonText??m.cancelText.value]);w.push(V)}if(r.showConfirmButton){const T={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},onClick:y};r.confirmButtonClass&&T.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(T.style,r.confirmButtonStyle);const V=t.h("view",T,[r.confirmButtonText??m.confirmText.value]);w.push(V)}}else{if(r.showCancelButton){const T={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:k};r.cancelButtonClass&&T.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(T.style,r.cancleButtonStyle);const V=t.h(o,T,{default:()=>[r.cancelButtonText??m.cancelText.value]});w.push(V)}if(r.showConfirmButton){const T={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:y};r.confirmButtonClass&&T.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(T.style,r.confirmButtonStyle);const V=t.h(o,T,{default:()=>[r.confirmButtonText??m.confirmText.value]});w.push(V)}}if(w.length===0)return null;const N={class:[`${d}__footer`,`${d}__footer--${r.footerDirection}`]};return t.h("view",N,w)};return()=>{const w=[],N=h();N&&w.push(N);const T=C();T&&w.push(T);const V=A();V&&w.push(V);const E={class:{[`${d}`]:!0,[`${d}--plain`]:r.plain}},D=t.h("view",E,w),q=[`${d}__popup`];r.popClass&&q.push(r.popClass);const R={};r.width&&(R.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(R.height=typeof r.height=="number"?`${r.height}px`:r.height);const I={...Se(r,Re),popClass:q.join(" "),style:R,visible:g.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":S,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,I,{default:()=>D})}}}}const{componentName:ak,create:rk,scope:sk}=G("dialog"),Ls=rk(lk(ak,sk,me,ze,oe.Close));class ik{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 ck{options=new ik;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=u=>{if(u===!1){const m=document.querySelector(`#${s}`);m&&m.parentNode?.removeChild(m)}},a?.onOpened&&a?.onOpened(),()=>t.h(Ls,a)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const jt=function(e){return new ck(e)};jt.install=e=>{e.use(Ls),e.config.globalProperties.$dialog=jt};const dk={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}},uk=(e,n,a)=>({props:{...dk},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["pullingText","loosingText","loadingText"]),c=Uo(),u=t.ref(),m=Ns(u),d=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),g=t.computed(()=>({[e]:!0})),S=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""}}),b=t.computed(()=>({transitionDuration:`${o.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),y=t.computed(()=>{const N={};return o.headHeight!=50&&(N.height=ge(o.headHeight)),N}),k=N=>{const T=+(o.pullDistance||o.headHeight);let V=N;return N>T&&(N<T*2?V=(N+T)/2:V=T+N/4),Math.round(V)},f=(N,T)=>{const V=+(o.pullDistance||o.headHeight);d.distance=N,T?d.status="loading":N===0?d.status="normal":N<V?d.status="pulling":d.status="loosing",l("change",{status:d.status,distance:N})},p=()=>d.status!=="loading"&&d.status!=="complete",h=()=>m.value==window?Bs()==0:m.value&&m.value.scrollTop==0,C=N=>{p()&&(h()?(c.start(N),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},A=N=>{p()&&d.moving&&(c.move(N),c.isVertical()&&c.state.deltaY>0&&d.isPullRefresh&&(N.cancelable&&N.preventDefault(),f(k(c.state.deltaY))))},w=()=>{d.moving=!1,d.isPullRefresh&&p()&&c.state.deltaY&&(d.status==="loosing"?(f(+o.headHeight,!0),l("update:modelValue",!0),t.nextTick(()=>l("refresh"))):f(0)),setTimeout(()=>{c.reset()},0)};return t.watch(()=>o.modelValue,N=>{N?f(+o.headHeight,!0):f(0)}),()=>{const N=[];let T=null;if(d.status==="loading"){if(T=r?.loading?.()??null,!T){const M={class:["fox-pull-refresh-container-topbox-icon"]};T=t.h(a,M)}}else d.status==="pulling"?T=r?.pulling?.()??null:d.status==="loosing"&&(T=r?.loosing?.()??null);T&&N.push(T);const V={class:["fox-pull-refresh-container-topbox-text"]},E=t.h("dive",V,[S.value]);N.push(E);const D={class:["fox-pull-refresh-container-topbox"],style:y.value},q=t.h("div",D,N),R={class:"fox-pull-refresh-container",style:b.value},$=t.h("div",R,[q,r?.default?.()]),I={ref:u,class:g.value};return Ko()?Object.assign(I,{onTouchstart:C,onTouchmove:A,onTouchend:w}):Object.assign(I,{onMousedown:C,onMousemove:A,onMouseup:w}),t.h("div",I,[$])}}}),{componentName:fk,create:mk,scope:pk}=G("pull-refresh"),Jl=mk(uk(fk,pk,oe.Loading)),{create:hk}=G("notify"),gk=hk({components:{[me.name]:me},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,u=>{s.value=e.visible;const m=e.duration;u&&m&&(o=setTimeout(()=>{r()},m))},{immediate:!0});return{onAfterLeave:()=>{l(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:s}}});function yk(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 _l=te(gk,[["render",yk]]),ea={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let Tt=[],Wt=[];const zs=e=>{if(e){const n=document.getElementById(e);Wt=Wt.filter(a=>a.id!==e),Tt=Tt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Tt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Wt=[],Tt=[]},bk=e=>{const n=document.getElementById(e.id);if(n){const a=Wt.find(l=>l.id===e.id);a?e={...ea,...a,...e}:e={...ea,...e};const o=t.createVNode(_l,e);return t.render(o,n),o.component.data}},Yt=e=>{e.unmount=zs;let n;if(e.id){if(n=e.id,Tt.find(r=>r===e.id))return bk(e)}else n=new Date().getTime()+"";e={...ea,...e},e.id=n,Tt.push(e.id),Wt.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(_l,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},Xt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},ta={text(e,n={}){return Xt(e),Yt({...n,msg:e})},primary(e,n={}){return Xt(e),Yt({...n,msg:e,type:"primary"})},success(e,n={}){return Xt(e),Yt({...n,msg:e,type:"success"})},danger(e,n={}){return Xt(e),Yt({...n,msg:e,type:"danger"})},warn(e,n={}){return Xt(e),Yt({...n,msg:e,type:"warning"})},hide(){zs()},install(e){e.use(_l)}},{create:kk}=G("toast"),Sk=kk({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,S=>{S&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),u=()=>{const S=fe(e.iconSize);return t.h(e.icon,{width:S,height:S,color:e.iconColor})},m=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:u,hasIcon:c,toastBodyClass:m,toastIconWrapperClass:d,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Ck={key:1,class:"fox-toast-title"},wk=["innerHTML"];function Nk(e,n,a,o,l,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Ck,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,wk)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const na=te(Sk,[["render",Nk]]),oa={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 Vt=[],Qt=[];const Fs=e=>{if(e){const n=document.getElementById(e);Qt=Qt.filter(a=>a.id!==e),Vt=Vt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Vt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Qt=[],Vt=[]},Bk=e=>{const n=document.getElementById(e.id);if(n){const a=Qt.find(l=>l.id===e.id);a?e={...oa,...a,...e}:e={...oa,...e};const o=t.createVNode(na,e);return t.render(o,n),$t}},Gt=e=>{e.unmount=Fs;let n;if(e.id){if(n=e.id,Vt.find(l=>l===e.id))return Bk(e)}else n=new Date().getTime()+"";e={...oa,...e},e.id=n,Vt.push(e.id),Qt.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(na,e);return t.render(o,a),document.body.appendChild(a),$t},to=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},$t={text(e,n={}){return to(e),Gt({...n,type:"text",msg:e})},success(e,n={}){return to(e),Gt({icon:oe.Success,...n,msg:e,type:"success"})},fail(e,n={}){return to(e),Gt({icon:oe.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return to(e),Gt({icon:oe.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Gt({icon:oe.Loading,...n,msg:e,type:"loading"})},hide(e){Fs(e)},install(e){e.use(na),e.config.globalProperties.$toast=$t}},{componentName:pA,create:Ak}=G("audio"),Tk=Ak({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,[Kt.name]:Kt},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 y=["webkitVisibilityState","visibilitychange"];try{for(let k=0;k<y.length;k++)document.addEventListener(y[k],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(k){k.message}});const r=y=>{const k=o.value;e.autoplay&&k&&k.paused&&k.play(),l.second=k.duration,l.duration=b(k.duration),n("can-play",y)},s=y=>{l.currentTime=parseInt(y.target.currentTime)},i=()=>{l.currentTime>0&&l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},c=()=>{const y=o.value;l.playing?(y.pause(),l.handPlaying=!1):(y.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},u=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},m=y=>{l.currentDuration=b(y),l.percent=y/l.second*100},d=()=>{l.playing=!1,n("ended")},g=y=>{const k=o.value;k.currentTime=l.second*y/100,n("changeProgress",k.currentTime)},S=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},b=y=>{if(!y)return"00:00:00";let k=parseInt(y),f=Math.floor(k/3600),p=Math.floor((k-f*3600)/60),h=k-f*3600-p*60,C="";return C+=("0"+f.toString()).slice(-2)+":",C+=("0"+p.toString()).slice(-2)+":",C+=("0"+h.toString()).slice(-2),C};return t.watch(()=>l.currentTime,y=>{m(y)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:S,forward:u,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:i,forward:u,changeStatus:c,progressChange:g,audioEnd:d,onTimeupdate:s,handleMute:S,onCanplay:r,slots:a}}}),Vk={class:"fox-audio"},$k={key:0,class:"fox-audio__progress"},Ek={class:"fox-audio__time"},Dk={class:"fox-audio__bar"},Ik={class:"fox-audio__time"},xk={key:1,class:"fox-audio__icon"},vk=["controls","src","preload","autoplay","loop","muted"];function qk(e,n,a,o,l,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",Vk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",$k,[t.createElementVNode("div",Ek,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Dk,[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(()=>n[6]||(n[6]=[t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1)])),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Ik,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",xk,[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,vk)])}const la=te(Tk,[["render",qk]]),{componentName:hA,create:Pk,scope:Mk}=G("audio-operate"),Lk=Pk({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(Mk),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}}}),zk={class:"fox-audio-operate"};function Fk(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",zk,[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 aa=te(Lk,[["render",Fk]]),{componentName:Rk,create:Ok}=G("avatar"),Kk=Ok({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}),u=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const b=s?.avatarGroupRef?.value?.children;b&&S(b)});const m=t.computed(()=>({[Rk]:!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:u.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(u.maxIndex-u.index)}`:""})),g=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),S=b=>{u.maxIndex=b.length;for(let y=0;y<b.length;y++)b[y]&&b[y].classList&&b[y].classList[0]=="fox-avatar"&&b[y].setAttribute("data-index",y+1);u.index=i?.value?.dataset?.index,u.index==u.maxIndex&&u.index!=s?.props?.maxCount&&(u.showMax=!0)};return{classes:m,styles:d,maxStyles:g,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(u)}}});function Uk(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 Zt=te(Kk,[["render",Uk]]),{componentName:Hk,create:jk}=G("avatar-group"),Wk=jk({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(()=>({[Hk]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:l}),{classes:r,avatarGroupRef:o}}});function Yk(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 ra=te(Wk,[["render",Yk]]);var no=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(no||{});function Xk(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:Qk,create:Gk}=G("list"),Rs=document.documentElement.clientHeight||document.body.clientHeight||667,Zk=Gk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Rs},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,Rs)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),u=t.computed(()=>({[Qk]:!0})),m=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)`},g=()=>{r.cachePositions=[];for(let f=0;f<r.list.length;++f)r.cachePositions[f]={index:f,height:e.height,top:f*e.height,bottom:(f+1)*(e.height+e.margin),dValue:0}},S=()=>{let f=l.value.childNodes;f=Array.from(f).filter(N=>N.nodeType===1);const p=f[0];f.forEach((N,T)=>{if(!N)return;const V=qe(N),{height:E}=V,q=r.cachePositions[T+r.start].height-E;q&&(r.cachePositions[T+r.start].bottom-=q,r.cachePositions[T+r.start].height=E,r.cachePositions[T+r.start].dValue=q)});let h=0;p&&(h=r.start);const C=r.cachePositions.length;let A=r.cachePositions[h].dValue;r.cachePositions[h].dValue=0;for(let N=h+1;N<C;++N){const T=r.cachePositions[N];r.cachePositions[N].top=r.cachePositions[N-1].bottom,r.cachePositions[N].bottom=r.cachePositions[N].bottom-A,T.dValue!==0&&(A+=T.dValue,T.dValue=0)}const w=r.cachePositions[C-1].bottom;r.phantomHeight=w},b=(f=0)=>{let p=Xk(r.cachePositions,f,(C,A)=>{const w=C.bottom;return w===A?no.eq:w<A?no.lt:no.gt});return r.cachePositions[p].bottom<f&&(p+=1),p},y=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,a.value.scrollTop=0,g(),r.phantomHeight=e.height*r.list.length},k=()=>{const f=a.value?.scrollTop,{originStartIndex:p}=r,h=b(f);h!==p&&(r.originStartIndex=h,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&n("scroll-bottom")),n(f>r.scrollTop?"scroll-up":"scroll-down",f),r.scrollTop=f};return t.watch(()=>e.listData,f=>{if(r.list=f.slice(),r.list.length===f.length)g(),S();else{y();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&S()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:d,visibleData:m,classes:u,getContainerHeight:s,handleScrollEvent:k}}});function Jk(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 sa=te(Zk,[["render",Jk]]),{componentName:_k,create:eS}=G("circleprogress"),tS=eS({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(()=>({[_k]:!0})),r=t.computed(()=>{const m=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${m} 0 90 a 45 45 0 1, ${m} 0 -90`}),s=t.computed(()=>Ie(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let m=283,d=m*Number(e.progress)/100;return{stroke:Ie(e.color)?`url(#${o})`:e.color,strokeDasharray:`${d}px ${m}px`}}),c=t.computed(()=>({stroke:e.pathColor})),u=t.computed(()=>{if(!Ie(e.color))return;let m=e.color;const d=Object.keys(m).sort((S,b)=>parseFloat(S)-parseFloat(b));let g=[];return d.map((S,b)=>{let y={key:"",value:""};y.key=S,y.value=m[S],g.push(y)}),g});return{classes:l,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:u,slotDefault:a,refRandomId:o}}}),nS={viewBox:"0 0 100 100"},oS=["id"],lS=["offset","stop-color"],aS=["d","stroke-width"],rS=["d","stroke","stroke-linecap","stroke-width"],sS={class:"fox-circleprogress-text"},iS={key:0};function cS(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",nS,[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,lS))),128))],8,oS)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,aS),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,rS)])),t.createElementVNode("div",sS,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",iS,t.toDisplayString(e.progress)+"%",1))])],6)}const ia=te(tS,[["render",cS]]),{componentName:dS,create:uS}=G("noticebar"),fS=uS({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(()=>({[dS]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),u=t.computed(()=>{let N={};return e.color&&(N.color=e.color),e.background&&(N.background=e.background),e.direction=="vertical"&&(N.height=`${e.height}px`),N}),m=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 N={};if(e.complexAm)N={transform:`translateY(${r.distance}px)`};else if(r.animate){let T=~~(e.height/e.speed/4);N={transition:`all ${T==0?~~(e.height/e.speed):T}s`,"margin-top":`-${e.height}px`}}return N});t.watch(()=>e.text,N=>{g()}),t.watch(()=>e.list,N=>{r.scrollList=[...N]});const g=N=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const T=o.value.getBoundingClientRect().width,V=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?V>T:e.scrollable,r.isCanScroll?(r.wrapWidth=T,r.offsetWidth=V,r.duration=V/e.speed,r.animationClass="play"):r.animationClass=""},0)},S=N=>{n("click",N)},b=N=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",N)},y=N=>{r.firstRound=!1,n("across-end",N),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},k=()=>{f(),r.timer=setInterval(f,~~(e.height/e.speed/4*1e3)+e.standTime)},f=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},p=()=>{r.timer=setInterval(()=>{let N=100;for(let T=0;T<N;T++)h(T,!(T<N-1))},e.standTime+100*e.speed)},h=(N,T)=>{setTimeout(()=>{r.distance-=e.height/100,T&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},N*e.speed)},C=N=>{n("click",N)},A=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(a.default?w(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?p():k()},e.standTime)):g(e.text)}),t.watch(()=>a.default?a.default():[],N=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),w(N))});const w=N=>{N&&N.length>0&&(r.scrollList=N[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:u,contentStyle:m,horseLampStyle:d,wrap:o,content:l,handleClick:S,onClickIcon:b,onAnimationEnd:y,go:C,handleClickIcon:A,slots:a,toPxDesc:ge,wrapContentClass:c}}}),mS={key:0,class:"fox-noticebar__page-lefticon"},pS={ref:"wrap",class:"fox-noticebar__page-wrap"},hS={class:"showNotica"},gS=["onClick"];function yS(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]=(...u)=>e.handleClick&&e.handleClick(...u))},[e.showLeftIcon?(t.openBlock(),t.createElementBlock("view",mS,[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",pS,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u)),"on:webkitAnimationEnd":n[1]||(n[1]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=t.withModifiers((...u)=>e.onClickIcon&&e.onClickIcon(...u),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",hS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(u,m)=>(t.openBlock(),t.createBlock(c,{key:m,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:u},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(u,m)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:m,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:d=>e.go(u)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(u),1)])],12,gS))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=u=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const ca=te(fS,[["render",yS]]),bS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/x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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:gA,create:CS,scope:wS}=G("empty"),NS={empty:bS,error:kS,network:SS},BS=CS({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=ie.useFoxI18n(wS),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:NS[o.value];return{...a,imageUrl:i,imgStyle:r}}}),AS={class:"fox-empty"},TS=["src"],VS={key:1,class:"fox-empty-description"};function $S(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",AS,[t.createElementVNode("view",{class:"fox-empty-image",style:t.normalizeStyle(e.imgStyle)},[e.$slots.image?t.renderSlot(e.$slots,"image",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.imageUrl?(t.openBlock(),t.createElementBlock("img",{key:0,class:"img",src:e.imageUrl},null,8,TS)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",VS,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const da=te(BS,[["render",$S]]),{create:ES,scope:DS}=G("video"),IS=ES({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}=ie.useFoxI18n(DS),o=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),l=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,w=>{w.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,w=>{o.state.isMuted=w?w.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)),b(),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",g),o.videoElm.addEventListener("timeupdate",fn(d,1e3)))},i=()=>{const w=l.value,N=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=w,o.progressBar.progressElm=N,o.progressBar.pos=N.getBoundingClientRect(),o.videoSet.progress.width=Math.round(N.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return o.state.playing=!0,!1;if(o.state.playing=!o.state.playing,o.videoElm)if(o.state.playing)try{setTimeout(()=>{o.videoElm.play()},200),o.videoElm.addEventListener("progress",()=>{m()}),o.videoElm.addEventListener("timeupdate",fn(d,1e3)),o.videoElm.addEventListener("ended",g),n("play",o.videoElm)}catch{S()}else o.videoElm.pause(),n("pause",o.videoElm)},u=w=>{var N=Math.floor(w/3600);N<10&&(N="0"+N);var T=Math.floor(w%3600/60);T<10&&(T="0"+T);var V=Math.round(w%3600%60);V<10&&(V="0"+V);var E="";return N!=0?E=N+":"+T+":"+V:E=T+":"+V,E},m=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},d=()=>{const w=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*w),o.videoSet.totalTime=u(o.videoElm.duration),o.videoSet.displayTime=u(o.videoElm.currentTime),n("time",o.videoSet.displayTime,o.videoSet.totalTime)},g=()=>{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)},S=()=>{o.state.isError=!0},b=()=>{o.state.vol=e.options.volume},y=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},k=()=>{},f=w=>{let T=w.targetTouches[0].pageX-o.progressBar.pos.left;T<=0&&(T=0),T>=o.videoSet.progress.width&&(T=o.videoSet.progress.width),o.videoSet.progress.current=T;let V=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&h(V,o.videoElm.duration)},p=w=>{let T=w.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=T;let V=T/o.videoSet.progress.width;o.videoElm.duration&&h(V,o.videoElm.duration)},h=(w,N)=>{o.videoElm.currentTime=Math.floor(w*N)},C=()=>{o.state.isError=!1,s()},A=()=>{o.state.fullScreen?(o.state.fullScreen=!1,document.webkitCancelFullScreen()):(o.state.fullScreen=!0,o.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:l,...t.toRefs(e),...t.toRefs(o),handleError:S,isDisabled:r,play:c,handleMuted:y,touchSlidSrart:k,touchSlidMove:f,touchSlidEnd:p,retry:C,fullScreen:A,t:a}}}),xS={class:"fox-video",ref:"videocon"},vS=["muted","autoplay","loop","poster","controls","preload"],qS=["src","type"],PS={class:"fox-video-controller__now"},MS={class:"fox-video-controller__progress"},LS={class:"fox-video-controller__progress-value",ref:"progressBar"},zS={class:"fox-video-controller__played",ref:"playedBar"},FS={class:"fox-video-controller__total"},RS={class:"fox-video-error"},OS={class:"fox-video-error-tip"};function KS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",xS,[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,qS)],40,vS),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",PS,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",MS,[t.createElementVNode("div",LS,[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"]))},n[10]||(n[10]=[t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1)]),36),t.createElementVNode("div",zS,null,512)],512)]),t.createElementVNode("div",FS,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",RS,[t.createElementVNode("p",OS,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 Et=te(IS,[["render",KS]]),{create:US,componentName:HS}=G("steps"),ua=US({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=HS;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:jS,componentName:WS}=G("step"),YS=jS({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=WS;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:s,handleClickStep:i}}}),XS={class:"fox-step-head"},QS={class:"fox-step-icon-inner"},GS={key:1,class:"fox-step-inner"},ZS={class:"fox-step-main"},JS={class:"fox-step-title"},_S={key:0},e1={key:0,class:"fox-step-content"},t1=["innerHTML"];function n1(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",XS,[n[1]||(n[1]=t.createElementVNode("view",{class:"fox-step-line"},null,-1)),t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",QS,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",GS,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",ZS,[t.createElementVNode("view",JS,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",_S,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",e1,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,t1)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const fa=te(YS,[["render",n1]]),{create:o1,componentName:ma}=G("swiper"),l1=o1({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(()=>({[ma]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const x=ma;return{[`${x}-inner`]:!0,[`${x}-vertical`]:i.value}}),u=t.computed(()=>{const x=ma;return{[`${x}-pagination`]:!0,[`${x}-pagination-vertical`]:i.value}}),m=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),d=t.computed(()=>r.direction.value===e.direction),g=t.computed(()=>l.children.length),S=t.computed(()=>l[i.value?"height":"width"]),b=t.computed(()=>g.value*S.value),y=t.computed(()=>l.rect?(i.value?l.rect.height:l.rect.width)-S.value*g.value:0),k=t.computed(()=>(l.active+g.value)%g.value),f=()=>{let x=0;x=l.offset,l.style={transitionDuration:`${l.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${x}px)`,[i.value?"height":"width"]:`${S.value*g.value}px`,[i.value?"width":"height"]:`${i.value?l.width:l.height}px`}},p=x=>{let H=[];const U=l.childrenVNode.length;let _=a?.default?.();if(_=_.filter(ee=>ee.children&&Array.isArray(ee.children)),_.forEach(ee=>{H=H.concat(ee.children)}),!U)l.childrenVNode=H.slice(),x.proxy&&l.children.push(x.proxy);else if(U>H.length)l.children=l.children.filter(ee=>x.proxy!==ee);else if(U<H.length){for(let ee=0;ee<U;ee++)if(H[ee].key!==l.childrenVNode[ee].key){x.proxy&&l.children.splice(ee,0,x.proxy),x.vnode&&l.childrenVNode.splice(ee,0,x.vnode);break}U!==H.length&&(x.proxy&&l.children.push(x.proxy),x.vnode&&l.childrenVNode.push(x.vnode))}else l.childrenVNode=H.slice(),x.proxy&&l.children.push(x.proxy)},h=(x,H=0)=>{let U=x*S.value;e.loop||(U=Math.min(U,-y.value));let _=H-U;return e.loop||(_=je(_,y.value,0)),_},C=x=>{const{active:H}=l;return x?e.loop?je(H+x,-1,g.value):je(H+x,0,g.value-1):H},A=({pace:x=0,offset:H=0,isEmit:U=!1})=>{if(g.value<=1)return;const{active:_}=l,ee=C(x),W=h(ee,H);if(e.loop){if(l.children[0]&&W!==y.value){const P=W<y.value;l.children[0].setOffset(P?b.value:0)}if(l.children[g.value-1]&&W!==0){const P=W>0;l.children[g.value-1].setOffset(P?-b.value:0)}}l.active=ee,l.offset=W,U&&_!==l.active&&n("change",k.value),f()},w=()=>{l.moving=!0,l.active<=-1&&A({pace:g.value}),l.active>=g.value&&A({pace:-g.value})},N=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},T=x=>{w(),r.reset(),Qe(()=>{Qe(()=>{l.moving=!1,A({pace:x,isEmit:!0})})})},V=()=>{T(-1)},E=()=>{T(1)},D=x=>{w(),r.reset(),Qe(()=>{l.moving=!1;let H;e.loop&&g.value===x?H=l.active===0?0:x:H=x%g.value,A({pace:H-l.active,isEmit:!0})})},q=()=>{e.autoPlay<=0||g.value<=1||(N(),l.autoplayTimer=setTimeout(()=>{E(),q()},Number(e.autoPlay)))},R=(x=+e.initPage)=>{N(),l.rect=o.value.getBoundingClientRect(),x=Math.min(g.value-1,x),l.width=e.width?+e.width:l.rect.width,l.height=e.height?+e.height:l.rect.height,l.active=x,l.offset=h(l.active),l.moving=!0,f(),q()},$=x=>{e.isPreventDefault&&x.preventDefault(),e.isStopPropagation&&x.stopPropagation(),e.touchable&&(r.start(x),l.touchTime=Date.now(),N(),w())},I=x=>{e.touchable&&l.moving&&(r.move(x),d.value&&A({offset:m.value}))},M=x=>{if(!e.touchable||!l.moving)return;const H=m.value/(Date.now()-l.touchTime);if((Math.abs(H)>.3||Math.abs(m.value)>+(S.value/2).toFixed(2))&&d.value){let _=0;const ee=i.value?r.offsetY.value:r.offsetX.value;e.loop?_=ee>0?m.value>0?-1:1:0:_=-Math[m.value>0?"ceil":"floor"](m.value/S.value),A({pace:_,isEmit:!0})}else m.value&&A({pace:0});l.moving=!1,f(),q()};return t.provide("parent",{props:e,size:S,relation:p}),ve({prev:V,next:E,to:D}),t.onDeactivated(()=>{N()}),t.onBeforeUnmount(()=>{N()}),t.watch(()=>e.initPage,x=>{t.nextTick(()=>{R(Number(x))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{R()})}),t.watch(()=>e.autoPlay,x=>{x>0?q():N()}),{state:l,classes:s,classesInner:c,classesPagination:u,container:o,activePagination:k,onTouchStart:$,onTouchMove:I,onTouchEnd:M}}});function a1(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 Dt=te(l1,[["render",a1]]),{create:r1,componentName:s1}=G("swiper-item"),i1=r1({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[s1]:!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")}),ve({setOffset:s}),{style:r,classes:l}}});function c1(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 It=te(i1,[["render",c1]]),Os={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:d1}=G("image-preview-item"),u1=d1({props:{...Os,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:{[Et.name]:Et,[It.name]:It},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:V,rootHeight:E}=e,D=E/V;return a.imageRatio>D}),r=t.computed(()=>{const V=e.image;if(V&&V.src){const{scale:E,moveX:D,moveY:q,moving:R,zooming:$}=a,I={transitionDuration:$||R?"0s":".3s"};if(E!==1){const M=D/E,x=q/E;I.transform=`scale(${E}, ${E}) translate(${M}px, ${x}px)`}return I}return{}}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:V,rootHeight:E}=e,D=l.value?E/a.imageRatio:V;return Math.max(0,(a.scale*D-V)/2)}return 0}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:V,rootHeight:E}=e,D=l.value?E:V*a.imageRatio;return Math.max(0,(a.scale*D-E)/2)}return 0}),c=V=>{const{naturalWidth:E,naturalHeight:D}=V.target;a.imageRatio=D/E},u=()=>{m(1),a.moveX=0,a.moveY=0},m=V=>{V=je(V,+e.minZoom,+e.maxZoom+1),V!==a.scale&&(a.scale=V,n("scale",{scale:V,index:e.initNo}))},d=()=>{const V=a.scale>1?1:2;m(V),a.moveX=0,a.moveY=0},g=V=>Math.sqrt((V[0].clientX-V[1].clientX)**2+(V[0].clientY-V[1].clientY)**2);let S,b,y,k,f,p,h;const C=V=>{const{touches:E}=V,{offsetX:D}=o;o.start(V),h=E.length,S=a.moveX,b=a.moveY,p=Date.now(),a.moving=h===1&&a.scale!==1,a.zooming=h===2&&!D.value,a.zooming&&(y=a.scale,k=g(V.touches))},A=V=>{const{touches:E}=V;if(o.move(V),(a.moving||a.zooming)&&ko(V,!0),a.moving){const{deltaX:D,deltaY:q}=o,R=D.value+S,$=q.value+b;a.moveX=je(R,-s.value,s.value),a.moveY=je($,-i.value,i.value)}if(a.zooming&&E.length===2){const D=g(E),q=y*D/k;m(q)}},w=()=>{if(h==1&&e.video&&e.video.source||h>1)return;const{offsetX:V,offsetY:E}=o,D=Date.now()-p,q=250,R=5;V.value<R&&E.value<R&&D<q&&(f?(clearTimeout(f),f=null,d()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},q))},N=V=>{let E=!1;(a.moving||a.zooming)&&(E=!0,a.moving&&S===a.moveX&&b===a.moveY&&(E=!1),V.touches.length||(a.zooming&&(a.moveX=je(a.moveX,-s.value,s.value),a.moveY=je(a.moveY,-i.value,i.value),a.zooming=!1),a.moving=!1,S=0,b=0,y=1,a.scale<1&&u(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),ko(V,E),w(),o.reset()},T=()=>{n("close")};return t.watch(()=>e.initNo,u),t.watch(()=>e.show,V=>{V||u()}),{...t.toRefs(a),onTouchStart:C,onTouchMove:A,onTouchEnd:N,getDistance:g,imageStyle:r,imageLoad:c,closeSwiper:T}}}),f1=["src"];function m1(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,f1)):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 p1=te(u1,[["render",m1]]),{create:h1}=G("image-preview"),g1=h1({props:{...Os,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:p1,CircleClose:oe.CircleClose,[me.name]:me,[Dt.name]:Dt},setup(e,{emit:n}){const a=t.ref(),o=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),l=t.computed(()=>{const m="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${m}-right`:`${m}-left`}`}),r=t.computed(()=>on(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=m=>{m!==o.active&&(o.active=m,n("change",o.active))},i=()=>{Ms(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},u=()=>{if(a.value){const m=qe(a.value);o.rootHeight=m.height,o.rootWidth=m.width}};return t.watch(()=>e.show,m=>{o.showPop=m,m&&(s(e.initNo),u())}),t.watch(()=>e.initNo,m=>{m!=o.active&&s(m)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:a,...t.toRefs(o),onClose:i,mergeImages:r,setActive:s,iconClasses:l}}}),y1={class:"fox-image-preview",ref:"swipeRef"},b1={key:0,class:"fox-image-preview-index"};function k1(e,n,a,o,l,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),u=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(u,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=m=>e.showPop=m),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",y1,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(m,d)=>(t.openBlock(),t.createBlock(s,{key:d,video:d<e.videos.length?m:{},image:d>=e.videos.length?m:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",b1,t.toDisplayString(e.active+1)+" / "+t.toDisplayString(e.mergeImages.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.iconClasses),onClick:n[0]||(n[0]=(...m)=>e.onClose&&e.onClose(...m))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Ks=te(g1,[["render",k1]]);class S1{show=!1;images=[];videos=[];contentClose=!0;initNo=0;paginationVisible=!1;paginationColor="";autoplay=0;isWrapTeleport=!1;showIndex=!0;closeable=!1;closeIconPosition="top-right";beforeClose;maxZoom=3;minZoom=1/3;isLoop=!0;teleport="body"}class C1{options=new S1;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=Bi(a,{name:"image-preview",components:[me,Et,Dt,It,st],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(Ks,a))}})})}}const oo=e=>new C1(e);oo.install=e=>{e.use(Ks)};function w1(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{componentName:yA,create:N1}=G("countup"),B1=N1({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=T=>{T&&o.value.push(T)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:u}=t.reactive(e);t.watch(()=>e.customChangeNum,(T,V)=>{d(),k(0)}),t.watch(()=>e.machinePrizeLevel,(T,V)=>{r.prizeLevelTrun=T}),t.watch(()=>e.initNum,(T,V)=>{r.current=T,r.valFlag=!1,m()}),t.watch(()=>e.endNum,(T,V)=>{r.current=e.initNum,r.valFlag=!1,m()});const m=()=>{if(r.valFlag)return!1;s&&(i||c?u!="machine"&&k():(y(),setTimeout(()=>{r.valFlag=!0},300)))},d=()=>{clearInterval(Number(r.timer)),r.timer=null},g=(T,V,E)=>{const D=(T.toString().split(".")[1]||"").length,q=(V.toString().split(".")[1]||"").length,R=Math.pow(10,Math.max(D,q));return Number((T*R-V*R).toFixed(0))/R},S=T=>{let{num_total_len:V,pointNum:E,initDigit1:D,initDigit2:q,sortFlag:R}=r,$=R=="add"||R=="equal"?String(q)[T-(V-E)]:10-Number(String(q)[T-(V-E)]),I=R=="add"||R=="equal"?String(D)[T]:10-Number(String(D)[T]),M=T>V-E-1?-$*100+"%":T<=String(D).length-1?-I*100+"%":0;return M=="-1000%"&&(M=0),M},b=T=>{let{num_total_len:V,pointNum:E,initDigit1:D,initDigit2:q,sortFlag:R}=r,$=String(q)[T-(V-E)];return T>V-E-1?$||0:T<=String(D).length-1?String(D)[T]:0},y=()=>{let{endNum:T,initNum:V,speed:E,toFixed:D}=e,q=setInterval(()=>{if(V>T)if(r.current<=T||r.current<=E)r.current=T.toFixed(D),clearInterval(q),n("scroll-end"),r.valFlag=!1;else{let R=parseFloat(String(r.current))-parseFloat(String(E));r.current=R.toFixed(D)}else if(r.current>=T)r.current=T.toFixed(D),clearInterval(q),n("scroll-end"),r.valFlag=!1;else{let R=parseFloat(String(r.current))+parseFloat(String(E));r.current=R.toFixed(D)}},e.during)},k=T=>{let{initNum:V,endNum:E,toFixed:D,customBgImg:q}=e;q&&(V=e.customChangeNum);let R,$,I,M;V!=0?(D!=0&&(V=Number(V.toFixed(D))),String(V).indexOf(".")>-1?(R=String(V).split(".")[0].length,$=String(V).split(".")[1].length):(R=String(V).length,$=0)):(R=1,$=0),E!=0?(D!=0&&(E=Number(E.toFixed(D))),String(E).indexOf(".")>-1?(I=String(E).split(".")[0].length,M=String(E).split(".")[1].length):(I=String(E).length,M=0)):(I=1,M=0);let x=R>=I?R:I,H=$>=M?$:M;r.num_total_len=x+H,r.pointNum=H,V>E?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=g(V,E),r.numberVal=Number(String(V))):V<E?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=g(E,V),r.numberVal=Number(String(E))):r.sortFlag="equal";var U=1;for(let ee=0;ee<r.pointNum;ee++)U*=10;var _=r.numberVal*U;if(r.relNum=_,D!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(_).length),String(V).indexOf(".")>-1){let ee=String(V).split(".");r.initDigit1=Number(ee[0]),r.initDigit2=Number(ee[1])}else r.initDigit1=V,r.initDigit2=0;i&&!q?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let ee=o.value[r.num_total_len-1];f(ee)}):T!==0&&C()},f=T=>{d();var V=1;r.pointNum!=0&&(V=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{p(T),r.totalCount=g(r.totalCount,V),r.totalCount<=0&&(d(),n("scroll-end"),r.valFlag=!1)},e.during)},p=T=>{let V=T.getAttribute("turn-number"),E;if(r.sortFlag=="add"?E=parseInt(String(V))+1:E=parseInt(String(V))-1>=0?parseInt(String(V))-1:9,T.setAttribute("turn-number",String(E)),(T.style.transition=="none 0s ease 0s"||E==1||!T.style.transition)&&(T.style.transition=`all linear ${e.during}ms`),E==10||r.sortFlag=="reduce"&&E==0){var D=null;T.style.top=`-${r.sortFlag=="add"?E*100:(10-E)*100}%`,T.setAttribute("turn-number","0"),D=setTimeout(()=>{D&&clearTimeout(D),T.style.transition="none",T.style.top="0",h(T,E)},.975*e.during)}else T.style.top=`-${r.sortFlag=="add"?E*100:(10-E)*100}%`;T.style.top=="-100%"&&r.sortFlag=="reduce"&&p(T.previousSibling)},h=(T,V)=>{setTimeout(()=>{V==10&&T.previousSibling&&p(T.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 T=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(T)==-1&&r.notPrize.push(T)}};w1({machineLuck:()=>{const T=e.machineTurnMore<0?0:e.machineTurnMore;let V=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&A();for(let E=0;E<e.machineNum;E++)setTimeout(()=>{let D=V*(E+1+parseFloat(String(T)));r.prizeYPrev.length!=0&&(r.prizeY[E]=r.prizeYPrev[E]);let q=r.prizeYPrev[E]?r.prizeYPrev[E]:0,R=D+q+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(V-q);r.prizeLevelTrun<0&&(R+=e.numHeight*r.notPrize[E]),N(E,R,q)},500*E)}});const N=(T,V,E)=>{let D=setInterval(()=>{if(E<=V)E+=10,r.prizeY[T]=parseFloat(String(E));else if(clearInterval(D),D=null,r.finshMachine+=1,r.prizeY[T]=V,r.finshMachine==e.machineNum){let q=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach($=>{let I=$;for(;I>q;)I-=q;r.prizeYPrev.push(I)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{m()})}),t.onUnmounted(()=>{d(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:S,turnNumber:b}}}),A1={class:"fox-countup"},T1=["turn-number"];function V1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",A1,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__machine",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+u,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,T1))),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 pa=te(B1,[["render",V1]]),$1=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:E1,create:D1}=G("countdown"),I1=D1({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(()=>({[E1]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-$1(e.startTime),o.counting||(o.counting=!0),i()},i=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const S=Date.now()-o.diffTime,b=Math.max(o.handleEndTime-S,0);o.restTime=b,b||(o.counting=!1,d(),n("on-end")),b>0&&i()}}))},c=(S,b)=>{const y=S;let k={d:0,h:0,m:0,s:0,ms:0};const f=1e3,p=60*f,h=60*p,C=24*h;return y>0&&(k.d=y>=f?Math.floor(y/C):0,k.h=Math.floor(y%C/h),k.m=Math.floor(y%h/p),k.s=Math.floor(y%p/f),k.ms=Math.floor(y%f)),b=="custom"?k:u({...k})},u=S=>{let{d:b,h:y,m:k,s:f,ms:p}=S,h=e.format;if(h.includes("DD")?h=h.replace("DD",at(b)):y+=Number(b)*24,h.includes("HH")?h=h.replace("HH",at(y)):k+=Number(y)*60,h.includes("mm")?h=h.replace("mm",at(k)):f+=Number(k)*60,h.includes("ss")?h=h.replace("ss",at(f)):p+=Number(f)*1e3,h.includes("S")){const C=at(p,3).toString();h.includes("SSS")?h=h.replace("SSS",C):h.includes("SS")?h=h.replace("SS",C.slice(0,2)):h.includes("S")&&(h=h.replace("SS",C.slice(0,1)))}return h},m=()=>{!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)},g=()=>{e.autoStart||(d(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():o.restTime=e.time}),t.watch(()=>o.restTime,S=>{let b=c(S,"custom");n("update:modelValue",b),n("input",b)}),t.watch(()=>e.paused,(S,b)=>{b?(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,S=>{s()}),t.watch(()=>e.startTime,S=>{s()}),{...t.toRefs(e),slots:a,classes:l,start:m,pause:d,renderTime:r,reset:g}}}),x1=["innerHTML"];function v1(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,x1))],2)}const ha=te(I1,[["render",v1]]),{create:q1}=G("badge"),P1=q1({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}}}),M1={class:"fox-badge"},L1=["textContent"];function z1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",M1,[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,L1),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const ga=te(P1,[["render",z1]]),{componentName:F1,create:R1}=G("tag"),O1=R1({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=F1;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 K1(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 Jt=te(O1,[["render",K1]]),{create:U1}=G("popover"),H1=U1({components:{FoxPopup:me},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 p="fox-popover-arrow",h=e.location,C=h.split("-")[0];return`${p} ${p}-${C} ${p}--${h}`}),c=t.computed(()=>{const p={},{bgColor:h,arrowOffset:C,location:A}=e,w=A.split("-")[0],N=A.split("-")[1],T=16;return h&&(p[`border${u(w)}Color`]=h),e.arrowOffset!=0&&(["bottom","top"].includes(w)&&(N||(p.left=`calc(50% + ${C}px)`),N=="start"&&(p.left=`${T+C}px`),N=="end"&&(p.right=`${T-C}px`)),["left","right"].includes(w)&&(N||(p.top=`calc(50% - ${C}px)`),N=="start"&&(p.top=`${T-C}px`),N=="end"&&(p.bottom=`${T+C}px`))),p}),u=p=>(p=p.toLowerCase(),p=p.replace(/\b\w+\b/g,h=>h.substring(0,1).toUpperCase()+h.substring(1)),p),m=t.computed(()=>{let p={};if(!r.value||!s.value)return{};const h=s.value.width,C=s.value.height,{width:A,height:w,left:N,top:T}=r.value,{location:V,offset:E}=e,D=V.split("-")[0],q=V.split("-")[1];let R=0,$=0;if(on(E)&&E.length==2&&(R+=Number(E[1]),$+=Number(E[0])),A){if(["bottom","top"].includes(D)){const I=D=="bottom"?w+R:-(C+R);p.top=`${T+I}px`,q||(p.left=`${-(h-A)/2+N+$}px`),q=="start"&&(p.left=`${N+$}px`),q=="end"&&(p.left=`${r.value.right+$}px`)}if(["left","right"].includes(D)){const I=D=="left"?-(h+R):A+R;p.left=`${N+I}px`,q||(p.top=`${T-C/2+w/2-4+$}px`),q=="start"&&(p.top=`${T+$}px`),q=="end"&&(p.top=`${T+w+$}px`)}}return p}),d=t.computed(()=>{const p={};return e.bgColor&&(p.background=e.bgColor),p}),g=()=>{let p=qe(a.value);e.targetId&&(p=qe(document.querySelector(`#${e.targetId}`))),r.value=p,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{g()},200)}),t.watch(()=>e.visible,p=>{l.value=p,p?(window.addEventListener("touchstart",f,!0),g()):window.removeEventListener("touchstart",f,!0)});const S=p=>{n("update",p),n("update:visible",p)},b=()=>{S(!e.visible),n("open")},y=()=>{n("update:visible",!1),n("close")},k=(p,h)=>{!p.disabled&&n("choose",p,h),e.closeOnClickAction&&y()},f=p=>{const h=a.value,C=o.value;let A=h&&!h.contains(p.target);if(e.targetId){const w=document.querySelector(`#${e.targetId}`);A=w&&!w.contains(p.target)}A&&C&&!C.contains(p.target)&&e.closeOnClickOutside&&y()};return{showPopup:l,openPopover:b,popoverArrow:i,closePopover:y,chooseItem:k,popoverRef:a,popoverContentRef:o,getRootPosition:m,customStyle:d,popoverArrowStyle:c,renderIcon:kr}}}),j1={ref:"popoverContentRef",class:"fox-popover-content-group"},W1=["onClick"],Y1={class:"fox-popover-menu-item-name"};function X1(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",j1,[e.showArrow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.popoverArrowStyle)},null,6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(u=>e.chooseItem(i,c),["stop"])},[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",Y1,t.toDisplayString(i.name),1)],10,W1))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const _t=te(H1,[["render",X1]]),Q1=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:G1}=G("skeleton"),Z1=G1(Q1({[Zt.name]:Zt})),J1={key:0},_1={key:1,class:"fox-skeleton"},eC={key:0,class:"fox-skeleton-animation"},tC={class:"fox-skeleton-content"};function nC(e,n,a,o,l,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",_1,[e.animated?(t.openBlock(),t.createElementBlock("view",eC)):t.createCommentVNode("",!0),t.createElementVNode("view",tC,[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",J1,[t.renderSlot(e.$slots,"default")]))}const ya=te(Z1,[["render",nC]]),{create:oC,componentName:lC}=G("collapse"),aC=oC({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(()=>({[lC]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,u,m=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,u,m)},s=c=>{if(e.accordion)o.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(o.value))if(o.value.includes(c)){const u=o.value.filter(m=>m!==c);r(u,c,!1)}else{const u=o.value.concat([c]);r(u,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?o.value===c:Array.isArray(o.value)?o.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:a,classes:l}}});function rC(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 ba=te(aC,[["render",rC]]),{create:sC,componentName:iC}=G("collapse-item"),cC=sC({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 g=iC;return{[g]:!0,[g+"__border"]:e.border}}),s=t.computed(()=>l?l.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},u=()=>{s.value&&(i.value="auto")},m=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const g=a.value?.offsetHeight;i.value=g?`${g}px`:"auto"})})},d=()=>{const g=a.value?.offsetHeight;i.value=g?`${g}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,g=>{g?m():d()}),{classes:r,renderIcon:kr,wrapperRef:n,contentRef:a,open:m,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:u}}}),dC={class:"fox-collapse-item__title-main"},uC={class:"fox-collapse-item__title-main-value"},fC=["innerHTML"],mC={key:2,class:"fox-collapse-item__title-label"},pC={key:0,class:"fox-collapse-item__title-sub"},hC=["innerHTML"],gC={key:0,class:"fox-collapse__item-extraWrapper"},yC={class:"fox-collapse__item-extraWrapper__extraRender"},bC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function kC(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",dC,[t.createElementVNode("view",uC,[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,fC)),e.label?(t.openBlock(),t.createElementBlock("view",mC,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",pC,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,hC)),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",gC,[t.createElementVNode("div",yC,[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",bC,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const ka=te(cC,[["render",kC]]),SC=t.defineComponent({setup(e){return()=>t.h("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}}),{componentName:CC,create:wC,scope:NC}=G("table"),BC=wC({components:{RenderColumn:SC,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}=ie.useFoxI18n(NC),l=t.reactive({curData:e.data}),r=t.computed(()=>({[CC]:!0})),s=S=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${S.align?S.align:""}`]:!0}),i=S=>S.stylehead?S.stylehead:"",c=S=>S.stylecolumn?S.stylecolumn:"",u=S=>e.columns.filter(b=>b.key===S)[0],m=S=>{const b=e.columns.filter(y=>y.key===S);return b[0].stylecolumn?b[0].stylecolumn:""},d=S=>{S.sorter&&(n("sorter",S),l.curData=typeof S.sorter=="function"?l.curData.sort(S.sorter):S.sorter==="default"?l.curData.sort():l.curData)},g=()=>e.columns.map(S=>[S.key,S.render]);return t.watch(()=>e.data,S=>{l.curData=S.slice()}),{...t.toRefs(l),classes:r,cellClasses:s,getColumnItem:u,getColumnItemStyle:m,handleSorterClick:d,sortDataItem:g,t:o,stylehead:i,stylecolumn:c}}}),AC={class:"fox-table__main__head"},TC={class:"fox-table__main__head__tr"},VC=["onClick"],$C={class:"fox-table__main__body"},EC={key:1},DC={key:0,class:"fox-table__nodata"},IC={key:0,class:"fox-table__nodata__text"},xC={key:1,class:"fox-table__summary"},vC=["innerHTML"];function qC(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",AC,[t.createElementVNode("view",TC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:u=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,VC))),128))])]),t.createElementVNode("view",$C,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([u,m])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(u))]),key:u,style:t.normalizeStyle(e.getColumnItemStyle(u))},[typeof c[u]=="function"||typeof m=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[m,c[u]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",EC,t.toDisplayString(c[u]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",DC,[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",IC,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",xC,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,vC)])):t.createCommentVNode("",!0)],2)}const Sa=te(BC,[["render",qC]]),{componentName:PC,create:MC}=G("ellipsis"),LC=MC({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(()=>({[PC]:!0}));t.watch(()=>e.content,(y,k)=>{y!=k&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!a.value)return;const y=window.getComputedStyle(a.value);o=document.createElement("div"),Array.prototype.slice.apply(y).forEach(p=>{o.style.setProperty(p,y.getPropertyValue(p))}),o.style.position="fixed",o.style.left="999999px",o.style.top="999999px",o.style.zIndex="-1000",o.style.height="auto",o.style.minHeight="auto",o.style.maxHeight="auto",o.style.textOverflow="clip",o.style.whiteSpace="normal",o.style.webkitLineClamp="unset",o.style.display="block";const f=g(y.lineHeight==="normal"?e.lineHeight:y.lineHeight);l=Math.floor(f*(Number(e.rows)+.5)+g(y.paddingTop)+g(y.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),u()},u=()=>{if(o.offsetHeight<=l)s.exceeded=!1,document.body.removeChild(o);else{s.exceeded=!0;const y=e.content.length,k=Math.floor((0+y)/2),f=e.direction==="middle"?d([0,k],[k,y]):m(0,y);r.value=f,document.body.removeChild(o)}},m=(y,k)=>{const f=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(k-y<=1)return e.direction==="end"?{leading:e.content.slice(0,y)+e.symbol}:{tailing:e.symbol+e.content.slice(k,p)};const h=Math.round((y+k)/2);return e.direction==="end"?o.innerText=e.content.slice(0,h)+e.symbol+f:o.innerText=f+e.symbol+e.content.slice(h,p),o.offsetHeight<=l?e.direction==="end"?m(h,k):m(y,h):e.direction==="end"?m(y,h):m(h,k)},d=(y,k)=>{const f=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(y[1]-y[0]<=1&&k[1]-k[0]<=1)return{leading:e.content.slice(0,y[0])+e.symbol,tailing:e.symbol+e.content.slice(k[1],p)};const h=Math.floor((y[0]+y[1])/2),C=Math.ceil((k[0]+k[1])/2);return o.innerText=e.content.slice(0,h)+e.symbol+f+e.symbol+e.content.slice(C,p),o.offsetHeight<=l?d([h,y[1]],[k[0],C]):d([y[0],h],[C,k[1]])},g=y=>{if(!y)return 0;const k=y.match(/^\d*(\.\d*)?/);return k?Number(k[0]):0},S=y=>{y==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},b=()=>{n("click")};return{...t.toRefs(s),root:a,ellipsis:r,classes:i,clickHandle:S,handleClick:b}}}),zC={key:0},FC={key:1},RC={key:2};function OC(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",zC,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",FC,[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",RC,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:n[1]||(n[1]=t.withModifiers(s=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const Ca=te(LC,[["render",OC]]),{componentName:KC,create:UC}=G("animate"),HC=UC({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:a,loop:o,action:l}=t.toRefs(e),r=t.reactive({clicked:!1});let s=t.computed(()=>({"fox-animate__container":!0,[`${KC}-${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}}}),jC={class:"fox-animate"};function WC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",jC,[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 wa=te(HC,[["render",WC]]),{componentName:YC,create:XC}=G("watermark"),QC=XC({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:u,imageWidth:m,imageHeight:d,content:g,fontStyle:S,fontWeight:b,fontColor:y,fontSize:k,fontFamily:f}=e,p=()=>{const C=document.createElement("canvas"),A=window.devicePixelRatio,w=C.getContext("2d"),N=`${(l+s)*A}px`,T=`${(r+i)*A}px`,V=s*A,E=i*A;if(C.setAttribute("width",N),C.setAttribute("height",T),w){if(u){w.translate(V/2,E/2),w.rotate(Math.PI/180*Number(c));const D=new Image;D.crossOrigin="anonymous",D.referrerPolicy="no-referrer",D.src=u,D.onload=()=>{w.drawImage(D,-m*A/2,-d*A/2,m*A,d*A),w.restore(),a.base64Url=C.toDataURL()}}else if(g){w.textBaseline="middle",w.textAlign="center",w.translate(V/2,E/2),w.rotate(Math.PI/180*Number(c));const D=Number(k)*A;w.font=`${S} normal ${b} ${D}px/${E}px ${f}`,w.fillStyle=y,w.fillText(g,0,0),w.restore(),a.base64Url=C.toDataURL()}}else throw new Error("当前环境不支持Canvas")};p(),t.watch(()=>[o,l,r,s,i,c,u,m,d,g,S,b,y,k,f],()=>{p()});const h=t.computed(()=>{const C=YC;return{[C]:!0,[`${C}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:h}}});function GC(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 Na=te(QC,[["render",GC]]);function ZC(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:JC,create:_C}=G("trend-arrow"),ew=_C({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(()=>({[JC]:!0})),o=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;n.rateTrend=r>0;const u=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${ZC(Number(u),s)}%`}),l=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:u}=e;return{color:u===0?c:i?n.rateTrend?s:r:c}});return{...t.toRefs(n),classes:a,calcRate:o,calcStyle:l}}});function tw(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 Ba=te(ew,[["render",tw]]),{create:nw}=G("tour"),ow=nw({components:{[_t.name]:_t,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:m,maskWidth:d,maskHeight:g}=e,{width:S,height:b,left:y,top:k}=o.value,f=[y+S/2,k+b/2],p=Number(d||S),h=Number(g||b);return{width:`${p+ +m[1]*2}px`,height:`${h+ +m[0]*2}px`,top:`${f[1]-h/2-+m[0]}px`,left:`${f[0]-p/2-+m[1]}px`}}),s=m=>{m=="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 m=document.querySelector(`#${e.steps[a.active].target}`),d=qe(m);o.value=d},c=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},u=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{a.active=0,i()}),t.watch(()=>e.modelValue,m=>{m&&i(),a.active=0,a.showTour=m,a.showPopup=m}),{...t.toRefs(a),classes:l,maskStyle:r,changeStep:s,close:c,handleClickMask:u}}}),lw={key:0,class:"fox-tour-content"},aw={key:0,class:"fox-tour-content-top"},rw={class:"fox-tour-content-inner"},sw={class:"fox-tour-content-bottom"},iw={class:"fox-tour-content-bottom-init"},cw={class:"fox-tour-content-bottom-operate"},dw={key:1,class:"fox-tour-content fox-tour-content-tile"},uw={class:"fox-tour-content-inner"};function fw(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,u)=>(t.openBlock(),t.createElementBlock("div",{key:u,style:{height:"0"}},[u==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=m=>e.showPopup=m),location:c.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:c.popoverOffset||[0,12],arrowOffset:c.arrowOffset||0},{content:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",lw,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",aw,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",rw,t.toDisplayString(c.content),1),t.createElementVNode("div",sw,[t.createElementVNode("div",iw,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",cw,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:n[2]||(n[2]=m=>e.changeStep("prev"))},t.toDisplayString(e.prevStepTxt),1)):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[3]||(n[3]=(...m)=>e.close&&e.close(...m))},t.toDisplayString(e.completeTxt),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[4]||(n[4]=m=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",dw,[t.createElementVNode("div",uw,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const Aa=te(ow,[["render",fw]]),{componentName:bA,create:mw,scope:pw}=G("address"),hw=mw({components:{Location:oe.Location,Location2:oe.Location2,Check:oe.Check,Close:oe.Close,Left:oe.Left,[me.name]:me,[Ot.name]:Ot},inheritAttrs:!1,props:{...Re,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}=ie.useFoxI18n(pw),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),u=t.ref(["province","city","country","town"]),m=t.ref(null),d=t.ref([0,0,0,0]),g=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),S=I=>{if(!Array.isArray(I))throw new TypeError("params muse be array.");if(!I.length)return[];I.forEach(x=>{if(!x.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const M=[];return I=I.sort((x,H)=>x.title.localeCompare(H.title)),I.forEach(x=>{const H=M.findIndex(U=>U.title===x.title);H<=-1?M.push({title:x.title,list:[].concat(x)}):M[H].list.push(x)}),M};let b=t.ref([]),y=t.reactive({});const k=t.ref("self"),f=t.ref(20),p=()=>{const I=e.modelValue,M=I.length;if(M>0){if(i.value=M-1,g.value.length==0){i.value=0;return}for(let x=0;x<M;x++){let H=[];switch(x){case 0:H=e.province;break;case 1:H=e.city;break;case 2:H=e.country;break;default:H=e.town}b.value[x]=H.filter(U=>U.id==I[x])[0]}C()}},h=(I,M)=>I&&I.name||i.value<M&&I?I.name:e.columnsPlaceholder[M]||a("select"),C=()=>{N(),t.nextTick(()=>{const I=l.value&&l.value.getElementsByClassName("active")[0];if(I){const M=I.offsetLeft;f.value=M||20}})},A=I=>{const M=i.value;c.value=i.value;const x={custom:u.value[M]};b.value[M]=I;for(let H=M+2;H<4;H++)b.value.splice(H,1);M<3?(i.value=M+1,C(),x.next=u.value[i.value],x.value=I,n("change",x)):(E(),n("update:modelValue"))},w=(I,M)=>{c.value=i.value,h(I,M)&&(i.value=M,C())},N=()=>{const I=m.value,M=c.value,x=d.value[i.value];I?.scrollTop&&(d.value[M]=I?.scrollTop),t.nextTick(()=>{I?.scrollTo({top:x,behavior:"auto"})})},T=I=>{const M=e.existAddress;let x={};M.forEach(H=>{H&&H.selectedAddress&&(x=H),H.selectedAddress=!1}),I.selectedAddress=!0,y=I,n("selected",x,I,M),E()},V=()=>{b.value=[],i.value=0,C()},E=(I="self")=>{k.value=I=="cross"?"cross":"self",r.value=!1},D=()=>{k.value="mask"},q=()=>{const I={addressIdStr:"",addressStr:"",province:b.value[0],city:b.value[1],country:b.value[2],town:b.value[3]},M={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(x=>{const H=b.value[x];I.addressIdStr+=`${x?"_":""}${H&&H.id||0}`,I.addressStr+=H&&H.name||""}),M.data=I):M.data=y,V(),k.value=="self"?n("close",M):n("close-mask",{closeWay:k}),n("update:visible",!1)},R=()=>{const I=s.value;s.value=I=="exist"?"custom":"exist",V(),n("switch-module",{type:s.value})},$=(I,M)=>{A(M)};return t.watch(()=>e.visible,I=>{r.value=I}),t.watch(()=>r.value,I=>{I&&p()}),{showPopup:r,privateType:s,tabIndex:i,tabName:u,selectedRegion:b,switchModule:R,closeWay:k,close:q,getTabName:h,nextAreaList:A,regionLine:o,tabRegion:l,lineDistance:f,changeRegionTab:w,selectedExist:T,clickOverlay:D,handClose:E,handleElevatorItem:$,initCustomSelected:p,...t.toRefs(e),t:a,regionList:g,transformData:S,scrollDom:m}}}),gw={class:"fox-address"},yw={class:"fox-address__header"},bw={class:"fox-address__header__title"},kw={key:0,class:"fox-address__custom"},Sw={class:"fox-address__region",ref:"tabRegion"},Cw=["onClick"],ww={key:0,class:"active fox-address__region-item"},Nw={key:0,class:"fox-address__detail"},Bw={class:"fox-address__detail-list",ref:"scrollDom"},Aw=["onClick"],Tw={key:1,class:"fox-address__elevator-group"},Vw={key:1,class:"fox-address__exist"},$w={class:"fox-address__exist-group"},Ew={class:"fox-address__exist-group-list"},Dw=["onClick"],Iw={class:"fox-address__exist-item-info"},xw={key:0,class:"fox-address__exist-item-info-name"},vw={key:1,class:"fox-address__exist-item-info-phone"},qw={class:"fox-address__exist-item-info-bottom"},Pw={class:"fox-address__exist-choose-btn"};function Mw(e,n,a,o,l,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),u=t.resolveComponent("fox-elevator"),m=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]=g=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=g=>e.showPopup=g),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",gw,[t.createElementVNode("view",yw,[t.createElementVNode("view",{class:"fox-address__header-back",onClick:n[0]||(n[0]=(...g)=>e.switchModule&&e.switchModule(...g))},[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",bw,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]=g=>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",kw,[t.createElementVNode("view",Sw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(g,S)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",S==e.tabIndex?"active":""]),key:S,onClick:b=>e.changeRegionTab(g,S)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(g,S)),1)],10,Cw))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",ww,[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",Nw,[t.createElementVNode("ul",Bw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(g,S)=>(t.openBlock(),t.createElementBlock("li",{key:S,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==g.id?"active":""]),onClick:b=>e.nextAreaList(g)},[t.createElementVNode("div",null,[e.selectedRegion[e.tabIndex]?.id==g.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(g.name),1)])],10,Aw))),128))],512)])):(t.openBlock(),t.createElementBlock("view",Tw,[t.createVNode(u,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",Vw,[t.createElementVNode("div",$w,[t.createElementVNode("ul",Ew,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(g,S)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",g.selectedAddress?"active":""]),key:S,onClick:b=>e.selectedExist(g)},[g.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(m,{class:"fox-address-select-icon",size:"13px"})]),g.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",Iw,[g.name?(t.openBlock(),t.createElementBlock("div",xw,t.toDisplayString(g.name),1)):t.createCommentVNode("",!0),g.phone?(t.openBlock(),t.createElementBlock("div",vw,t.toDisplayString(g.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",qw,[t.createElementVNode("view",null,t.toDisplayString(g.provinceName+g.cityName+g.countyName+g.townName+g.addressDetail),1)])])],10,Dw))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:n[2]||(n[2]=(...g)=>e.switchModule&&e.switchModule(...g))},[t.createElementVNode("div",Pw,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 Ta=te(hw,[["render",Mw]]),{componentName:Lw,create:zw}=G("barrage"),Fw=zw({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(()=>({[Lw]:!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),u=t.ref(e.top),m=t.ref(0),d=e.speeds,g=t.ref(0);t.onMounted(()=>{S(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(y(),m.value=0,b("hidden")):document.visibilityState==="visible"&&S()})}),t.onUnmounted(()=>{i.value=[],y()});const S=()=>{g.value=l.value.offsetWidth,a&&b("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${g.value}px`),f()},300)},b=h=>{let A=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const w=[];A&&Array.from(A).forEach(N=>{h=="init"?(N.style.opacity="0",w.push(N)):(N.classList="",N.style={})}),h=="init"&&(i.value=w)},y=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,h=>{e.danmu.length>0&&(i.value=[...h])});const k=h=>{const C=m.value%i.value.length;!e.loop&&m.value===i.value.length?i.value.splice(i.value.length,0,h):i.value.splice(C,0,h)},f=()=>{y(),s=setTimeout(()=>{p()},e.frequency)},p=()=>{const h=e.loop?m.value%i.value.length:m.value;let C=document.createElement("view");a&&typeof i.value[h]=="object"?(C=i.value[h],C?.classList?.add("fox-barrage__item")):(C.innerHTML=i.value[h],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=h%c.value*(A+u.value)+20+"px",C.style.opacity="1",!a){const w=C.offsetWidth;C.style.width=w+20+"px"}C.addEventListener("animationend",()=>{a?C.classList.remove("move"):r.value.removeChild(C)}),!(!e.loop&&m.value>=i.value.length-1)&&(m.value++,m.value>=i.value.length&&(m.value=0),C.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:o,danmuList:i,dmBody:l,dmContainer:r,add:k}}});function Rw(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 Va=te(Fw,[["render",Rw]]),{componentName:Ow,create:Kw,scope:Uw}=G("signature"),Hw=Kw({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:{[ze.name]:ze},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:a}=ie.useFoxI18n(Uw),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),s=t.computed(()=>({[Ow]:!0,[`${e.customClass}`]:e.customClass})),i=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let p=document.createElement("canvas");return!!(p.getContext&&p.getContext("2d"))},u=()=>{l.value.addEventListener(i.events[0],m,!1)},m=p=>{p.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(i.events[1],d,!1),l.value.addEventListener(i.events[2],g,!1),l.value.addEventListener(i.events[3],S,!1)},d=p=>{p.preventDefault();let h=i.isSupportTouch?p.touches[0]:p;n("signing",h);let C=l.value.getBoundingClientRect(),A=h.clientX-C.left,w=h.clientY-C.top;i.ctx.lineTo(A,w),i.ctx.stroke()},g=p=>{p.preventDefault(),n("end"),l.value.removeEventListener(i.events[1],d,!1),l.value.removeEventListener(i.events[2],g,!1)},S=p=>{p.preventDefault(),l.value.removeEventListener(i.events[1],d,!1),l.value.removeEventListener(i.events[2],g,!1)},b=()=>{l.value.addEventListener(i.events[2],g,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},y=()=>{f(l.value)},k=p=>{if(!p)return!0;var h=document.createElement("canvas");return h.width=p.width,h.height=p.height,p?.toDataURL()==h.toDataURL()},f=p=>{let h;switch(e.type){case"png":h=p.toDataURL("image/png");break;case"jpg":h=p.toDataURL("image/jpeg",.8);break}const C=k(p)?"请绘制签名":p,A=k(p)?"":h;n("confirm",C,A)};return t.onMounted(()=>{c()&&(i.ctx=l.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,u())}),{...o,...t.toRefs(i),canvas:l,wrap:r,isCanvasSupported:c,confirm:y,clear:b,classes:s}}}),jw={class:"fox-signature-inner",ref:"wrap"},Ww=["height","width"],Yw={key:0,class:"fox-signature-unsopport"};function Xw(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",jw,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,Ww),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",Yw,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 $a=te(Hw,[["render",Xw]]),{componentName:Qw,create:Gw,scope:Zw}=G("time-select"),Jw=Gw({components:{[me.name]:me},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}=ie.useFoxI18n(Zw),o=t.computed(()=>({[Qw]:!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}}}),_w={class:"fox-time-select__title"},eN={class:"fox-time-select__title__fixed"},tN={key:0},nN={class:"fox-time-select__content"},oN={class:"fox-time-select__content__pannel"},lN={class:"fox-time-select__content__detail"};function aN(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",_w,[t.createElementVNode("view",eN,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",tN,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",nN,[t.createElementVNode("view",oN,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",lN,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Ea=te(Jw,[["render",aN]]),{componentName:rN,create:sN}=G("time-pannel"),iN=sN({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(()=>({[rN]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function cN(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 Da=te(iN,[["render",cN]]),{componentName:dN,create:uN}=G("time-detail"),fN=uN({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(()=>({[dN]:!0})),s=u=>{let m=l.currentTime.find(d=>d.key==l.currentKey);if(m)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":m.list.filter(d=>d===u).length>0}},i=t.computed(()=>e.times.find(u=>u.key==l.currentKey).list),c=u=>{n.emit("select",u)};return{classes:r,...t.toRefs(l),getClass:s,renderData:i,handleTime:c}}}),mN={class:"fox-time-detail__detail fox-time-detail__detail--moring"},pN={class:"fox-time-detail__detail__list"},hN=["onClick"];function gN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",mN,[t.createElementVNode("view",pN,[(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,hN))),128))])])],2)}const Ia=te(fN,[["render",gN]]),{componentName:kA,create:yN,scope:bN}=G("sku-header"),kN=yN({props:{goods:{type:Object,default:{}}},emits:[],components:{[Je.name]:Je},setup(e,{emit:n,slots:a}){const{t:o}=ie.useFoxI18n(bN);return{getSlots:r=>a[r],t:o}}}),SN={class:"fox-sku-header"},CN=["src"],wN={class:"fox-sku-header-right"},NN={key:3,class:"fox-sku-header-right-extra"};function BN(e,n,a,o,l,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",SN,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,CN),t.createElementVNode("view",wN,[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",NN,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const AN=te(kN,[["render",BN]]),{componentName:SA,create:TN}=G("sku-select"),VN=TN({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})}}}}),$N={class:"fox-sku-select"},EN={class:"fox-sku-select-item-title"},DN={class:"fox-sku-select-item-skus"},IN=["onClick"];function xN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",$N,[(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",EN,t.toDisplayString(s.name),1),t.createElementVNode("view",DN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:m=>e.changeSaleChild(c,u,s,i),key:c.name},t.toDisplayString(c.name),11,IN))),128))])]))),128))])}const vN=te(VN,[["render",xN]]),{componentName:CA,create:qN}=G("sku-stepper"),PN=qN({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:{[et.name]:et},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,u)=>{n("overLimit",{action:u,value:parseInt(a.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&<(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),MN={class:"fox-sku-stepper"},LN={class:"fox-sku-stepper-title"},zN=["innerHTML"],FN={class:"fox-sku-stepper-count"};function RN(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",MN,[t.createElementVNode("view",LN,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,zN),t.createElementVNode("view",FN,[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 ON=te(PN,[["render",RN]]),{componentName:wA,create:KN}=G("sku-operate"),UN=KN({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]}}}),HN={key:0,class:"fox-sku-operate"},jN={key:0,class:"fox-sku-operate-desc"},WN={key:1,class:"fox-sku-operate-btn"},YN=["onClick"];function XN(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",HN,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",jN,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",WN,[(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,YN))),128))]))])):t.createCommentVNode("",!0)}const QN=te(UN,[["render",XN]]),{componentName:NA,create:GN,scope:ZN}=G("sku"),JN=GN({props:{...Re,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:AN,SkuSelect:vN,SkuStepper:ON,SkuOperate:QN,[me.name]:me},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=ie.useFoxI18n(ZN),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,k=>{r.value=k}),t.watch(()=>r.value,k=>{k==!1&&y()}),t.onMounted(()=>{});const i=k=>a[k],c=k=>{n("select-sku",k)},u=k=>{s.value=k,n("change-stepper",k)},m=k=>{n("add",k)},d=k=>{n("reduce",k)},g=k=>{n("over-limit",k)},S=k=>{n("click-btn-operate",{type:k,value:s.value})},b=k=>{k=="icon"&&n("click-close-icon"),k=="overlay"&&n("click-overlay"),k=="close"&&n("close"),r.value=!1},y=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:b,selectSku:c,changeStepper:u,stepperOverLimit:g,clickBtnOperate:S,add:m,reduce:d,getSlots:i,...l}}}),_N={class:"fox-sku"},eB={class:"fox-sku-content"};function tB(e,n,a,o,l,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),u=t.resolveComponent("sku-operate"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=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",_N,[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",eB,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(u,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const xa=te(JN,[["render",tB]]),{create:nB}=G("card"),oB=nB({components:{[Je.name]:Je,[Jt.name]:Jt},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]}}}),lB={class:"fox-card"},aB={class:"fox-card__left"},rB=["src"],sB={class:"fox-card__right"},iB={class:"fox-card__right__title"},cB={key:0,class:"fox-card__right__price"},dB={class:"fox-card__right__other"},uB={class:"fox-card__right__shop"},fB={class:"fox-card__right__shop__name"};function mB(e,n,a,o,l,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",lB,[t.createElementVNode("div",aB,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,rB)]),t.createElementVNode("div",sB,[t.createElementVNode("div",iB,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",cB,[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",dB,[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",uB,[t.createElementVNode("div",fB,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const va=te(oB,[["render",mB]]),{create:pB,scope:hB}=G("ecard"),gB=pB({components:{[et.name]:et},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}=ie.useFoxI18n(hB),o=t.ref(null),l=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(g,S)=>{o.value=S,s.value=e.cardAmountMin,l.value=g.price,n("change",g),n("update:modelValue",g.price)},u=g=>{let b=g.target.value.replace(/[^\d]/g,"");r.value=b,l.value=b,Number(b)>e.cardAmountMax&&(r.value=e.cardAmountMax,l.value=e.cardAmountMax),Number(b)<e.cardAmountMin&&(r.value=e.cardAmountMin,l.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},m=()=>{o.value="input",s.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},d=g=>{s.value=g,n("changeStep",s.value,l.value)};return t.watch(()=>e.modelValue,g=>{i.value=g}),{handleClick:c,changeStep:d,change:u,inputClick:m,stepValue:s,currentIndex:o,inputValue:r,money:i,t:a}}}),yB={class:"fox-ecard"},bB={class:"fox-ecard__title"},kB={class:"fox-ecard__list"},SB=["onClick"],CB={class:"fox-ecard__list__input--con"},wB=["placeholder"],NB={class:"fox-ecard__list__step"};function BB(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",yB,[t.createElementVNode("view",bB,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",kB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:u=>e.handleClick(i,c)},t.toDisplayString(i.price),11,SB))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:n[2]||(n[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",CB,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":n[0]||(n[0]=i=>e.inputValue=i),onInput:n[1]||(n[1]=(...i)=>e.change&&e.change(...i)),placeholder:e.placeholder||e.t("placeholder")},null,40,wB),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",NB,[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 qa=te(gB,[["render",BB]]),{create:AB,scope:TB}=G("address-list-item"),VB=AB({components:{Del:oe.Del,Edit:oe.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(TB);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}}}),$B={class:"fox-address-list-item__info"},EB={class:"fox-address-list-item__info-contact"},DB={class:"fox-address-list-item__info-contact-name"},IB={class:"fox-address-list-item__info-contact-tel"},xB={key:0,class:"fox-address-list-item__info-contact-default"},vB={class:"fox-address-list-item__info-handle"},qB={class:"fox-address-list-item__addr"};function PB(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",$B,[t.createElementVNode("div",EB,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",DB,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",IB,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",xB,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",vB,[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",qB,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const Us=te(VB,[["render",PB]]),{create:MB}=G("address-list-general"),LB=MB({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:Us,[ze.name]:ze,[Ht.name]:Ht},setup(e,{emit:n}){const a=()=>t.h(Us,{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())},u=A=>{n("longDel",A,e.item),A.stopPropagation()},m=A=>{o=0,r.value=!0,n("longDown",A,e.item)};return{renderCompontent:a,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:u,holddownstart:A=>{o=setTimeout(()=>{m(A)},300)},holddownmove:()=>{clearTimeout(o)},holddownend:()=>{clearTimeout(o)},copyCLick:A=>{n("longCopy",A,e.item),A.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:A=>{n("longSet",A,e.item),A.stopPropagation()},maskClick:A=>{o!=0&&(r.value=!1),A.stopPropagation(),A.preventDefault()},swipeDelClick:A=>{n("swipeDel",A,e.item),A.stopPropagation()},swipestart:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),zB={key:0,class:"fox-address-list-general"},FB={class:"fox-address-list-swipe"};function RB(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(()=>n[5]||(n[5]=[t.createTextVNode("删除")])),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",FB,[(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",zB,[(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 OB=te(LB,[["render",RB]]),{componentName:KB,create:UB,scope:HB}=G("address-list"),jB=UB({props:{data:{type:Array,default:[]},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1},showBottomButton:{type:Boolean,default:!0},dataOptions:{type:Object,default:{}}},components:{GeneralShell:OB,[ze.name]:ze},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(HB),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[KB]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(y=>rr(l,y,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(y,k)=>{n("delIcon",y,k),y.stopPropagation()},c=(y,k)=>{n("editIcon",y,k),y.stopPropagation()},u=(y,k)=>{n("clickItem",y,k),y.stopPropagation()},m=(y,k)=>{n("longCopy",y,k),y.stopPropagation()},d=(y,k)=>{n("longSet",y,k),y.stopPropagation()},g=(y,k)=>{n("longDel",y,k),y.stopPropagation()},S=(y,k)=>{n("swipeDel",y,k),y.stopPropagation()},b=y=>{n("add",y),y.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:u,clickLongCopy:m,clickLongSet:d,clickLongDel:g,clickSwipeDel:S,addAddress:b,dataArray:o,t:a}}});function WB(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,u)=>(t.openBlock(),t.createBlock(s,{key:u,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:n[0]||(n[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const Pa=te(jB,[["render",WB]]),{componentName:BA,create:YB}=G("category"),XB=YB({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}}}),QB={class:"fox-category"},GB={class:"fox-category__cateList"},ZB={key:0},JB=["onClick"];function _B(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",QB,[t.createElementVNode("div",GB,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",ZB,[(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,JB)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Ma=te(XB,[["render",_B]]),{componentName:AA,create:e2}=G("category-pane"),t2=e2({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),n2={class:"fox-category-pane"},o2={key:0,class:"fox-category-pane__cateListRight"},l2={class:"fox-category-pane__childTitle"},a2={key:0,class:"fox-category-pane__childItemList"},r2=["onClick"],s2=["src"],i2={class:"fox-category-pane__skuImg"},c2={key:1,class:"fox-category-pane__cateListRight"},d2={class:"fox-category-pane__childTitle"},u2={key:0,class:"fox-category-pane__childItemList"},f2=["onClick"],m2={class:"fox-category-pane__skuName"},p2={key:2,class:"fox-category-pane__selfItemList"},h2=["onClick"];function g2(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",n2,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",o2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",l2,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",a2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:u,onClick:m=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,s2),t.createElementVNode("div",i2,t.toDisplayString(c?.catName),1)],8,r2))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",c2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",d2,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",u2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:u,onClick:m=>e.onChange(c)},[t.createElementVNode("div",m2,t.toDisplayString(c?.catName),1)],8,f2))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",p2,[(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,h2))),128))])):t.createCommentVNode("",!0)])}const La=te(t2,[["render",g2]]),{componentName:TA,create:y2}=G("comment-header"),b2=y2({components:{[At.name]:At},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),k2={class:"fox-comment-header__user"},S2={class:"fox-comment-header__user-avter"},C2=["src"],w2={class:"fox-comment-header__user-score"},N2={key:0,class:"fox-comment-header__time"};function B2(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",k2,[t.createElementVNode("view",S2,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,C2)):t.createCommentVNode("",!0)]),e.type=="default"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},[t.createElementVNode("span",null,t.toDisplayString(e.info.nickName),1),t.renderSlot(e.$slots,"labels")],2),t.createElementVNode("view",w2,[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",N2,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 A2=te(b2,[["render",B2]]),{componentName:VA,create:T2}=G("comment-images"),V2=T2({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:u}=e,m=s=="img"?i-c.length:i;n("clickImages",{type:s,index:m,value:s=="img"?u[m]:c[m]})},totalImages:l}}}),$2=["onClick"],E2=["src"],D2=["onClick"],I2=["src"],x2={key:0,class:"fox-comment-images__mask"};function v2(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:u=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,E2),n[0]||(n[0]=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1))],8,$2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:u=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,I2),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",x2,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,D2)):t.createCommentVNode("",!0)],64))),128))],2)}const q2=te(V2,[["render",v2]]),{componentName:$A,create:P2,scope:M2}=G("comment-bottom"),L2=P2({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}=ie.useFoxI18n(M2),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}}}),z2={class:"fox-comment-bottom"},F2={key:0},R2={class:"fox-comment-bottom__cpx"},O2=["onClick"];function K2(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",z2,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...u)=>e.handleClick&&e.handleClick(...u)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",F2,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",R2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(u,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${u}`]),onClick:d=>e.operate(u)},[u!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[u]),1),u=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),u=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=d=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,O2))),128))])])}const U2=te(L2,[["render",K2]]),{componentName:H2,create:j2,scope:W2}=G("comment"),Y2=j2({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:A2,CommentImages:q2,CommentBottom:U2,Right:oe.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(W2),o=t.computed(()=>({[H2]:!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}}}),X2=["innerHTML"],Q2={class:"fox-comment__follow-title"},G2={class:"fox-comment__follow-com"},Z2={key:0,class:"fox-comment__follow-img"};function J2(e,n,a,o,l,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),u=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:n[0]||(n[0]=(...m)=>e.handleClick&&e.handleClick(...m)),innerHTML:e.info.content},null,12,X2),t.createVNode(i,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:n[1]||(n[1]=(...m)=>e.handleClick&&e.handleClick(...m))},[t.createElementVNode("view",Q2,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",G2,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",Z2,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",e.follow.images.length))+" ",1),t.createVNode(c,{width:"12px"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(u,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const za=te(Y2,[["render",J2]]),_2=[To,$o,Eo,Do,vo,Be,Mo,Lo,zo,Fo,Oo,xn,Wo,Xo,Jo,el,Un,Hn,tl,Wn,Yn,ol,al,kt,rl,il,eo,dl,fl,qn,Pn,Mn,hl,gl,yl,ct,bl,kl,Sl,Cl,wl,Nl,ze,Bl,Al,st,me,Tl,Vl,$l,El,Rt,Dl,Il,xl,vl,ql,Pl,Ml,Ll,zl,Ot,Fl,Rl,Ol,Kl,Ul,Hl,jl,Kt,Zn,Ln,Kn,Rn,et,At,St,Wl,Yl,Xl,Ht,Ql,Gl,Zl,jt,Gn,Jl,ta,Qn,$t,la,aa,Zt,ra,sa,Ut,ia,ca,da,Et,ua,fa,Dt,It,Je,oo,pa,ha,ga,Jt,_t,ya,ba,ka,Sa,Ca,wa,Na,Ba,Aa,Ta,Va,$a,Ea,Da,Ia,xa,va,qa,Pa,Ma,La,za],eA=new Ni(_2,"4.0.0");B.ActionSheet=Ql,B.ActionsheetItem=dl,B.ActionsheetPane=eo,B.Address=Ta,B.AddressList=Pa,B.Animate=wa,B.Audio=la,B.AudioOperate=aa,B.Avatar=Zt,B.AvatarGroup=ra,B.BackTop=Gl,B.Badge=ga,B.Barrage=Va,B.Broadcast=So,B.BroadcastKey=we,B.Button=ze,B.Calendar=Kn,B.CalendarItem=el,B.Card=va,B.Cascader=Ln,B.CascaderItem=Xo,B.Category=Ma,B.CategoryPane=La,B.Cell=Bl,B.CellGroup=Al,B.Checkbox=Wn,B.CheckboxGroup=Yn,B.CheckboxItem=ol,B.CircleProgress=ia,B.Col=$l,B.Collapse=ba,B.CollapseItem=ka,B.Comment=za,B.Content=Do,B.CountDown=ha,B.CountUp=pa,B.DataItemsKey=pt,B.DateItem=Jo,B.DatePicker=Rn,B.DateUtils=re,B.Dialog=jt,B.Divider=Dl,B.Domain=mn,B.DomainKey=xe,B.DomainProvider=wl,B.Drag=Zl,B.Dropdown=kl,B.Ecard=qa,B.Elevator=Ot,B.Ellipsis=Ca,B.Empty=da,B.FixedNav=ql,B.FloatingButton=gl,B.FooterBar=Eo,B.FoxActionSheet=Ql,B.FoxActionsheetItem=dl,B.FoxActionsheetPane=eo,B.FoxAddress=Ta,B.FoxAddressList=Pa,B.FoxAnimate=wa,B.FoxAudio=la,B.FoxAudioOperate=aa,B.FoxAvatar=Zt,B.FoxAvatarGroup=ra,B.FoxBackTop=Gl,B.FoxBadge=ga,B.FoxBarrage=Va,B.FoxButton=ze,B.FoxCalendar=Kn,B.FoxCalendarItem=el,B.FoxCard=va,B.FoxCascader=Ln,B.FoxCascaderItem=Xo,B.FoxCategory=Ma,B.FoxCategoryPane=La,B.FoxCell=Bl,B.FoxCellGroup=Al,B.FoxCheckbox=Wn,B.FoxCheckboxGroup=Yn,B.FoxCheckboxItem=ol,B.FoxCircleProgress=ia,B.FoxCol=$l,B.FoxCollapse=ba,B.FoxCollapseItem=ka,B.FoxComment=za,B.FoxContent=Do,B.FoxCountDown=ha,B.FoxCountUp=pa,B.FoxDateItem=Jo,B.FoxDatePicker=Rn,B.FoxDialog=jt,B.FoxDivider=Dl,B.FoxDomainProvider=wl,B.FoxDrag=Zl,B.FoxDropdown=kl,B.FoxEcard=qa,B.FoxElevator=Ot,B.FoxEllipsis=Ca,B.FoxEmpty=da,B.FoxFixedNav=ql,B.FoxFloatingButton=gl,B.FoxFooterBar=Eo,B.FoxGrid=Il,B.FoxGridItem=xl,B.FoxGroup=vo,B.FoxHeaderBar=$o,B.FoxHintText=kt,B.FoxImage=Tl,B.FoxImagePreview=oo,B.FoxIndicator=Kl,B.FoxInfiniteLoading=Gn,B.FoxInputItem=zo,B.FoxInputNumber=et,B.FoxInputnumberItem=fl,B.FoxItem=Be,B.FoxLayout=Vl,B.FoxLinkItem=rl,B.FoxList=sa,B.FoxMapping=Cl,B.FoxMenu=Pl,B.FoxMenuItem=Ml,B.FoxMessageBox=ct,B.FoxMoneyItem=Fo,B.FoxMoreButton=yl,B.FoxNavbar=vl,B.FoxNoticeBar=ca,B.FoxNotify=ta,B.FoxNumberKeyboard=Xl,B.FoxOverLay=st,B.FoxPage=To,B.FoxPagination=Fl,B.FoxPicker=St,B.FoxPickerItem=Wo,B.FoxPopover=_t,B.FoxPopup=me,B.FoxPopupWrapper=bl,B.FoxPrice=Je,B.FoxProgress=Ut,B.FoxPullRefresh=Jl,B.FoxRadio=Un,B.FoxRadioGroup=Hn,B.FoxRadioItem=tl,B.FoxRange=Kt,B.FoxRate=At,B.FoxRateItem=il,B.FoxRollingProvider=Nl,B.FoxRow=El,B.FoxRowItem=Mo,B.FoxSearchBar=Zn,B.FoxShortPassword=Wl,B.FoxSideNavBar=Ul,B.FoxSideNavBarItem=Hl,B.FoxSignature=$a,B.FoxSkeleton=ya,B.FoxSku=xa,B.FoxSlotItem=Lo,B.FoxStep=fa,B.FoxSteps=ua,B.FoxStepsBar=hl,B.FoxSticky=Rt,B.FoxSubSideNavBar=jl,B.FoxSwipe=Ht,B.FoxSwiper=Dt,B.FoxSwiperItem=It,B.FoxSwitch=Qn,B.FoxSwitchItem=al,B.FoxTabPane=Ol,B.FoxTabbar=Ll,B.FoxTabbarItem=zl,B.FoxTable=Sa,B.FoxTabs=Rl,B.FoxTabsBar=qn,B.FoxTabsContainer=Pn,B.FoxTabsPane=Mn,B.FoxTag=Jt,B.FoxText=Sl,B.FoxTextarea=xn,B.FoxTextareaItem=Oo,B.FoxTimeDetail=Ia,B.FoxTimePannel=Da,B.FoxTimeSelect=Ea,B.FoxToast=$t,B.FoxTour=Aa,B.FoxTrendArrow=Ba,B.FoxUploader=Yl,B.FoxVideo=Et,B.FoxWaterMark=Na,B.Grid=Il,B.GridItem=xl,B.Group=vo,B.HeaderBar=$o,B.HintText=kt,B.Image=Tl,B.ImagePreview=oo,B.Indicator=Kl,B.InfiniteLoading=Gn,B.InputItem=zo,B.InputNumber=et,B.InputnumberItem=fl,B.Item=Be,B.Layout=Vl,B.LinkItem=rl,B.List=sa,B.Mapping=Cl,B.Menu=Pl,B.MenuItem=Ml,B.MessageBox=ct,B.MoneyItem=Fo,B.MoreButton=yl,B.Navbar=vl,B.NoticeBar=ca,B.Notify=ta,B.NumberKeyboard=Xl,B.OverLay=st,B.Page=To,B.Pagination=Fl,B.Picker=St,B.PickerItem=Wo,B.Popover=_t,B.Popup=me,B.PopupWrapper=bl,B.Price=Je,B.PriorityPolicy=kn,B.Progress=Ut,B.PullRefresh=Jl,B.Radio=Un,B.RadioGroup=Hn,B.RadioItem=tl,B.Range=Kt,B.Rate=At,B.RateItem=il,B.RollingProvider=Nl,B.Row=El,B.RowItem=Mo,B.SearchBar=Zn,B.ShortPassword=Wl,B.SideNavBar=Ul,B.SideNavBarItem=Hl,B.Signature=$a,B.Skeleton=ya,B.Sku=xa,B.SlotItem=Lo,B.Step=fa,B.Steps=ua,B.StepsBar=hl,B.Sticky=Rt,B.SubSideNavBar=jl,B.Swipe=Ht,B.Swiper=Dt,B.SwiperItem=It,B.Switch=Qn,B.SwitchItem=al,B.TabPane=Ol,B.Tabbar=Ll,B.TabbarItem=zl,B.Table=Sa,B.Tabs=Rl,B.TabsBar=qn,B.TabsContainer=Pn,B.TabsPane=Mn,B.Tag=Jt,B.Text=Sl,B.Textarea=xn,B.TextareaItem=Oo,B.TimeDetail=Ia,B.TimePannel=Da,B.TimeSelect=Ea,B.Toast=$t,B.Tour=Aa,B.TrendArrow=Ba,B.UniqueID=Dn,B.Uploader=Yl,B.ValidateSchema=ur,B.ValidateSchemaKey=Le,B.Video=Et,B.WaterMark=Na,B.cancelRaf=Fa,B.clamp=je,B.clearNonNumber=bo,B.clone=go,B.compareTo=po,B.createBroadcast=sn,B.createValidateSchema=dn,B.debounce=mt,B.debounceRef=fi,B.decimalLength=lr,B.default=eA,B.defineBroadcast=oi,B.defineConfigDomain=mr,B.defineDataItem=hr,B.defineDomain=No,B.defineItem=Te,B.definePageState=gr,B.defineSimpleItem=gt,B.deleteGlobalValidator=ii,B.disabledProperty=De,B.divide=mo,B.excludeProps=ft,B.extend=ot,B.floatData=rr,B.getGlobalIcons=Nn,B.getGlobalValidateCheckEvents=ir,B.getGlobalValidateResetEvents=dr,B.getPageContentAreaHeight=yn,B.getPageContentAreaWidth=bn,B.getPageFooterAreaHeight=gn,B.getPageHeaderAreaHeight=hn,B.getRootDomain=ht,B.hasSymbol=Za,B.includeProps=Se,B.indexOf=ti,B.installRules=pr,B.integerLength=or,B.isArray=on,B.isArrayLike=_a,B.isBrowser=nt,B.isDate=He,B.isESModule=Gs,B.isEmptyString=ue,B.isEqual=Me,B.isFunction=ln,B.isHidden=rn,B.isInnerPage=hi,B.isMap=Ys,B.isNil=Xa,B.isNumberString=nr,B.isObject=Ie,B.isPlainObject=ho,B.isPromise=ut,B.isRegExp=tr,B.isSet=Xs,B.isString=Qa,B.isSubPage=gi,B.isSymbol=Qs,B.isTouch=Ko,B.isWindow=Ja,B.lastIndexOf=ni,B.makeArray=ei,B.merge=er,B.multiply=ja,B.negate=Wa,B.nextTick=Js,B.numberFormat=nn,B.objectToString=Ga,B.once=mi,B.overrideGlobalIcons=Ii,B.overrideGlobalValidateHandler=ri,B.padZero=at,B.preventDefault=ko,B.property=$e,B.raf=Ue,B.readonlyProperty=Ee,B.setGlobalValidateCheckEvents=ci,B.setGlobalValidateHandler=ai,B.setGlobalValidateMessages=ui,B.setGlobalValidateResetEvents=di,B.setGlobalValidator=si,B.throttle=fn,B.toBoolean=be,B.toNumber=pe,B.toPadding=Fe,B.toPx=fe,B.toPxDesc=ge,B.toTypeString=an,B.toValue=Pe,B.tryTimes=Co,B.typeOf=lt,B.unNumberFormat=Ya,B.updatePageState=Bo,B.useBroadcast=qt,B.useDomain=We,B.useExpose=ve,B.useInnerSize=wn,B.usePageState=pn,B.usePosition=Vr,B.useRawTouch=Uo,B.useRect=qe,B.useSize=Vo,B.useTouch=_e,B.valueLength=ke,Object.defineProperties(B,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
13
|
+
`)}}});function hg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const xl=ne(pg,[["render",hg]]),{create:gg}=_("sticky"),yg=gg({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)),i=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),s=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 u=e.container;if(!a.value&&!u)return;const p=qe(a),d=o.value,g=qe(d),S=qe(u);l.height=p.height;const b=()=>{let k=!1;if(e.position==="top")k=u?r.value>p.top&&S.bottom>0:r.value>p.top;else{const f=document.documentElement.clientHeight;k=u?S.bottom>0&&f-r.value-g.height>S.top:f-r.value<p.bottom}return k},y=()=>{if(u)if(e.position==="top"){const k=S.bottom-r.value-g.height;return k<0?k:0}else{const k=document.documentElement.clientHeight,f=S.bottom-(k-r.value);return f<0?f:0}return 0};l.transform=y(),l.fixed=b()};return t.watch(()=>l.fixed,u=>{n("change",u)}),t.onMounted(()=>{c(),ul(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{ul(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:i,stickyRef:o,stickyStyle:s}}});function bg(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 Rt=ne(yg,[["render",bg]]),{componentName:kg,create:Sg}=_("divider"),Cg=Sg({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=kg;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 wg(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(Cg,[["render",wg]]);function Ng(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 Bg(e,n,a){const o=Ng(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function Ag(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=s=>{s.proxy&&(a.push(t.markRaw(s)),Bg(o,a,n))},r=s=>{a.splice(a.indexOf(t.markRaw(s)),1)},i=Object.assign;return s=>(t.provide(e,i({add:l,remove:r,internalChildren:a},s)),{internalChildren:a})}const{componentName:vs}=_("grid"),qs=Symbol("grid"),Tg={props:{columnNum:{type:[Number,String],default:4},border:{type:Boolean,default:!0},gutter:{type:[Number,String],default:0},center:{type:Boolean,default:!0},square:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},direction:{type:String},clickable:{type:Boolean,default:!1}},setup(e,{slots:n}){Ag(qs,`${vs}-item`)({props:e});const a=t.computed(()=>{const l=vs;return{[l]:!0,[`${l}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const l={};return e.gutter&&(l.paddingLeft=ge(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:$g}=_("grid"),ql=$g(Tg);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 i=t.computed(()=>r.indexOf(a));return{parent:n,index:i}}return{parent:null,index:t.ref(-1)}}const{create:Eg,componentName:Ps}=_("grid-item"),Dg=Eg({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=Vg(qs);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[Ps]:!0})),i=t.computed(()=>{const u={flexBasis:`${100/+l.columnNum}%`};return l.square?u.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(u.paddingRight=ge(l.gutter),o.value>=l.columnNum&&(u.marginTop=ge(l.gutter))),u}),s=t.computed(()=>{const u=`${Ps}__content`;return{[`${u}`]:!0,[`${u}--border`]:l.border,[`${u}--surround`]:l.border&&l.gutter,[`${u}--center`]:l.center,[`${u}--square`]:l.square,[`${u}--reverse`]:l.reverse,[`${u}--${l.direction}`]:!!l.direction,[`${u}--clickable`]:l.clickable}});return{rootClass:r,rootStyle:i,contentClass:s,handleClick:u=>{n("click",u)}}}}),Ig={class:"fox-grid-item__text"};function xg(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]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",Ig,[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 Pl=ne(Dg,[["render",xg]]),{componentName:vg,create:qg}=_("navbar"),Pg=qg({components:{Left:le.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:o,safeAreaInsetTop:l,placeholder:r,zIndex:i}=t.toRefs(e),s=t.ref(null),c=t.ref(null);let u=t.ref();const p=t.computed(()=>{const k=vg;return{[k]:!0,[`${k}--border`]:a.value,[`${k}--fixed`]:o.value,[`${k}--safe-area-inset-top`]:l.value}}),d=t.computed(()=>({zIndex:i.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{u.value=c?.value?.getBoundingClientRect().height,s.value.style.height=u.value+"px"})});function g(){n("on-click-back")}function S(){n("on-click-title")}function b(){n("on-click-icon")}function y(){n("on-click-right")}return{navBarWrap:s,navBarHtml:c,classes:p,styles:d,handleLeft:g,handleCenter:S,handleCenterIcon:b,handleRight:y}}}),Mg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Lg={key:1,class:"fox-navbar__text"},zg={class:"fox-navbar__title"},Og={key:0,class:"fox-navbar__text"},Fg={key:1,class:"fox-navbar__text"},Rg={class:"fox-navbar__title"},Kg={key:0,class:"fox-navbar__text"};function Ug(e,n,a,o,l,r){const i=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Mg,[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]=(...s)=>e.handleLeft&&e.handleLeft(...s))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(i,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Lg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",zg,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...s)=>e.handleCenter&&e.handleCenter(...s))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:n[3]||(n[3]=(...s)=>e.handleCenterIcon&&e.handleCenterIcon(...s))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...s)=>e.handleCenterIcon&&e.handleCenterIcon(...s))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...s)=>e.handleRight&&e.handleRight(...s))},[e.desc?(t.openBlock(),t.createElementBlock("view",Og,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]=(...s)=>e.handleLeft&&e.handleLeft(...s))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(i,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Fg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Rg,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...s)=>e.handleCenter&&e.handleCenter(...s))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:n[8]||(n[8]=(...s)=>e.handleCenterIcon&&e.handleCenterIcon(...s))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...s)=>e.handleCenterIcon&&e.handleCenterIcon(...s))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...s)=>e.handleRight&&e.handleRight(...s))},[e.desc?(t.openBlock(),t.createElementBlock("view",Kg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Ml=ne(Pg,[["render",Ug]]),Hg=(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}=ie.useFoxI18n(n),i=r(o,["activeText","unActiveText"]),s=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...i,classes:s,updateValue:(d=!o.visible)=>{l("update:visible",d)},selected:(d,g)=>{l("selected",{item:d,event:g}),c.value=d.id},current:c}}}),{componentName:jg,create:Wg,scope:Yg}=_("fixednav"),Xg=Wg(Hg(jg,Yg,{[it.name]:it,Left:le.Left})),Qg={class:"fox-fixednav__list"},Gg=["onClick"],Zg=["src"],Jg={class:"span"},_g={key:0,class:"b"},ey={class:"text"};function ty(e,n,a,o,l,r){const i=t.resolveComponent("fox-overlay"),s=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(i,{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",Qg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:p=>e.selected(c,p),key:c.id||u},[t.createElementVNode("img",{src:c.icon},null,8,Zg),t.createElementVNode("view",Jg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",_g,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Gg))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(s,{color:"#fff"}),t.createElementVNode("view",ey,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Ll=ne(Xg,[["render",ty]]),{componentName:ny,create:oy}=_("menu"),ly=oy({components:{ArrowUp2:le.ArrowUp2,ArrowDown2:le.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.ref(0),r=t.ref(!1),i=()=>{const k=t.reactive([]),f=t.reactive([]);return{children:k,linkChildren:h=>{const C=w=>{w.proxy&&(f.push(w),k.push(w.proxy))},A=w=>{if(w.proxy){let N=f.indexOf(w);N>-1&&f.splice(N,1);let T=k.indexOf(w.proxy);N>-1&&k.splice(T,1)}};t.provide("menuParent",Object.assign({removeLink:A,link:C,children:k,internalChildren:f},h))}}},{children:s,linkChildren:c}=i(),u=t.computed(()=>s.some(k=>k.state.showWrapper)),p=t.computed(()=>({[ny]:!0,"scroll-fixed":r.value})),d=()=>{if(o.value){const k=qe(o);e.direction==="down"?l.value=k.bottom:l.value=window.innerHeight-k.top}};c({props:e,offset:l});const g=k=>{s.forEach((f,m)=>{m===k?(d(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},S=k=>Math.max(0,"scrollTop"in k?k.scrollTop:k.pageYOffset),b=()=>{const{scrollFixed:k}=e,f=S(window);r.value=f>(typeof k=="boolean"?30:Number(k))},y=k=>{let f="";const{titleClass:m}=e;return k&&(f+="active"),m&&(f+=` ${m}`),f};return t.onMounted(()=>{const{scrollFixed:k}=e;k&&window.addEventListener("scroll",b)}),t.onUnmounted(()=>{const{scrollFixed:k}=e;k&&window.removeEventListener("scroll",b)}),{toggleItem:g,children:s,opened:u,classes:p,barRef:o,getClasses:y}}}),ay=["onClick"],ry={class:"fox-menu__title-text"},sy={class:"fox-menu__title-icon"};function iy(e,n,a,o,l,r){const i=t.resolveComponent("ArrowUp2"),s=t.resolveComponent("ArrowDown2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:p=>!c.disabled&&e.toggleItem(u),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",ry,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",sy,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(i,{key:0})):(t.openBlock(),t.createBlock(s,{key:1}))])])],2)],14,ay))),128))],2),t.renderSlot(e.$slots,"default")],2)}const zl=ne(ly,[["render",iy]]),{componentName:cy,create:dy}=_("menu-item"),uy=dy({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:{[me.name]:me,Check:le.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:a}){const o=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),l=()=>{const S=t.inject("menuParent",null);if(S){const b=t.getCurrentInstance(),{link:y,removeLink:k}=S;return y(b),t.onUnmounted(()=>{k(b)}),{parent:S}}},{parent:r}=l(),i=t.computed(()=>({[cy]:!0})),s=t.computed(()=>{const S={height:r.offset.value+"px"};return r.props.direction==="down"?S:{...S,top:"auto"}});return{classes:i,placeholderElementStyle:s,renderTitle:()=>{if(e.title)return e.title;const S=e.options?.find(b=>b.value===e.modelValue);return S?S.text:""},state:o,parent:r,toggle:(S=!o.showPopup,b={})=>{S!==o.showPopup&&(o.showPopup=S,o.isShowPlaceholderElement=S,S&&(o.showWrapper=!0,n("open")))},onClick:S=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,S.value!==e.modelValue&&(n("update:modelValue",S.value),n("change",S.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),fy={class:"fox-menu-item__content fox-menu-item__overflow"},my=["onClick"];function py(e,n,a,o,l,r){const i=t.resolveComponent("Check"),s=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(s,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",fy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick: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(i,t.mergeProps({ref_for:!0},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,my))),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 Ol=ne(uy,[["render",py]]),{create:hy}=_("tabbar"),gy=hy({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 yy(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 Fl=ne(gy,[["render",yy]]),{create:by}=_("tabbar-item"),ky=by({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&&(u=>{if(u.proxy){let p=a.children.length;o.index=p;let d=Object.assign(u.proxy,{index:p});a.children.push(d)}})(l);const r=t.computed(()=>o.index===o.value);function i(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}const s=t.computed(()=>a?a.value:null);return t.watch(s,c=>{o.value=c}),{state:o,active:r,change:i}}}),Sy={class:"fox-tabbar-item_icon-box"},Cy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},wy={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Ny={key:1,class:"fox-tabbar-item_icon-box_dot"},By={key:2},Ay={key:0};function Ty(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]=i=>e.change(e.state.index))},[t.createElementVNode("view",Sy,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",Cy,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",wy,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",Ny)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",By,[(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",Ay,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Rl=ne(ky,[["render",Ty]]),{componentName:$y,create:Vy}=_("elevator"),Ey=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(()=>({[$y]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),i=t.computed(()=>a.value.clientHeight),s=(f,m)=>f.getAttribute("data-"+m),c=f=>{t.nextTick(()=>{!o.listGroup.includes(f)&&f!=null&&o.listGroup.push(f)})},u=()=>{let f=0;o.listHeight.push(f);for(let m=0;m<o.listGroup.length;m++){let h=o.listGroup[m];f+=Math.floor(h.clientHeight),o.listHeight.push(f)}},p=f=>{!f&&f!==0||(f<0&&(f=0),f>o.listHeight.length-2&&(f=o.listHeight.length-2),o.codeIndex=f,a.value.scrollTo(0,o.listHeight[f]))},d=f=>{o.scrollStart=!0;let m=s(f.target,"index"),h=f.touches[0];o.touchState.y1=h.pageY,o.anchorIndex=+m,o.codeIndex=+m,p(+m)},g=f=>{let m=f.touches[0];o.touchState.y2=m.pageY;let h=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+h,p(o.codeIndex)},S=()=>{o.scrollStart=!1},b=(f,m)=>{n.emit("click-item",f,m),o.currentData=m,o.currentKey=f},y=f=>{n.emit("click-index",f)},k=f=>{let h=f.target.scrollTop;const C=o.listHeight;o.scrollY=h;for(let A=0;A<C.length-1;A++){let w=C[A],N=C[A+1];if(o.scrollY>=w&&o.scrollY<N){o.currentIndex=A,o.diff=N-o.scrollY;return}}o.currentIndex=C.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",k)}),ve({scrollTo:p}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(u)}),t.watch(()=>o.diff,f=>{const m=o.listHeight;let h=f>0&&f<e.titleHeight?f-e.titleHeight:0;o.scrollY+i.value===m[m.length-1]&&h!==0&&(h=0),o.fixedTop!==h&&(o.fixedTop=h)}),t.watch(()=>o.currentIndex,f=>{n.emit("change",f)}),{classes:l,...t.toRefs(o),fixedStyle:r,clientHeight:i,setListGroup:c,listview:a,touchStart:d,touchMove:g,touchEnd:S,handleClickItem:b,handleClickIndex:y}}}),Dy={class:"fox-elevator__list__item__code"},Iy=["onClick"],xy=["innerHTML"],vy={class:"fox-elevator__fixed-title"},qy={class:"fox-elevator__bars__inner"},Py=["data-index","onClick"];function My(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,i=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:i[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",Dy,t.toDisplayString(i[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.list,s=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===s.id&&e.currentKey===i[e.acceptKey]}]),key:s.id,onClick:c=>e.handleClickItem(i[e.acceptKey],s)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:1,item:s}):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:s.name},null,8,xy))],10,Iy))),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",vy,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]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:n[1]||(n[1]=t.withModifiers((...i)=>e.touchMove&&e.touchMove(...i),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[t.createElementVNode("view",qy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:i[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":s,key:i[e.acceptKey],onClick:c=>e.handleClickIndex(i[e.acceptKey])},t.toDisplayString(i[e.acceptKey]),11,Py))),128))])],32)],2)}const Kt=ne(Ey,[["render",My]]),{componentName:k2,create:Ly,scope:zy}=_("pagination"),Oy=Ly({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}=ie.useFoxI18n(zy),o=a(e,["prevText","nextText"]),{modelValue:l,mode:r,showPageSize:i,forceEllipses:s}=t.toRefs(e),c=t.computed(()=>{const{pageCount:g,totalItems:S,itemsPerPage:b}=t.toRefs(e),y=+g.value||Math.ceil(+S.value/+b.value);return Math.max(1,y)}),u=(g,S)=>{g>c.value||g<1||(g!=l.value&&n("update:modelValue",g),S&&n("change",g))},p=(g,S,b=!1)=>({number:g,text:S,active:b}),d=t.computed(()=>{if(r.value=="simple")return;let g=[];const S=c.value,b=+i.value;let y=1,k=S;const f=S>b;f&&(y=Math.max(l.value-Math.floor(b/2),1),k=y+b-1,k>S&&(k=S,y=k-b+1));for(var m=y;m<=k;m++){const h=p(m,m,l.value==m);g.push(h)}if(f&&b>0&&s.value){if(y>1){const h=p(y-1,"...");g.unshift(h)}if(k<S){const h=p(k+1,"...");g.push(h)}}return g});return t.watchEffect(()=>{u(l.value,!1)}),{...o,modelValue:l,select:u,countRef:c,mode:r,pages:d,forceEllipses:s}}}),Fy={class:"fox-pagination"},Ry={key:0,class:"fox-pagination-contain"},Ky=["onClick"],Uy={key:1,class:"fox-pagination-contain"},Hy={class:"fox-pagination-simple"};function jy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Fy,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=i=>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",Ry,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(i,s)=>(t.openBlock(),t.createElementBlock("view",{key:s+"pagination",class:t.normalizeClass(["fox-pagination-item",i.active?"active":""]),onClick:c=>e.select(i.number,!0)},[t.renderSlot(e.$slots,"page",{item:i},()=>[t.createTextVNode(t.toDisplayString(i.text),1)])],10,Ky))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Uy,[t.createElementVNode("view",Hy,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]=i=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const Kl=ne(Oy,[["render",jy]]),Wy=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),i=async()=>{r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{i()},100)});const s=t.reactive({offset:0,moving:!1}),c=tt();let u="";const p=(g,S)=>{let b=g;switch(e.direction=="horizontal"?(u=g>0?"right":"left",b=Math.abs(b)/r.value.width*100):(u=S>0?"bottom":"top",b=S,b=Math.abs(b)/r.value?.height*100),b>85&&(b=85),u){case"left":case"top":n.isEnd()&&(b=0,s.moving=!1);break;case"right":case"bottom":b=-b,n.isBegin()&&(b=0,s.moving=!1);break}s.offset=b};return{touchMethods:{onTouchStart(g){e.swipeable&&c.start(g)},onTouchMove(g){e.swipeable&&(c.move(g),s.moving=!0,p(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(g.preventDefault(),g.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(g.preventDefault(),g.stopPropagation()))},onTouchEnd(){if(s.moving)switch(s.moving=!1,u){case"left":case"top":s.offset>35&&n.next();break;case"right":case"bottom":s.offset<-35&&n.prev();break}}},touchState:s,tabsContentRef:l}};class Yy{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Xy}=_("tabs"),Qy=Xy({components:{[Rt.name]:Rt,JoySmile:le.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),i=E=>{E.forEach((D,M)=>{let K=D.type;if(K=K.name||K,K=="fox-tab-pane"){let V=new Yy;if(D.props?.title||D.props?.["pane-key"]||D.props?.paneKey){let I=at(D.props?.["pane-key"]),z=I=="number"||I=="string"?String(D.props?.["pane-key"]):null,x=at(D.props?.paneKey),H=x=="number"||x=="string"?String(D.props?.paneKey):null;V.title=D.props?.title,V.paneKey=z||H||String(M),V.disabled=D.props?.disabled}r.value.push(V)}else{if(D.children==" ")return;Array.isArray(D.children)&&i(D.children)}})},s=t.ref(e.modelValue||0),c=E=>{let D=r.value.findIndex(M=>M.paneKey==E);r.value.length==0||D==-1||(s.value=D)},u=t.computed(()=>e.titleScroll&&e.direction==="vertical"),p=t.ref(),d=t.ref([]),g=E=>{const D=p.value,M=d.value;if(!D||!M||!M[s.value])return;const K=M[s.value];let V=0;e.direction==="vertical"?V=K.offsetTop-D.offsetTop+10-(D.offsetHeight-K.offsetHeight)/2:V=K.offsetLeft-(D.offsetWidth-K.offsetWidth)/2,S(D,V,.3,e.direction)},S=(E,D,M,K)=>{let V=0;const I=K==="horizontal"?E.scrollLeft:E.scrollTop,z=Math.round(M*1e3/16);function x(){K==="horizontal"?E.scrollLeft+=(D-I)/z:E.scrollTop+=(D-I)/z,++V<z&&Ue(x)}x()},b=(E=a.default?.())=>{r.value=[],E=E?.filter(D=>typeof D.children!="string"),E&&E.length&&i(E),c(e.modelValue),t.nextTick(()=>{g()})},y=E=>{l=E.fixed};t.watch(()=>a.default?.(),E=>{b(E)});const k=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,E=>{if(c(E),g(),l){let D=qe(o.value).top+k(),M=Math.ceil(D-e.top);window.scrollTo({top:M,behavior:"smooth"})}}),t.onMounted(b),t.onActivated(b);const f={isBegin:()=>s.value==0,isEnd:()=>s.value==r.value.length-1,next:()=>{s.value+=1,f.updateValue(r.value[s.value])},prev:()=>{s.value-=1,f.updateValue(r.value[s.value])},updateValue:E=>{n("update:modelValue",E.paneKey),n("change",E)},tabChange:(E,D)=>{n("click",E),!(E.disabled||s.value==D)&&(s.value=D,f.updateValue(E))},setTabItemRef:(E,D)=>{d.value[D]=E}},{tabsContentRef:m,touchState:h,touchMethods:C}=Wy(e,f),A=t.computed(()=>{let E=s.value*100;h.moving&&(E+=h.offset);let D={transform:e.direction=="horizontal"?`translate3d(-${E}%, 0, 0)`:`translate3d( 0,-${E}%, 0)`,transitionDuration:h.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(D={}),D}),w=t.computed(()=>({background:e.background})),N=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),T=t.computed(()=>{if(!e.titleGutter)return{};const E=ge(e.titleGutter);return e.direction==="vertical"?{marginTop:E,marginBottom:E}:{marginLeft:E,marginRight:E}}),$=t.computed(()=>a.fixedTitle);return{navRef:p,tabsContentRef:m,titles:r,contentStyle:A,tabsNavStyle:w,titleStyle:T,tabsActiveStyle:N,container:o,getScrollY:u,onStickyScroll:y,...f,...C,hasFixedTitle:$}}}),Gy=["onClick"],Zy={key:0,class:"fox-tabs__titles-fixed-item"},Jy=["onClick"],_y={key:0,class:"fox-tabs__titles-fixed-item"};function e0(e,n,a,o,l,r){const i=t.resolveComponent("JoySmile"),s=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(s,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:p=>e.tabChange(c,u),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(i,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Gy))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Zy,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:p=>e.tabChange(c,u),key:c.paneKey,ref_for:!0,ref:p=>e.setTabItemRef(p,u)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(i,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Jy))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",_y,[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 Ul=ne(Qy,[["render",e0]]),{create:t0}=_("tab-pane"),n0=t0({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 o0(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 Hl=ne(n0,[["render",o0]]),{componentName:Ms,create:l0}=_("indicator"),a0=l0({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=Ms;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Ms,padZero:rt}}});function r0(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,i=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[i===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(i)||i),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const jl=ne(a0,[["render",r0]]),{componentName:s0,create:i0}=_("side-navbar"),c0=i0({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(()=>({[s0]:!0})),l=(i,s=1)=>{for(let c=0;c<i.length;c++){let u=i[c];u?.children?.[0]&&(u.children[0].style.paddingLeft=+e.offset*s+"px",u.className.includes("fox-side-navbar-item")||l(Array.from(u.children[1].children),++a.count))}a.count--},r=()=>{let i=n.value.childNodes;i.length&&(i=Array.from(i).filter(s=>s.nodeType!==3).map(s=>s),l(i))};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}}}),d0={class:"fox-side-navbar__content"},u0={class:"fox-side-navbar__content__list",ref:"list"};function f0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",d0,[t.createElementVNode("view",u0,[t.renderSlot(e.$slots,"default")],512)])],2)}const Wl=ne(c0,[["render",f0]]),{componentName:m0,create:p0}=_("side-navbar-item"),h0=p0({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[m0]:!0})),handleClick:()=>{n.emit("click")}})}),g0=["ikey"],y0={class:"fox-side-navbar-item__title"};function b0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.handleClick&&e.handleClick(...i),["stop"])),ikey:e.ikey},[t.createElementVNode("span",y0,t.toDisplayString(e.title),1)],10,g0)}const Yl=ne(h0,[["render",b0]]),{componentName:k0,create:S0}=_("sub-side-navbar"),C0=S0({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:le.ArrowDown2,ArrowUp2:le.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=t.reactive({direction:""}),o=t.computed(()=>({[k0]:!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}}}),w0=["ikey"],N0={class:"fox-sub-side-navbar__title__text"},B0={class:"fox-sub-side-navbar__title__icon"};function A0(e,n,a,o,l,r){const i=t.resolveComponent("ArrowDown2"),s=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",N0,t.toDisplayString(e.title),1),t.createElementVNode("span",B0,[e.direction?(t.openBlock(),t.createBlock(s,{key:1})):(t.openBlock(),t.createBlock(i,{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,w0)}const Xl=ne(C0,[["render",A0]]),{componentName:T0,create:$0}=_("range"),V0=$0({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(),i=t.ref(),s=tt(),c=t.computed(()=>{const{marks:V,max:I,min:z}=e;return Object.keys(V).map(parseFloat).sort((q,Z)=>q-Z).filter(q=>q>=z&&q<=I)}),u=t.computed(()=>Number(e.max)-Number(e.min)),p=t.computed(()=>{const V=T0;return{[V]:!0,[`${V}-disabled`]:e.disabled,[`${V}-vertical`]:e.vertical,[`${V}-show-number`]:!e.hiddenRange}}),d=t.computed(()=>{const V="fox-range-container";return{[V]:!0,[`${V}-vertical`]:e.vertical}}),g=t.computed(()=>({background:e.inactiveColor})),S=t.computed(()=>({borderColor:e.buttonColor})),b=V=>!!e.range&&Array.isArray(V),y=()=>{const{modelValue:V,min:I}=e;return b(V)?`${(V[1]-V[0])*100/u.value}%`:`${(V-Number(I))*100/u.value}%`},k=()=>{const{modelValue:V,min:I}=e;return b(V)?`${(V[0]-Number(I))*100/u.value}%`:"0%"},f=t.computed(()=>e.vertical?{height:y(),top:k(),background:e.activeColor,transition:i.value?"none":void 0}:{width:y(),left:k(),background:e.activeColor,transition:i.value?"none":void 0}),m=V=>{const I="fox-range-mark",{modelValue:z,max:x,min:H}=e;let q=Number(H),Z=Number(x);if(e.range){const[j,P]=z;q=j,Z=P}else Z=z;let ee=V<=Z&&V>=q;return{[`${I}-text`]:!0,[`${I}-text-active`]:ee}},h=V=>{const{min:I,vertical:z}=e;let x={left:`${(V-Number(I))/u.value*100}%`};return z&&(x={top:`${(V-Number(I))/u.value*100}%`}),x},C=V=>{const{modelValue:I,max:z,min:x}=e;let H=Number(x),q=Number(z);if(e.range){const[j,P]=I;H=j,q=P}return{background:V<=q&&V>=H?e.activeColor:e.inactiveColor}},A=V=>{const{min:I,max:z,step:x}=e;return V=Math.max(+I,Math.min(V,+z)),Math.round(V/+x)*+x},w=(V,I)=>JSON.stringify(V)===JSON.stringify(I),N=V=>V[0]>V[1]?V.slice(0).reverse():V,T=(V,I)=>{b(V)?V=N(V).map(A):V=A(V),w(V,e.modelValue)||n("update:modelValue",V),I&&!w(V,o)&&n("change",V)},$=V=>{if(e.disabled)return;const{min:I,modelValue:z}=e,x=qe(r);let H=V.clientX-x.left,q=x.width;e.vertical&&(H=V.clientY-x.top,q=x.height);const Z=Number(I)+H/q*u.value;if(b(z)){const[ee,j]=z,P=(ee+j)/2;Z<=P?T([Z,j],!0):T([ee,Z],!0)}else T(Z,!0)},E=V=>{e.disabled||(s.start(V),l=e.modelValue,b(l)?o=l.map(A):o=A(l),i.value="start")},D=V=>{if(e.disabled)return;i.value==="start"&&n("drag-start"),s.move(V),i.value="draging";const I=qe(r);let z=s.deltaX.value,x=I.width,H=z/x*u.value;e.vertical&&(z=s.deltaY.value,x=I.height,H=z/x*u.value),b(o)?l[a.value]=o[a.value]+H:l=o+H,T(l),V.stopPropagation(),V.preventDefault()},M=()=>{e.disabled||(i.value==="draging"&&(T(l,!0),n("drag-end")),i.value="")},K=V=>ln(e.modelValue)&&typeof V=="number"?e.modelValue[V]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:g,buttonStyle:S,onClick:$,onTouchStart:E,onTouchMove:D,onTouchEnd:M,...t.toRefs(e),barStyle:f,curValue:K,buttonIndex:a,containerClasses:d,markClassName:m,marksStyle:h,marksList:c,tickStyle:C}}}),E0={key:0,class:"fox-range-min"},D0={key:0,class:"fox-range-mark"},I0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],x0={key:0,class:"number"},v0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],q0={key:0,class:"number"},P0={key:1,class:"fox-range-max"};function M0(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",E0,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((...i)=>e.onClick&&e.onClick(...i),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",D0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,i=>(t.openBlock(),t.createElementBlock("span",{key:i,class:t.normalizeClass(e.markClassName(i)),style:t.normalizeStyle(e.marksStyle(i))},[t.createTextVNode(t.toDisplayString(i)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(i))},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],i=>t.createElementVNode("view",{key:i,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":i==0,"fox-range-button-wrapper-right":i==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(i),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(s=>{typeof i=="number"&&(e.buttonIndex=i),e.onTouchStart(s)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:n[1]||(n[1]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:n[3]||(n[3]=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",x0,t.toDisplayString(e.curValue(i)),1))],4))],42,I0)),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(i=>{e.onTouchStart(i)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:n[6]||(n[6]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:n[8]||(n[8]=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",q0,t.toDisplayString(e.curValue()),1))],4))],40,v0))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",P0,t.toDisplayString(+e.max),1))],2)}const Ut=ne(V0,[["render",M0]]),{create:L0,scope:z0}=_("short-password"),O0=L0({components:{[me.name]:me,Tips:le.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:a}=ie.useFoxI18n(z0),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>u(Number(e.length))),i=t.ref(e.visible),s=d=>{d.stopPropagation(),n("focus")};t.watch(()=>e.visible,d=>{i.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")},u=d=>Math.min(Math.max(4,d),6);return{comLen:r,realInput:l,onTouchStart:s,range:u,close:c,onTips:()=>{n("tips")},show:i,...o}}}),F0={class:"fox-short-password-title"},R0={class:"fox-short-password-subtitle"},K0={class:"fox-short-password-wrapper"},U0={key:0,class:"fox-short-password__item-icon"},H0={class:"fox-short-password__message"},j0={class:"fox-short-password--error"},W0={key:0,class:"fox-short-password--forget"};function Y0(e,n,a,o,l,r){const i=t.resolveComponent("Tips"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(s,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":n[2]||(n[2]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("view",F0,t.toDisplayString(e.title),1),t.createElementVNode("view",R0,t.toDisplayString(e.desc),1),t.createElementVNode("div",K0,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:u},[String(e.realInput).length>u?(t.openBlock(),t.createElementBlock("view",U0)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",H0,[t.createElementVNode("view",j0,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",W0,[t.createVNode(i,{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 Ql=ne(O0,[["render",Y0]]);class X0{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Q0=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 G0{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const Ls=(e,{args:n=[],done:a,canceled:o})=>{if(e){const l=e.apply(null,n);ft(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:Z0}=_("progress"),J0=Z0({components:{Checked:le.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,a=t.ref(e.strokeWidth+"px"),o=t.ref(),l=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),i=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),s=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:a,percentage:r,bgStyle:i,textStyle:s,progressOuter:o,insideText:l,slotDefault:n}}}),_0={class:"fox-progress"},eb={key:0,class:"fox-progress-text"};function tb(e,n,a,o,l,r){const i=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",_0,[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",eb,[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(i,{width:"15px",height:"15px",color:"#439422"})]):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const Ht=ne(J0,[["render",tb]]),{componentName:nb,create:ob,scope:lb}=_("uploader"),ab=ob({components:{[Ht.name]:Ht,Photograph:le.Photograph,Failure:le.Failure,Loading:le.Loading,Del:le.Del,Link:le.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(lb),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[nb]:!0})),i=()=>{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)},s=m=>{m.value=""},c=m=>{n("file-item-click",{fileItem:m})},u=(m,h)=>{const C=new X0;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=w=>{m.status="ready",m.message=a("readyUpload"),p(h),n("start",w)},C.onProgress=(w,N)=>{m.status="uploading",m.message=a("uploading"),m.percentage=(w.loaded/w.total*100).toFixed(0),n("progress",{event:w,option:N,percentage:m.percentage})},C.onSuccess=(w,N)=>{m.status="success",m.message=a("success"),n("success",{responseText:w,option:N,fileItem:m}),n("update:fileList",o)},C.onFailure=(w,N)=>{m.status="error",m.message=a("error"),n("failure",{responseText:w,option:N,fileItem:m})};let A=new Q0(C);e.autoUpload?A.upload():l.push(new Promise((w,N)=>{w(A)}))},p=(m=-1)=>{m>-1?l.splice(m,1):(l=[],o.splice(0,o.length))},d=()=>{Promise.all(l).then(m=>{m.forEach(h=>h.upload())})},g=m=>{m.forEach((h,C)=>{const A=new FormData;for(const[N,T]of Object.entries(e.data))A.append(N,T);A.append(e.name,h);const w=t.reactive(new G0);if(w.name=h.name,w.status="ready",w.type=h.type,w.formData=A,w.message=a("waitingUpload"),u(w,C),e.isPreview&&h.type.includes("image")){const N=new FileReader;N.onload=T=>{w.url=T.target.result,o.push(w)},N.readAsDataURL(h)}else o.push(w)})},S=m=>{const h=e.maximum*1,C=e.maximize*1,A=new Array;m=m.filter(N=>N.size>C?(A.push(N),!1):!0),A.length&&n("oversize",A);let w=m.length+o.length;return w>h&&m.splice(m.length-(w-h)),m},b=(m,h)=>{o.splice(h,1),n("delete",{file:m,fileList:o,index:h})},y=(m,h)=>{p(h),Ls(e.beforeDelete,{args:[m,o],done:()=>b(m,h)})},k=m=>{if(e.disabled)return;const h=m.target;let{files:C}=h;e.beforeUpload?e.beforeUpload(C).then(A=>f(A)):f(C),n("change",{fileList:o,event:m}),e.clearInput&&s(h)},f=m=>{const h=S(new Array().slice.call(m));g(h)};return{onChange:k,onDelete:y,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:p,submit:d,renderInput:i}}}),rb={key:0,class:"fox-uploader__slot"},sb={key:0,class:"fox-uploader__preview-img"},ib={key:0,class:"fox-uploader__preview__progress"},cb={class:"fox-uploader__preview__progress__msg"},db=["onClick"],ub=["onClick","src"],fb={key:3,class:"fox-uploader__preview-img__file"},mb=["onClick"],pb={class:"file__name_tips"},hb={class:"tips"},gb={key:1,class:"fox-uploader__preview-list"},yb=["onClick"],bb={class:"file__name_tips"};function kb(e,n,a,o,l,r){const i=t.resolveComponent("Failure"),s=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),u=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",rb,[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,(g,S)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:g.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",sb,[g.status!="success"?(t.openBlock(),t.createElementBlock("view",ib,[g.status!="ready"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[g.status=="error"?(t.openBlock(),t.createBlock(i,{key:0,color:"#fff"})):(t.openBlock(),t.createBlock(s,{key:1,name:"loading",color:"#fff"}))],64)):t.createCommentVNode("",!0),t.createElementVNode("view",cb,t.toDisplayString(g.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:b=>e.onDelete(g,S)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(i)])],8,db)):t.createCommentVNode("",!0),g?.type?.includes("image")&&g.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:b=>e.fileItemClick(g),src:g.url},null,8,ub)):(t.openBlock(),t.createElementBlock("view",fb,[t.createElementVNode("view",{onClick:b=>e.fileItemClick(g),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",pb,t.toDisplayString(g.name),1)],8,mb)])),t.createElementVNode("view",hb,t.toDisplayString(g.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",gb,[t.createElementVNode("view",{onClick:b=>e.fileItemClick(g),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[g.status]])},[t.createVNode(c,{class:"fox-uploader__preview-img__file__link"}),t.createElementVNode("view",bb,t.toDisplayString(g.name),1),e.isDeletable?(t.openBlock(),t.createBlock(u,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:b=>e.onDelete(g,S)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,yb),g.status=="uploading"?(t.openBlock(),t.createBlock(p,{key:0,size:"small",percentage:g.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 Gl=ne(ab,[["render",kb]]),Sb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxMUVBQjIzNEJCQkYxNDZGQjg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NMc+r5z+KovDBD3V2pgznz/y91noevSOECBbhxtwVt7dFpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:wb,scope:Nb}=_("number-keyboard"),Bb=wb({components:{[me.name]:me},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}=ie.useFoxI18n(Nb),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),i=t.ref();function s(){const{customKey:f}=e;let m={id:"lock",type:"lock"},h=Array.isArray(f)?f:[f];return h.length===1&&(m={id:h[0],type:"custom"}),[...c(),m,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const f=[];for(let m=1;m<=9;m++)f.push({id:m,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function u(){const f=c(),{customKey:m}=e;let h=Array.isArray(m)?m:[m];return h.length>2&&(h=[h[0],h[1]]),h.length==2&&e.title&&e.type!="rightColumn"&&(h=[h[0]]),h.length===1?e.title&&e.type!="rightColumn"?f.push({id:h[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:h[0],type:"custom"}):h.length===2&&f.push({id:h[0],type:"custom"},{id:0,type:"number"},{id:h[1],type:"custom"}),f}const p=t.computed(()=>e.type=="rightColumn"||e.title!=""?u():s()),d=()=>{e.visible&&n("blur")},g=f=>{const m=i.value;m&&!m.contains(f.target)&&d()};t.watch(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",g,!1):window.removeEventListener("touchstart",g,!1)});function S(f,m){m.stopPropagation(),l.value=f.id,(f.type=="number"||f.type=="custom")&&(n("input",f.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+f.id)),f.type=="lock"&&k(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function b(f){f.stopPropagation()}function y(f){f.preventDefault(),l.value=void 0}function k(){n("update:visible",!1),n("close")}return{...o,delImg:Sb,lockImg:Cb,clickKeyIndex:l,defaultKey:s,closeBoard:k,onTouchEnd:y,onTouchMove:b,onTouchstart:S,keysList:p,genCustomKeys:u,getBasicKeys:c,root:i,show:r}}}),Ab={ref:"root"},Tb={class:"fox-number-keyboard"},$b={key:0,class:"fox-number-keyboard__header"},Vb={class:"fox-number-keyboard__title"},Eb={class:"fox-number-keyboard__body"},Db={class:"fox-number-keyboard__keys"},Ib=["onTouchstart"],xb=["src"],vb=["src"],qb={key:0,class:"fox-number-keyboard__sidebar"},Pb={class:"fox-key__wrapper"},Mb=["src"];function Lb(e,n,a,o,l,r){const i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",Ab,[t.createVNode(i,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=s=>e.show=s),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",Tb,[e.title?(t.openBlock(),t.createElementBlock("div",$b,[t.createElementVNode("h3",Vb,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]=s=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",Eb,[t.createElementVNode("div",Db,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,s=>(t.openBlock(),t.createElementBlock("div",{key:"key"+s.id,class:t.normalizeClass(["fox-key__wrapper",{"fox-key__wrapper--wider":s.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{"fox-key--active":s.id==e.clickKeyIndex},{"fox-key--lock":s.type=="lock"},{"fox-key--delete":s.type=="delete"}]),onTouchstart:c=>e.onTouchstart(s,c),onTouchmove:n[1]||(n[1]=c=>e.onTouchMove(c)),onTouchend:n[2]||(n[2]=c=>e.onTouchEnd(c))},[s.type=="number"||s.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(s.id),1)],64)):t.createCommentVNode("",!0),s.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,xb)):t.createCommentVNode("",!0),s.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,vb)):t.createCommentVNode("",!0)],42,Ib)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",qb,[t.createElementVNode("div",Pb,[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=s=>e.onTouchstart({id:"delete",type:"delete"},s)),onTouchmove:n[4]||(n[4]=s=>e.onTouchMove(s)),onTouchend:n[5]||(n[5]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("img",{src:e.delImg},null,8,Mb)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=s=>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 Zl=ne(Bb,[["render",Lb]]),{componentName:zb,create:Ob}=_("swipe"),Fb=Ob({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(()=>({[zb]:!0})),o=m=>m.value?.clientWidth||0,l=t.ref(),r=t.computed(()=>o(l)),i=t.ref(),s=t.computed(()=>o(i));let c=!1,u="",p="";const d=t.reactive({offset:0,moving:!1}),g=(m="")=>{c=!0,m&&(d.offset=m==="left"?-s.value:r.value),n("open",{name:e.name,position:u||m})},S=()=>{d.offset=0,c=!1,n("close",{name:e.name,position:u})},b=t.computed(()=>({transform:`translate3d(${d.offset}px, 0, 0)`})),y=m=>{u=m>0?"right":"left";let h=m;switch(u){case"left":c&&p===u?h=-s.value:h=Math.abs(m)>s.value?-s.value:m;break;case"right":c&&p===u?h=r.value:h=Math.abs(m)>r.value?r.value:m;break}d.offset=h},k=tt();return{classes:a,touchStyle:b,...{onTouchStart(m){e.disabled||k.start(m)},onTouchMove(m){e.disabled||(k.move(m),k.isHorizontal()&&(d.moving=!0,y(k.deltaX.value),e.touchMovePreventDefault&&m.preventDefault(),e.touchMoveStopPropagation&&m.stopPropagation()))},onTouchEnd(){if(d.moving)switch(d.moving=!1,p=u,u){case"left":Math.abs(d.offset)<=s.value/2?S():(d.offset=-s.value,g());break;case"right":Math.abs(d.offset)<=r.value/2?S():(d.offset=r.value,g());break}}},leftRef:l,rightRef:i,open:g,close:S}}}),Rb={class:"fox-swipe__left",ref:"leftRef"},Kb={class:"fox-swipe__content"},Ub={class:"fox-swipe__right",ref:"rightRef"};function Hb(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]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("view",Rb,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",Kb,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Ub,[t.renderSlot(e.$slots,"right")],512)],38)}const jt=ne(Fb,[["render",Hb]]),{componentName:jb,create:Wb}=_("action-sheet"),Yb=Wb({components:{[me.name]:me,Loading:le.Loading},props:{...Fe,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(()=>({[jb]:!0}));return{slotDefault:a,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(c,u)=>{!c.disable&&!c.loading&&(n("choose",c,u),n("update:visible",!1))},close:c=>{n("close",c),n("update:visible",!1)},classes:o}}}),Xb={key:0,class:"fox-action-sheet__title"},Qb={key:1},Gb={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},Zb={key:1,class:"fox-action-sheet__menu"},Jb=["onClick"],_b={key:1},ek={class:"fox-action-sheet__subdesc"};function tk(e,n,a,o,l,r){const i=t.resolveComponent("Loading"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{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",Xb,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Qb,[e.description?(t.openBlock(),t.createElementBlock("view",Gb,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",Zb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:t.normalizeStyle({color:e.isHighlight(c)||c.color}),key:u,onClick:p=>e.chooseItem(c,u)},[c.loading?(t.openBlock(),t.createBlock(i,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",_b,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",ek,t.toDisplayString(c[e.optionSubTag]),1)],14,Jb))),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(Yb,[["render",tk]]),{componentName:nk,create:ok}=_("backtop"),_l=ok({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(()=>({[nk]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function i(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function s(b=0){o.scrollEl instanceof Window?window.scrollTo(0,b):o.scrollEl.scrollTop=b}function c(){let b=Qe(function y(){var k=e.duration-Math.max(0,o.startTime-+new Date+e.duration),f=k*-o.scrollTop/e.duration+o.scrollTop;s(f),b=Qe(y),(k==e.duration||f==0)&&Ka(b)})}function u(){o.scrollEl.addEventListener("scroll",i,!1),o.scrollEl.addEventListener("resize",i,!1)}function p(){o.scrollEl.removeEventListener("scroll",i,!1),o.scrollEl.removeEventListener("resize",i,!1)}function d(b){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():s(),n("click",b)}function g(){S.value?o.scrollEl=S.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),u()}t.onMounted(()=>{e.distance==0&&(o.backTop=!0),g()}),t.onUnmounted(()=>{p()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,g())}),t.onDeactivated(()=>{o.keepAlive=!0,p()});const S=t.computed(()=>{if(typeof a.content=="function"){const b=a.content();return Array.isArray(b)?b[0]:b}return null});return()=>{const b=[];S.value&&b.push(S.value);const y=[];if(typeof a.default=="function")y.push(a.default());else{const f=t.h(le.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});y.push(f)}const k=t.h("div",{class:l.value,style:r.value,onClick:d},y);return b.push(k),b}}}),{componentName:lk,create:ak}=_("drag"),rk=ak({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(()=>({[lk]:!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 i(d){o.boundary.left?+d.style.left.split("px")[0]>o.boundary.left?(d.style.left=+d.style.left.split("px")[0]-10+"px",Ue(()=>{i(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",Ue(()=>{i(d)})):d.style.left="0px"}function s(d,g){g-parseInt(d.style.left.split("px")[0])>10?(d.style.left=parseInt(d.style.left.split("px")[0])+10+"px",Ue(()=>{s(d,g)})):d.style.left=g+"px"}function c(d){d.preventDefault();const g=d.currentTarget;if(d.targetTouches.length===1){const S=d.targetTouches[0];o.nx=S.clientX-o.position.x,o.ny=S.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const b=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>b?o.xPum=b: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"&&(g.style.left=o.xPum+"px"),e.direction!="x"&&(g.style.top=o.yPum+"px")}}function u(d){const g=d.currentTarget;let b=d.changedTouches[0].clientX;const y=o.screenWidth-o.elWidth-o.boundary.right;b>y?b=y:b<o.boundary.left?b=o.boundary.left:b=b<o.screenWidth/2?o.boundary.left:y,e.direction!="y"&&e.attract&&(b<o.screenWidth/2?Ue(()=>{i(g)}):Ue(()=>{s(g,y)})),e.direction!="x"&&(g.style.top=o.yPum+"px")}function p(d){const g=d.currentTarget,S=d.touches[0],b=d.targetTouches[0];o.startTop=g.offsetTop,o.startLeft=g.offsetLeft,o.position.x=S.clientX,o.position.y=S.clientY,o.nx=b.clientX-o.position.x,o.ny=b.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny}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",u)}),{classes:l,myDrag:a,touchStart:p,touchMove:c,touchEnd:u}}});function sk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=i=>e.touchStart(i)),onTouchmove:n[1]||(n[1]=i=>e.touchMove(i)),onTouchend:n[2]||(n[2]=i=>e.touchEnd(i))},[t.renderSlot(e.$slots,"default")],34)}const ea=ne(rk,[["render",sk]]),ik={width:{type:[String,Number]},height:{type:[String,Number]},plain:{type:[Boolean]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},showClose:{type:Boolean,default:!1},closeIcon:{type:Object},content:{type:[String,Object]},showFooter:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},cancelButtonText:{type:String},cancelText:{type:String},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},confirmButtonText:{type:String},confirmText:{type:String},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},footerDirection:{type:String,default:"horizontal"},popClass:{type:String},popStyle:{type:Object},beforeClose:{type:Function}},ck=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function dk(e,n,a,o,l){return{props:{...Fe,...ik},setup(r,{attrs:i,slots:s,emit:c}){const{toLocaleRefs:u}=ie.useFoxI18n(n),p=u(r,["confirmText","cancelText"]),d=e,g=t.ref(r.visible);t.watch(()=>r.visible,w=>{g.value!==w&&(g.value=w,w&&c("opened"))});const S=w=>{g.value=w,c("update:visible",w),c("update",w)},b=w=>{if(c(w),!(w==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const N=r.beforeClose(w);ft(N)?N.then(T=>{T&&(S(!1),c("closed",w))}):N===!0&&(S(!1),c("closed",w))}else S(!1),c("closed",w)},y=()=>{b("confirm")},k=()=>{b("cancel")},f=()=>{b("close")},m=(w,N)=>ck(w)?(N.src=w,t.h("img",N)):typeof w=="string"?(Array.isArray(N.class)?N.class.push(w):N.class&&typeof N.class=="object"?N[`${w}`]=!0:typeof N.class=="string"?N.class=`${N.class}, ${w}`:N.class=w,t.h(r.tag,N)):t.h(w,N),h=()=>{const w=[];if(s.header){const T=s.header();w.push(T)}else{if(r.title){const T=t.h("view",{class:`${d}__header-title`},[r.title]);w.push(T)}if(r.showClose){const T={class:[`${d}__header-close-icon`],onClick:f},$=r.closeIcon??l,E=m($,T);w.push(E)}}if(w.length===0)return null;const N={class:[`${d}__header`]};return t.h("view",N,w)},C=()=>{const w=[];if(s.default)w.push(s.default());else{const T={class:[`${d}__content`]};if(r.textAlign&&T.class.push(r.textAlign),typeof r.content=="string"){T.innerHTML=r.content;const $=t.h("view",T);w.push($)}else if(typeof r.content=="function"){const $=t.h("view",T,[r.content()]);w.push($)}else{const $=t.h("view",T,[r.content]);w.push($)}}if(w.length===0)return null;const N={class:[`${d}__body`]};return t.h("view",N,w)},A=()=>{if(!r.showFooter)return null;const w=[];if(s.footer)w.push(s.footer());else if(r.plain){if(r.showCancelButton){const T={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},onClick:k};r.cancelButtonClass&&T.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(T.style,r.cancleButtonStyle);const $=t.h("view",T,[r.cancelButtonText??p.cancelText.value]);w.push($)}if(r.showConfirmButton){const T={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},onClick:y};r.confirmButtonClass&&T.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(T.style,r.confirmButtonStyle);const $=t.h("view",T,[r.confirmButtonText??p.confirmText.value]);w.push($)}}else{if(r.showCancelButton){const T={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:k};r.cancelButtonClass&&T.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(T.style,r.cancleButtonStyle);const $=t.h(o,T,{default:()=>[r.cancelButtonText??p.cancelText.value]});w.push($)}if(r.showConfirmButton){const T={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:y};r.confirmButtonClass&&T.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(T.style,r.confirmButtonStyle);const $=t.h(o,T,{default:()=>[r.confirmButtonText??p.confirmText.value]});w.push($)}}if(w.length===0)return null;const N={class:[`${d}__footer`,`${d}__footer--${r.footerDirection}`]};return t.h("view",N,w)};return()=>{const w=[],N=h();N&&w.push(N);const T=C();T&&w.push(T);const $=A();$&&w.push($);const E={class:{[`${d}`]:!0,[`${d}--plain`]:r.plain}},D=t.h("view",E,w),M=[`${d}__popup`];r.popClass&&M.push(r.popClass);const K={};r.width&&(K.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(K.height=typeof r.height=="number"?`${r.height}px`:r.height);const I={...Se(r,Fe),popClass:M.join(" "),style:K,visible:g.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":S,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,I,{default:()=>D})}}}}const{componentName:uk,create:fk,scope:mk}=_("dialog"),zs=fk(dk(uk,mk,me,ze,le.Close));class pk{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 hk{options=new pk;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"),i=`dialog-${a.id}`;r.id=i;const s={setup(){return a.onUpdate=u=>{if(u===!1){const p=document.querySelector(`#${i}`);p&&p.parentNode?.removeChild(p)}},a?.onOpened&&a?.onOpened(),()=>t.h(zs,a)}},c=t.createVNode(s);o.appendChild(r),t.render(c,r)}}const Wt=function(e){return new hk(e)};Wt.install=e=>{e.use(zs),e.config.globalProperties.$dialog=Wt};const gk={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}},yk=(e,n,a)=>({props:{...gk},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:i}=ie.useFoxI18n(n),s=i(o,["pullingText","loosingText","loadingText"]),c=jo(),u=t.ref(),p=Bs(u),d=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),g=t.computed(()=>({[e]:!0})),S=t.computed(()=>{switch(d.status){case"pulling":return r.pulling?"":s.pullingText.value;case"loosing":return r.loosing?"":s.loosingText.value;case"loading":return r.loading?"":s.loadingText.value;default:return""}}),b=t.computed(()=>({transitionDuration:`${o.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),y=t.computed(()=>{const N={};return o.headHeight!=50&&(N.height=ge(o.headHeight)),N}),k=N=>{const T=+(o.pullDistance||o.headHeight);let $=N;return N>T&&(N<T*2?$=(N+T)/2:$=T+N/4),Math.round($)},f=(N,T)=>{const $=+(o.pullDistance||o.headHeight);d.distance=N,T?d.status="loading":N===0?d.status="normal":N<$?d.status="pulling":d.status="loosing",l("change",{status:d.status,distance:N})},m=()=>d.status!=="loading"&&d.status!=="complete",h=()=>p.value==window?As()==0:p.value&&p.value.scrollTop==0,C=N=>{m()&&(h()?(c.start(N),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},A=N=>{m()&&d.moving&&(c.move(N),c.isVertical()&&c.state.deltaY>0&&d.isPullRefresh&&(N.cancelable&&N.preventDefault(),f(k(c.state.deltaY))))},w=()=>{d.moving=!1,d.isPullRefresh&&m()&&c.state.deltaY&&(d.status==="loosing"?(f(+o.headHeight,!0),l("update:modelValue",!0),t.nextTick(()=>l("refresh"))):f(0)),setTimeout(()=>{c.reset()},0)};return t.watch(()=>o.modelValue,N=>{N?f(+o.headHeight,!0):f(0)}),()=>{const N=[];let T=null;if(d.status==="loading"){if(T=r?.loading?.()??null,!T){const z={class:["fox-pull-refresh-container-topbox-icon"]};T=t.h(a,z)}}else d.status==="pulling"?T=r?.pulling?.()??null:d.status==="loosing"&&(T=r?.loosing?.()??null);T&&N.push(T);const $={class:["fox-pull-refresh-container-topbox-text"]},E=t.h("dive",$,[S.value]);N.push(E);const D={class:["fox-pull-refresh-container-topbox"],style:y.value},M=t.h("div",D,N),K={class:"fox-pull-refresh-container",style:b.value},V=t.h("div",K,[M,r?.default?.()]),I={ref:u,class:g.value};return Ho()?Object.assign(I,{onTouchstart:C,onTouchmove:A,onTouchend:w}):Object.assign(I,{onMousedown:C,onMousemove:A,onMouseup:w}),t.h("div",I,[V])}}}),{componentName:bk,create:kk,scope:Sk}=_("pull-refresh"),ta=kk(yk(bk,Sk,le.Loading)),{create:Ck}=_("notify"),wk=Ck({components:{[me.name]:me},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)},i=t.ref(!1),s=t.watch(()=>e.visible,u=>{i.value=e.visible;const p=e.duration;u&&p&&(o=setTimeout(()=>{r()},p))},{immediate:!0});return{onAfterLeave:()=>{l(),s&&s(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:i}}});function Nk(e,n,a,o,l,r){const i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.isShowPopup=s),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]=(...s)=>e.clickCover&&e.clickCover(...s))},[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 na=ne(wk,[["render",Nk]]),oa={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let At=[],Yt=[];const Os=e=>{if(e){const n=document.getElementById(e);Yt=Yt.filter(a=>a.id!==e),At=At.filter(a=>a!==e),n&&document.body.removeChild(n)}else At.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Yt=[],At=[]},Bk=e=>{const n=document.getElementById(e.id);if(n){const a=Yt.find(l=>l.id===e.id);a?e={...oa,...a,...e}:e={...oa,...e};const o=t.createVNode(na,e);return t.render(o,n),o.component.data}},Xt=e=>{e.unmount=Os;let n;if(e.id){if(n=e.id,At.find(r=>r===e.id))return Bk(e)}else n=new Date().getTime()+"";e={...oa,...e},e.id=n,At.push(e.id),Yt.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(na,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},Qt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},la={text(e,n={}){return Qt(e),Xt({...n,msg:e})},primary(e,n={}){return Qt(e),Xt({...n,msg:e,type:"primary"})},success(e,n={}){return Qt(e),Xt({...n,msg:e,type:"success"})},danger(e,n={}){return Qt(e),Xt({...n,msg:e,type:"danger"})},warn(e,n={}){return Qt(e),Xt({...n,msg:e,type:"warning"})},hide(){Os()},install(e){e.use(na)}},{create:Ak}=_("toast"),Tk=Ak({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},i=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},s=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,S=>{S&&i()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),u=()=>{const S=fe(e.iconSize);return t.h(e.icon,{width:S,height:S,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:s,renderIcon:u,hasIcon:c,toastBodyClass:p,toastIconWrapperClass:d,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),$k={key:1,class:"fox-toast-title"},Vk=["innerHTML"];function Ek(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]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",$k,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Vk)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const aa=ne(Tk,[["render",Ek]]),ra={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 Tt=[],Gt=[];const Fs=e=>{if(e){const n=document.getElementById(e);Gt=Gt.filter(a=>a.id!==e),Tt=Tt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Tt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Gt=[],Tt=[]},Dk=e=>{const n=document.getElementById(e.id);if(n){const a=Gt.find(l=>l.id===e.id);a?e={...ra,...a,...e}:e={...ra,...e};const o=t.createVNode(aa,e);return t.render(o,n),$t}},Zt=e=>{e.unmount=Fs;let n;if(e.id){if(n=e.id,Tt.find(l=>l===e.id))return Dk(e)}else n=new Date().getTime()+"";e={...ra,...e},e.id=n,Tt.push(e.id),Gt.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(aa,e);return t.render(o,a),document.body.appendChild(a),$t},no=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},$t={text(e,n={}){return no(e),Zt({...n,type:"text",msg:e})},success(e,n={}){return no(e),Zt({icon:le.Success,...n,msg:e,type:"success"})},fail(e,n={}){return no(e),Zt({icon:le.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return no(e),Zt({icon:le.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Zt({icon:le.Loading,...n,msg:e,type:"loading"})},hide(e){Fs(e)},install(e){e.use(aa),e.config.globalProperties.$toast=$t}},{componentName:S2,create:Ik}=_("audio"),xk=Ik({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:le.Service,[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 y=["webkitVisibilityState","visibilitychange"];try{for(let k=0;k<y.length;k++)document.addEventListener(y[k],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(k){k.message}});const r=y=>{const k=o.value;e.autoplay&&k&&k.paused&&k.play(),l.second=k.duration,l.duration=b(k.duration),n("can-play",y)},i=y=>{l.currentTime=parseInt(y.target.currentTime)},s=()=>{l.currentTime>0&&l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},c=()=>{const y=o.value;l.playing?(y.pause(),l.handPlaying=!1):(y.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},u=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},p=y=>{l.currentDuration=b(y),l.percent=y/l.second*100},d=()=>{l.playing=!1,n("ended")},g=y=>{const k=o.value;k.currentTime=l.second*y/100,n("changeProgress",k.currentTime)},S=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},b=y=>{if(!y)return"00:00:00";let k=parseInt(y),f=Math.floor(k/3600),m=Math.floor((k-f*3600)/60),h=k-f*3600-m*60,C="";return C+=("0"+f.toString()).slice(-2)+":",C+=("0"+m.toString()).slice(-2)+":",C+=("0"+h.toString()).slice(-2),C};return t.watch(()=>l.currentTime,y=>{p(y)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:S,forward:u,fastBack:s,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:s,forward:u,changeStatus:c,progressChange:g,audioEnd:d,onTimeupdate:i,handleMute:S,onCanplay:r,slots:a}}}),vk={class:"fox-audio"},qk={key:0,class:"fox-audio__progress"},Pk={class:"fox-audio__time"},Mk={class:"fox-audio__bar"},Lk={class:"fox-audio__time"},zk={key:1,class:"fox-audio__icon"},Ok=["controls","src","preload","autoplay","loop","muted"];function Fk(e,n,a,o,l,r){const i=t.resolveComponent("fox-range"),s=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",vk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",qk,[t.createElementVNode("div",Pk,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Mk,[t.createVNode(i,{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(()=>n[6]||(n[6]=[t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1)])),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Lk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",zk,[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(s,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):(t.openBlock(),t.createBlock(s,{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,Ok)])}const sa=ne(xk,[["render",Fk]]),{componentName:C2,create:Rk,scope:Kk}=_("audio-operate"),Uk=Rk({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(Kk),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}}}),Hk={class:"fox-audio-operate"};function jk(e,n,a,o,l,r){const i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Hk,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...s)=>e.fastBack&&e.fastBack(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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]=(...s)=>e.forward&&e.forward(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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]=(...s)=>e.handleMute&&e.handleMute(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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 ia=ne(Uk,[["render",jk]]),{componentName:Wk,create:Yk}=_("avatar"),Xk=Yk({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"],i=t.inject("avatarGroup",null),s=t.ref(null),c=t.reactive({lightTheme:!1}),u=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const b=i?.avatarGroupRef?.value?.children;b&&S(b)});const p=t.computed(()=>({[Wk]:!0,[`fox-avatar-${n.value||i?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||i?.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:u.index!=1&&(i?.props?.span?`${i?.props?.span}px`:""),zIndex:i?.props?.zIndex=="right"?`${Math.abs(u.maxIndex-u.index)}`:""})),g=t.computed(()=>({backgroundColor:`${i?.props?.maxBgColor}`,color:`${i?.props?.maxColor}`})),S=b=>{u.maxIndex=b.length;for(let y=0;y<b.length;y++)b[y]&&b[y].classList&&b[y].classList[0]=="fox-avatar"&&b[y].setAttribute("data-index",y+1);u.index=s?.value?.dataset?.index,u.index==u.maxIndex&&u.index!=i?.props?.maxCount&&(u.showMax=!0)};return{classes:p,styles:d,maxStyles:g,avatarGroup:i,visible:c,avatarRef:s,...t.toRefs(u)}}});function Qk(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 Jt=ne(Xk,[["render",Qk]]),{componentName:Gk,create:Zk}=_("avatar-group"),Jk=Zk({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(()=>({[Gk]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:l}),{classes:r,avatarGroupRef:o}}});function _k(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 ca=ne(Jk,[["render",_k]]);var oo=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(oo||{});function eS(e,n,a){let o=0,l=e.length-1,r=null;for(;o<=l;){r=Math.floor((o+l)/2);const i=e[r],s=a(i,n);if(s===1)return r;s===2?o=r+1:s===3&&(l=r-1)}return r}const{componentName:tS,create:nS}=_("list"),Rs=document.documentElement.clientHeight||document.body.clientHeight||667,oS=nS({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Rs},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}),i=t.computed(()=>Math.min(e.containerHeight,Rs)),s=t.computed(()=>Math.ceil(i.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+s.value+e.bufferSize,r.list.length)),u=t.computed(()=>({[tS]:!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)`},g=()=>{r.cachePositions=[];for(let f=0;f<r.list.length;++f)r.cachePositions[f]={index:f,height:e.height,top:f*e.height,bottom:(f+1)*(e.height+e.margin),dValue:0}},S=()=>{let f=l.value.childNodes;f=Array.from(f).filter(N=>N.nodeType===1);const m=f[0];f.forEach((N,T)=>{if(!N)return;const $=qe(N),{height:E}=$,M=r.cachePositions[T+r.start].height-E;M&&(r.cachePositions[T+r.start].bottom-=M,r.cachePositions[T+r.start].height=E,r.cachePositions[T+r.start].dValue=M)});let h=0;m&&(h=r.start);const C=r.cachePositions.length;let A=r.cachePositions[h].dValue;r.cachePositions[h].dValue=0;for(let N=h+1;N<C;++N){const T=r.cachePositions[N];r.cachePositions[N].top=r.cachePositions[N-1].bottom,r.cachePositions[N].bottom=r.cachePositions[N].bottom-A,T.dValue!==0&&(A+=T.dValue,T.dValue=0)}const w=r.cachePositions[C-1].bottom;r.phantomHeight=w},b=(f=0)=>{let m=eS(r.cachePositions,f,(C,A)=>{const w=C.bottom;return w===A?oo.eq:w<A?oo.lt:oo.gt});return r.cachePositions[m].bottom<f&&(m+=1),m},y=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,a.value.scrollTop=0,g(),r.phantomHeight=e.height*r.list.length},k=()=>{const f=a.value?.scrollTop,{originStartIndex:m}=r,h=b(f);h!==m&&(r.originStartIndex=h,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&n("scroll-bottom")),n(f>r.scrollTop?"scroll-up":"scroll-down",f),r.scrollTop=f};return t.watch(()=>e.listData,f=>{if(r.list=f.slice(),r.list.length===f.length)g(),S();else{y();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&S()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:d,visibleData:p,classes:u,getContainerHeight:i,handleScrollEvent:k}}});function lS(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]=(...i)=>e.handleScrollEvent&&e.handleScrollEvent(...i)),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,(i,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:i},[t.renderSlot(e.$slots,"default",{item:i,index:s+e.start})]))),128))],4)],38)}const da=ne(oS,[["render",lS]]),{componentName:aS,create:rS}=_("circleprogress"),sS=rS({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(()=>({[aS]:!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`}),i=t.computed(()=>Ie(e.color)?`url(#${o})`:e.color),s=t.computed(()=>{let p=283,d=p*Number(e.progress)/100;return{stroke:Ie(e.color)?`url(#${o})`:e.color,strokeDasharray:`${d}px ${p}px`}}),c=t.computed(()=>({stroke:e.pathColor})),u=t.computed(()=>{if(!Ie(e.color))return;let p=e.color;const d=Object.keys(p).sort((S,b)=>parseFloat(S)-parseFloat(b));let g=[];return d.map((S,b)=>{let y={key:"",value:""};y.key=S,y.value=p[S],g.push(y)}),g});return{classes:l,hoverStyle:s,pathStyle:c,path:r,hoverColor:i,stop:u,slotDefault:a,refRandomId:o}}}),iS={viewBox:"0 0 100 100"},cS=["id"],dS=["offset","stop-color"],uS=["d","stroke-width"],fS=["d","stroke","stroke-linecap","stroke-width"],mS={class:"fox-circleprogress-text"},pS={key:0};function hS(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",iS,[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,(i,s)=>(t.openBlock(),t.createElementBlock("stop",{key:s,offset:i.key,"stop-color":i.value},null,8,dS))),128))],8,cS)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,uS),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,fS)])),t.createElementVNode("div",mS,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",pS,t.toDisplayString(e.progress)+"%",1))])],6)}const ua=ne(sS,[["render",hS]]),{componentName:gS,create:yS}=_("noticebar"),bS=yS({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:le.Notice,CircleClose:le.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),i=t.computed(()=>({[gS]:!0})),s=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":s.value,[r.animationClass]:!0})),u=t.computed(()=>{let N={};return e.color&&(N.color=e.color),e.background&&(N.background=e.background),e.direction=="vertical"&&(N.height=`${e.height}px`),N}),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 N={};if(e.complexAm)N={transform:`translateY(${r.distance}px)`};else if(r.animate){let T=~~(e.height/e.speed/4);N={transition:`all ${T==0?~~(e.height/e.speed):T}s`,"margin-top":`-${e.height}px`}}return N});t.watch(()=>e.text,N=>{g()}),t.watch(()=>e.list,N=>{r.scrollList=[...N]});const g=N=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const T=o.value.getBoundingClientRect().width,$=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?$>T:e.scrollable,r.isCanScroll?(r.wrapWidth=T,r.offsetWidth=$,r.duration=$/e.speed,r.animationClass="play"):r.animationClass=""},0)},S=N=>{n("click",N)},b=N=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",N)},y=N=>{r.firstRound=!1,n("across-end",N),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},k=()=>{f(),r.timer=setInterval(f,~~(e.height/e.speed/4*1e3)+e.standTime)},f=()=>{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 N=100;for(let T=0;T<N;T++)h(T,!(T<N-1))},e.standTime+100*e.speed)},h=(N,T)=>{setTimeout(()=>{r.distance-=e.height/100,T&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},N*e.speed)},C=N=>{n("click",N)},A=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(a.default?w(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?m():k()},e.standTime)):g(e.text)}),t.watch(()=>a.default?a.default():[],N=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),w(N))});const w=N=>{N&&N.length>0&&(r.scrollList=N[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:s,classes:i,barStyle:u,contentStyle:p,horseLampStyle:d,wrap:o,content:l,handleClick:S,onClickIcon:b,onAnimationEnd:y,go:C,handleClickIcon:A,slots:a,toPxDesc:ge,wrapContentClass:c}}}),kS={key:0,class:"fox-noticebar__page-lefticon"},SS={ref:"wrap",class:"fox-noticebar__page-wrap"},CS={class:"showNotica"},wS=["onClick"];function NS(e,n,a,o,l,r){const i=t.resolveComponent("Notice"),s=t.resolveComponent("CircleClose"),c=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:n[3]||(n[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[e.showLeftIcon?(t.openBlock(),t.createElementBlock("view",kS,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(i,{key:0,size:"16px"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("view",SS,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u)),"on:webkitAnimationEnd":n[1]||(n[1]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=t.withModifiers((...u)=>e.onClickIcon&&e.onClickIcon(...u),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(s,{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",CS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(u,p)=>(t.openBlock(),t.createBlock(c,{key:p,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:u},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(u,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(u)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(u),1)])],12,wS))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=u=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(s,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const fa=ne(bS,[["render",NS]]),BS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09f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OlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:w2,create:$S,scope:VS}=_("empty"),ES={empty:BS,error:AS,network:TS},DS=$S({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=ie.useFoxI18n(VS),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}`:""),s=o.value.startsWith("https://")||o.value.startsWith("http://")||o.value.startsWith("//")?o.value:ES[o.value];return{...a,imageUrl:s,imgStyle:r}}}),IS={class:"fox-empty"},xS=["src"],vS={key:1,class:"fox-empty-description"};function qS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",IS,[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,xS)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",vS,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const ma=ne(DS,[["render",qS]]),{create:PS,scope:MS}=_("video"),LS=PS({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}=ie.useFoxI18n(MS),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,w=>{w.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,w=>{o.state.isMuted=w?w.muted:!1},{immediate:!0});const i=()=>{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)),b(),o.showToolbox?s():(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",g),o.videoElm.addEventListener("timeupdate",mn(d,1e3)))},s=()=>{const w=l.value,N=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=w,o.progressBar.progressElm=N,o.progressBar.pos=N.getBoundingClientRect(),o.videoSet.progress.width=Math.round(N.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",mn(d,1e3)),o.videoElm.addEventListener("ended",g),n("play",o.videoElm)}catch{S()}else o.videoElm.pause(),n("pause",o.videoElm)},u=w=>{var N=Math.floor(w/3600);N<10&&(N="0"+N);var T=Math.floor(w%3600/60);T<10&&(T="0"+T);var $=Math.round(w%3600%60);$<10&&($="0"+$);var E="";return N!=0?E=N+":"+T+":"+$:E=T+":"+$,E},p=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},d=()=>{const w=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*w),o.videoSet.totalTime=u(o.videoElm.duration),o.videoSet.displayTime=u(o.videoElm.currentTime),n("time",o.videoSet.displayTime,o.videoSet.totalTime)},g=()=>{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)},S=()=>{o.state.isError=!0},b=()=>{o.state.vol=e.options.volume},y=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},k=()=>{},f=w=>{let T=w.targetTouches[0].pageX-o.progressBar.pos.left;T<=0&&(T=0),T>=o.videoSet.progress.width&&(T=o.videoSet.progress.width),o.videoSet.progress.current=T;let $=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&h($,o.videoElm.duration)},m=w=>{let T=w.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=T;let $=T/o.videoSet.progress.width;o.videoElm.duration&&h($,o.videoElm.duration)},h=(w,N)=>{o.videoElm.currentTime=Math.floor(w*N)},C=()=>{o.state.isError=!1,i()},A=()=>{o.state.fullScreen?(o.state.fullScreen=!1,document.webkitCancelFullScreen()):(o.state.fullScreen=!0,o.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{i()}),{root:l,...t.toRefs(e),...t.toRefs(o),handleError:S,isDisabled:r,play:c,handleMuted:y,touchSlidSrart:k,touchSlidMove:f,touchSlidEnd:m,retry:C,fullScreen:A,t:a}}}),zS={class:"fox-video",ref:"videocon"},OS=["muted","autoplay","loop","poster","controls","preload"],FS=["src","type"],RS={class:"fox-video-controller__now"},KS={class:"fox-video-controller__progress"},US={class:"fox-video-controller__progress-value",ref:"progressBar"},HS={class:"fox-video-controller__played",ref:"playedBar"},jS={class:"fox-video-controller__total"},WS={class:"fox-video-error"},YS={class:"fox-video-error-tip"};function XS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",zS,[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]=(...i)=>e.handleError&&e.handleError(...i))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,FS)],40,OS),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...i)=>e.play&&e.play(...i))},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]=(...i)=>e.play&&e.play(...i))},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]=(...i)=>e.play&&e.play(...i))}),t.createElementVNode("div",RS,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",KS,[t.createElementVNode("div",US,[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(i=>e.touchSlidMove(i),["stop","prevent"])),onTouchstart:n[5]||(n[5]=t.withModifiers(i=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=t.withModifiers(i=>e.touchSlidEnd(i),["stop"]))},n[10]||(n[10]=[t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1)]),36),t.createElementVNode("div",HS,null,512)],512)]),t.createElementVNode("div",jS,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]=(...i)=>e.handleMuted&&e.handleMuted(...i))},null,2),t.createElementVNode("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...i)=>e.fullScreen&&e.fullScreen(...i))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",WS,[t.createElementVNode("p",YS,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...i)=>e.retry&&e.retry(...i))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const Vt=ne(LS,[["render",XS]]),{create:QS,componentName:GS}=_("steps"),pa=QS({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:a}){const o=t.reactive({children:[]}),l=t.computed(()=>{const s=GS;return{[s]:!0,[`${s}-${e.direction}`]:!0,[`${s}-dot`]:!!e.progressDot}}),r=s=>{s&&o.children.push(s)},i=s=>{n("click-step",s)};return t.provide("parent",{relation:r,state:o,props:e,onEmit:i}),()=>t.h("view",{class:l.value},a.default?.())}}),{create:ZS,componentName:JS}=_("step"),_S=ZS({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()),i=t.computed(()=>{const c=JS;return{[c]:!0,[`${c}-${r.value}`]:!0}}),s=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:i,handleClickStep:s}}}),e1={class:"fox-step-head"},t1={class:"fox-step-icon-inner"},n1={key:1,class:"fox-step-inner"},o1={class:"fox-step-main"},l1={class:"fox-step-title"},a1={key:0},r1={key:0,class:"fox-step-content"},s1=["innerHTML"];function i1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.handleClickStep&&e.handleClickStep(...i))},[t.createElementVNode("view",e1,[n[1]||(n[1]=t.createElementVNode("view",{class:"fox-step-line"},null,-1)),t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",t1,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",n1,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",o1,[t.createElementVNode("view",l1,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",a1,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",r1,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,s1)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ha=ne(_S,[["render",i1]]),{create:c1,componentName:ga}=_("swiper"),d1=c1({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=tt(),i=t.computed(()=>({[ga]:!0})),s=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const x=ga;return{[`${x}-inner`]:!0,[`${x}-vertical`]:s.value}}),u=t.computed(()=>{const x=ga;return{[`${x}-pagination`]:!0,[`${x}-pagination-vertical`]:s.value}}),p=t.computed(()=>s.value?r.deltaY.value:r.deltaX.value),d=t.computed(()=>r.direction.value===e.direction),g=t.computed(()=>l.children.length),S=t.computed(()=>l[s.value?"height":"width"]),b=t.computed(()=>g.value*S.value),y=t.computed(()=>l.rect?(s.value?l.rect.height:l.rect.width)-S.value*g.value:0),k=t.computed(()=>(l.active+g.value)%g.value),f=()=>{let x=0;x=l.offset,l.style={transitionDuration:`${l.moving?0:e.duration}ms`,transform:`translate${s.value?"Y":"X"}(${x}px)`,[s.value?"height":"width"]:`${S.value*g.value}px`,[s.value?"width":"height"]:`${s.value?l.width:l.height}px`}},m=x=>{let H=[];const q=l.childrenVNode.length;let Z=a?.default?.();if(Z=Z.filter(ee=>ee.children&&Array.isArray(ee.children)),Z.forEach(ee=>{H=H.concat(ee.children)}),!q)l.childrenVNode=H.slice(),x.proxy&&l.children.push(x.proxy);else if(q>H.length)l.children=l.children.filter(ee=>x.proxy!==ee);else if(q<H.length){for(let ee=0;ee<q;ee++)if(H[ee].key!==l.childrenVNode[ee].key){x.proxy&&l.children.splice(ee,0,x.proxy),x.vnode&&l.childrenVNode.splice(ee,0,x.vnode);break}q!==H.length&&(x.proxy&&l.children.push(x.proxy),x.vnode&&l.childrenVNode.push(x.vnode))}else l.childrenVNode=H.slice(),x.proxy&&l.children.push(x.proxy)},h=(x,H=0)=>{let q=x*S.value;e.loop||(q=Math.min(q,-y.value));let Z=H-q;return e.loop||(Z=je(Z,y.value,0)),Z},C=x=>{const{active:H}=l;return x?e.loop?je(H+x,-1,g.value):je(H+x,0,g.value-1):H},A=({pace:x=0,offset:H=0,isEmit:q=!1})=>{if(g.value<=1)return;const{active:Z}=l,ee=C(x),j=h(ee,H);if(e.loop){if(l.children[0]&&j!==y.value){const P=j<y.value;l.children[0].setOffset(P?b.value:0)}if(l.children[g.value-1]&&j!==0){const P=j>0;l.children[g.value-1].setOffset(P?-b.value:0)}}l.active=ee,l.offset=j,q&&Z!==l.active&&n("change",k.value),f()},w=()=>{l.moving=!0,l.active<=-1&&A({pace:g.value}),l.active>=g.value&&A({pace:-g.value})},N=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},T=x=>{w(),r.reset(),Qe(()=>{Qe(()=>{l.moving=!1,A({pace:x,isEmit:!0})})})},$=()=>{T(-1)},E=()=>{T(1)},D=x=>{w(),r.reset(),Qe(()=>{l.moving=!1;let H;e.loop&&g.value===x?H=l.active===0?0:x:H=x%g.value,A({pace:H-l.active,isEmit:!0})})},M=()=>{e.autoPlay<=0||g.value<=1||(N(),l.autoplayTimer=setTimeout(()=>{E(),M()},Number(e.autoPlay)))},K=(x=+e.initPage)=>{N(),l.rect=o.value.getBoundingClientRect(),x=Math.min(g.value-1,x),l.width=e.width?+e.width:l.rect.width,l.height=e.height?+e.height:l.rect.height,l.active=x,l.offset=h(l.active),l.moving=!0,f(),M()},V=x=>{e.isPreventDefault&&x.preventDefault(),e.isStopPropagation&&x.stopPropagation(),e.touchable&&(r.start(x),l.touchTime=Date.now(),N(),w())},I=x=>{e.touchable&&l.moving&&(r.move(x),d.value&&A({offset:p.value}))},z=x=>{if(!e.touchable||!l.moving)return;const H=p.value/(Date.now()-l.touchTime);if((Math.abs(H)>.3||Math.abs(p.value)>+(S.value/2).toFixed(2))&&d.value){let Z=0;const ee=s.value?r.offsetY.value:r.offsetX.value;e.loop?Z=ee>0?p.value>0?-1:1:0:Z=-Math[p.value>0?"ceil":"floor"](p.value/S.value),A({pace:Z,isEmit:!0})}else p.value&&A({pace:0});l.moving=!1,f(),M()};return t.provide("parent",{props:e,size:S,relation:m}),ve({prev:$,next:E,to:D}),t.onDeactivated(()=>{N()}),t.onBeforeUnmount(()=>{N()}),t.watch(()=>e.initPage,x=>{t.nextTick(()=>{K(Number(x))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{K()})}),t.watch(()=>e.autoPlay,x=>{x>0?M():N()}),{state:l,classes:i,classesInner:c,classesPagination:u,container:o,activePagination:k,onTouchStart:V,onTouchMove:I,onTouchEnd:z}}});function u1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[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,(i,s)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===s?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===s}),key:s},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const Et=ne(d1,[["render",u1]]),{create:f1,componentName:m1}=_("swiper-item"),p1=f1({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[m1]:!0})),r=t.computed(()=>{const s={},c=a?.props.direction;return a?.size.value&&(s[c==="horizontal"?"width":"height"]=`${a?.size.value}px`),o.offset&&(s.transform=`translate${c==="horizontal"?"X":"Y"}(${o.offset}px)`),s}),i=s=>{o.offset=s};return t.onUnmounted(()=>{a.relation(t.getCurrentInstance(),"unmount")}),ve({setOffset:i}),{style:r,classes:l}}});function h1(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 Dt=ne(p1,[["render",h1]]),Ks={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:g1}=_("image-preview-item"),y1=g1({props:{...Ks,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:{[Vt.name]:Vt,[Dt.name]:Dt},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=tt(),l=t.computed(()=>{const{rootWidth:$,rootHeight:E}=e,D=E/$;return a.imageRatio>D}),r=t.computed(()=>{const $=e.image;if($&&$.src){const{scale:E,moveX:D,moveY:M,moving:K,zooming:V}=a,I={transitionDuration:V||K?"0s":".3s"};if(E!==1){const z=D/E,x=M/E;I.transform=`scale(${E}, ${E}) translate(${z}px, ${x}px)`}return I}return{}}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:$,rootHeight:E}=e,D=l.value?E/a.imageRatio:$;return Math.max(0,(a.scale*D-$)/2)}return 0}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:$,rootHeight:E}=e,D=l.value?E:$*a.imageRatio;return Math.max(0,(a.scale*D-E)/2)}return 0}),c=$=>{const{naturalWidth:E,naturalHeight:D}=$.target;a.imageRatio=D/E},u=()=>{p(1),a.moveX=0,a.moveY=0},p=$=>{$=je($,+e.minZoom,+e.maxZoom+1),$!==a.scale&&(a.scale=$,n("scale",{scale:$,index:e.initNo}))},d=()=>{const $=a.scale>1?1:2;p($),a.moveX=0,a.moveY=0},g=$=>Math.sqrt(($[0].clientX-$[1].clientX)**2+($[0].clientY-$[1].clientY)**2);let S,b,y,k,f,m,h;const C=$=>{const{touches:E}=$,{offsetX:D}=o;o.start($),h=E.length,S=a.moveX,b=a.moveY,m=Date.now(),a.moving=h===1&&a.scale!==1,a.zooming=h===2&&!D.value,a.zooming&&(y=a.scale,k=g($.touches))},A=$=>{const{touches:E}=$;if(o.move($),(a.moving||a.zooming)&&So($,!0),a.moving){const{deltaX:D,deltaY:M}=o,K=D.value+S,V=M.value+b;a.moveX=je(K,-i.value,i.value),a.moveY=je(V,-s.value,s.value)}if(a.zooming&&E.length===2){const D=g(E),M=y*D/k;p(M)}},w=()=>{if(h==1&&e.video&&e.video.source||h>1)return;const{offsetX:$,offsetY:E}=o,D=Date.now()-m,M=250,K=5;$.value<K&&E.value<K&&D<M&&(f?(clearTimeout(f),f=null,d()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},M))},N=$=>{let E=!1;(a.moving||a.zooming)&&(E=!0,a.moving&&S===a.moveX&&b===a.moveY&&(E=!1),$.touches.length||(a.zooming&&(a.moveX=je(a.moveX,-i.value,i.value),a.moveY=je(a.moveY,-s.value,s.value),a.zooming=!1),a.moving=!1,S=0,b=0,y=1,a.scale<1&&u(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),So($,E),w(),o.reset()},T=()=>{n("close")};return t.watch(()=>e.initNo,u),t.watch(()=>e.show,$=>{$||u()}),{...t.toRefs(a),onTouchStart:C,onTouchMove:A,onTouchEnd:N,getDistance:g,imageStyle:r,imageLoad:c,closeSwiper:T}}}),b1=["src"];function k1(e,n,a,o,l,r){const i=t.resolveComponent("fox-video"),s=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(s,{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,b1)):t.createCommentVNode("",!0),e.video&&e.video.source?(t.openBlock(),t.createBlock(i,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):t.createCommentVNode("",!0)],36)]),_:1},8,["onClick"])}const S1=ne(y1,[["render",k1]]),{create:C1}=_("image-preview"),w1=C1({props:{...Ks,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:S1,CircleClose:le.CircleClose,[me.name]:me,[Et.name]:Et},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(()=>ln(e.videos)?[].concat(e.videos).concat(e.images):e.images),i=p=>{p!==o.active&&(o.active=p,n("change",o.active))},s=()=>{Ls(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},u=()=>{if(a.value){const p=qe(a.value);o.rootHeight=p.height,o.rootWidth=p.width}};return t.watch(()=>e.show,p=>{o.showPop=p,p&&(i(e.initNo),u())}),t.watch(()=>e.initNo,p=>{p!=o.active&&i(p)}),t.onMounted(()=>{i(e.initNo)}),{swipeRef:a,...t.toRefs(o),onClose:s,mergeImages:r,setActive:i,iconClasses:l}}}),N1={class:"fox-image-preview",ref:"swipeRef"},B1={key:0,class:"fox-image-preview-index"};function A1(e,n,a,o,l,r){const i=t.resolveComponent("image-preview-item"),s=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),u=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(u,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=p=>e.showPop=p),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",N1,[e.showPop?(t.openBlock(),t.createBlock(s,{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(i,{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",B1,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 Us=ne(w1,[["render",A1]]);class T1{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 $1{options=new T1;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=Ai(a,{name:"image-preview",components:[me,Vt,Et,Dt,it],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(Us,a))}})})}}const lo=e=>new $1(e);lo.install=e=>{e.use(Us)};function V1(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{componentName:N2,create:E1}=_("countup"),D1=E1({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=T=>{T&&o.value.push(T)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:i,scrolling:s,customBgImg:c,type:u}=t.reactive(e);t.watch(()=>e.customChangeNum,(T,$)=>{d(),k(0)}),t.watch(()=>e.machinePrizeLevel,(T,$)=>{r.prizeLevelTrun=T}),t.watch(()=>e.initNum,(T,$)=>{r.current=T,r.valFlag=!1,p()}),t.watch(()=>e.endNum,(T,$)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;i&&(s||c?u!="machine"&&k():(y(),setTimeout(()=>{r.valFlag=!0},300)))},d=()=>{clearInterval(Number(r.timer)),r.timer=null},g=(T,$,E)=>{const D=(T.toString().split(".")[1]||"").length,M=($.toString().split(".")[1]||"").length,K=Math.pow(10,Math.max(D,M));return Number((T*K-$*K).toFixed(0))/K},S=T=>{let{num_total_len:$,pointNum:E,initDigit1:D,initDigit2:M,sortFlag:K}=r,V=K=="add"||K=="equal"?String(M)[T-($-E)]:10-Number(String(M)[T-($-E)]),I=K=="add"||K=="equal"?String(D)[T]:10-Number(String(D)[T]),z=T>$-E-1?-V*100+"%":T<=String(D).length-1?-I*100+"%":0;return z=="-1000%"&&(z=0),z},b=T=>{let{num_total_len:$,pointNum:E,initDigit1:D,initDigit2:M,sortFlag:K}=r,V=String(M)[T-($-E)];return T>$-E-1?V||0:T<=String(D).length-1?String(D)[T]:0},y=()=>{let{endNum:T,initNum:$,speed:E,toFixed:D}=e,M=setInterval(()=>{if($>T)if(r.current<=T||r.current<=E)r.current=T.toFixed(D),clearInterval(M),n("scroll-end"),r.valFlag=!1;else{let K=parseFloat(String(r.current))-parseFloat(String(E));r.current=K.toFixed(D)}else if(r.current>=T)r.current=T.toFixed(D),clearInterval(M),n("scroll-end"),r.valFlag=!1;else{let K=parseFloat(String(r.current))+parseFloat(String(E));r.current=K.toFixed(D)}},e.during)},k=T=>{let{initNum:$,endNum:E,toFixed:D,customBgImg:M}=e;M&&($=e.customChangeNum);let K,V,I,z;$!=0?(D!=0&&($=Number($.toFixed(D))),String($).indexOf(".")>-1?(K=String($).split(".")[0].length,V=String($).split(".")[1].length):(K=String($).length,V=0)):(K=1,V=0),E!=0?(D!=0&&(E=Number(E.toFixed(D))),String(E).indexOf(".")>-1?(I=String(E).split(".")[0].length,z=String(E).split(".")[1].length):(I=String(E).length,z=0)):(I=1,z=0);let x=K>=I?K:I,H=V>=z?V:z;r.num_total_len=x+H,r.pointNum=H,$>E?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=g($,E),r.numberVal=Number(String($))):$<E?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=g(E,$),r.numberVal=Number(String(E))):r.sortFlag="equal";var q=1;for(let ee=0;ee<r.pointNum;ee++)q*=10;var Z=r.numberVal*q;if(r.relNum=Z,D!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(Z).length),String($).indexOf(".")>-1){let ee=String($).split(".");r.initDigit1=Number(ee[0]),r.initDigit2=Number(ee[1])}else r.initDigit1=$,r.initDigit2=0;s&&!M?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let ee=o.value[r.num_total_len-1];f(ee)}):T!==0&&C()},f=T=>{d();var $=1;r.pointNum!=0&&($=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{m(T),r.totalCount=g(r.totalCount,$),r.totalCount<=0&&(d(),n("scroll-end"),r.valFlag=!1)},e.during)},m=T=>{let $=T.getAttribute("turn-number"),E;if(r.sortFlag=="add"?E=parseInt(String($))+1:E=parseInt(String($))-1>=0?parseInt(String($))-1:9,T.setAttribute("turn-number",String(E)),(T.style.transition=="none 0s ease 0s"||E==1||!T.style.transition)&&(T.style.transition=`all linear ${e.during}ms`),E==10||r.sortFlag=="reduce"&&E==0){var D=null;T.style.top=`-${r.sortFlag=="add"?E*100:(10-E)*100}%`,T.setAttribute("turn-number","0"),D=setTimeout(()=>{D&&clearTimeout(D),T.style.transition="none",T.style.top="0",h(T,E)},.975*e.during)}else T.style.top=`-${r.sortFlag=="add"?E*100:(10-E)*100}%`;T.style.top=="-100%"&&r.sortFlag=="reduce"&&m(T.previousSibling)},h=(T,$)=>{setTimeout(()=>{$==10&&T.previousSibling&&m(T.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 T=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(T)==-1&&r.notPrize.push(T)}};V1({machineLuck:()=>{const T=e.machineTurnMore<0?0:e.machineTurnMore;let $=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&A();for(let E=0;E<e.machineNum;E++)setTimeout(()=>{let D=$*(E+1+parseFloat(String(T)));r.prizeYPrev.length!=0&&(r.prizeY[E]=r.prizeYPrev[E]);let M=r.prizeYPrev[E]?r.prizeYPrev[E]:0,K=D+M+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+($-M);r.prizeLevelTrun<0&&(K+=e.numHeight*r.notPrize[E]),N(E,K,M)},500*E)}});const N=(T,$,E)=>{let D=setInterval(()=>{if(E<=$)E+=10,r.prizeY[T]=parseFloat(String(E));else if(clearInterval(D),D=null,r.finshMachine+=1,r.prizeY[T]=$,r.finshMachine==e.machineNum){let M=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(V=>{let I=V;for(;I>M;)I-=M;r.prizeYPrev.push(I)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{p()})}),t.onUnmounted(()=>{d(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:S,turnNumber:b}}}),I1={class:"fox-countup"},x1=["turn-number"];function v1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",I1,[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,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+s,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[s]+"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,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+s,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(s>e.num_total_len-e.pointNum-1?s==e.num_total_len-e.pointNum?s*1.5:s*1.3:s)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[s]*e.numHeight+e.customSpacNum*+String(e.relNum)[s])+"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,(i,s)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:i,style:t.normalizeStyle({top:e.topNumber(s),left:e.numWidth*(s>e.num_total_len-e.pointNum-1?s*1.1:s)+"px"}),"turn-number":e.turnNumber(s)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+u,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,x1))),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 ya=ne(D1,[["render",v1]]),q1=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:P1,create:M1}=_("countdown"),L1=M1({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(()=>({[P1]:!0})),r=t.computed(()=>c(o.restTime)),i=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-q1(e.startTime),o.counting||(o.counting=!0),s()},s=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const S=Date.now()-o.diffTime,b=Math.max(o.handleEndTime-S,0);o.restTime=b,b||(o.counting=!1,d(),n("on-end")),b>0&&s()}}))},c=(S,b)=>{const y=S;let k={d:0,h:0,m:0,s:0,ms:0};const f=1e3,m=60*f,h=60*m,C=24*h;return y>0&&(k.d=y>=f?Math.floor(y/C):0,k.h=Math.floor(y%C/h),k.m=Math.floor(y%h/m),k.s=Math.floor(y%m/f),k.ms=Math.floor(y%f)),b=="custom"?k:u({...k})},u=S=>{let{d:b,h:y,m:k,s:f,ms:m}=S,h=e.format;if(h.includes("DD")?h=h.replace("DD",rt(b)):y+=Number(b)*24,h.includes("HH")?h=h.replace("HH",rt(y)):k+=Number(y)*60,h.includes("mm")?h=h.replace("mm",rt(k)):f+=Number(k)*60,h.includes("ss")?h=h.replace("ss",rt(f)):m+=Number(f)*1e3,h.includes("S")){const C=rt(m,3).toString();h.includes("SSS")?h=h.replace("SSS",C):h.includes("SS")?h=h.replace("SS",C.slice(0,2)):h.includes("S")&&(h=h.replace("SS",C.slice(0,1)))}return h},p=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),s(),n("on-restart",o.restTime))},d=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},g=()=>{e.autoStart||(d(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?i():o.restTime=e.time}),t.watch(()=>o.restTime,S=>{let b=c(S,"custom");n("update:modelValue",b),n("input",b)}),t.watch(()=>e.paused,(S,b)=>{b?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),s()),n("on-restart",o.restTime)):o.counting&&d()}),t.watch(()=>e.endTime,S=>{i()}),t.watch(()=>e.startTime,S=>{i()}),{...t.toRefs(e),slots:a,classes:l,start:p,pause:d,renderTime:r,reset:g}}}),z1=["innerHTML"];function O1(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,z1))],2)}const ba=ne(L1,[["render",O1]]),{create:F1}=_("badge"),R1=F1({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}}}),K1={class:"fox-badge"},U1=["textContent"];function H1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",K1,[t.withDirectives(t.createElementVNode("view",{class:"fox-badge__icon",style:t.normalizeStyle(e.stl)},[t.renderSlot(e.$slots,"icon")],4),[[t.vShow,!e.hidden&&!e.dot&&e.$slots.icon]]),t.renderSlot(e.$slots,"default"),t.withDirectives(t.createElementVNode("view",{textContent:t.toDisplayString(e.content),class:t.normalizeClass(["fox-badge__content fox-badge__content--sup",{"fox-badge__content--dot":e.dot,"fox-badge__content--bubble":!e.dot&&e.bubble}]),style:t.normalizeStyle(e.stl)},null,14,U1),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const ka=ne(R1,[["render",H1]]),{componentName:j1,create:W1}=_("tag"),Y1=W1({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:le.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const i=j1;return{[i]:!0,[`${i}--${e.type}`]:!0,[`${i}--plain`]:e.plain,[`${i}--round`]:e.round,[`${i}--mark`]:e.mark,[`${i}--symbol`]:e.symbol,[`${i}--text`]:e.text,[`${i}--light`]:e.light}}),getStyle:()=>{const i={};return e.textColor?i.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(i.color=e.color),e.plain?(i.background="#fff",i["border-color"]=e.color):!e.text&&e.color&&(i.background=e.color),i},onClose:i=>{i.stopPropagation(),n("close",i)},onClick:i=>{n("click",i)}}}});function X1(e,n,a,o,l,r){const i=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const _t=ne(Y1,[["render",X1]]),{create:Q1}=_("popover"),G1=Q1({components:{FoxPopup:me},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(),i=t.ref();const s=t.computed(()=>{const m="fox-popover-arrow",h=e.location,C=h.split("-")[0];return`${m} ${m}-${C} ${m}--${h}`}),c=t.computed(()=>{const m={},{bgColor:h,arrowOffset:C,location:A}=e,w=A.split("-")[0],N=A.split("-")[1],T=16;return h&&(m[`border${u(w)}Color`]=h),e.arrowOffset!=0&&(["bottom","top"].includes(w)&&(N||(m.left=`calc(50% + ${C}px)`),N=="start"&&(m.left=`${T+C}px`),N=="end"&&(m.right=`${T-C}px`)),["left","right"].includes(w)&&(N||(m.top=`calc(50% - ${C}px)`),N=="start"&&(m.top=`${T-C}px`),N=="end"&&(m.bottom=`${T+C}px`))),m}),u=m=>(m=m.toLowerCase(),m=m.replace(/\b\w+\b/g,h=>h.substring(0,1).toUpperCase()+h.substring(1)),m),p=t.computed(()=>{let m={};if(!r.value||!i.value)return{};const h=i.value.width,C=i.value.height,{width:A,height:w,left:N,top:T}=r.value,{location:$,offset:E}=e,D=$.split("-")[0],M=$.split("-")[1];let K=0,V=0;if(ln(E)&&E.length==2&&(K+=Number(E[1]),V+=Number(E[0])),A){if(["bottom","top"].includes(D)){const I=D=="bottom"?w+K:-(C+K);m.top=`${T+I}px`,M||(m.left=`${-(h-A)/2+N+V}px`),M=="start"&&(m.left=`${N+V}px`),M=="end"&&(m.left=`${r.value.right+V}px`)}if(["left","right"].includes(D)){const I=D=="left"?-(h+K):A+K;m.left=`${N+I}px`,M||(m.top=`${T-C/2+w/2-4+V}px`),M=="start"&&(m.top=`${T+V}px`),M=="end"&&(m.top=`${T+w+V}px`)}}return m}),d=t.computed(()=>{const m={};return e.bgColor&&(m.background=e.bgColor),m}),g=()=>{let m=qe(a.value);e.targetId&&(m=qe(document.querySelector(`#${e.targetId}`))),r.value=m,setTimeout(()=>{i.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{g()},200)}),t.watch(()=>e.visible,m=>{l.value=m,m?(window.addEventListener("touchstart",f,!0),g()):window.removeEventListener("touchstart",f,!0)});const S=m=>{n("update",m),n("update:visible",m)},b=()=>{S(!e.visible),n("open")},y=()=>{n("update:visible",!1),n("close")},k=(m,h)=>{!m.disabled&&n("choose",m,h),e.closeOnClickAction&&y()},f=m=>{const h=a.value,C=o.value;let A=h&&!h.contains(m.target);if(e.targetId){const w=document.querySelector(`#${e.targetId}`);A=w&&!w.contains(m.target)}A&&C&&!C.contains(m.target)&&e.closeOnClickOutside&&y()};return{showPopup:l,openPopover:b,popoverArrow:s,closePopover:y,chooseItem:k,popoverRef:a,popoverContentRef:o,getRootPosition:p,customStyle:d,popoverArrowStyle:c,renderIcon:wr}}}),Z1={ref:"popoverContentRef",class:"fox-popover-content-group"},J1=["onClick"],_1={class:"fox-popover-menu-item-name"};function eC(e,n,a,o,l,r){const i=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]=(...s)=>e.openPopover&&e.openPopover(...s))},[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(i,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.showPopup=s),"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",Z1,[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,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([s.className,s.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(u=>e.chooseItem(s,c),["stop"])},[s.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(s.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",_1,t.toDisplayString(s.name),1)],10,J1))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const en=ne(G1,[["render",eC]]),tC=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:nC}=_("skeleton"),oC=nC(tC({[Jt.name]:Jt})),lC={key:0},aC={key:1,class:"fox-skeleton"},rC={key:0,class:"fox-skeleton-animation"},sC={class:"fox-skeleton-content"};function iC(e,n,a,o,l,r){const i=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",aC,[e.animated?(t.openBlock(),t.createElementBlock("view",rC)):t.createCommentVNode("",!0),t.createElementVNode("view",sC,[e.avatar?(t.openBlock(),t.createBlock(i,{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),s=>(t.openBlock(),t.createElementBlock("view",{key:s,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockLine")),style:t.normalizeStyle({height:e.height})},null,6))),128))],4)])])):(t.openBlock(),t.createElementBlock("view",lC,[t.renderSlot(e.$slots,"default")]))}const Sa=ne(oC,[["render",iC]]),{create:cC,componentName:dC}=_("collapse"),uC=cC({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(()=>({[dC]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,u,p=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,u,p)},i=c=>{if(e.accordion)o.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(o.value))if(o.value.includes(c)){const u=o.value.filter(p=>p!==c);r(u,c,!1)}else{const u=o.value.concat([c]);r(u,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},s=c=>e.accordion?o.value===c:Array.isArray(o.value)?o.value.includes(c):!1;return t.provide("collapseParent",{updateVal:i,isExpanded:s}),{collapseDom:a,classes:l}}});function fC(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 Ca=ne(uC,[["render",fC]]),{create:mC,componentName:pC}=_("collapse-item"),hC=mC({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:le.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=t.ref(null),a=t.ref(null),o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const g=pC;return{[g]:!0,[g+"__border"]:e.border}}),i=t.computed(()=>l?l.isExpanded(e.name):!1),s=t.ref(i.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},u=()=>{i.value&&(s.value="auto")},p=()=>{s.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const g=a.value?.offsetHeight;s.value=g?`${g}px`:"auto"})})},d=()=>{const g=a.value?.offsetHeight;s.value=g?`${g}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{s.value="0px"})})};return t.watch(i,g=>{g?p():d()}),{classes:r,renderIcon:wr,wrapperRef:n,contentRef:a,open:p,toggle:c,wrapperHeight:s,expanded:i,onTransitionEnd:u}}}),gC={class:"fox-collapse-item__title-main"},yC={class:"fox-collapse-item__title-main-value"},bC=["innerHTML"],kC={key:2,class:"fox-collapse-item__title-label"},SC={key:0,class:"fox-collapse-item__title-sub"},CC=["innerHTML"],wC={key:0,class:"fox-collapse__item-extraWrapper"},NC={class:"fox-collapse__item-extraWrapper__extraRender"},BC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function AC(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]=(...i)=>e.toggle&&e.toggle(...i))},[t.createElementVNode("view",gC,[t.createElementVNode("view",yC,[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,bC)),e.label?(t.openBlock(),t.createElementBlock("view",kC,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",SC,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,CC)),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",wC,[t.createElementVNode("div",NC,[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]=(...i)=>e.onTransitionEnd&&e.onTransitionEnd(...i))},[t.createElementVNode("view",BC,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const wa=ne(hC,[["render",AC]]),TC=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:$C,create:VC,scope:EC}=_("table"),DC=VC({components:{RenderColumn:TC,DownArrow:le.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:o}=ie.useFoxI18n(EC),l=t.reactive({curData:e.data}),r=t.computed(()=>({[$C]:!0})),i=S=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${S.align?S.align:""}`]:!0}),s=S=>S.stylehead?S.stylehead:"",c=S=>S.stylecolumn?S.stylecolumn:"",u=S=>e.columns.filter(b=>b.key===S)[0],p=S=>{const b=e.columns.filter(y=>y.key===S);return b[0].stylecolumn?b[0].stylecolumn:""},d=S=>{S.sorter&&(n("sorter",S),l.curData=typeof S.sorter=="function"?l.curData.sort(S.sorter):S.sorter==="default"?l.curData.sort():l.curData)},g=()=>e.columns.map(S=>[S.key,S.render]);return t.watch(()=>e.data,S=>{l.curData=S.slice()}),{...t.toRefs(l),classes:r,cellClasses:i,getColumnItem:u,getColumnItemStyle:p,handleSorterClick:d,sortDataItem:g,t:o,stylehead:s,stylecolumn:c}}}),IC={class:"fox-table__main__head"},xC={class:"fox-table__main__head__tr"},vC=["onClick"],qC={class:"fox-table__main__body"},PC={key:1},MC={key:0,class:"fox-table__nodata"},LC={key:0,class:"fox-table__nodata__text"},zC={key:1,class:"fox-table__summary"},OC=["innerHTML"];function FC(e,n,a,o,l,r){const i=t.resolveComponent("DownArrow"),s=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",IC,[t.createElementVNode("view",xC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:u=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(i,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,vC))),128))])]),t.createElementVNode("view",qC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([u,p])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(u))]),key:u,style:t.normalizeStyle(e.getColumnItemStyle(u))},[typeof c[u]=="function"||typeof p=="function"?(t.openBlock(),t.createBlock(s,{key:0,slots:[p,c[u]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",PC,t.toDisplayString(c[u]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",MC,[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",LC,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",zC,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,OC)])):t.createCommentVNode("",!0)],2)}const Na=ne(DC,[["render",FC]]),{componentName:RC,create:KC}=_("ellipsis"),UC=KC({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const a=t.ref(null);let o=null,l=0;const r=t.ref(),i=t.reactive({exceeded:!1,expanded:!1}),s=t.computed(()=>({[RC]:!0}));t.watch(()=>e.content,(y,k)=>{y!=k&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!a.value)return;const y=window.getComputedStyle(a.value);o=document.createElement("div"),Array.prototype.slice.apply(y).forEach(m=>{o.style.setProperty(m,y.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 f=g(y.lineHeight==="normal"?e.lineHeight:y.lineHeight);l=Math.floor(f*(Number(e.rows)+.5)+g(y.paddingTop)+g(y.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),u()},u=()=>{if(o.offsetHeight<=l)i.exceeded=!1,document.body.removeChild(o);else{i.exceeded=!0;const y=e.content.length,k=Math.floor((0+y)/2),f=e.direction==="middle"?d([0,k],[k,y]):p(0,y);r.value=f,document.body.removeChild(o)}},p=(y,k)=>{const f=i.expanded?e.collapseText:e.expandText,m=e.content.length;if(k-y<=1)return e.direction==="end"?{leading:e.content.slice(0,y)+e.symbol}:{tailing:e.symbol+e.content.slice(k,m)};const h=Math.round((y+k)/2);return e.direction==="end"?o.innerText=e.content.slice(0,h)+e.symbol+f:o.innerText=f+e.symbol+e.content.slice(h,m),o.offsetHeight<=l?e.direction==="end"?p(h,k):p(y,h):e.direction==="end"?p(y,h):p(h,k)},d=(y,k)=>{const f=i.expanded?e.collapseText:e.expandText,m=e.content.length;if(y[1]-y[0]<=1&&k[1]-k[0]<=1)return{leading:e.content.slice(0,y[0])+e.symbol,tailing:e.symbol+e.content.slice(k[1],m)};const h=Math.floor((y[0]+y[1])/2),C=Math.ceil((k[0]+k[1])/2);return o.innerText=e.content.slice(0,h)+e.symbol+f+e.symbol+e.content.slice(C,m),o.offsetHeight<=l?d([h,y[1]],[k[0],C]):d([y[0],h],[C,k[1]])},g=y=>{if(!y)return 0;const k=y.match(/^\d*(\.\d*)?/);return k?Number(k[0]):0},S=y=>{y==1?(i.expanded=!0,n("change","expand")):(i.expanded=!1,n("change","collapse"))},b=()=>{n("click")};return{...t.toRefs(i),root:a,ellipsis:r,classes:s,clickHandle:S,handleClick:b}}}),HC={key:0},jC={key:1},WC={key:2};function YC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[2]||(n[2]=(...i)=>e.handleClick&&e.handleClick(...i)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",HC,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",jC,[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(i=>e.clickHandle(1),["stop"]))},t.toDisplayString(e.expandText),1)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.tailing),1)])):t.createCommentVNode("",!0),e.exceeded&&e.expanded?(t.openBlock(),t.createElementBlock("view",WC,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:n[1]||(n[1]=t.withModifiers(i=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const Ba=ne(UC,[["render",YC]]),{componentName:XC,create:QC}=_("animate"),GC=QC({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 i=t.computed(()=>({"fox-animate__container":!0,[`${XC}-${a.value}`]:l.value==="initial"||r.clicked?a.value:!1,loop:o.value}));const s=c=>{r.clicked=!0,o.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",c)};return{...t.toRefs(r),classes:i,handleClick:s}}}),ZC={class:"fox-animate"};function JC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",ZC,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const Aa=ne(GC,[["render",JC]]),{componentName:_C,create:ew}=_("watermark"),tw=ew({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:i,height:s,rotate:c,image:u,imageWidth:p,imageHeight:d,content:g,fontStyle:S,fontWeight:b,fontColor:y,fontSize:k,fontFamily:f}=e,m=()=>{const C=document.createElement("canvas"),A=window.devicePixelRatio,w=C.getContext("2d"),N=`${(l+i)*A}px`,T=`${(r+s)*A}px`,$=i*A,E=s*A;if(C.setAttribute("width",N),C.setAttribute("height",T),w){if(u){w.translate($/2,E/2),w.rotate(Math.PI/180*Number(c));const D=new Image;D.crossOrigin="anonymous",D.referrerPolicy="no-referrer",D.src=u,D.onload=()=>{w.drawImage(D,-p*A/2,-d*A/2,p*A,d*A),w.restore(),a.base64Url=C.toDataURL()}}else if(g){w.textBaseline="middle",w.textAlign="center",w.translate($/2,E/2),w.rotate(Math.PI/180*Number(c));const D=Number(k)*A;w.font=`${S} normal ${b} ${D}px/${E}px ${f}`,w.fillStyle=y,w.fillText(g,0,0),w.restore(),a.base64Url=C.toDataURL()}}else throw new Error("当前环境不支持Canvas")};m(),t.watch(()=>[o,l,r,i,s,c,u,p,d,g,S,b,y,k,f],()=>{m()});const h=t.computed(()=>{const C=_C;return{[C]:!0,[`${C}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:h}}});function nw(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 Ta=ne(tw,[["render",nw]]);function ow(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:lw,create:aw}=_("trend-arrow"),rw=aw({components:{TriangleUp:le.TriangleUp,TriangleDown:le.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=t.reactive({rateTrend:e.rate>0}),a=t.computed(()=>({[lw]:!0})),o=t.computed(()=>{const{rate:r,digits:i,showSign:s,showZero:c}=e;n.rateTrend=r>0;const u=Math.abs(r);return!c&&r===0?"--":`${s&&r!==0?n.rateTrend?"+":"-":""}${ow(Number(u),i)}%`}),l=t.computed(()=>{const{dropColor:r,riseColor:i,syncTextColor:s,textColor:c,rate:u}=e;return{color:u===0?c:s?n.rateTrend?i:r:c}});return{...t.toRefs(n),classes:a,calcRate:o,calcStyle:l}}});function sw(e,n,a,o,l,r){const i=t.resolveComponent("TriangleUp"),s=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(i,{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(s,{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 $a=ne(rw,[["render",sw]]),{create:iw}=_("tour"),cw=iw({components:{[en.name]:en,Close:le.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),l=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:p,maskWidth:d,maskHeight:g}=e,{width:S,height:b,left:y,top:k}=o.value,f=[y+S/2,k+b/2],m=Number(d||S),h=Number(g||b);return{width:`${m+ +p[1]*2}px`,height:`${h+ +p[0]*2}px`,top:`${f[1]-h/2-+p[0]}px`,left:`${f[0]-m/2-+p[1]}px`}}),i=p=>{p=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,t.nextTick(()=>{a.showPopup=!0,s()}),n("change",a.active)},s=()=>{const p=document.querySelector(`#${e.steps[a.active].target}`),d=qe(p);o.value=d},c=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},u=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{a.active=0,s()}),t.watch(()=>e.modelValue,p=>{p&&s(),a.active=0,a.showTour=p,a.showPopup=p}),{...t.toRefs(a),classes:l,maskStyle:r,changeStep:i,close:c,handleClickMask:u}}}),dw={key:0,class:"fox-tour-content"},uw={key:0,class:"fox-tour-content-top"},fw={class:"fox-tour-content-inner"},mw={class:"fox-tour-content-bottom"},pw={class:"fox-tour-content-bottom-init"},hw={class:"fox-tour-content-bottom-operate"},gw={key:1,class:"fox-tour-content fox-tour-content-tile"},yw={class:"fox-tour-content-inner"};function bw(e,n,a,o,l,r){const i=t.resolveComponent("Close"),s=t.resolveComponent("fox-popover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,u)=>(t.openBlock(),t.createElementBlock("div",{key:u,style:{height:"0"}},[u==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(s,{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",dw,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",uw,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...p)=>e.close&&e.close(...p))},[t.createVNode(i,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",fw,t.toDisplayString(c.content),1),t.createElementVNode("div",mw,[t.createElementVNode("div",pw,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",hw,[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",gw,[t.createElementVNode("div",yw,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(cw,[["render",bw]]),{componentName:B2,create:kw,scope:Sw}=_("address"),Cw=kw({components:{Location:le.Location,Location2:le.Location2,Check:le.Check,Close:le.Close,Left:le.Left,[me.name]:me,[Kt.name]:Kt},inheritAttrs:!1,props:{...Fe,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}=ie.useFoxI18n(Sw),o=t.ref(null),l=t.ref(null),r=t.ref(e.visible),i=t.ref(e.type),s=t.ref(0),c=t.ref(0),u=t.ref(["province","city","country","town"]),p=t.ref(null),d=t.ref([0,0,0,0]),g=t.computed(()=>{switch(s.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),S=I=>{if(!Array.isArray(I))throw new TypeError("params muse be array.");if(!I.length)return[];I.forEach(x=>{if(!x.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const z=[];return I=I.sort((x,H)=>x.title.localeCompare(H.title)),I.forEach(x=>{const H=z.findIndex(q=>q.title===x.title);H<=-1?z.push({title:x.title,list:[].concat(x)}):z[H].list.push(x)}),z};let b=t.ref([]),y=t.reactive({});const k=t.ref("self"),f=t.ref(20),m=()=>{const I=e.modelValue,z=I.length;if(z>0){if(s.value=z-1,g.value.length==0){s.value=0;return}for(let x=0;x<z;x++){let H=[];switch(x){case 0:H=e.province;break;case 1:H=e.city;break;case 2:H=e.country;break;default:H=e.town}b.value[x]=H.filter(q=>q.id==I[x])[0]}C()}},h=(I,z)=>I&&I.name||s.value<z&&I?I.name:e.columnsPlaceholder[z]||a("select"),C=()=>{N(),t.nextTick(()=>{const I=l.value&&l.value.getElementsByClassName("active")[0];if(I){const z=I.offsetLeft;f.value=z||20}})},A=I=>{const z=s.value;c.value=s.value;const x={custom:u.value[z]};b.value[z]=I;for(let H=z+2;H<4;H++)b.value.splice(H,1);z<3?(s.value=z+1,C(),x.next=u.value[s.value],x.value=I,n("change",x)):(E(),n("update:modelValue"))},w=(I,z)=>{c.value=s.value,h(I,z)&&(s.value=z,C())},N=()=>{const I=p.value,z=c.value,x=d.value[s.value];I?.scrollTop&&(d.value[z]=I?.scrollTop),t.nextTick(()=>{I?.scrollTo({top:x,behavior:"auto"})})},T=I=>{const z=e.existAddress;let x={};z.forEach(H=>{H&&H.selectedAddress&&(x=H),H.selectedAddress=!1}),I.selectedAddress=!0,y=I,n("selected",x,I,z),E()},$=()=>{b.value=[],s.value=0,C()},E=(I="self")=>{k.value=I=="cross"?"cross":"self",r.value=!1},D=()=>{k.value="mask"},M=()=>{const I={addressIdStr:"",addressStr:"",province:b.value[0],city:b.value[1],country:b.value[2],town:b.value[3]},z={data:{},type:i.value};["custom","custom2"].includes(i.value)?([0,1,2,3].forEach(x=>{const H=b.value[x];I.addressIdStr+=`${x?"_":""}${H&&H.id||0}`,I.addressStr+=H&&H.name||""}),z.data=I):z.data=y,$(),k.value=="self"?n("close",z):n("close-mask",{closeWay:k}),n("update:visible",!1)},K=()=>{const I=i.value;i.value=I=="exist"?"custom":"exist",$(),n("switch-module",{type:i.value})},V=(I,z)=>{A(z)};return t.watch(()=>e.visible,I=>{r.value=I}),t.watch(()=>r.value,I=>{I&&m()}),{showPopup:r,privateType:i,tabIndex:s,tabName:u,selectedRegion:b,switchModule:K,closeWay:k,close:M,getTabName:h,nextAreaList:A,regionLine:o,tabRegion:l,lineDistance:f,changeRegionTab:w,selectedExist:T,clickOverlay:D,handClose:E,handleElevatorItem:V,initCustomSelected:m,...t.toRefs(e),t:a,regionList:g,transformData:S,scrollDom:p}}}),ww={class:"fox-address"},Nw={class:"fox-address__header"},Bw={class:"fox-address__header__title"},Aw={key:0,class:"fox-address__custom"},Tw={class:"fox-address__region",ref:"tabRegion"},$w=["onClick"],Vw={key:0,class:"active fox-address__region-item"},Ew={key:0,class:"fox-address__detail"},Dw={class:"fox-address__detail-list",ref:"scrollDom"},Iw=["onClick"],xw={key:1,class:"fox-address__elevator-group"},vw={key:1,class:"fox-address__exist"},qw={class:"fox-address__exist-group"},Pw={class:"fox-address__exist-group-list"},Mw=["onClick"],Lw={class:"fox-address__exist-item-info"},zw={key:0,class:"fox-address__exist-item-info-name"},Ow={key:1,class:"fox-address__exist-item-info-phone"},Fw={class:"fox-address__exist-item-info-bottom"},Rw={class:"fox-address__exist-choose-btn"};function Kw(e,n,a,o,l,r){const i=t.resolveComponent("Left"),s=t.resolveComponent("Close"),c=t.resolveComponent("Check"),u=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]=g=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=g=>e.showPopup=g),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",ww,[t.createElementVNode("view",Nw,[t.createElementVNode("view",{class:"fox-address__header-back",onClick:n[0]||(n[0]=(...g)=>e.switchModule&&e.switchModule(...g))},[t.renderSlot(e.$slots,"back-icon",{},()=>[t.withDirectives(t.createVNode(i,{size:"14px"},null,512),[[t.vShow,e.type=="exist"&&e.privateType=="custom"]])])]),t.createElementVNode("view",Bw,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]=g=>e.handClose("cross"))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(s,{color:"#cccccc",size:"14px"})])])]),["custom","custom2"].includes(e.privateType)?(t.openBlock(),t.createElementBlock("view",Aw,[t.createElementVNode("view",Tw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(g,S)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",S==e.tabIndex?"active":""]),key:S,onClick:b=>e.changeRegionTab(g,S)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(g,S)),1)],10,$w))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",Vw,[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",Ew,[t.createElementVNode("ul",Dw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(g,S)=>(t.openBlock(),t.createElementBlock("li",{key:S,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==g.id?"active":""]),onClick:b=>e.nextAreaList(g)},[t.createElementVNode("div",null,[e.selectedRegion[e.tabIndex]?.id==g.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(g.name),1)])],10,Iw))),128))],512)])):(t.openBlock(),t.createElementBlock("view",xw,[t.createVNode(u,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",vw,[t.createElementVNode("div",qw,[t.createElementVNode("ul",Pw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(g,S)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",g.selectedAddress?"active":""]),key:S,onClick:b=>e.selectedExist(g)},[g.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(p,{class:"fox-address-select-icon",size:"13px"})]),g.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",Lw,[g.name?(t.openBlock(),t.createElementBlock("div",zw,t.toDisplayString(g.name),1)):t.createCommentVNode("",!0),g.phone?(t.openBlock(),t.createElementBlock("div",Ow,t.toDisplayString(g.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Fw,[t.createElementVNode("view",null,t.toDisplayString(g.provinceName+g.cityName+g.countyName+g.townName+g.addressDetail),1)])])],10,Mw))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:n[2]||(n[2]=(...g)=>e.switchModule&&e.switchModule(...g))},[t.createElementVNode("div",Rw,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 Ea=ne(Cw,[["render",Kw]]),{componentName:Uw,create:Hw}=_("barrage"),jw=Hw({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(()=>({[Uw]:!0}));let l=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),i=null;const s=t.ref(e.danmu),c=t.ref(e.rows),u=t.ref(e.top),p=t.ref(0),d=e.speeds,g=t.ref(0);t.onMounted(()=>{S(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(y(),p.value=0,b("hidden")):document.visibilityState==="visible"&&S()})}),t.onUnmounted(()=>{s.value=[],y()});const S=()=>{g.value=l.value.offsetWidth,a&&b("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${g.value}px`),f()},300)},b=h=>{let A=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const w=[];A&&Array.from(A).forEach(N=>{h=="init"?(N.style.opacity="0",w.push(N)):(N.classList="",N.style={})}),h=="init"&&(s.value=w)},y=()=>{i&&(clearTimeout(i),i=null)};t.watch(()=>e.danmu,h=>{e.danmu.length>0&&(s.value=[...h])});const k=h=>{const C=p.value%s.value.length;!e.loop&&p.value===s.value.length?s.value.splice(s.value.length,0,h):s.value.splice(C,0,h)},f=()=>{y(),i=setTimeout(()=>{m()},e.frequency)},m=()=>{const h=e.loop?p.value%s.value.length:p.value;let C=document.createElement("view");a&&typeof s.value[h]=="object"?(C=s.value[h],C?.classList?.add("fox-barrage__item")):(C.innerHTML=s.value[h],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=h%c.value*(A+u.value)+20+"px",C.style.opacity="1",!a){const w=C.offsetWidth;C.style.width=w+20+"px"}C.addEventListener("animationend",()=>{a?C.classList.remove("move"):r.value.removeChild(C)}),!(!e.loop&&p.value>=s.value.length-1)&&(p.value++,p.value>=s.value.length&&(p.value=0),C.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:o,danmuList:s,dmBody:l,dmContainer:r,add:k}}});function Ww(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 Da=ne(jw,[["render",Ww]]),{componentName:Yw,create:Xw,scope:Qw}=_("signature"),Gw=Xw({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:{[ze.name]:ze},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:a}=ie.useFoxI18n(Qw),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),i=t.computed(()=>({[Yw]:!0,[`${e.customClass}`]:e.customClass})),s=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"))},u=()=>{l.value.addEventListener(s.events[0],p,!1)},p=m=>{m.preventDefault(),s.ctx.beginPath(),s.ctx.lineWidth=e.lineWidth,s.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(s.events[1],d,!1),l.value.addEventListener(s.events[2],g,!1),l.value.addEventListener(s.events[3],S,!1)},d=m=>{m.preventDefault();let h=s.isSupportTouch?m.touches[0]:m;n("signing",h);let C=l.value.getBoundingClientRect(),A=h.clientX-C.left,w=h.clientY-C.top;s.ctx.lineTo(A,w),s.ctx.stroke()},g=m=>{m.preventDefault(),n("end"),l.value.removeEventListener(s.events[1],d,!1),l.value.removeEventListener(s.events[2],g,!1)},S=m=>{m.preventDefault(),l.value.removeEventListener(s.events[1],d,!1),l.value.removeEventListener(s.events[2],g,!1)},b=()=>{l.value.addEventListener(s.events[2],g,!1),s.ctx.clearRect(0,0,s.canvasWidth,s.canvasHeight),s.ctx.closePath(),n("clear")},y=()=>{f(l.value)},k=m=>{if(!m)return!0;var h=document.createElement("canvas");return h.width=m.width,h.height=m.height,m?.toDataURL()==h.toDataURL()},f=m=>{let h;switch(e.type){case"png":h=m.toDataURL("image/png");break;case"jpg":h=m.toDataURL("image/jpeg",.8);break}const C=k(m)?"请绘制签名":m,A=k(m)?"":h;n("confirm",C,A)};return t.onMounted(()=>{c()&&(s.ctx=l.value.getContext("2d"),s.canvasWidth=r.value.offsetWidth,s.canvasHeight=r.value.offsetHeight,u())}),{...o,...t.toRefs(s),canvas:l,wrap:r,isCanvasSupported:c,confirm:y,clear:b,classes:i}}}),Zw={class:"fox-signature-inner",ref:"wrap"},Jw=["height","width"],_w={key:0,class:"fox-signature-unsopport"};function eN(e,n,a,o,l,r){const i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",Zw,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,Jw),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",_w,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(i,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=s=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(i,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=s=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const Ia=ne(Gw,[["render",eN]]),{componentName:tN,create:nN,scope:oN}=_("time-select"),lN=nN({components:{[me.name]:me},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}=ie.useFoxI18n(oN),o=t.computed(()=>({[tN]:!0})),l=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),i=t.computed(()=>e.currentTime),s=()=>{n.emit("update:visible",!1),n.emit("select",i.value)};return t.provide("currentKey",r),t.provide("currentTime",i),{classes:o,popStyle:l,props:e,close:s,t:a}}}),aN={class:"fox-time-select__title"},rN={class:"fox-time-select__title__fixed"},sN={key:0},iN={class:"fox-time-select__content"},cN={class:"fox-time-select__content__pannel"},dN={class:"fox-time-select__content__detail"};function uN(e,n,a,o,l,r){const i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{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",aN,[t.createElementVNode("view",rN,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",sN,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",iN,[t.createElementVNode("view",cN,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",dN,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const xa=ne(lN,[["render",uN]]),{componentName:fN,create:mN}=_("time-pannel"),pN=mN({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(()=>({[fN]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=i=>{n.emit("change",i)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function hN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=i=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const va=ne(pN,[["render",hN]]),{componentName:gN,create:yN}=_("time-detail"),bN=yN({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(()=>({[gN]:!0})),i=u=>{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===u).length>0}},s=t.computed(()=>e.times.find(u=>u.key==l.currentKey).list),c=u=>{n.emit("select",u)};return{classes:r,...t.toRefs(l),getClass:i,renderData:s,handleTime:c}}}),kN={class:"fox-time-detail__detail fox-time-detail__detail--moring"},SN={class:"fox-time-detail__detail__list"},CN=["onClick"];function wN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",kN,[t.createElementVNode("view",SN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.renderData,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.getClass(i)),key:i,onClick:s=>e.handleTime(i)},t.toDisplayString(i),11,CN))),128))])])],2)}const qa=ne(bN,[["render",wN]]),{componentName:A2,create:NN,scope:BN}=_("sku-header"),AN=NN({props:{goods:{type:Object,default:{}}},emits:[],components:{[et.name]:et},setup(e,{emit:n,slots:a}){const{t:o}=ie.useFoxI18n(BN);return{getSlots:r=>a[r],t:o}}}),TN={class:"fox-sku-header"},$N=["src"],VN={class:"fox-sku-header-right"},EN={key:3,class:"fox-sku-header-right-extra"};function DN(e,n,a,o,l,r){const i=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",TN,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,$N),t.createElementVNode("view",VN,[e.getSlots("sku-header-price")?t.renderSlot(e.$slots,"sku-header-price",{key:0}):(t.openBlock(),t.createBlock(i,{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",EN,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const IN=ne(AN,[["render",DN]]),{componentName:T2,create:xN}=_("sku-select"),vN=xN({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,i,s)=>{l.checkFlag||l.disable||n("selectSku",{sku:l,skuIndex:r,parentSku:i,parentIndex:s})}}}}),qN={class:"fox-sku-select"},PN={class:"fox-sku-select-item-title"},MN={class:"fox-sku-select-item-skus"},LN=["onClick"];function zN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",qN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:i.id},[t.createElementVNode("view",PN,t.toDisplayString(i.name),1),t.createElementVNode("view",MN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.list,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:p=>e.changeSaleChild(c,u,i,s),key:c.name},t.toDisplayString(c.name),11,LN))),128))])]))),128))])}const ON=ne(vN,[["render",zN]]),{componentName:$2,create:FN}=_("sku-stepper"),RN=FN({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:{[nt.name]:nt},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,u)=>{n("overLimit",{action:u,value:parseInt(a.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&at(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),KN={class:"fox-sku-stepper"},UN={class:"fox-sku-stepper-title"},HN=["innerHTML"],jN={class:"fox-sku-stepper-count"};function WN(e,n,a,o,l,r){const i=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",KN,[t.createElementVNode("view",UN,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,HN),t.createElementVNode("view",jN,[t.createVNode(i,{modelValue:e.goodsCount,"onUpdate:modelValue":n[0]||(n[0]=s=>e.goodsCount=s),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 YN=ne(RN,[["render",WN]]),{componentName:V2,create:XN}=_("sku-operate"),QN=XN({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:i=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[i],clickBtnOperate:i=>{n("clickBtnOperate",i)},getSlots:i=>a[i]}}}),GN={key:0,class:"fox-sku-operate"},ZN={key:0,class:"fox-sku-operate-desc"},JN={key:1,class:"fox-sku-operate-btn"},_N=["onClick"];function eB(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",GN,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",ZN,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",JN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.btnOptions,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass([`fox-sku-operate-btn-${i}`,"fox-sku-operate-btn-item"]),key:s,onClick:c=>e.clickBtnOperate(i)},t.toDisplayString(e.getBtnDesc(i)),11,_N))),128))]))])):t.createCommentVNode("",!0)}const tB=ne(QN,[["render",eB]]),{componentName:E2,create:nB,scope:oB}=_("sku"),lB=nB({props:{...Fe,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:IN,SkuSelect:ON,SkuStepper:YN,SkuOperate:tB,[me.name]:me},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=ie.useFoxI18n(oB),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),i=t.ref(e.stepperMin);t.watch(()=>e.visible,k=>{r.value=k}),t.watch(()=>r.value,k=>{k==!1&&y()}),t.onMounted(()=>{});const s=k=>a[k],c=k=>{n("select-sku",k)},u=k=>{i.value=k,n("change-stepper",k)},p=k=>{n("add",k)},d=k=>{n("reduce",k)},g=k=>{n("over-limit",k)},S=k=>{n("click-btn-operate",{type:k,value:i.value})},b=k=>{k=="icon"&&n("click-close-icon"),k=="overlay"&&n("click-overlay"),k=="close"&&n("close"),r.value=!1},y=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:b,selectSku:c,changeStepper:u,stepperOverLimit:g,clickBtnOperate:S,add:p,reduce:d,getSlots:s,...l}}}),aB={class:"fox-sku"},rB={class:"fox-sku-content"};function sB(e,n,a,o,l,r){const i=t.resolveComponent("sku-header"),s=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),u=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",aB,[t.renderSlot(e.$slots,"sku-header"),e.getSlots("sku-header")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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",rB,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(u,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const Pa=ne(lB,[["render",sB]]),{create:iB}=_("card"),cB=iB({components:{[et.name]:et,[_t.name]:_t},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]}}}),dB={class:"fox-card"},uB={class:"fox-card__left"},fB=["src"],mB={class:"fox-card__right"},pB={class:"fox-card__right__title"},hB={key:0,class:"fox-card__right__price"},gB={class:"fox-card__right__other"},yB={class:"fox-card__right__shop"},bB={class:"fox-card__right__shop__name"};function kB(e,n,a,o,l,r){const i=t.resolveComponent("fox-price"),s=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",dB,[t.createElementVNode("div",uB,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,fB)]),t.createElementVNode("div",mB,[t.createElementVNode("div",pB,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",hB,[e.isHaveSlot("price")?t.renderSlot(e.$slots,"price",{key:0}):(t.openBlock(),t.createBlock(i,{key:1,price:e.price},null,8,["price"])),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:2}):(t.openBlock(),t.createBlock(i,{key:3,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",gB,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(s,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(s,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",yB,[t.createElementVNode("div",bB,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Ma=ne(cB,[["render",kB]]),{create:SB,scope:CB}=_("ecard"),wB=SB({components:{[nt.name]:nt},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}=ie.useFoxI18n(CB),o=t.ref(null),l=t.ref(null),r=t.ref(""),i=t.ref(e.cardAmountMin),s=t.ref(e.modelValue),c=(g,S)=>{o.value=S,i.value=e.cardAmountMin,l.value=g.price,n("change",g),n("update:modelValue",g.price)},u=g=>{let b=g.target.value.replace(/[^\d]/g,"");r.value=b,l.value=b,Number(b)>e.cardAmountMax&&(r.value=e.cardAmountMax,l.value=e.cardAmountMax),Number(b)<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",i.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},d=g=>{i.value=g,n("changeStep",i.value,l.value)};return t.watch(()=>e.modelValue,g=>{s.value=g}),{handleClick:c,changeStep:d,change:u,inputClick:p,stepValue:i,currentIndex:o,inputValue:r,money:s,t:a}}}),NB={class:"fox-ecard"},BB={class:"fox-ecard__title"},AB={class:"fox-ecard__list"},TB=["onClick"],$B={class:"fox-ecard__list__input--con"},VB=["placeholder"],EB={class:"fox-ecard__list__step"};function DB(e,n,a,o,l,r){const i=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",NB,[t.createElementVNode("view",BB,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",AB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:u=>e.handleClick(s,c)},t.toDisplayString(s.price),11,TB))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:n[2]||(n[2]=(...s)=>e.inputClick&&e.inputClick(...s))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",$B,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":n[0]||(n[0]=s=>e.inputValue=s),onInput:n[1]||(n[1]=(...s)=>e.change&&e.change(...s)),placeholder:e.placeholder||e.t("placeholder")},null,40,VB),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",EB,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(i,{modelValue:e.stepValue,"onUpdate:modelValue":n[3]||(n[3]=s=>e.stepValue=s),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const La=ne(wB,[["render",DB]]),{create:IB,scope:xB}=_("address-list-item"),vB=IB({components:{Del:le.Del,Edit:le.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(xB);return{delClick:i=>{n("delIcon",i,e.item),i.stopPropagation()},editClick:i=>{n("editIcon",i,e.item),i.stopPropagation()},contentsClick:i=>{n("clickItem",i,e.item),i.stopPropagation()},t:a}}}),qB={class:"fox-address-list-item__info"},PB={class:"fox-address-list-item__info-contact"},MB={class:"fox-address-list-item__info-contact-name"},LB={class:"fox-address-list-item__info-contact-tel"},zB={key:0,class:"fox-address-list-item__info-contact-default"},OB={class:"fox-address-list-item__info-handle"},FB={class:"fox-address-list-item__addr"};function RB(e,n,a,o,l,r){const i=t.resolveComponent("Del"),s=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",qB,[t.createElementVNode("div",PB,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",MB,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",LB,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",zB,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",OB,[t.renderSlot(e.$slots,"content-icon",{},()=>[t.createVNode(i,{name:"del",class:"fox-address-list-item__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(s,{name:"edit",class:"fox-address-list-item__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",FB,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const Hs=ne(vB,[["render",RB]]),{create:KB}=_("address-list-general"),UB=KB({props:{item:{type:Object,default:{}},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1}},emits:["delIcon","editIcon","clickItem","longDown","longCopy","longSet","longDel","swipeDel"],components:{ItemContents:Hs,[ze.name]:ze,[jt.name]:jt},setup(e,{emit:n}){const a=()=>t.h(Hs,{item:e.item,onDelIcon(A){i(A)},onEditIcon(A){s(A)},onClickItem(A){c(A)}});let o=null;const l=t.ref(!1),r=t.ref(!1),i=A=>{n("delIcon",A,e.item),A.stopPropagation()},s=A=>{n("editIcon",A,e.item),A.stopPropagation()},c=A=>{l.value||(n("clickItem",A,e.item),A.stopPropagation())},u=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:s,delClick:i,delLongClick:u,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}}}}),HB={key:0,class:"fox-address-list-general"},jB={class:"fox-address-list-swipe"};function WB(e,n,a,o,l,r){const i=t.resolveComponent("fox-button"),s=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(s,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(i,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>n[5]||(n[5]=[t.createTextVNode("删除")])),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",jB,[(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",HB,[(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 YB=ne(UB,[["render",WB]]),{componentName:XB,create:QB,scope:GB}=_("address-list"),ZB=QB({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:YB,[ze.name]:ze},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(GB),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[XB]:!0})),i=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(y=>cr(l,y,e.dataOptions)))};t.watch(()=>e.data,()=>i(),{deep:!0});const s=(y,k)=>{n("delIcon",y,k),y.stopPropagation()},c=(y,k)=>{n("editIcon",y,k),y.stopPropagation()},u=(y,k)=>{n("clickItem",y,k),y.stopPropagation()},p=(y,k)=>{n("longCopy",y,k),y.stopPropagation()},d=(y,k)=>{n("longSet",y,k),y.stopPropagation()},g=(y,k)=>{n("longDel",y,k),y.stopPropagation()},S=(y,k)=>{n("swipeDel",y,k),y.stopPropagation()},b=y=>{n("add",y),y.stopPropagation()};return t.onMounted(()=>{i()}),{classes:r,clickDelIcon:s,clickEditIcon:c,clickContentItem:u,clickLongCopy:p,clickLongSet:d,clickLongDel:g,clickSwipeDel:S,addAddress:b,dataArray:o,t:a}}});function JB(e,n,a,o,l,r){const i=t.resolveComponent("general-shell"),s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,u)=>(t.openBlock(),t.createBlock(i,{key:u,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:n[0]||(n[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(s,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const za=ne(ZB,[["render",JB]]),{componentName:D2,create:_B}=_("category"),eA=_B({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:i=>{o.value=i,n("change",i)},checkIndex:o,categoryLeft:l}}}),tA={class:"fox-category"},nA={class:"fox-category__cateList"},oA={key:0},lA=["onClick"];function aA(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",tA,[t.createElementVNode("div",nA,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",oA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.category,(i,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category__cateListLeft",key:s},[t.createElementVNode("div",{class:t.normalizeClass([e.checkIndex==s?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(s)},t.toDisplayString(i.catName),11,lA)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Oa=ne(eA,[["render",aA]]),{componentName:I2,create:rA}=_("category-pane"),sA=rA({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),iA={class:"fox-category-pane"},cA={key:0,class:"fox-category-pane__cateListRight"},dA={class:"fox-category-pane__childTitle"},uA={key:0,class:"fox-category-pane__childItemList"},fA=["onClick"],mA=["src"],pA={class:"fox-category-pane__skuImg"},hA={key:1,class:"fox-category-pane__cateListRight"},gA={class:"fox-category-pane__childTitle"},yA={key:0,class:"fox-category-pane__childItemList"},bA=["onClick"],kA={class:"fox-category-pane__skuName"},SA={key:2,class:"fox-category-pane__selfItemList"},CA=["onClick"];function wA(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",iA,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",cA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(i,s)=>(t.openBlock(),t.createElementBlock("div",{key:s},[t.createElementVNode("div",dA,t.toDisplayString(i?.catName),1),i?.catType==1?(t.openBlock(),t.createElementBlock("div",uA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:u,onClick:p=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,mA),t.createElementVNode("div",pA,t.toDisplayString(c?.catName),1)],8,fA))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",hA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(i,s)=>(t.openBlock(),t.createElementBlock("div",{key:s},[t.createElementVNode("div",gA,t.toDisplayString(i?.catName),1),i?.catType==1?(t.openBlock(),t.createElementBlock("div",yA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:u,onClick:p=>e.onChange(c)},[t.createElementVNode("div",kA,t.toDisplayString(c?.catName),1)],8,bA))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",SA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.customCategory,(i,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__skuName",key:s,onClick:c=>e.onChange(i)},t.toDisplayString(i?.catName),9,CA))),128))])):t.createCommentVNode("",!0)])}const Fa=ne(sA,[["render",wA]]),{componentName:x2,create:NA}=_("comment-header"),BA=NA({components:{[Bt.name]:Bt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),AA={class:"fox-comment-header__user"},TA={class:"fox-comment-header__user-avter"},$A=["src"],VA={class:"fox-comment-header__user-score"},EA={key:0,class:"fox-comment-header__time"};function DA(e,n,a,o,l,r){const i=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]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",AA,[t.createElementVNode("view",TA,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,$A)):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",VA,[t.createVNode(i,{modelValue:e.info.score,"onUpdate:modelValue":n[0]||(n[0]=s=>e.info.score=s),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",EA,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(i,{modelValue:e.info.score,"onUpdate:modelValue":n[2]||(n[2]=s=>e.info.score=s),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 IA=ne(BA,[["render",DA]]),{componentName:v2,create:xA}=_("comment-images"),vA=xA({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:le.Right},emits:["click","clickImages"],setup(e,{emit:n}){const a=t.ref(!1),o=t.ref(1),l=t.ref([]);return t.watch(()=>[e.videos,e.images],i=>{i[0].length>0&&i[0].forEach(s=>{s.type="video"}),l.value=i[0].concat(i[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(i=>{i.type="video"}),l.value=e.videos.concat(e.images)}),{isShowImage:a,initIndex:o,showImages:(i,s)=>{const{videos:c,images:u}=e,p=i=="img"?s-c.length:s;n("clickImages",{type:i,index:p,value:i=="img"?u[p]:c[p]})},totalImages:l}}}),qA=["onClick"],PA=["src"],MA=["onClick"],LA=["src"],zA={key:0,class:"fox-comment-images__mask"};function OA(e,n,a,o,l,r){const i=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,(s,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:s.id,onClick:u=>e.showImages("video",c)},[t.createElementVNode("img",{src:s.mainUrl},null,8,PA),n[0]||(n[0]=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1))],8,qA))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(s,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:u=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:s.smallImgUrl?s.smallImgUrl:s.imgUrl},null,8,LA),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",zA,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(i,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,MA)):t.createCommentVNode("",!0)],64))),128))],2)}const FA=ne(vA,[["render",OA]]),{componentName:q2,create:RA,scope:KA}=_("comment-bottom"),UA=RA({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:le.Fabulous,Comment:le.Comment,MoreX:le.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(KA),o=t.ref(!1),l=t.ref([]);return t.onMounted(()=>{const s=["replay","like","more"];e.operation&&e.operation.forEach(c=>{s.includes(c)&&l.value.push(c)})}),{showPopver:o,operate:s=>{s=="more"&&(o.value=!o.value),n("clickOperate",s)},mergeOp:l,handleClick:()=>{n("handleClick")},t:a}}}),HA={class:"fox-comment-bottom"},jA={key:0},WA={class:"fox-comment-bottom__cpx"},YA=["onClick"];function XA(e,n,a,o,l,r){const i=t.resolveComponent("Fabulous"),s=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",HA,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...u)=>e.handleClick&&e.handleClick(...u)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",jA,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",WA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(u,p)=>(t.openBlock(),t.createElementBlock("view",{key:p,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${u}`]),onClick:d=>e.operate(u)},[u!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[u]),1),u=="like"?(t.openBlock(),t.createBlock(i,{key:0})):(t.openBlock(),t.createBlock(s,{key:1}))],64)):t.createCommentVNode("",!0),u=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=d=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,YA))),128))])])}const QA=ne(UA,[["render",XA]]),{componentName:GA,create:ZA,scope:JA}=_("comment"),_A=ZA({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:IA,CommentImages:FA,CommentBottom:QA,Right:le.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(JA),o=t.computed(()=>({[GA]:!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}}}),e2=["innerHTML"],t2={class:"fox-comment__follow-title"},n2={class:"fox-comment__follow-com"},o2={key:0,class:"fox-comment__follow-img"};function l2(e,n,a,o,l,r){const i=t.resolveComponent("comment-header"),s=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),u=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(i,{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,e2),t.createVNode(s,{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",t2,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",n2,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",o2,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",e.follow.images.length))+" ",1),t.createVNode(c,{width:"12px"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(u,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const Ra=ne(_A,[["render",l2]]),a2=[$o,Eo,Do,Io,qo,Be,zo,Oo,Fo,Ro,Uo,vn,Xo,Go,el,nl,Hn,jn,ol,Yn,Xn,al,sl,kt,il,dl,to,fl,pl,Pn,Mn,Ln,yl,bl,kl,dt,Sl,Cl,wl,Nl,Bl,Al,Tl,ze,$l,Vl,it,me,El,Dl,Il,xl,Rt,vl,ql,Pl,Ml,Ll,zl,Ol,Fl,Rl,Kt,Kl,Ul,Hl,jl,Wl,Yl,Xl,Ut,Jn,zn,Un,Rn,nt,Bt,zt,Ql,Gl,Zl,jt,Jl,_l,ea,Wt,Zn,ta,la,Gn,$t,sa,ia,Jt,ca,da,Ht,ua,fa,ma,Vt,pa,ha,Et,Dt,et,lo,ya,ba,ka,_t,en,Sa,Ca,wa,Na,Ba,Aa,Ta,$a,Va,Ea,Da,Ia,xa,va,qa,Pa,Ma,La,za,Oa,Fa,Ra],r2=new Bi(a2,"4.0.0");B.ActionSheet=Jl,B.ActionsheetItem=fl,B.ActionsheetPane=to,B.Address=Ea,B.AddressList=za,B.Animate=Aa,B.Audio=sa,B.AudioOperate=ia,B.Avatar=Jt,B.AvatarGroup=ca,B.BackTop=_l,B.Badge=ka,B.Barrage=Da,B.Broadcast=Co,B.BroadcastKey=we,B.Button=ze,B.Calendar=Un,B.CalendarItem=nl,B.Card=Ma,B.Cascader=zn,B.CascaderItem=Go,B.Category=Oa,B.CategoryPane=Fa,B.Cell=$l,B.CellGroup=Vl,B.Checkbox=Yn,B.CheckboxGroup=Xn,B.CheckboxItem=al,B.CircleProgress=ua,B.Col=Il,B.Collapse=Ca,B.CollapseItem=wa,B.Comment=Ra,B.Content=Io,B.CountDown=ba,B.CountUp=ya,B.DataItemsKey=pt,B.DateItem=el,B.DatePicker=Rn,B.DateUtils=re,B.Dialog=Wt,B.Divider=vl,B.Domain=pn,B.DomainKey=xe,B.DomainProvider=Al,B.Drag=ea,B.Dropdown=Cl,B.Ecard=La,B.Elevator=Kt,B.Ellipsis=Ba,B.Empty=ma,B.FixedNav=Ll,B.FloatingButton=bl,B.FooterBar=Do,B.FoxActionSheet=Jl,B.FoxActionsheetItem=fl,B.FoxActionsheetPane=to,B.FoxAddress=Ea,B.FoxAddressList=za,B.FoxAnimate=Aa,B.FoxAudio=sa,B.FoxAudioOperate=ia,B.FoxAvatar=Jt,B.FoxAvatarGroup=ca,B.FoxBackTop=_l,B.FoxBadge=ka,B.FoxBarrage=Da,B.FoxButton=ze,B.FoxCalendar=Un,B.FoxCalendarItem=nl,B.FoxCard=Ma,B.FoxCascader=zn,B.FoxCascaderItem=Go,B.FoxCategory=Oa,B.FoxCategoryPane=Fa,B.FoxCell=$l,B.FoxCellGroup=Vl,B.FoxCheckbox=Yn,B.FoxCheckboxGroup=Xn,B.FoxCheckboxItem=al,B.FoxCircleProgress=ua,B.FoxCol=Il,B.FoxCollapse=Ca,B.FoxCollapseItem=wa,B.FoxComment=Ra,B.FoxContent=Io,B.FoxCountDown=ba,B.FoxCountUp=ya,B.FoxDateItem=el,B.FoxDatePicker=Rn,B.FoxDialog=Wt,B.FoxDivider=vl,B.FoxDomainProvider=Al,B.FoxDrag=ea,B.FoxDropdown=Cl,B.FoxEcard=La,B.FoxElevator=Kt,B.FoxEllipsis=Ba,B.FoxEmpty=ma,B.FoxFixedNav=Ll,B.FoxFloatingButton=bl,B.FoxFooterBar=Do,B.FoxGrid=ql,B.FoxGridItem=Pl,B.FoxGroup=qo,B.FoxHeaderBar=Eo,B.FoxHintText=kt,B.FoxImage=El,B.FoxImagePreview=lo,B.FoxIndicator=jl,B.FoxInfiniteLoading=Zn,B.FoxInputItem=Fo,B.FoxInputNumber=nt,B.FoxInputnumberItem=pl,B.FoxItem=Be,B.FoxLayout=Dl,B.FoxLinkItem=il,B.FoxList=da,B.FoxMapping=Bl,B.FoxMenu=zl,B.FoxMenuItem=Ol,B.FoxMessageBox=dt,B.FoxMoneyItem=Ro,B.FoxMoreButton=kl,B.FoxNavbar=Ml,B.FoxNoticeBar=fa,B.FoxNotify=la,B.FoxNumberKeyboard=Zl,B.FoxOverLay=it,B.FoxPage=$o,B.FoxPagination=Kl,B.FoxPicker=zt,B.FoxPickerItem=Xo,B.FoxPopover=en,B.FoxPopoverDialog=wl,B.FoxPopup=me,B.FoxPopupWrapper=Sl,B.FoxPrice=et,B.FoxProgress=Ht,B.FoxPullRefresh=ta,B.FoxRadio=Hn,B.FoxRadioGroup=jn,B.FoxRadioItem=ol,B.FoxRange=Ut,B.FoxRate=Bt,B.FoxRateItem=dl,B.FoxRollingProvider=Tl,B.FoxRow=xl,B.FoxRowItem=zo,B.FoxSearchBar=Jn,B.FoxShortPassword=Ql,B.FoxSideNavBar=Wl,B.FoxSideNavBarItem=Yl,B.FoxSignature=Ia,B.FoxSkeleton=Sa,B.FoxSku=Pa,B.FoxSlotItem=Oo,B.FoxStep=ha,B.FoxSteps=pa,B.FoxStepsBar=yl,B.FoxSticky=Rt,B.FoxSubSideNavBar=Xl,B.FoxSwipe=jt,B.FoxSwiper=Et,B.FoxSwiperItem=Dt,B.FoxSwitch=Gn,B.FoxSwitchItem=sl,B.FoxTabPane=Hl,B.FoxTabbar=Fl,B.FoxTabbarItem=Rl,B.FoxTable=Na,B.FoxTabs=Ul,B.FoxTabsBar=Pn,B.FoxTabsContainer=Mn,B.FoxTabsPane=Ln,B.FoxTag=_t,B.FoxText=Nl,B.FoxTextarea=vn,B.FoxTextareaItem=Uo,B.FoxTimeDetail=qa,B.FoxTimePannel=va,B.FoxTimeSelect=xa,B.FoxToast=$t,B.FoxTour=Va,B.FoxTrendArrow=$a,B.FoxUploader=Gl,B.FoxVideo=Vt,B.FoxWaterMark=Ta,B.Grid=ql,B.GridItem=Pl,B.Group=qo,B.HeaderBar=Eo,B.HintText=kt,B.Image=El,B.ImagePreview=lo,B.Indicator=jl,B.InfiniteLoading=Zn,B.InputItem=Fo,B.InputNumber=nt,B.InputnumberItem=pl,B.Item=Be,B.Layout=Dl,B.LinkItem=il,B.List=da,B.Mapping=Bl,B.Menu=zl,B.MenuItem=Ol,B.MessageBox=dt,B.MoneyItem=Ro,B.MoreButton=kl,B.Navbar=Ml,B.NoticeBar=fa,B.Notify=la,B.NumberKeyboard=Zl,B.OverLay=it,B.Page=$o,B.Pagination=Kl,B.Picker=zt,B.PickerItem=Xo,B.Popover=en,B.PopoverDialog=wl,B.Popup=me,B.PopupWrapper=Sl,B.Price=et,B.PriorityPolicy=Sn,B.Progress=Ht,B.PullRefresh=ta,B.Radio=Hn,B.RadioGroup=jn,B.RadioItem=ol,B.Range=Ut,B.Rate=Bt,B.RateItem=dl,B.RollingProvider=Tl,B.Row=xl,B.RowItem=zo,B.SearchBar=Jn,B.ShortPassword=Ql,B.SideNavBar=Wl,B.SideNavBarItem=Yl,B.Signature=Ia,B.Skeleton=Sa,B.Sku=Pa,B.SlotItem=Oo,B.Step=ha,B.Steps=pa,B.StepsBar=yl,B.Sticky=Rt,B.SubSideNavBar=Xl,B.Swipe=jt,B.Swiper=Et,B.SwiperItem=Dt,B.Switch=Gn,B.SwitchItem=sl,B.TabPane=Hl,B.Tabbar=Fl,B.TabbarItem=Rl,B.Table=Na,B.Tabs=Ul,B.TabsBar=Pn,B.TabsContainer=Mn,B.TabsPane=Ln,B.Tag=_t,B.Text=Nl,B.Textarea=vn,B.TextareaItem=Uo,B.TimeDetail=qa,B.TimePannel=va,B.TimeSelect=xa,B.Toast=$t,B.Tour=Va,B.TrendArrow=$a,B.UniqueID=In,B.Uploader=Gl,B.ValidateSchema=pr,B.ValidateSchemaKey=Le,B.Video=Vt,B.WaterMark=Ta,B.cancelRaf=Ka,B.clamp=je,B.clearNonNumber=ko,B.clone=yo,B.compareTo=ho,B.createBroadcast=cn,B.createValidateSchema=un,B.debounce=Ze,B.debounceRef=mi,B.decimalLength=sr,B.default=r2,B.defineBroadcast=li,B.defineConfigDomain=gr,B.defineDataItem=br,B.defineDomain=Bo,B.defineItem=Te,B.definePageState=kr,B.defineSimpleItem=gt,B.deleteGlobalValidator=ci,B.disabledProperty=De,B.divide=po,B.excludeProps=mt,B.extend=lt,B.floatData=cr,B.getGlobalIcons=Bn,B.getGlobalValidateCheckEvents=ur,B.getGlobalValidateResetEvents=mr,B.getPageContentAreaHeight=bn,B.getPageContentAreaWidth=kn,B.getPageFooterAreaHeight=yn,B.getPageHeaderAreaHeight=gn,B.getRootDomain=ht,B.hasSymbol=er,B.includeProps=Se,B.indexOf=ni,B.installRules=yr,B.integerLength=rr,B.isArray=ln,B.isArrayLike=nr,B.isBrowser=Ge,B.isDate=He,B.isESModule=Zs,B.isEmptyString=ue,B.isEqual=Me,B.isFunction=an,B.isHidden=sn,B.isInnerPage=gi,B.isMap=Xs,B.isNil=Za,B.isNumberString=ar,B.isObject=Ie,B.isPlainObject=go,B.isPromise=ft,B.isRegExp=lr,B.isSet=Qs,B.isString=Ja,B.isSubPage=yi,B.isSymbol=Gs,B.isTouch=Ho,B.isWindow=tr,B.lastIndexOf=oi,B.makeArray=ti,B.merge=or,B.multiply=Xa,B.negate=Qa,B.nextTick=_s,B.numberFormat=on,B.objectToString=_a,B.once=pi,B.overrideGlobalIcons=xi,B.overrideGlobalValidateHandler=si,B.padZero=rt,B.preventDefault=So,B.property=Ve,B.raf=Ue,B.readonlyProperty=Ee,B.setGlobalValidateCheckEvents=di,B.setGlobalValidateHandler=ri,B.setGlobalValidateMessages=fi,B.setGlobalValidateResetEvents=ui,B.setGlobalValidator=ii,B.throttle=mn,B.toBoolean=be,B.toNumber=pe,B.toPadding=Oe,B.toPx=fe,B.toPxDesc=ge,B.toTypeString=rn,B.toValue=Pe,B.tryTimes=wo,B.typeOf=at,B.unNumberFormat=Ga,B.updatePageState=Ao,B.useBroadcast=vt,B.useDomain=We,B.useExpose=ve,B.useInnerSize=Nn,B.usePageState=hn,B.usePosition=Po,B.useRawTouch=jo,B.useRect=qe,B.useSize=Vo,B.useTouch=tt,B.valueLength=ke,Object.defineProperties(B,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|