@fox-js/foxui 4.0.1-64 → 4.0.1-66

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 CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";/*!
2
- * @fox-js/foxui-base v4.0.0 Thu Sep 12 2024 20:21:18 GMT+0800 (中国标准时间)
2
+ * @fox-js/foxui-base v4.0.0 Sat Oct 19 2024 16:37:40 GMT+0800 (中国标准时间)
3
3
  */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),nt=require("@fox-js/validator"),ne=require("@fox-js/icons-vue"),se=require("@fox-js/i18n"),en=window,Ws=typeof window<"u";function Ys(){return typeof en<"u"?en.requestAnimationFrame||en.webkitRequestAnimationFrame||function(e){en.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Er(e){Ws?cancelAnimationFrame(e):clearTimeout(e)}const Xe=Ys();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
5
- */function fn(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=Be(e),n=Be(n),[e,n]=Oo(Be(e),Be(n)),a==1&&(o==1?e=oo(e):n=oo(n));let l=xr(e,n);return a?a==2?"-"+Be(l):e.length<l.length?Be(l.substring(1)):"-"+Be(oo(l)):Be(l)}function oo(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 xr(n,r)}function Be(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 Oo(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 xr(e,n){[e,n]=Oo(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 ke=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(ke||{});function Ut(e,n=0,a=ke.HALF_EVEN){if(a===ke.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let 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=Ut(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,za(l[1],r,o,a)?(o?"-":"")+lo(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&&za(i,s,o,a)&&(s=lo(s),s.length>n)?(o?"-":"")+lo(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function za(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===ke.DOWN||!a&&o===ke.FLOOR||a&&o===ke.CEILING)return!1;if(o===ke.UP||a&&o===ke.FLOOR||!a&&o===ke.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 ke.HALF_DOWN:return!1;case ke.HALF_UP:return!0;case ke.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function lo(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 go(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 u=e;e=n,n=u}if(n=="0")return"0";let s=n.length,i=0,c=[],f=s-1,p="";for(let u=0;u<s;u++)c[u]=e.length-1;for(let u=0;u<2*e.length;u++){let h=0;for(let k=n.length-1;k>=f&&k>=0;k--)c[k]>-1&&c[k]<e.length&&(h+=parseInt(e[c[k]--])*parseInt(n[k]));h+=i,i=Math.floor(h/10),p=h%10+p,f--}return p=xt(Xs(p,r)),a==1&&(p="-"+p),p}function Xs(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 yo(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=Be(n.replace(".","")),l>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Be(e+new Array(l+1).join("0"));else if(l>f)e=e.replace(".",""),e=Be(e+new Array(l-f+1).join("0"));else if(l<f){e=e.replace(".","");let p=e.length-f+l;e=Be(e.substring(0,p)+"."+e.substring(p))}else l==f&&(e=Be(e.replace(".","")))}let r=0,s=n.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let f=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(f+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=f,i="0."+new Array(f).join("0")}for(a=a+2;r<=a;){let f=0;for(;parseInt(c)>=parseInt(n);)c=fn(c,"-"+n),f++;i+=f,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(o==1?"-":"")+Be(Ut(i,a-2))}function vo(e,n){return e=e.toString(),n=n.toString(),n=bo(n),fn(e,n)}function bo(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Fa(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Ra(e),Ra(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=vo(e,go(n,Ut(yo(e,n),0,ke.FLOOR)));return a+o}function Ra(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Oa(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]=Oo(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?a?-1:1:a?1:-1;return 0}class ie{value;static RoundingModes=ke;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,o]=n.split(/[eE]/);a=Be(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+Be(a.substring(0,o))+(a.length>o?"."+a.substring(o):""):n=l+"0."+new Array(-o+1).join("0")+a}return n}constructor(n="0"){this.value=ie.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,o){if(!(a||o))a=3,o=",";else if(!(a&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ie.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var s="",i=r;i>0;)i<a?(a=i,i=0):i-=a,s=n.substring(i,i+a)+(i<r-a&&i>=0?o:"")+s;return(l?"-":"")+s+n.substring(r)}getPrettyValue(n,a){return ie.getPrettyValue(this.value,n,a)}static round(n,a=0,o=ke.HALF_EVEN){if(n=ie.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return Ut(n,a,o)}round(n=0,a=ke.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ie(Ut(this.value,n,a))}static floor(n){return n=ie.validate(n),n.indexOf(".")===-1?n:ie.round(n,0,ke.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ie(this.value):new ie(this.value).round(0,ke.FLOOR)}static ceil(n){return n=ie.validate(n),n.indexOf(".")===-1?n:ie.round(n,0,ke.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ie(this.value):new ie(this.value).round(0,ke.CEILING)}static add(n,a){return n=ie.validate(n),a=ie.validate(a),fn(n,a)}add(n){return new ie(fn(this.value,n.getValue()))}static subtract(n,a){return n=ie.validate(n),a=ie.validate(a),vo(n,a)}subtract(n){return new ie(vo(this.value,n.getValue()))}static multiply(n,a){return n=ie.validate(n),a=ie.validate(a),go(n,a)}multiply(n){return new ie(go(this.value,n.getValue()))}static divide(n,a,o){return n=ie.validate(n),a=ie.validate(a),yo(n,a,o)}divide(n,a){return new ie(yo(this.value,n.getValue(),a))}static modulus(n,a){return n=ie.validate(n),a=ie.validate(a),Fa(n,a)}modulus(n){return new ie(Fa(this.value,n.getValue()))}static compareTo(n,a){return n=ie.validate(n),a=ie.validate(a),Oa(n,a)}compareTo(n){return Oa(this.value,n.getValue())}static negate(n){return n=ie.validate(n),bo(n)}negate(){return new ie(bo(this.value))}}function Dr(e,n){return ie.multiply(`${e}`,`${n}`)}function Ko(e,n,a=8){return ie.divide(`${e}`,`${n}`,a)}function ko(e,n){return e=`${e}`,n=`${n}`,ie.compareTo(e,n)}function Ir(e){return ie.negate(e)}function Cn(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",f=r.indexOf(".");f!=-1&&(i=r.substring(0,f),c=r.substring(f+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let p;if(o>0){let u="",h=i.split("").reverse();for(let k=0;k<h.length;k++)u+=h[k]+((k+1)%o==0&&k+1!=h.length?l:"");c.length==0?p=`${s}${u.split("").reverse().join("")}`:p=`${s}${u.split("").reverse().join("")}.${c}`}else c.length==0?p=`${s}${i}`:p=`${s}${i}.${c}`;return p}function qr(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const ct=typeof window<"u",Ke=Xe;function Pr(e){return e==null}const wn=Array.isArray,Qs=e=>Nn(e)==="[object Map]",Gs=e=>Nn(e)==="[object Set]",He=e=>e instanceof Date,mn=e=>typeof e=="function",Mr=e=>typeof e=="string",Zs=e=>typeof e=="symbol",xe=e=>e!==null&&typeof e=="object",yt=e=>xe(e)&&mn(e.then)&&mn(e.catch),Lr=Object.prototype.toString,Nn=e=>Lr.call(e),So=e=>Nn(e)==="[object Object]",zr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Js(e){return e.__esModule||zr&&e[Symbol.toStringTag]==="Module"}const _s=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function at(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,o=e.length,l=!1;for(typeof n=="boolean"&&(l=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<o;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let s in r){let i=n[s],c=r[s];if(i!==c)if(l===!0&&c&&typeof c=="object"){let f;Array.isArray(c)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},n[s]=at(l,f,c)}else c!==void 0&&(n[s]=c)}}return n}function Co(e,n,a=!1){if(!a)at(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!So(s))continue;r=Co(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!So(s))continue;r=Co(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const ao=_s?Promise.resolve():null;function ei(e,...n){ao!==null?n&&n.length>0?ao.then(()=>{e(n)}):ao.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function he(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function me(e){return typeof e=="number"?e:Number(e)}const ti={"[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 rt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):ti[a]||"object"}function Bn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Fr(e){return e&&typeof e=="object"&&"setInterval"in e}function Rr(e){let n=!!e&&"length"in e&&e.length,a=rt(e);return a==="function"||Fr(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 ni(e,n=[]){let a=n;return e!=null&&(Rr(Object(e))?Or(a,typeof e=="string"?[e]:e):a.push(e)),a}function Pe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=rt(e),o=rt(n);if(a!==o)return!1;if(a==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],c=e[i],f=n[i];if(!Pe(c,f))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],s=n[l];if(!Pe(r,s))return!1}return!0}return!1}function Kr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Ur(e){return de(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),de(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Hr(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 jr(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 Ka(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 wo(e,n=!0,a=!0){n?e=Ka(e,".",/\./g):e=e.replace(/\./g,""),a?e=Ka(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function oi(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Pe(e,a))return!0}):n.indexOf(e)}function li(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Pe(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function ve(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function be(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function At(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 Wr=(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 No(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const tt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Ue=(e,n,a)=>Math.min(Math.max(e,n),a),Se=Symbol.for("BroadcastKey");class Uo{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="*"):Kr(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 Vn(e,n,a,o){const l=new Uo(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function ai(e,n,a){const o=a;if(o[Se])return o[Se];const l=t.inject(Se,null),r=new Uo(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[Se]=r,t.provide(Se,r),t.onUnmounted(()=>{r.destroy(),o[Se]=void 0}),r}function zt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Se]??t.inject(Se,null):t.inject(Se,null)}const ot=e=>e.default??e;class ri{error(n,a){const o=a,l=a||t.hasInjectionContext()?zt(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()?zt(n):null;o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=n||t.hasInjectionContext()?zt(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()?zt(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 Rt=new ri;function si(e){Rt=e}function ii(e){Rt?Object.assign(Rt,e):Rt=e}function ci(e,n){ot(nt).setValidator(e,n)}function ui(e){ot(nt).deleteValidator(e)}let Yr=["blur","clear"];function di(e){Yr=e}function Xr(){return Yr}let Qr=["focus","change","setValue"];function fi(e){Qr=e}function Gr(){return Qr}function mi(e){ot(nt).messages(e)}function Dt(...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 tn(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 Me=Symbol("ValidateSchemaKey");class Zr{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=tn(Dt(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=tn(o);const l=Dt(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=Rt;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?ot(nt).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?ot(nt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return ot(nt).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=Dt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=tn(n):this.rules=tn([n]);const o=Dt(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=Dt(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=ot(nt),c=new i(l),f=this.proxy??s;return c.validate(s,{context:f}).then(u=>{if(u.pass)this.success();else{let h="error";Array.isArray(u.errors)&&u.errors.length>0&&(h=u.errors[0].message??h,u.errors=[u.errors[0]],u.errors[0].ref=f),this.error(h)}return u}).catch(u=>{const h=u.message??`${u}`;return this.error(h),u})}}return Promise.resolve({pass:!0})}}function An(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 Zr(n,a,e)}const pn=Symbol.for("EventEmitterKey");class Jr{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 vt(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function hn(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function pi(e,n){const a=vt((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function hi(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function Ho(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 Ee=Symbol("DomainKey"),ft=Symbol("DataItemsKey");class Tn{_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 gi=new Tn;function ht(){return gi}function je(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ee]??t.inject(Ee,null):t.inject(Ee,null)}const ro=Symbol("OriginalDateKey");function jo(e,n,a=[],o){const l=t.getCurrentInstance();let r=l?.proxy,s=t.inject(Ee,null);s===null&&(s=ht());const i=e||n.prop||n.name;let c=new Tn(i);c.parent=s;const f=k=>{r[ro]||h(k),c?.set("modelValue",k)},p=()=>c?.getForSelf("modelValue")??null,u=()=>r[ro]??null,h=k=>{const y={};at(!0,y,t.toRaw(k)),r[ro]=y};if(t.isReactive(n)||typeof n=="function"?t.watch(n,k=>{c?.merge(k,a)},{immediate:!0}):c.merge(n,a),n.modelValue&&h(n.modelValue),r[Ee]=c,t.provide(Ee,c),l!==null){const k=t.inject(Se,null),y=Vn(r,k,i,o);c.broadcast=y,r[Se]=y,t.provide(Se,y),r.broadcast=(d,m,...g)=>Reflect.apply(y.emit,y,[d,m,...g]);const v=t.inject(Me,null),b=An(r,v,{componentName:""});c.validateSchema=b,r[Me]=b,t.provide(Me,b),r[ft]=new Map,r.validate=(d=!0)=>{const m=[];let g=null;const S={deep:!1};if(d===!0)g={name:"*"};else if(Array.isArray(d)&&d.length>0){const N=d;g={name:C=>C?N.indexOf(C)!==-1:!1}}else if(d!=null&&typeof d=="object"){const N=d;if(Object.assign(S,N),Array.isArray(N.include)&&N.include.length>0){const C=N.include;g={name:w=>w?C.indexOf(w)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const C=N.exclude;g={name:w=>w?C.indexOf(w)===-1:!1}}else g={name:"*"}}if(g){const N=y?.emitToChildren(g,"validate",S);N&&Reflect.apply([].push,m,N)}return m.length==1?m[0]:m.length>1?Promise.all(m).then(N=>{let C=[];return N.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(C=[...C,...w.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(d,m=!0,g=!1)=>{if(g===!0){Reflect.ownKeys(d).forEach(N=>{let C=String(N);const w={componentName:"",fieldName:C,pureDataValidate:!0};if(c){const B=ts(c,C,w,y,b);r[ft].set(C,B);const V=d[C];V&&B.validateSchema.setRule(V)}});return}if(m){const S=Reflect.ownKeys(d),N={name:C=>S.includes(C)};y?.emitToChildren(N,"setNameValidateRules",d,!1)}},r.clearValidate=(d=!0)=>{let m=null;if(d===!0)m={name:"*"};else if(Array.isArray(d)&&d.length>0){const g=d;m={name:S=>S?g.indexOf(S)!==-1:!1}}else if(d!=null&&typeof d=="object"){const g=d;if(Array.isArray(g.include)&&g.include.length>0){const S=g.include;m={name:N=>N?S.indexOf(N)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const S=g.exclude;m={name:N=>N?S.indexOf(N)===-1:!1}}else m={name:"*"}}m&&y?.emitToChildren(m,"clearValidate",!1)},r.resetFields=d=>{const m=p();if(!m)return;const g={};if(at(!0,g,u()??{}),Array.isArray(d))d.forEach(S=>{m[S]=g[S]});else if(d&&Array.isArray(d.include))(d.include??[]).forEach(N=>{m[N]=g[N]});else if(d&&Array.isArray(d.exclude)){let S=d.exclude??[];Reflect.ownKeys(g).forEach(N=>{S.includes(N)||(m[N]=g[N])})}else Object.assign(m,g);r.clearValidate(d)},r.setModelValue=(d,m)=>{!m||m===i?f(d):y?.emitToChildren({name:m},"setModelValue",d)},r.getModelValue=()=>p()}return t.onUnmounted(function(){c?.validateSchema&&(c.validateSchema.destroy(),r[Me]=void 0,t.provide(Me,null)),c?.broadcast&&(c?.broadcast?.destroy(),r[Se]=void 0,t.provide(Se,null)),c?.destroy(),r[Ee]=void 0,t.provide(Ee,null),r[ft]&&(r[ft].clear(),r[ft]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,c=null,r=null}),c}function _r(e,n,a=[]){let l=t.getCurrentInstance()?.proxy,r=t.inject(Ee,null);r===null&&(r=ht());const s=e||n.prop||n.name;let i=new Tn(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[Ee]=i,t.provide(Ee,i),t.onUnmounted(()=>{i?.destroy(),l[Ee]=void 0,t.provide(Ee,null),i=null,l=null}),i}function es(e,n,a){const l=je(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Ve(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(Se,null);let i=Vn(l,s,r,a);l[Se]=i,t.provide(Se,i),l.broadcast=(y,v,...b)=>i?Reflect.apply(i.emit,i,[y,v,...b]):null;const c=t.inject(Me,null);e.fieldName=e.fieldName??r;let f=An(l,c,e);l[Me]=f,t.provide(Me,f),es(l,f,r),l.validate=(y=null)=>{if(!f)return Promise.resolve({pass:!0});const v=[];let b=!1,d=!1;if(Array.isArray(y)&&y.indexOf(r)!==-1)d=!0,b=!0;else if(y&&typeof y=="object"){const m=y,g=m.ignoreDisabled??!0,S=m.ignoreReadonly??!0,N=m.ignoreHidden??!0;g===!0&&e.disabled===!0||S===!0&&e.readonly===!0||N===!0&&Bn(l.$el)?d=!1:(Array.isArray(m.include)&&m.include.indexOf(r)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(r),d=!0),b=m.deep??!1}else typeof y=="boolean"&&(b=y),d=!0;if(d){const m=f?.validate();v.push(m)}if(b){let m=null;const g={deep:!1};if(y===!0)m={name:"*"};else if(Array.isArray(y)&&y.length>0){const S=y;m={name:N=>N?S.indexOf(N)!==-1:!1}}else if(y!=null&&typeof y=="object"){const S=y;if(Object.assign(g,S),Array.isArray(S.include)&&S.include.length>0){const N=S.include;m={name:C=>C?N.indexOf(C)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const N=S.exclude;m={name:C=>C?N.indexOf(C)===-1:!1}}else m={name:"*"}}if(m&&i){const S=i.emitToChildren(m,"validate",g);Reflect.apply([].push,v,S)}}return v.length==1?v[0]:v.length>1?Promise.all(v).then(m=>{let g=[];return m.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(g=[...g,...S.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=y=>f?.setRule(y),l.setNameValidateRules=(y,v=!1)=>{const b=y[r];if(b&&f?.setRule(b),v&&i){const d={name:m=>Reflect.ownKeys(y).includes(m)};i.emitToChildren(d,"setNameValidateRules",y,!1)}},l.clearValidate=(y=null)=>{(!Array.isArray(y)||y.indexOf(n??"")!==-1)&&f?.clear();let v=null;if(y===!0)v={name:"*"};else if(Array.isArray(y)&&y.length>0){const b=y;v={name:d=>d?b.indexOf(d)!==-1:!1}}else if(y!=null&&typeof y=="object"){const b=y;if(Array.isArray(b.include)&&b.include.length>0){const d=b.include;v={name:m=>m?d.indexOf(m)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const d=b.exclude;v={name:m=>m?d.indexOf(m)===-1:!1}}else v={name:"*"}}v&&i&&i.emitToChildren(v,"clearValidate",!1)};let p=new Jr(l);l[pn]=p;const u=vt((y="validate")=>{f&&(y==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Xr()).forEach(y=>{p&&p.on(y,v=>{u("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Gr()).forEach(y=>{p&&p.on(y,v=>{u("reset")})}),t.onUnmounted(()=>{i?.destroy(),l[Se]=void 0,t.provide(Se,null),i=null,f?.destroy(),l[Me]=void 0,t.provide(Me,null),f=null,p?.destroy(),l[pn]=void 0,p=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:i,validateSchema:f,emitEvent:(y,...v)=>{p&&Reflect.apply(p.emit,p,[y,...v])},onEvent:(y,v)=>{p&&Reflect.apply(p.on,p,[v])},offEvent:(y,v)=>{p&&Reflect.apply(p.off,p,[v])}}}function ts(e,n,a,o,l){const r={},s=n??"",i={getValue(){const p=e.getForSelf("modelValue");return p?p[s]:null},isExist(){const p=e.getForSelf("modelValue");return p?Reflect.has(p,s):!1}};a.fieldName=s,a.validateHandler={getValue(p){return i.getValue()}};let c=An({},l,a);r.validate=(p=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const u=[];let h=!1,k=!1;if(Array.isArray(p)&&p.indexOf(s)!==-1)k=!0,h=!0;else if(p&&typeof p=="object"){const y=p;Array.isArray(y.include)&&y.include.indexOf(s)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(s),k=!0,h=y.deep??!1}else typeof p=="boolean"&&(h=p),k=!0;if(k&&c){const y=c.validate();u.push(y)}if(h){let y=null;const v={deep:!1};if(p===!0)y={name:"*"};else if(Array.isArray(p)&&p.length>0){const b=p;y={name:d=>d?b.indexOf(d)!==-1:!1}}else if(p!=null&&typeof p=="object"){const b=p;if(Object.assign(v,b),Array.isArray(b.include)&&b.include.length>0){const d=b.include;y={name:m=>m?d.indexOf(m)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const d=b.exclude;y={name:m=>m?d.indexOf(m)===-1:!1}}else y={name:"*"}}if(y&&f){const b=f.emitToChildren(y,"validate",v);Reflect.apply([].push,u,b)}}return u.length==1?u[0]:u.length>1?Promise.all(u).then(y=>{let v=[];return y.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(v=[...v,...b.errors])}),v.length>0?{pass:!1,errors:v}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>c?.setRule(p),r.setNameValidateRules=p=>{const u=p[s];u&&c?.setRule(u)};let f=Vn(null,o,s,r);return t.onUnmounted(()=>{c=null,f=null}),{broadcast:f,validateSchema:c}}function Tt(){let n=t.getCurrentInstance()?.proxy,a=new Jr(n);return n[pn]=a,t.onUnmounted(()=>{a?.destroy(),n[pn]=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?`${ue(e)}px`:"";function ue(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(ct){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return l*=r,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))*n;const o=Number(e);return isNaN(o)?0:o}const Qe="PageStateKey";function Fe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ue(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ue(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ue(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ue(e.right))),n}function Bo(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=ue(a.headerHeight??n.headerHeight??-1),e.headerPadding=Fe(a.headerPadding??n.headerPadding),e.footerHeight=ue(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=ue(c,r):e.height=ue(r)-ue(s,r)-ue(i,r),e.width=ue(a.width??n.width??0,l)}}function ns(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=ue(l.top),o.safeAreaBottom=ue(l.bottom),o.safeAreaLeft=ue(l.left),o.safeAreaRight=ue(l.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;Bo(o,r,n,!0,s,i,c,f);const p=t.reactive(o),u=e.getForParent(Qe);u&&(o.height=gn(e,u),o.width=yn(e,u),t.watch([()=>gn(e,u),()=>yn(e,u)],([k,y])=>{p.height=k,p.width=y}));const h=!u;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([k,y,v=-1,b=-1,d=0,m=0])=>{Bo(p,y,n,h,v,b,d,m)}),e.set(Qe,p),p}function $n(e){return e.get(Qe)}function En(e,n){if(n=n??e.get(Qe),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function xn(e,n){if(n=n??e.get(Qe),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function gn(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=En(e,n),o=xn(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function yn(e,n){return n=n??e.get(Qe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function yi(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function vi(e){return!!e.getForParent(Qe)}var vn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(vn||{});function so(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ae(e,n,a=1,o){const l=je();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let i=r.length-1;i>=0;i--){const c=r[i];if(so(c,o))return c}const s=e.value;return so(s,o)?s:null}):t.computed(()=>{const r=e.value;return so(r,o)?r:l?.get(n)})}function Te(e){return Ae(e,"readonly",0,function(a){return he(a)})}function $e(e){return Ae(e,"disabled",0,function(a){return he(a)})}function qe(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 os=new Map,bn=new Map;let Vo=null;function bi(e){Vo=e}function ls(e,n,a){if(a){let o=bn.get(a);o||(o=new Map,bn.set(a,o)),o.set(e,n)}else os.set(e,n)}function Je(e,n,a){!a&&Vo&&(a=Vo(e)??void 0);let o=null;if(a){let l=bn.get(a);l&&(o=l.get(n))}return o||(o=os.get(n)),o}function ki(e,n){for(let a in e){const o=e[a];ls(a,o,n)}}function Si(e){bn.delete(e)}function Ci(){return{top:0,left:0,bottom:0,right:0}}function wi(e=0,n=0){if(ct){const a=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:o-ue(e,o)-ue(n,o)};return{rootWidth:a,rootHeight:o,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",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 s=Ni(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=hn(()=>{const i={...a},c=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=f,this.initPageLayout(i,l)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)o.indexOf(r)===-1&&l.set(r,a[r])}initPageLayout(n,a){const o=n.headerBarHeight??0,l=n.footerBarHeight??0,r=at({},Ci(),n.safeAreaInset),s=wi(o,l),i=at({},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){bi(n)}setAPI(n,a,o){ls(n,a,o)}getAPI(n,a,o){return Je(n,a,o)}batchSetAPI(n,a){ki(n,a)}clearScopeAPI(n){Si(n)}getRootDomain(){return ht()}}function Q(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=o=>{o.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}const Vi=(e,n)=>{let a=document.body;const o=e.teleport||"body";o!="body"&&(Mr(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={};mn(n.wrapper)?i=n.wrapper(a,l):i=n.wrapper;const c=t.createApp(i,e),f=n.components;return f&&f.forEach(p=>{c.use(p)}),a.appendChild(l),{instance:c.mount(l),unmount:()=>{c.unmount(),a.removeChild(l)}}},as=(e,n)=>e?t.h(e,n):"";function Ie(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const pe={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},ye={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},rs={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}},ss={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!1},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},is=[];for(const e in ss)is.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}},$i=(e,n)=>({inheritAttrs:!0,props:{...pe,...rs,...Ti},setup(a,{slots:o}){const l=jo(a.name,a),r=t.inject(Ai,!1);if(l){const p=ns(l,a);Ie({getPageContentHeight:()=>gn(l,p),getPageContentWidth:()=>yn(l,p),getPageHeaderHeight:()=>En(l,p),getPageFooterHeight:()=>xn(l,p)}),p&&r&&(p.contentHeight="100%")}const s=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),c=t.getCurrentInstance(),f=(p,u=!1)=>{const h=c?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(p,!0,u)};return t.watch([()=>a.rules,()=>a.pureDataRules],([p,u],[h,k])=>{if(p&&h){const y=t.toRaw(h),v=t.toRaw(p),b=v?Reflect.ownKeys(v):[];(y?Reflect.ownKeys(y):[]).forEach(m=>{b.includes(m)||(v[m]=[])}),f(v)}if(u&&k){const y=t.toRaw(k),v=t.toRaw(u),b=v?Reflect.ownKeys(v):[];(y?Reflect.ownKeys(y):[]).forEach(m=>{b.includes(m)||(v[m]=[])}),f(v,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const p=t.toRaw(a.rules);f(p)}if(a.pureDataRules){const p=t.toRaw(a.pureDataRules);f(p,!0)}}),()=>{const p={class:s.value,style:i.value};return t.h("div",p,[o?.default?.()])}}}),{componentName:Ei,create:xi,scope:uV}=Q("page"),Wo=xi($i(Ei));function Yo(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Dn(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"),cs={headerbar:{},radio:{},checkbox:{}};function Ii(e){Object.assign(cs,e)}function In(){return cs}const qi=(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=je(),i=s?$n(s):null,c=t.inject(Di,!1),f=In(),p=e,u=t.computed(()=>{const I={[p]:!0,[`${p}--border`]:l.border,[`${p}--fixed`]:l.fixed};return c||(I[`${p}--safe-area-inset-top`]=l.safeAreaInsetTop),I}),h=t.computed(()=>({[`${p}__inner`]:!0,[`${p}__inner--${l.align}`]:!0})),k=l.height!==null&&l.height!==void 0?ue(l.height):null,y=t.computed(()=>{const I={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const F=Fe(l.padding??i.headerPadding);return Object.assign(I,F),k&&(i.headerHeight=k),i.headerHeight>0&&(I.height=i.headerHeight),I.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,I.safeAreaTop>0&&(I.top=I.safeAreaTop+(F.top??0),I.height&&I.height>0&&(I.height=I.height+I.safeAreaTop)),I}if(k&&(I.height=k),l.padding){const F=Fe(l.padding);Object.assign(I,F)}return I}),v=t.ref(null),b=()=>{if(i&&v.value&&!Bn(v.value)){if(!o){const I=Yo(v.value);i.headerAllHeight=I.height}return i.headerMounted=!0,!0}return!1};let d=null;t.onMounted(()=>{i&&(Ho(b,50,5,50,!0),window.ResizeObserver&&v.value&&(d=new window.ResizeObserver(()=>{b()}),d.observe(v.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,d&&(d.disconnect(),d=null))});const m=t.computed(()=>{const I={};return y.value.height!==null&&y.value.height!==void 0&&(I.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(I.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(I.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(I.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(I.paddingBottom=`${y.value.bottom}px`),I}),g=t.computed(()=>!(y.value.height!==null&&y.value.height!==void 0&&y.value.height<=0));function S(){r.emit("back")}function N(){r.emit("click-title")}function C(){r.emit("click-right")}function w(){r.emit("click-right-text")}const B=()=>{if(!l.leftShow)return null;const I=[];if(r.slots.left)I.push(r.slots.left());else{if(r.slots.leftIcon){const F=t.h("view",{class:"left-icon",onClick:S},[r.slots.leftIcon()]);I.push(F)}else{const F=l.leftIcon??f.headerbar.Left??a,A=t.h("view",{class:"left-icon",onClick:S},[t.h(F)]);I.push(A)}if(l.leftText){const F=t.h("view",{class:"left-text",onClick:S},[l.leftText]);I.push(F)}}return I.length===0?null:t.h("view",{class:"fox-header-bar__left"},I)},V=()=>{if(!l.rightShow)return null;const I=[];if(r.slots.right)I.push(r.slots.right());else{if(l.rightText){const F=t.h("view",{class:"right-text",onClick:w},[l.rightText]);I.push(F)}if(r.slots.rightIcon){const F=t.h("view",{class:"right-icon",onClick:C},[r.slots.rightIcon()]);I.push(F)}else if(l.rightIcon){const F=t.h("view",{class:"right-icon",onClick:C},[t.h(l.rightIcon)]);I.push(F)}}return I.length===0?null:t.h("view",{class:"fox-header-bar__right"},I)},T=()=>{if(!l.titleShow)return null;const I=[],F=r.slots.default?r.slots.default():null;if(F)I.push(F);else{if(l.title){const A=t.h("view",{class:"title-text"},[l.title]);I.push(A)}if(r.slots.titleIcon){const A=t.h("view",{class:"title-icon",onClick:N},[r.slots.titleIcon()]);I.push(A)}else if(l.titleIcon){const A=t.h("view",{class:"title-icon",onClick:N},[t.h(l.titleIcon)]);I.push(A)}}return I.length===0?null:t.h("view",{class:"fox-header-bar__title"},I)},$=()=>{const I=[],F=r.slots.bottom?r.slots.bottom():null;return F&&I.push(F),I.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},I)};return()=>{if(!g.value)return null;const I=[];if(r.slots.all)I.push(r.slots.all());else{const A=[],E=B();E&&A.push(E);const M=T();M&&A.push(M);const x=V();if(x&&A.push(x),A.length>0){const K=t.h("view",{class:h.value},A);I.push(K)}const U=$();U&&I.push(U)}if(I.length===0)return null;const F={class:u.value,style:m.value,ref:v};return t.h("view",F,I)}}}),{componentName:Pi,create:Mi,scope:Li}=Q("header-bar"),Xo=Mi(qi(Pi,Li,ne.Left,!1)),zi=Symbol.for("InnerPageScopeKey");function Fi(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,l){const r=je(),s=r?$n(r):null,i=t.inject(zi,!1),c=e,f=t.computed(()=>{const b={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return i||(b[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),b}),p=o.height!==null&&o.height!==void 0?ue(o.height):null,u=t.computed(()=>{const b={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const d=Fe(o.padding??s.footerPadding);return Object.assign(b,d),p&&(s.footerHeight=p),s.footerHeight>0&&(b.height=s.footerHeight),b.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,b.safeAreaBottom>0&&(b.bottom=b.safeAreaBottom+(d.bottom??0),b.height&&b.height>0&&(b.height=b.height+b.safeAreaBottom)),b}if(p&&(b.height=p),o.padding){const d=Fe(o.padding);Object.assign(b,d)}return b}),h=t.ref(null),k=()=>{if(s&&h.value&&!Bn(h.value)){if(!a){const b=Yo(h.value);s.footerAllHeight=b.height}return s.footerMounted=!0,!0}return!1};let y=null;t.onMounted(()=>{s&&(Ho(k,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(()=>{k()}),y.observe(h.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,y&&(y.disconnect(),y=null))});const v=t.computed(()=>{const b={};return u.value.height!==null&&u.value.height!==void 0&&(b.height=ge(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(b.paddingTop=ge(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(b.paddingLeft=ge(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(b.paddingRight=ge(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(b.paddingBottom=ge(u.value.bottom)),b});return()=>{const b=l.slots.default?l.slots.default():[],d={ref:h,class:f.value,style:v.value};return t.h("view",d,b)}}}}const{componentName:Ri,create:Oi,scope:Ki}=Q("footer-bar"),Qo=Oi(Fi(Ri,Ki,!1));function Ui(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=je(),l=t.computed(()=>({[e]:!0})),r=o?$n(o):null,s=t.computed(()=>{const f={};if(o&&r){if(a.padding){const d=Fe(a.padding);Object.assign(r.contentPadding,d)}const p=En(o,r),u=xn(o,r);let h="";r.contentHeight?h=`${r.contentHeight}`:h=`${r.height}px`,console.debug("[content]page height:",h),console.debug("[content]header height:",p),console.debug("[content]footer height:",u),console.debug("[content]padding:",r.contentPadding),f.height=h;let k=(r&&r.contentPadding&&r.contentPadding.top)??-1;(k>=0||p>0)&&(k=k<0?0:k,f.paddingTop=`${p+k}px`);let y=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(y>=0||u>0)&&(y=y<0?0:y,f.paddingBottom=`${u+y}px`);const v=(r&&r.contentPadding&&r.contentPadding.left)??-1;v>=0&&(f.paddingLeft=`${v}px`);const b=(r&&r.contentPadding&&r.contentPadding.right)??-1;return b>=0&&(f.paddingRight=`${b}px`),f}if(a.padding){const p=Fe(a.padding);p.left&&(f.paddingLeft=`${p.left}px`),p.top&&(f.paddingTop=`${p.top}px`),p.right&&(f.paddingRight=`${p.right}px`),p.bottom&&(f.paddingBottom=`${p.bottom}px`)}return f}),i=t.ref(null),c=vt(()=>{if(r&&i.value){const f=Dn(i.value);r.contentInnerHeight=f.height,r.contentInnerWidth=f.width}},0);return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>s.value,()=>l.value],([])=>{c()}),{contentRef:i,classes:l,styles:s}}}}const{componentName:Hi,create:ji,scope:dV}=Q("content"),Wi=ji(Ui(Hi));function Yi(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 ee=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},Go=ee(Wi,[["render",Yi]]),bt="GroupStateKey",us=Symbol.for("GroupScopeKey");function qn(){return t.inject(us,!1)}function Pn(e=!0){t.provide(us,e)}function Xi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Pr(l)||(e[o]=l)})}function Qi(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Xi(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(bt,r),r}function io(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(bt);if(!c)return;const f=e.get("groupLayout")??{};a===-1&&(a=f.column??1),o===-1&&(o=f.gutter??0),r||(r=f.minItemWidth??-1),s||(s=f.maxItemWidth??-1);const p=ue(r),u=ue(s);i||(i=f.type??"grid");const h=()=>{const k=n===""||n===-1,y=ue(n);let v=me(a);const b=ue(o);if(!k){let g=(y-(v-1)*b)/v;for(;u!==-1&&g>u;)v++,g=(y-(v-1)*b)/v;for(;p!==-1&&v>1&&g<p;)v--,g=(y-(v-1)*b)/v}let d=!1;const m=c.layout;m.value.width=n,m.value.column!==v&&(m.value.column=v,d=!0),m.value.gutter!==b&&(m.value.gutter=b,d=!0),m.value.type!==i&&(m.value.type=i,d=!0),d&&t.triggerRef(m)};if(l)h();else{const k=++c.passport;setTimeout(()=>{k===c.passport&&h()},50)}}function Mn(e,n=!1){let a;return n?a=e.getForParent(bt):a=e.get(bt),a.layout}function Ln(e,n=!1){let a;return n?a=e.getForParent(bt):a=e.get(bt),a.order}function Ua(e,n=1){if(n==="stretch")return-1;const a=me(n);return a===-1?100:100*a/e}function zn(e,n,a=1,o=0,l){const r={};let s=0;l?s=ue(l):s=Ua(n.column,a),s>0&&(r.width=`${s}%`);const i=Ua(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 Fn(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,f=c+(n.column-c);return e.index=e.index+(f-c),{"grid-column":`${c+1} / -1`}}let l=me(a);if(l===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(l>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=me(o)%n.column;let s=(e.index+r)%n.column,i=s+l;return i>n.column?(s=0,i=s+l,e.index=e.index+(n.column-s)+l):e.index=e.index+r+l,r>0?{"grid-column":`${s+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const ds=Symbol("RollingStateKey");function Gi(e){t.provide(ds,e)}function Zi(){return t.inject(ds,null)}function Ao(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function Ji(e){let n=Ao(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=Ao(a),console.info("2.---------- get expand height",n),document.body.removeChild(a)}return n}function _i(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const ec={...pe,...rs,...ss};function tc(e,n,a){return{props:ec,emits:["update:collapse","header-click"],setup(o,l){const r=jo(o.name,o,is),s=Qi(r,{type:o.type}),i=qn();Pn(!0);const c=o.rollingDisplay?Zi():null,f=t.ref(null),p=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),u=t.computed(()=>i&&r?Mn(r,!0).value:null),h=t.getCurrentInstance(),k=(R,H=!1)=>{const Y=h?.proxy;Y&&typeof Y.setNameValidateRules=="function"&&Y.setNameValidateRules(R,!0,H)};t.watch([()=>o.rules,()=>o.pureDataRules],([R,H],[Y,O])=>{if(R&&Y){const G=t.toRaw(Y),oe=t.toRaw(R),le=oe?Reflect.ownKeys(oe):[];(G?Reflect.ownKeys(G):[]).forEach(ce=>{le.includes(ce)||(oe[ce]=[])}),k(oe)}if(H&&O){const G=t.toRaw(O),oe=t.toRaw(H),le=oe?Reflect.ownKeys(oe):[];(G?Reflect.ownKeys(G):[]).forEach(ce=>{le.includes(ce)||(oe[ce]=[])}),k(oe,!0)}},{deep:!0});const y=e,v=t.computed(()=>{const R={};if(R.height=E.value,o.width)o.width!=="auto"&&(R.width=ge(o.width));else{const H=i?Ln(r,!0):null;if(u.value&&H){if(u.value.type==="grid"){const Y=Fn(H,u.value,o.span,o.offset);Object.assign(R,Y)}else if(u.value.type==="flow"){const Y=zn(H,u.value,o.span,o.offset,o.width);Object.assign(R,Y)}}}return R}),b=t.computed(()=>{const R=s.layout.value.type;return R==="grid"||R==="flow"?{[`${y}--${R}`]:!0,[`${y}--${R}-justify-${o.justify}`]:!0,[`${y}--${R}-align-${o.align}`]:!0,[`${y}--gutter`]:!0}:{[`${y}--${R}`]:!0,[`${y}--gutter`]:!0}}),d=t.computed(()=>{if(s.layout.value.type==="grid"){let H="";if(o.columnWidth)H=`repeat(auto-fill, ${o.columnWidth})`;else{const Y=_i(B.value,s.layout.value.column,s.layout.value.gutter);H=`repeat(${s.layout.value.column}, ${Y})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":H}}}),m=t.toRef(o,"gutter"),g=t.toRef(o,"column"),S=t.computed(()=>i||p.value?!0:he(o.isWrap)),N=[],C=R=>{N.push(R)},w=()=>{let R=N.length;N.splice(0,R)},B=t.ref(-1),V=R=>{const H=Dn(R).width;H>0&&H!==B.value&&(B.value=H)};io(r,B.value,g.value,m.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([B,g,m],([R,H,Y])=>{s.order.index=0,io(r,R,H,Y,!1,o.minItemWidth,o.maxItemWidth,o.type)});const T=t.computed(()=>M.value?o.expandText??"":o.collapseText??""),$=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),I=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),F=t.ref(),A=t.ref(),E=t.computed(()=>x.value||ge(o.height)||""),M=t.ref(!1),x=t.ref(""),U=t.ref(!1);let K=-1;const J=(R,H=!0)=>{const Y=F.value;if(Y&&M.value!==R){if(K=K<=0?Ji(Y):K,U.value=!0,H)if(Y.style["will-change"]="height",Y.ontransitionend=function(){Y.ontransitionend=null,this.style["will-change"]="auto",R||(x.value="",U.value=!1)},R){let O=0;o.collapseHeight?O=o.collapseHeight:A.value&&A.value.classList.contains(`${e}__header`)&&(O=A.value.offsetHeight),x.value=`${K}px`,t.nextTick(()=>{x.value=`${O}px`})}else x.value=`${K}px`;else if(R){let O=0;o.collapseHeight?O=o.collapseHeight:A.value&&A.value.classList.contains(`${e}__header`)&&(O=A.value.offsetHeight),x.value=`${O}px`}else U.value=!1,x.value=`${K}px`;M.value=R,l.emit("update:collapse",R)}};t.watch(()=>o.collapse,R=>{J(R)});const _=R=>{l.emit("header-click",R)},j=()=>{q()},q=R=>{R=R??!M.value,J(R)};Ie({toggleCollapse:q,doLayout:()=>{N[0]&&(V(N[0]),io(r,B.value,g.value,m.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let D=null,W=!0;const P=R=>{if(o.rules){const H=t.toRaw(o.rules);k(H)}if(o.pureDataRules){const H=t.toRaw(o.pureDataRules);k(H,!0)}if(ct&&(R&&J(he(o.collapse),!1),o.autoLayout&&Array.isArray(N)&&N.length>0)){const H=N[0];V(H),window.ResizeObserver&&(D=new window.ResizeObserver(()=>{V(H)}),D.observe(H))}},z=()=>{D?.disconnect(),D=null},X=!p.value||c?.acquire();X&&(f.value=p.value?!0:null),t.onMounted(()=>{if(X&&(P(W),W=!1),p.value&&c){let R=null,H=c.initialHeight;c.observe(F.value,Y=>{if(Y!==f.value)if(Y)f.value=!0,M.value||(x.value=""),R=setTimeout(()=>{R=null,f.value!==!1&&(P(W),W=!1)},100);else{if(R!==null&&clearTimeout(R),f.value=!1,!M.value)if(W)x.value=c.initialHeight;else{let O=Ao(F.value);O<=0?x.value=H:(x.value=`${O}px`,H=x.value)}W||z()}})}}),t.onUnmounted(()=>{D?.disconnect(),c&&c.unobserve(F.value)});const Z=(R="right")=>{const H=[];if(T.value){const oe={class:$.value},le=t.h("span",oe,[T.value]);H.push(le)}const Y={class:I.value},O=o.collapseIcon??a,G=t.h(O,Y);return H.push(G),H.length>0?t.h("div",{class:{[`${y}__header-collapse`]:!0,[`is-${R}`]:!0},onClick:j},H):null},te=(R,H,Y,O)=>{const G={...b.value};return H===0&&(G[`${y}__first`]=!0),Y>=O-1&&(G[`${y}__last`]=!0),t.h("div",{ref:C,key:`${H}`,class:G,style:d.value},R)};return()=>{if(p.value&&f.value!==!0){const G=o.tag||"div";return t.h(G,{ref:F,prop:o.name,class:{[`${y}`]:!0,"is-collapse":U.value},style:v.value},[])}s.order.index=0;const R=[];let H=0;if(l.slots.header){const G={key:`${H++}`,ref:A,class:{[`${y}__header`]:!0,[`${y}__first`]:!0},onClick:_},oe=t.h("div",G,[l.slots.header()]);R.push(oe)}else{const G=[],oe=o.collapsePosition==="left";if(oe&&o.showCollapse){const le=Z("left");le&&G.push(le)}if(o.title||l.slots.title){if(o.showMark){const le={class:{[`${y}__header-mark`]:!0}};o.markColor&&(le.style={background:o.markColor});const re=t.h("div",le);G.push(re)}if(l.slots.title){const le=t.h("div",{class:{[`${y}__header-title`]:!0}},[l.slots.title()]);G.push(le)}else if(o.title){const le=t.h("div",{class:{[`${y}__header-title`]:!0}},[o.title]);G.push(le)}}if(l.slots.toolbar&&G.push(l.slots.toolbar()),!oe&&o.showCollapse){const le=Z("right");le&&G.push(le)}if(G.length>0){const le={key:`${H++}`,ref:A,class:{[`${y}__header`]:!0,[`${y}__first`]:!0},onClick:_},re=t.h("div",le,G);R.push(re)}}w();const Y=l.slots.default?l.slots.default():[],O=s.layout.value.type;if(O==="grid"){const G=te(Y,H++,0,Y.length);R.push(G)}else if(O==="flow"){const G=te(Y,H++,0,Y.length);R.push(G)}else for(let G=0;G<Y.length;G++){const oe=Y[G],le=te([oe],H++,G,Y.length);R.push(le)}if(S.value){const G=o.tag||"div";return t.h(G,{ref:F,prop:o.name,class:{[`${y}`]:!0,"is-collapse":U.value},style:v.value},[R])}else return R}}}}const{componentName:nc,create:oc,scope:lc}=Q("group"),Zo=oc(tc(nc,lc,ne.RectUp));function ac(e){return e===window}const rc=/matrix\((.+)\)/,fs=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(ac(n))return{x:0,y:0};let a=0,o=0,l=n;for(;l!==null;)a+=l.offsetLeft,o+=l.offsetTop,l=l.offsetParent;let r=0,s=0,i=0,c=0;for(l=n;l!==document;){s+=l.scrollTop,r+=l.scrollLeft;const{transform:f}=window.getComputedStyle(l);if(f){const p=rc.exec(f);if(p){let h=p[1].split(/\s*,\s*/);h.length==6&&(i+=Number(h[4]),c+=Number(h[5]))}}l=l.parentNode}return a-=r,o-=s,a+=i,o+=c,{x:a,y:o}};class sc{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 ic{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 sc,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 Ha=new ic,ms={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:cc,create:uc}=Q("price"),dc=uc({props:{...ms},setup(e){const n=t.computed(()=>({[cc]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ve(e.price)==0?"":Cn(e.price,e.decimalLength,!0,me(e.digits),e.separator)),l=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),fc=["innerHTML"],mc=["innerHTML"];function pc(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,fc)):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,mc)):t.createCommentVNode("",!0)],2)}const Ge=ee(dc,[["render",pc]]),{componentName:co,create:hc}=Q("hint-text"),gc=hc({components:{Price:Ge},props:{...ms,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const a=t.ref({top:null,right:null,bottom:null,left:null}),o=t.ref({x:0,y:0}),l=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),f=($,I,F,A,E,M)=>{const x=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,K=$.split("-");let J=[];K[0]==="top"?J=["top","bottom","right","left"]:K[0]==="bottom"?J=["bottom","top","right","left"]:K[0]==="left"?J=["left","top","bottom","right"]:K[0]==="right"&&(J=["right","top","bottom","left"]);const _={top:null,right:null,bottom:null,left:null},j=[];for(let q=0;q<J.length;q++){const L=J[q];if(j[0]=L,K[1]&&(j[1]=K[1]),L==="top"){const D=I.y-M-e.arrowSize-e.offset;if(D>=0){_.top=D;let W=0;K[1]==="start"?W=I.x:K[1]==="end"?W=I.x+F-E:W=I.x+F/2-E/2;const P=x-W-E;P<0?(W+=P,u.value=-P):u.value=0,_.left=W<0?0:W;break}}else if(L==="bottom"){const D=I.y+A+e.arrowSize+e.offset;if(D+M<=U){_.top=D;let W=0;K[1]==="start"?W=I.x:K[1]==="end"?W=I.x+F-E:W=I.x+F/2-E/2;const P=x-W-E;P<0?(W+=P,u.value=-P):u.value=0,_.left=W<0?0:W;break}}else if(L==="left"){const D=I.x-E-e.arrowSize-e.offset;if(D>=0){_.left=D;let W=0;K[1]==="start"?W=I.y:K[1]==="end"?W=I.y+A-M:W=I.y+A/2-M/2,_.top=W<0?0:W;break}}else if(L==="right"){const D=I.x+F+e.arrowSize+e.offset;if(D+E<=x){_.left=D;let W=0;K[1]==="start"?W=I.y:K[1]==="end"?W=I.y+A-M:W=I.y+A/2-M/2,_.top=W<0?0:W;break}}}return{bestPlacement:j.join("-"),bestInsetRect:_}},p=($,I,F=10)=>{if(!ct||I===!1||!$)return;o.value=fs(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const A=c.value.offsetHeight,E=c.value.offsetWidth,{bestPlacement:M,bestInsetRect:x}=f(e.placement,o.value,l.value,r.value,E,A);s.value=M,a.value=x,i.value=!0},u=t.ref(0),h=vt(()=>{p(e.message,e.visible)},10),k=t.ref(e.visible);t.watch(()=>e.visible,$=>{k.value=$});const y=t.computed(()=>k.value&&v.value),v=t.ref(!0),b=vt($=>{const I=$[0];I&&(v.value=I.isIntersecting)},10),d=new IntersectionObserver(b);t.watch([()=>e.message,()=>e.visible],([$,I])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Ha.watch(e.reference,h),d.observe(e.reference)}),t.onBeforeMount(()=>{Ha.unwatch(e.reference,h),d.unobserve(e.reference),d.disconnect()});const m=t.computed(()=>{const $={[co]:!0};return s.value.startsWith("top")?$["is-top"]=!0:s.value.startsWith("right")?$["is-right"]=!0:s.value.startsWith("bottom")?$["is-bottom"]=!0:s.value.startsWith("right")&&($["is-right"]=!0),e.size==="small"?$["is-small"]=!0:e.size==="large"&&($["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&($[`${e.customClass}`]=!0),$}),g=t.computed(()=>{const $={};a.value.top!==null&&($.top=`${a.value.top}px`),a.value.right!==null&&($.right=`${a.value.right}px`),a.value.bottom!==null&&($.bottom=`${a.value.bottom}px`),a.value.left!==null&&($.left=`${a.value.left}px`),e.autoFit&&($["min-width"]=`${l.value}px`);const I=document.documentElement.clientWidth||document.body.clientWidth;return $["max-width"]=`${I}px`,i.value&&($.opacity="1"),e.transition||($.transition="none"),e.zIndex&&($["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign($,e.customStyle),$}),S=t.computed(()=>{const $=[`${co}__content`];return e.customTextClass&&$.push(e.customTextClass),$}),N=t.computed(()=>{const $={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign($,e.customTextStyle),$}),C=t.computed(()=>({[`${co}__arrow`]:!0})),w=t.computed(()=>{const $={};return e.showArrow?($.width=`${e.arrowSize}px`,$.height=`${e.arrowSize}px`,s.value==="top"?($.left="50%",$.bottom=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):s.value==="top-start"?($.left=`${e.arrowOffset+u.value}px`,$.bottom=`-${e.arrowSize}px`):s.value==="top-end"?($.right=`${e.arrowOffset-u.value}px`,$.bottom=`-${e.arrowSize}px`):s.value==="right"?($.left=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):s.value==="right-start"?($.left=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):s.value==="right-end"?($.left=`-${e.arrowSize}px`,$.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?($.left="50%",$.top=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?($.left=`${e.arrowOffset+u.value}px`,$.top=`-${e.arrowSize}px`):s.value==="bottom-end"?($.right=`${e.arrowOffset-u.value}px`,$.top=`-${e.arrowSize}px`):s.value==="left"?($.right=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):s.value==="left-start"?($.right=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):s.value==="left-end"&&($.right=`-${e.arrowSize}px`,$.bottom=`-${e.arrowOffset}px`),$):{display:"none"}}),B=t.computed(()=>y.value&&e.closeOnClick),V=t.computed(()=>{const $={};return e.zIndex&&($["z-index"]=`${e.zIndex}`),$});return{show:y,tipRef:c,classes:m,styles:g,textClasses:S,textStyles:N,arrowClasses:C,arrowStyles:w,overlayShow:B,overlayStyle:V,onClickOverlay:()=>{k.value=!1,n.emit("update:visible",!1)}}}}),yc=["innerHTML"];function vc(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,yc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const ps=ee(gc,[["render",vc]]);class Rn{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 To={},bc=new Rn,gt=new Map,kn=e=>{if(e){const n=document.getElementById(e);gt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of gt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}gt.clear()}},kc=e=>{e.unmount=kn;const n=document.getElementById(e.id);if(n){const a=gt.get(e.id);a?e={...To,...a,...e}:e={...To,...e},e.transition=!1;const o=t.createVNode(ps,e);return t.render(o,n),e.id}},Sc=e=>{e.unmount=kn;let n=e.id??`hinttext_${bc.get()}`;e={...To,...e},e.id=n,gt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(ps,e);return t.render(o,a),document.body.appendChild(a),n},Cc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},$t={show(e,n,a={},o=!0){Cc(n);const l=a.id;return l&&gt.has(l)?kc({...a,message:n,reference:e}):(o&&kn(),Sc({...a,message:n,reference:e}))},hide(e){kn(e)},install(e){e.config.globalProperties.$hintText=$t}};function wc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...pe,...ye},emits:["appear","disappear"],setup(l,r){const s=l.prop??r.attrs.name;Ve({componentName:e,validate:!1},s);const i=je(),c=qn();Pn(!1);const f=t.computed(()=>c&&i?Mn(i,!1).value:null),p=e,u=t.ref(null),h=t.computed(()=>{const O={[p]:!0,[`${p}__gutter`]:f.value&&f.value.type!=="flow",[`${p}__stretch`]:l.span==="stretch",[`${p}__input--border`]:he(l.hasBorder)};if(O[l.errorMarkClass]=!!M.value,O[l.warnMarkClass]=!!A.value,O[l.infoMarkClass]=!!I.value,typeof u.value=="function"){const G=u.value(s);O[G]=!0}else if(typeof u.value=="string"){const G=u.value;O[G]=!0}return O}),k=t.ref(null),y=t.computed(()=>{const O={};if(l.width)l.width!=="auto"&&(O.width=ge(l.width));else{const G=c&&i?Ln(i,!1):null;if(f.value&&G){if(f.value.type==="grid"){const oe=Fn(G,f.value,l.span,l.offset);Object.assign(O,oe)}else if(f.value.type==="flow"){const oe=zn(G,f.value,l.span,l.offset,l.width);Object.assign(O,oe)}}}if(typeof k.value=="function"){const G=k.value(s);G&&Object.assign(O,G)}else if(k.value&&typeof k.value=="object"){const G=k.value;Object.assign(O,G)}return O}),v=t.ref(null),b=t.computed({get:()=>v.value??he(l.isRequired),set:O=>{v.value=O}}),d=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",m=Ae(t.toRef(l,"labelPosition"),"labelPosition",vn.Near),g=t.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),S=t.computed(()=>({[`${p}__main`]:!0,[`${p}__main--${g.value}`]:!0})),N=t.computed(()=>({label:!0,[`label--${g.value}`]:!0})),C=Ae(t.toRef(l,"labelWidth"),"labelWidth",vn.Near),w=t.computed(()=>C&&C.value?{width:ge(C.value)}:{}),B=t.computed(()=>({"label--string":!0,"label--required":b.value})),V=t.computed(()=>({content:!0,[l.contentClass]:!0})),T=t.computed(()=>({...l.contentStyle})),$=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ie({setRequired(O){b.value=O},setErrorTip(O){$.errorTip=O},setErrorIcon(O){$.errorIcon=O},setWarnTip(O){$.warnTip=O},setWarnIcon(O){$.warnIcon=O},setInfoTip(O){$.infoTip=O},setInfoIcon(O){$.infoIcon=O},setCustomClassName(O){u.value=O},setCustomStyle(O){k.value=O}});const I=t.computed(()=>l.infoTip||$.infoTip),F=t.computed(()=>l.infoIcon||$.infoIcon),A=t.computed(()=>l.warnTip||$.warnTip),E=t.computed(()=>l.warnIcon||$.warnIcon),M=t.computed(()=>l.errorTip||$.errorTip),x=t.computed(()=>l.errorIcon||$.errorIcon),U=t.computed(()=>M.value?"error":A.value?"warn":I.value?"info":""),K=()=>U.value.length>0,J=t.computed(()=>U.value==="error"?M.value:U.value==="warn"?A.value:U.value==="info"?I.value:""),_=t.computed(()=>U.value==="error"?x.value:U.value==="warn"?E.value:U.value==="info"?F.value:null),j=t.computed(()=>{const O={[`${p}__tip`]:!0,[`${p}__tip--${U.value}`]:!0,[`${p}--animate`]:!0};return U.value==="error"&&l.errorClass?O[`${l.errorClass}`]=!0:U.value==="warn"&&l.warnClass?O[`${l.warnClass}`]=!0:U.value==="info"&&l.infoClass&&(O[`${l.infoClass}`]=!0),O}),q=t.computed(()=>{const O={};return m&&m.value==="top"||!d()?O["padding-left"]="0px":C&&C.value&&(O["padding-left"]=ge(C.value)),O}),L=t.ref();let D="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([O,G,oe,le])=>{L.value&&(O&&!de(G)?D?a.show(L.value,G,{...le,id:D,type:oe},!0):D=a.show(L.value,G,{...le,type:oe},!0):a.hide(D))});let W=null;const P=()=>{W||!L.value||(W=new IntersectionObserver(O=>{let G=!1;for(let oe of O)if(oe.intersectionRatio>0){G=!0,G&&r.emit("appear",oe);break}G||r.emit("disappear")}),W.observe(L.value))},z=()=>{!W||!L.value||(W.unobserve(L.value),W=null)};t.watch(()=>he(l.appearListen),O=>{O?P():z()}),t.onMounted(()=>{he(l.appearListen)&&P()}),t.onUnmounted(z);const X=()=>{if(!d())return null;const O=[],G=r.slots?.label?.()??l.label,oe={class:B.value},le=t.h("div",oe,[G]);if(O.push(le),r.slots.fixedPreTip){const ce=r.slots.fixedPreTip();O.push(ce)}const re={class:N.value,style:w.value};return t.h("div",re,O)},Z=()=>{const O=[];if(r.slots.prepend){const oe=r.slots.prepend();O.push(oe)}if(r.slots.default){const oe=r.slots.default();O.push(oe)}if(r.slots.append){const oe=r.slots.append();O.push(oe)}if(r.slots.fixedTip){const oe={class:[`${p}__fixed-tip`]},le=t.h("div",oe,[r.slots.fixedTip()]);O.push(le)}const G={ref:L,class:V.value,style:T.value};return t.h("div",G,O)},te=()=>{const O=_.value;return O?typeof O=="function"?t.h("div",{class:"fox-item__tip--icon"},[O()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(O)]):null},R=()=>{const O=J.value;return O?typeof O=="function"?t.h("div",{class:"fox-item__tip--text"},[O()]):t.h("div",{class:"fox-item__tip--text"},[O]):null},H=()=>{if(!K())return null;const O=[],G=te();G&&O.push(G);const oe=R();oe&&O.push(oe);const le={class:j.value,style:q.value};return t.h("div",le,O)},Y=()=>r.slots?.hide?.()??null;return()=>{const O=[],G=[],oe=X();oe&&G.push(oe);const le=Z();le&&G.push(le);const re={class:S.value},ce=t.h("div",re,G);O.push(ce);const Ne=H();Ne&&O.push(Ne);const Ce=Y();Ce&&O.push(Ce);const _t={class:h.value,style:y.value,prop:l.prop};return t.h("div",_t,O)}}}}const{componentName:Nc,create:Bc,scope:Vc}=Q("item"),we=Bc(wc(Nc,Vc,$t,!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=je(),i=qn();Pn(!1);const c=t.computed(()=>{const f={};if(a.width)a.width!=="auto"&&(f.width=ge(a.width));else if(i&&s){const p=Mn(s,!1),u=Ln(s,!1);if(p.value&&u){if(p.value.type==="grid"){const h=Fn(u,p.value,a.span,a.offset);Object.assign(f,h)}else if(p.value.type==="flow"){const h=zn(u,p.value,a.span,a.offset,a.width);Object.assign(f,h)}}}return f});return()=>{const f=[];if(o.slots.default){const u=o.slots.default();if(a.divide)for(let h=0;h<u.length;h++){if(h>0){const k=t.h("div",{class:{[`${l}__divide`]:!0}});f.push(k)}f.push(u[h])}else Reflect.apply([].push,f,u)}const p={class:r.value,style:c.value};return t.h("div",p,f)}}}}const{componentName:Tc,create:$c,scope:fV}=Q("row-item"),Jo=$c(Ac(Tc));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=je(),r=qn();Pn(!1);const s=t.computed(()=>r&&l?Mn(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),f=t.computed(()=>{const p={};if(a.width)a.width!=="auto"&&(p.width=ge(a.width));else{const u=r&&l?Ln(l,!1):null;if(s.value&&u){if(s.value.type==="grid"){const h=Fn(u,s.value,a.span,a.offset);Object.assign(p,h)}else if(s.value.type==="flow"){const h=zn(u,s.value,a.span,a.offset,a.width);Object.assign(p,h)}}}return p});return()=>{const p={class:c.value,style:f.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",p,o.slots.default()):t.h("div",p)}}}}const{componentName:xc,create:Dc,scope:mV}=Q("slot-item"),_o=Dc(Ec(xc)),ja={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:{...pe,...ye,...ja},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ve({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:f}=se.useFoxI18n(n),p=f(l,["placeholder"]),u=t.ref(!1),h=qe(l,"modelValue",null,c),k=e,y=t.computed(()=>({[k]:!0,"is-disabled":s.value,"is-readonly":i.value})),v=Ae(t.computed(()=>l.textAlign),"textAlign"),b=t.computed(()=>{const E={};return v.value&&(E["text-align"]=v.value),E}),d=E=>{let x=E.target.value;l.type==="digit"&&(x=wo(x,!0)),l.type==="number"&&(x=wo(x,!1)),l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),h.value=x,c("update:modelValue",x,E),c("change",x,E)};let m=qe(l,"hintText"),g=t.ref(!1);const S=E=>{let x=E.target.value;u.value=!0,de(m.value)||(g.value=!0),c("focus",x,E)},N=E=>{setTimeout(()=>{g.value&&(g.value=!1),u.value=!1},0);let x=E.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),c("blur",x,E)},C=t.computed(()=>({[`${k}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),w=t.computed(()=>{const E={};return r.slots.append&&!B.value&&!F.value&&(E.display="none"),E}),B=t.computed(()=>ve(l.unit)>0),V=t.computed(()=>!F.value),T=t.computed(()=>({[`${k}__unit`]:!0,hidden:!V.value})),$=E=>{h.value="",c("update:modelValue","",E),c("change","",E),c("clear","")},I=t.computed(()=>he(l.clearable)&&!s.value&&!i.value),F=t.computed(()=>{let E=ve(h.value)>0;return he(l.clearable)&&E&&u.value}),A=t.computed(()=>({action:!0,hidden:!F.value}));return()=>{const E={class:y.value,style:b.value,type:l.type,maxlength:l.maxLength,placeholder:p.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:d,onFocus:S,onBlur:N},M=[],x=t.h("input",E);M.push(x);const U=[];if(I.value){const D={class:["action-icon"]},W=t.h(o,D),P={class:A.value,onClick:$},z=t.h("view",P,{default:()=>[W]});U.push(z)}if(B.value){const D=t.h("view",{class:T.value},[l.unit]);U.push(D)}const K={class:C.value,style:w.value},J=t.h("view",K,{default:()=>U});M.push(J);const _={default:()=>M};_.label=r.slots.default,_.prepend=r.slots.prepend,_.append=r.slots.append,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const q={...At(l,ja),hintText:m.value,hintVisible:g.value};return l.prop&&(q.prop=`${l.prop}_item`),t.h(a,q,_)}}}}const{componentName:qc,create:Pc,scope:Mc}=Q("input-item"),el=Pc(Ic(qc,Mc,we,ne.CircleClose));function Wa(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 Ya(e,n,a=20){if(typeof n=="string"&&(n=me(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Dr(`${e}`,`${n}`);return Wa(o)}else{let o=Ko(`${e}`,Ir(`${n}`),20);return Wa(o)}}function Lc(e,n=-1,a=!1,o=3,l=","){return Cn(e,n,a,o,l)}function Xa(e,n,a,o,l=!0){if(e==="")return"";if(e=qr(e),n=me(n),n==1)return e;if(o)e=Ya(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(me(a)+2,"0"):e=Ko(e,1,me(a)));else{let r=-1*n;e=Ya(e,r)}return e}function Qa(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=he(n.minInclude),l=ko(e,n.min);if(o&&l==-1||!o&&(l==0||l==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let o=he(n.maxInclude),l=ko(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Ga={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 zc(e,n,a,o){return{props:{...pe,...ye,...Ga},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ve({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),f=t.ref(!1),p=qe(l,"modelValue",null,c),u=t.ref("");t.watch([()=>p.value,()=>l.rates,()=>l.precision],([K,J,_])=>{if(de(K)){u.value="";return}const j=Xa(K,J,_,!1);u.value!==j&&(u.value=j)},{immediate:!0});const h=t.computed(()=>{let K="";return f.value&&(K=u.value),K}),{t:k}=se.useFoxI18n(n),y=t.computed(()=>{let K=l.placeholder??"";return!f.value&&!de(u.value)?K=Lc(u.value,l.decimalLength,l.autoPadding,l.digits,l.separator):K=de(K)?k(["placeholder"]):K,K}),v=e,b=t.computed(()=>({[v]:!0,[`${v}__placeholder`]:u.value.length>0,"is-disabled":s.value,"is-readonly":i.value})),d=Ae(t.computed(()=>l.textAlign),"textAlign"),m=t.computed(()=>{const K={};return d.value&&(K["text-align"]=d.value),K}),g=t.ref(""),S=t.computed(()=>{let K=g.value;return de(K)&&(K=l.errorTip??""),K}),N=t.ref(""),C=t.ref(!1),w=K=>{let _=K.target.value;if(de(_)){u.value="",p.value="",c("update:modelValue","",K),c("change","",K),he(l.showTip)&&C.value&&(C.value=!1);return}if(_.length>=2){let j=_;if(j.charAt(0)=="-"&&(j=j.substring(1)),j.length>=2&&j.charAt(0)=="0"&&j.charAt(1)!="."){t.triggerRef(u);return}}if(_!="-"){if(!Ur(_)){t.triggerRef(u);return}if(l.integerLength!=-1&&Hr(_)>Number(l.integerLength)){t.triggerRef(u);return}if(l.decimalLength&&l.decimalLength!=-1&&jr(_)>Number(l.decimalLength)){t.triggerRef(u);return}let j=Qa(_,l);if(j.maxValid===!1){g.value=j.message,t.triggerRef(u);return}}else if(l.min!=null&&me(l.min)>=0){t.triggerRef(u);return}N.value=_,he(l.showTip)&&(C.value=_.length>0),u.value=_,p.value=Xa(_,l.rates,l.precision,!0),c("update:modelValue",p.value,K),c("change",p.value,K)},B=K=>{if(f.value=!0,he(l.showTip)){let J=u.value;de(J)&&(J=l.hintText),de(J)||(N.value=J,C.value=!0)}g.value="",c("focus",p.value,K)},V=K=>{if(setTimeout(()=>{f.value=!1,he(l.showTip)&&C.value===!0&&(C.value=!1)},0),!de(u.value)){let J=Qa(u.value,l);if(J.minValid===!1||J.maxValid===!1){g.value=J.message;return}}c("update:modelValue",p.value,K),c("blur",p.value,K)},T=t.computed(()=>({[`${v}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),$=t.computed(()=>{const K={};return r.slots.append&&!I.value&&!x.value&&(K.display="none"),K}),I=t.computed(()=>ve(l.unit)>0),F=t.computed(()=>!x.value),A=t.computed(()=>({[`${v}__unit`]:!0,hidden:!F.value})),E=K=>{p.value="",c("update:modelValue","",K),c("change","",K),c("clear","")},M=t.computed(()=>he(l.clearable)&&!s.value&&!i.value),x=t.computed(()=>{let K=ve(p.value)>0;return he(l.clearable)&&K&&f.value}),U=t.computed(()=>({action:!0,hidden:!x.value}));return()=>{let K={class:b.value,style:m.value,type:"digit",maxlength:l.maxLength,placeholder:y.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:w,onFocus:B,onBlur:V},J=[],_=t.h("input",K);J.push(_);let j=[];if(M.value){const z={class:["action-icon"]},X=t.h(o,z),Z={class:U.value,onClick:E},te=t.h("view",Z,{default:()=>[X]});j.push(te)}if(I.value){const z=t.h("view",{class:A.value},[l.unit]);j.push(z)}const q={class:T.value,style:$.value},L=t.h("view",q,{default:()=>j});J.push(L);const D={default:()=>J};D.label=r.slots.default,D.prepend=r.slots.prepend,D.append=r.slots.append,D.fixedPreTip=r.slots.fixedPreTip,D.fixedTip=r.slots.fixedTip;const P={...At(l,Ga),errorTip:S.value,hintText:N.value,hintVisible:C.value,hintType:"number"};return l.prop&&(P.prop=`${l.prop}_item`),t.h(a,P,D)}}}}const{componentName:Fc,create:Rc,scope:Oc}=Q("money-item"),tl=Rc(zc(Fc,Oc,we,ne.CircleClose)),$o={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:Kc,create:Uc,scope:Hc}=Q("textarea"),jc=Uc({props:{...$o},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=se.useFoxI18n(Hc);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const h=Kc;return{[h]:!0,[`${h}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const s=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let h=l.value;h.style.height="auto";let k=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:y,minHeight:v}=e.autosize;y!==void 0&&(k=Math.min(k,y)),v!==void 0&&(k=Math.max(k,v))}k&&(console.info("----------- height",k),h.style.height=k+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,k)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,k),n("change",h,k)};return{...o,textareaRef:l,classes:r,styles:s,change:h=>{const k=h.target;c(k.value,h)},focus:h=>{e.disabled||e.readonly||n("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let y=h.target.value;c(y,h),n("blur",{value:y,event:h})}}}}),Wc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Yc={key:0,class:"fox-textarea__limit"};function Xc(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,Wc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Yc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const On=ee(jc,[["render",Xc]]);function Qc(e,n,a,o){return{props:{...pe,...ye,...$o},emits:["update:modelValue","change","blur","focus","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ve({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),f=qe(l,"modelValue",null,c),p=v=>{f.value=v,c("update:modelValue",v,{}),c("change",v,{})};let u=qe(l,"hintText"),h=t.ref(!1);const k=v=>{de(u.value)||(h.value=!0),c("focus",f.value,v)},y=v=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",f.value,v)};return()=>{const b={...be(l,$o),disabled:s.value,readonly:i.value,value:f.value,"onUpdate:modelValue":p,onFocus:k,onBlur:y},d=[],m=t.h(o,b);d.push(m);const g={default:()=>d};g.label=r.slots.default,g.prepend=r.slots.prepend,g.append=r.slots.append,g.fixedPreTip=r.slots.fixedPreTip,g.fixedTip=r.slots.fixedTip;const N={...be(l,ye,pe)};return l.prop&&(N.prop=`${l.prop}_item`),t.h(a,N,g)}}}}const{componentName:Gc,create:Zc,scope:Jc}=Q("textarea-item"),nl=Zc(Qc(Gc,Jc,we,On));function _c(e){return e===window}const De=e=>{const n=t.unref(e);if(_c(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 eu=2e3;const Za=()=>eu++,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:{}}},tu=(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=Za());const r=t.computed(()=>{const v=e,b=[v,`${v}--${a.position}`];return a.round&&b.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&b.push(`${v}--${a.position}--safebottom`),typeof a.popClass=="string"?b.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(d=>{b.push(d)}),b}),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=Za(),a.destroyOnClose&&(l.showSlot=!0),o("open")},f=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},p=v=>{o("click-pop",v)},u=v=>{v.stopPropagation(),o("click-close-icon",v),o("update:visible",!1)},h=v=>{o("click-overlay",v),a.closeOnClickOverlay&&o("update:visible",!1)},k=v=>{o("opend",v)},y=v=>{o("closed",v)};return t.watch(()=>a.visible,v=>{a.visible?c():f()}),t.watch(()=>a.closeable,v=>{l.closed=v}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:p,onClickCloseIcon:u,onClickOverlay:h,onOpened:k,onClosed:y}}});let It=0;const Ja="fox-overflow-hidden",_a=()=>ct?document.body:{classList:[]},nu=e=>[()=>{if(e())try{!It&&_a().classList.add(Ja),It++}catch{}},()=>{if(e()&&It)try{It--,!It&&_a().classList.remove(Ja)}catch{}}],ou={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:lu,create:au}=Q("overlay"),ru=au({props:{...ou},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=nu(()=>e.lockScroll),l=t.computed(()=>({[lu]:!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 su(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=ee(ru,[["render",su]]),{componentName:iu,create:cu}=Q("popup"),uu=cu(tu(iu,{FoxOverLay:st,Close:ne.Close}));function du(e,n,a,o,l,r){const s=t.resolveComponent("FoxOverLay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const fe=ee(uu,[["render",du]]),er=10;function hs(e,n){return e>n&&e>er?"horizontal":n>e&&n>er?"vertical":""}function ol(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function ll(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const f=s.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.clientY}else{const c=s;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=hs(e.offsetX,e.offsetY))},start:s=>{if(o(),s.touches){const f=s.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const c=s;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function _e(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),f=t.ref(0),p=t.ref(""),u=()=>p.value==="vertical",h=()=>p.value==="horizontal",k=()=>{s.value=0,i.value=0,c.value=0,f.value=0,p.value="",a.value=0};return{move:b=>{if(b.touches){const g=b.touches[0];s.value=g.clientX-e.value,i.value=g.clientY-n.value,l.value=g.clientX,r.value=g.clientY}else{const m=b;s.value=m.clientX-e.value,i.value=m.clientY-n.value,l.value=m.clientX,r.value=m.clientY}c.value=Math.abs(s.value),f.value=Math.abs(i.value),o.value=Date.now()-a.value,p.value||(p.value=hs(c.value,f.value))},start:b=>{if(k(),b.touches){const g=b.touches[0];e.value=g.clientX,n.value=g.clientY}else{const m=b;e.value=m.clientX,n.value=m.clientY}a.value=Date.now()},reset:k,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:f,direction:p,isVertical:u,isHorizontal:h}}const gs={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}},Eo={...Re,...gs,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 ys=36;function fu(){return ys}function mu(e){ys=e}function ze(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function xo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function pu(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 tr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let hu=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(xe(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function gu(){const e=t.getCurrentInstance();return new hu(e.proxy)}function nr(e,n,a){const o=ze(e,n),l=ze(e,a);if(o!==l)return!1;const r=it(e,n),s=it(e,a);return r===s}function yu(e,n,a,o){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const l=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=n[s];let f=a[s].findIndex(p=>{if(r==="text")return ze(e,p)===i;if(r==="value"){let u=it(e,p);return u==null&&(u=ze(e,p)),u===i}else if(r==="item")return nr(e,p,i)});if(f==-1)break;l.push(f)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let f=s.findIndex(u=>{if(r==="text")return ze(e,u)===c;if(r==="value"){let h=it(e,u);return h==null&&(h=ze(e,u)),h===c}else if(r==="item")return nr(e,u,c)});if(f==-1)break;l.push(f);const p=xo(e,s[f]);if(!Array.isArray(p))break;s=p}}return l}function or(e,n,a,o){if(a.length==0)return null;const l={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=a[s];let c=n[s];c<0&&c>=i.length&&(c=0);const f=i[c],p=ze(e,f);if(l.texts.push(p),l.items.push(f),r==="text")l.values.push(p);else if(r==="value"){let u=it(e,f);u==null&&(u=p),l.values.push(u)}else l.values.push(f)}else{let s=a[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=s.length&&(c=0);const f=s[c],p=Object.assign({},f);p.children=null;const u=ze(e,f);if(l.texts.push(u),l.items.push(p),r==="text")l.values.push(u);else if(r==="value"){let h=it(e,f);h==null&&(h=u),l.values.push(h)}else l.values.push(p);if(!Array.isArray(f.children))break;s=f.children}}return l}function lr(e){return{text:e,value:e}}const vu=15,bu=300,ku=200,{create:Su}=Q("picker-column");function Cu(e){e.stopPropagation()}function wu(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Cu(e)}const Nu=Su({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},...gs},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${me(e.visibleItemCount)*+e.itemHeight}px`})),l=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=w=>w>=u.currIndex+8||w<=u.currIndex-8,i=t.computed(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${u.deg})`,top:`${r.value}px`})),c=w=>`transform: rotate3d(1, 0, 0, ${-u.rotation*w}deg) translate3d(0px, 0px, 104px)`,f=t.computed(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${u.scrollDistance+r.value}px, 0)`})),p=t.ref(null),u=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=w=>ze(e,w),k=w=>it(e,w),y=_e(),v=()=>{u.transitionEndTrigger&&(u.transitionEndTrigger(),u.transitionEndTrigger=null)},b=(w,B=!1,V=!1)=>{if(u.currIndex=w,B){const T=()=>{u.moving=!1,n("update:modelValue",w),n("change",w)};V?u.transitionEndTrigger=T:T()}},d=(w,B,V)=>{let T=w+u.startDistance;if(B==="end"){const $=-(e.source.length-1)*e.itemHeight;T<$&&(T=$),T>0&&(T=0);let I=Math.abs(Math.round(-T/e.itemHeight));const F=-I*e.itemHeight,A=`${(I+1)*u.rotation}deg`,E=V?V>0:!1;b(I,!0,E),m(F,B,V,A)}else{let $=(-T/e.itemHeight+1)*u.rotation;const I=(e.source.length+1)*u.rotation,F=0;if($=Math.min(Math.max($,F),I),e.threeDimensional&&($<F||$>I))return;m(T,null,void 0,`${$}deg`)}},m=(w=0,B,V=ku,T)=>{B==="end"?u.scrollTime=V:u.scrollTime=0,u.deg=T,u.scrollDistance=w},g=(w,B)=>(w=Math.abs(w/B)/.003*(w<0?-1:1),w),S=w=>{e.readonly||(u.startDistance=u.scrollDistance,y.start(w),u.transitionEndTrigger=null)},N=w=>{e.readonly||(u.moving=!0,y.move(w),y.isVertical()&&(u.moving=!0,wu(w,!0)),d(y.deltaY.value,"",0))},C=()=>{if(e.readonly)return;const w=y.deltaY.value,B=y.duration.value;if(B<bu&&Math.abs(w)>vu){const T=g(w,B);d(T,"end",e.swipeDuration)}else d(w,"end",0)};return t.watch(()=>e.modelValue,w=>{const B=u.currIndex-w;if(B!==0){u.currIndex=w,u.startDistance=u.scrollDistance;const V=B*e.itemHeight;d(V,"",0)}}),t.watch(()=>e.source,w=>{if(u.currIndex>=w.length){const T=(w.length-1-u.currIndex)*e.itemHeight;u.startDistance=u.scrollDistance,d(T,"end",0)}}),t.watch(()=>e.visible,w=>{w===!1&&v()}),t.onMounted(()=>{const w=-e.modelValue*e.itemHeight;d(w)}),{classes:a,styles:o,contentClasses:l,itemText:h,itemValue:k,...t.toRefs(u),roller:p,getItemText:ze,onTouchStart:S,onTouchMove:N,onTouchEnd:C,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:f,stopMomentum:v}}}),Bu={key:1,class:"fox-picker__item-tile"};function Vu(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:n[4]||(n[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",Bu,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Au=ee(Nu,[["render",Vu]]),{create:Tu,componentName:$u,scope:Eu}=Q("picker"),xu=Tu({components:{Column:Au,Popup:fe},props:{...Eo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=se.useFoxI18n(Eu),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(fu());t.watch(()=>e.visible,A=>{A&&s.value<=0&&setTimeout(()=>{if(r.value){const E=De(r.value);s.value=E.height,mu(s.value)}},50)});const i=t.computed(()=>({[$u]:!0})),c=gu(),f=t.ref("singleColumn");let p=t.ref([]);t.watch([()=>e.source,()=>e.params],async([A,E])=>{if(A){let M=await c.load("picker",A,E);if(M.length>0){let x=M[0];if(Array.isArray(x)){if(typeof x[0]=="string"){let U=M,K=[];U.forEach(J=>{let _=J.map(j=>lr(j));K.push(_)}),p.value=K}else p.value=M;f.value="multipleColumn"}else if(typeof x=="string"){let U=M,K=[],J=U.map(_=>lr(_));K.push(J),p.value=K,f.value="singleColumn"}else{const U=xo(e,x);Array.isArray(U)?(f.value="cascade",p.value=[M]):(f.value="singleColumn",p.value=[M])}}else p.value=[]}},{immediate:!0});const u=t.ref([]),h=t.ref(e.modelValue),k=t.ref([]);let y=null;const v=t.ref([]);t.watch([()=>e.modelValue,()=>p.value],([A,E])=>{let M=yu(e,A,E,f.value);if(!Pe(M,v.value)){v.value=M,y||(y=M?[...M]:[]);let x=or(e,M,E,f.value);x&&(u.value=x.texts,n("update:text",u.value))}});let b="";const d=t.ref(e.visible);t.watch(()=>e.visible,A=>{d.value=A,A&&(b="active",v.value.length>0&&(y=[...v.value]))});const m=A=>{let E=tr(e,A);return xe(E)?E.defaultIndex??0:0},g=A=>{if(e.readonly===!0)return!0;let E=tr(e,A);return xe(E)?E.readonly??!1:!1},S=(A,E)=>{let M=v.value;M[A]=E;for(let U=0;U<A;U++)M[U]==null&&(M[U]=m(U));if(f.value==="cascade")for(let U=A+1;U<C.value.length;U++){let K=m(U);U<M.length?M[U]=K:M.push(K)}else for(let U=M.length;U<C.value.length;U++){let K=m(U);M.push(K)}v.value=M;let x=or(e,M,p.value,f.value);x&&(u.value=x.texts,h.value=x.values,k.value=x.items)},N=A=>A<v.value.length?v.value[A]:m(A),C=t.computed(()=>{if(p.value.length==0)return[];if(f.value=="singleColumn"||f.value=="multipleColumn")return p.value;let A=[],E=0,M=p.value[0],x=0;for(;;){let U=M.map(_=>{let j=Object.assign({},_);return pu(e,j,null),j});A.push(U),E>=v.value.length?x=0:x=v.value[E],(x<0||x>=M.length)&&(x=0);let K=M[x];const J=xo(e,K);if(!Array.isArray(J))break;M=J,E++}return A}),w=t.computed(()=>me(+e.visibleItemCount-1)/2*s.value),B=(A=!1)=>{if(e.readonly===!0){A&&n("update:visible",!1);return}let E=p.value.length-1;for(;E>=0&&!(v.value[E]===null||v.value[E]===void 0);E--);if(E>=0&&S(E,0),f.value==="singleColumn"){let M=h.value.length>0?h.value[0]:"",x=k.value.length>0?k.value[0]:null;n("update:modelValue",M),n("update:text",u.value),n("change",M,x),A&&(n("confirm",M),n("update:visible",!1))}else n("update:modelValue",h.value),n("update:text",u.value),n("change",h.value,k.value),A&&(n("confirm",h.value),n("update:visible",!1))},V=(A,E)=>{if(b!=="close"&&(S(A,E),e.isAutoBackFill)){const M=!d.value;B(M)}},T=()=>{b==="active"&&(b="confirm",y=Array.isArray(v.value)?[...v.value]:[],B(!0))},$=()=>{f.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),v.value=[],y=null};return{...l,pickerLineRef:r,classes:i,columns:C,dataType:f,show:d,itemHeight:s,top:w,isReadonly:g,getIndex:N,change:V,close:()=>{if(b==="active"){if(b="close",y===null||y.length===0)$();else{if(Array.isArray(y))for(let A=0;A<y.length;A++)S(A,y[A]);B(!1)}n("close"),n("update:visible",!1)}},confirm:T,clear:()=>{if(b==="active"){if(b="clear",e.readonly===!0){n("update:visible",!1);return}$(),y=null,n("clear",""),n("update:visible",!1)}}}}}),Du={class:"fox-picker__bar"},Iu={class:"fox-picker__title"},qu={class:"fox-picker__bar__action"},Pu={class:"fox-picker__column"};function Mu(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",Du,[t.createElementVNode("view",Iu,t.toDisplayString(e.title),1),t.createElementVNode("view",qu,[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",Pu,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:"fox-picker__columnitem"},[t.createVNode(s,{visible:e.show,source:c,readonly:e.isReadonly(f),"column-index":f,modelValue:e.getIndex(f),"onUpdate:modelValue":p=>e.change(f,p),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["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 kt=ee(xu,[["render",Mu]]);function Lu(e,n,a,o,l,r,s=!0){return{props:{...pe,...ye,...Eo,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 f=$e(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ve({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),k=h(i,["placeholder"]),y=t.ref(!1),v=qe(i,"modelValue",null,u),b=t.ref([]),d=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),m="fox-input-item",g=t.computed(()=>({[m]:!0,"is-disabled":f.value,"is-readonly":p.value})),S=Ae(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const L={};return S.value&&(L["text-align"]=S.value),L}),C=t.ref(!1),w=()=>{C.value=!0},B=L=>{C.value=L},V=L=>{v.value=L,u("update:modelValue",L)},T=(L,D)=>{u("change",L,D)},$=L=>{let W=L.target.value;y.value=!0,u("focus",W,L)},I=L=>{setTimeout(()=>{y.value=!1},0);let W=L.target.value;i.maxLength&&W.length>Number(i.maxLength)&&(W=W.slice(0,Number(i.maxLength))),u("blur",W,L)},F=L=>{b.value=L,Array.isArray(L)&&L.length===0?u("update:text",L[0]):u("update:text",L)},A=t.computed(()=>({[`${m}__append`]:!0,"is-disabled":f.value,"is-readonly":p.value})),E=t.computed(()=>ve(i.unit)>0),M=t.computed(()=>ve(i.unit)>0&&!y.value),x=t.computed(()=>({hidden:!M.value})),U=L=>{v.value="",u("update:modelValue","",L),u("change","",L),u("clear","")},K=t.computed(()=>i.clearable&&!f.value&&!p.value),J=t.computed(()=>ve(v.value)>0&&y.value),_=L=>{J.value?U(L):w()},j=t.computed(()=>J.value&&K.value?o:l),q=t.computed(()=>({action:!0}));return()=>{const L={class:g.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:w,onFocus:$,onBlur:I};s&&(L.disabled=!0);const D=[],W=t.h("input",L);D.push(W);const P=[],z={class:["action-icon"]},X=t.h(j.value,z),Z={class:q.value,onClick:_},te=t.h("view",Z,{default:()=>[X]});if(P.push(te),E.value){const re=t.h("view",{class:x.value},[i.unit]);P.push(re)}const R={class:A.value},H=t.h("view",R,{default:()=>P});D.push(H);const Y={default:()=>D};Y.label=c.slots.default,Y.prepend=c.slots.prepend,Y.append=c.slots.append,Y.fixedPreTip=c.slots.fixedPreTip,Y.fixedTip=c.slots.fixedTip;const O=be(i,Eo);O.disabled=!1,O.readonly=f.value||p.value,O.visible=C.value,O["onUpdate:visible"]=B,O.modelValue=v.value,O["onUpdate:modelValue"]=V,O.text=b.value,O["onUpdate:text"]=F,O.onChange=T;const G=t.h(r,O);Y.hide=()=>[G];const oe=be(i,ye,pe);return i.prop&&(oe.prop=`${i.prop}_item`),t.h(a,oe,Y)}}}}const{componentName:zu,create:Fu,scope:Ru}=Q("picker-item"),al=Fu(Lu(zu,Ru,we,ne.CircleClose,ne.ArrowRight,kt,!1)),ln=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:f,...p}=o,u={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:f,_parent:n};return u.children&&u.children.length&&(u.children=ln(u.children,u,a)),u}),vs=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&vs(o.children,n)},Ou={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Ku=(e,n)=>{const a={...Ou,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(f=>{f={...f};const{[l]:p,[r]:u}=f,h=c[u]=c[u]||[];!i.length&&u===o&&(i=h),h.push(f),f.children=c[p]||(c[p]=[])}),s&&Object.keys(c).forEach(f=>{c[f].length>1&&c[f].sort((p,u)=>p[s]-u[s])}),c=null,i},Uu={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}},ar=(e,n)=>n[e.textKey],qt=(e,n)=>n[e.valueKey],Hu=(e,n)=>n[e.visibleKey],rr=(e,n)=>n[e.disabledKey],ju=(e,n)=>{const a=n[e.doitKey];return he(a)},Wu=(e,n)=>{const a=n[e.numKey];return a==null?null:me(n[a])},sr=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function Yu(e,n,a,o=!1){return{props:{...Uu},emits:["update:modelValue","change","click"],setup(l,{slots:r,emit:s}){const i=t.computed(()=>{const j={};return j[`${e}`]=!0,j}),c=t.computed(()=>{const j={};return j[`${e}__titles`]=!0,j[`${l.direction}`]=!0,l.align==="left"&&(j.left=!0),l.scroll===!0&&(j.scrollable=!0),l.shape&&(j[`${l.shape}`]=!0),j}),f=t.computed(()=>({})),p=t.computed(()=>{if(!l.gutter)return 0;const j=ue(l.gutter);return j<=0?0:j}),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,j=>{u.value!==j&&(u.value=j,x(!1))});const h=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),k=t.computed(()=>{const j={};return v.value||(j.display="none"),j}),y=t.ref(),v=t.ref(!1),b=()=>{const j=!v.value;d(j)},d=j=>{const q=j;q?(v.value=q,setTimeout(()=>{h.value["fox-tabs-bar__popup--show"]=!0,h.value["fox-tabs-bar__popup--hide"]=!1},0)):(h.value["fox-tabs-bar__popup--show"]=!1,h.value["fox-tabs-bar__popup--hide"]=!0,y.value?y.value.addEventListener("transitionend",()=>{v.value=!1},{once:!0}):setTimeout(()=>{v.value=!1},0))},m=t.ref(),g=t.ref([]),S=(j,q)=>{g.value[q]=j},N=j=>q=>{S(q,j)},C=(j,q)=>{const L=m.value,D=g.value;if(!L||!D||!D[j])return;const W=D[j];let P=0;l.direction==="vertical"?P=W.offsetTop-(L.offsetHeight-W.offsetHeight)/2:P=W.offsetLeft-(L.offsetWidth-W.offsetWidth)/2,w(L,P,q?0:.3,l.direction)},w=(j,q,L,D)=>{let W=0;const P=D==="horizontal"?j.scrollLeft:j.scrollTop,z=L===0?1:Math.round(L*1e3/16);function X(){D==="horizontal"?j.scrollLeft+=(q-P)/z:j.scrollTop+=(q-P)/z,++W<z&&Ke(X)}X()},B=(j,q)=>{const L=qt(l,j),D={};return D[`${e}__titles-item`]=!0,D.disabled=rr(l,j),D.active=L===u.value,l.shape&&(D[`${l.shape}`]=!0),l.ellipsis&&(D.ellipsis=!0),q&&(q.class&&(D[`${q.class}`]=!0),q.disabled===!0&&(D.disabled=q.disabled)),D},V=(j,q)=>{const L={};if(p.value>0){const D=Math.abs(p.value/2);l.direction==="vertical"?(L["margin-top"]=`${D}px`,L["margin-bottom"]=`${D}px`):(L["margin-left"]=`${D}px`,L["margin-right"]=`${D}px`)}return q&&q.style&&Object.assign(L,q.style),L},T=(j,q)=>`${qt(l,j)??q}`,$=(j,q)=>{const L=qt(l,j),D={};D[`${e}__popup-item`]=!0,D.disabled=rr(l,j),D.active=L===u.value,l.shape&&(D[`${l.shape}`]=!0);const W=sr(l,j,q);return W&&W.disabled===!0&&(D.disabled=W.disabled),D},I=t.computed(()=>(l.data??[]).filter(q=>Hu(l,q)!==!1)),F=(j,q)=>{const L=qt(l,j);if(s("click",j,q),u.value==L)return;const D=()=>{u.value=L,l.scroll&&C(q,!1),s("update:modelValue",L),s("change",j,q)};if(typeof l.beforeChange=="function"){const W=l.beforeChange(j,q);yt(W)?W.then(P=>{P!==!1&&D()}).catch(()=>{D()}):W!==!1&&D()}else D()},A=(j,q)=>function(){F(j,q)},E=(j,q)=>{F(j,q),d(!1)},M=(j,q)=>function(){E(j,q)},x=j=>{if(!Array.isArray(l.data)||!l.scroll)return;const q=l.data.findIndex(L=>qt(l,L)===u.value);q!==-1&&C(q,j)};t.watch(()=>l.data,()=>{setTimeout(x,0)}),t.onMounted(()=>{x(!0)});const U=(j,q)=>{if(r.item)return r.item({item:j,index:q});const L=sr(l,j,q),D=[];if(r.text){const X=r.text({item:j,index:q});D.push(X)}else{const X=[];if(L?.doit===!0||ju(l,j)){const H={class:[`${e}__titles-item-tip`,"doit"]},Y=t.h("view",H);X.push(Y)}const Z=L?.num??Wu(l,j);if(Z){let H="";const Y=me(Z);Y>=100?H="99+":H=`${Y}`;const O={class:[`${e}__titles-item-tip`,"num"]},G=t.h("view",O,[H]);X.push(G)}const te={class:`${e}__titles-item-text`};X.push(ar(l,j));const R=t.h("view",te,X);D.push(R)}const W={class:`${e}__titles-item-line`},P=t.h("view",W);D.push(P);const z={ref:N(q),class:B(j,L),style:V(j,L),key:T(j,q),onClick:A(j,q)};return t.h("view",z,D)},K=()=>{const j=r.default?r.default():[];if(j.length===0)for(let L=0;L<I.value.length;L++){const D=I.value[L],W=U(D,L);j.push(W)}const q={ref:m,class:c.value,style:f.value};return t.h("view",q,j)},J=()=>{let j=null;r.navigation?j=r.navigation():j=t.h(a);const q={class:`${e}__navigation`,onClick:b};return t.h("view",q,[j])},_=()=>{const j=[];for(let L=0;L<I.value.length;L++){const D=I.value[L];let W=null;r.popupItem?W=r.popupItem({item:D,index:L}):W=ar(l,D);const P={class:$(D,L),key:T(D,L),onClick:M(D,L)},z=t.h("view",P,[W]);j.push(z)}const q={class:h.value,style:k.value};return t.h("view",q,j)};return()=>{const j=[],q=K();if(j.push(q),l.showQuickNavigation){const D=J();j.push(D);const W=_();j.push(W)}const L={class:i.value};return t.h("view",L,j)}}}}const{create:Xu,componentName:Qu,scope:Gu}=Q("tabs-bar"),Kn=Xu(Yu(Qu,Gu,ne.MoreH,!1)),bs=Symbol("TabsStatesKey"),Zu={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Ju(e,n,a=!1){return{props:{...Zu},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:v=>{const b={name:v};i.current.value===v&&(b.loaded=!0),s.value.push(b),t.triggerRef(s)},remove:v=>{const b=s.value.findIndex(d=>d.name===v);b!==-1&&s.value.splice(b,1)},isLoaded:v=>{if(!o.lazy)return!0;const b=s.value.findIndex(d=>d.name===v);return b!==-1?i.current.value?s.value[b].loaded??!1:b===0:!1}};t.provide(bs,i);const c=v=>{const b=s.value.findIndex(d=>d.name===v);b!==-1&&(s.value[b].loaded=!0,t.triggerRef(s))};t.watch([()=>o.modelValue,()=>o.direction],([v,b])=>{i.current.value!==v&&(i.current.value=v??"",c(v??"")),i.direction.value!==b&&(i.direction.value=b)});const f=t.ref(null),p=t.ref(null),u=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0}));let h=!0;const k=t.computed(()=>{const v={},b=s.value.length;if(b<=0)return v;const d=s.value.findIndex(m=>m.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(v.height=`${b*i.tabHeight.value}px`,d!==-1&&(v.transform=`translate(0, -${d*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(v.width=`${b*i.tabWidth.value}px`,d!==-1&&(v.transform=`translate(-${d*i.tabWidth.value}px, 0)`)),h&&(h=!1,v.transition="transform 0s ease"),v});let y=null;return t.onMounted(()=>{if(!f.value)return;const v=()=>{const b=Dn(f.value);i.tabWidth.value=b.width,i.tabHeight.value=b.height};window.ResizeObserver&&(y=new window.ResizeObserver(v),y.observe(f.value)),v()}),t.onBeforeUnmount(()=>{y&&(y.disconnect(),y=null)}),()=>{const v={class:`${e}__panes`,style:k.value,ref:p},b=t.h("view",v,[r?.default?.()]),d={class:u.value,ref:f};return t.h("view",d,[b])}}}}const{create:_u,componentName:ed,scope:td}=Q("tabs-container"),Un=_u(Ju(ed,td,!1)),nd={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function od(e,n,a){return{props:{...nd},setup(o,{emit:l,slots:r}){const s=t.inject(bs);t.onMounted(()=>{s.add(o.paneKey)}),t.onBeforeUnmount(()=>{s.remove(o.paneKey)});const i=t.computed(()=>{const f={};return s.direction.value==="vertical"&&s.tabHeight.value>0?f.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(f.width=`${s.tabWidth.value}px`),f}),c=t.computed(()=>o.loaded!=null?he(o.loaded):s.isLoaded(o.paneKey));return()=>{let f=[];if(c.value)f=r?.default?.()??[];else if(r.empty)f=r.empty();else{const u={class:`${e}__empty-icon`},h=o.emptyIcon??a,k=t.h(h,u),y={class:`${e}__empty-text`},v=o.emptyText??"Loading",b=t.h("view",y,[v]),d={class:`${e}__empty`},m=t.h("view",d,[k,b]);f.push(m)}const p={class:`${e}`,style:i.value};return t.h("view",p,f)}}}}const{create:ld,componentName:ad,scope:rd}=Q("tabs-pane"),Hn=ld(od(ad,rd,ne.Loading));class ir{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=ln(n,null,this.config)}updateChildren(n,a){a?a.children=ln(n,a,this.config):this.nodes=ln(n,null,this.config)}getNodeByValue(n){let a;return vs(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:sd,scope:id}=Q("cascader-pane"),cd=sd({components:{Loading:ne.Loading,Checklist:ne.Checklist,TabsBar:Kn,TabsContainer:Un,TabsPane:Hn},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}=se.useFoxI18n(id),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 ir([],{})),c=t.ref([]),f=t.computed(()=>o.value.lazy&&!!o.value.lazyLoad),p=t.computed(()=>r.value==!0||c.value.length==0?[{text:"Loading",value:0}]:c.value.map((m,g)=>({text:m.selectedNode?m.selectedNode.text:a("select"),value:g}))),u=new Map;let h;const k=async()=>{u.clear(),c.value=[],l.value=0,r.value=!1,h=null;let{options:m}=e;o.value.convertConfig&&(m=Ku(m,o.value.convertConfig)),i.value=new ir(m,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),f.value&&!i.value.nodes.length&&await v({root:!0,loading:!0,text:"",value:""}),c.value=[{nodes:i.value.nodes,selectedNode:null}],y(!f.value)},y=async(m=!0)=>{const g=s.value;if(g===void 0||!i.value.nodes.length)return;if(g.length===0){l.value=0,c.value=[{nodes:i.value.nodes,selectedNode:null}];return}let S=g;if(f.value&&Array.isArray(g)&&g.length){S=[];let N=i.value.nodes.find(C=>C.value===g[0]);if(N){S=[N.value],r.value=!0;const C=await g.slice(1).reduce(async(w,B)=>{const V=await w;await v(V);const T=V?.children?.find($=>$.value===B);return T&&S.push(B),Promise.resolve(T)},Promise.resolve(N));await v(C),r.value=!1}}S.length&&g===e.modelValue&&i.value.getPathNodesByValue(S).map((C,w)=>{l.value=w,d.handleNode(C,m)})},v=async m=>{if(!m)return;if(!o.value.lazyLoad){m.leaf=!0;return}if(i.value.isLeaf(m,f.value)||i.value.hasChildren(m,f.value))return;m.loading=!0;const g=m.root?null:m;let S=u.get(m);S||(S=new Promise(C=>{o.value.lazyLoad?.(m,C)}),u.set(m,S));const N=await S;Array.isArray(N)&&N.length>0?i.value.updateChildren(N,g):m.leaf=!0,m.loading=!1,u.delete(m)},b=m=>{const g=m.map(S=>S.value);s.value=g,n("change",g,m),n("pathChange",m),n("update:modelValue",g)},d={async handleNode(m,g){const{disabled:S,loading:N}=m;if(!(!g&&S||!c.value[l.value])){if(i.value.isLeaf(m,f.value)){if(m.leaf=!0,c.value[l.value].selectedNode=m,c.value=c.value.slice(0,m.level+1),!g){const C=c.value.map(w=>w.selectedNode);b(C),n("pathChange",C)}return}if(i.value.hasChildren(m,f.value)){const C=m.level+1;if(c.value[l.value].selectedNode=m,c.value=c.value.slice(0,C),c.value.push({nodes:m.children||[],selectedNode:null}),l.value=C,!g){const w=c.value.map(B=>B.selectedNode);n("pathChange",w)}return}h=m,!N&&(await v(m),h===m&&(c.value[l.value].selectedNode=m,d.handleNode(m,g)))}},handleTabChange(m,g){h=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:a("select")},isSelected(m,g){return m.selectedNode&&m.selectedNode.value===g.value}};return t.watch([o,()=>e.options],()=>{k()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,m=>{Pe(m,s.value)||(s.value=m,y())}),t.watch(()=>e.visible,m=>{m&&Array.isArray(s.value)&&s.value.length>0&&y()}),{panes:c,panesTitles:p,initLoading:r,tabsCursor:l,...d}}}),ud={class:"fox-cascader"},dd={role:"menu",class:"fox-cascader__pane"},fd=["aria-checked","aria-disabled","onClick"],md={class:"fox-cascader__item__title"},pd=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function hd(e,n,a,o,l,r){const s=t.resolveComponent("TabsBar"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),f=t.resolveComponent("TabsPane"),p=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",ud,[t.createVNode(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(p,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=u=>e.tabsCursor=u)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(u,h)=>(t.openBlock(),t.createBlock(f,{"pane-key":h,key:h},{default:t.withCtx(()=>[t.createElementVNode("view",dd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,k=>(t.openBlock(),t.createElementBlock("view",{key:k.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(u,k),disabled:k.disabled}]),"aria-checked":e.isSelected(u,k),"aria-disabled":k.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(k,!1)},[t.createElementVNode("view",md,t.toDisplayString(k.text),1),k.loading?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(c,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,fd))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(f,{key:1,"pane-key":0},{default:t.withCtx(()=>[pd]),_:1}))]),_:1},8,["modelValue"])])}const gd=ee(cd,[["render",hd]]),{create:yd}=Q("cascader"),vd=yd({components:{FoxCascaderPane:gd,FoxPopup:fe},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}}}),bd=["innerHTML"];function kd(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,bd)):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 jn=ee(vd,[["render",kd]]);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 ks(e,n){const a=e.childrenKey??"children";return n[a]}function nn(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=St(e,l),s=Ct(e,l);a.texts.push(r),a.values.push(s??"")}return a}function Ss(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(St(e,n[s])===r){const c=Ct(e,n[s])??"",f={[e.textKey]:r,[e.valueKey]:c};l.push(f);const p=ks(e,n[s]);Array.isArray(p)&&Ss(e,p,a,o+1,l);return}}function Cs(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=St(e,n[s])??"",f={[e.textKey]:c,[e.valueKey]:r};l.push(f);const p=ks(e,n[s]);Array.isArray(p)&&Cs(e,p,a,o+1,l);return}}function uo(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 s=Ct(e,n[o]),i=Ct(e,a[o]);if(s!==i)return!1}return!0}let Sd=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=Je(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(xe(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await r(n,a,o))}};function Cd(){const e=t.getCurrentInstance();return new Sd(e.proxy)}const cr={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 wd(e,n,a,o,l,r,s=!1){return{props:{...pe,...ye,...cr},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(i,c){const f=$e(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ve({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),k=h(i,["placeholder"]),y=t.ref(!1),v=Cd(),b=t.ref([]),d=t.ref([]),m=t.computed(()=>{if(Array.isArray(d.value)){if(i.showAllLevels===!1){const z=d.value.length-1;return d.value[z]}return d.value.join(i.separator)}else return d.value}),g=t.ref([]),S=t.ref([]);t.watch([()=>i.modelValue,()=>b.value],async([z,X])=>{if(u("setValue",z),i.lazy===!0){S.value.length==0&&(g.value=Array.isArray(z)?z:[]);return}if(i.valueType==="item"){let Z=z;if(!uo(i,Z,S.value)){S.value=Z;let te=nn(i,Z);d.value=te.texts,g.value=te.values}}else if(i.valueType==="text"){let Z=z,te=[];if(Ss(i,X,Z,0,te),!uo(i,te,S.value)){S.value=te;let R=nn(i,te);Z.value=R.texts,g.value=R.values}}else{let Z=[];if(Cs(i,X,z,0,Z),!uo(i,Z,S.value)){S.value=Z;let te=nn(i,Z);d.value=te.texts,g.value=te.values}}}),i.lazy===!0&&(g.value=Array.isArray(i.modelValue)?i.modelValue:[]),t.watch([()=>i.source,()=>i.params],async([z,X])=>{i.lazy||z&&(b.value=await v.load(z,X))},{immediate:!0});const N="fox-input-item",C=t.computed(()=>({[N]:!0,"is-disabled":f.value,"is-readonly":p.value})),w=Ae(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const z={};return w.value&&(z["text-align"]=w.value),z}),V=t.ref(!1),T=()=>{f.value===!0||p.value===!0||(V.value=!0)},$=z=>{V.value=z},I=(z,X)=>{let Z=X.map(R=>{if(R==null)return R;let H={...R};return Reflect.deleteProperty(H,"text"),H[i.textKey]=R.text??"",Reflect.deleteProperty(H,"value"),H[i.valueKey]=R.value??"",H});S.value=Z;let te=nn(i,Z);d.value=te.texts,g.value=te.values,i.valueType==="text"?(u("change",d.value,Z),u("update:modelValue",d.value)):i.valueType==="item"?(u("change",Z,Z),u("update:modelValue",Z)):(u("change",g.value,Z),u("update:modelValue",g.value)),u("update:pathNodes",Z)},F=z=>{let X=z.map(Z=>{if(Z==null)return Z;let te={...Z};return Reflect.deleteProperty(te,"text"),te[i.textKey]=Z.text??"",Reflect.deleteProperty(te,"value"),te[i.valueKey]=Z.value??"",te});u("pathChange",X)},A=z=>{y.value=!0,u("focus",g.value,z)},E=z=>{setTimeout(()=>{y.value=!1},0),u("blur",g.value,z)},M=t.computed(()=>({[`${N}__append`]:!0,"is-disabled":f.value,"is-readonly":p.value})),x=t.computed(()=>ve(i.unit)>0),U=t.computed(()=>ve(i.unit)>0&&!y.value),K=t.computed(()=>({hidden:!U.value})),J=z=>{S.value=[],d.value=[],g.value=[],u("update:modelValue",[]),u("change",[],z),u("clear",[]),u("update:pathNodes",[])},_=t.computed(()=>i.clearable&&!f.value&&!p.value),j=t.computed(()=>{let z=g.value&&g.value.length>0;return i.clearable&&z&&y.value}),q=z=>{j.value?J(z):T()},L=t.computed(()=>j.value&&_.value?o:l),D=t.computed(()=>({action:!0}));let W=null;const P=()=>typeof W=="function"?W:typeof i.lazyLoad=="function"?i.lazyLoad:(W=async(z,X)=>{const Z=[],te=[];let R=0;if(!z.root){let Y=z;for(;Y;){const O=St(i,Y),G=Ct(i,Y);te.splice(0,0,O),Z.splice(0,0,G),Y=Y._parent}R=Z.length}const H=await v.load(i.source,{...z,level:R,pathLabels:te,pathValues:Z},!0);X(H)},W);return()=>{const z={class:C.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:T,onFocus:A,onBlur:E};s&&(z.disabled=!0);const X=[],Z=t.h("input",z);X.push(Z);const te=[],R={class:["action-icon"]},H=t.h(L.value,R),Y={class:D.value,onClick:q},O=t.h("view",Y,{default:()=>[H]});if(te.push(O),x.value){const et=t.h("view",{class:K.value},[i.unit]);te.push(et)}const G={class:M.value},oe=t.h("view",G,{default:()=>te});X.push(oe);const le={default:()=>X};le.label=c.slots.default,le.prepend=c.slots.prepend,le.append=c.slots.append,le.fixedPreTip=c.slots.fixedPreTip,le.fixedTip=c.slots.fixedTip;let re={};re.visible=V.value,re["onUpdate:visible"]=$,re.modelValue=g.value,re.onChange=I,re.onPathChange=F,re.title=i.title,re.valueKey=i.valueKey,re.textKey=i.textKey,re.childrenKey=i.childrenKey,re.convertConfig=i.convertConfig,i.lazy?(re.lazy=!0,re.lazyLoad=P()):re.options=b.value;const ce=t.h(r,re);le.hide=()=>[ce];const Ce={...At(i,cr)};return i.prop&&(Ce.prop=`${i.prop}_item`),t.h(a,Ce,le)}}}}const{componentName:Nd,create:Bd,scope:Vd}=Q("cascader-item"),rl=Bd(wd(Nd,Vd,we,ne.CircleClose,ne.ArrowRight,jn,!1));var We=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ws={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",f="day",p="week",u="month",h="quarter",k="year",y="date",v="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(F,A,E){var M=String(F);return!M||M.length>=A?F:""+Array(A+1-M.length).join(E)+F},S={s:g,z:function(F){var A=-F.utcOffset(),E=Math.abs(A),M=Math.floor(E/60),x=E%60;return(A<=0?"+":"-")+g(M,2,"0")+":"+g(x,2,"0")},m:function F(A,E){if(A.date()<E.date())return-F(E,A);var M=12*(E.year()-A.year())+(E.month()-A.month()),x=A.clone().add(M,u),U=E-x<0,K=A.clone().add(M+(U?-1:1),u);return+(-(M+(E-x)/(U?x-K:K-x))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:u,y:k,w:p,d:f,D:y,h:c,m:i,s,ms:r,Q:h}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},N="en",C={};C[N]=m;var w=function(F){return F instanceof $},B=function F(A,E,M){var x;if(!A)return N;if(typeof A=="string"){var U=A.toLowerCase();C[U]&&(x=U),E&&(C[U]=E,x=U);var K=A.split("-");if(!x&&K.length>1)return F(K[0])}else{var J=A.name;C[J]=A,x=J}return!M&&x&&(N=x),x||!M&&N},V=function(F,A){if(w(F))return F.clone();var E=typeof A=="object"?A:{};return E.date=F,E.args=arguments,new $(E)},T=S;T.l=B,T.i=w,T.w=function(F,A){return V(F,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var $=function(){function F(E){this.$L=B(E.locale,null,!0),this.parse(E)}var A=F.prototype;return A.parse=function(E){this.$d=function(M){var x=M.date,U=M.utc;if(x===null)return new Date(NaN);if(T.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var K=x.match(b);if(K){var J=K[2]-1||0,_=(K[7]||"0").substring(0,3);return U?new Date(Date.UTC(K[1],J,K[3]||1,K[4]||0,K[5]||0,K[6]||0,_)):new Date(K[1],J,K[3]||1,K[4]||0,K[5]||0,K[6]||0,_)}}return new Date(x)}(E),this.$x=E.x||{},this.init()},A.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},A.$utils=function(){return T},A.isValid=function(){return this.$d.toString()!==v},A.isSame=function(E,M){var x=V(E);return this.startOf(M)<=x&&x<=this.endOf(M)},A.isAfter=function(E,M){return V(E)<this.startOf(M)},A.isBefore=function(E,M){return this.endOf(M)<V(E)},A.$g=function(E,M,x){return T.u(E)?this[M]:this.set(x,E)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(E,M){var x=this,U=!!T.u(M)||M,K=T.p(E),J=function(z,X){var Z=T.w(x.$u?Date.UTC(x.$y,X,z):new Date(x.$y,X,z),x);return U?Z:Z.endOf(f)},_=function(z,X){return T.w(x.toDate()[z].apply(x.toDate("s"),(U?[0,0,0,0]:[23,59,59,999]).slice(X)),x)},j=this.$W,q=this.$M,L=this.$D,D="set"+(this.$u?"UTC":"");switch(K){case k:return U?J(1,0):J(31,11);case u:return U?J(1,q):J(0,q+1);case p:var W=this.$locale().weekStart||0,P=(j<W?j+7:j)-W;return J(U?L-P:L+(6-P),q);case f:case y:return _(D+"Hours",0);case c:return _(D+"Minutes",1);case i:return _(D+"Seconds",2);case s:return _(D+"Milliseconds",3);default:return this.clone()}},A.endOf=function(E){return this.startOf(E,!1)},A.$set=function(E,M){var x,U=T.p(E),K="set"+(this.$u?"UTC":""),J=(x={},x[f]=K+"Date",x[y]=K+"Date",x[u]=K+"Month",x[k]=K+"FullYear",x[c]=K+"Hours",x[i]=K+"Minutes",x[s]=K+"Seconds",x[r]=K+"Milliseconds",x)[U],_=U===f?this.$D+(M-this.$W):M;if(U===u||U===k){var j=this.clone().set(y,1);j.$d[J](_),j.init(),this.$d=j.set(y,Math.min(this.$D,j.daysInMonth())).$d}else J&&this.$d[J](_);return this.init(),this},A.set=function(E,M){return this.clone().$set(E,M)},A.get=function(E){return this[T.p(E)]()},A.add=function(E,M){var x,U=this;E=Number(E);var K=T.p(M),J=function(q){var L=V(U);return T.w(L.date(L.date()+Math.round(q*E)),U)};if(K===u)return this.set(u,this.$M+E);if(K===k)return this.set(k,this.$y+E);if(K===f)return J(1);if(K===p)return J(7);var _=(x={},x[i]=o,x[c]=l,x[s]=a,x)[K]||1,j=this.$d.getTime()+E*_;return T.w(j,this)},A.subtract=function(E,M){return this.add(-1*E,M)},A.format=function(E){var M=this,x=this.$locale();if(!this.isValid())return x.invalidDate||v;var U=E||"YYYY-MM-DDTHH:mm:ssZ",K=T.z(this),J=this.$H,_=this.$m,j=this.$M,q=x.weekdays,L=x.months,D=function(X,Z,te,R){return X&&(X[Z]||X(M,U))||te[Z].slice(0,R)},W=function(X){return T.s(J%12||12,X,"0")},P=x.meridiem||function(X,Z,te){var R=X<12?"AM":"PM";return te?R.toLowerCase():R},z={YY:String(this.$y).slice(-2),YYYY:this.$y,M:j+1,MM:T.s(j+1,2,"0"),MMM:D(x.monthsShort,j,L,3),MMMM:D(L,j),D:this.$D,DD:T.s(this.$D,2,"0"),d:String(this.$W),dd:D(x.weekdaysMin,this.$W,q,2),ddd:D(x.weekdaysShort,this.$W,q,3),dddd:q[this.$W],H:String(J),HH:T.s(J,2,"0"),h:W(1),hh:W(2),a:P(J,_,!0),A:P(J,_,!1),m:String(_),mm:T.s(_,2,"0"),s:String(this.$s),ss:T.s(this.$s,2,"0"),SSS:T.s(this.$ms,3,"0"),Z:K};return U.replace(d,function(X,Z){return Z||z[X]||K.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(E,M,x){var U,K=T.p(M),J=V(E),_=(J.utcOffset()-this.utcOffset())*o,j=this-J,q=T.m(this,J);return q=(U={},U[k]=q/12,U[u]=q,U[h]=q/3,U[p]=(j-_)/6048e5,U[f]=(j-_)/864e5,U[c]=j/l,U[i]=j/o,U[s]=j/a,U)[K]||j,x?q:T.a(q)},A.daysInMonth=function(){return this.endOf(u).$D},A.$locale=function(){return C[this.$L]},A.locale=function(E,M){if(!E)return this.$L;var x=this.clone(),U=B(E,M,!0);return U&&(x.$L=U),x},A.clone=function(){return T.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},F}(),I=$.prototype;return V.prototype=I,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",f],["$M",u],["$y",k],["$D",y]].forEach(function(F){I[F[1]]=function(A){return this.$g(A,F[0],F[1])}}),V.extend=function(F,A){return F.$i||(F(A,$,V),F.$i=!0),V},V.locale=B,V.isDayjs=w,V.unix=function(F){return V(1e3*F)},V.en=C[N],V.Ls=C,V.p={},V})})(ws);var Ad=ws.exports;const Oe=Ye(Ad);var Ns={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(v){return(v=+v)+(v>68?1900:2e3)},f=function(v){return function(b){this[v]=+b}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var d=b.match(/([+-]|\d\d)/g),m=60*d[1]+(+d[2]||0);return m===0?0:d[0]==="+"?-m:m}(v)}],u=function(v){var b=i[v];return b&&(b.indexOf?b:b.s.concat(b.f))},h=function(v,b){var d,m=i.meridiem;if(m){for(var g=1;g<=24;g+=1)if(v.indexOf(m(g,0,b))>-1){d=g>12;break}}else d=v===(b?"pm":"PM");return d},k={A:[s,function(v){this.afternoon=h(v,!1)}],a:[s,function(v){this.afternoon=h(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[l,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[r,f("seconds")],ss:[r,f("seconds")],m:[r,f("minutes")],mm:[r,f("minutes")],H:[r,f("hours")],h:[r,f("hours")],HH:[r,f("hours")],hh:[r,f("hours")],D:[r,f("day")],DD:[l,f("day")],Do:[s,function(v){var b=i.ordinal,d=v.match(/\d+/);if(this.day=d[0],b)for(var m=1;m<=31;m+=1)b(m).replace(/\[|\]/g,"")===v&&(this.day=m)}],M:[r,f("month")],MM:[l,f("month")],MMM:[s,function(v){var b=u("months"),d=(u("monthsShort")||b.map(function(m){return m.slice(0,3)})).indexOf(v)+1;if(d<1)throw new Error;this.month=d%12||d}],MMMM:[s,function(v){var b=u("months").indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,f("year")],YY:[l,function(v){this.year=c(v)}],YYYY:[/\d{4}/,f("year")],Z:p,ZZ:p};function y(v){var b,d;b=v,d=i&&i.formats;for(var m=(v=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,T,$){var I=$&&$.toUpperCase();return T||d[$]||a[$]||d[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,A,E){return A||E.slice(1)})})).match(o),g=m.length,S=0;S<g;S+=1){var N=m[S],C=k[N],w=C&&C[0],B=C&&C[1];m[S]=B?{regex:w,parser:B}:N.replace(/^\[|\]$/g,"")}return function(V){for(var T={},$=0,I=0;$<g;$+=1){var F=m[$];if(typeof F=="string")I+=F.length;else{var A=F.regex,E=F.parser,M=V.slice(I),x=A.exec(M)[0];E.call(T,x),V=V.replace(x,"")}}return function(U){var K=U.afternoon;if(K!==void 0){var J=U.hours;K?J<12&&(U.hours+=12):J===12&&(U.hours=0),delete U.afternoon}}(T),T}}return function(v,b,d){d.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(c=v.parseTwoDigitYear);var m=b.prototype,g=m.parse;m.parse=function(S){var N=S.date,C=S.utc,w=S.args;this.$u=C;var B=w[1];if(typeof B=="string"){var V=w[2]===!0,T=w[3]===!0,$=V||T,I=w[2];T&&(I=w[2]),i=this.$locale(),!V&&I&&(i=d.Ls[I]),this.$d=function(M,x,U){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1e3:1)*M);var K=y(x)(M),J=K.year,_=K.month,j=K.day,q=K.hours,L=K.minutes,D=K.seconds,W=K.milliseconds,P=K.zone,z=new Date,X=j||(J||_?1:z.getDate()),Z=J||z.getFullYear(),te=0;J&&!_||(te=_>0?_-1:z.getMonth());var R=q||0,H=L||0,Y=D||0,O=W||0;return P?new Date(Date.UTC(Z,te,X,R,H,Y,O+60*P.offset*1e3)):U?new Date(Date.UTC(Z,te,X,R,H,Y,O)):new Date(Z,te,X,R,H,Y,O)}catch{return new Date("")}}(N,B,C),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),$&&N!=this.format(B)&&(this.$d=new Date("")),i={}}else if(B instanceof Array)for(var F=B.length,A=1;A<=F;A+=1){w[1]=B[A-1];var E=d.apply(this,w);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}A===F&&(this.$d=new Date(""))}else g.call(this,S)}}})})(Ns);var Td=Ns.exports;const $d=Ye(Td);var Bs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o,l){var r=o.prototype,s=r.format;l.en.ordinal=function(i){var c=["th","st","nd","rd"],f=i%100;return"["+i+(c[(f-20)%10]||c[f]||c[0])+"]"},r.format=function(i){var c=this,f=this.$locale();if(!this.isValid())return s.bind(this)(i);var p=this.$utils(),u=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return f.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return f.ordinal(c.week(),"W");case"w":case"ww":return p.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return p.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return p.s(String(c.$H===0?24:c.$H),h==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return h}});return s.bind(this)(u)}}})})(Bs);var Ed=Bs.exports;const xd=Ye(Ed);var Vs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o,l){var r=o.prototype,s=function(u){return u&&(u.indexOf?u:u.s)},i=function(u,h,k,y,v){var b=u.name?u:u.$locale(),d=s(b[h]),m=s(b[k]),g=d||m.map(function(N){return N.slice(0,y)});if(!v)return g;var S=b.weekStart;return g.map(function(N,C){return g[(C+(S||0))%7]})},c=function(){return l.Ls[l.locale()]},f=function(u,h){return u.formats[h]||function(k){return k.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,v,b){return v||b.slice(1)})}(u.formats[h.toUpperCase()])},p=function(){var u=this;return{months:function(h){return h?h.format("MMMM"):i(u,"months")},monthsShort:function(h){return h?h.format("MMM"):i(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(u,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(u,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return f(u.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},l.localeData=function(){var u=c();return{firstDayOfWeek:function(){return u.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(h){return f(u,h)},meridiem:u.meridiem,ordinal:u.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(u){return i(c(),"weekdays",null,null,u)},l.weekdaysShort=function(u){return i(c(),"weekdaysShort","weekdays",3,u)},l.weekdaysMin=function(u){return i(c(),"weekdaysMin","weekdays",2,u)}}})})(Vs);var Dd=Vs.exports;const Id=Ye(Dd);var As={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){var a="week",o="year";return function(l,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=s(this).startOf(o).add(1,o).date(f),u=s(this).endOf(a);if(p.isBefore(u))return 1}var h=s(this).startOf(o).date(f).startOf(a).subtract(1,"millisecond"),k=this.diff(h,a,!0);return k<0?s(this).startOf("week").week():Math.ceil(k)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(As);var qd=As.exports;const Pd=Ye(qd);var Ts={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),s=this.year();return r===1&&l===11?s+1:l===0&&r>=52?s-1:s}}})})(Ts);var Md=Ts.exports;const Ld=Ye(Md);var $s={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})($s);var zd=$s.exports;const Fd=Ye(zd);var Es={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(Es);var Rd=Es.exports;const Od=Ye(Rd);var xs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(xs);var Kd=xs.exports;const Ud=Ye(Kd);Oe.extend(Id);Oe.extend(xd);Oe.extend($d);Oe.extend(Pd);Oe.extend(Ld);Oe.extend(Fd);Oe.extend(Od);Oe.extend(Ud);const ae={format(e,n){return Oe(e).format(n)},parser(e,n){return Oe(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const l=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const a=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,o,l].join(n)},getDay(e,n){e=e||0;let a=n??new Date;const o=e*(1e3*60*60*24);return a=new Date(a.getTime()+o),this.date2Str(a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(a>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,a==o},getMonthWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a));let r=l.getDay(),s=l.getDate(),i=6-r;return o!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),s=Math.round((l.valueOf()-r.valueOf())/864e5);let i=l.getDay(),c=6-i;return o!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let s=l.getDay();if(o===0){const c=r-s*864e5,f=r+(6-s)*864e5,p=this.date2Str(new Date(c)),u=this.date2Str(new Date(f));return[p,u]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,f=r+(7-s)*i,p=this.date2Str(new Date(c)),u=this.date2Str(new Date(f));return[p,u]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ae.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ae.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s}},ur=new Date().getFullYear(),sl={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"},Sn=(e,n,a)=>{let o;if(He(n)?o=n:typeof n=="string"&&ve(n)>0?o=ae.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},Do=(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()),ae.format(new Date(o),a)};let Io={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(ur-10,0,1),validator:He},maxDate:{type:Date,default:()=>new Date(ur+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:Hd,scope:jd}=Q("date-picker"),Wd=Hd({components:{[kt.name]:kt},props:{...Io},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(jd),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,m=>{l.value=m});function r(m,g){return new Date(m,g,0).getDate()}const s=(m,g)=>{const S=e[`${m}Date`],N=S.getFullYear();let C=1,w=1,B=0,V=0;m==="max"&&(C=12,w=r(g.getFullYear(),g.getMonth()+1),B=23,V=59);const T=V;return g.getFullYear()===N&&(C=S.getMonth()+1,g.getMonth()+1===C&&(w=S.getDate(),g.getDate()===w&&(B=S.getHours(),g.getHours()===B&&(V=S.getMinutes())))),{[`${m}Year`]:N,[`${m}Month`]:C,[`${m}Date`]:w,[`${m}Hour`]:B,[`${m}Minute`]:V,[`${m}Seconds`]:T}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:m,maxDate:g,maxMonth:S,maxHour:N,maxMinute:C,maxSeconds:w}=s("max",h.value),{minYear:B,minDate:V,minMonth:T,minHour:$,minMinute:I,minSeconds:F}=s("min",h.value);let A=[{type:"year",range:[B,m]},{type:"month",range:[T,S]},{type:"day",range:[V,g]},{type:"hour",range:[$,N]},{type:"minute",range:[I,C]},{type:"seconds",range:[F,w]}];switch(e.type){case"date":A=A.slice(0,3);break;case"datetime":A=A.slice(0,5);break;case"time":A=A.slice(3,6);break;case"year-month":A=A.slice(0,2);break;case"month-day":A=A.slice(1,3);break;case"datehour":A=A.slice(0,4);break;case"hour-minute":A=A.slice(3,5);break}return A}),c=(m,g,S)=>{if(!(g>m))return null;const N=[];for(;m<=g;)e.isShowChinese?N.push({text:m+o[S],value:m}):N.push({text:`${m}`,value:m}),S==="minute"?m+=e.minuteStep:m++;return N},f=t.computed(()=>{let m=[];return i.value.forEach(g=>{let S=c(g.range[0],g.range[1],g.type);S&&m.push(S)}),m}),p=(m,g)=>m==="year"?g.getFullYear():m==="month"?g.getMonth()+1:m==="day"?g.getDate():m==="hour"?g.getHours():m==="minute"?g.getMinutes():m==="seconds"?g.getSeconds():0,u=t.ref(),h=t.ref(null);t.watch(()=>e.modelValue,m=>{let g;if(typeof m=="string"?m.length==0?g=new Date:e.valueFormat?g=Sn(e,e.modelValue,e.valueFormat):g=Sn(e,m,sl[e.type]):He(m)?g=m:g=new Date,!!g&&(!h.value||g.getTime()!==h.value.getTime())){h.value=g;let S=[];i.value.forEach(N=>{let C=p(N.type,g);S.push(C)}),u.value=S}},{immediate:!0});const k=m=>{if(e.type==="date"){const g=m[0],S=m[1]-1,N=Math.min(m[2],r(g,S+1));N!==m[2]&&(m[2]=N),h.value=new Date(g,S,N)}else if(e.type==="datetime"){const g=m[0],S=m[1]-1,N=Math.min(m[2],r(g,S+1)),C=m[3],w=m[4];N!==m[2]&&(m[2]=N),h.value=new Date(g,S,N,C,w)}else if(e.type==="time"){const g=m[0],S=m[1],N=m[2],C=h.value??new Date,w=new Date(C.getFullYear(),C.getMonth(),C.getDate(),g,S,N);h.value=w}else if(e.type==="year-month"){const g=m[0],S=m[1]-1;h.value=new Date(g,S)}else if(e.type==="month-day"){const S=(h.value??new Date).getFullYear(),N=m[0]-1,C=Math.min(m[1],r(S,N+1));C!==m[1]&&(m[1]=C);const w=new Date(S,N,C);h.value=w}else if(e.type==="datehour"){const g=m[0],S=m[1]-1,N=Math.min(m[2],r(g,S+1)),C=m[3];N!==m[2]&&(m[2]=N),h.value=new Date(g,S,N,C)}else if(e.type==="hour-minute"){const g=m[0],S=m[1],N=h.value??new Date,C=new Date(N.getFullYear(),N.getMonth(),N.getDate(),g,S);h.value=C}u.value=m};return{columns:f,dateIndexs:u,show:l,onChange:m=>{k(m)},onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:m=>{k(m),l.value=!1;let g=h.value??new Date;if(e.valueFormat){let S=Do(e,g,e.valueFormat);n("update:modelValue",S)}else n("update:modelValue",g);n("update:visible",!1),n("confirm",m)},onClear:()=>{n("clear")}}}});function Yd(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 Wn=ee(Wd,[["render",Yd]]),Xd={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Qd(e){let n=e.format;if(!n){let a=e.type??"date";n=sl[a]}return n}function Gd(e,n,a,o,l,r,s=!1){return{props:{...pe,...ye,...Io,...Xd},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const f=$e(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ve({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),k=h(i,["placeholder"]),y=t.ref(!1),b=qe(i,"modelValue",q=>q==null?null:typeof q=="string"?q.length==0?null:i.valueFormat?Sn(i,q,i.valueFormat)??q:Sn(i,q,sl[i.type])??q:He(q)?q:null,u),d=t.computed(()=>{if(!b.value)return"";const q=Qd(i);return Do(i,b.value,q)}),m="fox-input-item",g=t.computed(()=>({[m]:!0,"is-disabled":f.value,"is-readonly":p.value})),S=Ae(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const q={};return S.value&&(q["text-align"]=S.value),q}),C=t.ref(!1),w=()=>{C.value=!0},B=()=>{C.value=!1};c.expose({showPicker:w,hidePicker:B});const V=q=>{C.value=q},T=q=>{if(b.value=q,i.valueFormat){let L=Do(i,q,i.valueFormat);u("update:modelValue",L,{}),u("change",L,{})}else u("update:modelValue",q,{}),u("change",q,{})},$=q=>{let D=q.target.value;y.value=!0,u("focus",D,q)},I=q=>{setTimeout(()=>{y.value=!1},0);let D=q.target.value;i.maxLength&&D.length>Number(i.maxLength)&&(D=D.slice(0,Number(i.maxLength))),u("blur",D,q)},F=t.computed(()=>({[`${m}__append`]:!0,"is-disabled":f.value,"is-readonly":p.value})),A=t.computed(()=>ve(i.unit)>0),E=t.computed(()=>ve(i.unit)>0&&!y.value),M=t.computed(()=>({hidden:!E.value})),x=q=>{b.value="",u("update:modelValue","",q),u("change","",q),u("clear",""),B()},U=t.computed(()=>i.clearable&&!f.value&&!p.value),K=t.computed(()=>{let q=ve(b.value)>0;return i.clearable&&q&&y.value}),J=q=>{K.value?x(q):w()},_=t.computed(()=>K.value&&U.value?o:l),j=t.computed(()=>({action:!0}));return()=>{const q={class:g.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:w,onFocus:$,onBlur:I};s&&(q.disabled=!0);const L=[],D=t.h("input",q);L.push(D);const W=[],P={class:["action-icon"]},z=t.h(_.value,P),X={class:j.value,onClick:J},Z=t.h("view",X,{default:()=>[z]});if(W.push(Z),A.value){const ce=t.h("view",{class:M.value},[i.unit]);W.push(ce)}const te={class:F.value},R=t.h("view",te,{default:()=>W});L.push(R);const H={default:()=>L};H.label=c.slots.default,H.prepend=c.slots.prepend,H.append=c.slots.append,H.fixedPreTip=c.slots.fixedPreTip,H.fixedTip=c.slots.fixedTip;const Y=be(i,Io);Y.valueFormat=null,Y.disabled=!1,Y.readonly=f.value||p.value,Y.visible=C.value,Y["onUpdate:visible"]=V,Y.modelValue=b.value,Y["onUpdate:modelValue"]=T,Y.onClear=x;const O={};if(c.slots.top){const ce=c.slots.top();O.top=()=>ce}if(c.slots.bottom){const ce=c.slots.bottom();O.default=()=>ce}const G=t.h(r,Y,O);H.hide=()=>[G];const le={...be(i,ye,pe)};return i.prop&&(le.prop=`${i.prop}_item`),t.h(a,le,H)}}}}const{create:Zd,componentName:Jd,scope:_d}=Q("date-item"),il=Zd(Gd(Jd,_d,we,ne.CircleClose,ne.Date,Wn,!1)),ef=39,tf=64,{create:nf,scope:of}=Q("calendar-pane"),lf=nf({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:ae.getDay(0)},endDate:{type:String,default:ae.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=se.useFoxI18n(of),r=o(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(l("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),f=t.ref(null),p=t.ref(null),u=t.ref(null),h=t.ref(0),k=t.computed(()=>d.monthsData.slice(d.defaultRange[0],d.defaultRange[1])),y=t.computed(()=>a.btn),v=t.computed(()=>a["top-info"]),b=t.computed(()=>a["bottom-info"]),d=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),m=P=>P.split("-"),g=P=>ae.isEqual(d.currDate[0],P),S=P=>ae.isEqual(d.currDate[1],P),N=P=>d.currDate?.length>0?d.currDate?.some(z=>ae.isEqual(z,P)):!1,C=(P,z)=>z.curData[0]+"-"+z.curData[1]+"-"+ae.getNumTwoBit(+P.day),w=(P,z)=>{const X=C(P,z),{type:Z}=e;return P.type=="curr"?ae.isEqual(d.currDate,X)||(Z=="range"||Z=="week")&&(g(X)||S(X))||Z=="multiple"&&N(X)?`${d.dayPrefix}--active`:d.propStartDate&&ae.compareDate(X,d.propStartDate)||d.propEndDate&&ae.compareDate(d.propEndDate,X)?`${d.dayPrefix}--disabled`:(Z=="range"||Z=="week")&&Array.isArray(d.currDate)&&Object.values(d.currDate).length==2&&ae.compareDate(d.currDate[0],X)&&ae.compareDate(X,d.currDate[1])?`${d.dayPrefix}--choose`:null:`${d.dayPrefix}--disabled`},B=()=>{const{type:P}=e;if(P=="range"&&d.chooseData.length==2||P!="range"){let z=d.chooseData.slice(0);P=="week"&&(z={weekDate:[T(d.chooseData[0]),T(d.chooseData[1])]}),n("choose",z),e.poppable&&n("update")}},V=(P,z,X=!1)=>{if(w(P,z)!=`${d.dayPrefix}--disabled`){const{type:Z}=e;let[te,R]=z.curData,H=[...z.curData];if(H[2]=ae.getNumTwoBit(Number(P.day)),H[3]=`${H[0]}-${H[1]}-${H[2]}`,H[4]=ae.getWhatDay(+H[0],+H[1],+H[2]),Z=="multiple")if(d.currDate?.length>0){let Y;d.currDate?.forEach((O,G)=>{O==H[3]&&(Y=G)}),X?d.chooseData.push([...H]):Y!==void 0?(d.currDate.splice(Y,1),d.chooseData.splice(Y,1)):(d.currDate.push(H[3]),d.chooseData.push([...H]))}else d.currDate=[H[3]],d.chooseData=[[...H]];else if(Z=="range"){let Y=Object.values(d.currDate).length;Y==2||Y==0?d.currDate=[H[3]]:ae.compareDate(d.currDate[0],H[3])?Array.isArray(d.currDate)&&d.currDate.push(H[3]):Array.isArray(d.currDate)&&d.currDate.unshift(H[3]),d.chooseData.length==2||!d.chooseData.length?d.chooseData=[[...H]]:ae.compareDate(d.chooseData[0][3],H[3])?d.chooseData=[...d.chooseData,[...H]]:d.chooseData=[[...H],...d.chooseData]}else if(Z=="week"){let Y=ae.getWeekDate(te,R,P.day,e.firstDayOfWeek);d.propStartDate&&ae.compareDate(Y[0],d.propStartDate)&&Y.splice(0,1,d.propStartDate),d.propEndDate&&ae.compareDate(d.propEndDate,Y[1])&&Y.splice(1,1,d.propEndDate),d.currDate=Y,d.chooseData=[ae.formatResultDate(Y[0]),ae.formatResultDate(Y[1])]}else d.currDate=H[3],d.chooseData=[...H];if(!X){let Y=d.chooseData;Z=="week"&&(Y={weekDate:[T(d.chooseData[0]),T(d.chooseData[1])]}),n("select",Y),(e.isAutoBackFill||!e.poppable)&&B()}}},T=P=>{let[z,X,Z]=P;return{date:P,monthWeekNum:ae.getMonthWeek(z,X,Z,e.firstDayOfWeek),yearWeekNum:ae.getYearWeek(z,X,Z,e.firstDayOfWeek)}},$=P=>{const z=P=="prev"?d.monthsData[0]:d.monthsData[d.monthsData.length-1];let X=parseInt(z.curData[0]),Z=parseInt(z.curData[1].toString().replace(/^0/,""));switch(P){case"prev":Z==1&&(X-=1),Z=Z==1?12:--Z;break;case"next":Z==12&&(X+=1),Z=Z==12?1:++Z;break}return[X+"",ae.getNumTwoBit(Z),ae.getMonthDays(String(X),String(Z))+""]},I=(P,z,X)=>{let{year:Z,month:te}=X;return z=="prev"&&P>=7&&(P-=7),Array.from(Array(P),(R,H)=>({day:String(H+1),type:z,year:Z,month:te}))},F=(P,z,X,Z)=>{P=P-e.firstDayOfWeek;let{year:te,month:R}=X;return z=="prev"&&P>=7&&(P-=7),Array.from(Array(Z),(Y,O)=>({day:String(O+1),type:z,year:te,month:R})).slice(Z-P)},A=(P,z)=>{const X=ae.getMonthPreDay(+P[0],+P[1]);let Z=Number(P[1])-1,te=Number(P[0]);Z<=0&&(Z=12,te+=1);const R=ae.getMonthDays(String(P[0]),String(P[1])),H=ae.getMonthDays(te+"",Z+""),Y={year:P[0],month:P[1]},O={curData:P,title:l("monthTitle",{year:Y.year,month:Y.month}),monthData:[...F(X,"prev",{month:String(Z),year:String(te)},H),...I(R,"curr",Y)],cssHeight:0,cssScrollHeight:0},G=O.monthData.length>35?6:5;O.cssHeight=ef+tf*G;let oe=0;d.monthsData.length>0&&(oe=d.monthsData[d.monthsData.length-1].cssScrollHeight+d.monthsData[d.monthsData.length-1].cssHeight),O.cssScrollHeight=oe,z=="next"?(!d.endData||!ae.compareDate(`${d.endData[0]}-${d.endData[1]}-${ae.getMonthDays(d.endData[0],d.endData[1])}`,`${P[0]}-${P[1]}-${P[2]}`))&&d.monthsData.push(O):!d.startData||!ae.compareDate(`${P[0]}-${P[1]}-${P[2]}`,`${d.startData[0]}-${d.startData[1]}-01`)?d.monthsData.unshift(O):d.unLoadPrev=!0},E=()=>{let P=e.startDate?e.startDate:ae.getDay(0),z=e.endDate?e.endDate:ae.getDay(365);d.propStartDate=P,d.propEndDate=z,d.startData=m(P),d.endData=m(z),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(d.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const X={year:Number(d.startData[0]),month:Number(d.startData[1])},Z={year:Number(d.endData[0]),month:Number(d.endData[1])};let te=Z.month-X.month;Z.year-X.year>0&&(te=te+12*(Z.year-X.year)),te<=0&&(te=1),A(d.startData,"next");let R=1;do A($("next"),"next");while(R++<te);if(d.monthsNum=te,e.type=="range"&&Array.isArray(d.currDate))d.currDate.length>0&&(P&&ae.compareDate(d.currDate[0],P)&&d.currDate.splice(0,1,P),z&&ae.compareDate(z,d.currDate[1])&&d.currDate.splice(1,1,z),d.defaultData=[...m(d.currDate[0]),...m(d.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(d.currDate)){if(d.currDate.length>0){let H=[],Y={};d.currDate.forEach(O=>{P&&!ae.compareDate(O,P)&&z&&!ae.compareDate(z,O)&&(Object.hasOwnProperty.call(Y,O)||(H.push(O),Y[O]=O))}),d.currDate=[...H],d.defaultData=[...m(H[0])]}}else if(e.type=="week"&&Array.isArray(d.currDate)){if(d.currDate.length>0){let[H,Y,O]=m(d.currDate[0]),G=ae.getWeekDate(H,Y,O,e.firstDayOfWeek);d.currDate=G,P&&ae.compareDate(d.currDate[0],P)&&d.currDate.splice(0,1,P),z&&ae.compareDate(z,d.currDate[1])&&d.currDate.splice(1,1,z),d.defaultData=[...m(d.currDate[0]),...m(d.currDate[1])]}}else d.currDate&&(P&&ae.compareDate(d.currDate,P)?d.currDate=P:z&&!ae.compareDate(d.currDate,z)&&(d.currDate=z),d.defaultData=[...m(d.currDate)])};Ie({scrollToDate:P=>{ae.compareDate(P,d.propStartDate)?P=d.propStartDate:ae.compareDate(P,d.propEndDate)||(P=d.propEndDate);let z=m(P);d.monthsData.forEach((X,Z)=>{if(X.title==l("monthTitle",{year:z[0],month:z[1]})&&c.value){let te=d.monthsData[Z].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let R=0,H=setInterval(()=>{if(R++,c.value){let Y=te/10;c.value.scrollTop=c.value.scrollTop+Y}R>=10&&(clearInterval(H),c.value&&(c.value.scrollTop=d.monthsData[Z].cssScrollHeight))},40)}else c.value.scrollTop=d.monthsData[Z].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)},doLayout:()=>{let P=0,z=0;d.defaultData.length>0&&d.monthsData.forEach((te,R)=>{te.title==l("monthTitle",{year:d.defaultData[0],month:d.defaultData[1]})&&(P=R),(e.type=="range"||e.type=="week")&&te.title==l("monthTitle",{year:d.defaultData[3],month:d.defaultData[4]})&&(z=R)}),K(d.monthsNum,P),d.currentIndex=P,d.yearMonthTitle=d.monthsData[d.currentIndex].title,d.defaultData.length>0&&(d.isRange?(V({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0),V({day:d.defaultData[5],type:"curr"},d.monthsData[z],!0)):e.type=="week"?V({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0):e.type=="multiple"?[...d.currDate].forEach(te=>{let R=m(te),H=d.currentIndex;d.monthsData.forEach((Y,O)=>{Y.title==l("monthTitle",{year:R[0],month:R[1]})&&(H=O)}),V({day:R[2],type:"curr"},d.monthsData[H],!0)}):V({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0));let X=d.monthsData[d.monthsData.length-1],Z=X.cssHeight+X.cssScrollHeight;Xe(()=>{c?.value&&f?.value&&u?.value&&(h.value=c.value.clientHeight,f.value.style.height=`${Z}px`,c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)}),d.avgHeight=Math.floor(Z/(d.monthsNum+1))}});const K=(P,z)=>{P>=3?z>0&&z<P?d.defaultRange=[z-1,z+3]:z==0?d.defaultRange=[z,z+4]:z==P&&(d.defaultRange=[z-2,z+2]):d.defaultRange=[0,P+2];let X=d.monthsData[d.defaultRange[0]].cssScrollHeight;d.translateY=X},J=(P,z)=>(e.type=="range"||e.type=="week")&&P.type=="curr"&&w(P,z)=="fox-calendar__day--active",_=(P,z)=>J(P,z)&&g(C(P,z)),j=(P,z)=>d.currDate.length>=2&&S(C(P,z))?J(P,z):!1,q=()=>{if(d.currDate.length>=2)return ae.isEqual(d.currDate[0],d.currDate[1])},L=P=>{const z=`${P.year}-${P.month}-${Number(P.day)<10?"0"+P.day:P.day}`;return ae.isEqual(z,ae.date2Str(new Date))},D=P=>{if(d.monthsData.length<=1)return;const z=P.target.scrollTop;let X=Math.floor(z/d.avgHeight);if(X==0)z>=d.monthsData[X+1].cssScrollHeight&&(X+=1);else if(X>0&&X<d.monthsNum-1)z>=d.monthsData[X+1].cssScrollHeight&&(X+=1),z<d.monthsData[X].cssScrollHeight&&(X-=1);else{const Z=Math.round(z+h.value);Z<d.monthsData[X].cssScrollHeight+d.monthsData[X].cssHeight&&z>d.monthsData[X-1].cssScrollHeight&&(X-=1),X+1<=d.monthsNum&&Z>=d.monthsData[X+1].cssScrollHeight+d.monthsData[X+1].cssHeight&&(X+=1),X>=1&&z<d.monthsData[X-1].cssScrollHeight&&(X-=1)}d.currentIndex!==X&&(d.currentIndex=X,K(d.monthsNum,X)),d.yearMonthTitle=d.monthsData[X].title},W=()=>{d.chooseData.splice(0),d.monthsData.splice(0),E()};return E(),t.watch(()=>e.defaultValue,P=>{P&&e.poppable&&W()}),{weeks:i,compConthsData:k,showTopBtn:y,topInfo:v,bottomInfo:b,rangeTip:q,mothsViewScroll:D,getClass:w,isStartTip:_,isEndTip:j,chooseDay:V,isCurrDay:L,confirm:B,months:c,...t.toRefs(d),...t.toRefs(e),...r,monthsPanel:f,weeksPanel:p,viewArea:u}}}),af={class:"fox-calendar__header"},rf={key:0,class:"fox-calendar__header-title"},sf={key:1,class:"fox-calendar__header-slot"},cf={key:2,class:"fox-calendar__header-subtitle"},uf={class:"fox-calendar__weekdays",ref:"weeksPanel"},df={class:"fox-calendar__panel",ref:"monthsPanel"},ff={class:"fox-calendar__month-title"},mf={class:"fox-calendar__days"},pf=["onClick"],hf={class:"fox-calendar__day-value"},gf={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},yf={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},vf={key:2,class:"fox-calendar__day-tips--curr"},bf={key:4,class:"fox-calendar__day-tip"},kf={key:0,class:"fox-calendar__footer"};function Sf(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",af,[e.showTitle?(t.openBlock(),t.createElementBlock("view",rf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",sf,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",cf,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",uf,[(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",df,[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",ff,t.toDisplayString(s.title),1),t.createElementVNode("view",mf,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:p=>e.chooseDay(c,s)},[t.createElementVNode("view",hf,[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",gf,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",yf,[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",vf,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",bf,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,pf))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",kf,[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 dr=ee(lf,[["render",Sf]]),Cf=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),an={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:wf}=Q("calendar"),Nf=wf({components:{[dr.name]:dr,[fe.name]:fe},props:{...an},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=v=>{i.value?.scrollToDate(v)},f=()=>{i.value?.initPosition()};t.watch(()=>e.visible,v=>{v&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Ie({scrollToDate:c,initPosition:f});const p=()=>{n("update:visible",!1)},u=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{u()},update:p,close:u,select:v=>{n("select",v)},choose:v=>{u(),n("choose",v)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function Bf(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 Yn=ee(Nf,[["render",Bf]]),fr={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}},fo=(e,n)=>{let a;return He(e)?a=e:typeof e=="string"&&ve(e)>0?a=ae.parser(e,n):a=new Date,a},ut=(e,n,a)=>(He(n)||(n=new Date),ae.format(n,a)),dt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=ae.date2Str(e),r=ae.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function Vf(e,n,a,o,{CloseIcon:l,MarkIcon:r},s=!1){return{props:{...pe,...ye,...an,...fr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const f=$e(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ve({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),k=h(i,["placeholder"]),y=t.ref(!1),v=t.computed(()=>i.type==="range"),b=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),d=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},m=(D,W="one",P="YYYY-MM-DD")=>{if(Cf(D)){d();return}if(v.value&&Array.isArray(D)&&D.length==2){let z,X;typeof D[0]=="string"?(z=fo(D[0],P),X=fo(D[1],P)):(z=D[0],X=D[1]);let Z=dt(z),te=dt(X);(b.startDate===null||b.startDate.getTime()!==z.getTime()||b.endDate?.getTime()!==X.getTime())&&(b.startDate=z,b.startArray=Z,b.endDate=X,b.endArray=te)}else{let z;typeof D=="string"?z=fo(D,P):z=D;let X=dt(z);(b.startDate===null||b.startDate.getTime()!==z.getTime())&&(b.startDate=z,b.startArray=X)}};m(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,D=>{m(D,i.type,i.valueFormat),u("setValue",D)});const g=t.computed(()=>{if(b.startDate===null)return"";if(v.value){let D=ut(i,b.startDate,i.format),W=ut(i,b.endDate,i.format);return`${D} ${i.rangeSeparator} ${W}`}else{let D=ut(i,b.startDate,i.format);return i.showWeek&&(D=`${D} ${b.startArray[4]}`),D}}),S=t.computed(()=>{if(b.startDate===null)return null;if(v.value){let D=ae.date2Str(b.startDate),W=ae.date2Str(b.endDate??new Date);return[D,W]}else return ae.date2Str(b.startDate)}),N="fox-input-item",C=t.computed(()=>({[N]:!0,"is-disabled":f.value,"is-readonly":p.value})),w=Ae(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const D={};return w.value&&(D["text-align"]=w.value),D}),V=t.ref(!1),T=()=>{p.value||f.value||(V.value=!0)},$=D=>{V.value=D},I=D=>{if(D){if(v.value&&Array.isArray(D)){let W=D[0],P=me(W[0]),z=me(W[1]),X=me(W[2]),Z=new Date(P,z-1,X),te=D[1];P=me(te[0]),z=me(te[1]),X=me(te[2]);let R=new Date(P,z-1,X);if(b.startDate=Z,b.startArray=dt(Z),b.endDate=R,b.endArray=dt(R),i.valueFormat){let H=ut(i,Z,i.valueFormat),Y=ut(i,R,i.valueFormat);u("update:modelValue",[H,Y],{})}else u("update:modelValue",[Z,R],{})}else{let W=D,P=me(W[0]),z=me(W[1]),X=me(W[2]),Z=new Date(P,z-1,X);if(b.startDate=Z,b.startArray=dt(Z),i.valueFormat){let te=ut(i,Z,i.valueFormat);u("update:modelValue",te,{})}else u("update:modelValue",Z,{})}u("change",D,{})}},F=D=>{let P=D.target.value;y.value=!0,u("focus",P,D)},A=D=>{setTimeout(()=>{y.value=!1},0);let P=D.target.value;i.maxLength&&P.length>Number(i.maxLength)&&(P=P.slice(0,Number(i.maxLength))),u("blur",P,D)},E=t.computed(()=>({[`${N}__append`]:!0,"is-disabled":f.value,"is-readonly":p.value})),M=t.computed(()=>ve(i.unit)>0),x=t.computed(()=>ve(i.unit)>0&&!y.value),U=t.computed(()=>({hidden:!x.value})),K=D=>{d(),u("update:modelValue",null,D),u("change","",D),u("clear","")},J=t.computed(()=>i.clearable&&!f.value&&!p.value),_=t.computed(()=>{let D=ve(g.value)>0;return i.clearable&&D&&y.value}),j=D=>{_.value?K(D):T()},q=t.computed(()=>_.value&&J.value?l:r),L=t.computed(()=>({action:!0}));return()=>{const D={class:C.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:T,onFocus:F,onBlur:A};s&&(D.disabled=!0);const W=[],P=t.h("input",D);W.push(P);const z=[],X={class:["action-icon"]},Z=t.h(q.value,X),te={class:L.value,onClick:j},R=t.h("view",te,{default:()=>[Z]});if(z.push(R),M.value){const Ce=t.h("view",{class:U.value},[i.unit]);z.push(Ce)}const H={class:E.value},Y=t.h("view",H,{default:()=>z});W.push(Y);const O={default:()=>W};O.label=c.slots.default,O.prepend=c.slots.prepend,O.append=c.slots.append,O.fixedPreTip=c.slots.fixedPreTip,O.fixedTip=c.slots.fixedTip;const G=be(i,an);G.visible=V.value,G["onUpdate:visible"]=$,G["default-value"]=S.value,G.onChoose=I;const oe={};if(c.slots.btn){const Ce=c.slots.btn();oe.btn=()=>Ce}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 le=t.h(a,G,oe);O.hide=()=>[le];const ce={...At(i,an,fr)};return i.prop&&(ce.prop=`${i.prop}_item`),t.h(o,ce,O)}}}}const{componentName:Af,create:Tf,scope:$f}=Q("calendar-item"),cl=Tf(Vf(Af,$f,Yn,we,{CloseIcon:ne.CircleClose,MarkIcon:ne.Date},!1)),Ef={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 xf(e,{CheckNormal:n,Checked:a}){return{props:{...Ef},setup(o,{emit:l,slots:r}){const s=t.inject("parent",null),i=In(),c=t.computed(()=>s.label.value===o.label),f=t.computed(()=>s.position),p=()=>{const v=[];if(c.value){if(r.checkedIcon)return r.checkedIcon();{const b=ue(o.iconSize),d=o.checkedIcon??i.radio.Checked??a;return v.push("fox-radio__icon"),o.disabled&&v.push("is-disabled"),o.readonly&&v.push("is-readonly"),t.h(d,{width:b,height:b,class:v})}}else{if(r.icon)return r.icon();{const b=ue(o.iconSize),d=o.icon??i.radio.CheckNormal??n;return v.push("fox-radio__icon--unchecked"),o.disabled&&v.push("is-disabled"),o.readonly&&v.push("is-readonly"),t.h(d,{width:b,height:b,class:v})}}},u=()=>{const v=[`${e}__label`];return o.disabled&&v.push("is-disabled"),o.readonly&&v.push("is-readonly"),t.h("view",{class:v},r.default?.())},h=()=>{const v=[`${e}__button`];return c.value&&v.push(`${e}__button--active`),o.disabled&&v.push("is-disabled"),o.readonly&&v.push("is-readonly"),t.h("view",{class:v},r.default?.())},k=()=>{c.value||o.disabled||o.readonly||s.updateValue(o.label)},y=f.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${y?`${e}--reverse`:""}`,onClick:k},[o.shape=="button"?h():y?[u(),p()]:[p(),u()]])}}}const{componentName:Df,create:If}=Q("radio"),Xn=If(xf(Df,{CheckNormal:ne.CheckNormal,Checked:ne.CheckChecked})),{componentName:mr,create:qf}=Q("radio-group"),Qn=qf({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}=Tt(),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:`${mr} ${mr}--${e.direction}`,style:l},n.default?.())}}});function pr(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(rn(e,r)===a)return l}else if(o==="item"){if(Pe(a,r))return l}else if(Ft(e,r)===a)return l}return-1}function rn(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 Pf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Mf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Lf=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(xe(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function zf(){const e=t.getCurrentInstance();return new Lf(e.proxy)}function Ff(e){return{text:e,value:e}}const hr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},Rf={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 Kf(e,n,a,o,l){return{props:{...pe,...ye,...hr,...Rf,...Of},emits:["change","update:modelValue","setValue"],setup(r,s){const i=Te(t.computed(()=>r.readonly)),c=$e(t.computed(()=>r.disabled)),f=Ae(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return c.value}},r.prop??s.attrs.name),u=zf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([d,m])=>{if(d){const g=await u.load("radio",d,m);if(g.length>0)if(typeof g[0]=="string"){const C=g.map(w=>Ff(w));h.value=C}else h.value=g;else h.value=[]}},{immediate:!0});let k=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([d,m])=>{k.value=pr(r,m,d,r.valueType),p("setValue",d)},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;if(k.value===-1)return null;const d=h.value[k.value];return Ft(r,d)}),v=d=>{let m=null,g=null;if(h.value.length>0){let S=pr(r,h.value,d,"value");k.value=S,S>=0&&(g=h.value[S],r.valueType==="text"?m=rn(r,g):r.valueType==="item"?m=g:m=Ft(r,g))}else m=d;p("update:modelValue",m),p("change",m,g)},b=()=>{let d=null,m=null;if(h.value.length>0&&k.value!==-1){let g=h.value[k.value];r.valueType==="text"?d=rn(r,g):r.valueType==="item"?d=g:d=Ft(r,g)}p("update:modelValue",d),p("change",d,m)};if(Ie({clear(){k.value!==-1&&(k.value=-1,b())}}),r.source){const d=()=>{const m=[],g=be(r,hr);return h.value.forEach((S,N)=>{const C=Ft(r,S),w=Pf(r,S);let B={...g,label:C,disabled:w};const V=Mf(r,S,N);B={...B,...V},c.value&&(B.disabled=!0),i.value&&(B.readonly=!0);const T={};if(s.slots.icon&&(T.icon=s.slots.icon),s.slots.checkedIcon&&(T.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const I=s.slots.text(S);T.default=()=>[I]}else{const I=rn(r,S);T.default=()=>I}let $=t.h(l,B,T);m.push($)}),m};return()=>{const m=d(),g={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:f.value,modelValue:y,"onUpdate:modelValue":v},S=t.h(o,g,{default:()=>m}),N={default:()=>S};N.label=s.slots.default,N.prepend=s.slots.prepend,N.append=s.slots.append,N.fixedPreTip=s.slots.fixedPreTip,N.fixedTip=s.slots.fixedTip;const w={...be(r,ye,pe)};return r.prop&&(w.prop=`${r.prop}_item`),t.h(a,w,N)}}else return()=>{const d=s.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:f.value,modelValue:y,"update:modelValue":v},{default:()=>d})}}}}const{componentName:Uf,create:Hf,scope:jf}=Q("radio-item"),ul=Hf(Kf(Uf,jf,we,Qn,Xn)),Wf=(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}=Tt(),i=In(),c=t.inject("parent",null),f=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,g=>{f.partialSelect=g});const p=t.computed(()=>!!c),u=t.computed(()=>p.value?c.value.value.includes(l.label):!!l.modelValue),h=t.computed(()=>p.value?c.position:l.textPosition);let k="";const y=(g,S)=>{k="click",s("update:modelValue",g),s("change",g,S)};t.watch(()=>l.modelValue,g=>{k=="click"?k="":s("change",g)});const v=()=>{const g=[];if(f.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const S=ue(l.iconSize),N=l.indeterminateIcon??i.checkbox.Indeterminate??o;return g.push("fox-checkbox__icon--indeterminate"),l.disabled&&g.push("is-disabled"),l.readonly&&g.push("is-readonly"),t.h(N,{width:S,height:S,class:g})}}else if(u.value){if(r.checkedIcon)return r.checkedIcon();{const S=ue(l.iconSize),N=l.checkedIcon??i.checkbox.Checked??a;return g.push("fox-checkbox__icon"),l.disabled&&g.push("is-disabled"),l.readonly&&g.push("is-readonly"),t.h(N,{width:S,height:S,class:g})}}else{if(r.icon)return r.icon();{const S=ue(l.iconSize),N=l.icon??i.checkbox.CheckNormal??n;return g.push("fox-checkbox__icon--unchecked"),l.disabled&&g.push("is-disabled"),l.readonly&&g.push("is-readonly"),t.h(N,{width:S,height:S,class:g})}}},b=()=>{const g=[`${e}__label`];return l.disabled&&g.push("is-disabled"),l.readonly&&g.push("is-readonly"),t.h("view",{class:g},r.default?.())},d=()=>{const g=[`${e}__button`];return u.value&&g.push(`${e}__button--active`),l.disabled&&g.push("is-disabled"),l.readonly&&g.push("is-readonly"),t.h("view",{class:g},r.default?.())},m=g=>{if(!(l.disabled||l.readonly)){if(u.value&&f.partialSelect){f.partialSelect=!1,y(u.value,r.default?.()[0].children);return}if(y(!u.value,r.default?.()[0].children),p.value){const S=c.value.value,N=c.max.value,{label:C}=l,w=S.indexOf(C);w>-1?S.splice(w,1):w<=-1&&(S.length<N||!N)&&S.push(C),c.updateValue(S)}}};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} ${h.value==="left"?`${e}--reverse`:""}`,onClick:m},[l.shape=="button"?d():[v(),b()]])}}),{componentName:Yf,create:Xf}=Q("checkbox"),Gn=Xf(Wf(Yf,{CheckNormal:ne.CheckNormal,Checked:ne.Checked,Indeterminate:ne.CheckDisabled})),{create:Qf,componentName:gr}=Q("checkbox-group"),Zn=Qf({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}=Tt(),o=t.reactive({children:[]}),l=f=>{f.proxy&&o.children.push(f.proxy)},r=f=>{f.proxy&&(o.children=o.children.filter(p=>p!==f.proxy))},s=f=>{a("update:modelValue",f),a("change",f)},i=f=>{const p=[];f&&o.children.forEach(u=>{u?.disabled||p.push(u?.label)}),a("update:modelValue",p)},c=()=>{const f=o.children.filter(p=>p?.disabled?!1:!e.modelValue.includes(p.label)).map(p=>p.label);a("update:modelValue",f)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:l,unlink:r}),t.watch(()=>e.modelValue,f=>{a("change",f)}),Ie({toggleAll:i,toggleReverse:c}),()=>{const f={};return e.textAlign&&(f["text-align"]=e.textAlign),t.h("view",{class:`${gr} ${gr}--${e.direction}`,style:f},n.default?.())}}});function yr(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(qo(e,r)===a)return l}else if(o==="item"){if(Pe(a,r))return l}else if(sn(e,r)===a)return l}return-1}function qo(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function sn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Gf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Zf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Jf=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(xe(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function _f(){const e=t.getCurrentInstance();return new Jf(e.proxy)}function em(e){return{text:e,value:e}}const tm={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},vr={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},nm={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 om(e,n,a,o,l){return{props:{...pe,...ye,...tm,...vr,...nm},emits:["change","update:modelValue","setValue"],setup(r,s){const i=$e(t.computed(()=>r.disabled)),c=Te(t.computed(()=>r.readonly)),f=Ae(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return i.value}},r.prop??s.attrs.name),u=_f(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([d,m])=>{if(d){const g=await u.load("checkbox",d,m);if(g.length>0)if(typeof g[0]=="string"){const C=g.map(w=>em(w));h.value=C}else h.value=g;else h.value=[]}},{immediate:!0});const k=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([d,m])=>{const g=[];Array.isArray(d)&&d.forEach(S=>{let N=yr(r,m,S,r.valueType);N!==-1&&g.push(N)}),!Pe(g,k.value)&&(k.value=g,p("setValue",g))},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;let d=[];return k.value.forEach(m=>{let g=h.value[m];d.push(sn(r,g))}),d}),v=d=>{let m=[],g=[];if(h.value.length>0){const S=[];Array.isArray(d)&&d.forEach(N=>{let C=yr(r,h.value,N,"value");C!==-1&&S.push(C);const w=h.value[C];g.push(w),r.valueType==="text"?m.push(qo(r,w)):r.valueType==="item"?m.push(w):m.push(sn(r,w))}),k.value=S}else m=d;p("update:modelValue",m),p("change",m,g)},b=t.ref();if(Ie({toggleAll:d=>{b.value.toggleAll(d)},toggleReverse:()=>{b.value.toggleReverse()}}),r.source){const d=()=>{const m=[],g=be(r,vr);return h.value.forEach((S,N)=>{const C=sn(r,S),w=Gf(r,S);let B={...g,label:C,disabled:w};const V=Zf(r,S,N);B={...B,...V},i.value&&(B.disabled=!0),c.value&&(B.readonly=!0);const T={};if(s.slots.icon&&(T.icon=s.slots.icon),s.slots.checkedIcon&&(T.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(T.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const I=s.slots.text(S);T.default=()=>[I]}else{const I=qo(r,S);T.default=()=>I}let $=t.h(l,B,T);m.push($)}),m};return()=>{const m=d(),g={class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:y.value,"onUpdate:modelValue":v},S=t.h(o,g,{default:()=>m}),N={default:()=>S};N.label=s.slots.default,N.prepend=s.slots.prepend,N.append=s.slots.append,N.fixedPreTip=s.slots.fixedPreTip,N.fixedTip=s.slots.fixedTip;const w={...be(r,ye,pe)};return r.prop&&(w.prop=`${r.prop}_item`),t.h(a,w,N)}}else return()=>{const d=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:f.value,modelValue:y,"onUpdate:modelValue":v},{default:()=>d})}}}}const{componentName:lm,create:am,scope:rm}=Q("checkbox-item"),dl=am(om(lm,rm,we,Zn,Gn)),Po={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:sm,create:im}=Q("switch"),cm=im({components:{Loading1:ne.Loading1},props:{...Po},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const i=sm;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}}}),um={class:"fox-switch-button"};function dm(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",um,[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 Jn=ee(cm,[["render",dm]]);function fm(e,n,a,o){return{props:{...pe,...ye,...Po},emits:["change","update:modelValue","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),f=e,p=qe(l,"modelValue",null,c),u=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const k={...be(l,Po),disabled:s.value||i.value,value:p.value,"onUpdate:modelValue":u},y=[],v=t.h(o,k);y.push(v);const b={default:()=>y};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const m={...be(l,ye,pe)};return l.prop&&(m.prop=`${l.prop}_item`),m["content-class"]=f,t.h(a,m,b)}}}}const{componentName:mm,create:pm,scope:hm}=Q("switch-item"),fl=pm(fm(mm,hm,we,Jn));function gm(e,n,a,o){return{props:{...pe,...ye,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ve({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:f}=se.useFoxI18n(n),p=f(l,["placeholder"]),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,I=>{u.value=I,c("change",I)});const h=t.computed(()=>({[`${e}`]:!0})),k=t.computed(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&de(u.value),"is-disabled":s.value,"is-readonly":i.value})),y=Ae(t.computed(()=>l.textAlign),"textAlign"),v=t.computed(()=>{const I={};return y.value&&(I["text-align"]=y.value),I}),b=t.computed(()=>!de(l.modelValue)||r.slots.main?!0:!!de(l.desc)),d=t.computed(()=>de(u.value)?p.placeholder.value:u.value),m=t.computed(()=>!de(l.desc)||r.slots.sub),g=t.computed(()=>({[`${e}__sub`]:!0})),S=t.computed(()=>{const I={};return y.value&&(I["text-align"]=y.value),I}),N=()=>{c("focus",u.value)},C=()=>{c("blur",u.value)},w=t.computed(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),B=t.computed(()=>ve(l.unit)>0),V=I=>{s.value==!0||i.value==!0||c("click")},T=t.computed(()=>l.icon??a),$=t.computed(()=>({action:!0}));return()=>{const I=[];if(typeof r.slots.content=="function"){const L=r.slots.content();I.push(L)}else{const L=[];if(b.value){const P={tabIndex:0,class:k.value,style:v.value,onFocus:N,onBlur:C};let z=null;r.slots.main?z=t.h("view",P,[r.slots.main(d.value)]):z=t.h("view",P,[d.value]),L.push(z)}if(m.value){const P={tabIndex:0,class:g.value,style:S.value,onFocus:N,onBlur:C};let z=null;r.slots.sub?z=t.h("view",P,[r.slots.sub(l.desc)]):z=t.h("view",P,[l.desc]),L.push(z)}const D={class:h.value,onClick:V},W=t.h("view",D,L);I.push(W)}const F=[],A=ue(l.iconSize);let E=r.slots.icon;if(!E){const L={width:A,height:A,class:["action-icon"]};E=t.h(T.value,L)}const M={class:$.value,onClick:V},x=t.h("view",M,{default:()=>[E]});if(F.push(x),B.value){const L=t.h("view",{},[l.unit]);F.push(L)}const U={class:w.value},K=t.h("view",U,{default:()=>F});I.push(K);const J={default:()=>I};J.label=r.slots.default,J.prepend=r.slots.prepend,J.append=r.slots.append,J.fixedPreTip=r.slots.fixedPreTip,J.fixedTip=r.slots.fixedTip;const j={...be(l,ye,pe)};return l.prop&&(j.prop=`${l.prop}_item`),t.h(o,j,J)}}}}const{componentName:ym,create:vm,scope:bm}=Q("link-item"),ml=vm(gm(ym,bm,ne.ArrowRight,we)),Mo={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:km,componentName:Sm}=Q("rate"),Cm=km({props:{...Mo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[Sm]:!0})),r=k=>{n("update:modelValue",k),n("change",k)},s=(k,y)=>{if(e.disabled||e.readonly)return;let v=0;y===1&&e.modelValue===y||(v=y,e.allowHalf&&k==2&&(v-=.5)),r(v)},i=(k,y,v)=>{let b=0;for(let d=y.value.length-1;d>=0;d--){const m=y.value[d];if(k>m.offsetLeft){v?b=d+(k>m.offsetLeft+m.clientWidth/2?1:.5):b=d+1;break}}return b},c=_e(),f={onTouchStart(k){!e.touchable||e.readonly||c.start(k)},onTouchMove(k){e.touchable&&(c.move(k),c.isHorizontal()&&o.value&&(k.preventDefault(),r(i(c.moveX.value,o,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),u=t.computed(()=>e.customIcon??ne.StarFillN);return{classes:l,...f,onClick:s,toPxDesc:ge,renderIcon:(k,y)=>t.h(k,y),rateRefs:o,refRandomId:p,slots:a,customIcon:u}}}),wm=["id"],Nm={class:"fox-rate-item__icon--full"},Bm={key:0,class:"fox-rate-item__icon--half"},Vm={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]=(...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",Nm,[(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",Bm,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<s?(t.openBlock(),t.createElementBlock("view",Vm,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):t.createCommentVNode("",!0)],12,wm))),128))],34)}const wt=ee(Cm,[["render",Am]]);function Tm(e,n,a,o){return{props:{...pe,...ye,...Mo},emits:["change","update:modelValue","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),f=e,p=qe(l,"modelValue",null,c),u=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const k={...be(l,Mo),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":u},y=[],v=t.h(o,k);y.push(v);const b={default:()=>y};if(r.slots.default){const g=r.slots.default();b.label=()=>g}const d=be(l,ye,pe);return l.prop&&(d.prop=`${l.prop}_item`),d["content-class"]=f,t.h(a,d,b)}}}}const{componentName:$m,create:Em,scope:xm}=Q("rate-item"),pl=Em(Tm($m,xm,we,wt)),Dm=/scroll|auto|overlay/i,Ds=window;function Im(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Lo(e,n=Ds){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 Is(e,n=Ds){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=Lo(e.value,n))}),a}const qs=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,qm={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 Pm(e,n,a){return{props:{...qm},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=se.useFoxI18n(n),i=s(o,["pullText","loadText","loadMoreText"]),c=t.ref(),f=Is(c),p=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),u=t.computed(()=>({[e]:!0})),h=m=>m?m.offsetTop+h(m.offsetParent):0,k=()=>{let m=0,g=0,S="down";if(f.value==window){const N=qs();c.value&&(m=h(c.value)+c.value.offsetHeight-N-window.innerHeight),g=N}else{const{scrollHeight:N,clientHeight:C,scrollTop:w}=f.value;m=N-C-w,g=w}return p.beforeScrollTop>g?S="up":S="down",p.beforeScrollTop=g,l("scroll-change",g),m<=o.threshold&&S=="down"},y=()=>{Xe(()=>{if(!k()||!o.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,l("update:modelValue",!0),t.nextTick(()=>l("load-more"))})},v=()=>{f.value&&f.value.addEventListener("scroll",y,o.useCapture)},b=()=>{f.value&&f.value.removeEventListener("scroll",y,o.useCapture)};t.onMounted(()=>{v(),o.immediate&&y()}),t.onUnmounted(()=>{b()});const d=t.ref(!1);return t.onActivated(()=>{d.value&&(d.value=!1,v())}),t.onDeactivated(()=>{d.value=!0,b()}),t.watch(()=>o.modelValue,m=>{m||(p.isInfiniting=!1)}),()=>{const m={class:"fox-infinite__container"},g=t.h("view",m,[r?.default?.()]),S=[];if(p.isInfiniting){let B=r?.loading?.()??null;if(!B){let $=r?.loadingIcon?.()??null;if(!$){const A={class:["fox-infinite__bottom-box__img"]};$=t.h(a,A)}const I={class:"fox-infinite__bottom-box__text"},F=t.h("view",I,[i.loadText.value]);B=[$,F]}const V={class:"fox-infinite__bottom-box"},T=t.h("view",V,B);S.push(T)}else if(!o.hasMore){let B=r?.finished?.()??null;if(!B){const V={class:"fox-infinite__bottom-tips"};B=t.h("view",V,[i.loadMoreText.value]),S.push(B)}}const N={class:"fox-infinite__bottom"},C=t.h("view",N,S),w={class:u.value,ref:c};return t.h("view",w,[g,C])}}}}const{componentName:Mm,create:Lm,scope:zm}=Q("infinite-loading"),_n=Lm(Pm(Mm,zm,ne.Loading)),{componentName:Fm,create:Rm}=Q("button"),Om=Rm({components:{Loading:ne.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:o,size:l,shape:r,disabled:s,loading:i,color:c,plain:f,block:p}=t.toRefs(e),u=y=>{!i.value&&!s.value&&n("click",y)},h=t.computed(()=>{const y=Fm;return{[y]:!0,[`${y}--${o.value}`]:o.value,[`${y}--${l.value}`]:l.value,[`${y}--${r.value}`]:r.value,[`${y}--plain`]:f.value,[`${y}--block`]:p.value,[`${y}--disabled`]:s.value,[`${y}--loading`]:i.value}}),k=t.computed(()=>{const y={};return c?.value&&(f.value?(y.color=c.value,y.background="#fff",c.value?.includes("gradient")||(y.borderColor=c.value)):(y.color="#fff",y.background=c.value)),y});return{handleClick:u,classes:h,getStyle:k}}}),Km={class:"fox-button__wrap"};function Um(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",Km,[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 Le=ee(Om,[["render",Um]]),Hm={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"}},jm=(e,n,a)=>({props:{...Hm},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}=Tt(),{toLocaleRefs:s}=se.useFoxI18n(n),i=s(o,["placeholder"]),c=t.reactive({active:!1}),f=t.computed(()=>({background:o.background})),p=t.computed(()=>({background:o.inputBackground})),u=V=>{let $=V.target.value;o.maxLength&&$.length>Number(o.maxLength)&&($=$.slice(0,Number(o.maxLength))),r("update:modelValue",$,V),r("change",$,V)},h=t.ref({}),k=V=>{let $=V.target.value;c.active=!0,h.value=o.focusStyle,r("focus",$,V)},y=V=>{setTimeout(()=>{c.active=!1},0);let $=V.target.value;o.maxLength&&$.length>Number(o.maxLength)&&($=$.slice(0,Number(o.maxLength))),h.value={},r("blur",$,V)},v=V=>{r("update:modelValue","",V),r("change","",V),r("clear","")},b=t.computed(()=>String(o.modelValue).length>0),d=t.computed(()=>{const V={};return b.value||(V.display="none"),V}),m=V=>{o.autoblur&&w.value?.blur(),(typeof V.cancelable!="boolean"||V.cancelable)&&V.preventDefault(),r("search",o.modelValue)},g=V=>{r("keyup-input",V)},S=V=>{r("click-input",V)},N=V=>{r("click-left-icon",o.modelValue,V)},C=t.computed(()=>({textAlign:o.inputAlign})),w=t.ref(null);t.onMounted(()=>{o.autofocus&&w.value.focus()});const B=()=>{const V=[];if(l.leftin){const M={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:N},x=t.h("view",M,[l.leftin()]);V.push(x)}const T={class:`${e}__input-inner-input`,ref:w,style:C.value,type:o.inputType,maxlengt:o.maxLength,placeholder:i.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:S,onInput:u,onFocus:k,onBlur:y,onkeyup:g},$=t.h("input",T),I={class:[`${e}__input-inner`],action:"#",onSubmit:m},F=t.h("form",I,[$]);V.push(F);const A=[];if(o.clearable){const M={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:d.value,onClick:v},x=l?.clear?.()??o.clearIcon??a,U=t.h("view",M,[t.h(x)]);A.push(U)}if(l.rightin){const M={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},x=t.h("view",M,[l.rightin()]);A.push(x)}if(A.length>0){const M={class:`${e}__input-inner-right`},x=t.h("view",M,A);V.push(x)}const E={class:[`${e}__search-input`,`${o.shape}`],style:{...p.value,...h.value}};return t.h("view",E,V)};return()=>{const V=[];if(o.label){const I={class:`${e}__search-label`},F=t.h("span",I,[o.label]);V.push(F)}if(l.leftout){const I={class:[`${e}__search-icon`,`${e}__left-search-icon`]},F=t.h("view",I,[l.leftout()]);V.push(F)}const T=B();if(V.push(T),l.rightout){const I={class:[`${e}__search-icon`,`${e}__right-search-icon`]},F=t.h("view",I,[l.rightout()]);V.push(F)}const $={class:`${e}`,style:f.value};return t.h("view",$,V)}}}),{componentName:Wm,create:Ym,scope:Xm}=Q("searchbar"),eo=Ym(jm(Wm,Xm,ne.CircleClose)),cn={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 Qm(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(un(e,r)===a)return l}else if(o==="item"){if(Pe(a,r))return l}else if(Ps(e,r)===a)return l}return-1}function un(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function br(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Ps(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Gm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Zm(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Jm=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let f=a;typeof i=="function"&&(f=f.filter(i));let p=(o-1)*l,u=p+l;u>f.length&&(u=f.length);const h=f.slice(p,u);return{totalSize:f.length,page:h}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s]);const c=Je(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(xe(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r]))}};function _m(){const e=t.getCurrentInstance();return new Jm(e.proxy)}function ep(e,n,a,o,l,r,s,i,c,f,p){return{props:{...cn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(u,{slots:h}){const{emitEvent:k}=Tt(),{toLocaleRefs:y}=se.useFoxI18n(n),v=y(u,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),b=_m(),d=t.ref([]),m=t.ref(0),g=t.ref(""),S=t.shallowRef(null),N=t.computed(()=>{const R={};return u.params&&Object.assign(R,u.params),de(g.value)||(R[`${u.searchKey}`]=g.value),S.value&&Object.assign(R,S.value),R});let C=!0;const w=async(R,H,Y)=>{try{if(V.value===!1)return;let O=null;de(g.value)||(O=oe=>{const le=un(u,oe);if(typeof le=="string"&&le.includes(g.value))return!0;const re=br(u,oe);return!!(typeof re=="string"&&re.includes(g.value))});const G=await b.load("actionsheet",R,H,Y,N.value,C,O??void 0);C=!1,Array.isArray(G)?(d.value=G,m.value=1,V.value=!1):!Array.isArray(G.page)||G.page.length===0?(console.warn("[FoxUI] can not load more data"),V.value=!1):(Reflect.apply([].push,d.value,G.page),m.value=Math.ceil(d.value.length/u.pageSize),(G.totalSize&&d.value.length>=G.totalSize||Y<G.page.length)&&(V.value=!1)),B.value=!1}catch(O){console.error("[FoxUI] ActionSheet load more data fail",O),V.value=!0,m.value=0,d.value=[]}setTimeout(()=>{k("loaded-data")},250)},B=t.ref(!1),V=t.ref(!0),T=async()=>{if(!u.source){B.value=!1;return}await w(u.source,m.value+1,u.pageSize)};let $=null;t.watch(g,(R,H)=>{$&&(clearTimeout($),$=null),de(R)&&!de(H)&&($=setTimeout(()=>{F()},u.searchDelayTriggerClear))});const I=()=>{V.value=!0,m.value=0,d.value=[],u.source&&T()},F=()=>{I()};t.watch([()=>u.source,()=>u.pageSize,()=>u.params],async([R,H,Y])=>{u.source&&I()},{immediate:!0});const A=t.computed(()=>!u.multiple&&u.isAutoBackFill),E=t.ref([]);let M=null;const x=t.ref(u.visible);t.watch(()=>u.visible,R=>{x.value!==R&&(x.value=R),R?M=[...E.value]:M=null});const U=(R,H)=>{const Y=[];return Array.isArray(R)||(R=[R]),R.forEach(O=>{let G=Qm(u,H,O,u.valueType);G!==-1&&Y.push(G)}),Pe(Y,E.value)?!1:(E.value=Y,!0)};t.watch([()=>u.modelValue,()=>d.value],([R,H],[Y,O])=>{if(U(R,H)){const oe=K();J(oe)}},{deep:!0});const K=()=>{const R=[],H=[],Y=[];for(let le of E.value){const re=d.value[le];H.push(re);const ce=un(u,re);if(Y.push(ce),u.valueType==="item")R.push(re);else if(u.valueType==="text")R.push(ce);else{const Ne=Ps(u,re);R.push(Ne)}}let O=null,G=null,oe=null;return u.multiple?(O=R,G=Y,oe=H):(O=R[0]??null,G=Y[0]??null,oe=H[0]??null),{value:O,text:G,item:oe}},J=R=>{k("update:modelValue",R.value),k("update:text",R.text),k("change",R.value,R.item,R.text)},_=()=>{M&&(E.value=M)},j=R=>{const H=E.value.indexOf(R);u.multiple?H===-1?E.value.push(R):E.value.splice(H,1):H===-1?E.value=[R]:E.value=[],(A.value||!u.poppable&&!u.showFooter)&&D()},q=R=>{x.value=R,k("update:visible",R)},L=()=>{const R=()=>{_(),q(!1)},H=u.beforeMethod??u.beforeClose;if(typeof H=="function"){const Y=H("close");yt(Y)?Y.then(O=>{O!==!1&&R()}).catch(()=>{R()}):Y!==!1&&R()}else R()},D=()=>{const R=K(),H=()=>{J(R),q(!1)},Y=u.beforeMethod??u.beforeClose;if(typeof Y=="function"){const O=Y("confirm",R.value,R.item,R.text);yt(O)?O.then(G=>{G!==!1&&H()}).catch(()=>{H()}):O!==!1&&H()}else H()},W=()=>{let R=v.title.value??"";h.title&&(R=h.title());const H=t.h("view",{class:["fox-actionsheet__header-title"]},[R]),Y=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:L});return t.h("view",{class:["fox-actionsheet__header"]},[H,Y])},P=()=>{let R=null;if(h.search)R=h.search();else{const H={onSearch:I,placeholder:v.seachPlaceholder.value,disabled:u.disabled,modelValue:g.value,"onUpdate:modelValue":Y=>{g.value=Y}};R=t.h(r,H,{leftin:()=>t.h(f)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[R])},z=(R,H,Y,O,G)=>{if(h.optionLabel)return h.optionLabel({text:R,checked:H,disabled:Y,subText:O,item:G});const oe=[],le=t.h("view",{class:"fox-actionsheet__list-item-text"},[R]);if(oe.push(le),O){const re=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[O]);oe.push(re)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},oe)},X=(R,H,Y,O)=>{if(h.optionIcon)return h.optionIcon({checked:R,disabled:H,iconSize:Y,item:O});if(R){if(h.checkedIcon)return h.checkedIcon({disabled:H,item:O});{const G=u.checkedIcon??i;return t.h(G,{width:Y,height:Y,class:["fox-actionsheet__list-item-icon"]})}}else{if(h.icon)return h.icon({disabled:H,item:O});{const G=u.icon??s;return t.h(G,{width:Y,height:Y,class:["fox-actionsheet__list-item-icon"]})}}},Z=()=>{const R=[];for(let H=0;H<d.value.length;H++){const Y=d.value[H],O=un(u,Y),G=br(u,Y),oe=["fox-actionsheet__list-item"],le={};let re=Gm(u,Y),ce=u.iconSize?ue(u.iconSize):null;const Ne=Zm(u,Y,H);Ne&&(re=re||Ne.disabled,Ne.class&&oe.push(Ne.class),Ne.style&&Object.assign(le,Ne.style)),re=!!(u.disabled||re);const Ce=E.value.includes(H);re&&oe.push("is-disabled"),Ce&&oe.push("is-checked");const _t={class:oe,style:le,key:`${H}`,onClick:()=>{re||j(H)}};let et=[];if(h.option)et.push(h.option({item:Y,checked:Ce,disabled:re}));else{const Hs=z(O,Ce,re,G,Y);et.push(Hs);const js=X(Ce,re,ce,Y);et.push(js),u.textPosition==="right"&&et.reverse()}const Us=t.h("view",_t,et);R.push(Us)}return R},te=()=>{let R=[];if(h.buttons)R=h.buttons();else{const Y=t.h(l,{type:"primary",block:"block",onClick:D,disabled:u.disabled},{default:()=>v.confirmText.value});R.push(Y)}return t.h("view",{class:"fox-actionsheet__footer"},[R])};return Ie({search:async(R=null,H=!0)=>{S.value=R&&t.toRaw(R),t.triggerRef(S),H&&(V.value=!0,m.value=0,d.value=[]),t.nextTick(()=>{T()})},clear:()=>{V.value=!0,m.value=0,d.value=[]},confirm:()=>{D()},cancel:()=>{L()}}),()=>{const R=[];if(u.showHeader){const ce=W();R.push(ce)}if(u.showSearchbar){const ce=P();R.push(ce)}let H=null;if(h.content)H=h.content();else{const ce=Z(),Ne={hasMore:V.value,loadText:v.loadText.value,loadMoreText:v.loadMoreText.value,modelValue:B.value,"onUpdate:modelValue":Ce=>{B.value=Ce},onLoadMore:T};H=t.h(o,Ne,{default:()=>ce})}const Y={};u.optionsHeight&&(Y.height=u.optionsHeight);const O={"fox-actionsheet__list":!0};u.poppable||(O["fox-actionsheet__list--inner"]=!0);const G=t.h("view",{class:O,style:Y},[H]);if(R.push(G),u.showFooter&&!A.value){const ce=te();R.push(ce)}const oe=t.h("view",{class:"fox-actionsheet"},R);if(!u.poppable)return oe;const le=["fox-actionsheet__popup"];u.popClass&&le.push(u.popClass);const re={popClass:le.join(" "),visible:x.value,closeable:!1,"onUpdate:visible":q,position:u.position,round:"round",onClickOverlay:L,closeOnClickOverlay:u.closeOnClickOverlay};return t.h(a,re,{default:()=>oe})}}}}const{componentName:tp,create:np,scope:op}=Q("actionsheet-pane"),to=np(ep(tp,op,fe,_n,Le,eo,ne.CheckNormal,ne.Checked,ne.Close,ne.Search2)),kr={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 lp(e,n,a,o,l,r,s){return{props:{...pe,...ye,...kr,...cn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,c){const f=$e(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ve({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),k=h(i,["placeholder"]),y=t.ref(!1),v=qe(i,"modelValue",null,u),b=t.ref(""),d=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),m="fox-input-item",g=t.computed(()=>({[m]:!0,"is-disabled":f.value,"is-readonly":p.value})),S=Ae(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const D={};return S.value&&(D["text-align"]=S.value),D}),C=t.ref(!1),w=()=>{C.value=!0},B=D=>{C.value=D},V=D=>{v.value=D,u("update:modelValue",D)},T=(D,W)=>{u("change",D,W)},$=D=>{let P=D.target.value;y.value=!0,u("focus",P,D)},I=D=>{setTimeout(()=>{y.value=!1},0);let P=D.target.value;i.maxLength&&P.length>Number(i.maxLength)&&(P=P.slice(0,Number(i.maxLength))),u("blur",P,D)},F=D=>{b.value=D,u("update:text",D)},A=t.computed(()=>({[`${m}__append`]:!0,"is-disabled":f.value,"is-readonly":p.value})),E=t.computed(()=>ve(i.unit)>0),M=t.computed(()=>ve(i.unit)>0&&!y.value),x=t.computed(()=>({hidden:!M.value})),U=D=>{v.value="",u("update:modelValue","",D),u("change","",D),u("clear","")},K=t.computed(()=>i.clearable&&!f.value&&!p.value),J=t.computed(()=>ve(v.value)>0&&y.value),_=D=>{J.value?U(D):w()},j=t.computed(()=>J.value&&K.value?o:l),q=t.computed(()=>({action:!0})),L=t.ref(null);return Ie({search:D=>{L.value&&L.value.search(D)},clear:()=>{L.value&&L.value.clear},confirm:D=>{L.value&&L.value.confirm()},cancel:()=>{L.value&&L.value.cancel()}}),()=>{const D={class:g.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:w,onFocus:$,onBlur:I};s&&(D.disabled=!0);const W=[],P=t.h("input",D);W.push(P);const z=[],X={class:["action-icon"]},Z=t.h(j.value,X),te={class:q.value,onClick:_},R=t.h("view",te,{default:()=>[Z]});if(z.push(R),E.value){const Ce=t.h("view",{class:x.value},[i.unit]);z.push(Ce)}const H={class:A.value},Y=t.h("view",H,{default:()=>z});W.push(Y);const O={default:()=>W};O.label=c.slots.default,O.prepend=c.slots.prepend,O.append=c.slots.append,O.fixedPreTip=c.slots.fixedPreTip,O.fixedTip=c.slots.fixedTip;const G=be(i,cn);G.ref=L,G.class=i.actionsheetProps,G.disabled=f.value||p.value,G.visible=C.value,G["onUpdate:visible"]=B,G.modelValue=v.value,G["onUpdate:modelValue"]=V,G.text=b.value,G["onUpdate:text"]=F,G.onChange=T,G.poppable=!0,G["text-position"]=i.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},le=t.h(r,G,oe);O.hide=()=>[le];const ce={...At(i,kr,cn)};return i.prop&&(ce.prop=`${i.prop}_item`),t.h(a,ce,O)}}}}const{componentName:ap,create:rp,scope:sp}=Q("actionsheet-item"),hl=rp(lp(ap,sp,we,ne.CircleClose,ne.ArrowRight,to)),zo={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:ip,create:cp}=Q("input-number"),up=cp({components:{Minus:ne.Minus,Plus:ne.Plus},props:{...zo},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const k=ip;return{[k]:!0,[`${k}--disabled`]:e.disabled}}),o=k=>Number(k).toFixed(Number(e.decimalPlaces)),l=k=>{const y=k.target;n("update:modelValue",y.valueAsNumber,k)},r=(k,y)=>{let v=o(k);n("update:modelValue",v,y),n("change",v,y)},s=(k=Number(e.modelValue))=>k<Number(e.max)&&!e.disabled,i=(k=Number(e.modelValue))=>k>Number(e.min)&&!e.disabled,c=k=>{if(n("reduce",k),i()){let y=Number(e.modelValue)-Number(e.step);r(y,k)}else n("overlimit",k,"reduce")},f=k=>{if(n("add",k),s()){let y=Number(e.modelValue)+Number(e.step);r(y,k)}else n("overlimit",k,"add")},p=k=>{e.disabled||e.readonly||n("focus",k)},u=k=>{if(e.disabled||e.readonly)return;let v=k.target.valueAsNumber;v<Number(e.min)?v=Number(e.min):v>Number(e.max)&&(v=Number(e.max)),r(v,k),n("blur",k)},h=k=>{let y=Number(k);return y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),y};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const k=h(e.modelValue);k!==Number(e.modelValue)&&r(k,{})}),{classes:a,change:l,blur:u,focus:p,add:f,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:ge}}}),dp=["min","max","disabled","readonly","value"];function fp(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,dp),t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[4]=(...c)=>e.add&&e.add(...c))},[t.renderSlot(e.$slots,"right-icon",{},()=>[t.createVNode(i,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2)],2)}const Ze=ee(up,[["render",fp]]);function mp(e,n,a,o){return{props:{...pe,...ye,...zo},emits:["change","update:modelValue","setValue","add","reduce"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),f=e,p=qe(l,"modelValue",null,c),u=y=>{p.value=y,c("update:modelValue",y,{}),c("change",y,{})},h=y=>{c("add",y)},k=y=>{c("reduce",y)};return()=>{const y={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},v=be(l,zo),d={...r.attrs,...v,disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":u,onAdd:h,onReduce:k},m=t.h(o,d,y),g=[];g.push(m);const S={default:()=>g};S.label=r.slots.default,S.fixedPreTip=r.slots.fixedPreTip,S.fixedTip=r.slots.fixedTip;const C={...be(l,ye,pe)};return l.prop&&(C.prop=`${l.prop}_item`),C["content-class"]=f,t.h(a,C,S)}}}}const{componentName:pp,create:hp,scope:gp}=Q("inputnumber-item"),gl=hp(mp(pp,gp,we,Ze)),yp={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function vp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Sr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Cr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function bp(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function mo(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function wr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Nr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function po(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let kp=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await Reflect.apply(a,null,[o]);const l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(xe(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(l,null,[a,o]))}};function Sp(){const e=t.getCurrentInstance();return new kp(e.proxy)}function Cp(e,n,a,o){return{props:{...yp},emits:["update:modelValue","change","loaded-data","click"],setup(l,{slots:r,emit:s}){const i=e,c=Sp(),f=t.ref([]),p=t.computed(()=>f.value.filter(q=>bp(l,q)!==!1)),u=t.ref(-1),h=()=>{const q=l.modelValue,L=p.value.findIndex(D=>Sr(l,D)===q);u.value!==L&&(u.value=L,l.scroll&&_(L,!1))};t.watch([()=>l.modelValue,p],()=>{h()});const k=q=>u.value===q,y=q=>{if(q<0&&q>=p.value.length)return!1;const L=p.value[q],W=(po(l,L,q)??{}).status??mo(l,L);return k(q)||W},v=t.computed(()=>{const q={[i]:!0};return l.mode?q[`is-${l.mode}`]=!0:l.direction&&(q[`is-${l.direction}`]=!0),l.scroll&&(q["is-scroll"]=!0),q}),b=t.computed(()=>({})),d=(q,L,D,W,P)=>{const z={[`${i}__step`]:!0};return P&&(z[`${P}`]=!0),z[`${m.value}`]=!0,W&&(z["is-doit"]=!0),q===u.value?z["is-active"]=!0:L==="done"?z["is-done"]=!0:L==="error"?z["is-error"]=!0:L==="half"?z["is-half"]=!0:D?z["is-disabled"]=!0:z["is-normal"]=!0,z},m=t.computed(()=>{if(l.mode==="simple")return"start";let q=l.align;return q||(l.direction==="vertical"?q="start":q="center"),q}),g=(q,L={})=>{const D={...L};return m.value==="start"&&q===p.value.length-1?D.flex="0 0 auto":l.step?l.direction==="vertical"?D.height=l.step:D.width=l.step:D.flex="1 1 100%",D},S=(q,L)=>{let D={};if(L<p.value.length-1){const W=L+1;y(L)&&y(W)?l.direction==="vertical"?D.height="100%":D.width="100%":D.opacity="0"}return D},N=q=>p.value.length-1===q,C=(q,L)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&L>u.value||u.value===L)return;const D=u.value,W=L;u.value=L,l.scroll&&_(L,!1);const P=Sr(l,q);s("update:modelValue",P);const z={fromIndex:D,currentIndex:W,item:q,items:p.value,clickNavigatePolicy:l.clickNavigatePolicy};s("change",P,z)},w=t.ref(!0),B=async(q,L)=>{try{const D=await c.load("stesbar",q,L);Array.isArray(D)&&(f.value=D),w.value=!1}catch(D){console.error("[FoxUI] Load StepsBar Data Fail",D),f.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([q,L])=>{q&&B(q,L)},{immediate:!0});const V=(q,L,D,W,P)=>{let z=null;if(r.icon)z=r.icon({item:q,index:L,status:W});else if(W==="done"){const Z={};l.iconSize&&(Z.width=l.iconSize,Z.height=l.iconSize);const te=l.icon??a;z=t.h(te,Z)}else{const Z=D??`${L+1}`;z=t.h("span",{},[Z])}const X={class:"fox-steps-bar__icon",onClick:()=>{s("click",{item:q,index:L}),!P&&C(q,L)}};return t.h("view",X,[z])},T=(q,L,D)=>{const W=t.h("i",{class:"fox-steps-bar__line-inner",style:S(q,L)});return t.h("view",{class:"fox-steps-bar__line"},[W])},$=()=>{let q=null;if(r.markIcon)q=r.markIcon();else{const D={};l.iconSize&&(D.width=l.markIconSize,D.height=l.markIconSize);const W=l.markIcon??o;q=t.h(W,D)}return t.h("view",{class:"fox-steps-bar__mark"},[q])},I=(q,L,D,W,P)=>{const z=[];if(!N(L)){const te=T(q,L);z.push(te)}const X=V(q,L,D,W,P);z.push(X);const Z={class:"fox-steps-bar__head"};return t.h("view",Z,z)},F=(q,L,D,W)=>{let P=null;r.main?P=r.main({item:q,index:L,status:D}):P=vp(l,q);const z={class:"fox-steps-bar__main",onClick:()=>{s("click",{item:q,index:L}),!W&&C(q,L)}};return t.h("view",z,[P])},A=(q,L,D)=>{let W=null;if(r.sub){W=r.sub({item:q,index:L,status:D});const P={class:"fox-steps-bar__sub"};return t.h("view",P,[W])}return null},E=(q,L)=>{const D=po(l,q,L)??{},W=D.status??mo(l,q);let P=Cr(l,q);D.disabled===!0&&(P=!0),l.disabled===!0&&(P=!0);const z=D.label??Nr(l,q),X=[],Z=V(q,L,z,W,P);Z&&X.push(Z);const te=F(q,L,W,P);if(te&&X.push(te),!N(L)){const oe=T(q,L);oe&&X.push(oe)}const R=t.h("view",{class:"fox-steps-bar__head"},X),H=D.class,Y=D.style??{};let O=wr(l,q);D.doit===!0&&(O=!0);const G={ref:J(L),class:d(L,W,P,O,H),style:g(L,Y)};return t.h("view",G,[R])},M=(q,L)=>{const D=po(l,q,L)??{},W=D.status??mo(l,q);let P=Cr(l,q);D.disabled===!0&&(P=!0),l.disabled===!0&&(P=!0);const z=D.label??Nr(l,q),X=[],Z=l.layout;for(let O of Z)if(O==="head"){const G=I(q,L,z,W,P);X.push(G)}else if(O==="main"){const G=F(q,L,W,P);X.push(G)}else if(O==="sub"){const G=A(q,L,W);X.push(G)}else if(O==="mark"){const G=$();X.push(G)}const te=D.class,R=D.style??{};let H=wr(l,q);D.doit===!0&&(H=!0);const Y={ref:J(L),class:d(L,W,P,H,te),style:g(L,R)};return t.h("view",Y,X)},x=t.ref(),U=t.ref([]),K=(q,L)=>{U.value[L]=q},J=q=>L=>{K(L,q)},_=(q,L)=>{const D=x.value,W=U.value;if(!D||!W||!W[q])return;const P=W[q];let z=0;l.direction==="vertical"?z=P.offsetTop-(D.offsetHeight-P.offsetHeight)/2:z=P.offsetLeft-(D.offsetWidth-P.offsetWidth)/2,j(D,z,L?0:.3,l.direction)},j=(q,L,D,W)=>{let P=0;const z=W==="horizontal"?q.scrollLeft:q.scrollTop,X=D===0?1:Math.round(D*1e3/16);function Z(){W==="horizontal"?q.scrollLeft+=(L-z)/X:q.scrollTop+=(L-z)/X,++P<X&&Ke(Z)}Z()};return()=>{const q=[];if(l.mode==="simple")for(let D=0;D<p.value.length;D++){const W=p.value[D],P=E(W,D);q.push(P)}else for(let D=0;D<p.value.length;D++){const W=p.value[D],P=M(W,D);q.push(P)}const L={ref:x,class:v.value,style:b.value};return t.h("view",L,q)}}}}const{componentName:wp,create:Np,scope:Bp}=Q("steps-bar"),yl=Np(Cp(wp,Bp,ne.Checklist,ne.ArrowRight));function Vp(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=ol()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=ll(),o=(l,r,s,i)=>{this.updateMove({x:l,y:r})};this.touchstart=l=>{this.moving||(a.start(l),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(a.move(l),Vp(l),o(a.state.deltaX,a.state.deltaY))},this.touchend=()=>{o(a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),a.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function 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]}},Ep=(e,n,a,o=!1)=>({props:{...$p},emits:["click"],setup(l,{slots:r,emit:s}){const i=t.reactive({top:l.top,right:l.right,bottom:l.bottom,left:l.left}),c=t.computed(()=>{const m=[`${e}`];return l.customClass&&m.push(l.customClass),m}),f=t.computed(()=>{const m={};return de(i.top)||(m.top=i.top),de(i.right)||(m.right=i.right),de(i.bottom)||(m.bottom=i.bottom),de(i.left)||(m.left=i.left),de(l.width)||(m.width=l.width),de(l.height)||(m.height=l.height),de(l.color)||(m.color=l.color),de(l.background)||(m.background=l.background),de(l.borderRadius)||(m["border-radius"]=l.borderRadius),m}),p=t.computed(()=>({[`${e}__icon`]:!0})),u=()=>{s("click")},h=t.ref(null),k=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},y={x:0,y:0},d=Tp(m=>{if(!h.value)return;const g=h.value;k(),i.left=g.offsetLeft,i.top=g.offsetTop,g.style.left=`${i.left}px`,g.style.top=`${i.top}px`,g.style.right=null,g.style.bottom=null,y.x=i.left,y.y=i.top},m=>{if(!h.value)return;const g=h.value;k(),i.left=y.x+m.x,i.top=y.y+m.y,g.style.left=`${i.left}px`,g.style.top=`${i.top}px`});return t.onMounted(()=>{if(l.draggable&&h.value){const m=[h.value];d.open(m)}}),t.onBeforeUnmount(()=>{l.draggable&&h.value&&d.close()}),()=>{let m=[];const g=typeof r.default=="function"?r.default():[];if(g&&g.length>0)m=g;else{const N=t.h(a,{class:p.value});m.push(N)}const S={ref:N=>{h.value=N},class:c.value,style:f.value,onClick:u};return t.h("view",S,m)}}}),{componentName:xp,create:Dp,scope:Ip}=Q("floating-button"),vl=Dp(Ep(xp,Ip,ne.Uploader,!1)),qp={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 Pp(e,n,a){return{props:{...qp},emits:["click","update:modelValue"],setup(o,{emit:l}){const r=t.computed(()=>{const u={[`${e}`]:!0};return o.disabled?u[`${e}--disabled`]=!0:u[`${e}--${o.type}`]=!0,u}),s=qe(o,"modelValue"),i=t.computed(()=>s.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),f=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),p=()=>{l("update:modelValue",!s.value)};return()=>{const u=[];if(i.value){const b={class:c.value},d=t.h("span",b,[i.value]);u.push(d)}const h={class:f.value},k=o.icon??a,y=t.h(k,h);return u.push(y),o.textPosition==="right"&&u.reverse(),t.h("view",{class:r.value,onClick:p},u)}}}}const{componentName:Mp,create:Lp,scope:zp}=Q("more-button"),bl=Lp(Pp(Mp,zp,ne.RectUp)),Fp={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}},Rp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Op(e,n,a){return{props:{...Fp},setup(o,{attrs:l,slots:r}){const{toLocaleRefs:s}=se.useFoxI18n(n),i=s(o,["confirmText","cancelText"]),c=e,f=t.ref(!0),p=S=>{f.value=S},u=S=>{if(typeof o.unmount=="function")try{o.unmount()}catch(N){console.error(N)}if(typeof o.callback=="function")try{o.callback(S)}catch(N){console.error(N)}},h=()=>{u("confirm")},k=()=>{u("cancel")},y=()=>{o.closeOnClickOverlay!==!1&&u("close")},v=(S,N)=>Rp(S)?(N.src=S,t.h("img",N)):typeof S=="string"?(Array.isArray(N.class)?N.class.push(S):N.class&&typeof N.class=="object"?N[`${S}`]=!0:typeof N.class=="string"?N.class=`${N.class}, ${S}`:N.class=S,t.h(o.tag,N)):t.h(S,N),b=()=>{const S=[];if(o.icon){const C={class:[`${c}__header-icon`]},w=v(o.icon,C);S.push(w)}if(o.title){const C=t.h("view",{class:`${c}__header-title`},[o.title]);S.push(C)}if(o.showClose&&o.closeIcon){const C={class:[`${c}__header-close-icon`],onClick:y},w=v(o.closeIcon,C);S.push(w)}const N={class:[`${c}__header`]};return t.h("view",N,S)},d=(S,N)=>{const C=[];if(N){const B={class:`${c}__group-title`},V=t.h("view",B,[N]);C.push(V)}if(S){const B=[];Array.isArray(S)||(S=[S]);for(let V of S){const T={class:`${c}__group-row`,innerHTML:V},$=t.h("view",T);B.push($)}if(B.length>0){const V={class:`${c}__group-rows`},T=t.h("view",V,B);C.push(T)}}if(C.length===0)return null;const w={class:`${c}__group`};return t.h("view",w,C)},m=()=>{const S=[];if(typeof o.message=="string")S.push(o.message);else if(Array.isArray(o.message))for(let C of o.message)if(typeof C=="string"){const w=d(C);S.push(w)}else{const w=d(C.content,C.title);S.push(w)}else if(typeof o.message=="function"){const C=o.message();S.push(C)}else{const C=o.message;S.push(C)}const N={class:`${c}__body`};return t.h("view",N,S)},g=()=>{const S=[];if(o.showCancelButton){const C={class:[`${c}__footer-button`],style:{},onClick:k};o.cancelButtonClass&&C.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(C.style,o.cancleButtonStyle);const w=t.h("button",C,[o.cancelButtonText??i.cancelText.value]);S.push(w)}if(o.showConfirmButton){const C={class:[`${c}__footer-button`],style:{},onClick:h};o.confirmButtonClass&&C.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(C.style,o.confirmButtonStyle);const w=t.h("button",C,[o.confirmButtonText??i.confirmText.value]);S.push(w)}if(S.length===0)return null;const N={class:`${c}__footer`};return t.h("view",N,S)};return()=>{const S=[],N=b();N&&S.push(N);const C=m();C&&S.push(C);const w=g();w&&S.push(w);const B={class:{[`${c}`]:!0,[`${c}--${o.type||"info"}`]:!0}},V=t.h("view",B,S),T=[`${c}__popup`];o.popClass&&T.push(o.popClass);const $={};o.width&&($.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&($.height=typeof o.height=="number"?`${o.height}px`:o.height);const I={popClass:T.join(" "),style:$,visible:f.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":p,position:o.position,round:"round",onClickOverlay:y,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,I,{default:()=>V})}}}}const{componentName:Kp,create:Up,scope:Hp}=Q("messagebox"),jp=Up(Op(Kp,Hp,fe)),Wp="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",Yp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%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",Xp="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",Qp="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",Gp=new Rn,Zp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Jp=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-${Gp.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(jp,e);n.appendChild(o),t.render(r,o)},lt={show:(e,n,a,o)=>{const l={...Zp};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=Xp:r==="warning"?l.icon=Qp:r==="error"?l.icon=Wp:l.icon=Yp),e==="alert"?(l.showCancelButton=!1,l.showConfirmButton=!0):e==="confirm"&&(l.showCancelButton=!0,l.showConfirmButton=!0),l.showClose&&!l.closeIcon&&(l.closeIcon=ne.Close),new Promise((s,i)=>{const c=l.callback;l.callback=f=>{if(typeof c=="function")try{c(f)}catch(p){console.error(p)}s({action:f})},Jp(l)})},alert:(e,n,a)=>lt.show("alert",e,n,a),confirm:(e,n,a)=>lt.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=lt.alert,e.config.globalProperties.$confirm=lt.confirm}},_p=(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)},eh=new Rn,th=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),nh=e=>`${e}-${eh.get()}`,oh=Symbol.for("InnerPageScopeKey"),lh=Symbol.for("PageWrapperKey"),ah="FoxLeave",rh="FoxLeaveEnd",sh={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 ih(e,n,a,o){return{props:{...Re,...sh},emits:["update:visible"],setup(l,{attrs:r,slots:s,emit:i}){t.provide(oh,!0);const c={};t.provide(lh,c);const f=C=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),p=()=>{f()},u=e,h=C=>{k.value=C,i("update:visible",C)},k=t.ref(!1),y=(C,w)=>th(C)?(w.src=C,t.h("img",w)):typeof C=="string"?(Array.isArray(w.class)?w.class.push(C):w.class&&typeof w.class=="object"?w[`${C}`]=!0:typeof w.class=="string"?w.class=`${w.class}, ${C}`:w.class=C,t.h(l.tag,w)):t.h(C,w),v=()=>{if(!l.showHeader)return null;const C=[];if(s.header){const B=s.header();C.push(B)}else if(l.title){const B=t.h("view",{class:`${u}__header-title`},[l.title]);C.push(B)}if(C.length===0)return null;const w={class:[`${u}__header`]};return t.h("view",w,C)},b=()=>{if(!l.showClose)return null;const C={class:[`${u}__close-icon`],onClick:p},w=l.closeIcon??o;return y(w,C)};let d=null;const m=C=>{_p(rh,{},d)},g=nh(e),S=()=>{h(!0)},N=()=>{if(!d)return;const C=d.querySelector(".fox-overlay");C&&(C.classList.add("overlay-fade-leave-active"),C.classList.add("overlay-fade-leave-to"));const w=d.querySelector(".fox-popup");w&&(w.classList.add(`fox-popup-slide-${l.position}-leave-active`),w.classList.add(`fox-popup-slide-${l.position}-leave-to`),w.addEventListener("animationend",m,{once:!0}),w.addEventListener("transitionend",m,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{d=document.querySelector(`.${g}`),d?.addEventListener(ah,N,{once:!0}),S()}),()=>{const C=[],w=v();w&&C.push(w);const B=b();B&&C.push(B);const V=s.default?s.default():[];Reflect.apply([].push,C,V);const T={[`${u}`]:!0};l.mode&&(T[`${u}--${l.mode}`]=!0);const $={class:T},I=t.h("view",$,C),F=[`${u}__popup`,g];l.popClass&&F.push(l.popClass),l.position&&F.push(`${u}__popup--${l.position}`);const A={};l.width&&(A.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(A.height=typeof l.height=="number"?`${l.height}px`:l.height);const M={...be(l,Re),popClass:F.join(" "),style:A,visible:k.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":h},x=t.h(a,M,{default:()=>I});return t.h("div",{class:[`${u}__root`,g]},[x])}}}}const{componentName:ch,create:uh,scope:dh}=Q("popup-wrapper"),kl=uh(ih(ch,dh,fe,ne.Close)),fh={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function mh(e,n,a,o){return{props:{...fh},emits:["update:visible"],setup(l,{emit:r,slots:s}){const i=c=>{r("update:visible",c)};return()=>{const c=[`${e}__popup`];l.popClass&&c.push(l.popClass);const f={popClass:c,style:l.popStyle??{},position:"top",zIndex:l.zIndex,closeOnClickOverlay:l.closeOnClickOverlay,teleportDisable:!0,visible:l.visible,"onUpdate:visible":i},p=t.h(a,f,s),u={class:`${e}`};return t.h("view",u,[p])}}}}const{componentName:ph,create:hh,scope:gh}=Q("dropdown"),Sl=hh(mh(ph,gh,fe));function yh(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 vh={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 bh(e,n,a,o=!1){return{props:{...vh},emits:["click"],setup(l,r){const s=t.ref(null),i=t.computed(()=>{const g={[`${e}`]:!0,"is-truncated":l.truncated};return l.type&&(g[`${e}--${l.type??"default"}`]=!0),l.size&&(g[`${e}--${l.size}`]=!0),g}),c=t.computed(()=>{const g={},S=l.textColor??l.color;return S&&(g.color=S),g}),f=(g,S)=>{let N=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const C=l.highlightFilter;if(g.indexOf(C)!==-1){const B=g.replace(new RegExp(C,"g"),`<span>${C}</span>`);S.innerHTML=B,S.class["is-highlight"]=!0,N=t.h(l.tag,S)}}else if(typeof l.highlightFilter=="function"){const C=l.highlightFilter(g);C&&(S.innerHTML=C,S.class["is-highlight"]=!0,N=t.h(l.tag,S))}return N},p=g=>{r.emit("click",g)};let u="";const h=()=>{const g=s.value;if(!g)return;const S=g.clientWidth;yh(g,N=>{const C=g.innerHTML??"";de(C)||N<S||(u?a?.show(g,C,{type:"text",id:u,showArrow:l.showArrow},!0):u=a?.show(g,C,{type:"text",showArrow:l.showArrow},!0)??"")})},k=()=>{u&&a?.hide(u)};let y=null;const v=g=>{y||(y=setTimeout(()=>{h(),y=null},l.showAfter??0))},b=g=>{y&&(clearTimeout(y),y=null),setTimeout(()=>{k()},l.hideAfter??0)},d=()=>{const g=s.value;g&&(g.addEventListener("mouseover",v),g.addEventListener("mouseleave",b))},m=()=>{const g=s.value;g&&(g.removeEventListener("mouseover",v),g.removeEventListener("mouseleave",b))};return t.onMounted(()=>{!he(l.showOverflowTooltip)||!a||d()}),t.onBeforeUnmount(()=>{!he(l.showOverflowTooltip)||!a||m()}),()=>{const g={onClick:p,class:i.value,style:c.value,ref:s};let S=null;if(he(l.numberFormat)&&typeof r.slots.default=="function"){const B=r.slots.default();if(Array.isArray(B)&&B.length===1){const V=B[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const T=me(l.digits),$=me(l.decimalLength),I=he(l.autoPadding);let F=`${B[0].children}`,A=F.split("").reverse().join("");A=Cn(A,$,I,T,l.separator),F=A.split("").reverse().join(""),l.highlightFilter!==void 0&&(S=f(F,g)),S||(g.innerHTML=F,S=t.h(l.tag,g))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const B=r.slots.default();if(Array.isArray(B)&&B.length===1){const V=B[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const T=`${B[0].children}`;S=f(T,g),S||(g.innerHTML=T,S=t.h(l.tag,g))}}}S||(S=t.h(l.tag,g,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return S;let C=null;if(l.icon){const B={[`${e}__mark-wrap`]:!0};l.type&&(B[`${e}__mark-wrap--${l.type}`]=!0);const V={},T=l.color;T&&(V.color=T);const $={class:B,style:V};C=t.h("view",$,t.h(l.icon))}else if(r.slots.mark){const B={[`${e}__mark-wrap`]:!0};l.type&&(B[`${e}__mark-wrap--${l.type}`]=!0);const V={},T=l.color;T&&(V.color=T);const $={class:B,style:V};C=t.h("view",$,{default:r.slots.mark})}else{const B={[`${e}__mark`]:!0};l.type&&(B[`${e}__mark--${l.type??"default"}`]=!0);const V={},T=l.color;T&&(V["background-color"]=T);const $={class:B,style:V};C=t.h("view",$)}const w={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",w,[C,S])}}}}const{componentName:kh,create:Sh,scope:Ch}=Q("text"),Cl=Sh(bh(kh,Ch,$t,!1));function wh(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[l]){let c=n;for(let f=0;c&&f<r.length;f++){let p=r[f],u=c.find(h=>h[o]===p);if(!u)break;s.push(u[a])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let f=n[c],p=r[c];const u=f.find(h=>h[o]===p);if(!u)break;s.push(u[a])}else{let c=n;for(let f=0;c&&f<r.length;f++){let p=r[f],u=c.find(h=>h[o]===p);if(!u)break;s.push(u[a]),c=u[l]}}return s}class Nh{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(xe(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function Bh(){const e=t.getCurrentInstance();return new Nh(e.proxy)}const Vh={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Ah(e,n,a=!1){return{props:{...Vh},setup(o,{attrs:l,slots:r}){const s=Bh(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([p,u])=>{i.value=await s.load(o.sourceType,p,u)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let p=wh(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return p.length==0?o.emptyText??"":p.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${p[0]}`:p[0]:p.join(o.separator)}),f=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const p={...l};return r.default?r.default({text:c.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===c.value?t.h(o.emptyTag??"span",{...l,class:o.emptyClass},c.value):t.h(f,p,{default:()=>c.value}):t.h(f,p,c.value)}}}}const{componentName:Th,create:$h,scope:Eh}=Q("mapping"),wl=$h(Ah(Th,Eh,!1));function xh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return _r(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:kV,create:Dh,scope:SV}=Q("domain-provider"),Nl=Dh(xh()),Ih={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 qh(e,n){return{inheritAttrs:!1,props:Ih,setup(a,{slots:o}){if(ct&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const s=(h,k)=>{if(p===null){r.set(h,{visible:null,callback:k});return}l.has(h)&&p.unobserve(h),l.set(h,{visible:null,callback:k}),p.observe(h)},i=h=>{if(p===null){r.delete(h);return}l.has(h)&&(l.delete(h),p.unobserve(h))};let c=a.initialVisibleObserverSize;Gi({acquire:()=>{const h=c>0;return c--,h},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:s,unobserve:i});let p=null;const u=(h,k,y)=>{p=new IntersectionObserver(v=>{for(let b of v){let d=!1;b.intersectionRatio>0&&(d=!0);const m=l.get(b.target);if(m)try{if(a.loadPolicy==="lazy"&&!d&&m.visible!==null)return;m.visible=d,m.callback(d)}catch(g){console.error(g)}}},{root:h,rootMargin:k,threshold:y}),r.forEach((v,b)=>{l.set(b,v),p?.observe(b)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([h,k])=>{if(k||!h||p)return;let y=null;typeof h=="string"?y=document.querySelector(h):y=h,y&&u(y,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:CV,create:Ph,scope:wV}=Q("rolling-provider"),Bl=Ph(qh()),{componentName:Mh,create:Lh}=Q("cell"),zh=Lh({components:{Right:ne.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.computed(()=>{const r=Mh;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}}}),Fh={key:0,class:"fox-cell__icon"},Rh={key:1,class:"fox-cell__title"},Oh={class:"title"},Kh={class:"fox-cell__title-desc"};function Uh(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",Fh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Rh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Oh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Kh,t.toDisplayString(e.subTitle),1)],64)):t.renderSlot(e.$slots,"title",{key:1},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),7)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"link",{},()=>[e.isLink?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const Vl=ee(zh,[["render",Uh]]),{componentName:Hh,create:jh}=Q("cell-group"),Wh=jh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Hh]:!0}))}}}),Yh={key:1,class:"fox-cell-group__title"},Xh={key:3,class:"fox-cell-group__desc"},Qh={class:"fox-cell-group__wrap"};function Gh(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",Yh,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",Xh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Qh,[t.renderSlot(e.$slots,"default")])],2)}const Al=ee(Wh,[["render",Gh]]),{componentName:Zh,create:Jh}=Q("image"),_h=Jh({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:ne.Image,ImageError:ne.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),o=t.computed(()=>{const k=Zh;return{[k]:!0,[`${k}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const k={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(y=>{y.forEach(v=>{v.isIntersecting&&(r.value=!0,l.value.disconnect())})},k),s.value&&l.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let k={};return e.width&&(k.width=ge(e.width)),e.height&&(k.height=ge(e.height)),e.radius!==void 0&&e.radius!==null&&(k.overflow="hidden",k.borderRadius=ge(e.radius)),k}),f=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,k=>{a.isError=!1,a.loading=!0});const p=()=>{a.loading=!1,n("load")},u=()=>{a.isError=!0,a.loading=!1,n("error")},h=k=>{n("click",k)};return{...t.toRefs(a),imageClick:h,classes:o,styles:f,stylebox:c,error:u,load:p,show:r,imgRef:s}}}),eg=["src","date-src","alt"],tg={key:0,class:"fox-img-loading"},ng={key:1,class:"fox-img-error"};function og(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,eg),e.loading?(t.openBlock(),t.createElementBlock("div",tg,[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",ng,[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=ee(_h,[["render",og]]),{create:lg}=Q("layout"),$l=lg({}),{componentName:ag,create:rg}=Q("col"),sg=rg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=ag,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 ig(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 El=ee(sg,[["render",ig]]),{componentName:cg,create:ug}=Q("row"),dg=ug({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=cg;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 mn(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=Be(e),n=Be(n),[e,n]=Oo(Be(e),Be(n)),a==1&&(o==1?e=lo(e):n=lo(n));let l=xr(e,n);return a?a==2?"-"+Be(l):e.length<l.length?Be(l.substring(1)):"-"+Be(lo(l)):Be(l)}function lo(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 xr(n,r)}function Be(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 Oo(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 xr(e,n){[e,n]=Oo(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 ke=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(ke||{});function Ut(e,n=0,a=ke.HALF_EVEN){if(a===ke.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let 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=Ut(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,za(l[1],r,o,a)?(o?"-":"")+ao(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&&za(i,s,o,a)&&(s=ao(s),s.length>n)?(o?"-":"")+ao(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function za(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===ke.DOWN||!a&&o===ke.FLOOR||a&&o===ke.CEILING)return!1;if(o===ke.UP||a&&o===ke.FLOOR||!a&&o===ke.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 ke.HALF_DOWN:return!1;case ke.HALF_UP:return!0;case ke.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function ao(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 go(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 u=e;e=n,n=u}if(n=="0")return"0";let s=n.length,i=0,c=[],d=s-1,m="";for(let u=0;u<s;u++)c[u]=e.length-1;for(let u=0;u<2*e.length;u++){let g=0;for(let k=n.length-1;k>=d&&k>=0;k--)c[k]>-1&&c[k]<e.length&&(g+=parseInt(e[c[k]--])*parseInt(n[k]));g+=i,i=Math.floor(g/10),m=g%10+m,d--}return m=xt(Xs(m,r)),a==1&&(m="-"+m),m}function Xs(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 yo(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=Be(n.replace(".","")),l>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Be(e+new Array(l+1).join("0"));else if(l>d)e=e.replace(".",""),e=Be(e+new Array(l-d+1).join("0"));else if(l<d){e=e.replace(".","");let m=e.length-d+l;e=Be(e.substring(0,m)+"."+e.substring(m))}else l==d&&(e=Be(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 d=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(d+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=d,i="0."+new Array(d).join("0")}for(a=a+2;r<=a;){let d=0;for(;parseInt(c)>=parseInt(n);)c=mn(c,"-"+n),d++;i+=d,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?"-":"")+Be(Ut(i,a-2))}function vo(e,n){return e=e.toString(),n=n.toString(),n=bo(n),mn(e,n)}function bo(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ra(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Fa(e),Fa(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=vo(e,go(n,Ut(yo(e,n),0,ke.FLOOR)));return a+o}function Fa(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Oa(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]=Oo(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?a?-1:1:a?1:-1;return 0}class ie{value;static RoundingModes=ke;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,o]=n.split(/[eE]/);a=Be(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+Be(a.substring(0,o))+(a.length>o?"."+a.substring(o):""):n=l+"0."+new Array(-o+1).join("0")+a}return n}constructor(n="0"){this.value=ie.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,o){if(!(a||o))a=3,o=",";else if(!(a&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ie.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var s="",i=r;i>0;)i<a?(a=i,i=0):i-=a,s=n.substring(i,i+a)+(i<r-a&&i>=0?o:"")+s;return(l?"-":"")+s+n.substring(r)}getPrettyValue(n,a){return ie.getPrettyValue(this.value,n,a)}static round(n,a=0,o=ke.HALF_EVEN){if(n=ie.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return Ut(n,a,o)}round(n=0,a=ke.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ie(Ut(this.value,n,a))}static floor(n){return n=ie.validate(n),n.indexOf(".")===-1?n:ie.round(n,0,ke.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ie(this.value):new ie(this.value).round(0,ke.FLOOR)}static ceil(n){return n=ie.validate(n),n.indexOf(".")===-1?n:ie.round(n,0,ke.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ie(this.value):new ie(this.value).round(0,ke.CEILING)}static add(n,a){return n=ie.validate(n),a=ie.validate(a),mn(n,a)}add(n){return new ie(mn(this.value,n.getValue()))}static subtract(n,a){return n=ie.validate(n),a=ie.validate(a),vo(n,a)}subtract(n){return new ie(vo(this.value,n.getValue()))}static multiply(n,a){return n=ie.validate(n),a=ie.validate(a),go(n,a)}multiply(n){return new ie(go(this.value,n.getValue()))}static divide(n,a,o){return n=ie.validate(n),a=ie.validate(a),yo(n,a,o)}divide(n,a){return new ie(yo(this.value,n.getValue(),a))}static modulus(n,a){return n=ie.validate(n),a=ie.validate(a),Ra(n,a)}modulus(n){return new ie(Ra(this.value,n.getValue()))}static compareTo(n,a){return n=ie.validate(n),a=ie.validate(a),Oa(n,a)}compareTo(n){return Oa(this.value,n.getValue())}static negate(n){return n=ie.validate(n),bo(n)}negate(){return new ie(bo(this.value))}}function Dr(e,n){return ie.multiply(`${e}`,`${n}`)}function Ko(e,n,a=8){return ie.divide(`${e}`,`${n}`,a)}function ko(e,n){return e=`${e}`,n=`${n}`,ie.compareTo(e,n)}function Ir(e){return ie.negate(e)}function wn(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="",d=r.indexOf(".");d!=-1&&(i=r.substring(0,d),c=r.substring(d+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 u="",g=i.split("").reverse();for(let k=0;k<g.length;k++)u+=g[k]+((k+1)%o==0&&k+1!=g.length?l:"");c.length==0?m=`${s}${u.split("").reverse().join("")}`:m=`${s}${u.split("").reverse().join("")}.${c}`}else c.length==0?m=`${s}${i}`:m=`${s}${i}.${c}`;return m}function qr(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const ct=typeof window<"u",Ke=Xe;function Pr(e){return e==null}const Nn=Array.isArray,Qs=e=>Bn(e)==="[object Map]",Gs=e=>Bn(e)==="[object Set]",He=e=>e instanceof Date,pn=e=>typeof e=="function",Mr=e=>typeof e=="string",Zs=e=>typeof e=="symbol",xe=e=>e!==null&&typeof e=="object",yt=e=>xe(e)&&pn(e.then)&&pn(e.catch),Lr=Object.prototype.toString,Bn=e=>Lr.call(e),So=e=>Bn(e)==="[object Object]",zr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Js(e){return e.__esModule||zr&&e[Symbol.toStringTag]==="Module"}const _s=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function at(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,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 d;Array.isArray(c)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},n[s]=at(l,d,c)}else c!==void 0&&(n[s]=c)}}return n}function Co(e,n,a=!1){if(!a)at(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!So(s))continue;r=Co(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!So(s))continue;r=Co(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const ro=_s?Promise.resolve():null;function ei(e,...n){ro!==null?n&&n.length>0?ro.then(()=>{e(n)}):ro.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ye(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function me(e){return typeof e=="number"?e:Number(e)}const ti={"[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 rt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):ti[a]||"object"}function An(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Rr(e){return e&&typeof e=="object"&&"setInterval"in e}function Fr(e){let n=!!e&&"length"in e&&e.length,a=rt(e);return a==="function"||Rr(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 ni(e,n=[]){let a=n;return e!=null&&(Fr(Object(e))?Or(a,typeof e=="string"?[e]:e):a.push(e)),a}function Pe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=rt(e),o=rt(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],d=n[i];if(!Pe(c,d))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(!Pe(r,s))return!1}return!0}return!1}function Kr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Ur(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 Hr(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 jr(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 Ka(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 wo(e,n=!0,a=!0){n?e=Ka(e,".",/\./g):e=e.replace(/\./g,""),a?e=Ka(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function oi(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Pe(e,a))return!0}):n.indexOf(e)}function li(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Pe(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function ve(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function be(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function Vt(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 Wr=(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 No(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const tt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Ue=(e,n,a)=>Math.min(Math.max(e,n),a),Se=Symbol.for("BroadcastKey");class Uo{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="*"):Kr(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 Vn(e,n,a,o){const l=new Uo(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function ai(e,n,a){const o=a;if(o[Se])return o[Se];const l=t.inject(Se,null),r=new Uo(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[Se]=r,t.provide(Se,r),t.onUnmounted(()=>{r.destroy(),o[Se]=void 0}),r}function zt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Se]??t.inject(Se,null):t.inject(Se,null)}const ot=e=>e.default??e;class ri{error(n,a){const o=a,l=a||t.hasInjectionContext()?zt(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()?zt(n):null;o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=n||t.hasInjectionContext()?zt(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()?zt(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 Ft=new ri;function si(e){Ft=e}function ii(e){Ft?Object.assign(Ft,e):Ft=e}function ci(e,n){ot(nt).setValidator(e,n)}function ui(e){ot(nt).deleteValidator(e)}let Yr=["blur","clear"];function di(e){Yr=e}function Xr(){return Yr}let Qr=["focus","change","setValue"];function fi(e){Qr=e}function Gr(){return Qr}function mi(e){ot(nt).messages(e)}function Dt(...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 tn(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 Me=Symbol("ValidateSchemaKey");class Zr{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=tn(Dt(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=tn(o);const l=Dt(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=Ft;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?ot(nt).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?ot(nt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return ot(nt).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=Dt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=tn(n):this.rules=tn([n]);const o=Dt(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=Dt(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=ot(nt),c=new i(l),d=this.proxy??s;return c.validate(s,{context:d}).then(u=>{if(u.pass)this.success();else{let g="error";Array.isArray(u.errors)&&u.errors.length>0&&(g=u.errors[0].message??g,u.errors=[u.errors[0]],u.errors[0].ref=d),this.error(g)}return u}).catch(u=>{const g=u.message??`${u}`;return this.error(g),u})}}return Promise.resolve({pass:!0})}}function Tn(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 Zr(n,a,e)}const hn=Symbol.for("EventEmitterKey");class Jr{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 vt(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function gn(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function pi(e,n){const a=vt((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function hi(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function Ho(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 Ee=Symbol("DomainKey"),ft=Symbol("DataItemsKey");class $n{_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 gi=new $n;function ht(){return gi}function je(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ee]??t.inject(Ee,null):t.inject(Ee,null)}const so=Symbol("OriginalDateKey");function jo(e,n,a=[],o){const l=t.getCurrentInstance();let r=l?.proxy,s=t.inject(Ee,null);s===null&&(s=ht());const i=e||n.prop||n.name;let c=new $n(i);c.parent=s;const d=y=>{r[so]||g(y),c?.set("modelValue",y)},m=()=>c?.getForSelf("modelValue")??null,u=()=>r[so]??null,g=y=>{const b={};at(!0,b,t.toRaw(y)),r[so]=b};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 k=(y,b)=>{c?.set(y,b)},v=y=>c?.getForSelf(y)??null;if(r[Ee]=c,t.provide(Ee,c),l!==null){const y=t.inject(Se,null),b=Vn(r,y,i,o);c.broadcast=b,r[Se]=b,t.provide(Se,b),r.broadcast=(h,S,...N)=>Reflect.apply(b.emit,b,[h,S,...N]);const f=t.inject(Me,null),p=Tn(r,f,{componentName:""});c.validateSchema=p,r[Me]=p,t.provide(Me,p),r[ft]=new Map,r.validate=(h=!0)=>{const S=[];let N=null;const C={deep:!1};if(h===!0)N={name:"*"};else if(Array.isArray(h)&&h.length>0){const w=h;N={name:B=>B?w.indexOf(B)!==-1:!1}}else if(h!=null&&typeof h=="object"){const w=h;if(Object.assign(C,w),Array.isArray(w.include)&&w.include.length>0){const B=w.include;N={name:A=>A?B.indexOf(A)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const B=w.exclude;N={name:A=>A?B.indexOf(A)===-1:!1}}else N={name:"*"}}if(N){const w=b?.emitToChildren(N,"validate",C);w&&Reflect.apply([].push,S,w)}return S.length==1?S[0]:S.length>1?Promise.all(S).then(w=>{let B=[];return w.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(B=[...B,...A.errors])}),B.length>0?{pass:!1,errors:B}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(h,S=!0,N=!1)=>{if(N===!0){Reflect.ownKeys(h).forEach(w=>{let B=String(w);const A={componentName:"",fieldName:B,pureDataValidate:!0};if(c){const T=ts(c,B,A,b,p);r[ft].set(B,T);const $=h[B];$&&T.validateSchema.setRule($)}});return}if(S){const C=Reflect.ownKeys(h),w={name:B=>C.includes(B)};b?.emitToChildren(w,"setNameValidateRules",h,!1)}},r.clearValidate=(h=!0)=>{let S=null;if(h===!0)S={name:"*"};else if(Array.isArray(h)&&h.length>0){const N=h;S={name:C=>C?N.indexOf(C)!==-1:!1}}else if(h!=null&&typeof h=="object"){const N=h;if(Array.isArray(N.include)&&N.include.length>0){const C=N.include;S={name:w=>w?C.indexOf(w)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const C=N.exclude;S={name:w=>w?C.indexOf(w)===-1:!1}}else S={name:"*"}}S&&b?.emitToChildren(S,"clearValidate",!1)},r.resetFields=h=>{const S=m();if(!S)return;const N={};if(at(!0,N,u()??{}),Array.isArray(h))h.forEach(C=>{S[C]=N[C]});else if(h&&Array.isArray(h.include))(h.include??[]).forEach(w=>{S[w]=N[w]});else if(h&&Array.isArray(h.exclude)){let C=h.exclude??[];Reflect.ownKeys(N).forEach(w=>{C.includes(w)||(S[w]=N[w])})}else Object.assign(S,N);r.clearValidate(h)},r.setModelValue=(h,S)=>{!S||S===i?d(h):b?.emitToChildren({name:S},"setModelValue",h)},r.getModelValue=()=>m(),r.setDomainProperty=(h,S)=>{k(h,S)},r.getDomainProperty=h=>v(h)}return t.onUnmounted(function(){c?.validateSchema&&(c.validateSchema.destroy(),r[Me]=void 0,t.provide(Me,null)),c?.broadcast&&(c?.broadcast?.destroy(),r[Se]=void 0,t.provide(Se,null)),c?.destroy(),r[Ee]=void 0,t.provide(Ee,null),r[ft]&&(r[ft].clear(),r[ft]=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 _r(e,n,a=[]){let l=t.getCurrentInstance()?.proxy,r=t.inject(Ee,null);r===null&&(r=ht());const s=e||n.prop||n.name;let i=new $n(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[Ee]=i,t.provide(Ee,i),t.onUnmounted(()=>{i?.destroy(),l[Ee]=void 0,t.provide(Ee,null),i=null,l=null}),i}function es(e,n,a){const l=je(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Ae(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(Se,null);let i=Vn(l,s,r,a);l[Se]=i,t.provide(Se,i),l.broadcast=(v,y,...b)=>i?Reflect.apply(i.emit,i,[v,y,...b]):null;const c=t.inject(Me,null);e.fieldName=e.fieldName??r;let d=Tn(l,c,e);l[Me]=d,t.provide(Me,d),es(l,d,r),l.validate=(v=null)=>{if(!d)return Promise.resolve({pass:!0});const y=[];let b=!1,f=!1;if(Array.isArray(v)&&v.indexOf(r)!==-1)f=!0,b=!0;else if(v&&typeof v=="object"){const p=v,h=p.ignoreDisabled??!0,S=p.ignoreReadonly??!0,N=p.ignoreHidden??!0;h===!0&&e.disabled===!0||S===!0&&e.readonly===!0||N===!0&&An(l.$el)?f=!1:(Array.isArray(p.include)&&p.include.indexOf(r)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(r),f=!0),b=p.deep??!1}else typeof v=="boolean"&&(b=v),f=!0;if(f){const p=d?.validate();y.push(p)}if(b){let p=null;const h={deep:!1};if(v===!0)p={name:"*"};else if(Array.isArray(v)&&v.length>0){const S=v;p={name:N=>N?S.indexOf(N)!==-1:!1}}else if(v!=null&&typeof v=="object"){const S=v;if(Object.assign(h,S),Array.isArray(S.include)&&S.include.length>0){const N=S.include;p={name:C=>C?N.indexOf(C)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const N=S.exclude;p={name:C=>C?N.indexOf(C)===-1:!1}}else p={name:"*"}}if(p&&i){const S=i.emitToChildren(p,"validate",h);Reflect.apply([].push,y,S)}}return y.length==1?y[0]:y.length>1?Promise.all(y).then(p=>{let h=[];return p.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(h=[...h,...S.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=v=>d?.setRule(v),l.setNameValidateRules=(v,y=!1)=>{const b=v[r];if(b&&d?.setRule(b),y&&i){const f={name:p=>Reflect.ownKeys(v).includes(p)};i.emitToChildren(f,"setNameValidateRules",v,!1)}},l.clearValidate=(v=null)=>{(!Array.isArray(v)||v.indexOf(n??"")!==-1)&&d?.clear();let y=null;if(v===!0)y={name:"*"};else if(Array.isArray(v)&&v.length>0){const b=v;y={name:f=>f?b.indexOf(f)!==-1:!1}}else if(v!=null&&typeof v=="object"){const b=v;if(Array.isArray(b.include)&&b.include.length>0){const f=b.include;y={name:p=>p?f.indexOf(p)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const f=b.exclude;y={name:p=>p?f.indexOf(p)===-1:!1}}else y={name:"*"}}y&&i&&i.emitToChildren(y,"clearValidate",!1)};let m=new Jr(l);l[hn]=m;const u=vt((v="validate")=>{d&&(v==="reset"?d.clear():d.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Xr()).forEach(v=>{m&&m.on(v,y=>{u("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Gr()).forEach(v=>{m&&m.on(v,y=>{u("reset")})}),t.onUnmounted(()=>{i?.destroy(),l[Se]=void 0,t.provide(Se,null),i=null,d?.destroy(),l[Me]=void 0,t.provide(Me,null),d=null,m?.destroy(),l[hn]=void 0,m=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:i,validateSchema:d,emitEvent:(v,...y)=>{m&&Reflect.apply(m.emit,m,[v,...y])},onEvent:(v,y)=>{m&&Reflect.apply(m.on,m,[y])},offEvent:(v,y)=>{m&&Reflect.apply(m.off,m,[y])}}}function ts(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=Tn({},l,a);r.validate=(m=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const u=[];let g=!1,k=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)k=!0,g=!0;else if(m&&typeof m=="object"){const v=m;Array.isArray(v.include)&&v.include.indexOf(s)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(s),k=!0,g=v.deep??!1}else typeof m=="boolean"&&(g=m),k=!0;if(k&&c){const v=c.validate();u.push(v)}if(g){let v=null;const y={deep:!1};if(m===!0)v={name:"*"};else if(Array.isArray(m)&&m.length>0){const b=m;v={name:f=>f?b.indexOf(f)!==-1:!1}}else if(m!=null&&typeof m=="object"){const b=m;if(Object.assign(y,b),Array.isArray(b.include)&&b.include.length>0){const f=b.include;v={name:p=>p?f.indexOf(p)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const f=b.exclude;v={name:p=>p?f.indexOf(p)===-1:!1}}else v={name:"*"}}if(v&&d){const b=d.emitToChildren(v,"validate",y);Reflect.apply([].push,u,b)}}return u.length==1?u[0]:u.length>1?Promise.all(u).then(v=>{let y=[];return v.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(y=[...y,...b.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>c?.setRule(m),r.setNameValidateRules=m=>{const u=m[s];u&&c?.setRule(u)};let d=Vn(null,o,s,r);return t.onUnmounted(()=>{c=null,d=null}),{broadcast:d,validateSchema:c}}function Tt(){let n=t.getCurrentInstance()?.proxy,a=new Jr(n);return n[hn]=a,t.onUnmounted(()=>{a?.destroy(),n[hn]=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 he=e=>e?`${de(e)}px`:"";function de(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(ct){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return l*=r,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))*n;const o=Number(e);return isNaN(o)?0:o}const Qe="PageStateKey";function Re(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=de(e.top)),e.left!==null&&e.left!==void 0&&(n.left=de(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=de(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=de(e.right))),n}function Bo(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=de(a.headerHeight??n.headerHeight??-1),e.headerPadding=Re(a.headerPadding??n.headerPadding),e.footerHeight=de(a.footerHeight??n.footerHeight??-1),e.footerPadding=Re(a.footerPadding??n.footerPadding),e.contentPadding=Re(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=de(c,r):e.height=de(r)-de(s,r)-de(i,r),e.width=de(a.width??n.width??0,l)}}function ns(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=de(l.top),o.safeAreaBottom=de(l.bottom),o.safeAreaLeft=de(l.left),o.safeAreaRight=de(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,d=e.get("footerBarHeight")??0;Bo(o,r,n,!0,s,i,c,d);const m=t.reactive(o),u=e.getForParent(Qe);u&&(o.height=yn(e,u),o.width=vn(e,u),t.watch([()=>yn(e,u),()=>vn(e,u)],([k,v])=>{m.height=k,m.width=v}));const g=!u;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([k,v,y=-1,b=-1,f=0,p=0])=>{Bo(m,v,n,g,y,b,f,p)}),e.set(Qe,m),m}function En(e){return e.get(Qe)}function xn(e,n){if(n=n??e.get(Qe),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function Dn(e,n){if(n=n??e.get(Qe),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function yn(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=xn(e,n),o=Dn(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function vn(e,n){return n=n??e.get(Qe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function yi(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function vi(e){return!!e.getForParent(Qe)}var bn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(bn||{});function nn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ve(e,n,a=1,o){const l=je();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let i=r.length-1;i>=0;i--){const c=r[i];if(nn(c,o))return c}const s=e.value;return nn(s,o)?s:null}):t.computed(()=>{const r=e.value;if(nn(r,o))return r;const s=l.getAll(n);for(let i=0;i<s.length;i++){const c=s[i];if(nn(c,o))return c}return null})}function Te(e){return Ve(e,"readonly",1)}function $e(e){return Ve(e,"disabled",1)}function qe(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 os=new Map,kn=new Map;let Ao=null;function bi(e){Ao=e}function ls(e,n,a){if(a){let o=kn.get(a);o||(o=new Map,kn.set(a,o)),o.set(e,n)}else os.set(e,n)}function Je(e,n,a){!a&&Ao&&(a=Ao(e)??void 0);let o=null;if(a){let l=kn.get(a);l&&(o=l.get(n))}return o||(o=os.get(n)),o}function ki(e,n){for(let a in e){const o=e[a];ls(a,o,n)}}function Si(e){kn.delete(e)}function Ci(){return{top:0,left:0,bottom:0,right:0}}function wi(){if(ct){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 s=Ni(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=gn(()=>{const i={...a},c=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=d,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=at({},Ci(),n.safeAreaInset),s=wi(),i=at({},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){bi(n)}setAPI(n,a,o){ls(n,a,o)}getAPI(n,a,o){return Je(n,a,o)}batchSetAPI(n,a){ki(n,a)}clearScopeAPI(n){Si(n)}getRootDomain(){return ht()}}function Q(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=o=>{o.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}const Ai=(e,n)=>{let a=document.body;const o=e.teleport||"body";o!="body"&&(Mr(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={};pn(n.wrapper)?i=n.wrapper(a,l):i=n.wrapper;const c=t.createApp(i,e),d=n.components;return d&&d.forEach(m=>{c.use(m)}),a.appendChild(l),{instance:c.mount(l),unmount:()=>{c.unmount(),a.removeChild(l)}}},as=(e,n)=>e?t.h(e,n):"";function Ie(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const pe={disabled:{type:[Boolean,String],required:!1,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}},ge={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},rs={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}},ss={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}},is=[];for(const e in ss)is.push(e);const Vi=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}},$i=(e,n)=>({inheritAttrs:!0,props:{...pe,...rs,...Ti},setup(a,{slots:o}){const l=jo(a.name,a),r=t.inject(Vi,!1);if(l){const m=ns(l,a);Ie({getPageContentHeight:()=>yn(l,m),getPageContentWidth:()=>vn(l,m),getPageHeaderHeight:()=>xn(l,m),getPageFooterHeight:()=>Dn(l,m)}),m&&r&&(m.contentHeight="100%")}const s=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),c=t.getCurrentInstance(),d=(m,u=!1)=>{const g=c?.proxy;g&&typeof g.setNameValidateRules=="function"&&g.setNameValidateRules(m,!0,u)};return t.watch([()=>a.rules,()=>a.pureDataRules],([m,u],[g,k])=>{if(m&&g){const v=t.toRaw(g),y=t.toRaw(m),b=y?Reflect.ownKeys(y):[];(v?Reflect.ownKeys(v):[]).forEach(p=>{b.includes(p)||(y[p]=[])}),d(y)}if(u&&k){const v=t.toRaw(k),y=t.toRaw(u),b=y?Reflect.ownKeys(y):[];(v?Reflect.ownKeys(v):[]).forEach(p=>{b.includes(p)||(y[p]=[])}),d(y,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const m=t.toRaw(a.rules);d(m)}if(a.pureDataRules){const m=t.toRaw(a.pureDataRules);d(m,!0)}}),()=>{const m={class:s.value,style:i.value};return t.h("div",m,[o?.default?.()])}}}),{componentName:Ei,create:xi,scope:l2}=Q("page"),Wo=xi($i(Ei));function Yo(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function In(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"),cs={headerbar:{},radio:{},checkbox:{}};function Ii(e){Object.assign(cs,e)}function qn(){return cs}const qi=(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=je(),i=s?En(s):null,c=t.inject(Di,!1),d=qn(),m=e,u=t.computed(()=>{const I={[m]:!0,[`${m}--border`]:l.border,[`${m}--fixed`]:l.fixed};return c||(I[`${m}--safe-area-inset-top`]=l.safeAreaInsetTop),I}),g=t.computed(()=>({[`${m}__inner`]:!0,[`${m}__inner--${l.align}`]:!0})),k=l.height!==null&&l.height!==void 0?de(l.height):null,v=t.computed(()=>{const I={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const R=Re(l.padding??i.headerPadding);return Object.assign(I,R),k&&(i.headerHeight=k),i.headerHeight>0&&(I.height=i.headerHeight),I.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,I.safeAreaTop>0&&(I.top=I.safeAreaTop+(R.top??0),I.height&&I.height>0&&(I.height=I.height+I.safeAreaTop)),I}if(k&&(I.height=k),l.padding){const R=Re(l.padding);Object.assign(I,R)}return I}),y=t.ref(null),b=()=>{if(i&&y.value&&!An(y.value)){if(!o){const I=Yo(y.value);i.headerAllHeight=I.height}return i.headerMounted=!0,!0}return!1};let f=null;t.onMounted(()=>{i&&(Ho(b,50,5,50,!0),window.ResizeObserver&&y.value&&(f=new window.ResizeObserver(()=>{b()}),f.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,f&&(f.disconnect(),f=null))});const p=t.computed(()=>{const I={};return v.value.height!==null&&v.value.height!==void 0&&(I.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(I.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(I.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(I.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(I.paddingBottom=`${v.value.bottom}px`),I}),h=t.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function S(){r.emit("back")}function N(){r.emit("click-title")}function C(){r.emit("click-right")}function w(){r.emit("click-right-text")}const B=()=>{if(!l.leftShow)return null;const I=[];if(r.slots.left)I.push(r.slots.left());else{if(r.slots.leftIcon){const R=t.h("view",{class:"left-icon",onClick:S},[r.slots.leftIcon()]);I.push(R)}else{const R=l.leftIcon??d.headerbar.Left??a,V=t.h("view",{class:"left-icon",onClick:S},[t.h(R)]);I.push(V)}if(l.leftText){const R=t.h("view",{class:"left-text",onClick:S},[l.leftText]);I.push(R)}}return I.length===0?null:t.h("view",{class:"fox-header-bar__left"},I)},A=()=>{if(!l.rightShow)return null;const I=[];if(r.slots.right)I.push(r.slots.right());else{if(l.rightText){const R=t.h("view",{class:"right-text",onClick:w},[l.rightText]);I.push(R)}if(r.slots.rightIcon){const R=t.h("view",{class:"right-icon",onClick:C},[r.slots.rightIcon()]);I.push(R)}else if(l.rightIcon){const R=t.h("view",{class:"right-icon",onClick:C},[t.h(l.rightIcon)]);I.push(R)}}return I.length===0?null:t.h("view",{class:"fox-header-bar__right"},I)},T=()=>{if(!l.titleShow)return null;const I=[],R=r.slots.default?r.slots.default():null;if(R)I.push(R);else{if(l.title){const V=t.h("view",{class:"title-text"},[l.title]);I.push(V)}if(r.slots.titleIcon){const V=t.h("view",{class:"title-icon",onClick:N},[r.slots.titleIcon()]);I.push(V)}else if(l.titleIcon){const V=t.h("view",{class:"title-icon",onClick:N},[t.h(l.titleIcon)]);I.push(V)}}return I.length===0?null:t.h("view",{class:"fox-header-bar__title"},I)},$=()=>{const I=[],R=r.slots.bottom?r.slots.bottom():null;return R&&I.push(R),I.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},I)};return()=>{if(!h.value)return null;const I=[];if(r.slots.all)I.push(r.slots.all());else{const V=[],E=B();E&&V.push(E);const P=T();P&&V.push(P);const x=A();if(x&&V.push(x),V.length>0){const K=t.h("view",{class:g.value},V);I.push(K)}const U=$();U&&I.push(U)}if(I.length===0)return null;const R={class:u.value,style:p.value,ref:y};return t.h("view",R,I)}}}),{componentName:Pi,create:Mi,scope:Li}=Q("header-bar"),Xo=Mi(qi(Pi,Li,ne.Left,!1)),zi=Symbol.for("InnerPageScopeKey");function Ri(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,l){const r=je(),s=r?En(r):null,i=t.inject(zi,!1),c=e,d=t.computed(()=>{const b={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return i||(b[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),b}),m=o.height!==null&&o.height!==void 0?de(o.height):null,u=t.computed(()=>{const b={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const f=Re(o.padding??s.footerPadding);return Object.assign(b,f),m&&(s.footerHeight=m),s.footerHeight>0&&(b.height=s.footerHeight),b.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,b.safeAreaBottom>0&&(b.bottom=b.safeAreaBottom+(f.bottom??0),b.height&&b.height>0&&(b.height=b.height+b.safeAreaBottom)),b}if(m&&(b.height=m),o.padding){const f=Re(o.padding);Object.assign(b,f)}return b}),g=t.ref(null),k=()=>{if(s&&g.value&&!An(g.value)){if(!a){const b=Yo(g.value);s.footerAllHeight=b.height}return s.footerMounted=!0,!0}return!1};let v=null;t.onMounted(()=>{s&&(Ho(k,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{k()}),v.observe(g.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,v&&(v.disconnect(),v=null))});const y=t.computed(()=>{const b={};return u.value.height!==null&&u.value.height!==void 0&&(b.height=he(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(b.paddingTop=he(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(b.paddingLeft=he(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(b.paddingRight=he(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(b.paddingBottom=he(u.value.bottom)),b});return()=>{const b=l.slots.default?l.slots.default():[],f={ref:g,class:d.value,style:y.value};return t.h("view",f,b)}}}}const{componentName:Fi,create:Oi,scope:Ki}=Q("footer-bar"),Qo=Oi(Ri(Fi,Ki,!1));function Ui(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=je(),l=t.computed(()=>({[e]:!0})),r=o?En(o):null,s=t.computed(()=>{const d={};if(o&&r){if(a.padding){const f=Re(a.padding);Object.assign(r.contentPadding,f)}const m=xn(o,r),u=Dn(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:",u),console.debug("[content]padding:",r.contentPadding),d.height=g;let k=(r&&r.contentPadding&&r.contentPadding.top)??-1;(k>=0||m>0)&&(k=k<0?0:k,d.paddingTop=`${m+k}px`);let v=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(v>=0||u>0)&&(v=v<0?0:v,d.paddingBottom=`${u+v}px`);const y=(r&&r.contentPadding&&r.contentPadding.left)??-1;y>=0&&(d.paddingLeft=`${y}px`);const b=(r&&r.contentPadding&&r.contentPadding.right)??-1;return b>=0&&(d.paddingRight=`${b}px`),d}if(a.padding){const m=Re(a.padding);m.left&&(d.paddingLeft=`${m.left}px`),m.top&&(d.paddingTop=`${m.top}px`),m.right&&(d.paddingRight=`${m.right}px`),m.bottom&&(d.paddingBottom=`${m.bottom}px`)}return d}),i=t.ref(null),c=vt(()=>{if(r&&i.value){const d=In(i.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}},0);return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>s.value,()=>l.value],([])=>{c()}),{contentRef:i,classes:l,styles:s}}}}const{componentName:Hi,create:ji,scope:a2}=Q("content"),Wi=ji(Ui(Hi));function Yi(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 ee=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},Go=ee(Wi,[["render",Yi]]),bt="GroupStateKey",us=Symbol.for("GroupScopeKey");function Pn(){return t.inject(us,!1)}function Mn(e=!0){t.provide(us,e)}function Xi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Pr(l)||(e[o]=l)})}function Qi(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Xi(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(bt,r),r}function io(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(bt);if(!c)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),o===-1&&(o=d.gutter??0),r||(r=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const m=de(r),u=de(s);i||(i=d.type??"grid");const g=()=>{const k=n===""||n===-1,v=de(n);let y=me(a);const b=de(o);if(!k){let h=(v-(y-1)*b)/y;for(;u!==-1&&h>u;)y++,h=(v-(y-1)*b)/y;for(;m!==-1&&y>1&&h<m;)y--,h=(v-(y-1)*b)/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!==b&&(p.value.gutter=b,f=!0),p.value.type!==i&&(p.value.type=i,f=!0),f&&t.triggerRef(p)};if(l)g();else{const k=++c.passport;setTimeout(()=>{k===c.passport&&g()},50)}}function Ln(e,n=!1){let a;return n?a=e.getForParent(bt):a=e.get(bt),a.layout}function zn(e,n=!1){let a;return n?a=e.getForParent(bt):a=e.get(bt),a.order}function Ua(e,n=1){if(n==="stretch")return-1;const a=me(n);return a===-1?100:100*a/e}function Rn(e,n,a=1,o=0,l){const r={};let s=0;l?s=de(l):s=Ua(n.column,a),s>0&&(r.width=`${s}%`);const i=Ua(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 Fn(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,d=c+(n.column-c);return e.index=e.index+(d-c),{"grid-column":`${c+1} / -1`}}let l=me(a);if(l===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(l>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=me(o)%n.column;let s=(e.index+r)%n.column,i=s+l;return i>n.column?(s=0,i=s+l,e.index=e.index+(n.column-s)+l):e.index=e.index+r+l,r>0?{"grid-column":`${s+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const ds=Symbol("RollingStateKey");function Gi(e){t.provide(ds,e)}function Zi(){return t.inject(ds,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 Ji(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 _i(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const ec={...pe,...rs,...ss};function tc(e,n,a){return{props:ec,emits:["update:collapse","header-click"],setup(o,l){const r=jo(o.prop??o.name,o,is),s=Qi(r,{type:o.type}),i=Pn();Mn(!0);const c=o.rollingDisplay?Zi():null,d=t.ref(null),m=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),u=t.computed(()=>i&&r?Ln(r,!0).value:null),g=t.getCurrentInstance(),k=(F,H=!1)=>{const Y=g?.proxy;Y&&typeof Y.setNameValidateRules=="function"&&Y.setNameValidateRules(F,!0,H)};t.watch([()=>o.rules,()=>o.pureDataRules],([F,H],[Y,O])=>{if(F&&Y){const G=t.toRaw(Y),oe=t.toRaw(F),le=oe?Reflect.ownKeys(oe):[];(G?Reflect.ownKeys(G):[]).forEach(ce=>{le.includes(ce)||(oe[ce]=[])}),k(oe)}if(H&&O){const G=t.toRaw(O),oe=t.toRaw(H),le=oe?Reflect.ownKeys(oe):[];(G?Reflect.ownKeys(G):[]).forEach(ce=>{le.includes(ce)||(oe[ce]=[])}),k(oe,!0)}},{deep:!0});const v=e,y=t.computed(()=>{const F={};if(F.height=E.value,o.width)o.width!=="auto"&&(F.width=he(o.width));else{const H=i?zn(r,!0):null;if(u.value&&H){if(u.value.type==="grid"){const Y=Fn(H,u.value,o.span,o.offset);Object.assign(F,Y)}else if(u.value.type==="flow"){const Y=Rn(H,u.value,o.span,o.offset,o.width);Object.assign(F,Y)}}}return F}),b=t.computed(()=>{const F=s.layout.value.type;return F==="grid"||F==="flow"?{[`${v}--${F}`]:!0,[`${v}--${F}-justify-${o.justify}`]:!0,[`${v}--${F}-align-${o.align}`]:!0,[`${v}--gutter`]:!0}:{[`${v}--${F}`]:!0,[`${v}--gutter`]:!0}}),f=t.computed(()=>{if(s.layout.value.type==="grid"){let H="";if(o.columnWidth)H=`repeat(auto-fill, ${o.columnWidth})`;else{const Y=_i(B.value,s.layout.value.column,s.layout.value.gutter);H=`repeat(${s.layout.value.column}, ${Y})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":H}}}),p=t.toRef(o,"gutter"),h=t.toRef(o,"column"),S=t.computed(()=>i||m.value?!0:ye(o.isWrap)),N=[],C=F=>{N.push(F)},w=()=>{let F=N.length;N.splice(0,F)},B=t.ref(-1),A=F=>{const H=In(F).width;H>0&&H!==B.value&&(B.value=H)};io(r,B.value,h.value,p.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([B,h,p],([F,H,Y])=>{s.order.index=0,io(r,F,H,Y,!1,o.minItemWidth,o.maxItemWidth,o.type)});const T=t.computed(()=>P.value?o.expandText??"":o.collapseText??""),$=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),I=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),R=t.ref(),V=t.ref(),E=t.computed(()=>x.value||he(o.height)||""),P=t.ref(!1),x=t.ref(""),U=t.ref(!1);let K=-1;const J=(F,H=!0)=>{const Y=R.value;if(Y&&P.value!==F){if(K=K<=0?Ji(Y):K,U.value=!0,H)if(Y.style["will-change"]="height",Y.ontransitionend=function(){Y.ontransitionend=null,this.style["will-change"]="auto",F||(x.value="",U.value=!1)},F){let O=0;o.collapseHeight?O=o.collapseHeight:V.value&&V.value.classList.contains(`${e}__header`)&&(O=V.value.offsetHeight),x.value=`${K}px`,t.nextTick(()=>{x.value=`${O}px`})}else x.value=`${K}px`;else if(F){let O=0;o.collapseHeight?O=o.collapseHeight:V.value&&V.value.classList.contains(`${e}__header`)&&(O=V.value.offsetHeight),x.value=`${O}px`}else U.value=!1,x.value=`${K}px`;P.value=F,l.emit("update:collapse",F)}};t.watch(()=>o.collapse,F=>{J(F)});const _=F=>{l.emit("header-click",F)},j=()=>{q()},q=F=>{F=F??!P.value,J(F)};Ie({toggleCollapse:q,doLayout:()=>{N[0]&&(A(N[0]),io(r,B.value,h.value,p.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let D=null,W=!0;const L=F=>{if(o.rules){const H=t.toRaw(o.rules);k(H)}if(o.pureDataRules){const H=t.toRaw(o.pureDataRules);k(H,!0)}if(ct&&(F&&J(ye(o.collapse),!1),o.autoLayout&&Array.isArray(N)&&N.length>0)){const H=N[0];A(H),window.ResizeObserver&&(D=new window.ResizeObserver(()=>{A(H)}),D.observe(H))}},z=()=>{D?.disconnect(),D=null},X=!m.value||c?.acquire();X&&(d.value=m.value?!0:null),t.onMounted(()=>{if(X&&(L(W),W=!1),m.value&&c){let F=null,H=c.initialHeight;c.observe(R.value,Y=>{if(Y!==d.value)if(Y)d.value=!0,P.value||(x.value=""),F=setTimeout(()=>{F=null,d.value!==!1&&(L(W),W=!1)},100);else{if(F!==null&&clearTimeout(F),d.value=!1,!P.value)if(W)x.value=c.initialHeight;else{let O=Vo(R.value);O<=0?x.value=H:(x.value=`${O}px`,H=x.value)}W||z()}})}}),t.onUnmounted(()=>{D?.disconnect(),c&&c.unobserve(R.value)});const Z=(F="right")=>{const H=[];if(T.value){const oe={class:$.value},le=t.h("span",oe,[T.value]);H.push(le)}const Y={class:I.value},O=o.collapseIcon??a,G=t.h(O,Y);return H.push(G),H.length>0?t.h("div",{class:{[`${v}__header-collapse`]:!0,[`is-${F}`]:!0},onClick:j},H):null},te=(F,H,Y,O)=>{const G={...b.value};return H===0&&(G[`${v}__first`]=!0),Y>=O-1&&(G[`${v}__last`]=!0),t.h("div",{ref:C,key:`${H}`,class:G,style:f.value},F)};return()=>{if(m.value&&d.value!==!0){const G=o.tag||"div";return t.h(G,{ref:R,prop:o.name,class:{[`${v}`]:!0,"is-collapse":U.value},style:y.value},[])}s.order.index=0;const F=[];let H=0;if(l.slots.header){const G={key:`${H++}`,ref:V,class:{[`${v}__header`]:!0,[`${v}__first`]:!0},onClick:_},oe=t.h("div",G,[l.slots.header()]);F.push(oe)}else{const G=[],oe=o.collapsePosition==="left";if(oe&&o.showCollapse){const le=Z("left");le&&G.push(le)}if(o.title||l.slots.title){if(o.showMark){const le={class:{[`${v}__header-mark`]:!0}};o.markColor&&(le.style={background:o.markColor});const re=t.h("div",le);G.push(re)}if(l.slots.title){const le=t.h("div",{class:{[`${v}__header-title`]:!0}},[l.slots.title()]);G.push(le)}else if(o.title){const le=t.h("div",{class:{[`${v}__header-title`]:!0}},[o.title]);G.push(le)}}if(l.slots.toolbar&&G.push(l.slots.toolbar()),!oe&&o.showCollapse){const le=Z("right");le&&G.push(le)}if(G.length>0){const le={key:`${H++}`,ref:V,class:{[`${v}__header`]:!0,[`${v}__first`]:!0},onClick:_},re=t.h("div",le,G);F.push(re)}}w();const Y=l.slots.default?l.slots.default():[],O=s.layout.value.type;if(O==="grid"){const G=te(Y,H++,0,Y.length);F.push(G)}else if(O==="flow"){const G=te(Y,H++,0,Y.length);F.push(G)}else for(let G=0;G<Y.length;G++){const oe=Y[G],le=te([oe],H++,G,Y.length);F.push(le)}if(S.value){const G=o.tag||"div";return t.h(G,{ref:R,prop:o.name,class:{[`${v}`]:!0,"is-collapse":U.value},style:y.value},[F])}else return F}}}}const{componentName:nc,create:oc,scope:lc}=Q("group"),Zo=oc(tc(nc,lc,ne.RectUp));function ac(e){return e===window}const rc=/matrix\((.+)\)/,fs=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(ac(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:d}=window.getComputedStyle(l);if(d){const m=rc.exec(d);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 sc{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 ic{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 sc,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 Ha=new ic,ms={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:cc,create:uc}=Q("price"),dc=uc({props:{...ms},setup(e){const n=t.computed(()=>({[cc]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ve(e.price)==0?"":wn(e.price,e.decimalLength,!0,me(e.digits),e.separator)),l=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),fc=["innerHTML"],mc=["innerHTML"];function pc(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,fc)):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,mc)):t.createCommentVNode("",!0)],2)}const Ge=ee(dc,[["render",pc]]),{componentName:co,create:hc}=Q("hint-text"),gc=hc({components:{Price:Ge},props:{...ms,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),d=($,I,R,V,E,P)=>{const x=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,K=$.split("-");let J=[];K[0]==="top"?J=["top","bottom","right","left"]:K[0]==="bottom"?J=["bottom","top","right","left"]:K[0]==="left"?J=["left","top","bottom","right"]:K[0]==="right"&&(J=["right","top","bottom","left"]);const _={top:null,right:null,bottom:null,left:null},j=[];for(let q=0;q<J.length;q++){const M=J[q];if(j[0]=M,K[1]&&(j[1]=K[1]),M==="top"){const D=I.y-P-e.arrowSize-e.offset;if(D>=0){_.top=D;let W=0;K[1]==="start"?W=I.x:K[1]==="end"?W=I.x+R-E:W=I.x+R/2-E/2;const L=x-W-E;L<0?(W+=L,u.value=-L):u.value=0,_.left=W<0?0:W;break}}else if(M==="bottom"){const D=I.y+V+e.arrowSize+e.offset;if(D+P<=U){_.top=D;let W=0;K[1]==="start"?W=I.x:K[1]==="end"?W=I.x+R-E:W=I.x+R/2-E/2;const L=x-W-E;L<0?(W+=L,u.value=-L):u.value=0,_.left=W<0?0:W;break}}else if(M==="left"){const D=I.x-E-e.arrowSize-e.offset;if(D>=0){_.left=D;let W=0;K[1]==="start"?W=I.y:K[1]==="end"?W=I.y+V-P:W=I.y+V/2-P/2,_.top=W<0?0:W;break}}else if(M==="right"){const D=I.x+R+e.arrowSize+e.offset;if(D+E<=x){_.left=D;let W=0;K[1]==="start"?W=I.y:K[1]==="end"?W=I.y+V-P:W=I.y+V/2-P/2,_.top=W<0?0:W;break}}}return{bestPlacement:j.join("-"),bestInsetRect:_}},m=($,I,R=10)=>{if(!ct||I===!1||!$)return;o.value=fs(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const V=c.value.offsetHeight,E=c.value.offsetWidth,{bestPlacement:P,bestInsetRect:x}=d(e.placement,o.value,l.value,r.value,E,V);s.value=P,a.value=x,i.value=!0},u=t.ref(0),g=vt(()=>{m(e.message,e.visible)},10),k=t.ref(e.visible);t.watch(()=>e.visible,$=>{k.value=$});const v=t.computed(()=>k.value&&y.value),y=t.ref(!0),b=vt($=>{const I=$[0];I&&(y.value=I.isIntersecting)},10),f=new IntersectionObserver(b);t.watch([()=>e.message,()=>e.visible],([$,I])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{m(e.message,e.visible)},0),Ha.watch(e.reference,g),f.observe(e.reference)}),t.onBeforeMount(()=>{Ha.unwatch(e.reference,g),f.unobserve(e.reference),f.disconnect()});const p=t.computed(()=>{const $={[co]:!0};return s.value.startsWith("top")?$["is-top"]=!0:s.value.startsWith("right")?$["is-right"]=!0:s.value.startsWith("bottom")?$["is-bottom"]=!0:s.value.startsWith("right")&&($["is-right"]=!0),e.size==="small"?$["is-small"]=!0:e.size==="large"&&($["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&($[`${e.customClass}`]=!0),$}),h=t.computed(()=>{const $={};a.value.top!==null&&($.top=`${a.value.top}px`),a.value.right!==null&&($.right=`${a.value.right}px`),a.value.bottom!==null&&($.bottom=`${a.value.bottom}px`),a.value.left!==null&&($.left=`${a.value.left}px`),e.autoFit&&($["min-width"]=`${l.value}px`);const I=document.documentElement.clientWidth||document.body.clientWidth;return $["max-width"]=`${I}px`,i.value&&($.opacity="1"),e.transition||($.transition="none"),e.zIndex&&($["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign($,e.customStyle),$}),S=t.computed(()=>{const $=[`${co}__content`];return e.customTextClass&&$.push(e.customTextClass),$}),N=t.computed(()=>{const $={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign($,e.customTextStyle),$}),C=t.computed(()=>({[`${co}__arrow`]:!0})),w=t.computed(()=>{const $={};return e.showArrow?($.width=`${e.arrowSize}px`,$.height=`${e.arrowSize}px`,s.value==="top"?($.left="50%",$.bottom=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):s.value==="top-start"?($.left=`${e.arrowOffset+u.value}px`,$.bottom=`-${e.arrowSize}px`):s.value==="top-end"?($.right=`${e.arrowOffset-u.value}px`,$.bottom=`-${e.arrowSize}px`):s.value==="right"?($.left=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):s.value==="right-start"?($.left=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):s.value==="right-end"?($.left=`-${e.arrowSize}px`,$.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?($.left="50%",$.top=`-${e.arrowSize}px`,$.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?($.left=`${e.arrowOffset+u.value}px`,$.top=`-${e.arrowSize}px`):s.value==="bottom-end"?($.right=`${e.arrowOffset-u.value}px`,$.top=`-${e.arrowSize}px`):s.value==="left"?($.right=`-${e.arrowSize}px`,$.top="50%",$.transform=" translate(0%, -50%)"):s.value==="left-start"?($.right=`-${e.arrowSize}px`,$.top=`${e.arrowOffset}px`):s.value==="left-end"&&($.right=`-${e.arrowSize}px`,$.bottom=`-${e.arrowOffset}px`),$):{display:"none"}}),B=t.computed(()=>v.value&&e.closeOnClick),A=t.computed(()=>{const $={};return e.zIndex&&($["z-index"]=`${e.zIndex}`),$});return{show:v,tipRef:c,classes:p,styles:h,textClasses:S,textStyles:N,arrowClasses:C,arrowStyles:w,overlayShow:B,overlayStyle:A,onClickOverlay:()=>{k.value=!1,n.emit("update:visible",!1)}}}}),yc=["innerHTML"];function vc(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,yc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const ps=ee(gc,[["render",vc]]);class On{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 To={},bc=new On,gt=new Map,Sn=e=>{if(e){const n=document.getElementById(e);gt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of gt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}gt.clear()}},kc=e=>{e.unmount=Sn;const n=document.getElementById(e.id);if(n){const a=gt.get(e.id);a?e={...To,...a,...e}:e={...To,...e},e.transition=!1;const o=t.createVNode(ps,e);return t.render(o,n),e.id}},Sc=e=>{e.unmount=Sn;let n=e.id??`hinttext_${bc.get()}`;e={...To,...e},e.id=n,gt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(ps,e);return t.render(o,a),document.body.appendChild(a),n},Cc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},$t={show(e,n,a={},o=!0){Cc(n);const l=a.id;return l&&gt.has(l)?kc({...a,message:n,reference:e}):(o&&Sn(),Sc({...a,message:n,reference:e}))},hide(e){Sn(e)},install(e){e.config.globalProperties.$hintText=$t}};function wc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...pe,...ge},emits:["appear","disappear"],setup(l,r){const s=l.prop??r.attrs.name;Ae({componentName:e,validate:!1},s);const i=je(),c=Pn();Mn(!1);const d=t.computed(()=>c&&i?Ln(i,!1).value:null),m=e,u=t.ref(null),g=t.computed(()=>{const O={[m]:!0,[`${m}__gutter`]:d.value&&d.value.type!=="flow",[`${m}__stretch`]:l.span==="stretch",[`${m}__input--border`]:ye(l.hasBorder)};if(O[l.errorMarkClass]=!!P.value,O[l.warnMarkClass]=!!V.value,O[l.infoMarkClass]=!!I.value,typeof u.value=="function"){const G=u.value(s);O[G]=!0}else if(typeof u.value=="string"){const G=u.value;O[G]=!0}return O}),k=t.ref(null),v=t.computed(()=>{const O={};if(l.width)l.width!=="auto"&&(O.width=he(l.width));else{const G=c&&i?zn(i,!1):null;if(d.value&&G){if(d.value.type==="grid"){const oe=Fn(G,d.value,l.span,l.offset);Object.assign(O,oe)}else if(d.value.type==="flow"){const oe=Rn(G,d.value,l.span,l.offset,l.width);Object.assign(O,oe)}}}if(typeof k.value=="function"){const G=k.value(s);G&&Object.assign(O,G)}else if(k.value&&typeof k.value=="object"){const G=k.value;Object.assign(O,G)}return O}),y=t.ref(null),b=t.computed({get:()=>y.value??ye(l.isRequired),set:O=>{y.value=O}}),f=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",p=Ve(t.toRef(l,"labelPosition"),"labelPosition",bn.Near),h=t.computed(()=>p&&p.value==="top"?"top":p&&p.value==="right"?"right":"left"),S=t.computed(()=>({[`${m}__main`]:!0,[`${m}__main--${h.value}`]:!0})),N=t.computed(()=>({label:!0,[`label--${h.value}`]:!0})),C=Ve(t.toRef(l,"labelWidth"),"labelWidth",bn.Near),w=t.computed(()=>C&&C.value?{width:he(C.value)}:{}),B=t.computed(()=>({"label--string":!0,"label--required":b.value})),A=t.computed(()=>({content:!0,[l.contentClass]:!0})),T=t.computed(()=>({...l.contentStyle})),$=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ie({setRequired(O){b.value=O},setErrorTip(O){$.errorTip=O},setErrorIcon(O){$.errorIcon=O},setWarnTip(O){$.warnTip=O},setWarnIcon(O){$.warnIcon=O},setInfoTip(O){$.infoTip=O},setInfoIcon(O){$.infoIcon=O},setCustomClassName(O){u.value=O},setCustomStyle(O){k.value=O}});const I=t.computed(()=>l.infoTip||$.infoTip),R=t.computed(()=>l.infoIcon||$.infoIcon),V=t.computed(()=>l.warnTip||$.warnTip),E=t.computed(()=>l.warnIcon||$.warnIcon),P=t.computed(()=>l.errorTip||$.errorTip),x=t.computed(()=>l.errorIcon||$.errorIcon),U=t.computed(()=>P.value?"error":V.value?"warn":I.value?"info":""),K=()=>U.value.length>0,J=t.computed(()=>U.value==="error"?P.value:U.value==="warn"?V.value:U.value==="info"?I.value:""),_=t.computed(()=>U.value==="error"?x.value:U.value==="warn"?E.value:U.value==="info"?R.value:null),j=t.computed(()=>{const O={[`${m}__tip`]:!0,[`${m}__tip--${U.value}`]:!0,[`${m}--animate`]:!0};return U.value==="error"&&l.errorClass?O[`${l.errorClass}`]=!0:U.value==="warn"&&l.warnClass?O[`${l.warnClass}`]=!0:U.value==="info"&&l.infoClass&&(O[`${l.infoClass}`]=!0),O}),q=t.computed(()=>{const O={};return p&&p.value==="top"||!f()?O["padding-left"]="0px":C&&C.value&&(O["padding-left"]=he(C.value)),O}),M=t.ref();let D="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([O,G,oe,le])=>{M.value&&(O&&!ue(G)?D?a.show(M.value,G,{...le,id:D,type:oe},!0):D=a.show(M.value,G,{...le,type:oe},!0):a.hide(D))});let W=null;const L=()=>{W||!M.value||(W=new IntersectionObserver(O=>{let G=!1;for(let oe of O)if(oe.intersectionRatio>0){G=!0,G&&r.emit("appear",oe);break}G||r.emit("disappear")}),W.observe(M.value))},z=()=>{!W||!M.value||(W.unobserve(M.value),W=null)};t.watch(()=>ye(l.appearListen),O=>{O?L():z()}),t.onMounted(()=>{ye(l.appearListen)&&L()}),t.onUnmounted(z);const X=()=>{if(!f())return null;const O=[],G=r.slots?.label?.()??l.label,oe={class:B.value},le=t.h("div",oe,[G]);if(O.push(le),r.slots.fixedPreTip){const ce=r.slots.fixedPreTip();O.push(ce)}const re={class:N.value,style:w.value};return t.h("div",re,O)},Z=()=>{const O=[];if(r.slots.prepend){const oe=r.slots.prepend();O.push(oe)}if(r.slots.default){const oe=r.slots.default();O.push(oe)}if(r.slots.append){const oe=r.slots.append();O.push(oe)}if(r.slots.fixedTip){const oe={class:[`${m}__fixed-tip`]},le=t.h("div",oe,[r.slots.fixedTip()]);O.push(le)}const G={ref:M,class:A.value,style:T.value};return t.h("div",G,O)},te=()=>{const O=_.value;return O?typeof O=="function"?t.h("div",{class:"fox-item__tip--icon"},[O()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(O)]):null},F=()=>{const O=J.value;return O?typeof O=="function"?t.h("div",{class:"fox-item__tip--text"},[O()]):t.h("div",{class:"fox-item__tip--text"},[O]):null},H=()=>{if(!K())return null;const O=[],G=te();G&&O.push(G);const oe=F();oe&&O.push(oe);const le={class:j.value,style:q.value};return t.h("div",le,O)},Y=()=>r.slots?.hide?.()??null;return()=>{const O=[],G=[],oe=X();oe&&G.push(oe);const le=Z();le&&G.push(le);const re={class:S.value},ce=t.h("div",re,G);O.push(ce);const Ne=H();Ne&&O.push(Ne);const Ce=Y();Ce&&O.push(Ce);const _t={class:g.value,style:v.value,prop:l.prop};return t.h("div",_t,O)}}}}const{componentName:Nc,create:Bc,scope:Ac}=Q("item"),we=Bc(wc(Nc,Ac,$t,!1));function Vc(e,n){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(a,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=je(),i=Pn();Mn(!1);const c=t.computed(()=>{const d={};if(a.width)a.width!=="auto"&&(d.width=he(a.width));else if(i&&s){const m=Ln(s,!1),u=zn(s,!1);if(m.value&&u){if(m.value.type==="grid"){const g=Fn(u,m.value,a.span,a.offset);Object.assign(d,g)}else if(m.value.type==="flow"){const g=Rn(u,m.value,a.span,a.offset,a.width);Object.assign(d,g)}}}return d});return()=>{const d=[];if(o.slots.default){const u=o.slots.default();if(a.divide)for(let g=0;g<u.length;g++){if(g>0){const k=t.h("div",{class:{[`${l}__divide`]:!0}});d.push(k)}d.push(u[g])}else Reflect.apply([].push,d,u)}const m={class:r.value,style:c.value};return t.h("div",m,d)}}}}const{componentName:Tc,create:$c,scope:r2}=Q("row-item"),Jo=$c(Vc(Tc));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=je(),r=Pn();Mn(!1);const s=t.computed(()=>r&&l?Ln(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),d=t.computed(()=>{const m={};if(a.width)a.width!=="auto"&&(m.width=he(a.width));else{const u=r&&l?zn(l,!1):null;if(s.value&&u){if(s.value.type==="grid"){const g=Fn(u,s.value,a.span,a.offset);Object.assign(m,g)}else if(s.value.type==="flow"){const g=Rn(u,s.value,a.span,a.offset,a.width);Object.assign(m,g)}}}return m});return()=>{const m={class:c.value,style:d.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",m,o.slots.default()):t.h("div",m)}}}}const{componentName:xc,create:Dc,scope:s2}=Q("slot-item"),_o=Dc(Ec(xc)),ja={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:{...pe,...ge,...ja},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=se.useFoxI18n(n),m=d(l,["placeholder"]),u=t.ref(!1),g=qe(l,"modelValue",null,c),k=e,v=t.computed(()=>({[k]:!0,"is-disabled":s.value,"is-readonly":i.value})),y=Ve(t.computed(()=>l.textAlign),"textAlign"),b=t.computed(()=>{const E={};return y.value&&(E["text-align"]=y.value),E}),f=E=>{let x=E.target.value;l.type==="digit"&&(x=wo(x,!0)),l.type==="number"&&(x=wo(x,!1)),l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),g.value=x,c("update:modelValue",x,E),c("change",x,E)};let p=qe(l,"hintText"),h=t.ref(!1);const S=E=>{let x=E.target.value;u.value=!0,ue(p.value)||(h.value=!0),c("focus",x,E)},N=E=>{setTimeout(()=>{h.value&&(h.value=!1),u.value=!1},0);let x=E.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),c("blur",x,E)},C=t.computed(()=>({[`${k}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),w=t.computed(()=>{const E={};return r.slots.append&&!B.value&&!R.value&&(E.display="none"),E}),B=t.computed(()=>ve(l.unit)>0),A=t.computed(()=>!R.value),T=t.computed(()=>({[`${k}__unit`]:!0,hidden:!A.value})),$=E=>{g.value="",c("update:modelValue","",E),c("change","",E),c("clear","")},I=t.computed(()=>ye(l.clearable)&&!s.value&&!i.value),R=t.computed(()=>{let E=ve(g.value)>0;return ye(l.clearable)&&E&&u.value}),V=t.computed(()=>({action:!0,hidden:!R.value}));return()=>{const E={class:v.value,style:b.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:S,onBlur:N},P=[],x=t.h("input",E);P.push(x);const U=[];if(I.value){const D={class:["action-icon"]},W=t.h(o,D),L={class:V.value,onClick:$},z=t.h("view",L,{default:()=>[W]});U.push(z)}if(B.value){const D=t.h("view",{class:T.value},[l.unit]);U.push(D)}const K={class:C.value,style:w.value},J=t.h("view",K,{default:()=>U});P.push(J);const _={default:()=>P};_.label=r.slots.default,_.prepend=r.slots.prepend,_.append=r.slots.append,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const q={...Vt(l,ja),hintText:p.value,hintVisible:h.value};return l.prop&&(q.prop=`${l.prop}_item`),t.h(a,q,_)}}}}const{componentName:qc,create:Pc,scope:Mc}=Q("input-item"),el=Pc(Ic(qc,Mc,we,ne.CircleClose));function Wa(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 Ya(e,n,a=20){if(typeof n=="string"&&(n=me(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Dr(`${e}`,`${n}`);return Wa(o)}else{let o=Ko(`${e}`,Ir(`${n}`),20);return Wa(o)}}function Lc(e,n=-1,a=!1,o=3,l=","){return wn(e,n,a,o,l)}function Xa(e,n,a,o,l=!0){if(e==="")return"";if(e=qr(e),n=me(n),n==1)return e;if(o)e=Ya(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(me(a)+2,"0"):e=Ko(e,1,me(a)));else{let r=-1*n;e=Ya(e,r)}return e}function Qa(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=ye(n.minInclude),l=ko(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=ye(n.maxInclude),l=ko(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Ga={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 zc(e,n,a,o){return{props:{...pe,...ge,...Ga},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),d=t.ref(!1),m=qe(l,"modelValue",null,c),u=t.ref("");t.watch([()=>m.value,()=>l.rates,()=>l.precision],([K,J,_])=>{if(ue(K)){u.value="";return}const j=Xa(K,J,_,!1);u.value!==j&&(u.value=j)},{immediate:!0});const g=t.computed(()=>{let K="";return d.value&&(K=u.value),K}),{t:k}=se.useFoxI18n(n),v=t.computed(()=>{let K=l.placeholder??"";return!d.value&&!ue(u.value)?K=Lc(u.value,l.decimalLength,l.autoPadding,l.digits,l.separator):K=ue(K)?k(["placeholder"]):K,K}),y=e,b=t.computed(()=>({[y]:!0,[`${y}__placeholder`]:u.value.length>0,"is-disabled":s.value,"is-readonly":i.value})),f=Ve(t.computed(()=>l.textAlign),"textAlign"),p=t.computed(()=>{const K={};return f.value&&(K["text-align"]=f.value),K}),h=t.ref(""),S=t.computed(()=>{let K=h.value;return ue(K)&&(K=l.errorTip??""),K}),N=t.ref(""),C=t.ref(!1),w=K=>{let _=K.target.value;if(ue(_)){u.value="",m.value="",c("update:modelValue","",K),c("change","",K),ye(l.showTip)&&C.value&&(C.value=!1);return}if(_.length>=2){let j=_;if(j.charAt(0)=="-"&&(j=j.substring(1)),j.length>=2&&j.charAt(0)=="0"&&j.charAt(1)!="."){t.triggerRef(u);return}}if(_!="-"){if(!Ur(_)){t.triggerRef(u);return}if(l.integerLength!=-1&&Hr(_)>Number(l.integerLength)){t.triggerRef(u);return}if(l.decimalLength&&l.decimalLength!=-1&&jr(_)>Number(l.decimalLength)){t.triggerRef(u);return}let j=Qa(_,l);if(j.maxValid===!1){h.value=j.message,t.triggerRef(u);return}}else if(l.min!=null&&me(l.min)>=0){t.triggerRef(u);return}N.value=_,ye(l.showTip)&&(C.value=_.length>0),u.value=_,m.value=Xa(_,l.rates,l.precision,!0),c("update:modelValue",m.value,K),c("change",m.value,K)},B=K=>{if(d.value=!0,ye(l.showTip)){let J=u.value;ue(J)&&(J=l.hintText),ue(J)||(N.value=J,C.value=!0)}h.value="",c("focus",m.value,K)},A=K=>{if(setTimeout(()=>{d.value=!1,ye(l.showTip)&&C.value===!0&&(C.value=!1)},0),!ue(u.value)){let J=Qa(u.value,l);if(J.minValid===!1||J.maxValid===!1){h.value=J.message;return}}c("update:modelValue",m.value,K),c("blur",m.value,K)},T=t.computed(()=>({[`${y}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),$=t.computed(()=>{const K={};return r.slots.append&&!I.value&&!x.value&&(K.display="none"),K}),I=t.computed(()=>ve(l.unit)>0),R=t.computed(()=>!x.value),V=t.computed(()=>({[`${y}__unit`]:!0,hidden:!R.value})),E=K=>{m.value="",c("update:modelValue","",K),c("change","",K),c("clear","")},P=t.computed(()=>ye(l.clearable)&&!s.value&&!i.value),x=t.computed(()=>{let K=ve(m.value)>0;return ye(l.clearable)&&K&&d.value}),U=t.computed(()=>({action:!0,hidden:!x.value}));return()=>{let K={class:b.value,style:p.value,type:"digit",maxlength:l.maxLength,placeholder:v.value,disabled:s.value,readonly:i.value,value:g.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:w,onFocus:B,onBlur:A},J=[],_=t.h("input",K);J.push(_);let j=[];if(P.value){const z={class:["action-icon"]},X=t.h(o,z),Z={class:U.value,onClick:E},te=t.h("view",Z,{default:()=>[X]});j.push(te)}if(I.value){const z=t.h("view",{class:V.value},[l.unit]);j.push(z)}const q={class:T.value,style:$.value},M=t.h("view",q,{default:()=>j});J.push(M);const D={default:()=>J};D.label=r.slots.default,D.prepend=r.slots.prepend,D.append=r.slots.append,D.fixedPreTip=r.slots.fixedPreTip,D.fixedTip=r.slots.fixedTip;const L={...Vt(l,Ga),errorTip:S.value,hintText:N.value,hintVisible:C.value,hintType:"number"};return l.prop&&(L.prop=`${l.prop}_item`),t.h(a,L,D)}}}}const{componentName:Rc,create:Fc,scope:Oc}=Q("money-item"),tl=Fc(zc(Rc,Oc,we,ne.CircleClose)),$o={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:Kc,create:Uc,scope:Hc}=Q("textarea"),jc=Uc({props:{...$o},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=se.useFoxI18n(Hc);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const g=Kc;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 k=g.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:v,minHeight:y}=e.autosize;v!==void 0&&(k=Math.min(k,v)),y!==void 0&&(k=Math.max(k,y))}k&&(console.info("----------- height",k),g.style.height=k+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(g,k)=>{e.maxLength&&g.length>Number(e.maxLength)&&(g=g.substring(0,Number(e.maxLength))),n("update:modelValue",g,k),n("change",g,k)};return{...o,textareaRef:l,classes:r,styles:s,change:g=>{const k=g.target;c(k.value,g)},focus:g=>{e.disabled||e.readonly||n("focus",g)},blur:g=>{if(e.disabled||e.readonly)return;let v=g.target.value;c(v,g),n("blur",{value:v,event:g})}}}}),Wc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Yc={key:0,class:"fox-textarea__limit"};function Xc(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,Wc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Yc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const Kn=ee(jc,[["render",Xc]]);function Qc(e,n,a,o){return{props:{...pe,...ge,...$o},emits:["update:modelValue","change","blur","focus","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),d=qe(l,"modelValue",null,c),m=y=>{d.value=y,c("update:modelValue",y,{}),c("change",y,{})};let u=qe(l,"hintText"),g=t.ref(!1);const k=y=>{ue(u.value)||(g.value=!0),c("focus",d.value,y)},v=y=>{setTimeout(()=>{g.value&&(g.value=!1)},0),c("blur",d.value,y)};return()=>{const b={...be(l,$o),disabled:s.value,readonly:i.value,value:d.value,"onUpdate:modelValue":m,onFocus:k,onBlur:v},f=[],p=t.h(o,b);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 N={...be(l,ge,pe)};return l.prop&&(N.prop=`${l.prop}_item`),t.h(a,N,h)}}}}const{componentName:Gc,create:Zc,scope:Jc}=Q("textarea-item"),nl=Zc(Qc(Gc,Jc,we,Kn));function _c(e){return e===window}const De=e=>{const n=t.unref(e);if(_c(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 eu=2e3;const Za=()=>eu++,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:{}}},tu=(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=Za());const r=t.computed(()=>{const y=e,b=[y,`${y}--${a.position}`];return a.round&&b.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&b.push(`${y}--${a.position}--safebottom`),typeof a.popClass=="string"?b.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(f=>{b.push(f)}),b}),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=Za(),a.destroyOnClose&&(l.showSlot=!0),o("open")},d=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},m=y=>{o("click-pop",y)},u=y=>{y.stopPropagation(),o("click-close-icon",y),o("update:visible",!1)},g=y=>{o("click-overlay",y),a.closeOnClickOverlay&&o("update:visible",!1)},k=y=>{o("opend",y)},v=y=>{o("closed",y)};return t.watch(()=>a.visible,y=>{a.visible?c():d()}),t.watch(()=>a.closeable,y=>{l.closed=y}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:m,onClickCloseIcon:u,onClickOverlay:g,onOpened:k,onClosed:v}}});let It=0;const Ja="fox-overflow-hidden",_a=()=>ct?document.body:{classList:[]},nu=e=>[()=>{if(e())try{!It&&_a().classList.add(Ja),It++}catch{}},()=>{if(e()&&It)try{It--,!It&&_a().classList.remove(Ja)}catch{}}],ou={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:lu,create:au}=Q("overlay"),ru=au({props:{...ou},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=nu(()=>e.lockScroll),l=t.computed(()=>({[lu]:!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 su(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=ee(ru,[["render",su]]),{componentName:iu,create:cu}=Q("popup"),uu=cu(tu(iu,{FoxOverLay:st,Close:ne.Close}));function du(e,n,a,o,l,r){const s=t.resolveComponent("FoxOverLay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const fe=ee(uu,[["render",du]]),er=10;function hs(e,n){return e>n&&e>er?"horizontal":n>e&&n>er?"vertical":""}function ol(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function ll(){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 d=s.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.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=hs(e.offsetX,e.offsetY))},start:s=>{if(o(),s.touches){const d=s.touches[0];e.startX=d.clientX,e.startY=d.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),d=t.ref(0),m=t.ref(""),u=()=>m.value==="vertical",g=()=>m.value==="horizontal",k=()=>{s.value=0,i.value=0,c.value=0,d.value=0,m.value="",a.value=0};return{move:b=>{if(b.touches){const h=b.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=b;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),d.value=Math.abs(i.value),o.value=Date.now()-a.value,m.value||(m.value=hs(c.value,d.value))},start:b=>{if(k(),b.touches){const h=b.touches[0];e.value=h.clientX,n.value=h.clientY}else{const p=b;e.value=p.clientX,n.value=p.clientY}a.value=Date.now()},reset:k,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:d,direction:m,isVertical:u,isHorizontal:g}}const gs={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}},Eo={...Fe,...gs,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 ys=36;function fu(){return ys}function mu(e){ys=e}function ze(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function xo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function pu(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 tr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let hu=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(xe(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function gu(){const e=t.getCurrentInstance();return new hu(e.proxy)}function nr(e,n,a){const o=ze(e,n),l=ze(e,a);if(o!==l)return!1;const r=it(e,n),s=it(e,a);return r===s}function yu(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 d=a[s].findIndex(m=>{if(r==="text")return ze(e,m)===i;if(r==="value"){let u=it(e,m);return u==null&&(u=ze(e,m)),u===i}else if(r==="item")return nr(e,m,i)});if(d==-1)break;l.push(d)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let d=s.findIndex(u=>{if(r==="text")return ze(e,u)===c;if(r==="value"){let g=it(e,u);return g==null&&(g=ze(e,u)),g===c}else if(r==="item")return nr(e,u,c)});if(d==-1)break;l.push(d);const m=xo(e,s[d]);if(!Array.isArray(m))break;s=m}}return l}function or(e,n,a,o){if(a.length==0)return null;const l={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=a[s];let c=n[s];c<0&&c>=i.length&&(c=0);const d=i[c],m=ze(e,d);if(l.texts.push(m),l.items.push(d),r==="text")l.values.push(m);else if(r==="value"){let u=it(e,d);u==null&&(u=m),l.values.push(u)}else l.values.push(d)}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 d=s[c],m=Object.assign({},d);m.children=null;const u=ze(e,d);if(l.texts.push(u),l.items.push(m),r==="text")l.values.push(u);else if(r==="value"){let g=it(e,d);g==null&&(g=u),l.values.push(g)}else l.values.push(m);if(!Array.isArray(d.children))break;s=d.children}}return l}function lr(e){return{text:e,value:e}}const vu=15,bu=300,ku=200,{create:Su}=Q("picker-column");function Cu(e){e.stopPropagation()}function wu(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),Cu(e)}const Nu=Su({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},...gs},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${me(e.visibleItemCount)*+e.itemHeight}px`})),l=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=w=>w>=u.currIndex+8||w<=u.currIndex-8,i=t.computed(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${u.deg})`,top:`${r.value}px`})),c=w=>`transform: rotate3d(1, 0, 0, ${-u.rotation*w}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${u.scrollDistance+r.value}px, 0)`})),m=t.ref(null),u=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),g=w=>ze(e,w),k=w=>it(e,w),v=_e(),y=()=>{u.transitionEndTrigger&&(u.transitionEndTrigger(),u.transitionEndTrigger=null)},b=(w,B=!1,A=!1)=>{if(u.currIndex=w,B){const T=()=>{u.moving=!1,n("update:modelValue",w),n("change",w)};A?u.transitionEndTrigger=T:T()}},f=(w,B,A)=>{let T=w+u.startDistance;if(B==="end"){const $=-(e.source.length-1)*e.itemHeight;T<$&&(T=$),T>0&&(T=0);let I=Math.abs(Math.round(-T/e.itemHeight));const R=-I*e.itemHeight,V=`${(I+1)*u.rotation}deg`,E=A?A>0:!1;b(I,!0,E),p(R,B,A,V)}else{let $=(-T/e.itemHeight+1)*u.rotation;const I=(e.source.length+1)*u.rotation,R=0;if($=Math.min(Math.max($,R),I),e.threeDimensional&&($<R||$>I))return;p(T,null,void 0,`${$}deg`)}},p=(w=0,B,A=ku,T)=>{B==="end"?u.scrollTime=A:u.scrollTime=0,u.deg=T,u.scrollDistance=w},h=(w,B)=>(w=Math.abs(w/B)/.003*(w<0?-1:1),w),S=w=>{e.readonly||(u.startDistance=u.scrollDistance,v.start(w),u.transitionEndTrigger=null)},N=w=>{e.readonly||(u.moving=!0,v.move(w),v.isVertical()&&(u.moving=!0,wu(w)),f(v.deltaY.value,"",0))},C=()=>{if(e.readonly)return;const w=v.deltaY.value,B=v.duration.value;if(B<bu&&Math.abs(w)>vu){const T=h(w,B);f(T,"end",e.swipeDuration)}else f(w,"end",0)};return t.watch(()=>e.modelValue,w=>{const B=u.currIndex-w;if(B!==0){u.currIndex=w,u.startDistance=u.scrollDistance;const A=B*e.itemHeight;f(A,"",0)}}),t.watch(()=>e.source,w=>{if(u.currIndex>=w.length){const T=(w.length-1-u.currIndex)*e.itemHeight;u.startDistance=u.scrollDistance,f(T,"end",0)}}),t.watch(()=>e.visible,w=>{w===!1&&y()}),t.onMounted(()=>{const w=-e.modelValue*e.itemHeight;f(w)}),{classes:a,styles:o,contentClasses:l,itemText:g,itemValue:k,...t.toRefs(u),roller:m,getItemText:ze,onTouchStart:S,onTouchMove:N,onTouchEnd:C,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:d,stopMomentum:y}}}),Bu={key:1,class:"fox-picker__item-tile"};function Au(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",Bu,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Vu=ee(Nu,[["render",Au]]),{create:Tu,componentName:$u,scope:Eu}=Q("picker"),xu=Tu({components:{Column:Vu,Popup:fe},props:{...Eo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=se.useFoxI18n(Eu),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(fu());t.watch(()=>e.visible,V=>{V&&s.value<=0&&setTimeout(()=>{if(r.value){const E=De(r.value);s.value=E.height,mu(s.value)}},50)});const i=t.computed(()=>({[$u]:!0})),c=gu(),d=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([V,E])=>{if(V){let P=await c.load("picker",V,E);if(P.length>0){let x=P[0];if(Array.isArray(x)){if(typeof x[0]=="string"){let U=P,K=[];U.forEach(J=>{let _=J.map(j=>lr(j));K.push(_)}),m.value=K}else m.value=P;d.value="multipleColumn"}else if(typeof x=="string"){let U=P,K=[],J=U.map(_=>lr(_));K.push(J),m.value=K,d.value="singleColumn"}else{const U=xo(e,x);Array.isArray(U)?(d.value="cascade",m.value=[P]):(d.value="singleColumn",m.value=[P])}}else m.value=[]}},{immediate:!0});const u=t.ref([]),g=t.ref(e.modelValue),k=t.ref([]);let v=null;const y=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([V,E])=>{let P=yu(e,V,E,d.value);if(!Pe(P,y.value)){y.value=P,v||(v=P?[...P]:[]);let x=or(e,P,E,d.value);x&&(u.value=x.texts,n("update:text",u.value))}});let b="";const f=t.ref(e.visible);t.watch(()=>e.visible,V=>{f.value=V,V&&(b="active",y.value.length>0&&(v=[...y.value]))});const p=V=>{let E=tr(e,V);return xe(E)?E.defaultIndex??0:0},h=V=>{if(e.readonly===!0)return!0;let E=tr(e,V);return xe(E)?E.readonly??!1:!1},S=(V,E)=>{let P=y.value;P[V]=E;for(let U=0;U<V;U++)P[U]==null&&(P[U]=p(U));if(d.value==="cascade")for(let U=V+1;U<C.value.length;U++){let K=p(U);U<P.length?P[U]=K:P.push(K)}else for(let U=P.length;U<C.value.length;U++){let K=p(U);P.push(K)}y.value=P;let x=or(e,P,m.value,d.value);x&&(u.value=x.texts,g.value=x.values,k.value=x.items)},N=V=>V<y.value.length?y.value[V]:p(V),C=t.computed(()=>{if(m.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return m.value;let V=[],E=0,P=m.value[0],x=0;for(;;){let U=P.map(_=>{let j=Object.assign({},_);return pu(e,j,null),j});V.push(U),E>=y.value.length?x=0:x=y.value[E],(x<0||x>=P.length)&&(x=0);let K=P[x];const J=xo(e,K);if(!Array.isArray(J))break;P=J,E++}return V}),w=t.computed(()=>me(+e.visibleItemCount-1)/2*s.value),B=(V=!1)=>{if(e.readonly===!0){V&&n("update:visible",!1);return}let E=m.value.length-1;for(;E>=0&&!(y.value[E]===null||y.value[E]===void 0);E--);if(E>=0&&S(E,0),d.value==="singleColumn"){let P=g.value.length>0?g.value[0]:"",x=k.value.length>0?k.value[0]:null;n("update:modelValue",P),n("update:text",u.value),n("change",P,x),V&&(n("confirm",P),n("update:visible",!1))}else n("update:modelValue",g.value),n("update:text",u.value),n("change",g.value,k.value),V&&(n("confirm",g.value),n("update:visible",!1))},A=(V,E)=>{if(b!=="close"&&(S(V,E),e.isAutoBackFill)){const P=!f.value;B(P)}},T=()=>{b==="active"&&(b="confirm",v=Array.isArray(y.value)?[...y.value]:[],B(!0))},$=()=>{d.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),y.value=[],v=null};return{...l,pickerLineRef:r,classes:i,columns:C,dataType:d,show:f,itemHeight:s,top:w,isReadonly:h,getIndex:N,change:A,close:()=>{if(b==="active"){if(b="close",v===null||v.length===0)$();else{if(Array.isArray(v))for(let V=0;V<v.length;V++)S(V,v[V]);B(!1)}n("close"),n("update:visible",!1)}},confirm:T,clear:()=>{if(b==="active"){if(b="clear",e.readonly===!0){n("update:visible",!1);return}$(),v=null,n("clear",""),n("update:visible",!1)}}}}}),Du={class:"fox-picker__bar"},Iu={class:"fox-picker__title"},qu={class:"fox-picker__bar__action"},Pu={class:"fox-picker__column"};function Mu(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",Du,[t.createElementVNode("view",Iu,t.toDisplayString(e.title),1),t.createElementVNode("view",qu,[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",Pu,[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,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(s,{visible:e.show,source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":m=>e.change(d,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 kt=ee(xu,[["render",Mu]]);function Lu(e,n,a,o,l,r,s=!0){return{props:{...pe,...ge,...Eo,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 d=$e(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:g}=se.useFoxI18n(n),k=g(i,["placeholder"]),v=t.ref(!1),y=qe(i,"modelValue",null,u),b=t.ref([]),f=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),p="fox-input-item",h=t.computed(()=>({[p]:!0,"is-disabled":d.value,"is-readonly":m.value})),S=Ve(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const M={};return S.value&&(M["text-align"]=S.value),M}),C=t.ref(!1),w=()=>{C.value=!0},B=M=>{C.value=M},A=M=>{y.value=M,u("update:modelValue",M)},T=(M,D)=>{u("change",M,D)},$=M=>{let W=M.target.value;v.value=!0,u("focus",W,M)},I=M=>{setTimeout(()=>{v.value=!1},0);let W=M.target.value;i.maxLength&&W.length>Number(i.maxLength)&&(W=W.slice(0,Number(i.maxLength))),u("blur",W,M)},R=M=>{b.value=M,Array.isArray(M)&&M.length===0?u("update:text",M[0]):u("update:text",M)},V=t.computed(()=>({[`${p}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),E=t.computed(()=>ve(i.unit)>0),P=t.computed(()=>ve(i.unit)>0&&!v.value),x=t.computed(()=>({hidden:!P.value})),U=M=>{y.value="",u("update:modelValue","",M),u("change","",M),u("clear","")},K=t.computed(()=>i.clearable&&!d.value&&!m.value),J=t.computed(()=>ve(y.value)>0&&v.value),_=M=>{J.value?U(M):w()},j=t.computed(()=>J.value&&K.value?o:l),q=t.computed(()=>({action:!0}));return()=>{const M={class:h.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:w,onFocus:$,onBlur:I};s&&(M.disabled=!0);const D=[],W=t.h("input",M);D.push(W);const L=[],z={class:["action-icon"]},X=t.h(j.value,z),Z={class:q.value,onClick:_},te=t.h("view",Z,{default:()=>[X]});if(L.push(te),E.value){const re=t.h("view",{class:x.value},[i.unit]);L.push(re)}const F={class:V.value},H=t.h("view",F,{default:()=>L});D.push(H);const Y={default:()=>D};Y.label=c.slots.default,Y.prepend=c.slots.prepend,Y.append=c.slots.append,Y.fixedPreTip=c.slots.fixedPreTip,Y.fixedTip=c.slots.fixedTip;const O=be(i,Eo);O.disabled=!1,O.readonly=d.value||m.value,O.visible=C.value,O["onUpdate:visible"]=B,O.modelValue=y.value,O["onUpdate:modelValue"]=A,O.text=b.value,O["onUpdate:text"]=R,O.onChange=T;const G=t.h(r,O);Y.hide=()=>[G];const oe=be(i,ge,pe);return i.prop&&(oe.prop=`${i.prop}_item`),t.h(a,oe,Y)}}}}const{componentName:zu,create:Ru,scope:Fu}=Q("picker-item"),al=Ru(Lu(zu,Fu,we,ne.CircleClose,ne.ArrowRight,kt,!1)),an=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:d,...m}=o,u={loading:!1,...m,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:d,_parent:n};return u.children&&u.children.length&&(u.children=an(u.children,u,a)),u}),vs=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&vs(o.children,n)},Ou={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Ku=(e,n)=>{const a={...Ou,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(d=>{d={...d};const{[l]:m,[r]:u}=d,g=c[u]=c[u]||[];!i.length&&u===o&&(i=g),g.push(d),d.children=c[m]||(c[m]=[])}),s&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((m,u)=>m[s]-u[s])}),c=null,i},Uu={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}},ar=(e,n)=>n[e.textKey],qt=(e,n)=>n[e.valueKey],Hu=(e,n)=>n[e.visibleKey],rr=(e,n)=>n[e.disabledKey],ju=(e,n)=>{const a=n[e.doitKey];return ye(a)},Wu=(e,n)=>{const a=n[e.numKey];return a==null?null:me(n[a])},sr=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function Yu(e,n,a,o=!1){return{props:{...Uu},emits:["update:modelValue","change","click"],setup(l,{slots:r,emit:s}){const i=t.computed(()=>{const j={};return j[`${e}`]=!0,j}),c=t.computed(()=>{const j={};return j[`${e}__titles`]=!0,j[`${l.direction}`]=!0,l.align==="left"&&(j.left=!0),l.scroll===!0&&(j.scrollable=!0),l.shape&&(j[`${l.shape}`]=!0),j}),d=t.computed(()=>({})),m=t.computed(()=>{if(!l.gutter)return 0;const j=de(l.gutter);return j<=0?0:j}),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,j=>{u.value!==j&&(u.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}),k=t.computed(()=>{const j={};return y.value||(j.display="none"),j}),v=t.ref(),y=t.ref(!1),b=()=>{const j=!y.value;f(j)},f=j=>{const q=j;q?(y.value=q,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,v.value?v.value.addEventListener("transitionend",()=>{y.value=!1},{once:!0}):setTimeout(()=>{y.value=!1},0))},p=t.ref(),h=t.ref([]),S=(j,q)=>{h.value[q]=j},N=j=>q=>{S(q,j)},C=(j,q)=>{const M=p.value,D=h.value;if(!M||!D||!D[j])return;const W=D[j];let L=0;l.direction==="vertical"?L=W.offsetTop-(M.offsetHeight-W.offsetHeight)/2:L=W.offsetLeft-(M.offsetWidth-W.offsetWidth)/2,w(M,L,q?0:.3,l.direction)},w=(j,q,M,D)=>{let W=0;const L=D==="horizontal"?j.scrollLeft:j.scrollTop,z=M===0?1:Math.round(M*1e3/16);function X(){D==="horizontal"?j.scrollLeft+=(q-L)/z:j.scrollTop+=(q-L)/z,++W<z&&Ke(X)}X()},B=(j,q)=>{const M=qt(l,j),D={};return D[`${e}__titles-item`]=!0,D.disabled=rr(l,j),D.active=M===u.value,l.shape&&(D[`${l.shape}`]=!0),l.ellipsis&&(D.ellipsis=!0),q&&(q.class&&(D[`${q.class}`]=!0),q.disabled===!0&&(D.disabled=q.disabled)),D},A=(j,q)=>{const M={};if(m.value>0){const D=Math.abs(m.value/2);l.direction==="vertical"?(M["margin-top"]=`${D}px`,M["margin-bottom"]=`${D}px`):(M["margin-left"]=`${D}px`,M["margin-right"]=`${D}px`)}return q&&q.style&&Object.assign(M,q.style),M},T=(j,q)=>`${qt(l,j)??q}`,$=(j,q)=>{const M=qt(l,j),D={};D[`${e}__popup-item`]=!0,D.disabled=rr(l,j),D.active=M===u.value,l.shape&&(D[`${l.shape}`]=!0);const W=sr(l,j,q);return W&&W.disabled===!0&&(D.disabled=W.disabled),D},I=t.computed(()=>(l.data??[]).filter(q=>Hu(l,q)!==!1)),R=(j,q)=>{const M=qt(l,j);if(s("click",j,q),u.value==M)return;const D=()=>{u.value=M,l.scroll&&C(q,!1),s("update:modelValue",M),s("change",j,q)};if(typeof l.beforeChange=="function"){const W=l.beforeChange(j,q);yt(W)?W.then(L=>{L!==!1&&D()}).catch(()=>{D()}):W!==!1&&D()}else D()},V=(j,q)=>function(){R(j,q)},E=(j,q)=>{R(j,q),f(!1)},P=(j,q)=>function(){E(j,q)},x=j=>{if(!Array.isArray(l.data)||!l.scroll)return;const q=l.data.findIndex(M=>qt(l,M)===u.value);q!==-1&&C(q,j)};t.watch(()=>l.data,()=>{setTimeout(x,0)}),t.onMounted(()=>{x(!0)});const U=(j,q)=>{if(r.item)return r.item({item:j,index:q});const M=sr(l,j,q),D=[];if(r.text){const X=r.text({item:j,index:q});D.push(X)}else{const X=[];if(M?.doit===!0||ju(l,j)){const H={class:[`${e}__titles-item-tip`,"doit"]},Y=t.h("view",H);X.push(Y)}const Z=M?.num??Wu(l,j);if(Z){let H="";const Y=me(Z);Y>=100?H="99+":H=`${Y}`;const O={class:[`${e}__titles-item-tip`,"num"]},G=t.h("view",O,[H]);X.push(G)}const te={class:`${e}__titles-item-text`};X.push(ar(l,j));const F=t.h("view",te,X);D.push(F)}const W={class:`${e}__titles-item-line`},L=t.h("view",W);D.push(L);const z={ref:N(q),class:B(j,M),style:A(j,M),key:T(j,q),onClick:V(j,q)};return t.h("view",z,D)},K=()=>{const j=r.default?r.default():[];if(j.length===0)for(let M=0;M<I.value.length;M++){const D=I.value[M],W=U(D,M);j.push(W)}const q={ref:p,class:c.value,style:d.value};return t.h("view",q,j)},J=()=>{let j=null;r.navigation?j=r.navigation():j=t.h(a);const q={class:`${e}__navigation`,onClick:b};return t.h("view",q,[j])},_=()=>{const j=[];for(let M=0;M<I.value.length;M++){const D=I.value[M];let W=null;r.popupItem?W=r.popupItem({item:D,index:M}):W=ar(l,D);const L={class:$(D,M),key:T(D,M),onClick:P(D,M)},z=t.h("view",L,[W]);j.push(z)}const q={class:g.value,style:k.value};return t.h("view",q,j)};return()=>{const j=[],q=K();if(j.push(q),l.showQuickNavigation){const D=J();j.push(D);const W=_();j.push(W)}const M={class:i.value};return t.h("view",M,j)}}}}const{create:Xu,componentName:Qu,scope:Gu}=Q("tabs-bar"),Un=Xu(Yu(Qu,Gu,ne.MoreH,!1)),bs=Symbol("TabsStatesKey"),Zu={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Ju(e,n,a=!1){return{props:{...Zu},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 b={name:y};i.current.value===y&&(b.loaded=!0),s.value.push(b),t.triggerRef(s)},remove:y=>{const b=s.value.findIndex(f=>f.name===y);b!==-1&&s.value.splice(b,1)},isLoaded:y=>{if(!o.lazy)return!0;const b=s.value.findIndex(f=>f.name===y);return b!==-1?i.current.value?s.value[b].loaded??!1:b===0:!1}};t.provide(bs,i);const c=y=>{const b=s.value.findIndex(f=>f.name===y);b!==-1&&(s.value[b].loaded=!0,t.triggerRef(s))};t.watch([()=>o.modelValue,()=>o.direction],([y,b])=>{i.current.value!==y&&(i.current.value=y??"",c(y??"")),i.direction.value!==b&&(i.direction.value=b)});const d=t.ref(null),m=t.ref(null),u=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0}));let g=!0;const k=t.computed(()=>{const y={},b=s.value.length;if(b<=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=`${b*i.tabHeight.value}px`,f!==-1&&(y.transform=`translate(0, -${f*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(y.width=`${b*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 v=null;return t.onMounted(()=>{if(!d.value)return;const y=()=>{const b=In(d.value);i.tabWidth.value=b.width,i.tabHeight.value=b.height};window.ResizeObserver&&(v=new window.ResizeObserver(y),v.observe(d.value)),y()}),t.onBeforeUnmount(()=>{v&&(v.disconnect(),v=null)}),()=>{const y={class:`${e}__panes`,style:k.value,ref:m},b=t.h("view",y,[r?.default?.()]),f={class:u.value,ref:d};return t.h("view",f,[b])}}}}const{create:_u,componentName:ed,scope:td}=Q("tabs-container"),Hn=_u(Ju(ed,td,!1)),nd={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function od(e,n,a){return{props:{...nd},setup(o,{emit:l,slots:r}){const s=t.inject(bs);t.onMounted(()=>{s.add(o.paneKey)}),t.onBeforeUnmount(()=>{s.remove(o.paneKey)});const i=t.computed(()=>{const d={};return s.direction.value==="vertical"&&s.tabHeight.value>0?d.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(d.width=`${s.tabWidth.value}px`),d}),c=t.computed(()=>o.loaded!=null?ye(o.loaded):s.isLoaded(o.paneKey));return()=>{let d=[];if(c.value)d=r?.default?.()??[];else if(r.empty)d=r.empty();else{const u={class:`${e}__empty-icon`},g=o.emptyIcon??a,k=t.h(g,u),v={class:`${e}__empty-text`},y=o.emptyText??"Loading",b=t.h("view",v,[y]),f={class:`${e}__empty`},p=t.h("view",f,[k,b]);d.push(p)}const m={class:`${e}`,style:i.value};return t.h("view",m,d)}}}}const{create:ld,componentName:ad,scope:rd}=Q("tabs-pane"),jn=ld(od(ad,rd,ne.Loading));class ir{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=an(n,null,this.config)}updateChildren(n,a){a?a.children=an(n,a,this.config):this.nodes=an(n,null,this.config)}getNodeByValue(n){let a;return vs(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:sd,scope:id}=Q("cascader-pane"),cd=sd({components:{Loading:ne.Loading,Checklist:ne.Checklist,TabsBar:Un,TabsContainer:Hn,TabsPane:jn},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}=se.useFoxI18n(id),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 ir([],{})),c=t.ref([]),d=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}))),u=new Map;let g;const k=async()=>{u.clear(),c.value=[],l.value=0,r.value=!1,g=null;let{options:p}=e;o.value.convertConfig&&(p=Ku(p,o.value.convertConfig)),i.value=new ir(p,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),d.value&&!i.value.nodes.length&&await y({root:!0,loading:!0,text:"",value:""}),c.value=[{nodes:i.value.nodes,selectedNode:null}],v(!d.value)},v=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 S=h;if(d.value&&Array.isArray(h)&&h.length){S=[];let N=i.value.nodes.find(C=>C.value===h[0]);if(N){S=[N.value],r.value=!0;const C=await h.slice(1).reduce(async(w,B)=>{const A=await w;await y(A);const T=A?.children?.find($=>$.value===B);return T&&S.push(B),Promise.resolve(T)},Promise.resolve(N));await y(C),r.value=!1}}S.length&&h===e.modelValue&&i.value.getPathNodesByValue(S).map((C,w)=>{l.value=w,f.handleNode(C,p)})},y=async p=>{if(!p)return;if(!o.value.lazyLoad){p.leaf=!0;return}if(i.value.isLeaf(p,d.value)||i.value.hasChildren(p,d.value))return;p.loading=!0;const h=p.root?null:p;let S=u.get(p);S||(S=new Promise(C=>{o.value.lazyLoad?.(p,C)}),u.set(p,S));const N=await S;Array.isArray(N)&&N.length>0?i.value.updateChildren(N,h):p.leaf=!0,p.loading=!1,u.delete(p)},b=p=>{const h=p.map(S=>S.value);s.value=h,n("change",h,p),n("pathChange",p),n("update:modelValue",h)},f={async handleNode(p,h){const{disabled:S,loading:N}=p;if(!(!h&&S||!c.value[l.value])){if(i.value.isLeaf(p,d.value)){if(p.leaf=!0,c.value[l.value].selectedNode=p,c.value=c.value.slice(0,p.level+1),!h){const C=c.value.map(w=>w.selectedNode);b(C),n("pathChange",C)}return}if(i.value.hasChildren(p,d.value)){const C=p.level+1;if(c.value[l.value].selectedNode=p,c.value=c.value.slice(0,C),c.value.push({nodes:p.children||[],selectedNode:null}),l.value=C,!h){const w=c.value.map(B=>B.selectedNode);n("pathChange",w)}return}g=p,!N&&(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],()=>{k()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,p=>{Pe(p,s.value)||(s.value=p,v(!d.value))}),t.watch(()=>e.visible,p=>{p&&Array.isArray(s.value)&&s.value.length>0&&v()}),{panes:c,panesTitles:m,initLoading:r,tabsCursor:l,...f}}}),ud={class:"fox-cascader"},dd={role:"menu",class:"fox-cascader__pane"},fd=["aria-checked","aria-disabled","onClick"],md={class:"fox-cascader__item__title"};function pd(e,n,a,o,l,r){const s=t.resolveComponent("TabsBar"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),d=t.resolveComponent("TabsPane"),m=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",ud,[t.createVNode(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(m,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=u=>e.tabsCursor=u)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(u,g)=>(t.openBlock(),t.createBlock(d,{"pane-key":g,key:g},{default:t.withCtx(()=>[t.createElementVNode("view",dd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,k=>(t.openBlock(),t.createElementBlock("view",{key:k.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(u,k),disabled:k.disabled}]),"aria-checked":e.isSelected(u,k),"aria-disabled":k.disabled||void 0,role:"menuitemradio",onClick:v=>e.handleNode(k,!1)},[t.createElementVNode("view",md,t.toDisplayString(k.text),1),k.loading?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(c,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,fd))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(d,{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 hd=ee(cd,[["render",pd]]),{create:gd}=Q("cascader"),yd=gd({components:{FoxCascaderPane:hd,FoxPopup:fe},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(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}}}),vd=["innerHTML"];function bd(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,vd)):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 Wn=ee(yd,[["render",bd]]);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 ks(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),s=Ct(e,l);a.texts.push(r),a.values.push(s??"")}return a}function Ss(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(St(e,n[s])===r){const c=Ct(e,n[s])??"",d={[e.textKey]:r,[e.valueKey]:c};l.push(d);const m=ks(e,n[s]);Array.isArray(m)&&Ss(e,m,a,o+1,l);return}}function Cs(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=St(e,n[s])??"",d={[e.textKey]:c,[e.valueKey]:r};l.push(d);const m=ks(e,n[s]);Array.isArray(m)&&Cs(e,m,a,o+1,l);return}}function uo(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 s=Ct(e,n[o]),i=Ct(e,a[o]);if(s!==i)return!1}return!0}let kd=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=Je(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(xe(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await r(n,a,o))}};function Sd(){const e=t.getCurrentInstance();return new kd(e.proxy)}const cr={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 Cd(e,n,a,o,l,r,s=!1){return{props:{...pe,...ge,...cr},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:g}=se.useFoxI18n(n),k=g(i,["placeholder"]),v=t.ref(!1),y=Sd(),b=t.ref([]),f=t.ref([]),p=t.computed(()=>{if(Array.isArray(f.value)){if(i.showAllLevels===!1){const z=f.value.length-1;return f.value[z]}return f.value.join(i.separator)}else return f.value}),h=t.ref([]),S=t.ref([]);t.watch([()=>i.modelValue,()=>b.value],async([z,X])=>{if(u("setValue",z),i.lazy===!0){S.value.length==0&&(h.value=Array.isArray(z)?z:[]);return}if(i.valueType==="item"){let Z=z;if(!uo(i,Z,S.value)){S.value=Z;let te=on(i,Z);f.value=te.texts,h.value=te.values}}else if(i.valueType==="text"){let Z=z,te=[];if(Ss(i,X,Z,0,te),!uo(i,te,S.value)){S.value=te;let F=on(i,te);Z.value=F.texts,h.value=F.values}}else{let Z=[];if(Cs(i,X,z,0,Z),!uo(i,Z,S.value)){S.value=Z;let te=on(i,Z);f.value=te.texts,h.value=te.values}}}),i.lazy===!0&&(h.value=Array.isArray(i.modelValue)?i.modelValue:[]),t.watch([()=>i.source,()=>i.params],async([z,X])=>{i.lazy||z&&(b.value=await y.load(z,X))},{immediate:!0});const N="fox-input-item",C=t.computed(()=>({[N]:!0,"is-disabled":d.value,"is-readonly":m.value})),w=Ve(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const z={};return w.value&&(z["text-align"]=w.value),z}),A=t.ref(!1),T=()=>{d.value===!0||m.value===!0||(A.value=!0)},$=z=>{A.value=z},I=(z,X)=>{let Z=X.map(F=>{if(F==null)return F;let H={...F};return Reflect.deleteProperty(H,"text"),H[i.textKey]=F.text??"",Reflect.deleteProperty(H,"value"),H[i.valueKey]=F.value??"",H});S.value=Z;let te=on(i,Z);f.value=te.texts,h.value=te.values,i.valueType==="text"?(u("change",f.value,Z),u("update:modelValue",f.value)):i.valueType==="item"?(u("change",Z,Z),u("update:modelValue",Z)):(u("change",h.value,Z),u("update:modelValue",h.value)),u("update:pathNodes",Z)},R=z=>{let X=z.map(Z=>{if(Z==null)return Z;let te={...Z};return Reflect.deleteProperty(te,"text"),te[i.textKey]=Z.text??"",Reflect.deleteProperty(te,"value"),te[i.valueKey]=Z.value??"",te});u("pathChange",X)},V=z=>{v.value=!0,u("focus",h.value,z)},E=z=>{setTimeout(()=>{v.value=!1},0),u("blur",h.value,z)},P=t.computed(()=>({[`${N}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),x=t.computed(()=>ve(i.unit)>0),U=t.computed(()=>ve(i.unit)>0&&!v.value),K=t.computed(()=>({hidden:!U.value})),J=z=>{S.value=[],f.value=[],h.value=[],u("update:modelValue",[]),u("change",[],z),u("clear",[]),u("update:pathNodes",[])},_=t.computed(()=>i.clearable&&!d.value&&!m.value),j=t.computed(()=>{let z=h.value&&h.value.length>0;return i.clearable&&z&&v.value}),q=z=>{j.value?J(z):T()},M=t.computed(()=>j.value&&_.value?o:l),D=t.computed(()=>({action:!0}));let W=null;const L=()=>typeof W=="function"?W:typeof i.lazyLoad=="function"?i.lazyLoad:(W=async(z,X)=>{const Z=[],te=[];let F=0;if(!z.root){let Y=z;for(;Y;){const O=St(i,Y),G=Ct(i,Y);te.splice(0,0,O),Z.splice(0,0,G),Y=Y._parent}F=Z.length}const H=await y.load(i.source,{...z,level:F,pathLabels:te,pathValues:Z},!0);X(H)},W);return()=>{const z={class:C.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:T,onFocus:V,onBlur:E};s&&(z.disabled=!0);const X=[],Z=t.h("input",z);X.push(Z);const te=[],F={class:["action-icon"]},H=t.h(M.value,F),Y={class:D.value,onClick:q},O=t.h("view",Y,{default:()=>[H]});if(te.push(O),x.value){const et=t.h("view",{class:K.value},[i.unit]);te.push(et)}const G={class:P.value},oe=t.h("view",G,{default:()=>te});X.push(oe);const le={default:()=>X};le.label=c.slots.default,le.prepend=c.slots.prepend,le.append=c.slots.append,le.fixedPreTip=c.slots.fixedPreTip,le.fixedTip=c.slots.fixedTip;let re={};re.visible=A.value,re["onUpdate:visible"]=$,re.modelValue=h.value,re.onChange=I,re.onPathChange=R,re.title=i.title,re.valueKey=i.valueKey,re.textKey=i.textKey,re.childrenKey=i.childrenKey,re.convertConfig=i.convertConfig,i.lazy?(re.lazy=!0,re.lazyLoad=L()):re.options=b.value;const ce=t.h(r,re);le.hide=()=>[ce];const Ce={...Vt(i,cr)};return i.prop&&(Ce.prop=`${i.prop}_item`),t.h(a,Ce,le)}}}}const{componentName:wd,create:Nd,scope:Bd}=Q("cascader-item"),rl=Nd(Cd(wd,Bd,we,ne.CircleClose,ne.ArrowRight,Wn,!1));var We=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ws={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",d="day",m="week",u="month",g="quarter",k="year",v="date",y="Invalid Date",b=/^(\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,V,E){var P=String(R);return!P||P.length>=V?R:""+Array(V+1-P.length).join(E)+R},S={s:h,z:function(R){var V=-R.utcOffset(),E=Math.abs(V),P=Math.floor(E/60),x=E%60;return(V<=0?"+":"-")+h(P,2,"0")+":"+h(x,2,"0")},m:function R(V,E){if(V.date()<E.date())return-R(E,V);var P=12*(E.year()-V.year())+(E.month()-V.month()),x=V.clone().add(P,u),U=E-x<0,K=V.clone().add(P+(U?-1:1),u);return+(-(P+(E-x)/(U?x-K:K-x))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:u,y:k,w:m,d,D:v,h:c,m:i,s,ms:r,Q:g}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},N="en",C={};C[N]=p;var w=function(R){return R instanceof $},B=function R(V,E,P){var x;if(!V)return N;if(typeof V=="string"){var U=V.toLowerCase();C[U]&&(x=U),E&&(C[U]=E,x=U);var K=V.split("-");if(!x&&K.length>1)return R(K[0])}else{var J=V.name;C[J]=V,x=J}return!P&&x&&(N=x),x||!P&&N},A=function(R,V){if(w(R))return R.clone();var E=typeof V=="object"?V:{};return E.date=R,E.args=arguments,new $(E)},T=S;T.l=B,T.i=w,T.w=function(R,V){return A(R,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var $=function(){function R(E){this.$L=B(E.locale,null,!0),this.parse(E)}var V=R.prototype;return V.parse=function(E){this.$d=function(P){var x=P.date,U=P.utc;if(x===null)return new Date(NaN);if(T.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var K=x.match(b);if(K){var J=K[2]-1||0,_=(K[7]||"0").substring(0,3);return U?new Date(Date.UTC(K[1],J,K[3]||1,K[4]||0,K[5]||0,K[6]||0,_)):new Date(K[1],J,K[3]||1,K[4]||0,K[5]||0,K[6]||0,_)}}return new Date(x)}(E),this.$x=E.x||{},this.init()},V.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},V.$utils=function(){return T},V.isValid=function(){return this.$d.toString()!==y},V.isSame=function(E,P){var x=A(E);return this.startOf(P)<=x&&x<=this.endOf(P)},V.isAfter=function(E,P){return A(E)<this.startOf(P)},V.isBefore=function(E,P){return this.endOf(P)<A(E)},V.$g=function(E,P,x){return T.u(E)?this[P]:this.set(x,E)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(E,P){var x=this,U=!!T.u(P)||P,K=T.p(E),J=function(z,X){var Z=T.w(x.$u?Date.UTC(x.$y,X,z):new Date(x.$y,X,z),x);return U?Z:Z.endOf(d)},_=function(z,X){return T.w(x.toDate()[z].apply(x.toDate("s"),(U?[0,0,0,0]:[23,59,59,999]).slice(X)),x)},j=this.$W,q=this.$M,M=this.$D,D="set"+(this.$u?"UTC":"");switch(K){case k:return U?J(1,0):J(31,11);case u:return U?J(1,q):J(0,q+1);case m:var W=this.$locale().weekStart||0,L=(j<W?j+7:j)-W;return J(U?M-L:M+(6-L),q);case d:case v:return _(D+"Hours",0);case c:return _(D+"Minutes",1);case i:return _(D+"Seconds",2);case s:return _(D+"Milliseconds",3);default:return this.clone()}},V.endOf=function(E){return this.startOf(E,!1)},V.$set=function(E,P){var x,U=T.p(E),K="set"+(this.$u?"UTC":""),J=(x={},x[d]=K+"Date",x[v]=K+"Date",x[u]=K+"Month",x[k]=K+"FullYear",x[c]=K+"Hours",x[i]=K+"Minutes",x[s]=K+"Seconds",x[r]=K+"Milliseconds",x)[U],_=U===d?this.$D+(P-this.$W):P;if(U===u||U===k){var j=this.clone().set(v,1);j.$d[J](_),j.init(),this.$d=j.set(v,Math.min(this.$D,j.daysInMonth())).$d}else J&&this.$d[J](_);return this.init(),this},V.set=function(E,P){return this.clone().$set(E,P)},V.get=function(E){return this[T.p(E)]()},V.add=function(E,P){var x,U=this;E=Number(E);var K=T.p(P),J=function(q){var M=A(U);return T.w(M.date(M.date()+Math.round(q*E)),U)};if(K===u)return this.set(u,this.$M+E);if(K===k)return this.set(k,this.$y+E);if(K===d)return J(1);if(K===m)return J(7);var _=(x={},x[i]=o,x[c]=l,x[s]=a,x)[K]||1,j=this.$d.getTime()+E*_;return T.w(j,this)},V.subtract=function(E,P){return this.add(-1*E,P)},V.format=function(E){var P=this,x=this.$locale();if(!this.isValid())return x.invalidDate||y;var U=E||"YYYY-MM-DDTHH:mm:ssZ",K=T.z(this),J=this.$H,_=this.$m,j=this.$M,q=x.weekdays,M=x.months,D=function(X,Z,te,F){return X&&(X[Z]||X(P,U))||te[Z].slice(0,F)},W=function(X){return T.s(J%12||12,X,"0")},L=x.meridiem||function(X,Z,te){var F=X<12?"AM":"PM";return te?F.toLowerCase():F},z={YY:String(this.$y).slice(-2),YYYY:this.$y,M:j+1,MM:T.s(j+1,2,"0"),MMM:D(x.monthsShort,j,M,3),MMMM:D(M,j),D:this.$D,DD:T.s(this.$D,2,"0"),d:String(this.$W),dd:D(x.weekdaysMin,this.$W,q,2),ddd:D(x.weekdaysShort,this.$W,q,3),dddd:q[this.$W],H:String(J),HH:T.s(J,2,"0"),h:W(1),hh:W(2),a:L(J,_,!0),A:L(J,_,!1),m:String(_),mm:T.s(_,2,"0"),s:String(this.$s),ss:T.s(this.$s,2,"0"),SSS:T.s(this.$ms,3,"0"),Z:K};return U.replace(f,function(X,Z){return Z||z[X]||K.replace(":","")})},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(E,P,x){var U,K=T.p(P),J=A(E),_=(J.utcOffset()-this.utcOffset())*o,j=this-J,q=T.m(this,J);return q=(U={},U[k]=q/12,U[u]=q,U[g]=q/3,U[m]=(j-_)/6048e5,U[d]=(j-_)/864e5,U[c]=j/l,U[i]=j/o,U[s]=j/a,U)[K]||j,x?q:T.a(q)},V.daysInMonth=function(){return this.endOf(u).$D},V.$locale=function(){return C[this.$L]},V.locale=function(E,P){if(!E)return this.$L;var x=this.clone(),U=B(E,P,!0);return U&&(x.$L=U),x},V.clone=function(){return T.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()},R}(),I=$.prototype;return A.prototype=I,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",d],["$M",u],["$y",k],["$D",v]].forEach(function(R){I[R[1]]=function(V){return this.$g(V,R[0],R[1])}}),A.extend=function(R,V){return R.$i||(R(V,$,A),R.$i=!0),A},A.locale=B,A.isDayjs=w,A.unix=function(R){return A(1e3*R)},A.en=C[N],A.Ls=C,A.p={},A})})(ws);var Ad=ws.exports;const Oe=Ye(Ad);var Ns={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(b){this[y]=+b}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var f=b.match(/([+-]|\d\d)/g),p=60*f[1]+(+f[2]||0);return p===0?0:f[0]==="+"?-p:p}(y)}],u=function(y){var b=i[y];return b&&(b.indexOf?b:b.s.concat(b.f))},g=function(y,b){var f,p=i.meridiem;if(p){for(var h=1;h<=24;h+=1)if(y.indexOf(p(h,0,b))>-1){f=h>12;break}}else f=y===(b?"pm":"PM");return f},k={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,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[l,d("day")],Do:[s,function(y){var b=i.ordinal,f=y.match(/\d+/);if(this.day=f[0],b)for(var p=1;p<=31;p+=1)b(p).replace(/\[|\]/g,"")===y&&(this.day=p)}],M:[r,d("month")],MM:[l,d("month")],MMM:[s,function(y){var b=u("months"),f=(u("monthsShort")||b.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 b=u("months").indexOf(y)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(y){this.year=c(y)}],YYYY:[/\d{4}/,d("year")],Z:m,ZZ:m};function v(y){var b,f;b=y,f=i&&i.formats;for(var p=(y=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,T,$){var I=$&&$.toUpperCase();return T||f[$]||a[$]||f[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,V,E){return V||E.slice(1)})})).match(o),h=p.length,S=0;S<h;S+=1){var N=p[S],C=k[N],w=C&&C[0],B=C&&C[1];p[S]=B?{regex:w,parser:B}:N.replace(/^\[|\]$/g,"")}return function(A){for(var T={},$=0,I=0;$<h;$+=1){var R=p[$];if(typeof R=="string")I+=R.length;else{var V=R.regex,E=R.parser,P=A.slice(I),x=V.exec(P)[0];E.call(T,x),A=A.replace(x,"")}}return function(U){var K=U.afternoon;if(K!==void 0){var J=U.hours;K?J<12&&(U.hours+=12):J===12&&(U.hours=0),delete U.afternoon}}(T),T}}return function(y,b,f){f.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var p=b.prototype,h=p.parse;p.parse=function(S){var N=S.date,C=S.utc,w=S.args;this.$u=C;var B=w[1];if(typeof B=="string"){var A=w[2]===!0,T=w[3]===!0,$=A||T,I=w[2];T&&(I=w[2]),i=this.$locale(),!A&&I&&(i=f.Ls[I]),this.$d=function(P,x,U){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1e3:1)*P);var K=v(x)(P),J=K.year,_=K.month,j=K.day,q=K.hours,M=K.minutes,D=K.seconds,W=K.milliseconds,L=K.zone,z=new Date,X=j||(J||_?1:z.getDate()),Z=J||z.getFullYear(),te=0;J&&!_||(te=_>0?_-1:z.getMonth());var F=q||0,H=M||0,Y=D||0,O=W||0;return L?new Date(Date.UTC(Z,te,X,F,H,Y,O+60*L.offset*1e3)):U?new Date(Date.UTC(Z,te,X,F,H,Y,O)):new Date(Z,te,X,F,H,Y,O)}catch{return new Date("")}}(N,B,C),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),$&&N!=this.format(B)&&(this.$d=new Date("")),i={}}else if(B instanceof Array)for(var R=B.length,V=1;V<=R;V+=1){w[1]=B[V-1];var E=f.apply(this,w);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}V===R&&(this.$d=new Date(""))}else h.call(this,S)}}})})(Ns);var Vd=Ns.exports;const Td=Ye(Vd);var Bs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o,l){var r=o.prototype,s=r.format;l.en.ordinal=function(i){var c=["th","st","nd","rd"],d=i%100;return"["+i+(c[(d-20)%10]||c[d]||c[0])+"]"},r.format=function(i){var c=this,d=this.$locale();if(!this.isValid())return s.bind(this)(i);var m=this.$utils(),u=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(g){switch(g){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return d.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return d.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)(u)}}})})(Bs);var $d=Bs.exports;const Ed=Ye($d);var As={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o,l){var r=o.prototype,s=function(u){return u&&(u.indexOf?u:u.s)},i=function(u,g,k,v,y){var b=u.name?u:u.$locale(),f=s(b[g]),p=s(b[k]),h=f||p.map(function(N){return N.slice(0,v)});if(!y)return h;var S=b.weekStart;return h.map(function(N,C){return h[(C+(S||0))%7]})},c=function(){return l.Ls[l.locale()]},d=function(u,g){return u.formats[g]||function(k){return k.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,y,b){return y||b.slice(1)})}(u.formats[g.toUpperCase()])},m=function(){var u=this;return{months:function(g){return g?g.format("MMMM"):i(u,"months")},monthsShort:function(g){return g?g.format("MMM"):i(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):i(u,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):i(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):i(u,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return d(u.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return m.bind(this)()},l.localeData=function(){var u=c();return{firstDayOfWeek:function(){return u.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(g){return d(u,g)},meridiem:u.meridiem,ordinal:u.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(u){return i(c(),"weekdays",null,null,u)},l.weekdaysShort=function(u){return i(c(),"weekdaysShort","weekdays",3,u)},l.weekdaysMin=function(u){return i(c(),"weekdaysMin","weekdays",2,u)}}})})(As);var xd=As.exports;const Dd=Ye(xd);var Vs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){var a="week",o="year";return function(l,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(o).add(1,o).date(d),u=s(this).endOf(a);if(m.isBefore(u))return 1}var g=s(this).startOf(o).date(d).startOf(a).subtract(1,"millisecond"),k=this.diff(g,a,!0);return k<0?s(this).startOf("week").week():Math.ceil(k)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Vs);var Id=Vs.exports;const qd=Ye(Id);var Ts={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),s=this.year();return r===1&&l===11?s+1:l===0&&r>=52?s-1:s}}})})(Ts);var Pd=Ts.exports;const Md=Ye(Pd);var $s={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})($s);var Ld=$s.exports;const zd=Ye(Ld);var Es={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(Es);var Rd=Es.exports;const Fd=Ye(Rd);var xs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(xs);var Od=xs.exports;const Kd=Ye(Od);Oe.extend(Dd);Oe.extend(Ed);Oe.extend(Td);Oe.extend(qd);Oe.extend(Md);Oe.extend(zd);Oe.extend(Fd);Oe.extend(Kd);const ae={format(e,n){return Oe(e).format(n)},parser(e,n){return Oe(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,d=r+(6-s)*864e5,m=this.date2Str(new Date(c)),u=this.date2Str(new Date(d));return[m,u]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,d=r+(7-s)*i,m=this.date2Str(new Date(c)),u=this.date2Str(new Date(d));return[m,u]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ae.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ae.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s}},ur=new Date().getFullYear(),sl={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"},Cn=(e,n,a)=>{let o;if(He(n)?o=n:typeof n=="string"&&ve(n)>0?o=ae.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},Do=(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()),ae.format(new Date(o),a)};let Io={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(ur-10,0,1),validator:He},maxDate:{type:Date,default:()=>new Date(ur+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:Ud,scope:Hd}=Q("date-picker"),jd=Ud({components:{[kt.name]:kt},props:{...Io},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(Hd),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 S=e[`${p}Date`],N=S.getFullYear();let C=1,w=1,B=0,A=0;p==="max"&&(C=12,w=r(h.getFullYear(),h.getMonth()+1),B=23,A=59);const T=A;return h.getFullYear()===N&&(C=S.getMonth()+1,h.getMonth()+1===C&&(w=S.getDate(),h.getDate()===w&&(B=S.getHours(),h.getHours()===B&&(A=S.getMinutes())))),{[`${p}Year`]:N,[`${p}Month`]:C,[`${p}Date`]:w,[`${p}Hour`]:B,[`${p}Minute`]:A,[`${p}Seconds`]:T}},i=t.computed(()=>{if(!g.value)return[];const{maxYear:p,maxDate:h,maxMonth:S,maxHour:N,maxMinute:C,maxSeconds:w}=s("max",g.value),{minYear:B,minDate:A,minMonth:T,minHour:$,minMinute:I,minSeconds:R}=s("min",g.value);let V=[{type:"year",range:[B,p]},{type:"month",range:[T,S]},{type:"day",range:[A,h]},{type:"hour",range:[$,N]},{type:"minute",range:[I,C]},{type:"seconds",range:[R,w]}];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=(p,h,S)=>{if(!(h>p))return null;const N=[];for(;p<=h;)e.isShowChinese?N.push({text:p+o[S],value:p}):N.push({text:`${p}`,value:p}),S==="minute"?p+=e.minuteStep:p++;return N},d=t.computed(()=>{let p=[];return i.value.forEach(h=>{let S=c(h.range[0],h.range[1],h.type);S&&p.push(S)}),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,u=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=Cn(e,e.modelValue,e.valueFormat):h=Cn(e,p,sl[e.type]):He(p)?h=p:h=new Date,!!h&&(!g.value||h.getTime()!==g.value.getTime())){g.value=h;let S=[];i.value.forEach(N=>{let C=m(N.type,h);S.push(C)}),u.value=S}},{immediate:!0});const k=p=>{if(e.type==="date"){const h=p[0],S=p[1]-1,N=Math.min(p[2],r(h,S+1));N!==p[2]&&(p[2]=N),g.value=new Date(h,S,N)}else if(e.type==="datetime"){const h=p[0],S=p[1]-1,N=Math.min(p[2],r(h,S+1)),C=p[3],w=p[4];N!==p[2]&&(p[2]=N),g.value=new Date(h,S,N,C,w)}else if(e.type==="time"){const h=p[0],S=p[1],N=p[2],C=g.value??new Date,w=new Date(C.getFullYear(),C.getMonth(),C.getDate(),h,S,N);g.value=w}else if(e.type==="year-month"){const h=p[0],S=p[1]-1;g.value=new Date(h,S)}else if(e.type==="month-day"){const S=(g.value??new Date).getFullYear(),N=p[0]-1,C=Math.min(p[1],r(S,N+1));C!==p[1]&&(p[1]=C);const w=new Date(S,N,C);g.value=w}else if(e.type==="datehour"){const h=p[0],S=p[1]-1,N=Math.min(p[2],r(h,S+1)),C=p[3];N!==p[2]&&(p[2]=N),g.value=new Date(h,S,N,C)}else if(e.type==="hour-minute"){const h=p[0],S=p[1],N=g.value??new Date,C=new Date(N.getFullYear(),N.getMonth(),N.getDate(),h,S);g.value=C}u.value=p};return{columns:d,dateIndexs:u,show:l,onChange:p=>{k(p)},onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:p=>{k(p),l.value=!1;let h=g.value??new Date;if(e.valueFormat){let S=Do(e,h,e.valueFormat);n("update:modelValue",S)}else n("update:modelValue",h);n("update:visible",!1),n("confirm",p)},onClear:()=>{n("clear")}}}});function Wd(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 Yn=ee(jd,[["render",Wd]]),Yd={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Xd(e){let n=e.format;if(!n){let a=e.type??"date";n=sl[a]}return n}function Qd(e,n,a,o,l,r,s=!1){return{props:{...pe,...ge,...Io,...Yd},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:g}=se.useFoxI18n(n),k=g(i,["placeholder"]),v=t.ref(!1),b=qe(i,"modelValue",q=>q==null?null:typeof q=="string"?q.length==0?null:i.valueFormat?Cn(i,q,i.valueFormat)??q:Cn(i,q,sl[i.type])??q:He(q)?q:null,u),f=t.computed(()=>{if(!b.value)return"";const q=Xd(i);return Do(i,b.value,q)}),p="fox-input-item",h=t.computed(()=>({[p]:!0,"is-disabled":d.value,"is-readonly":m.value})),S=Ve(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const q={};return S.value&&(q["text-align"]=S.value),q}),C=t.ref(!1),w=()=>{C.value=!0},B=()=>{C.value=!1};c.expose({showPicker:w,hidePicker:B});const A=q=>{C.value=q},T=q=>{if(b.value=q,i.valueFormat){let M=Do(i,q,i.valueFormat);u("update:modelValue",M,{}),u("change",M,{})}else u("update:modelValue",q,{}),u("change",q,{})},$=q=>{let D=q.target.value;v.value=!0,u("focus",D,q)},I=q=>{setTimeout(()=>{v.value=!1},0);let D=q.target.value;i.maxLength&&D.length>Number(i.maxLength)&&(D=D.slice(0,Number(i.maxLength))),u("blur",D,q)},R=t.computed(()=>({[`${p}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),V=t.computed(()=>ve(i.unit)>0),E=t.computed(()=>ve(i.unit)>0&&!v.value),P=t.computed(()=>({hidden:!E.value})),x=q=>{b.value="",u("update:modelValue","",q),u("change","",q),u("clear",""),B()},U=t.computed(()=>i.clearable&&!d.value&&!m.value),K=t.computed(()=>{let q=ve(b.value)>0;return i.clearable&&q&&v.value}),J=q=>{K.value?x(q):w()},_=t.computed(()=>K.value&&U.value?o:l),j=t.computed(()=>({action:!0}));return()=>{const q={class:h.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:w,onFocus:$,onBlur:I};s&&(q.disabled=!0);const M=[],D=t.h("input",q);M.push(D);const W=[],L={class:["action-icon"]},z=t.h(_.value,L),X={class:j.value,onClick:J},Z=t.h("view",X,{default:()=>[z]});if(W.push(Z),V.value){const ce=t.h("view",{class:P.value},[i.unit]);W.push(ce)}const te={class:R.value},F=t.h("view",te,{default:()=>W});M.push(F);const H={default:()=>M};H.label=c.slots.default,H.prepend=c.slots.prepend,H.append=c.slots.append,H.fixedPreTip=c.slots.fixedPreTip,H.fixedTip=c.slots.fixedTip;const Y=be(i,Io);Y.valueFormat=null,Y.disabled=!1,Y.readonly=d.value||m.value,Y.visible=C.value,Y["onUpdate:visible"]=A,Y.modelValue=b.value,Y["onUpdate:modelValue"]=T,Y.onClear=x;const O={};if(c.slots.top){const ce=c.slots.top();O.top=()=>ce}if(c.slots.bottom){const ce=c.slots.bottom();O.default=()=>ce}const G=t.h(r,Y,O);H.hide=()=>[G];const le={...be(i,ge,pe)};return i.prop&&(le.prop=`${i.prop}_item`),t.h(a,le,H)}}}}const{create:Gd,componentName:Zd,scope:Jd}=Q("date-item"),il=Gd(Qd(Zd,Jd,we,ne.CircleClose,ne.Date,Yn,!1)),_d=39,ef=64,{create:tf,scope:nf}=Q("calendar-pane"),of=tf({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:ae.getDay(0)},endDate:{type:String,default:ae.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=se.useFoxI18n(nf),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),d=t.ref(null),m=t.ref(null),u=t.ref(null),g=t.ref(0),k=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),v=t.computed(()=>a.btn),y=t.computed(()=>a["top-info"]),b=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=L=>L.split("-"),h=L=>ae.isEqual(f.currDate[0],L),S=L=>ae.isEqual(f.currDate[1],L),N=L=>f.currDate?.length>0?f.currDate?.some(z=>ae.isEqual(z,L)):!1,C=(L,z)=>z.curData[0]+"-"+z.curData[1]+"-"+ae.getNumTwoBit(+L.day),w=(L,z)=>{const X=C(L,z),{type:Z}=e;return L.type=="curr"?ae.isEqual(f.currDate,X)||(Z=="range"||Z=="week")&&(h(X)||S(X))||Z=="multiple"&&N(X)?`${f.dayPrefix}--active`:f.propStartDate&&ae.compareDate(X,f.propStartDate)||f.propEndDate&&ae.compareDate(f.propEndDate,X)?`${f.dayPrefix}--disabled`:(Z=="range"||Z=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ae.compareDate(f.currDate[0],X)&&ae.compareDate(X,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},B=()=>{const{type:L}=e;if(L=="range"&&f.chooseData.length==2||L!="range"){let z=f.chooseData.slice(0);L=="week"&&(z={weekDate:[T(f.chooseData[0]),T(f.chooseData[1])]}),n("choose",z),e.poppable&&n("update")}},A=(L,z,X=!1)=>{if(w(L,z)!=`${f.dayPrefix}--disabled`){const{type:Z}=e;let[te,F]=z.curData,H=[...z.curData];if(H[2]=ae.getNumTwoBit(Number(L.day)),H[3]=`${H[0]}-${H[1]}-${H[2]}`,H[4]=ae.getWhatDay(+H[0],+H[1],+H[2]),Z=="multiple")if(f.currDate?.length>0){let Y;f.currDate?.forEach((O,G)=>{O==H[3]&&(Y=G)}),X?f.chooseData.push([...H]):Y!==void 0?(f.currDate.splice(Y,1),f.chooseData.splice(Y,1)):(f.currDate.push(H[3]),f.chooseData.push([...H]))}else f.currDate=[H[3]],f.chooseData=[[...H]];else if(Z=="range"){let Y=Object.values(f.currDate).length;Y==2||Y==0?f.currDate=[H[3]]:ae.compareDate(f.currDate[0],H[3])?Array.isArray(f.currDate)&&f.currDate.push(H[3]):Array.isArray(f.currDate)&&f.currDate.unshift(H[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...H]]:ae.compareDate(f.chooseData[0][3],H[3])?f.chooseData=[...f.chooseData,[...H]]:f.chooseData=[[...H],...f.chooseData]}else if(Z=="week"){let Y=ae.getWeekDate(te,F,L.day,e.firstDayOfWeek);f.propStartDate&&ae.compareDate(Y[0],f.propStartDate)&&Y.splice(0,1,f.propStartDate),f.propEndDate&&ae.compareDate(f.propEndDate,Y[1])&&Y.splice(1,1,f.propEndDate),f.currDate=Y,f.chooseData=[ae.formatResultDate(Y[0]),ae.formatResultDate(Y[1])]}else f.currDate=H[3],f.chooseData=[...H];if(!X){let Y=f.chooseData;Z=="week"&&(Y={weekDate:[T(f.chooseData[0]),T(f.chooseData[1])]}),n("select",Y),(e.isAutoBackFill||!e.poppable)&&B()}}},T=L=>{let[z,X,Z]=L;return{date:L,monthWeekNum:ae.getMonthWeek(z,X,Z,e.firstDayOfWeek),yearWeekNum:ae.getYearWeek(z,X,Z,e.firstDayOfWeek)}},$=L=>{const z=f.monthsData[f.monthsData.length-1];let X=parseInt(z.curData[0]),Z=parseInt(z.curData[1].toString().replace(/^0/,""));switch(L){case"prev":Z==1&&(X-=1),Z=Z==1?12:--Z;break;case"next":Z==12&&(X+=1),Z=Z==12?1:++Z;break}return[X+"",ae.getNumTwoBit(Z),ae.getMonthDays(String(X),String(Z))+""]},I=(L,z,X)=>{let{year:Z,month:te}=X;return Array.from(Array(L),(F,H)=>({day:String(H+1),type:z,year:Z,month:te}))},R=(L,z,X,Z)=>{L=L-e.firstDayOfWeek;let{year:te,month:F}=X;return L>=7&&(L-=7),Array.from(Array(Z),(Y,O)=>({day:String(O+1),type:z,year:te,month:F})).slice(Z-L)},V=(L,z)=>{const X=ae.getMonthPreDay(+L[0],+L[1]);let Z=Number(L[1])-1,te=Number(L[0]);Z<=0&&(Z=12,te+=1);const F=ae.getMonthDays(String(L[0]),String(L[1])),H=ae.getMonthDays(te+"",Z+""),Y={year:L[0],month:L[1]},O={curData:L,title:l("monthTitle",{year:Y.year,month:Y.month}),monthData:[...R(X,"prev",{month:String(Z),year:String(te)},H),...I(F,"curr",Y)],cssHeight:0,cssScrollHeight:0},G=O.monthData.length>35?6:5;O.cssHeight=_d+ef*G;let oe=0;f.monthsData.length>0&&(oe=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),O.cssScrollHeight=oe,(!f.endData||!ae.compareDate(`${f.endData[0]}-${f.endData[1]}-${ae.getMonthDays(f.endData[0],f.endData[1])}`,`${L[0]}-${L[1]}-${L[2]}`))&&f.monthsData.push(O)},E=()=>{let L=e.startDate?e.startDate:ae.getDay(0),z=e.endDate?e.endDate:ae.getDay(365);f.propStartDate=L,f.propEndDate=z,f.startData=p(L),f.endData=p(z),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const X={year:Number(f.startData[0]),month:Number(f.startData[1])},Z={year:Number(f.endData[0]),month:Number(f.endData[1])};let te=Z.month-X.month;Z.year-X.year>0&&(te=te+12*(Z.year-X.year)),te<=0&&(te=1),V(f.startData);let F=1;do V($("next"));while(F++<te);if(f.monthsNum=te,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(L&&ae.compareDate(f.currDate[0],L)&&f.currDate.splice(0,1,L),z&&ae.compareDate(z,f.currDate[1])&&f.currDate.splice(1,1,z),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 H=[],Y={};f.currDate.forEach(O=>{L&&!ae.compareDate(O,L)&&z&&!ae.compareDate(z,O)&&(Object.hasOwnProperty.call(Y,O)||(H.push(O),Y[O]=O))}),f.currDate=[...H],f.defaultData=[...p(H[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[H,Y,O]=p(f.currDate[0]),G=ae.getWeekDate(H,Y,O,e.firstDayOfWeek);f.currDate=G,L&&ae.compareDate(f.currDate[0],L)&&f.currDate.splice(0,1,L),z&&ae.compareDate(z,f.currDate[1])&&f.currDate.splice(1,1,z),f.defaultData=[...p(f.currDate[0]),...p(f.currDate[1])]}}else f.currDate&&(L&&ae.compareDate(f.currDate,L)?f.currDate=L:z&&!ae.compareDate(f.currDate,z)&&(f.currDate=z),f.defaultData=[...p(f.currDate)])};Ie({scrollToDate:L=>{ae.compareDate(L,f.propStartDate)?L=f.propStartDate:ae.compareDate(L,f.propEndDate)||(L=f.propEndDate);let z=p(L);f.monthsData.forEach((X,Z)=>{if(X.title==l("monthTitle",{year:z[0],month:z[1]})&&c.value){let te=f.monthsData[Z].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let F=0,H=setInterval(()=>{if(F++,c.value){let Y=te/10;c.value.scrollTop=c.value.scrollTop+Y}F>=10&&(clearInterval(H),c.value&&(c.value.scrollTop=f.monthsData[Z].cssScrollHeight))},40)}else c.value.scrollTop=f.monthsData[Z].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let L=0,z=0;f.defaultData.length>0&&f.monthsData.forEach((te,F)=>{te.title==l("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(L=F),(e.type=="range"||e.type=="week")&&te.title==l("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(z=F)}),K(f.monthsNum,L),f.currentIndex=L,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),A({day:f.defaultData[5],type:"curr"},f.monthsData[z],!0)):e.type=="week"?A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(te=>{let F=p(te),H=f.currentIndex;f.monthsData.forEach((Y,O)=>{Y.title==l("monthTitle",{year:F[0],month:F[1]})&&(H=O)}),A({day:F[2],type:"curr"},f.monthsData[H],!0)}):A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let X=f.monthsData[f.monthsData.length-1],Z=X.cssHeight+X.cssScrollHeight;Xe(()=>{c?.value&&d?.value&&u?.value&&(g.value=c.value.clientHeight,d.value.style.height=`${Z}px`,c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(Z/(f.monthsNum+1))}});const K=(L,z)=>{L>=3?z>0&&z<L?f.defaultRange=[z-1,z+3]:z==0?f.defaultRange=[z,z+4]:z==L&&(f.defaultRange=[z-2,z+2]):f.defaultRange=[0,L+2];let X=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=X},J=(L,z)=>(e.type=="range"||e.type=="week")&&L.type=="curr"&&w(L,z)=="fox-calendar__day--active",_=(L,z)=>J(L,z)&&h(C(L,z)),j=(L,z)=>f.currDate.length>=2&&S(C(L,z))?J(L,z):!1,q=()=>{if(f.currDate.length>=2)return ae.isEqual(f.currDate[0],f.currDate[1])},M=L=>{const z=`${L.year}-${L.month}-${Number(L.day)<10?"0"+L.day:L.day}`;return ae.isEqual(z,ae.date2Str(new Date))},D=L=>{if(f.monthsData.length<=1)return;const z=L.target.scrollTop;let X=Math.floor(z/f.avgHeight);if(X==0)z>=f.monthsData[X+1].cssScrollHeight&&(X+=1);else if(X>0&&X<f.monthsNum-1)z>=f.monthsData[X+1].cssScrollHeight&&(X+=1),z<f.monthsData[X].cssScrollHeight&&(X-=1);else{const Z=Math.round(z+g.value);Z<f.monthsData[X].cssScrollHeight+f.monthsData[X].cssHeight&&z>f.monthsData[X-1].cssScrollHeight&&(X-=1),X+1<=f.monthsNum&&Z>=f.monthsData[X+1].cssScrollHeight+f.monthsData[X+1].cssHeight&&(X+=1),X>=1&&z<f.monthsData[X-1].cssScrollHeight&&(X-=1)}f.currentIndex!==X&&(f.currentIndex=X,K(f.monthsNum,X)),f.yearMonthTitle=f.monthsData[X].title},W=()=>{f.chooseData.splice(0),f.monthsData.splice(0),E()};return E(),t.watch(()=>e.defaultValue,L=>{L&&e.poppable&&W()}),{weeks:i,compConthsData:k,showTopBtn:v,topInfo:y,bottomInfo:b,rangeTip:q,mothsViewScroll:D,getClass:w,isStartTip:_,isEndTip:j,chooseDay:A,isCurrDay:M,confirm:B,months:c,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:m,viewArea:u}}}),lf={class:"fox-calendar__header"},af={key:0,class:"fox-calendar__header-title"},rf={key:1,class:"fox-calendar__header-slot"},sf={key:2,class:"fox-calendar__header-subtitle"},cf={class:"fox-calendar__weekdays",ref:"weeksPanel"},uf={class:"fox-calendar__panel",ref:"monthsPanel"},df={class:"fox-calendar__month-title"},ff={class:"fox-calendar__days"},mf=["onClick"],pf={class:"fox-calendar__day-value"},hf={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},gf={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},yf={key:2,class:"fox-calendar__day-tips--curr"},vf={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",lf,[e.showTitle?(t.openBlock(),t.createElementBlock("view",af,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",rf,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",sf,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",cf,[(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",uf,[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",df,t.toDisplayString(s.title),1),t.createElementVNode("view",ff,[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,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:m=>e.chooseDay(c,s)},[t.createElementVNode("view",pf,[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",hf,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",gf,[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",yf,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",vf,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,mf))),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]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const dr=ee(of,[["render",kf]]),Sf=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),rn={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}=Q("calendar"),wf=Cf({components:{[dr.name]:dr,[fe.name]:fe},props:{...rn},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)},d=()=>{i.value?.initPosition()};t.watch(()=>e.visible,y=>{y&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Ie({scrollToDate:c,initPosition:d});const m=()=>{n("update:visible",!1)},u=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{u()},update:m,close:u,select:y=>{n("select",y)},choose:y=>{u(),n("choose",y)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function Nf(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 Xn=ee(wf,[["render",Nf]]),fr={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}},fo=(e,n)=>{let a;return He(e)?a=e:typeof e=="string"&&ve(e)>0?a=ae.parser(e,n):a=new Date,a},ut=(e,n,a)=>(He(n)||(n=new Date),ae.format(n,a)),dt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=ae.date2Str(e),r=ae.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function Bf(e,n,a,o,{CloseIcon:l,MarkIcon:r},s=!1){return{props:{...pe,...ge,...rn,...fr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:g}=se.useFoxI18n(n),k=g(i,["placeholder"]),v=t.ref(!1),y=t.computed(()=>i.type==="range"),b=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),f=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},p=(D,W="one",L="YYYY-MM-DD")=>{if(Sf(D)){f();return}if(y.value&&Array.isArray(D)&&D.length==2){let z,X;typeof D[0]=="string"?(z=fo(D[0],L),X=fo(D[1],L)):(z=D[0],X=D[1]);let Z=dt(z),te=dt(X);(b.startDate===null||b.startDate.getTime()!==z.getTime()||b.endDate?.getTime()!==X.getTime())&&(b.startDate=z,b.startArray=Z,b.endDate=X,b.endArray=te)}else{let z;typeof D=="string"?z=fo(D,L):z=D;let X=dt(z);(b.startDate===null||b.startDate.getTime()!==z.getTime())&&(b.startDate=z,b.startArray=X)}};p(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,D=>{p(D,i.type,i.valueFormat),u("setValue",D)});const h=t.computed(()=>{if(b.startDate===null)return"";if(y.value){let D=ut(i,b.startDate,i.format),W=ut(i,b.endDate,i.format);return`${D} ${i.rangeSeparator} ${W}`}else{let D=ut(i,b.startDate,i.format);return i.showWeek&&(D=`${D} ${b.startArray[4]}`),D}}),S=t.computed(()=>{if(b.startDate===null)return null;if(y.value){let D=ae.date2Str(b.startDate),W=ae.date2Str(b.endDate??new Date);return[D,W]}else return ae.date2Str(b.startDate)}),N="fox-input-item",C=t.computed(()=>({[N]:!0,"is-disabled":d.value,"is-readonly":m.value})),w=Ve(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const D={};return w.value&&(D["text-align"]=w.value),D}),A=t.ref(!1),T=()=>{m.value||d.value||(A.value=!0)},$=D=>{A.value=D},I=D=>{if(D){if(y.value&&Array.isArray(D)){let W=D[0],L=me(W[0]),z=me(W[1]),X=me(W[2]),Z=new Date(L,z-1,X),te=D[1];L=me(te[0]),z=me(te[1]),X=me(te[2]);let F=new Date(L,z-1,X);if(b.startDate=Z,b.startArray=dt(Z),b.endDate=F,b.endArray=dt(F),i.valueFormat){let H=ut(i,Z,i.valueFormat),Y=ut(i,F,i.valueFormat);u("update:modelValue",[H,Y],{})}else u("update:modelValue",[Z,F],{})}else{let W=D,L=me(W[0]),z=me(W[1]),X=me(W[2]),Z=new Date(L,z-1,X);if(b.startDate=Z,b.startArray=dt(Z),i.valueFormat){let te=ut(i,Z,i.valueFormat);u("update:modelValue",te,{})}else u("update:modelValue",Z,{})}u("change",D,{})}},R=D=>{let L=D.target.value;v.value=!0,u("focus",L,D)},V=D=>{setTimeout(()=>{v.value=!1},0);let L=D.target.value;i.maxLength&&L.length>Number(i.maxLength)&&(L=L.slice(0,Number(i.maxLength))),u("blur",L,D)},E=t.computed(()=>({[`${N}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),P=t.computed(()=>ve(i.unit)>0),x=t.computed(()=>ve(i.unit)>0&&!v.value),U=t.computed(()=>({hidden:!x.value})),K=D=>{f(),u("update:modelValue",null,D),u("change","",D),u("clear","")},J=t.computed(()=>i.clearable&&!d.value&&!m.value),_=t.computed(()=>{let D=ve(h.value)>0;return i.clearable&&D&&v.value}),j=D=>{_.value?K(D):T()},q=t.computed(()=>_.value&&J.value?l:r),M=t.computed(()=>({action:!0}));return()=>{const D={class:C.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:h.value,onClick:T,onFocus:R,onBlur:V};s&&(D.disabled=!0);const W=[],L=t.h("input",D);W.push(L);const z=[],X={class:["action-icon"]},Z=t.h(q.value,X),te={class:M.value,onClick:j},F=t.h("view",te,{default:()=>[Z]});if(z.push(F),P.value){const Ce=t.h("view",{class:U.value},[i.unit]);z.push(Ce)}const H={class:E.value},Y=t.h("view",H,{default:()=>z});W.push(Y);const O={default:()=>W};O.label=c.slots.default,O.prepend=c.slots.prepend,O.append=c.slots.append,O.fixedPreTip=c.slots.fixedPreTip,O.fixedTip=c.slots.fixedTip;const G=be(i,rn);G.visible=A.value,G["onUpdate:visible"]=$,G["default-value"]=S.value,G.onChoose=I;const oe={};if(c.slots.btn){const Ce=c.slots.btn();oe.btn=()=>Ce}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 le=t.h(a,G,oe);O.hide=()=>[le];const ce={...Vt(i,rn,fr)};return i.prop&&(ce.prop=`${i.prop}_item`),t.h(o,ce,O)}}}}const{componentName:Af,create:Vf,scope:Tf}=Q("calendar-item"),cl=Vf(Bf(Af,Tf,Xn,we,{CloseIcon:ne.CircleClose,MarkIcon:ne.Date},!1)),$f={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:{...$f},setup(o,{emit:l,slots:r}){const s=t.inject("parent",null),i=qn(),c=t.computed(()=>s.label.value===o.label),d=t.computed(()=>s.position),m=()=>{const y=[];if(c.value){if(r.checkedIcon)return r.checkedIcon();{const b=de(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:b,height:b,class:y})}}else{if(r.icon)return r.icon();{const b=de(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:b,height:b,class:y})}}},u=()=>{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?.())},k=()=>{c.value||o.disabled||o.readonly||s.updateValue(o.label)},v=d.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${v?`${e}--reverse`:""}`,onClick:k},[o.shape=="button"?g():v?[u(),m()]:[m(),u()]])}}}const{componentName:xf,create:Df}=Q("radio"),Qn=Df(Ef(xf,{CheckNormal:ne.CheckNormal,Checked:ne.CheckChecked})),{componentName:mr,create:If}=Q("radio-group"),Gn=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}=Tt(),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:`${mr} ${mr}--${e.direction}`,style:l},n.default?.())}}});function pr(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(sn(e,r)===a)return l}else if(o==="item"){if(Pe(a,r))return l}else if(Rt(e,r)===a)return l}return-1}function sn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function qf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Pf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Mf=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(xe(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Lf(){const e=t.getCurrentInstance();return new Mf(e.proxy)}function zf(e){return{text:e,value:e}}const hr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},Rf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},Ff={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 Of(e,n,a,o,l){return{props:{...pe,...ge,...hr,...Rf,...Ff},emits:["change","update:modelValue","setValue"],setup(r,s){const i=Te(t.computed(()=>r.readonly)),c=$e(t.computed(()=>r.disabled)),d=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return c.value}},r.prop??s.attrs.name),u=Lf(),g=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,p])=>{if(f){const h=await u.load("radio",f,p);if(h.length>0)if(typeof h[0]=="string"){const C=h.map(w=>zf(w));g.value=C}else g.value=h;else g.value=[]}},{immediate:!0});let k=t.ref(-1);t.watch([()=>r.modelValue,()=>g.value],async([f,p])=>{k.value=pr(r,p,f,r.valueType),m("setValue",f)},{deep:!0});const v=t.computed(()=>{if(!r.source)return r.modelValue;if(k.value===-1)return null;const f=g.value[k.value];return Rt(r,f)}),y=f=>{let p=null,h=null;if(g.value.length>0){let S=pr(r,g.value,f,"value");k.value=S,S>=0&&(h=g.value[S],r.valueType==="text"?p=sn(r,h):r.valueType==="item"?p=h:p=Rt(r,h))}else p=f;m("update:modelValue",p),m("change",p,h)},b=()=>{let f=null,p=null;if(g.value.length>0&&k.value!==-1){let h=g.value[k.value];r.valueType==="text"?f=sn(r,h):r.valueType==="item"?f=h:f=Rt(r,h)}m("update:modelValue",f),m("change",f,p)};if(Ie({clear(){k.value!==-1&&(k.value=-1,b())}}),r.source){const f=()=>{const p=[],h=be(r,hr);return g.value.forEach((S,N)=>{const C=Rt(r,S),w=qf(r,S);let B={...h,label:C,disabled:w};const A=Pf(r,S,N);B={...B,...A},c.value&&(B.disabled=!0),i.value&&(B.readonly=!0);const T={};if(s.slots.icon&&(T.icon=s.slots.icon),s.slots.checkedIcon&&(T.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const I=s.slots.text(S);T.default=()=>[I]}else{const I=sn(r,S);T.default=()=>I}let $=t.h(l,B,T);p.push($)}),p};return()=>{const p=f(),h={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:v,"onUpdate:modelValue":y},S=t.h(o,h,{default:()=>p}),N={default:()=>S};N.label=s.slots.default,N.prepend=s.slots.prepend,N.append=s.slots.append,N.fixedPreTip=s.slots.fixedPreTip,N.fixedTip=s.slots.fixedTip;const w={...be(r,ge,pe)};return r.prop&&(w.prop=`${r.prop}_item`),t.h(a,w,N)}}else return()=>{const f=s.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:v,"update:modelValue":y},{default:()=>f})}}}}const{componentName:Kf,create:Uf,scope:Hf}=Q("radio-item"),ul=Uf(Of(Kf,Hf,we,Gn,Qn)),jf=(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}=Tt(),i=qn(),c=t.inject("parent",null),d=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,h=>{d.partialSelect=h});const m=t.computed(()=>!!c),u=t.computed(()=>m.value?c.value.value.includes(l.label):!!l.modelValue),g=t.computed(()=>m.value?c.position:l.textPosition);let k="";const v=(h,S)=>{k="click",s("update:modelValue",h),s("change",h,S)};t.watch(()=>l.modelValue,h=>{k=="click"?k="":s("change",h)});const y=()=>{const h=[];if(d.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const S=de(l.iconSize),N=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(N,{width:S,height:S,class:h})}}else if(u.value){if(r.checkedIcon)return r.checkedIcon();{const S=de(l.iconSize),N=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(N,{width:S,height:S,class:h})}}else{if(r.icon)return r.icon();{const S=de(l.iconSize),N=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(N,{width:S,height:S,class:h})}}},b=()=>{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 u.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(u.value&&d.partialSelect){d.partialSelect=!1,v(u.value,r.default?.()[0].children);return}if(v(!u.value,r.default?.()[0].children),m.value){const S=c.value.value,N=c.max.value,{label:C}=l,w=S.indexOf(C);w>-1?S.splice(w,1):w<=-1&&(S.length<N||!N)&&S.push(C),c.updateValue(S)}}};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(),b()]])}}),{componentName:Wf,create:Yf}=Q("checkbox"),Zn=Yf(jf(Wf,{CheckNormal:ne.CheckNormal,Checked:ne.Checked,Indeterminate:ne.CheckDisabled})),{create:Xf,componentName:gr}=Q("checkbox-group"),Jn=Xf({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}=Tt(),o=t.reactive({children:[]}),l=d=>{d.proxy&&o.children.push(d.proxy)},r=d=>{d.proxy&&(o.children=o.children.filter(m=>m!==d.proxy))},s=d=>{a("update:modelValue",d),a("change",d)},i=d=>{const m=[];d&&o.children.forEach(u=>{u?.disabled||m.push(u?.label)}),a("update:modelValue",m)},c=()=>{const d=o.children.filter(m=>m?.disabled?!1:!e.modelValue.includes(m.label)).map(m=>m.label);a("update:modelValue",d)};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,d=>{a("change",d)}),Ie({toggleAll:i,toggleReverse:c}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),t.h("view",{class:`${gr} ${gr}--${e.direction}`,style:d},n.default?.())}}});function yr(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(qo(e,r)===a)return l}else if(o==="item"){if(Pe(a,r))return l}else if(cn(e,r)===a)return l}return-1}function qo(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function cn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Qf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Gf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Zf=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(xe(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Jf(){const e=t.getCurrentInstance();return new Zf(e.proxy)}function _f(e){return{text:e,value:e}}const em={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},vr={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},tm={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 nm(e,n,a,o,l){return{props:{...pe,...ge,...em,...vr,...tm},emits:["change","update:modelValue","setValue"],setup(r,s){const i=$e(t.computed(()=>r.disabled)),c=Te(t.computed(()=>r.readonly)),d=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return i.value}},r.prop??s.attrs.name),u=Jf(),g=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,p])=>{if(f){const h=await u.load("checkbox",f,p);if(h.length>0)if(typeof h[0]=="string"){const C=h.map(w=>_f(w));g.value=C}else g.value=h;else g.value=[]}},{immediate:!0});const k=t.ref([]);t.watch([()=>r.modelValue,()=>g.value],async([f,p])=>{const h=[];Array.isArray(f)&&f.forEach(S=>{let N=yr(r,p,S,r.valueType);N!==-1&&h.push(N)}),!Pe(h,k.value)&&(k.value=h,m("setValue",h))},{deep:!0});const v=t.computed(()=>{if(!r.source)return r.modelValue;let f=[];return k.value.forEach(p=>{let h=g.value[p];f.push(cn(r,h))}),f}),y=f=>{let p=[],h=[];if(g.value.length>0){const S=[];Array.isArray(f)&&f.forEach(N=>{let C=yr(r,g.value,N,"value");C!==-1&&S.push(C);const w=g.value[C];h.push(w),r.valueType==="text"?p.push(qo(r,w)):r.valueType==="item"?p.push(w):p.push(cn(r,w))}),k.value=S}else p=f;m("update:modelValue",p),m("change",p,h)},b=t.ref();if(Ie({toggleAll:f=>{b.value.toggleAll(f)},toggleReverse:()=>{b.value.toggleReverse()}}),r.source){const f=()=>{const p=[],h=be(r,vr);return g.value.forEach((S,N)=>{const C=cn(r,S),w=Qf(r,S);let B={...h,label:C,disabled:w};const A=Gf(r,S,N);B={...B,...A},i.value&&(B.disabled=!0),c.value&&(B.readonly=!0);const T={};if(s.slots.icon&&(T.icon=s.slots.icon),s.slots.checkedIcon&&(T.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(T.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const I=s.slots.text(S);T.default=()=>[I]}else{const I=qo(r,S);T.default=()=>I}let $=t.h(l,B,T);p.push($)}),p};return()=>{const p=f(),h={class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:v.value,"onUpdate:modelValue":y},S=t.h(o,h,{default:()=>p}),N={default:()=>S};N.label=s.slots.default,N.prepend=s.slots.prepend,N.append=s.slots.append,N.fixedPreTip=s.slots.fixedPreTip,N.fixedTip=s.slots.fixedTip;const w={...be(r,ge,pe)};return r.prop&&(w.prop=`${r.prop}_item`),t.h(a,w,N)}}else return()=>{const f=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:d.value,modelValue:v,"onUpdate:modelValue":y},{default:()=>f})}}}}const{componentName:om,create:lm,scope:am}=Q("checkbox-item"),dl=lm(nm(om,am,we,Jn,Zn)),Po={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:rm,create:sm}=Q("switch"),im=sm({components:{Loading1:ne.Loading1},props:{...Po},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const i=rm;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}}}),cm={class:"fox-switch-button"};function um(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",cm,[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 _n=ee(im,[["render",um]]);function dm(e,n,a,o){return{props:{...pe,...ge,...Po},emits:["change","update:modelValue","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),d=e,m=qe(l,"modelValue",null,c),u=g=>{m.value=g,c("update:modelValue",g,{}),c("change",g,{})};return()=>{const k={...be(l,Po),disabled:s.value||i.value,value:m.value,"onUpdate:modelValue":u},v=[],y=t.h(o,k);v.push(y);const b={default:()=>v};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const p={...be(l,ge,pe)};return l.prop&&(p.prop=`${l.prop}_item`),p["content-class"]=d,t.h(a,p,b)}}}}const{componentName:fm,create:mm,scope:pm}=Q("switch-item"),fl=mm(dm(fm,pm,we,_n));function hm(e,n,a,o){return{props:{...pe,...ge,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=se.useFoxI18n(n),m=d(l,["placeholder"]),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,I=>{u.value=I,c("change",I)});const g=t.computed(()=>({[`${e}`]:!0})),k=t.computed(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&ue(u.value),"is-disabled":s.value,"is-readonly":i.value})),v=Ve(t.computed(()=>l.textAlign),"textAlign"),y=t.computed(()=>{const I={};return v.value&&(I["text-align"]=v.value),I}),b=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),f=t.computed(()=>ue(u.value)?m.placeholder.value:u.value),p=t.computed(()=>!ue(l.desc)||r.slots.sub),h=t.computed(()=>({[`${e}__sub`]:!0})),S=t.computed(()=>{const I={};return v.value&&(I["text-align"]=v.value),I}),N=()=>{c("focus",u.value)},C=()=>{c("blur",u.value)},w=t.computed(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),B=t.computed(()=>ve(l.unit)>0),A=I=>{s.value==!0||i.value==!0||c("click")},T=t.computed(()=>l.icon??a),$=t.computed(()=>({action:!0}));return()=>{const I=[];if(typeof r.slots.content=="function"){const M=r.slots.content();I.push(M)}else{const M=[];if(b.value){const L={tabIndex:0,class:k.value,style:y.value,onFocus:N,onBlur:C};let z=null;r.slots.main?z=t.h("view",L,[r.slots.main(f.value)]):z=t.h("view",L,[f.value]),M.push(z)}if(p.value){const L={tabIndex:0,class:h.value,style:S.value,onFocus:N,onBlur:C};let z=null;r.slots.sub?z=t.h("view",L,[r.slots.sub(l.desc)]):z=t.h("view",L,[l.desc]),M.push(z)}const D={class:g.value,onClick:A},W=t.h("view",D,M);I.push(W)}const R=[],V=de(l.iconSize);let E=r.slots.icon;if(!E){const M={width:V,height:V,class:["action-icon"]};E=t.h(T.value,M)}const P={class:$.value,onClick:A},x=t.h("view",P,{default:()=>[E]});if(R.push(x),B.value){const M=t.h("view",{},[l.unit]);R.push(M)}const U={class:w.value},K=t.h("view",U,{default:()=>R});I.push(K);const J={default:()=>I};J.label=r.slots.default,J.prepend=r.slots.prepend,J.append=r.slots.append,J.fixedPreTip=r.slots.fixedPreTip,J.fixedTip=r.slots.fixedTip;const j={...be(l,ge,pe)};return l.prop&&(j.prop=`${l.prop}_item`),t.h(o,j,J)}}}}const{componentName:gm,create:ym,scope:vm}=Q("link-item"),ml=ym(hm(gm,vm,ne.ArrowRight,we)),Mo={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}=Q("rate"),Sm=bm({props:{...Mo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[km]:!0})),r=k=>{n("update:modelValue",k),n("change",k)},s=(k,v)=>{if(e.disabled||e.readonly)return;let y=0;v===1&&e.modelValue===v||(y=v,e.allowHalf&&k==2&&(y-=.5)),r(y)},i=(k,v,y)=>{let b=0;for(let f=v.value.length-1;f>=0;f--){const p=v.value[f];if(k>p.offsetLeft){y?b=f+(k>p.offsetLeft+p.clientWidth/2?1:.5):b=f+1;break}}return b},c=_e(),d={onTouchStart(k){!e.touchable||e.readonly||c.start(k)},onTouchMove(k){e.touchable&&(c.move(k),c.isHorizontal()&&o.value&&(k.preventDefault(),r(i(c.moveX.value,o,e.allowHalf))))}},m=Math.random().toString(36).slice(-8),u=t.computed(()=>e.customIcon??ne.StarFillN);return{classes:l,...d,onClick:s,toPxDesc:he,renderIcon:(k,v)=>t.h(k,v),rateRefs:o,refRandomId:m,slots:a,customIcon:u}}}),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]=(...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",wm,[(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",Nm,[(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",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:i=>e.onClick(2,s)},null,8,["onClick"]))])):t.createCommentVNode("",!0)],12,Cm))),128))],34)}const wt=ee(Sm,[["render",Am]]);function Vm(e,n,a,o){return{props:{...pe,...ge,...Mo},emits:["change","update:modelValue","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),d=e,m=qe(l,"modelValue",null,c),u=g=>{m.value=g,c("update:modelValue",g,{}),c("change",g,{})};return()=>{const k={...be(l,Mo),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":u},v=[],y=t.h(o,k);v.push(y);const b={default:()=>v};if(r.slots.default){const h=r.slots.default();b.label=()=>h}const f=be(l,ge,pe);return l.prop&&(f.prop=`${l.prop}_item`),f["content-class"]=d,t.h(a,f,b)}}}}const{componentName:Tm,create:$m,scope:Em}=Q("rate-item"),pl=$m(Vm(Tm,Em,we,wt)),xm=/scroll|auto|overlay/i,Ds=window;function Dm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Lo(e,n=Ds){let a=e;for(;a&&a!==n&&Dm(a);){const{overflowY:o}=window.getComputedStyle(a);if(xm.test(o))return a;a=a.parentNode}return n}function Is(e,n=Ds){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=Lo(e.value,n))}),a}const qs=()=>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 qm(e,n,a){return{props:{...Im},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=se.useFoxI18n(n),i=s(o,["pullText","loadText","loadMoreText"]),c=t.ref(),d=Is(c),m=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),u=t.computed(()=>({[e]:!0})),g=p=>p?p.offsetTop+g(p.offsetParent):0,k=()=>{let p=0,h=0,S="down";if(d.value==window){const N=qs();c.value&&(p=g(c.value)+c.value.offsetHeight-N-window.innerHeight),h=N}else{const{scrollHeight:N,clientHeight:C,scrollTop:w}=d.value;p=N-C-w,h=w}return m.beforeScrollTop>h?S="up":S="down",m.beforeScrollTop=h,l("scroll-change",h),p<=o.threshold&&S=="down"},v=()=>{Xe(()=>{if(!k()||!o.hasMore||m.isInfiniting)return!1;m.isInfiniting=!0,l("update:modelValue",!0),t.nextTick(()=>l("load-more"))})},y=()=>{d.value&&d.value.addEventListener("scroll",v,o.useCapture)},b=()=>{d.value&&d.value.removeEventListener("scroll",v,o.useCapture)};t.onMounted(()=>{y(),o.immediate&&v()}),t.onUnmounted(()=>{b()});const f=t.ref(!1);return t.onActivated(()=>{f.value&&(f.value=!1,y())}),t.onDeactivated(()=>{f.value=!0,b()}),t.watch(()=>o.modelValue,p=>{p||(m.isInfiniting=!1)}),()=>{const p={class:"fox-infinite__container"},h=t.h("view",p,[r?.default?.()]),S=[];if(m.isInfiniting){let B=r?.loading?.()??null;if(!B){let $=r?.loadingIcon?.()??null;if(!$){const V={class:["fox-infinite__bottom-box__img"]};$=t.h(a,V)}const I={class:"fox-infinite__bottom-box__text"},R=t.h("view",I,[i.loadText.value]);B=[$,R]}const A={class:"fox-infinite__bottom-box"},T=t.h("view",A,B);S.push(T)}else if(!o.hasMore){let B=r?.finished?.()??null;if(!B){const A={class:"fox-infinite__bottom-tips"};B=t.h("view",A,[i.loadMoreText.value]),S.push(B)}}const N={class:"fox-infinite__bottom"},C=t.h("view",N,S),w={class:u.value,ref:c};return t.h("view",w,[h,C])}}}}const{componentName:Pm,create:Mm,scope:Lm}=Q("infinite-loading"),eo=Mm(qm(Pm,Lm,ne.Loading)),{componentName:zm,create:Rm}=Q("button"),Fm=Rm({components:{Loading:ne.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:o,size:l,shape:r,disabled:s,loading:i,color:c,plain:d,block:m}=t.toRefs(e),u=v=>{!i.value&&!s.value&&n("click",v)},g=t.computed(()=>{const v=zm;return{[v]:!0,[`${v}--${o.value}`]:o.value,[`${v}--${l.value}`]:l.value,[`${v}--${r.value}`]:r.value,[`${v}--plain`]:d.value,[`${v}--block`]:m.value,[`${v}--disabled`]:s.value,[`${v}--loading`]:i.value}}),k=t.computed(()=>{const v={};return c?.value&&(d.value?(v.color=c.value,v.background="#fff",c.value?.includes("gradient")||(v.borderColor=c.value)):(v.color="#fff",v.background=c.value)),v});return{handleClick:u,classes:g,getStyle:k}}}),Om={class:"fox-button__wrap"};function Km(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",Om,[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 Le=ee(Fm,[["render",Km]]),Um={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"}},Hm=(e,n,a)=>({props:{...Um},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}=Tt(),{toLocaleRefs:s}=se.useFoxI18n(n),i=s(o,["placeholder"]),c=t.reactive({active:!1}),d=t.computed(()=>({background:o.background})),m=t.computed(()=>({background:o.inputBackground})),u=A=>{let $=A.target.value;o.maxLength&&$.length>Number(o.maxLength)&&($=$.slice(0,Number(o.maxLength))),r("update:modelValue",$,A),r("change",$,A)},g=t.ref({}),k=A=>{let $=A.target.value;c.active=!0,g.value=o.focusStyle,r("focus",$,A)},v=A=>{setTimeout(()=>{c.active=!1},0);let $=A.target.value;o.maxLength&&$.length>Number(o.maxLength)&&($=$.slice(0,Number(o.maxLength))),g.value={},r("blur",$,A)},y=A=>{r("update:modelValue","",A),r("change","",A),r("clear","")},b=t.computed(()=>String(o.modelValue).length>0),f=t.computed(()=>{const A={};return b.value||(A.display="none"),A}),p=A=>{o.autoblur&&w.value?.blur(),(typeof A.cancelable!="boolean"||A.cancelable)&&A.preventDefault(),r("search",o.modelValue)},h=A=>{r("keyup-input",A)},S=A=>{r("click-input",A)},N=A=>{r("click-left-icon",o.modelValue,A)},C=t.computed(()=>({textAlign:o.inputAlign})),w=t.ref(null);t.onMounted(()=>{o.autofocus&&w.value.focus()});const B=()=>{const A=[];if(l.leftin){const P={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:N},x=t.h("view",P,[l.leftin()]);A.push(x)}const T={class:`${e}__input-inner-input`,ref:w,style:C.value,type:o.inputType,maxlengt:o.maxLength,placeholder:i.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:S,onInput:u,onFocus:k,onBlur:v,onkeyup:h},$=t.h("input",T),I={class:[`${e}__input-inner`],action:"#",onSubmit:p},R=t.h("form",I,[$]);A.push(R);const V=[];if(o.clearable){const P={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:y},x=l?.clear?.()??o.clearIcon??a,U=t.h("view",P,[t.h(x)]);V.push(U)}if(l.rightin){const P={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},x=t.h("view",P,[l.rightin()]);V.push(x)}if(V.length>0){const P={class:`${e}__input-inner-right`},x=t.h("view",P,V);A.push(x)}const E={class:[`${e}__search-input`,`${o.shape}`],style:{...m.value,...g.value}};return t.h("view",E,A)};return()=>{const A=[];if(o.label){const I={class:`${e}__search-label`},R=t.h("span",I,[o.label]);A.push(R)}if(l.leftout){const I={class:[`${e}__search-icon`,`${e}__left-search-icon`]},R=t.h("view",I,[l.leftout()]);A.push(R)}const T=B();if(A.push(T),l.rightout){const I={class:[`${e}__search-icon`,`${e}__right-search-icon`]},R=t.h("view",I,[l.rightout()]);A.push(R)}const $={class:`${e}`,style:d.value};return t.h("view",$,A)}}}),{componentName:jm,create:Wm,scope:Ym}=Q("searchbar"),to=Wm(Hm(jm,Ym,ne.CircleClose)),un={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 Xm(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(dn(e,r)===a)return l}else if(o==="item"){if(Pe(a,r))return l}else if(Ps(e,r)===a)return l}return-1}function dn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function br(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Ps(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Qm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Gm(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Zm=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let d=a;typeof i=="function"&&(d=d.filter(i));let m=(o-1)*l,u=m+l;u>d.length&&(u=d.length);const g=d.slice(m,u);return{totalSize:d.length,page:g}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s]);const c=Je(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(xe(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r]))}};function Jm(){const e=t.getCurrentInstance();return new Zm(e.proxy)}function _m(e,n,a,o,l,r,s,i,c,d,m){return{props:{...un},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(u,{slots:g}){const{emitEvent:k}=Tt(),{toLocaleRefs:v}=se.useFoxI18n(n),y=v(u,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),b=Jm(),f=t.ref([]),p=t.ref(0),h=t.ref(""),S=t.shallowRef(null),N=t.computed(()=>{const F={};return u.params&&Object.assign(F,u.params),ue(h.value)||(F[`${u.searchKey}`]=h.value),S.value&&Object.assign(F,S.value),F});let C=!0;const w=async(F,H,Y)=>{try{if(A.value===!1)return;let O=null;ue(h.value)||(O=oe=>{const le=dn(u,oe);if(typeof le=="string"&&le.includes(h.value))return!0;const re=br(u,oe);return!!(typeof re=="string"&&re.includes(h.value))});const G=await b.load("actionsheet",F,H,Y,N.value,C,O??void 0);C=!1,Array.isArray(G)?(f.value=G,p.value=1,A.value=!1):!Array.isArray(G.page)||G.page.length===0?(console.warn("[FoxUI] can not load more data"),A.value=!1):(Reflect.apply([].push,f.value,G.page),p.value=Math.ceil(f.value.length/u.pageSize),(G.totalSize&&f.value.length>=G.totalSize||Y<G.page.length)&&(A.value=!1)),B.value=!1}catch(O){console.error("[FoxUI] ActionSheet load more data fail",O),A.value=!0,p.value=0,f.value=[]}setTimeout(()=>{k("loaded-data")},250)},B=t.ref(!1),A=t.ref(!0),T=async()=>{if(!u.source){B.value=!1;return}await w(u.source,p.value+1,u.pageSize)};let $=null;t.watch(h,(F,H)=>{$&&(clearTimeout($),$=null),ue(F)&&!ue(H)&&($=setTimeout(()=>{R()},u.searchDelayTriggerClear))});const I=()=>{A.value=!0,p.value=0,f.value=[],u.source&&T()},R=()=>{I()};t.watch([()=>u.source,()=>u.pageSize,()=>u.params],async([F,H,Y])=>{u.source&&I()},{immediate:!0});const V=t.computed(()=>!u.multiple&&u.isAutoBackFill),E=t.ref([]);let P=null;const x=t.ref(u.visible);t.watch(()=>u.visible,F=>{x.value!==F&&(x.value=F),F?P=[...E.value]:P=null});const U=(F,H)=>{const Y=[];return Array.isArray(F)||(F=[F]),F.forEach(O=>{let G=Xm(u,H,O,u.valueType);G!==-1&&Y.push(G)}),Pe(Y,E.value)?!1:(E.value=Y,!0)};t.watch([()=>u.modelValue,()=>f.value],([F,H],[Y,O])=>{if(U(F,H)){const oe=K();J(oe)}},{deep:!0});const K=()=>{const F=[],H=[],Y=[];for(let le of E.value){const re=f.value[le];H.push(re);const ce=dn(u,re);if(Y.push(ce),u.valueType==="item")F.push(re);else if(u.valueType==="text")F.push(ce);else{const Ne=Ps(u,re);F.push(Ne)}}let O=null,G=null,oe=null;return u.multiple?(O=F,G=Y,oe=H):(O=F[0]??null,G=Y[0]??null,oe=H[0]??null),{value:O,text:G,item:oe}},J=F=>{k("update:modelValue",F.value),k("update:text",F.text),k("change",F.value,F.item,F.text)},_=()=>{P&&(E.value=P)},j=F=>{const H=E.value.indexOf(F);u.multiple?H===-1?E.value.push(F):E.value.splice(H,1):H===-1?E.value=[F]:E.value=[],(V.value||!u.poppable&&!u.showFooter)&&D()},q=F=>{x.value=F,k("update:visible",F)},M=()=>{const F=()=>{_(),q(!1)},H=u.beforeMethod??u.beforeClose;if(typeof H=="function"){const Y=H("close");yt(Y)?Y.then(O=>{O!==!1&&F()}).catch(()=>{F()}):Y!==!1&&F()}else F()},D=()=>{const F=K(),H=()=>{J(F),q(!1)},Y=u.beforeMethod??u.beforeClose;if(typeof Y=="function"){const O=Y("confirm",F.value,F.item,F.text);yt(O)?O.then(G=>{G!==!1&&H()}).catch(()=>{H()}):O!==!1&&H()}else H()},W=()=>{let F=y.title.value??"";g.title&&(F=g.title());const H=t.h("view",{class:["fox-actionsheet__header-title"]},[F]),Y=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:M});return t.h("view",{class:["fox-actionsheet__header"]},[H,Y])},L=()=>{let F=null;if(g.search)F=g.search();else{const H={onSearch:I,placeholder:y.seachPlaceholder.value,disabled:u.disabled,modelValue:h.value,"onUpdate:modelValue":Y=>{h.value=Y}};F=t.h(r,H,{leftin:()=>t.h(d)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[F])},z=(F,H,Y,O,G)=>{if(g.optionLabel)return g.optionLabel({text:F,checked:H,disabled:Y,subText:O,item:G});const oe=[],le=t.h("view",{class:"fox-actionsheet__list-item-text"},[F]);if(oe.push(le),O){const re=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[O]);oe.push(re)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},oe)},X=(F,H,Y,O)=>{if(g.optionIcon)return g.optionIcon({checked:F,disabled:H,iconSize:Y,item:O});if(F){if(g.checkedIcon)return g.checkedIcon({disabled:H,item:O});{const G=u.checkedIcon??i;return t.h(G,{width:Y,height:Y,class:["fox-actionsheet__list-item-icon"]})}}else{if(g.icon)return g.icon({disabled:H,item:O});{const G=u.icon??s;return t.h(G,{width:Y,height:Y,class:["fox-actionsheet__list-item-icon"]})}}},Z=()=>{const F=[];for(let H=0;H<f.value.length;H++){const Y=f.value[H],O=dn(u,Y),G=br(u,Y),oe=["fox-actionsheet__list-item"],le={};let re=Qm(u,Y),ce=u.iconSize?de(u.iconSize):null;const Ne=Gm(u,Y,H);Ne&&(re=re||Ne.disabled,Ne.class&&oe.push(Ne.class),Ne.style&&Object.assign(le,Ne.style)),re=!!(u.disabled||re);const Ce=E.value.includes(H);re&&oe.push("is-disabled"),Ce&&oe.push("is-checked");const _t={class:oe,style:le,key:`${H}`,onClick:()=>{re||j(H)}};let et=[];if(g.option)et.push(g.option({item:Y,checked:Ce,disabled:re}));else{const Hs=z(O,Ce,re,G,Y);et.push(Hs);const js=X(Ce,re,ce,Y);et.push(js),u.textPosition==="right"&&et.reverse()}const Us=t.h("view",_t,et);F.push(Us)}return F},te=()=>{let F=[];if(g.buttons)F=g.buttons();else{const Y=t.h(l,{type:"primary",block:"block",onClick:D,disabled:u.disabled},{default:()=>y.confirmText.value});F.push(Y)}return t.h("view",{class:"fox-actionsheet__footer"},[F])};return Ie({search:async(F=null,H=!0)=>{S.value=F&&t.toRaw(F),t.triggerRef(S),H&&(A.value=!0,p.value=0,f.value=[]),t.nextTick(()=>{T()})},clear:()=>{A.value=!0,p.value=0,f.value=[]},confirm:()=>{D()},cancel:()=>{M()}}),()=>{const F=[];if(u.showHeader){const ce=W();F.push(ce)}if(u.showSearchbar){const ce=L();F.push(ce)}let H=null;if(g.content)H=g.content();else{const ce=Z(),Ne={hasMore:A.value,loadText:y.loadText.value,loadMoreText:y.loadMoreText.value,modelValue:B.value,"onUpdate:modelValue":Ce=>{B.value=Ce},onLoadMore:T};H=t.h(o,Ne,{default:()=>ce})}const Y={};u.optionsHeight&&(Y.height=u.optionsHeight);const O={"fox-actionsheet__list":!0};u.poppable||(O["fox-actionsheet__list--inner"]=!0);const G=t.h("view",{class:O,style:Y},[H]);if(F.push(G),u.showFooter&&!V.value){const ce=te();F.push(ce)}const oe=t.h("view",{class:"fox-actionsheet"},F);if(!u.poppable)return oe;const le=["fox-actionsheet__popup"];u.popClass&&le.push(u.popClass);const re={popClass:le.join(" "),visible:x.value,closeable:!1,"onUpdate:visible":q,position:u.position,round:"round",onClickOverlay:M,closeOnClickOverlay:u.closeOnClickOverlay};return t.h(a,re,{default:()=>oe})}}}}const{componentName:ep,create:tp,scope:np}=Q("actionsheet-pane"),no=tp(_m(ep,np,fe,eo,Le,to,ne.CheckNormal,ne.Checked,ne.Close,ne.Search2)),kr={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 op(e,n,a,o,l,r,s){return{props:{...pe,...ge,...kr,...un},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),m=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return m.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:g}=se.useFoxI18n(n),k=g(i,["placeholder"]),v=t.ref(!1),y=qe(i,"modelValue",null,u),b=t.ref(""),f=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),p="fox-input-item",h=t.computed(()=>({[p]:!0,"is-disabled":d.value,"is-readonly":m.value})),S=Ve(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const D={};return S.value&&(D["text-align"]=S.value),D}),C=t.ref(!1),w=()=>{C.value=!0},B=D=>{C.value=D},A=D=>{y.value=D,u("update:modelValue",D)},T=(D,W)=>{u("change",D,W)},$=D=>{let L=D.target.value;v.value=!0,u("focus",L,D)},I=D=>{setTimeout(()=>{v.value=!1},0);let L=D.target.value;i.maxLength&&L.length>Number(i.maxLength)&&(L=L.slice(0,Number(i.maxLength))),u("blur",L,D)},R=D=>{b.value=D,u("update:text",D)},V=t.computed(()=>({[`${p}__append`]:!0,"is-disabled":d.value,"is-readonly":m.value})),E=t.computed(()=>ve(i.unit)>0),P=t.computed(()=>ve(i.unit)>0&&!v.value),x=t.computed(()=>({hidden:!P.value})),U=D=>{y.value="",u("update:modelValue","",D),u("change","",D),u("clear","")},K=t.computed(()=>i.clearable&&!d.value&&!m.value),J=t.computed(()=>ve(y.value)>0&&v.value),_=D=>{J.value?U(D):w()},j=t.computed(()=>J.value&&K.value?o:l),q=t.computed(()=>({action:!0})),M=t.ref(null);return Ie({search:D=>{M.value&&M.value.search(D)},clear:()=>{M.value&&M.value.clear},confirm:D=>{M.value&&M.value.confirm()},cancel:()=>{M.value&&M.value.cancel()}}),()=>{const D={class:h.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:w,onFocus:$,onBlur:I},W=[],L=t.h("input",D);W.push(L);const z=[],X={class:["action-icon"]},Z=t.h(j.value,X),te={class:q.value,onClick:_},F=t.h("view",te,{default:()=>[Z]});if(z.push(F),E.value){const Ce=t.h("view",{class:x.value},[i.unit]);z.push(Ce)}const H={class:V.value},Y=t.h("view",H,{default:()=>z});W.push(Y);const O={default:()=>W};O.label=c.slots.default,O.prepend=c.slots.prepend,O.append=c.slots.append,O.fixedPreTip=c.slots.fixedPreTip,O.fixedTip=c.slots.fixedTip;const G=be(i,un);G.ref=M,G.class=i.actionsheetProps,G.disabled=d.value||m.value,G.visible=C.value,G["onUpdate:visible"]=B,G.modelValue=y.value,G["onUpdate:modelValue"]=A,G.text=b.value,G["onUpdate:text"]=R,G.onChange=T,G.poppable=!0,G["text-position"]=i.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},le=t.h(r,G,oe);O.hide=()=>[le];const ce={...Vt(i,kr,un)};return i.prop&&(ce.prop=`${i.prop}_item`),t.h(a,ce,O)}}}}const{componentName:lp,create:ap,scope:rp}=Q("actionsheet-item"),hl=ap(op(lp,rp,we,ne.CircleClose,ne.ArrowRight,no)),zo={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:sp,create:ip}=Q("input-number"),cp=ip({components:{Minus:ne.Minus,Plus:ne.Plus},props:{...zo},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const k=sp;return{[k]:!0,[`${k}--disabled`]:e.disabled}}),o=k=>Number(k).toFixed(Number(e.decimalPlaces)),l=k=>{const v=k.target;n("update:modelValue",v.valueAsNumber,k)},r=(k,v)=>{let y=o(k);n("update:modelValue",y,v),n("change",y,v)},s=(k=Number(e.modelValue))=>k<Number(e.max)&&!e.disabled,i=(k=Number(e.modelValue))=>k>Number(e.min)&&!e.disabled,c=k=>{if(n("reduce",k),i()){let v=Number(e.modelValue)-Number(e.step);r(v,k)}else n("overlimit",k,"reduce")},d=k=>{if(n("add",k),s()){let v=Number(e.modelValue)+Number(e.step);r(v,k)}else n("overlimit",k,"add")},m=k=>{e.disabled||e.readonly||n("focus",k)},u=k=>{if(e.disabled||e.readonly)return;let y=k.target.valueAsNumber;y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),r(y,k),n("blur",k)},g=k=>{let v=Number(k);return v<Number(e.min)?v=Number(e.min):v>Number(e.max)&&(v=Number(e.max)),v};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const k=g(e.modelValue);k!==Number(e.modelValue)&&r(k,{})}),{classes:a,change:l,blur:u,focus:m,add:d,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:he}}}),up=["min","max","disabled","readonly","value"];function dp(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,up),t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[4]=(...c)=>e.add&&e.add(...c))},[t.renderSlot(e.$slots,"right-icon",{},()=>[t.createVNode(i,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2)],2)}const Ze=ee(cp,[["render",dp]]);function fp(e,n,a,o){return{props:{...pe,...ge,...zo},emits:["change","update:modelValue","setValue","add","reduce"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),d=e,m=qe(l,"modelValue",null,c),u=v=>{m.value=v,c("update:modelValue",v,{}),c("change",v,{})},g=v=>{c("add",v)},k=v=>{c("reduce",v)};return()=>{const v={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},y=be(l,zo),f={...r.attrs,...y,disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":u,onAdd:g,onReduce:k},p=t.h(o,f,v),h=[];h.push(p);const S={default:()=>h};S.label=r.slots.default,S.fixedPreTip=r.slots.fixedPreTip,S.fixedTip=r.slots.fixedTip;const C={...be(l,ge,pe)};return l.prop&&(C.prop=`${l.prop}_item`),C["content-class"]=d,t.h(a,C,S)}}}}const{componentName:mp,create:pp,scope:hp}=Q("inputnumber-item"),gl=pp(fp(mp,hp,we,Ze)),gp={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 yp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Sr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Cr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function vp(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function mo(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function wr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Nr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function po(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=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(xe(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:{...gp},emits:["update:modelValue","change","loaded-data","click"],setup(l,{slots:r,emit:s}){const i=e,c=kp(),d=t.ref([]),m=t.computed(()=>d.value.filter(q=>vp(l,q)!==!1)),u=t.ref(-1),g=()=>{const q=l.modelValue,M=m.value.findIndex(D=>Sr(l,D)===q);u.value!==M&&(u.value=M,l.scroll&&_(M))};t.watch([()=>l.modelValue,m],()=>{g()});const k=q=>u.value===q,v=q=>{if(q<0&&q>=m.value.length)return!1;const M=m.value[q],W=(po(l,M,q)??{}).status??mo(l,M);return k(q)||W},y=t.computed(()=>{const q={[i]:!0};return l.mode?q[`is-${l.mode}`]=!0:l.direction&&(q[`is-${l.direction}`]=!0),l.scroll&&(q["is-scroll"]=!0),q}),b=t.computed(()=>({})),f=(q,M,D,W,L)=>{const z={[`${i}__step`]:!0};return L&&(z[`${L}`]=!0),z[`${p.value}`]=!0,W&&(z["is-doit"]=!0),q===u.value?z["is-active"]=!0:M==="done"?z["is-done"]=!0:M==="error"?z["is-error"]=!0:M==="half"?z["is-half"]=!0:D?z["is-disabled"]=!0:z["is-normal"]=!0,z},p=t.computed(()=>{if(l.mode==="simple")return"start";let q=l.align;return q||(l.direction==="vertical"?q="start":q="center"),q}),h=(q,M={})=>{const D={...M};return p.value==="start"&&q===m.value.length-1?D.flex="0 0 auto":l.step?l.direction==="vertical"?D.height=l.step:D.width=l.step:D.flex="1 1 100%",D},S=(q,M)=>{let D={};if(M<m.value.length-1){const W=M+1;v(M)&&v(W)?l.direction==="vertical"?D.height="100%":D.width="100%":D.opacity="0"}return D},N=q=>m.value.length-1===q,C=(q,M)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&M>u.value||u.value===M)return;const D=u.value,W=M;u.value=M,l.scroll&&_(M);const L=Sr(l,q);s("update:modelValue",L);const z={fromIndex:D,currentIndex:W,item:q,items:m.value,clickNavigatePolicy:l.clickNavigatePolicy};s("change",L,z)},w=t.ref(!0),B=async(q,M)=>{try{const D=await c.load("stesbar",q,M);Array.isArray(D)&&(d.value=D),w.value=!1}catch(D){console.error("[FoxUI] Load StepsBar Data Fail",D),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([q,M])=>{q&&B(q,M)},{immediate:!0});const A=(q,M,D,W,L)=>{let z=null;if(r.icon)z=r.icon({item:q,index:M,status:W});else if(W==="done"){const Z={};l.iconSize&&(Z.width=l.iconSize,Z.height=l.iconSize);const te=l.icon??a;z=t.h(te,Z)}else{const Z=D??`${M+1}`;z=t.h("span",{},[Z])}const X={class:"fox-steps-bar__icon",onClick:()=>{s("click",{item:q,index:M}),!L&&C(q,M)}};return t.h("view",X,[z])},T=(q,M,D)=>{const W=t.h("i",{class:"fox-steps-bar__line-inner",style:S(q,M)});return t.h("view",{class:"fox-steps-bar__line"},[W])},$=()=>{let q=null;if(r.markIcon)q=r.markIcon();else{const D={};l.iconSize&&(D.width=l.markIconSize,D.height=l.markIconSize);const W=l.markIcon??o;q=t.h(W,D)}return t.h("view",{class:"fox-steps-bar__mark"},[q])},I=(q,M,D,W,L)=>{const z=[];if(!N(M)){const te=T(q,M);z.push(te)}const X=A(q,M,D,W,L);z.push(X);const Z={class:"fox-steps-bar__head"};return t.h("view",Z,z)},R=(q,M,D,W)=>{let L=null;r.main?L=r.main({item:q,index:M,status:D}):L=yp(l,q);const z={class:"fox-steps-bar__main",onClick:()=>{s("click",{item:q,index:M}),!W&&C(q,M)}};return t.h("view",z,[L])},V=(q,M,D)=>{let W=null;if(r.sub){W=r.sub({item:q,index:M,status:D});const L={class:"fox-steps-bar__sub"};return t.h("view",L,[W])}return null},E=(q,M)=>{const D=po(l,q,M)??{},W=D.status??mo(l,q);let L=Cr(l,q);D.disabled===!0&&(L=!0),l.disabled===!0&&(L=!0);const z=D.label??Nr(l,q),X=[],Z=A(q,M,z,W,L);Z&&X.push(Z);const te=R(q,M,W,L);if(te&&X.push(te),!N(M)){const oe=T(q,M);oe&&X.push(oe)}const F=t.h("view",{class:"fox-steps-bar__head"},X),H=D.class,Y=D.style??{};let O=wr(l,q);D.doit===!0&&(O=!0);const G={ref:J(M),class:f(M,W,L,O,H),style:h(M,Y)};return t.h("view",G,[F])},P=(q,M)=>{const D=po(l,q,M)??{},W=D.status??mo(l,q);let L=Cr(l,q);D.disabled===!0&&(L=!0),l.disabled===!0&&(L=!0);const z=D.label??Nr(l,q),X=[],Z=l.layout;for(let O of Z)if(O==="head"){const G=I(q,M,z,W,L);X.push(G)}else if(O==="main"){const G=R(q,M,W,L);X.push(G)}else if(O==="sub"){const G=V(q,M,W);X.push(G)}else if(O==="mark"){const G=$();X.push(G)}const te=D.class,F=D.style??{};let H=wr(l,q);D.doit===!0&&(H=!0);const Y={ref:J(M),class:f(M,W,L,H,te),style:h(M,F)};return t.h("view",Y,X)},x=t.ref(),U=t.ref([]),K=(q,M)=>{U.value[M]=q},J=q=>M=>{K(M,q)},_=(q,M)=>{const D=x.value,W=U.value;if(!D||!W||!W[q])return;const L=W[q];let z=0;l.direction==="vertical"?z=L.offsetTop-(D.offsetHeight-L.offsetHeight)/2:z=L.offsetLeft-(D.offsetWidth-L.offsetWidth)/2,j(D,z,.3,l.direction)},j=(q,M,D,W)=>{let L=0;const z=W==="horizontal"?q.scrollLeft:q.scrollTop,X=Math.round(D*1e3/16);function Z(){W==="horizontal"?q.scrollLeft+=(M-z)/X:q.scrollTop+=(M-z)/X,++L<X&&Ke(Z)}Z()};return()=>{const q=[];if(l.mode==="simple")for(let D=0;D<m.value.length;D++){const W=m.value[D],L=E(W,D);q.push(L)}else for(let D=0;D<m.value.length;D++){const W=m.value[D],L=P(W,D);q.push(L)}const M={ref:x,class:y.value,style:b.value};return t.h("view",M,q)}}}}const{componentName:Cp,create:wp,scope:Np}=Q("steps-bar"),yl=wp(Sp(Cp,Np,ne.Checklist,ne.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=ol()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=ll(),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),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 Vp(e,n){return new Ap(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]}},$p=(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}),d=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})),u=()=>{s("click")},g=t.ref(null),k=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},v={x:0,y:0},f=Vp(p=>{if(!g.value)return;const h=g.value;k(),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,v.x=i.left,v.y=i.top},p=>{if(!g.value)return;const h=g.value;k(),i.left=v.x+p.x,i.top=v.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 N=t.h(a,{class:m.value});p.push(N)}const S={ref:N=>{g.value=N},class:c.value,style:d.value,onClick:u};return t.h("view",S,p)}}}),{componentName:Ep,create:xp,scope:Dp}=Q("floating-button"),vl=xp($p(Ep,Dp,ne.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 qp(e,n,a){return{props:{...Ip},emits:["click","update:modelValue"],setup(o,{emit:l}){const r=t.computed(()=>{const u={[`${e}`]:!0};return o.disabled?u[`${e}--disabled`]=!0:u[`${e}--${o.type}`]=!0,u}),s=qe(o,"modelValue"),i=t.computed(()=>s.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),d=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),m=()=>{l("update:modelValue",!s.value)};return()=>{const u=[];if(i.value){const b={class:c.value},f=t.h("span",b,[i.value]);u.push(f)}const g={class:d.value},k=o.icon??a,v=t.h(k,g);return u.push(v),o.textPosition==="right"&&u.reverse(),t.h("view",{class:r.value,onClick:m},u)}}}}const{componentName:Pp,create:Mp,scope:Lp}=Q("more-button"),bl=Mp(qp(Pp,Lp,ne.RectUp)),zp={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}},Rp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Fp(e,n,a){return{props:{...zp},setup(o,{attrs:l,slots:r}){const{toLocaleRefs:s}=se.useFoxI18n(n),i=s(o,["confirmText","cancelText"]),c=e,d=t.ref(!0),m=S=>{d.value=S},u=S=>{if(typeof o.unmount=="function")try{o.unmount()}catch(N){console.error(N)}if(typeof o.callback=="function")try{o.callback(S)}catch(N){console.error(N)}},g=()=>{u("confirm")},k=()=>{u("cancel")},v=()=>{o.closeOnClickOverlay!==!1&&u("close")},y=(S,N)=>Rp(S)?(N.src=S,t.h("img",N)):typeof S=="string"?(Array.isArray(N.class)?N.class.push(S):N.class&&typeof N.class=="object"?N[`${S}`]=!0:typeof N.class=="string"?N.class=`${N.class}, ${S}`:N.class=S,t.h(o.tag,N)):t.h(S,N),b=()=>{const S=[];if(o.icon){const C={class:[`${c}__header-icon`]},w=y(o.icon,C);S.push(w)}if(o.title){const C=t.h("view",{class:`${c}__header-title`},[o.title]);S.push(C)}if(o.showClose&&o.closeIcon){const C={class:[`${c}__header-close-icon`],onClick:v},w=y(o.closeIcon,C);S.push(w)}const N={class:[`${c}__header`]};return t.h("view",N,S)},f=(S,N)=>{const C=[];if(N){const B={class:`${c}__group-title`},A=t.h("view",B,[N]);C.push(A)}if(S){const B=[];Array.isArray(S)||(S=[S]);for(let A of S){const T={class:`${c}__group-row`,innerHTML:A},$=t.h("view",T);B.push($)}if(B.length>0){const A={class:`${c}__group-rows`},T=t.h("view",A,B);C.push(T)}}if(C.length===0)return null;const w={class:`${c}__group`};return t.h("view",w,C)},p=()=>{const S=[];if(typeof o.message=="string")S.push(o.message);else if(Array.isArray(o.message))for(let C of o.message)if(typeof C=="string"){const w=f(C);S.push(w)}else{const w=f(C.content,C.title);S.push(w)}else if(typeof o.message=="function"){const C=o.message();S.push(C)}else{const C=o.message;S.push(C)}const N={class:`${c}__body`};return t.h("view",N,S)},h=()=>{const S=[];if(o.showCancelButton){const C={class:[`${c}__footer-button`],style:{},onClick:k};o.cancelButtonClass&&C.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(C.style,o.cancleButtonStyle);const w=t.h("button",C,[o.cancelButtonText??i.cancelText.value]);S.push(w)}if(o.showConfirmButton){const C={class:[`${c}__footer-button`],style:{},onClick:g};o.confirmButtonClass&&C.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(C.style,o.confirmButtonStyle);const w=t.h("button",C,[o.confirmButtonText??i.confirmText.value]);S.push(w)}if(S.length===0)return null;const N={class:`${c}__footer`};return t.h("view",N,S)};return()=>{const S=[],N=b();N&&S.push(N);const C=p();C&&S.push(C);const w=h();w&&S.push(w);const B={class:{[`${c}`]:!0,[`${c}--${o.type||"info"}`]:!0}},A=t.h("view",B,S),T=[`${c}__popup`];o.popClass&&T.push(o.popClass);const $={};o.width&&($.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&($.height=typeof o.height=="number"?`${o.height}px`:o.height);const I={popClass:T.join(" "),style:$,visible:d.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":m,position:o.position,round:"round",onClickOverlay:v,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,I,{default:()=>A})}}}}const{componentName:Op,create:Kp,scope:Up}=Q("messagebox"),Hp=Kp(Fp(Op,Up,fe)),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%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",Wp="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",Yp="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",Xp="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",Qp=new On,Gp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Zp=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-${Qp.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(Hp,e);n.appendChild(o),t.render(r,o)},lt={show:(e,n,a,o)=>{const l={...Gp};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=Yp:r==="warning"?l.icon=Xp:r==="error"?l.icon=jp:l.icon=Wp),e==="alert"?(l.showCancelButton=!1,l.showConfirmButton=!0):e==="confirm"&&(l.showCancelButton=!0,l.showConfirmButton=!0),l.showClose&&!l.closeIcon&&(l.closeIcon=ne.Close),new Promise((s,i)=>{const c=l.callback;l.callback=d=>{if(typeof c=="function")try{c(d)}catch(m){console.error(m)}s({action:d})},Zp(l)})},alert:(e,n,a)=>lt.show("alert",e,n,a),confirm:(e,n,a)=>lt.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=lt.alert,e.config.globalProperties.$confirm=lt.confirm}},Jp=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let l=!0,r=!0;for(let i in n)i==="bubbles"?l=!!n[i]:i==="cancelable"?r=!!n[i]:o[i]=n[i];o.initEvent(e,l,r),(a??document).dispatchEvent(o)},_p=new On,eh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),th=e=>`${e}-${_p.get()}`,nh=Symbol.for("InnerPageScopeKey"),oh=Symbol.for("PageWrapperKey"),lh="FoxLeave",ah="FoxLeaveEnd",rh={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 sh(e,n,a,o){return{props:{...Fe,...rh},emits:["update:visible"],setup(l,{attrs:r,slots:s,emit:i}){t.provide(nh,!0);const c={};t.provide(oh,c);const d=C=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),m=()=>{d()},u=e,g=C=>{k.value=C,i("update:visible",C)},k=t.ref(!1),v=(C,w)=>eh(C)?(w.src=C,t.h("img",w)):typeof C=="string"?(Array.isArray(w.class)?w.class.push(C):w.class&&typeof w.class=="object"?w[`${C}`]=!0:typeof w.class=="string"?w.class=`${w.class}, ${C}`:w.class=C,t.h(l.tag,w)):t.h(C,w),y=()=>{if(!l.showHeader)return null;const C=[];if(s.header){const B=s.header();C.push(B)}else if(l.title){const B=t.h("view",{class:`${u}__header-title`},[l.title]);C.push(B)}if(C.length===0)return null;const w={class:[`${u}__header`]};return t.h("view",w,C)},b=()=>{if(!l.showClose)return null;const C={class:[`${u}__close-icon`],onClick:m},w=l.closeIcon??o;return v(w,C)};let f=null;const p=C=>{Jp(ah,{},f)},h=th(e),S=()=>{g(!0)},N=()=>{if(!f)return;const C=f.querySelector(".fox-overlay");C&&(C.classList.add("overlay-fade-leave-active"),C.classList.add("overlay-fade-leave-to"));const w=f.querySelector(".fox-popup");w&&(w.classList.add(`fox-popup-slide-${l.position}-leave-active`),w.classList.add(`fox-popup-slide-${l.position}-leave-to`),w.addEventListener("animationend",p,{once:!0}),w.addEventListener("transitionend",p,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{f=document.querySelector(`.${h}`),f?.addEventListener(lh,N,{once:!0}),S()}),()=>{const C=[],w=y();w&&C.push(w);const B=b();B&&C.push(B);const A=s.default?s.default():[];Reflect.apply([].push,C,A);const T={[`${u}`]:!0};l.mode&&(T[`${u}--${l.mode}`]=!0);const $={class:T},I=t.h("view",$,C),R=[`${u}__popup`,h];l.popClass&&R.push(l.popClass),l.position&&R.push(`${u}__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 P={...be(l,Fe),popClass:R.join(" "),style:V,visible:k.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:m,"onUpdate:visible":g},x=t.h(a,P,{default:()=>I});return t.h("div",{class:[`${u}__root`,h]},[x])}}}}const{componentName:ih,create:ch,scope:uh}=Q("popup-wrapper"),kl=ch(sh(ih,uh,fe,ne.Close)),dh={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function fh(e,n,a,o){return{props:{...dh},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 d={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,d,s),u={class:`${e}`};return t.h("view",u,[m])}}}}const{componentName:mh,create:ph,scope:hh}=Q("dropdown"),Sl=ph(fh(mh,hh,fe));function gh(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 yh={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 vh(e,n,a,o=!1){return{props:{...yh},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={},S=l.textColor??l.color;return S&&(h.color=S),h}),d=(h,S)=>{let N=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const C=l.highlightFilter;if(h.indexOf(C)!==-1){const B=h.replace(new RegExp(C,"g"),`<span>${C}</span>`);S.innerHTML=B,S.class["is-highlight"]=!0,N=t.h(l.tag,S)}}else if(typeof l.highlightFilter=="function"){const C=l.highlightFilter(h);C&&(S.innerHTML=C,S.class["is-highlight"]=!0,N=t.h(l.tag,S))}return N},m=h=>{r.emit("click",h)};let u="";const g=()=>{const h=s.value;if(!h)return;const S=h.clientWidth;gh(h,N=>{const C=h.innerHTML??"";ue(C)||N<S||(u?a?.show(h,C,{type:"text",id:u,showArrow:l.showArrow},!0):u=a?.show(h,C,{type:"text",showArrow:l.showArrow},!0)??"")})},k=()=>{u&&a?.hide(u)};let v=null;const y=h=>{v||(v=setTimeout(()=>{g(),v=null},l.showAfter??0))},b=h=>{v&&(clearTimeout(v),v=null),setTimeout(()=>{k()},l.hideAfter??0)},f=()=>{const h=s.value;h&&(h.addEventListener("mouseover",y),h.addEventListener("mouseleave",b))},p=()=>{const h=s.value;h&&(h.removeEventListener("mouseover",y),h.removeEventListener("mouseleave",b))};return t.onMounted(()=>{!ye(l.showOverflowTooltip)||!a||f()}),t.onBeforeUnmount(()=>{!ye(l.showOverflowTooltip)||!a||p()}),()=>{const h={onClick:m,class:i.value,style:c.value,ref:s};let S=null;if(ye(l.numberFormat)&&typeof r.slots.default=="function"){const B=r.slots.default();if(Array.isArray(B)&&B.length===1){const A=B[0].type.toString();if(A==="Symbol(Text)"||A==="Symbol(v-txt)"){const T=me(l.digits),$=me(l.decimalLength),I=ye(l.autoPadding);let R=`${B[0].children}`,V=R.split("").reverse().join("");V=wn(V,$,I,T,l.separator),R=V.split("").reverse().join(""),l.highlightFilter!==void 0&&(S=d(R,h)),S||(h.innerHTML=R,S=t.h(l.tag,h))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const B=r.slots.default();if(Array.isArray(B)&&B.length===1){const A=B[0].type.toString();if(A==="Symbol(Text)"||A==="Symbol(v-txt)"){const T=`${B[0].children}`;S=d(T,h),S||(h.innerHTML=T,S=t.h(l.tag,h))}}}S||(S=t.h(l.tag,h,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return S;let C=null;if(l.icon){const B={[`${e}__mark-wrap`]:!0};l.type&&(B[`${e}__mark-wrap--${l.type}`]=!0);const A={},T=l.color;T&&(A.color=T);const $={class:B,style:A};C=t.h("view",$,t.h(l.icon))}else if(r.slots.mark){const B={[`${e}__mark-wrap`]:!0};l.type&&(B[`${e}__mark-wrap--${l.type}`]=!0);const A={},T=l.color;T&&(A.color=T);const $={class:B,style:A};C=t.h("view",$,{default:r.slots.mark})}else{const B={[`${e}__mark`]:!0};l.type&&(B[`${e}__mark--${l.type??"default"}`]=!0);const A={},T=l.color;T&&(A["background-color"]=T);const $={class:B,style:A};C=t.h("view",$)}const w={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",w,[C,S])}}}}const{componentName:bh,create:kh,scope:Sh}=Q("text"),Cl=kh(vh(bh,Sh,$t,!1));function Ch(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[l]){let c=n;for(let d=0;c&&d<r.length;d++){let m=r[d],u=c.find(g=>g[o]===m);if(!u)break;s.push(u[a])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let d=n[c],m=r[c];const u=d.find(g=>g[o]===m);if(!u)break;s.push(u[a])}else{let c=n;for(let d=0;c&&d<r.length;d++){let m=r[d],u=c.find(g=>g[o]===m);if(!u)break;s.push(u[a]),c=u[l]}}return s}class wh{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(xe(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function Nh(){const e=t.getCurrentInstance();return new wh(e.proxy)}const Bh={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 Ah(e,n,a=!1){return{props:{...Bh},setup(o,{attrs:l,slots:r}){const s=Nh(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([m,u])=>{i.value=await s.load(o.sourceType,m,u)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let m=Ch(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)}),d=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(d,m,{default:()=>c.value}):t.h(d,m,c.value)}}}}const{componentName:Vh,create:Th,scope:$h}=Q("mapping"),wl=Th(Ah(Vh,$h,!1));function Eh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return _r(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:p2,create:xh,scope:h2}=Q("domain-provider"),Nl=xh(Eh()),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(ct&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const s=(g,k)=>{if(m===null){r.set(g,{visible:null,callback:k});return}l.has(g)&&m.unobserve(g),l.set(g,{visible:null,callback:k}),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;Gi({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 u=(g,k,v)=>{m=new IntersectionObserver(y=>{for(let b of y){let f=!1;b.intersectionRatio>0&&(f=!0);const p=l.get(b.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:k,threshold:v}),r.forEach((y,b)=>{l.set(b,y),m?.observe(b)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([g,k])=>{if(k||!g||m)return;let v=null;typeof g=="string"?v=document.querySelector(g):v=g,v&&u(v,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{m&&(m.disconnect(),m=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:g2,create:qh,scope:y2}=Q("rolling-provider"),Bl=qh(Ih()),{componentName:Ph,create:Mh}=Q("cell"),Lh=Mh({components:{Right:ne.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.computed(()=>{const r=Ph;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:he(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),zh={key:0,class:"fox-cell__icon"},Rh={key:1,class:"fox-cell__title"},Fh={class:"title"},Oh={class:"fox-cell__title-desc"};function Kh(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",zh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Rh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Fh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Oh,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 Al=ee(Lh,[["render",Kh]]),{componentName:Uh,create:Hh}=Q("cell-group"),jh=Hh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Uh]:!0}))}}}),Wh={key:1,class:"fox-cell-group__title"},Yh={key:3,class:"fox-cell-group__desc"},Xh={class:"fox-cell-group__wrap"};function Qh(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",Wh,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",Yh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Xh,[t.renderSlot(e.$slots,"default")])],2)}const Vl=ee(jh,[["render",Qh]]),{componentName:Gh,create:Zh}=Q("image"),Jh=Zh({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:ne.Image,ImageError:ne.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),o=t.computed(()=>{const k=Gh;return{[k]:!0,[`${k}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const k={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(v=>{v.forEach(y=>{y.isIntersecting&&(r.value=!0,l.value.disconnect())})},k),s.value&&l.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let k={};return e.width&&(k.width=he(e.width)),e.height&&(k.height=he(e.height)),e.radius!==void 0&&e.radius!==null&&(k.overflow="hidden",k.borderRadius=he(e.radius)),k}),d=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,k=>{a.isError=!1,a.loading=!0});const m=()=>{a.loading=!1,n("load")},u=()=>{a.isError=!0,a.loading=!1,n("error")},g=k=>{n("click",k)};return{...t.toRefs(a),imageClick:g,classes:o,styles:d,stylebox:c,error:u,load:m,show:r,imgRef:s}}}),_h=["src","date-src","alt"],eg={key:0,class:"fox-img-loading"},tg={key:1,class:"fox-img-error"};function ng(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,_h),e.loading?(t.openBlock(),t.createElementBlock("div",eg,[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",tg,[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=ee(Jh,[["render",ng]]),{create:og}=Q("layout"),$l=og({}),{componentName:lg,create:ag}=Q("col"),rg=ag({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=lg,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 sg(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 El=ee(rg,[["render",sg]]),{componentName:ig,create:cg}=Q("row"),ug=cg({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=ig;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 fg(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=ee(dg,[["render",fg]]),{create:mg}=Q("sticky"),pg=mg({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),i=t.computed(()=>l.fixed?{[e.position]:`${r.value}px`,transform:l.transform?`translate3d(0, ${l.transform}px, 0)`:void 0,position:l.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const f=e.container;if(!a.value&&!f)return;const p=De(a),u=o.value,h=De(u),k=De(f);l.height=p.height;const y=()=>{let b=!1;if(e.position==="top")b=f?r.value>p.top&&k.bottom>0:r.value>p.top;else{const d=document.documentElement.clientHeight;b=f?k.bottom>0&&d-r.value-h.height>k.top:d-r.value<p.bottom}return b},v=()=>{if(f)if(e.position==="top"){const b=k.bottom-r.value-h.height;return b<0?b:0}else{const b=document.documentElement.clientHeight,d=k.bottom-(b-r.value);return d<0?d:0}return 0};l.transform=v(),l.fixed=y()};return t.watch(()=>l.fixed,f=>{n("change",f)}),t.onMounted(()=>{c(),Lo(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Lo(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function hg(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 Ht=ee(pg,[["render",hg]]),{componentName:gg,create:yg}=Q("divider"),vg=yg({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=gg;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 bg(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=ee(vg,[["render",bg]]);function kg(e,n){const a=[],o=l=>{Array.isArray(l)&&l.forEach(r=>{if(t.isVNode(r)){if(n){if(r.type&&r.type.name===n){a.push(r);return}}else a.push(r);r.component?.subTree&&o(r.component.subTree.children),r.children&&o(r.children)}})};return o(e),a}function Sg(e,n,a){const o=kg(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function Cg(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=i=>{i.proxy&&(a.push(t.markRaw(i)),Sg(o,a,n))},r=i=>{a.splice(a.indexOf(t.markRaw(i)),1)},s=Object.assign;return i=>(t.provide(e,s({add:l,remove:r,internalChildren:a},i)),{internalChildren:a})}const{componentName:Br}=Q("grid"),Ms=Symbol("grid"),wg={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}},Ng={props:wg,setup(e,{slots:n}){Cg(Ms,`${Br}-item`)({props:e});const a=t.computed(()=>{const l=Br;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:Bg}=Q("grid"),Il=Bg(Ng);function Vg(e){const n=t.inject(e,null);if(n){const a=t.getCurrentInstance(),{add:o,remove:l,internalChildren:r}=n;o(a),t.onUnmounted(()=>l(a));const s=t.computed(()=>r.indexOf(a));return{parent:n,index:s}}return{parent:null,index:t.ref(-1)}}const{create:Ag,componentName:Vr}=Q("grid-item"),Tg=Ag({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=Vg(Ms);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[Vr]:!0})),s=t.computed(()=>{const f={flexBasis:`${100/+l.columnNum}%`};return l.square?f.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(f.paddingRight=ge(l.gutter),o.value>=l.columnNum&&(f.marginTop=ge(l.gutter))),f}),i=t.computed(()=>{const f=`${Vr}__content`;return{[`${f}`]:!0,[`${f}--border`]:l.border,[`${f}--surround`]:l.border&&l.gutter,[`${f}--center`]:l.center,[`${f}--square`]:l.square,[`${f}--reverse`]:l.reverse,[`${f}--${l.direction}`]:!!l.direction,[`${f}--clickable`]:l.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:f=>{n("click",f)}}}}),$g={class:"fox-grid-item__text"};function Eg(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",$g,[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 ql=ee(Tg,[["render",Eg]]),{componentName:xg,create:Dg}=Q("navbar"),Ig=Dg({components:{Left:ne.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:o,safeAreaInsetTop:l,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let f=t.ref();const p=t.computed(()=>{const b=xg;return{[b]:!0,[`${b}--border`]:a.value,[`${b}--fixed`]:o.value,[`${b}--safe-area-inset-top`]:l.value}}),u=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{f.value=c?.value?.getBoundingClientRect().height,i.value.style.height=f.value+"px"})});function h(){n("on-click-back")}function k(){n("on-click-title")}function y(){n("on-click-icon")}function v(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:p,styles:u,handleLeft:h,handleCenter:k,handleCenterIcon:y,handleRight:v}}}),qg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Pg={key:1,class:"fox-navbar__text"},Mg={class:"fox-navbar__title"},Lg={key:0,class:"fox-navbar__text"},zg={key:1,class:"fox-navbar__text"},Fg={class:"fox-navbar__title"},Rg={key:0,class:"fox-navbar__text"};function Og(e,n,a,o,l,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",qg,[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",Pg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Mg,[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",Lg,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",zg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Fg,[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",Rg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Pl=ee(Ig,[["render",Og]]),Kg=(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}=se.useFoxI18n(n),s=r(o,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(u=!o.visible)=>{l("update:visible",u)},selected:(u,h)=>{l("selected",{item:u,event:h}),c.value=u.id},current:c}}}),{componentName:Ug,create:Hg,scope:jg}=Q("fixednav"),Wg=Hg(Kg(Ug,jg,{[st.name]:st,Left:ne.Left})),Yg={class:"fox-fixednav__list"},Xg=["onClick"],Qg=["src"],Gg={class:"span"},Zg={key:0,class:"b"},Jg={class:"text"};function _g(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",Yg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:p=>e.selected(c,p),key:c.id||f},[t.createElementVNode("img",{src:c.icon},null,8,Qg),t.createElementVNode("view",Gg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Zg,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Xg))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{color:"#fff"}),t.createElementVNode("view",Jg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Ml=ee(Wg,[["render",_g]]),{componentName:ey,create:ty}=Q("menu"),ny=ty({components:{ArrowUp2:ne.ArrowUp2,ArrowDown2:ne.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.ref(0),r=t.ref(!1),s=()=>{const b=t.reactive([]),d=t.reactive([]);return{children:b,linkChildren:g=>{const S=C=>{C.proxy&&(d.push(C),b.push(C.proxy))},N=C=>{if(C.proxy){let w=d.indexOf(C);w>-1&&d.splice(w,1);let B=b.indexOf(C.proxy);w>-1&&b.splice(B,1)}};t.provide("menuParent",Object.assign({removeLink:N,link:S,children:b,internalChildren:d},g))}}},{children:i,linkChildren:c}=s(),f=t.computed(()=>i.some(b=>b.state.showWrapper)),p=t.computed(()=>({[ey]:!0,"scroll-fixed":r.value})),u=()=>{if(o.value){const b=De(o);e.direction==="down"?l.value=b.bottom:l.value=window.innerHeight-b.top}};c({props:e,offset:l});const h=b=>{i.forEach((d,m)=>{m===b?(u(),d.toggle()):d.state.showPopup&&d.toggle(!1,{immediate:!0})})},k=b=>Math.max(0,"scrollTop"in b?b.scrollTop:b.pageYOffset),y=()=>{const{scrollFixed:b}=e,d=k(window);r.value=d>(typeof b=="boolean"?30:Number(b))},v=b=>{let d="";const{titleClass:m}=e;return b&&(d+="active"),m&&(d+=` ${m}`),d};return t.onMounted(()=>{const{scrollFixed:b}=e;b&&window.addEventListener("scroll",y)}),t.onUnmounted(()=>{const{scrollFixed:b}=e;b&&window.removeEventListener("scroll",y)}),{toggleItem:h,children:i,opened:f,classes:p,barRef:o,getClasses:v}}}),oy=["onClick"],ly={class:"fox-menu__title-text"},ay={class:"fox-menu__title-icon"};function ry(e,n,a,o,l,r){const s=t.resolveComponent("ArrowUp2"),i=t.resolveComponent("ArrowDown2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:p=>!c.disabled&&e.toggleItem(f),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",ly,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",ay,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,oy))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Ll=ee(ny,[["render",ry]]),{componentName:sy,create:iy}=Q("menu-item"),cy=iy({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[fe.name]:fe,Check:ne.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:a}){const o=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),l=()=>{const k=t.inject("menuParent",null);if(k){const y=t.getCurrentInstance(),{link:v,removeLink:b}=k;return v(y),t.onUnmounted(()=>{b(y)}),{parent:k}}},{parent:r}=l(),s=t.computed(()=>({[sy]:!0})),i=t.computed(()=>{const k={height:r.offset.value+"px"};return r.props.direction==="down"?k:{...k,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const k=e.options?.find(y=>y.value===e.modelValue);return k?k.text:""},state:o,parent:r,toggle:(k=!o.showPopup,y={})=>{k!==o.showPopup&&(o.showPopup=k,o.isShowPlaceholderElement=k,k&&(o.showWrapper=!0,n("open")))},onClick:k=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,k.value!==e.modelValue&&(n("update:modelValue",k.value),n("change",k.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),uy={class:"fox-menu-item__content fox-menu-item__overflow"},dy=["onClick"];function fy(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",uy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:p=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps({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,dy))),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 zl=ee(cy,[["render",fy]]),{create:my}=Q("tabbar"),py=my({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 hy(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=ee(py,[["render",hy]]),{create:gy}=Q("tabbar-item"),yy=gy({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,n){const a=t.inject("parent"),o=t.reactive({size:a.size,inactiveColor:a.inactiveColor,activeColor:a.activeColor,value:a.value,index:0}),l=t.getCurrentInstance();l!==null&&(f=>{if(f.proxy){let p=a.children.length;o.index=p;let u=Object.assign(f.proxy,{index:p});a.children.push(u)}})(l);const r=t.computed(()=>o.index===o.value);function s(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}const i=t.computed(()=>a?a.value:null);return t.watch(i,c=>{o.value=c}),{state:o,active:r,change:s}}}),vy={class:"fox-tabbar-item_icon-box"},by={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},ky={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Sy={key:1,class:"fox-tabbar-item_icon-box_dot"},Cy={key:2},wy={key:0};function Ny(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",vy,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",by,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",ky,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",Sy)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",Cy,[(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",wy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Rl=ee(yy,[["render",Ny]]),{componentName:By,create:Vy}=Q("elevator"),Ay=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(()=>({[By]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>a.value.clientHeight),i=(d,m)=>d.getAttribute("data-"+m),c=d=>{t.nextTick(()=>{!o.listGroup.includes(d)&&d!=null&&o.listGroup.push(d)})},f=()=>{let d=0;o.listHeight.push(d);for(let m=0;m<o.listGroup.length;m++){let g=o.listGroup[m];d+=Math.floor(g.clientHeight),o.listHeight.push(d)}},p=d=>{!d&&d!==0||(d<0&&(d=0),d>o.listHeight.length-2&&(d=o.listHeight.length-2),o.codeIndex=d,a.value.scrollTo(0,o.listHeight[d]))},u=d=>{o.scrollStart=!0;let m=i(d.target,"index"),g=d.touches[0];o.touchState.y1=g.pageY,o.anchorIndex=+m,o.codeIndex=+m,p(+m)},h=d=>{let m=d.touches[0];o.touchState.y2=m.pageY;let g=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+g,p(o.codeIndex)},k=()=>{o.scrollStart=!1},y=(d,m)=>{n.emit("click-item",d,m),o.currentData=m,o.currentKey=d},v=d=>{n.emit("click-index",d)},b=d=>{let g=d.target.scrollTop;const S=o.listHeight;o.scrollY=g;for(let N=0;N<S.length-1;N++){let C=S[N],w=S[N+1];if(o.scrollY>=C&&o.scrollY<w){o.currentIndex=N,o.diff=w-o.scrollY;return}}o.currentIndex=S.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",b)}),Ie({scrollTo:p}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(f)}),t.watch(()=>o.diff,d=>{const m=o.listHeight;let g=d>0&&d<e.titleHeight?d-e.titleHeight:0;o.scrollY+s.value===m[m.length-1]&&g!==0&&(g=0),o.fixedTop!==g&&(o.fixedTop=g)}),t.watch(()=>o.currentIndex,d=>{n.emit("change",d)}),{classes:l,...t.toRefs(o),fixedStyle:r,clientHeight:s,setListGroup:c,listview:a,touchStart:u,touchMove:h,touchEnd:k,handleClickItem:y,handleClickIndex:v}}}),Ty={class:"fox-elevator__list__item__code"},$y=["onClick"],Ey=["innerHTML"],xy={class:"fox-elevator__fixed-title"},Dy={class:"fox-elevator__bars__inner"},Iy=["data-index","onClick"];function qy(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",Ty,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,Ey))],10,$y))),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",xy,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",Dy,[(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,Iy))),128))])],32)],2)}const jt=ee(Ay,[["render",qy]]),{componentName:NV,create:Py,scope:My}=Q("pagination"),Ly=Py({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}=se.useFoxI18n(My),o=a(e,["prevText","nextText"]),{modelValue:l,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:k,itemsPerPage:y}=t.toRefs(e),v=+h.value||Math.ceil(+k.value/+y.value);return Math.max(1,v)}),f=(h,k)=>{h>c.value||h<1||(h!=l.value&&n("update:modelValue",h),k&&n("change",h))},p=(h,k,y=!1)=>({number:h,text:k,active:y}),u=t.computed(()=>{if(r.value=="simple")return;let h=[];const k=c.value,y=+s.value;let v=1,b=k;const d=k>y;d&&(v=Math.max(l.value-Math.floor(y/2),1),b=v+y-1,b>k&&(b=k,v=b-y+1));for(var m=v;m<=b;m++){const g=p(m,m,l.value==m);h.push(g)}if(d&&y>0&&i.value){if(v>1){const g=p(v-1,"...");h.unshift(g)}if(b<k){const g=p(b+1,"...");h.push(g)}}return h});return t.watchEffect(()=>{f(l.value,!1)}),{...o,modelValue:l,select:f,countRef:c,mode:r,pages:u,forceEllipses:i}}}),zy={class:"fox-pagination"},Fy={key:0,class:"fox-pagination-contain"},Ry=["onClick"],Oy={key:1,class:"fox-pagination-contain"},Ky={class:"fox-pagination-simple"};function Uy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",zy,[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",Fy,[(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,Ry))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Oy,[t.createElementVNode("view",Ky,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 Ol=ee(Ly,[["render",Uy]]),Hy=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let h=await o(l,a);r.value.width=h.width||0,r.value.height=h.height||0}else r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=_e();let f="";const p=(h,k)=>{let y=h;switch(e.direction=="horizontal"?(f=h>0?"right":"left",y=Math.abs(y)/r.value.width*100):(f=k>0?"bottom":"top",y=k,y=Math.abs(y)/r.value?.height*100),y>85&&(y=85),f){case"left":case"top":n.isEnd()&&(y=0,i.moving=!1);break;case"right":case"bottom":y=-y,n.isBegin()&&(y=0,i.moving=!1);break}i.offset=y};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,p(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(h.preventDefault(),h.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(h.preventDefault(),h.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,f){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:l}};class jy{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Wy}=Q("tabs"),Yy=Wy({components:{[Ht.name]:Ht,JoySmile:ne.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=T=>{T.forEach(($,I)=>{let F=$.type;if(F=F.name||F,F=="fox-tab-pane"){let A=new jy;if($.props?.title||$.props?.["pane-key"]||$.props?.paneKey){let E=rt($.props?.["pane-key"]),M=E=="number"||E=="string"?String($.props?.["pane-key"]):null,x=rt($.props?.paneKey),U=x=="number"||x=="string"?String($.props?.paneKey):null;A.title=$.props?.title,A.paneKey=M||U||String(I),A.disabled=$.props?.disabled}r.value.push(A)}else{if($.children==" ")return;Array.isArray($.children)&&s($.children)}})},i=t.ref(e.modelValue||0),c=T=>{let $=r.value.findIndex(I=>I.paneKey==T);r.value.length==0||$==-1||(i.value=$)},f=t.computed(()=>e.titleScroll&&e.direction==="vertical"),p=t.ref(),u=t.ref([]),h=T=>{const $=p.value,I=u.value;if(!$||!I||!I[i.value])return;const F=I[i.value];let A=0;e.direction==="vertical"?A=F.offsetTop-$.offsetTop+10-($.offsetHeight-F.offsetHeight)/2:A=F.offsetLeft-($.offsetWidth-F.offsetWidth)/2,k($,A,T?0:.3,e.direction)},k=(T,$,I,F)=>{let A=0;const E=F==="horizontal"?T.scrollLeft:T.scrollTop,M=I===0?1:Math.round(I*1e3/16);function x(){F==="horizontal"?T.scrollLeft+=($-E)/M:T.scrollTop+=($-E)/M,++A<M&&Ke(x)}x()},y=(T=a.default?.())=>{r.value=[],T=T?.filter($=>typeof $.children!="string"),T&&T.length&&s(T),c(e.modelValue),t.nextTick(()=>{h()})},v=T=>{l=T.fixed};t.watch(()=>a.default?.(),T=>{y(T)});const b=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,T=>{if(c(T),h(),l){let $=De(o.value).top+b(),I=Math.ceil($-e.top);window.scrollTo({top:I,behavior:"smooth"})}}),t.onMounted(y),t.onActivated(y);const d={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,d.updateValue(r.value[i.value])},prev:()=>{i.value-=1,d.updateValue(r.value[i.value])},updateValue:T=>{n("update:modelValue",T.paneKey),n("change",T)},tabChange:(T,$)=>{n("click",T),!(T.disabled||i.value==$)&&(i.value=$,d.updateValue(T))},setTabItemRef:(T,$)=>{u.value[$]=T}},{tabsContentRef:m,touchState:g,touchMethods:S}=Hy(e,d),N=t.computed(()=>{let T=i.value*100;g.moving&&(T+=g.offset);let $={transform:e.direction=="horizontal"?`translate3d(-${T}%, 0, 0)`:`translate3d( 0,-${T}%, 0)`,transitionDuration:g.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&($={}),$}),C=t.computed(()=>({background:e.background})),w=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),B=t.computed(()=>{if(!e.titleGutter)return{};const T=ge(e.titleGutter);return e.direction==="vertical"?{marginTop:T,marginBottom:T}:{marginLeft:T,marginRight:T}}),V=t.computed(()=>a.fixedTitle);return{navRef:p,tabsContentRef:m,titles:r,contentStyle:N,tabsNavStyle:C,titleStyle:B,tabsActiveStyle:w,container:o,getScrollY:f,onStickyScroll:v,...d,...S,hasFixedTitle:V}}}),Xy=["onClick"],Qy={key:0,class:"fox-tabs__titles-fixed-item"},Gy=["onClick"],Zy={key:0,class:"fox-tabs__titles-fixed-item"};function Jy(e,n,a,o,l,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:p=>e.tabChange(c,f),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Xy))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Qy,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:p=>e.tabChange(c,f),key:c.paneKey,ref_for:!0,ref:p=>e.setTabItemRef(p,f)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Gy))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Zy,[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 Kl=ee(Yy,[["render",Jy]]),{create:_y}=Q("tab-pane"),ev=_y({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 tv(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 Ul=ee(ev,[["render",tv]]),{componentName:Ar,create:nv}=Q("indicator"),ov=nv({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=Ar;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Ar,padZero:tt}}});function lv(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 Hl=ee(ov,[["render",lv]]),{componentName:av,create:rv}=Q("side-navbar"),sv=rv({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(()=>({[av]:!0})),l=(s,i=1)=>{for(let c=0;c<s.length;c++){let f=s[c];f?.children?.[0]&&(f.children[0].style.paddingLeft=+e.offset*i+"px",f.className.includes("fox-side-navbar-item")||l(Array.from(f.children[1].children),++a.count))}a.count--},r=()=>{let s=n.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),l(s))};return t.onMounted(()=>{r(),a.observer=new MutationObserver(function(){a.count=1,r()}),a.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(a),list:n,classes:o}}}),iv={class:"fox-side-navbar__content"},cv={class:"fox-side-navbar__content__list",ref:"list"};function uv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",iv,[t.createElementVNode("view",cv,[t.renderSlot(e.$slots,"default")],512)])],2)}const jl=ee(sv,[["render",uv]]),{componentName:dv,create:fv}=Q("side-navbar-item"),mv=fv({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[dv]:!0})),handleClick:()=>{n.emit("click")}})}),pv=["ikey"],hv={class:"fox-side-navbar-item__title"};function gv(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",hv,t.toDisplayString(e.title),1)],10,pv)}const Wl=ee(mv,[["render",gv]]),{componentName:yv,create:vv}=Q("sub-side-navbar"),bv=vv({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:ne.ArrowDown2,ArrowUp2:ne.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=t.reactive({direction:""}),o=t.computed(()=>({[yv]:!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}}}),kv=["ikey"],Sv={class:"fox-sub-side-navbar__title__text"},Cv={class:"fox-sub-side-navbar__title__icon"};function wv(e,n,a,o,l,r){const s=t.resolveComponent("ArrowDown2"),i=t.resolveComponent("ArrowUp2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-sub-side-navbar__title",onClick:n[0]||(n[0]=t.withModifiers((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[t.createElementVNode("span",Sv,t.toDisplayString(e.title),1),t.createElementVNode("span",Cv,[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,kv)}const Yl=ee(bv,[["render",wv]]),{componentName:Nv,create:Bv}=Q("range"),Vv=Bv({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:A,max:E,min:M}=e;return Object.keys(A).map(parseFloat).sort((K,J)=>K-J).filter(K=>K>=M&&K<=E)}),f=t.computed(()=>Number(e.max)-Number(e.min)),p=t.computed(()=>{const A=Nv;return{[A]:!0,[`${A}-disabled`]:e.disabled,[`${A}-vertical`]:e.vertical,[`${A}-show-number`]:!e.hiddenRange}}),u=t.computed(()=>{const A="fox-range-container";return{[A]:!0,[`${A}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),k=t.computed(()=>({borderColor:e.buttonColor})),y=A=>!!e.range&&Array.isArray(A),v=()=>{const{modelValue:A,min:E}=e;return y(A)?`${(A[1]-A[0])*100/f.value}%`:`${(A-Number(E))*100/f.value}%`},b=()=>{const{modelValue:A,min:E}=e;return y(A)?`${(A[0]-Number(E))*100/f.value}%`:"0%"},d=t.computed(()=>e.vertical?{height:v(),top:b(),background:e.activeColor,transition:s.value?"none":void 0}:{width:v(),left:b(),background:e.activeColor,transition:s.value?"none":void 0}),m=A=>{const E="fox-range-mark",{modelValue:M,max:x,min:U}=e;let K=Number(U),J=Number(x);if(e.range){const[j,q]=M;K=j,J=q}else J=M;let _=A<=J&&A>=K;return{[`${E}-text`]:!0,[`${E}-text-active`]:_}},g=A=>{const{min:E,vertical:M}=e;let x={left:`${(A-Number(E))/f.value*100}%`};return M&&(x={top:`${(A-Number(E))/f.value*100}%`}),x},S=A=>{const{modelValue:E,max:M,min:x}=e;let U=Number(x),K=Number(M);if(e.range){const[j,q]=E;U=j,K=q}return{background:A<=K&&A>=U?e.activeColor:e.inactiveColor}},N=A=>{const{min:E,max:M,step:x}=e;return A=Math.max(+E,Math.min(A,+M)),Math.round(A/+x)*+x},C=(A,E)=>JSON.stringify(A)===JSON.stringify(E),w=A=>A[0]>A[1]?A.slice(0).reverse():A,B=(A,E)=>{y(A)?A=w(A).map(N):A=N(A),C(A,e.modelValue)||n("update:modelValue",A),E&&!C(A,o)&&n("change",A)},V=A=>{if(e.disabled)return;const{min:E,modelValue:M}=e,x=De(r);let U=A.clientX-x.left,K=x.width;e.vertical&&(U=A.clientY-x.top,K=x.height);const J=Number(E)+U/K*f.value;if(y(M)){const[_,j]=M,q=(_+j)/2;J<=q?B([J,j],!0):B([_,J],!0)}else B(J,!0)},T=A=>{e.disabled||(i.start(A),l=e.modelValue,y(l)?o=l.map(N):o=N(l),s.value="start")},$=A=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(A),s.value="draging";const E=De(r);let M=i.deltaX.value,x=E.width,U=M/x*f.value;e.vertical&&(M=i.deltaY.value,x=E.height,U=M/x*f.value),y(o)?l[a.value]=o[a.value]+U:l=o+U,B(l),A.stopPropagation(),A.preventDefault()},I=()=>{e.disabled||(s.value==="draging"&&(B(l,!0),n("drag-end")),s.value="")},F=A=>wn(e.modelValue)&&typeof A=="number"?e.modelValue[A]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:h,buttonStyle:k,onClick:V,onTouchStart:T,onTouchMove:$,onTouchEnd:I,...t.toRefs(e),barStyle:d,curValue:F,buttonIndex:a,containerClasses:u,markClassName:m,marksStyle:g,marksList:c,tickStyle:S}}}),Av={key:0,class:"fox-range-min"},Tv={key:0,class:"fox-range-mark"},$v=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Ev={key:0,class:"number"},xv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Dv={key:0,class:"number"},Iv={key:1,class:"fox-range-max"};function qv(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",Av,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",Tv,[(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",Ev,t.toDisplayString(e.curValue(s)),1))],4))],42,$v)),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",Dv,t.toDisplayString(e.curValue()),1))],4))],40,xv))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Iv,t.toDisplayString(+e.max),1))],2)}const Wt=ee(Vv,[["render",qv]]),{create:Pv,scope:Mv}=Q("short-password"),Lv=Pv({components:{[fe.name]:fe,Tips:ne.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:a}=se.useFoxI18n(Mv),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>f(Number(e.length))),s=t.ref(e.visible),i=u=>{u.stopPropagation(),n("focus")};t.watch(()=>e.visible,u=>{s.value=u}),t.watch(()=>e.modelValue,u=>{l.value=u,String(u).length===r.value&&n("complete",u)});const c=()=>{n("update:visible",!1),n("close")},f=u=>Math.min(Math.max(4,u),6);return{comLen:r,realInput:l,onTouchStart:i,range:f,close:c,onTips:()=>{n("tips")},show:s,...o}}}),zv={class:"fox-short-password-title"},Fv={class:"fox-short-password-subtitle"},Rv={class:"fox-short-password-wrapper"},Ov={key:0,class:"fox-short-password__item-icon"},Kv={class:"fox-short-password__message"},Uv={class:"fox-short-password--error"},Hv={key:0,class:"fox-short-password--forget"};function jv(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",zv,t.toDisplayString(e.title),1),t.createElementVNode("view",Fv,t.toDisplayString(e.desc),1),t.createElementVNode("div",Rv,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:f},[String(e.realInput).length>f?(t.openBlock(),t.createElementBlock("view",Ov)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",Kv,[t.createElementVNode("view",Uv,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",Hv,[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 Xl=ee(Lv,[["render",jv]]);class Wv{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Yv=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 Xv{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);yt(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:Qv}=Q("progress"),Gv=Qv({components:{Checked:ne.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,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}}}),Zv={class:"fox-progress"},Jv={key:0,class:"fox-progress-text"};function _v(e,n,a,o,l,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",Zv,[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",Jv,[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 Yt=ee(Gv,[["render",_v]]),{componentName:e0,create:t0,scope:n0}=Q("uploader"),o0=t0({components:{[Yt.name]:Yt,Photograph:ne.Photograph,Failure:ne.Failure,Loading:ne.Loading,Del:ne.Del,Link:ne.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(n0),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[e0]:!0})),s=()=>{let m={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(m.capture="camera"),t.h("input",m)},i=m=>{m.value=""},c=m=>{n("file-item-click",{fileItem:m})},f=(m,g)=>{const S=new Wv;S.url=e.url,S.formData=m.formData,S.timeout=e.timeout*1,S.method=e.method,S.xhrState=e.xhrState,S.headers=e.headers,S.withCredentials=e.withCredentials,S.beforeXhrUpload=e.beforeXhrUpload;try{S.sourceFile=m.formData.get(e.name)}catch{}S.onStart=C=>{m.status="ready",m.message=a("readyUpload"),p(g),n("start",C)},S.onProgress=(C,w)=>{m.status="uploading",m.message=a("uploading"),m.percentage=(C.loaded/C.total*100).toFixed(0),n("progress",{event:C,option:w,percentage:m.percentage})},S.onSuccess=(C,w)=>{m.status="success",m.message=a("success"),n("success",{responseText:C,option:w,fileItem:m}),n("update:fileList",o)},S.onFailure=(C,w)=>{m.status="error",m.message=a("error"),n("failure",{responseText:C,option:w,fileItem:m})};let N=new Yv(S);e.autoUpload?N.upload():l.push(new Promise((C,w)=>{C(N)}))},p=(m=-1)=>{m>-1?l.splice(m,1):(l=[],o.splice(0,o.length))},u=()=>{Promise.all(l).then(m=>{m.forEach(g=>g.upload())})},h=m=>{m.forEach((g,S)=>{const N=new FormData;for(const[w,B]of Object.entries(e.data))N.append(w,B);N.append(e.name,g);const C=t.reactive(new Xv);if(C.name=g.name,C.status="ready",C.type=g.type,C.formData=N,C.message=a("waitingUpload"),f(C,S),e.isPreview&&g.type.includes("image")){const w=new FileReader;w.onload=B=>{C.url=B.target.result,o.push(C)},w.readAsDataURL(g)}else o.push(C)})},k=m=>{const g=e.maximum*1,S=e.maximize*1,N=new Array;m=m.filter(w=>w.size>S?(N.push(w),!1):!0),N.length&&n("oversize",N);let C=m.length+o.length;return C>g&&m.splice(m.length-(C-g)),m},y=(m,g)=>{o.splice(g,1),n("delete",{file:m,fileList:o,index:g})},v=(m,g)=>{p(g),Ls(e.beforeDelete,{args:[m,o],done:()=>y(m,g)})},b=m=>{if(e.disabled)return;const g=m.target;let{files:S}=g;e.beforeUpload?e.beforeUpload(S).then(N=>d(N)):d(S),n("change",{fileList:o,event:m}),e.clearInput&&i(g)},d=m=>{const g=k(new Array().slice.call(m));h(g)};return{onChange:b,onDelete:v,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:p,submit:u,renderInput:s}}}),l0={key:0,class:"fox-uploader__slot"},a0={key:0,class:"fox-uploader__preview-img"},r0={key:0,class:"fox-uploader__preview__progress"},s0={class:"fox-uploader__preview__progress__msg"},i0=["onClick"],c0=["onClick","src"],u0={key:3,class:"fox-uploader__preview-img__file"},d0=["onClick"],f0={class:"file__name_tips"},m0={class:"tips"},p0={key:1,class:"fox-uploader__preview-list"},h0=["onClick"],g0={class:"file__name_tips"};function y0(e,n,a,o,l,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),f=t.resolveComponent("Del"),p=t.resolveComponent("fox-progress"),u=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",l0,[t.renderSlot(e.$slots,"default"),Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(h,k)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:h.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",a0,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",r0,[h.status!="ready"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[h.status=="error"?(t.openBlock(),t.createBlock(s,{key:0,color:"#fff"})):(t.openBlock(),t.createBlock(i,{key:1,name:"loading",color:"#fff"}))],64)):t.createCommentVNode("",!0),t.createElementVNode("view",s0,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:y=>e.onDelete(h,k)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,i0)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:y=>e.fileItemClick(h),src:h.url},null,8,c0)):(t.openBlock(),t.createElementBlock("view",u0,[t.createElementVNode("view",{onClick:y=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",f0,t.toDisplayString(h.name),1)],8,d0)])),t.createElementVNode("view",m0,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",p0,[t.createElementVNode("view",{onClick:y=>e.fileItemClick(h),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[h.status]])},[t.createVNode(c,{class:"fox-uploader__preview-img__file__link"}),t.createElementVNode("view",g0,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(f,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:y=>e.onDelete(h,k)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,h0),h.status=="uploading"?(t.openBlock(),t.createBlock(p,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(u,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const Ql=ee(o0,[["render",y0]]),v0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD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BtziJ59P/urj33+ZlFIDa8wHAOcAhujftQYwY5xPSOb5FEQX/WPcI3LumqQQPwEMeg8LrD2sq0DnpdajvkFLIW4AvPJcjx/WJ50x5oX/Gs75qiiKpb9XSg2NMc+r5z+KovDBD3V2pgznz/y91noevSOECBbhxtwVt7dFpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:k0,scope:S0}=Q("number-keyboard"),C0=k0({components:{[fe.name]:fe},props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:n}){const{toLocaleRefs:a}=se.useFoxI18n(S0),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:d}=e;let m={id:"lock",type:"lock"},g=Array.isArray(d)?d:[d];return g.length===1&&(m={id:g[0],type:"custom"}),[...c(),m,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const d=[];for(let m=1;m<=9;m++)d.push({id:m,type:"number"});return e.randomKeys?d.sort(()=>Math.random()>.5?1:-1):d}function f(){const d=c(),{customKey:m}=e;let g=Array.isArray(m)?m:[m];return g.length>2&&(g=[g[0],g[1]]),g.length==2&&e.title&&e.type!="rightColumn"&&(g=[g[0]]),g.length===1?e.title&&e.type!="rightColumn"?d.push({id:g[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):d.push({id:0,type:"number"},{id:g[0],type:"custom"}):g.length===2&&d.push({id:g[0],type:"custom"},{id:0,type:"number"},{id:g[1],type:"custom"}),d}const p=t.computed(()=>e.type=="rightColumn"||e.title!=""?f():i()),u=()=>{e.visible&&n("blur")},h=d=>{const m=s.value;m&&!m.contains(d.target)&&u()};t.watch(()=>e.visible,d=>{r.value=d,d?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function k(d,m){m.stopPropagation(),l.value=d.id,(d.type=="number"||d.type=="custom")&&(n("input",d.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+d.id)),d.type=="lock"&&b(),d.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function y(d){d.stopPropagation()}function v(d){d.preventDefault(),l.value=void 0}function b(){n("update:visible",!1),n("close")}return{...o,delImg:v0,lockImg:b0,clickKeyIndex:l,defaultKey:i,closeBoard:b,onTouchEnd:v,onTouchMove:y,onTouchstart:k,keysList:p,genCustomKeys:f,getBasicKeys:c,root:s,show:r}}}),w0={ref:"root"},N0={class:"fox-number-keyboard"},B0={key:0,class:"fox-number-keyboard__header"},V0={class:"fox-number-keyboard__title"},A0={class:"fox-number-keyboard__body"},T0={class:"fox-number-keyboard__keys"},$0=["onTouchstart"],E0=["src"],x0=["src"],D0={key:0,class:"fox-number-keyboard__sidebar"},I0={class:"fox-key__wrapper"},q0=["src"];function P0(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",w0,[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",N0,[e.title?(t.openBlock(),t.createElementBlock("div",B0,[t.createElementVNode("h3",V0,t.toDisplayString(e.title),1),e.type=="default"?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-number-keyboard__close",onClick:n[0]||(n[0]=i=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",A0,[t.createElementVNode("div",T0,[(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,E0)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,x0)):t.createCommentVNode("",!0)],42,$0)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",D0,[t.createElementVNode("div",I0,[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,q0)],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 Gl=ee(C0,[["render",P0]]),{componentName:M0,create:L0}=Q("swipe"),z0=L0({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(()=>({[M0]:!0})),o=m=>m.value?.clientWidth||0,l=t.ref(),r=t.computed(()=>o(l)),s=t.ref(),i=t.computed(()=>o(s));let c=!1,f="",p="";const u=t.reactive({offset:0,moving:!1}),h=(m="")=>{c=!0,m&&(u.offset=m==="left"?-i.value:r.value),n("open",{name:e.name,position:f||m})},k=()=>{u.offset=0,c=!1,n("close",{name:e.name,position:f})},y=t.computed(()=>({transform:`translate3d(${u.offset}px, 0, 0)`})),v=m=>{f=m>0?"right":"left";let g=m;switch(f){case"left":c&&p===f?g=-i.value:g=Math.abs(m)>i.value?-i.value:m;break;case"right":c&&p===f?g=r.value:g=Math.abs(m)>r.value?r.value:m;break}u.offset=g},b=_e();return{classes:a,touchStyle:y,...{onTouchStart(m){e.disabled||b.start(m)},onTouchMove(m){e.disabled||(b.move(m),b.isHorizontal()&&(u.moving=!0,v(b.deltaX.value),e.touchMovePreventDefault&&m.preventDefault(),e.touchMoveStopPropagation&&m.stopPropagation()))},onTouchEnd(){if(u.moving)switch(u.moving=!1,p=f,f){case"left":Math.abs(u.offset)<=i.value/2?k():(u.offset=-i.value,h());break;case"right":Math.abs(u.offset)<=r.value/2?k():(u.offset=r.value,h());break}}},leftRef:l,rightRef:s,open:h,close:k}}}),F0={class:"fox-swipe__left",ref:"leftRef"},R0={class:"fox-swipe__content"},O0={class:"fox-swipe__right",ref:"rightRef"};function K0(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",F0,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",R0,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",O0,[t.renderSlot(e.$slots,"right")],512)],38)}const Xt=ee(z0,[["render",K0]]),{componentName:U0,create:H0}=Q("action-sheet"),j0=H0({components:{[fe.name]:fe,Loading:ne.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(()=>({[U0]:!0}));return{slotDefault:a,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(c,f)=>{!c.disable&&!c.loading&&(n("choose",c,f),n("update:visible",!1))},close:c=>{n("close",c),n("update:visible",!1)},classes:o}}}),W0={key:0,class:"fox-action-sheet__title"},Y0={key:1},X0={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},Q0={key:1,class:"fox-action-sheet__menu"},G0=["onClick"],Z0={key:1},J0={class:"fox-action-sheet__subdesc"};function _0(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",W0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Y0,[e.description?(t.openBlock(),t.createElementBlock("view",X0,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",Q0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:t.normalizeStyle({color:e.isHighlight(c)||c.color}),key:f,onClick:p=>e.chooseItem(c,f)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",Z0,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",J0,t.toDisplayString(c[e.optionSubTag]),1)],14,G0))),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 Zl=ee(j0,[["render",_0]]),{componentName:eb,create:tb}=Q("backtop"),Jl=tb({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(()=>({[eb]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function i(y=0){o.scrollEl instanceof Window?window.scrollTo(0,y):o.scrollEl.scrollTop=y}function c(){let y=Xe(function v(){var b=e.duration-Math.max(0,o.startTime-+new Date+e.duration),d=b*-o.scrollTop/e.duration+o.scrollTop;i(d),y=Xe(v),(b==e.duration||d==0)&&Er(y)})}function f(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function p(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function u(y){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",y)}function h(){k.value?o.scrollEl=k.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),f()}t.onMounted(()=>{e.distance==0&&(o.backTop=!0),h()}),t.onUnmounted(()=>{p()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,h())}),t.onDeactivated(()=>{o.keepAlive=!0,p()});const k=t.computed(()=>{if(typeof a.content=="function"){const y=a.content();return Array.isArray(y)?y[0]:y}return null});return()=>{const y=[];k.value&&y.push(k.value);const v=[];if(typeof a.default=="function")v.push(a.default());else{const d=t.h(ne.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});v.push(d)}const b=t.h("div",{class:l.value,style:r.value,onClick:u},v);return y.push(b),y}}}),{componentName:nb,create:ob}=Q("drag"),lb=ob({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const a=t.ref(),o=t.reactive({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),l=t.computed(()=>({[nb]:!0}));function r(){const u=document.documentElement;o.elWidth=a.value.offsetWidth,o.elHeight=a.value.offsetHeight,o.screenWidth=u.clientWidth,o.screenHeight=u.clientHeight}function s(u){o.boundary.left?+u.style.left.split("px")[0]>o.boundary.left?(u.style.left=+u.style.left.split("px")[0]-10+"px",Ke(()=>{s(u)})):u.style.left=`${o.boundary.left}px`:+u.style.left.split("px")[0]>10?(u.style.left=+u.style.left.split("px")[0]-10+"px",Ke(()=>{s(u)})):u.style.left="0px"}function i(u,h){h-parseInt(u.style.left.split("px")[0])>10?(u.style.left=parseInt(u.style.left.split("px")[0])+10+"px",Ke(()=>{i(u,h)})):u.style.left=h+"px"}function c(u){u.preventDefault();const h=u.currentTarget;if(u.targetTouches.length===1){const k=u.targetTouches[0];o.nx=k.clientX-o.position.x,o.ny=k.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const y=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>y?o.xPum=y:o.xPum<=o.boundary.left&&(o.xPum=o.boundary.left),o.yPum<o.boundary.top?o.yPum=o.boundary.top:o.yPum>o.screenHeight-o.elHeight-o.boundary.bottom&&(o.yPum=o.screenHeight-o.elHeight-o.boundary.bottom),e.direction!="y"&&(h.style.left=o.xPum+"px"),e.direction!="x"&&(h.style.top=o.yPum+"px")}}function f(u){const h=u.currentTarget;let y=u.changedTouches[0].clientX;const v=o.screenWidth-o.elWidth-o.boundary.right;y>v?y=v:y<o.boundary.left?y=o.boundary.left:y=y<o.screenWidth/2?o.boundary.left:v,e.direction!="y"&&e.attract&&(y<o.screenWidth/2?Ke(()=>{s(h)}):Ke(()=>{i(h,v)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function p(u){const h=u.currentTarget,k=u.touches[0],y=u.targetTouches[0];o.startTop=h.offsetTop,o.startLeft=h.offsetLeft,o.position.x=k.clientX,o.position.y=k.clientY,o.nx=y.clientX-o.position.x,o.ny=y.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny}return t.onMounted(()=>{r(),o.boundary=e.boundary}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1)}),t.onDeactivated(()=>{o.keepAlive=!0;const u=a;u.value.removeEventListener("touchstart",p),u.value.removeEventListener("touchmove",c),u.value.removeEventListener("touchend",f)}),{classes:l,myDrag:a,touchStart:p,touchMove:c,touchEnd:f}}});function ab(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 _l=ee(lb,[["render",ab]]),rb={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}},sb=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function ib(e,n,a,o,l){return{props:{...Re,...rb},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:f}=se.useFoxI18n(n),p=f(r,["confirmText","cancelText"]),u=e,h=t.ref(r.visible);t.watch(()=>r.visible,C=>{h.value!==C&&(h.value=C,C&&c("opened"))});const k=C=>{h.value=C,c("update:visible",C),c("update",C)},y=C=>{if(c(C),!(C==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const w=r.beforeClose(C);yt(w)?w.then(B=>{B&&(k(!1),c("closed",C))}):w===!0&&(k(!1),c("closed",C))}else k(!1),c("closed",C)},v=()=>{y("confirm")},b=()=>{y("cancel")},d=()=>{y("close")},m=(C,w)=>sb(C)?(w.src=C,t.h("img",w)):typeof C=="string"?(Array.isArray(w.class)?w.class.push(C):w.class&&typeof w.class=="object"?w[`${C}`]=!0:typeof w.class=="string"?w.class=`${w.class}, ${C}`:w.class=C,t.h(r.tag,w)):t.h(C,w),g=()=>{const C=[];if(i.header){const B=i.header();C.push(B)}else{if(r.title){const B=t.h("view",{class:`${u}__header-title`},[r.title]);C.push(B)}if(r.showClose){const B={class:[`${u}__header-close-icon`],onClick:d},V=r.closeIcon??l,T=m(V,B);C.push(T)}}if(C.length===0)return null;const w={class:[`${u}__header`]};return t.h("view",w,C)},S=()=>{const C=[];if(i.default)C.push(i.default());else{const B={class:[`${u}__content`]};if(r.textAlign&&B.class.push(r.textAlign),typeof r.content=="string"){B.innerHTML=r.content;const V=t.h("view",B);C.push(V)}else if(typeof r.content=="function"){const V=t.h("view",B,[r.content()]);C.push(V)}else{const V=t.h("view",B,[r.content]);C.push(V)}}if(C.length===0)return null;const w={class:[`${u}__body`]};return t.h("view",w,C)},N=()=>{if(!r.showFooter)return null;const C=[];if(i.footer)C.push(i.footer());else if(r.plain){if(r.showCancelButton){const B={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},onClick:b};r.cancelButtonClass&&B.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(B.style,r.cancleButtonStyle);const V=t.h("view",B,[r.cancelButtonText??p.cancelText.value]);C.push(V)}if(r.showConfirmButton){const B={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},onClick:v};r.confirmButtonClass&&B.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(B.style,r.confirmButtonStyle);const V=t.h("view",B,[r.confirmButtonText??p.confirmText.value]);C.push(V)}}else{if(r.showCancelButton){const B={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:b};r.cancelButtonClass&&B.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(B.style,r.cancleButtonStyle);const V=t.h(o,B,{default:()=>[r.cancelButtonText??p.cancelText.value]});C.push(V)}if(r.showConfirmButton){const B={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:v};r.confirmButtonClass&&B.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(B.style,r.confirmButtonStyle);const V=t.h(o,B,{default:()=>[r.confirmButtonText??p.confirmText.value]});C.push(V)}}if(C.length===0)return null;const w={class:[`${u}__footer`,`${u}__footer--${r.footerDirection}`]};return t.h("view",w,C)};return()=>{const C=[],w=g();w&&C.push(w);const B=S();B&&C.push(B);const V=N();V&&C.push(V);const T={class:{[`${u}`]:!0,[`${u}--plain`]:r.plain}},$=t.h("view",T,C),I=[`${u}__popup`];r.popClass&&I.push(r.popClass);const F={};r.width&&(F.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(F.height=typeof r.height=="number"?`${r.height}px`:r.height);const E={...be(r,Re),popClass:I.join(" "),style:F,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":k,position:r.position,onClickOverlay:d,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,E,{default:()=>$})}}}}const{componentName:cb,create:ub,scope:db}=Q("dialog"),zs=ub(ib(cb,db,fe,Le,ne.Close));class fb{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 mb{options=new fb;constructor(n){let a=Object.assign(this.options,n),o=document.body,l=a.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=a.teleport);const r=document.createElement("view"),s=`dialog-${a.id}`;r.id=s;const i={setup(){return a.onUpdate=f=>{if(f===!1){const p=document.querySelector(`#${s}`);p&&p.parentNode?.removeChild(p)}},a?.onOpened&&a?.onOpened(),()=>t.h(zs,a)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Qt=function(e){return new mb(e)};Qt.install=e=>{e.use(zs),e.config.globalProperties.$dialog=Qt};const pb={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}},hb=(e,n,a)=>({props:{...pb},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=se.useFoxI18n(n),i=s(o,["pullingText","loosingText","loadingText"]),c=ll(),f=t.ref(),p=Is(f),u=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=t.computed(()=>({[e]:!0})),k=t.computed(()=>{switch(u.status){case"pulling":return r.pulling?"":i.pullingText.value;case"loosing":return r.loosing?"":i.loosingText.value;case"loading":return r.loading?"":i.loadingText.value;default:return""}}),y=t.computed(()=>({transitionDuration:`${o.duration}s`,transform:u.distance?`translate3d(0,${u.distance}px, 0)`:""})),v=t.computed(()=>{const w={};return o.headHeight!=50&&(w.height=ge(o.headHeight)),w}),b=w=>{const B=+(o.pullDistance||o.headHeight);let V=w;return w>B&&(w<B*2?V=(w+B)/2:V=B+w/4),Math.round(V)},d=(w,B)=>{const V=+(o.pullDistance||o.headHeight);u.distance=w,B?u.status="loading":w===0?u.status="normal":w<V?u.status="pulling":u.status="loosing",l("change",{status:u.status,distance:w})},m=()=>u.status!=="loading"&&u.status!=="complete",g=()=>p.value==window?qs()==0:p.value&&p.value.scrollTop==0,S=w=>{m()&&(g()?(c.start(w),u.isPullRefresh=!0,u.moving=!0):(u.distance=0,u.isPullRefresh=!1))},N=w=>{m()&&u.moving&&(c.move(w),c.isVertical()&&c.state.deltaY>0&&u.isPullRefresh&&(w.cancelable&&w.preventDefault(),d(b(c.state.deltaY))))},C=()=>{u.moving=!1,u.isPullRefresh&&m()&&c.state.deltaY&&(u.status==="loosing"?(d(+o.headHeight,!0),l("update:modelValue",!0),t.nextTick(()=>l("refresh"))):d(0)),setTimeout(()=>{c.reset()},0)};return t.watch(()=>o.modelValue,w=>{w?d(+o.headHeight,!0):d(0)}),()=>{const w=[];let B=null;if(u.status==="loading"){if(B=r?.loading?.()??null,!B){const M={class:["fox-pull-refresh-container-topbox-icon"]};B=t.h(a,M)}}else u.status==="pulling"?B=r?.pulling?.()??null:u.status==="loosing"&&(B=r?.loosing?.()??null);B&&w.push(B);const V={class:["fox-pull-refresh-container-topbox-text"]},T=t.h("dive",V,[k.value]);w.push(T);const $={class:["fox-pull-refresh-container-topbox"],style:v.value},I=t.h("div",$,w),F={class:"fox-pull-refresh-container",style:y.value},A=t.h("div",F,[I,r?.default?.()]),E={ref:f,class:h.value};return ol()?Object.assign(E,{onTouchstart:S,onTouchmove:N,onTouchend:C}):Object.assign(E,{onMousedown:S,onMousemove:N,onMouseup:C}),t.h("div",E,[A])}}}),{componentName:gb,create:yb,scope:vb}=Q("pull-refresh"),ea=yb(hb(gb,vb,ne.Loading)),{create:bb}=Q("notify"),kb=bb({components:{[fe.name]:fe},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const a=()=>{e.onClick&&e.onClick()};let o=null;const l=()=>{o&&clearTimeout(o),o=null},r=()=>{n("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,f=>{s.value=e.visible;const p=e.duration;f&&p&&(o=setTimeout(()=>{r()},p))},{immediate:!0});return{onAfterLeave:()=>{l(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:s}}});function Sb(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.isShowPopup=i),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}const ta=ee(kb,[["render",Sb]]),Fo={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let mt=[],Ot=[];const Fs=e=>{if(e){const n=document.getElementById(e);Ot=Ot.filter(a=>a.id!==e),mt=mt.filter(a=>a!==e),n&&document.body.removeChild(n)}else mt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Ot=[],mt=[]},Cb=e=>{const n=document.getElementById(e.id);if(n){const a=Ot.find(l=>l.id===e.id);a?e={...Fo,...a,...e}:e={...Fo,...e};const o=t.createVNode(ta,e);return t.render(o,n),o.component.data}},Pt=e=>{e.unmount=Fs;let n;if(e.id){if(n=e.id,mt.find(r=>r===e.id))return Cb(e)}else n=new Date().getTime()+"";e={...Fo,...e},e.id=n,mt.push(e.id),Ot.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(ta,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},Mt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},na={text(e,n={}){return Mt(e),Pt({...n,msg:e})},primary(e,n={}){return Mt(e),Pt({...n,msg:e,type:"primary"})},success(e,n={}){return Mt(e),Pt({...n,msg:e,type:"success"})},danger(e,n={}){return Mt(e),Pt({...n,msg:e,type:"danger"})},warn(e,n={}){return Mt(e),Pt({...n,msg:e,type:"warning"})},hide(){Fs()},install(e){e.use(ta)}},{create:wb}=Q("toast"),Nb=wb({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const l=()=>{a&&(clearTimeout(a),a=null)},r=()=>{o.mounted=!1},s=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),t.watch(()=>e.duration,k=>{k&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const k=ue(e.iconSize);return t.h(e.icon,{width:k,height:k,color:e.iconColor})},p=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),u=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:f,hasIcon:c,toastBodyClass:p,toastIconWrapperClass:u,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Bb={key:1,class:"fox-toast-title"},Vb=["innerHTML"];function Ab(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",Bb,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Vb)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const oa=ee(Nb,[["render",Ab]]),Ro={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 pt=[],Kt=[];const Rs=e=>{if(e){const n=document.getElementById(e);Kt=Kt.filter(a=>a.id!==e),pt=pt.filter(a=>a!==e),n&&document.body.removeChild(n)}else pt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Kt=[],pt=[]},Tb=e=>{const n=document.getElementById(e.id);if(n){const a=Kt.find(l=>l.id===e.id);a?e={...Ro,...a,...e}:e={...Ro,...e};const o=t.createVNode(oa,e);return t.render(o,n),Et}},Lt=e=>{e.unmount=Rs;let n;if(e.id){if(n=e.id,pt.find(l=>l===e.id))return Tb(e)}else n=new Date().getTime()+"";e={...Ro,...e},e.id=n,pt.push(e.id),Kt.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(oa,e);return t.render(o,a),document.body.appendChild(a),Et},on=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Et={text(e,n={}){return on(e),Lt({...n,type:"text",msg:e})},success(e,n={}){return on(e),Lt({icon:ne.Success,...n,msg:e,type:"success"})},fail(e,n={}){return on(e),Lt({icon:ne.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return on(e),Lt({icon:ne.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Lt({icon:ne.Loading,...n,msg:e,type:"loading"})},hide(e){Rs(e)},install(e){e.use(oa),e.config.globalProperties.$toast=Et}},{componentName:VV,create:$b}=Q("audio"),Eb=$b({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:ne.Service,[Wt.name]:Wt},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 v=["webkitVisibilityState","visibilitychange"];try{for(let b=0;b<v.length;b++)document.addEventListener(v[b],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(b){b.message}});const r=v=>{const b=o.value;e.autoplay&&b&&b.paused&&b.play(),l.second=b.duration,l.duration=y(b.duration),n("can-play",v)},s=v=>{l.currentTime=parseInt(v.target.currentTime)},i=()=>{l.currentTime>0&&l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},c=()=>{const v=o.value;l.playing?(v.pause(),l.handPlaying=!1):(v.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},f=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},p=v=>{l.currentDuration=y(v),l.percent=v/l.second*100},u=()=>{l.playing=!1,n("ended")},h=v=>{const b=o.value;b.currentTime=l.second*v/100,n("changeProgress",b.currentTime)},k=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},y=v=>{if(!v)return"00:00:00";let b=parseInt(v),d=Math.floor(b/3600),m=Math.floor((b-d*3600)/60),g=b-d*3600-m*60,S="";return S+=("0"+d.toString()).slice(-2)+":",S+=("0"+m.toString()).slice(-2)+":",S+=("0"+g.toString()).slice(-2),S};return t.watch(()=>l.currentTime,v=>{p(v)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:k,forward:f,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:i,forward:f,changeStatus:c,progressChange:h,audioEnd:u,onTimeupdate:s,handleMute:k,onCanplay:r,slots:a}}}),xb={class:"fox-audio"},Db={key:0,class:"fox-audio__progress"},Ib={class:"fox-audio__time"},qb={class:"fox-audio__bar"},Pb=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),Mb={class:"fox-audio__time"},Lb={key:1,class:"fox-audio__icon"},zb=["controls","src","preload","autoplay","loop","muted"];function Fb(e,n,a,o,l,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",xb,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",Db,[t.createElementVNode("div",Ib,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",qb,[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(()=>[Pb]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Mb,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Lb,[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,zb)])}const la=ee(Eb,[["render",Fb]]),{componentName:AV,create:Rb,scope:Ob}=Q("audio-operate"),Kb=Rb({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(Ob),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}}}),Ub={class:"fox-audio-operate"};function Hb(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Ub,[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=ee(Kb,[["render",Hb]]),{componentName:jb,create:Wb}=Q("avatar"),Yb=Wb({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:a,bgColor:o,color:l}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),f=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const y=s?.avatarGroupRef?.value?.children;y&&k(y)});const p=t.computed(()=>({[jb]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||s?.props?.shape||"normal"}`]:!0})),u=t.computed(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${o.value}`,color:`${l.value}`,marginLeft:f.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(f.maxIndex-f.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),k=y=>{f.maxIndex=y.length;for(let v=0;v<y.length;v++)y[v]&&y[v].classList&&y[v].classList[0]=="fox-avatar"&&y[v].setAttribute("data-index",v+1);f.index=i?.value?.dataset?.index,f.index==f.maxIndex&&f.index!=s?.props?.maxCount&&(f.showMax=!0)};return{classes:p,styles:u,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(f)}}});function Xb(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 Gt=ee(Yb,[["render",Xb]]),{componentName:Qb,create:Gb}=Q("avatar-group"),Zb=Gb({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(()=>({[Qb]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:l}),{classes:r,avatarGroupRef:o}}});function Jb(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=ee(Zb,[["render",Jb]]);var dn=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(dn||{});function _b(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:ek,create:tk}=Q("list"),Tr=document.documentElement.clientHeight||document.body.clientHeight||667,nk=tk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Tr},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,Tr)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),f=t.computed(()=>({[ek]:!0})),p=t.computed(()=>r.list.slice(r.start,c.value)),u=()=>{if(l.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let d=0;d<r.list.length;++d)r.cachePositions[d]={index:d,height:e.height,top:d*e.height,bottom:(d+1)*(e.height+e.margin),dValue:0}},k=()=>{let d=l.value.childNodes;d=Array.from(d).filter(w=>w.nodeType===1);const m=d[0];d.forEach((w,B)=>{if(!w)return;const V=De(w),{height:T}=V,I=r.cachePositions[B+r.start].height-T;I&&(r.cachePositions[B+r.start].bottom-=I,r.cachePositions[B+r.start].height=T,r.cachePositions[B+r.start].dValue=I)});let g=0;m&&(g=r.start);const S=r.cachePositions.length;let N=r.cachePositions[g].dValue;r.cachePositions[g].dValue=0;for(let w=g+1;w<S;++w){const B=r.cachePositions[w];r.cachePositions[w].top=r.cachePositions[w-1].bottom,r.cachePositions[w].bottom=r.cachePositions[w].bottom-N,B.dValue!==0&&(N+=B.dValue,B.dValue=0)}const C=r.cachePositions[S-1].bottom;r.phantomHeight=C},y=(d=0)=>{let m=_b(r.cachePositions,d,(S,N)=>{const C=S.bottom;return C===N?dn.eq:C<N?dn.lt:dn.gt});return r.cachePositions[m].bottom<d&&(m+=1),m},v=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,a.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},b=()=>{const d=a.value?.scrollTop,{originStartIndex:m}=r,g=y(d);g!==m&&(r.originStartIndex=g,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&n("scroll-bottom")),n(d>r.scrollTop?"scroll-up":"scroll-down",d),r.scrollTop=d};return t.watch(()=>e.listData,d=>{if(r.list=d.slice(),r.list.length===d.length)h(),k();else{v();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&k()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:u,visibleData:p,classes:f,getContainerHeight:s,handleScrollEvent:b}}});function ok(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform()}),ref:"actualContent"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:s},[t.renderSlot(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}const sa=ee(nk,[["render",ok]]),{componentName:lk,create:ak}=Q("circleprogress"),rk=ak({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(()=>({[lk]:!0})),r=t.computed(()=>{const p=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${p} 0 90 a 45 45 0 1, ${p} 0 -90`}),s=t.computed(()=>xe(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let p=283,u=p*Number(e.progress)/100;return{stroke:xe(e.color)?`url(#${o})`:e.color,strokeDasharray:`${u}px ${p}px`}}),c=t.computed(()=>({stroke:e.pathColor})),f=t.computed(()=>{if(!xe(e.color))return;let p=e.color;const u=Object.keys(p).sort((k,y)=>parseFloat(k)-parseFloat(y));let h=[];return u.map((k,y)=>{let v={key:"",value:""};v.key=k,v.value=p[k],h.push(v)}),h});return{classes:l,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:f,slotDefault:a,refRandomId:o}}}),sk={viewBox:"0 0 100 100"},ik=["id"],ck=["offset","stop-color"],uk=["d","stroke-width"],dk=["d","stroke","stroke-linecap","stroke-width"],fk={class:"fox-circleprogress-text"},mk={key:0};function pk(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",sk,[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,ck))),128))],8,ik)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,uk),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,dk)])),t.createElementVNode("div",fk,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",mk,t.toDisplayString(e.progress)+"%",1))])],6)}const ia=ee(rk,[["render",pk]]),{componentName:hk,create:gk}=Q("noticebar"),yk=gk({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:ne.Notice,CircleClose:ne.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(()=>({[hk]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),f=t.computed(()=>{let w={};return e.color&&(w.color=e.color),e.background&&(w.background=e.background),e.direction=="vertical"&&(w.height=`${e.height}px`),w}),p=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),u=t.computed(()=>{let w={};if(e.complexAm)w={transform:`translateY(${r.distance}px)`};else if(r.animate){let B=~~(e.height/e.speed/4);w={transition:`all ${B==0?~~(e.height/e.speed):B}s`,"margin-top":`-${e.height}px`}}return w});t.watch(()=>e.text,w=>{h()}),t.watch(()=>e.list,w=>{r.scrollList=[...w]});const h=w=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const B=o.value.getBoundingClientRect().width,V=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?V>B:e.scrollable,r.isCanScroll?(r.wrapWidth=B,r.offsetWidth=V,r.duration=V/e.speed,r.animationClass="play"):r.animationClass=""},0)},k=w=>{n("click",w)},y=w=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",w)},v=w=>{r.firstRound=!1,n("across-end",w),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},b=()=>{d(),r.timer=setInterval(d,~~(e.height/e.speed/4*1e3)+e.standTime)},d=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},m=()=>{r.timer=setInterval(()=>{let w=100;for(let B=0;B<w;B++)g(B,!(B<w-1))},e.standTime+100*e.speed)},g=(w,B)=>{setTimeout(()=>{r.distance-=e.height/100,B&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},w*e.speed)},S=w=>{n("click",w)},N=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(a.default?C(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?m():b()},e.standTime)):h(e.text)}),t.watch(()=>a.default?a.default():[],w=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),C(w))});const C=w=>{w&&w.length>0&&(r.scrollList=w[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:f,contentStyle:p,horseLampStyle:u,wrap:o,content:l,handleClick:k,onClickIcon:y,onAnimationEnd:v,go:S,handleClickIcon:N,slots:a,toPxDesc:ge,wrapContentClass:c}}}),vk={key:0,class:"fox-noticebar__page-lefticon"},bk={ref:"wrap",class:"fox-noticebar__page-wrap"},kk={class:"showNotica"},Sk=["onClick"];function Ck(e,n,a,o,l,r){const s=t.resolveComponent("Notice"),i=t.resolveComponent("CircleClose"),c=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:n[3]||(n[3]=(...f)=>e.handleClick&&e.handleClick(...f))},[e.showLeftIcon?(t.openBlock(),t.createElementBlock("view",vk,[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",bk,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...f)=>e.onAnimationEnd&&e.onAnimationEnd(...f)),"on:webkitAnimationEnd":n[1]||(n[1]=(...f)=>e.onAnimationEnd&&e.onAnimationEnd(...f))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=t.withModifiers((...f)=>e.onClickIcon&&e.onClickIcon(...f),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",kk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(f,p)=>(t.openBlock(),t.createBlock(c,{key:p,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:f},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(f,p)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:p,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:u=>e.go(f)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(f),1)])],12,Sk))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=f=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const ca=ee(yk,[["render",Ck]]),wk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd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f4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:TV,create:Vk,scope:Ak}=Q("empty"),Tk={empty:wk,error:Nk,network:Bk},$k=Vk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=se.useFoxI18n(Ak),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:Tk[o.value];return{...a,imageUrl:i,imgStyle:r}}}),Ek={class:"fox-empty"},xk=["src"],Dk={key:1,class:"fox-empty-description"};function Ik(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Ek,[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,xk)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",Dk,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const ua=ee($k,[["render",Ik]]),{create:qk,scope:Pk}=Q("video"),Mk=qk({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}=se.useFoxI18n(Pk),o=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),l=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,C=>{C.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,C=>{o.state.isMuted=C?C.muted:!1},{immediate:!0});const s=()=>{o.videoElm=l.value,e.options.autoplay&&setTimeout(()=>{o.videoElm.play()},200),e.options.touchPlay&&(o.showTouchMask=!0),e.options.playsinline&&(o.videoElm.setAttribute("playsinline",e.options.playsinline),o.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),o.videoElm.setAttribute("x5-video-player-type","h5-page"),o.videoElm.setAttribute("x5-video-player-fullscreen",!1)),y(),o.showToolbox?i():(o.videoElm.addEventListener("play",()=>{o.state.playing=!0,n("play",o.videoElm)}),o.videoElm.addEventListener("pause",()=>{o.state.playing=!1,n("pause",o.videoElm)}),o.videoElm.addEventListener("ended",h),o.videoElm.addEventListener("timeupdate",hn(u,1e3)))},i=()=>{const C=l.value,w=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=C,o.progressBar.progressElm=w,o.progressBar.pos=w.getBoundingClientRect(),o.videoSet.progress.width=Math.round(w.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",hn(u,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{k()}else o.videoElm.pause(),n("pause",o.videoElm)},f=C=>{var w=Math.floor(C/3600);w<10&&(w="0"+w);var B=Math.floor(C%3600/60);B<10&&(B="0"+B);var V=Math.round(C%3600%60);V<10&&(V="0"+V);var T="";return w!=0?T=w+":"+B+":"+V:T=B+":"+V,T},p=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},u=()=>{const C=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*C),o.videoSet.totalTime=f(o.videoElm.duration),o.videoSet.displayTime=f(o.videoElm.currentTime),n("time",o.videoSet.displayTime,o.videoSet.totalTime)},h=()=>{o.state.playing=!1,o.state.isEnd=!0,o.videoSet.displayTime="00:00",o.videoSet.progress.current=0,o.videoElm.currentTime=0,n("playend",o.videoElm)},k=()=>{o.state.isError=!0},y=()=>{o.state.vol=e.options.volume},v=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},b=()=>{},d=C=>{let B=C.targetTouches[0].pageX-o.progressBar.pos.left;B<=0&&(B=0),B>=o.videoSet.progress.width&&(B=o.videoSet.progress.width),o.videoSet.progress.current=B;let V=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&g(V,o.videoElm.duration)},m=C=>{let B=C.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=B;let V=B/o.videoSet.progress.width;o.videoElm.duration&&g(V,o.videoElm.duration)},g=(C,w)=>{o.videoElm.currentTime=Math.floor(C*w)},S=()=>{o.state.isError=!1,s()},N=()=>{o.state.fullScreen?(o.state.fullScreen=!1,document.webkitCancelFullScreen()):(o.state.fullScreen=!0,o.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:l,...t.toRefs(e),...t.toRefs(o),handleError:k,isDisabled:r,play:c,handleMuted:v,touchSlidSrart:b,touchSlidMove:d,touchSlidEnd:m,retry:S,fullScreen:N,t:a}}}),Lk={class:"fox-video",ref:"videocon"},zk=["muted","autoplay","loop","poster","controls","preload"],Fk=["src","type"],Rk={class:"fox-video-controller__now"},Ok={class:"fox-video-controller__progress"},Kk={class:"fox-video-controller__progress-value",ref:"progressBar"},Uk=t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1),Hk=[Uk],jk={class:"fox-video-controller__played",ref:"playedBar"},Wk={class:"fox-video-controller__total"},Yk={class:"fox-video-error"},Xk={class:"fox-video-error-tip"};function Qk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",Lk,[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,Fk)],40,zk),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",Rk,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",Ok,[t.createElementVNode("div",Kk,[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"]))},Hk,36),t.createElementVNode("div",jk,null,512)],512)]),t.createElementVNode("div",Wk,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",Yk,[t.createElementVNode("p",Xk,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 Nt=ee(Mk,[["render",Qk]]),{create:Gk,componentName:Zk}=Q("steps"),da=Gk({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=Zk;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:Jk,componentName:_k}=Q("step"),eS=Jk({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=_k;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:s,handleClickStep:i}}}),tS={class:"fox-step-head"},nS=t.createElementVNode("view",{class:"fox-step-line"},null,-1),oS={class:"fox-step-icon-inner"},lS={key:1,class:"fox-step-inner"},aS={class:"fox-step-main"},rS={class:"fox-step-title"},sS={key:0},iS={key:0,class:"fox-step-content"},cS=["innerHTML"];function uS(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",tS,[nS,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",oS,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",lS,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",aS,[t.createElementVNode("view",rS,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",sS,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",iS,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,cS)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const fa=ee(eS,[["render",uS]]),{create:dS,componentName:ho}=Q("swiper"),fS=dS({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(()=>({[ho]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const x=ho;return{[`${x}-inner`]:!0,[`${x}-vertical`]:i.value}}),f=t.computed(()=>{const x=ho;return{[`${x}-pagination`]:!0,[`${x}-pagination-vertical`]:i.value}}),p=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),u=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>l.children.length),k=t.computed(()=>l[i.value?"height":"width"]),y=t.computed(()=>h.value*k.value),v=t.computed(()=>l.rect?(i.value?l.rect.height:l.rect.width)-k.value*h.value:0),b=t.computed(()=>(l.active+h.value)%h.value),d=()=>{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"]:`${k.value*h.value}px`,[i.value?"width":"height"]:`${i.value?l.width:l.height}px`}},m=x=>{let U=[];const K=l.childrenVNode.length;let J=a?.default?.();if(J=J.filter(_=>_.children&&Array.isArray(_.children)),J.forEach(_=>{U=U.concat(_.children)}),!K)l.childrenVNode=U.slice(),x.proxy&&l.children.push(x.proxy);else if(K>U.length)l.children=l.children.filter(_=>x.proxy!==_);else if(K<U.length){for(let _=0;_<K;_++)if(U[_].key!==l.childrenVNode[_].key){x.proxy&&l.children.splice(_,0,x.proxy),x.vnode&&l.childrenVNode.splice(_,0,x.vnode);break}K!==U.length&&(x.proxy&&l.children.push(x.proxy),x.vnode&&l.childrenVNode.push(x.vnode))}else l.childrenVNode=U.slice(),x.proxy&&l.children.push(x.proxy)},g=(x,U=0)=>{let K=x*k.value;e.loop||(K=Math.min(K,-v.value));let J=U-K;return e.loop||(J=Ue(J,v.value,0)),J},S=x=>{const{active:U}=l;return x?e.loop?Ue(U+x,-1,h.value):Ue(U+x,0,h.value-1):U},N=({pace:x=0,offset:U=0,isEmit:K=!1})=>{if(h.value<=1)return;const{active:J}=l,_=S(x),j=g(_,U);if(e.loop){if(l.children[0]&&j!==v.value){const q=j<v.value;l.children[0].setOffset(q?y.value:0)}if(l.children[h.value-1]&&j!==0){const q=j>0;l.children[h.value-1].setOffset(q?-y.value:0)}}l.active=_,l.offset=j,K&&J!==l.active&&n("change",b.value),d()},C=()=>{l.moving=!0,l.active<=-1&&N({pace:h.value}),l.active>=h.value&&N({pace:-h.value})},w=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},B=x=>{C(),r.reset(),Xe(()=>{Xe(()=>{l.moving=!1,N({pace:x,isEmit:!0})})})},V=()=>{B(-1)},T=()=>{B(1)},$=x=>{C(),r.reset(),Xe(()=>{l.moving=!1;let U;e.loop&&h.value===x?U=l.active===0?0:x:U=x%h.value,N({pace:U-l.active,isEmit:!0})})},I=()=>{e.autoPlay<=0||h.value<=1||(w(),l.autoplayTimer=setTimeout(()=>{T(),I()},Number(e.autoPlay)))},F=(x=+e.initPage)=>{w(),l.rect=o.value.getBoundingClientRect(),x=Math.min(h.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=g(l.active),l.moving=!0,d(),I()},A=x=>{e.isPreventDefault&&x.preventDefault(),e.isStopPropagation&&x.stopPropagation(),e.touchable&&(r.start(x),l.touchTime=Date.now(),w(),C())},E=x=>{e.touchable&&l.moving&&(r.move(x),u.value&&N({offset:p.value}))},M=x=>{if(!e.touchable||!l.moving)return;const U=p.value/(Date.now()-l.touchTime);if((Math.abs(U)>.3||Math.abs(p.value)>+(k.value/2).toFixed(2))&&u.value){let J=0;const _=i.value?r.offsetY.value:r.offsetX.value;e.loop?J=_>0?p.value>0?-1:1:0:J=-Math[p.value>0?"ceil":"floor"](p.value/k.value),N({pace:J,isEmit:!0})}else p.value&&N({pace:0});l.moving=!1,d(),I()};return t.provide("parent",{props:e,size:k,relation:m}),Ie({prev:V,next:T,to:$}),t.onDeactivated(()=>{w()}),t.onBeforeUnmount(()=>{w()}),t.watch(()=>e.initPage,x=>{t.nextTick(()=>{F(Number(x))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{F()})}),t.watch(()=>e.autoPlay,x=>{x>0?I():w()}),{state:l,classes:s,classesInner:c,classesPagination:f,container:o,activePagination:b,onTouchStart:A,onTouchMove:E,onTouchEnd:M}}});function mS(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 Bt=ee(fS,[["render",mS]]),{create:pS,componentName:hS}=Q("swiper-item"),gS=pS({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[hS]:!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")}),Ie({setOffset:s}),{style:r,classes:l}}});function yS(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 Vt=ee(gS,[["render",yS]]),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:vS}=Q("image-preview-item"),bS=vS({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:{[Nt.name]:Nt,[Vt.name]:Vt},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:T}=e,$=T/V;return a.imageRatio>$}),r=t.computed(()=>{const V=e.image;if(V&&V.src){const{scale:T,moveX:$,moveY:I,moving:F,zooming:A}=a,E={transitionDuration:A||F?"0s":".3s"};if(T!==1){const M=$/T,x=I/T;E.transform=`scale(${T}, ${T}) translate(${M}px, ${x}px)`}return E}return{}}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:V,rootHeight:T}=e,$=l.value?T/a.imageRatio:V;return Math.max(0,(a.scale*$-V)/2)}return 0}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:V,rootHeight:T}=e,$=l.value?T:V*a.imageRatio;return Math.max(0,(a.scale*$-T)/2)}return 0}),c=V=>{const{naturalWidth:T,naturalHeight:$}=V.target;a.imageRatio=$/T},f=()=>{p(1),a.moveX=0,a.moveY=0},p=V=>{V=Ue(V,+e.minZoom,+e.maxZoom+1),V!==a.scale&&(a.scale=V,n("scale",{scale:V,index:e.initNo}))},u=()=>{const V=a.scale>1?1:2;p(V),a.moveX=0,a.moveY=0},h=V=>Math.sqrt((V[0].clientX-V[1].clientX)**2+(V[0].clientY-V[1].clientY)**2);let k,y,v,b,d,m,g;const S=V=>{const{touches:T}=V,{offsetX:$}=o;o.start(V),g=T.length,k=a.moveX,y=a.moveY,m=Date.now(),a.moving=g===1&&a.scale!==1,a.zooming=g===2&&!$.value,a.zooming&&(v=a.scale,b=h(V.touches))},N=V=>{const{touches:T}=V;if(o.move(V),(a.moving||a.zooming)&&No(V,!0),a.moving){const{deltaX:$,deltaY:I}=o,F=$.value+k,A=I.value+y;a.moveX=Ue(F,-s.value,s.value),a.moveY=Ue(A,-i.value,i.value)}if(a.zooming&&T.length===2){const $=h(T),I=v*$/b;p(I)}},C=()=>{if(g==1&&e.video&&e.video.source||g>1)return;const{offsetX:V,offsetY:T}=o,$=Date.now()-m,I=250,F=5;V.value<F&&T.value<F&&$<I&&(d?(clearTimeout(d),d=null,u()):d=setTimeout(()=>{e.contentClose&&n("close"),d=null},I))},w=V=>{let T=!1;(a.moving||a.zooming)&&(T=!0,a.moving&&k===a.moveX&&y===a.moveY&&(T=!1),V.touches.length||(a.zooming&&(a.moveX=Ue(a.moveX,-s.value,s.value),a.moveY=Ue(a.moveY,-i.value,i.value),a.zooming=!1),a.moving=!1,k=0,y=0,v=1,a.scale<1&&f(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),No(V,T),C(),o.reset()},B=()=>{n("close")};return t.watch(()=>e.initNo,f),t.watch(()=>e.show,V=>{V||f()}),{...t.toRefs(a),onTouchStart:S,onTouchMove:N,onTouchEnd:w,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:B}}}),kS=["src"];function SS(e,n,a,o,l,r){const s=t.resolveComponent("fox-video"),i=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(i,{onClick:e.closeSwiper},{default:t.withCtx(()=>[t.createElementVNode("view",{style:t.normalizeStyle(e.imageStyle),class:"fox-image-preview-box",onTouchstart:n[1]||(n[1]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[2]||(n[2]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[4]||(n[4]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[e.image&&e.image.src?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:n[0]||(n[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,kS)):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 CS=ee(bS,[["render",SS]]),{create:wS}=Q("image-preview"),NS=wS({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:CS,CircleClose:ne.CircleClose,[fe.name]:fe,[Bt.name]:Bt},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(()=>wn(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=p=>{p!==o.active&&(o.active=p,n("change",o.active))},i=()=>{Ls(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},f=()=>{if(a.value){const p=De(a.value);o.rootHeight=p.height,o.rootWidth=p.width}};return t.watch(()=>e.show,p=>{o.showPop=p,p&&(s(e.initNo),f())}),t.watch(()=>e.initNo,p=>{p!=o.active&&s(p)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:a,...t.toRefs(o),onClose:i,mergeImages:r,setActive:s,iconClasses:l}}}),BS={class:"fox-image-preview",ref:"swipeRef"},VS={key:0,class:"fox-image-preview-index"};function AS(e,n,a,o,l,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=p=>e.showPop=p),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",BS,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(p,u)=>(t.openBlock(),t.createBlock(s,{key:u,video:u<e.videos.length?p:{},image:u>=e.videos.length?p:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",VS,t.toDisplayString(e.active+1)+" / "+t.toDisplayString(e.mergeImages.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.iconClasses),onClick:n[0]||(n[0]=(...p)=>e.onClose&&e.onClose(...p))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Ks=ee(NS,[["render",AS]]);class TS{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 $S{options=new TS;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=Vi(a,{name:"image-preview",components:[fe,Nt,Bt,Vt,st],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(Ks,a))}})})}}const no=e=>new $S(e);no.install=e=>{e.use(Ks)};function ES(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{componentName:$V,create:xS}=Q("countup"),DS=xS({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=B=>{B&&o.value.push(B)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:f}=t.reactive(e);t.watch(()=>e.customChangeNum,(B,V)=>{u(),b(0)}),t.watch(()=>e.machinePrizeLevel,(B,V)=>{r.prizeLevelTrun=B}),t.watch(()=>e.initNum,(B,V)=>{r.current=B,r.valFlag=!1,p()}),t.watch(()=>e.endNum,(B,V)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;s&&(i||c?f!="machine"&&b():(v(),setTimeout(()=>{r.valFlag=!0},300)))},u=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(B,V,T)=>{const $=(B.toString().split(".")[1]||"").length,I=(V.toString().split(".")[1]||"").length,F=Math.pow(10,Math.max($,I));return T=="-"?Number((B*F-V*F).toFixed(0))/F:Number((B*F+V*F).toFixed(0))/F},k=B=>{let{num_total_len:V,pointNum:T,initDigit1:$,initDigit2:I,sortFlag:F}=r,A=F=="add"||F=="equal"?String(I)[B-(V-T)]:10-Number(String(I)[B-(V-T)]),E=F=="add"||F=="equal"?String($)[B]:10-Number(String($)[B]),M=B>V-T-1?-A*100+"%":B<=String($).length-1?-E*100+"%":0;return M=="-1000%"&&(M=0),M},y=B=>{let{num_total_len:V,pointNum:T,initDigit1:$,initDigit2:I,sortFlag:F}=r,A=String(I)[B-(V-T)];return B>V-T-1?A||0:B<=String($).length-1?String($)[B]:0},v=()=>{let{endNum:B,initNum:V,speed:T,toFixed:$}=e,I=setInterval(()=>{if(V>B)if(r.current<=B||r.current<=T)r.current=B.toFixed($),clearInterval(I),n("scroll-end"),r.valFlag=!1;else{let F=parseFloat(String(r.current))-parseFloat(String(T));r.current=F.toFixed($)}else if(r.current>=B)r.current=B.toFixed($),clearInterval(I),n("scroll-end"),r.valFlag=!1;else{let F=parseFloat(String(r.current))+parseFloat(String(T));r.current=F.toFixed($)}},e.during)},b=B=>{let{initNum:V,endNum:T,toFixed:$,customBgImg:I}=e;I&&(V=e.customChangeNum);let F,A,E,M;V!=0?($!=0&&(V=Number(V.toFixed($))),String(V).indexOf(".")>-1?(F=String(V).split(".")[0].length,A=String(V).split(".")[1].length):(F=String(V).length,A=0)):(F=1,A=0),T!=0?($!=0&&(T=Number(T.toFixed($))),String(T).indexOf(".")>-1?(E=String(T).split(".")[0].length,M=String(T).split(".")[1].length):(E=String(T).length,M=0)):(E=1,M=0);let x=F>=E?F:E,U=A>=M?A:M;r.num_total_len=x+U,r.pointNum=U,V>T?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(V,T,"-"),r.numberVal=Number(String(V))):V<T?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(T,V,"-"),r.numberVal=Number(String(T))):r.sortFlag="equal";var K=1;for(let _=0;_<r.pointNum;_++)K*=10;var J=r.numberVal*K;if(r.relNum=J,$!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(J).length),String(V).indexOf(".")>-1){let _=String(V).split(".");r.initDigit1=Number(_[0]),r.initDigit2=Number(_[1])}else r.initDigit1=V,r.initDigit2=0;i&&!I?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let _=o.value[r.num_total_len-1];d(_)}):B!==0&&S()},d=B=>{u();var V=1;r.pointNum!=0&&(V=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{m(B),r.totalCount=h(r.totalCount,V,"-"),r.totalCount<=0&&(u(),n("scroll-end"),r.valFlag=!1)},e.during)},m=B=>{let V=B.getAttribute("turn-number"),T;if(r.sortFlag=="add"?T=parseInt(String(V))+1:T=parseInt(String(V))-1>=0?parseInt(String(V))-1:9,B.setAttribute("turn-number",String(T)),(B.style.transition=="none 0s ease 0s"||T==1||!B.style.transition)&&(B.style.transition=`all linear ${e.during}ms`),T==10||r.sortFlag=="reduce"&&T==0){var $=null;B.style.top=`-${r.sortFlag=="add"?T*100:(10-T)*100}%`,B.setAttribute("turn-number","0"),$=setTimeout(()=>{$&&clearTimeout($),B.style.transition="none",B.style.top="0",g(B,T)},.975*e.during)}else B.style.top=`-${r.sortFlag=="add"?T*100:(10-T)*100}%`;B.style.top=="-100%"&&r.sortFlag=="reduce"&&m(B.previousSibling)},g=(B,V)=>{setTimeout(()=>{V==10&&B.previousSibling&&m(B.previousSibling)},200)},S=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{a.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},N=()=>{for(r.notPrize=[];r.notPrize.length<3;){var B=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(B)==-1&&r.notPrize.push(B)}};ES({machineLuck:()=>{const B=e.machineTurnMore<0?0:e.machineTurnMore;let V=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&N();for(let T=0;T<e.machineNum;T++)setTimeout(()=>{let $=V*(T+1+parseFloat(String(B)));r.prizeYPrev.length!=0&&(r.prizeY[T]=r.prizeYPrev[T]);let I=r.prizeYPrev[T]?r.prizeYPrev[T]:0,F=$+I+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(V-I);r.prizeLevelTrun<0&&(F+=e.numHeight*r.notPrize[T]),w(T,F,I)},500*T)}});const w=(B,V,T)=>{let $=setInterval(()=>{if(T<=V)T+=10,r.prizeY[B]=parseFloat(String(T));else if(clearInterval($),$=null,r.finshMachine+=1,r.prizeY[B]=V,r.finshMachine==e.machineNum){let I=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(A=>{let E=A;for(;E>I;)E-=I;r.prizeYPrev.push(E)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{p()})}),t.onUnmounted(()=>{u(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:k,turnNumber:y}}}),IS={class:"fox-countup"},qS=["turn-number"];function PS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",IS,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__machine",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+f,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,qS))),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 ma=ee(DS,[["render",PS]]),MS=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:LS,create:zS}=Q("countdown"),FS=zS({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(()=>({[LS]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-MS(e.startTime),o.counting||(o.counting=!0),i()},i=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const k=Date.now()-o.diffTime,y=Math.max(o.handleEndTime-k,0);o.restTime=y,y||(o.counting=!1,u(),n("on-end")),y>0&&i()}}))},c=(k,y)=>{const v=k;let b={d:0,h:0,m:0,s:0,ms:0};const d=1e3,m=60*d,g=60*m,S=24*g;return v>0&&(b.d=v>=d?Math.floor(v/S):0,b.h=Math.floor(v%S/g),b.m=Math.floor(v%g/m),b.s=Math.floor(v%m/d),b.ms=Math.floor(v%d)),y=="custom"?b:f({...b})},f=k=>{let{d:y,h:v,m:b,s:d,ms:m}=k,g=e.format;if(g.includes("DD")?g=g.replace("DD",tt(y)):v+=Number(y)*24,g.includes("HH")?g=g.replace("HH",tt(v)):b+=Number(v)*60,g.includes("mm")?g=g.replace("mm",tt(b)):d+=Number(b)*60,g.includes("ss")?g=g.replace("ss",tt(d)):m+=Number(d)*1e3,g.includes("S")){const S=tt(m,3).toString();g.includes("SSS")?g=g.replace("SSS",S):g.includes("SS")?g=g.replace("SS",S.slice(0,2)):g.includes("S")&&(g=g.replace("SS",S.slice(0,1)))}return g},p=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i(),n("on-restart",o.restTime))},u=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},h=()=>{e.autoStart||(u(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():o.restTime=e.time}),t.watch(()=>o.restTime,k=>{let y=c(k,"custom");n("update:modelValue",y),n("input",y)}),t.watch(()=>e.paused,(k,y)=>{y?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i()),n("on-restart",o.restTime)):o.counting&&u()}),t.watch(()=>e.endTime,k=>{s()}),t.watch(()=>e.startTime,k=>{s()}),{...t.toRefs(e),slots:a,classes:l,start:p,pause:u,renderTime:r,reset:h}}}),RS=["innerHTML"];function OS(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,RS))],2)}const pa=ee(FS,[["render",OS]]),{create:KS}=Q("badge"),US=KS({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}}}),HS={class:"fox-badge"},jS=["textContent"];function WS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",HS,[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,jS),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const ha=ee(US,[["render",WS]]),{componentName:YS,create:XS}=Q("tag"),QS=XS({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:ne.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const s=YS;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 GS(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 Zt=ee(QS,[["render",GS]]),{create:ZS}=Q("popover"),JS=ZS({components:{FoxPopup:fe},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const m="fox-popover-arrow",g=e.location,S=g.split("-")[0];return`${m} ${m}-${S} ${m}--${g}`}),c=t.computed(()=>{const m={},{bgColor:g,arrowOffset:S,location:N}=e,C=N.split("-")[0],w=N.split("-")[1],B=16;return g&&(m[`border${f(C)}Color`]=g),e.arrowOffset!=0&&(["bottom","top"].includes(C)&&(w||(m.left=`calc(50% + ${S}px)`),w=="start"&&(m.left=`${B+S}px`),w=="end"&&(m.right=`${B-S}px`)),["left","right"].includes(C)&&(w||(m.top=`calc(50% - ${S}px)`),w=="start"&&(m.top=`${B-S}px`),w=="end"&&(m.bottom=`${B+S}px`))),m}),f=m=>(m=m.toLowerCase(),m=m.replace(/\b\w+\b/g,g=>g.substring(0,1).toUpperCase()+g.substring(1)),m),p=t.computed(()=>{let m={};if(!r.value||!s.value)return{};const g=s.value.width,S=s.value.height,{width:N,height:C,left:w,top:B}=r.value,{location:V,offset:T}=e,$=V.split("-")[0],I=V.split("-")[1];let F=0,A=0;if(wn(T)&&T.length==2&&(F+=Number(T[1]),A+=Number(T[0])),N){if(["bottom","top"].includes($)){const E=$=="bottom"?C+F:-(S+F);m.top=`${B+E}px`,I||(m.left=`${-(g-N)/2+w+A}px`),I=="start"&&(m.left=`${w+A}px`),I=="end"&&(m.left=`${r.value.right+A}px`)}if(["left","right"].includes($)){const E=$=="left"?-(g+F):N+F;m.left=`${w+E}px`,I||(m.top=`${B-S/2+C/2-4+A}px`),I=="start"&&(m.top=`${B+A}px`),I=="end"&&(m.top=`${B+C+A}px`)}}return m}),u=t.computed(()=>{const m={};return e.bgColor&&(m.background=e.bgColor),m}),h=()=>{let m=De(a.value);e.targetId&&(m=De(document.querySelector(`#${e.targetId}`))),r.value=m,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,m=>{l.value=m,m?(window.addEventListener("touchstart",d,!0),h()):window.removeEventListener("touchstart",d,!0)});const k=m=>{n("update",m),n("update:visible",m)},y=()=>{k(!e.visible),n("open")},v=()=>{n("update:visible",!1),n("close")},b=(m,g)=>{!m.disabled&&n("choose",m,g),e.closeOnClickAction&&v()},d=m=>{const g=a.value,S=o.value;let N=g&&!g.contains(m.target);if(e.targetId){const C=document.querySelector(`#${e.targetId}`);N=C&&!C.contains(m.target)}N&&S&&!S.contains(m.target)&&e.closeOnClickOutside&&v()};return{showPopup:l,openPopover:y,popoverArrow:i,closePopover:v,chooseItem:b,popoverRef:a,popoverContentRef:o,getRootPosition:p,customStyle:u,popoverArrowStyle:c,renderIcon:as}}}),_S={ref:"popoverContentRef",class:"fox-popover-content-group"},e1=["onClick"],t1={class:"fox-popover-menu-item-name"};function n1(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",_S,[e.showArrow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.popoverArrowStyle)},null,6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(f=>e.chooseItem(i,c),["stop"])},[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",t1,t.toDisplayString(i.name),1)],10,e1))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Jt=ee(JS,[["render",n1]]),o1=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:l1}=Q("skeleton"),a1=l1(o1({[Gt.name]:Gt})),r1={key:0},s1={key:1,class:"fox-skeleton"},i1={key:0,class:"fox-skeleton-animation"},c1={class:"fox-skeleton-content"};function u1(e,n,a,o,l,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",s1,[e.animated?(t.openBlock(),t.createElementBlock("view",i1)):t.createCommentVNode("",!0),t.createElementVNode("view",c1,[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",r1,[t.renderSlot(e.$slots,"default")]))}const ga=ee(a1,[["render",u1]]),{create:d1,componentName:f1}=Q("collapse"),m1=d1({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(()=>({[f1]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,f,p=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,f,p)},s=c=>{if(e.accordion)o.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(o.value))if(o.value.includes(c)){const f=o.value.filter(p=>p!==c);r(f,c,!1)}else{const f=o.value.concat([c]);r(f,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?o.value===c:Array.isArray(o.value)?o.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:a,classes:l}}});function p1(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 ya=ee(m1,[["render",p1]]),{create:h1,componentName:g1}=Q("collapse-item"),y1=h1({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:ne.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=t.ref(null),a=t.ref(null),o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const h=g1;return{[h]:!0,[h+"__border"]:e.border}}),s=t.computed(()=>l?l.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},f=()=>{s.value&&(i.value="auto")},p=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},u=()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?p():u()}),{classes:r,renderIcon:as,wrapperRef:n,contentRef:a,open:p,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:f}}}),v1={class:"fox-collapse-item__title-main"},b1={class:"fox-collapse-item__title-main-value"},k1=["innerHTML"],S1={key:2,class:"fox-collapse-item__title-label"},C1={key:0,class:"fox-collapse-item__title-sub"},w1=["innerHTML"],N1={key:0,class:"fox-collapse__item-extraWrapper"},B1={class:"fox-collapse__item-extraWrapper__extraRender"},V1={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function A1(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",v1,[t.createElementVNode("view",b1,[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,k1)),e.label?(t.openBlock(),t.createElementBlock("view",S1,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",C1,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,w1)),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",N1,[t.createElementVNode("div",B1,[t.renderSlot(e.$slots,"extra")])])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:t.normalizeStyle({willChange:"height",height:e.wrapperHeight}),onTransitionend:n[1]||(n[1]=(...s)=>e.onTransitionEnd&&e.onTransitionEnd(...s))},[t.createElementVNode("view",V1,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const va=ee(y1,[["render",A1]]),T1=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:$1,create:E1,scope:x1}=Q("table"),D1=E1({components:{RenderColumn:T1,DownArrow:ne.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:o}=se.useFoxI18n(x1),l=t.reactive({curData:e.data}),r=t.computed(()=>({[$1]:!0})),s=k=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${k.align?k.align:""}`]:!0}),i=k=>k.stylehead?k.stylehead:"",c=k=>k.stylecolumn?k.stylecolumn:"",f=k=>e.columns.filter(y=>y.key===k)[0],p=k=>{const y=e.columns.filter(v=>v.key===k);return y[0].stylecolumn?y[0].stylecolumn:""},u=k=>{k.sorter&&(n("sorter",k),l.curData=typeof k.sorter=="function"?l.curData.sort(k.sorter):k.sorter==="default"?l.curData.sort():l.curData)},h=()=>e.columns.map(k=>[k.key,k.render]);return t.watch(()=>e.data,k=>{l.curData=k.slice()}),{...t.toRefs(l),classes:r,cellClasses:s,getColumnItem:f,getColumnItemStyle:p,handleSorterClick:u,sortDataItem:h,t:o,stylehead:i,stylecolumn:c}}}),I1={class:"fox-table__main__head"},q1={class:"fox-table__main__head__tr"},P1=["onClick"],M1={class:"fox-table__main__body"},L1={key:1},z1={key:0,class:"fox-table__nodata"},F1={key:0,class:"fox-table__nodata__text"},R1={key:1,class:"fox-table__summary"},O1=["innerHTML"];function K1(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",I1,[t.createElementVNode("view",q1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:f=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,P1))),128))])]),t.createElementVNode("view",M1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([f,p])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(f))]),key:f,style:t.normalizeStyle(e.getColumnItemStyle(f))},[typeof c[f]=="function"||typeof p=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[p,c[f]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",L1,t.toDisplayString(c[f]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",z1,[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",F1,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",R1,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,O1)])):t.createCommentVNode("",!0)],2)}const ba=ee(D1,[["render",K1]]),{componentName:U1,create:H1}=Q("ellipsis"),j1=H1({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(()=>({[U1]:!0}));t.watch(()=>e.content,(v,b)=>{v!=b&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!a.value)return;const v=window.getComputedStyle(a.value);o=document.createElement("div"),Array.prototype.slice.apply(v).forEach(m=>{o.style.setProperty(m,v.getPropertyValue(m))}),o.style.position="fixed",o.style.left="999999px",o.style.top="999999px",o.style.zIndex="-1000",o.style.height="auto",o.style.minHeight="auto",o.style.maxHeight="auto",o.style.textOverflow="clip",o.style.whiteSpace="normal",o.style.webkitLineClamp="unset",o.style.display="block";const d=h(v.lineHeight==="normal"?e.lineHeight:v.lineHeight);l=Math.floor(d*(Number(e.rows)+.5)+h(v.paddingTop)+h(v.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),f()},f=()=>{if(o.offsetHeight<=l)s.exceeded=!1,document.body.removeChild(o);else{s.exceeded=!0;const v=e.content.length,b=Math.floor((0+v)/2),d=e.direction==="middle"?u([0,b],[b,v]):p(0,v);r.value=d,document.body.removeChild(o)}},p=(v,b)=>{const d=s.expanded?e.collapseText:e.expandText,m=e.content.length;if(b-v<=1)return e.direction==="end"?{leading:e.content.slice(0,v)+e.symbol}:{tailing:e.symbol+e.content.slice(b,m)};const g=Math.round((v+b)/2);return e.direction==="end"?o.innerText=e.content.slice(0,g)+e.symbol+d:o.innerText=d+e.symbol+e.content.slice(g,m),o.offsetHeight<=l?e.direction==="end"?p(g,b):p(v,g):e.direction==="end"?p(v,g):p(g,b)},u=(v,b)=>{const d=s.expanded?e.collapseText:e.expandText,m=e.content.length;if(v[1]-v[0]<=1&&b[1]-b[0]<=1)return{leading:e.content.slice(0,v[0])+e.symbol,tailing:e.symbol+e.content.slice(b[1],m)};const g=Math.floor((v[0]+v[1])/2),S=Math.ceil((b[0]+b[1])/2);return o.innerText=e.content.slice(0,g)+e.symbol+d+e.symbol+e.content.slice(S,m),o.offsetHeight<=l?u([g,v[1]],[b[0],S]):u([v[0],g],[S,b[1]])},h=v=>{if(!v)return 0;const b=v.match(/^\d*(\.\d*)?/);return b?Number(b[0]):0},k=v=>{v==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},y=()=>{n("click")};return{...t.toRefs(s),root:a,ellipsis:r,classes:i,clickHandle:k,handleClick:y}}}),W1={key:0},Y1={key:1},X1={key:2};function Q1(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",W1,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",Y1,[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",X1,[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 ka=ee(j1,[["render",Q1]]),{componentName:G1,create:Z1}=Q("animate"),J1=Z1({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,[`${G1}-${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}}}),_1={class:"fox-animate"};function eC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",_1,[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 Sa=ee(J1,[["render",eC]]),{componentName:tC,create:nC}=Q("watermark"),oC=nC({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.reactive({base64Url:""}),{zIndex:o,gapX:l,gapY:r,width:s,height:i,rotate:c,image:f,imageWidth:p,imageHeight:u,content:h,fontStyle:k,fontWeight:y,fontColor:v,fontSize:b,fontFamily:d}=e,m=()=>{const S=document.createElement("canvas"),N=window.devicePixelRatio,C=S.getContext("2d"),w=`${(l+s)*N}px`,B=`${(r+i)*N}px`,V=s*N,T=i*N;if(S.setAttribute("width",w),S.setAttribute("height",B),C){if(f){C.translate(V/2,T/2),C.rotate(Math.PI/180*Number(c));const $=new Image;$.crossOrigin="anonymous",$.referrerPolicy="no-referrer",$.src=f,$.onload=()=>{C.drawImage($,-p*N/2,-u*N/2,p*N,u*N),C.restore(),a.base64Url=S.toDataURL()}}else if(h){C.textBaseline="middle",C.textAlign="center",C.translate(V/2,T/2),C.rotate(Math.PI/180*Number(c));const $=Number(b)*N;C.font=`${k} normal ${y} ${$}px/${T}px ${d}`,C.fillStyle=v,C.fillText(h,0,0),C.restore(),a.base64Url=S.toDataURL()}}else throw new Error("当前环境不支持Canvas")};m(),t.watch(()=>[o,l,r,s,i,c,f,p,u,h,k,y,v,b,d],()=>{m()});const g=t.computed(()=>{const S=tC;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:g}}});function lC(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 Ca=ee(oC,[["render",lC]]);function aC(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:rC,create:sC}=Q("trend-arrow"),iC=sC({components:{TriangleUp:ne.TriangleUp,TriangleDown:ne.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=t.reactive({rateTrend:e.rate>0}),a=t.computed(()=>({[rC]:!0})),o=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;n.rateTrend=r>0;const f=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${aC(Number(f),s)}%`}),l=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:f}=e;return{color:f===0?c:i?n.rateTrend?s:r:c}});return{...t.toRefs(n),classes:a,calcRate:o,calcStyle:l}}});function cC(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 wa=ee(iC,[["render",cC]]),{create:uC}=Q("tour"),dC=uC({components:{[Jt.name]:Jt,Close:ne.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),l=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:p,maskWidth:u,maskHeight:h}=e,{width:k,height:y,left:v,top:b}=o.value,d=[v+k/2,b+y/2],m=Number(u||k),g=Number(h||y);return{width:`${m+ +p[1]*2}px`,height:`${g+ +p[0]*2}px`,top:`${d[1]-g/2-+p[0]}px`,left:`${d[0]-m/2-+p[1]}px`}}),s=p=>{p=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,t.nextTick(()=>{a.showPopup=!0,i()}),n("change",a.active)},i=()=>{const p=document.querySelector(`#${e.steps[a.active].target}`),u=De(p);o.value=u},c=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},f=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{a.active=0,i()}),t.watch(()=>e.modelValue,p=>{p&&i(),a.active=0,a.showTour=p,a.showPopup=p}),{...t.toRefs(a),classes:l,maskStyle:r,changeStep:s,close:c,handleClickMask:f}}}),fC={key:0,class:"fox-tour-content"},mC={key:0,class:"fox-tour-content-top"},pC={class:"fox-tour-content-inner"},hC={class:"fox-tour-content-bottom"},gC={class:"fox-tour-content-bottom-init"},yC={class:"fox-tour-content-bottom-operate"},vC={key:1,class:"fox-tour-content fox-tour-content-tile"},bC={class:"fox-tour-content-inner"};function kC(e,n,a,o,l,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-popover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=p=>e.showPopup=p),location:c.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:c.popoverOffset||[0,12],arrowOffset:c.arrowOffset||0},{content:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",fC,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",mC,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...p)=>e.close&&e.close(...p))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",pC,t.toDisplayString(c.content),1),t.createElementVNode("div",hC,[t.createElementVNode("div",gC,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",yC,[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",vC,[t.createElementVNode("div",bC,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const Na=ee(dC,[["render",kC]]),{componentName:EV,create:SC,scope:CC}=Q("address"),wC=SC({components:{Location:ne.Location,Location2:ne.Location2,Check:ne.Check,Close:ne.Close,Left:ne.Left,[fe.name]:fe,[jt.name]:jt},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}=se.useFoxI18n(CC),o=t.ref(null),l=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),f=t.ref(["province","city","country","town"]),p=t.ref(null),u=t.ref([0,0,0,0]),h=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),k=E=>{if(!Array.isArray(E))throw new TypeError("params muse be array.");if(!E.length)return[];E.forEach(x=>{if(!x.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const M=[];return E=E.sort((x,U)=>x.title.localeCompare(U.title)),E.forEach(x=>{const U=M.findIndex(K=>K.title===x.title);U<=-1?M.push({title:x.title,list:[].concat(x)}):M[U].list.push(x)}),M};let y=t.ref([]),v=t.reactive({});const b=t.ref("self"),d=t.ref(20),m=()=>{const E=e.modelValue,M=E.length;if(M>0){if(i.value=M-1,h.value.length==0){i.value=0;return}for(let x=0;x<M;x++){let U=[];switch(x){case 0:U=e.province;break;case 1:U=e.city;break;case 2:U=e.country;break;default:U=e.town}y.value[x]=U.filter(K=>K.id==E[x])[0]}S()}},g=(E,M)=>E&&E.name||i.value<M&&E?E.name:e.columnsPlaceholder[M]||a("select"),S=()=>{w(),t.nextTick(()=>{const E=l.value&&l.value.getElementsByClassName("active")[0];if(E){const M=E.offsetLeft;d.value=M||20}})},N=E=>{const M=i.value;c.value=i.value;const x={custom:f.value[M]};y.value[M]=E;for(let U=M+2;U<4;U++)y.value.splice(U,1);M<3?(i.value=M+1,S(),x.next=f.value[i.value],x.value=E,n("change",x)):(T(),n("update:modelValue"))},C=(E,M)=>{c.value=i.value,g(E,M)&&(i.value=M,S())},w=()=>{const E=p.value,M=c.value,x=u.value[i.value];E?.scrollTop&&(u.value[M]=E?.scrollTop),t.nextTick(()=>{E?.scrollTo({top:x,behavior:"auto"})})},B=E=>{const M=e.existAddress;let x={};M.forEach(U=>{U&&U.selectedAddress&&(x=U),U.selectedAddress=!1}),E.selectedAddress=!0,v=E,n("selected",x,E,M),T()},V=()=>{y.value=[],i.value=0,S()},T=(E="self")=>{b.value=E=="cross"?"cross":"self",r.value=!1},$=()=>{b.value="mask"},I=()=>{const E={addressIdStr:"",addressStr:"",province:y.value[0],city:y.value[1],country:y.value[2],town:y.value[3]},M={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(x=>{const U=y.value[x];E.addressIdStr+=`${x?"_":""}${U&&U.id||0}`,E.addressStr+=U&&U.name||""}),M.data=E):M.data=v,V(),b.value=="self"?n("close",M):n("close-mask",{closeWay:b}),n("update:visible",!1)},F=()=>{const E=s.value;s.value=E=="exist"?"custom":"exist",V(),n("switch-module",{type:s.value})},A=(E,M)=>{N(M)};return t.watch(()=>e.visible,E=>{r.value=E}),t.watch(()=>r.value,E=>{E&&m()}),{showPopup:r,privateType:s,tabIndex:i,tabName:f,selectedRegion:y,switchModule:F,closeWay:b,close:I,getTabName:g,nextAreaList:N,regionLine:o,tabRegion:l,lineDistance:d,changeRegionTab:C,selectedExist:B,clickOverlay:$,handClose:T,handleElevatorItem:A,initCustomSelected:m,...t.toRefs(e),t:a,regionList:h,transformData:k,scrollDom:p}}}),NC={class:"fox-address"},BC={class:"fox-address__header"},VC={class:"fox-address__header__title"},AC={key:0,class:"fox-address__custom"},TC={class:"fox-address__region",ref:"tabRegion"},$C=["onClick"],EC={key:0,class:"active fox-address__region-item"},xC={key:0,class:"fox-address__detail"},DC={class:"fox-address__detail-list",ref:"scrollDom"},IC=["onClick"],qC={key:1,class:"fox-address__elevator-group"},PC={key:1,class:"fox-address__exist"},MC={class:"fox-address__exist-group"},LC={class:"fox-address__exist-group-list"},zC=["onClick"],FC={class:"fox-address__exist-item-info"},RC={key:0,class:"fox-address__exist-item-info-name"},OC={key:1,class:"fox-address__exist-item-info-phone"},KC={class:"fox-address__exist-item-info-bottom"},UC={class:"fox-address__exist-choose-btn"};function HC(e,n,a,o,l,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),f=t.resolveComponent("fox-elevator"),p=t.resolveComponent("Location2"),u=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(u,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",NC,[t.createElementVNode("view",BC,[t.createElementVNode("view",{class:"fox-address__header-back",onClick:n[0]||(n[0]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.renderSlot(e.$slots,"back-icon",{},()=>[t.withDirectives(t.createVNode(s,{size:"14px"},null,512),[[t.vShow,e.type=="exist"&&e.privateType=="custom"]])])]),t.createElementVNode("view",VC,t.toDisplayString(e.privateType=="custom"?e.customAddressTitle||e.t("selectRegion"):e.existAddressTitle||e.t("deliveryTo")),1),t.createElementVNode("view",{class:"fox-address__header-close",onClick:n[1]||(n[1]=h=>e.handClose("cross"))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{color:"#cccccc",size:"14px"})])])]),["custom","custom2"].includes(e.privateType)?(t.openBlock(),t.createElementBlock("view",AC,[t.createElementVNode("view",TC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,k)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",k==e.tabIndex?"active":""]),key:k,onClick:y=>e.changeRegionTab(h,k)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,k)),1)],10,$C))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",EC,[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",xC,[t.createElementVNode("ul",DC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,k)=>(t.openBlock(),t.createElementBlock("li",{key:k,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick:y=>e.nextAreaList(h)},[t.createElementVNode("div",null,[e.selectedRegion[e.tabIndex]?.id==h.id?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(h.name),1)])],10,IC))),128))],512)])):(t.openBlock(),t.createElementBlock("view",qC,[t.createVNode(f,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",PC,[t.createElementVNode("div",MC,[t.createElementVNode("ul",LC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,k)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:k,onClick:y=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(p,{class:"fox-address-select-icon",size:"13px"})]),h.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",FC,[h.name?(t.openBlock(),t.createElementBlock("div",RC,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",OC,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",KC,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,zC))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:n[2]||(n[2]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.createElementVNode("div",UC,t.toDisplayString(e.customAndExistTitle||e.t("chooseAnotherAddress")),1)])):t.createCommentVNode("",!0)])),t.renderSlot(e.$slots,"bottom")])]),_:3},8,["lock-scroll","onClose","onClickOverlay","visible","teleportDisable","teleport"])}const Ba=ee(wC,[["render",HC]]),{componentName:jC,create:WC}=Q("barrage"),YC=WC({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(()=>({[jC]:!0}));let l=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),f=t.ref(e.top),p=t.ref(0),u=e.speeds,h=t.ref(0);t.onMounted(()=>{k(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(v(),p.value=0,y("hidden")):document.visibilityState==="visible"&&k()})}),t.onUnmounted(()=>{i.value=[],v()});const k=()=>{h.value=l.value.offsetWidth,a&&y("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${h.value}px`),d()},300)},y=g=>{let N=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const C=[];N&&Array.from(N).forEach(w=>{g=="init"?(w.style.opacity="0",C.push(w)):(w.classList="",w.style={})}),g=="init"&&(i.value=C)},v=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,g=>{e.danmu.length>0&&(i.value=[...g])});const b=g=>{const S=p.value%i.value.length;!e.loop&&p.value===i.value.length?i.value.splice(i.value.length,0,g):i.value.splice(S,0,g)},d=()=>{v(),s=setTimeout(()=>{m()},e.frequency)},m=()=>{const g=e.loop?p.value%i.value.length:p.value;let S=document.createElement("view");a&&typeof i.value[g]=="object"?(S=i.value[g],S?.classList?.add("fox-barrage__item")):(S.innerHTML=i.value[g],S.classList.add("fox-barrage__item"),r.value.appendChild(S)),t.nextTick(()=>{const N=S.offsetHeight;if(S?.classList?.add("move"),S.style.animationDuration=`${u}ms`,S.style.top=g%c.value*(N+f.value)+20+"px",S.style.opacity="1",!a){const C=S.offsetWidth;S.style.width=C+20+"px"}S.addEventListener("animationend",()=>{a?S.classList.remove("move"):r.value.removeChild(S)}),!(!e.loop&&p.value>=i.value.length-1)&&(p.value++,p.value>=i.value.length&&(p.value=0),S.removeEventListener("animationend",()=>{}),d())})};return{classTime:n,classes:o,danmuList:i,dmBody:l,dmContainer:r,add:b}}});function XC(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=ee(YC,[["render",XC]]),{componentName:QC,create:GC,scope:ZC}=Q("signature"),JC=GC({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:{[Le.name]:Le},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:a}=se.useFoxI18n(ZC),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),s=t.computed(()=>({[QC]:!0,[`${e.customClass}`]:e.customClass})),i=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let m=document.createElement("canvas");return!!(m.getContext&&m.getContext("2d"))},f=()=>{l.value.addEventListener(i.events[0],p,!1)},p=m=>{m.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(i.events[1],u,!1),l.value.addEventListener(i.events[2],h,!1),l.value.addEventListener(i.events[3],k,!1)},u=m=>{m.preventDefault();let g=i.isSupportTouch?m.touches[0]:m;n("signing",g);let S=l.value.getBoundingClientRect(),N=g.clientX-S.left,C=g.clientY-S.top;i.ctx.lineTo(N,C),i.ctx.stroke()},h=m=>{m.preventDefault(),n("end"),l.value.removeEventListener(i.events[1],u,!1),l.value.removeEventListener(i.events[2],h,!1)},k=m=>{m.preventDefault(),l.value.removeEventListener(i.events[1],u,!1),l.value.removeEventListener(i.events[2],h,!1)},y=()=>{l.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},v=()=>{d(l.value)},b=m=>{if(!m)return!0;var g=document.createElement("canvas");return g.width=m.width,g.height=m.height,m?.toDataURL()==g.toDataURL()},d=m=>{let g;switch(e.type){case"png":g=m.toDataURL("image/png");break;case"jpg":g=m.toDataURL("image/jpeg",.8);break}const S=b(m)?"请绘制签名":m,N=b(m)?"":g;n("confirm",S,N)};return t.onMounted(()=>{c()&&(i.ctx=l.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,f())}),{...o,...t.toRefs(i),canvas:l,wrap:r,isCanvasSupported:c,confirm:v,clear:y,classes:s}}}),_C={class:"fox-signature-inner",ref:"wrap"},ew=["height","width"],tw={key:0,class:"fox-signature-unsopport"};function nw(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",_C,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,ew),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",tw,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 Aa=ee(JC,[["render",nw]]),{componentName:ow,create:lw,scope:aw}=Q("time-select"),rw=lw({components:{[fe.name]:fe},props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!0},teleportDisable:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,n)=>{const{t:a}=se.useFoxI18n(aw),o=t.computed(()=>({[ow]:!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}}}),sw={class:"fox-time-select__title"},iw={class:"fox-time-select__title__fixed"},cw={key:0},uw={class:"fox-time-select__content"},dw={class:"fox-time-select__content__pannel"},fw={class:"fox-time-select__content__detail"};function mw(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",sw,[t.createElementVNode("view",iw,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",cw,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",uw,[t.createElementVNode("view",dw,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",fw,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Ta=ee(rw,[["render",mw]]),{componentName:pw,create:hw}=Q("time-pannel"),gw=hw({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(()=>({[pw]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function yw(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 $a=ee(gw,[["render",yw]]),{componentName:vw,create:bw}=Q("time-detail"),kw=bw({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(()=>({[vw]:!0})),s=f=>{let p=l.currentTime.find(u=>u.key==l.currentKey);if(p)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":p.list.filter(u=>u===f).length>0}},i=t.computed(()=>e.times.find(f=>f.key==l.currentKey).list),c=f=>{n.emit("select",f)};return{classes:r,...t.toRefs(l),getClass:s,renderData:i,handleTime:c}}}),Sw={class:"fox-time-detail__detail fox-time-detail__detail--moring"},Cw={class:"fox-time-detail__detail__list"},ww=["onClick"];function Nw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Sw,[t.createElementVNode("view",Cw,[(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,ww))),128))])])],2)}const Ea=ee(kw,[["render",Nw]]),{componentName:xV,create:Bw,scope:Vw}=Q("sku-header"),Aw=Bw({props:{goods:{type:Object,default:{}}},emits:[],components:{[Ge.name]:Ge},setup(e,{emit:n,slots:a}){const{t:o}=se.useFoxI18n(Vw);return{getSlots:r=>a[r],t:o}}}),Tw={class:"fox-sku-header"},$w=["src"],Ew={class:"fox-sku-header-right"},xw={key:3,class:"fox-sku-header-right-extra"};function Dw(e,n,a,o,l,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",Tw,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,$w),t.createElementVNode("view",Ew,[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",xw,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const Iw=ee(Aw,[["render",Dw]]),{componentName:DV,create:qw}=Q("sku-select"),Pw=qw({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})}}}}),Mw={class:"fox-sku-select"},Lw={class:"fox-sku-select-item-title"},zw={class:"fox-sku-select-item-skus"},Fw=["onClick"];function Rw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Mw,[(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",Lw,t.toDisplayString(s.name),1),t.createElementVNode("view",zw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:p=>e.changeSaleChild(c,f,s,i),key:c.name},t.toDisplayString(c.name),11,Fw))),128))])]))),128))])}const Ow=ee(Pw,[["render",Rw]]),{componentName:IV,create:Kw}=Q("sku-stepper"),Uw=Kw({props:{stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},stepperExtraText:{type:[Function,Boolean],default:!1},stepperTitle:{type:String,default:"购买数量"}},emits:["click","changeSku","changeStepper","clickBtnOptions","overLimit","reduce","add"],components:{[Ze.name]:Ze},setup(e,{emit:n}){const a=t.ref(e.stepperMin);return t.onMounted(()=>{a.value=e.stepperMin}),{goodsCount:a,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,f)=>{n("overLimit",{action:f,value:parseInt(a.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&rt(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),Hw={class:"fox-sku-stepper"},jw={class:"fox-sku-stepper-title"},Ww=["innerHTML"],Yw={class:"fox-sku-stepper-count"};function Xw(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",Hw,[t.createElementVNode("view",jw,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,Ww),t.createElementVNode("view",Yw,[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 Qw=ee(Uw,[["render",Xw]]),{componentName:qV,create:Gw}=Q("sku-operate"),Zw=Gw({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]}}}),Jw={key:0,class:"fox-sku-operate"},_w={key:0,class:"fox-sku-operate-desc"},eN={key:1,class:"fox-sku-operate-btn"},tN=["onClick"];function nN(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",Jw,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",_w,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",eN,[(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,tN))),128))]))])):t.createCommentVNode("",!0)}const oN=ee(Zw,[["render",nN]]),{componentName:PV,create:lN,scope:aN}=Q("sku"),rN=lN({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:Iw,SkuSelect:Ow,SkuStepper:Qw,SkuOperate:oN,[fe.name]:fe},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=se.useFoxI18n(aN),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,b=>{r.value=b}),t.watch(()=>r.value,b=>{b==!1&&v()}),t.onMounted(()=>{});const i=b=>a[b],c=b=>{n("select-sku",b)},f=b=>{s.value=b,n("change-stepper",b)},p=b=>{n("add",b)},u=b=>{n("reduce",b)},h=b=>{n("over-limit",b)},k=b=>{n("click-btn-operate",{type:b,value:s.value})},y=b=>{b=="icon"&&n("click-close-icon"),b=="overlay"&&n("click-overlay"),b=="close"&&n("close"),r.value=!1},v=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:y,selectSku:c,changeStepper:f,stepperOverLimit:h,clickBtnOperate:k,add:p,reduce:u,getSlots:i,...l}}}),sN={class:"fox-sku"},iN={class:"fox-sku-content"};function cN(e,n,a,o,l,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),f=t.resolveComponent("sku-operate"),p=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(p,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=u=>e.showPopup=u),onClickCloseIcon:n[1]||(n[1]=u=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=u=>e.closePopup("overlay")),onClose:n[3]||(n[3]=u=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",sN,[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",iN,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(f,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const xa=ee(rN,[["render",cN]]),{create:uN}=Q("card"),dN=uN({components:{[Ge.name]:Ge,[Zt.name]:Zt},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]}}}),fN={class:"fox-card"},mN={class:"fox-card__left"},pN=["src"],hN={class:"fox-card__right"},gN={class:"fox-card__right__title"},yN={key:0,class:"fox-card__right__price"},vN={class:"fox-card__right__other"},bN={class:"fox-card__right__shop"},kN={class:"fox-card__right__shop__name"};function SN(e,n,a,o,l,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",fN,[t.createElementVNode("div",mN,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,pN)]),t.createElementVNode("div",hN,[t.createElementVNode("div",gN,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",yN,[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",vN,[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",bN,[t.createElementVNode("div",kN,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Da=ee(dN,[["render",SN]]),{create:CN,scope:wN}=Q("ecard"),NN=CN({components:{[Ze.name]:Ze},props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:Array,default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"¥"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(wN),o=t.ref(null),l=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,k)=>{o.value=k,s.value=e.cardAmountMin,l.value=h.price,n("change",h),n("update:modelValue",h.price)},f=h=>{let y=h.target.value.replace(/[^\d]/g,"");r.value=y,l.value=y,Number(y)>e.cardAmountMax&&(r.value=e.cardAmountMax,l.value=e.cardAmountMax),Number(y)<e.cardAmountMin&&(r.value=e.cardAmountMin,l.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},p=()=>{o.value="input",s.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},u=h=>{s.value=h,n("changeStep",s.value,l.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:u,change:f,inputClick:p,stepValue:s,currentIndex:o,inputValue:r,money:i,t:a}}}),BN={class:"fox-ecard"},VN={class:"fox-ecard__title"},AN={class:"fox-ecard__list"},TN=["onClick"],$N={class:"fox-ecard__list__input--con"},EN=["placeholder"],xN={class:"fox-ecard__list__step"};function DN(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",BN,[t.createElementVNode("view",VN,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",AN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:f=>e.handleClick(i,c)},t.toDisplayString(i.price),11,TN))),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",$N,[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,EN),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",xN,[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 Ia=ee(NN,[["render",DN]]),{create:IN,scope:qN}=Q("address-list-item"),PN=IN({components:{Del:ne.Del,Edit:ne.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(qN);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}}}),MN={class:"fox-address-list-item__info"},LN={class:"fox-address-list-item__info-contact"},zN={class:"fox-address-list-item__info-contact-name"},FN={class:"fox-address-list-item__info-contact-tel"},RN={key:0,class:"fox-address-list-item__info-contact-default"},ON={class:"fox-address-list-item__info-handle"},KN={class:"fox-address-list-item__addr"};function UN(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",MN,[t.createElementVNode("div",LN,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",zN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",FN,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",RN,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",ON,[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",KN,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const $r=ee(PN,[["render",UN]]),{create:HN}=Q("address-list-general"),jN=HN({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:$r,[Le.name]:Le,[Xt.name]:Xt},setup(e,{emit:n}){const a=()=>t.h($r,{item:e.item,onDelIcon(N){s(N)},onEditIcon(N){i(N)},onClickItem(N){c(N)}});let o=null;const l=t.ref(!1),r=t.ref(!1),s=N=>{n("delIcon",N,e.item),N.stopPropagation()},i=N=>{n("editIcon",N,e.item),N.stopPropagation()},c=N=>{l.value||(n("clickItem",N,e.item),N.stopPropagation())},f=N=>{n("longDel",N,e.item),N.stopPropagation()},p=N=>{o=0,r.value=!0,n("longDown",N,e.item)};return{renderCompontent:a,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:f,holddownstart:N=>{o=setTimeout(()=>{p(N)},300)},holddownmove:()=>{clearTimeout(o)},holddownend:()=>{clearTimeout(o)},copyCLick:N=>{n("longCopy",N,e.item),N.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:N=>{n("longSet",N,e.item),N.stopPropagation()},maskClick:N=>{o!=0&&(r.value=!1),N.stopPropagation(),N.preventDefault()},swipeDelClick:N=>{n("swipeDel",N,e.item),N.stopPropagation()},swipestart:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),WN={key:0,class:"fox-address-list-general"},YN={class:"fox-address-list-swipe"};function XN(e,n,a,o,l,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(i,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(s,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>[t.createTextVNode("删除")]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",YN,[(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",WN,[(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 QN=ee(jN,[["render",XN]]),{componentName:GN,create:ZN,scope:JN}=Q("address-list"),_N=ZN({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:QN,[Le.name]:Le},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(JN),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[GN]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(v=>Wr(l,v,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(v,b)=>{n("delIcon",v,b),v.stopPropagation()},c=(v,b)=>{n("editIcon",v,b),v.stopPropagation()},f=(v,b)=>{n("clickItem",v,b),v.stopPropagation()},p=(v,b)=>{n("longCopy",v,b),v.stopPropagation()},u=(v,b)=>{n("longSet",v,b),v.stopPropagation()},h=(v,b)=>{n("longDel",v,b),v.stopPropagation()},k=(v,b)=>{n("swipeDel",v,b),v.stopPropagation()},y=v=>{n("add",v),v.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:f,clickLongCopy:p,clickLongSet:u,clickLongDel:h,clickSwipeDel:k,addAddress:y,dataArray:o,t:a}}});function eB(e,n,a,o,l,r){const s=t.resolveComponent("general-shell"),i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,f)=>(t.openBlock(),t.createBlock(s,{key:f,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:n[0]||(n[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const qa=ee(_N,[["render",eB]]),{componentName:MV,create:tB}=Q("category"),nB=tB({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}}}),oB={class:"fox-category"},lB={class:"fox-category__cateList"},aB={key:0},rB=["onClick"];function sB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",oB,[t.createElementVNode("div",lB,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",aB,[(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,rB)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Pa=ee(nB,[["render",sB]]),{componentName:LV,create:iB}=Q("category-pane"),cB=iB({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),uB={class:"fox-category-pane"},dB={key:0,class:"fox-category-pane__cateListRight"},fB={class:"fox-category-pane__childTitle"},mB={key:0,class:"fox-category-pane__childItemList"},pB=["onClick"],hB=["src"],gB={class:"fox-category-pane__skuImg"},yB={key:1,class:"fox-category-pane__cateListRight"},vB={class:"fox-category-pane__childTitle"},bB={key:0,class:"fox-category-pane__childItemList"},kB=["onClick"],SB={class:"fox-category-pane__skuName"},CB={key:2,class:"fox-category-pane__selfItemList"},wB=["onClick"];function NB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",uB,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",dB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",fB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",mB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:f,onClick:p=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,hB),t.createElementVNode("div",gB,t.toDisplayString(c?.catName),1)],8,pB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",yB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",vB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",bB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:f,onClick:p=>e.onChange(c)},[t.createElementVNode("div",SB,t.toDisplayString(c?.catName),1)],8,kB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",CB,[(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,wB))),128))])):t.createCommentVNode("",!0)])}const Ma=ee(cB,[["render",NB]]),{componentName:zV,create:BB}=Q("comment-header"),VB=BB({components:{[wt.name]:wt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),AB={class:"fox-comment-header__user"},TB={class:"fox-comment-header__user-avter"},$B=["src"],EB={class:"fox-comment-header__user-score"},xB={key:0,class:"fox-comment-header__time"};function DB(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",AB,[t.createElementVNode("view",TB,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,$B)):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",EB,[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",xB,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 IB=ee(VB,[["render",DB]]),{componentName:FV,create:qB}=Q("comment-images"),PB=qB({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:ne.Right},emits:["click","clickImages"],setup(e,{emit:n}){const a=t.ref(!1),o=t.ref(1),l=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),l.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),l.value=e.videos.concat(e.images)}),{isShowImage:a,initIndex:o,showImages:(s,i)=>{const{videos:c,images:f}=e,p=s=="img"?i-c.length:i;n("clickImages",{type:s,index:p,value:s=="img"?f[p]:c[p]})},totalImages:l}}}),MB=["onClick"],LB=["src"],zB=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),FB=["onClick"],RB=["src"],OB={key:0,class:"fox-comment-images__mask"};function KB(e,n,a,o,l,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:f=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,LB),zB],8,MB))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:f=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,RB),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",OB,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,FB)):t.createCommentVNode("",!0)],64))),128))],2)}const UB=ee(PB,[["render",KB]]),{componentName:RV,create:HB,scope:jB}=Q("comment-bottom"),WB=HB({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:ne.Fabulous,Comment:ne.Comment,MoreX:ne.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(jB),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}}}),YB={class:"fox-comment-bottom"},XB={key:0},QB={class:"fox-comment-bottom__cpx"},GB=["onClick"];function ZB(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",YB,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...f)=>e.handleClick&&e.handleClick(...f)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",XB,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",QB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(f,p)=>(t.openBlock(),t.createElementBlock("view",{key:p,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${f}`]),onClick:u=>e.operate(f)},[f!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[f]),1),f=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),f=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=u=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,GB))),128))])])}const JB=ee(WB,[["render",ZB]]),{componentName:_B,create:eV,scope:tV}=Q("comment"),nV=eV({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:IB,CommentImages:UB,CommentBottom:JB,Right:ne.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(tV),o=t.computed(()=>({[_B]:!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}}}),oV=["innerHTML"],lV={class:"fox-comment__follow-title"},aV={class:"fox-comment__follow-com"},rV={key:0,class:"fox-comment__follow-img"};function sV(e,n,a,o,l,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),f=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:n[0]||(n[0]=(...p)=>e.handleClick&&e.handleClick(...p)),innerHTML:e.info.content},null,12,oV),t.createVNode(i,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:n[1]||(n[1]=(...p)=>e.handleClick&&e.handleClick(...p))},[t.createElementVNode("view",lV,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",aV,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",rV,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",e.follow.images.length))+" ",1),t.createVNode(c,{width:"12px"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(f,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const La=ee(nV,[["render",sV]]),iV=[Wo,Xo,Qo,Go,Zo,we,Jo,_o,el,tl,nl,On,al,rl,il,cl,Xn,Qn,ul,Gn,Zn,dl,fl,$t,ml,pl,to,hl,gl,Kn,Un,Hn,yl,vl,bl,lt,kl,Sl,Cl,wl,Nl,Bl,Le,Vl,Al,st,fe,Tl,$l,El,xl,Ht,Dl,Il,ql,Pl,Ml,Ll,zl,Fl,Rl,jt,Ol,Kl,Ul,Hl,jl,Wl,Yl,Wt,eo,jn,Yn,Wn,Ze,wt,kt,Xl,Ql,Gl,Xt,Zl,Jl,_l,Qt,_n,ea,na,Jn,Et,la,aa,Gt,ra,sa,Yt,ia,ca,ua,Nt,da,fa,Bt,Vt,Ge,no,ma,pa,ha,Zt,Jt,ga,ya,va,ba,ka,Sa,Ca,wa,Na,Ba,Va,Aa,Ta,$a,Ea,xa,Da,Ia,qa,Pa,Ma,La],cV=new Bi(iV,"4.0.0");exports.ActionSheet=Zl;exports.ActionsheetItem=hl;exports.ActionsheetPane=to;exports.Address=Ba;exports.AddressList=qa;exports.Animate=Sa;exports.Audio=la;exports.AudioOperate=aa;exports.Avatar=Gt;exports.AvatarGroup=ra;exports.BackTop=Jl;exports.Badge=ha;exports.Barrage=Va;exports.Broadcast=Uo;exports.BroadcastKey=Se;exports.Button=Le;exports.Calendar=Yn;exports.CalendarItem=cl;exports.Card=Da;exports.Cascader=jn;exports.CascaderItem=rl;exports.Category=Pa;exports.CategoryPane=Ma;exports.Cell=Vl;exports.CellGroup=Al;exports.Checkbox=Gn;exports.CheckboxGroup=Zn;exports.CheckboxItem=dl;exports.CircleProgress=ia;exports.Col=El;exports.Collapse=ya;exports.CollapseItem=va;exports.Comment=La;exports.Content=Go;exports.CountDown=pa;exports.CountUp=ma;exports.DataItemsKey=ft;exports.DateItem=il;exports.DatePicker=Wn;exports.DateUtils=ae;exports.Dialog=Qt;exports.Divider=Dl;exports.Domain=Tn;exports.DomainKey=Ee;exports.DomainProvider=Nl;exports.Drag=_l;exports.Dropdown=Sl;exports.Ecard=Ia;exports.Elevator=jt;exports.Ellipsis=ka;exports.Empty=ua;exports.FixedNav=Ml;exports.FloatingButton=vl;exports.FooterBar=Qo;exports.FoxActionSheet=Zl;exports.FoxActionsheetItem=hl;exports.FoxActionsheetPane=to;exports.FoxAddress=Ba;exports.FoxAddressList=qa;exports.FoxAnimate=Sa;exports.FoxAudio=la;exports.FoxAudioOperate=aa;exports.FoxAvatar=Gt;exports.FoxAvatarGroup=ra;exports.FoxBackTop=Jl;exports.FoxBadge=ha;exports.FoxBarrage=Va;exports.FoxButton=Le;exports.FoxCalendar=Yn;exports.FoxCalendarItem=cl;exports.FoxCard=Da;exports.FoxCascader=jn;exports.FoxCascaderItem=rl;exports.FoxCategory=Pa;exports.FoxCategoryPane=Ma;exports.FoxCell=Vl;exports.FoxCellGroup=Al;exports.FoxCheckbox=Gn;exports.FoxCheckboxGroup=Zn;exports.FoxCheckboxItem=dl;exports.FoxCircleProgress=ia;exports.FoxCol=El;exports.FoxCollapse=ya;exports.FoxCollapseItem=va;exports.FoxComment=La;exports.FoxContent=Go;exports.FoxCountDown=pa;exports.FoxCountUp=ma;exports.FoxDateItem=il;exports.FoxDatePicker=Wn;exports.FoxDialog=Qt;exports.FoxDivider=Dl;exports.FoxDomainProvider=Nl;exports.FoxDrag=_l;exports.FoxDropdown=Sl;exports.FoxEcard=Ia;exports.FoxElevator=jt;exports.FoxEllipsis=ka;exports.FoxEmpty=ua;exports.FoxFixedNav=Ml;exports.FoxFloatingButton=vl;exports.FoxFooterBar=Qo;exports.FoxGrid=Il;exports.FoxGridItem=ql;exports.FoxGroup=Zo;exports.FoxHeaderBar=Xo;exports.FoxHintText=$t;exports.FoxImage=Tl;exports.FoxImagePreview=no;exports.FoxIndicator=Hl;exports.FoxInfiniteLoading=_n;exports.FoxInputItem=el;exports.FoxInputNumber=Ze;exports.FoxInputnumberItem=gl;exports.FoxItem=we;exports.FoxLayout=$l;exports.FoxLinkItem=ml;exports.FoxList=sa;exports.FoxMapping=wl;exports.FoxMenu=Ll;exports.FoxMenuItem=zl;exports.FoxMessageBox=lt;exports.FoxMoneyItem=tl;exports.FoxMoreButton=bl;exports.FoxNavbar=Pl;exports.FoxNoticeBar=ca;exports.FoxNotify=na;exports.FoxNumberKeyboard=Gl;exports.FoxOverLay=st;exports.FoxPage=Wo;exports.FoxPagination=Ol;exports.FoxPicker=kt;exports.FoxPickerItem=al;exports.FoxPopover=Jt;exports.FoxPopup=fe;exports.FoxPopupWrapper=kl;exports.FoxPrice=Ge;exports.FoxProgress=Yt;exports.FoxPullRefresh=ea;exports.FoxRadio=Xn;exports.FoxRadioGroup=Qn;exports.FoxRadioItem=ul;exports.FoxRange=Wt;exports.FoxRate=wt;exports.FoxRateItem=pl;exports.FoxRollingProvider=Bl;exports.FoxRow=xl;exports.FoxRowItem=Jo;exports.FoxSearchBar=eo;exports.FoxShortPassword=Xl;exports.FoxSideNavBar=jl;exports.FoxSideNavBarItem=Wl;exports.FoxSignature=Aa;exports.FoxSkeleton=ga;exports.FoxSku=xa;exports.FoxSlotItem=_o;exports.FoxStep=fa;exports.FoxSteps=da;exports.FoxStepsBar=yl;exports.FoxSticky=Ht;exports.FoxSubSideNavBar=Yl;exports.FoxSwipe=Xt;exports.FoxSwiper=Bt;exports.FoxSwiperItem=Vt;exports.FoxSwitch=Jn;exports.FoxSwitchItem=fl;exports.FoxTabPane=Ul;exports.FoxTabbar=Fl;exports.FoxTabbarItem=Rl;exports.FoxTable=ba;exports.FoxTabs=Kl;exports.FoxTabsBar=Kn;exports.FoxTabsContainer=Un;exports.FoxTabsPane=Hn;exports.FoxTag=Zt;exports.FoxText=Cl;exports.FoxTextarea=On;exports.FoxTextareaItem=nl;exports.FoxTimeDetail=Ea;exports.FoxTimePannel=$a;exports.FoxTimeSelect=Ta;exports.FoxToast=Et;exports.FoxTour=Na;exports.FoxTrendArrow=wa;exports.FoxUploader=Ql;exports.FoxVideo=Nt;exports.FoxWaterMark=Ca;exports.Grid=Il;exports.GridItem=ql;exports.Group=Zo;exports.HeaderBar=Xo;exports.HintText=$t;exports.Image=Tl;exports.ImagePreview=no;exports.Indicator=Hl;exports.InfiniteLoading=_n;exports.InputItem=el;exports.InputNumber=Ze;exports.InputnumberItem=gl;exports.Item=we;exports.Layout=$l;exports.LinkItem=ml;exports.List=sa;exports.Mapping=wl;exports.Menu=Ll;exports.MenuItem=zl;exports.MessageBox=lt;exports.MoneyItem=tl;exports.MoreButton=bl;exports.Navbar=Pl;exports.NoticeBar=ca;exports.Notify=na;exports.NumberKeyboard=Gl;exports.OverLay=st;exports.Page=Wo;exports.Pagination=Ol;exports.Picker=kt;exports.PickerItem=al;exports.Popover=Jt;exports.Popup=fe;exports.PopupWrapper=kl;exports.Price=Ge;exports.PriorityPolicy=vn;exports.Progress=Yt;exports.PullRefresh=ea;exports.Radio=Xn;exports.RadioGroup=Qn;exports.RadioItem=ul;exports.Range=Wt;exports.Rate=wt;exports.RateItem=pl;exports.RollingProvider=Bl;exports.Row=xl;exports.RowItem=Jo;exports.SearchBar=eo;exports.ShortPassword=Xl;exports.SideNavBar=jl;exports.SideNavBarItem=Wl;exports.Signature=Aa;exports.Skeleton=ga;exports.Sku=xa;exports.SlotItem=_o;exports.Step=fa;exports.Steps=da;exports.StepsBar=yl;exports.Sticky=Ht;exports.SubSideNavBar=Yl;exports.Swipe=Xt;exports.Swiper=Bt;exports.SwiperItem=Vt;exports.Switch=Jn;exports.SwitchItem=fl;exports.TabPane=Ul;exports.Tabbar=Fl;exports.TabbarItem=Rl;exports.Table=ba;exports.Tabs=Kl;exports.TabsBar=Kn;exports.TabsContainer=Un;exports.TabsPane=Hn;exports.Tag=Zt;exports.Text=Cl;exports.Textarea=On;exports.TextareaItem=nl;exports.TimeDetail=Ea;exports.TimePannel=$a;exports.TimeSelect=Ta;exports.Toast=Et;exports.Tour=Na;exports.TrendArrow=wa;exports.UniqueID=Rn;exports.Uploader=Ql;exports.ValidateSchema=Zr;exports.ValidateSchemaKey=Me;exports.Video=Nt;exports.WaterMark=Ca;exports.cancelRaf=Er;exports.clamp=Ue;exports.clearNonNumber=wo;exports.clone=Co;exports.compareTo=ko;exports.createBroadcast=Vn;exports.createValidateSchema=An;exports.debounce=vt;exports.debounceRef=pi;exports.decimalLength=jr;exports.default=cV;exports.defineBroadcast=ai;exports.defineConfigDomain=_r;exports.defineDataItem=ts;exports.defineDomain=jo;exports.defineItem=Ve;exports.definePageState=ns;exports.defineSimpleItem=Tt;exports.deleteGlobalValidator=ui;exports.disabledProperty=$e;exports.divide=Ko;exports.excludeProps=At;exports.extend=at;exports.floatData=Wr;exports.getGlobalIcons=In;exports.getGlobalValidateCheckEvents=Xr;exports.getGlobalValidateResetEvents=Gr;exports.getPageContentAreaHeight=gn;exports.getPageContentAreaWidth=yn;exports.getPageFooterAreaHeight=xn;exports.getPageHeaderAreaHeight=En;exports.getRootDomain=ht;exports.hasSymbol=zr;exports.includeProps=be;exports.indexOf=oi;exports.installRules=es;exports.integerLength=Hr;exports.isArray=wn;exports.isArrayLike=Rr;exports.isBrowser=ct;exports.isDate=He;exports.isESModule=Js;exports.isEmptyString=de;exports.isEqual=Pe;exports.isFunction=mn;exports.isHidden=Bn;exports.isInnerPage=yi;exports.isMap=Qs;exports.isNil=Pr;exports.isNumberString=Ur;exports.isObject=xe;exports.isPlainObject=So;exports.isPromise=yt;exports.isRegExp=Kr;exports.isSet=Gs;exports.isString=Mr;exports.isSubPage=vi;exports.isSymbol=Zs;exports.isTouch=ol;exports.isWindow=Fr;exports.lastIndexOf=li;exports.makeArray=ni;exports.merge=Or;exports.multiply=Dr;exports.negate=Ir;exports.nextTick=ei;exports.numberFormat=Cn;exports.objectToString=Lr;exports.once=hi;exports.overrideGlobalIcons=Ii;exports.overrideGlobalValidateHandler=ii;exports.padZero=tt;exports.preventDefault=No;exports.property=Ae;exports.raf=Ke;exports.readonlyProperty=Te;exports.setGlobalValidateCheckEvents=di;exports.setGlobalValidateHandler=si;exports.setGlobalValidateMessages=mi;exports.setGlobalValidateResetEvents=fi;exports.setGlobalValidator=ci;exports.throttle=hn;exports.toBoolean=he;exports.toNumber=me;exports.toPadding=Fe;exports.toPx=ue;exports.toPxDesc=ge;exports.toTypeString=Nn;exports.toValue=qe;exports.tryTimes=Ho;exports.typeOf=rt;exports.unNumberFormat=qr;exports.updatePageState=Bo;exports.useBroadcast=zt;exports.useDomain=je;exports.useExpose=Ie;exports.useInnerSize=Dn;exports.usePageState=$n;exports.usePosition=fs;exports.useRawTouch=ll;exports.useRect=De;exports.useSize=Yo;exports.useTouch=_e;exports.valueLength=ve;
13
+ `)}}});function dg(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=ee(ug,[["render",dg]]),{create:fg}=Q("sticky"),mg=fg({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 d=e.container;if(!a.value&&!d)return;const m=De(a),u=o.value,g=De(u),k=De(d);l.height=m.height;const v=()=>{let b=!1;if(e.position==="top")b=d?r.value>m.top&&k.bottom>0:r.value>m.top;else{const f=document.documentElement.clientHeight;b=d?k.bottom>0&&f-r.value-g.height>k.top:f-r.value<m.bottom}return b},y=()=>{if(d)if(e.position==="top"){const b=k.bottom-r.value-g.height;return b<0?b:0}else{const b=document.documentElement.clientHeight,f=k.bottom-(b-r.value);return f<0?f:0}return 0};l.transform=y(),l.fixed=v()};return t.watch(()=>l.fixed,d=>{n("change",d)}),t.onMounted(()=>{c(),Lo(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Lo(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function pg(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 Ht=ee(mg,[["render",pg]]),{componentName:hg,create:gg}=Q("divider"),yg=gg({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=hg;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 vg(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=ee(yg,[["render",vg]]);function bg(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 kg(e,n,a){const o=bg(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function Sg(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=i=>{i.proxy&&(a.push(t.markRaw(i)),kg(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:Br}=Q("grid"),Ms=Symbol("grid"),Cg={columnNum:{type:[Number,String],default:4},border:{type:Boolean,default:!0},gutter:{type:[Number,String],default:0},center:{type:Boolean,default:!0},square:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},direction:{type:String},clickable:{type:Boolean,default:!1}},wg={props:Cg,setup(e,{slots:n}){Sg(Ms,`${Br}-item`)({props:e});const a=t.computed(()=>{const l=Br;return{[l]:!0,[`${l}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const l={};return e.gutter&&(l.paddingLeft=he(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:Ng}=Q("grid"),Il=Ng(wg);function Bg(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:Ag,componentName:Ar}=Q("grid-item"),Vg=Ag({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=Bg(Ms);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[Ar]:!0})),s=t.computed(()=>{const d={flexBasis:`${100/+l.columnNum}%`};return l.square?d.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(d.paddingRight=he(l.gutter),o.value>=l.columnNum&&(d.marginTop=he(l.gutter))),d}),i=t.computed(()=>{const d=`${Ar}__content`;return{[`${d}`]:!0,[`${d}--border`]:l.border,[`${d}--surround`]:l.border&&l.gutter,[`${d}--center`]:l.center,[`${d}--square`]:l.square,[`${d}--reverse`]:l.reverse,[`${d}--${l.direction}`]:!!l.direction,[`${d}--clickable`]:l.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:d=>{n("click",d)}}}}),Tg={class:"fox-grid-item__text"};function $g(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",Tg,[e.text?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.text),1)],64)):t.renderSlot(e.$slots,"text",{key:1})])],2)],6)}const ql=ee(Vg,[["render",$g]]),{componentName:Eg,create:xg}=Q("navbar"),Dg=xg({components:{Left:ne.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:o,safeAreaInsetTop:l,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let d=t.ref();const m=t.computed(()=>{const b=Eg;return{[b]:!0,[`${b}--border`]:a.value,[`${b}--fixed`]:o.value,[`${b}--safe-area-inset-top`]:l.value}}),u=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{d.value=c?.value?.getBoundingClientRect().height,i.value.style.height=d.value+"px"})});function g(){n("on-click-back")}function k(){n("on-click-title")}function v(){n("on-click-icon")}function y(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:m,styles:u,handleLeft:g,handleCenter:k,handleCenterIcon:v,handleRight:y}}}),Ig={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},qg={key:1,class:"fox-navbar__text"},Pg={class:"fox-navbar__title"},Mg={key:0,class:"fox-navbar__text"},Lg={key:1,class:"fox-navbar__text"},zg={class:"fox-navbar__title"},Rg={key:0,class:"fox-navbar__text"};function Fg(e,n,a,o,l,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Ig,[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",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[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",Mg,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",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[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",Rg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Pl=ee(Dg,[["render",Fg]]),Og=(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}=se.useFoxI18n(n),s=r(o,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(u=!o.visible)=>{l("update:visible",u)},selected:(u,g)=>{l("selected",{item:u,event:g}),c.value=u.id},current:c}}}),{componentName:Kg,create:Ug,scope:Hg}=Q("fixednav"),jg=Ug(Og(Kg,Hg,{[st.name]:st,Left:ne.Left})),Wg={class:"fox-fixednav__list"},Yg=["onClick"],Xg=["src"],Qg={class:"span"},Gg={key:0,class:"b"},Zg={class:"text"};function Jg(e,n,a,o,l,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Left");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(s,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",Wg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,d)=>(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||d},[t.createElementVNode("img",{src:c.icon},null,8,Xg),t.createElementVNode("view",Qg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Gg,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Yg))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{color:"#fff"}),t.createElementVNode("view",Zg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Ml=ee(jg,[["render",Jg]]),{componentName:_g,create:ey}=Q("menu"),ty=ey({components:{ArrowUp2:ne.ArrowUp2,ArrowDown2:ne.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.ref(0),r=t.ref(!1),s=()=>{const b=t.reactive([]),f=t.reactive([]);return{children:b,linkChildren:h=>{const S=C=>{C.proxy&&(f.push(C),b.push(C.proxy))},N=C=>{if(C.proxy){let w=f.indexOf(C);w>-1&&f.splice(w,1);let B=b.indexOf(C.proxy);w>-1&&b.splice(B,1)}};t.provide("menuParent",Object.assign({removeLink:N,link:S,children:b,internalChildren:f},h))}}},{children:i,linkChildren:c}=s(),d=t.computed(()=>i.some(b=>b.state.showWrapper)),m=t.computed(()=>({[_g]:!0,"scroll-fixed":r.value})),u=()=>{if(o.value){const b=De(o);e.direction==="down"?l.value=b.bottom:l.value=window.innerHeight-b.top}};c({props:e,offset:l});const g=b=>{i.forEach((f,p)=>{p===b?(u(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},k=b=>Math.max(0,"scrollTop"in b?b.scrollTop:b.pageYOffset),v=()=>{const{scrollFixed:b}=e,f=k(window);r.value=f>(typeof b=="boolean"?30:Number(b))},y=b=>{let f="";const{titleClass:p}=e;return b&&(f+="active"),p&&(f+=` ${p}`),f};return t.onMounted(()=>{const{scrollFixed:b}=e;b&&window.addEventListener("scroll",v)}),t.onUnmounted(()=>{const{scrollFixed:b}=e;b&&window.removeEventListener("scroll",v)}),{toggleItem:g,children:i,opened:d,classes:m,barRef:o,getClasses:y}}}),ny=["onClick"],oy={class:"fox-menu__title-text"},ly={class:"fox-menu__title-icon"};function ay(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,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:m=>!c.disabled&&e.toggleItem(d),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",oy,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",ly,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,ny))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Ll=ee(ty,[["render",ay]]),{componentName:ry,create:sy}=Q("menu-item"),iy=sy({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[fe.name]:fe,Check:ne.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:a}){const o=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),l=()=>{const k=t.inject("menuParent",null);if(k){const v=t.getCurrentInstance(),{link:y,removeLink:b}=k;return y(v),t.onUnmounted(()=>{b(v)}),{parent:k}}},{parent:r}=l(),s=t.computed(()=>({[ry]:!0})),i=t.computed(()=>{const k={height:r.offset.value+"px"};return r.props.direction==="down"?k:{...k,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const k=e.options?.find(v=>v.value===e.modelValue);return k?k.text:""},state:o,parent:r,toggle:(k=!o.showPopup,v={})=>{k!==o.showPopup&&(o.showPopup=k,o.isShowPlaceholderElement=k,k&&(o.showWrapper=!0,n("open")))},onClick:k=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,k.value!==e.modelValue&&(n("update:modelValue",k.value),n("change",k.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),cy={class:"fox-menu-item__content fox-menu-item__overflow"},uy=["onClick"];function dy(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",cy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,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,uy))),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 zl=ee(iy,[["render",dy]]),{create:fy}=Q("tabbar"),my=fy({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 py(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 Rl=ee(my,[["render",py]]),{create:hy}=Q("tabbar-item"),gy=hy({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&&(d=>{if(d.proxy){let m=a.children.length;o.index=m;let u=Object.assign(d.proxy,{index:m});a.children.push(u)}})(l);const r=t.computed(()=>o.index===o.value);function s(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}const i=t.computed(()=>a?a.value:null);return t.watch(i,c=>{o.value=c}),{state:o,active:r,change:s}}}),yy={class:"fox-tabbar-item_icon-box"},vy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},by={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},ky={key:1,class:"fox-tabbar-item_icon-box_dot"},Sy={key:2},Cy={key:0};function wy(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",yy,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",vy,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",by,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",ky)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",Sy,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.icon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):t.createCommentVNode("",!0),!e.icon&&e.activeImg?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:t.normalizeStyle({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?(t.openBlock(),t.createElementBlock("view",Cy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Fl=ee(gy,[["render",wy]]),{componentName:Ny,create:By}=Q("elevator"),Ay=By({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(()=>({[Ny]:!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)})},d=()=>{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]))},u=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)},k=()=>{o.scrollStart=!1},v=(f,p)=>{n.emit("click-item",f,p),o.currentData=p,o.currentKey=f},y=f=>{n.emit("click-index",f)},b=f=>{let h=f.target.scrollTop;const S=o.listHeight;o.scrollY=h;for(let N=0;N<S.length-1;N++){let C=S[N],w=S[N+1];if(o.scrollY>=C&&o.scrollY<w){o.currentIndex=N,o.diff=w-o.scrollY;return}}o.currentIndex=S.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",b)}),Ie({scrollTo:m}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(d)}),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:u,touchMove:g,touchEnd:k,handleClickItem:v,handleClickIndex:y}}}),Vy={class:"fox-elevator__list__item__code"},Ty=["onClick"],$y=["innerHTML"],Ey={class:"fox-elevator__fixed-title"},xy={class:"fox-elevator__bars__inner"},Dy=["data-index","onClick"];function Iy(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",Vy,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,$y))],10,Ty))),128))]))),128)),e.isSticky?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__list__fixed",style:t.normalizeStyle(e.fixedStyle)},[t.createElementVNode("span",Ey,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",xy,[(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,Dy))),128))])],32)],2)}const jt=ee(Ay,[["render",Iy]]),{componentName:v2,create:qy,scope:Py}=Q("pagination"),My=qy({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}=se.useFoxI18n(Py),o=a(e,["prevText","nextText"]),{modelValue:l,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:g,totalItems:k,itemsPerPage:v}=t.toRefs(e),y=+g.value||Math.ceil(+k.value/+v.value);return Math.max(1,y)}),d=(g,k)=>{g>c.value||g<1||(g!=l.value&&n("update:modelValue",g),k&&n("change",g))},m=(g,k,v=!1)=>({number:g,text:k,active:v}),u=t.computed(()=>{if(r.value=="simple")return;let g=[];const k=c.value,v=+s.value;let y=1,b=k;const f=k>v;f&&(y=Math.max(l.value-Math.floor(v/2),1),b=y+v-1,b>k&&(b=k,y=b-v+1));for(var p=y;p<=b;p++){const h=m(p,p,l.value==p);g.push(h)}if(f&&v>0&&i.value){if(y>1){const h=m(y-1,"...");g.unshift(h)}if(b<k){const h=m(b+1,"...");g.push(h)}}return g});return t.watchEffect(()=>{d(l.value,!1)}),{...o,modelValue:l,select:d,countRef:c,mode:r,pages:u,forceEllipses:i}}}),Ly={class:"fox-pagination"},zy={key:0,class:"fox-pagination-contain"},Ry=["onClick"],Fy={key:1,class:"fox-pagination-contain"},Oy={class:"fox-pagination-simple"};function Ky(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Ly,[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",zy,[(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,Ry))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Fy,[t.createElementVNode("view",Oy,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 Ol=ee(My,[["render",Ky]]),Uy=(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 d="";const m=(g,k)=>{let v=g;switch(e.direction=="horizontal"?(d=g>0?"right":"left",v=Math.abs(v)/r.value.width*100):(d=k>0?"bottom":"top",v=k,v=Math.abs(v)/r.value?.height*100),v>85&&(v=85),d){case"left":case"top":n.isEnd()&&(v=0,i.moving=!1);break;case"right":case"bottom":v=-v,n.isBegin()&&(v=0,i.moving=!1);break}i.offset=v};return{touchMethods:{onTouchStart(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,d){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 Hy{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:jy}=Q("tabs"),Wy=jy({components:{[Ht.name]:Ht,JoySmile:ne.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=T=>{T.forEach(($,I)=>{let R=$.type;if(R=R.name||R,R=="fox-tab-pane"){let V=new Hy;if($.props?.title||$.props?.["pane-key"]||$.props?.paneKey){let E=rt($.props?.["pane-key"]),P=E=="number"||E=="string"?String($.props?.["pane-key"]):null,x=rt($.props?.paneKey),U=x=="number"||x=="string"?String($.props?.paneKey):null;V.title=$.props?.title,V.paneKey=P||U||String(I),V.disabled=$.props?.disabled}r.value.push(V)}else{if($.children==" ")return;Array.isArray($.children)&&s($.children)}})},i=t.ref(e.modelValue||0),c=T=>{let $=r.value.findIndex(I=>I.paneKey==T);r.value.length==0||$==-1||(i.value=$)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),u=t.ref([]),g=T=>{const $=m.value,I=u.value;if(!$||!I||!I[i.value])return;const R=I[i.value];let V=0;e.direction==="vertical"?V=R.offsetTop-$.offsetTop+10-($.offsetHeight-R.offsetHeight)/2:V=R.offsetLeft-($.offsetWidth-R.offsetWidth)/2,k($,V,.3,e.direction)},k=(T,$,I,R)=>{let V=0;const E=R==="horizontal"?T.scrollLeft:T.scrollTop,P=Math.round(I*1e3/16);function x(){R==="horizontal"?T.scrollLeft+=($-E)/P:T.scrollTop+=($-E)/P,++V<P&&Ke(x)}x()},v=(T=a.default?.())=>{r.value=[],T=T?.filter($=>typeof $.children!="string"),T&&T.length&&s(T),c(e.modelValue),t.nextTick(()=>{g()})},y=T=>{l=T.fixed};t.watch(()=>a.default?.(),T=>{v(T)});const b=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,T=>{if(c(T),g(),l){let $=De(o.value).top+b(),I=Math.ceil($-e.top);window.scrollTo({top:I,behavior:"smooth"})}}),t.onMounted(v),t.onActivated(v);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:T=>{n("update:modelValue",T.paneKey),n("change",T)},tabChange:(T,$)=>{n("click",T),!(T.disabled||i.value==$)&&(i.value=$,f.updateValue(T))},setTabItemRef:(T,$)=>{u.value[$]=T}},{tabsContentRef:p,touchState:h,touchMethods:S}=Uy(e,f),N=t.computed(()=>{let T=i.value*100;h.moving&&(T+=h.offset);let $={transform:e.direction=="horizontal"?`translate3d(-${T}%, 0, 0)`:`translate3d( 0,-${T}%, 0)`,transitionDuration:h.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&($={}),$}),C=t.computed(()=>({background:e.background})),w=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),B=t.computed(()=>{if(!e.titleGutter)return{};const T=he(e.titleGutter);return e.direction==="vertical"?{marginTop:T,marginBottom:T}:{marginLeft:T,marginRight:T}}),A=t.computed(()=>a.fixedTitle);return{navRef:m,tabsContentRef:p,titles:r,contentStyle:N,tabsNavStyle:C,titleStyle:B,tabsActiveStyle:w,container:o,getScrollY:d,onStickyScroll:y,...f,...S,hasFixedTitle:A}}}),Yy=["onClick"],Xy={key:0,class:"fox-tabs__titles-fixed-item"},Qy=["onClick"],Gy={key:0,class:"fox-tabs__titles-fixed-item"};function Zy(e,n,a,o,l,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,d)=>(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,d),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,Yy))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Xy,[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,d)=>(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,d),key:c.paneKey,ref_for:!0,ref:m=>e.setTabItemRef(m,d)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Qy))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Gy,[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 Kl=ee(Wy,[["render",Zy]]),{create:Jy}=Q("tab-pane"),_y=Jy({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=t.inject("tabsOpiton"),o=t.computed(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:o}}});function ev(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 Ul=ee(_y,[["render",ev]]),{componentName:Vr,create:tv}=Q("indicator"),nv=tv({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=Vr;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Vr,padZero:tt}}});function ov(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 Hl=ee(nv,[["render",ov]]),{componentName:lv,create:av}=Q("side-navbar"),rv=av({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(()=>({[lv]:!0})),l=(s,i=1)=>{for(let c=0;c<s.length;c++){let d=s[c];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*i+"px",d.className.includes("fox-side-navbar-item")||l(Array.from(d.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}}}),sv={class:"fox-side-navbar__content"},iv={class:"fox-side-navbar__content__list",ref:"list"};function cv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",sv,[t.createElementVNode("view",iv,[t.renderSlot(e.$slots,"default")],512)])],2)}const jl=ee(rv,[["render",cv]]),{componentName:uv,create:dv}=Q("side-navbar-item"),fv=dv({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[uv]:!0})),handleClick:()=>{n.emit("click")}})}),mv=["ikey"],pv={class:"fox-side-navbar-item__title"};function hv(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",pv,t.toDisplayString(e.title),1)],10,mv)}const Wl=ee(fv,[["render",hv]]),{componentName:gv,create:yv}=Q("sub-side-navbar"),vv=yv({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:ne.ArrowDown2,ArrowUp2:ne.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=t.reactive({direction:""}),o=t.computed(()=>({[gv]:!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}}}),bv=["ikey"],kv={class:"fox-sub-side-navbar__title__text"},Sv={class:"fox-sub-side-navbar__title__icon"};function Cv(e,n,a,o,l,r){const s=t.resolveComponent("ArrowDown2"),i=t.resolveComponent("ArrowUp2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-sub-side-navbar__title",onClick:n[0]||(n[0]=t.withModifiers((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[t.createElementVNode("span",kv,t.toDisplayString(e.title),1),t.createElementVNode("span",Sv,[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,bv)}const Yl=ee(vv,[["render",Cv]]),{componentName:wv,create:Nv}=Q("range"),Bv=Nv({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:V,max:E,min:P}=e;return Object.keys(V).map(parseFloat).sort((K,J)=>K-J).filter(K=>K>=P&&K<=E)}),d=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const V=wv;return{[V]:!0,[`${V}-disabled`]:e.disabled,[`${V}-vertical`]:e.vertical,[`${V}-show-number`]:!e.hiddenRange}}),u=t.computed(()=>{const V="fox-range-container";return{[V]:!0,[`${V}-vertical`]:e.vertical}}),g=t.computed(()=>({background:e.inactiveColor})),k=t.computed(()=>({borderColor:e.buttonColor})),v=V=>!!e.range&&Array.isArray(V),y=()=>{const{modelValue:V,min:E}=e;return v(V)?`${(V[1]-V[0])*100/d.value}%`:`${(V-Number(E))*100/d.value}%`},b=()=>{const{modelValue:V,min:E}=e;return v(V)?`${(V[0]-Number(E))*100/d.value}%`:"0%"},f=t.computed(()=>e.vertical?{height:y(),top:b(),background:e.activeColor,transition:s.value?"none":void 0}:{width:y(),left:b(),background:e.activeColor,transition:s.value?"none":void 0}),p=V=>{const E="fox-range-mark",{modelValue:P,max:x,min:U}=e;let K=Number(U),J=Number(x);if(e.range){const[j,q]=P;K=j,J=q}else J=P;let _=V<=J&&V>=K;return{[`${E}-text`]:!0,[`${E}-text-active`]:_}},h=V=>{const{min:E,vertical:P}=e;let x={left:`${(V-Number(E))/d.value*100}%`};return P&&(x={top:`${(V-Number(E))/d.value*100}%`}),x},S=V=>{const{modelValue:E,max:P,min:x}=e;let U=Number(x),K=Number(P);if(e.range){const[j,q]=E;U=j,K=q}return{background:V<=K&&V>=U?e.activeColor:e.inactiveColor}},N=V=>{const{min:E,max:P,step:x}=e;return V=Math.max(+E,Math.min(V,+P)),Math.round(V/+x)*+x},C=(V,E)=>JSON.stringify(V)===JSON.stringify(E),w=V=>V[0]>V[1]?V.slice(0).reverse():V,B=(V,E)=>{v(V)?V=w(V).map(N):V=N(V),C(V,e.modelValue)||n("update:modelValue",V),E&&!C(V,o)&&n("change",V)},A=V=>{if(e.disabled)return;const{min:E,modelValue:P}=e,x=De(r);let U=V.clientX-x.left,K=x.width;e.vertical&&(U=V.clientY-x.top,K=x.height);const J=Number(E)+U/K*d.value;if(v(P)){const[_,j]=P,q=(_+j)/2;J<=q?B([J,j],!0):B([_,J],!0)}else B(J,!0)},T=V=>{e.disabled||(i.start(V),l=e.modelValue,v(l)?o=l.map(N):o=N(l),s.value="start")},$=V=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(V),s.value="draging";const E=De(r);let P=i.deltaX.value,x=E.width,U=P/x*d.value;e.vertical&&(P=i.deltaY.value,x=E.height,U=P/x*d.value),v(o)?l[a.value]=o[a.value]+U:l=o+U,B(l),V.stopPropagation(),V.preventDefault()},I=()=>{e.disabled||(s.value==="draging"&&(B(l,!0),n("drag-end")),s.value="")},R=V=>Nn(e.modelValue)&&typeof V=="number"?e.modelValue[V]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:g,buttonStyle:k,onClick:A,onTouchStart:T,onTouchMove:$,onTouchEnd:I,...t.toRefs(e),barStyle:f,curValue:R,buttonIndex:a,containerClasses:u,markClassName:p,marksStyle:h,marksList:c,tickStyle:S}}}),Av={key:0,class:"fox-range-min"},Vv={key:0,class:"fox-range-mark"},Tv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],$v={key:0,class:"number"},Ev=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],xv={key:0,class:"number"},Dv={key:1,class:"fox-range-max"};function Iv(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",Av,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",Vv,[(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",$v,t.toDisplayString(e.curValue(s)),1))],4))],42,Tv)),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",xv,t.toDisplayString(e.curValue()),1))],4))],40,Ev))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Dv,t.toDisplayString(+e.max),1))],2)}const Wt=ee(Bv,[["render",Iv]]),{create:qv,scope:Pv}=Q("short-password"),Mv=qv({components:{[fe.name]:fe,Tips:ne.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:a}=se.useFoxI18n(Pv),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>d(Number(e.length))),s=t.ref(e.visible),i=u=>{u.stopPropagation(),n("focus")};t.watch(()=>e.visible,u=>{s.value=u}),t.watch(()=>e.modelValue,u=>{l.value=u,String(u).length===r.value&&n("complete",u)});const c=()=>{n("update:visible",!1),n("close")},d=u=>Math.min(Math.max(4,u),6);return{comLen:r,realInput:l,onTouchStart:i,range:d,close:c,onTips:()=>{n("tips")},show:s,...o}}}),Lv={class:"fox-short-password-title"},zv={class:"fox-short-password-subtitle"},Rv={class:"fox-short-password-wrapper"},Fv={key:0,class:"fox-short-password__item-icon"},Ov={class:"fox-short-password__message"},Kv={class:"fox-short-password--error"},Uv={key:0,class:"fox-short-password--forget"};function Hv(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",Lv,t.toDisplayString(e.title),1),t.createElementVNode("view",zv,t.toDisplayString(e.desc),1),t.createElementVNode("div",Rv,[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,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?(t.openBlock(),t.createElementBlock("view",Fv)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",Ov,[t.createElementVNode("view",Kv,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",Uv,[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 Xl=ee(Mv,[["render",Hv]]);class jv{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Wv=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 Yv{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);yt(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:Xv}=Q("progress"),Qv=Xv({components:{Checked:ne.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,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}}}),Gv={class:"fox-progress"},Zv={key:0,class:"fox-progress-text"};function Jv(e,n,a,o,l,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",Gv,[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-outer",[e.showText&&!e.textInside?"fox-progress-outer-part":"",e.size?"fox-progress-"+e.size:""]]),ref:"progressOuter",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-inner",e.status=="active"?"fox-active":""]),style:t.normalizeStyle(e.bgStyle)},null,6),e.showText&&e.textInside&&!e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-progress-text fox-progress-insidetext",ref:"insideText",style:t.normalizeStyle({lineHeight:e.height,left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`,background:e.textBackground||e.strokeColor})},[t.createElementVNode("span",{style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)],4)):t.createCommentVNode("",!0),e.showText&&e.textInside&&e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:1,ref:"insideText",style:t.normalizeStyle({position:"absolute",top:"50%",left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`})},[t.renderSlot(e.$slots,"default")],4)):t.createCommentVNode("",!0)],6),e.showText&&!e.textInside?(t.openBlock(),t.createElementBlock("div",Zv,[e.status=="active"||e.status==""?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)):e.status=="icon"?t.renderSlot(e.$slots,"icon-name",{key:1},()=>[t.createVNode(s,{width:"15px",height:"15px",color:"#439422"})]):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const Yt=ee(Qv,[["render",Jv]]),{componentName:_v,create:e0,scope:t0}=Q("uploader"),n0=e0({components:{[Yt.name]:Yt,Photograph:ne.Photograph,Failure:ne.Failure,Loading:ne.Loading,Del:ne.Del,Link:ne.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(t0),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[_v]:!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})},d=(p,h)=>{const S=new jv;S.url=e.url,S.formData=p.formData,S.timeout=e.timeout*1,S.method=e.method,S.xhrState=e.xhrState,S.headers=e.headers,S.withCredentials=e.withCredentials,S.beforeXhrUpload=e.beforeXhrUpload;try{S.sourceFile=p.formData.get(e.name)}catch{}S.onStart=C=>{p.status="ready",p.message=a("readyUpload"),m(h),n("start",C)},S.onProgress=(C,w)=>{p.status="uploading",p.message=a("uploading"),p.percentage=(C.loaded/C.total*100).toFixed(0),n("progress",{event:C,option:w,percentage:p.percentage})},S.onSuccess=(C,w)=>{p.status="success",p.message=a("success"),n("success",{responseText:C,option:w,fileItem:p}),n("update:fileList",o)},S.onFailure=(C,w)=>{p.status="error",p.message=a("error"),n("failure",{responseText:C,option:w,fileItem:p})};let N=new Wv(S);e.autoUpload?N.upload():l.push(new Promise((C,w)=>{C(N)}))},m=(p=-1)=>{p>-1?l.splice(p,1):(l=[],o.splice(0,o.length))},u=()=>{Promise.all(l).then(p=>{p.forEach(h=>h.upload())})},g=p=>{p.forEach((h,S)=>{const N=new FormData;for(const[w,B]of Object.entries(e.data))N.append(w,B);N.append(e.name,h);const C=t.reactive(new Yv);if(C.name=h.name,C.status="ready",C.type=h.type,C.formData=N,C.message=a("waitingUpload"),d(C,S),e.isPreview&&h.type.includes("image")){const w=new FileReader;w.onload=B=>{C.url=B.target.result,o.push(C)},w.readAsDataURL(h)}else o.push(C)})},k=p=>{const h=e.maximum*1,S=e.maximize*1,N=new Array;p=p.filter(w=>w.size>S?(N.push(w),!1):!0),N.length&&n("oversize",N);let C=p.length+o.length;return C>h&&p.splice(p.length-(C-h)),p},v=(p,h)=>{o.splice(h,1),n("delete",{file:p,fileList:o,index:h})},y=(p,h)=>{m(h),Ls(e.beforeDelete,{args:[p,o],done:()=>v(p,h)})},b=p=>{if(e.disabled)return;const h=p.target;let{files:S}=h;e.beforeUpload?e.beforeUpload(S).then(N=>f(N)):f(S),n("change",{fileList:o,event:p}),e.clearInput&&i(h)},f=p=>{const h=k(new Array().slice.call(p));g(h)};return{onChange:b,onDelete:y,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:m,submit:u,renderInput:s}}}),o0={key:0,class:"fox-uploader__slot"},l0={key:0,class:"fox-uploader__preview-img"},a0={key:0,class:"fox-uploader__preview__progress"},r0={class:"fox-uploader__preview__progress__msg"},s0=["onClick"],i0=["onClick","src"],c0={key:3,class:"fox-uploader__preview-img__file"},u0=["onClick"],d0={class:"file__name_tips"},f0={class:"tips"},m0={key:1,class:"fox-uploader__preview-list"},p0=["onClick"],h0={class:"file__name_tips"};function g0(e,n,a,o,l,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),d=t.resolveComponent("Del"),m=t.resolveComponent("fox-progress"),u=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",o0,[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,k)=>(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",l0,[g.status!="success"?(t.openBlock(),t.createElementBlock("view",a0,[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",r0,t.toDisplayString(g.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:v=>e.onDelete(g,k)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,s0)):t.createCommentVNode("",!0),g?.type?.includes("image")&&g.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:v=>e.fileItemClick(g),src:g.url},null,8,i0)):(t.openBlock(),t.createElementBlock("view",c0,[t.createElementVNode("view",{onClick:v=>e.fileItemClick(g),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",d0,t.toDisplayString(g.name),1)],8,u0)])),t.createElementVNode("view",f0,t.toDisplayString(g.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",m0,[t.createElementVNode("view",{onClick:v=>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",h0,t.toDisplayString(g.name),1),e.isDeletable?(t.openBlock(),t.createBlock(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:v=>e.onDelete(g,k)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,p0),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(u,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const Ql=ee(n0,[["render",g0]]),y0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZ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dajvkFLIW4AvPJcjx/WJ50x5oX/Gs75qiiKpb9XSg2NMc+r5z+KovDBD3V2pgznz/y91noevSOECBbhxtwVt7dFpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:b0,scope:k0}=Q("number-keyboard"),S0=b0({components:{[fe.name]:fe},props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:n}){const{toLocaleRefs:a}=se.useFoxI18n(k0),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 d(){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!=""?d():i()),u=()=>{e.visible&&n("blur")},g=f=>{const p=s.value;p&&!p.contains(f.target)&&u()};t.watch(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",g,!1):window.removeEventListener("touchstart",g,!1)});function k(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"&&b(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function v(f){f.stopPropagation()}function y(f){f.preventDefault(),l.value=void 0}function b(){n("update:visible",!1),n("close")}return{...o,delImg:y0,lockImg:v0,clickKeyIndex:l,defaultKey:i,closeBoard:b,onTouchEnd:y,onTouchMove:v,onTouchstart:k,keysList:m,genCustomKeys:d,getBasicKeys:c,root:s,show:r}}}),C0={ref:"root"},w0={class:"fox-number-keyboard"},N0={key:0,class:"fox-number-keyboard__header"},B0={class:"fox-number-keyboard__title"},A0={class:"fox-number-keyboard__body"},V0={class:"fox-number-keyboard__keys"},T0=["onTouchstart"],$0=["src"],E0=["src"],x0={key:0,class:"fox-number-keyboard__sidebar"},D0={class:"fox-key__wrapper"},I0=["src"];function q0(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",C0,[t.createVNode(s,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=i=>e.show=i),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",w0,[e.title?(t.openBlock(),t.createElementBlock("div",N0,[t.createElementVNode("h3",B0,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",A0,[t.createElementVNode("div",V0,[(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,$0)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,E0)):t.createCommentVNode("",!0)],42,T0)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",x0,[t.createElementVNode("div",D0,[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,I0)],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 Gl=ee(S0,[["render",q0]]),{componentName:P0,create:M0}=Q("swipe"),L0=M0({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(()=>({[P0]:!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,d="",m="";const u=t.reactive({offset:0,moving:!1}),g=(p="")=>{c=!0,p&&(u.offset=p==="left"?-i.value:r.value),n("open",{name:e.name,position:d||p})},k=()=>{u.offset=0,c=!1,n("close",{name:e.name,position:d})},v=t.computed(()=>({transform:`translate3d(${u.offset}px, 0, 0)`})),y=p=>{d=p>0?"right":"left";let h=p;switch(d){case"left":c&&m===d?h=-i.value:h=Math.abs(p)>i.value?-i.value:p;break;case"right":c&&m===d?h=r.value:h=Math.abs(p)>r.value?r.value:p;break}u.offset=h},b=_e();return{classes:a,touchStyle:v,...{onTouchStart(p){e.disabled||b.start(p)},onTouchMove(p){e.disabled||(b.move(p),b.isHorizontal()&&(u.moving=!0,y(b.deltaX.value),e.touchMovePreventDefault&&p.preventDefault(),e.touchMoveStopPropagation&&p.stopPropagation()))},onTouchEnd(){if(u.moving)switch(u.moving=!1,m=d,d){case"left":Math.abs(u.offset)<=i.value/2?k():(u.offset=-i.value,g());break;case"right":Math.abs(u.offset)<=r.value/2?k():(u.offset=r.value,g());break}}},leftRef:l,rightRef:s,open:g,close:k}}}),z0={class:"fox-swipe__left",ref:"leftRef"},R0={class:"fox-swipe__content"},F0={class:"fox-swipe__right",ref:"rightRef"};function O0(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",z0,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",R0,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",F0,[t.renderSlot(e.$slots,"right")],512)],38)}const Xt=ee(L0,[["render",O0]]),{componentName:K0,create:U0}=Q("action-sheet"),H0=U0({components:{[fe.name]:fe,Loading:ne.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(()=>({[K0]:!0}));return{slotDefault:a,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(c,d)=>{!c.disable&&!c.loading&&(n("choose",c,d),n("update:visible",!1))},close:c=>{n("close",c),n("update:visible",!1)},classes:o}}}),j0={key:0,class:"fox-action-sheet__title"},W0={key:1},Y0={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},X0={key:1,class:"fox-action-sheet__menu"},Q0=["onClick"],G0={key:1},Z0={class:"fox-action-sheet__subdesc"};function J0(e,n,a,o,l,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.title?(t.openBlock(),t.createElementBlock("view",j0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",W0,[e.description?(t.openBlock(),t.createElementBlock("view",Y0,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",X0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,d)=>(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:d,onClick:m=>e.chooseItem(c,d)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",G0,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",Z0,t.toDisplayString(c[e.optionSubTag]),1)],14,Q0))),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 Zl=ee(H0,[["render",J0]]),{componentName:_0,create:eb}=Q("backtop"),Jl=eb({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(()=>({[_0]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function i(v=0){o.scrollEl instanceof Window?window.scrollTo(0,v):o.scrollEl.scrollTop=v}function c(){let v=Xe(function y(){var b=e.duration-Math.max(0,o.startTime-+new Date+e.duration),f=b*-o.scrollTop/e.duration+o.scrollTop;i(f),v=Xe(y),(b==e.duration||f==0)&&Er(v)})}function d(){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 u(v){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",v)}function g(){k.value?o.scrollEl=k.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),d()}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 k=t.computed(()=>{if(typeof a.content=="function"){const v=a.content();return Array.isArray(v)?v[0]:v}return null});return()=>{const v=[];k.value&&v.push(k.value);const y=[];if(typeof a.default=="function")y.push(a.default());else{const f=t.h(ne.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});y.push(f)}const b=t.h("div",{class:l.value,style:r.value,onClick:u},y);return v.push(b),v}}}),{componentName:tb,create:nb}=Q("drag"),ob=nb({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(()=>({[tb]:!0}));function r(){const u=document.documentElement;o.elWidth=a.value.offsetWidth,o.elHeight=a.value.offsetHeight,o.screenWidth=u.clientWidth,o.screenHeight=u.clientHeight}function s(u){o.boundary.left?+u.style.left.split("px")[0]>o.boundary.left?(u.style.left=+u.style.left.split("px")[0]-10+"px",Ke(()=>{s(u)})):u.style.left=`${o.boundary.left}px`:+u.style.left.split("px")[0]>10?(u.style.left=+u.style.left.split("px")[0]-10+"px",Ke(()=>{s(u)})):u.style.left="0px"}function i(u,g){g-parseInt(u.style.left.split("px")[0])>10?(u.style.left=parseInt(u.style.left.split("px")[0])+10+"px",Ke(()=>{i(u,g)})):u.style.left=g+"px"}function c(u){u.preventDefault();const g=u.currentTarget;if(u.targetTouches.length===1){const k=u.targetTouches[0];o.nx=k.clientX-o.position.x,o.ny=k.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const v=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>v?o.xPum=v:o.xPum<=o.boundary.left&&(o.xPum=o.boundary.left),o.yPum<o.boundary.top?o.yPum=o.boundary.top:o.yPum>o.screenHeight-o.elHeight-o.boundary.bottom&&(o.yPum=o.screenHeight-o.elHeight-o.boundary.bottom),e.direction!="y"&&(g.style.left=o.xPum+"px"),e.direction!="x"&&(g.style.top=o.yPum+"px")}}function d(u){const g=u.currentTarget;let v=u.changedTouches[0].clientX;const y=o.screenWidth-o.elWidth-o.boundary.right;v>y?v=y:v<o.boundary.left?v=o.boundary.left:v=v<o.screenWidth/2?o.boundary.left:y,e.direction!="y"&&e.attract&&(v<o.screenWidth/2?Ke(()=>{s(g)}):Ke(()=>{i(g,y)})),e.direction!="x"&&(g.style.top=o.yPum+"px")}function m(u){const g=u.currentTarget,k=u.touches[0],v=u.targetTouches[0];o.startTop=g.offsetTop,o.startLeft=g.offsetLeft,o.position.x=k.clientX,o.position.y=k.clientY,o.nx=v.clientX-o.position.x,o.ny=v.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny}return t.onMounted(()=>{r(),o.boundary=e.boundary}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1)}),t.onDeactivated(()=>{o.keepAlive=!0;const u=a;u.value.removeEventListener("touchstart",m),u.value.removeEventListener("touchmove",c),u.value.removeEventListener("touchend",d)}),{classes:l,myDrag:a,touchStart:m,touchMove:c,touchEnd:d}}});function lb(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 _l=ee(ob,[["render",lb]]),ab={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}},rb=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function sb(e,n,a,o,l){return{props:{...Fe,...ab},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:d}=se.useFoxI18n(n),m=d(r,["confirmText","cancelText"]),u=e,g=t.ref(r.visible);t.watch(()=>r.visible,C=>{g.value!==C&&(g.value=C,C&&c("opened"))});const k=C=>{g.value=C,c("update:visible",C),c("update",C)},v=C=>{if(c(C),!(C==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const w=r.beforeClose(C);yt(w)?w.then(B=>{B&&(k(!1),c("closed",C))}):w===!0&&(k(!1),c("closed",C))}else k(!1),c("closed",C)},y=()=>{v("confirm")},b=()=>{v("cancel")},f=()=>{v("close")},p=(C,w)=>rb(C)?(w.src=C,t.h("img",w)):typeof C=="string"?(Array.isArray(w.class)?w.class.push(C):w.class&&typeof w.class=="object"?w[`${C}`]=!0:typeof w.class=="string"?w.class=`${w.class}, ${C}`:w.class=C,t.h(r.tag,w)):t.h(C,w),h=()=>{const C=[];if(i.header){const B=i.header();C.push(B)}else{if(r.title){const B=t.h("view",{class:`${u}__header-title`},[r.title]);C.push(B)}if(r.showClose){const B={class:[`${u}__header-close-icon`],onClick:f},A=r.closeIcon??l,T=p(A,B);C.push(T)}}if(C.length===0)return null;const w={class:[`${u}__header`]};return t.h("view",w,C)},S=()=>{const C=[];if(i.default)C.push(i.default());else{const B={class:[`${u}__content`]};if(r.textAlign&&B.class.push(r.textAlign),typeof r.content=="string"){B.innerHTML=r.content;const A=t.h("view",B);C.push(A)}else if(typeof r.content=="function"){const A=t.h("view",B,[r.content()]);C.push(A)}else{const A=t.h("view",B,[r.content]);C.push(A)}}if(C.length===0)return null;const w={class:[`${u}__body`]};return t.h("view",w,C)},N=()=>{if(!r.showFooter)return null;const C=[];if(i.footer)C.push(i.footer());else if(r.plain){if(r.showCancelButton){const B={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},onClick:b};r.cancelButtonClass&&B.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(B.style,r.cancleButtonStyle);const A=t.h("view",B,[r.cancelButtonText??m.cancelText.value]);C.push(A)}if(r.showConfirmButton){const B={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},onClick:y};r.confirmButtonClass&&B.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(B.style,r.confirmButtonStyle);const A=t.h("view",B,[r.confirmButtonText??m.confirmText.value]);C.push(A)}}else{if(r.showCancelButton){const B={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:b};r.cancelButtonClass&&B.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(B.style,r.cancleButtonStyle);const A=t.h(o,B,{default:()=>[r.cancelButtonText??m.cancelText.value]});C.push(A)}if(r.showConfirmButton){const B={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:y};r.confirmButtonClass&&B.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(B.style,r.confirmButtonStyle);const A=t.h(o,B,{default:()=>[r.confirmButtonText??m.confirmText.value]});C.push(A)}}if(C.length===0)return null;const w={class:[`${u}__footer`,`${u}__footer--${r.footerDirection}`]};return t.h("view",w,C)};return()=>{const C=[],w=h();w&&C.push(w);const B=S();B&&C.push(B);const A=N();A&&C.push(A);const T={class:{[`${u}`]:!0,[`${u}--plain`]:r.plain}},$=t.h("view",T,C),I=[`${u}__popup`];r.popClass&&I.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 E={...be(r,Fe),popClass:I.join(" "),style:R,visible:g.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":k,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,E,{default:()=>$})}}}}const{componentName:ib,create:cb,scope:ub}=Q("dialog"),zs=cb(sb(ib,ub,fe,Le,ne.Close));class db{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 fb{options=new db;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=d=>{if(d===!1){const m=document.querySelector(`#${s}`);m&&m.parentNode?.removeChild(m)}},a?.onOpened&&a?.onOpened(),()=>t.h(zs,a)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Qt=function(e){return new fb(e)};Qt.install=e=>{e.use(zs),e.config.globalProperties.$dialog=Qt};const mb={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}},pb=(e,n,a)=>({props:{...mb},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=se.useFoxI18n(n),i=s(o,["pullingText","loosingText","loadingText"]),c=ll(),d=t.ref(),m=Is(d),u=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),g=t.computed(()=>({[e]:!0})),k=t.computed(()=>{switch(u.status){case"pulling":return r.pulling?"":i.pullingText.value;case"loosing":return r.loosing?"":i.loosingText.value;case"loading":return r.loading?"":i.loadingText.value;default:return""}}),v=t.computed(()=>({transitionDuration:`${o.duration}s`,transform:u.distance?`translate3d(0,${u.distance}px, 0)`:""})),y=t.computed(()=>{const w={};return o.headHeight!=50&&(w.height=he(o.headHeight)),w}),b=w=>{const B=+(o.pullDistance||o.headHeight);let A=w;return w>B&&(w<B*2?A=(w+B)/2:A=B+w/4),Math.round(A)},f=(w,B)=>{const A=+(o.pullDistance||o.headHeight);u.distance=w,B?u.status="loading":w===0?u.status="normal":w<A?u.status="pulling":u.status="loosing",l("change",{status:u.status,distance:w})},p=()=>u.status!=="loading"&&u.status!=="complete",h=()=>m.value==window?qs()==0:m.value&&m.value.scrollTop==0,S=w=>{p()&&(h()?(c.start(w),u.isPullRefresh=!0,u.moving=!0):(u.distance=0,u.isPullRefresh=!1))},N=w=>{p()&&u.moving&&(c.move(w),c.isVertical()&&c.state.deltaY>0&&u.isPullRefresh&&(w.cancelable&&w.preventDefault(),f(b(c.state.deltaY))))},C=()=>{u.moving=!1,u.isPullRefresh&&p()&&c.state.deltaY&&(u.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,w=>{w?f(+o.headHeight,!0):f(0)}),()=>{const w=[];let B=null;if(u.status==="loading"){if(B=r?.loading?.()??null,!B){const P={class:["fox-pull-refresh-container-topbox-icon"]};B=t.h(a,P)}}else u.status==="pulling"?B=r?.pulling?.()??null:u.status==="loosing"&&(B=r?.loosing?.()??null);B&&w.push(B);const A={class:["fox-pull-refresh-container-topbox-text"]},T=t.h("dive",A,[k.value]);w.push(T);const $={class:["fox-pull-refresh-container-topbox"],style:y.value},I=t.h("div",$,w),R={class:"fox-pull-refresh-container",style:v.value},V=t.h("div",R,[I,r?.default?.()]),E={ref:d,class:g.value};return ol()?Object.assign(E,{onTouchstart:S,onTouchmove:N,onTouchend:C}):Object.assign(E,{onMousedown:S,onMousemove:N,onMouseup:C}),t.h("div",E,[V])}}}),{componentName:hb,create:gb,scope:yb}=Q("pull-refresh"),ea=gb(pb(hb,yb,ne.Loading)),{create:vb}=Q("notify"),bb=vb({components:{[fe.name]:fe},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const a=()=>{e.onClick&&e.onClick()};let o=null;const l=()=>{o&&clearTimeout(o),o=null},r=()=>{n("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,d=>{s.value=e.visible;const m=e.duration;d&&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 kb(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 ta=ee(bb,[["render",kb]]),Ro={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let mt=[],Ot=[];const Rs=e=>{if(e){const n=document.getElementById(e);Ot=Ot.filter(a=>a.id!==e),mt=mt.filter(a=>a!==e),n&&document.body.removeChild(n)}else mt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Ot=[],mt=[]},Sb=e=>{const n=document.getElementById(e.id);if(n){const a=Ot.find(l=>l.id===e.id);a?e={...Ro,...a,...e}:e={...Ro,...e};const o=t.createVNode(ta,e);return t.render(o,n),o.component.data}},Pt=e=>{e.unmount=Rs;let n;if(e.id){if(n=e.id,mt.find(r=>r===e.id))return Sb(e)}else n=new Date().getTime()+"";e={...Ro,...e},e.id=n,mt.push(e.id),Ot.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(ta,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},Mt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},na={text(e,n={}){return Mt(e),Pt({...n,msg:e})},primary(e,n={}){return Mt(e),Pt({...n,msg:e,type:"primary"})},success(e,n={}){return Mt(e),Pt({...n,msg:e,type:"success"})},danger(e,n={}){return Mt(e),Pt({...n,msg:e,type:"danger"})},warn(e,n={}){return Mt(e),Pt({...n,msg:e,type:"warning"})},hide(){Rs()},install(e){e.use(ta)}},{create:Cb}=Q("toast"),wb=Cb({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const l=()=>{a&&(clearTimeout(a),a=null)},r=()=>{o.mounted=!1},s=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),t.watch(()=>e.duration,k=>{k&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const k=de(e.iconSize);return t.h(e.icon,{width:k,height:k,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]),u=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:d,hasIcon:c,toastBodyClass:m,toastIconWrapperClass:u,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Nb={key:1,class:"fox-toast-title"},Bb=["innerHTML"];function Ab(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",Nb,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Bb)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const oa=ee(wb,[["render",Ab]]),Fo={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 pt=[],Kt=[];const Fs=e=>{if(e){const n=document.getElementById(e);Kt=Kt.filter(a=>a.id!==e),pt=pt.filter(a=>a!==e),n&&document.body.removeChild(n)}else pt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Kt=[],pt=[]},Vb=e=>{const n=document.getElementById(e.id);if(n){const a=Kt.find(l=>l.id===e.id);a?e={...Fo,...a,...e}:e={...Fo,...e};const o=t.createVNode(oa,e);return t.render(o,n),Et}},Lt=e=>{e.unmount=Fs;let n;if(e.id){if(n=e.id,pt.find(l=>l===e.id))return Vb(e)}else n=new Date().getTime()+"";e={...Fo,...e},e.id=n,pt.push(e.id),Kt.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(oa,e);return t.render(o,a),document.body.appendChild(a),Et},ln=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Et={text(e,n={}){return ln(e),Lt({...n,type:"text",msg:e})},success(e,n={}){return ln(e),Lt({icon:ne.Success,...n,msg:e,type:"success"})},fail(e,n={}){return ln(e),Lt({icon:ne.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return ln(e),Lt({icon:ne.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Lt({icon:ne.Loading,...n,msg:e,type:"loading"})},hide(e){Fs(e)},install(e){e.use(oa),e.config.globalProperties.$toast=Et}},{componentName:k2,create:Tb}=Q("audio"),$b=Tb({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:ne.Service,[Wt.name]:Wt},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 b=0;b<y.length;b++)document.addEventListener(y[b],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(b){b.message}});const r=y=>{const b=o.value;e.autoplay&&b&&b.paused&&b.play(),l.second=b.duration,l.duration=v(b.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)},d=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},m=y=>{l.currentDuration=v(y),l.percent=y/l.second*100},u=()=>{l.playing=!1,n("ended")},g=y=>{const b=o.value;b.currentTime=l.second*y/100,n("changeProgress",b.currentTime)},k=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},v=y=>{if(!y)return"00:00:00";let b=parseInt(y),f=Math.floor(b/3600),p=Math.floor((b-f*3600)/60),h=b-f*3600-p*60,S="";return S+=("0"+f.toString()).slice(-2)+":",S+=("0"+p.toString()).slice(-2)+":",S+=("0"+h.toString()).slice(-2),S};return t.watch(()=>l.currentTime,y=>{m(y)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:k,forward:d,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:i,forward:d,changeStatus:c,progressChange:g,audioEnd:u,onTimeupdate:s,handleMute:k,onCanplay:r,slots:a}}}),Eb={class:"fox-audio"},xb={key:0,class:"fox-audio__progress"},Db={class:"fox-audio__time"},Ib={class:"fox-audio__bar"},qb={class:"fox-audio__time"},Pb={key:1,class:"fox-audio__icon"},Mb=["controls","src","preload","autoplay","loop","muted"];function Lb(e,n,a,o,l,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",Eb,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",xb,[t.createElementVNode("div",Db,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Ib,[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",qb,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Pb,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:n[1]||(n[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):(t.openBlock(),t.createBlock(i,{key:1}))],2)])):t.createCommentVNode("",!0),e.type=="none"?(t.openBlock(),t.createElementBlock("div",{key:2,onClick:n[2]||(n[2]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type!="none"?t.renderSlot(e.$slots,"default",{key:3}):t.createCommentVNode("",!0),t.createElementVNode("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:n[3]||(n[3]=(...c)=>e.onTimeupdate&&e.onTimeupdate(...c)),onCanplay:n[4]||(n[4]=(...c)=>e.onCanplay&&e.onCanplay(...c)),onEnded:n[5]||(n[5]=(...c)=>e.audioEnd&&e.audioEnd(...c)),muted:e.hanMuted},null,40,Mb)])}const la=ee($b,[["render",Lb]]),{componentName:S2,create:zb,scope:Rb}=Q("audio-operate"),Fb=zb({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(Rb),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}}}),Ob={class:"fox-audio-operate"};function Kb(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Ob,[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=ee(Fb,[["render",Kb]]),{componentName:Ub,create:Hb}=Q("avatar"),jb=Hb({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}),d=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const v=s?.avatarGroupRef?.value?.children;v&&k(v)});const m=t.computed(()=>({[Ub]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||s?.props?.shape||"normal"}`]:!0})),u=t.computed(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${o.value}`,color:`${l.value}`,marginLeft:d.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),g=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),k=v=>{d.maxIndex=v.length;for(let y=0;y<v.length;y++)v[y]&&v[y].classList&&v[y].classList[0]=="fox-avatar"&&v[y].setAttribute("data-index",y+1);d.index=i?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=s?.props?.maxCount&&(d.showMax=!0)};return{classes:m,styles:u,maxStyles:g,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(d)}}});function Wb(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 Gt=ee(jb,[["render",Wb]]),{componentName:Yb,create:Xb}=Q("avatar-group"),Qb=Xb({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(()=>({[Yb]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:l}),{classes:r,avatarGroupRef:o}}});function Gb(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=ee(Qb,[["render",Gb]]);var fn=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(fn||{});function Zb(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:Jb,create:_b}=Q("list"),Tr=document.documentElement.clientHeight||document.body.clientHeight||667,ek=_b({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Tr},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,Tr)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),d=t.computed(()=>({[Jb]:!0})),m=t.computed(()=>r.list.slice(r.start,c.value)),u=()=>{if(l.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},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}},k=()=>{let f=l.value.childNodes;f=Array.from(f).filter(w=>w.nodeType===1);const p=f[0];f.forEach((w,B)=>{if(!w)return;const A=De(w),{height:T}=A,I=r.cachePositions[B+r.start].height-T;I&&(r.cachePositions[B+r.start].bottom-=I,r.cachePositions[B+r.start].height=T,r.cachePositions[B+r.start].dValue=I)});let h=0;p&&(h=r.start);const S=r.cachePositions.length;let N=r.cachePositions[h].dValue;r.cachePositions[h].dValue=0;for(let w=h+1;w<S;++w){const B=r.cachePositions[w];r.cachePositions[w].top=r.cachePositions[w-1].bottom,r.cachePositions[w].bottom=r.cachePositions[w].bottom-N,B.dValue!==0&&(N+=B.dValue,B.dValue=0)}const C=r.cachePositions[S-1].bottom;r.phantomHeight=C},v=(f=0)=>{let p=Zb(r.cachePositions,f,(S,N)=>{const C=S.bottom;return C===N?fn.eq:C<N?fn.lt:fn.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},b=()=>{const f=a.value?.scrollTop,{originStartIndex:p}=r,h=v(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(),k();else{y();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&k()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:u,visibleData:m,classes:d,getContainerHeight:s,handleScrollEvent:b}}});function tk(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=ee(ek,[["render",tk]]),{componentName:nk,create:ok}=Q("circleprogress"),lk=ok({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(()=>({[nk]:!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(()=>xe(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let m=283,u=m*Number(e.progress)/100;return{stroke:xe(e.color)?`url(#${o})`:e.color,strokeDasharray:`${u}px ${m}px`}}),c=t.computed(()=>({stroke:e.pathColor})),d=t.computed(()=>{if(!xe(e.color))return;let m=e.color;const u=Object.keys(m).sort((k,v)=>parseFloat(k)-parseFloat(v));let g=[];return u.map((k,v)=>{let y={key:"",value:""};y.key=k,y.value=m[k],g.push(y)}),g});return{classes:l,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:d,slotDefault:a,refRandomId:o}}}),ak={viewBox:"0 0 100 100"},rk=["id"],sk=["offset","stop-color"],ik=["d","stroke-width"],ck=["d","stroke","stroke-linecap","stroke-width"],uk={class:"fox-circleprogress-text"},dk={key:0};function fk(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",ak,[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,sk))),128))],8,rk)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,ik),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,ck)])),t.createElementVNode("div",uk,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",dk,t.toDisplayString(e.progress)+"%",1))])],6)}const ia=ee(lk,[["render",fk]]),{componentName:mk,create:pk}=Q("noticebar"),hk=pk({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:ne.Notice,CircleClose:ne.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(()=>({[mk]:!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})),d=t.computed(()=>{let w={};return e.color&&(w.color=e.color),e.background&&(w.background=e.background),e.direction=="vertical"&&(w.height=`${e.height}px`),w}),m=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),u=t.computed(()=>{let w={};if(e.complexAm)w={transform:`translateY(${r.distance}px)`};else if(r.animate){let B=~~(e.height/e.speed/4);w={transition:`all ${B==0?~~(e.height/e.speed):B}s`,"margin-top":`-${e.height}px`}}return w});t.watch(()=>e.text,w=>{g()}),t.watch(()=>e.list,w=>{r.scrollList=[...w]});const g=w=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const B=o.value.getBoundingClientRect().width,A=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?A>B:e.scrollable,r.isCanScroll?(r.wrapWidth=B,r.offsetWidth=A,r.duration=A/e.speed,r.animationClass="play"):r.animationClass=""},0)},k=w=>{n("click",w)},v=w=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",w)},y=w=>{r.firstRound=!1,n("across-end",w),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},b=()=>{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 w=100;for(let B=0;B<w;B++)h(B,!(B<w-1))},e.standTime+100*e.speed)},h=(w,B)=>{setTimeout(()=>{r.distance-=e.height/100,B&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},w*e.speed)},S=w=>{n("click",w)},N=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(a.default?C(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?p():b()},e.standTime)):g(e.text)}),t.watch(()=>a.default?a.default():[],w=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),C(w))});const C=w=>{w&&w.length>0&&(r.scrollList=w[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:d,contentStyle:m,horseLampStyle:u,wrap:o,content:l,handleClick:k,onClickIcon:v,onAnimationEnd:y,go:S,handleClickIcon:N,slots:a,toPxDesc:he,wrapContentClass:c}}}),gk={key:0,class:"fox-noticebar__page-lefticon"},yk={ref:"wrap",class:"fox-noticebar__page-wrap"},vk={class:"showNotica"},bk=["onClick"];function kk(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]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.showLeftIcon?(t.openBlock(),t.createElementBlock("view",gk,[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",yk,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":n[1]||(n[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[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((...d)=>e.onClickIcon&&e.onClickIcon(...d),["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",vk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(d,m)=>(t.openBlock(),t.createBlock(c,{key:m,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:d},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,(d,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:u=>e.go(d)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(d),1)])],12,bk))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=d=>!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=ee(hk,[["render",kk]]),Sk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMj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cMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:C2,create:Nk,scope:Bk}=Q("empty"),Ak={empty:Sk,error:Ck,network:wk},Vk=Nk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=se.useFoxI18n(Bk),a=n(e,["description"]),{image:o,imageSize:l}=t.toRefs(e),r=t.computed(()=>l.value?typeof l.value=="number"?`width:${l.value}px;height:${l.value}px`:`width:${l.value};height:${l.value}`:""),i=o.value.startsWith("https://")||o.value.startsWith("http://")||o.value.startsWith("//")?o.value:Ak[o.value];return{...a,imageUrl:i,imgStyle:r}}}),Tk={class:"fox-empty"},$k=["src"],Ek={key:1,class:"fox-empty-description"};function xk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Tk,[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,$k)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",Ek,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const ua=ee(Vk,[["render",xk]]),{create:Dk,scope:Ik}=Q("video"),qk=Dk({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}=se.useFoxI18n(Ik),o=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),l=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,C=>{C.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,C=>{o.state.isMuted=C?C.muted:!1},{immediate:!0});const s=()=>{o.videoElm=l.value,e.options.autoplay&&setTimeout(()=>{o.videoElm.play()},200),e.options.touchPlay&&(o.showTouchMask=!0),e.options.playsinline&&(o.videoElm.setAttribute("playsinline",e.options.playsinline),o.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),o.videoElm.setAttribute("x5-video-player-type","h5-page"),o.videoElm.setAttribute("x5-video-player-fullscreen",!1)),v(),o.showToolbox?i():(o.videoElm.addEventListener("play",()=>{o.state.playing=!0,n("play",o.videoElm)}),o.videoElm.addEventListener("pause",()=>{o.state.playing=!1,n("pause",o.videoElm)}),o.videoElm.addEventListener("ended",g),o.videoElm.addEventListener("timeupdate",gn(u,1e3)))},i=()=>{const C=l.value,w=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=C,o.progressBar.progressElm=w,o.progressBar.pos=w.getBoundingClientRect(),o.videoSet.progress.width=Math.round(w.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",gn(u,1e3)),o.videoElm.addEventListener("ended",g),n("play",o.videoElm)}catch{k()}else o.videoElm.pause(),n("pause",o.videoElm)},d=C=>{var w=Math.floor(C/3600);w<10&&(w="0"+w);var B=Math.floor(C%3600/60);B<10&&(B="0"+B);var A=Math.round(C%3600%60);A<10&&(A="0"+A);var T="";return w!=0?T=w+":"+B+":"+A:T=B+":"+A,T},m=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},u=()=>{const C=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*C),o.videoSet.totalTime=d(o.videoElm.duration),o.videoSet.displayTime=d(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)},k=()=>{o.state.isError=!0},v=()=>{o.state.vol=e.options.volume},y=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},b=()=>{},f=C=>{let B=C.targetTouches[0].pageX-o.progressBar.pos.left;B<=0&&(B=0),B>=o.videoSet.progress.width&&(B=o.videoSet.progress.width),o.videoSet.progress.current=B;let A=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&h(A,o.videoElm.duration)},p=C=>{let B=C.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=B;let A=B/o.videoSet.progress.width;o.videoElm.duration&&h(A,o.videoElm.duration)},h=(C,w)=>{o.videoElm.currentTime=Math.floor(C*w)},S=()=>{o.state.isError=!1,s()},N=()=>{o.state.fullScreen?(o.state.fullScreen=!1,document.webkitCancelFullScreen()):(o.state.fullScreen=!0,o.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:l,...t.toRefs(e),...t.toRefs(o),handleError:k,isDisabled:r,play:c,handleMuted:y,touchSlidSrart:b,touchSlidMove:f,touchSlidEnd:p,retry:S,fullScreen:N,t:a}}}),Pk={class:"fox-video",ref:"videocon"},Mk=["muted","autoplay","loop","poster","controls","preload"],Lk=["src","type"],zk={class:"fox-video-controller__now"},Rk={class:"fox-video-controller__progress"},Fk={class:"fox-video-controller__progress-value",ref:"progressBar"},Ok={class:"fox-video-controller__played",ref:"playedBar"},Kk={class:"fox-video-controller__total"},Uk={class:"fox-video-error"},Hk={class:"fox-video-error-tip"};function jk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",Pk,[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,Lk)],40,Mk),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",zk,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",Rk,[t.createElementVNode("div",Fk,[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",Ok,null,512)],512)]),t.createElementVNode("div",Kk,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",Uk,[t.createElementVNode("p",Hk,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 Nt=ee(qk,[["render",jk]]),{create:Wk,componentName:Yk}=Q("steps"),da=Wk({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=Yk;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:Xk,componentName:Qk}=Q("step"),Gk=Xk({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=Qk;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:s,handleClickStep:i}}}),Zk={class:"fox-step-head"},Jk={class:"fox-step-icon-inner"},_k={key:1,class:"fox-step-inner"},eS={class:"fox-step-main"},tS={class:"fox-step-title"},nS={key:0},oS={key:0,class:"fox-step-content"},lS=["innerHTML"];function aS(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",Zk,[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",Jk,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",_k,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",eS,[t.createElementVNode("view",tS,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",nS,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",oS,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,lS)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const fa=ee(Gk,[["render",aS]]),{create:rS,componentName:ho}=Q("swiper"),sS=rS({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:n,slots: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(()=>({[ho]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const x=ho;return{[`${x}-inner`]:!0,[`${x}-vertical`]:i.value}}),d=t.computed(()=>{const x=ho;return{[`${x}-pagination`]:!0,[`${x}-pagination-vertical`]:i.value}}),m=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),u=t.computed(()=>r.direction.value===e.direction),g=t.computed(()=>l.children.length),k=t.computed(()=>l[i.value?"height":"width"]),v=t.computed(()=>g.value*k.value),y=t.computed(()=>l.rect?(i.value?l.rect.height:l.rect.width)-k.value*g.value:0),b=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"]:`${k.value*g.value}px`,[i.value?"width":"height"]:`${i.value?l.width:l.height}px`}},p=x=>{let U=[];const K=l.childrenVNode.length;let J=a?.default?.();if(J=J.filter(_=>_.children&&Array.isArray(_.children)),J.forEach(_=>{U=U.concat(_.children)}),!K)l.childrenVNode=U.slice(),x.proxy&&l.children.push(x.proxy);else if(K>U.length)l.children=l.children.filter(_=>x.proxy!==_);else if(K<U.length){for(let _=0;_<K;_++)if(U[_].key!==l.childrenVNode[_].key){x.proxy&&l.children.splice(_,0,x.proxy),x.vnode&&l.childrenVNode.splice(_,0,x.vnode);break}K!==U.length&&(x.proxy&&l.children.push(x.proxy),x.vnode&&l.childrenVNode.push(x.vnode))}else l.childrenVNode=U.slice(),x.proxy&&l.children.push(x.proxy)},h=(x,U=0)=>{let K=x*k.value;e.loop||(K=Math.min(K,-y.value));let J=U-K;return e.loop||(J=Ue(J,y.value,0)),J},S=x=>{const{active:U}=l;return x?e.loop?Ue(U+x,-1,g.value):Ue(U+x,0,g.value-1):U},N=({pace:x=0,offset:U=0,isEmit:K=!1})=>{if(g.value<=1)return;const{active:J}=l,_=S(x),j=h(_,U);if(e.loop){if(l.children[0]&&j!==y.value){const q=j<y.value;l.children[0].setOffset(q?v.value:0)}if(l.children[g.value-1]&&j!==0){const q=j>0;l.children[g.value-1].setOffset(q?-v.value:0)}}l.active=_,l.offset=j,K&&J!==l.active&&n("change",b.value),f()},C=()=>{l.moving=!0,l.active<=-1&&N({pace:g.value}),l.active>=g.value&&N({pace:-g.value})},w=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},B=x=>{C(),r.reset(),Xe(()=>{Xe(()=>{l.moving=!1,N({pace:x,isEmit:!0})})})},A=()=>{B(-1)},T=()=>{B(1)},$=x=>{C(),r.reset(),Xe(()=>{l.moving=!1;let U;e.loop&&g.value===x?U=l.active===0?0:x:U=x%g.value,N({pace:U-l.active,isEmit:!0})})},I=()=>{e.autoPlay<=0||g.value<=1||(w(),l.autoplayTimer=setTimeout(()=>{T(),I()},Number(e.autoPlay)))},R=(x=+e.initPage)=>{w(),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(),I()},V=x=>{e.isPreventDefault&&x.preventDefault(),e.isStopPropagation&&x.stopPropagation(),e.touchable&&(r.start(x),l.touchTime=Date.now(),w(),C())},E=x=>{e.touchable&&l.moving&&(r.move(x),u.value&&N({offset:m.value}))},P=x=>{if(!e.touchable||!l.moving)return;const U=m.value/(Date.now()-l.touchTime);if((Math.abs(U)>.3||Math.abs(m.value)>+(k.value/2).toFixed(2))&&u.value){let J=0;const _=i.value?r.offsetY.value:r.offsetX.value;e.loop?J=_>0?m.value>0?-1:1:0:J=-Math[m.value>0?"ceil":"floor"](m.value/k.value),N({pace:J,isEmit:!0})}else m.value&&N({pace:0});l.moving=!1,f(),I()};return t.provide("parent",{props:e,size:k,relation:p}),Ie({prev:A,next:T,to:$}),t.onDeactivated(()=>{w()}),t.onBeforeUnmount(()=>{w()}),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?I():w()}),{state:l,classes:s,classesInner:c,classesPagination:d,container:o,activePagination:b,onTouchStart:V,onTouchMove:E,onTouchEnd:P}}});function iS(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 Bt=ee(sS,[["render",iS]]),{create:cS,componentName:uS}=Q("swiper-item"),dS=cS({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[uS]:!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")}),Ie({setOffset:s}),{style:r,classes:l}}});function fS(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 At=ee(dS,[["render",fS]]),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:mS}=Q("image-preview-item"),pS=mS({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:{[Nt.name]:Nt,[At.name]:At},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:A,rootHeight:T}=e,$=T/A;return a.imageRatio>$}),r=t.computed(()=>{const A=e.image;if(A&&A.src){const{scale:T,moveX:$,moveY:I,moving:R,zooming:V}=a,E={transitionDuration:V||R?"0s":".3s"};if(T!==1){const P=$/T,x=I/T;E.transform=`scale(${T}, ${T}) translate(${P}px, ${x}px)`}return E}return{}}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:A,rootHeight:T}=e,$=l.value?T/a.imageRatio:A;return Math.max(0,(a.scale*$-A)/2)}return 0}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:A,rootHeight:T}=e,$=l.value?T:A*a.imageRatio;return Math.max(0,(a.scale*$-T)/2)}return 0}),c=A=>{const{naturalWidth:T,naturalHeight:$}=A.target;a.imageRatio=$/T},d=()=>{m(1),a.moveX=0,a.moveY=0},m=A=>{A=Ue(A,+e.minZoom,+e.maxZoom+1),A!==a.scale&&(a.scale=A,n("scale",{scale:A,index:e.initNo}))},u=()=>{const A=a.scale>1?1:2;m(A),a.moveX=0,a.moveY=0},g=A=>Math.sqrt((A[0].clientX-A[1].clientX)**2+(A[0].clientY-A[1].clientY)**2);let k,v,y,b,f,p,h;const S=A=>{const{touches:T}=A,{offsetX:$}=o;o.start(A),h=T.length,k=a.moveX,v=a.moveY,p=Date.now(),a.moving=h===1&&a.scale!==1,a.zooming=h===2&&!$.value,a.zooming&&(y=a.scale,b=g(A.touches))},N=A=>{const{touches:T}=A;if(o.move(A),(a.moving||a.zooming)&&No(A,!0),a.moving){const{deltaX:$,deltaY:I}=o,R=$.value+k,V=I.value+v;a.moveX=Ue(R,-s.value,s.value),a.moveY=Ue(V,-i.value,i.value)}if(a.zooming&&T.length===2){const $=g(T),I=y*$/b;m(I)}},C=()=>{if(h==1&&e.video&&e.video.source||h>1)return;const{offsetX:A,offsetY:T}=o,$=Date.now()-p,I=250,R=5;A.value<R&&T.value<R&&$<I&&(f?(clearTimeout(f),f=null,u()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},I))},w=A=>{let T=!1;(a.moving||a.zooming)&&(T=!0,a.moving&&k===a.moveX&&v===a.moveY&&(T=!1),A.touches.length||(a.zooming&&(a.moveX=Ue(a.moveX,-s.value,s.value),a.moveY=Ue(a.moveY,-i.value,i.value),a.zooming=!1),a.moving=!1,k=0,v=0,y=1,a.scale<1&&d(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),No(A,T),C(),o.reset()},B=()=>{n("close")};return t.watch(()=>e.initNo,d),t.watch(()=>e.show,A=>{A||d()}),{...t.toRefs(a),onTouchStart:S,onTouchMove:N,onTouchEnd:w,getDistance:g,imageStyle:r,imageLoad:c,closeSwiper:B}}}),hS=["src"];function gS(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,hS)):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 yS=ee(pS,[["render",gS]]),{create:vS}=Q("image-preview"),bS=vS({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:yS,CircleClose:ne.CircleClose,[fe.name]:fe,[Bt.name]:Bt},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(()=>Nn(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=m=>{m!==o.active&&(o.active=m,n("change",o.active))},i=()=>{Ls(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},d=()=>{if(a.value){const m=De(a.value);o.rootHeight=m.height,o.rootWidth=m.width}};return t.watch(()=>e.show,m=>{o.showPop=m,m&&(s(e.initNo),d())}),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}}}),kS={class:"fox-image-preview",ref:"swipeRef"},SS={key:0,class:"fox-image-preview-index"};function CS(e,n,a,o,l,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{"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",kS,[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,u)=>(t.openBlock(),t.createBlock(s,{key:u,video:u<e.videos.length?m:{},image:u>=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",SS,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=ee(bS,[["render",CS]]);class wS{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 NS{options=new wS;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=Ai(a,{name:"image-preview",components:[fe,Nt,Bt,At,st],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(Ks,a))}})})}}const oo=e=>new NS(e);oo.install=e=>{e.use(Ks)};function BS(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{componentName:w2,create:AS}=Q("countup"),VS=AS({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=B=>{B&&o.value.push(B)},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:d}=t.reactive(e);t.watch(()=>e.customChangeNum,(B,A)=>{u(),b(0)}),t.watch(()=>e.machinePrizeLevel,(B,A)=>{r.prizeLevelTrun=B}),t.watch(()=>e.initNum,(B,A)=>{r.current=B,r.valFlag=!1,m()}),t.watch(()=>e.endNum,(B,A)=>{r.current=e.initNum,r.valFlag=!1,m()});const m=()=>{if(r.valFlag)return!1;s&&(i||c?d!="machine"&&b():(y(),setTimeout(()=>{r.valFlag=!0},300)))},u=()=>{clearInterval(Number(r.timer)),r.timer=null},g=(B,A,T)=>{const $=(B.toString().split(".")[1]||"").length,I=(A.toString().split(".")[1]||"").length,R=Math.pow(10,Math.max($,I));return Number((B*R-A*R).toFixed(0))/R},k=B=>{let{num_total_len:A,pointNum:T,initDigit1:$,initDigit2:I,sortFlag:R}=r,V=R=="add"||R=="equal"?String(I)[B-(A-T)]:10-Number(String(I)[B-(A-T)]),E=R=="add"||R=="equal"?String($)[B]:10-Number(String($)[B]),P=B>A-T-1?-V*100+"%":B<=String($).length-1?-E*100+"%":0;return P=="-1000%"&&(P=0),P},v=B=>{let{num_total_len:A,pointNum:T,initDigit1:$,initDigit2:I,sortFlag:R}=r,V=String(I)[B-(A-T)];return B>A-T-1?V||0:B<=String($).length-1?String($)[B]:0},y=()=>{let{endNum:B,initNum:A,speed:T,toFixed:$}=e,I=setInterval(()=>{if(A>B)if(r.current<=B||r.current<=T)r.current=B.toFixed($),clearInterval(I),n("scroll-end"),r.valFlag=!1;else{let R=parseFloat(String(r.current))-parseFloat(String(T));r.current=R.toFixed($)}else if(r.current>=B)r.current=B.toFixed($),clearInterval(I),n("scroll-end"),r.valFlag=!1;else{let R=parseFloat(String(r.current))+parseFloat(String(T));r.current=R.toFixed($)}},e.during)},b=B=>{let{initNum:A,endNum:T,toFixed:$,customBgImg:I}=e;I&&(A=e.customChangeNum);let R,V,E,P;A!=0?($!=0&&(A=Number(A.toFixed($))),String(A).indexOf(".")>-1?(R=String(A).split(".")[0].length,V=String(A).split(".")[1].length):(R=String(A).length,V=0)):(R=1,V=0),T!=0?($!=0&&(T=Number(T.toFixed($))),String(T).indexOf(".")>-1?(E=String(T).split(".")[0].length,P=String(T).split(".")[1].length):(E=String(T).length,P=0)):(E=1,P=0);let x=R>=E?R:E,U=V>=P?V:P;r.num_total_len=x+U,r.pointNum=U,A>T?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=g(A,T),r.numberVal=Number(String(A))):A<T?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=g(T,A),r.numberVal=Number(String(T))):r.sortFlag="equal";var K=1;for(let _=0;_<r.pointNum;_++)K*=10;var J=r.numberVal*K;if(r.relNum=J,$!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(J).length),String(A).indexOf(".")>-1){let _=String(A).split(".");r.initDigit1=Number(_[0]),r.initDigit2=Number(_[1])}else r.initDigit1=A,r.initDigit2=0;i&&!I?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let _=o.value[r.num_total_len-1];f(_)}):B!==0&&S()},f=B=>{u();var A=1;r.pointNum!=0&&(A=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{p(B),r.totalCount=g(r.totalCount,A),r.totalCount<=0&&(u(),n("scroll-end"),r.valFlag=!1)},e.during)},p=B=>{let A=B.getAttribute("turn-number"),T;if(r.sortFlag=="add"?T=parseInt(String(A))+1:T=parseInt(String(A))-1>=0?parseInt(String(A))-1:9,B.setAttribute("turn-number",String(T)),(B.style.transition=="none 0s ease 0s"||T==1||!B.style.transition)&&(B.style.transition=`all linear ${e.during}ms`),T==10||r.sortFlag=="reduce"&&T==0){var $=null;B.style.top=`-${r.sortFlag=="add"?T*100:(10-T)*100}%`,B.setAttribute("turn-number","0"),$=setTimeout(()=>{$&&clearTimeout($),B.style.transition="none",B.style.top="0",h(B,T)},.975*e.during)}else B.style.top=`-${r.sortFlag=="add"?T*100:(10-T)*100}%`;B.style.top=="-100%"&&r.sortFlag=="reduce"&&p(B.previousSibling)},h=(B,A)=>{setTimeout(()=>{A==10&&B.previousSibling&&p(B.previousSibling)},200)},S=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{a.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},N=()=>{for(r.notPrize=[];r.notPrize.length<3;){var B=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(B)==-1&&r.notPrize.push(B)}};BS({machineLuck:()=>{const B=e.machineTurnMore<0?0:e.machineTurnMore;let A=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&N();for(let T=0;T<e.machineNum;T++)setTimeout(()=>{let $=A*(T+1+parseFloat(String(B)));r.prizeYPrev.length!=0&&(r.prizeY[T]=r.prizeYPrev[T]);let I=r.prizeYPrev[T]?r.prizeYPrev[T]:0,R=$+I+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(A-I);r.prizeLevelTrun<0&&(R+=e.numHeight*r.notPrize[T]),w(T,R,I)},500*T)}});const w=(B,A,T)=>{let $=setInterval(()=>{if(T<=A)T+=10,r.prizeY[B]=parseFloat(String(T));else if(clearInterval($),$=null,r.finshMachine+=1,r.prizeY[B]=A,r.finshMachine==e.machineNum){let I=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(V=>{let E=V;for(;E>I;)E-=I;r.prizeYPrev.push(E)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{m()})}),t.onUnmounted(()=>{u(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:k,turnNumber:v}}}),TS={class:"fox-countup"},$S=["turn-number"];function ES(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",TS,[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,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+d,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,$S))),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 ma=ee(VS,[["render",ES]]),xS=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:DS,create:IS}=Q("countdown"),qS=IS({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(()=>({[DS]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-xS(e.startTime),o.counting||(o.counting=!0),i()},i=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const k=Date.now()-o.diffTime,v=Math.max(o.handleEndTime-k,0);o.restTime=v,v||(o.counting=!1,u(),n("on-end")),v>0&&i()}}))},c=(k,v)=>{const y=k;let b={d:0,h:0,m:0,s:0,ms:0};const f=1e3,p=60*f,h=60*p,S=24*h;return y>0&&(b.d=y>=f?Math.floor(y/S):0,b.h=Math.floor(y%S/h),b.m=Math.floor(y%h/p),b.s=Math.floor(y%p/f),b.ms=Math.floor(y%f)),v=="custom"?b:d({...b})},d=k=>{let{d:v,h:y,m:b,s:f,ms:p}=k,h=e.format;if(h.includes("DD")?h=h.replace("DD",tt(v)):y+=Number(v)*24,h.includes("HH")?h=h.replace("HH",tt(y)):b+=Number(y)*60,h.includes("mm")?h=h.replace("mm",tt(b)):f+=Number(b)*60,h.includes("ss")?h=h.replace("ss",tt(f)):p+=Number(f)*1e3,h.includes("S")){const S=tt(p,3).toString();h.includes("SSS")?h=h.replace("SSS",S):h.includes("SS")?h=h.replace("SS",S.slice(0,2)):h.includes("S")&&(h=h.replace("SS",S.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))},u=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},g=()=>{e.autoStart||(u(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():o.restTime=e.time}),t.watch(()=>o.restTime,k=>{let v=c(k,"custom");n("update:modelValue",v),n("input",v)}),t.watch(()=>e.paused,(k,v)=>{v?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i()),n("on-restart",o.restTime)):o.counting&&u()}),t.watch(()=>e.endTime,k=>{s()}),t.watch(()=>e.startTime,k=>{s()}),{...t.toRefs(e),slots:a,classes:l,start:m,pause:u,renderTime:r,reset:g}}}),PS=["innerHTML"];function MS(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,PS))],2)}const pa=ee(qS,[["render",MS]]),{create:LS}=Q("badge"),zS=LS({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}}}),RS={class:"fox-badge"},FS=["textContent"];function OS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",RS,[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,FS),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const ha=ee(zS,[["render",OS]]),{componentName:KS,create:US}=Q("tag"),HS=US({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:ne.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const s=KS;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 jS(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 Zt=ee(HS,[["render",jS]]),{create:WS}=Q("popover"),YS=WS({components:{FoxPopup:fe},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const p="fox-popover-arrow",h=e.location,S=h.split("-")[0];return`${p} ${p}-${S} ${p}--${h}`}),c=t.computed(()=>{const p={},{bgColor:h,arrowOffset:S,location:N}=e,C=N.split("-")[0],w=N.split("-")[1],B=16;return h&&(p[`border${d(C)}Color`]=h),e.arrowOffset!=0&&(["bottom","top"].includes(C)&&(w||(p.left=`calc(50% + ${S}px)`),w=="start"&&(p.left=`${B+S}px`),w=="end"&&(p.right=`${B-S}px`)),["left","right"].includes(C)&&(w||(p.top=`calc(50% - ${S}px)`),w=="start"&&(p.top=`${B-S}px`),w=="end"&&(p.bottom=`${B+S}px`))),p}),d=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,S=s.value.height,{width:N,height:C,left:w,top:B}=r.value,{location:A,offset:T}=e,$=A.split("-")[0],I=A.split("-")[1];let R=0,V=0;if(Nn(T)&&T.length==2&&(R+=Number(T[1]),V+=Number(T[0])),N){if(["bottom","top"].includes($)){const E=$=="bottom"?C+R:-(S+R);p.top=`${B+E}px`,I||(p.left=`${-(h-N)/2+w+V}px`),I=="start"&&(p.left=`${w+V}px`),I=="end"&&(p.left=`${r.value.right+V}px`)}if(["left","right"].includes($)){const E=$=="left"?-(h+R):N+R;p.left=`${w+E}px`,I||(p.top=`${B-S/2+C/2-4+V}px`),I=="start"&&(p.top=`${B+V}px`),I=="end"&&(p.top=`${B+C+V}px`)}}return p}),u=t.computed(()=>{const p={};return e.bgColor&&(p.background=e.bgColor),p}),g=()=>{let p=De(a.value);e.targetId&&(p=De(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 k=p=>{n("update",p),n("update:visible",p)},v=()=>{k(!e.visible),n("open")},y=()=>{n("update:visible",!1),n("close")},b=(p,h)=>{!p.disabled&&n("choose",p,h),e.closeOnClickAction&&y()},f=p=>{const h=a.value,S=o.value;let N=h&&!h.contains(p.target);if(e.targetId){const C=document.querySelector(`#${e.targetId}`);N=C&&!C.contains(p.target)}N&&S&&!S.contains(p.target)&&e.closeOnClickOutside&&y()};return{showPopup:l,openPopover:v,popoverArrow:i,closePopover:y,chooseItem:b,popoverRef:a,popoverContentRef:o,getRootPosition:m,customStyle:u,popoverArrowStyle:c,renderIcon:as}}}),XS={ref:"popoverContentRef",class:"fox-popover-content-group"},QS=["onClick"],GS={class:"fox-popover-menu-item-name"};function ZS(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",XS,[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(d=>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",GS,t.toDisplayString(i.name),1)],10,QS))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Jt=ee(YS,[["render",ZS]]),JS=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:_S}=Q("skeleton"),e1=_S(JS({[Gt.name]:Gt})),t1={key:0},n1={key:1,class:"fox-skeleton"},o1={key:0,class:"fox-skeleton-animation"},l1={class:"fox-skeleton-content"};function a1(e,n,a,o,l,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",n1,[e.animated?(t.openBlock(),t.createElementBlock("view",o1)):t.createCommentVNode("",!0),t.createElementVNode("view",l1,[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",t1,[t.renderSlot(e.$slots,"default")]))}const ga=ee(e1,[["render",a1]]),{create:r1,componentName:s1}=Q("collapse"),i1=r1({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(()=>({[s1]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,d,m=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,d,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 d=o.value.filter(m=>m!==c);r(d,c,!1)}else{const d=o.value.concat([c]);r(d,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 c1(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 ya=ee(i1,[["render",c1]]),{create:u1,componentName:d1}=Q("collapse-item"),f1=u1({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:ne.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=t.ref(null),a=t.ref(null),o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const g=d1;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)},d=()=>{s.value&&(i.value="auto")},m=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const g=a.value?.offsetHeight;i.value=g?`${g}px`:"auto"})})},u=()=>{const g=a.value?.offsetHeight;i.value=g?`${g}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,g=>{g?m():u()}),{classes:r,renderIcon:as,wrapperRef:n,contentRef:a,open:m,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:d}}}),m1={class:"fox-collapse-item__title-main"},p1={class:"fox-collapse-item__title-main-value"},h1=["innerHTML"],g1={key:2,class:"fox-collapse-item__title-label"},y1={key:0,class:"fox-collapse-item__title-sub"},v1=["innerHTML"],b1={key:0,class:"fox-collapse__item-extraWrapper"},k1={class:"fox-collapse__item-extraWrapper__extraRender"},S1={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function C1(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",m1,[t.createElementVNode("view",p1,[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,h1)),e.label?(t.openBlock(),t.createElementBlock("view",g1,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",y1,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,v1)),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",b1,[t.createElementVNode("div",k1,[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",S1,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const va=ee(f1,[["render",C1]]),w1=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:N1,create:B1,scope:A1}=Q("table"),V1=B1({components:{RenderColumn:w1,DownArrow:ne.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:o}=se.useFoxI18n(A1),l=t.reactive({curData:e.data}),r=t.computed(()=>({[N1]:!0})),s=k=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${k.align?k.align:""}`]:!0}),i=k=>k.stylehead?k.stylehead:"",c=k=>k.stylecolumn?k.stylecolumn:"",d=k=>e.columns.filter(v=>v.key===k)[0],m=k=>{const v=e.columns.filter(y=>y.key===k);return v[0].stylecolumn?v[0].stylecolumn:""},u=k=>{k.sorter&&(n("sorter",k),l.curData=typeof k.sorter=="function"?l.curData.sort(k.sorter):k.sorter==="default"?l.curData.sort():l.curData)},g=()=>e.columns.map(k=>[k.key,k.render]);return t.watch(()=>e.data,k=>{l.curData=k.slice()}),{...t.toRefs(l),classes:r,cellClasses:s,getColumnItem:d,getColumnItemStyle:m,handleSorterClick:u,sortDataItem:g,t:o,stylehead:i,stylecolumn:c}}}),T1={class:"fox-table__main__head"},$1={class:"fox-table__main__head__tr"},E1=["onClick"],x1={class:"fox-table__main__body"},D1={key:1},I1={key:0,class:"fox-table__nodata"},q1={key:0,class:"fox-table__nodata__text"},P1={key:1,class:"fox-table__summary"},M1=["innerHTML"];function L1(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",T1,[t.createElementVNode("view",$1,[(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:d=>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,E1))),128))])]),t.createElementVNode("view",x1,[(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(),([d,m])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:t.normalizeStyle(e.getColumnItemStyle(d))},[typeof c[d]=="function"||typeof m=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[m,c[d]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",D1,t.toDisplayString(c[d]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",I1,[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",q1,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",P1,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,M1)])):t.createCommentVNode("",!0)],2)}const ba=ee(V1,[["render",L1]]),{componentName:z1,create:R1}=Q("ellipsis"),F1=R1({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(()=>({[z1]:!0}));t.watch(()=>e.content,(y,b)=>{y!=b&&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),d()},d=()=>{if(o.offsetHeight<=l)s.exceeded=!1,document.body.removeChild(o);else{s.exceeded=!0;const y=e.content.length,b=Math.floor((0+y)/2),f=e.direction==="middle"?u([0,b],[b,y]):m(0,y);r.value=f,document.body.removeChild(o)}},m=(y,b)=>{const f=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(b-y<=1)return e.direction==="end"?{leading:e.content.slice(0,y)+e.symbol}:{tailing:e.symbol+e.content.slice(b,p)};const h=Math.round((y+b)/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,b):m(y,h):e.direction==="end"?m(y,h):m(h,b)},u=(y,b)=>{const f=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(y[1]-y[0]<=1&&b[1]-b[0]<=1)return{leading:e.content.slice(0,y[0])+e.symbol,tailing:e.symbol+e.content.slice(b[1],p)};const h=Math.floor((y[0]+y[1])/2),S=Math.ceil((b[0]+b[1])/2);return o.innerText=e.content.slice(0,h)+e.symbol+f+e.symbol+e.content.slice(S,p),o.offsetHeight<=l?u([h,y[1]],[b[0],S]):u([y[0],h],[S,b[1]])},g=y=>{if(!y)return 0;const b=y.match(/^\d*(\.\d*)?/);return b?Number(b[0]):0},k=y=>{y==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},v=()=>{n("click")};return{...t.toRefs(s),root:a,ellipsis:r,classes:i,clickHandle:k,handleClick:v}}}),O1={key:0},K1={key:1},U1={key:2};function H1(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",O1,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",K1,[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",U1,[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 ka=ee(F1,[["render",H1]]),{componentName:j1,create:W1}=Q("animate"),Y1=W1({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,[`${j1}-${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}}}),X1={class:"fox-animate"};function Q1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",X1,[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 Sa=ee(Y1,[["render",Q1]]),{componentName:G1,create:Z1}=Q("watermark"),J1=Z1({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:d,imageWidth:m,imageHeight:u,content:g,fontStyle:k,fontWeight:v,fontColor:y,fontSize:b,fontFamily:f}=e,p=()=>{const S=document.createElement("canvas"),N=window.devicePixelRatio,C=S.getContext("2d"),w=`${(l+s)*N}px`,B=`${(r+i)*N}px`,A=s*N,T=i*N;if(S.setAttribute("width",w),S.setAttribute("height",B),C){if(d){C.translate(A/2,T/2),C.rotate(Math.PI/180*Number(c));const $=new Image;$.crossOrigin="anonymous",$.referrerPolicy="no-referrer",$.src=d,$.onload=()=>{C.drawImage($,-m*N/2,-u*N/2,m*N,u*N),C.restore(),a.base64Url=S.toDataURL()}}else if(g){C.textBaseline="middle",C.textAlign="center",C.translate(A/2,T/2),C.rotate(Math.PI/180*Number(c));const $=Number(b)*N;C.font=`${k} normal ${v} ${$}px/${T}px ${f}`,C.fillStyle=y,C.fillText(g,0,0),C.restore(),a.base64Url=S.toDataURL()}}else throw new Error("当前环境不支持Canvas")};p(),t.watch(()=>[o,l,r,s,i,c,d,m,u,g,k,v,y,b,f],()=>{p()});const h=t.computed(()=>{const S=G1;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:h}}});function _1(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 Ca=ee(J1,[["render",_1]]);function eC(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:tC,create:nC}=Q("trend-arrow"),oC=nC({components:{TriangleUp:ne.TriangleUp,TriangleDown:ne.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=t.reactive({rateTrend:e.rate>0}),a=t.computed(()=>({[tC]:!0})),o=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;n.rateTrend=r>0;const d=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${eC(Number(d),s)}%`}),l=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:d}=e;return{color:d===0?c:i?n.rateTrend?s:r:c}});return{...t.toRefs(n),classes:a,calcRate:o,calcStyle:l}}});function lC(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 wa=ee(oC,[["render",lC]]),{create:aC}=Q("tour"),rC=aC({components:{[Jt.name]:Jt,Close:ne.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const 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:u,maskHeight:g}=e,{width:k,height:v,left:y,top:b}=o.value,f=[y+k/2,b+v/2],p=Number(u||k),h=Number(g||v);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}`),u=De(m);o.value=u},c=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},d=()=>{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:d}}}),sC={key:0,class:"fox-tour-content"},iC={key:0,class:"fox-tour-content-top"},cC={class:"fox-tour-content-inner"},uC={class:"fox-tour-content-bottom"},dC={class:"fox-tour-content-bottom-init"},fC={class:"fox-tour-content-bottom-operate"},mC={key:1,class:"fox-tour-content fox-tour-content-tile"},pC={class:"fox-tour-content-inner"};function hC(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,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==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",sC,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",iC,[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",cC,t.toDisplayString(c.content),1),t.createElementVNode("div",uC,[t.createElementVNode("div",dC,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",fC,[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",mC,[t.createElementVNode("div",pC,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const Na=ee(rC,[["render",hC]]),{componentName:N2,create:gC,scope:yC}=Q("address"),vC=gC({components:{Location:ne.Location,Location2:ne.Location2,Check:ne.Check,Close:ne.Close,Left:ne.Left,[fe.name]:fe,[jt.name]:jt},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}=se.useFoxI18n(yC),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),d=t.ref(["province","city","country","town"]),m=t.ref(null),u=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}}),k=E=>{if(!Array.isArray(E))throw new TypeError("params muse be array.");if(!E.length)return[];E.forEach(x=>{if(!x.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const P=[];return E=E.sort((x,U)=>x.title.localeCompare(U.title)),E.forEach(x=>{const U=P.findIndex(K=>K.title===x.title);U<=-1?P.push({title:x.title,list:[].concat(x)}):P[U].list.push(x)}),P};let v=t.ref([]),y=t.reactive({});const b=t.ref("self"),f=t.ref(20),p=()=>{const E=e.modelValue,P=E.length;if(P>0){if(i.value=P-1,g.value.length==0){i.value=0;return}for(let x=0;x<P;x++){let U=[];switch(x){case 0:U=e.province;break;case 1:U=e.city;break;case 2:U=e.country;break;default:U=e.town}v.value[x]=U.filter(K=>K.id==E[x])[0]}S()}},h=(E,P)=>E&&E.name||i.value<P&&E?E.name:e.columnsPlaceholder[P]||a("select"),S=()=>{w(),t.nextTick(()=>{const E=l.value&&l.value.getElementsByClassName("active")[0];if(E){const P=E.offsetLeft;f.value=P||20}})},N=E=>{const P=i.value;c.value=i.value;const x={custom:d.value[P]};v.value[P]=E;for(let U=P+2;U<4;U++)v.value.splice(U,1);P<3?(i.value=P+1,S(),x.next=d.value[i.value],x.value=E,n("change",x)):(T(),n("update:modelValue"))},C=(E,P)=>{c.value=i.value,h(E,P)&&(i.value=P,S())},w=()=>{const E=m.value,P=c.value,x=u.value[i.value];E?.scrollTop&&(u.value[P]=E?.scrollTop),t.nextTick(()=>{E?.scrollTo({top:x,behavior:"auto"})})},B=E=>{const P=e.existAddress;let x={};P.forEach(U=>{U&&U.selectedAddress&&(x=U),U.selectedAddress=!1}),E.selectedAddress=!0,y=E,n("selected",x,E,P),T()},A=()=>{v.value=[],i.value=0,S()},T=(E="self")=>{b.value=E=="cross"?"cross":"self",r.value=!1},$=()=>{b.value="mask"},I=()=>{const E={addressIdStr:"",addressStr:"",province:v.value[0],city:v.value[1],country:v.value[2],town:v.value[3]},P={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(x=>{const U=v.value[x];E.addressIdStr+=`${x?"_":""}${U&&U.id||0}`,E.addressStr+=U&&U.name||""}),P.data=E):P.data=y,A(),b.value=="self"?n("close",P):n("close-mask",{closeWay:b}),n("update:visible",!1)},R=()=>{const E=s.value;s.value=E=="exist"?"custom":"exist",A(),n("switch-module",{type:s.value})},V=(E,P)=>{N(P)};return t.watch(()=>e.visible,E=>{r.value=E}),t.watch(()=>r.value,E=>{E&&p()}),{showPopup:r,privateType:s,tabIndex:i,tabName:d,selectedRegion:v,switchModule:R,closeWay:b,close:I,getTabName:h,nextAreaList:N,regionLine:o,tabRegion:l,lineDistance:f,changeRegionTab:C,selectedExist:B,clickOverlay:$,handClose:T,handleElevatorItem:V,initCustomSelected:p,...t.toRefs(e),t:a,regionList:g,transformData:k,scrollDom:m}}}),bC={class:"fox-address"},kC={class:"fox-address__header"},SC={class:"fox-address__header__title"},CC={key:0,class:"fox-address__custom"},wC={class:"fox-address__region",ref:"tabRegion"},NC=["onClick"],BC={key:0,class:"active fox-address__region-item"},AC={key:0,class:"fox-address__detail"},VC={class:"fox-address__detail-list",ref:"scrollDom"},TC=["onClick"],$C={key:1,class:"fox-address__elevator-group"},EC={key:1,class:"fox-address__exist"},xC={class:"fox-address__exist-group"},DC={class:"fox-address__exist-group-list"},IC=["onClick"],qC={class:"fox-address__exist-item-info"},PC={key:0,class:"fox-address__exist-item-info-name"},MC={key:1,class:"fox-address__exist-item-info-phone"},LC={class:"fox-address__exist-item-info-bottom"},zC={class:"fox-address__exist-choose-btn"};function RC(e,n,a,o,l,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),d=t.resolveComponent("fox-elevator"),m=t.resolveComponent("Location2"),u=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(u,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=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",bC,[t.createElementVNode("view",kC,[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",SC,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",CC,[t.createElementVNode("view",wC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(g,k)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",k==e.tabIndex?"active":""]),key:k,onClick:v=>e.changeRegionTab(g,k)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(g,k)),1)],10,NC))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",BC,[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",AC,[t.createElementVNode("ul",VC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(g,k)=>(t.openBlock(),t.createElementBlock("li",{key:k,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==g.id?"active":""]),onClick:v=>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,TC))),128))],512)])):(t.openBlock(),t.createElementBlock("view",$C,[t.createVNode(d,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",EC,[t.createElementVNode("div",xC,[t.createElementVNode("ul",DC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(g,k)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",g.selectedAddress?"active":""]),key:k,onClick:v=>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",qC,[g.name?(t.openBlock(),t.createElementBlock("div",PC,t.toDisplayString(g.name),1)):t.createCommentVNode("",!0),g.phone?(t.openBlock(),t.createElementBlock("div",MC,t.toDisplayString(g.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",LC,[t.createElementVNode("view",null,t.toDisplayString(g.provinceName+g.cityName+g.countyName+g.townName+g.addressDetail),1)])])],10,IC))),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",zC,t.toDisplayString(e.customAndExistTitle||e.t("chooseAnotherAddress")),1)])):t.createCommentVNode("",!0)])),t.renderSlot(e.$slots,"bottom")])]),_:3},8,["lock-scroll","onClose","onClickOverlay","visible","teleportDisable","teleport"])}const Ba=ee(vC,[["render",RC]]),{componentName:FC,create:OC}=Q("barrage"),KC=OC({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(()=>({[FC]:!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),d=t.ref(e.top),m=t.ref(0),u=e.speeds,g=t.ref(0);t.onMounted(()=>{k(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(y(),m.value=0,v("hidden")):document.visibilityState==="visible"&&k()})}),t.onUnmounted(()=>{i.value=[],y()});const k=()=>{g.value=l.value.offsetWidth,a&&v("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${g.value}px`),f()},300)},v=h=>{let N=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const C=[];N&&Array.from(N).forEach(w=>{h=="init"?(w.style.opacity="0",C.push(w)):(w.classList="",w.style={})}),h=="init"&&(i.value=C)},y=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,h=>{e.danmu.length>0&&(i.value=[...h])});const b=h=>{const S=m.value%i.value.length;!e.loop&&m.value===i.value.length?i.value.splice(i.value.length,0,h):i.value.splice(S,0,h)},f=()=>{y(),s=setTimeout(()=>{p()},e.frequency)},p=()=>{const h=e.loop?m.value%i.value.length:m.value;let S=document.createElement("view");a&&typeof i.value[h]=="object"?(S=i.value[h],S?.classList?.add("fox-barrage__item")):(S.innerHTML=i.value[h],S.classList.add("fox-barrage__item"),r.value.appendChild(S)),t.nextTick(()=>{const N=S.offsetHeight;if(S?.classList?.add("move"),S.style.animationDuration=`${u}ms`,S.style.top=h%c.value*(N+d.value)+20+"px",S.style.opacity="1",!a){const C=S.offsetWidth;S.style.width=C+20+"px"}S.addEventListener("animationend",()=>{a?S.classList.remove("move"):r.value.removeChild(S)}),!(!e.loop&&m.value>=i.value.length-1)&&(m.value++,m.value>=i.value.length&&(m.value=0),S.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:o,danmuList:i,dmBody:l,dmContainer:r,add:b}}});function UC(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 Aa=ee(KC,[["render",UC]]),{componentName:HC,create:jC,scope:WC}=Q("signature"),YC=jC({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:{[Le.name]:Le},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:a}=se.useFoxI18n(WC),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),s=t.computed(()=>({[HC]:!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"))},d=()=>{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],u,!1),l.value.addEventListener(i.events[2],g,!1),l.value.addEventListener(i.events[3],k,!1)},u=p=>{p.preventDefault();let h=i.isSupportTouch?p.touches[0]:p;n("signing",h);let S=l.value.getBoundingClientRect(),N=h.clientX-S.left,C=h.clientY-S.top;i.ctx.lineTo(N,C),i.ctx.stroke()},g=p=>{p.preventDefault(),n("end"),l.value.removeEventListener(i.events[1],u,!1),l.value.removeEventListener(i.events[2],g,!1)},k=p=>{p.preventDefault(),l.value.removeEventListener(i.events[1],u,!1),l.value.removeEventListener(i.events[2],g,!1)},v=()=>{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)},b=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 S=b(p)?"请绘制签名":p,N=b(p)?"":h;n("confirm",S,N)};return t.onMounted(()=>{c()&&(i.ctx=l.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,d())}),{...o,...t.toRefs(i),canvas:l,wrap:r,isCanvasSupported:c,confirm:y,clear:v,classes:s}}}),XC={class:"fox-signature-inner",ref:"wrap"},QC=["height","width"],GC={key:0,class:"fox-signature-unsopport"};function ZC(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",XC,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,QC),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",GC,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 Va=ee(YC,[["render",ZC]]),{componentName:JC,create:_C,scope:ew}=Q("time-select"),tw=_C({components:{[fe.name]:fe},props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!0},teleportDisable:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,n)=>{const{t:a}=se.useFoxI18n(ew),o=t.computed(()=>({[JC]:!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}}}),nw={class:"fox-time-select__title"},ow={class:"fox-time-select__title__fixed"},lw={key:0},aw={class:"fox-time-select__content"},rw={class:"fox-time-select__content__pannel"},sw={class:"fox-time-select__content__detail"};function iw(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",nw,[t.createElementVNode("view",ow,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",lw,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",aw,[t.createElementVNode("view",rw,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",sw,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Ta=ee(tw,[["render",iw]]),{componentName:cw,create:uw}=Q("time-pannel"),dw=uw({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(()=>({[cw]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function fw(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 $a=ee(dw,[["render",fw]]),{componentName:mw,create:pw}=Q("time-detail"),hw=pw({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(()=>({[mw]:!0})),s=d=>{let m=l.currentTime.find(u=>u.key==l.currentKey);if(m)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":m.list.filter(u=>u===d).length>0}},i=t.computed(()=>e.times.find(d=>d.key==l.currentKey).list),c=d=>{n.emit("select",d)};return{classes:r,...t.toRefs(l),getClass:s,renderData:i,handleTime:c}}}),gw={class:"fox-time-detail__detail fox-time-detail__detail--moring"},yw={class:"fox-time-detail__detail__list"},vw=["onClick"];function bw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",gw,[t.createElementVNode("view",yw,[(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,vw))),128))])])],2)}const Ea=ee(hw,[["render",bw]]),{componentName:B2,create:kw,scope:Sw}=Q("sku-header"),Cw=kw({props:{goods:{type:Object,default:{}}},emits:[],components:{[Ge.name]:Ge},setup(e,{emit:n,slots:a}){const{t:o}=se.useFoxI18n(Sw);return{getSlots:r=>a[r],t:o}}}),ww={class:"fox-sku-header"},Nw=["src"],Bw={class:"fox-sku-header-right"},Aw={key:3,class:"fox-sku-header-right-extra"};function Vw(e,n,a,o,l,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",ww,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,Nw),t.createElementVNode("view",Bw,[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",Aw,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const Tw=ee(Cw,[["render",Vw]]),{componentName:A2,create:$w}=Q("sku-select"),Ew=$w({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})}}}}),xw={class:"fox-sku-select"},Dw={class:"fox-sku-select-item-title"},Iw={class:"fox-sku-select-item-skus"},qw=["onClick"];function Pw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",xw,[(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",Dw,t.toDisplayString(s.name),1),t.createElementVNode("view",Iw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,d)=>(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,d,s,i),key:c.name},t.toDisplayString(c.name),11,qw))),128))])]))),128))])}const Mw=ee(Ew,[["render",Pw]]),{componentName:V2,create:Lw}=Q("sku-stepper"),zw=Lw({props:{stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},stepperExtraText:{type:[Function,Boolean],default:!1},stepperTitle:{type:String,default:"购买数量"}},emits:["click","changeSku","changeStepper","clickBtnOptions","overLimit","reduce","add"],components:{[Ze.name]:Ze},setup(e,{emit:n}){const a=t.ref(e.stepperMin);return t.onMounted(()=>{a.value=e.stepperMin}),{goodsCount:a,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,d)=>{n("overLimit",{action:d,value:parseInt(a.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&rt(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),Rw={class:"fox-sku-stepper"},Fw={class:"fox-sku-stepper-title"},Ow=["innerHTML"],Kw={class:"fox-sku-stepper-count"};function Uw(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",Rw,[t.createElementVNode("view",Fw,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,Ow),t.createElementVNode("view",Kw,[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 Hw=ee(zw,[["render",Uw]]),{componentName:T2,create:jw}=Q("sku-operate"),Ww=jw({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]}}}),Yw={key:0,class:"fox-sku-operate"},Xw={key:0,class:"fox-sku-operate-desc"},Qw={key:1,class:"fox-sku-operate-btn"},Gw=["onClick"];function Zw(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",Yw,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",Xw,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",Qw,[(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,Gw))),128))]))])):t.createCommentVNode("",!0)}const Jw=ee(Ww,[["render",Zw]]),{componentName:$2,create:_w,scope:eN}=Q("sku"),tN=_w({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:Tw,SkuSelect:Mw,SkuStepper:Hw,SkuOperate:Jw,[fe.name]:fe},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=se.useFoxI18n(eN),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,b=>{r.value=b}),t.watch(()=>r.value,b=>{b==!1&&y()}),t.onMounted(()=>{});const i=b=>a[b],c=b=>{n("select-sku",b)},d=b=>{s.value=b,n("change-stepper",b)},m=b=>{n("add",b)},u=b=>{n("reduce",b)},g=b=>{n("over-limit",b)},k=b=>{n("click-btn-operate",{type:b,value:s.value})},v=b=>{b=="icon"&&n("click-close-icon"),b=="overlay"&&n("click-overlay"),b=="close"&&n("close"),r.value=!1},y=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:v,selectSku:c,changeStepper:d,stepperOverLimit:g,clickBtnOperate:k,add:m,reduce:u,getSlots:i,...l}}}),nN={class:"fox-sku"},oN={class:"fox-sku-content"};function lN(e,n,a,o,l,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),d=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]=u=>e.showPopup=u),onClickCloseIcon:n[1]||(n[1]=u=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=u=>e.closePopup("overlay")),onClose:n[3]||(n[3]=u=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",nN,[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",oN,[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(d,{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=ee(tN,[["render",lN]]),{create:aN}=Q("card"),rN=aN({components:{[Ge.name]:Ge,[Zt.name]:Zt},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]}}}),sN={class:"fox-card"},iN={class:"fox-card__left"},cN=["src"],uN={class:"fox-card__right"},dN={class:"fox-card__right__title"},fN={key:0,class:"fox-card__right__price"},mN={class:"fox-card__right__other"},pN={class:"fox-card__right__shop"},hN={class:"fox-card__right__shop__name"};function gN(e,n,a,o,l,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",sN,[t.createElementVNode("div",iN,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,cN)]),t.createElementVNode("div",uN,[t.createElementVNode("div",dN,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",fN,[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",mN,[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",pN,[t.createElementVNode("div",hN,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Da=ee(rN,[["render",gN]]),{create:yN,scope:vN}=Q("ecard"),bN=yN({components:{[Ze.name]:Ze},props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:Array,default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"¥"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(vN),o=t.ref(null),l=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(g,k)=>{o.value=k,s.value=e.cardAmountMin,l.value=g.price,n("change",g),n("update:modelValue",g.price)},d=g=>{let v=g.target.value.replace(/[^\d]/g,"");r.value=v,l.value=v,Number(v)>e.cardAmountMax&&(r.value=e.cardAmountMax,l.value=e.cardAmountMax),Number(v)<e.cardAmountMin&&(r.value=e.cardAmountMin,l.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},m=()=>{o.value="input",s.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},u=g=>{s.value=g,n("changeStep",s.value,l.value)};return t.watch(()=>e.modelValue,g=>{i.value=g}),{handleClick:c,changeStep:u,change:d,inputClick:m,stepValue:s,currentIndex:o,inputValue:r,money:i,t:a}}}),kN={class:"fox-ecard"},SN={class:"fox-ecard__title"},CN={class:"fox-ecard__list"},wN=["onClick"],NN={class:"fox-ecard__list__input--con"},BN=["placeholder"],AN={class:"fox-ecard__list__step"};function VN(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",kN,[t.createElementVNode("view",SN,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",CN,[(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:d=>e.handleClick(i,c)},t.toDisplayString(i.price),11,wN))),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",NN,[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,BN),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",AN,[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 Ia=ee(bN,[["render",VN]]),{create:TN,scope:$N}=Q("address-list-item"),EN=TN({components:{Del:ne.Del,Edit:ne.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n($N);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}}}),xN={class:"fox-address-list-item__info"},DN={class:"fox-address-list-item__info-contact"},IN={class:"fox-address-list-item__info-contact-name"},qN={class:"fox-address-list-item__info-contact-tel"},PN={key:0,class:"fox-address-list-item__info-contact-default"},MN={class:"fox-address-list-item__info-handle"},LN={class:"fox-address-list-item__addr"};function zN(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",xN,[t.createElementVNode("div",DN,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",IN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",qN,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",PN,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",MN,[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",LN,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const $r=ee(EN,[["render",zN]]),{create:RN}=Q("address-list-general"),FN=RN({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:$r,[Le.name]:Le,[Xt.name]:Xt},setup(e,{emit:n}){const a=()=>t.h($r,{item:e.item,onDelIcon(N){s(N)},onEditIcon(N){i(N)},onClickItem(N){c(N)}});let o=null;const l=t.ref(!1),r=t.ref(!1),s=N=>{n("delIcon",N,e.item),N.stopPropagation()},i=N=>{n("editIcon",N,e.item),N.stopPropagation()},c=N=>{l.value||(n("clickItem",N,e.item),N.stopPropagation())},d=N=>{n("longDel",N,e.item),N.stopPropagation()},m=N=>{o=0,r.value=!0,n("longDown",N,e.item)};return{renderCompontent:a,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:d,holddownstart:N=>{o=setTimeout(()=>{m(N)},300)},holddownmove:()=>{clearTimeout(o)},holddownend:()=>{clearTimeout(o)},copyCLick:N=>{n("longCopy",N,e.item),N.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:N=>{n("longSet",N,e.item),N.stopPropagation()},maskClick:N=>{o!=0&&(r.value=!1),N.stopPropagation(),N.preventDefault()},swipeDelClick:N=>{n("swipeDel",N,e.item),N.stopPropagation()},swipestart:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),ON={key:0,class:"fox-address-list-general"},KN={class:"fox-address-list-swipe"};function UN(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",KN,[(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",ON,[(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 HN=ee(FN,[["render",UN]]),{componentName:jN,create:WN,scope:YN}=Q("address-list"),XN=WN({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:HN,[Le.name]:Le},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(YN),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[jN]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(y=>Wr(l,y,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(y,b)=>{n("delIcon",y,b),y.stopPropagation()},c=(y,b)=>{n("editIcon",y,b),y.stopPropagation()},d=(y,b)=>{n("clickItem",y,b),y.stopPropagation()},m=(y,b)=>{n("longCopy",y,b),y.stopPropagation()},u=(y,b)=>{n("longSet",y,b),y.stopPropagation()},g=(y,b)=>{n("longDel",y,b),y.stopPropagation()},k=(y,b)=>{n("swipeDel",y,b),y.stopPropagation()},v=y=>{n("add",y),y.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:d,clickLongCopy:m,clickLongSet:u,clickLongDel:g,clickSwipeDel:k,addAddress:v,dataArray:o,t:a}}});function QN(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,d)=>(t.openBlock(),t.createBlock(s,{key:d,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 qa=ee(XN,[["render",QN]]),{componentName:E2,create:GN}=Q("category"),ZN=GN({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}}}),JN={class:"fox-category"},_N={class:"fox-category__cateList"},eB={key:0},tB=["onClick"];function nB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",JN,[t.createElementVNode("div",_N,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",eB,[(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,tB)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Pa=ee(ZN,[["render",nB]]),{componentName:x2,create:oB}=Q("category-pane"),lB=oB({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),aB={class:"fox-category-pane"},rB={key:0,class:"fox-category-pane__cateListRight"},sB={class:"fox-category-pane__childTitle"},iB={key:0,class:"fox-category-pane__childItemList"},cB=["onClick"],uB=["src"],dB={class:"fox-category-pane__skuImg"},fB={key:1,class:"fox-category-pane__cateListRight"},mB={class:"fox-category-pane__childTitle"},pB={key:0,class:"fox-category-pane__childItemList"},hB=["onClick"],gB={class:"fox-category-pane__skuName"},yB={key:2,class:"fox-category-pane__selfItemList"},vB=["onClick"];function bB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",aB,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",rB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",sB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",iB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,uB),t.createElementVNode("div",dB,t.toDisplayString(c?.catName),1)],8,cB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",fB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",mB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",pB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("div",gB,t.toDisplayString(c?.catName),1)],8,hB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",yB,[(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,vB))),128))])):t.createCommentVNode("",!0)])}const Ma=ee(lB,[["render",bB]]),{componentName:D2,create:kB}=Q("comment-header"),SB=kB({components:{[wt.name]:wt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),CB={class:"fox-comment-header__user"},wB={class:"fox-comment-header__user-avter"},NB=["src"],BB={class:"fox-comment-header__user-score"},AB={key:0,class:"fox-comment-header__time"};function VB(e,n,a,o,l,r){const s=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:n[1]||(n[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",CB,[t.createElementVNode("view",wB,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,NB)):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",BB,[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",AB,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 TB=ee(SB,[["render",VB]]),{componentName:I2,create:$B}=Q("comment-images"),EB=$B({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:ne.Right},emits:["click","clickImages"],setup(e,{emit:n}){const 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:d}=e,m=s=="img"?i-c.length:i;n("clickImages",{type:s,index:m,value:s=="img"?d[m]:c[m]})},totalImages:l}}}),xB=["onClick"],DB=["src"],IB=["onClick"],qB=["src"],PB={key:0,class:"fox-comment-images__mask"};function MB(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:d=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,DB),n[0]||(n[0]=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1))],8,xB))),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:d=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,qB),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",PB,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,IB)):t.createCommentVNode("",!0)],64))),128))],2)}const LB=ee(EB,[["render",MB]]),{componentName:q2,create:zB,scope:RB}=Q("comment-bottom"),FB=zB({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:ne.Fabulous,Comment:ne.Comment,MoreX:ne.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(RB),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}}}),OB={class:"fox-comment-bottom"},KB={key:0},UB={class:"fox-comment-bottom__cpx"},HB=["onClick"];function jB(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",OB,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...d)=>e.handleClick&&e.handleClick(...d)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",KB,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",UB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(d,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${d}`]),onClick:u=>e.operate(d)},[d!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[d]),1),d=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),d=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=u=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,HB))),128))])])}const WB=ee(FB,[["render",jB]]),{componentName:YB,create:XB,scope:QB}=Q("comment"),GB=XB({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:TB,CommentImages:LB,CommentBottom:WB,Right:ne.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=se.useFoxI18n(QB),o=t.computed(()=>({[YB]:!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}}}),ZB=["innerHTML"],JB={class:"fox-comment__follow-title"},_B={class:"fox-comment__follow-com"},e2={key:0,class:"fox-comment__follow-img"};function t2(e,n,a,o,l,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),d=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,ZB),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",JB,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",_B,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",e2,[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(d,{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 La=ee(GB,[["render",t2]]),n2=[Wo,Xo,Qo,Go,Zo,we,Jo,_o,el,tl,nl,Kn,al,rl,il,cl,Qn,Gn,ul,Zn,Jn,dl,fl,$t,ml,pl,no,hl,gl,Un,Hn,jn,yl,vl,bl,lt,kl,Sl,Cl,wl,Nl,Bl,Le,Al,Vl,st,fe,Tl,$l,El,xl,Ht,Dl,Il,ql,Pl,Ml,Ll,zl,Rl,Fl,jt,Ol,Kl,Ul,Hl,jl,Wl,Yl,Wt,to,Wn,Xn,Yn,Ze,wt,kt,Xl,Ql,Gl,Xt,Zl,Jl,_l,Qt,eo,ea,na,_n,Et,la,aa,Gt,ra,sa,Yt,ia,ca,ua,Nt,da,fa,Bt,At,Ge,oo,ma,pa,ha,Zt,Jt,ga,ya,va,ba,ka,Sa,Ca,wa,Na,Ba,Aa,Va,Ta,$a,Ea,xa,Da,Ia,qa,Pa,Ma,La],o2=new Bi(n2,"4.0.0");exports.ActionSheet=Zl;exports.ActionsheetItem=hl;exports.ActionsheetPane=no;exports.Address=Ba;exports.AddressList=qa;exports.Animate=Sa;exports.Audio=la;exports.AudioOperate=aa;exports.Avatar=Gt;exports.AvatarGroup=ra;exports.BackTop=Jl;exports.Badge=ha;exports.Barrage=Aa;exports.Broadcast=Uo;exports.BroadcastKey=Se;exports.Button=Le;exports.Calendar=Xn;exports.CalendarItem=cl;exports.Card=Da;exports.Cascader=Wn;exports.CascaderItem=rl;exports.Category=Pa;exports.CategoryPane=Ma;exports.Cell=Al;exports.CellGroup=Vl;exports.Checkbox=Zn;exports.CheckboxGroup=Jn;exports.CheckboxItem=dl;exports.CircleProgress=ia;exports.Col=El;exports.Collapse=ya;exports.CollapseItem=va;exports.Comment=La;exports.Content=Go;exports.CountDown=pa;exports.CountUp=ma;exports.DataItemsKey=ft;exports.DateItem=il;exports.DatePicker=Yn;exports.DateUtils=ae;exports.Dialog=Qt;exports.Divider=Dl;exports.Domain=$n;exports.DomainKey=Ee;exports.DomainProvider=Nl;exports.Drag=_l;exports.Dropdown=Sl;exports.Ecard=Ia;exports.Elevator=jt;exports.Ellipsis=ka;exports.Empty=ua;exports.FixedNav=Ml;exports.FloatingButton=vl;exports.FooterBar=Qo;exports.FoxActionSheet=Zl;exports.FoxActionsheetItem=hl;exports.FoxActionsheetPane=no;exports.FoxAddress=Ba;exports.FoxAddressList=qa;exports.FoxAnimate=Sa;exports.FoxAudio=la;exports.FoxAudioOperate=aa;exports.FoxAvatar=Gt;exports.FoxAvatarGroup=ra;exports.FoxBackTop=Jl;exports.FoxBadge=ha;exports.FoxBarrage=Aa;exports.FoxButton=Le;exports.FoxCalendar=Xn;exports.FoxCalendarItem=cl;exports.FoxCard=Da;exports.FoxCascader=Wn;exports.FoxCascaderItem=rl;exports.FoxCategory=Pa;exports.FoxCategoryPane=Ma;exports.FoxCell=Al;exports.FoxCellGroup=Vl;exports.FoxCheckbox=Zn;exports.FoxCheckboxGroup=Jn;exports.FoxCheckboxItem=dl;exports.FoxCircleProgress=ia;exports.FoxCol=El;exports.FoxCollapse=ya;exports.FoxCollapseItem=va;exports.FoxComment=La;exports.FoxContent=Go;exports.FoxCountDown=pa;exports.FoxCountUp=ma;exports.FoxDateItem=il;exports.FoxDatePicker=Yn;exports.FoxDialog=Qt;exports.FoxDivider=Dl;exports.FoxDomainProvider=Nl;exports.FoxDrag=_l;exports.FoxDropdown=Sl;exports.FoxEcard=Ia;exports.FoxElevator=jt;exports.FoxEllipsis=ka;exports.FoxEmpty=ua;exports.FoxFixedNav=Ml;exports.FoxFloatingButton=vl;exports.FoxFooterBar=Qo;exports.FoxGrid=Il;exports.FoxGridItem=ql;exports.FoxGroup=Zo;exports.FoxHeaderBar=Xo;exports.FoxHintText=$t;exports.FoxImage=Tl;exports.FoxImagePreview=oo;exports.FoxIndicator=Hl;exports.FoxInfiniteLoading=eo;exports.FoxInputItem=el;exports.FoxInputNumber=Ze;exports.FoxInputnumberItem=gl;exports.FoxItem=we;exports.FoxLayout=$l;exports.FoxLinkItem=ml;exports.FoxList=sa;exports.FoxMapping=wl;exports.FoxMenu=Ll;exports.FoxMenuItem=zl;exports.FoxMessageBox=lt;exports.FoxMoneyItem=tl;exports.FoxMoreButton=bl;exports.FoxNavbar=Pl;exports.FoxNoticeBar=ca;exports.FoxNotify=na;exports.FoxNumberKeyboard=Gl;exports.FoxOverLay=st;exports.FoxPage=Wo;exports.FoxPagination=Ol;exports.FoxPicker=kt;exports.FoxPickerItem=al;exports.FoxPopover=Jt;exports.FoxPopup=fe;exports.FoxPopupWrapper=kl;exports.FoxPrice=Ge;exports.FoxProgress=Yt;exports.FoxPullRefresh=ea;exports.FoxRadio=Qn;exports.FoxRadioGroup=Gn;exports.FoxRadioItem=ul;exports.FoxRange=Wt;exports.FoxRate=wt;exports.FoxRateItem=pl;exports.FoxRollingProvider=Bl;exports.FoxRow=xl;exports.FoxRowItem=Jo;exports.FoxSearchBar=to;exports.FoxShortPassword=Xl;exports.FoxSideNavBar=jl;exports.FoxSideNavBarItem=Wl;exports.FoxSignature=Va;exports.FoxSkeleton=ga;exports.FoxSku=xa;exports.FoxSlotItem=_o;exports.FoxStep=fa;exports.FoxSteps=da;exports.FoxStepsBar=yl;exports.FoxSticky=Ht;exports.FoxSubSideNavBar=Yl;exports.FoxSwipe=Xt;exports.FoxSwiper=Bt;exports.FoxSwiperItem=At;exports.FoxSwitch=_n;exports.FoxSwitchItem=fl;exports.FoxTabPane=Ul;exports.FoxTabbar=Rl;exports.FoxTabbarItem=Fl;exports.FoxTable=ba;exports.FoxTabs=Kl;exports.FoxTabsBar=Un;exports.FoxTabsContainer=Hn;exports.FoxTabsPane=jn;exports.FoxTag=Zt;exports.FoxText=Cl;exports.FoxTextarea=Kn;exports.FoxTextareaItem=nl;exports.FoxTimeDetail=Ea;exports.FoxTimePannel=$a;exports.FoxTimeSelect=Ta;exports.FoxToast=Et;exports.FoxTour=Na;exports.FoxTrendArrow=wa;exports.FoxUploader=Ql;exports.FoxVideo=Nt;exports.FoxWaterMark=Ca;exports.Grid=Il;exports.GridItem=ql;exports.Group=Zo;exports.HeaderBar=Xo;exports.HintText=$t;exports.Image=Tl;exports.ImagePreview=oo;exports.Indicator=Hl;exports.InfiniteLoading=eo;exports.InputItem=el;exports.InputNumber=Ze;exports.InputnumberItem=gl;exports.Item=we;exports.Layout=$l;exports.LinkItem=ml;exports.List=sa;exports.Mapping=wl;exports.Menu=Ll;exports.MenuItem=zl;exports.MessageBox=lt;exports.MoneyItem=tl;exports.MoreButton=bl;exports.Navbar=Pl;exports.NoticeBar=ca;exports.Notify=na;exports.NumberKeyboard=Gl;exports.OverLay=st;exports.Page=Wo;exports.Pagination=Ol;exports.Picker=kt;exports.PickerItem=al;exports.Popover=Jt;exports.Popup=fe;exports.PopupWrapper=kl;exports.Price=Ge;exports.PriorityPolicy=bn;exports.Progress=Yt;exports.PullRefresh=ea;exports.Radio=Qn;exports.RadioGroup=Gn;exports.RadioItem=ul;exports.Range=Wt;exports.Rate=wt;exports.RateItem=pl;exports.RollingProvider=Bl;exports.Row=xl;exports.RowItem=Jo;exports.SearchBar=to;exports.ShortPassword=Xl;exports.SideNavBar=jl;exports.SideNavBarItem=Wl;exports.Signature=Va;exports.Skeleton=ga;exports.Sku=xa;exports.SlotItem=_o;exports.Step=fa;exports.Steps=da;exports.StepsBar=yl;exports.Sticky=Ht;exports.SubSideNavBar=Yl;exports.Swipe=Xt;exports.Swiper=Bt;exports.SwiperItem=At;exports.Switch=_n;exports.SwitchItem=fl;exports.TabPane=Ul;exports.Tabbar=Rl;exports.TabbarItem=Fl;exports.Table=ba;exports.Tabs=Kl;exports.TabsBar=Un;exports.TabsContainer=Hn;exports.TabsPane=jn;exports.Tag=Zt;exports.Text=Cl;exports.Textarea=Kn;exports.TextareaItem=nl;exports.TimeDetail=Ea;exports.TimePannel=$a;exports.TimeSelect=Ta;exports.Toast=Et;exports.Tour=Na;exports.TrendArrow=wa;exports.UniqueID=On;exports.Uploader=Ql;exports.ValidateSchema=Zr;exports.ValidateSchemaKey=Me;exports.Video=Nt;exports.WaterMark=Ca;exports.cancelRaf=Er;exports.clamp=Ue;exports.clearNonNumber=wo;exports.clone=Co;exports.compareTo=ko;exports.createBroadcast=Vn;exports.createValidateSchema=Tn;exports.debounce=vt;exports.debounceRef=pi;exports.decimalLength=jr;exports.default=o2;exports.defineBroadcast=ai;exports.defineConfigDomain=_r;exports.defineDataItem=ts;exports.defineDomain=jo;exports.defineItem=Ae;exports.definePageState=ns;exports.defineSimpleItem=Tt;exports.deleteGlobalValidator=ui;exports.disabledProperty=$e;exports.divide=Ko;exports.excludeProps=Vt;exports.extend=at;exports.floatData=Wr;exports.getGlobalIcons=qn;exports.getGlobalValidateCheckEvents=Xr;exports.getGlobalValidateResetEvents=Gr;exports.getPageContentAreaHeight=yn;exports.getPageContentAreaWidth=vn;exports.getPageFooterAreaHeight=Dn;exports.getPageHeaderAreaHeight=xn;exports.getRootDomain=ht;exports.hasSymbol=zr;exports.includeProps=be;exports.indexOf=oi;exports.installRules=es;exports.integerLength=Hr;exports.isArray=Nn;exports.isArrayLike=Fr;exports.isBrowser=ct;exports.isDate=He;exports.isESModule=Js;exports.isEmptyString=ue;exports.isEqual=Pe;exports.isFunction=pn;exports.isHidden=An;exports.isInnerPage=yi;exports.isMap=Qs;exports.isNil=Pr;exports.isNumberString=Ur;exports.isObject=xe;exports.isPlainObject=So;exports.isPromise=yt;exports.isRegExp=Kr;exports.isSet=Gs;exports.isString=Mr;exports.isSubPage=vi;exports.isSymbol=Zs;exports.isTouch=ol;exports.isWindow=Rr;exports.lastIndexOf=li;exports.makeArray=ni;exports.merge=Or;exports.multiply=Dr;exports.negate=Ir;exports.nextTick=ei;exports.numberFormat=wn;exports.objectToString=Lr;exports.once=hi;exports.overrideGlobalIcons=Ii;exports.overrideGlobalValidateHandler=ii;exports.padZero=tt;exports.preventDefault=No;exports.property=Ve;exports.raf=Ke;exports.readonlyProperty=Te;exports.setGlobalValidateCheckEvents=di;exports.setGlobalValidateHandler=si;exports.setGlobalValidateMessages=mi;exports.setGlobalValidateResetEvents=fi;exports.setGlobalValidator=ci;exports.throttle=gn;exports.toBoolean=ye;exports.toNumber=me;exports.toPadding=Re;exports.toPx=de;exports.toPxDesc=he;exports.toTypeString=Bn;exports.toValue=qe;exports.tryTimes=Ho;exports.typeOf=rt;exports.unNumberFormat=qr;exports.updatePageState=Bo;exports.useBroadcast=zt;exports.useDomain=je;exports.useExpose=Ie;exports.useInnerSize=In;exports.usePageState=En;exports.usePosition=fs;exports.useRawTouch=ll;exports.useRect=De;exports.useSize=Yo;exports.useTouch=_e;exports.valueLength=ve;