@fox-js/foxui 4.0.1-80 → 4.0.1-82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(T,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("@fox-js/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","@fox-js/icons-vue","@fox-js/i18n"],t):(T=typeof globalThis<"u"?globalThis:T||self,t(T.FoxUI={},T.Vue,T.FoxValidator,T.FoxIconsVue,T.FoxI18n))})(this,(function(T,t,st,ae,ce){"use strict";const sn=window,fi=typeof window<"u";function mi(){return typeof sn<"u"?sn.requestAnimationFrame||sn.webkitRequestAnimationFrame||function(e){sn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ir(e){fi?cancelAnimationFrame(e):clearTimeout(e)}const Ge=mi();function cn(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=Te(e),n=Te(n),[e,n]=Bo(Te(e),Te(n)),a==1&&(o==1?e=No(e):n=No(n));let l=cr(e,n);return a?a==2?"-"+Te(l):e.length<l.length?Te(l.substring(1)):"-"+Te(No(l)):Te(l)}function No(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 cr(n,r)}function Te(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 Bo(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 cr(e,n){[e,n]=Bo(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 we=(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))(we||{});function xt(e,n=0,a=we.HALF_EVEN){if(a===we.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let l=e.split("."),r=l[0],s=l[1];if(n<0){if(n=-n,r.length<=n)return"0";{let c=r.substr(0,r.length-n);return e=c+"."+r.substr(r.length-n)+s,c=xt(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,dr(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&&dr(i,s,o,a)&&(s=Ao(s),s.length>n)?(o?"-":"")+Ao(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function dr(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===we.DOWN||!a&&o===we.FLOOR||a&&o===we.CEILING)return!1;if(o===we.UP||a&&o===we.FLOOR||!a&&o===we.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 we.HALF_DOWN:return!1;case we.HALF_UP:return!0;case we.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 To(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=qt(e),n=qt(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=qt(e.replace(".","")),n=qt(n.replace(".","")),e.length<n.length){let d=e;e=n,n=d}if(n=="0")return"0";let s=n.length,i=0,c=[],u=s-1,p="";for(let d=0;d<s;d++)c[d]=e.length-1;for(let d=0;d<2*e.length;d++){let h=0;for(let C=n.length-1;C>=u&&C>=0;C--)c[C]>-1&&c[C]<e.length&&(h+=parseInt(e[c[C]--])*parseInt(n[C]));h+=i,i=Math.floor(h/10),p=h%10+p,u--}return p=qt(pi(p,r)),a==1&&(p="-"+p),p}function pi(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 qt(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 $o(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=Te(n.replace(".","")),l>=0){let u=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(u==-1)e=Te(e+new Array(l+1).join("0"));else if(l>u)e=e.replace(".",""),e=Te(e+new Array(l-u+1).join("0"));else if(l<u){e=e.replace(".","");let p=e.length-u+l;e=Te(e.substring(0,p)+"."+e.substring(p))}else l==u&&(e=Te(e.replace(".","")))}let r=0,s=n.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let u=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(u+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=u,i="0."+new Array(u).join("0")}for(a=a+2;r<=a;){let u=0;for(;parseInt(c)>=parseInt(n);)c=cn(c,"-"+n),u++;i+=u,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(o==1?"-":"")+Te(xt(i,a-2))}function Vo(e,n){return e=e.toString(),n=n.toString(),n=Eo(n),cn(e,n)}function Eo(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function ur(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),fr(e),fr(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=Vo(e,To(n,xt($o(e,n),0,we.FLOOR)));return a+o}function fr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function mr(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]=Bo(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 de{value;static RoundingModes=we;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=Te(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+Te(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=de.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=de.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 de.getPrettyValue(this.value,n,a)}static round(n,a=0,o=we.HALF_EVEN){if(n=de.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return xt(n,a,o)}round(n=0,a=we.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new de(xt(this.value,n,a))}static floor(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,we.FLOOR)}floor(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,we.FLOOR)}static ceil(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,we.CEILING)}ceil(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,we.CEILING)}static add(n,a){return n=de.validate(n),a=de.validate(a),cn(n,a)}add(n){return new de(cn(this.value,n.getValue()))}static subtract(n,a){return n=de.validate(n),a=de.validate(a),Vo(n,a)}subtract(n){return new de(Vo(this.value,n.getValue()))}static multiply(n,a){return n=de.validate(n),a=de.validate(a),To(n,a)}multiply(n){return new de(To(this.value,n.getValue()))}static divide(n,a,o){return n=de.validate(n),a=de.validate(a),$o(n,a,o)}divide(n,a){return new de($o(this.value,n.getValue(),a))}static modulus(n,a){return n=de.validate(n),a=de.validate(a),ur(n,a)}modulus(n){return new de(ur(this.value,n.getValue()))}static compareTo(n,a){return n=de.validate(n),a=de.validate(a),mr(n,a)}compareTo(n){return mr(this.value,n.getValue())}static negate(n){return n=de.validate(n),Eo(n)}negate(){return new de(Eo(this.value))}}function pr(e,n){return de.multiply(`${e}`,`${n}`)}function Do(e,n,a=8){return de.divide(`${e}`,`${n}`,a)}function Io(e,n){return e=`${e}`,n=`${n}`,de.compareTo(e,n)}function hr(e){return de.negate(e)}function dn(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",u=r.indexOf(".");u!=-1&&(i=r.substring(0,u),c=r.substring(u+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let p;if(o>0){let d="",h=i.split("").reverse();for(let C=0;C<h.length;C++)d+=h[C]+((C+1)%o==0&&C+1!=h.length?l:"");c.length==0?p=`${s}${d.split("").reverse().join("")}`:p=`${s}${d.split("").reverse().join("")}.${c}`}else c.length==0?p=`${s}${i}`:p=`${s}${i}.${c}`;return p}function gr(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const Ze=typeof window<"u",je=Ge;function ze(e){return e==null}const un=Array.isArray,hi=e=>mn(e)==="[object Map]",gi=e=>mn(e)==="[object Set]",We=e=>e instanceof Date,fn=e=>typeof e=="function",yr=e=>typeof e=="string",yi=e=>typeof e=="symbol",ve=e=>e!==null&&typeof e=="object",pt=e=>ve(e)&&fn(e.then)&&fn(e.catch),br=Object.prototype.toString,mn=e=>br.call(e),vo=e=>mn(e)==="[object Object]",kr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function bi(e){return e.__esModule||kr&&e[Symbol.toStringTag]==="Module"}const ki=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function it(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,o=e.length,l=!1;for(typeof n=="boolean"&&(l=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<o;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let s in r){let i=n[s],c=r[s];if(i!==c)if(l===!0&&c&&typeof c=="object"){let u;Array.isArray(c)?u=i&&Array.isArray(i)?i:[]:u=i&&typeof i=="object"?i:{},n[s]=it(l,u,c)}else c!==void 0&&(n[s]=c)}}return n}function xo(e,n,a=!1){if(!a)it(!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)&&!vo(s))continue;r=xo(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)&&!vo(s))continue;r=xo(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const qo=ki?Promise.resolve():null;function Si(e,...n){qo!==null?n&&n.length>0?qo.then(()=>{e(n)}):qo.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function Se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ge(e){return typeof e=="number"?e:Number(e)}const Ci={"[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 ct(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Ci[a]||"object"}function Sr(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const a=window.getComputedStyle(n);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!0;n=n.parentElement}return!1}function Cr(e){return e&&typeof e=="object"&&"setInterval"in e}function wr(e){let n=!!e&&"length"in e&&e.length,a=ct(e);return a==="function"||Cr(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Nr(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 wi(e,n=[]){let a=n;return e!=null&&(wr(Object(e))?Nr(a,typeof e=="string"?[e]:e):a.push(e)),a}function xe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=ct(e),o=ct(n);if(a!==o)return!1;if(a==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],c=e[i],u=n[i];if(!xe(c,u))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],s=n[l];if(!xe(r,s))return!1}return!0}return!1}function Po(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Mo(e){return ue(e)?!1:(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 Br(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 Ar(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 Tr(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 Lo(e,n=!0,a=!0){n?e=Tr(e,".",/\./g):e=e.replace(/\./g,""),a?e=Tr(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function Ni(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(xe(e,a))return!0}):n.indexOf(e)}function Bi(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(xe(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function Ce(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 Je(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 $r=(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 zo(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const dt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Ye=(e,n,a)=>Math.min(Math.max(e,n),a),Ne=Symbol.for("BroadcastKey");class Oo{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;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.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(n,a,o){if(!n.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=n.uniqueId,r={matched:n,action:a,args:o};return this.persistantMessages.set(l,r),!0}deletePersistantMessage(n){this.persistantMessages.delete(n)}getPersistantMessages(){const n=[];return this.persistantMessages.forEach(a=>{n.push(a)}),n}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(n,a){if(!a||a.messagingPolicy==="Once"&&a.resolved===!0)return!1;let o=!1;return!a.name||a.name==="*"||a.name==="+"||Po(a.name)&&n&&a.name.test(n)?o=!0:typeof a.name=="function"?o=Reflect.apply(a.name,null,[n]):a.name===n&&(o=!0),o}trigger(n,a,o){let l=null;const r=this.callbacks.get(a);typeof r=="function"&&(l=Reflect.apply(r,this.proxy,[...o]));const s=this.proxy??{};typeof s[a]=="function"&&(l=Reflect.apply(s[a],s,[...o])),n.resolved=!0,typeof n.resolve=="function"&&n.resolve(l)}pull(){let n=this.parent;for(;n;){const a=n.getPersistantMessages();Array.isArray(a)&&a.length>0&&a.forEach(o=>{if(this.isMatched(this.name,o.matched))try{this.trigger(o.matched,o.action,o.args)}catch(l){console.error(l)}}),n=n.parent}}emit(n,a,...o){if(n.messagingPolicy==="Once"&&n.resolved===!0)return[];if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,a,o),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,a,o)){const s=n.resolve,i=n.uniqueId??"",c=(...u)=>{this.deletePersistantMessage(i),typeof s=="function"&&s(...u)};n.resolve=c}n.cachePolicy="None"}let l=!1;!n.name||n.name==="*"?l=!0:n.name==="+"?(l=!1,n.name="*"):Po(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)}if(n.resolved=!0,typeof n.resolve=="function"&&n.resolve(...r),n.messagingPolicy==="Once")return r}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){if(n.cachePolicy==="Persistant")this.setPersistantMessage(n,a,o),n.cachePolicy="None";else if(n.cachePolicy==="Unresolved"){if(this.setPersistantMessage(n,a,o)){const r=n.resolve,s=n.uniqueId??"",i=(...c)=>{this.deletePersistantMessage(s),typeof r=="function"&&r(...c)};n.resolve=i}n.cachePolicy="None"}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 pn(e,n,a,o){const l=new Oo(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[Ne])return o[Ne];const l=t.inject(Ne,null),r=new Oo(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[Ne]=r,t.provide(Ne,r),t.onUnmounted(()=>{r.destroy(),o[Ne]=void 0}),r}function Pt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ne]??t.inject(Ne,null):t.inject(Ne,null)}class Ti{error(n,a){const o=a,l=a||t.hasInjectionContext()?Pt(a):null;l?l.emit({name:"*"},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=n||t.hasInjectionContext()?Pt(n):null;o?o.emit({name:"*"},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=n||t.hasInjectionContext()?Pt(n):null;o?o.emit({name:"*"},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,o){Array.isArray(n)||(n=[n]);const l=o,r=o||t.hasInjectionContext()?Pt(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 Mt=new Ti;function $i(e){Mt=e}function Vi(e){Mt?Object.assign(Mt,e):Mt=e}function Ei(e,n){st.Schema.setValidator(e,n)}function Di(e){st.Schema.deleteValidator(e)}let Vr=["blur","clear"];function Ii(e){Vr=e}function Er(){return Vr}let Dr=["focus","change","setValue"];function vi(e){Dr=e}function Ir(){return Dr}function xi(e){st.Schema.messages(e)}function Lt(...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 hn(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 Oe=Symbol("ValidateSchemaKey");class vr{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=hn(Lt(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=hn(o);const l=Lt(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=Mt;return l&&typeof l[n]=="function"?Reflect.apply(l[n],l,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,a,o=!1){o?st.Schema.setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?st.Schema.deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return st.Schema.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=Lt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=hn(n):this.rules=hn([n]);const o=Lt(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=Lt(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=new st.Schema(l),c=this.proxy??s;return i.validate(s,{context:c}).then(p=>{if(p.pass)this.success();else{let d="error";Array.isArray(p.errors)&&p.errors.length>0&&(d=p.errors[0].message??d,p.errors=[p.errors[0]],p.errors[0].ref=c),this.error(d)}return p}).catch(p=>{const d=p.message??`${p}`;return this.error(d),p})}}return Promise.resolve({pass:!0})}}function gn(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 vr(n,a,e)}const yn=Symbol.for("EventEmitterKey");class xr{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 Me(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function bn(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function qi(e,n){const a=Me((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function Pi(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function Ro(e,n,a,o=0,l=!0){let r=n,s=0;if(l){const c=e();if(s++,c||s>a)return}const i=()=>{const c=e();s++,!(c||s>a)&&(r+=o,setTimeout(i,r))};setTimeout(i,r)}const qe=Symbol("DomainKey"),ht=Symbol("DataItemsKey");class kn{_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 Mi=new kn;function gt(){return Mi}function _e(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[qe]??t.inject(qe,null):t.inject(qe,null)}const Fo=Symbol("OriginalDateKey");function Ko(e,n,a=[],o){const l=t.getCurrentInstance();let r=l?.proxy,s=t.inject(qe,null);s===null&&(s=gt());const i=e||n.prop||n.name;let c=new kn(i);c.parent=s;const u=g=>{r[Fo]||h(g),c?.set("modelValue",g)},p=()=>c?.getForSelf("modelValue")??null,d=()=>r[Fo]??null,h=g=>{const y={};it(!0,y,t.toRaw(g)),r[Fo]=y};t.isReactive(n)||typeof n=="function"?t.watch(n,g=>{c?.merge(g,a)},{immediate:!0}):c.merge(n,a),n.modelValue&&h(n.modelValue);const C=(g,y)=>{c?.set(g,y)},b=g=>c?.getForSelf(g)??null;if(r[qe]=c,t.provide(qe,c),l!==null){const g=t.inject(Ne,null),y=pn(r,g,i,o);c.broadcast=y,r[Ne]=y,t.provide(Ne,y),r.broadcast=(f,A,...N)=>Reflect.apply(y.emit,y,[f,A,...N]);const m=t.inject(Oe,null),k=gn(r,m,{componentName:""});c.validateSchema=k,r[Oe]=k,t.provide(Oe,k),r[ht]=new Map,r.validate=(f=!0)=>{const A=[];let N=null;const w={deep:!1};if(f===!0)N={name:"*"};else if(Array.isArray(f)&&f.length>0){const S=f;N={name:B=>B?S.indexOf(B)!==-1:!1}}else if(f!=null&&typeof f=="object"){const S=f;if(Object.assign(w,S),Array.isArray(S.include)&&S.include.length>0){const B=S.include;N={name:$=>$?B.indexOf($)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const B=S.exclude;N={name:$=>$?B.indexOf($)===-1:!1}}else N={name:"*"}}if(N){const S=y?.emitToChildren(N,"validate",w);S&&Reflect.apply([].push,A,S)}return A.length==1?A[0]:A.length>1?Promise.all(A).then(S=>{let B=[];return S.forEach($=>{$.pass===!1&&Array.isArray($.errors)&&(B=[...B,...$.errors])}),B.length>0?{pass:!1,errors:B}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(f,A=!0,N=!1)=>{if(N===!0){Reflect.ownKeys(f).forEach(S=>{let B=String(S);const $={componentName:"",fieldName:B,pureDataValidate:!0};if(c){const D=Pr(c,B,$,y,k);r[ht].set(B,D);const E=f[B];E&&D.validateSchema.setRule(E)}});return}if(A){const w=Reflect.ownKeys(f),S={name:B=>w.includes(B),cachePolicy:"Persistant",uniqueId:"validateRules"};y?.emitToChildren(S,"setNameValidateRules",f,!1)}},r.clearValidate=(f=!0)=>{let A=null;if(f===!0)A={name:"*"};else if(Array.isArray(f)&&f.length>0){const N=f;A={name:w=>w?N.indexOf(w)!==-1:!1}}else if(f!=null&&typeof f=="object"){const N=f;if(Array.isArray(N.include)&&N.include.length>0){const w=N.include;A={name:S=>S?w.indexOf(S)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const w=N.exclude;A={name:S=>S?w.indexOf(S)===-1:!1}}else A={name:"*"}}A&&y?.emitToChildren(A,"clearValidate",!1)},r.resetFields=f=>{const A=p();if(!A)return;const N={};if(it(!0,N,d()??{}),Array.isArray(f))f.forEach(w=>{A[w]=N[w]});else if(f&&Array.isArray(f.include))(f.include??[]).forEach(S=>{A[S]=N[S]});else if(f&&Array.isArray(f.exclude)){let w=f.exclude??[];Reflect.ownKeys(N).forEach(S=>{w.includes(S)||(A[S]=N[S])})}else Object.assign(A,N);r.clearValidate(f)},r.setModelValue=(f,A)=>{if(!A||A===i)u(f);else{const N={name:A,messagingPolicy:"Once"};y?.emitToChildren(N,"setModelValue",f)}},r.getModelValue=()=>p(),r.setDomainProperty=(f,A)=>{C(f,A)},r.getDomainProperty=f=>b(f),setTimeout(function(){y?.pull()},0)}return t.onUnmounted(function(){c?.validateSchema&&(c.validateSchema.destroy(),r[Oe]=void 0,t.provide(Oe,null)),c?.broadcast&&(c?.broadcast?.destroy(),r[Ne]=void 0,t.provide(Ne,null)),c?.destroy(),r[qe]=void 0,t.provide(qe,null),r[ht]&&(r[ht].clear(),r[ht]=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 qr(e,n,a=[]){let l=t.getCurrentInstance()?.proxy,r=t.inject(qe,null);r===null&&(r=gt());const s=e||n.prop||n.name;let i=new kn(s);return i.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{i?.merge(c,a)},{immediate:!0}):i.merge(n,a),l[qe]=i,t.provide(qe,i),t.onUnmounted(()=>{i?.destroy(),l[qe]=void 0,t.provide(qe,null),i=null,l=null}),i}function $e(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(Ne,null);let i=pn(l,s,r,a);l[Ne]=i,t.provide(Ne,i),l.broadcast=(b,g,...y)=>i?Reflect.apply(i.emit,i,[b,g,...y]):null;const c=t.inject(Oe,null);e.fieldName=e.fieldName??r;let u=gn(l,c,e);l[Oe]=u,t.provide(Oe,u),l.validate=(b=null)=>{if(!u)return Promise.resolve({pass:!0});const g=[];let y=!1,m=!1;if(Array.isArray(b)&&b.indexOf(r)!==-1)m=!0,y=!0;else if(b&&typeof b=="object"){const k=b,f=k.ignoreDisabled??!0,A=k.ignoreReadonly??!0,N=k.ignoreHidden??!0;f===!0&&e.disabled===!0||A===!0&&e.readonly===!0||N===!0&&Sr(l.$el)?m=!1:(Array.isArray(k.include)&&k.include.indexOf(r)!==-1||Array.isArray(k.exclude)&&k.exclude.indexOf(r),m=!0),y=k.deep??!1}else typeof b=="boolean"&&(y=b),m=!0;if(m){const k=u?.validate();g.push(k)}if(y){let k=null;const f={deep:!1};if(b===!0)k={name:"*"};else if(Array.isArray(b)&&b.length>0){const A=b;k={name:N=>N?A.indexOf(N)!==-1:!1}}else if(b!=null&&typeof b=="object"){const A=b;if(Object.assign(f,A),Array.isArray(A.include)&&A.include.length>0){const N=A.include;k={name:w=>w?N.indexOf(w)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const N=A.exclude;k={name:w=>w?N.indexOf(w)===-1:!1}}else k={name:"*"}}if(k&&i){const A=i.emitToChildren(k,"validate",f);Reflect.apply([].push,g,A)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(k=>{let f=[];return k.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(f=[...f,...A.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=b=>u?.setRule(b),l.setNameValidateRules=(b,g=!1)=>{const y=b[r];if(y&&u?.setRule(y),g&&i){const m={name:k=>Reflect.ownKeys(b).includes(k)};i.emitToChildren(m,"setNameValidateRules",b,!1)}},l.clearValidate=(b=null)=>{(!Array.isArray(b)||b.indexOf(n??"")!==-1)&&u?.clear();let g=null;if(b===!0)g={name:"*"};else if(Array.isArray(b)&&b.length>0){const y=b;g={name:m=>m?y.indexOf(m)!==-1:!1}}else if(b!=null&&typeof b=="object"){const y=b;if(Array.isArray(y.include)&&y.include.length>0){const m=y.include;g={name:k=>k?m.indexOf(k)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const m=y.exclude;g={name:k=>k?m.indexOf(k)===-1:!1}}else g={name:"*"}}g&&i&&i.emitToChildren(g,"clearValidate",!1)};let p=new xr(l);l[yn]=p;const d=Me((b="validate")=>{u&&(b==="reset"?u.clear():u.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Er()).forEach(b=>{p&&p.on(b,g=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Ir()).forEach(b=>{p&&p.on(b,g=>{d("reset")})}),setTimeout(function(){i?.pull()},0),t.onUnmounted(()=>{i?.destroy(),l[Ne]=void 0,t.provide(Ne,null),i=null,u?.destroy(),l[Oe]=void 0,t.provide(Oe,null),u=null,p?.destroy(),l[yn]=void 0,p=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:i,validateSchema:u,emitEvent:(b,...g)=>{p&&Reflect.apply(p.emit,p,[b,...g])},onEvent:(b,g)=>{p&&Reflect.apply(p.on,p,[g])},offEvent:(b,g)=>{p&&Reflect.apply(p.off,p,[g])}}}function Pr(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=gn({},l,a);r.validate=(p=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];let h=!1,C=!1;if(Array.isArray(p)&&p.indexOf(s)!==-1)C=!0,h=!0;else if(p&&typeof p=="object"){const b=p;Array.isArray(b.include)&&b.include.indexOf(s)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(s),C=!0,h=b.deep??!1}else typeof p=="boolean"&&(h=p),C=!0;if(C&&c){const b=c.validate();d.push(b)}if(h){let b=null;const g={deep:!1};if(p===!0)b={name:"*"};else if(Array.isArray(p)&&p.length>0){const y=p;b={name:m=>m?y.indexOf(m)!==-1:!1}}else if(p!=null&&typeof p=="object"){const y=p;if(Object.assign(g,y),Array.isArray(y.include)&&y.include.length>0){const m=y.include;b={name:k=>k?m.indexOf(k)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const m=y.exclude;b={name:k=>k?m.indexOf(k)===-1:!1}}else b={name:"*"}}if(b&&u){const y=u.emitToChildren(b,"validate",g);Reflect.apply([].push,d,y)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(b=>{let g=[];return b.forEach(y=>{y.pass===!1&&Array.isArray(y.errors)&&(g=[...g,...y.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>c?.setRule(p),r.setNameValidateRules=p=>{const d=p[s];d&&c?.setRule(d)};let u=pn(null,o,s,r);return t.onUnmounted(()=>{c=null,u=null}),{broadcast:u,validateSchema:c}}function yt(){let n=t.getCurrentInstance()?.proxy,a=new xr(n);return n[yn]=a,t.onUnmounted(()=>{a?.destroy(),n[yn]=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 me=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${fe(e)}px`:"",Li=me;function fe(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),r=1;if(Ze){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}function zi(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}const et="PageStateKey";function Fe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=fe(e.top)),e.left!==null&&e.left!==void 0&&(n.left=fe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=fe(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=fe(e.right))),n}function Uo(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=fe(a.headerHeight??n.headerHeight??-1),e.headerPadding=Fe(a.headerPadding??n.headerPadding),e.footerHeight=fe(a.footerHeight??n.footerHeight??-1),e.footerPadding=Fe(a.footerPadding??n.footerPadding),e.contentPadding=Fe(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=fe(c,r):e.height=fe(r)-fe(s,r)-fe(i,r),e.width=fe(a.width??n.width??0,l)}}function Mr(e,n={}){const a={top:null,bottom:null,right:null,left:null},o={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});l&&(o.safeAreaTop=fe(l.top),o.safeAreaBottom=fe(l.bottom),o.safeAreaLeft=fe(l.left),o.safeAreaRight=fe(l.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,u=e.get("footerBarHeight")??0;Uo(o,r,n,!0,s,i,c,u);const p=t.reactive(o),d=e.getForParent(et);d&&(o.height=Nn(e,d),o.width=Bn(e,d),t.watch([()=>Nn(e,d),()=>Bn(e,d)],([C,b])=>{p.height=C,p.width=b}));const h=!d;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([C,b,g=-1,y=-1,m=0,k=0])=>{Uo(p,b,n,h,g,y,m,k)}),e.set(et,p),p}function Sn(e){return e.get(et)}function Cn(e,n){if(n=n??e.get(et),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function wn(e,n){if(n=n??e.get(et),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function Nn(e,n){if(n=n??e.get(et),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=Cn(e,n),o=wn(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Bn(e,n){return n=n??e.get(et),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Oi(e){return!!e.getForParent(et)}const Ho=Symbol.for("InnerPageScopeKey");function Lr(e){t.provide(Ho,e)}function zt(e=!1){return t.inject(Ho,e)}const jo=Symbol.for("AbstractPageScopeKey");function zr(e){t.provide(jo,e)}function Ot(e=!1){return t.inject(jo,e)}var An=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(An||{});function Tn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ve(e,n,a=1,o){const l=_e();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(Tn(c,o))return c}const s=e.value;return Tn(s,o)?s:null}):t.computed(()=>{const r=e.value;if(Tn(r,o))return r;const s=l.getAll(n);for(let i=0;i<s.length;i++){const c=s[i];if(Tn(c,o))return c}return null})}function Ee(e){return Ve(e,"readonly",1)}function De(e){return Ve(e,"disabled",1)}function Le(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 Or=new Map,$n=new Map;let Wo=null;function Ri(e){Wo=e}function Rr(e,n,a){if(a){let o=$n.get(a);o||(o=new Map,$n.set(a,o)),o.set(e,n)}else Or.set(e,n)}function tt(e,n,a){!a&&Wo&&(a=Wo(e)??void 0);let o=null;if(a){let l=$n.get(a);l&&(o=l.get(n))}return o||(o=Or.get(n)),o}function Fi(e,n){for(let a in e){const o=e[a];Rr(a,o,n)}}function Ki(e){$n.delete(e)}function Ui(){return{top:0,left:0,bottom:0,right:0}}function Hi(){if(Ze){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 ji(e,n){if(n.componentPrefix){const a=e.indexOf("-");return`${n.componentPrefix}${e.slice(a)}`}return e}class Wi{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(l=>{if(l.install)n.use(l);else if(l.name){const r=ji(l.name,a);n.component(r,l)}});const o=gt();if(a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l={...a},r=Me(()=>{const i={...l};this.updateLayout(i,o)},120);new window.ResizeObserver(r).observe(window.document.body)}this.updateLayout(a,o)}updateLayout(n,a){const o=n.headerBarHeight??0,l=n.footerBarHeight??0,r=it({},Ui(),n.safeAreaInset),s=Hi(),i=it({},s.pageLayout,n.pageLayout);a=a??gt(),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);const c=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const u in n)c.indexOf(u)===-1&&a.set(u,n[u])}setScopeGetter(n){Ri(n)}setAPI(n,a,o){Rr(n,a,o)}getAPI(n,a,o){return tt(n,a,o)}batchSetAPI(n,a){Fi(n,a)}clearScopeAPI(n){Ki(n)}getRootDomain(){return gt()}}function _(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=o=>{o.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}const Yi=(e,n)=>{let a=document.body;const o=e.teleport||"body";o!="body"&&(yr(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={};fn(n.wrapper)?i=n.wrapper(a,l):i=n.wrapper;const c=t.createApp(i,e),u=n.components;return u&&u.forEach(p=>{c.use(p)}),a.appendChild(l),{instance:c.mount(l),unmount:()=>{c.unmount(),a.removeChild(l)}}},Fr=(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 ye={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}},ke={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}},Kr={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Ur={name:{type:String,required:!1},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}},Hr=[];for(const e in Ur)Hr.push(e);const Xi={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}},Qi=(e,n)=>({inheritAttrs:!0,props:{...ye,...Kr,...Xi},setup(a,{slots:o}){const l=Ot(!1),r=zt(!1),s=Ko(a.name,a);if(s){const d=Mr(s,a);Ie({getPageContentHeight:()=>Nn(s,d),getPageContentWidth:()=>Bn(s,d),getPageHeaderHeight:()=>Cn(s,d),getPageFooterHeight:()=>wn(s,d)}),d&&r&&(d.contentHeight="100%")}const i=t.computed(()=>({[e]:!0,"is-inner":r})),c=t.computed(()=>({})),u=t.getCurrentInstance(),p=(d,h=!1)=>{const C=u?.proxy;C&&typeof C.setNameValidateRules=="function"&&C.setNameValidateRules(d,!0,h)};return t.watch([()=>a.rules,()=>a.pureDataRules],([d,h],[C,b])=>{if(d&&C){const g=t.toRaw(C),y=t.toRaw(d),m=y?Reflect.ownKeys(y):[];(g?Reflect.ownKeys(g):[]).forEach(f=>{m.includes(f)||(y[f]=[])}),p(y)}if(h&&b){const g=t.toRaw(b),y=t.toRaw(h),m=y?Reflect.ownKeys(y):[];(g?Reflect.ownKeys(g):[]).forEach(f=>{m.includes(f)||(y[f]=[])}),p(y,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const d=t.toRaw(a.rules);p(d)}if(a.pureDataRules){const d=t.toRaw(a.pureDataRules);p(d,!0)}}),()=>{if(l)return o?.default?.();{const d={class:i.value,style:c.value};return t.h("div",d,[o?.default?.()])}}}}),{componentName:Gi,create:Zi}=_("page"),Yo=Zi(Qi(Gi));function Xo(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Vn(e){const n=t.unref(e),a=window.getComputedStyle(n,null),o=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-s}}const jr={headerbar:{},radio:{},checkbox:{}};function Ji(e){Object.assign(jr,e)}function En(){return jr}const _i=(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=Ot(!1),i=zt(!1),c=s?null:_e(),u=c?Sn(c):null,p=En(),d=e,h=t.computed(()=>{const I={[d]:!0,[`${d}--border`]:l.border,[`${d}--fixed`]:l.fixed};return i||(I[`${d}--safe-area-inset-top`]=l.safeAreaInsetTop),I}),C=t.computed(()=>({[`${d}__inner`]:!0,[`${d}__inner--${l.align}`]:!0})),b=ze(l.height)?null:fe(l.height),g=t.computed(()=>{const I={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return I;if(c&&u){const V=Fe(l.padding??u.headerPadding);return Object.assign(I,V),ze(b)||(u.headerHeight=b),I.height=u.headerHeight,I.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,I.safeAreaTop>0&&(I.top=I.safeAreaTop+(V.top??0),I.height&&I.height>0&&(I.height=I.height+I.safeAreaTop)),I}if(ze(b)||(I.height=b),l.padding){const V=Fe(l.padding);Object.assign(I,V)}return I}),y=t.ref(null),m=()=>{if(u&&y.value&&y.value.offsetParent!==null){if(!o){const I=Xo(y.value);u.headerAllHeight=I.height}return u.headerMounted=!0,!0}return!1},k=Me(m,120);let f=null;t.onMounted(()=>{s||u&&(Ro(m,50,5,50,!0),window.ResizeObserver&&y.value&&(f=new window.ResizeObserver(k),f.observe(y.value)))}),t.onUnmounted(()=>{s||u&&(u.headerMounted=!1,f&&(f.disconnect(),f=null))});const A=t.computed(()=>{const I={};return s||(g.value.height!==null&&g.value.height!==void 0&&(I.height=`${g.value.height}px`),g.value.top!==null&&g.value.top!==void 0&&(I.paddingTop=`${g.value.top}px`),g.value.left!==null&&g.value.left!==void 0&&(I.paddingLeft=`${g.value.left}px`),g.value.right!==null&&g.value.right!==void 0&&(I.paddingRight=`${g.value.right}px`),g.value.bottom!==null&&g.value.bottom!==void 0&&(I.paddingBottom=`${g.value.bottom}px`)),I}),N=t.computed(()=>{const I=g.value?.height;return ze(I)||I<0?!0:I>0});function w(){r.emit("back")}function S(){r.emit("click-title")}function B(){r.emit("click-right")}function $(){r.emit("click-right-text")}const D=()=>{if(!l.leftShow)return null;const I=[];if(r.slots.left)I.push(r.slots.left());else{if(r.slots.leftIcon){const V=t.h("view",{class:"left-icon",onClick:w},[r.slots.leftIcon()]);I.push(V)}else{const V=l.leftIcon??p.headerbar.Left??a,P=t.h("view",{class:"left-icon",onClick:w},[t.h(V)]);I.push(P)}if(l.leftText){const V=t.h("view",{class:"left-text",onClick:w},[l.leftText]);I.push(V)}}return I.length===0?null:t.h("view",{class:"fox-header-bar__left"},I)},E=()=>{if(!l.rightShow)return null;const I=[];if(r.slots.right)I.push(r.slots.right());else{if(l.rightText){const V=t.h("view",{class:"right-text",onClick:$},[l.rightText]);I.push(V)}if(r.slots.rightIcon){const V=t.h("view",{class:"right-icon",onClick:B},[r.slots.rightIcon()]);I.push(V)}else if(l.rightIcon){const V=t.h("view",{class:"right-icon",onClick:B},[t.h(l.rightIcon)]);I.push(V)}}return I.length===0?null:t.h("view",{class:"fox-header-bar__right"},I)},U=()=>{if(!l.titleShow)return null;const I=[],V=r.slots.default?r.slots.default():null;if(V)I.push(V);else{if(l.title){const P=t.h("view",{class:"title-text"},[l.title]);I.push(P)}if(r.slots.titleIcon){const P=t.h("view",{class:"title-icon",onClick:S},[r.slots.titleIcon()]);I.push(P)}else if(l.titleIcon){const P=t.h("view",{class:"title-icon",onClick:S},[t.h(l.titleIcon)]);I.push(P)}}return I.length===0?null:t.h("view",{class:"fox-header-bar__title"},I)},J=()=>{const I=[],V=r.slots.bottom?r.slots.bottom():null;return V&&I.push(V),I.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},I)};return()=>{if(s||!N.value)return null;const I=[];if(r.slots.all)I.push(r.slots.all());else{const P=[],v=D();v&&P.push(v);const O=U();O&&P.push(O);const H=E();if(H&&P.push(H),P.length>0){const Z=t.h("view",{class:C.value},P);I.push(Z)}const L=J();L&&I.push(L)}if(I.length===0)return null;const V={class:h.value,style:A.value,ref:y};return t.h("view",V,I)}}}),{componentName:ec,create:tc,scope:nc}=_("header-bar"),Qo=tc(_i(ec,nc,ae.Left,!1));function oc(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=Ot(!1),s=zt(!1),i=r?null:_e(),c=i?Sn(i):null,u=e,p=t.computed(()=>{const f={[u]:!0,[`${u}--${o.align}`]:!0,[`${u}--border`]:o.border,[`${u}--fixed`]:o.fixed};return s||(f[`${u}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),f}),d=ze(o.height)?null:fe(o.height),h=t.computed(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r)return f;if(i&&c){const A=Fe(o.padding??c.footerPadding);return Object.assign(f,A),ze(d)||(c.footerHeight=d),f.height=c.footerHeight,f.safeAreaBottom=c.safeAreaBottom===-1?0:c.safeAreaBottom,f.safeAreaBottom>0&&(f.bottom=f.safeAreaBottom+(A.bottom??0),f.height&&f.height>0&&(f.height=f.height+f.safeAreaBottom)),f}if(ze(d)||(f.height=d),o.padding){const A=Fe(o.padding);Object.assign(f,A)}return f}),C=t.computed(()=>{const f=h.value?.height;return ze(f)||f<0?!0:f>0}),b=t.ref(null),g=()=>{if(c&&b.value&&b.value.offsetParent!==null){if(!a){const f=Xo(b.value);c.footerAllHeight=f.height}return c.footerMounted=!0,!0}return!1},y=Me(g,120);let m=null;t.onMounted(()=>{r||c&&(Ro(g,50,5,50,!0),window.ResizeObserver&&(m=new window.ResizeObserver(y),m.observe(b.value)))}),t.onUnmounted(()=>{r||c&&(c.footerMounted=!1,m&&(m.disconnect(),m=null))});const k=t.computed(()=>{const f={};return r||(h.value.height!==null&&h.value.height!==void 0&&(f.height=me(h.value.height)),h.value.top!==null&&h.value.top!==void 0&&(f.paddingTop=me(h.value.top)),h.value.left!==null&&h.value.left!==void 0&&(f.paddingLeft=me(h.value.left)),h.value.right!==null&&h.value.right!==void 0&&(f.paddingRight=me(h.value.right)),h.value.bottom!==null&&h.value.bottom!==void 0&&(f.paddingBottom=me(h.value.bottom))),f});return()=>{if(r||!C.value)return null;const f=l.slots.default?l.slots.default():[],A={ref:b,class:p.value,style:k.value};return t.h("view",A,f)}}}}const{componentName:lc,create:ac,scope:rc}=_("footer-bar"),Go=ac(oc(lc,rc,!1));function sc(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:o,attrs:l}){const r=Ot(!1),s=zt(!1),i=r?null:_e(),c=t.computed(()=>({[e]:!0})),u=i?Sn(i):null,p=t.computed(()=>{const g={};if(r)return g;if(i&&u){if(a.padding){const S=Fe(a.padding);Object.assign(u.contentPadding,S)}const y=Cn(i,u),m=wn(i,u);let k="";u.contentHeight?k=`${u.contentHeight}`:k=`${u.height}px`,console.debug("[content]page height:",k),console.debug("[content]header height:",y),console.debug("[content]footer height:",m),console.debug("[content]padding:",u.contentPadding),g.height=k;let f=(u&&u.contentPadding&&u.contentPadding.top)??-1;(f>=0||y>0)&&(f=f<0?0:f,g.paddingTop=`${y+f}px`);let A=(u&&u.contentPadding&&u.contentPadding.bottom)??-1;(A>=0||m>0)&&(A=A<0?0:A,g.paddingBottom=`${m+A}px`);const N=(u&&u.contentPadding&&u.contentPadding.left)??-1;N>=0&&(g.paddingLeft=`${N}px`);const w=(u&&u.contentPadding&&u.contentPadding.right)??-1;return w>=0&&(g.paddingRight=`${w}px`),g}if(a.padding){const y=Fe(a.padding);y.left&&(g.paddingLeft=`${y.left}px`),y.top&&(g.paddingTop=`${y.top}px`),y.right&&(g.paddingRight=`${y.right}px`),y.bottom&&(g.paddingBottom=`${y.bottom}px`)}return g}),d=t.ref(null),h=()=>{if(u&&d.value){const g=Vn(d.value);u.contentInnerHeight=g.height,u.contentInnerWidth=g.width}},C=Me(h,120);let b=null;return t.onMounted(()=>{s||r||(requestAnimationFrame(h),window.ResizeObserver&&d.value&&(b=new window.ResizeObserver(C),b.observe(d.value)))}),t.onUnmounted(()=>{s||r||b&&(b.disconnect(),b=null)}),()=>{if(r)return o.default?.();{const g=a.tag??"view",y={...l,ref:d,class:c.value,style:p.value};return t.h(g,y,o)}}}}}const{componentName:ic,create:cc}=_("content"),Zo=cc(sc(ic)),bt="GroupStateKey",Wr=Symbol.for("GroupScopeKey");function Dn(){return t.inject(Wr,!1)}function In(e=!0){t.provide(Wr,e)}function dc(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];ze(l)||(e[o]=l)})}function uc(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};dc(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(bt,r),r}function Jo(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(bt);if(!c)return;const u=e.get("groupLayout")??{};a===-1&&(a=u.column??1),o===-1&&(o=u.gutter??0),r||(r=u.minItemWidth??-1),s||(s=u.maxItemWidth??-1);const p=fe(r),d=fe(s);i||(i=u.type??"grid");const h=()=>{const C=n===""||n===-1,b=fe(n);let g=ge(a);const y=fe(o);if(!C){let f=(b-(g-1)*y)/g;for(;d!==-1&&f>d;)g++,f=(b-(g-1)*y)/g;for(;p!==-1&&g>1&&f<p;)g--,f=(b-(g-1)*y)/g}let m=!1;const k=c.layout;k.value.width=n,k.value.column!==g&&(k.value.column=g,m=!0),k.value.gutter!==y&&(k.value.gutter=y,m=!0),k.value.type!==i&&(k.value.type=i,m=!0),m&&t.triggerRef(k)};if(l)h();else{const C=++c.passport;setTimeout(()=>{C===c.passport&&h()},50)}}function vn(e,n=!1){let a;return n?a=e.getForParent(bt):a=e.get(bt),a.layout}function xn(e,n=!1){let a;return n?a=e.getForParent(bt):a=e.get(bt),a.order}function Yr(e,n=1){if(n==="stretch")return-1;const a=ge(n);return a===-1?100:100*a/e}function qn(e,n,a=1,o=0,l){const r={};let s=0;l?s=fe(l):s=Yr(n.column,a),s>0&&(r.width=`${s}%`);const i=Yr(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 Pn(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,u=c+(n.column-c);return e.index=e.index+(u-c),{"grid-column":`${c+1} / -1`}}let l=ge(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=ge(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 Xr=Symbol("RollingStateKey");function fc(e){t.provide(Xr,e)}function mc(){return t.inject(Xr,null)}function _o(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 pc(e){let n=_o(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=_o(a),document.body.removeChild(a)}return n}function hc(e,n,a){const o=typeof e=="number"?e:parseInt(e),l=typeof n=="number"?n:parseInt(n),r=typeof a=="number"?a:parseInt(a);if(o<=0)return"1fr";const s=(o-(l-1)*r)/l;return s>0?`${s}px`:"1fr"}const gc={...ye,...Kr,...Ur};function yc(e,n,a){return{props:gc,emits:["update:collapse","header-click"],setup(o,l){const r=Ko(o.prop??o.name,o,Hr),s=uc(r,{type:o.type}),i=Dn();In(!0);const c=o.rollingDisplay?mc():null,u=t.ref(null),p=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),d=t.computed(()=>i&&r?vn(r,!0).value:null),h=t.getCurrentInstance(),C=(z,X=!1)=>{const q=h?.proxy;q&&typeof q.setNameValidateRules=="function"&&q.setNameValidateRules(z,!0,X)};t.watch([()=>o.rules,()=>o.pureDataRules],([z,X],[q,x])=>{if(z&&q){const Y=t.toRaw(q),W=t.toRaw(z),oe=W?Reflect.ownKeys(W):[];(Y?Reflect.ownKeys(Y):[]).forEach(se=>{oe.includes(se)||(W[se]=[])}),C(W)}if(X&&x){const Y=t.toRaw(x),W=t.toRaw(X),oe=W?Reflect.ownKeys(W):[];(Y?Reflect.ownKeys(Y):[]).forEach(se=>{oe.includes(se)||(W[se]=[])}),C(W,!0)}},{deep:!0});const b=e,g=t.computed(()=>{const z={};if(z.height=V.value,o.width)o.width!=="auto"&&(z.width=me(o.width));else{const X=i?xn(r,!0):null;if(d.value&&X){if(d.value.type==="grid"){const q=Pn(X,d.value,o.span,o.offset);Object.assign(z,q)}else if(d.value.type==="flow"){const q=qn(X,d.value,o.span,o.offset,o.width);Object.assign(z,q)}}}return z}),y=t.computed(()=>{const z=s.layout.value.type;return z==="grid"||z==="flow"?{[`${b}--${z}`]:!0,[`${b}--${z}-justify-${o.justify}`]:!0,[`${b}--${z}-align-${o.align}`]:!0,[`${b}--gutter`]:!0}:{[`${b}--${z}`]:!0,[`${b}--gutter`]:!0}}),m=t.computed(()=>{if(s.layout.value.type==="grid"){let X="";if(o.columnWidth)X=`repeat(auto-fill, ${o.columnWidth})`;else{const q=hc(B.value,s.layout.value.column,s.layout.value.gutter);X=`repeat(${s.layout.value.column}, ${q})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":X}}}),k=t.toRef(o,"gutter"),f=t.toRef(o,"column"),A=t.computed(()=>i||p.value?!0:Se(o.isWrap)),N=[],w=z=>{N.push(z)},S=()=>{let z=N.length;N.splice(0,z)},B=t.ref(-1),$=z=>{const X=Vn(z).width;X>0&&X!==B.value&&(B.value=X)};Jo(r,B.value,f.value,k.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([B,f,k],([z,X,q])=>{s.order.index=0,Jo(r,z,X,q,!1,o.minItemWidth,o.maxItemWidth,o.type)});const D=t.computed(()=>P.value?o.expandText??"":o.collapseText??""),E=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),U=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),J=t.ref(),I=t.ref(),V=t.computed(()=>v.value||me(o.height)||""),P=t.ref(!1),v=t.ref(""),O=t.ref(!1);let H=-1;const L=(z,X=!0)=>{const q=J.value;if(q&&P.value!==z){if(H=H<=0?pc(q):H,O.value=!0,X)if(q.style["will-change"]="height",q.ontransitionend=function(){q.ontransitionend=null,this.style["will-change"]="auto",z||(v.value="",O.value=!1)},z){let x=0;o.collapseHeight?x=o.collapseHeight:I.value&&I.value.classList.contains(`${e}__header`)&&(x=I.value.offsetHeight),v.value=`${H}px`,t.nextTick(()=>{v.value=`${x}px`})}else v.value=`${H}px`;else if(z){let x=0;o.collapseHeight?x=o.collapseHeight:I.value&&I.value.classList.contains(`${e}__header`)&&(x=I.value.offsetHeight),v.value=`${x}px`}else O.value=!1,v.value=`${H}px`;P.value=z,l.emit("update:collapse",z)}};t.watch(()=>o.collapse,z=>{L(z)});const Z=z=>{l.emit("header-click",z)},te=()=>{F()},F=z=>{z=z??!P.value,L(z)};Ie({toggleCollapse:F,doLayout:()=>{N[0]&&($(N[0]),Jo(r,B.value,f.value,k.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let M=null,G=!0;const R=z=>{if(o.rules){const X=t.toRaw(o.rules);C(X)}if(o.pureDataRules){const X=t.toRaw(o.pureDataRules);C(X,!0)}if(Ze&&(z&&L(Se(o.collapse),!1),o.autoLayout&&Array.isArray(N)&&N.length>0)){const X=N[0];if($(X),window.ResizeObserver){const q=Me(()=>$(X),120);M=new window.ResizeObserver(q),M.observe(X)}}},K=()=>{M?.disconnect(),M=null},ee=!p.value||c?.acquire();ee&&(u.value=p.value?!0:null),t.onMounted(()=>{if(ee&&(R(G),G=!1),p.value&&c){let z=null,X=c.initialHeight;c.observe(J.value,q=>{if(q!==u.value)if(q)u.value=!0,P.value||(v.value=""),z=setTimeout(()=>{z=null,u.value!==!1&&(R(G),G=!1)},100);else{if(z!==null&&clearTimeout(z),u.value=!1,!P.value)if(G)v.value=c.initialHeight;else{let x=_o(J.value);x<=0?v.value=X:(v.value=`${x}px`,X=v.value)}G||K()}})}}),t.onUnmounted(()=>{M?.disconnect(),c&&c.unobserve(J.value)});const Q=(z="right")=>{const X=[];if(D.value){const W={class:E.value},oe=t.h("span",W,[D.value]);X.push(oe)}const q={class:U.value},x=o.collapseIcon??a,Y=t.h(x,q);return X.push(Y),X.length>0?t.h("div",{class:{[`${b}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:te},X):null},ne=(z,X,q,x)=>{const Y={...y.value};if(X===0&&(Y[`${b}__first`]=!0),q>=x-1&&(Y[`${b}__last`]=!0),A.value===!1){const W=l.attrs.class;W&&(Y[`${W}`]=!0)}return t.h("div",{ref:w,key:`${X}`,class:Y,style:m.value},z)};return()=>{const z=o.prop??o.name;if(p.value&&u.value!==!0){const W=o.tag||"div";return t.h(W,{ref:J,prop:z,class:{[`${b}`]:!0,"is-collapse":O.value},style:g.value},[])}s.order.index=0;const X=[];let q=0;if(l.slots.header){const W={key:`${q++}`,ref:I,class:{[`${b}__header`]:!0,[`${b}__first`]:!0},onClick:Z},oe=t.h("div",W,[l.slots.header()]);X.push(oe)}else{const W=[],oe=o.collapsePosition==="left";if(oe&&o.showCollapse){const re=Q("left");re&&W.push(re)}if(o.title||l.slots.title){if(o.showMark){const re={class:{[`${b}__header-mark`]:!0}};o.markColor&&(re.style={background:o.markColor});const se=t.h("div",re);W.push(se)}if(l.slots.title){const re=t.h("div",{class:{[`${b}__header-title`]:!0}},[l.slots.title()]);W.push(re)}else if(o.title){const re=t.h("div",{class:{[`${b}__header-title`]:!0}},[o.title]);W.push(re)}}if(l.slots.toolbar&&W.push(l.slots.toolbar()),!oe&&o.showCollapse){const re=Q("right");re&&W.push(re)}if(W.length>0){const re={key:`${q++}`,ref:I,class:{[`${b}__header`]:!0,[`${b}__first`]:!0},onClick:Z},se=t.h("div",re,W);X.push(se)}}S();const x=l.slots.default?l.slots.default():[],Y=s.layout.value.type;if(Y==="grid"){const W=ne(x,q++,0,x.length);X.push(W)}else if(Y==="flow"){const W=ne(x,q++,0,x.length);X.push(W)}else for(let W=0;W<x.length;W++){const oe=x[W],re=ne([oe],q++,W,x.length);X.push(re)}if(A.value){const W=o.tag||"div";return t.h(W,{ref:J,prop:z,class:{[`${b}`]:!0,"is-collapse":O.value},style:g.value},[X])}else return X}}}}const{componentName:bc,create:kc,scope:Sc}=_("group"),el=kc(yc(bc,Sc,ae.RectUp));function Cc(e){return e===window}const wc=/matrix\((.+)\)/,tl=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Cc(n))return{x:0,y:0};let a=0,o=0,l=n;for(;l!==null;)a+=l.offsetLeft,o+=l.offsetTop,l=l.offsetParent;let r=0,s=0,i=0,c=0;for(l=n;l!==document;){s+=l.scrollTop,r+=l.scrollLeft;const{transform:u}=window.getComputedStyle(l);if(u){const p=wc.exec(u);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 Nc{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 Bc{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 Nc,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 Rt=new Bc,Qr={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:Ac,create:Tc}=_("price"),$c=Tc({props:{...Qr},setup(e){const n=t.computed(()=>({[Ac]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>Ce(e.price)==0?"":dn(e.price,e.decimalLength,!0,ge(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}}}),le=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},Vc=["innerHTML"],Ec=["innerHTML"];function Dc(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,Vc)):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,Ec)):t.createCommentVNode("",!0)],2)}const nt=le($c,[["render",Dc]]),{componentName:nl,create:Ic}=_("hint-text"),vc=Ic({components:{Price:nt},props:{...Qr,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:()=>6},showArrow:{type:Boolean,default:()=>!0},arrowOffset:{type:Number,default:()=>20},offset:{type:Number,default:()=>12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const a=t.ref({top:null,right:null,bottom:null,left:null}),o=t.ref({x:0,y:0}),l=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),u=(E,U,J,I,V,P)=>{const v=document.documentElement.clientWidth||document.body.clientWidth,O=document.documentElement.clientHeight||document.body.clientHeight,H=E.split("-");let L=[];H[0]==="top"?L=["top","bottom","right","left"]:H[0]==="bottom"?L=["bottom","top","right","left"]:H[0]==="left"?L=["left","top","bottom","right"]:H[0]==="right"&&(L=["right","top","bottom","left"]);const Z={top:null,right:null,bottom:null,left:null},te=[];for(let F=0;F<L.length;F++){const j=L[F];if(te[0]=j,H[1]&&(te[1]=H[1]),j==="top"){const M=U.y-P-e.arrowSize-e.offset;if(M>=0){Z.top=M;let G=0;H[1]==="start"?G=U.x:H[1]==="end"?G=U.x+J-V:G=U.x+J/2-V/2;const R=v-G-V;R<0?(G+=R,d.value=-R):d.value=0,Z.left=G<0?0:G;break}}else if(j==="bottom"){const M=U.y+I+e.arrowSize+e.offset;if(M+P<=O){Z.top=M;let G=0;H[1]==="start"?G=U.x:H[1]==="end"?G=U.x+J-V:G=U.x+J/2-V/2;const R=v-G-V;R<0?(G+=R,d.value=-R):d.value=0,Z.left=G<0?0:G;break}}else if(j==="left"){const M=U.x-V-e.arrowSize-e.offset;if(M>=0){Z.left=M;let G=0;H[1]==="start"?G=U.y:H[1]==="end"?G=U.y+I-P:G=U.y+I/2-P/2,Z.top=G<0?0:G;break}}else if(j==="right"){const M=U.x+J+e.arrowSize+e.offset;if(M+V<=v){Z.left=M;let G=0;H[1]==="start"?G=U.y:H[1]==="end"?G=U.y+I-P:G=U.y+I/2-P/2,Z.top=G<0?0:G;break}}}return{bestPlacement:te.join("-"),bestInsetRect:Z}},p=(E,U,J=10)=>{if(!Ze||U===!1||!E)return;o.value=tl(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const I=c.value.offsetHeight,V=c.value.offsetWidth,{bestPlacement:P,bestInsetRect:v}=u(e.placement,o.value,l.value,r.value,V,I);s.value=P,a.value=v,i.value=!0},d=t.ref(0),h=Me(()=>{p(e.message,e.visible)},10),C=t.ref(e.visible);t.watch(()=>e.visible,E=>{C.value=E});const b=t.computed(()=>C.value&&g.value),g=t.ref(!0),y=Me(E=>{const U=E[0];U&&(g.value=U.isIntersecting)},10),m=new IntersectionObserver(y);t.watch([()=>e.message,()=>e.visible],([E,U])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Rt.watch(e.reference,h),m.observe(e.reference)}),t.onBeforeUnmount(()=>{Rt.unwatch(e.reference,h),m.unobserve(e.reference),m.disconnect()});const k=t.computed(()=>{const E={[nl]:!0};return s.value.startsWith("top")?E["is-top"]=!0:s.value.startsWith("right")?E["is-right"]=!0:s.value.startsWith("bottom")?E["is-bottom"]=!0:s.value.startsWith("right")&&(E["is-right"]=!0),e.size==="small"?E["is-small"]=!0:e.size==="large"&&(E["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(E[`${e.customClass}`]=!0),E}),f=t.computed(()=>{const E={};a.value.top!==null&&(E.top=`${a.value.top}px`),a.value.right!==null&&(E.right=`${a.value.right}px`),a.value.bottom!==null&&(E.bottom=`${a.value.bottom}px`),a.value.left!==null&&(E.left=`${a.value.left}px`),e.autoFit&&(E["min-width"]=`${l.value}px`);const U=document.documentElement.clientWidth||document.body.clientWidth;return E["max-width"]=`${U}px`,i.value&&(E.opacity="1"),e.transition||(E.transition="none"),e.zIndex&&(E["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(E,e.customStyle),E}),A=t.computed(()=>{const E=[`${nl}__content`];return e.customTextClass&&E.push(e.customTextClass),E}),N=t.computed(()=>{const E={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(E,e.customTextStyle),E}),w=t.computed(()=>({[`${nl}__arrow`]:!0})),S=t.computed(()=>{const E={};return e.showArrow?(E.width=`${e.arrowSize}px`,E.height=`${e.arrowSize}px`,s.value==="top"?(E.left="50%",E.bottom=`-${e.arrowSize}px`,E.transform=" translate(-50%, 0%)"):s.value==="top-start"?(E.left=`${e.arrowOffset+d.value}px`,E.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(E.right=`${e.arrowOffset-d.value}px`,E.bottom=`-${e.arrowSize}px`):s.value==="right"?(E.left=`-${e.arrowSize}px`,E.top="50%",E.transform=" translate(0%, -50%)"):s.value==="right-start"?(E.left=`-${e.arrowSize}px`,E.top=`${e.arrowOffset}px`):s.value==="right-end"?(E.left=`-${e.arrowSize}px`,E.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(E.left="50%",E.top=`-${e.arrowSize}px`,E.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(E.left=`${e.arrowOffset+d.value}px`,E.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(E.right=`${e.arrowOffset-d.value}px`,E.top=`-${e.arrowSize}px`):s.value==="left"?(E.right=`-${e.arrowSize}px`,E.top="50%",E.transform=" translate(0%, -50%)"):s.value==="left-start"?(E.right=`-${e.arrowSize}px`,E.top=`${e.arrowOffset}px`):s.value==="left-end"&&(E.right=`-${e.arrowSize}px`,E.bottom=`-${e.arrowOffset}px`),E):{display:"none"}}),B=t.computed(()=>b.value&&e.closeOnClick),$=t.computed(()=>{const E={};return e.zIndex&&(E["z-index"]=`${e.zIndex}`),E});return{show:b,tipRef:c,classes:k,styles:f,textClasses:A,textStyles:N,arrowClasses:w,arrowStyles:S,overlayShow:B,overlayStyle:$,onClickOverlay:()=>{C.value=!1,n.emit("update:visible",!1)}}}}),xc=["innerHTML"];function qc(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,xc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Gr=le(vc,[["render",qc]]);class Mn{seed=0;constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const ol={},Pc=new Mn,kt=new Map,Ln=e=>{if(e){const n=document.getElementById(e);kt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of kt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}kt.clear()}},Mc=e=>{e.unmount=Ln;const n=document.getElementById(e.id);if(n){const a=kt.get(e.id);a?e={...ol,...a,...e}:e={...ol,...e},e.transition=!1;const o=t.createVNode(Gr,e);return t.render(o,n),e.id}},Lc=e=>{e.unmount=Ln;let n=e.id??`hinttext_${Pc.get()}`;e={...ol,...e},e.id=n,kt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Gr,e);return t.render(o,a),document.body.appendChild(a),n},zc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},St={show(e,n,a={},o=!0){zc(n);const l=a.id;return l&&kt.has(l)?Mc({...a,message:n,reference:e}):(o&&Ln(),Lc({...a,message:n,reference:e}))},hide(e){Ln(e)},install(e){e.config.globalProperties.$hintText=St}};function Oc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...ye,...ke},emits:["appear","disappear"],setup(l,r){const s=l.prop??r.attrs.name;$e({componentName:e,validate:!1},s);const i=_e(),c=Dn();In(!1);const u=t.computed(()=>c&&i?vn(i,!1).value:null),p=e,d=t.ref(null),h=t.computed(()=>{const x={[p]:!0,[`${p}__gutter`]:u.value&&u.value.type!=="flow",[`${p}__stretch`]:l.span==="stretch",[`${p}__input--border`]:Se(l.hasBorder)};if(x[l.errorMarkClass]=!!P.value,x[l.warnMarkClass]=!!I.value,x[l.infoMarkClass]=!!U.value,typeof d.value=="function"){const Y=d.value(s);x[Y]=!0}else if(typeof d.value=="string"){const Y=d.value;x[Y]=!0}return x}),C=t.ref(null),b=t.computed(()=>{const x={};if(l.width)l.width!=="auto"&&(x.width=me(l.width));else{const Y=c&&i?xn(i,!1):null;if(u.value&&Y){if(u.value.type==="grid"){const W=Pn(Y,u.value,l.span,l.offset);Object.assign(x,W)}else if(u.value.type==="flow"){const W=qn(Y,u.value,l.span,l.offset,l.width);Object.assign(x,W)}}}if(typeof C.value=="function"){const Y=C.value(s);Y&&Object.assign(x,Y)}else if(C.value&&typeof C.value=="object"){const Y=C.value;Object.assign(x,Y)}return x}),g=t.ref(null),y=t.computed({get:()=>g.value??Se(l.isRequired),set:x=>{g.value=x}}),m=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",k=Ve(t.toRef(l,"labelPosition"),"labelPosition",An.Near),f=t.computed(()=>k&&k.value==="top"?"top":k&&k.value==="right"?"right":"left"),A=t.computed(()=>({[`${p}__main`]:!0,[`${p}__main--${f.value}`]:!0})),N=t.computed(()=>({label:!0,[`label--${f.value}`]:!0})),w=Ve(t.toRef(l,"labelWidth"),"labelWidth",An.Near),S=t.computed(()=>w&&w.value?{width:me(w.value)}:{}),B=t.computed(()=>({"label--string":!0,"label--required":y.value})),$=t.computed(()=>({content:!0,[l.contentClass]:!0})),D=t.computed(()=>({...l.contentStyle})),E=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ie({setRequired(x){y.value=x},setErrorTip(x){E.errorTip=x},setErrorIcon(x){E.errorIcon=x},setWarnTip(x){E.warnTip=x},setWarnIcon(x){E.warnIcon=x},setInfoTip(x){E.infoTip=x},setInfoIcon(x){E.infoIcon=x},setCustomClassName(x){d.value=x},setCustomStyle(x){C.value=x}});const U=t.computed(()=>l.infoTip||E.infoTip),J=t.computed(()=>l.infoIcon||E.infoIcon),I=t.computed(()=>l.warnTip||E.warnTip),V=t.computed(()=>l.warnIcon||E.warnIcon),P=t.computed(()=>l.errorTip||E.errorTip),v=t.computed(()=>l.errorIcon||E.errorIcon),O=t.computed(()=>P.value?"error":I.value?"warn":U.value?"info":""),H=()=>O.value.length>0,L=t.computed(()=>O.value==="error"?P.value:O.value==="warn"?I.value:O.value==="info"?U.value:""),Z=t.computed(()=>O.value==="error"?v.value:O.value==="warn"?V.value:O.value==="info"?J.value:null),te=t.computed(()=>{const x={[`${p}__tip`]:!0,[`${p}__tip--${O.value}`]:!0,[`${p}--animate`]:!0};return O.value==="error"&&l.errorClass?x[`${l.errorClass}`]=!0:O.value==="warn"&&l.warnClass?x[`${l.warnClass}`]=!0:O.value==="info"&&l.infoClass&&(x[`${l.infoClass}`]=!0),x}),F=t.computed(()=>{const x={};return k&&k.value==="top"||!m()?x["padding-left"]="0px":w&&w.value&&(x["padding-left"]=me(w.value)),x}),j=t.ref();let M="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([x,Y,W,oe])=>{j.value&&(x&&!ue(Y)?M?a.show(j.value,Y,{...oe,id:M,type:W},!0):M=a.show(j.value,Y,{...oe,type:W},!0):a.hide(M))});let G=null;const R=()=>{G||!j.value||(G=new IntersectionObserver(x=>{let Y=!1;for(let W of x)if(W.intersectionRatio>0){Y=!0,Y&&r.emit("appear",W);break}Y||r.emit("disappear")}),G.observe(j.value))},K=()=>{!G||!j.value||(G.unobserve(j.value),G=null)};t.watch(()=>Se(l.appearListen),x=>{x?R():K()}),t.onMounted(()=>{Se(l.appearListen)&&R()}),t.onUnmounted(K);const ee=()=>{if(!m())return null;const x=[],Y=r.slots?.label?.()??l.label,W={class:B.value},oe=t.h("div",W,[Y]);if(x.push(oe),r.slots.fixedPreTip){const se=r.slots.fixedPreTip();x.push(se)}const re={class:N.value,style:S.value};return t.h("div",re,x)},Q=()=>{const x=[];if(r.slots.prepend){const W=r.slots.prepend();x.push(W)}if(r.slots.default){const W=r.slots.default();x.push(W)}if(r.slots.append){const W=r.slots.append();x.push(W)}if(r.slots.fixedTip){const W={class:[`${p}__fixed-tip`]},oe=t.h("div",W,[r.slots.fixedTip()]);x.push(oe)}const Y={ref:j,class:$.value,style:D.value};return t.h("div",Y,x)},ne=()=>{const x=Z.value;return x?typeof x=="function"?t.h("div",{class:"fox-item__tip--icon"},[x()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(x)]):null},z=()=>{const x=L.value;return x?typeof x=="function"?t.h("div",{class:"fox-item__tip--text"},[x()]):t.h("div",{class:"fox-item__tip--text"},[x]):null},X=()=>{if(!H())return null;const x=[],Y=ne();Y&&x.push(Y);const W=z();W&&x.push(W);const oe={class:te.value,style:F.value};return t.h("div",oe,x)},q=()=>r.slots?.hide?.()??null;return()=>{const x=[],Y=[],W=ee();W&&Y.push(W);const oe=Q();oe&&Y.push(oe);const re={class:A.value},se=t.h("div",re,Y);x.push(se);const pe=X();pe&&x.push(pe);const Be=q();Be&&x.push(Be);const at={class:h.value,style:b.value,prop:l.prop};return t.h("div",at,x)}}}}const{componentName:Rc,create:Fc,scope:Kc}=_("item"),Ae=Fc(Oc(Rc,Kc,St,!1)),Zr={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"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function Uc(e,n){return{props:{...Zr},setup(a,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=_e(),i=Dn();In(!1);const c=t.computed(()=>{const u={};if(a.width)a.width!=="auto"&&(u.width=me(a.width));else if(i&&s){const p=vn(s,!1),d=xn(s,!1);if(p.value&&d){if(p.value.type==="grid"){const h=Pn(d,p.value,a.span,a.offset);Object.assign(u,h)}else if(p.value.type==="flow"){const h=qn(d,p.value,a.span,a.offset,a.width);Object.assign(u,h)}}}return a.gutter&&(u.gap=me(a.gutter)),u});return()=>{const u=[];if(o.slots.default){const d=o.slots.default();if(a.divide)for(let h=0;h<d.length;h++){if(h>0){const C=t.h("div",{class:{[`${l}__divide`]:!0}});u.push(C)}u.push(d[h])}else Reflect.apply([].push,u,d)}const p={class:r.value,style:c.value};return t.h("div",p,u)}}}}const{componentName:Hc,create:jc}=_("row-item"),zn=jc(Uc(Hc));var Wc=t.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(n,a)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),Yc=Wc;function Xc(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 Qc={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 Gc(e,n,a,o=!1){return{props:{...Qc},emits:["click"],setup(l,r){const s=t.ref(null),i=t.computed(()=>{const f={[`${e}`]:!0,"is-truncated":l.truncated};return l.type&&(f[`${e}--${l.type??"default"}`]=!0),l.size&&(f[`${e}--${l.size}`]=!0),f}),c=t.computed(()=>{const f={},A=l.textColor??l.color;return A&&(f.color=A),f}),u=(f,A)=>{let N=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const w=l.highlightFilter;if(f.indexOf(w)!==-1){const B=f.replace(new RegExp(w,"g"),`<span>${w}</span>`);A.innerHTML=B,A.class["is-highlight"]=!0,N=t.h(l.tag,A)}}else if(typeof l.highlightFilter=="function"){const w=l.highlightFilter(f);w&&(A.innerHTML=w,A.class["is-highlight"]=!0,N=t.h(l.tag,A))}return N},p=f=>{r.emit("click",f)};let d="";const h=()=>{const f=s.value;if(!f)return;const A=f.clientWidth;Xc(f,N=>{const w=f.innerHTML??"";ue(w)||N<A||(d?a?.show(f,w,{type:"text",id:d,showArrow:l.showArrow},!0):d=a?.show(f,w,{type:"text",showArrow:l.showArrow},!0)??"")})},C=()=>{d&&a?.hide(d)};let b=null;const g=f=>{b||(b=setTimeout(()=>{h(),b=null},l.showAfter??0))},y=f=>{b&&(clearTimeout(b),b=null),setTimeout(()=>{C()},l.hideAfter??0)},m=()=>{const f=s.value;f&&(f.addEventListener("mouseover",g),f.addEventListener("mouseleave",y))},k=()=>{const f=s.value;f&&(f.removeEventListener("mouseover",g),f.removeEventListener("mouseleave",y))};return t.onMounted(()=>{!Se(l.showOverflowTooltip)||!a||m()}),t.onBeforeUnmount(()=>{!Se(l.showOverflowTooltip)||!a||k()}),()=>{const f={onClick:p,class:i.value,style:c.value,ref:s};let A=null;if(Se(l.numberFormat)&&typeof r.slots.default=="function"){const B=r.slots.default();if(Array.isArray(B)&&B.length===1){const $=B[0].type.toString();if($==="Symbol(Text)"||$==="Symbol(v-txt)"){const D=ge(l.digits),E=ge(l.decimalLength),U=Se(l.autoPadding);let J=`${B[0].children}`,I=J.split("").reverse().join("");I=dn(I,E,U,D,l.separator),J=I.split("").reverse().join(""),l.highlightFilter!==void 0&&(A=u(J,f)),A||(f.innerHTML=J,A=t.h(l.tag,f))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const B=r.slots.default();if(Array.isArray(B)&&B.length===1){const $=B[0].type.toString();if($==="Symbol(Text)"||$==="Symbol(v-txt)"){const D=`${B[0].children}`;A=u(D,f),A||(f.innerHTML=D,A=t.h(l.tag,f))}}}A||(A=t.h(l.tag,f,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return A;let w=null;if(l.icon){const B={[`${e}__mark-wrap`]:!0};l.type&&(B[`${e}__mark-wrap--${l.type}`]=!0);const $={},D=l.color;D&&($.color=D);const E={class:B,style:$};w=t.h("view",E,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 $={},D=l.color;D&&($.color=D);const E={class:B,style:$};w=t.h("view",E,{default:r.slots.mark})}else{const B={[`${e}__mark`]:!0};l.type&&(B[`${e}__mark--${l.type??"default"}`]=!0);const $={},D=l.color;D&&($["background-color"]=D);const E={class:B,style:$};w=t.h("view",E)}const S={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",S,[w,A])}}}}const{componentName:Zc,create:Jc,scope:_c}=_("text"),On=Jc(Gc(Zc,_c,St,!1)),ed={visible:{type:Boolean},reference:{type:[Object,String]},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function td(e,n,a=!1){return{props:{...ed},emits:["update:visible"],setup(o,{emit:l,slots:r,expose:s}){const i=t.ref({top:null,right:null,bottom:null,left:null}),c=t.ref(0),u=t.ref(0),p=t.ref(0),d=t.ref(0),h=t.ref(o.placement),C=t.ref(!1),b=t.ref(!1),g=t.ref(null),y=()=>typeof o.reference=="string"?document.querySelector(o.reference):o.reference,m=(L,Z,te,F,j,M,G,R=!0)=>{const K=document.documentElement.clientWidth||document.body.clientWidth,ee=document.documentElement.clientHeight||document.body.clientHeight,Q=L.split("-");let ne=[];R?Q[0]==="top"?ne=["top","bottom","right","left"]:Q[0]==="bottom"?ne=["bottom","top","right","left"]:Q[0]==="left"?ne=["left","top","bottom","right"]:Q[0]==="right"&&(ne=["right","top","bottom","left"]):ne=[L[0]];const z={top:null,right:null,bottom:null,left:null},X=[];for(let q=0;q<ne.length;q++){const x=ne[q];if(X[0]=x,Q[1]&&(X[1]=Q[1]),x==="top"){const Y=te-G-o.arrowSize/2-o.offset;if(Y>=0){z.top=Y;let W=0;Q[1]==="start"?W=Z:Q[1]==="end"?W=Z+F-M:W=Z+F/2-M/2;const oe=K-W-M;oe<0?(W+=oe,f.value=-oe):f.value=0,z.left=W<0?0:W;break}}else if(x==="bottom"){const Y=te+j+o.arrowSize/2+o.offset;if(Y+G<=ee){z.top=Y;let W=0;Q[1]==="start"?W=Z:Q[1]==="end"?W=Z+F-M:W=Z+F/2-M/2;const oe=K-W-M;oe<0?(W+=oe,f.value=-oe):f.value=0,z.left=W<0?0:W;break}}else if(x==="left"){const Y=Z-M-o.arrowSize/2-o.offset;if(Y>=0){z.left=Y;let W=0;Q[1]==="start"?W=te:Q[1]==="end"?W=te+j-G:W=te+j/2-G/2,z.top=W<0?0:W;break}}else if(x==="right"){const Y=Z+F+o.arrowSize/2+o.offset;if(Y+M<=K){z.left=Y;let W=0;Q[1]==="start"?W=te:Q[1]==="end"?W=te+j-G:W=te+j/2-G/2,z.top=W<0?0:W;break}}}return{bestPlacement:X.join("-"),bestInsetRect:z}},k=()=>{const L=o.visible,Z=o.autoFit;if(!Ze||L===!1)return;if(o.reference){const G=y(),R=tl(G);c.value=R.x,u.value=R.y,p.value=G.offsetWidth,d.value=G.offsetHeight}else o.referenceInset&&(c.value=o.referenceInset.left,u.value=o.referenceInset.top,p.value=o.referenceInset.right-o.referenceInset.left,d.value=o.referenceInset.bottom-o.referenceInset.top);const te=g.value.offsetWidth,F=g.value.offsetHeight,{bestPlacement:j,bestInsetRect:M}=m(o.placement,c.value,u.value,p.value,d.value,te,F,Z);h.value=j,i.value=M},f=t.ref(0),A=Me(()=>{k()},10),N=t.ref(o.visible);t.watch([()=>o.visible],([L])=>{N.value=L,L?(C.value=L,setTimeout(()=>{k(),b.value=!0},0)):b.value=!1});const w=t.computed(()=>N.value&&S.value),S=t.ref(!0),B=Me(L=>{const Z=L[0];Z&&(S.value=Z.isIntersecting)},10),$=new IntersectionObserver(B);t.watch([()=>o.reference,()=>o.referenceInset],([L,Z],[te,F])=>{!L&&!Z||(setTimeout(()=>{k()},0),o.autoFit&&(te&&(Rt.unwatch(te,A),$.unobserve(te)),L&&(Rt.watch(L,A),$.observe(L))))},{immediate:!0}),t.onBeforeUnmount(()=>{o.reference&&(Rt.unwatch(o.reference,A),$.unobserve(o.reference),$.disconnect())});const D=t.computed(()=>{const L={[e]:!0};return h.value.startsWith("top")?L["is-top"]=!0:h.value.startsWith("right")?L["is-right"]=!0:h.value.startsWith("bottom")?L["is-bottom"]=!0:h.value.startsWith("left")&&(L["is-left"]=!0),L[`is-${o.effect}`]=!0,!b.value&&w.value&&(L["is-opacity"]=!0),b.value&&w.value&&(L["is-show"]=!0),w.value||(L["is-hide"]=!0),o.customClass&&typeof o.customClass=="string"&&(L[`${o.customClass}`]=!0),L}),E=t.computed(()=>{const L={};return i.value.top!==null&&(L.top=`${i.value.top}px`),i.value.right!==null&&(L.right=`${i.value.right}px`),i.value.bottom!==null&&(L.bottom=`${i.value.bottom}px`),i.value.left!==null&&(L.left=`${i.value.left}px`),o.width&&(L.width=o.width),o.zIndex&&(L["z-index"]=`${o.zIndex}`),o.customStyle&&typeof o.customStyle=="object"&&Object.assign(L,o.customStyle),L}),U=()=>{N.value=!1,l("update:visible",!1)},J=()=>{if(!o.showOverlay)return null;const L={class:`${e}__overlay`,onClick:U};return t.h("div",L)},I=()=>{let L=null;return r.title?L=t.h("div",{class:`${e}__title`},{default:r.title}):o.title&&(L=t.h("div",{class:`${e}__title`},[o.title])),L},V=t.computed(()=>({[`${e}__arrow`]:!0})),P=t.computed(()=>{const L={};return o.showArrow?(L.width=`${o.arrowSize}px`,L.height=`${o.arrowSize}px`,h.value==="top"?(L.left="50%",L.bottom="0",L.transform="translate(-50%, 50%)"):h.value==="top-start"?(L.left=`${o.arrowOffset+f.value}px`,L.bottom="0",L.transform="translate(-50%, 50%)"):h.value==="top-end"?(L.right=`${o.arrowOffset-f.value}px`,L.bottom="0",L.transform="translate(-50%, 50%)"):h.value==="right"?(L.left="0",L.top="50%",L.transform="translate(-50%, -50%)"):h.value==="right-start"?(L.left="0",L.top=`${o.arrowOffset}px`,L.transform="translate(-50%, 50%)"):h.value==="right-end"?(L.left="0",L.bottom=`-${o.arrowOffset}px`,L.transform="translate(-50%, 50%)"):h.value==="bottom"?(L.left="50%",L.top="0",L.transform="translate(-50%, -50%)"):h.value==="bottom-start"?(L.left=`${o.arrowOffset+f.value}px`,L.top="0",L.transform="translate(-50%, -50%)"):h.value==="bottom-end"?(L.right=`${o.arrowOffset-f.value}px`,L.top="0",L.transform="translate(-50%, -50%)"):h.value==="left"?(L.right="0",L.top="50%",L.transform="translate(50%, -50%)"):h.value==="left-start"?(L.right="0",L.top=`${o.arrowOffset}px`,L.transform="translate(50%, -50%)"):h.value==="left-end"&&(L.right="0",L.bottom=`-${o.arrowOffset}px`,L.transform="translate(50%, -50%)"),L):{display:"none"}}),v=()=>{const L={class:V.value,style:P.value};return t.h("div",L)},O=()=>{N.value===!1&&(C.value=!1)},H=L=>{if(!g.value||N.value===!1)return;const{relatedTarget:Z}=L;g.value.contains(Z)||(N.value=!1,l("update:visible",!1))};return s({doLayout:k}),()=>{if(!C.value)return null;const L=[],Z=J();Z&&L.push(Z);const te=[],F=I();if(F&&te.push(F),r.default){const K=r.default();te.push(K)}const j=v();j&&te.push(j);const M={ref:g,class:D.value,style:E.value,onAnimationend:O};o.leaveHide&&(M.onMouseleave=H);const G=t.h("div",M,{default:()=>te});return L.push(G),t.h(t.Teleport,{to:o.teleport,disabled:o.teleportDisable},{default:()=>L})}}}}const{componentName:nd,create:od,scope:ld}=_("popover-dialog"),Rn=od(td(nd,ld,!1)),ad={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function rd(e,n,a){return{props:{...Zr,...ad},emits:["click"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ce.useFoxI18n(n),i=s(o,["moreText"]),c=e,u=t.computed(()=>({[c]:!0}));function p(w){return w.props||{}}function d(w){return!!p(w).disabled}function h(w){return w.children??[]}const C=t.ref(),b=t.computed(()=>C.value?.$el??null),g=t.ref(!1),y=w=>{g.value=w},m=()=>{g.value=!g.value};function k(w,S){return()=>{if(S)return;g.value=!1,p(w)?.onClick?.()}}function f(w,S){const B=h(w),$=d(w),D=k(w,$),E=[`${c}__dropdown-item`];$&&E.push("is-disabled");const U={class:E,onClick:D};return t.h("span",U,B)}const A=w=>{const S=o.maxDisplayCount??w.length;if(S>=w.length)return w;const B=[],$=S-1;for(let P=0;P<$;P++)B.push(w[P]);const D=(r.moreIcon&&r.moreIcon())??(o.moreIcon&&t.h(o.moreIcon))??t.h(a),E={ref:P=>C.value=P,class:`${c}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:o.type,onClick:m},U=t.h(On,E,{default:()=>i.moreText.value,mark:()=>D});B.push(U);const J=[];for(let P=$;P<w.length;P++){const v=f(w[P]);J.push(v)}const I={placement:o.dropdownPlacement,"onUpdate:visible":y,visible:g.value,reference:b.value,"custom-class":`${c}__popover`},V=t.h(Rn,I,{default:()=>J});return B.push(V),B},N=()=>(r.default?.()||[]).filter(S=>S.type!==Comment);return()=>{const w=N(),S=A(w),B={class:u.value};return t.h(zn,B,{default:()=>S})}}}}const{componentName:sd,create:id,scope:cd}=_("buttons-item"),ll=id(rd(sd,cd,Yc)),dd={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function ud(e,n){return{props:{...dd},setup(a,o){const l=_e(),r=Dn();In(!1);const s=t.computed(()=>r&&l?vn(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),u=t.computed(()=>{const p={};if(a.width)a.width!=="auto"&&(p.width=me(a.width));else{const d=r&&l?xn(l,!1):null;if(s.value&&d){if(s.value.type==="grid"){const h=Pn(d,s.value,a.span,a.offset);Object.assign(p,h)}else if(s.value.type==="flow"){const h=qn(d,s.value,a.span,a.offset,a.width);Object.assign(p,h)}}}return p});return()=>{const p={class:c.value,style:u.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",p,o.slots.default()):t.h("div",p)}}}}const{componentName:fd,create:md}=_("slot-item"),al=md(ud(fd)),Jr={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 pd(e,n,a,o){return{props:{...ye,...ke,...Jr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:u}=ce.useFoxI18n(n),p=u(l,["placeholder"]),d=t.ref(!1),h=Le(l,"modelValue",null,c),C=e,b=t.computed(()=>({[C]:!0,"is-disabled":s.value,"is-readonly":i.value})),g=Ve(t.computed(()=>l.textAlign),"textAlign"),y=t.computed(()=>{const V={};return g.value&&(V["text-align"]=g.value),V}),m=V=>{let v=V.target.value;l.type==="digit"&&(v=Lo(v,!0)),l.type==="number"&&(v=Lo(v,!1)),l.maxLength&&v.length>Number(l.maxLength)&&(v=v.slice(0,Number(l.maxLength))),h.value=v,c("update:modelValue",v,V),c("change",v,V)};let k=Le(l,"hintText"),f=t.ref(!1);const A=V=>{let v=V.target.value;d.value=!0,ue(k.value)||(f.value=!0),c("focus",v,V)},N=V=>{setTimeout(()=>{f.value&&(f.value=!1),d.value=!1},0);let v=V.target.value;l.maxLength&&v.length>Number(l.maxLength)&&(v=v.slice(0,Number(l.maxLength))),c("blur",v,V)},w=t.computed(()=>({[`${C}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),S=t.computed(()=>{const V={};return r.slots.append&&!B.value&&!J.value&&(V.display="none"),V}),B=t.computed(()=>Ce(l.unit)>0),$=t.computed(()=>!J.value),D=t.computed(()=>({[`${C}__unit`]:!0,hidden:!$.value})),E=V=>{h.value="",c("update:modelValue","",V),c("change","",V),c("clear","")},U=t.computed(()=>Se(l.clearable)&&!s.value&&!i.value),J=t.computed(()=>{let V=Ce(h.value)>0;return Se(l.clearable)&&V&&d.value}),I=t.computed(()=>({action:!0,hidden:!J.value}));return()=>{const V={class:b.value,style:y.value,type:l.type,maxlength:l.maxLength,placeholder:p.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:m,onFocus:A,onBlur:N},P=[],v=t.h("input",V);P.push(v);const O=[];if(U.value){const M={class:["action-icon"]},G=t.h(o,M),R={class:I.value,onClick:E},K=t.h("view",R,{default:()=>[G]});O.push(K)}if(B.value){const M=t.h("view",{class:D.value},[l.unit]);O.push(M)}const H={class:w.value,style:S.value},L=t.h("view",H,{default:()=>O});P.push(L);const Z={default:()=>P};Z.label=r.slots.default,Z.prepend=r.slots.prepend,Z.append=r.slots.append,Z.fixedPreTip=r.slots.fixedPreTip,Z.fixedTip=r.slots.fixedTip;const F={...Je(l,Jr),hintText:k.value,hintVisible:f.value};return l.prop&&(F.prop=`${l.prop}_item`),t.h(a,F,Z)}}}}const{componentName:hd,create:gd,scope:yd}=_("input-item"),rl=gd(pd(hd,yd,Ae,ae.CircleClose));function _r(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 es(e,n,a=20){if(typeof n=="string"&&(n=ge(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=pr(`${e}`,`${n}`);return _r(o)}else{let o=Do(`${e}`,hr(`${n}`),20);return _r(o)}}function bd(e,n=-1,a=!1,o=3,l=","){return dn(e,n,a,o,l)}function ts(e,n,a,o,l=!0){if(e==="")return"";if(e=gr(e),n=ge(n),n==1)return e;if(o)e=es(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(ge(a)+2,"0"):e=Do(e,1,ge(a)));else{let r=-1*n;e=es(e,r)}return e}function ns(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=Se(n.minInclude),l=Io(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=Se(n.maxInclude),l=Io(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const os={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 kd(e,n,a,o){return{props:{...ye,...ke,...os},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),u=t.ref(!1),p=Le(l,"modelValue",null,c),d=t.ref("");t.watch([()=>p.value,()=>l.rates,()=>l.precision],([H,L,Z])=>{if(ue(H)){d.value="";return}const te=ts(H,L,Z,!1);d.value!==te&&(d.value=te)},{immediate:!0});const h=t.computed(()=>{let H="";return u.value&&(H=d.value),H}),{t:C}=ce.useFoxI18n(n),b=t.computed(()=>{let H=l.placeholder??"";return!u.value&&!ue(d.value)?H=bd(d.value,l.decimalLength,l.autoPadding,l.digits,l.separator):H=ue(H)?C(["placeholder"]):H,H}),g=e,y=t.computed(()=>({[g]:!0,[`${g}__placeholder`]:d.value.length>0,"is-disabled":s.value,"is-readonly":i.value})),m=Ve(t.computed(()=>l.textAlign),"textAlign"),k=t.computed(()=>{const H={};return m.value&&(H["text-align"]=m.value),H}),f=t.ref(""),A=t.computed(()=>{let H=f.value;return ue(H)&&(H=l.errorTip??""),H}),N=t.ref(""),w=t.ref(!1),S=H=>{let Z=H.target.value;if(ue(Z)){d.value="",p.value="",c("update:modelValue","",H),c("change","",H),Se(l.showTip)&&w.value&&(w.value=!1);return}if(Z.length>=2){let te=Z;if(te.charAt(0)=="-"&&(te=te.substring(1)),te.length>=2&&te.charAt(0)=="0"&&te.charAt(1)!="."){t.triggerRef(d);return}}if(Z!="-"){if(!Mo(Z)){t.triggerRef(d);return}if(l.integerLength!=-1&&Br(Z)>Number(l.integerLength)){t.triggerRef(d);return}if(l.decimalLength&&l.decimalLength!=-1&&Ar(Z)>Number(l.decimalLength)){t.triggerRef(d);return}let te=ns(Z,l);if(te.maxValid===!1){f.value=te.message,t.triggerRef(d);return}}else if(l.min!=null&&ge(l.min)>=0){t.triggerRef(d);return}N.value=Z,Se(l.showTip)&&(w.value=Z.length>0),d.value=Z,p.value=ts(Z,l.rates,l.precision,!0),c("update:modelValue",p.value,H),c("change",p.value,H)},B=H=>{if(u.value=!0,Se(l.showTip)){let L=d.value;ue(L)&&(L=l.hintText),ue(L)||(N.value=L,w.value=!0)}f.value="",c("focus",p.value,H)},$=H=>{if(setTimeout(()=>{u.value=!1,Se(l.showTip)&&w.value===!0&&(w.value=!1)},0),!ue(d.value)){let L=ns(d.value,l);if(L.minValid===!1||L.maxValid===!1){f.value=L.message;return}}c("update:modelValue",p.value,H),c("blur",p.value,H)},D=t.computed(()=>({[`${g}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),E=t.computed(()=>{const H={};return r.slots.append&&!U.value&&!v.value&&(H.display="none"),H}),U=t.computed(()=>Ce(l.unit)>0),J=t.computed(()=>!v.value),I=t.computed(()=>({[`${g}__unit`]:!0,hidden:!J.value})),V=H=>{p.value="",c("update:modelValue","",H),c("change","",H),c("clear","")},P=t.computed(()=>Se(l.clearable)&&!s.value&&!i.value),v=t.computed(()=>{let H=Ce(p.value)>0;return Se(l.clearable)&&H&&u.value}),O=t.computed(()=>({action:!0,hidden:!v.value}));return()=>{let H={class:y.value,style:k.value,type:"digit",maxlength:l.maxLength,placeholder:b.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:S,onFocus:B,onBlur:$},L=[],Z=t.h("input",H);L.push(Z);let te=[];if(P.value){const K={class:["action-icon"]},ee=t.h(o,K),Q={class:O.value,onClick:V},ne=t.h("view",Q,{default:()=>[ee]});te.push(ne)}if(U.value){const K=t.h("view",{class:I.value},[l.unit]);te.push(K)}const F={class:D.value,style:E.value},j=t.h("view",F,{default:()=>te});L.push(j);const M={default:()=>L};M.label=r.slots.default,M.prepend=r.slots.prepend,M.append=r.slots.append,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const R={...Je(l,os),errorTip:A.value,hintText:N.value,hintVisible:w.value,hintType:"number"};return l.prop&&(R.prop=`${l.prop}_item`),t.h(a,R,M)}}}}const{componentName:Sd,create:Cd,scope:wd}=_("money-item"),sl=Cd(kd(Sd,wd,Ae,ae.CircleClose)),il={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:Nd,create:Bd,scope:Ad}=_("textarea"),Td=Bd({props:{...il},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=ce.useFoxI18n(Ad);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const h=Nd;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 C=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:b,minHeight:g}=e.autosize;b!==void 0&&(C=Math.min(C,b)),g!==void 0&&(C=Math.max(C,g))}C&&(console.info("----------- height",C),h.style.height=C+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,C)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,C),n("change",h,C)};return{...o,textareaRef:l,classes:r,styles:s,change:h=>{const C=h.target;c(C.value,h)},focus:h=>{e.disabled||e.readonly||n("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let b=h.target.value;c(b,h),n("blur",{value:b,event:h})}}}}),$d=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Vd={key:0,class:"fox-textarea__limit"};function Ed(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,$d),e.limitShow?(t.openBlock(),t.createElementBlock("view",Vd,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const Fn=le(Td,[["render",Ed]]);function Dd(e,n,a,o){return{props:{...ye,...ke,...il},emits:["update:modelValue","change","blur","focus","setValue"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),u=Le(l,"modelValue",null,c),p=g=>{u.value=g,c("update:modelValue",g,{}),c("change",g,{})};let d=Le(l,"hintText"),h=t.ref(!1);const C=g=>{ue(d.value)||(h.value=!0),c("focus",u.value,g)},b=g=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",u.value,g)};return()=>{const y={...be(l,il),disabled:s.value,readonly:i.value,value:u.value,"onUpdate:modelValue":p,onFocus:C,onBlur:b},m=[],k=t.h(o,y);m.push(k);const f={default:()=>m};f.label=r.slots.default,f.prepend=r.slots.prepend,f.append=r.slots.append,f.fixedPreTip=r.slots.fixedPreTip,f.fixedTip=r.slots.fixedTip;const N={...be(l,ke,ye)};return l.prop&&(N.prop=`${l.prop}_item`),t.h(a,N,f)}}}}const{componentName:Id,create:vd,scope:xd}=_("textarea-item"),cl=vd(Dd(Id,xd,Ae,Fn));function qd(e){return e===window}const Pe=e=>{const n=t.unref(e);if(qd(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}},ls=10;function as(e,n){return e>n&&e>ls?"horizontal":n>e&&n>ls?"vertical":""}function Kn(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Un(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(s=>{if(s.touches){const u=s.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const c=s;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=as(e.offsetX,e.offsetY))}),start:(s=>{if(o(),s.touches){const u=s.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const c=s;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()}),reset:o,isVertical:n,isHorizontal:a,state:e}}function ot(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),u=t.ref(0),p=t.ref(""),d=()=>p.value==="vertical",h=()=>p.value==="horizontal",C=()=>{s.value=0,i.value=0,c.value=0,u.value=0,p.value="",a.value=0};return{move:(y=>{if(y.touches){const f=y.touches[0];s.value=f.clientX-e.value,i.value=f.clientY-n.value,l.value=f.clientX,r.value=f.clientY}else{const k=y;s.value=k.clientX-e.value,i.value=k.clientY-n.value,l.value=k.clientX,r.value=k.clientY}c.value=Math.abs(s.value),u.value=Math.abs(i.value),o.value=Date.now()-a.value,p.value||(p.value=as(c.value,u.value))}),start:(y=>{if(C(),y.touches){const f=y.touches[0];e.value=f.clientX,n.value=f.clientY}else{const k=y;e.value=k.clientX,n.value=k.clientY}a.value=Date.now()}),reset:C,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:u,direction:p,isVertical:d,isHorizontal:h}}let Pd=2e3;const rs=()=>Pd++,Ke={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:{}}},Md=(e,n)=>({components:n,props:{...Ke},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=rs());const r=t.computed(()=>{const g=e,y=[g,`${g}--${a.position}`];return a.round&&y.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&y.push(`${g}--${a.position}--safebottom`),typeof a.popClass=="string"?y.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(m=>{y.push(m)}),y}),s=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),i=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{o("update:visible",!0),a.zIndex?l.zIndex=a.zIndex:l.zIndex=rs(),a.destroyOnClose&&(l.showSlot=!0),o("open")},u=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},p=g=>{o("click-pop",g)},d=g=>{g.stopPropagation(),o("click-close-icon",g),o("update:visible",!1)},h=g=>{o("click-overlay",g),a.closeOnClickOverlay&&o("update:visible",!1)},C=g=>{o("opend",g)},b=g=>{o("closed",g)};return t.watch(()=>a.visible,g=>{a.visible?c():u()}),t.watch(()=>a.closeable,g=>{l.closed=g}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:p,onClickCloseIcon:d,onClickOverlay:h,onOpened:C,onClosed:b}}}),ss={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}},dl={...Ke,...ss,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},poppable:{type:[Boolean],default:()=>!0}};let is=36;function Ld(){return is}function zd(e){is=e}function Ue(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ul(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Od(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function ut(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function cs(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Rd=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=tt(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Fd(){const e=t.getCurrentInstance();return new Rd(e.proxy)}function ds(e,n,a){const o=Ue(e,n),l=Ue(e,a);if(o!==l)return!1;const r=ut(e,n),s=ut(e,a);return r===s}function Kd(e,n,a,o){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const l=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=n[s];let u=a[s].findIndex(p=>{if(r==="text")return Ue(e,p)===i;if(r==="value"){let d=ut(e,p);return d==null&&(d=Ue(e,p)),d===i}else if(r==="item")return ds(e,p,i)});if(u==-1)break;l.push(u)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let u=s.findIndex(d=>{if(r==="text")return Ue(e,d)===c;if(r==="value"){let h=ut(e,d);return h==null&&(h=Ue(e,d)),h===c}else if(r==="item")return ds(e,d,c)});if(u==-1)break;l.push(u);const p=ul(e,s[u]);if(!Array.isArray(p))break;s=p}}return l}function us(e,n,a,o){if(a.length==0)return null;const l={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=a[s];let c=n[s];c<0&&c>=i.length&&(c=0);const u=i[c],p=Ue(e,u);if(l.texts.push(p),l.items.push(u),r==="text")l.values.push(p);else if(r==="value"){let d=ut(e,u);d==null&&(d=p),l.values.push(d)}else l.values.push(u)}else{let s=a[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=s.length&&(c=0);const u=s[c],p=Object.assign({},u);p.children=null;const d=Ue(e,u);if(l.texts.push(d),l.items.push(p),r==="text")l.values.push(d);else if(r==="value"){let h=ut(e,u);h==null&&(h=d),l.values.push(h)}else l.values.push(p);if(!Array.isArray(u.children))break;s=u.children}}return l}function fs(e){return{text:e,value:e}}const Ud=15,Hd=300,jd=200,{create:Wd}=_("picker-column");function Yd(e){e.stopPropagation()}function Xd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),Yd(e)}const Qd=Wd({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},...ss},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${ge(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=S=>S>=d.currIndex+8||S<=d.currIndex-8,i=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${r.value}px`})),c=S=>`transform: rotate3d(1, 0, 0, ${-d.rotation*S}deg) translate3d(0px, 0px, 104px)`,u=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+r.value}px, 0)`})),p=t.ref(null),d=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=S=>Ue(e,S),C=S=>ut(e,S),b=ot(),g=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},y=(S,B=!1,$=!1)=>{if(d.currIndex=S,B){const D=()=>{d.moving=!1,n("update:modelValue",S),n("change",S)};$?d.transitionEndTrigger=D:D()}},m=(S,B,$)=>{let D=S+d.startDistance;if(B==="end"){const E=-(e.source.length-1)*e.itemHeight;D<E&&(D=E),D>0&&(D=0);let U=Math.abs(Math.round(-D/e.itemHeight));const J=-U*e.itemHeight,I=`${(U+1)*d.rotation}deg`,V=$?$>0:!1;y(U,!0,V),k(J,B,$,I)}else{let E=(-D/e.itemHeight+1)*d.rotation;const U=(e.source.length+1)*d.rotation,J=0;if(E=Math.min(Math.max(E,J),U),e.threeDimensional&&(E<J||E>U))return;k(D,null,void 0,`${E}deg`)}},k=(S=0,B,$=jd,D)=>{B==="end"?d.scrollTime=$:d.scrollTime=0,d.deg=D,d.scrollDistance=S},f=(S,B)=>(S=Math.abs(S/B)/.003*(S<0?-1:1),S),A=S=>{e.readonly||(d.startDistance=d.scrollDistance,b.start(S),d.transitionEndTrigger=null)},N=S=>{e.readonly||(d.moving=!0,b.move(S),b.isVertical()&&(d.moving=!0,Xd(S)),m(b.deltaY.value,"",0))},w=()=>{if(e.readonly)return;const S=b.deltaY.value,B=b.duration.value;if(B<Hd&&Math.abs(S)>Ud){const D=f(S,B);m(D,"end",e.swipeDuration)}else m(S,"end",0)};return t.watch(()=>e.modelValue,S=>{const B=d.currIndex-S;if(B!==0){d.currIndex=S,d.startDistance=d.scrollDistance;const $=B*e.itemHeight;m($,"",0)}}),t.watch(()=>e.source,S=>{if(d.currIndex>=S.length){const D=(S.length-1-d.currIndex)*e.itemHeight;d.startDistance=d.scrollDistance,m(D,"end",0)}}),t.watch(()=>e.visible,S=>{S===!1&&g()}),t.onMounted(()=>{const S=-e.modelValue*e.itemHeight;m(S)}),{classes:a,styles:o,contentClasses:l,itemText:h,itemValue:C,...t.toRefs(d),roller:p,getItemText:Ue,onTouchStart:A,onTouchMove:N,onTouchEnd:w,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:u,stopMomentum:g}}}),Gd={key:1,class:"fox-picker__item-tile"};function Zd(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:n[4]||(n[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",Gd,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Jd=le(Qd,[["render",Zd]]);let Ft=0;const ms="fox-overflow-hidden",ps=()=>Ze?document.body:{classList:[]},_d=e=>[()=>{if(e())try{!Ft&&ps().classList.add(ms),Ft++}catch{}},()=>{if(e()&&Ft)try{Ft--,!Ft&&ps().classList.remove(ms)}catch{}}],eu={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:tu,create:nu}=_("overlay"),ou=nu({props:{...eu},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=_d(()=>e.lockScroll),l=t.computed(()=>({[tu]:!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 lu(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 ft=le(ou,[["render",lu]]),{componentName:au,create:ru}=_("popup"),su=ru(Md(au,{FoxOverLay:ft,Close:ae.Close}));function iu(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 he=le(su,[["render",iu]]),cu=t.defineComponent({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-picker__popup"}},setup(e,{slots:n}){return()=>{if(e.poppable){const a=Je({...e},{poppable:!1});return t.h(he,a,n)}else return n?.default?.()??null}}}),{create:du,componentName:hs,scope:uu}=_("picker"),fu=du({components:{Column:Jd,Wrapper:cu},props:{...dl},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=ce.useFoxI18n(uu),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Ld());t.watch(()=>e.visible,V=>{V&&s.value<=0&&setTimeout(()=>{if(r.value){const P=Pe(r.value);s.value=P.height,zd(s.value)}},50)});const i=t.computed(()=>({[hs]:!0})),c=t.computed(()=>{const V=[];return Array.isArray(e.popClass)?V.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&V.push(e.popClass),V.push(`${hs}__popup`),V.join(" ")}),u=Fd(),p=t.ref("singleColumn");let d=t.ref([]);t.watch([()=>e.source,()=>e.params],async([V,P])=>{if(V){let v=await u.load("picker",V,P);if(v.length>0){let O=v[0];if(Array.isArray(O)){if(typeof O[0]=="string"){let H=v,L=[];H.forEach(Z=>{let te=Z.map(F=>fs(F));L.push(te)}),d.value=L}else d.value=v;p.value="multipleColumn"}else if(typeof O=="string"){let H=v,L=[],Z=H.map(te=>fs(te));L.push(Z),d.value=L,p.value="singleColumn"}else{const H=ul(e,O);Array.isArray(H)?(p.value="cascade",d.value=[v]):(p.value="singleColumn",d.value=[v])}}else d.value=[]}},{immediate:!0});const h=t.ref([]),C=t.ref(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),b=t.ref([]);let g=null;const y=t.ref([]);t.watch([()=>e.modelValue,()=>d.value],([V,P])=>{let v=Kd(e,V,P,p.value);if(!xe(v,y.value)){y.value=v,g||(g=v?[...v]:[]);let O=us(e,v,P,p.value);O&&(h.value=O.texts,xe(C.value,O.values)||(C.value=O.values),xe(b.value,O.items)||(b.value=O.items),n("update:text",h.value))}});let m="";const k=t.ref(e.visible);t.watch(()=>e.visible,V=>{k.value=V,V&&(m="active",y.value.length>0&&(g=[...y.value]))});const f=V=>{let P=cs(e,V);return ve(P)?P.defaultIndex??0:0},A=V=>{if(e.readonly===!0)return!0;let P=cs(e,V);return ve(P)?P.readonly??!1:!1},N=(V,P)=>{let v=y.value;v[V]=P;for(let H=0;H<V;H++)v[H]==null&&(v[H]=f(H));if(p.value==="cascade")for(let H=V+1;H<S.value.length;H++){let L=f(H);H<v.length?v[H]=L:v.push(L)}else for(let H=v.length;H<S.value.length;H++){let L=f(H);v.push(L)}y.value=v;let O=us(e,v,d.value,p.value);O&&(h.value=O.texts,C.value=O.values,b.value=O.items)},w=V=>V<y.value.length?y.value[V]:f(V),S=t.computed(()=>{if(d.value.length==0)return[];if(p.value=="singleColumn"||p.value=="multipleColumn")return d.value;let V=[],P=0,v=d.value[0],O=0;for(;;){let H=v.map(te=>{let F=Object.assign({},te);return Od(e,F,null),F});V.push(H),P>=y.value.length?O=0:O=y.value[P],(O<0||O>=v.length)&&(O=0);let L=v[O];const Z=ul(e,L);if(!Array.isArray(Z))break;v=Z,P++}return V}),B=t.computed(()=>ge(+e.visibleItemCount-1)/2*s.value),$=(V=!1)=>{if(e.readonly===!0){V&&n("update:visible",!1);return}let P=d.value.length-1;for(;P>=0&&!(y.value[P]===null||y.value[P]===void 0);P--);if(P>=0&&N(P,0),p.value==="singleColumn"){let v=C.value.length>0?C.value[0]:"",O=b.value.length>0?b.value[0]:null;n("update:modelValue",v),n("update:text",h.value),n("change",v,O),V&&(n("confirm",v),n("update:visible",!1))}else n("update:modelValue",C.value),n("update:text",h.value),n("change",C.value,b.value),V&&(n("confirm",C.value),n("update:visible",!1))},D=(V,P)=>{if(m!=="close"&&(N(V,P),e.isAutoBackFill)){const v=!k.value;$(v)}},E=()=>{m==="active"&&(m="confirm",g=Array.isArray(y.value)?[...y.value]:[],$(!0))},U=()=>{p.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),y.value=[],g=null};return{...l,pickerLineRef:r,classes:i,popClasses:c,columns:S,dataType:p,show:k,itemHeight:s,top:B,isReadonly:A,getIndex:w,change:D,close:()=>{if(m==="active"){if(m="close",g===null||g.length===0)U();else{if(Array.isArray(g))for(let V=0;V<g.length;V++)N(V,g[V]);$(!1)}n("close"),n("update:visible",!1)}},confirm:E,clear:()=>{if(m==="active"){if(m="clear",e.readonly===!0){n("update:visible",!1);return}U(),g=null,n("clear",""),n("update:visible",!1)}}}}}),mu={key:0,class:"fox-picker__bar"},pu={class:"fox-picker__title"},hu={class:"fox-picker__bar__action"},gu={class:"fox-picker__column"};function yu(e,n,a,o,l,r){const s=t.resolveComponent("Column"),i=t.resolveComponent("Wrapper");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom","pop-class":e.popClasses,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,poppable:e.poppable},{default:t.withCtx(()=>[e.poppable?(t.openBlock(),t.createElementBlock("view",mu,[t.createElementVNode("view",pu,t.toDisplayString(e.title),1),t.createElementVNode("view",hu,[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.createCommentVNode("",!0),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",gu,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:"fox-picker__columnitem"},[t.createVNode(s,{visible:e.show,source:c,readonly:e.isReadonly(u),"column-index":u,modelValue:e.getIndex(u),"onUpdate:modelValue":p=>e.change(u,p),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["pop-class","visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable","poppable"])],2)}const Kt=le(fu,[["render",yu]]);function bu(e,n,a,o,l,r,s=!0){return{props:{...ye,...ke,...dl,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,c){const u=De(t.computed(()=>i.disabled)),p=Ee(t.computed(()=>i.readonly)),{emitEvent:d}=$e({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ce.useFoxI18n(n),C=h(i,["placeholder"]),b=t.ref(!1),g=Le(i,"modelValue",null,d),y=t.ref([]),m=t.computed(()=>Array.isArray(y.value)?y.value.join(i.separator):y.value),k="fox-input-item",f=t.computed(()=>({[k]:!0,"is-disabled":u.value,"is-readonly":p.value})),A=Ve(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const j={};return A.value&&(j["text-align"]=A.value),j}),w=t.ref(!1),S=()=>{w.value=!0},B=j=>{w.value=j},$=j=>{g.value=j,d("update:modelValue",j)},D=(j,M)=>{d("change",j,M)},E=j=>{let G=j.target.value;b.value=!0,d("focus",G,j)},U=j=>{setTimeout(()=>{b.value=!1},0);let G=j.target.value;i.maxLength&&G.length>Number(i.maxLength)&&(G=G.slice(0,Number(i.maxLength))),d("blur",G,j)},J=j=>{y.value=j,Array.isArray(j)&&j.length===0?d("update:text",j[0]):d("update:text",j)},I=t.computed(()=>({[`${k}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),V=t.computed(()=>Ce(i.unit)>0),P=t.computed(()=>Ce(i.unit)>0&&!b.value),v=t.computed(()=>({hidden:!P.value})),O=j=>{g.value="",d("update:modelValue","",j),d("change","",j),d("clear","")},H=t.computed(()=>i.clearable&&!u.value&&!p.value),L=t.computed(()=>Ce(g.value)>0&&b.value),Z=j=>{L.value?O(j):S()},te=t.computed(()=>L.value&&H.value?o:l),F=t.computed(()=>({action:!0}));return()=>{const j={class:f.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:C.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:S,onFocus:E,onBlur:U};s&&(j.disabled=!0);const M=[],G=t.h("input",j);M.push(G);const R=[],K={class:["action-icon"]},ee=t.h(te.value,K),Q={class:F.value,onClick:Z},ne=t.h("view",Q,{default:()=>[ee]});if(R.push(ne),V.value){const re=t.h("view",{class:v.value},[i.unit]);R.push(re)}const z={class:I.value},X=t.h("view",z,{default:()=>R});M.push(X);const q={default:()=>M};q.label=c.slots.default,q.prepend=c.slots.prepend,q.append=c.slots.append,q.fixedPreTip=c.slots.fixedPreTip,q.fixedTip=c.slots.fixedTip;const x=be(i,dl);x.disabled=!1,x.readonly=u.value||p.value,x.visible=w.value,x["onUpdate:visible"]=B,x.modelValue=g.value,x["onUpdate:modelValue"]=$,x.text=y.value,x["onUpdate:text"]=J,x.onChange=D;const Y=t.h(r,x);q.hide=()=>[Y];const W=be(i,ke,ye);return i.prop&&(W.prop=`${i.prop}_item`),t.h(a,W,q)}}}}const{componentName:ku,create:Su,scope:Cu}=_("picker-item"),fl=Su(bu(ku,Cu,Ae,ae.CircleClose,ae.ArrowRight,Kt,!1)),wu=t.defineComponent({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:a}){return()=>{if(e.poppable){const o={...a};return t.h(he,o,n)}else return n?.default?.()??null}}}),Hn=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:u,...p}=o,d={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:u,_parent:n};return d.children&&d.children.length&&(d.children=Hn(d.children,d,a)),d}),gs=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&gs(o.children,n)},Nu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Bu=(e,n)=>{const a={...Nu,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(u=>{u={...u};const{[l]:p,[r]:d}=u,h=c[d]=c[d]||[];!i.length&&d===o&&(i=h),h.push(u),u.children=c[p]||(c[p]=[])}),s&&Object.keys(c).forEach(u=>{c[u].length>1&&c[u].sort((p,d)=>p[s]-d[s])}),c=null,i},ml={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},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},ys=(e,n)=>n[e.textKey],Ut=(e,n)=>n[e.valueKey],Au=(e,n)=>n[e.visibleKey],bs=(e,n)=>n[e.disabledKey],Tu=(e,n)=>{const a=n[e.doitKey];return Se(a)},$u=(e,n)=>{const a=n[e.numKey];return a==null?null:ge(n[a])},ks=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function Vu(e,n,a,o,l,r=!1){return{props:{...ml},emits:["update:modelValue","change","click"],setup(s,{slots:i,emit:c}){const u=t.computed(()=>{const q={};return q[`${e}`]=!0,q}),p=t.computed(()=>{const q={};return q[`${e}__titles`]=!0,q[`${s.direction}`]=!0,s.align==="left"&&(q.left=!0),s.scroll===!0&&(q.scrollable=!0),s.shape&&(q[`${s.shape}`]=!0),s.showScrollArrow?(G.value===!0&&(q["has-left-scroll-arrow "]=!0),R.value===!0&&(q["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(q["has-navigation"]=!0),q}),d=t.computed(()=>({})),h=t.computed(()=>{if(!s.gutter)return 0;const q=fe(s.gutter);return q<=0?0:q}),C=t.ref(s.modelValue);t.watch(()=>s.modelValue,q=>{C.value!==q&&(C.value=q,H(!1))});const b=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),g=t.computed(()=>{const q={};return m.value||(q.display="none"),q}),y=t.ref(),m=t.ref(!1),k=()=>{const q=!m.value;f(q)},f=q=>{const x=q;x?(m.value=x,setTimeout(()=>{b.value["fox-tabs-bar__popup--show"]=!0,b.value["fox-tabs-bar__popup--hide"]=!1},0)):(b.value["fox-tabs-bar__popup--show"]=!1,b.value["fox-tabs-bar__popup--hide"]=!0,y.value?y.value.addEventListener("transitionend",()=>{m.value=!1},{once:!0}):setTimeout(()=>{m.value=!1},0))},A=t.ref(),N=t.ref([]),w=(q,x)=>{N.value[x]=q},S=q=>x=>{w(x,q)},B=(q,x)=>{const Y=A.value,W=N.value;if(!Y||!W||!W[q])return;const oe=W[q];let re=0;s.direction==="vertical"?re=oe.offsetTop-(Y.offsetHeight-oe.offsetHeight)/2:re=oe.offsetLeft-(Y.offsetWidth-oe.offsetWidth)/2,$(Y,re,x?0:.3,s.direction)},$=(q,x,Y,W)=>{let oe=0;const re=W==="horizontal"?q.scrollLeft:q.scrollTop,se=Y===0?1:Math.round(Y*1e3/16);function pe(){W==="horizontal"?q.scrollLeft+=(x-re)/se:q.scrollTop+=(x-re)/se,++oe<se&&je(pe)}pe()},D=(q,x)=>{const Y=Ut(s,q),W={};return W[`${e}__titles-item`]=!0,W.disabled=bs(s,q),W.active=Y===C.value,s.shape&&(W[`${s.shape}`]=!0),s.ellipsis&&(W.ellipsis=!0),x&&(x.class&&(W[`${x.class}`]=!0),x.disabled===!0&&(W.disabled=x.disabled)),W},E=(q,x)=>{const Y={};if(h.value>0){const W=Math.abs(h.value/2);s.direction==="vertical"?(Y["margin-top"]=`${W}px`,Y["margin-bottom"]=`${W}px`):(Y["margin-left"]=`${W}px`,Y["margin-right"]=`${W}px`)}return x&&x.style&&Object.assign(Y,x.style),Y},U=(q,x)=>`${Ut(s,q)??x}`,J=(q,x)=>{const Y=Ut(s,q),W={};W[`${e}__popup-item`]=!0,W.disabled=bs(s,q),W.active=Y===C.value,s.shape&&(W[`${s.shape}`]=!0);const oe=ks(s,q,x);return oe&&oe.disabled===!0&&(W.disabled=oe.disabled),W},I=t.computed(()=>(s.data??[]).filter(x=>Au(s,x)!==!1)),V=(q,x)=>{const Y=Ut(s,q);if(c("click",q,x),C.value==Y)return;const W=()=>{C.value=Y,s.scroll&&B(x,!1),c("update:modelValue",Y),c("change",q,x)};if(typeof s.beforeChange=="function"){const oe=s.beforeChange(q,x);pt(oe)?oe.then(re=>{re!==!1&&W()}).catch(()=>{W()}):oe!==!1&&W()}else W()},P=(q,x)=>function(){V(q,x)},v=(q,x)=>{V(q,x),f(!1)},O=(q,x)=>function(){v(q,x)},H=q=>{if(!Array.isArray(s.data)||!s.scroll)return;M()&&ne();const x=s.data.findIndex(Y=>Ut(s,Y)===C.value);x!==-1&&B(x,q)},L=()=>{M()||z()};t.watch(()=>s.data,()=>{setTimeout(H,0)}),t.onMounted(()=>{H(!0)}),t.onBeforeUnmount(()=>{L()});const Z=(q,x)=>{if(i.item)return i.item({item:q,index:x});const Y=ks(s,q,x),W=[];if(i.text){const pe=i.text({item:q,index:x});W.push(pe)}else{const pe=[];if(Y?.doit===!0||Tu(s,q)){const Qe={class:[`${e}__titles-item-tip`,"doit"]},vt=t.h("view",Qe);pe.push(vt)}const Be=Y?.num??$u(s,q);if(Be){let Qe="";const vt=ge(Be);vt>=100?Qe="99+":Qe=`${vt}`;const sr={class:[`${e}__titles-item-tip`,"num"]},aT=t.h("view",sr,[Qe]);pe.push(aT)}const at={class:`${e}__titles-item-text`};pe.push(ys(s,q));const rt=t.h("view",at,pe);W.push(rt)}const oe={class:`${e}__titles-item-line`},re=t.h("view",oe);W.push(re);const se={ref:S(x),class:D(q,Y),style:E(q,Y),key:U(q,x),onClick:P(q,x)};return t.h("view",se,W)},te=()=>{const q=i.default?i.default():[];if(q.length===0)for(let Y=0;Y<I.value.length;Y++){const W=I.value[Y],oe=Z(W,Y);q.push(oe)}const x={ref:A,class:p.value,style:d.value};return t.h("view",x,q)},F=()=>{let q=null;i.navigation?q=i.navigation():q=t.h(a);const x={class:`${e}__navigation`,onClick:k};return t.h("view",x,[q])},j=()=>{const q=[];for(let Y=0;Y<I.value.length;Y++){const W=I.value[Y];let oe=null;i.popupItem?oe=i.popupItem({item:W,index:Y}):oe=ys(s,W);const re={class:J(W,Y),key:U(W,Y),onClick:O(W,Y)},se=t.h("view",re,[oe]);q.push(se)}const x={class:b.value,style:g.value};return t.h("view",x,q)},M=()=>s.showScrollArrow&&s.direction=="horizontal",G=t.ref(!1),R=t.ref(!1),K=q=>{const x=A.value,Y=N.value;if(!(!x||!Y))if(q==="left"){const W=x.scrollLeft;let oe=W;for(let re=0;re<Y.length;re++){const se=Y[re].offsetLeft;if(W-se<0)break;oe=se}$(x,oe,.3,"horizontal")}else{const W=x.scrollLeft;let oe=W,re=x.offsetWidth;for(let se=Y.length-1;se>=0;se--){const pe=Y[se].offsetLeft+Y[se].offsetWidth;if(pe-W<x.offsetWidth){oe+=re-pe;break}re=pe}$(x,oe,.3,"horizontal")}},ee=Me(()=>{const q=A.value;if(!q)return;let x=q.scrollLeft>0;x!==G.value&&(G.value=x);let Y=q.scrollWidth-q.scrollLeft>q.offsetWidth;Y!==R.value&&(R.value=Y)},50),Q=q=>{ee()},ne=()=>{const q=A.value;q&&(ee(),q.addEventListener("scroll",Q))},z=()=>{const q=A.value;q&&q.removeEventListener("scroll",Q)},X=q=>{if(q==="left"&&G.value!==!0||q==="right"&&R.value!==!0)return null;let x=null;q==="left"?i.leftArrow?x=i.leftArrow():x=t.h(o):i.rightArrow?x=i.rightArrow():x=t.h(l);const Y={class:[`${e}__scroll-arrow`,q],onClick:()=>{K(q)}};return t.h("view",Y,[x])};return()=>{const q=[],x=te();if(q.push(x),M()){const W=X("left");W&&q.push(W);const oe=X("right");oe&&q.push(oe)}else if(s.showQuickNavigation){const W=F();q.push(W);const oe=j();q.push(oe)}const Y={class:u.value};return t.h("view",Y,q)}}}}const{create:Eu,componentName:Du,scope:Iu}=_("tabs-bar"),Ht=Eu(Vu(Du,Iu,ae.MoreH,ae.Left,ae.Right,!1)),Ss=Symbol("TabsStatesKey"),pl={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},height:{type:[String,Number]},width:{type:[String,Number]}},vu=15,xu=300,qu=200;function Pu(e,n,a=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*a}function Cs(e,n=0,a,o,l=qu){a==="end"?e.style.transition=`transform ${l}ms linear`:e.style.transition="transform 0ms linear",o==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}let Mu=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(n,a,o,l=1,r){this.onStart=n,this.onMove=a,this.onEnd=o,this.momentumReduceRatio=l,this.isTouch=r??Kn()}open(n){this.el=n;const a=Un(),o=(l,r,s)=>{const i={delta:l,direction:r,type:s};this.onMove(i)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;a.start(l),this.transitionEndTrigger=()=>{n.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,n.addEventListener("transitionend",this.transitionend),n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.addEventListener("touchcancel",this.touchend);const r={delta:0,type:"start",direction:this.direction};this.onStart(r)},this.touchmove=l=>{if(!this.moving)return;a.move(l);let r=0;if(this.direction==="horizontal"){if(a.isVertical())return;r=a.state.deltaX}else{if(a.isHorizontal())return;r=a.state.deltaY}o(r,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;n.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(a.isVertical()){this.moving=!1;return}l=a.state.deltaX}else{if(a.isHorizontal()){this.moving=!1;return}l=a.state.deltaY}const r=a.state.duration;r<xu&&Math.abs(l)>vu?(l=Pu(l,r,this.momentumReduceRatio),o(l,this.direction,"end")):o(l,this.direction,"end")},n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const n=this.el;this.transitionend&&n.addEventListener("transitionend",this.transitionend),this.touchstart&&n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&n.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Lu(e,n,a,o=1,l){return new Mu(e,n,a,o,l)}function zu(e,n,a=!1){return{props:{...pl},emits:["update:modelValue","change"],setup(o,{emit:l,slots:r}){const s=t.shallowRef([]),i={current:t.ref(o.modelValue??""),direction:t.ref(o.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:S=>{const B={name:S};i.current.value===S&&(B.loaded=!0),s.value.push(B),t.triggerRef(s)},remove:S=>{const B=s.value.findIndex($=>$.name===S);B!==-1&&s.value.splice(B,1)},isLoaded:S=>{if(!o.lazy)return!0;const B=s.value.findIndex($=>$.name===S);return B!==-1?i.current.value?s.value[B].loaded??!1:B===0:!1}};t.provide(Ss,i);const c=S=>{const B=s.value.findIndex($=>$.name===S);B!==-1&&(s.value[B].loaded=!0,t.triggerRef(s))};t.watch([()=>o.modelValue,()=>o.direction],([S,B])=>{i.current.value!==S&&(i.current.value=S??"",c(S??"")),i.direction.value!==B&&(i.direction.value=B)});const u=t.ref(null),p=t.ref(null),d=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0})),h=t.computed(()=>{const S={};if(o.width){const B=me(o.width);B&&(S.width=B)}if(o.height){const B=me(o.height);B&&(S.height=B)}return S});let C=!0;const b=t.computed(()=>{const S={},B=s.value.length;if(B<=0)return S;const $=s.value.findIndex(D=>D.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(S.height=`${B*i.tabHeight.value}px`,$!==-1&&(S.transform=`translate(0, -${$*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(S.width=`${B*i.tabWidth.value}px`,$!==-1&&(S.transform=`translate(-${$*i.tabWidth.value}px, 0)`)),C&&(C=!1,S.transition="transform 0s ease"),S}),g={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},y=S=>{const B=s.value.length,$=s.value.findIndex(D=>D.name===i.current.value);g.moved=0,S.direction==="vertical"?(g.min=-1*(i.tabHeight.value*(B-1)+i.tabHeight.value/4),g.max=i.tabHeight.value/4,g.start=-$*i.tabHeight.value,g.itemDistance=i.tabHeight.value):(g.min=-1*(i.tabWidth.value*(B-1)+i.tabWidth.value/4),g.max=i.tabWidth.value/4,g.start=-$*i.tabWidth.value,g.itemDistance=i.tabWidth.value)},m=S=>{const B=p.value;if(!B)return;let $=g.start+S.delta;if($>g.max?$=g.max:$<g.min&&($=g.min),S.type==="move")Cs(B,$,"move",S.direction,300);else if(S.type==="end"){let D=Math.floor(Math.abs($)*1/g.itemDistance);const E=Math.abs($)%g.itemDistance;g.start>$?E>=g.itemDistance*g.triggerAutoMoveRatio&&(D+=1):E>g.itemDistance-g.itemDistance*g.triggerAutoMoveRatio&&(D+=1),$=-1*D*g.itemDistance,Cs(B,$,"end",S.direction,300),g.moved=$;const U=s.value[D].name;i.current.value=U??"",c(U??""),l("update:modelValue",U)}},k=()=>{},f=()=>{if(!u.value)return;const S=Vn(u.value);i.tabWidth.value=S.width,i.tabHeight.value=S.height},A=bn(f,120);let N=null,w=null;return t.onMounted(()=>{u.value&&(f(),window.ResizeObserver&&(w=new window.ResizeObserver(A),w.observe(u.value)),o.draggle&&(N=Lu(y,m,k),N.open(p.value)))}),t.onBeforeUnmount(()=>{w&&(w.disconnect(),w=null),N&&N.close()}),Ie({doLayout(){f()}}),()=>{const S={class:`${e}__panes`,style:b.value,ref:p},B=t.h("view",S,[r?.default?.()]),$={class:d.value,style:h.value,ref:u};return t.h("view",$,[B])}}}}const{create:Ou,componentName:Ru,scope:Fu}=_("tabs-container"),jt=Ou(zu(Ru,Fu,!1)),Ku={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function Uu(e,n,a){return{props:{...Ku},setup(o,{emit:l,slots:r}){const s=t.inject(Ss);t.onMounted(()=>{s.add(o.paneKey)}),t.onBeforeUnmount(()=>{s.remove(o.paneKey)});const i=t.computed(()=>{const u={};return s.direction.value==="vertical"&&s.tabHeight.value>0?u.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(u.width=`${s.tabWidth.value}px`),u}),c=t.computed(()=>o.loaded!=null?Se(o.loaded):s.isLoaded(o.paneKey));return()=>{let u=[];if(c.value)u=r?.default?.()??[];else if(r.empty)u=r.empty();else{const d={class:`${e}__empty-icon`},h=o.emptyIcon??a,C=t.h(h,d),b={class:`${e}__empty-text`},g=o.emptyText??"Loading",y=t.h("view",b,[g]),m={class:`${e}__empty`},k=t.h("view",m,[C,y]);u.push(k)}const p={class:`${e}`,style:i.value,prop:o.paneKey};return t.h("view",p,u)}}}}const{create:Hu,componentName:ju,scope:Wu}=_("tabs-pane"),jn=Hu(Uu(ju,Wu,ae.Loading));class ws{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=Hn(n,null,this.config)}updateChildren(n,a){a?a.children=Hn(n,a,this.config):this.nodes=Hn(n,null,this.config)}getNodeByValue(n){let a;return gs(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:Yu,scope:Xu}=_("cascader-pane"),Qu=Yu({components:{Loading:ae.Loading,Checklist:ae.Checklist,TabsBar:Ht,TabsContainer:jt,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}=ce.useFoxI18n(Xu),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(),s=t.ref(!1),i=t.ref(e.modelValue),c=t.ref(new ws([],{})),u=t.ref([]),p=t.computed(()=>o.value.lazy&&!!o.value.lazyLoad),d=t.computed(()=>s.value==!0||u.value.length==0?[{text:"Loading",value:0}]:u.value.map((f,A)=>({text:f.selectedNode?f.selectedNode.text:a("select"),value:A}))),h=new Map;let C;const b=async()=>{h.clear(),u.value=[],l.value=0,s.value=!1,C=null;let{options:f}=e;o.value.convertConfig&&(f=Bu(f,o.value.convertConfig)),c.value=new ws(f,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),p.value&&!c.value.nodes.length&&await y({root:!0,loading:!0,text:"",value:""}),u.value=[{nodes:c.value.nodes,selectedNode:null}],g(!p.value)},g=async(f=!0)=>{const A=i.value;if(A===void 0||!c.value.nodes.length)return;if(A.length===0){l.value=0,u.value=[{nodes:c.value.nodes,selectedNode:null}];return}let N=A;if(p.value&&Array.isArray(A)&&A.length){N=[];let w=c.value.nodes.find(S=>S.value===A[0]);if(w){N=[w.value],s.value=!0;const S=await A.slice(1).reduce(async(B,$)=>{const D=await B;await y(D);const E=D?.children?.find(U=>U.value===$);return E&&N.push($),Promise.resolve(E)},Promise.resolve(w));await y(S),s.value=!1}}N.length&&A===e.modelValue&&c.value.getPathNodesByValue(N).map((S,B)=>{l.value=B,k.handleNode(S,f)})},y=async f=>{if(!f)return;if(!o.value.lazyLoad){f.leaf=!0;return}if(c.value.isLeaf(f,p.value)||c.value.hasChildren(f,p.value))return;f.loading=!0;const A=f.root?null:f;let N=h.get(f);N||(N=new Promise(S=>{o.value.lazyLoad?.(f,S)}),h.set(f,N));const w=await N;Array.isArray(w)&&w.length>0?c.value.updateChildren(w,A):f.leaf=!0,f.loading=!1,h.delete(f)},m=f=>{const A=f.map(N=>N.value);i.value=A,n("change",A,f),n("pathChange",f),n("update:modelValue",A)},k={async handleNode(f,A){const{disabled:N,loading:w}=f;if(!(!A&&N||!u.value[l.value])){if(c.value.isLeaf(f,p.value)){if(f.leaf=!0,u.value[l.value].selectedNode=f,u.value=u.value.slice(0,f.level+1),!A){const S=u.value.map(B=>B.selectedNode);m(S),n("pathChange",S)}return}if(c.value.hasChildren(f,p.value)){const S=f.level+1;if(u.value[l.value].selectedNode=f,u.value=u.value.slice(0,S),u.value.push({nodes:f.children||[],selectedNode:null}),l.value=S,!A){const B=u.value.map($=>$.selectedNode);n("pathChange",B)}return}C=f,!w&&(await y(f),C===f&&(u.value[l.value].selectedNode=f,k.handleNode(f,A)))}},handleTabChange(f,A){C=null},formatTabTitle(f){return f.selectedNode?f.selectedNode.text:a("select")},isSelected(f,A){return f.selectedNode&&f.selectedNode.value===A.value}};return t.watch([o,()=>e.options],()=>{b()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,f=>{xe(f,i.value)||(i.value=f,g(!p.value))}),t.watch(()=>e.visible,f=>{f&&Array.isArray(i.value)&&i.value.length>0&&g(),f&&r.value&&setTimeout(()=>{r.value.doLayout()},0)}),{panes:u,panesTitles:d,initLoading:s,tabsCursor:l,tabsContainerRef:r,...k}}}),Gu={class:"fox-cascader"},Zu={role:"menu",class:"fox-cascader__pane"},Ju=["aria-checked","aria-disabled","onClick"],_u={class:"fox-cascader__item__title"};function ef(e,n,a,o,l,r){const s=t.resolveComponent("TabsBar"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),u=t.resolveComponent("TabsPane"),p=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",Gu,[t.createVNode(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=d=>e.tabsCursor=d),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(p,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=d=>e.tabsCursor=d)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(d,h)=>(t.openBlock(),t.createBlock(u,{"pane-key":h,key:h},{default:t.withCtx(()=>[t.createElementVNode("view",Zu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,C=>(t.openBlock(),t.createElementBlock("view",{key:C.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,C),disabled:C.disabled}]),"aria-checked":e.isSelected(d,C),"aria-disabled":C.disabled||void 0,role:"menuitemradio",onClick:b=>e.handleNode(C,!1)},[t.createElementVNode("view",_u,t.toDisplayString(C.text),1),C.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,Ju))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(u,{key:1,"pane-key":0},{default:t.withCtx(()=>[...n[2]||(n[2]=[t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}const tf=le(Qu,[["render",ef]]),{create:nf}=_("cascader"),of=nf({components:{CascaderPane:tf,Wrapper:wu},props:{...Ke,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}}}),lf=["innerHTML"];function af(e,n,a,o,l,r){const s=t.resolveComponent("CascaderPane"),i=t.resolveComponent("Wrapper");return t.openBlock(),t.createBlock(i,{poppable:e.poppable,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(()=>[t.renderSlot(e.$slots,"header",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,lf)):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"])]),_:3},8,["poppable","visible","closeable","close-icon-position"])}const Wn=le(of,[["render",af]]);function Ct(e,n){const a=e.textKey??"text";return n[a]??""}function wt(e,n){const a=e.valueKey??"value";return n[a]}function Ns(e,n){const a=e.childrenKey??"children";return n[a]}function Yn(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=Ct(e,l),s=wt(e,l);a.texts.push(r),a.values.push(s??"")}return a}function Bs(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Ct(e,n[s])===r){const c=wt(e,n[s])??"",u={[e.textKey]:r,[e.valueKey]:c};l.push(u);const p=Ns(e,n[s]);Array.isArray(p)&&Bs(e,p,a,o+1,l);return}}function As(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(wt(e,n[s])===r){const c=Ct(e,n[s])??"",u={[e.textKey]:c,[e.valueKey]:r};l.push(u);const p=Ns(e,n[s]);Array.isArray(p)&&As(e,p,a,o+1,l);return}}function hl(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++){const l=Ct(e,n[o]),r=Ct(e,a[o]);if(l!==r)return!1;const s=wt(e,n[o]),i=wt(e,a[o]);if(s!==i)return!1}return!0}let rf=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=tt(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(ve(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await r(n,a,o))}};function sf(){const e=t.getCurrentInstance();return new rf(e.proxy)}const Ts={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 cf(e,n,a,o,l,r,s=!1){return{props:{...ye,...ke,...Ts},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(i,c){const u=De(t.computed(()=>i.disabled)),p=Ee(t.computed(()=>i.readonly)),{emitEvent:d}=$e({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ce.useFoxI18n(n),C=h(i,["placeholder"]),b=t.ref(!1),g=sf(),y=t.ref([]),m=t.ref([]),k=t.computed(()=>{if(Array.isArray(m.value)){if(i.showAllLevels===!1){const K=m.value.length-1;return m.value[K]}return m.value.join(i.separator)}else return m.value}),f=t.ref([]),A=t.ref([]);t.watch([()=>i.modelValue,()=>y.value],async([K,ee])=>{if(d("setValue",K),i.lazy===!0){A.value.length==0&&(f.value=Array.isArray(K)?K:[]);return}if(i.valueType==="item"){let Q=K;if(!hl(i,Q,A.value)){A.value=Q;let ne=Yn(i,Q);m.value=ne.texts,f.value=ne.values}}else if(i.valueType==="text"){let Q=K,ne=[];if(Bs(i,ee,Q,0,ne),!hl(i,ne,A.value)){A.value=ne;let z=Yn(i,ne);Q.value=z.texts,f.value=z.values}}else{let Q=[];if(As(i,ee,K,0,Q),!hl(i,Q,A.value)){A.value=Q;let ne=Yn(i,Q);m.value=ne.texts,f.value=ne.values}}}),i.lazy===!0&&(f.value=Array.isArray(i.modelValue)?i.modelValue:[]),t.watch([()=>i.source,()=>i.params],async([K,ee])=>{i.lazy||K&&(y.value=await g.load(K,ee))},{immediate:!0});const N="fox-input-item",w=t.computed(()=>({[N]:!0,"is-disabled":u.value,"is-readonly":p.value})),S=Ve(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const K={};return S.value&&(K["text-align"]=S.value),K}),$=t.ref(!1),D=()=>{u.value===!0||p.value===!0||($.value=!0)},E=K=>{$.value=K},U=(K,ee)=>{let Q=ee.map(z=>{if(z==null)return z;let X={...z};return Reflect.deleteProperty(X,"text"),X[i.textKey]=z.text??"",Reflect.deleteProperty(X,"value"),X[i.valueKey]=z.value??"",X});A.value=Q;let ne=Yn(i,Q);m.value=ne.texts,f.value=ne.values,i.valueType==="text"?(d("change",m.value,Q),d("update:modelValue",m.value)):i.valueType==="item"?(d("change",Q,Q),d("update:modelValue",Q)):(d("change",f.value,Q),d("update:modelValue",f.value)),d("update:pathNodes",Q)},J=K=>{let ee=K.map(Q=>{if(Q==null)return Q;let ne={...Q};return Reflect.deleteProperty(ne,"text"),ne[i.textKey]=Q.text??"",Reflect.deleteProperty(ne,"value"),ne[i.valueKey]=Q.value??"",ne});d("pathChange",ee)},I=K=>{b.value=!0,d("focus",f.value,K)},V=K=>{setTimeout(()=>{b.value=!1},0),d("blur",f.value,K)},P=t.computed(()=>({[`${N}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),v=t.computed(()=>Ce(i.unit)>0),O=t.computed(()=>Ce(i.unit)>0&&!b.value),H=t.computed(()=>({hidden:!O.value})),L=K=>{A.value=[],m.value=[],f.value=[],d("update:modelValue",[]),d("change",[],K),d("clear",[]),d("update:pathNodes",[])},Z=t.computed(()=>i.clearable&&!u.value&&!p.value),te=t.computed(()=>{let K=f.value&&f.value.length>0;return i.clearable&&K&&b.value}),F=K=>{te.value?L(K):D()},j=t.computed(()=>te.value&&Z.value?o:l),M=t.computed(()=>({action:!0}));let G=null;const R=()=>typeof G=="function"?G:typeof i.lazyLoad=="function"?i.lazyLoad:(G=async(K,ee)=>{const Q=[],ne=[];let z=0;if(!K.root){let q=K;for(;q;){const x=Ct(i,q),Y=wt(i,q);ne.splice(0,0,x),Q.splice(0,0,Y),q=q._parent}z=Q.length}const X=await g.load(i.source,{...K,level:z,pathLabels:ne,pathValues:Q},!0);ee(X)},G);return()=>{const K={class:w.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:C.placeholder.value,readonly:!0,unselectable:"on",value:k.value,onClick:D,onFocus:I,onBlur:V};s&&(K.disabled=!0);const ee=[],Q=t.h("input",K);ee.push(Q);const ne=[],z={class:["action-icon"]},X=t.h(j.value,z),q={class:M.value,onClick:F},x=t.h("view",q,{default:()=>[X]});if(ne.push(x),v.value){const Qe=t.h("view",{class:H.value},[i.unit]);ne.push(Qe)}const Y={class:P.value},W=t.h("view",Y,{default:()=>ne});ee.push(W);const oe={default:()=>ee};oe.label=c.slots.default,oe.prepend=c.slots.prepend,oe.append=c.slots.append,oe.fixedPreTip=c.slots.fixedPreTip,oe.fixedTip=c.slots.fixedTip;const re={};re.visible=$.value,re["onUpdate:visible"]=E,re.modelValue=f.value,re.onChange=U,re.onPathChange=J,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=R()):re.options=y.value;const se={};se.header=c.slots.header;const pe=t.h(r,re,se);oe.hide=()=>[pe];const at={...Je(i,Ts)};return i.prop&&(at.prop=`${i.prop}_item`),t.h(a,at,oe)}}}}const{componentName:df,create:uf,scope:ff}=_("cascader-item"),gl=uf(cf(df,ff,Ae,ae.CircleClose,ae.ArrowRight,Wn,!1));function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xn={exports:{}},mf=Xn.exports,$s;function pf(){return $s||($s=1,(function(e,n){(function(a,o){e.exports=o()})(mf,(function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",u="day",p="week",d="month",h="quarter",C="year",b="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,k={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("_"),ordinal:function(I){var V=["th","st","nd","rd"],P=I%100;return"["+I+(V[(P-20)%10]||V[P]||V[0])+"]"}},f=function(I,V,P){var v=String(I);return!v||v.length>=V?I:""+Array(V+1-v.length).join(P)+I},A={s:f,z:function(I){var V=-I.utcOffset(),P=Math.abs(V),v=Math.floor(P/60),O=P%60;return(V<=0?"+":"-")+f(v,2,"0")+":"+f(O,2,"0")},m:function I(V,P){if(V.date()<P.date())return-I(P,V);var v=12*(P.year()-V.year())+(P.month()-V.month()),O=V.clone().add(v,d),H=P-O<0,L=V.clone().add(v+(H?-1:1),d);return+(-(v+(P-O)/(H?O-L:L-O))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:d,y:C,w:p,d:u,D:b,h:c,m:i,s,ms:r,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},N="en",w={};w[N]=k;var S="$isDayjsObject",B=function(I){return I instanceof U||!(!I||!I[S])},$=function I(V,P,v){var O;if(!V)return N;if(typeof V=="string"){var H=V.toLowerCase();w[H]&&(O=H),P&&(w[H]=P,O=H);var L=V.split("-");if(!O&&L.length>1)return I(L[0])}else{var Z=V.name;w[Z]=V,O=Z}return!v&&O&&(N=O),O||!v&&N},D=function(I,V){if(B(I))return I.clone();var P=typeof V=="object"?V:{};return P.date=I,P.args=arguments,new U(P)},E=A;E.l=$,E.i=B,E.w=function(I,V){return D(I,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var U=(function(){function I(P){this.$L=$(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[S]=!0}var V=I.prototype;return V.parse=function(P){this.$d=(function(v){var O=v.date,H=v.utc;if(O===null)return new Date(NaN);if(E.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var L=O.match(y);if(L){var Z=L[2]-1||0,te=(L[7]||"0").substring(0,3);return H?new Date(Date.UTC(L[1],Z,L[3]||1,L[4]||0,L[5]||0,L[6]||0,te)):new Date(L[1],Z,L[3]||1,L[4]||0,L[5]||0,L[6]||0,te)}}return new Date(O)})(P),this.init()},V.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},V.$utils=function(){return E},V.isValid=function(){return this.$d.toString()!==g},V.isSame=function(P,v){var O=D(P);return this.startOf(v)<=O&&O<=this.endOf(v)},V.isAfter=function(P,v){return D(P)<this.startOf(v)},V.isBefore=function(P,v){return this.endOf(v)<D(P)},V.$g=function(P,v,O){return E.u(P)?this[v]:this.set(O,P)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(P,v){var O=this,H=!!E.u(v)||v,L=E.p(P),Z=function(ee,Q){var ne=E.w(O.$u?Date.UTC(O.$y,Q,ee):new Date(O.$y,Q,ee),O);return H?ne:ne.endOf(u)},te=function(ee,Q){return E.w(O.toDate()[ee].apply(O.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(Q)),O)},F=this.$W,j=this.$M,M=this.$D,G="set"+(this.$u?"UTC":"");switch(L){case C:return H?Z(1,0):Z(31,11);case d:return H?Z(1,j):Z(0,j+1);case p:var R=this.$locale().weekStart||0,K=(F<R?F+7:F)-R;return Z(H?M-K:M+(6-K),j);case u:case b:return te(G+"Hours",0);case c:return te(G+"Minutes",1);case i:return te(G+"Seconds",2);case s:return te(G+"Milliseconds",3);default:return this.clone()}},V.endOf=function(P){return this.startOf(P,!1)},V.$set=function(P,v){var O,H=E.p(P),L="set"+(this.$u?"UTC":""),Z=(O={},O[u]=L+"Date",O[b]=L+"Date",O[d]=L+"Month",O[C]=L+"FullYear",O[c]=L+"Hours",O[i]=L+"Minutes",O[s]=L+"Seconds",O[r]=L+"Milliseconds",O)[H],te=H===u?this.$D+(v-this.$W):v;if(H===d||H===C){var F=this.clone().set(b,1);F.$d[Z](te),F.init(),this.$d=F.set(b,Math.min(this.$D,F.daysInMonth())).$d}else Z&&this.$d[Z](te);return this.init(),this},V.set=function(P,v){return this.clone().$set(P,v)},V.get=function(P){return this[E.p(P)]()},V.add=function(P,v){var O,H=this;P=Number(P);var L=E.p(v),Z=function(j){var M=D(H);return E.w(M.date(M.date()+Math.round(j*P)),H)};if(L===d)return this.set(d,this.$M+P);if(L===C)return this.set(C,this.$y+P);if(L===u)return Z(1);if(L===p)return Z(7);var te=(O={},O[i]=o,O[c]=l,O[s]=a,O)[L]||1,F=this.$d.getTime()+P*te;return E.w(F,this)},V.subtract=function(P,v){return this.add(-1*P,v)},V.format=function(P){var v=this,O=this.$locale();if(!this.isValid())return O.invalidDate||g;var H=P||"YYYY-MM-DDTHH:mm:ssZ",L=E.z(this),Z=this.$H,te=this.$m,F=this.$M,j=O.weekdays,M=O.months,G=O.meridiem,R=function(Q,ne,z,X){return Q&&(Q[ne]||Q(v,H))||z[ne].slice(0,X)},K=function(Q){return E.s(Z%12||12,Q,"0")},ee=G||function(Q,ne,z){var X=Q<12?"AM":"PM";return z?X.toLowerCase():X};return H.replace(m,(function(Q,ne){return ne||(function(z){switch(z){case"YY":return String(v.$y).slice(-2);case"YYYY":return E.s(v.$y,4,"0");case"M":return F+1;case"MM":return E.s(F+1,2,"0");case"MMM":return R(O.monthsShort,F,M,3);case"MMMM":return R(M,F);case"D":return v.$D;case"DD":return E.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return R(O.weekdaysMin,v.$W,j,2);case"ddd":return R(O.weekdaysShort,v.$W,j,3);case"dddd":return j[v.$W];case"H":return String(Z);case"HH":return E.s(Z,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return ee(Z,te,!0);case"A":return ee(Z,te,!1);case"m":return String(te);case"mm":return E.s(te,2,"0");case"s":return String(v.$s);case"ss":return E.s(v.$s,2,"0");case"SSS":return E.s(v.$ms,3,"0");case"Z":return L}return null})(Q)||L.replace(":","")}))},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(P,v,O){var H,L=this,Z=E.p(v),te=D(P),F=(te.utcOffset()-this.utcOffset())*o,j=this-te,M=function(){return E.m(L,te)};switch(Z){case C:H=M()/12;break;case d:H=M();break;case h:H=M()/3;break;case p:H=(j-F)/6048e5;break;case u:H=(j-F)/864e5;break;case c:H=j/l;break;case i:H=j/o;break;case s:H=j/a;break;default:H=j}return O?H:E.a(H)},V.daysInMonth=function(){return this.endOf(d).$D},V.$locale=function(){return w[this.$L]},V.locale=function(P,v){if(!P)return this.$L;var O=this.clone(),H=$(P,v,!0);return H&&(O.$L=H),O},V.clone=function(){return E.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},I})(),J=U.prototype;return D.prototype=J,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",u],["$M",d],["$y",C],["$D",b]].forEach((function(I){J[I[1]]=function(V){return this.$g(V,I[0],I[1])}})),D.extend=function(I,V){return I.$i||(I(V,U,D),I.$i=!0),D},D.locale=$,D.isDayjs=B,D.unix=function(I){return D(1e3*I)},D.en=w[N],D.Ls=w,D.p={},D}))})(Xn)),Xn.exports}var hf=pf();const He=Xe(hf);var Qn={exports:{}},gf=Qn.exports,Vs;function yf(){return Vs||(Vs=1,(function(e,n){(function(a,o){e.exports=o()})(gf,(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|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d/,r=/\d\d/,s=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},p=function(y){return function(m){this[y]=+m}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=(function(m){if(!m||m==="Z")return 0;var k=m.match(/([+-]|\d\d)/g),f=60*k[1]+(+k[2]||0);return f===0?0:k[0]==="+"?-f:f})(y)}],h=function(y){var m=c[y];return m&&(m.indexOf?m:m.s.concat(m.f))},C=function(y,m){var k,f=c.meridiem;if(f){for(var A=1;A<=24;A+=1)if(y.indexOf(f(A,0,m))>-1){k=A>12;break}}else k=y===(m?"pm":"PM");return k},b={A:[i,function(y){this.afternoon=C(y,!1)}],a:[i,function(y){this.afternoon=C(y,!0)}],Q:[l,function(y){this.month=3*(y-1)+1}],S:[l,function(y){this.milliseconds=100*+y}],SS:[r,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,p("seconds")],ss:[s,p("seconds")],m:[s,p("minutes")],mm:[s,p("minutes")],H:[s,p("hours")],h:[s,p("hours")],HH:[s,p("hours")],hh:[s,p("hours")],D:[s,p("day")],DD:[r,p("day")],Do:[i,function(y){var m=c.ordinal,k=y.match(/\d+/);if(this.day=k[0],m)for(var f=1;f<=31;f+=1)m(f).replace(/\[|\]/g,"")===y&&(this.day=f)}],w:[s,p("week")],ww:[r,p("week")],M:[s,p("month")],MM:[r,p("month")],MMM:[i,function(y){var m=h("months"),k=(h("monthsShort")||m.map((function(f){return f.slice(0,3)}))).indexOf(y)+1;if(k<1)throw new Error;this.month=k%12||k}],MMMM:[i,function(y){var m=h("months").indexOf(y)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,p("year")],YY:[r,function(y){this.year=u(y)}],YYYY:[/\d{4}/,p("year")],Z:d,ZZ:d};function g(y){var m,k;m=y,k=c&&c.formats;for(var f=(y=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(D,E,U){var J=U&&U.toUpperCase();return E||k[U]||a[U]||k[J].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(I,V,P){return V||P.slice(1)}))}))).match(o),A=f.length,N=0;N<A;N+=1){var w=f[N],S=b[w],B=S&&S[0],$=S&&S[1];f[N]=$?{regex:B,parser:$}:w.replace(/^\[|\]$/g,"")}return function(D){for(var E={},U=0,J=0;U<A;U+=1){var I=f[U];if(typeof I=="string")J+=I.length;else{var V=I.regex,P=I.parser,v=D.slice(J),O=V.exec(v)[0];P.call(E,O),D=D.replace(O,"")}}return(function(H){var L=H.afternoon;if(L!==void 0){var Z=H.hours;L?Z<12&&(H.hours+=12):Z===12&&(H.hours=0),delete H.afternoon}})(E),E}}return function(y,m,k){k.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var f=m.prototype,A=f.parse;f.parse=function(N){var w=N.date,S=N.utc,B=N.args;this.$u=S;var $=B[1];if(typeof $=="string"){var D=B[2]===!0,E=B[3]===!0,U=D||E,J=B[2];E&&(J=B[2]),c=this.$locale(),!D&&J&&(c=k.Ls[J]),this.$d=(function(v,O,H,L){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*v);var Z=g(O)(v),te=Z.year,F=Z.month,j=Z.day,M=Z.hours,G=Z.minutes,R=Z.seconds,K=Z.milliseconds,ee=Z.zone,Q=Z.week,ne=new Date,z=j||(te||F?1:ne.getDate()),X=te||ne.getFullYear(),q=0;te&&!F||(q=F>0?F-1:ne.getMonth());var x,Y=M||0,W=G||0,oe=R||0,re=K||0;return ee?new Date(Date.UTC(X,q,z,Y,W,oe,re+60*ee.offset*1e3)):H?new Date(Date.UTC(X,q,z,Y,W,oe,re)):(x=new Date(X,q,z,Y,W,oe,re),Q&&(x=L(x).week(Q).toDate()),x)}catch{return new Date("")}})(w,$,S,k),this.init(),J&&J!==!0&&(this.$L=this.locale(J).$L),U&&w!=this.format($)&&(this.$d=new Date("")),c={}}else if($ instanceof Array)for(var I=$.length,V=1;V<=I;V+=1){B[1]=$[V-1];var P=k.apply(this,B);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}V===I&&(this.$d=new Date(""))}else A.call(this,N)}}}))})(Qn)),Qn.exports}var bf=yf();const kf=Xe(bf);var Gn={exports:{}},Sf=Gn.exports,Es;function Cf(){return Es||(Es=1,(function(e,n){(function(a,o){e.exports=o()})(Sf,(function(){return function(a,o){var l=o.prototype,r=l.format;l.format=function(s){var i=this,c=this.$locale();if(!this.isValid())return r.bind(this)(s);var u=this.$utils(),p=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(d){switch(d){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return c.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return c.ordinal(i.week(),"W");case"w":case"ww":return u.s(i.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(i.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(i.$H===0?24:i.$H),d==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return d}}));return r.bind(this)(p)}}}))})(Gn)),Gn.exports}var wf=Cf();const Nf=Xe(wf);var Zn={exports:{}},Bf=Zn.exports,Ds;function Af(){return Ds||(Ds=1,(function(e,n){(function(a,o){e.exports=o()})(Bf,(function(){return function(a,o,l){var r=o.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,h,C,b,g){var y=d.name?d:d.$locale(),m=s(y[h]),k=s(y[C]),f=m||k.map((function(N){return N.slice(0,b)}));if(!g)return f;var A=y.weekStart;return f.map((function(N,w){return f[(w+(A||0))%7]}))},c=function(){return l.Ls[l.locale()]},u=function(d,h){return d.formats[h]||(function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,g,y){return g||y.slice(1)}))})(d.formats[h.toUpperCase()])},p=function(){var d=this;return{months:function(h){return h?h.format("MMMM"):i(d,"months")},monthsShort:function(h){return h?h.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(d,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return u(d.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},l.localeData=function(){var d=c();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(h){return u(d,h)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(d){return i(c(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return i(c(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return i(c(),"weekdaysMin","weekdays",2,d)}}}))})(Zn)),Zn.exports}var Tf=Af();const $f=Xe(Tf);var Jn={exports:{}},Vf=Jn.exports,Is;function Ef(){return Is||(Is=1,(function(e,n){(function(a,o){e.exports=o()})(Vf,(function(){var a="week",o="year";return function(l,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=s(this).startOf(o).add(1,o).date(u),d=s(this).endOf(a);if(p.isBefore(d))return 1}var h=s(this).startOf(o).date(u).startOf(a).subtract(1,"millisecond"),C=this.diff(h,a,!0);return C<0?s(this).startOf("week").week():Math.ceil(C)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(Jn)),Jn.exports}var Df=Ef();const If=Xe(Df);var _n={exports:{}},vf=_n.exports,vs;function xf(){return vs||(vs=1,(function(e,n){(function(a,o){e.exports=o()})(vf,(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}}}))})(_n)),_n.exports}var qf=xf();const Pf=Xe(qf);var eo={exports:{}},Mf=eo.exports,xs;function Lf(){return xs||(xs=1,(function(e,n){(function(a,o){e.exports=o()})(Mf,(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")}}}))})(eo)),eo.exports}var zf=Lf();const Of=Xe(zf);var to={exports:{}},Rf=to.exports,qs;function Ff(){return qs||(qs=1,(function(e,n){(function(a,o){e.exports=o()})(Rf,(function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}}))})(to)),to.exports}var Kf=Ff();const Uf=Xe(Kf);var no={exports:{}},Hf=no.exports,Ps;function jf(){return Ps||(Ps=1,(function(e,n){(function(a,o){e.exports=o()})(Hf,(function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}}))})(no)),no.exports}var Wf=jf();const Yf=Xe(Wf);He.extend($f),He.extend(Nf),He.extend(kf),He.extend(If),He.extend(Pf),He.extend(Of),He.extend(Uf),He.extend(Yf);const ie={format(e,n){return He(e).format(n)},parser(e,n){return He(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,a){e=e||0;let o=n??new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),a=a??"YYYY-MM-DD",this.format(o,a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(a>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,a==o},getMonthWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a));let r=l.getDay(),s=l.getDate(),i=6-r;return o!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),s=Math.round((l.valueOf()-r.valueOf())/864e5);let i=l.getDay(),c=6-i;return o!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let s=l.getDay();if(o===0){const c=r-s*864e5,u=r+(6-s)*864e5,p=this.date2Str(new Date(c)),d=this.date2Str(new Date(u));return[p,d]}else{s=s==0?7:s;const i=1440*60*1e3,c=r-(s-1)*i,u=r+(7-s)*i,p=this.date2Str(new Date(c)),d=this.date2Str(new Date(u));return[p,d]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ie.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ie.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s}},Ms=new Date().getFullYear(),yl={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"},oo=(e,n,a)=>{let o;if(We(n)?o=n:typeof n=="string"&&Ce(n)>0?o=ie.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)},bl=(e,n,a)=>{We(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),ie.format(new Date(o),a)},kl={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:()=>"date"},valueFormat:{type:String},visible:{type:Boolean,default:()=>!1},title:{type:String,default:()=>""},isShowChinese:{type:Boolean,default:()=>!0},minuteStep:{type:Number,default:()=>1},minDate:{type:Date,default:()=>new Date(Ms-10,0,1),validator:We},maxDate:{type:Date,default:()=>new Date(Ms+10,11,31),validator:We},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:Xf,scope:Qf}=_("date-picker"),Gf=Xf({components:{Picker:Kt},props:{...kl},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=ce.useFoxI18n(Qf),o={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds"),today:a("today"),fullWeekdays:JSON.parse(a("fullWeekdays"))},l=t.ref(!1);t.watch(()=>e.visible,f=>{l.value=f});function r(f,A){return new Date(f,A,0).getDate()}const s=(f,A)=>{const N=e[`${f}Date`],w=N.getFullYear();let S=1,B=1,$=0,D=0;f==="max"&&(S=12,B=r(A.getFullYear(),A.getMonth()+1),$=23,D=59);const E=D;return A.getFullYear()===w&&(S=N.getMonth()+1,A.getMonth()+1===S&&(B=N.getDate(),A.getDate()===B&&($=N.getHours(),A.getHours()===$&&(D=N.getMinutes())))),{[`${f}Year`]:w,[`${f}Month`]:S,[`${f}Date`]:B,[`${f}Hour`]:$,[`${f}Minute`]:D,[`${f}Seconds`]:E}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:f,maxDate:A,maxMonth:N,maxHour:w,maxMinute:S,maxSeconds:B}=s("max",h.value),{minYear:$,minDate:D,minMonth:E,minHour:U,minMinute:J,minSeconds:I}=s("min",h.value);let V=[{type:"year",range:[$,f]},{type:"month",range:[E,N]},{type:"day",range:[D,A]},{type:"hour",range:[U,w]},{type:"minute",range:[J,S]},{type:"seconds",range:[I,B]}];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=(f,A,N,w,S)=>{const B=[];for(;f<=A;){let $=!0;if(typeof e.itemFilter=="function"){const D={text:`${f}`,value:f,type:N,currentYearMonth:w};$=e.itemFilter(D)}if($)if(typeof e.itemFormatter=="function"){const D={text:`${f}`,value:f,type:N,currentYearMonth:w};e.itemFormatter(D),B.push({text:D.text,value:D.value})}else if(e.isShowChinese){let D=`${f}${o[N]}`;if(N==="day"){if(w[0]===S[0]&&w[1]===S[1]&&f===S[2])D=o.today;else{const U=new Date(w[0],w[1],f).getDay();D=`${D} ${o.fullWeekdays[U]}`}B.push({text:D,value:f})}else B.push({text:f+o[N],value:f})}else B.push({text:`${f}`,value:f});N==="minute"?f+=e.minuteStep:f++}return B},u=t.computed(()=>{const f=new Date,A=[f.getFullYear(),f.getMonth(),f.getDate()],N=[];h.value&&(N[0]=h.value.getFullYear(),N[1]=h.value.getMonth());let w=[];return i.value.forEach(S=>{let B=c(S.range[0],S.range[1],S.type,N,A);B&&w.push(B)}),w}),p=(f,A)=>f==="year"?A.getFullYear():f==="month"?A.getMonth()+1:f==="day"?A.getDate():f==="hour"?A.getHours():f==="minute"?A.getMinutes():f==="seconds"?A.getSeconds():0,d=t.ref(),h=t.ref(null);t.watch(()=>e.modelValue,f=>{let A;if(typeof f=="string"?f.length==0||f==="Invalid Date"?A=new Date:e.valueFormat?A=oo(e,e.modelValue,e.valueFormat):A=oo(e,f,yl[e.type]):We(f)?A=f:A=new Date,!!A&&(!h.value||A.getTime()!==h.value.getTime())){h.value=A;let N=[];i.value.forEach(w=>{let S=p(w.type,A);N.push(S)}),d.value=N}},{immediate:!0});const C=f=>{if(!f||f.length===0){h.value=new Date;let A=[];i.value.forEach(N=>{let w=p(N.type,h.value);A.push(w)}),d.value=A;return}if(e.type==="date"){const A=f[0],N=f[1]-1,w=Math.min(f[2],r(A,N+1));w!==f[2]&&(f[2]=w),h.value=new Date(A,N,w)}else if(e.type==="datetime"){const A=f[0],N=f[1]-1,w=Math.min(f[2],r(A,N+1)),S=f[3],B=f[4];w!==f[2]&&(f[2]=w),h.value=new Date(A,N,w,S,B)}else if(e.type==="time"){const A=f[0],N=f[1],w=f[2],S=h.value??new Date,B=new Date(S.getFullYear(),S.getMonth(),S.getDate(),A,N,w);h.value=B}else if(e.type==="year-month"){const A=f[0],N=f[1]-1;h.value=new Date(A,N)}else if(e.type==="month-day"){const N=(h.value??new Date).getFullYear(),w=f[0]-1,S=Math.min(f[1],r(N,w+1));S!==f[1]&&(f[1]=S);const B=new Date(N,w,S);h.value=B}else if(e.type==="datehour"){const A=f[0],N=f[1]-1,w=Math.min(f[2],r(A,N+1)),S=f[3];w!==f[2]&&(f[2]=w),h.value=new Date(A,N,w,S)}else if(e.type==="hour-minute"){const A=f[0],N=f[1],w=h.value??new Date,S=new Date(w.getFullYear(),w.getMonth(),w.getDate(),A,N);h.value=S}d.value=f};return{columns:u,dateIndexs:d,show:l,onChange:f=>{C(f)},onClose:()=>{n("update:close",!1)},onConfirm:f=>{C(f);const A=h.value??new Date;if(e.valueFormat){let N=bl(e,A,e.valueFormat);n("update:modelValue",N)}else n("update:modelValue",A);n("confirm",f)},onClear:()=>{n("clear")},onUpdateVisible:f=>{l.value=f,n("update:visible",f)}}}});function Zf(e,n,a,o,l,r){const s=t.resolveComponent("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,"onUpdate:visible":e.onUpdateVisible,"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","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const lo=le(Gf,[["render",Zf]]),Jf={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function _f(e){let n=e.format;if(!n){let a=e.type??"date";n=yl[a]}return n}function em(e,n,a,o,l,r,s=!1){return{props:{...ye,...ke,...kl,...Jf},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const u=De(t.computed(()=>i.disabled)),p=Ee(t.computed(()=>i.readonly)),{emitEvent:d}=$e({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ce.useFoxI18n(n),C=h(i,["placeholder"]),b=t.ref(!1),y=Le(i,"modelValue",F=>F==null?null:typeof F=="string"?F.length==0?null:i.valueFormat?oo(i,F,i.valueFormat)??F:oo(i,F,yl[i.type])??F:We(F)?F:null,d),m=t.computed(()=>{if(!y.value)return"";const F=_f(i);return bl(i,y.value,F)}),k="fox-input-item",f=t.computed(()=>({[k]:!0,"is-disabled":u.value,"is-readonly":p.value})),A=Ve(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const F={};return A.value&&(F["text-align"]=A.value),F}),w=t.ref(!1),S=()=>{w.value=!0},B=()=>{w.value=!1};c.expose({showPicker:S,hidePicker:B});const $=F=>{w.value=F},D=F=>{if(y.value=F,i.valueFormat){let j=bl(i,F,i.valueFormat);d("update:modelValue",j,{}),d("change",j,{})}else d("update:modelValue",F,{}),d("change",F,{})},E=F=>{let M=F.target.value;b.value=!0,d("focus",M,F)},U=F=>{setTimeout(()=>{b.value=!1},0);let M=F.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),d("blur",M,F)},J=t.computed(()=>({[`${k}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),I=t.computed(()=>Ce(i.unit)>0),V=t.computed(()=>Ce(i.unit)>0&&!b.value),P=t.computed(()=>({hidden:!V.value})),v=F=>{y.value="",d("update:modelValue","",F),d("change","",F),d("clear",""),B()},O=t.computed(()=>i.clearable&&!u.value&&!p.value),H=t.computed(()=>{let F=Ce(y.value)>0;return i.clearable&&F&&b.value}),L=F=>{H.value?v(F):S()},Z=t.computed(()=>H.value&&O.value?o:l),te=t.computed(()=>({action:!0}));return()=>{const F={class:f.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:C.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:S,onFocus:E,onBlur:U};s&&(F.disabled=!0);const j=[],M=t.h("input",F);j.push(M);const G=[],R={class:["action-icon"]},K=t.h(Z.value,R),ee={class:te.value,onClick:L},Q=t.h("view",ee,{default:()=>[K]});if(G.push(Q),I.value){const se=t.h("view",{class:P.value},[i.unit]);G.push(se)}const ne={class:J.value},z=t.h("view",ne,{default:()=>G});j.push(z);const X={default:()=>j};X.label=c.slots.default,X.prepend=c.slots.prepend,X.append=c.slots.append,X.fixedPreTip=c.slots.fixedPreTip,X.fixedTip=c.slots.fixedTip;const q=be(i,kl);q.valueFormat=null,q.disabled=!1,q.readonly=u.value||p.value,q.visible=w.value,q["onUpdate:visible"]=$,q.modelValue=y.value,q["onUpdate:modelValue"]=D,q.onClear=v;const x={};if(c.slots.top){const se=c.slots.top();x.top=()=>se}if(c.slots.bottom){const se=c.slots.bottom();x.default=()=>se}const Y=t.h(r,q,x);X.hide=()=>[Y];const oe={...be(i,ke,ye)};return i.prop&&(oe.prop=`${i.prop}_item`),t.h(a,oe,X)}}}}const{create:tm,componentName:nm,scope:om}=_("date-item"),Sl=tm(em(nm,om,Ae,ae.CircleClose,ae.Date,lo,!1)),lm=39,am=64,{create:rm,scope:sm}=_("calendar-pane"),im=rm({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:ie.getDay(0)},endDate:{type:String,default:ie.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=ce.useFoxI18n(sm),r=o(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(l("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),u=t.ref(null),p=t.ref(null),d=t.ref(null),h=t.ref(0),C=t.computed(()=>m.monthsData.slice(m.defaultRange[0],m.defaultRange[1])),b=t.computed(()=>a.btn),g=t.computed(()=>a["top-info"]),y=t.computed(()=>a["bottom-info"]),m=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}),k=R=>R.split("-"),f=R=>ie.isEqual(m.currDate[0],R),A=R=>ie.isEqual(m.currDate[1],R),N=R=>m.currDate?.length>0?m.currDate?.some(K=>ie.isEqual(K,R)):!1,w=(R,K)=>K.curData[0]+"-"+K.curData[1]+"-"+ie.getNumTwoBit(+R.day),S=(R,K)=>{const ee=w(R,K),{type:Q}=e;return R.type=="curr"?ie.isEqual(m.currDate,ee)||(Q=="range"||Q=="week")&&(f(ee)||A(ee))||Q=="multiple"&&N(ee)?`${m.dayPrefix}--active`:m.propStartDate&&ie.compareDate(ee,m.propStartDate)||m.propEndDate&&ie.compareDate(m.propEndDate,ee)?`${m.dayPrefix}--disabled`:(Q=="range"||Q=="week")&&Array.isArray(m.currDate)&&Object.values(m.currDate).length==2&&ie.compareDate(m.currDate[0],ee)&&ie.compareDate(ee,m.currDate[1])?`${m.dayPrefix}--choose`:null:`${m.dayPrefix}--disabled`},B=()=>{const{type:R}=e;if(R=="range"&&m.chooseData.length==2||R!="range"){let K=m.chooseData.slice(0);R=="week"&&(K={weekDate:[D(m.chooseData[0]),D(m.chooseData[1])]}),n("choose",K),e.poppable&&n("update")}},$=(R,K,ee=!1)=>{if(S(R,K)!=`${m.dayPrefix}--disabled`){const{type:Q}=e;let[ne,z]=K.curData,X=[...K.curData];if(X[2]=ie.getNumTwoBit(Number(R.day)),X[3]=`${X[0]}-${X[1]}-${X[2]}`,X[4]=ie.getWhatDay(+X[0],+X[1],+X[2]),Q=="multiple")if(m.currDate?.length>0){let q;m.currDate?.forEach((x,Y)=>{x==X[3]&&(q=Y)}),ee?m.chooseData.push([...X]):q!==void 0?(m.currDate.splice(q,1),m.chooseData.splice(q,1)):(m.currDate.push(X[3]),m.chooseData.push([...X]))}else m.currDate=[X[3]],m.chooseData=[[...X]];else if(Q=="range"){let q=Object.values(m.currDate).length;q==2||q==0?m.currDate=[X[3]]:ie.compareDate(m.currDate[0],X[3])?Array.isArray(m.currDate)&&m.currDate.push(X[3]):Array.isArray(m.currDate)&&m.currDate.unshift(X[3]),m.chooseData.length==2||!m.chooseData.length?m.chooseData=[[...X]]:ie.compareDate(m.chooseData[0][3],X[3])?m.chooseData=[...m.chooseData,[...X]]:m.chooseData=[[...X],...m.chooseData]}else if(Q=="week"){let q=ie.getWeekDate(ne,z,R.day,e.firstDayOfWeek);m.propStartDate&&ie.compareDate(q[0],m.propStartDate)&&q.splice(0,1,m.propStartDate),m.propEndDate&&ie.compareDate(m.propEndDate,q[1])&&q.splice(1,1,m.propEndDate),m.currDate=q,m.chooseData=[ie.formatResultDate(q[0]),ie.formatResultDate(q[1])]}else m.currDate=X[3],m.chooseData=[...X];if(!ee){let q=m.chooseData;Q=="week"&&(q={weekDate:[D(m.chooseData[0]),D(m.chooseData[1])]}),n("select",q),(e.isAutoBackFill||!e.poppable)&&B()}}},D=R=>{let[K,ee,Q]=R;return{date:R,monthWeekNum:ie.getMonthWeek(K,ee,Q,e.firstDayOfWeek),yearWeekNum:ie.getYearWeek(K,ee,Q,e.firstDayOfWeek)}},E=R=>{const K=m.monthsData[m.monthsData.length-1];let ee=parseInt(K.curData[0]),Q=parseInt(K.curData[1].toString().replace(/^0/,""));switch(R){case"prev":Q==1&&(ee-=1),Q=Q==1?12:--Q;break;case"next":Q==12&&(ee+=1),Q=Q==12?1:++Q;break}return[ee+"",ie.getNumTwoBit(Q),ie.getMonthDays(String(ee),String(Q))+""]},U=(R,K,ee)=>{let{year:Q,month:ne}=ee;return Array.from(Array(R),(z,X)=>({day:String(X+1),type:K,year:Q,month:ne}))},J=(R,K,ee,Q)=>{R=R-e.firstDayOfWeek;let{year:ne,month:z}=ee;return R>=7&&(R-=7),Array.from(Array(Q),(q,x)=>({day:String(x+1),type:K,year:ne,month:z})).slice(Q-R)},I=(R,K)=>{const ee=ie.getMonthPreDay(+R[0],+R[1]);let Q=Number(R[1])-1,ne=Number(R[0]);Q<=0&&(Q=12,ne+=1);const z=ie.getMonthDays(String(R[0]),String(R[1])),X=ie.getMonthDays(ne+"",Q+""),q={year:R[0],month:R[1]},x={curData:R,title:l("monthTitle",{year:q.year,month:q.month}),monthData:[...J(ee,"prev",{month:String(Q),year:String(ne)},X),...U(z,"curr",q)],cssHeight:0,cssScrollHeight:0},Y=x.monthData.length>35?6:5;x.cssHeight=lm+am*Y;let W=0;m.monthsData.length>0&&(W=m.monthsData[m.monthsData.length-1].cssScrollHeight+m.monthsData[m.monthsData.length-1].cssHeight),x.cssScrollHeight=W,(!m.endData||!ie.compareDate(`${m.endData[0]}-${m.endData[1]}-${ie.getMonthDays(m.endData[0],m.endData[1])}`,`${R[0]}-${R[1]}-${R[2]}`))&&m.monthsData.push(x)},V=()=>{let R=e.startDate?e.startDate:ie.getDay(0),K=e.endDate?e.endDate:ie.getDay(365);m.propStartDate=R,m.propEndDate=K,m.startData=k(R),m.endData=k(K),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(m.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const ee={year:Number(m.startData[0]),month:Number(m.startData[1])},Q={year:Number(m.endData[0]),month:Number(m.endData[1])};let ne=Q.month-ee.month;Q.year-ee.year>0&&(ne=ne+12*(Q.year-ee.year)),ne<=0&&(ne=1),I(m.startData);let z=1;do I(E("next"));while(z++<ne);if(m.monthsNum=ne,e.type=="range"&&Array.isArray(m.currDate))m.currDate.length>0&&(R&&ie.compareDate(m.currDate[0],R)&&m.currDate.splice(0,1,R),K&&ie.compareDate(K,m.currDate[1])&&m.currDate.splice(1,1,K),m.defaultData=[...k(m.currDate[0]),...k(m.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(m.currDate)){if(m.currDate.length>0){let X=[],q={};m.currDate.forEach(x=>{R&&!ie.compareDate(x,R)&&K&&!ie.compareDate(K,x)&&(Object.hasOwnProperty.call(q,x)||(X.push(x),q[x]=x))}),m.currDate=[...X],m.defaultData=[...k(X[0])]}}else if(e.type=="week"&&Array.isArray(m.currDate)){if(m.currDate.length>0){let[X,q,x]=k(m.currDate[0]),Y=ie.getWeekDate(X,q,x,e.firstDayOfWeek);m.currDate=Y,R&&ie.compareDate(m.currDate[0],R)&&m.currDate.splice(0,1,R),K&&ie.compareDate(K,m.currDate[1])&&m.currDate.splice(1,1,K),m.defaultData=[...k(m.currDate[0]),...k(m.currDate[1])]}}else m.currDate&&(R&&ie.compareDate(m.currDate,R)?m.currDate=R:K&&!ie.compareDate(m.currDate,K)&&(m.currDate=K),m.defaultData=[...k(m.currDate)])};Ie({scrollToDate:R=>{ie.compareDate(R,m.propStartDate)?R=m.propStartDate:ie.compareDate(R,m.propEndDate)||(R=m.propEndDate);let K=k(R);m.monthsData.forEach((ee,Q)=>{if(ee.title==l("monthTitle",{year:K[0],month:K[1]})&&c.value){let ne=m.monthsData[Q].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let z=0,X=setInterval(()=>{if(z++,c.value){let q=ne/10;c.value.scrollTop=c.value.scrollTop+q}z>=10&&(clearInterval(X),c.value&&(c.value.scrollTop=m.monthsData[Q].cssScrollHeight))},40)}else c.value.scrollTop=m.monthsData[Q].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=m.monthsData[m.currentIndex].cssScrollHeight)},doLayout:()=>{let R=0,K=0;m.defaultData.length>0&&m.monthsData.forEach((ne,z)=>{ne.title==l("monthTitle",{year:m.defaultData[0],month:m.defaultData[1]})&&(R=z),(e.type=="range"||e.type=="week")&&ne.title==l("monthTitle",{year:m.defaultData[3],month:m.defaultData[4]})&&(K=z)}),H(m.monthsNum,R),m.currentIndex=R,m.yearMonthTitle=m.monthsData[m.currentIndex].title,m.defaultData.length>0&&(m.isRange?($({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0),$({day:m.defaultData[5],type:"curr"},m.monthsData[K],!0)):e.type=="week"?$({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0):e.type=="multiple"?[...m.currDate].forEach(ne=>{let z=k(ne),X=m.currentIndex;m.monthsData.forEach((q,x)=>{q.title==l("monthTitle",{year:z[0],month:z[1]})&&(X=x)}),$({day:z[2],type:"curr"},m.monthsData[X],!0)}):$({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0));let ee=m.monthsData[m.monthsData.length-1],Q=ee.cssHeight+ee.cssScrollHeight;Ge(()=>{c?.value&&u?.value&&d?.value&&(h.value=c.value.clientHeight,u.value.style.height=`${Q}px`,c.value.scrollTop=m.monthsData[m.currentIndex].cssScrollHeight)}),m.avgHeight=Math.floor(Q/(m.monthsNum+1))}});const H=(R,K)=>{R>=3?K>0&&K<R?m.defaultRange=[K-1,K+3]:K==0?m.defaultRange=[K,K+4]:K==R&&(m.defaultRange=[K-2,K+2]):m.defaultRange=[0,R+2];let ee=m.monthsData[m.defaultRange[0]].cssScrollHeight;m.translateY=ee},L=(R,K)=>(e.type=="range"||e.type=="week")&&R.type=="curr"&&S(R,K)=="fox-calendar__day--active",Z=(R,K)=>L(R,K)&&f(w(R,K)),te=(R,K)=>m.currDate.length>=2&&A(w(R,K))?L(R,K):!1,F=()=>{if(m.currDate.length>=2)return ie.isEqual(m.currDate[0],m.currDate[1])},j=R=>{const K=`${R.year}-${R.month}-${Number(R.day)<10?"0"+R.day:R.day}`;return ie.isEqual(K,ie.date2Str(new Date))},M=R=>{if(m.monthsData.length<=1)return;const K=R.target.scrollTop;let ee=Math.floor(K/m.avgHeight);if(ee==0)K>=m.monthsData[ee+1].cssScrollHeight&&(ee+=1);else if(ee>0&&ee<m.monthsNum-1)K>=m.monthsData[ee+1].cssScrollHeight&&(ee+=1),K<m.monthsData[ee].cssScrollHeight&&(ee-=1);else{const Q=Math.round(K+h.value);Q<m.monthsData[ee].cssScrollHeight+m.monthsData[ee].cssHeight&&K>m.monthsData[ee-1].cssScrollHeight&&(ee-=1),ee+1<=m.monthsNum&&Q>=m.monthsData[ee+1].cssScrollHeight+m.monthsData[ee+1].cssHeight&&(ee+=1),ee>=1&&K<m.monthsData[ee-1].cssScrollHeight&&(ee-=1)}m.currentIndex!==ee&&(m.currentIndex=ee,H(m.monthsNum,ee)),m.yearMonthTitle=m.monthsData[ee].title},G=()=>{m.chooseData.splice(0),m.monthsData.splice(0),V()};return V(),t.watch(()=>e.defaultValue,R=>{R&&e.poppable&&G()}),{weeks:i,compConthsData:C,showTopBtn:b,topInfo:g,bottomInfo:y,rangeTip:F,mothsViewScroll:M,getClass:S,isStartTip:Z,isEndTip:te,chooseDay:$,isCurrDay:j,confirm:B,months:c,...t.toRefs(m),...t.toRefs(e),...r,monthsPanel:u,weeksPanel:p,viewArea:d}}}),cm={class:"fox-calendar__header"},dm={key:0,class:"fox-calendar__header-title"},um={key:1,class:"fox-calendar__header-slot"},fm={key:2,class:"fox-calendar__header-subtitle"},mm={class:"fox-calendar__weekdays",ref:"weeksPanel"},pm={class:"fox-calendar__panel",ref:"monthsPanel"},hm={class:"fox-calendar__month-title"},gm={class:"fox-calendar__days"},ym=["onClick"],bm={class:"fox-calendar__day-value"},km={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Sm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Cm={key:2,class:"fox-calendar__day-tips--curr"},wm={key:4,class:"fox-calendar__day-tip"},Nm={key:0,class:"fox-calendar__footer"};function Bm(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",cm,[e.showTitle?(t.openBlock(),t.createElementBlock("view",dm,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",um,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",fm,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",mm,[(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",pm,[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",hm,t.toDisplayString(s.title),1),t.createElementVNode("view",gm,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:p=>e.chooseDay(c,s)},[t.createElementVNode("view",bm,[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",km,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Sm,[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",Cm,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",wm,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,ym))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Nm,[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 Am=le(im,[["render",Bm]]),Tm=t.defineComponent({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-calender__popup"}},setup(e,{slots:n}){return()=>{if(e.poppable){const a=Je({...e},{poppable:!1});return t.h(he,a,n)}else return n?.default?.()??null}}}),$m=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),ao={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:Vm}=_("calendar"),Em=Vm({components:{Wrapper:Tm,CalendarPane:Am},props:{...ao},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=g=>{i.value?.scrollToDate(g)},u=()=>{i.value?.initPosition()};t.watch(()=>e.visible,g=>{g&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Ie({scrollToDate:c,initPosition:u});const p=()=>{n("update:visible",!1)},d=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{d()},update:p,close:d,select:g=>{n("select",g)},choose:g=>{d(),n("choose",g)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function Dm(e,n,a,o,l,r){const s=t.resolveComponent("CalendarPane"),i=t.resolveComponent("Wrapper");return t.openBlock(),t.createBlock(i,t.mergeProps({visible:e.visible,position:"bottom","pop-class":"fox-calendar__popup",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,poppable:e.poppable}),{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","poppable"])}const ro=le(Em,[["render",Dm]]),Ls={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}},Cl=(e,n)=>{let a;return We(e)?a=e:typeof e=="string"&&Ce(e)>0?a=ie.parser(e,n):a=new Date,a},Nt=(e,n,a)=>(We(n)||(n=new Date),ie.format(n,a)),Bt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=ie.date2Str(e),r=ie.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function Im(e,n,a,o,{CloseIcon:l,MarkIcon:r},s=!1){return{props:{...ye,...ke,...ao,...Ls},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const u=De(t.computed(()=>i.disabled)),p=Ee(t.computed(()=>i.readonly)),{emitEvent:d}=$e({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ce.useFoxI18n(n),C=h(i,["placeholder"]),b=t.ref(!1),g=t.computed(()=>i.type==="range"),y=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),m=()=>{y.startDate!==null&&(y.startDate=null,y.endDate=null,y.startArray=[],y.endArray=[])},k=(M,G="one",R="YYYY-MM-DD")=>{if($m(M)){m();return}if(g.value&&Array.isArray(M)&&M.length==2){let K,ee;typeof M[0]=="string"?(K=Cl(M[0],R),ee=Cl(M[1],R)):(K=M[0],ee=M[1]);let Q=Bt(K),ne=Bt(ee);(y.startDate===null||y.startDate.getTime()!==K.getTime()||y.endDate?.getTime()!==ee.getTime())&&(y.startDate=K,y.startArray=Q,y.endDate=ee,y.endArray=ne)}else{let K;typeof M=="string"?K=Cl(M,R):K=M;let ee=Bt(K);(y.startDate===null||y.startDate.getTime()!==K.getTime())&&(y.startDate=K,y.startArray=ee)}};k(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,M=>{k(M,i.type,i.valueFormat),d("setValue",M)});const f=t.computed(()=>{if(y.startDate===null)return"";if(g.value){let M=Nt(i,y.startDate,i.format),G=Nt(i,y.endDate,i.format);return`${M} ${i.rangeSeparator} ${G}`}else{let M=Nt(i,y.startDate,i.format);return i.showWeek&&(M=`${M} ${y.startArray[4]}`),M}}),A=t.computed(()=>{if(y.startDate===null)return null;if(g.value){let M=ie.date2Str(y.startDate),G=ie.date2Str(y.endDate??new Date);return[M,G]}else return ie.date2Str(y.startDate)}),N="fox-input-item",w=t.computed(()=>({[N]:!0,"is-disabled":u.value,"is-readonly":p.value})),S=Ve(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const M={};return S.value&&(M["text-align"]=S.value),M}),$=t.ref(!1),D=()=>{p.value||u.value||($.value=!0)},E=M=>{$.value=M},U=M=>{if(M){if(g.value&&Array.isArray(M)){let G=M[0],R=ge(G[0]),K=ge(G[1]),ee=ge(G[2]),Q=new Date(R,K-1,ee),ne=M[1];R=ge(ne[0]),K=ge(ne[1]),ee=ge(ne[2]);let z=new Date(R,K-1,ee);if(y.startDate=Q,y.startArray=Bt(Q),y.endDate=z,y.endArray=Bt(z),i.valueFormat){let X=Nt(i,Q,i.valueFormat),q=Nt(i,z,i.valueFormat);d("update:modelValue",[X,q],{})}else d("update:modelValue",[Q,z],{})}else{let G=M,R=ge(G[0]),K=ge(G[1]),ee=ge(G[2]),Q=new Date(R,K-1,ee);if(y.startDate=Q,y.startArray=Bt(Q),i.valueFormat){let ne=Nt(i,Q,i.valueFormat);d("update:modelValue",ne,{})}else d("update:modelValue",Q,{})}d("change",M,{})}},J=M=>{let R=M.target.value;b.value=!0,d("focus",R,M)},I=M=>{setTimeout(()=>{b.value=!1},0);let R=M.target.value;i.maxLength&&R.length>Number(i.maxLength)&&(R=R.slice(0,Number(i.maxLength))),d("blur",R,M)},V=t.computed(()=>({[`${N}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),P=t.computed(()=>Ce(i.unit)>0),v=t.computed(()=>Ce(i.unit)>0&&!b.value),O=t.computed(()=>({hidden:!v.value})),H=M=>{m(),d("update:modelValue",null,M),d("change","",M),d("clear","")},L=t.computed(()=>i.clearable&&!u.value&&!p.value),Z=t.computed(()=>{let M=Ce(f.value)>0;return i.clearable&&M&&b.value}),te=M=>{Z.value?H(M):D()},F=t.computed(()=>Z.value&&L.value?l:r),j=t.computed(()=>({action:!0}));return()=>{const M={class:w.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:C.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:D,onFocus:J,onBlur:I};s&&(M.disabled=!0);const G=[],R=t.h("input",M);G.push(R);const K=[],ee={class:["action-icon"]},Q=t.h(F.value,ee),ne={class:j.value,onClick:te},z=t.h("view",ne,{default:()=>[Q]});if(K.push(z),P.value){const Be=t.h("view",{class:O.value},[i.unit]);K.push(Be)}const X={class:V.value},q=t.h("view",X,{default:()=>K});G.push(q);const x={default:()=>G};x.label=c.slots.default,x.prepend=c.slots.prepend,x.append=c.slots.append,x.fixedPreTip=c.slots.fixedPreTip,x.fixedTip=c.slots.fixedTip;const Y=be(i,ao);Y.visible=$.value,Y["onUpdate:visible"]=E,Y["default-value"]=A.value,Y.onChoose=U;const W={};if(c.slots.btn){const Be=c.slots.btn();W.btn=()=>Be}c.slots.day&&(W.day=c.slots.day),c.slots.topInfo&&(W.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(W.bottomInfo=c.slots.bottomInfo);const oe=t.h(a,Y,W);x.hide=()=>[oe];const se={...Je(i,ao,Ls)};return i.prop&&(se.prop=`${i.prop}_item`),t.h(o,se,x)}}}}const{componentName:vm,create:xm,scope:qm}=_("calendar-item"),wl=xm(Im(vm,qm,ro,Ae,{CloseIcon:ae.CircleClose,MarkIcon:ae.Date},!1)),Pm={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 Mm(e,{CheckNormal:n,Checked:a}){return{props:{...Pm},setup(o,{emit:l,slots:r}){const s=t.inject("parent",null),i=En(),c=t.computed(()=>s.label.value===o.label),u=t.computed(()=>s.position),p=()=>{const g=[];if(c.value){if(r.checkedIcon)return r.checkedIcon();{const y=fe(o.iconSize),m=o.checkedIcon??i.radio.Checked??a;return g.push("fox-radio__icon"),o.disabled&&g.push("is-disabled"),o.readonly&&g.push("is-readonly"),t.h(m,{width:y,height:y,class:g})}}else{if(r.icon)return r.icon();{const y=fe(o.iconSize),m=o.icon??i.radio.CheckNormal??n;return g.push("fox-radio__icon--unchecked"),o.disabled&&g.push("is-disabled"),o.readonly&&g.push("is-readonly"),t.h(m,{width:y,height:y,class:g})}}},d=()=>{const g=[`${e}__label`];return o.disabled&&g.push("is-disabled"),o.readonly&&g.push("is-readonly"),t.h("view",{class:g},r.default?.())},h=()=>{const g=[`${e}__button`];return c.value&&g.push(`${e}__button--active`),o.disabled&&g.push("is-disabled"),o.readonly&&g.push("is-readonly"),t.h("view",{class:g},r.default?.())},C=()=>{c.value||o.disabled||o.readonly||s.updateValue(o.label)},b=u.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${b?`${e}--reverse`:""}`,onClick:C},[o.shape=="button"?h():b?[d(),p()]:[p(),d()]])}}}const{componentName:Lm,create:zm}=_("radio"),so=zm(Mm(Lm,{CheckNormal:ae.CheckNormal,Checked:ae.CheckChecked})),{componentName:zs,create:Om}=_("radio-group"),io=Om({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}=yt(),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:`${zs} ${zs}--${e.direction}`,style:l},n.default?.())}}});function Os(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(co(e,r)===a)return l}else if(o==="item"){if(xe(a,r))return l}else if(Wt(e,r)===a)return l}return-1}function co(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Wt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Rm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Fm(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Km=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=tt(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Um(){const e=t.getCurrentInstance();return new Km(e.proxy)}function Hm(e){return{text:e,value:e}}const Rs={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},jm={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},Wm={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 Ym(e,n,a,o,l){return{props:{...ye,...ke,...Rs,...jm,...Wm},emits:["change","update:modelValue","setValue"],setup(r,s){const i=Ee(t.computed(()=>r.readonly)),c=De(t.computed(()=>r.disabled)),u=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return c.value}},r.prop??s.attrs.name),d=Um(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([m,k])=>{if(m){const f=await d.load("radio",m,k);if(f.length>0)if(typeof f[0]=="string"){const w=f.map(S=>Hm(S));h.value=w}else h.value=f;else h.value=[]}},{immediate:!0});let C=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([m,k])=>{C.value=Os(r,k,m,r.valueType),p("setValue",m)},{deep:!0});const b=t.computed(()=>{if(!r.source)return r.modelValue;if(C.value===-1)return null;const m=h.value[C.value];return Wt(r,m)}),g=m=>{let k=null,f=null;if(h.value.length>0){let A=Os(r,h.value,m,"value");C.value=A,A>=0&&(f=h.value[A],r.valueType==="text"?k=co(r,f):r.valueType==="item"?k=f:k=Wt(r,f))}else k=m;p("update:modelValue",k),p("change",k,f)},y=()=>{let m=null,k=null;if(h.value.length>0&&C.value!==-1){let f=h.value[C.value];r.valueType==="text"?m=co(r,f):r.valueType==="item"?m=f:m=Wt(r,f)}p("update:modelValue",m),p("change",m,k)};if(Ie({clear(){C.value!==-1&&(C.value=-1,y())}}),r.source){const m=()=>{const k=[],f=be(r,Rs);return h.value.forEach((A,N)=>{const w=Wt(r,A),S=Rm(r,A);let B={...f,label:w,disabled:S};const $=Fm(r,A,N);B={...B,...$},c.value&&(B.disabled=!0),i.value&&(B.readonly=!0);const D={};if(s.slots.icon&&(D.icon=s.slots.icon),s.slots.checkedIcon&&(D.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const U=s.slots.text(A);D.default=()=>[U]}else{const U=co(r,A);D.default=()=>U}let E=t.h(l,B,D);k.push(E)}),k};return()=>{const k=m(),f={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:b,"onUpdate:modelValue":g},A=t.h(o,f,{default:()=>k}),N={default:()=>A};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 S={...be(r,ke,ye)};return r.prop&&(S.prop=`${r.prop}_item`),t.h(a,S,N)}}else return()=>{const m=s.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:b,"update:modelValue":g},{default:()=>m})}}}}const{componentName:Xm,create:Qm,scope:Gm}=_("radio-item"),Nl=Qm(Ym(Xm,Gm,Ae,io,so)),Zm=(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}=yt(),i=En(),c=t.inject("parent",null),u=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,f=>{u.partialSelect=f});const p=t.computed(()=>!!c),d=t.computed(()=>p.value?c.value.value.includes(l.label):!!l.modelValue),h=t.computed(()=>p.value?c.position:l.textPosition);let C="";const b=(f,A)=>{C="click",s("update:modelValue",f),s("change",f,A)};t.watch(()=>l.modelValue,f=>{C=="click"?C="":s("change",f)});const g=()=>{const f=[];if(u.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const A=fe(l.iconSize),N=l.indeterminateIcon??i.checkbox.Indeterminate??o;return f.push("fox-checkbox__icon--indeterminate"),l.disabled&&f.push("is-disabled"),l.readonly&&f.push("is-readonly"),t.h(N,{width:A,height:A,class:f})}}else if(d.value){if(r.checkedIcon)return r.checkedIcon();{const A=fe(l.iconSize),N=l.checkedIcon??i.checkbox.Checked??a;return f.push("fox-checkbox__icon"),l.disabled&&f.push("is-disabled"),l.readonly&&f.push("is-readonly"),t.h(N,{width:A,height:A,class:f})}}else{if(r.icon)return r.icon();{const A=fe(l.iconSize),N=l.icon??i.checkbox.CheckNormal??n;return f.push("fox-checkbox__icon--unchecked"),l.disabled&&f.push("is-disabled"),l.readonly&&f.push("is-readonly"),t.h(N,{width:A,height:A,class:f})}}},y=()=>{const f=[`${e}__label`];return l.disabled&&f.push("is-disabled"),l.readonly&&f.push("is-readonly"),t.h("view",{class:f},r.default?.())},m=()=>{const f=[`${e}__button`];return d.value&&f.push(`${e}__button--active`),l.disabled&&f.push("is-disabled"),l.readonly&&f.push("is-readonly"),t.h("view",{class:f},r.default?.())},k=f=>{if(!(l.disabled||l.readonly)){if(d.value&&u.partialSelect){u.partialSelect=!1,b(d.value,r.default?.()[0].children);return}if(b(!d.value,r.default?.()[0].children),p.value){const A=c.value.value,N=c.max.value,{label:w}=l,S=A.indexOf(w);S>-1?A.splice(S,1):S<=-1&&(A.length<N||!N)&&A.push(w),c.updateValue(A)}}};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:k},[l.shape=="button"?m():[g(),y()]])}}),{componentName:Jm,create:_m}=_("checkbox"),uo=_m(Zm(Jm,{CheckNormal:ae.CheckNormal,Checked:ae.Checked,Indeterminate:ae.CheckDisabled})),{create:ep,componentName:Fs}=_("checkbox-group"),fo=ep({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}=yt(),o=t.reactive({children:[]}),l=u=>{u.proxy&&o.children.push(u.proxy)},r=u=>{u.proxy&&(o.children=o.children.filter(p=>p!==u.proxy))},s=u=>{a("update:modelValue",u),a("change",u)},i=u=>{const p=[];u&&o.children.forEach(d=>{d?.disabled||p.push(d?.label)}),a("update:modelValue",p)},c=()=>{const u=o.children.filter(p=>p?.disabled?!1:!e.modelValue.includes(p.label)).map(p=>p.label);a("update:modelValue",u)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:l,unlink:r}),t.watch(()=>e.modelValue,u=>{a("change",u)}),Ie({toggleAll:i,toggleReverse:c}),()=>{const u={};return e.textAlign&&(u["text-align"]=e.textAlign),t.h("view",{class:`${Fs} ${Fs}--${e.direction}`,style:u},n.default?.())}}});function Ks(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(Bl(e,r)===a)return l}else if(o==="item"){if(xe(a,r))return l}else if(mo(e,r)===a)return l}return-1}function Bl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function mo(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function tp(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function np(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let op=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=tt(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function lp(){const e=t.getCurrentInstance();return new op(e.proxy)}function ap(e){return{text:e,value:e}}const rp={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Us={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},sp={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 ip(e,n,a,o,l){return{props:{...ye,...ke,...rp,...Us,...sp},emits:["change","update:modelValue","setValue"],setup(r,s){const i=De(t.computed(()=>r.disabled)),c=Ee(t.computed(()=>r.readonly)),u=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return i.value}},r.prop??s.attrs.name),d=lp(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([m,k])=>{if(m){const f=await d.load("checkbox",m,k);if(f.length>0)if(typeof f[0]=="string"){const w=f.map(S=>ap(S));h.value=w}else h.value=f;else h.value=[]}},{immediate:!0});const C=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([m,k])=>{const f=[];Array.isArray(m)&&m.forEach(A=>{let N=Ks(r,k,A,r.valueType);N!==-1&&f.push(N)}),!xe(f,C.value)&&(C.value=f,p("setValue",f))},{deep:!0});const b=t.computed(()=>{if(!r.source)return r.modelValue;let m=[];return C.value.forEach(k=>{let f=h.value[k];m.push(mo(r,f))}),m}),g=m=>{let k=[],f=[];if(h.value.length>0){const A=[];Array.isArray(m)&&m.forEach(N=>{let w=Ks(r,h.value,N,"value");w!==-1&&A.push(w);const S=h.value[w];f.push(S),r.valueType==="text"?k.push(Bl(r,S)):r.valueType==="item"?k.push(S):k.push(mo(r,S))}),C.value=A}else k=m;p("update:modelValue",k),p("change",k,f)},y=t.ref();if(Ie({toggleAll:m=>{y.value.toggleAll(m)},toggleReverse:()=>{y.value.toggleReverse()}}),r.source){const m=()=>{const k=[],f=be(r,Us);return h.value.forEach((A,N)=>{const w=mo(r,A),S=tp(r,A);let B={...f,label:w,disabled:S};const $=np(r,A,N);B={...B,...$},i.value&&(B.disabled=!0),c.value&&(B.readonly=!0);const D={};if(s.slots.icon&&(D.icon=s.slots.icon),s.slots.checkedIcon&&(D.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(D.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const U=s.slots.text(A);D.default=()=>[U]}else{const U=Bl(r,A);D.default=()=>U}let E=t.h(l,B,D);k.push(E)}),k};return()=>{const k=m(),f={class:`${e}`,ref:y,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:b.value,"onUpdate:modelValue":g},A=t.h(o,f,{default:()=>k}),N={default:()=>A};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 S={...be(r,ke,ye)};return r.prop&&(S.prop=`${r.prop}_item`),t.h(a,S,N)}}else return()=>{const m=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:y,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:u.value,modelValue:b,"onUpdate:modelValue":g},{default:()=>m})}}}}const{componentName:cp,create:dp,scope:up}=_("checkbox-item"),Al=dp(ip(cp,up,Ae,fo,uo)),Tl={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:fp,create:mp}=_("switch"),pp=mp({components:{Loading1:ae.Loading1},props:{...Tl},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const i=fp;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}}}),hp={class:"fox-switch-button"};function gp(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",hp,[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 po=le(pp,[["render",gp]]);function yp(e,n,a,o){return{props:{...ye,...ke,...Tl},emits:["change","update:modelValue","setValue"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),u=e,p=Le(l,"modelValue",null,c),d=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const C={...be(l,Tl),disabled:s.value||i.value,value:p.value,"onUpdate:modelValue":d},b=[],g=t.h(o,C);b.push(g);const y={default:()=>b};y.label=r.slots.default,y.fixedPreTip=r.slots.fixedPreTip,y.fixedTip=r.slots.fixedTip;const k={...be(l,ke,ye)};return l.prop&&(k.prop=`${l.prop}_item`),k["content-class"]=u,t.h(a,k,y)}}}}const{componentName:bp,create:kp,scope:Sp}=_("switch-item"),$l=kp(yp(bp,Sp,Ae,po));function Cp(e,n,a,o){return{props:{...ye,...ke,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:u}=ce.useFoxI18n(n),p=u(l,["placeholder"]),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,U=>{d.value=U,c("change",U)});const h=t.computed(()=>({[`${e}`]:!0})),C=t.computed(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&ue(d.value),"is-disabled":s.value,"is-readonly":i.value})),b=Ve(t.computed(()=>l.textAlign),"textAlign"),g=t.computed(()=>{const U={};return b.value&&(U["text-align"]=b.value),U}),y=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),m=t.computed(()=>ue(d.value)?p.placeholder.value:d.value),k=t.computed(()=>!ue(l.desc)||r.slots.sub),f=t.computed(()=>({[`${e}__sub`]:!0})),A=t.computed(()=>{const U={};return b.value&&(U["text-align"]=b.value),U}),N=()=>{c("focus",d.value)},w=()=>{c("blur",d.value)},S=t.computed(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),B=t.computed(()=>Ce(l.unit)>0),$=U=>{s.value==!0||i.value==!0||c("click")},D=t.computed(()=>l.icon??a),E=t.computed(()=>({action:!0}));return()=>{const U=[];if(typeof r.slots.content=="function"){const j=r.slots.content();U.push(j)}else{const j=[];if(y.value){const R={tabIndex:0,class:C.value,style:g.value,onFocus:N,onBlur:w};let K=null;r.slots.main?K=t.h("view",R,[r.slots.main(m.value)]):K=t.h("view",R,[m.value]),j.push(K)}if(k.value){const R={tabIndex:0,class:f.value,style:A.value,onFocus:N,onBlur:w};let K=null;r.slots.sub?K=t.h("view",R,[r.slots.sub(l.desc)]):K=t.h("view",R,[l.desc]),j.push(K)}const M={class:h.value,onClick:$},G=t.h("view",M,j);U.push(G)}const J=[],I=fe(l.iconSize);let V=r.slots.icon;if(!V){const j={width:I,height:I,class:["action-icon"]};V=t.h(D.value,j)}const P={class:E.value,onClick:$},v=t.h("view",P,{default:()=>[V]});if(J.push(v),B.value){const j=t.h("view",{},[l.unit]);J.push(j)}const O={class:S.value},H=t.h("view",O,{default:()=>J});U.push(H);const L={default:()=>U};L.label=r.slots.default,L.prepend=r.slots.prepend,L.append=r.slots.append,L.fixedPreTip=r.slots.fixedPreTip,L.fixedTip=r.slots.fixedTip;const te={...be(l,ke,ye)};return l.prop&&(te.prop=`${l.prop}_item`),t.h(o,te,L)}}}}const{componentName:wp,create:Np,scope:Bp}=_("link-item"),Vl=Np(Cp(wp,Bp,ae.ArrowRight,Ae)),El={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:Ap,componentName:Tp}=_("rate"),$p=Ap({props:{...El},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[Tp]:!0})),r=C=>{n("update:modelValue",C),n("change",C)},s=(C,b)=>{if(e.disabled||e.readonly)return;let g=0;b===1&&e.modelValue===b||(g=b,e.allowHalf&&C==2&&(g-=.5)),r(g)},i=(C,b,g)=>{let y=0;for(let m=b.value.length-1;m>=0;m--){const k=b.value[m];if(C>k.offsetLeft){g?y=m+(C>k.offsetLeft+k.clientWidth/2?1:.5):y=m+1;break}}return y},c=ot(),u={onTouchStart(C){!e.touchable||e.readonly||c.start(C)},onTouchMove(C){e.touchable&&(c.move(C),c.isHorizontal()&&o.value&&(C.preventDefault(),r(i(c.moveX.value,o,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),d=t.computed(()=>e.customIcon??ae.StarFillN);return{classes:l,...u,onClick:s,toPxString:me,renderIcon:(C,b)=>t.h(C,b),rateRefs:o,refRandomId:p,slots:a,customIcon:d}}}),Vp=["id"],Ep={class:"fox-rate-item__icon--full"},Dp={key:0,class:"fox-rate-item__icon--half"},Ip={key:1,class:"fox-rate-item__icon--half"};function vp(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.toPxString(e.spacing)}:{})},[t.createElementVNode("view",Ep,[(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",Dp,[(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",Ip,[(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,Vp))),128))],34)}const At=le($p,[["render",vp]]);function xp(e,n,a,o){return{props:{...ye,...ke,...El},emits:["change","update:modelValue","setValue"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),u=e,p=Le(l,"modelValue",null,c),d=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const C={...be(l,El),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":d},b=[],g=t.h(o,C);b.push(g);const y={default:()=>b};if(r.slots.default){const f=r.slots.default();y.label=()=>f}const m=be(l,ke,ye);return l.prop&&(m.prop=`${l.prop}_item`),m["content-class"]=u,t.h(a,m,y)}}}}const{componentName:qp,create:Pp,scope:Mp}=_("rate-item"),Dl=Pp(xp(qp,Mp,Ae,At)),Lp=/scroll|auto|overlay/i,Hs=window;function zp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Il(e,n=Hs){let a=e;for(;a&&a!==n&&zp(a);){const{overflowY:o}=window.getComputedStyle(a);if(Lp.test(o))return a;a=a.parentNode}return n}function js(e,n=Hs){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=Il(e.value,n))}),a}const Ws=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Op={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function Rp(e,n,a){return{props:{...Op},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ce.useFoxI18n(n),i=s(o,["pullText","loadText","noMoreText"]),c=t.ref(),u=js(c),p=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=t.computed(()=>({[e]:!0})),h=k=>k?k.offsetTop+h(k.offsetParent):0,C=()=>{let k=0,f=0,A="down";if(u.value==window){const N=Ws();c.value&&(k=h(c.value)+c.value.offsetHeight-N-window.innerHeight),f=N}else{const{scrollHeight:N,clientHeight:w,scrollTop:S}=u.value;k=N-w-S,f=S}return p.beforeScrollTop>f?A="up":A="down",p.beforeScrollTop=f,l("scroll-change",f),k<=o.threshold&&A=="down"},b=()=>{Ge(()=>{if(!C()||!o.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,l("update:modelValue",!0),t.nextTick(()=>l("load-more"))})},g=()=>{u.value&&u.value.addEventListener("scroll",b,o.useCapture)},y=()=>{u.value&&u.value.removeEventListener("scroll",b,o.useCapture)};t.onMounted(()=>{g(),o.immediate&&b()}),t.onUnmounted(()=>{y()});const m=t.ref(!1);return t.onActivated(()=>{m.value&&(m.value=!1,g())}),t.onDeactivated(()=>{m.value=!0,y()}),t.watch(()=>o.modelValue,k=>{k||(p.isInfiniting=!1)}),()=>{const k={class:"fox-infinite__container"},f=t.h("view",k,[r?.default?.()]),A=[];if(p.isInfiniting){let B=r?.loading?.()??null;if(!B){let E=r?.loadingIcon?.()??null;if(!E){const I={class:["fox-infinite__bottom-box__img"]};E=t.h(a,I)}const U={class:"fox-infinite__bottom-box__text"},J=t.h("view",U,[i.loadText.value]);B=[E,J]}const $={class:"fox-infinite__bottom-box"},D=t.h("view",$,B);A.push(D)}else if(!o.hasMore){let B=r?.finished?.()??null;if(!B){const $={class:"fox-infinite__bottom-tips"};B=t.h("view",$,[i.noMoreText.value]),A.push(B)}}const N={class:"fox-infinite__bottom"},w=t.h("view",N,A),S={class:d.value,ref:c};return t.h("view",S,[f,w])}}}}const{componentName:Fp,create:Kp,scope:Up}=_("infinite-loading"),ho=Kp(Rp(Fp,Up,ae.Loading)),{componentName:Hp,create:jp}=_("button"),Wp=jp({components:{Loading:ae.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:o,size:l,shape:r,disabled:s,loading:i,color:c,plain:u,block:p}=t.toRefs(e),d=b=>{!i.value&&!s.value&&n("click",b)},h=t.computed(()=>{const b=Hp;return{[b]:!0,[`${b}--${o.value}`]:o.value,[`${b}--${l.value}`]:l.value,[`${b}--${r.value}`]:r.value,[`${b}--plain`]:u.value,[`${b}--block`]:p.value,[`${b}--disabled`]:s.value,[`${b}--loading`]:i.value}}),C=t.computed(()=>{const b={};return c?.value&&(u.value?(b.color=c.value,b.background="#fff",c.value?.includes("gradient")||(b.borderColor=c.value)):(b.color="#fff",b.background=c.value)),b});return{handleClick:d,classes:h,getStyle:C}}}),Yp={class:"fox-button__wrap"};function Xp(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",Yp,[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 Re=le(Wp,[["render",Xp]]),Qp={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"}},Gp=(e,n,a)=>({props:{...Qp},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}=yt(),{toLocaleRefs:s}=ce.useFoxI18n(n),i=s(o,["placeholder"]),c=t.reactive({active:!1}),u=t.computed(()=>({background:o.background})),p=t.computed(()=>({background:o.inputBackground})),d=$=>{let E=$.target.value;o.maxLength&&E.length>Number(o.maxLength)&&(E=E.slice(0,Number(o.maxLength))),r("update:modelValue",E,$),r("change",E,$)},h=t.ref({}),C=$=>{let E=$.target.value;c.active=!0,h.value=o.focusStyle,r("focus",E,$)},b=$=>{setTimeout(()=>{c.active=!1},0);let E=$.target.value;o.maxLength&&E.length>Number(o.maxLength)&&(E=E.slice(0,Number(o.maxLength))),h.value={},r("blur",E,$)},g=$=>{r("update:modelValue","",$),r("change","",$),r("clear","")},y=t.computed(()=>String(o.modelValue).length>0),m=t.computed(()=>{const $={};return y.value||($.display="none"),$}),k=$=>{o.autoblur&&S.value?.blur(),(typeof $.cancelable!="boolean"||$.cancelable)&&$.preventDefault(),r("search",o.modelValue)},f=$=>{r("keyup-input",$)},A=$=>{r("click-input",$)},N=$=>{r("click-left-icon",o.modelValue,$)},w=t.computed(()=>({textAlign:o.inputAlign})),S=t.ref(null);t.onMounted(()=>{o.autofocus&&S.value.focus()});const B=()=>{const $=[];if(l.leftin){const P={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:N},v=t.h("view",P,[l.leftin()]);$.push(v)}const D={class:`${e}__input-inner-input`,ref:S,style:w.value,type:o.inputType,maxlengt:o.maxLength,placeholder:i.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:A,onInput:d,onFocus:C,onBlur:b,onkeyup:f},E=t.h("input",D),U={class:[`${e}__input-inner`],action:"#",onSubmit:k},J=t.h("form",U,[E]);$.push(J);const I=[];if(o.clearable){const P={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:m.value,onClick:g},v=l?.clear?.()??o.clearIcon??a,O=t.h("view",P,[t.h(v)]);I.push(O)}if(l.rightin){const P={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},v=t.h("view",P,[l.rightin()]);I.push(v)}if(I.length>0){const P={class:`${e}__input-inner-right`},v=t.h("view",P,I);$.push(v)}const V={class:[`${e}__search-input`,`${o.shape}`],style:{...p.value,...h.value}};return t.h("view",V,$)};return()=>{const $=[];if(o.label){const U={class:`${e}__search-label`},J=t.h("span",U,[o.label]);$.push(J)}if(l.leftout){const U={class:[`${e}__search-icon`,`${e}__left-search-icon`]},J=t.h("view",U,[l.leftout()]);$.push(J)}const D=B();if($.push(D),l.rightout){const U={class:[`${e}__search-icon`,`${e}__right-search-icon`]},J=t.h("view",U,[l.rightout()]);$.push(J)}const E={class:`${e}`,style:u.value};return t.h("view",E,$)}}}),{componentName:Zp,create:Jp,scope:_p}=_("searchbar"),go=Jp(Gp(Zp,_p,ae.CircleClose)),yo={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]},noMoreText:{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 eh(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(bo(e,r)===a)return l}else if(o==="item"){if(xe(a,r))return l}else if(Xs(e,r)===a)return l}return-1}function bo(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ys(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Xs(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function th(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function nh(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let oh=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let u=a;typeof i=="function"&&(u=u.filter(i));let p=(o-1)*l,d=p+l;d>u.length&&(d=u.length);const h=u.slice(p,d);return{totalSize:u.length,page:h}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s]);const c=tt(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(ve(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r]))}};function lh(){const e=t.getCurrentInstance();return new oh(e.proxy)}function ah(e,n,a,o,l,r,s,i,c,u,p){return{props:{...yo},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{slots:h}){const{emitEvent:C}=yt(),{toLocaleRefs:b}=ce.useFoxI18n(n),g=b(d,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),y=lh(),m=t.ref([]),k=t.ref(0),f=t.ref(""),A=t.shallowRef(null),N=t.computed(()=>{const z={};return d.params&&Object.assign(z,d.params),ue(f.value)||(z[`${d.searchKey}`]=f.value),A.value&&Object.assign(z,A.value),z});let w=!0;const S=async(z,X,q)=>{try{if($.value===!1)return;let x=null;ue(f.value)||(x=W=>{const oe=bo(d,W);if(typeof oe=="string"&&oe.includes(f.value))return!0;const re=Ys(d,W);return!!(typeof re=="string"&&re.includes(f.value))});const Y=await y.load("actionsheet",z,X,q,N.value,w,x??void 0);w=!1,Array.isArray(Y)?(m.value=Y,k.value=1,$.value=!1):!Array.isArray(Y.page)||Y.page.length===0?(console.warn("[FoxUI] can not load more data"),$.value=!1):(Reflect.apply([].push,m.value,Y.page),k.value=Math.ceil(m.value.length/d.pageSize),(Y.totalSize&&m.value.length>=Y.totalSize||q<Y.page.length)&&($.value=!1)),B.value=!1}catch(x){console.error("[FoxUI] ActionSheet load more data fail",x),$.value=!0,k.value=0,m.value=[]}setTimeout(()=>{C("loaded-data")},250)},B=t.ref(!1),$=t.ref(!0),D=async()=>{if(!d.source){B.value=!1;return}await S(d.source,k.value+1,d.pageSize)};let E=null;t.watch(f,(z,X)=>{E&&(clearTimeout(E),E=null),ue(z)&&!ue(X)&&(E=setTimeout(()=>{J()},d.searchDelayTriggerClear))});const U=()=>{$.value=!0,k.value=0,m.value=[],d.source&&D()},J=()=>{U()};t.watch([()=>d.source,()=>d.pageSize,()=>d.params],async([z,X,q])=>{d.source&&U()},{immediate:!0});const I=t.computed(()=>!d.multiple&&d.isAutoBackFill),V=t.ref([]);let P=null;const v=t.ref(d.visible);t.watch(()=>d.visible,z=>{v.value!==z&&(v.value=z),z?P=[...V.value]:P=null});const O=(z,X)=>{const q=[];return Array.isArray(z)||(z=[z]),z.forEach(x=>{let Y=eh(d,X,x,d.valueType);Y!==-1&&q.push(Y)}),xe(q,V.value)?!1:(V.value=q,!0)};t.watch([()=>d.modelValue,()=>m.value],([z,X],[q,x])=>{if(O(z,X)){const W=H();L(W)}},{deep:!0});const H=()=>{const z=[],X=[],q=[];for(let oe of V.value){const re=m.value[oe];X.push(re);const se=bo(d,re);if(q.push(se),d.valueType==="item")z.push(re);else if(d.valueType==="text")z.push(se);else{const pe=Xs(d,re);z.push(pe)}}let x=null,Y=null,W=null;return d.multiple?(x=z,Y=q,W=X):(x=z[0]??null,Y=q[0]??null,W=X[0]??null),{value:x,text:Y,item:W}},L=z=>{C("update:modelValue",z.value),C("update:text",z.text),C("change",z.value,z.item,z.text)},Z=()=>{P&&(V.value=P)},te=z=>{const X=V.value.indexOf(z);d.multiple?X===-1?V.value.push(z):V.value.splice(X,1):X===-1?V.value=[z]:V.value=[],(I.value||!d.poppable&&!d.showFooter)&&M()},F=z=>{v.value=z,C("update:visible",z)},j=()=>{const z=()=>{Z(),F(!1)},X=d.beforeMethod??d.beforeClose;if(typeof X=="function"){const q=X("close");pt(q)?q.then(x=>{x!==!1&&z()}).catch(()=>{z()}):q!==!1&&z()}else z()},M=()=>{const z=H(),X=()=>{L(z),F(!1)},q=d.beforeMethod??d.beforeClose;if(typeof q=="function"){const x=q("confirm",z.value,z.item,z.text);pt(x)?x.then(Y=>{Y!==!1&&X()}).catch(()=>{X()}):x!==!1&&X()}else X()},G=()=>{let z=g.title.value??"";h.title&&(z=h.title());const X=t.h("view",{class:["fox-actionsheet__header-title"]},[z]),q=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:j});return t.h("view",{class:["fox-actionsheet__header"]},[X,q])},R=()=>{let z=null;if(h.search)z=h.search();else{const X={onSearch:U,placeholder:g.seachPlaceholder.value,disabled:d.disabled,modelValue:f.value,"onUpdate:modelValue":q=>{f.value=q}};z=t.h(r,X,{leftin:()=>t.h(u)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[z])},K=(z,X,q,x,Y)=>{if(h.optionLabel)return h.optionLabel({text:z,checked:X,disabled:q,subText:x,item:Y});const W=[],oe=t.h("view",{class:"fox-actionsheet__list-item-text"},[z]);if(W.push(oe),x){const re=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[x]);W.push(re)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},W)},ee=(z,X,q,x)=>{if(h.optionIcon)return h.optionIcon({checked:z,disabled:X,iconSize:q,item:x});if(z){if(h.checkedIcon)return h.checkedIcon({disabled:X,item:x});{const Y=d.checkedIcon??i;return t.h(Y,{width:q,height:q,class:["fox-actionsheet__list-item-icon"]})}}else{if(h.icon)return h.icon({disabled:X,item:x});{const Y=d.icon??s;return t.h(Y,{width:q,height:q,class:["fox-actionsheet__list-item-icon"]})}}},Q=()=>{const z=[];for(let X=0;X<m.value.length;X++){const q=m.value[X],x=bo(d,q),Y=Ys(d,q),W=["fox-actionsheet__list-item"],oe={};let re=th(d,q),se=d.iconSize?fe(d.iconSize):null;const pe=nh(d,q,X);pe&&(re=re||pe.disabled,pe.class&&W.push(pe.class),pe.style&&Object.assign(oe,pe.style)),re=!!(d.disabled||re);const Be=V.value.includes(X);re&&W.push("is-disabled"),Be&&W.push("is-checked");const at={class:W,style:oe,key:`${X}`,onClick:()=>{re||te(X)}};let rt=[];if(h.option)rt.push(h.option({item:q,checked:Be,disabled:re}));else{const vt=K(x,Be,re,Y,q);rt.push(vt);const sr=ee(Be,re,se,q);rt.push(sr),d.textPosition==="right"&&rt.reverse()}const Qe=t.h("view",at,rt);z.push(Qe)}return z},ne=()=>{let z=[];if(h.buttons)z=h.buttons();else{const q=t.h(l,{type:"primary",block:"block",onClick:M,disabled:d.disabled},{default:()=>g.confirmText.value});z.push(q)}return t.h("view",{class:"fox-actionsheet__footer"},[z])};return Ie({search:async(z=null,X=!0)=>{A.value=z&&t.toRaw(z),t.triggerRef(A),X&&($.value=!0,k.value=0,m.value=[]),t.nextTick(()=>{D()})},clear:()=>{$.value=!0,k.value=0,m.value=[]},confirm:()=>{M()},cancel:()=>{j()}}),()=>{const z=[];if(d.showHeader){const se=G();z.push(se)}if(d.showSearchbar){const se=R();z.push(se)}let X=null;if(h.content)X=h.content();else{const se=Q(),pe={hasMore:$.value,loadText:g.loadText.value,noMoreText:g.noMoreText.value,modelValue:B.value,"onUpdate:modelValue":Be=>{B.value=Be},onLoadMore:D};X=t.h(o,pe,{default:()=>se})}const q={};d.optionsHeight&&(q.height=d.optionsHeight);const x={"fox-actionsheet__list":!0};d.poppable||(x["fox-actionsheet__list--inner"]=!0);const Y=t.h("view",{class:x,style:q},[X]);if(z.push(Y),d.showFooter&&!I.value){const se=ne();z.push(se)}const W=t.h("view",{class:"fox-actionsheet"},z);if(!d.poppable)return W;const oe=["fox-actionsheet__popup"];d.popClass&&oe.push(d.popClass);const re={popClass:oe.join(" "),visible:v.value,closeable:!1,"onUpdate:visible":F,position:d.position,round:"round",onClickOverlay:j,closeOnClickOverlay:d.closeOnClickOverlay};return t.h(a,re,{default:()=>W})}}}}const{componentName:rh,create:sh,scope:ih}=_("actionsheet-pane"),ko=sh(ah(rh,ih,he,ho,Re,go,ae.CheckNormal,ae.Checked,ae.Close,ae.Search2)),Qs={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 ch(e,n,a,o,l,r,s){return{props:{...ye,...ke,...Qs,...yo},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,c){const u=De(t.computed(()=>i.disabled)),p=Ee(t.computed(()=>i.readonly)),{emitEvent:d}=$e({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ce.useFoxI18n(n),C=h(i,["placeholder"]),b=t.ref(!1),g=Le(i,"modelValue",null,d),y=t.ref(""),m=t.computed(()=>Array.isArray(y.value)?y.value.join(i.separator):y.value),k="fox-input-item",f=t.computed(()=>({[k]:!0,"is-disabled":u.value,"is-readonly":p.value})),A=Ve(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const M={};return A.value&&(M["text-align"]=A.value),M}),w=t.ref(!1),S=()=>{w.value=!0},B=M=>{w.value=M},$=M=>{g.value=M,d("update:modelValue",M)},D=(M,G)=>{d("change",M,G)},E=M=>{let R=M.target.value;b.value=!0,d("focus",R,M)},U=M=>{setTimeout(()=>{b.value=!1},0);let R=M.target.value;i.maxLength&&R.length>Number(i.maxLength)&&(R=R.slice(0,Number(i.maxLength))),d("blur",R,M)},J=M=>{y.value=M,d("update:text",M)},I=t.computed(()=>({[`${k}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),V=t.computed(()=>Ce(i.unit)>0),P=t.computed(()=>Ce(i.unit)>0&&!b.value),v=t.computed(()=>({hidden:!P.value})),O=M=>{g.value="",d("update:modelValue","",M),d("change","",M),d("clear","")},H=t.computed(()=>i.clearable&&!u.value&&!p.value),L=t.computed(()=>Ce(g.value)>0&&b.value),Z=M=>{L.value?O(M):S()},te=t.computed(()=>L.value&&H.value?o:l),F=t.computed(()=>({action:!0})),j=t.ref(null);return Ie({search:M=>{j.value&&j.value.search(M)},clear:()=>{j.value&&j.value.clear},confirm:M=>{j.value&&j.value.confirm()},cancel:()=>{j.value&&j.value.cancel()}}),()=>{const M={class:f.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:C.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:S,onFocus:E,onBlur:U},G=[],R=t.h("input",M);G.push(R);const K=[],ee={class:["action-icon"]},Q=t.h(te.value,ee),ne={class:F.value,onClick:Z},z=t.h("view",ne,{default:()=>[Q]});if(K.push(z),V.value){const Be=t.h("view",{class:v.value},[i.unit]);K.push(Be)}const X={class:I.value},q=t.h("view",X,{default:()=>K});G.push(q);const x={default:()=>G};x.label=c.slots.default,x.prepend=c.slots.prepend,x.append=c.slots.append,x.fixedPreTip=c.slots.fixedPreTip,x.fixedTip=c.slots.fixedTip;const Y=be(i,yo);Y.ref=j,Y.class=i.actionsheetProps,Y.disabled=u.value||p.value,Y.visible=w.value,Y["onUpdate:visible"]=B,Y.modelValue=g.value,Y["onUpdate:modelValue"]=$,Y.text=y.value,Y["onUpdate:text"]=J,Y.onChange=D,Y.poppable=!0,Y["text-position"]=i.textPosition;const W={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},oe=t.h(r,Y,W);x.hide=()=>[oe];const se={...Je(i,Qs,yo)};return i.prop&&(se.prop=`${i.prop}_item`),t.h(a,se,x)}}}}const{componentName:dh,create:uh,scope:fh}=_("actionsheet-item"),vl=uh(ch(dh,fh,Ae,ae.CircleClose,ae.ArrowRight,ko)),xl={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:mh,create:ph}=_("input-number"),hh=ph({components:{Minus:ae.Minus,Plus:ae.Plus},props:{...xl},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const C=mh;return{[C]:!0,[`${C}--disabled`]:e.disabled}}),o=C=>Number(C).toFixed(Number(e.decimalPlaces)),l=C=>{const b=C.target;n("update:modelValue",b.valueAsNumber,C)},r=(C,b)=>{let g=o(C);n("update:modelValue",g,b),n("change",g,b)},s=(C=Number(e.modelValue))=>C<Number(e.max)&&!e.disabled,i=(C=Number(e.modelValue))=>C>Number(e.min)&&!e.disabled,c=C=>{if(n("reduce",C),i()){let b=Number(e.modelValue)-Number(e.step);r(b,C)}else n("overlimit",C,"reduce")},u=C=>{if(n("add",C),s()){let b=Number(e.modelValue)+Number(e.step);r(b,C)}else n("overlimit",C,"add")},p=C=>{e.disabled||e.readonly||n("focus",C)},d=C=>{if(e.disabled||e.readonly)return;let g=C.target.valueAsNumber;g<Number(e.min)?g=Number(e.min):g>Number(e.max)&&(g=Number(e.max)),r(g,C),n("blur",C)},h=C=>{let b=Number(C);return b<Number(e.min)?b=Number(e.min):b>Number(e.max)&&(b=Number(e.max)),b};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const C=h(e.modelValue);C!==Number(e.modelValue)&&r(C,{})}),{classes:a,change:l,blur:d,focus:p,add:u,addAllow:s,reduce:c,reduceAllow:i,toPxString:me}}}),gh=["min","max","disabled","readonly","value"];function yh(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.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxString(e.inputWidth),height:e.toPxString(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,gh),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.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}const lt=le(hh,[["render",yh]]);function bh(e,n,a,o){return{props:{...ye,...ke,...xl},emits:["change","update:modelValue","setValue","add","reduce"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),u=t.computed(()=>{const b=[`${e}`];return l.textAlign==="left"?b.push("is-left"):l.textAlign==="center"?b.push("is-center"):l.textAlign==="right"&&b.push("is-right"),b.join(" ")}),p=Le(l,"modelValue",null,c),d=b=>{p.value=b,c("update:modelValue",b,{}),c("change",b,{})},h=b=>{c("add",b)},C=b=>{c("reduce",b)};return()=>{const b={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},g=be(l,xl),m={...r.attrs,...g,disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":d,onAdd:h,onReduce:C},k=t.h(o,m,b),f=[];f.push(k);const A={default:()=>f};A.label=r.slots.default,A.fixedPreTip=r.slots.fixedPreTip,A.fixedTip=r.slots.fixedTip;const w={...be(l,ke,ye)};return l.prop&&(w.prop=`${l.prop}_item`),w["content-class"]=u.value,t.h(a,w,A)}}}}const{componentName:kh,create:Sh,scope:Ch}=_("input-number-item"),ql=Sh(bh(kh,Ch,Ae,lt));function wh(e,n,a,o){return{props:{...ml,...pl,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}},emits:["update:modelValue","change"],setup(l,{emit:r,slots:s}){const i=e,c=t.computed(()=>{const g=[`${i}`];return l.direction==="vertical"?g.push("vertical-tabbar"):g.push("horizontal-tabbar"),g}),u=t.computed(()=>{const g={};if(l.width){const y=me(l.width);y&&(g.width=y)}if(l.height){const y=me(l.height);y&&(g.height=y)}return g}),p=t.computed(()=>[`${i}__bars`]),d=t.computed(()=>[`${i}__container`]),h=t.ref(l.modelValue);t.watch(()=>l.modelValue,g=>{h.value!==g&&(h.value=g)});const C=g=>{r("change",g)},b=g=>{h.value!==g&&(h.value=g,r("update:modelValue",g))};return()=>{const g=s.default?.()??[],y=[];if(Array.isArray(l.data))y.push(...l.data);else for(let B=0;B<g.length;B++){const $=g[B].props??{},D={text:$.label??"",value:$["pane-key"]??$.paneKey??""};y.push(D)}const m={};for(let B in s)B!=="default"&&(m[B]=s[B]);const k=be(l,ml);Object.assign(k,{data:y,class:p.value,modelValue:h.value,direction:l.direction,onChange:C,"onUpdate:modelValue":b});const f=t.h(a,k,m),A={default:()=>g},N=be(l,pl);Object.assign(N,{class:d.value,modelValue:h.value,onChange:C,"onUpdate:modelValue":b});const w=t.h(o,N,A),S={class:c.value,style:u.value};return t.h("view",S,[f,w])}}}}const{create:Nh,componentName:Bh,scope:Ah}=_("tabs-frame"),Pl=Nh(wh(Bh,Ah,Ht,jt)),Th={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 $h(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Gs(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Zs(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Vh(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Ml(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Js(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function _s(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Ll(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Eh=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=tt(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(l,null,[a,o]))}};function Dh(){const e=t.getCurrentInstance();return new Eh(e.proxy)}function Ih(e,n,a,o){return{props:{...Th},emits:["update:modelValue","change","loaded-data","click"],setup(l,{slots:r,emit:s}){const i=e,c=Dh(),u=t.ref([]),p=t.computed(()=>u.value.filter(F=>Vh(l,F)!==!1)),d=t.ref(-1),h=()=>{const F=l.modelValue,j=p.value.findIndex(M=>Gs(l,M)===F);d.value!==j&&(d.value=j,l.scroll&&Z(j))};t.watch([()=>l.modelValue,p],()=>{h()});const C=F=>d.value===F,b=F=>{if(F<0&&F>=p.value.length)return!1;const j=p.value[F],G=(Ll(l,j,F)??{}).status??Ml(l,j);return C(F)||G},g=t.computed(()=>{const F={[i]:!0};return l.mode?F[`is-${l.mode}`]=!0:l.direction&&(F[`is-${l.direction}`]=!0),l.scroll&&(F["is-scroll"]=!0),F}),y=t.computed(()=>({})),m=(F,j,M,G,R)=>{const K={[`${i}__step`]:!0};return R&&(K[`${R}`]=!0),K[`${k.value}`]=!0,G&&(K["is-doit"]=!0),F===d.value?K["is-active"]=!0:j==="done"?K["is-done"]=!0:j==="error"?K["is-error"]=!0:j==="half"?K["is-half"]=!0:M?K["is-disabled"]=!0:K["is-normal"]=!0,K},k=t.computed(()=>{if(l.mode==="simple")return"start";let F=l.align;return F||(l.direction==="vertical"?F="start":F="center"),F}),f=(F,j={})=>{const M={...j};return k.value==="start"&&F===p.value.length-1?M.flex="0 0 auto":l.step?l.direction==="vertical"?M.height=l.step:M.width=l.step:M.flex="1 1 100%",M},A=(F,j)=>{let M={};if(j<p.value.length-1){const G=j+1;b(j)&&b(G)?l.direction==="vertical"?M.height="100%":M.width="100%":M.opacity="0"}return M},N=F=>p.value.length-1===F,w=(F,j)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&j>d.value||d.value===j)return;const M=d.value,G=j;d.value=j,l.scroll&&Z(j);const R=Gs(l,F);s("update:modelValue",R);const K={fromIndex:M,currentIndex:G,item:F,items:p.value,clickNavigatePolicy:l.clickNavigatePolicy};s("change",R,K)},S=t.ref(!0),B=async(F,j)=>{try{const M=await c.load("stesbar",F,j);Array.isArray(M)&&(u.value=M),S.value=!1}catch(M){console.error("[FoxUI] Load StepsBar Data Fail",M),u.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([F,j])=>{F&&B(F,j)},{immediate:!0});const $=(F,j,M,G,R,K)=>{const ee=[];let Q=null;if(!K)if(r.icon)Q=r.icon({item:F,index:j,status:G});else if(G==="done"){const z={};l.iconSize&&(z.width=l.iconSize,z.height=l.iconSize);const X=l.icon??a;Q=t.h(X,z)}else{const z=M??`${j+1}`;Q=t.h("span",{},[z])}Q&&ee.push(Q);const ne={class:"fox-steps-bar__icon",onClick:()=>{s("click",{item:F,index:j}),!R&&w(F,j)}};return t.h("view",ne,ee)},D=(F,j,M)=>{const G=t.h("i",{class:"fox-steps-bar__line-inner",style:A(F,j)});return t.h("view",{class:"fox-steps-bar__line"},[G])},E=()=>{let F=null;if(r.markIcon)F=r.markIcon();else{const M={};l.iconSize&&(M.width=l.markIconSize,M.height=l.markIconSize);const G=l.markIcon??o;F=t.h(G,M)}return t.h("view",{class:"fox-steps-bar__mark"},[F])},U=(F,j,M,G,R,K)=>{const ee=[];if(!N(j)){const z=D(F,j);ee.push(z)}const Q=$(F,j,M,G,R,K);ee.push(Q);const ne={class:"fox-steps-bar__head"};return t.h("view",ne,ee)},J=(F,j,M,G)=>{let R=null;r.main?R=r.main({item:F,index:j,status:M}):R=$h(l,F);const K={class:"fox-steps-bar__main",onClick:()=>{s("click",{item:F,index:j}),!G&&w(F,j)}};return t.h("view",K,[R])},I=(F,j,M)=>{let G=null;if(r.sub){G=r.sub({item:F,index:j,status:M});const R={class:"fox-steps-bar__sub"};return t.h("view",R,[G])}return null},V=(F,j)=>{const M=Ll(l,F,j)??{},G=M.status??Ml(l,F);let R=Zs(l,F);M.disabled===!0&&(R=!0),l.disabled===!0&&(R=!0);let K=Js(l,F);M.doit===!0&&(K=!0);const ee=M.label??_s(l,F),Q=[],ne=$(F,j,ee,G,R,K);ne&&Q.push(ne);const z=J(F,j,G,R);if(z&&Q.push(z),!N(j)){const W=D(F,j);W&&Q.push(W)}const X=t.h("view",{class:"fox-steps-bar__head"},Q),q=M.class,x=M.style??{},Y={ref:L(j),class:m(j,G,R,K,q),style:f(j,x)};return t.h("view",Y,[X])},P=(F,j)=>{const M=Ll(l,F,j)??{},G=M.status??Ml(l,F);let R=Zs(l,F);M.disabled===!0&&(R=!0),l.disabled===!0&&(R=!0);let K=Js(l,F);M.doit===!0&&(K=!0);const ee=M.label??_s(l,F),Q=[],ne=l.layout;for(let x of ne)if(x==="head"){const Y=U(F,j,ee,G,R,K);Q.push(Y)}else if(x==="main"){const Y=J(F,j,G,R);Q.push(Y)}else if(x==="sub"){const Y=I(F,j,G);Q.push(Y)}else if(x==="mark"){const Y=E();Q.push(Y)}const z=M.class,X=M.style??{},q={ref:L(j),class:m(j,G,R,K,z),style:f(j,X)};return t.h("view",q,Q)},v=t.ref(),O=t.ref([]),H=(F,j)=>{O.value[j]=F},L=F=>j=>{H(j,F)},Z=(F,j)=>{const M=v.value,G=O.value;if(!M||!G||!G[F])return;const R=G[F];let K=0;l.direction==="vertical"?K=R.offsetTop-(M.offsetHeight-R.offsetHeight)/2:K=R.offsetLeft-(M.offsetWidth-R.offsetWidth)/2,te(M,K,.3,l.direction)},te=(F,j,M,G)=>{let R=0;const K=G==="horizontal"?F.scrollLeft:F.scrollTop,ee=Math.round(M*1e3/16);function Q(){G==="horizontal"?F.scrollLeft+=(j-K)/ee:F.scrollTop+=(j-K)/ee,++R<ee&&je(Q)}Q()};return()=>{const F=[];if(l.mode==="simple")for(let M=0;M<p.value.length;M++){const G=p.value[M],R=V(G,M);F.push(R)}else for(let M=0;M<p.value.length;M++){const G=p.value[M],R=P(G,M);F.push(R)}const j={ref:v,class:g.value,style:y.value};return t.h("view",j,F)}}}}const{componentName:vh,create:xh,scope:qh}=_("steps-bar"),zl=xh(Ih(vh,qh,ae.Checklist,ae.ArrowRight));function Ph(e){e.stopPropagation()}class Mh{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=Kn()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=Un(),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),Ph(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 Lh(e,n){return new Mh(e,n)}const zh={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]},zIndex:{type:[String]}},Oh=(e,n,a,o=!1)=>({props:{...zh},emits:["click"],setup(l,{slots:r,emit:s}){let i=-1,c=-1;const u=t.reactive({top:l.top,right:l.right,bottom:l.bottom,left:l.left,width:0,height:0}),p=t.computed(()=>{const N=[`${e}`];return l.customClass&&N.push(l.customClass),N}),d=N=>typeof N=="string"&&!Mo(N)?N:`${N}px`,h=t.computed(()=>{const N={};return ue(u.top)||(N.top=d(u.top)),ue(u.right)||(N.right=d(u.right)),ue(u.bottom)||(N.bottom=d(u.bottom)),ue(u.left)||(N.left=d(u.left)),ue(l.width)||(N.width=d(l.width)),ue(l.height)||(N.height=d(l.height)),ue(l.color)||(N.color=l.color),ue(l.background)||(N.background=l.background),ue(l.borderRadius)||(N["border-radius"]=l.borderRadius),ue(l.zIndex)||(N["z-index"]=l.zIndex),N}),C=t.computed(()=>({[`${e}__icon`]:!0})),b=()=>{s("click")},g=t.ref(null),y=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},m={x:0,y:0},A=Lh(N=>{if(!g.value)return;const w=g.value;y(),u.left=w.offsetLeft,u.top=w.offsetTop,w.style.left=`${u.left}px`,w.style.top=`${u.top}px`,w.style.right=null,w.style.bottom=null,m.x=u.left,m.y=u.top,u.width=w.offsetWidth,u.height=w.offsetHeight,i=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight},N=>{if(!g.value)return;const w=g.value;y();let S=m.x+N.x;S<0&&(S=0),S>i-u.width&&(S=i-u.width);let B=m.y+N.y;B<0&&(B=0),B>c-u.height&&(B=c-u.height),u.left=S,u.top=B,w.style.left=`${S}px`,w.style.top=`${B}px`});return t.onMounted(()=>{if(l.draggable&&g.value){const N=[g.value];A.open(N)}}),t.onBeforeUnmount(()=>{l.draggable&&g.value&&A.close()}),()=>{let N=[];const w=typeof r.default=="function"?r.default():[];if(w&&w.length>0)N=w;else{const B=t.h(a,{class:C.value});N.push(B)}const S={ref:B=>{g.value=B},class:p.value,style:h.value,onClick:b};return t.h("view",S,N)}}}),{componentName:Rh,create:Fh,scope:Kh}=_("floating-button"),Ol=Fh(Oh(Rh,Kh,ae.Uploader,!1)),Uh={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},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function Hh(e,n,a){return{props:{...Uh},emits:["click","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ce.useFoxI18n(n),i=s(o,["collapseText","expandText"]),c=t.computed(()=>{const b={[`${e}`]:!0};return o.disabled?b[`${e}--disabled`]=!0:b[`${e}--${o.type}`]=!0,b}),u=Le(o,"modelValue"),p=t.computed(()=>u.value?i.expandText.value??"":i.collapseText.value??""),d=t.computed(()=>({[`${e}__text`]:!0})),h=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!u.value,"is-collapse":u.value})),C=()=>{l("update:modelValue",!u.value)};return()=>{const b=[];if(p.value){const k={class:d.value},f=t.h("span",k,[p.value]);b.push(f)}const g={class:h.value},y=(r.icon&&r.icon())??(o.icon&&t.h(o.icon))??t.h(a);if(y){const k=t.h("view",g,[y]);b.push(k)}return o.textPosition==="right"&&b.reverse(),t.h("view",{class:c.value,onClick:C},b)}}}}const{componentName:jh,create:Wh,scope:Yh}=_("more-button"),Rl=Wh(Hh(jh,Yh,ae.RectUp)),Xh={visible:{type:[Boolean],default:!0},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}},Qh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Gh(e,n,a){return{props:{...Xh},emits:["update:visible"],setup(o,{attrs:l,slots:r,emit:s}){const{toLocaleRefs:i}=ce.useFoxI18n(n),c=i(o,["confirmText","cancelText"]),u=e,p=t.ref(o.visible),d=N=>{p.value=N,s("update:visible",N)};t.watch(()=>o.visible,N=>{p.value!==N&&(p.value=N)});const h=N=>{if(typeof o.unmount=="function")try{o.unmount()}catch(w){console.error(w)}if(typeof o.callback=="function")try{o.callback(N)}catch(w){console.error(w)}},C=()=>{h("confirm")},b=()=>{h("cancel")},g=()=>{o.closeOnClickOverlay!==!1&&h("close")},y=(N,w)=>Qh(N)?(w.src=N,t.h("img",w)):typeof N=="string"?(Array.isArray(w.class)?w.class.push(N):w.class&&typeof w.class=="object"?w[`${N}`]=!0:typeof w.class=="string"?w.class=`${w.class}, ${N}`:w.class=N,t.h(o.tag,w)):t.h(N,w),m=()=>{const N=[];if(o.icon){const S={class:[`${u}__header-icon`]},B=y(o.icon,S);N.push(B)}if(o.title){const S=t.h("view",{class:`${u}__header-title`},[o.title]);N.push(S)}if(o.showClose&&o.closeIcon){const S={class:[`${u}__header-close-icon`],onClick:g},B=y(o.closeIcon,S);N.push(B)}const w={class:[`${u}__header`]};return t.h("view",w,N)},k=(N,w)=>{const S=[];if(w){const $={class:`${u}__group-title`},D=t.h("view",$,[w]);S.push(D)}if(N){const $=[];Array.isArray(N)||(N=[N]);for(let D of N){const E={class:`${u}__group-row`,innerHTML:D},U=t.h("view",E);$.push(U)}if($.length>0){const D={class:`${u}__group-rows`},E=t.h("view",D,$);S.push(E)}}if(S.length===0)return null;const B={class:`${u}__group`};return t.h("view",B,S)},f=()=>{const N=[];if(typeof o.message=="string")N.push(o.message);else if(Array.isArray(o.message))for(let S of o.message)if(typeof S=="string"){const B=k(S);N.push(B)}else{const B=k(S.content,S.title);N.push(B)}else if(typeof o.message=="function"){const S=o.message();N.push(S)}else{const S=o.message;N.push(S)}const w={class:`${u}__body`};return t.h("view",w,N)},A=()=>{const N=[];if(o.showCancelButton){const S={class:[`${u}__footer-button`],style:{},onClick:b};o.cancelButtonClass&&S.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(S.style,o.cancleButtonStyle);const B=t.h("button",S,[o.cancelButtonText??c.cancelText.value]);N.push(B)}if(o.showConfirmButton){const S={class:[`${u}__footer-button`],style:{},onClick:C};o.confirmButtonClass&&S.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(S.style,o.confirmButtonStyle);const B=t.h("button",S,[o.confirmButtonText??c.confirmText.value]);N.push(B)}if(N.length===0)return null;const w={class:`${u}__footer`};return t.h("view",w,N)};return()=>{const N=[],w=m();w&&N.push(w);const S=f();S&&N.push(S);const B=A();B&&N.push(B);const $={class:{[`${u}`]:!0,[`${u}--${o.type||"info"}`]:!0}},D=t.h("view",$,N),E=[`${u}__popup`];o.popClass&&E.push(o.popClass);const U={};o.width&&(U.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(U.height=typeof o.height=="number"?`${o.height}px`:o.height);const J={popClass:E.join(" "),style:U,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":d,position:o.position,round:"round",onClickOverlay:g,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,J,{default:()=>D})}}}}const{componentName:Zh,create:Jh,scope:_h}=_("messagebox"),eg=Jh(Gh(Zh,_h,he)),tg="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",ng="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",og="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",lg="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",ag=new Mn,rg={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},sg=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-${ag.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(eg,e);n.appendChild(o),t.render(r,o)},mt={show:(e,n,a,o)=>{const l={...rg};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=og:r==="warning"?l.icon=lg:r==="error"?l.icon=tg:l.icon=ng),e==="alert"?(l.showCancelButton=!1,l.showConfirmButton=!0):e==="confirm"&&(l.showCancelButton=!0,l.showConfirmButton=!0),l.showClose&&!l.closeIcon&&(l.closeIcon=ae.Close),new Promise((s,i)=>{const c=l.callback;l.callback=u=>{if(typeof c=="function")try{c(u)}catch(p){console.error(p)}s({action:u})},sg(l)})},alert:(e,n,a)=>mt.show("alert",e,n,a),confirm:(e,n,a)=>mt.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=mt.alert,e.config.globalProperties.$confirm=mt.confirm}},ig=(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)},cg=new Mn,dg=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),ug=e=>`${e}-${cg.get()}`,fg=Symbol.for("InnerPageScopeKey"),mg=Symbol.for("PageWrapperKey"),pg="FoxLeave",hg="FoxLeaveEnd",gg={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 yg(e,n,a,o){return{props:{...Ke,...gg},emits:["update:visible"],setup(l,{attrs:r,slots:s,emit:i}){t.provide(fg,!0);const c={};t.provide(mg,c);const u=w=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),p=()=>{u()},d=e,h=w=>{C.value=w,i("update:visible",w)},C=t.ref(!1),b=(w,S)=>dg(w)?(S.src=w,t.h("img",S)):typeof w=="string"?(Array.isArray(S.class)?S.class.push(w):S.class&&typeof S.class=="object"?S[`${w}`]=!0:typeof S.class=="string"?S.class=`${S.class}, ${w}`:S.class=w,t.h(l.tag,S)):t.h(w,S),g=()=>{if(!l.showHeader)return null;const w=[];if(s.header){const B=s.header();w.push(B)}else if(l.title){const B=t.h("view",{class:`${d}__header-title`},[l.title]);w.push(B)}if(w.length===0)return null;const S={class:[`${d}__header`]};return t.h("view",S,w)},y=()=>{if(!l.showClose)return null;const w={class:[`${d}__close-icon`],onClick:p},S=l.closeIcon??o;return b(S,w)};let m=null;const k=w=>{ig(hg,{},m)},f=ug(e),A=()=>{h(!0)},N=()=>{if(!m)return;const w=m.querySelector(".fox-overlay");w&&(w.classList.add("overlay-fade-leave-active"),w.classList.add("overlay-fade-leave-to"));const S=m.querySelector(".fox-popup");S&&(S.classList.add(`fox-popup-slide-${l.position}-leave-active`),S.classList.add(`fox-popup-slide-${l.position}-leave-to`),S.addEventListener("animationend",k,{once:!0}),S.addEventListener("transitionend",k,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{m=document.querySelector(`.${f}`),m?.addEventListener(pg,N,{once:!0}),A()}),()=>{const w=[],S=g();S&&w.push(S);const B=y();B&&w.push(B);const $=s.default?s.default():[];Reflect.apply([].push,w,$);const D={[`${d}`]:!0};l.mode&&(D[`${d}--${l.mode}`]=!0);const E={class:D},U=t.h("view",E,w),J=[`${d}__popup`,f];l.popClass&&J.push(l.popClass),l.position&&J.push(`${d}__popup--${l.position}`);const I={};l.width&&(I.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(I.height=typeof l.height=="number"?`${l.height}px`:l.height);const P={...be(l,Ke),popClass:J.join(" "),style:I,visible:C.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":h},v=t.h(a,P,{default:()=>U});return t.h("div",{class:[`${d}__root`,f]},[v])}}}}const{componentName:bg,create:kg,scope:Sg}=_("popup-wrapper"),Fl=kg(yg(bg,Sg,he,ae.Close)),Cg={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function wg(e,n,a,o){return{props:{...Cg},emits:["update:visible"],setup(l,{emit:r,slots:s}){const i=c=>{r("update:visible",c)};return()=>{const c=[`${e}__popup`];l.popClass&&c.push(l.popClass);const u={popClass:c,style:l.popStyle??{},position:"top",zIndex:l.zIndex,closeOnClickOverlay:l.closeOnClickOverlay,teleportDisable:!0,visible:l.visible,"onUpdate:visible":i},p=t.h(a,u,s),d={class:`${e}`};return t.h("view",d,[p])}}}}const{componentName:Ng,create:Bg,scope:Ag}=_("dropdown"),Kl=Bg(wg(Ng,Ag,he));function Tg(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[l]){let c=n;for(let u=0;c&&u<r.length;u++){let p=r[u],d=c.find(h=>h[o]===p);if(!d)break;s.push(d[a])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let u=n[c],p=r[c];const d=u.find(h=>h[o]===p);if(!d)break;s.push(d[a])}else{let c=n;for(let u=0;c&&u<r.length;u++){let p=r[u],d=c.find(h=>h[o]===p);if(!d)break;s.push(d[a]),c=d[l]}}return s}class $g{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=tt(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function Vg(){const e=t.getCurrentInstance();return new $g(e.proxy)}const Eg={tag:{type:[String,Object],required:!1,default:"span"},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}};function Dg(e,n){return{props:{...Eg},setup(a,{attrs:o,slots:l}){const r=Vg(),s=t.ref([]);t.watch([()=>a.source,()=>a.params],async([c,u])=>{s.value=await r.load(a.sourceType,c,u)},{immediate:!0});const i=t.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return a.emptyText;let c=Tg(a.modelValue,s.value,a.textKey,a.valueKey,a.childrenKey);return c.length==0?a.emptyText??"":c.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${c[0]}`:c[0]:c.join(a.separator)});return()=>{const c={...o};if(l.default)return l.default({text:i.value,value:a.modelValue});const u=a.tag??"span";return typeof u=="object"?t.h(u,c,{default:()=>i.value}):t.h(u,c,[i.value])}}}}const{create:Ig}=_("mapping"),Ul=Ig(Dg());function vg(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(a,{slots:o}){return qr(a.name,()=>a.config),ze(a.innerPageScope)||Lr(a.innerPageScope),ze(a.abstractPageScope)||zr(a.abstractPageScope),()=>typeof o.default=="function"?o.default():null}}}const{create:xg}=_("domain-provider"),Hl=xg(vg()),qg={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 Pg(e,n){return{inheritAttrs:!1,props:qg,emits:["change"],setup(a,{slots:o,emit:l}){if(Ze&&window.IntersectionObserver){const r=new WeakMap;let s=new Map;const i=(C,b)=>{if(d===null){s.set(C,{visible:null,callback:b});return}r.has(C)&&d.unobserve(C),r.set(C,{visible:null,callback:b}),d.observe(C)},c=C=>{if(d===null){s.delete(C);return}r.has(C)&&(r.delete(C),d.unobserve(C))};let u=a.initialVisibleObserverSize;fc({acquire:()=>{if(a.loadPolicy==="always")return!0;const C=u>0;return u--,C},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:i,unobserve:c});let d=null;const h=(C,b,g)=>{d=new IntersectionObserver(y=>{if(l("change",y),a.loadPolicy!=="always")for(let m of y){let k=!1;m.intersectionRatio>0&&(k=!0);const f=r.get(m.target);if(f)try{if(a.loadPolicy==="lazy"&&!k&&f.visible!==null)return;f.visible=k,f.callback(k)}catch(A){console.error(A)}}},{root:C,rootMargin:b,threshold:g}),s.forEach((y,m)=>{r.set(m,y),d?.observe(m)}),s.clear()};t.watch([()=>a.root,()=>a.disabled],([C,b])=>{if(b||!C||d)return;let g=null;typeof C=="string"?g=document.querySelector(C):g=C,g&&h(g,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{create:Mg}=_("rolling-provider"),jl=Mg(Pg()),{componentName:Lg,create:zg}=_("cell"),Og=zg({components:{Right:ae.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=Lg;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:me(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),Rg={key:0,class:"fox-cell__icon"},Fg={key:1,class:"fox-cell__title"},Kg={class:"title"},Ug={class:"fox-cell__title-desc"};function Hg(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",Rg,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Fg,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Kg,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Ug,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 Wl=le(Og,[["render",Hg]]),{componentName:jg,create:Wg}=_("cell-group"),Yg=Wg({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[jg]:!0}))}}}),Xg={key:1,class:"fox-cell-group__title"},Qg={key:3,class:"fox-cell-group__desc"},Gg={class:"fox-cell-group__wrap"};function Zg(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",Xg,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",Qg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Gg,[t.renderSlot(e.$slots,"default")])],2)}const Yl=le(Yg,[["render",Zg]]),{componentName:Jg,create:_g}=_("image"),ey=_g({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:ae.Image,ImageError:ae.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 C=Jg;return{[C]:!0,[`${C}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const C={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(b=>{b.forEach(g=>{g.isIntersecting&&(r.value=!0,l.value.disconnect())})},C),s.value&&l.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let C={};return e.width&&(C.width=me(e.width)),e.height&&(C.height=me(e.height)),e.radius!==void 0&&e.radius!==null&&(C.overflow="hidden",C.borderRadius=me(e.radius)),C}),u=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,C=>{a.isError=!1,a.loading=!0});const p=()=>{a.loading=!1,n("load")},d=()=>{a.isError=!0,a.loading=!1,n("error")},h=C=>{n("click",C)};return{...t.toRefs(a),imageClick:h,classes:o,styles:u,stylebox:c,error:d,load:p,show:r,imgRef:s}}}),ty=["src","date-src","alt"],ny={key:0,class:"fox-img-loading"},oy={key:1,class:"fox-img-error"};function ly(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,ty),e.loading?(t.openBlock(),t.createElementBlock("div",ny,[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",oy,[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 Xl=le(ey,[["render",ly]]),{create:ay}=_("layout"),Ql=ay({}),{componentName:ry,create:sy}=_("col"),iy=sy({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=ry,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 cy(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 Gl=le(iy,[["render",cy]]),{componentName:dy,create:uy}=_("row"),fy=uy({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=dy;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"?`
2
- ${a("",e.type)}
3
- ${a("justify",e.justify)}
4
- ${a("align",e.align)}
5
- ${a("flex",e.flexWrap)}
1
+ (function(B,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("@fox-js/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","@fox-js/icons-vue","@fox-js/i18n"],t):(B=typeof globalThis<"u"?globalThis:B||self,t(B.FoxUI={},B.Vue,B.FoxValidator,B.FoxIconsVue,B.FoxI18n))})(this,function(B,t,at,oe,ce){Object.defineProperties(B,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Qi=Object.create,Za=Object.defineProperty,Gi=Object.getOwnPropertyDescriptor,Zi=Object.getOwnPropertyNames,Ji=Object.getPrototypeOf,es=Object.prototype.hasOwnProperty,He=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),ts=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var a=Zi(n),r=0,s=a.length,i;r<s;r++)i=a[r],!es.call(e,i)&&i!==o&&Za(e,i,{get:(c=>n[c]).bind(null,i),enumerable:!(l=Gi(n,i))||l.enumerable});return e},_e=(e,n,o)=>(o=e!=null?Qi(Ji(e)):{},ts(n||!e||!e.__esModule?Za(o,"default",{value:e,enumerable:!0}):o,e)),dn=window,ns=typeof window<"u";function ls(){return typeof dn<"u"?dn.requestAnimationFrame||dn.webkitRequestAnimationFrame||function(e){dn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ja(e){ns?cancelAnimationFrame(e):clearTimeout(e)}var Xe=ls();function un(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Be(e),n=Be(n),[e,n]=hl(Be(e),Be(n)),o==1&&(l==1?e=pl(e):n=pl(n));let a=er(e,n);return o?o==2?"-"+Be(a):e.length<a.length?Be(a.substring(1)):"-"+Be(pl(a)):Be(a)}function pl(e){let n="",o=e.length,l=e.split(".")[1],a=l?l.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return er(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 hl(e,n){let o=e.split("."),l=n.split("."),a=o[0].length,r=l[0].length;return a>r?l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,r=l[1]?l[1].length:0,(a||r)&&(a>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function er(e,n){[e,n]=hl(e,n);let o="",l=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let r=parseInt(e[a])+parseInt(n[a])+l;o=r%10+o,l=Math.floor(r/10)}return l?l.toString()+o:o}var ve=(function(e){return 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})({});function Pt(e,n=0,o=ve.HALF_EVEN){if(o===ve.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let a=e.split("."),r=a[0],s=a[1];if(n<0){if(n=-n,r.length<=n)return"0";{let c=r.substr(0,r.length-n);return e=c+"."+r.substr(r.length-n)+s,c=Pt(e,0,o),(l?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,tr(a[1],r,l,o)?(l?"-":"")+gl(r):(l?"-":"")+r;if(a[1]){if(a[1].length<n)return(l?"-":"")+r+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");s=a[1].substring(0,n);let i=a[1].substring(n);return i&&tr(i,s,l,o)&&(s=gl(s),s.length>n)?(l?"-":"")+gl(r,parseInt(s[0]))+"."+s.substring(1):(l?"-":"")+r+"."+s}function tr(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===ve.DOWN||!o&&l===ve.FLOOR||o&&l===ve.CEILING)return!1;if(l===ve.UP||o&&l===ve.FLOOR||!o&&l===ve.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(l){case ve.HALF_DOWN:return!1;case ve.HALF_UP:return!0;case ve.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function gl(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let a=o;a>=0;a--){let r=parseInt(e[a])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function yl(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=xt(e),n=xt(n);let l=0,a=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(a=n.length-n.indexOf(".")-1);let r=l+a;if(e=xt(e.replace(".","")),n=xt(n.replace(".","")),e.length<n.length){let d=e;e=n,n=d}if(n=="0")return"0";let s=n.length,i=0,c=[],u=s-1,p="";for(let d=0;d<s;d++)c[d]=e.length-1;for(let d=0;d<2*e.length;d++){let h=0;for(let y=n.length-1;y>=u&&y>=0;y--)c[y]>-1&&c[y]<e.length&&(h+=parseInt(e[c[y]--])*parseInt(n[y]));h+=i,i=Math.floor(h/10),p=h%10+p,u--}return p=xt(os(p,r)),o==1&&(p="-"+p),p}function os(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 bl(e,n,o=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 l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Be(n.replace(".","")),a>=0){let u=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(u==-1)e=Be(e+new Array(a+1).join("0"));else if(a>u)e=e.replace(".",""),e=Be(e+new Array(a-u+1).join("0"));else if(a<u){e=e.replace(".","");let p=e.length-u+a;e=Be(e.substring(0,p)+"."+e.substring(p))}else a==u&&(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 u=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(u+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=u,i="0."+new Array(u).join("0")}for(o=o+2;r<=o;){let u=0;for(;parseInt(c)>=parseInt(n);)c=un(c,"-"+n),u++;i+=u,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(l==1?"-":"")+Be(Pt(i,o-2))}function kl(e,n){return e=e.toString(),n=n.toString(),n=Sl(n),un(e,n)}function Sl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function nr(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),lr(e),lr(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=kl(e,yl(n,Pt(bl(e,n),0,ve.FLOOR)));return o+l}function lr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function or(e,n){let o=!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),o=!0),[e,n]=hl(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}var Mt=class me{value;static RoundingModes=ve;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[o,l]=n.split(/[eE]/);o=Be(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=a+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=a+Be(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=a+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=me.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=me.validate(n);let a=n.charAt(0)=="-";a&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var s="",i=r;i>0;)i<o?(o=i,i=0):i-=o,s=n.substring(i,i+o)+(i<r-o&&i>=0?l:"")+s;return(a?"-":"")+s+n.substring(r)}getPrettyValue(n,o){return me.getPrettyValue(this.value,n,o)}static round(n,o=0,l=ve.HALF_EVEN){if(n=me.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Pt(n,o,l)}round(n=0,o=ve.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new me(Pt(this.value,n,o))}static floor(n){return n=me.validate(n),n.indexOf(".")===-1?n:me.round(n,0,ve.FLOOR)}floor(){return this.value.indexOf(".")===-1?new me(this.value):new me(this.value).round(0,ve.FLOOR)}static ceil(n){return n=me.validate(n),n.indexOf(".")===-1?n:me.round(n,0,ve.CEILING)}ceil(){return this.value.indexOf(".")===-1?new me(this.value):new me(this.value).round(0,ve.CEILING)}static add(n,o){return n=me.validate(n),o=me.validate(o),un(n,o)}add(n){return new me(un(this.value,n.getValue()))}static subtract(n,o){return n=me.validate(n),o=me.validate(o),kl(n,o)}subtract(n){return new me(kl(this.value,n.getValue()))}static multiply(n,o){return n=me.validate(n),o=me.validate(o),yl(n,o)}multiply(n){return new me(yl(this.value,n.getValue()))}static divide(n,o,l){return n=me.validate(n),o=me.validate(o),bl(n,o,l)}divide(n,o){return new me(bl(this.value,n.getValue(),o))}static modulus(n,o){return n=me.validate(n),o=me.validate(o),nr(n,o)}modulus(n){return new me(nr(this.value,n.getValue()))}static compareTo(n,o){return n=me.validate(n),o=me.validate(o),or(n,o)}compareTo(n){return or(this.value,n.getValue())}static negate(n){return n=me.validate(n),Sl(n)}negate(){return new me(Sl(this.value))}};function ar(e,n){return Mt.multiply(`${e}`,`${n}`)}function wl(e,n,o=8){return Mt.divide(`${e}`,`${n}`,o)}var XA=Mt.RoundingModes;function Cl(e,n){return e=`${e}`,n=`${n}`,Mt.compareTo(e,n)}function rr(e){return Mt.negate(e)}function fn(e,n=-1,o=!1,l=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",u=r.indexOf(".");u!=-1&&(i=r.substring(0,u),c=r.substring(u+1)),n!=-1&&(n<c.length?c=c.substring(0,n):o&&n>c.length&&(c=c.padEnd(n,"0")));let p;if(l>0){let d="",h=i.split("").reverse();for(let y=0;y<h.length;y++)d+=h[y]+((y+1)%l==0&&y+1!=h.length?a:"");c.length==0?p=`${s}${d.split("").reverse().join("")}`:p=`${s}${d.split("").reverse().join("")}.${c}`}else c.length==0?p=`${s}${i}`:p=`${s}${i}.${c}`;return p}function ir(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}var Qe=typeof window<"u",We=Xe;function Le(e){return e==null}var mn=Array.isArray,as=e=>hn(e)==="[object Map]",rs=e=>hn(e)==="[object Set]",je=e=>e instanceof Date,pn=e=>typeof e=="function",sr=e=>typeof e=="string",is=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",mt=e=>De(e)&&pn(e.then)&&pn(e.catch),cr=Object.prototype.toString,hn=e=>cr.call(e),ss=e=>hn(e)==="[object Object]",dr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function cs(e){return e.__esModule||dr&&e[Symbol.toStringTag]==="Module"}var ds=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function pt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,a=!1;for(typeof n=="boolean"&&(a=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let r=e[o];for(let s in r){let i=n[s],c=r[s];if(i!==c)if(a===!0&&c&&typeof c=="object"){let u;Array.isArray(c)?u=i&&Array.isArray(i)?i:[]:u=i&&typeof i=="object"?i:{},n[s]=pt(a,u,c)}else c!==void 0&&(n[s]=c)}}return n}var vl=ds?Promise.resolve():null;function us(e,...n){vl!==null?n&&n.length>0?vl.then(()=>{e(n)}):vl.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ke(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function he(e){return typeof e=="number"?e:Number(e)}var fs={"[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 n=Object.prototype.toString.call(e);return e==null?String(e):fs[n]||"object"}function ur(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const o=window.getComputedStyle(n);if(o.display==="none"||o.visibility==="hidden"||o.visibility==="collapse")return!0;n=n.parentElement}return!1}function fr(e){return e&&typeof e=="object"&&"setInterval"in e}function mr(e){let n=!!e&&"length"in e&&e.length,o=rt(e);return o==="function"||fr(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function pr(e,n){let o=+n.length,l=0,a=e.length;for(;l<o;l++)e[a++]=n[l];return e.length=a,e}function ms(e,n=[]){let o=n;return e!=null&&(mr(Object(e))?pr(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ie(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=rt(e);if(o!==rt(n))return!1;if(o==="object"){let l=Object.keys(e),a=Object.keys(n);if(l.length!==a.length)return!1;for(let r=0;r<l.length;r++){let s=l[r],i=e[s],c=n[s];if(!Ie(i,c))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let a=e[l],r=n[l];if(!Ie(a,r))return!1}return!0}return!1}function Nl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var de=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function gn(e){return de(e)?!1:(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 o=n.indexOf(".");return o==-1?n.length:o}function gr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function yr(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function Bl(e,n=!0,o=!0){n?e=yr(e,".",/\./g):e=e.replace(/\./g,""),o?e=yr(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function ps(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(Ie(e,o))return!0}):n.indexOf(e)}function hs(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(Ie(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function Se(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ye(e,...n){const o={};return n.forEach(l=>{for(const a in l)o[a]=e[a]}),o}function Ge(e,...n){const o=[];n.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const l={};for(const a in e)o.includes(a)||(l[a]=e[a]);return l}var br=(e,n,o)=>{const l=Object.assign({},e),a=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(l[r]=n[a[r]]):n[r]&&(l[r]=n[r])}),l):e};function Al(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var it=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Ye=(e,n,o)=>Math.min(Math.max(e,n),o),Ce=Symbol.for("BroadcastKey"),Vl=class{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(e,n,o){this.parent=e,this.proxy=n,this.name=o,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(o=>e===o);n!==-1&&this.children.splice(n,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(e,n,o){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,a={matched:e,action:n,args:o};return this.persistantMessages.set(l,a),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(n=>{e.push(n)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,n){if(!n||n.messagingPolicy==="Once"&&n.resolved===!0)return!1;let o=!1;return!n.name||n.name==="*"||n.name==="+"||Nl(n.name)&&e&&n.name.test(e)?o=!0:typeof n.name=="function"?o=Reflect.apply(n.name,null,[e]):n.name===e&&(o=!0),o}trigger(e,n,o){let l=null;const a=this.callbacks.get(n);typeof a=="function"&&(l=Reflect.apply(a,this.proxy,[...o]));const r=this.proxy??{};typeof r[n]=="function"&&(l=Reflect.apply(r[n],r,[...o])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(l)}pull(){let e=this.parent;for(;e;){const n=e.getPersistantMessages();Array.isArray(n)&&n.length>0&&n.forEach(o=>{if(this.isMatched(this.name,o.matched))try{this.trigger(o.matched,o.action,o.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...o){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const r=e.resolve,s=e.uniqueId??"",i=(...c)=>{this.deletePersistantMessage(s),typeof r=="function"&&r(...c)};e.resolve=i}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):Nl(e.name)&&this.name&&e.name.test(this.name)?l=!0:typeof e.name=="function"?l=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(l=!0);const a=[];if(l){const r=this.callbacks.get(n);if(typeof r=="function"){const i=Reflect.apply(r,this.proxy,[...o]);i!=null&&a.push(i)}const s=this.proxy??{};if(typeof s[n]=="function"){const i=Reflect.apply(s[n],s,[...o]);i!=null&&a.push(i)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...a),e.messagingPolicy==="Once")return a}return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...e},n,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(e,n,...o){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const a=e.resolve,r=e.uniqueId??"",s=(...i)=>{this.deletePersistantMessage(r),typeof a=="function"&&a(...i)};e.resolve=s}e.cachePolicy="None"}const l=[];return this.children.forEach(a=>{const r=Reflect.apply(a.emit,a,[{...e},n,...o]);r!=null&&Array.isArray(r)&&Reflect.apply([].push,l,[...r])}),l}on(e,n){this.callbacks.set(e,n)}};function yn(e,n,o,l){const a=new Vl(n,e,o);if(l&&typeof l=="object")for(const r in l)a.on(r,l[r]);return a}function gs(e,n,o){const l=o;if(l[Ce])return l[Ce];const a=new Vl((0,t.inject)(Ce,null),o,e);if(n&&typeof n=="object")for(const r in n)a.on(r,n[r]);return l[Ce]=a,(0,t.provide)(Ce,a),(0,t.onUnmounted)(()=>{a.destroy(),l[Ce]=void 0}),a}function Lt(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[Ce]??(0,t.inject)(Ce,null):(0,t.inject)(Ce,null)}var ys=class{error(e,n){const o=n,l=n||(0,t.hasInjectionContext)()?Lt(n):null;l?l.emit({name:"*"},"setErrorTip",e):typeof o.setErrorTip=="function"&&o.setErrorTip(e)}reset(e){const n=e,o=e||(0,t.hasInjectionContext)()?Lt(e):null;o?o.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}success(e){const n=e,o=e||(0,t.hasInjectionContext)()?Lt(e):null;o?o.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}decorate(e,n,o){Array.isArray(e)||(e=[e]);const l=o,a=o||(0,t.hasInjectionContext)()?Lt(o):null,r=n.find(i=>i.required===!0||i.type==="required"&&i.required!==!1),s=e.find(i=>i.required===!0||i.type==="required"&&i.required!==!1);!r&&s?a?a.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):r&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(e){return e.modelValue}},zt=new ys;function bs(e){zt=e}function ks(e){zt?Object.assign(zt,e):zt=e}function Ss(e,n){at.Schema.setValidator(e,n)}function ws(e){at.Schema.deleteValidator(e)}var kr=["blur","clear"];function Cs(e){kr=e}function Sr(){return kr}var wr=["focus","change","setValue"];function vs(e){wr=e}function Cr(){return wr}function Ns(e){at.Schema.messages(e)}function Ot(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const a=n.findIndex(r=>r.type===l.type);a!==-1&&n.splice(a,1),n.push(l)})}),n}function bn(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}var ze=Symbol("ValidateSchemaKey"),vr=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,o){this.parent=e,this.descriptor=n,this.proxy=o,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let e=this.proxy.$attrs;e&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const n=bn(Ot(this.attrRules,this.rules)),o=[];for(let a in e){let r=e[a];if(this.hasValidator(a,!0)){if(r===!1)continue;let i={type:a};r!==null&&typeof r=="object"&&Object.assign(i,r),o.push(i);continue}let s=this.getValidator(a);if(s!==null){let i={type:a,validator:s};o.push(i)}}this.attrRules=bn(o);const l=Ot(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(l,n)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...n){const o=this.descriptor.validateHandler;if(o&&typeof o[e]=="function")return Reflect.apply(o[e],o,[...n]);const l=zt;return l&&typeof l[e]=="function"?Reflect.apply(l[e],l,[...n]):null}decorate(e,n){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,n,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(e,n,o=!1){o?at.Schema.setValidator(e,n):this.validators[e]=n}getValidator(e){let n=this.validators[e]??null;return n||(n=this.parent?.getValidator(e)??null),n}deleteValidator(e,n=!1){n?at.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return at.Schema.hasValidator(e);{let o=Reflect.has(this.validators,e);return!o&&this.parent!==null&&(o=this.parent.hasValidator(e,!1)),o}}setRule(e){const n=Ot(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=bn(e):this.rules=bn([e]);const o=Ot(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(o,n)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Ot(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const o={[`${n}`]:e},l=this.getValue(),a={[`${n}`]:l},r=new at.Schema(o),s=this.proxy??a;return r.validate(a,{context:s}).then(i=>{if(i.pass)this.success();else{let c="error";Array.isArray(i.errors)&&i.errors.length>0&&(c=i.errors[0].message??c,i.errors=[i.errors[0]],i.errors[0].ref=s),this.error(c)}return i}).catch(i=>{const c=i.message??`${i}`;return this.error(c),i})}}return Promise.resolve({pass:!0})}};function kn(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const l=o.valueName;o.validateHandler={getValue(a){return a[l]}}}return new vr(n,o,e)}var Sn=Symbol.for("EventEmitterKey"),Nr=class{register=new Map;proxy;constructor(e){this.proxy=e}destroy(){this.proxy=null,this.register.clear()}off(e,n){let o=this.register.get(e);if(o&&Array.isArray(o)){let l=o.findIndex(a=>a===n);l!==-1&&o.splice(l,1)}}on(e,n){let o=this.register.get(e);o||(o=new Array,this.register.set(e,o)),o.push(n)}emit(e,...n){const o=this.register.get(e);o&&o.forEach(l=>{try{Reflect.apply(l,null,[e,...n])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[e,...n])}};function xe(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function wn(e,n){let o=0;return function(...l){const a=new Date().getTime();a-o<n||(o=a,Reflect.apply(e,null,[...l]))}}function Bs(e,n){const o=xe((l,a)=>{e=l,a()},n);return(0,t.customRef)((l,a)=>({get(){return l(),e},set(r){o(r,a)}}))}function As(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function Tl(e,n,o,l=0,a=!0){let r=n,s=0;if(a){const c=e();if(s++,c||s>o)return}const i=()=>{const c=e();s++,!(c||s>o)&&(r+=l,setTimeout(i,r))};setTimeout(i,r)}var qe=Symbol("DomainKey"),ht=Symbol("DataItemsKey"),Cn=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}_props=(0,t.reactive)({});constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(e,n=[]){for(const o in e){const l=e[o];n.length>0&&n.indexOf(l)!==-1||(this._props[o]=l)}}has(e){if(Reflect.has(this._props,e)){const n=this._props[e];if(n!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,n){this._props[e]=n}get(e,n){if(Reflect.has(this._props,e)){const o=this._props[e];if(o!=null)return o}return this.parent==null?n:this.parent.get(e,n)}getForParent(e,n){return this.parent==null?n:this.parent.get(e,n)}getForSelf(e){return this._props[e]}getAll(e){const n=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,e)){const l=o._props[e];n.push(l)}o=o._parent}return n}},Vs=new Cn;function gt(){return Vs}function Ze(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[qe]??(0,t.inject)(qe,null):(0,t.inject)(qe,null)}var $l=Symbol("OriginalDateKey");function El(e,n,o=[],l){const a=(0,t.getCurrentInstance)();let r=a?.proxy,s=(0,t.inject)(qe,null);s===null&&(s=gt());const i=e||n.prop||n.name;let c=new Cn(i);c.parent=s;const u=b=>{r[$l]||h(b),c?.set("modelValue",b)},p=()=>c?.getForSelf("modelValue")??null,d=()=>r[$l]??null,h=b=>{const g={};pt(!0,g,(0,t.toRaw)(b)),r[$l]=g};(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,b=>{c?.merge(b,o)},{immediate:!0}):c.merge(n,o),n.modelValue&&h(n.modelValue);const y=(b,g)=>{c?.set(b,g)},C=b=>c?.getForSelf(b)??null;if(r[qe]=c,(0,t.provide)(qe,c),a!==null){const b=(0,t.inject)(Ce,null),g=yn(r,b,i,l);c.broadcast=g,r[Ce]=g,(0,t.provide)(Ce,g),r.broadcast=(m,v,...N)=>Reflect.apply(g.emit,g,[m,v,...N]);const f=(0,t.inject)(ze,null),w=kn(r,f,{componentName:""});c.validateSchema=w,r[ze]=w,(0,t.provide)(ze,w),r[ht]=new Map,r.validate=(m=!0)=>{const v=[];let N=null;const k={deep:!1};if(m===!0)N={name:"*"};else if(Array.isArray(m)&&m.length>0){const S=m;N={name:A=>A?S.indexOf(A)!==-1:!1}}else if(m!=null&&typeof m=="object"){const S=m;if(Object.assign(k,S),Array.isArray(S.include)&&S.include.length>0){const A=S.include;N={name:V=>V?A.indexOf(V)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const A=S.exclude;N={name:V=>V?A.indexOf(V)===-1:!1}}else N={name:"*"}}if(N){const S=g?.emitToChildren(N,"validate",k);S&&Reflect.apply([].push,v,S)}return v.length==1?v[0]:v.length>1?Promise.all(v).then(S=>{let A=[];return S.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(A=[...A,...V.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(m,v=!0,N=!1)=>{if(N===!0){Reflect.ownKeys(m).forEach(k=>{let S=String(k);const A={componentName:"",fieldName:S,pureDataValidate:!0};if(c){const V=Ar(c,S,A,g,w);r[ht].set(S,V);const E=m[S];E&&V.validateSchema.setRule(E)}});return}if(v){const k=Reflect.ownKeys(m);g?.emitToChildren({name:S=>k.includes(S),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",m,!1)}},r.clearValidate=(m=!0)=>{let v=null;if(m===!0)v={name:"*"};else if(Array.isArray(m)&&m.length>0){const N=m;v={name:k=>k?N.indexOf(k)!==-1:!1}}else if(m!=null&&typeof m=="object"){const N=m;if(Array.isArray(N.include)&&N.include.length>0){const k=N.include;v={name:S=>S?k.indexOf(S)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const k=N.exclude;v={name:S=>S?k.indexOf(S)===-1:!1}}else v={name:"*"}}v&&g?.emitToChildren(v,"clearValidate",!1)},r.resetFields=m=>{const v=p();if(!v)return;const N={};if(pt(!0,N,d()??{}),Array.isArray(m))m.forEach(k=>{v[k]=N[k]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(k=>{v[k]=N[k]});else if(m&&Array.isArray(m.exclude)){let k=m.exclude??[];Reflect.ownKeys(N).forEach(S=>{k.includes(S)||(v[S]=N[S])})}else Object.assign(v,N);r.clearValidate(m)},r.setModelValue=(m,v)=>{if(!v||v===i)u(m);else{const N={name:v,messagingPolicy:"Once"};g?.emitToChildren(N,"setModelValue",m)}},r.getModelValue=()=>p(),r.setDomainProperty=(m,v)=>{y(m,v)},r.getDomainProperty=m=>C(m),setTimeout(function(){g?.pull()},0)}return(0,t.onUnmounted)(function(){c?.validateSchema&&(c.validateSchema.destroy(),r[ze]=void 0,(0,t.provide)(ze,null)),c?.broadcast&&(c?.broadcast?.destroy(),r[Ce]=void 0,(0,t.provide)(Ce,null)),c?.destroy(),r[qe]=void 0,(0,t.provide)(qe,null),r[ht]&&(r[ht].clear(),r[ht]=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 Br(e,n,o=[]){let l=(0,t.getCurrentInstance)()?.proxy,a=(0,t.inject)(qe,null);a===null&&(a=gt());let r=new Cn(e||n.prop||n.name);return r.parent=a,(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,s=>{r?.merge(s,o)},{immediate:!0}):r.merge(n,o),l[qe]=r,(0,t.provide)(qe,r),(0,t.onUnmounted)(()=>{r?.destroy(),l[qe]=void 0,(0,t.provide)(qe,null),r=null,l=null}),r}function Ae(e,n,o){const l=(0,t.getCurrentInstance)()?.proxy,a=n??"";let r=yn(l,(0,t.inject)(Ce,null),a,o);l[Ce]=r,(0,t.provide)(Ce,r),l.broadcast=(p,d,...h)=>r?Reflect.apply(r.emit,r,[p,d,...h]):null;const s=(0,t.inject)(ze,null);e.fieldName=e.fieldName??a;let i=kn(l,s,e);l[ze]=i,(0,t.provide)(ze,i),l.validate=(p=null)=>{if(!i)return Promise.resolve({pass:!0});const d=[];let h=!1,y=!1;if(Array.isArray(p)&&p.indexOf(a)!==-1)y=!0,h=!0;else if(p&&typeof p=="object"){const C=p,b=C.ignoreDisabled??!0,g=C.ignoreReadonly??!0,f=C.ignoreHidden??!0;b===!0&&e.disabled===!0||g===!0&&e.readonly===!0||f===!0&&ur(l.$el)?y=!1:(Array.isArray(C.include)&&C.include.indexOf(a)!==-1||Array.isArray(C.exclude)&&C.exclude.indexOf(a),y=!0),h=C.deep??!1}else typeof p=="boolean"&&(h=p),y=!0;if(y){const C=i?.validate();d.push(C)}if(h){let C=null;const b={deep:!1};if(p===!0)C={name:"*"};else if(Array.isArray(p)&&p.length>0){const g=p;C={name:f=>f?g.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const g=p;if(Object.assign(b,g),Array.isArray(g.include)&&g.include.length>0){const f=g.include;C={name:w=>w?f.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const f=g.exclude;C={name:w=>w?f.indexOf(w)===-1:!1}}else C={name:"*"}}if(C&&r){const g=r.emitToChildren(C,"validate",b);Reflect.apply([].push,d,g)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(C=>{let b=[];return C.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(b=[...b,...g.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=p=>i?.setRule(p),l.setNameValidateRules=(p,d=!1)=>{const h=p[a];h&&i?.setRule(h),d&&r&&r.emitToChildren({name:y=>Reflect.ownKeys(p).includes(y)},"setNameValidateRules",p,!1)},l.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(n??"")!==-1)&&i?.clear();let d=null;if(p===!0)d={name:"*"};else if(Array.isArray(p)&&p.length>0){const h=p;d={name:y=>y?h.indexOf(y)!==-1:!1}}else if(p!=null&&typeof p=="object"){const h=p;if(Array.isArray(h.include)&&h.include.length>0){const y=h.include;d={name:C=>C?y.indexOf(C)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const y=h.exclude;d={name:C=>C?y.indexOf(C)===-1:!1}}else d={name:"*"}}d&&r&&r.emitToChildren(d,"clearValidate",!1)};let c=new Nr(l);l[Sn]=c;const u=xe((p="validate")=>{i&&(p==="reset"?i.clear():i.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Sr()).forEach(p=>{c&&c.on(p,d=>{u("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Cr()).forEach(p=>{c&&c.on(p,d=>{u("reset")})}),setTimeout(function(){r?.pull()},0),(0,t.onUnmounted)(()=>{r?.destroy(),l[Ce]=void 0,(0,t.provide)(Ce,null),r=null,i?.destroy(),l[ze]=void 0,(0,t.provide)(ze,null),i=null,c?.destroy(),l[Sn]=void 0,c=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:r,validateSchema:i,emitEvent:(p,...d)=>{c&&Reflect.apply(c.emit,c,[p,...d])},onEvent:(p,d)=>{c&&Reflect.apply(c.on,c,[d])},offEvent:(p,d)=>{c&&Reflect.apply(c.off,c,[d])}}}function Ar(e,n,o,l,a){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}};o.fieldName=s,o.validateHandler={getValue(p){return i.getValue()}};let c=kn({},a,o);r.validate=(p=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];let h=!1,y=!1;if(Array.isArray(p)&&p.indexOf(s)!==-1)y=!0,h=!0;else if(p&&typeof p=="object"){const C=p;Array.isArray(C.include)&&C.include.indexOf(s)!==-1||Array.isArray(C.exclude)&&C.exclude.indexOf(s),y=!0,h=C.deep??!1}else typeof p=="boolean"&&(h=p),y=!0;if(y&&c){const C=c.validate();d.push(C)}if(h){let C=null;const b={deep:!1};if(p===!0)C={name:"*"};else if(Array.isArray(p)&&p.length>0){const g=p;C={name:f=>f?g.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const g=p;if(Object.assign(b,g),Array.isArray(g.include)&&g.include.length>0){const f=g.include;C={name:w=>w?f.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const f=g.exclude;C={name:w=>w?f.indexOf(w)===-1:!1}}else C={name:"*"}}if(C&&u){const g=u.emitToChildren(C,"validate",b);Reflect.apply([].push,d,g)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(C=>{let b=[];return C.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(b=[...b,...g.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>c?.setRule(p),r.setNameValidateRules=p=>{const d=p[s];d&&c?.setRule(d)};let u=yn(null,l,s,r);return(0,t.onUnmounted)(()=>{c=null,u=null}),{broadcast:u,validateSchema:c}}function yt(){let e=(0,t.getCurrentInstance)()?.proxy,n=new Nr(e);return e[Sn]=n,(0,t.onUnmounted)(()=>{n?.destroy(),e[Sn]=void 0,n=null,e=null}),{emitEvent:(o,...l)=>{n&&Reflect.apply(n.emit,n,[o,...l])},onEvent:(o,l)=>{n&&Reflect.apply(n.on,n,[l])},offEvent:(o,l)=>{n&&Reflect.apply(n.off,n,[l])}}}var ue=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${fe(e)}px`:"",Ts=ue;function fe(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),r=1;if(Qe){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return a*=r,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))*n;const l=Number(e);return isNaN(l)?0:l}function $s(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}var Je="PageStateKey";function Fe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=fe(e.top)),e.left!==null&&e.left!==void 0&&(n.left=fe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=fe(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=fe(e.right))),n}function Dl(e,n,o={},l=!0,a=-1,r=-1,s=0,i=0){if(e.headerHeight=fe(o.headerHeight??n.headerHeight??-1),e.headerPadding=Fe(o.headerPadding??n.headerPadding),e.footerHeight=fe(o.footerHeight??n.footerHeight??-1),e.footerPadding=Fe(o.footerPadding??n.footerPadding),e.contentPadding=Fe(o.contentPadding??n.contentPadding),l){const c=o.height??n.height;c?e.height=fe(c,r):e.height=fe(r)-fe(s,r)-fe(i,r),e.width=fe(o.width??n.width??0,a)}}function Vr(e,n={}){const o={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(l.safeAreaTop=fe(a.top),l.safeAreaBottom=fe(a.bottom),l.safeAreaLeft=fe(a.left),l.safeAreaRight=fe(a.right));const r=e.get("pageLayout");if(!r)return null;Dl(l,r,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const s=(0,t.reactive)(l),i=e.getForParent(Je);i&&(l.height=An(e,i),l.width=Vn(e,i),(0,t.watch)([()=>An(e,i),()=>Vn(e,i)],([u,p])=>{s.height=u,s.width=p}));const c=!i;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([u,p,d=-1,h=-1,y=0,C=0])=>{Dl(s,p,n,c,d,h,y,C)}),e.set(Je,s),s}function vn(e){return e.get(Je)}function Nn(e,n){if(n=n??e.get(Je),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Bn(e,n){if(n=n??e.get(Je),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function An(e,n){if(n=n??e.get(Je),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Nn(e,n),l=Bn(e,n);return n.height-o-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Vn(e,n){return n=n??e.get(Je),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Es(e){return!!e.getForParent(Je)}var Il=Symbol.for("InnerPageScopeKey");function Tr(e){(0,t.provide)(Il,e)}function Ft(e=!1){return(0,t.inject)(Il,e)}var ql=Symbol.for("AbstractPageScopeKey");function $r(e){(0,t.provide)(ql,e)}function Rt(e=!1){return(0,t.inject)(ql,e)}var st=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function Tn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ve(e,n,o=st.Near,l){const a=Ze();return a==null?e:o===st.Parent?(0,t.computed)(()=>{const r=a.getAll(n);for(let i=r.length-1;i>=0;i--){const c=r[i];if(Tn(c,l))return c}const s=e.value;return Tn(s,l)?s:null}):(0,t.computed)(()=>{const r=e.value;if(Tn(r,l))return r;const s=a.getAll(n);for(let i=0;i<s.length;i++){const c=s[i];if(Tn(c,l))return c}return null})}function Te(e){return Ve(e,"readonly",st.Near)}function $e(e){return Ve(e,"disabled",st.Near)}function Me(e,n="modelValue",o=null,l){const a=(0,t.toRef)(e,n);let r=a.value;typeof o=="function"&&(r=o(a.value));const s=(0,t.ref)(r);return(0,t.watch)(a,i=>{if(typeof o=="function"){const c=o(i);c!==s.value&&(s.value=c,l&&l("setValue",c))}else i!==s.value&&(s.value=i,l&&l("setValue",i))}),s}var Er=new Map,$n=new Map,Pl=null;function Ds(e){Pl=e}function Dr(e,n,o){if(o){let l=$n.get(o);l||(l=new Map,$n.set(o,l)),l.set(e,n)}else Er.set(e,n)}function et(e,n,o){!o&&Pl&&(o=Pl(e)??void 0);let l=null;if(o){let a=$n.get(o);a&&(l=a.get(n))}return l||(l=Er.get(n)),l}function Is(e,n){for(let o in e){const l=e[o];Dr(o,l,n)}}function qs(e){$n.delete(e)}function Ps(){return{top:0,left:0,bottom:0,right:0}}function xs(){return Qe?{rootWidth:document.documentElement.clientWidth||document.body.clientWidth,rootHeight:document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{headerHeight:-1,footerHeight:-1}}}function Ms(e,n){if(n.componentPrefix){const o=e.indexOf("-");return`${n.componentPrefix}${e.slice(o)}`}return e}var Ls=class{packages;_version;get version(){return this._version}constructor(e,n){this.packages=e,this._version=n}install(e,n){n?.install!==!1&&this.packages.forEach(l=>{if(l.install)e.use(l);else if(l.name){const a=Ms(l.name,n);e.component(a,l)}});const o=gt();if(n.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l={...n},a=xe(()=>{const r={...l};this.updateLayout(r,o)},120);new window.ResizeObserver(a).observe(window.document.body)}this.updateLayout(n,o)}updateLayout(e,n){const o=e.headerBarHeight??0,l=e.footerBarHeight??0,a=pt({},Ps(),e.safeAreaInset),r=xs(),s=pt({},r.pageLayout,e.pageLayout);n=n??gt(),n.set("safeAreaInset",a),n.set("headerBarHeight",o),n.set("footerBarHeight",l),n.set("pageLayout",s),n.set("rootWidth",r.rootWidth),n.set("rootHeight",r.rootHeight);const i=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const c in e)i.indexOf(c)===-1&&n.set(c,e[c])}setScopeGetter(e){Ds(e)}setAPI(e,n,o){Dr(e,n,o)}getAPI(e,n,o){return et(e,n,o)}batchSetAPI(e,n){Is(e,n)}clearScopeAPI(e){qs(e)}getRootDomain(){return gt()}};function G(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=l=>{l.component(o.name,o)},(0,t.defineComponent)(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,(0,t.defineComponent)(o)}}}var zs=(e,n)=>{let o=document.body;const l=e.teleport||"body";l!="body"&&(sr(l)?o=document.querySelector(l):o=e.teleport);const a=document.createElement("view");a.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let r={};pn(n.wrapper)?r=n.wrapper(o,a):r=n.wrapper;const s=(0,t.createApp)(r,e),i=n.components;return i&&i.forEach(c=>{s.use(c)}),o.appendChild(a),{instance:s.mount(a),unmount:()=>{s.unmount(),o.removeChild(a)}}},Ir=(e,n)=>e?(0,t.h)(e,n):"";function Ee(e,n=null){if(n||(n=(0,t.getCurrentInstance)()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}var ge={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}},be={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}},qr={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}},Pr={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}},xr=[];for(const e in Pr)xr.push(e);var Os={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}},Fs=(e,n)=>({inheritAttrs:!0,props:{...ge,...qr,...Os},setup(o,{slots:l}){const a=Rt(!1),r=Ft(!1),s=El(o.name,o);if(s){const d=Vr(s,o);Ee({getPageContentHeight:()=>An(s,d),getPageContentWidth:()=>Vn(s,d),getPageHeaderHeight:()=>Nn(s,d),getPageFooterHeight:()=>Bn(s,d)}),d&&r&&(d.contentHeight="100%")}const i=(0,t.computed)(()=>({[e]:!0,"is-inner":r})),c=(0,t.computed)(()=>({})),u=(0,t.getCurrentInstance)(),p=(d,h=!1)=>{const y=u?.proxy;y&&typeof y.setNameValidateRules=="function"&&y.setNameValidateRules(d,!0,h)};return(0,t.watch)([()=>o.rules,()=>o.pureDataRules],([d,h],[y,C])=>{if(d&&y){const b=(0,t.toRaw)(y),g=(0,t.toRaw)(d),f=g?Reflect.ownKeys(g):[];(b?Reflect.ownKeys(b):[]).forEach(w=>{f.includes(w)||(g[w]=[])}),p(g)}if(h&&C){const b=(0,t.toRaw)(C),g=(0,t.toRaw)(h),f=g?Reflect.ownKeys(g):[];(b?Reflect.ownKeys(b):[]).forEach(w=>{f.includes(w)||(g[w]=[])}),p(g,!0)}},{deep:!0}),(0,t.onMounted)(()=>{o.rules&&p((0,t.toRaw)(o.rules)),o.pureDataRules&&p((0,t.toRaw)(o.pureDataRules),!0)}),()=>a?l?.default?.():(0,t.h)("div",{class:i.value,style:c.value},[l?.default?.()])}}),{componentName:Rs,create:Ks,scope:Us}=G("page"),Hs=Ks(Fs(Rs,Us)),xl=Hs;function Ml(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function En(e){const n=(0,t.unref)(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),r=parseFloat(o.getPropertyValue("padding-top")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-a,height:n.clientHeight-r-s}}var Mr={headerbar:{},radio:{},checkbox:{}};function _s(e){Object.assign(Mr,e)}function Dn(){return Mr}var Ws=(e,n,o,l=!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(a,r){const s=Rt(!1),i=Ft(!1),c=s?null:Ze(),u=c?vn(c):null,p=Dn(),d=e,h=(0,t.computed)(()=>{const D={[d]:!0,[`${d}--border`]:a.border,[`${d}--fixed`]:a.fixed};return i||(D[`${d}--safe-area-inset-top`]=a.safeAreaInsetTop),D}),y=(0,t.computed)(()=>({[`${d}__inner`]:!0,[`${d}__inner--${a.align}`]:!0})),C=Le(a.height)?null:fe(a.height),b=(0,t.computed)(()=>{const D={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return D;if(c&&u){const T=Fe(a.padding??u.headerPadding);return Object.assign(D,T),Le(C)||(u.headerHeight=C),D.height=u.headerHeight,D.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,D.safeAreaTop>0&&(D.top=D.safeAreaTop+(T.top??0),D.height&&D.height>0&&(D.height=D.height+D.safeAreaTop)),D}if(Le(C)||(D.height=C),a.padding){const T=Fe(a.padding);Object.assign(D,T)}return D}),g=(0,t.ref)(null),f=()=>u&&g.value&&g.value.offsetParent!==null?(l||(u.headerAllHeight=Ml(g.value).height),u.headerMounted=!0,!0):!1,w=xe(f,120);let m=null;(0,t.onMounted)(()=>{s||u&&(Tl(f,50,5,50,!0),window.ResizeObserver&&g.value&&(m=new window.ResizeObserver(w),m.observe(g.value)))}),(0,t.onUnmounted)(()=>{s||u&&(u.headerMounted=!1,m&&(m.disconnect(),m=null))});const v=(0,t.computed)(()=>{const D={};return s||(b.value.height!==null&&b.value.height!==void 0&&(D.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(D.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(D.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(D.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(D.paddingBottom=`${b.value.bottom}px`)),D}),N=(0,t.computed)(()=>{const D=b.value?.height;return Le(D)||D<0?!0:D>0});function k(){r.emit("back")}function S(){r.emit("click-title")}function A(){r.emit("click-right")}function V(){r.emit("click-right-text")}const E=()=>{if(!a.leftShow)return null;const D=[];if(r.slots.left)D.push(r.slots.left());else{if(r.slots.leftIcon){const T=(0,t.h)("view",{class:"left-icon",onClick:k},[r.slots.leftIcon()]);D.push(T)}else{const T=a.leftIcon??p.headerbar.Left??o,P=(0,t.h)("view",{class:"left-icon",onClick:k},[(0,t.h)(T)]);D.push(P)}if(a.leftText){const T=(0,t.h)("view",{class:"left-text",onClick:k},[a.leftText]);D.push(T)}}return D.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},D)},$=()=>{if(!a.rightShow)return null;const D=[];if(r.slots.right)D.push(r.slots.right());else{if(a.rightText){const T=(0,t.h)("view",{class:"right-text",onClick:V},[a.rightText]);D.push(T)}if(r.slots.rightIcon){const T=(0,t.h)("view",{class:"right-icon",onClick:A},[r.slots.rightIcon()]);D.push(T)}else if(a.rightIcon){const T=(0,t.h)("view",{class:"right-icon",onClick:A},[(0,t.h)(a.rightIcon)]);D.push(T)}}return D.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},D)},_=()=>{if(!a.titleShow)return null;const D=[],T=r.slots.default?r.slots.default():null;if(T)D.push(T);else{if(a.title){const P=(0,t.h)("view",{class:"title-text"},[a.title]);D.push(P)}if(r.slots.titleIcon){const P=(0,t.h)("view",{class:"title-icon",onClick:S},[r.slots.titleIcon()]);D.push(P)}else if(a.titleIcon){const P=(0,t.h)("view",{class:"title-icon",onClick:S},[(0,t.h)(a.titleIcon)]);D.push(P)}}return D.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},D)},J=()=>{const D=[],T=r.slots.bottom?r.slots.bottom():null;return T&&D.push(T),D.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},D)};return()=>{if(s||!N.value)return null;const D=[];if(r.slots.all)D.push(r.slots.all());else{const T=[],P=E();P&&T.push(P);const q=_();q&&T.push(q);const O=$();if(O&&T.push(O),T.length>0){const x=(0,t.h)("view",{class:y.value},T);D.push(x)}const R=J();R&&D.push(R)}return D.length===0?null:(0,t.h)("view",{class:h.value,style:v.value,ref:g},D)}}}),{componentName:js,create:Ys,scope:Xs}=G("header-bar"),Qs=Ys(Ws(js,Xs,oe.Left,!1)),Ll=Qs;function Gs(e,n,o=!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(l,a){const r=Rt(!1),s=Ft(!1),i=r?null:Ze(),c=i?vn(i):null,u=e,p=(0,t.computed)(()=>{const m={[u]:!0,[`${u}--${l.align}`]:!0,[`${u}--border`]:l.border,[`${u}--fixed`]:l.fixed};return s||(m[`${u}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),m}),d=Le(l.height)?null:fe(l.height),h=(0,t.computed)(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r)return m;if(i&&c){const v=Fe(l.padding??c.footerPadding);return Object.assign(m,v),Le(d)||(c.footerHeight=d),m.height=c.footerHeight,m.safeAreaBottom=c.safeAreaBottom===-1?0:c.safeAreaBottom,m.safeAreaBottom>0&&(m.bottom=m.safeAreaBottom+(v.bottom??0),m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)),m}if(Le(d)||(m.height=d),l.padding){const v=Fe(l.padding);Object.assign(m,v)}return m}),y=(0,t.computed)(()=>{const m=h.value?.height;return Le(m)||m<0?!0:m>0}),C=(0,t.ref)(null),b=()=>c&&C.value&&C.value.offsetParent!==null?(o||(c.footerAllHeight=Ml(C.value).height),c.footerMounted=!0,!0):!1,g=xe(b,120);let f=null;(0,t.onMounted)(()=>{r||c&&(Tl(b,50,5,50,!0),window.ResizeObserver&&(f=new window.ResizeObserver(g),f.observe(C.value)))}),(0,t.onUnmounted)(()=>{r||c&&(c.footerMounted=!1,f&&(f.disconnect(),f=null))});const w=(0,t.computed)(()=>{const m={};return r||(h.value.height!==null&&h.value.height!==void 0&&(m.height=ue(h.value.height)),h.value.top!==null&&h.value.top!==void 0&&(m.paddingTop=ue(h.value.top)),h.value.left!==null&&h.value.left!==void 0&&(m.paddingLeft=ue(h.value.left)),h.value.right!==null&&h.value.right!==void 0&&(m.paddingRight=ue(h.value.right)),h.value.bottom!==null&&h.value.bottom!==void 0&&(m.paddingBottom=ue(h.value.bottom))),m});return()=>{if(r||!y.value)return null;const m=a.slots.default?a.slots.default():[];return(0,t.h)("view",{ref:C,class:p.value,style:w.value},m)}}}}var{componentName:Zs,create:Js,scope:ec}=G("footer-bar"),tc=Js(Gs(Zs,ec,!1)),zl=tc;function nc(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:l,attrs:a}){const r=Rt(!1),s=Ft(!1),i=r?null:Ze(),c=(0,t.computed)(()=>({[e]:!0})),u=i?vn(i):null,p=(0,t.computed)(()=>{const b={};if(r)return b;if(i&&u){if(o.padding){const S=Fe(o.padding);Object.assign(u.contentPadding,S)}const g=Nn(i,u),f=Bn(i,u);let w="";u.contentHeight?w=`${u.contentHeight}`:w=`${u.height}px`,console.debug("[content]page height:",w),console.debug("[content]header height:",g),console.debug("[content]footer height:",f),console.debug("[content]padding:",u.contentPadding),b.height=w;let m=(u&&u.contentPadding&&u.contentPadding.top)??-1;(m>=0||g>0)&&(m=m<0?0:m,b.paddingTop=`${g+m}px`);let v=(u&&u.contentPadding&&u.contentPadding.bottom)??-1;(v>=0||f>0)&&(v=v<0?0:v,b.paddingBottom=`${f+v}px`);const N=(u&&u.contentPadding&&u.contentPadding.left)??-1;N>=0&&(b.paddingLeft=`${N}px`);const k=(u&&u.contentPadding&&u.contentPadding.right)??-1;return k>=0&&(b.paddingRight=`${k}px`),b}if(o.padding){const g=Fe(o.padding);g.left&&(b.paddingLeft=`${g.left}px`),g.top&&(b.paddingTop=`${g.top}px`),g.right&&(b.paddingRight=`${g.right}px`),g.bottom&&(b.paddingBottom=`${g.bottom}px`)}return b}),d=(0,t.ref)(null),h=()=>{if(u&&d.value){const b=En(d.value);u.contentInnerHeight=b.height,u.contentInnerWidth=b.width}},y=xe(h,120);let C=null;return(0,t.onMounted)(()=>{s||r||(requestAnimationFrame(h),window.ResizeObserver&&d.value&&(C=new window.ResizeObserver(y),C.observe(d.value)))}),(0,t.onUnmounted)(()=>{s||r||C&&(C.disconnect(),C=null)}),()=>r?l.default?.():(0,t.h)(o.tag??"view",{...a,ref:d,class:c.value,style:p.value},l)}}}var{componentName:lc,create:oc,scope:ac}=G("content"),rc=oc(nc(lc,ac)),Ol=rc,bt="GroupStateKey",Lr=Symbol.for("GroupScopeKey");function In(){return(0,t.inject)(Lr,!1)}function qn(e=!0){(0,t.provide)(Lr,e)}function ic(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Le(l)||(e[o]=l)})}function sc(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ic(o,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(o),passport:0,order:{index:0}});return e.set(bt,l),l}function Fl(e,n,o=-1,l=-1,a=!1,r,s,i){const c=e.get(bt);if(!c)return;const u=e.get("groupLayout")??{};o===-1&&(o=u.column??1),l===-1&&(l=u.gutter??0),r||(r=u.minItemWidth??-1),s||(s=u.maxItemWidth??-1);const p=fe(r),d=fe(s);i||(i=u.type??"grid");const h=()=>{const y=n===""||n===-1,C=fe(n);let b=he(o);const g=fe(l);if(!y){let m=(C-(b-1)*g)/b;for(;d!==-1&&m>d;)b++,m=(C-(b-1)*g)/b;for(;p!==-1&&b>1&&m<p;)b--,m=(C-(b-1)*g)/b}let f=!1;const w=c.layout;w.value.width=n,w.value.column!==b&&(w.value.column=b,f=!0),w.value.gutter!==g&&(w.value.gutter=g,f=!0),w.value.type!==i&&(w.value.type=i,f=!0),f&&(0,t.triggerRef)(w)};if(a)h();else{const y=++c.passport;setTimeout(()=>{y===c.passport&&h()},50)}}function Pn(e,n=!1){let o;return n?o=e.getForParent(bt):o=e.get(bt),o.layout}function xn(e,n=!1){let o;return n?o=e.getForParent(bt):o=e.get(bt),o.order}function zr(e,n=1){if(n==="stretch")return-1;const o=he(n);return o===-1?100:100*o/e}function Mn(e,n,o=1,l=0,a){const r={};let s=0;a?s=fe(a):s=zr(n.column,o),s>0&&(r.width=`${s}%`);const i=zr(n.column,l);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 Ln(e,n,o=1,l=0){if(o==="stretch"){const c=e.index%n.column,u=c+(n.column-c);return e.index=e.index+(u-c),{"grid-column":`${c+1} / -1`}}let a=he(o);if(a===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(a>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=he(l)%n.column;let s=(e.index+r)%n.column,i=s+a;return i>n.column?(s=0,i=s+a,e.index=e.index+(n.column-s)+a):e.index=e.index+r+a,r>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}var Or=Symbol("RollingStateKey");function cc(e){(0,t.provide)(Or,e)}function dc(){return(0,t.inject)(Or,null)}function Rl(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-l-a}else n=e.offsetHeight;return n}function uc(e){let n=Rl(e);if(n<=0){const o=e.cloneNode(!0);o.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=Rl(o),document.body.removeChild(o)}return n}function fc(e,n,o){const l=typeof e=="number"?e:parseInt(e),a=typeof n=="number"?n:parseInt(n),r=typeof o=="number"?o:parseInt(o);if(l<=0)return"1fr";const s=(l-(a-1)*r)/a;return s>0?`${s}px`:"1fr"}function Fr(e){const n=[];return e.forEach(o=>{o.type===t.Fragment&&Array.isArray(o.children)?n.push(...Fr(o.children)):n.push(o)}),n}function mc(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Rr(e){function n(){return Fr(e?.()??[]).filter(mc)}return{getChildren:n}}var pc={...ge,...qr,...Pr};function hc(e,n,o){return{props:pc,emits:["update:collapse","header-click"],setup(l,a){const r=El(l.prop??l.name,l,xr),s=sc(r,{type:l.type}),i=In();qn(!0);const c=l.rollingDisplay?dc():null,u=(0,t.ref)(null),p=(0,t.computed)(()=>l.rollingDisplay?c&&!c.disabled:!1),d=(0,t.computed)(()=>i&&r?Pn(r,!0).value:null),h=(0,t.getCurrentInstance)(),y=(L,W=!1)=>{const M=h?.proxy;M&&typeof M.setNameValidateRules=="function"&&M.setNameValidateRules(L,!0,W)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([L,W],[M,I])=>{if(L&&M){const j=(0,t.toRaw)(M),Z=(0,t.toRaw)(L),ae=Z?Reflect.ownKeys(Z):[];(j?Reflect.ownKeys(j):[]).forEach(re=>{ae.includes(re)||(Z[re]=[])}),y(Z)}if(W&&I){const j=(0,t.toRaw)(I),Z=(0,t.toRaw)(W),ae=Z?Reflect.ownKeys(Z):[];(j?Reflect.ownKeys(j):[]).forEach(re=>{ae.includes(re)||(Z[re]=[])}),y(Z,!0)}},{deep:!0});const C=e,b=(0,t.computed)(()=>{const L={};if(L.height=T.value,l.width)l.width!=="auto"&&(L.width=ue(l.width));else{const W=i?xn(r,!0):null;if(d.value&&W){if(d.value.type==="grid"){const M=Ln(W,d.value,l.span,l.offset);Object.assign(L,M)}else if(d.value.type==="flow"){const M=Mn(W,d.value,l.span,l.offset,l.width);Object.assign(L,M)}}}return L}),g=(0,t.computed)(()=>{const L=s.layout.value.type;return L==="grid"||L==="flow"?{[`${C}--${L}`]:!0,[`${C}--${L}-justify-${l.justify}`]:!0,[`${C}--${L}-align-${l.align}`]:!0,[`${C}--gutter`]:!0}:{[`${C}--${L}`]:!0,[`${C}--gutter`]:!0}}),f=(0,t.computed)(()=>{if(s.layout.value.type==="grid"){let L="";if(l.columnWidth)L=`repeat(auto-fill, ${l.columnWidth})`;else{const W=fc(A.value,s.layout.value.column,s.layout.value.gutter);L=`repeat(${s.layout.value.column}, ${W})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":L}}}),w=(0,t.toRef)(l,"gutter"),m=(0,t.toRef)(l,"column"),v=(0,t.computed)(()=>i||p.value?!0:ke(l.isWrap)),N=[],k=L=>{N.push(L)},S=()=>{let L=N.length;N.splice(0,L)},A=(0,t.ref)(-1),V=L=>{const W=En(L).width;W>0&&W!==A.value&&(A.value=W)};Fl(r,A.value,m.value,w.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([A,m,w],([L,W,M])=>{s.order.index=0,Fl(r,L,W,M,!1,l.minItemWidth,l.maxItemWidth,l.type)});const E=(0,t.computed)(()=>P.value?l.expandText??"":l.collapseText??""),$=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),_=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),J=(0,t.ref)(),D=(0,t.ref)(),T=(0,t.computed)(()=>q.value||ue(l.height)||""),P=(0,t.ref)(!1),q=(0,t.ref)(""),O=(0,t.ref)(!1);let R=-1;const x=(L,W=!0)=>{const M=J.value;if(M&&P.value!==L){if(R=R<=0?uc(M):R,O.value=!0,W)if(M.style["will-change"]="height",M.ontransitionend=function(){M.ontransitionend=null,this.style["will-change"]="auto",L||(q.value="",O.value=!1)},L){let I=0;l.collapseHeight?I=l.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(I=D.value.offsetHeight),q.value=`${R}px`,(0,t.nextTick)(()=>{q.value=`${I}px`})}else q.value=`${R}px`;else if(L){let I=0;l.collapseHeight?I=l.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(I=D.value.offsetHeight),q.value=`${I}px`}else O.value=!1,q.value=`${R}px`;P.value=L,a.emit("update:collapse",L)}};(0,t.watch)(()=>l.collapse,L=>{x(L)});const Q=L=>{a.emit("header-click",L)},ne=()=>{F()},F=L=>{L=L??!P.value,x(L)};Ee({toggleCollapse:F,doLayout:()=>{N[0]&&(V(N[0]),Fl(r,A.value,m.value,w.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let z=null,X=!0;const K=L=>{if(l.rules&&y((0,t.toRaw)(l.rules)),l.pureDataRules&&y((0,t.toRaw)(l.pureDataRules),!0),!!Qe&&(L&&x(ke(l.collapse),!1),l.autoLayout&&Array.isArray(N)&&N.length>0)){const W=N[0];if(V(W),window.ResizeObserver){const M=xe(()=>V(W),120);z=new window.ResizeObserver(M),z.observe(W)}}},H=()=>{z?.disconnect(),z=null},ee=!p.value||c?.acquire();ee&&(u.value=p.value?!0:null),(0,t.onMounted)(()=>{if(ee&&(K(X),X=!1),p.value&&c){let L=null,W=c.initialHeight;c.observe(J.value,M=>{if(M!==u.value)if(M)u.value=!0,P.value||(q.value=""),L=setTimeout(()=>{L=null,u.value!==!1&&(K(X),X=!1)},100);else{if(L!==null&&clearTimeout(L),u.value=!1,!P.value)if(X)q.value=c.initialHeight;else{let I=Rl(J.value);I<=0?q.value=W:(q.value=`${I}px`,W=q.value)}X||H()}})}}),(0,t.onUnmounted)(()=>{z?.disconnect(),c&&c.unobserve(J.value)});const Y=(L="right")=>{const W=[];if(E.value){const j=(0,t.h)("span",{class:$.value},[E.value]);W.push(j)}const M={class:_.value},I=(0,t.h)(l.collapseIcon??o,M);return W.push(I),W.length>0?(0,t.h)("div",{class:{[`${C}__header-collapse`]:!0,[`is-${L}`]:!0},onClick:ne},W):null},te=(L,W,M,I)=>{const j={...g.value};if(W===0&&(j[`${C}__first`]=!0),M>=I-1&&(j[`${C}__last`]=!0),v.value===!1){const Z=a.attrs.class;Z&&(j[`${Z}`]=!0)}return(0,t.h)("div",{ref:k,key:`${W}`,class:j,style:f.value},L)};return()=>{const L=l.prop??l.name;if(p.value&&u.value!==!0)return(0,t.h)(l.tag||"div",{ref:J,prop:L,class:{[`${C}`]:!0,"is-collapse":O.value},style:b.value},[]);s.order.index=0;const W=[];let M=0;if(a.slots.header){const ae=(0,t.h)("div",{key:`${M++}`,ref:D,class:{[`${C}__header`]:!0,[`${C}__first`]:!0},onClick:Q},[a.slots.header()]);W.push(ae)}else{const ae=[],re=l.collapsePosition==="left";if(re&&l.showCollapse){const se=Y("left");se&&ae.push(se)}if(l.title||a.slots.title){if(l.showMark){const se={class:{[`${C}__header-mark`]:!0}};l.markColor&&(se.style={background:l.markColor});const we=(0,t.h)("div",se);ae.push(we)}if(a.slots.title){const se=(0,t.h)("div",{class:{[`${C}__header-title`]:!0}},[a.slots.title()]);ae.push(se)}else if(l.title){const se=(0,t.h)("div",{class:{[`${C}__header-title`]:!0}},[l.title]);ae.push(se)}}if(a.slots.toolbar&&ae.push(a.slots.toolbar()),!re&&l.showCollapse){const se=Y("right");se&&ae.push(se)}if(ae.length>0){const se=(0,t.h)("div",{key:`${M++}`,ref:D,class:{[`${C}__header`]:!0,[`${C}__first`]:!0},onClick:Q},ae);W.push(se)}}S();const{getChildren:I}=Rr(a.slots.default),j=I(),Z=s.layout.value.type;if(Z==="grid"){const ae=te(j,M++,0,j.length);W.push(ae)}else if(Z==="flow"){const ae=te(j,M++,0,j.length);W.push(ae)}else for(let ae=0;ae<j.length;ae++){const re=j[ae],se=te([re],M++,ae,j.length);W.push(se)}return v.value?(0,t.h)(l.tag||"div",{ref:J,prop:L,class:{[`${C}`]:!0,"is-collapse":O.value},style:b.value},[W]):W}}}}var{componentName:gc,create:yc,scope:bc}=G("group"),kc=yc(hc(gc,bc,oe.RectUp)),Kl=kc;function Sc(e){return e===window}var wc=/matrix\((.+)\)/,Ul=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(Sc(n))return{x:0,y:0};let o=0,l=0,a=n;for(;a!==null;)o+=a.offsetLeft,l+=a.offsetTop,a=a.offsetParent;let r=0,s=0,i=0,c=0;for(a=n;a!==document;){s+=a.scrollTop,r+=a.scrollLeft;const{transform:u}=window.getComputedStyle(a);if(u){const p=wc.exec(u);if(p){let d=p[1].split(/\s*,\s*/);d.length==6&&(i+=Number(d[4]),c+=Number(d[5]))}}a=a.parentNode}return o-=r,l-=s,o+=i,l+=c,{x:o,y:l}},Cc=class{watchedListeners=[];add(e){this.watchedListeners.push(e)}remove(e){const n=this.watchedListeners.indexOf(e);n!==-1&&this.watchedListeners.splice(n,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(e=>{try{e()}catch{}})}},vc=class{monitorRegister=new WeakMap;watch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let a=this.monitorRegister.get(o);a||(a=new Cc,o.addEventListener("scroll",a.listen),o===document.body&&o.addEventListener("resize",a.listen),this.monitorRegister.set(o,a)),a.add(n),o=o.parentNode}}unwatch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let a=this.monitorRegister.get(o);a&&(a.remove(n),a.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",a.listen),o===document.body&&o.removeEventListener("resize",a.listen))),o=o.parentNode}}},Kt=new vc,Kr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Nc,create:Bc}=G("price"),Ac=Bc({props:{...Kr},setup(e){const n=(0,t.computed)(()=>({[Nc]:!0})),o=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>Se(e.price)==0?"":fn(e.price,e.decimalLength,!0,he(e.digits),e.separator));return{classes:n,showSymbol:o,intText:(0,t.computed)(()=>{let a=l.value;if(a.length==0)return"";let r=a.indexOf(".");return a.substring(0,r)}),decimalText:(0,t.computed)(()=>{let a=l.value;if(a.length==0)return"";let r=a.indexOf(".");return a.substring(r+1)})}}}),le=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},Vc=["innerHTML"],Tc=["innerHTML"];function $c(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Vc)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--${e.size}`)},(0,t.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,t.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Tc)):(0,t.createCommentVNode)("",!0)],2)}var tt=le(Ac,[["render",$c]]),{componentName:Hl,create:Ec}=G("hint-text"),Dc=Ec({components:{Price:tt},props:{...Kr,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:()=>6},showArrow:{type:Boolean,default:()=>!0},arrowOffset:{type:Number,default:()=>20},offset:{type:Number,default:()=>12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const o=(0,t.ref)({top:null,right:null,bottom:null,left:null}),l=(0,t.ref)({x:0,y:0}),a=(0,t.ref)(0),r=(0,t.ref)(0),s=(0,t.ref)(e.placement),i=(0,t.ref)(!1),c=(0,t.ref)(null),u=($,_,J,D,T,P)=>{const q=document.documentElement.clientWidth||document.body.clientWidth,O=document.documentElement.clientHeight||document.body.clientHeight,R=$.split("-");let x=[];R[0]==="top"?x=["top","bottom","right","left"]:R[0]==="bottom"?x=["bottom","top","right","left"]:R[0]==="left"?x=["left","top","bottom","right"]:R[0]==="right"&&(x=["right","top","bottom","left"]);const Q={top:null,right:null,bottom:null,left:null},ne=[];for(let F=0;F<x.length;F++){const U=x[F];if(ne[0]=U,R[1]&&(ne[1]=R[1]),U==="top"){const z=_.y-P-e.arrowSize-e.offset;if(z>=0){Q.top=z;let X=0;R[1]==="start"?X=_.x:R[1]==="end"?X=_.x+J-T:X=_.x+J/2-T/2;const K=q-X-T;K<0?(X+=K,d.value=-K):d.value=0,Q.left=X<0?0:X;break}}else if(U==="bottom"){const z=_.y+D+e.arrowSize+e.offset;if(z+P<=O){Q.top=z;let X=0;R[1]==="start"?X=_.x:R[1]==="end"?X=_.x+J-T:X=_.x+J/2-T/2;const K=q-X-T;K<0?(X+=K,d.value=-K):d.value=0,Q.left=X<0?0:X;break}}else if(U==="left"){const z=_.x-T-e.arrowSize-e.offset;if(z>=0){Q.left=z;let X=0;R[1]==="start"?X=_.y:R[1]==="end"?X=_.y+D-P:X=_.y+D/2-P/2,Q.top=X<0?0:X;break}}else if(U==="right"){const z=_.x+J+e.arrowSize+e.offset;if(z+T<=q){Q.left=z;let X=0;R[1]==="start"?X=_.y:R[1]==="end"?X=_.y+D-P:X=_.y+D/2-P/2,Q.top=X<0?0:X;break}}}return{bestPlacement:ne.join("-"),bestInsetRect:Q}},p=($,_,J=10)=>{if(!Qe||_===!1||!$)return;l.value=Ul(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const D=c.value.offsetHeight,T=c.value.offsetWidth,{bestPlacement:P,bestInsetRect:q}=u(e.placement,l.value,a.value,r.value,T,D);s.value=P,o.value=q,i.value=!0},d=(0,t.ref)(0),h=xe(()=>{p(e.message,e.visible)},10),y=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,$=>{y.value=$});const C=(0,t.computed)(()=>y.value&&b.value),b=(0,t.ref)(!0),g=xe($=>{const _=$[0];_&&(b.value=_.isIntersecting)},10),f=new IntersectionObserver(g);(0,t.watch)([()=>e.message,()=>e.visible],([$,_])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Kt.watch(e.reference,h),f.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Kt.unwatch(e.reference,h),f.unobserve(e.reference),f.disconnect()});const w=(0,t.computed)(()=>{const $={[Hl]:!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),$}),m=(0,t.computed)(()=>{const $={};return o.value.top!==null&&($.top=`${o.value.top}px`),o.value.right!==null&&($.right=`${o.value.right}px`),o.value.bottom!==null&&($.bottom=`${o.value.bottom}px`),o.value.left!==null&&($.left=`${o.value.left}px`),e.autoFit&&($["min-width"]=`${a.value}px`),$["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}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),$}),v=(0,t.computed)(()=>{const $=[`${Hl}__content`];return e.customTextClass&&$.push(e.customTextClass),$}),N=(0,t.computed)(()=>{const $={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign($,e.customTextStyle),$}),k=(0,t.computed)(()=>({[`${Hl}__arrow`]:!0})),S=(0,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+d.value}px`,$.bottom=`-${e.arrowSize}px`):s.value==="top-end"?($.right=`${e.arrowOffset-d.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+d.value}px`,$.top=`-${e.arrowSize}px`):s.value==="bottom-end"?($.right=`${e.arrowOffset-d.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"}}),A=(0,t.computed)(()=>C.value&&e.closeOnClick),V=(0,t.computed)(()=>{const $={};return e.zIndex&&($["z-index"]=`${e.zIndex}`),$});return{show:C,tipRef:c,classes:w,styles:m,textClasses:v,textStyles:N,arrowClasses:k,arrowStyles:S,overlayShow:A,overlayStyle:V,onClickOverlay:()=>{y.value=!1,n.emit("update:visible",!1)}}}}),Ic=["innerHTML"];function qc(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Price");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.overlayShow?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,t.normalizeStyle)(e.overlayStyle),onClick:n[0]||(n[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"tipRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.textClasses),style:(0,t.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,Ic))],6),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.arrowClasses),style:(0,t.normalizeStyle)(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}var Ur=le(Dc,[["render",qc]]),zn=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},_l={},Pc=new zn,kt=new Map,On=e=>{if(e){const n=document.getElementById(e);kt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of kt.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}kt.clear()}},xc=e=>{e.unmount=On;const n=document.getElementById(e.id);if(n){const o=kt.get(e.id);return o?e={..._l,...o,...e}:e={..._l,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(Ur,e),n),e.id}},Mc=e=>{e.unmount=On;let n=e.id??`hinttext_${Pc.get()}`;e={..._l,...e},e.id=n,kt.set(n,e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(Ur,e),o),document.body.appendChild(o),n},Lc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},St={show(e,n,o={},l=!0){Lc(n);const a=o.id;return a&&kt.has(a)?xc({...o,message:n,reference:e}):(l&&On(),Mc({...o,message:n,reference:e}))},hide(e){On(e)},install(e){e.config.globalProperties.$hintText=St}};function zc(e,n,o,l=!1){return{inheritAttrs:!0,props:{...ge,...be},emits:["appear","disappear"],setup(a,r){const s=a.prop??r.attrs.name;Ae({componentName:e,validate:!1},s);const i=Ze(),c=In();qn(!1);const u=(0,t.computed)(()=>c&&i?Pn(i,!1).value:null),p=e,d=(0,t.ref)(null),h=(0,t.computed)(()=>{const I={[p]:!0,[`${p}__gutter`]:u.value&&u.value.type!=="flow",[`${p}__stretch`]:a.span==="stretch",[`${p}__input--border`]:ke(a.hasBorder)};if(I[a.errorMarkClass]=!!P.value,I[a.warnMarkClass]=!!D.value,I[a.infoMarkClass]=!!_.value,typeof d.value=="function"){const j=d.value(s);I[j]=!0}else if(typeof d.value=="string"){const j=d.value;I[j]=!0}return I}),y=(0,t.ref)(null),C=(0,t.computed)(()=>{const I={};if(a.width)a.width!=="auto"&&(I.width=ue(a.width));else{const j=c&&i?xn(i,!1):null;if(u.value&&j){if(u.value.type==="grid"){const Z=Ln(j,u.value,a.span,a.offset);Object.assign(I,Z)}else if(u.value.type==="flow"){const Z=Mn(j,u.value,a.span,a.offset,a.width);Object.assign(I,Z)}}}if(typeof y.value=="function"){const j=y.value(s);j&&Object.assign(I,j)}else if(y.value&&typeof y.value=="object"){const j=y.value;Object.assign(I,j)}return I}),b=(0,t.ref)(null),g=(0,t.computed)({get:()=>b.value??ke(a.isRequired),set:I=>{b.value=I}}),f=()=>typeof a.label=="string"&&a.label.length>0||typeof r.slots.label=="function",w=Ve((0,t.toRef)(a,"labelPosition"),"labelPosition",st.Near),m=(0,t.computed)(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),v=(0,t.computed)(()=>({[`${p}__main`]:!0,[`${p}__main--${m.value}`]:!0})),N=(0,t.computed)(()=>({label:!0,[`label--${m.value}`]:!0})),k=Ve((0,t.toRef)(a,"labelWidth"),"labelWidth",st.Near),S=(0,t.computed)(()=>k&&k.value?{width:ue(k.value)}:{}),A=(0,t.computed)(()=>({"label--string":!0,"label--required":g.value})),V=(0,t.computed)(()=>({content:!0,[a.contentClass]:!0})),E=(0,t.computed)(()=>({...a.contentStyle})),$=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ee({setRequired(I){g.value=I},setErrorTip(I){$.errorTip=I},setErrorIcon(I){$.errorIcon=I},setWarnTip(I){$.warnTip=I},setWarnIcon(I){$.warnIcon=I},setInfoTip(I){$.infoTip=I},setInfoIcon(I){$.infoIcon=I},setCustomClassName(I){d.value=I},setCustomStyle(I){y.value=I}});const _=(0,t.computed)(()=>a.infoTip||$.infoTip),J=(0,t.computed)(()=>a.infoIcon||$.infoIcon),D=(0,t.computed)(()=>a.warnTip||$.warnTip),T=(0,t.computed)(()=>a.warnIcon||$.warnIcon),P=(0,t.computed)(()=>a.errorTip||$.errorTip),q=(0,t.computed)(()=>a.errorIcon||$.errorIcon),O=(0,t.computed)(()=>P.value?"error":D.value?"warn":_.value?"info":""),R=()=>O.value.length>0,x=(0,t.computed)(()=>O.value==="error"?P.value:O.value==="warn"?D.value:O.value==="info"?_.value:""),Q=(0,t.computed)(()=>O.value==="error"?q.value:O.value==="warn"?T.value:O.value==="info"?J.value:null),ne=(0,t.computed)(()=>{const I={[`${p}__tip`]:!0,[`${p}__tip--${O.value}`]:!0,[`${p}--animate`]:!0};return O.value==="error"&&a.errorClass?I[`${a.errorClass}`]=!0:O.value==="warn"&&a.warnClass?I[`${a.warnClass}`]=!0:O.value==="info"&&a.infoClass&&(I[`${a.infoClass}`]=!0),I}),F=(0,t.computed)(()=>{const I={};return w&&w.value==="top"||!f()?I["padding-left"]="0px":k&&k.value&&(I["padding-left"]=ue(k.value)),I}),U=(0,t.ref)();let z="";(0,t.watch)([()=>a.hintVisible,()=>a.hintText,()=>a.hintType,()=>a.hintProps],([I,j,Z,ae])=>{U.value&&(I&&!de(j)?z?o.show(U.value,j,{...ae,id:z,type:Z},!0):z=o.show(U.value,j,{...ae,type:Z},!0):o.hide(z))});let X=null;const K=()=>{X||!U.value||(X=new IntersectionObserver(I=>{let j=!1;for(let Z of I)if(Z.intersectionRatio>0){j=!0,j&&r.emit("appear",Z);break}j||r.emit("disappear")}),X.observe(U.value))},H=()=>{!X||!U.value||(X.unobserve(U.value),X=null)};(0,t.watch)(()=>ke(a.appearListen),I=>{I?K():H()}),(0,t.onMounted)(()=>{ke(a.appearListen)&&K()}),(0,t.onUnmounted)(H);const ee=()=>{if(!f())return null;const I=[],j=r.slots?.label?.()??a.label,Z=(0,t.h)("div",{class:A.value},[j]);if(I.push(Z),r.slots.fixedPreTip){const ae=r.slots.fixedPreTip();I.push(ae)}return(0,t.h)("div",{class:N.value,style:S.value},I)},Y=()=>{const I=[];if(r.slots.prepend){const j=r.slots.prepend();I.push(j)}if(r.slots.default){const j=r.slots.default();I.push(j)}if(r.slots.append){const j=r.slots.append();I.push(j)}if(r.slots.fixedTip){const j=(0,t.h)("div",{class:[`${p}__fixed-tip`]},[r.slots.fixedTip()]);I.push(j)}return(0,t.h)("div",{ref:U,class:V.value,style:E.value},I)},te=()=>{const I=Q.value;return I?typeof I=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[I()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(I)]):null},L=()=>{const I=x.value;return I?typeof I=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[I()]):(0,t.h)("div",{class:"fox-item__tip--text"},[I]):null},W=()=>{if(!R())return null;const I=[],j=te();j&&I.push(j);const Z=L();return Z&&I.push(Z),(0,t.h)("div",{class:ne.value,style:F.value},I)},M=()=>r.slots?.hide?.()??null;return()=>{const I=[],j=[],Z=ee();Z&&j.push(Z);const ae=Y();ae&&j.push(ae);const re=(0,t.h)("div",{class:v.value},j);I.push(re);const se=W();se&&I.push(se);const we=M();return we&&I.push(we),(0,t.h)("div",{class:h.value,style:C.value,prop:a.prop},I)}}}}var{componentName:Oc,create:Fc,scope:Rc}=G("item"),Kc=Fc(zc(Oc,Rc,St,!1)),Ne=Kc,Hr={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"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function Uc(e,n){return{props:{...Hr},setup(o,l){const a=e,r=(0,t.computed)(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),s=Ze(),i=In();qn(!1);const c=(0,t.computed)(()=>{const u={};if(o.width)o.width!=="auto"&&(u.width=ue(o.width));else if(i&&s){const p=Pn(s,!1),d=xn(s,!1);if(p.value&&d){if(p.value.type==="grid"){const h=Ln(d,p.value,o.span,o.offset);Object.assign(u,h)}else if(p.value.type==="flow"){const h=Mn(d,p.value,o.span,o.offset,o.width);Object.assign(u,h)}}}return o.gutter&&(u.gap=ue(o.gutter)),u});return()=>{const u=[];if(l.slots.default){const p=l.slots.default();if(o.divide)for(let d=0;d<p.length;d++){if(d>0){const h=(0,t.h)("div",{class:{[`${a}__divide`]:!0}});u.push(h)}u.push(p[d])}else Reflect.apply([].push,u,p)}return(0,t.h)("div",{class:r.value,style:c.value},u)}}}}var{componentName:Hc,create:_c,scope:Wc}=G("row-item"),jc=_c(Uc(Hc,Wc)),Fn=jc,Yc=(0,t.defineComponent)({name:"ArrowDown",__name:"arrow-down",setup(e){return(n,o)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,t.createElementVNode)("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}});function Xc(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},500)}var Qc={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},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function Gc(e,n,o,l=!1){return{props:{...Qc},emits:["click"],setup(a,r){const s=(0,t.ref)(null),i=(0,t.computed)(()=>{const m={[`${e}`]:!0,"is-truncated":a.truncated};return a.type&&(m[`${e}--${a.type??"default"}`]=!0),a.size&&(m[`${e}--${a.size}`]=!0),m}),c=(0,t.computed)(()=>{const m={},v=a.textColor??a.color;return v&&(m.color=v),m}),u=(m,v)=>{let N=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const k=a.highlightFilter;m.indexOf(k)!==-1&&(v.innerHTML=m.replace(new RegExp(k,"g"),`<span>${k}</span>`),v.class["is-highlight"]=!0,N=(0,t.h)(a.tag,v))}else if(typeof a.highlightFilter=="function"){const k=a.highlightFilter(m);k&&(v.innerHTML=k,v.class["is-highlight"]=!0,N=(0,t.h)(a.tag,v))}return N},p=m=>{r.emit("click",m)};let d="";const h=()=>{const m=s.value;if(!m)return;const v=m.clientWidth;Xc(m,N=>{const k=m.innerHTML??"";de(k)||N<v||(d?o?.show(m,k,{type:"text",id:d,showArrow:a.showArrow},!0):d=o?.show(m,k,{type:"text",showArrow:a.showArrow},!0)??"")})},y=()=>{d&&o?.hide(d)};let C=null;const b=m=>{C||(C=setTimeout(()=>{h(),C=null},a.showAfter??0))},g=m=>{C&&(clearTimeout(C),C=null),setTimeout(()=>{y()},a.hideAfter??0)},f=()=>{const m=s.value;m&&(m.addEventListener("mouseover",b),m.addEventListener("mouseleave",g))},w=()=>{const m=s.value;m&&(m.removeEventListener("mouseover",b),m.removeEventListener("mouseleave",g))};return(0,t.onMounted)(()=>{!ke(a.showOverflowTooltip)||!o||f()}),(0,t.onBeforeUnmount)(()=>{!ke(a.showOverflowTooltip)||!o||w()}),()=>{const m={onClick:p,class:i.value,style:c.value,ref:s};let v=null;if(ke(a.numberFormat)&&typeof r.slots.default=="function"){const k=r.slots.default();if(Array.isArray(k)&&k.length===1){const S=k[0].type.toString();if(S==="Symbol(Text)"||S==="Symbol(v-txt)"){const A=he(a.digits),V=he(a.decimalLength),E=ke(a.autoPadding);let $=`${k[0].children}`,_=$.split("").reverse().join("");_=fn(_,V,E,A,a.separator),$=_.split("").reverse().join(""),a.highlightFilter!==void 0&&(v=u($,m)),v||(m.innerHTML=$,v=(0,t.h)(a.tag,m))}}}else{if(a.highlightFilter!==void 0&&typeof r.slots.default=="function"){const k=r.slots.default();if(Array.isArray(k)&&k.length===1){const S=k[0].type.toString();if(S==="Symbol(Text)"||S==="Symbol(v-txt)"){const A=`${k[0].children}`;v=u(A,m),v||(m.innerHTML=A,v=(0,t.h)(a.tag,m))}}}v||(v=(0,t.h)(a.tag,m,{default:r.slots.default}))}if(!a.mark&&!a.icon&&!r.slots.mark)return v;const N=[];if(r.slots.mark){const k={[`${e}__mark-wrap`]:!0};a.type&&(k[`${e}__mark-wrap--${a.type}`]=!0);const S={},A=a.color;A&&(S.color=A);const V=(0,t.h)("view",{class:k,style:S},{default:r.slots.mark});N.push(V)}else{const k={[`${e}__mark`]:!0};a.type&&(k[`${e}__mark--${a.type??"default"}`]=!0);const S={},A=a.color;A&&(S["background-color"]=A);const V=(0,t.h)("view",{class:k,style:S});N.push(V)}if(a.divide){const k=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});N.push(k)}return N.push(v),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":a.textPosition==="left","text-right":a.textPosition==="right"}},N)}}}}var{componentName:Zc,create:Jc,scope:ed}=G("text"),td=Jc(Gc(Zc,ed,St,!1)),Rn=td,nd={visible:{type:Boolean},reference:{type:[Object,String]},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function ld(e,n,o=!1){return{props:{...nd},emits:["update:visible"],setup(l,{emit:a,slots:r,expose:s}){const i=(0,t.ref)({top:null,right:null,bottom:null,left:null}),c=(0,t.ref)(0),u=(0,t.ref)(0),p=(0,t.ref)(0),d=(0,t.ref)(0),h=(0,t.ref)(l.placement),y=(0,t.ref)(!1),C=(0,t.ref)(!1),b=(0,t.ref)(null),g=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,f=(x,Q,ne,F,U,z,X,K=!0)=>{const H=document.documentElement.clientWidth||document.body.clientWidth,ee=document.documentElement.clientHeight||document.body.clientHeight,Y=x.split("-");let te=[];K?Y[0]==="top"?te=["top","bottom","right","left"]:Y[0]==="bottom"?te=["bottom","top","right","left"]:Y[0]==="left"?te=["left","top","bottom","right"]:Y[0]==="right"&&(te=["right","top","bottom","left"]):te=[x[0]];const L={top:null,right:null,bottom:null,left:null},W=[];for(let M=0;M<te.length;M++){const I=te[M];if(W[0]=I,Y[1]&&(W[1]=Y[1]),I==="top"){const j=ne-X-l.arrowSize/2-l.offset;if(j>=0){L.top=j;let Z=0;Y[1]==="start"?Z=Q:Y[1]==="end"?Z=Q+F-z:Z=Q+F/2-z/2;const ae=H-Z-z;ae<0?(Z+=ae,m.value=-ae):m.value=0,L.left=Z<0?0:Z;break}}else if(I==="bottom"){const j=ne+U+l.arrowSize/2+l.offset;if(j+X<=ee){L.top=j;let Z=0;Y[1]==="start"?Z=Q:Y[1]==="end"?Z=Q+F-z:Z=Q+F/2-z/2;const ae=H-Z-z;ae<0?(Z+=ae,m.value=-ae):m.value=0,L.left=Z<0?0:Z;break}}else if(I==="left"){const j=Q-z-l.arrowSize/2-l.offset;if(j>=0){L.left=j;let Z=0;Y[1]==="start"?Z=ne:Y[1]==="end"?Z=ne+U-X:Z=ne+U/2-X/2,L.top=Z<0?0:Z;break}}else if(I==="right"){const j=Q+F+l.arrowSize/2+l.offset;if(j+z<=H){L.left=j;let Z=0;Y[1]==="start"?Z=ne:Y[1]==="end"?Z=ne+U-X:Z=ne+U/2-X/2,L.top=Z<0?0:Z;break}}}return{bestPlacement:W.join("-"),bestInsetRect:L}},w=()=>{const x=l.visible,Q=l.autoFit;if(!Qe||x===!1)return;if(l.reference){const X=g(),K=Ul(X);c.value=K.x,u.value=K.y,p.value=X.offsetWidth,d.value=X.offsetHeight}else l.referenceInset&&(c.value=l.referenceInset.left,u.value=l.referenceInset.top,p.value=l.referenceInset.right-l.referenceInset.left,d.value=l.referenceInset.bottom-l.referenceInset.top);const ne=b.value.offsetWidth,F=b.value.offsetHeight,{bestPlacement:U,bestInsetRect:z}=f(l.placement,c.value,u.value,p.value,d.value,ne,F,Q);h.value=U,i.value=z},m=(0,t.ref)(0),v=xe(()=>{w()},10),N=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([x])=>{N.value=x,x?(y.value=x,setTimeout(()=>{w(),C.value=!0},0)):C.value=!1});const k=(0,t.computed)(()=>N.value&&S.value),S=(0,t.ref)(!0),A=xe(x=>{const Q=x[0];Q&&(S.value=Q.isIntersecting)},10),V=new IntersectionObserver(A);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([x,Q],[ne,F])=>{!x&&!Q||(setTimeout(()=>{w()},0),l.autoFit&&(ne&&(Kt.unwatch(ne,v),V.unobserve(ne)),x&&(Kt.watch(x,v),V.observe(x))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Kt.unwatch(l.reference,v),V.unobserve(l.reference),V.disconnect())});const E=(0,t.computed)(()=>{const x={[e]:!0};return h.value.startsWith("top")?x["is-top"]=!0:h.value.startsWith("right")?x["is-right"]=!0:h.value.startsWith("bottom")?x["is-bottom"]=!0:h.value.startsWith("left")&&(x["is-left"]=!0),x[`is-${l.effect}`]=!0,!C.value&&k.value&&(x["is-opacity"]=!0),C.value&&k.value&&(x["is-show"]=!0),k.value||(x["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(x[`${l.customClass}`]=!0),x}),$=(0,t.computed)(()=>{const x={};return i.value.top!==null&&(x.top=`${i.value.top}px`),i.value.right!==null&&(x.right=`${i.value.right}px`),i.value.bottom!==null&&(x.bottom=`${i.value.bottom}px`),i.value.left!==null&&(x.left=`${i.value.left}px`),l.width&&(x.width=l.width),l.zIndex&&(x["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(x,l.customStyle),x}),_=()=>{N.value=!1,a("update:visible",!1)},J=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:_}):null,D=()=>{let x=null;return r.title?x=(0,t.h)("div",{class:`${e}__title`},{default:r.title}):l.title&&(x=(0,t.h)("div",{class:`${e}__title`},[l.title])),x},T=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),P=(0,t.computed)(()=>{const x={};return l.showArrow?(x.width=`${l.arrowSize}px`,x.height=`${l.arrowSize}px`,h.value==="top"?(x.left="50%",x.bottom="0",x.transform="translate(-50%, 50%)"):h.value==="top-start"?(x.left=`${l.arrowOffset+m.value}px`,x.bottom="0",x.transform="translate(-50%, 50%)"):h.value==="top-end"?(x.right=`${l.arrowOffset-m.value}px`,x.bottom="0",x.transform="translate(-50%, 50%)"):h.value==="right"?(x.left="0",x.top="50%",x.transform="translate(-50%, -50%)"):h.value==="right-start"?(x.left="0",x.top=`${l.arrowOffset}px`,x.transform="translate(-50%, 50%)"):h.value==="right-end"?(x.left="0",x.bottom=`-${l.arrowOffset}px`,x.transform="translate(-50%, 50%)"):h.value==="bottom"?(x.left="50%",x.top="0",x.transform="translate(-50%, -50%)"):h.value==="bottom-start"?(x.left=`${l.arrowOffset+m.value}px`,x.top="0",x.transform="translate(-50%, -50%)"):h.value==="bottom-end"?(x.right=`${l.arrowOffset-m.value}px`,x.top="0",x.transform="translate(-50%, -50%)"):h.value==="left"?(x.right="0",x.top="50%",x.transform="translate(50%, -50%)"):h.value==="left-start"?(x.right="0",x.top=`${l.arrowOffset}px`,x.transform="translate(50%, -50%)"):h.value==="left-end"&&(x.right="0",x.bottom=`-${l.arrowOffset}px`,x.transform="translate(50%, -50%)"),x):{display:"none"}}),q=()=>(0,t.h)("div",{class:T.value,style:P.value}),O=()=>{N.value===!1&&(y.value=!1)},R=x=>{if(!b.value||N.value===!1)return;const{relatedTarget:Q}=x;b.value.contains(Q)||(N.value=!1,a("update:visible",!1))};return s({doLayout:w}),()=>{if(!y.value)return null;const x=[],Q=J();Q&&x.push(Q);const ne=[],F=D();if(F&&ne.push(F),r.default){const K=r.default();ne.push(K)}const U=q();U&&ne.push(U);const z={ref:b,class:E.value,style:$.value,onAnimationend:O};l.leaveHide&&(z.onMouseleave=R);const X=(0,t.h)("div",z,{default:()=>ne});return x.push(X),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>x})}}}}var{componentName:od,create:ad,scope:rd}=G("popover-dialog"),id=ad(ld(od,rd,!1)),Kn=id,sd={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function cd(e,n,o){return{props:{...Hr,...sd},emits:["click"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:s}=(0,ce.useFoxI18n)(n),i=s(l,["moreText"]),c=e,u=(0,t.computed)(()=>({[c]:!0}));function p(k){return k.props||{}}function d(k){return!!p(k).disabled}function h(k){return k.children??[]}const y=(0,t.ref)(),C=(0,t.computed)(()=>y.value?.$el??null),b=(0,t.ref)(!1),g=k=>{b.value=k},f=()=>{b.value=!b.value};function w(k,S){return()=>{S||(b.value=!1,p(k)?.onClick?.())}}function m(k,S){const A=h(k),V=d(k),E=w(k,V),$=[`${c}__dropdown-item`];return V&&$.push("is-disabled"),(0,t.h)("span",{class:$,onClick:E},A)}const v=k=>{const S=l.maxDisplayCount??k.length;if(S>=k.length)return k;const A=[],V=S-1;for(let D=0;D<V;D++)A.push(k[D]);const E=(r.moreIcon&&r.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(o),$=(0,t.h)(Rn,{ref:D=>y.value=D,class:`${c}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:f},{default:()=>i.moreText.value,mark:()=>E});A.push($);const _=[];for(let D=V;D<k.length;D++){const T=m(k[D],D);_.push(T)}const J=(0,t.h)(Kn,{placement:l.dropdownPlacement,"onUpdate:visible":g,visible:b.value,reference:C.value,"custom-class":`${c}__popover`},{default:()=>_});return A.push(J),A},N=()=>(r.default?.()||[]).filter(k=>k.type!==Comment);return()=>{const k=v(N());return(0,t.h)(Fn,{class:u.value},{default:()=>k})}}}}var{componentName:dd,create:ud,scope:fd}=G("buttons-item"),md=ud(cd(dd,fd,Yc)),Wl=md,pd={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function hd(e,n){return{props:{...pd},setup(o,l){const a=Ze(),r=In();qn(!1);const s=(0,t.computed)(()=>r&&a?Pn(a,!1).value:null),i=e,c=(0,t.computed)(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),u=(0,t.computed)(()=>{const p={};if(o.width)o.width!=="auto"&&(p.width=ue(o.width));else{const d=r&&a?xn(a,!1):null;if(s.value&&d){if(s.value.type==="grid"){const h=Ln(d,s.value,o.span,o.offset);Object.assign(p,h)}else if(s.value.type==="flow"){const h=Mn(d,s.value,o.span,o.offset,o.width);Object.assign(p,h)}}}return p});return()=>{const p={class:c.value,style:u.value};return l.slots&&typeof l.slots.default=="function"?(0,t.h)("div",p,l.slots.default()):(0,t.h)("div",p)}}}}var{componentName:gd,create:yd,scope:bd}=G("slot-item"),kd=yd(hd(gd,bd)),jl=kd,_r={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 Sd(e,n,o,l){return{props:{...ge,...be,..._r},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(a,r){const s=$e((0,t.computed)(()=>a.disabled)),i=Te((0,t.computed)(()=>a.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),{toLocaleRefs:u}=(0,ce.useFoxI18n)(n),p=u(a,["placeholder"]),d=(0,t.ref)(!1),h=Me(a,"modelValue",null,c),y=e,C=(0,t.computed)(()=>({[y]:!0,"is-disabled":s.value,"is-readonly":i.value})),b=Ve((0,t.computed)(()=>a.textAlign),"textAlign"),g=(0,t.computed)(()=>{const T={};return b.value&&(T["text-align"]=b.value),T}),f=T=>{let P=T.target.value;a.type==="digit"&&(P=Bl(P,!0)),a.type==="number"&&(P=Bl(P,!1)),a.maxLength&&P.length>Number(a.maxLength)&&(P=P.slice(0,Number(a.maxLength))),h.value=P,c("update:modelValue",P,T),c("change",P,T)};let w=Me(a,"hintText"),m=(0,t.ref)(!1);const v=T=>{let P=T.target.value;d.value=!0,de(w.value)||(m.value=!0),c("focus",P,T)},N=T=>{setTimeout(()=>{m.value&&(m.value=!1),d.value=!1},0);let P=T.target.value;a.maxLength&&P.length>Number(a.maxLength)&&(P=P.slice(0,Number(a.maxLength))),c("blur",P,T)},k=(0,t.computed)(()=>({[`${y}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),S=(0,t.computed)(()=>{const T={};return r.slots.append&&!A.value&&!J.value&&(T.display="none"),T}),A=(0,t.computed)(()=>Se(a.unit)>0),V=(0,t.computed)(()=>!J.value),E=(0,t.computed)(()=>({[`${y}__unit`]:!0,hidden:!V.value})),$=T=>{h.value="",c("update:modelValue","",T),c("change","",T),c("clear","")},_=(0,t.computed)(()=>ke(a.clearable)&&!s.value&&!i.value),J=(0,t.computed)(()=>{let T=Se(h.value)>0;return ke(a.clearable)&&T&&d.value}),D=(0,t.computed)(()=>({action:!0,hidden:!J.value}));return()=>{const T={class:C.value,style:g.value,type:a.type,maxlength:a.maxLength,placeholder:p.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:f,onFocus:v,onBlur:N},P=[],q=(0,t.h)("input",T);P.push(q);const O=[];if(_.value){const ne=(0,t.h)(l,{class:["action-icon"]}),F=(0,t.h)("view",{class:D.value,onClick:$},{default:()=>[ne]});O.push(F)}if(A.value){const ne=(0,t.h)("view",{class:E.value},[a.unit]);O.push(ne)}const R=(0,t.h)("view",{class:k.value,style:S.value},{default:()=>O});P.push(R);const x={default:()=>P};x.label=r.slots.default,x.prepend=r.slots.prepend,x.append=r.slots.append,x.fixedPreTip=r.slots.fixedPreTip,x.fixedTip=r.slots.fixedTip;const Q={...Ge(a,_r),hintText:w.value,hintVisible:m.value};return a.prop&&(Q.prop=`${a.prop}_item`),(0,t.h)(o,Q,x)}}}}var{componentName:wd,create:Cd,scope:vd}=G("input-item"),Nd=Cd(Sd(wd,vd,Ne,oe.CircleClose)),Yl=Nd;function Wr(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let a=l;for(let r=o.length-1;r>=l;r--)if(o.charAt(r)!="0"){a=r;break}return a-l<n?a=l+n+1:a!=l&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function jr(e,n,o=20){return typeof n=="string"&&(n=he(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?Wr(ar(`${e}`,`${n}`)):Wr(wl(`${e}`,rr(`${n}`),20))}function Bd(e,n=-1,o=!1,l=3,a=","){return fn(e,n,o,l,a)}function Yr(e,n,o,l,a=!0){if(e==="")return"";if(e=ir(e),n=he(n),n==1)return e;if(l)e=jr(e,n),o&&(e=="0"&&a?e=`${e}.`.padEnd(he(o)+2,"0"):e=wl(e,1,he(o)));else{let r=-1*n;e=jr(e,r)}return e}function Xr(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ke(n.minInclude),a=Cl(e,n.min);(l&&a==-1||!l&&(a==0||a==-1))&&(o.message="请输入不小于 {0} 的数值".replace("{0}",n.min),o.minValid=!1)}if(n.max!=null){let l=ke(n.maxInclude),a=Cl(e,n.max);(l&&a==1||!l&&(a==0||a==1))&&(o.maxValid=!1)}return o}var Qr={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 Ad(e,n,o,l){return{props:{...ge,...be,...Qr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(a,r){const s=$e((0,t.computed)(()=>a.disabled)),i=Te((0,t.computed)(()=>a.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),u=(0,t.ref)(!1),p=Me(a,"modelValue",null,c),d=(0,t.ref)("");(0,t.watch)([()=>p.value,()=>a.rates,()=>a.precision],([R,x,Q])=>{if(de(R)){d.value="";return}const ne=Yr(R,x,Q,!1);d.value!==ne&&(d.value=ne)},{immediate:!0});const h=(0,t.computed)(()=>{let R="";return u.value&&(R=d.value),R}),{t:y}=(0,ce.useFoxI18n)(n),C=(0,t.computed)(()=>{let R=a.placeholder??"";return!u.value&&!de(d.value)?R=Bd(d.value,a.decimalLength,a.autoPadding,a.digits,a.separator):R=de(R)?y(["placeholder"]):R,R}),b=e,g=(0,t.computed)(()=>({[b]:!0,[`${b}__placeholder`]:d.value.length>0,"is-disabled":s.value,"is-readonly":i.value})),f=Ve((0,t.computed)(()=>a.textAlign),"textAlign"),w=(0,t.computed)(()=>{const R={};return f.value&&(R["text-align"]=f.value),R}),m=(0,t.ref)(""),v=(0,t.computed)(()=>{let R=m.value;return de(R)&&(R=a.errorTip??""),R}),N=(0,t.ref)(""),k=(0,t.ref)(!1),S=R=>{let x=R.target.value;if(de(x)){d.value="",p.value="",c("update:modelValue","",R),c("change","",R),ke(a.showTip)&&k.value&&(k.value=!1);return}if(x.length>=2){let Q=x;if(Q.charAt(0)=="-"&&(Q=Q.substring(1)),Q.length>=2&&Q.charAt(0)=="0"&&Q.charAt(1)!="."){(0,t.triggerRef)(d);return}}if(x!="-"){if(!gn(x)){(0,t.triggerRef)(d);return}if(a.integerLength!=-1&&hr(x)>Number(a.integerLength)){(0,t.triggerRef)(d);return}if(a.decimalLength&&a.decimalLength!=-1&&gr(x)>Number(a.decimalLength)){(0,t.triggerRef)(d);return}let Q=Xr(x,a);if(Q.maxValid===!1){m.value=Q.message,(0,t.triggerRef)(d);return}}else if(a.min!=null&&he(a.min)>=0){(0,t.triggerRef)(d);return}N.value=x,ke(a.showTip)&&(k.value=x.length>0),d.value=x,p.value=Yr(x,a.rates,a.precision,!0),c("update:modelValue",p.value,R),c("change",p.value,R)},A=R=>{if(u.value=!0,ke(a.showTip)){let x=d.value;de(x)&&(x=a.hintText),de(x)||(N.value=x,k.value=!0)}m.value="",c("focus",p.value,R)},V=R=>{if(setTimeout(()=>{u.value=!1,ke(a.showTip)&&k.value===!0&&(k.value=!1)},0),!de(d.value)){let x=Xr(d.value,a);if(x.minValid===!1||x.maxValid===!1){m.value=x.message;return}}c("update:modelValue",p.value,R),c("blur",p.value,R)},E=(0,t.computed)(()=>({[`${b}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),$=(0,t.computed)(()=>{const R={};return r.slots.append&&!_.value&&!q.value&&(R.display="none"),R}),_=(0,t.computed)(()=>Se(a.unit)>0),J=(0,t.computed)(()=>!q.value),D=(0,t.computed)(()=>({[`${b}__unit`]:!0,hidden:!J.value})),T=R=>{p.value="",c("update:modelValue","",R),c("change","",R),c("clear","")},P=(0,t.computed)(()=>ke(a.clearable)&&!s.value&&!i.value),q=(0,t.computed)(()=>{let R=Se(p.value)>0;return ke(a.clearable)&&R&&u.value}),O=(0,t.computed)(()=>({action:!0,hidden:!q.value}));return()=>{let R={class:g.value,style:w.value,type:"digit",maxlength:a.maxLength,placeholder:C.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:S,onFocus:A,onBlur:V},x=[],Q=(0,t.h)("input",R);x.push(Q);let ne=[];if(P.value){const X=(0,t.h)(l,{class:["action-icon"]}),K=(0,t.h)("view",{class:O.value,onClick:T},{default:()=>[X]});ne.push(K)}if(_.value){const X=(0,t.h)("view",{class:D.value},[a.unit]);ne.push(X)}const F=(0,t.h)("view",{class:E.value,style:$.value},{default:()=>ne});x.push(F);const U={default:()=>x};U.label=r.slots.default,U.prepend=r.slots.prepend,U.append=r.slots.append,U.fixedPreTip=r.slots.fixedPreTip,U.fixedTip=r.slots.fixedTip;const z={...Ge(a,Qr),errorTip:v.value,hintText:N.value,hintVisible:k.value,hintType:"number"};return a.prop&&(z.prop=`${a.prop}_item`),(0,t.h)(o,z,U)}}}}var{componentName:Vd,create:Td,scope:$d}=G("money-item"),Ed=Td(Ad(Vd,$d,Ne,oe.CircleClose)),Xl=Ed,Ql={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:Dd,create:Id,scope:qd}=G("textarea"),Pd=Id({props:{...Ql},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:o}=(0,ce.useFoxI18n)(qd);const l=o(e,["placeholder"]),a=(0,t.ref)(),r=(0,t.computed)(()=>{const h=Dd;return{[h]:!0,[`${h}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&(0,t.nextTick)(i)});const s=(0,t.computed)(()=>({textAlign:e.textAlign})),i=()=>{let h=a.value;h.style.height="auto";let y=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:C,minHeight:b}=e.autosize;C!==void 0&&(y=Math.min(y,C)),b!==void 0&&(y=Math.max(y,b))}y&&(console.info("----------- height",y),h.style.height=y+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(i)});const c=(h,y)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,y),n("change",h,y)};return{...l,textareaRef:a,classes:r,styles:s,change:h=>{const y=h.target;c(y.value,h)},focus:h=>{e.disabled||e.readonly||n("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let y=h.target.value;c(y,h),n("blur",{value:y,event:h})}}}}),xd=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Md={key:0,class:"fox-textarea__limit"};function Ld(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:(0,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,xd),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",Md,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var Un=le(Pd,[["render",Ld]]);function zd(e,n,o,l){return{props:{...ge,...be,...Ql},emits:["update:modelValue","change","blur","focus","setValue"],setup(a,r){const s=$e((0,t.computed)(()=>a.disabled)),i=Te((0,t.computed)(()=>a.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),u=Me(a,"modelValue",null,c),p=b=>{u.value=b,c("update:modelValue",b,{}),c("change",b,{})};let d=Me(a,"hintText"),h=(0,t.ref)(!1);const y=b=>{de(d.value)||(h.value=!0),c("focus",u.value,b)},C=b=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",u.value,b)};return()=>{const b={...ye(a,Ql),disabled:s.value,readonly:i.value,value:u.value,"onUpdate:modelValue":p,onFocus:y,onBlur:C},g=[],f=(0,t.h)(l,b);g.push(f);const w={default:()=>g};w.label=r.slots.default,w.prepend=r.slots.prepend,w.append=r.slots.append,w.fixedPreTip=r.slots.fixedPreTip,w.fixedTip=r.slots.fixedTip;const m={...ye(a,be,ge)};return a.prop&&(m.prop=`${a.prop}_item`),(0,t.h)(o,m,w)}}}}var{componentName:Od,create:Fd,scope:Rd}=G("textarea-item"),Kd=Fd(zd(Od,Rd,Ne,Un)),Gl=Kd;function Ud(e){return e===window}var Pe=e=>{const n=(0,t.unref)(e);if(Ud(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Gr=10;function Zr(e,n){return e>n&&e>Gr?"horizontal":n>e&&n>Gr?"vertical":""}function Hn(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function _n(){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",o=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else{const i=s;e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Zr(e.offsetX,e.offsetY))}),start:(s=>{if(l(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else{const i=s;e.startX=i.clientX,e.startY=i.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:o,state:e}}function nt(){const e=(0,t.ref)(0),n=(0,t.ref)(0),o=(0,t.ref)(0),l=(0,t.ref)(0),a=(0,t.ref)(0),r=(0,t.ref)(0),s=(0,t.ref)(0),i=(0,t.ref)(0),c=(0,t.ref)(0),u=(0,t.ref)(0),p=(0,t.ref)(""),d=()=>p.value==="vertical",h=()=>p.value==="horizontal",y=()=>{s.value=0,i.value=0,c.value=0,u.value=0,p.value="",o.value=0};return{move:(g=>{if(g.touches){const f=g.touches[0];s.value=f.clientX-e.value,i.value=f.clientY-n.value,a.value=f.clientX,r.value=f.clientY}else{const f=g;s.value=f.clientX-e.value,i.value=f.clientY-n.value,a.value=f.clientX,r.value=f.clientY}c.value=Math.abs(s.value),u.value=Math.abs(i.value),l.value=Date.now()-o.value,p.value||(p.value=Zr(c.value,u.value))}),start:(g=>{if(y(),g.touches){const f=g.touches[0];e.value=f.clientX,n.value=f.clientY}else{const f=g;e.value=f.clientX,n.value=f.clientY}o.value=Date.now()}),reset:y,startX:e,startY:n,startTime:o,duration:l,moveX:a,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:u,direction:p,isVertical:d,isHorizontal:h}}var Hd=2e3,Jr=()=>Hd++,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:{}}},_d=(e,n)=>({components:n,props:{...Re},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const a=(0,t.reactive)({zIndex:0,showSlot:!0,closed:o.closeable});o.visible&&(a.zIndex=Jr());const r=(0,t.computed)(()=>{const b=e,g=[b,`${b}--${o.position}`];return o.round&&g.push("round"),o.position==="bottom"&&o.safeAreaInsetBottom&&g.push(`${b}--${o.position}--safebottom`),typeof o.popClass=="string"?g.push(o.popClass):Array.isArray(o.popClass)&&o.popClass.forEach(f=>{g.push(f)}),g}),s=(0,t.computed)(()=>({zIndex:a.zIndex,transitionDuration:`${o.duration}s`,...o.style})),i=(0,t.computed)(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),c=()=>{l("update:visible",!0),o.zIndex?a.zIndex=o.zIndex:a.zIndex=Jr(),o.destroyOnClose&&(a.showSlot=!0),l("open")},u=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+o.duration*1e3)},p=b=>{l("click-pop",b)},d=b=>{b.stopPropagation(),l("click-close-icon",b),l("update:visible",!1)},h=b=>{l("click-overlay",b),o.closeOnClickOverlay&&l("update:visible",!1)},y=b=>{l("opend",b)},C=b=>{l("closed",b)};return(0,t.watch)(()=>o.visible,b=>{o.visible?c():u()}),(0,t.watch)(()=>o.closeable,b=>{a.closed=b}),{...(0,t.toRefs)(a),popStyle:s,transitionName:i,classes:r,onClick:p,onClickCloseIcon:d,onClickOverlay:h,onOpened:y,onClosed:C}}}),ei={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}},Zl={...Re,...ei,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},poppable:{type:[Boolean],default:()=>!0}},ti=36;function Wd(){return ti}function jd(e){ti=e}function Ke(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Jl(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Yd(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function ct(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ni(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var Xd=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=et(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(De(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function Qd(){return new Xd((0,t.getCurrentInstance)().proxy)}function li(e,n,o){return!(Ke(e,n)!==Ke(e,o)||ct(e,n)!==ct(e,o))}function Gd(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const a=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let s=0;s<n.length&&s<o.length;s++){const i=n[s];let c=o[s].findIndex(u=>{if(r==="text")return Ke(e,u)===i;if(r==="value"){let p=ct(e,u);return p==null&&(p=Ke(e,u)),p===i}else if(r==="item")return li(e,u,i)});if(c==-1)break;a.push(c)}else{let s=o[0];for(let i=0;i<n.length;i++){const c=n[i];let u=s.findIndex(d=>{if(r==="text")return Ke(e,d)===c;if(r==="value"){let h=ct(e,d);return h==null&&(h=Ke(e,d)),h===c}else if(r==="item")return li(e,d,c)});if(u==-1)break;a.push(u);const p=Jl(e,s[u]);if(!Array.isArray(p))break;s=p}}return a}function oi(e,n,o,l){if(o.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let s=0;s<n.length&&s<o.length;s++){const i=o[s];let c=n[s];c<0&&c>=i.length&&(c=0);const u=i[c],p=Ke(e,u);if(a.texts.push(p),a.items.push(u),r==="text")a.values.push(p);else if(r==="value"){let d=ct(e,u);d==null&&(d=p),a.values.push(d)}else a.values.push(u)}else{let s=o[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=s.length&&(c=0);const u=s[c],p=Object.assign({},u);p.children=null;const d=Ke(e,u);if(a.texts.push(d),a.items.push(p),r==="text")a.values.push(d);else if(r==="value"){let h=ct(e,u);h==null&&(h=d),a.values.push(h)}else a.values.push(p);if(!Array.isArray(u.children))break;s=u.children}}return a}function ai(e){return{text:e,value:e}}var Zd=15,Jd=300,eu=200,{create:tu}=G("picker-column");function nu(e){e.stopPropagation()}function lu(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&nu(e)}var ou=tu({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},...ei},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=(0,t.computed)(()=>({"fox-picker__list":!0})),l=(0,t.computed)(()=>({height:`${he(e.visibleItemCount)*+e.itemHeight}px`})),a=(0,t.computed)(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=(0,t.computed)(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=S=>S>=d.currIndex+8||S<=d.currIndex-8,i=(0,t.computed)(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${r.value}px`})),c=S=>`transform: rotate3d(1, 0, 0, ${-d.rotation*S}deg) translate3d(0px, 0px, 104px)`,u=(0,t.computed)(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+r.value}px, 0)`})),p=(0,t.ref)(null),d=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=S=>Ke(e,S),y=S=>ct(e,S),C=nt(),b=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},g=(S,A=!1,V=!1)=>{if(d.currIndex=S,A){const E=()=>{d.moving=!1,n("update:modelValue",S),n("change",S)};V?d.transitionEndTrigger=E:E()}},f=(S,A,V)=>{let E=S+d.startDistance;if(A==="end"){const $=-(e.source.length-1)*e.itemHeight;E<$&&(E=$),E>0&&(E=0);let _=Math.abs(Math.round(-E/e.itemHeight));const J=-_*e.itemHeight,D=`${(_+1)*d.rotation}deg`;g(_,!0,V?V>0:!1),w(J,A,V,D)}else{let $=(-E/e.itemHeight+1)*d.rotation;const _=(e.source.length+1)*d.rotation,J=0;if($=Math.min(Math.max($,J),_),e.threeDimensional&&($<J||$>_))return;w(E,null,void 0,`${$}deg`)}},w=(S=0,A,V=eu,E)=>{A==="end"?d.scrollTime=V:d.scrollTime=0,d.deg=E,d.scrollDistance=S},m=(S,A)=>(S=Math.abs(S/A)/.003*(S<0?-1:1),S),v=S=>{e.readonly||(d.startDistance=d.scrollDistance,C.start(S),d.transitionEndTrigger=null)},N=S=>{e.readonly||(d.moving=!0,C.move(S),C.isVertical()&&(d.moving=!0,lu(S,!0)),f(C.deltaY.value,"",0))},k=()=>{if(e.readonly)return;const S=C.deltaY.value,A=C.duration.value;A<Jd&&Math.abs(S)>Zd?f(m(S,A),"end",e.swipeDuration):f(S,"end",0)};return(0,t.watch)(()=>e.modelValue,S=>{const A=d.currIndex-S;A!==0&&(d.currIndex=S,d.startDistance=d.scrollDistance,f(A*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,S=>{if(d.currIndex>=S.length){const A=(S.length-1-d.currIndex)*e.itemHeight;d.startDistance=d.scrollDistance,f(A,"end",0)}}),(0,t.watch)(()=>e.visible,S=>{S===!1&&b()}),(0,t.onMounted)(()=>{f(-e.modelValue*e.itemHeight)}),{classes:o,styles:l,contentClasses:a,itemText:h,itemValue:y,...(0,t.toRefs)(d),roller:p,getItemText:Ke,onTouchStart:v,onTouchMove:N,onTouchEnd:k,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:u,stopMomentum:b}}}),au={key:1,class:"fox-picker__item-tile"};function ru(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,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))},[(0,t.createElementVNode)("view",{ref:"roller",class:(0,t.normalizeClass)(e.contentClasses),style:(0,t.normalizeStyle)(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.source,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(i+1))},(0,t.toDisplayString)(e.itemText(s)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",au,(0,t.toDisplayString)(e.itemText(s)),1))],64))),128))],6)],38)}var iu=le(ou,[["render",ru]]),Ut=0,ri="fox-overflow-hidden",ii=()=>Qe?document.body:{classList:[]},su=e=>[()=>{if(e())try{!Ut&&ii().classList.add(ri),Ut++}catch{}},()=>{if(e()&&Ut)try{Ut--,!Ut&&ii().classList.remove(ri)}catch{}}],cu={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:du,create:uu}=G("overlay"),fu=uu({props:{...cu},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=su(()=>e.lockScroll),a=(0,t.computed)(()=>({[du]:!0,[e.overlayClass]:!0})),r=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,i=>{i?o():l()}),{classes:a,style:r,onClick:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function mu(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"overlay-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var dt=le(fu,[["render",mu]]),{componentName:pu,create:hu}=G("popup"),gu=hu(_d(pu,{FoxOverLay:dt,Close:oe.Close}));function yu(e,n,o,l,a,r){const s=(0,t.resolveComponent)("FoxOverLay"),i=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(s,(0,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"])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.closed?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:(0,t.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(i)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var pe=le(gu,[["render",yu]]),bu=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-picker__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(pe,Ge({...e},{poppable:!1}),n):n?.default?.()??null}}),ku=bu,{create:Su,componentName:si,scope:wu}=G("picker"),Cu=Su({components:{Column:iu,Wrapper:ku},props:{...Zl},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=(0,ce.useFoxI18n)(wu),a=o(e,["title","cancelText","clearText","confirmText"]),r=(0,t.ref)(null),s=(0,t.ref)(Wd());(0,t.watch)(()=>e.visible,T=>{T&&s.value<=0&&setTimeout(()=>{r.value&&(s.value=Pe(r.value).height,jd(s.value))},50)});const i=(0,t.computed)(()=>({[si]:!0})),c=(0,t.computed)(()=>{const T=[];return Array.isArray(e.popClass)?T.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&T.push(e.popClass),T.push(`${si}__popup`),T.join(" ")}),u=Qd(),p=(0,t.ref)("singleColumn");let d=(0,t.ref)([]);(0,t.watch)([()=>e.source,()=>e.params],async([T,P])=>{if(T){let q=await u.load("picker",T,P);if(q.length>0){let O=q[0];if(Array.isArray(O)){if(typeof O[0]=="string"){let R=q,x=[];R.forEach(Q=>{let ne=Q.map(F=>ai(F));x.push(ne)}),d.value=x}else d.value=q;p.value="multipleColumn"}else if(typeof O=="string"){let R=q,x=[],Q=R.map(ne=>ai(ne));x.push(Q),d.value=x,p.value="singleColumn"}else{const R=Jl(e,O);Array.isArray(R)?(p.value="cascade",d.value=[q]):(p.value="singleColumn",d.value=[q])}}else d.value=[]}},{immediate:!0});const h=(0,t.ref)([]),y=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),C=(0,t.ref)([]);let b=null;const g=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>d.value],([T,P])=>{let q=Gd(e,T,P,p.value);if(!Ie(q,g.value)){g.value=q,b||(b=q?[...q]:[]);let O=oi(e,q,P,p.value);O&&(h.value=O.texts,Ie(y.value,O.values)||(y.value=O.values),Ie(C.value,O.items)||(C.value=O.items),n("update:text",h.value))}});let f="";const w=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,T=>{w.value=T,T&&(f="active",g.value.length>0&&(b=[...g.value]))});const m=T=>{let P=ni(e,T);return De(P)?P.defaultIndex??0:0},v=T=>{if(e.readonly===!0)return!0;let P=ni(e,T);return De(P)?P.readonly??!1:!1},N=(T,P)=>{let q=g.value;q[T]=P;for(let R=0;R<T;R++)q[R]==null&&(q[R]=m(R));if(p.value==="cascade")for(let R=T+1;R<S.value.length;R++){let x=m(R);R<q.length?q[R]=x:q.push(x)}else for(let R=q.length;R<S.value.length;R++){let x=m(R);q.push(x)}g.value=q;let O=oi(e,q,d.value,p.value);O&&(h.value=O.texts,y.value=O.values,C.value=O.items)},k=T=>T<g.value.length?g.value[T]:m(T),S=(0,t.computed)(()=>{if(d.value.length==0)return[];if(p.value=="singleColumn"||p.value=="multipleColumn")return d.value;let T=[],P=0,q=d.value[0],O=0;for(;;){let R=q.map(ne=>{let F=Object.assign({},ne);return Yd(e,F,null),F});T.push(R),P>=g.value.length?O=0:O=g.value[P],(O<0||O>=q.length)&&(O=0);let x=q[O];const Q=Jl(e,x);if(!Array.isArray(Q))break;q=Q,P++}return T}),A=(0,t.computed)(()=>he(+e.visibleItemCount-1)/2*s.value),V=(T=!1)=>{if(e.readonly===!0){T&&n("update:visible",!1);return}let P=d.value.length-1;for(;P>=0&&!(g.value[P]===null||g.value[P]===void 0);P--);if(P>=0&&N(P,0),p.value==="singleColumn"){let q=y.value.length>0?y.value[0]:"",O=C.value.length>0?C.value[0]:null;n("update:modelValue",q),n("update:text",h.value),n("change",q,O),T&&(n("confirm",q),n("update:visible",!1))}else n("update:modelValue",y.value),n("update:text",h.value),n("change",y.value,C.value),T&&(n("confirm",y.value),n("update:visible",!1))},E=(T,P)=>{f!=="close"&&(N(T,P),e.isAutoBackFill&&V(!w.value))},$=()=>{f==="active"&&(f="confirm",b=Array.isArray(g.value)?[...g.value]:[],V(!0))},_=()=>{p.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),g.value=[],b=null};return{...a,pickerLineRef:r,classes:i,popClasses:c,columns:S,dataType:p,show:w,itemHeight:s,top:A,isReadonly:v,getIndex:k,change:E,close:()=>{if(f==="active"){if(f="close",b===null||b.length===0)_();else{if(Array.isArray(b))for(let T=0;T<b.length;T++)N(T,b[T]);V(!1)}n("close"),n("update:visible",!1)}},confirm:$,clear:()=>{if(f==="active"){if(f="clear",e.readonly===!0){n("update:visible",!1);return}_(),b=null,n("clear",""),n("update:visible",!1)}}}}}),vu={key:0,class:"fox-picker__bar"},Nu={class:"fox-picker__title"},Bu={class:"fox-picker__bar__action"},Au={class:"fox-picker__column"};function Vu(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Column"),i=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(i,{position:"bottom","pop-class":e.popClasses,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,poppable:e.poppable},{default:(0,t.withCtx)(()=>[e.poppable?((0,t.openBlock)(),(0,t.createElementBlock)("view",vu,[(0,t.createElementVNode)("view",Nu,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Bu,[(0,t.createElementVNode)("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...c)=>e.close&&e.close(...c))},(0,t.toDisplayString)(e.cancelText),1),(0,t.createElementVNode)("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...c)=>e.confirm&&e.confirm(...c))},(0,t.toDisplayString)(e.confirmText),1),e.clearText?((0,t.openBlock)(),(0,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))},(0,t.toDisplayString)(e.clearText),1)):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"top"),(0,t.createElementVNode)("view",Au,[(0,t.createElementVNode)("view",{class:"fox-picker__mask",style:(0,t.normalizeStyle)({backgroundSize:`100% ${e.top}px`})},null,4),(0,t.createElementVNode)("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:(0,t.normalizeStyle)({top:` ${e.top}px`})},null,4),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,(c,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u,class:"fox-picker__columnitem"},[(0,t.createVNode)(s,{visible:e.show,source:c,readonly:e.isReadonly(u),"column-index":u,modelValue:e.getIndex(u),"onUpdate:modelValue":p=>e.change(u,p),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["pop-class","visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable","poppable"])],2)}var Ht=le(Cu,[["render",Vu]]);function Tu(e,n,o,l,a,r,s=!0){return{props:{...ge,...be,...Zl,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,c){const u=$e((0,t.computed)(()=>i.disabled)),p=Te((0,t.computed)(()=>i.readonly)),{emitEvent:d}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=(0,ce.useFoxI18n)(n),y=h(i,["placeholder"]),C=(0,t.ref)(!1),b=Me(i,"modelValue",null,d),g=(0,t.ref)([]),f=(0,t.computed)(()=>Array.isArray(g.value)?g.value.join(i.separator):g.value),w="fox-input-item",m=(0,t.computed)(()=>({[w]:!0,"is-disabled":u.value,"is-readonly":p.value})),v=Ve((0,t.computed)(()=>i.textAlign),"textAlign"),N=(0,t.computed)(()=>{const U={};return v.value&&(U["text-align"]=v.value),U}),k=(0,t.ref)(!1),S=()=>{k.value=!0},A=U=>{k.value=U},V=U=>{b.value=U,d("update:modelValue",U)},E=(U,z)=>{d("change",U,z)},$=U=>{let z=U.target.value;C.value=!0,d("focus",z,U)},_=U=>{setTimeout(()=>{C.value=!1},0);let z=U.target.value;i.maxLength&&z.length>Number(i.maxLength)&&(z=z.slice(0,Number(i.maxLength))),d("blur",z,U)},J=U=>{g.value=U,Array.isArray(U)&&U.length===0?d("update:text",U[0]):d("update:text",U)},D=(0,t.computed)(()=>({[`${w}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),T=(0,t.computed)(()=>Se(i.unit)>0),P=(0,t.computed)(()=>Se(i.unit)>0&&!C.value),q=(0,t.computed)(()=>({hidden:!P.value})),O=U=>{b.value="",d("update:modelValue","",U),d("change","",U),d("clear","")},R=(0,t.computed)(()=>i.clearable&&!u.value&&!p.value),x=(0,t.computed)(()=>Se(b.value)>0&&C.value),Q=U=>{x.value?O(U):S()},ne=(0,t.computed)(()=>x.value&&R.value?l:a),F=(0,t.computed)(()=>({action:!0}));return()=>{const U={class:m.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:S,onFocus:$,onBlur:_};s&&(U.disabled=!0);const z=[],X=(0,t.h)("input",U);z.push(X);const K=[],H=(0,t.h)(ne.value,{class:["action-icon"]}),ee=(0,t.h)("view",{class:F.value,onClick:Q},{default:()=>[H]});if(K.push(ee),T.value){const I=(0,t.h)("view",{class:q.value},[i.unit]);K.push(I)}const Y=(0,t.h)("view",{class:D.value},{default:()=>K});z.push(Y);const te={default:()=>z};te.label=c.slots.default,te.prepend=c.slots.prepend,te.append=c.slots.append,te.fixedPreTip=c.slots.fixedPreTip,te.fixedTip=c.slots.fixedTip;const L=ye(i,Zl);L.disabled=!1,L.readonly=u.value||p.value,L.visible=k.value,L["onUpdate:visible"]=A,L.modelValue=b.value,L["onUpdate:modelValue"]=V,L.text=g.value,L["onUpdate:text"]=J,L.onChange=E;const W=(0,t.h)(r,L);te.hide=()=>[W];const M=ye(i,be,ge);return i.prop&&(M.prop=`${i.prop}_item`),(0,t.h)(o,M,te)}}}}var{componentName:$u,create:Eu,scope:Du}=G("picker-item"),Iu=Eu(Tu($u,Du,Ne,oe.CircleClose,oe.ArrowRight,Ht,!1)),eo=Iu,qu=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:o}){return()=>e.poppable?(0,t.h)(pe,{...o},n):n?.default?.()??null}}),Pu=qu,Wn=(e,n,o)=>e.map(l=>{const{value:a="value",text:r="text",children:s="children"}=o??{},{[a]:i,[r]:c,[s]:u,...p}=l,d={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:u,_parent:n};return d.children&&d.children.length&&(d.children=Wn(d.children,d,o)),d}),ci=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&ci(l.children,n)},xu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Mu=(e,n)=>{const{topId:o,idKey:l,pidKey:a,sortKey:r}={...xu,...n||{}};let s=[],i={};return e.forEach(c=>{c={...c};const{[l]:u,[a]:p}=c,d=i[p]=i[p]||[];!s.length&&p===o&&(s=d),d.push(c),c.children=i[u]||(i[u]=[])}),r&&Object.keys(i).forEach(c=>{i[c].length>1&&i[c].sort((u,p)=>u[r]-p[r])}),i=null,s},to={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},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},di=(e,n)=>n[e.textKey],_t=(e,n)=>n[e.valueKey],Lu=(e,n)=>n[e.visibleKey],ui=(e,n)=>n[e.disabledKey],zu=(e,n)=>{const o=n[e.doitKey];return ke(o)},Ou=(e,n)=>{const o=n[e.numKey];return o==null?null:he(n[o])},fi=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function Fu(e,n,o,l,a,r=!1){return{props:{...to},emits:["update:modelValue","change","click"],setup(s,{slots:i,emit:c}){const u=(0,t.computed)(()=>{const M={};return M[`${e}`]=!0,M}),p=(0,t.computed)(()=>{const M={};return M[`${e}__titles`]=!0,M[`${s.direction}`]=!0,s.align&&(M[`${s.align}`]=!0),s.scroll===!0&&(M.scrollable=!0),s.shape&&(M[`${s.shape}`]=!0),s.showScrollArrow?(X.value===!0&&(M["has-left-scroll-arrow "]=!0),K.value===!0&&(M["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(M["has-navigation"]=!0),M}),d=(0,t.computed)(()=>({})),h=(0,t.computed)(()=>{if(!s.gutter)return 0;const M=fe(s.gutter);return M<=0?0:M}),y=(0,t.ref)(s.modelValue);(0,t.watch)(()=>s.modelValue,M=>{y.value!==M&&(y.value=M,R(!1))});const C=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),b=(0,t.computed)(()=>{const M={};return f.value||(M.display="none"),M}),g=(0,t.ref)(),f=(0,t.ref)(!1),w=()=>{m(!f.value)},m=M=>{const I=M;I?(f.value=I,setTimeout(()=>{C.value["fox-tabs-bar__popup--show"]=!0,C.value["fox-tabs-bar__popup--hide"]=!1},0)):(C.value["fox-tabs-bar__popup--show"]=!1,C.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},v=(0,t.ref)(),N=(0,t.ref)([]),k=(M,I)=>{N.value[I]=M},S=M=>I=>{k(I,M)},A=(M,I)=>{const j=v.value,Z=N.value;if(!j||!Z||!Z[M])return;const ae=Z[M];let re=0;s.direction==="vertical"?re=ae.offsetTop-(j.offsetHeight-ae.offsetHeight)/2:re=ae.offsetLeft-(j.offsetWidth-ae.offsetWidth)/2,V(j,re,I?0:.3,s.direction)},V=(M,I,j,Z)=>{let ae=0;const re=Z==="horizontal"?M.scrollLeft:M.scrollTop,se=j===0?1:Math.round(j*1e3/16);function we(){Z==="horizontal"?M.scrollLeft+=(I-re)/se:M.scrollTop+=(I-re)/se,++ae<se&&We(we)}we()},E=(M,I)=>{const j=_t(s,M),Z={};return Z[`${e}__titles-item`]=!0,Z.disabled=ui(s,M),Z.active=j===y.value,s.shape&&(Z[`${s.shape}`]=!0),s.ellipsis&&(Z.ellipsis=!0),I&&(I.class&&(Z[`${I.class}`]=!0),I.disabled===!0&&(Z.disabled=I.disabled)),Z},$=(M,I)=>{const j={};if(h.value>0){const Z=Math.abs(h.value/2);s.direction==="vertical"?(j["margin-top"]=`${Z}px`,j["margin-bottom"]=`${Z}px`):(j["margin-left"]=`${Z}px`,j["margin-right"]=`${Z}px`)}return I&&I.style&&Object.assign(j,I.style),j},_=(M,I)=>`${_t(s,M)??I}`,J=(M,I)=>{const j=_t(s,M),Z={};Z[`${e}__popup-item`]=!0,Z.disabled=ui(s,M),Z.active=j===y.value,s.shape&&(Z[`${s.shape}`]=!0);const ae=fi(s,M,I);return ae&&ae.disabled===!0&&(Z.disabled=ae.disabled),Z},D=(0,t.computed)(()=>(s.data??[]).filter(M=>Lu(s,M)!==!1)),T=(M,I)=>{const j=_t(s,M);if(c("click",M,I),y.value==j)return;const Z=()=>{y.value=j,s.scroll&&A(I,!1),c("update:modelValue",j),c("change",M,I)};if(typeof s.beforeChange=="function"){const ae=s.beforeChange(M,I);mt(ae)?ae.then(re=>{re!==!1&&Z()}).catch(()=>{Z()}):ae!==!1&&Z()}else Z()},P=(M,I)=>function(){T(M,I)},q=(M,I)=>{T(M,I),m(!1)},O=(M,I)=>function(){q(M,I)},R=M=>{if(!Array.isArray(s.data)||!s.scroll)return;z()&&te();const I=s.data.findIndex(j=>_t(s,j)===y.value);I!==-1&&A(I,M)},x=()=>{z()||L()};(0,t.watch)(()=>s.data,()=>{setTimeout(R,0)}),(0,t.onMounted)(()=>{R(!0)}),(0,t.onBeforeUnmount)(()=>{x()});const Q=(M,I)=>{if(i.item)return i.item({item:M,index:I});const j=fi(s,M,I),Z=[];if(i.text){const re=i.text({item:M,index:I});Z.push(re)}else{const re=[];if(j?.doit===!0||zu(s,M)){const ft=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});re.push(ft)}const se=j?.num??Ou(s,M);if(se){let ft="";const ot=he(se);ot>=100?ft="99+":ft=`${ot}`;const Ga=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[ft]);re.push(Ga)}const we={class:`${e}__titles-item-text`};re.push(di(s,M));const qt=(0,t.h)("view",we,re);Z.push(qt)}const ae=(0,t.h)("view",{class:`${e}__titles-item-line`});return Z.push(ae),(0,t.h)("view",{ref:S(I),class:E(M,j),style:$(M,j),key:_(M,I),onClick:P(M,I)},Z)},ne=()=>{const M=i.default?i.default():[];if(M.length===0)for(let I=0;I<D.value.length;I++){const j=D.value[I],Z=Q(j,I);M.push(Z)}return(0,t.h)("view",{ref:v,class:p.value,style:d.value},M)},F=()=>{let M=null;return i.navigation?M=i.navigation():M=(0,t.h)(o),(0,t.h)("view",{class:`${e}__navigation`,onClick:w},[M])},U=()=>{const M=[];for(let I=0;I<D.value.length;I++){const j=D.value[I];let Z=null;i.popupItem?Z=i.popupItem({item:j,index:I}):Z=di(s,j);const ae=(0,t.h)("view",{class:J(j,I),key:_(j,I),onClick:O(j,I)},[Z]);M.push(ae)}return(0,t.h)("view",{class:C.value,style:b.value},M)},z=()=>s.showScrollArrow&&s.direction=="horizontal",X=(0,t.ref)(!1),K=(0,t.ref)(!1),H=M=>{const I=v.value,j=N.value;if(!(!I||!j))if(M==="left"){const Z=I.scrollLeft;let ae=Z;for(let re=0;re<j.length;re++){const se=j[re].offsetLeft;if(Z-se<0)break;ae=se}V(I,ae,.3,"horizontal")}else{const Z=I.scrollLeft;let ae=Z,re=I.offsetWidth;for(let se=j.length-1;se>=0;se--){const we=j[se].offsetLeft+j[se].offsetWidth;if(we-Z<I.offsetWidth){ae+=re-we;break}re=we}V(I,ae,.3,"horizontal")}},ee=xe(()=>{const M=v.value;if(!M)return;let I=M.scrollLeft>0;I!==X.value&&(X.value=I);let j=M.scrollWidth-M.scrollLeft>M.offsetWidth;j!==K.value&&(K.value=j)},50),Y=M=>{ee()},te=()=>{const M=v.value;M&&(ee(),M.addEventListener("scroll",Y))},L=()=>{const M=v.value;M&&M.removeEventListener("scroll",Y)},W=M=>{if(M==="left"&&X.value!==!0||M==="right"&&K.value!==!0)return null;let I=null;return M==="left"?i.leftArrow?I=i.leftArrow():I=(0,t.h)(l):i.rightArrow?I=i.rightArrow():I=(0,t.h)(a),(0,t.h)("view",{class:[`${e}__scroll-arrow`,M],onClick:()=>{H(M)}},[I])};return()=>{const M=[],I=ne();if(M.push(I),z()){const j=W("left");j&&M.push(j);const Z=W("right");Z&&M.push(Z)}else if(s.showQuickNavigation){const j=F();M.push(j);const Z=U();M.push(Z)}return(0,t.h)("view",{class:u.value},M)}}}}var{create:Ru,componentName:Ku,scope:Uu}=G("tabs-bar"),Hu=Ru(Fu(Ku,Uu,oe.MoreH,oe.Left,oe.Right,!1)),Wt=Hu,mi=Symbol("TabsStatesKey"),no={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},height:{type:[String,Number]},width:{type:[String,Number]}},_u=15,Wu=300,ju=200;function Yu(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function pi(e,n=0,o,l,a=ju){o==="end"?e.style.transition=`transform ${a}ms linear`:e.style.transition="transform 0ms linear",l==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}var Xu=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,n,o,l=1,a){this.onStart=e,this.onMove=n,this.onEnd=o,this.momentumReduceRatio=l,this.isTouch=a??Hn()}open(e){this.el=e;const n=_n(),o=(l,a,r)=>{const s={delta:l,direction:a,type:r};this.onMove(s)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;n.start(l),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=l=>{if(!this.moving)return;n.move(l);let a=0;if(this.direction==="horizontal"){if(n.isVertical())return;a=n.state.deltaX}else{if(n.isHorizontal())return;a=n.state.deltaY}o(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(n.isVertical()){this.moving=!1;return}l=n.state.deltaX}else{if(n.isHorizontal()){this.moving=!1;return}l=n.state.deltaY}const a=n.state.duration;a<Wu&&Math.abs(l)>_u?(l=Yu(l,a,this.momentumReduceRatio),o(l,this.direction,"end")):o(l,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Qu(e,n,o,l=1,a){return new Xu(e,n,o,l,a)}function Gu(e,n,o=!1){return{props:{...no},emits:["update:modelValue","change"],setup(l,{emit:a,slots:r}){const s=(0,t.shallowRef)([]),i={current:(0,t.ref)(l.modelValue??""),direction:(0,t.ref)(l.direction),tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:S=>{const A={name:S};i.current.value===S&&(A.loaded=!0),s.value.push(A),(0,t.triggerRef)(s)},remove:S=>{const A=s.value.findIndex(V=>V.name===S);A!==-1&&s.value.splice(A,1)},isLoaded:S=>{if(!l.lazy)return!0;const A=s.value.findIndex(V=>V.name===S);return A!==-1?i.current.value?s.value[A].loaded??!1:A===0:!1}};(0,t.provide)(mi,i);const c=S=>{const A=s.value.findIndex(V=>V.name===S);A!==-1&&(s.value[A].loaded=!0,(0,t.triggerRef)(s))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([S,A])=>{i.current.value!==S&&(i.current.value=S??"",c(S??"")),i.direction.value!==A&&(i.direction.value=A)});const u=(0,t.ref)(null),p=(0,t.ref)(null),d=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),h=(0,t.computed)(()=>{const S={};if(l.width){const A=ue(l.width);A&&(S.width=A)}if(l.height){const A=ue(l.height);A&&(S.height=A)}return S});let y=!0;const C=(0,t.computed)(()=>{const S={},A=s.value.length;if(A<=0)return S;const V=s.value.findIndex(E=>E.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(S.height=`${A*i.tabHeight.value}px`,V!==-1&&(S.transform=`translate(0, -${V*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(S.width=`${A*i.tabWidth.value}px`,V!==-1&&(S.transform=`translate(-${V*i.tabWidth.value}px, 0)`)),y&&(y=!1,S.transition="transform 0s ease"),S}),b={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},g=S=>{const A=s.value.length,V=s.value.findIndex(E=>E.name===i.current.value);b.moved=0,S.direction==="vertical"?(b.min=-1*(i.tabHeight.value*(A-1)+i.tabHeight.value/4),b.max=i.tabHeight.value/4,b.start=-V*i.tabHeight.value,b.itemDistance=i.tabHeight.value):(b.min=-1*(i.tabWidth.value*(A-1)+i.tabWidth.value/4),b.max=i.tabWidth.value/4,b.start=-V*i.tabWidth.value,b.itemDistance=i.tabWidth.value)},f=S=>{const A=p.value;if(!A)return;let V=b.start+S.delta;if(V>b.max?V=b.max:V<b.min&&(V=b.min),S.type==="move")pi(A,V,"move",S.direction,300);else if(S.type==="end"){let E=Math.floor(Math.abs(V)*1/b.itemDistance);const $=Math.abs(V)%b.itemDistance;b.start>V?$>=b.itemDistance*b.triggerAutoMoveRatio&&(E+=1):$>b.itemDistance-b.itemDistance*b.triggerAutoMoveRatio&&(E+=1),V=-1*E*b.itemDistance,pi(A,V,"end",S.direction,300),b.moved=V;const _=s.value[E].name;i.current.value=_??"",c(_??""),a("update:modelValue",_)}},w=()=>{},m=()=>{if(!u.value)return;const S=En(u.value);i.tabWidth.value=S.width,i.tabHeight.value=S.height},v=wn(m,120);let N=null,k=null;return(0,t.onMounted)(()=>{u.value&&(m(),window.ResizeObserver&&(k=new window.ResizeObserver(v),k.observe(u.value)),l.draggle&&(N=Qu(g,f,w),N.open(p.value)))}),(0,t.onBeforeUnmount)(()=>{k&&(k.disconnect(),k=null),N&&N.close()}),Ee({doLayout(){m()}}),()=>{const S=(0,t.h)("view",{class:`${e}__panes`,style:C.value,ref:p},[r?.default?.()]);return(0,t.h)("view",{class:d.value,style:h.value,ref:u},[S])}}}}var{create:Zu,componentName:Ju,scope:ef}=G("tabs-container"),tf=Zu(Gu(Ju,ef,!1)),jt=tf,nf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function lf(e,n,o){return{props:{...nf},setup(l,{emit:a,slots:r}){const s=(0,t.inject)(mi);(0,t.onMounted)(()=>{s.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{s.remove(l.paneKey)});const i=(0,t.computed)(()=>{const u={};return s.direction.value==="vertical"&&s.tabHeight.value>0?u.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(u.width=`${s.tabWidth.value}px`),u}),c=(0,t.computed)(()=>l.loaded!=null?ke(l.loaded):s.isLoaded(l.paneKey));return()=>{let u=[];if(c.value)u=r?.default?.()??[];else if(r.empty)u=r.empty();else{const p={class:`${e}__empty-icon`},d=(0,t.h)(l.emptyIcon??o,p),h=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),y=(0,t.h)("view",{class:`${e}__empty`},[d,h]);u.push(y)}return(0,t.h)("view",{class:`${e}`,style:i.value,prop:l.paneKey},u)}}}}var{create:of,componentName:af,scope:rf}=G("tabs-pane"),sf=of(lf(af,rf,oe.Loading)),jn=sf,hi=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=Wn(e,null,this.config)}updateChildren(e,n){n?n.children=Wn(e,n,this.config):this.nodes=Wn(e,null,this.config)}getNodeByValue(e){let n;return ci(this.nodes,o=>{if(o.value===e)return n=o,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(a=>a.value===e[a.level]);if(!l)break;n.push(l),o=l.children}return n}isLeaf(e,n){const{leaf:o,children:l}=e,a=Array.isArray(l)&&!!l.length;return o||!a&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:o}=e;return Array.isArray(o)&&!!o.length}},{create:cf,scope:df}=G("cascader-pane"),uf=cf({components:{Loading:oe.Loading,Checklist:oe.Checklist,TabsBar:Wt,TabsContainer:jt,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:o}=(0,ce.useFoxI18n)(df),l=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),a=(0,t.ref)(0),r=(0,t.ref)(),s=(0,t.ref)(!1),i=(0,t.ref)(e.modelValue),c=(0,t.ref)(new hi([],{})),u=(0,t.ref)([]),p=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),d=(0,t.computed)(()=>s.value==!0||u.value.length==0?[{text:"Loading",value:0}]:u.value.map((m,v)=>({text:m.selectedNode?m.selectedNode.text:o("select"),value:v}))),h=new Map;let y;const C=async()=>{h.clear(),u.value=[],a.value=0,s.value=!1,y=null;let{options:m}=e;l.value.convertConfig&&(m=Mu(m,l.value.convertConfig)),c.value=new hi(m,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),p.value&&!c.value.nodes.length&&await g({root:!0,loading:!0,text:"",value:""}),u.value=[{nodes:c.value.nodes,selectedNode:null}],b(!p.value)},b=async(m=!0)=>{const v=i.value;if(v===void 0||!c.value.nodes.length)return;if(v.length===0){a.value=0,u.value=[{nodes:c.value.nodes,selectedNode:null}];return}let N=v;if(p.value&&Array.isArray(v)&&v.length){N=[];let k=c.value.nodes.find(S=>S.value===v[0]);k&&(N=[k.value],s.value=!0,await g(await v.slice(1).reduce(async(S,A)=>{const V=await S;await g(V);const E=V?.children?.find($=>$.value===A);return E&&N.push(A),Promise.resolve(E)},Promise.resolve(k))),s.value=!1)}N.length&&v===e.modelValue&&c.value.getPathNodesByValue(N).map((k,S)=>{a.value=S,w.handleNode(k,m)})},g=async m=>{if(!m)return;if(!l.value.lazyLoad){m.leaf=!0;return}if(c.value.isLeaf(m,p.value)||c.value.hasChildren(m,p.value))return;m.loading=!0;const v=m.root?null:m;let N=h.get(m);N||(N=new Promise(S=>{l.value.lazyLoad?.(m,S)}),h.set(m,N));const k=await N;Array.isArray(k)&&k.length>0?c.value.updateChildren(k,v):m.leaf=!0,m.loading=!1,h.delete(m)},f=m=>{const v=m.map(N=>N.value);i.value=v,n("change",v,m),n("pathChange",m),n("update:modelValue",v)},w={async handleNode(m,v){const{disabled:N,loading:k}=m;if(!(!v&&N||!u.value[a.value])){if(c.value.isLeaf(m,p.value)){if(m.leaf=!0,u.value[a.value].selectedNode=m,u.value=u.value.slice(0,m.level+1),!v){const S=u.value.map(A=>A.selectedNode);f(S),n("pathChange",S)}return}if(c.value.hasChildren(m,p.value)){const S=m.level+1;u.value[a.value].selectedNode=m,u.value=u.value.slice(0,S),u.value.push({nodes:m.children||[],selectedNode:null}),a.value=S,v||n("pathChange",u.value.map(A=>A.selectedNode));return}y=m,!k&&(await g(m),y===m&&(u.value[a.value].selectedNode=m,w.handleNode(m,v)))}},handleTabChange(m,v){y=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:o("select")},isSelected(m,v){return m.selectedNode&&m.selectedNode.value===v.value}};return(0,t.watch)([l,()=>e.options],()=>{C()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,m=>{Ie(m,i.value)||(i.value=m,b(!p.value))}),(0,t.watch)(()=>e.visible,m=>{m&&Array.isArray(i.value)&&i.value.length>0&&b(),m&&r.value&&setTimeout(()=>{r.value.doLayout()},0)}),{panes:u,panesTitles:d,initLoading:s,tabsCursor:a,tabsContainerRef:r,...w}}}),ff={class:"fox-cascader"},mf={role:"menu",class:"fox-cascader__pane"},pf=["aria-checked","aria-disabled","onClick"],hf={class:"fox-cascader__item__title"};function gf(e,n,o,l,a,r){const s=(0,t.resolveComponent)("TabsBar"),i=(0,t.resolveComponent)("Loading"),c=(0,t.resolveComponent)("Checklist"),u=(0,t.resolveComponent)("TabsPane"),p=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",ff,[(0,t.createVNode)(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=d=>e.tabsCursor=d),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),(0,t.createVNode)(p,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=d=>e.tabsCursor=d)},{default:(0,t.withCtx)(()=>[!e.initLoading&&e.panes.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.panes,(d,h)=>((0,t.openBlock)(),(0,t.createBlock)(u,{"pane-key":h,key:h},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",mf,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(d.nodes,y=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:y.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(d,y),disabled:y.disabled}]),"aria-checked":e.isSelected(d,y),"aria-disabled":y.disabled||void 0,role:"menuitemradio",onClick:C=>e.handleNode(y,!1)},[(0,t.createElementVNode)("view",hf,(0,t.toDisplayString)(y.text),1),y.loading?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,pf))),128))])]),_:2},1032,["pane-key"]))),128)):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1,"pane-key":0},{default:(0,t.withCtx)(()=>[...n[2]||(n[2]=[(0,t.createElementVNode)("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}var yf=le(uf,[["render",gf]]),{create:bf}=G("cascader"),kf=bf({components:{CascaderPane:yf,Wrapper:Pu},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 o=(0,t.ref)(e.modelValue),l=(0,t.computed)({get(){return e.visible},set(s){n("update:visible",s)}}),a=(s,i)=>{o.value=s,l.value=!1,n("change",s,i),n("update:modelValue",s)},r=s=>{n("pathChange",s)};return(0,t.watch)(()=>e.modelValue,s=>{s!==o.value&&(o.value=s)}),{onChange:a,onPathChange:r,innerValue:o,innerVisible:l}}}),Sf=["innerHTML"];function wf(e,n,o,l,a,r){const s=(0,t.resolveComponent)("CascaderPane"),i=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(i,{poppable:e.poppable,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:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"header",{},()=>[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Sf)):(0,t.createCommentVNode)("",!0)]),(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"])]),_:3},8,["poppable","visible","closeable","close-icon-position"])}var Yn=le(kf,[["render",wf]]);function wt(e,n){return n[e.textKey??"text"]??""}function Ct(e,n){return n[e.valueKey??"value"]}function gi(e,n){return n[e.childrenKey??"children"]}function Xn(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const a=n[l],r=wt(e,a),s=Ct(e,a);o.texts.push(r),o.values.push(s??"")}return o}function yi(e,n,o,l,a=[]){if(!o)return;const r=o[l];for(let s=0;s<n.length;s++)if(wt(e,n[s])===r){const i=Ct(e,n[s])??"",c={[e.textKey]:r,[e.valueKey]:i};a.push(c);const u=gi(e,n[s]);Array.isArray(u)&&yi(e,u,o,l+1,a);return}}function bi(e,n,o,l,a=[]){if(!o)return;const r=o[l];for(let s=0;s<n.length;s++)if(Ct(e,n[s])===r){const i=wt(e,n[s])??"",c={[e.textKey]:i,[e.valueKey]:r};a.push(c);const u=gi(e,n[s]);Array.isArray(u)&&bi(e,u,o,l+1,a);return}}function lo(e,n,o){if(n===o)return!0;if(n.length!==o.length)return!1;for(let l=0;l<n.length;l++)if(wt(e,n[l])!==wt(e,o[l])||Ct(e,n[l])!==Ct(e,o[l]))return!1;return!0}var Cf=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){const l="cascader";if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,o);const a=et(this.proxy,l);return a===null?(console.error(`${l} component not found api function`),[]):(De(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await a(e,n,o))}};function vf(){return new Cf((0,t.getCurrentInstance)().proxy)}var ki={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 Nf(e,n,o,l,a,r,s=!1){return{props:{...ge,...be,...ki},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(i,c){const u=$e((0,t.computed)(()=>i.disabled)),p=Te((0,t.computed)(()=>i.readonly)),{emitEvent:d}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=(0,ce.useFoxI18n)(n),y=h(i,["placeholder"]),C=(0,t.ref)(!1),b=vf(),g=(0,t.ref)([]),f=(0,t.ref)([]),w=(0,t.computed)(()=>{if(Array.isArray(f.value)){if(i.showAllLevels===!1){const H=f.value.length-1;return f.value[H]}return f.value.join(i.separator)}else return f.value}),m=(0,t.ref)([]),v=(0,t.ref)([]);(0,t.watch)([()=>i.modelValue,()=>g.value],async([H,ee])=>{if(d("setValue",H),i.lazy===!0){v.value.length==0&&(m.value=Array.isArray(H)?H:[]);return}if(i.valueType==="item"){let Y=H;if(!lo(i,Y,v.value)){v.value=Y;let te=Xn(i,Y);f.value=te.texts,m.value=te.values}}else if(i.valueType==="text"){let Y=H,te=[];if(yi(i,ee,Y,0,te),!lo(i,te,v.value)){v.value=te;let L=Xn(i,te);Y.value=L.texts,m.value=L.values}}else{let Y=[];if(bi(i,ee,H,0,Y),!lo(i,Y,v.value)){v.value=Y;let te=Xn(i,Y);f.value=te.texts,m.value=te.values}}}),i.lazy===!0&&(m.value=Array.isArray(i.modelValue)?i.modelValue:[]),(0,t.watch)([()=>i.source,()=>i.params],async([H,ee])=>{i.lazy||H&&(g.value=await b.load(H,ee))},{immediate:!0});const N="fox-input-item",k=(0,t.computed)(()=>({[N]:!0,"is-disabled":u.value,"is-readonly":p.value})),S=Ve((0,t.computed)(()=>i.textAlign),"textAlign"),A=(0,t.computed)(()=>{const H={};return S.value&&(H["text-align"]=S.value),H}),V=(0,t.ref)(!1),E=()=>{u.value===!0||p.value===!0||(V.value=!0)},$=H=>{V.value=H},_=(H,ee)=>{let Y=ee.map(L=>{if(L==null)return L;let W={...L};return Reflect.deleteProperty(W,"text"),W[i.textKey]=L.text??"",Reflect.deleteProperty(W,"value"),W[i.valueKey]=L.value??"",W});v.value=Y;let te=Xn(i,Y);f.value=te.texts,m.value=te.values,i.valueType==="text"?(d("change",f.value,Y),d("update:modelValue",f.value)):i.valueType==="item"?(d("change",Y,Y),d("update:modelValue",Y)):(d("change",m.value,Y),d("update:modelValue",m.value)),d("update:pathNodes",Y)},J=H=>{d("pathChange",H.map(ee=>{if(ee==null)return ee;let Y={...ee};return Reflect.deleteProperty(Y,"text"),Y[i.textKey]=ee.text??"",Reflect.deleteProperty(Y,"value"),Y[i.valueKey]=ee.value??"",Y}))},D=H=>{C.value=!0,d("focus",m.value,H)},T=H=>{setTimeout(()=>{C.value=!1},0),d("blur",m.value,H)},P=(0,t.computed)(()=>({[`${N}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),q=(0,t.computed)(()=>Se(i.unit)>0),O=(0,t.computed)(()=>Se(i.unit)>0&&!C.value),R=(0,t.computed)(()=>({hidden:!O.value})),x=H=>{v.value=[],f.value=[],m.value=[],d("update:modelValue",[]),d("change",[],H),d("clear",[]),d("update:pathNodes",[])},Q=(0,t.computed)(()=>i.clearable&&!u.value&&!p.value),ne=(0,t.computed)(()=>{let H=m.value&&m.value.length>0;return i.clearable&&H&&C.value}),F=H=>{ne.value?x(H):E()},U=(0,t.computed)(()=>ne.value&&Q.value?l:a),z=(0,t.computed)(()=>({action:!0}));let X=null;const K=()=>typeof X=="function"?X:typeof i.lazyLoad=="function"?i.lazyLoad:(X=async(H,ee)=>{const Y=[],te=[];let L=0;if(!H.root){let W=H;for(;W;){const M=wt(i,W),I=Ct(i,W);te.splice(0,0,M),Y.splice(0,0,I),W=W._parent}L=Y.length}ee(await b.load(i.source,{...H,level:L,pathLabels:te,pathValues:Y},!0))},X);return()=>{const H={class:k.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:w.value,onClick:E,onFocus:D,onBlur:T};s&&(H.disabled=!0);const ee=[],Y=(0,t.h)("input",H);ee.push(Y);const te=[],L=(0,t.h)(U.value,{class:["action-icon"]}),W=(0,t.h)("view",{class:z.value,onClick:F},{default:()=>[L]});if(te.push(W),q.value){const se=(0,t.h)("view",{class:R.value},[i.unit]);te.push(se)}const M=(0,t.h)("view",{class:P.value},{default:()=>te});ee.push(M);const I={default:()=>ee};I.label=c.slots.default,I.prepend=c.slots.prepend,I.append=c.slots.append,I.fixedPreTip=c.slots.fixedPreTip,I.fixedTip=c.slots.fixedTip;const j={};j.visible=V.value,j["onUpdate:visible"]=$,j.modelValue=m.value,j.onChange=_,j.onPathChange=J,j.title=i.title,j.valueKey=i.valueKey,j.textKey=i.textKey,j.childrenKey=i.childrenKey,j.convertConfig=i.convertConfig,i.lazy?(j.lazy=!0,j.lazyLoad=K()):j.options=g.value;const Z={};Z.header=c.slots.header;const ae=(0,t.h)(r,j,Z);I.hide=()=>[ae];const re={...Ge(i,ki)};return i.prop&&(re.prop=`${i.prop}_item`),(0,t.h)(o,re,I)}}}}var{componentName:Bf,create:Af,scope:Vf}=G("cascader-item"),Tf=Af(Nf(Bf,Vf,Ne,oe.CircleClose,oe.ArrowRight,Yn,!1)),oo=Tf,$f=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs=l()})(e,(function(){"use strict";var o=1e3,l=6e4,a=36e5,r="millisecond",s="second",i="minute",c="hour",u="day",p="week",d="month",h="quarter",y="year",C="date",b="Invalid Date",g=/^(\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,w={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("_"),ordinal:function(D){var T=["th","st","nd","rd"],P=D%100;return"["+D+(T[(P-20)%10]||T[P]||T[0])+"]"}},m=function(D,T,P){var q=String(D);return!q||q.length>=T?D:""+Array(T+1-q.length).join(P)+D},v={s:m,z:function(D){var T=-D.utcOffset(),P=Math.abs(T),q=Math.floor(P/60),O=P%60;return(T<=0?"+":"-")+m(q,2,"0")+":"+m(O,2,"0")},m:function D(T,P){if(T.date()<P.date())return-D(P,T);var q=12*(P.year()-T.year())+(P.month()-T.month()),O=T.clone().add(q,d),R=P-O<0,x=T.clone().add(q+(R?-1:1),d);return+(-(q+(P-O)/(R?O-x:x-O))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:d,y,w:p,d:u,D:C,h:c,m:i,s,ms:r,Q:h}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},N="en",k={};k[N]=w;var S="$isDayjsObject",A=function(D){return D instanceof _||!(!D||!D[S])},V=function D(T,P,q){var O;if(!T)return N;if(typeof T=="string"){var R=T.toLowerCase();k[R]&&(O=R),P&&(k[R]=P,O=R);var x=T.split("-");if(!O&&x.length>1)return D(x[0])}else{var Q=T.name;k[Q]=T,O=Q}return!q&&O&&(N=O),O||!q&&N},E=function(D,T){if(A(D))return D.clone();var P=typeof T=="object"?T:{};return P.date=D,P.args=arguments,new _(P)},$=v;$.l=V,$.i=A,$.w=function(D,T){return E(D,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var _=(function(){function D(P){this.$L=V(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[S]=!0}var T=D.prototype;return T.parse=function(P){this.$d=(function(q){var O=q.date,R=q.utc;if(O===null)return new Date(NaN);if($.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var x=O.match(g);if(x){var Q=x[2]-1||0,ne=(x[7]||"0").substring(0,3);return R?new Date(Date.UTC(x[1],Q,x[3]||1,x[4]||0,x[5]||0,x[6]||0,ne)):new Date(x[1],Q,x[3]||1,x[4]||0,x[5]||0,x[6]||0,ne)}}return new Date(O)})(P),this.init()},T.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},T.$utils=function(){return $},T.isValid=function(){return this.$d.toString()!==b},T.isSame=function(P,q){var O=E(P);return this.startOf(q)<=O&&O<=this.endOf(q)},T.isAfter=function(P,q){return E(P)<this.startOf(q)},T.isBefore=function(P,q){return this.endOf(q)<E(P)},T.$g=function(P,q,O){return $.u(P)?this[q]:this.set(O,P)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(P,q){var O=this,R=!!$.u(q)||q,x=$.p(P),Q=function(ee,Y){var te=$.w(O.$u?Date.UTC(O.$y,Y,ee):new Date(O.$y,Y,ee),O);return R?te:te.endOf(u)},ne=function(ee,Y){return $.w(O.toDate()[ee].apply(O.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(Y)),O)},F=this.$W,U=this.$M,z=this.$D,X="set"+(this.$u?"UTC":"");switch(x){case y:return R?Q(1,0):Q(31,11);case d:return R?Q(1,U):Q(0,U+1);case p:var K=this.$locale().weekStart||0,H=(F<K?F+7:F)-K;return Q(R?z-H:z+(6-H),U);case u:case C:return ne(X+"Hours",0);case c:return ne(X+"Minutes",1);case i:return ne(X+"Seconds",2);case s:return ne(X+"Milliseconds",3);default:return this.clone()}},T.endOf=function(P){return this.startOf(P,!1)},T.$set=function(P,q){var O,R=$.p(P),x="set"+(this.$u?"UTC":""),Q=(O={},O[u]=x+"Date",O[C]=x+"Date",O[d]=x+"Month",O[y]=x+"FullYear",O[c]=x+"Hours",O[i]=x+"Minutes",O[s]=x+"Seconds",O[r]=x+"Milliseconds",O)[R],ne=R===u?this.$D+(q-this.$W):q;if(R===d||R===y){var F=this.clone().set(C,1);F.$d[Q](ne),F.init(),this.$d=F.set(C,Math.min(this.$D,F.daysInMonth())).$d}else Q&&this.$d[Q](ne);return this.init(),this},T.set=function(P,q){return this.clone().$set(P,q)},T.get=function(P){return this[$.p(P)]()},T.add=function(P,q){var O,R=this;P=Number(P);var x=$.p(q),Q=function(U){var z=E(R);return $.w(z.date(z.date()+Math.round(U*P)),R)};if(x===d)return this.set(d,this.$M+P);if(x===y)return this.set(y,this.$y+P);if(x===u)return Q(1);if(x===p)return Q(7);var ne=(O={},O[i]=l,O[c]=a,O[s]=o,O)[x]||1,F=this.$d.getTime()+P*ne;return $.w(F,this)},T.subtract=function(P,q){return this.add(-1*P,q)},T.format=function(P){var q=this,O=this.$locale();if(!this.isValid())return O.invalidDate||b;var R=P||"YYYY-MM-DDTHH:mm:ssZ",x=$.z(this),Q=this.$H,ne=this.$m,F=this.$M,U=O.weekdays,z=O.months,X=O.meridiem,K=function(Y,te,L,W){return Y&&(Y[te]||Y(q,R))||L[te].slice(0,W)},H=function(Y){return $.s(Q%12||12,Y,"0")},ee=X||function(Y,te,L){var W=Y<12?"AM":"PM";return L?W.toLowerCase():W};return R.replace(f,(function(Y,te){return te||(function(L){switch(L){case"YY":return String(q.$y).slice(-2);case"YYYY":return $.s(q.$y,4,"0");case"M":return F+1;case"MM":return $.s(F+1,2,"0");case"MMM":return K(O.monthsShort,F,z,3);case"MMMM":return K(z,F);case"D":return q.$D;case"DD":return $.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return K(O.weekdaysMin,q.$W,U,2);case"ddd":return K(O.weekdaysShort,q.$W,U,3);case"dddd":return U[q.$W];case"H":return String(Q);case"HH":return $.s(Q,2,"0");case"h":return H(1);case"hh":return H(2);case"a":return ee(Q,ne,!0);case"A":return ee(Q,ne,!1);case"m":return String(ne);case"mm":return $.s(ne,2,"0");case"s":return String(q.$s);case"ss":return $.s(q.$s,2,"0");case"SSS":return $.s(q.$ms,3,"0");case"Z":return x}return null})(Y)||x.replace(":","")}))},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(P,q,O){var R,x=this,Q=$.p(q),ne=E(P),F=(ne.utcOffset()-this.utcOffset())*l,U=this-ne,z=function(){return $.m(x,ne)};switch(Q){case y:R=z()/12;break;case d:R=z();break;case h:R=z()/3;break;case p:R=(U-F)/6048e5;break;case u:R=(U-F)/864e5;break;case c:R=U/a;break;case i:R=U/l;break;case s:R=U/o;break;default:R=U}return O?R:$.a(R)},T.daysInMonth=function(){return this.endOf(d).$D},T.$locale=function(){return k[this.$L]},T.locale=function(P,q){if(!P)return this.$L;var O=this.clone(),R=V(P,q,!0);return R&&(O.$L=R),O},T.clone=function(){return $.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},D})(),J=_.prototype;return E.prototype=J,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",u],["$M",d],["$y",y],["$D",C]].forEach((function(D){J[D[1]]=function(T){return this.$g(T,D[0],D[1])}})),E.extend=function(D,T){return D.$i||(D(T,_,E),D.$i=!0),E},E.locale=V,E.isDayjs=A,E.unix=function(D){return E(1e3*D)},E.en=k[N],E.Ls=k,E.p={},E}))})),Ef=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var o={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"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,r=/\d\d/,s=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,c={},u=function(g){return(g=+g)+(g>68?1900:2e3)},p=function(g){return function(f){this[g]=+f}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(f){if(!f||f==="Z")return 0;var w=f.match(/([+-]|\d\d)/g),m=60*w[1]+(+w[2]||0);return m===0?0:w[0]==="+"?-m:m})(g)}],h=function(g){var f=c[g];return f&&(f.indexOf?f:f.s.concat(f.f))},y=function(g,f){var w,m=c.meridiem;if(m){for(var v=1;v<=24;v+=1)if(g.indexOf(m(v,0,f))>-1){w=v>12;break}}else w=g===(f?"pm":"PM");return w},C={A:[i,function(g){this.afternoon=y(g,!1)}],a:[i,function(g){this.afternoon=y(g,!0)}],Q:[a,function(g){this.month=3*(g-1)+1}],S:[a,function(g){this.milliseconds=100*+g}],SS:[r,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[s,p("seconds")],ss:[s,p("seconds")],m:[s,p("minutes")],mm:[s,p("minutes")],H:[s,p("hours")],h:[s,p("hours")],HH:[s,p("hours")],hh:[s,p("hours")],D:[s,p("day")],DD:[r,p("day")],Do:[i,function(g){var f=c.ordinal;if(this.day=g.match(/\d+/)[0],f)for(var w=1;w<=31;w+=1)f(w).replace(/\[|\]/g,"")===g&&(this.day=w)}],w:[s,p("week")],ww:[r,p("week")],M:[s,p("month")],MM:[r,p("month")],MMM:[i,function(g){var f=h("months"),w=(h("monthsShort")||f.map((function(m){return m.slice(0,3)}))).indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[i,function(g){var f=h("months").indexOf(g)+1;if(f<1)throw new Error;this.month=f%12||f}],Y:[/[+-]?\d+/,p("year")],YY:[r,function(g){this.year=u(g)}],YYYY:[/\d{4}/,p("year")],Z:d,ZZ:d};function b(g){for(var f=g,w=c&&c.formats,m=(g=f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(E,$,_){var J=_&&_.toUpperCase();return $||w[_]||o[_]||w[J].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,T,P){return T||P.slice(1)}))}))).match(l),v=m.length,N=0;N<v;N+=1){var k=m[N],S=C[k],A=S&&S[0],V=S&&S[1];m[N]=V?{regex:A,parser:V}:k.replace(/^\[|\]$/g,"")}return function(E){for(var $={},_=0,J=0;_<v;_+=1){var D=m[_];if(typeof D=="string")J+=D.length;else{var T=D.regex,P=D.parser,q=E.slice(J),O=T.exec(q)[0];P.call($,O),E=E.replace(O,"")}}return(function(R){var x=R.afternoon;if(x!==void 0){var Q=R.hours;x?Q<12&&(R.hours+=12):Q===12&&(R.hours=0),delete R.afternoon}})($),$}}return function(g,f,w){w.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var m=f.prototype,v=m.parse;m.parse=function(N){var k=N.date,S=N.utc,A=N.args;this.$u=S;var V=A[1];if(typeof V=="string"){var E=A[2]===!0,$=A[3]===!0,_=E||$,J=A[2];$&&(J=A[2]),c=this.$locale(),!E&&J&&(c=w.Ls[J]),this.$d=(function(q,O,R,x){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*q);var Q=b(O)(q),ne=Q.year,F=Q.month,U=Q.day,z=Q.hours,X=Q.minutes,K=Q.seconds,H=Q.milliseconds,ee=Q.zone,Y=Q.week,te=new Date,L=U||(ne||F?1:te.getDate()),W=ne||te.getFullYear(),M=0;ne&&!F||(M=F>0?F-1:te.getMonth());var I,j=z||0,Z=X||0,ae=K||0,re=H||0;return ee?new Date(Date.UTC(W,M,L,j,Z,ae,re+60*ee.offset*1e3)):R?new Date(Date.UTC(W,M,L,j,Z,ae,re)):(I=new Date(W,M,L,j,Z,ae,re),Y&&(I=x(I).week(Y).toDate()),I)}catch{return new Date("")}})(k,V,S,w),this.init(),J&&J!==!0&&(this.$L=this.locale(J).$L),_&&k!=this.format(V)&&(this.$d=new Date("")),c={}}else if(V instanceof Array)for(var D=V.length,T=1;T<=D;T+=1){A[1]=V[T-1];var P=w.apply(this,A);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}T===D&&(this.$d=new Date(""))}else v.call(this,N)}}}))})),Df=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(o,l){var a=l.prototype,r=a.format;a.format=function(s){var i=this,c=this.$locale();if(!this.isValid())return r.bind(this)(s);var u=this.$utils(),p=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(d){switch(d){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return c.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return c.ordinal(i.week(),"W");case"w":case"ww":return u.s(i.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(i.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(i.$H===0?24:i.$H),d==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return d}}));return r.bind(this)(p)}}}))})),If=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(o,l,a){var r=l.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,h,y,C,b){var g=d.name?d:d.$locale(),f=s(g[h]),w=s(g[y]),m=f||w.map((function(N){return N.slice(0,C)}));if(!b)return m;var v=g.weekStart;return m.map((function(N,k){return m[(k+(v||0))%7]}))},c=function(){return a.Ls[a.locale()]},u=function(d,h){return d.formats[h]||(function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,b,g){return b||g.slice(1)}))})(d.formats[h.toUpperCase()])},p=function(){var d=this;return{months:function(h){return h?h.format("MMMM"):i(d,"months")},monthsShort:function(h){return h?h.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(d,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return u(d.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},a.localeData=function(){var d=c();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(h){return u(d,h)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return i(c(),"months")},a.monthsShort=function(){return i(c(),"monthsShort","months",3)},a.weekdays=function(d){return i(c(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return i(c(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return i(c(),"weekdaysMin","weekdays",2,d)}}}))})),qf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var o="week",l="year";return function(a,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=s(this).startOf(l).add(1,l).date(u),d=s(this).endOf(o);if(p.isBefore(d))return 1}var h=s(this).startOf(l).date(u).startOf(o).subtract(1,"millisecond"),y=this.diff(h,o,!0);return y<0?s(this).startOf("week").week():Math.ceil(y)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})),Pf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(o,l){l.prototype.weekYear=function(){var a=this.month(),r=this.week(),s=this.year();return r===1&&a===11?s+1:a===0&&r>=52?s-1:s}}}))})),xf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(o,l,a){l.prototype.dayOfYear=function(r){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}}))})),Mf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}}))})),Lf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}}))})),Ue=_e($f(),1),zf=_e(Ef(),1),Of=_e(Df(),1),Ff=_e(If(),1),Rf=_e(qf(),1),Kf=_e(Pf(),1),Uf=_e(xf(),1),Hf=_e(Mf(),1),_f=_e(Lf(),1);Ue.default.extend(Ff.default),Ue.default.extend(Of.default),Ue.default.extend(zf.default),Ue.default.extend(Rf.default),Ue.default.extend(Kf.default),Ue.default.extend(Uf.default),Ue.default.extend(Hf.default),Ue.default.extend(_f.default);var ie={format(e,n){return(0,Ue.default)(e).format(n)},parser(e,n){return(0,Ue.default)(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+o).getDay()]},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){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},getDay(e,n,o){e=e||0;let l=n??new Date;const a=e*(1e3*60*60*24);return l=new Date(l.getTime()+a),o=o??"YYYY-MM-DD",this.format(l,o)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(o>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let l;return typeof n=="string"?l=new Date(n).getTime():l=n,o==l},getMonthWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o));let r=a.getDay(),s=a.getDate(),i=6-r;return l!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=new Date(Number(e),0,1),s=Math.round((a.valueOf()-r.valueOf())/864e5);let i=a.getDay(),c=6-i;return l!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=a.getTime();let s=a.getDay();if(l===0){const c=r-s*864e5,u=r+(6-s)*864e5;return[this.date2Str(new Date(c)),this.date2Str(new Date(u))]}else{s=s==0?7:s;const i=1440*60*1e3,c=r-(s-1)*i,u=r+(7-s)*i;return[this.date2Str(new Date(c)),this.date2Str(new Date(u))]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ie.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ie.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,o){const l=new Date(new Date(n).setDate(n.getDate()+o)),a=e.getTime(),r=l.getTime(),s=n.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s},inScope4Month(e,n,o){const l=new Date(new Date(n).setMonth(n.getMonth()+o)),a=e.getTime(),r=l.getTime(),s=n.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s}},Si=new Date().getFullYear(),ao={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},Qn=(e,n,o)=>{let l;if(je(n)?l=n:typeof n=="string"&&Se(n)>0?l=ie.parser(n,o):l=new Date,l.toString()==="Invalid Date")return null;let a=Math.max(l.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},ro=(e,n,o)=>{je(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),ie.format(new Date(l),o)},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(Si-10,0,1),validator:je},maxDate:{type:Date,default:()=>new Date(Si+10,11,31),validator:je},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:Wf,scope:jf}=G("date-picker"),Yf=Wf({components:{Picker:Ht},props:{...io},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=(0,ce.useFoxI18n)(jf),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds"),today:o("today"),fullWeekdays:JSON.parse(o("fullWeekdays"))},a=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,m=>{a.value=m});function r(m,v){return new Date(m,v,0).getDate()}const s=(m,v)=>{const N=e[`${m}Date`],k=N.getFullYear();let S=1,A=1,V=0,E=0;m==="max"&&(S=12,A=r(v.getFullYear(),v.getMonth()+1),V=23,E=59);const $=E;return v.getFullYear()===k&&(S=N.getMonth()+1,v.getMonth()+1===S&&(A=N.getDate(),v.getDate()===A&&(V=N.getHours(),v.getHours()===V&&(E=N.getMinutes())))),{[`${m}Year`]:k,[`${m}Month`]:S,[`${m}Date`]:A,[`${m}Hour`]:V,[`${m}Minute`]:E,[`${m}Seconds`]:$}},i=(0,t.computed)(()=>{if(!h.value)return[];const{maxYear:m,maxDate:v,maxMonth:N,maxHour:k,maxMinute:S,maxSeconds:A}=s("max",h.value),{minYear:V,minDate:E,minMonth:$,minHour:_,minMinute:J,minSeconds:D}=s("min",h.value);let T=[{type:"year",range:[V,m]},{type:"month",range:[$,N]},{type:"day",range:[E,v]},{type:"hour",range:[_,k]},{type:"minute",range:[J,S]},{type:"seconds",range:[D,A]}];switch(e.type){case"date":T=T.slice(0,3);break;case"datetime":T=T.slice(0,5);break;case"time":T=T.slice(3,6);break;case"year-month":T=T.slice(0,2);break;case"month-day":T=T.slice(1,3);break;case"datehour":T=T.slice(0,4);break;case"hour-minute":T=T.slice(3,5);break}return T}),c=(m,v,N,k,S)=>{const A=[];for(;m<=v;){let V=!0;if(typeof e.itemFilter=="function"){const E={text:`${m}`,value:m,type:N,currentYearMonth:k};V=e.itemFilter(E)}if(V)if(typeof e.itemFormatter=="function"){const E={text:`${m}`,value:m,type:N,currentYearMonth:k};e.itemFormatter(E),A.push({text:E.text,value:E.value})}else if(e.isShowChinese){let E=`${m}${l[N]}`;if(N==="day"){if(k[0]===S[0]&&k[1]===S[1]&&m===S[2])E=l.today;else{const $=new Date(k[0],k[1],m).getDay();E=`${E} ${l.fullWeekdays[$]}`}A.push({text:E,value:m})}else A.push({text:m+l[N],value:m})}else A.push({text:`${m}`,value:m});N==="minute"?m+=e.minuteStep:m++}return A},u=(0,t.computed)(()=>{const m=new Date,v=[m.getFullYear(),m.getMonth(),m.getDate()],N=[];h.value&&(N[0]=h.value.getFullYear(),N[1]=h.value.getMonth());let k=[];return i.value.forEach(S=>{let A=c(S.range[0],S.range[1],S.type,N,v);A&&k.push(A)}),k}),p=(m,v)=>m==="year"?v.getFullYear():m==="month"?v.getMonth()+1:m==="day"?v.getDate():m==="hour"?v.getHours():m==="minute"?v.getMinutes():m==="seconds"?v.getSeconds():0,d=(0,t.ref)(),h=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,m=>{let v;if(typeof m=="string"?m.length==0||m==="Invalid Date"?v=new Date:e.valueFormat?v=Qn(e,e.modelValue,e.valueFormat):v=Qn(e,m,ao[e.type]):je(m)?v=m:v=new Date,!!v&&(!h.value||v.getTime()!==h.value.getTime())){h.value=v;let N=[];i.value.forEach(k=>{let S=p(k.type,v);N.push(S)}),d.value=N}},{immediate:!0});const y=m=>{if(!m||m.length===0){h.value=new Date;let v=[];i.value.forEach(N=>{let k=p(N.type,h.value);v.push(k)}),d.value=v;return}if(e.type==="date"){const v=m[0],N=m[1]-1,k=Math.min(m[2],r(v,N+1));k!==m[2]&&(m[2]=k),h.value=new Date(v,N,k)}else if(e.type==="datetime"){const v=m[0],N=m[1]-1,k=Math.min(m[2],r(v,N+1)),S=m[3],A=m[4];k!==m[2]&&(m[2]=k),h.value=new Date(v,N,k,S,A)}else if(e.type==="time"){const v=m[0],N=m[1],k=m[2],S=h.value??new Date;h.value=new Date(S.getFullYear(),S.getMonth(),S.getDate(),v,N,k)}else if(e.type==="year-month"){const v=m[0],N=m[1]-1;h.value=new Date(v,N)}else if(e.type==="month-day"){const v=(h.value??new Date).getFullYear(),N=m[0]-1,k=Math.min(m[1],r(v,N+1));k!==m[1]&&(m[1]=k),h.value=new Date(v,N,k)}else if(e.type==="datehour"){const v=m[0],N=m[1]-1,k=Math.min(m[2],r(v,N+1)),S=m[3];k!==m[2]&&(m[2]=k),h.value=new Date(v,N,k,S)}else if(e.type==="hour-minute"){const v=m[0],N=m[1],k=h.value??new Date;h.value=new Date(k.getFullYear(),k.getMonth(),k.getDate(),v,N)}d.value=m};return{columns:u,dateIndexs:d,show:a,onChange:m=>{y(m)},onClose:()=>{n("update:close",!1)},onConfirm:m=>{y(m);const v=h.value??new Date;e.valueFormat?n("update:modelValue",ro(e,v,e.valueFormat)):n("update:modelValue",v),n("confirm",m)},onClear:()=>{n("clear")},onUpdateVisible:m=>{a.value=m,n("update:visible",m)}}}});function Xf(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,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,"onUpdate:visible":e.onUpdateVisible,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"top")]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}var Gn=le(Yf,[["render",Xf]]),Qf={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Gf(e){let n=e.format;return n||(n=ao[e.type??"date"]),n}function Zf(e,n,o,l,a,r,s=!1){return{props:{...ge,...be,...io,...Qf},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const u=$e((0,t.computed)(()=>i.disabled)),p=Te((0,t.computed)(()=>i.readonly)),{emitEvent:d}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=(0,ce.useFoxI18n)(n),y=h(i,["placeholder"]),C=(0,t.ref)(!1),g=Me(i,"modelValue",F=>F==null?null:typeof F=="string"?F.length==0?null:i.valueFormat?Qn(i,F,i.valueFormat)??F:Qn(i,F,ao[i.type])??F:je(F)?F:null,d),f=(0,t.computed)(()=>{if(!g.value)return"";const F=Gf(i);return ro(i,g.value,F)}),w="fox-input-item",m=(0,t.computed)(()=>({[w]:!0,"is-disabled":u.value,"is-readonly":p.value})),v=Ve((0,t.computed)(()=>i.textAlign),"textAlign"),N=(0,t.computed)(()=>{const F={};return v.value&&(F["text-align"]=v.value),F}),k=(0,t.ref)(!1),S=()=>{k.value=!0},A=()=>{k.value=!1};c.expose({showPicker:S,hidePicker:A});const V=F=>{k.value=F},E=F=>{if(g.value=F,i.valueFormat){let U=ro(i,F,i.valueFormat);d("update:modelValue",U,{}),d("change",U,{})}else d("update:modelValue",F,{}),d("change",F,{})},$=F=>{let U=F.target.value;C.value=!0,d("focus",U,F)},_=F=>{setTimeout(()=>{C.value=!1},0);let U=F.target.value;i.maxLength&&U.length>Number(i.maxLength)&&(U=U.slice(0,Number(i.maxLength))),d("blur",U,F)},J=(0,t.computed)(()=>({[`${w}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),D=(0,t.computed)(()=>Se(i.unit)>0),T=(0,t.computed)(()=>Se(i.unit)>0&&!C.value),P=(0,t.computed)(()=>({hidden:!T.value})),q=F=>{g.value="",d("update:modelValue","",F),d("change","",F),d("clear",""),A()},O=(0,t.computed)(()=>i.clearable&&!u.value&&!p.value),R=(0,t.computed)(()=>{let F=Se(g.value)>0;return i.clearable&&F&&C.value}),x=F=>{R.value?q(F):S()},Q=(0,t.computed)(()=>R.value&&O.value?l:a),ne=(0,t.computed)(()=>({action:!0}));return()=>{const F={class:m.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:S,onFocus:$,onBlur:_};s&&(F.disabled=!0);const U=[],z=(0,t.h)("input",F);U.push(z);const X=[],K=(0,t.h)(Q.value,{class:["action-icon"]}),H=(0,t.h)("view",{class:ne.value,onClick:x},{default:()=>[K]});if(X.push(H),D.value){const I=(0,t.h)("view",{class:P.value},[i.unit]);X.push(I)}const ee=(0,t.h)("view",{class:J.value},{default:()=>X});U.push(ee);const Y={default:()=>U};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 te=ye(i,io);te.valueFormat=null,te.disabled=!1,te.readonly=u.value||p.value,te.visible=k.value,te["onUpdate:visible"]=V,te.modelValue=g.value,te["onUpdate:modelValue"]=E,te.onClear=q;const L={};if(c.slots.top){const I=c.slots.top();L.top=()=>I}if(c.slots.bottom){const I=c.slots.bottom();L.default=()=>I}const W=(0,t.h)(r,te,L);Y.hide=()=>[W];const M={...ye(i,be,ge)};return i.prop&&(M.prop=`${i.prop}_item`),(0,t.h)(o,M,Y)}}}}var{create:Jf,componentName:em,scope:tm}=G("date-item"),nm=Jf(Zf(em,tm,Ne,oe.CircleClose,oe.Date,Gn,!1)),so=nm,{create:lm,scope:om}=G("calendar-pane"),am=lm({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:ie.getDay(0)},endDate:{type:String,default:ie.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l,t:a}=(0,ce.useFoxI18n)(om),r=l(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(a("weekdays")),i=(0,t.ref)([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=(0,t.ref)(null),u=(0,t.ref)(null),p=(0,t.ref)(null),d=(0,t.ref)(null),h=(0,t.ref)(0),y=(0,t.computed)(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),C=(0,t.computed)(()=>o.btn),b=(0,t.computed)(()=>o["top-info"]),g=(0,t.computed)(()=>o["bottom-info"]),f=(0,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}),w=K=>K.split("-"),m=K=>ie.isEqual(f.currDate[0],K),v=K=>ie.isEqual(f.currDate[1],K),N=K=>f.currDate?.length>0?f.currDate?.some(H=>ie.isEqual(H,K)):!1,k=(K,H)=>H.curData[0]+"-"+H.curData[1]+"-"+ie.getNumTwoBit(+K.day),S=(K,H)=>{const ee=k(K,H),{type:Y}=e;return K.type=="curr"?ie.isEqual(f.currDate,ee)||(Y=="range"||Y=="week")&&(m(ee)||v(ee))||Y=="multiple"&&N(ee)?`${f.dayPrefix}--active`:f.propStartDate&&ie.compareDate(ee,f.propStartDate)||f.propEndDate&&ie.compareDate(f.propEndDate,ee)?`${f.dayPrefix}--disabled`:(Y=="range"||Y=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ie.compareDate(f.currDate[0],ee)&&ie.compareDate(ee,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},A=()=>{const{type:K}=e;if(K=="range"&&f.chooseData.length==2||K!="range"){let H=f.chooseData.slice(0);K=="week"&&(H={weekDate:[E(f.chooseData[0]),E(f.chooseData[1])]}),n("choose",H),e.poppable&&n("update")}},V=(K,H,ee=!1)=>{if(S(K,H)!=`${f.dayPrefix}--disabled`){const{type:Y}=e;let[te,L]=H.curData,W=[...H.curData];if(W[2]=ie.getNumTwoBit(Number(K.day)),W[3]=`${W[0]}-${W[1]}-${W[2]}`,W[4]=ie.getWhatDay(+W[0],+W[1],+W[2]),Y=="multiple")if(f.currDate?.length>0){let M;f.currDate?.forEach((I,j)=>{I==W[3]&&(M=j)}),ee?f.chooseData.push([...W]):M!==void 0?(f.currDate.splice(M,1),f.chooseData.splice(M,1)):(f.currDate.push(W[3]),f.chooseData.push([...W]))}else f.currDate=[W[3]],f.chooseData=[[...W]];else if(Y=="range"){let M=Object.values(f.currDate).length;M==2||M==0?f.currDate=[W[3]]:ie.compareDate(f.currDate[0],W[3])?Array.isArray(f.currDate)&&f.currDate.push(W[3]):Array.isArray(f.currDate)&&f.currDate.unshift(W[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...W]]:ie.compareDate(f.chooseData[0][3],W[3])?f.chooseData=[...f.chooseData,[...W]]:f.chooseData=[[...W],...f.chooseData]}else if(Y=="week"){let M=ie.getWeekDate(te,L,K.day,e.firstDayOfWeek);f.propStartDate&&ie.compareDate(M[0],f.propStartDate)&&M.splice(0,1,f.propStartDate),f.propEndDate&&ie.compareDate(f.propEndDate,M[1])&&M.splice(1,1,f.propEndDate),f.currDate=M,f.chooseData=[ie.formatResultDate(M[0]),ie.formatResultDate(M[1])]}else f.currDate=W[3],f.chooseData=[...W];if(!ee){let M=f.chooseData;Y=="week"&&(M={weekDate:[E(f.chooseData[0]),E(f.chooseData[1])]}),n("select",M),(e.isAutoBackFill||!e.poppable)&&A()}}},E=K=>{let[H,ee,Y]=K;return{date:K,monthWeekNum:ie.getMonthWeek(H,ee,Y,e.firstDayOfWeek),yearWeekNum:ie.getYearWeek(H,ee,Y,e.firstDayOfWeek)}},$=K=>{const H=K=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let ee=parseInt(H.curData[0]),Y=parseInt(H.curData[1].toString().replace(/^0/,""));switch(K){case"prev":Y==1&&(ee-=1),Y=Y==1?12:--Y;break;case"next":Y==12&&(ee+=1),Y=Y==12?1:++Y;break}return[ee+"",ie.getNumTwoBit(Y),ie.getMonthDays(String(ee),String(Y))+""]},_=(K,H,ee)=>{let{year:Y,month:te}=ee;return H=="prev"&&K>=7&&(K-=7),Array.from(Array(K),(L,W)=>({day:String(W+1),type:H,year:Y,month:te}))},J=(K,H,ee,Y)=>{K=K-e.firstDayOfWeek;let{year:te,month:L}=ee;return H=="prev"&&K>=7&&(K-=7),Array.from(Array(Y),(W,M)=>({day:String(M+1),type:H,year:te,month:L})).slice(Y-K)},D=(K,H)=>{const ee=ie.getMonthPreDay(+K[0],+K[1]);let Y=Number(K[1])-1,te=Number(K[0]);Y<=0&&(Y=12,te+=1);const L=ie.getMonthDays(String(K[0]),String(K[1])),W=ie.getMonthDays(te+"",Y+""),M={year:K[0],month:K[1]},I={curData:K,title:a("monthTitle",{year:M.year,month:M.month}),monthData:[...J(ee,"prev",{month:String(Y),year:String(te)},W),..._(L,"curr",M)],cssHeight:0,cssScrollHeight:0};I.cssHeight=39+64*(I.monthData.length>35?6:5);let j=0;f.monthsData.length>0&&(j=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),I.cssScrollHeight=j,H=="next"?(!f.endData||!ie.compareDate(`${f.endData[0]}-${f.endData[1]}-${ie.getMonthDays(f.endData[0],f.endData[1])}`,`${K[0]}-${K[1]}-${K[2]}`))&&f.monthsData.push(I):!f.startData||!ie.compareDate(`${K[0]}-${K[1]}-${K[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(I):f.unLoadPrev=!0},T=()=>{let K=e.startDate?e.startDate:ie.getDay(0),H=e.endDate?e.endDate:ie.getDay(365);f.propStartDate=K,f.propEndDate=H,f.startData=w(K),f.endData=w(H),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const ee={year:Number(f.startData[0]),month:Number(f.startData[1])},Y={year:Number(f.endData[0]),month:Number(f.endData[1])};let te=Y.month-ee.month;Y.year-ee.year>0&&(te=te+12*(Y.year-ee.year)),te<=0&&(te=1),D(f.startData,"next");let L=1;do D($("next"),"next");while(L++<te);if(f.monthsNum=te,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(K&&ie.compareDate(f.currDate[0],K)&&f.currDate.splice(0,1,K),H&&ie.compareDate(H,f.currDate[1])&&f.currDate.splice(1,1,H),f.defaultData=[...w(f.currDate[0]),...w(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let W=[],M={};f.currDate.forEach(I=>{K&&!ie.compareDate(I,K)&&H&&!ie.compareDate(H,I)&&(Object.hasOwnProperty.call(M,I)||(W.push(I),M[I]=I))}),f.currDate=[...W],f.defaultData=[...w(W[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[W,M,I]=w(f.currDate[0]);f.currDate=ie.getWeekDate(W,M,I,e.firstDayOfWeek),K&&ie.compareDate(f.currDate[0],K)&&f.currDate.splice(0,1,K),H&&ie.compareDate(H,f.currDate[1])&&f.currDate.splice(1,1,H),f.defaultData=[...w(f.currDate[0]),...w(f.currDate[1])]}}else f.currDate&&(K&&ie.compareDate(f.currDate,K)?f.currDate=K:H&&!ie.compareDate(f.currDate,H)&&(f.currDate=H),f.defaultData=[...w(f.currDate)])};Ee({scrollToDate:K=>{ie.compareDate(K,f.propStartDate)?K=f.propStartDate:ie.compareDate(K,f.propEndDate)||(K=f.propEndDate);let H=w(K);f.monthsData.forEach((ee,Y)=>{if(ee.title==a("monthTitle",{year:H[0],month:H[1]})&&c.value){let te=f.monthsData[Y].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let L=0,W=setInterval(()=>{if(L++,c.value){let M=te/10;c.value.scrollTop=c.value.scrollTop+M}L>=10&&(clearInterval(W),c.value&&(c.value.scrollTop=f.monthsData[Y].cssScrollHeight))},40)}else c.value.scrollTop=f.monthsData[Y].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let K=0,H=0;f.defaultData.length>0&&f.monthsData.forEach((te,L)=>{te.title==a("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(K=L),(e.type=="range"||e.type=="week")&&te.title==a("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(H=L)}),R(f.monthsNum,K),f.currentIndex=K,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(V({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),V({day:f.defaultData[5],type:"curr"},f.monthsData[H],!0)):e.type=="week"?V({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(te=>{let L=w(te),W=f.currentIndex;f.monthsData.forEach((M,I)=>{M.title==a("monthTitle",{year:L[0],month:L[1]})&&(W=I)}),V({day:L[2],type:"curr"},f.monthsData[W],!0)}):V({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let ee=f.monthsData[f.monthsData.length-1],Y=ee.cssHeight+ee.cssScrollHeight;Xe(()=>{c?.value&&u?.value&&d?.value&&(h.value=c.value.clientHeight,u.value.style.height=`${Y}px`,c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(Y/(f.monthsNum+1))}});const R=(K,H)=>{K>=3?H>0&&H<K?f.defaultRange=[H-1,H+3]:H==0?f.defaultRange=[H,H+4]:H==K&&(f.defaultRange=[H-2,H+2]):f.defaultRange=[0,K+2],f.translateY=f.monthsData[f.defaultRange[0]].cssScrollHeight},x=(K,H)=>(e.type=="range"||e.type=="week")&&K.type=="curr"&&S(K,H)=="fox-calendar__day--active",Q=(K,H)=>x(K,H)&&m(k(K,H)),ne=(K,H)=>f.currDate.length>=2&&v(k(K,H))?x(K,H):!1,F=()=>{if(f.currDate.length>=2)return ie.isEqual(f.currDate[0],f.currDate[1])},U=K=>{const H=`${K.year}-${K.month}-${Number(K.day)<10?"0"+K.day:K.day}`;return ie.isEqual(H,ie.date2Str(new Date))},z=K=>{if(f.monthsData.length<=1)return;const H=K.target.scrollTop;let ee=Math.floor(H/f.avgHeight);if(ee==0)H>=f.monthsData[ee+1].cssScrollHeight&&(ee+=1);else if(ee>0&&ee<f.monthsNum-1)H>=f.monthsData[ee+1].cssScrollHeight&&(ee+=1),H<f.monthsData[ee].cssScrollHeight&&(ee-=1);else{const Y=Math.round(H+h.value);Y<f.monthsData[ee].cssScrollHeight+f.monthsData[ee].cssHeight&&H>f.monthsData[ee-1].cssScrollHeight&&(ee-=1),ee+1<=f.monthsNum&&Y>=f.monthsData[ee+1].cssScrollHeight+f.monthsData[ee+1].cssHeight&&(ee+=1),ee>=1&&H<f.monthsData[ee-1].cssScrollHeight&&(ee-=1)}f.currentIndex!==ee&&(f.currentIndex=ee,R(f.monthsNum,ee)),f.yearMonthTitle=f.monthsData[ee].title},X=()=>{f.chooseData.splice(0),f.monthsData.splice(0),T()};return T(),(0,t.watch)(()=>e.defaultValue,K=>{K&&e.poppable&&X()}),{weeks:i,compConthsData:y,showTopBtn:C,topInfo:b,bottomInfo:g,rangeTip:F,mothsViewScroll:z,getClass:S,isStartTip:Q,isEndTip:ne,chooseDay:V,isCurrDay:U,confirm:A,months:c,...(0,t.toRefs)(f),...(0,t.toRefs)(e),...r,monthsPanel:u,weeksPanel:p,viewArea:d}}}),rm={class:"fox-calendar__header"},im={key:0,class:"fox-calendar__header-title"},sm={key:1,class:"fox-calendar__header-slot"},cm={key:2,class:"fox-calendar__header-subtitle"},dm={class:"fox-calendar__weekdays",ref:"weeksPanel"},um={class:"fox-calendar__panel",ref:"monthsPanel"},fm={class:"fox-calendar__month-title"},mm={class:"fox-calendar__days"},pm=["onClick"],hm={class:"fox-calendar__day-value"},gm={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},ym={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},bm={key:2,class:"fox-calendar__day-tips--curr"},km={key:4,class:"fox-calendar__day-tip"},Sm={key:0,class:"fox-calendar__footer"};function wm(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[(0,t.createElementVNode)("view",rm,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",im,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",sm,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",cm,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",dm,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.weeks,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:i},(0,t.toDisplayString)(s),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[(0,t.createElementVNode)("view",um,[(0,t.createElementVNode)("view",{class:"fox-calendar__body",ref:"viewArea",style:(0,t.normalizeStyle)({transform:`translateY(${e.translateY}px)`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.compConthsData,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:i},[(0,t.createElementVNode)("view",fm,(0,t.toDisplayString)(s.title),1),(0,t.createElementVNode)("view",mm,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.monthData,(c,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(c,s)]),onClick:p=>e.chooseDay(c,s)},[(0,t.createElementVNode)("view",hm,[(0,t.renderSlot)(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(c.type=="curr"?c.day:""),1)])]),e.topInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",gm,[(0,t.renderSlot)(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):(0,t.createCommentVNode)("",!0),e.bottomInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",ym,[(0,t.renderSlot)(e.$slots,"bottom-info",{date:c.type=="curr"?c:""})])):(0,t.createCommentVNode)("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?((0,t.openBlock)(),(0,t.createElementBlock)("view",bm,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(c,s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:3,class:(0,t.normalizeClass)(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},(0,t.toDisplayString)(e.startText),3)):(0,t.createCommentVNode)("",!0),e.isEndTip(c,s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",km,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,pm))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",Sm,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var Cm=le(am,[["render",wm]]),vm=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-calender__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(pe,Ge({...e},{poppable:!1}),n):n?.default?.()??null}}),Nm=vm,Bm=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Zn={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:Am}=G("calendar"),Vm=Am({components:{Wrapper:Nm,CalendarPane:Cm},props:{...Zn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o}){const l=(0,t.computed)(()=>o.btn),a=(0,t.computed)(()=>o["top-info"]),r=(0,t.computed)(()=>o.day),s=(0,t.computed)(()=>o["bottom-info"]),i=(0,t.ref)(null),c=b=>{i.value?.scrollToDate(b)},u=()=>{i.value?.initPosition()};(0,t.watch)(()=>e.visible,b=>{b&&(0,t.nextTick)(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Ee({scrollToDate:c,initPosition:u});const p=()=>{n("update:visible",!1)},d=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{d()},update:p,close:d,select:b=>{n("select",b)},choose:b=>{d(),n("choose",b)},calendarRef:i,showTopBtn:l,topInfo:a,dayInfo:r,bottomInfo:s}}});function Tm(e,n,o,l,a,r){const s=(0,t.resolveComponent)("CalendarPane"),i=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(i,(0,t.mergeProps)({visible:e.visible,position:"bottom","pop-class":"fox-calendar__popup",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,poppable:e.poppable}),{default:(0,t.withCtx)(()=>[(0,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},(0,t.createSlots)({_:2},[e.showTopBtn?{name:"btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:(0,t.withCtx)(c=>[(0,t.renderSlot)(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(c=>[(0,t.renderSlot)(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(c=>[(0,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","poppable"])}var Jn=le(Vm,[["render",Tm]]),wi={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}},co=(e,n)=>{let o;return je(e)?o=e:typeof e=="string"&&Se(e)>0?o=ie.parser(e,n):o=new Date,o},vt=(e,n,o)=>(je(n)||(n=new Date),ie.format(n,o)),Nt=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,ie.date2Str(e),ie.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())];function $m(e,n,o,l,{CloseIcon:a,MarkIcon:r},s=!1){return{props:{...ge,...be,...Zn,...wi},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const u=$e((0,t.computed)(()=>i.disabled)),p=Te((0,t.computed)(()=>i.readonly)),{emitEvent:d}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=(0,ce.useFoxI18n)(n),y=h(i,["placeholder"]),C=(0,t.ref)(!1),b=(0,t.computed)(()=>i.type==="range"),g=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),f=()=>{g.startDate!==null&&(g.startDate=null,g.endDate=null,g.startArray=[],g.endArray=[])},w=(z,X="one",K="YYYY-MM-DD")=>{if(Bm(z)){f();return}if(b.value&&Array.isArray(z)&&z.length==2){let H,ee;typeof z[0]=="string"?(H=co(z[0],K),ee=co(z[1],K)):(H=z[0],ee=z[1]);let Y=Nt(H),te=Nt(ee);(g.startDate===null||g.startDate.getTime()!==H.getTime()||g.endDate?.getTime()!==ee.getTime())&&(g.startDate=H,g.startArray=Y,g.endDate=ee,g.endArray=te)}else{let H;typeof z=="string"?H=co(z,K):H=z;let ee=Nt(H);(g.startDate===null||g.startDate.getTime()!==H.getTime())&&(g.startDate=H,g.startArray=ee)}};w(i.modelValue,i.type,i.valueFormat),(0,t.watch)(()=>i.modelValue,z=>{w(z,i.type,i.valueFormat),d("setValue",z)});const m=(0,t.computed)(()=>{if(g.startDate===null)return"";if(b.value){let z=vt(i,g.startDate,i.format),X=vt(i,g.endDate,i.format);return`${z} ${i.rangeSeparator} ${X}`}else{let z=vt(i,g.startDate,i.format);return i.showWeek&&(z=`${z} ${g.startArray[4]}`),z}}),v=(0,t.computed)(()=>g.startDate===null?null:b.value?[ie.date2Str(g.startDate),ie.date2Str(g.endDate??new Date)]:ie.date2Str(g.startDate)),N="fox-input-item",k=(0,t.computed)(()=>({[N]:!0,"is-disabled":u.value,"is-readonly":p.value})),S=Ve((0,t.computed)(()=>i.textAlign),"textAlign"),A=(0,t.computed)(()=>{const z={};return S.value&&(z["text-align"]=S.value),z}),V=(0,t.ref)(!1),E=()=>{p.value||u.value||(V.value=!0)},$=z=>{V.value=z},_=z=>{if(z){if(b.value&&Array.isArray(z)){let X=z[0],K=he(X[0]),H=he(X[1]),ee=he(X[2]),Y=new Date(K,H-1,ee),te=z[1];K=he(te[0]),H=he(te[1]),ee=he(te[2]);let L=new Date(K,H-1,ee);g.startDate=Y,g.startArray=Nt(Y),g.endDate=L,g.endArray=Nt(L),i.valueFormat?d("update:modelValue",[vt(i,Y,i.valueFormat),vt(i,L,i.valueFormat)],{}):d("update:modelValue",[Y,L],{})}else{let X=z,K=he(X[0]),H=he(X[1]),ee=he(X[2]),Y=new Date(K,H-1,ee);g.startDate=Y,g.startArray=Nt(Y),i.valueFormat?d("update:modelValue",vt(i,Y,i.valueFormat),{}):d("update:modelValue",Y,{})}d("change",z,{})}},J=z=>{let X=z.target.value;C.value=!0,d("focus",X,z)},D=z=>{setTimeout(()=>{C.value=!1},0);let X=z.target.value;i.maxLength&&X.length>Number(i.maxLength)&&(X=X.slice(0,Number(i.maxLength))),d("blur",X,z)},T=(0,t.computed)(()=>({[`${N}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),P=(0,t.computed)(()=>Se(i.unit)>0),q=(0,t.computed)(()=>Se(i.unit)>0&&!C.value),O=(0,t.computed)(()=>({hidden:!q.value})),R=z=>{f(),d("update:modelValue",null,z),d("change","",z),d("clear","")},x=(0,t.computed)(()=>i.clearable&&!u.value&&!p.value),Q=(0,t.computed)(()=>{let z=Se(m.value)>0;return i.clearable&&z&&C.value}),ne=z=>{Q.value?R(z):E()},F=(0,t.computed)(()=>Q.value&&x.value?a:r),U=(0,t.computed)(()=>({action:!0}));return()=>{const z={class:k.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:E,onFocus:J,onBlur:D};s&&(z.disabled=!0);const X=[],K=(0,t.h)("input",z);X.push(K);const H=[],ee=(0,t.h)(F.value,{class:["action-icon"]}),Y=(0,t.h)("view",{class:U.value,onClick:ne},{default:()=>[ee]});if(H.push(Y),P.value){const Z=(0,t.h)("view",{class:O.value},[i.unit]);H.push(Z)}const te=(0,t.h)("view",{class:T.value},{default:()=>H});X.push(te);const L={default:()=>X};L.label=c.slots.default,L.prepend=c.slots.prepend,L.append=c.slots.append,L.fixedPreTip=c.slots.fixedPreTip,L.fixedTip=c.slots.fixedTip;const W=ye(i,Zn);W.visible=V.value,W["onUpdate:visible"]=$,W["default-value"]=v.value,W.onChoose=_;const M={};if(c.slots.btn){const Z=c.slots.btn();M.btn=()=>Z}c.slots.day&&(M.day=c.slots.day),c.slots.topInfo&&(M.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(M.bottomInfo=c.slots.bottomInfo);const I=(0,t.h)(o,W,M);L.hide=()=>[I];const j={...Ge(i,Zn,wi)};return i.prop&&(j.prop=`${i.prop}_item`),(0,t.h)(l,j,L)}}}}var{componentName:Em,create:Dm,scope:Im}=G("calendar-item"),qm=Dm($m(Em,Im,Jn,Ne,{CloseIcon:oe.CircleClose,MarkIcon:oe.Date},!1)),uo=qm,Pm={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 xm(e,{CheckNormal:n,Checked:o}){return{props:{...Pm},setup(l,{emit:a,slots:r}){const s=(0,t.inject)("parent",null),i=Dn(),c=(0,t.computed)(()=>s.label.value===l.label),u=(0,t.computed)(()=>s.position),p=()=>{const b=[];if(c.value){if(r.checkedIcon)return r.checkedIcon();{const g=fe(l.iconSize),f=l.checkedIcon??i.radio.Checked??o;return b.push("fox-radio__icon"),l.disabled&&b.push("is-disabled"),l.readonly&&b.push("is-readonly"),(0,t.h)(f,{width:g,height:g,class:b})}}else{if(r.icon)return r.icon();{const g=fe(l.iconSize),f=l.icon??i.radio.CheckNormal??n;return b.push("fox-radio__icon--unchecked"),l.disabled&&b.push("is-disabled"),l.readonly&&b.push("is-readonly"),(0,t.h)(f,{width:g,height:g,class:b})}}},d=()=>{const b=[`${e}__label`];return l.disabled&&b.push("is-disabled"),l.readonly&&b.push("is-readonly"),(0,t.h)("view",{class:b},r.default?.())},h=()=>{const b=[`${e}__button`];return c.value&&b.push(`${e}__button--active`),l.disabled&&b.push("is-disabled"),l.readonly&&b.push("is-readonly"),(0,t.h)("view",{class:b},r.default?.())},y=()=>{c.value||l.disabled||l.readonly||s.updateValue(l.label)},C=u.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${C?`${e}--reverse`:""}`,onClick:y},[l.shape=="button"?h():C?[d(),p()]:[p(),d()]])}}}var{componentName:Mm,create:Lm}=G("radio"),zm=Lm(xm(Mm,{CheckNormal:oe.CheckNormal,Checked:oe.CheckChecked})),el=zm,{componentName:Ci,create:Om}=G("radio-group"),Fm=Om({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:o}=yt(),l=a=>o("update:modelValue",a);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:l}),(0,t.watch)(()=>e.modelValue,a=>o("change",a)),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Ci} ${Ci}--${e.direction}`,style:a},n.default?.())}}}),tl=Fm;function vi(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(nl(e,r)===o)return a}else if(l==="item"){if(Ie(o,r))return a}else if(Yt(e,r)===o)return a}return-1}function nl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Yt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Rm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Km(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var Um=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=et(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(De(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function Hm(){return new Um((0,t.getCurrentInstance)().proxy)}function _m(e){return{text:e,value:e}}var Ni={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},Wm={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},jm={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 Ym(e,n,o,l,a){return{props:{...ge,...be,...Ni,...Wm,...jm},emits:["change","update:modelValue","setValue"],setup(r,s){const i=Te((0,t.computed)(()=>r.readonly)),c=$e((0,t.computed)(()=>r.disabled)),u=Ve((0,t.computed)(()=>r.textAlign),"textAlign"),{emitEvent:p}=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),d=Hm(),h=(0,t.ref)([]);(0,t.watch)([()=>r.source,()=>r.params],async([f,w])=>{if(f){const m=await d.load("radio",f,w);m.length>0?typeof m[0]=="string"?h.value=m.map(v=>_m(v)):h.value=m:h.value=[]}},{immediate:!0});let y=(0,t.ref)(-1);(0,t.watch)([()=>r.modelValue,()=>h.value],async([f,w])=>{y.value=vi(r,w,f,r.valueType),p("setValue",f)},{deep:!0});const C=(0,t.computed)(()=>{if(!r.source)return r.modelValue;if(y.value===-1)return null;const f=h.value[y.value];return Yt(r,f)}),b=f=>{let w=null,m=null;if(h.value.length>0){let v=vi(r,h.value,f,"value");y.value=v,v>=0&&(m=h.value[v],r.valueType==="text"?w=nl(r,m):r.valueType==="item"?w=m:w=Yt(r,m))}else w=f;p("update:modelValue",w),p("change",w,m)},g=()=>{let f=null,w=null;if(h.value.length>0&&y.value!==-1){let m=h.value[y.value];r.valueType==="text"?f=nl(r,m):r.valueType==="item"?f=m:f=Yt(r,m)}p("update:modelValue",f),p("change",f,w)};if(Ee({clear(){y.value!==-1&&(y.value=-1,g())}}),r.source){const f=()=>{const w=[],m=ye(r,Ni);return h.value.forEach((v,N)=>{const k=Yt(r,v),S=Rm(r,v);let A={...m,label:k,disabled:S};const V=Km(r,v,N);A={...A,...V},c.value&&(A.disabled=!0),i.value&&(A.readonly=!0);const E={};if(s.slots.icon&&(E.icon=s.slots.icon),s.slots.checkedIcon&&(E.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const _=s.slots.text(v);E.default=()=>[_]}else{const _=nl(r,v);E.default=()=>_}let $=(0,t.h)(a,A,E);w.push($)}),w};return()=>{const w=f(),m=(0,t.h)(l,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:C,"onUpdate:modelValue":b},{default:()=>w}),v={default:()=>m};v.label=s.slots.default,v.prepend=s.slots.prepend,v.append=s.slots.append,v.fixedPreTip=s.slots.fixedPreTip,v.fixedTip=s.slots.fixedTip;const N={...ye(r,be,ge)};return r.prop&&(N.prop=`${r.prop}_item`),(0,t.h)(o,N,v)}}else return()=>{const f=s.slots.options?.()??[];return(0,t.h)(l,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:C,"update:modelValue":b},{default:()=>f})}}}}var{componentName:Xm,create:Qm,scope:Gm}=G("radio-item"),Zm=Qm(Ym(Xm,Gm,Ne,tl,el)),fo=Zm,Jm=(e,{CheckNormal:n,Checked:o,Indeterminate:l})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(a,{slots:r}){const{emitEvent:s}=yt(),i=Dn(),c=(0,t.inject)("parent",null),u=(0,t.reactive)({partialSelect:a.indeterminate});(0,t.watch)(()=>a.indeterminate,m=>{u.partialSelect=m});const p=(0,t.computed)(()=>!!c),d=(0,t.computed)(()=>p.value?c.value.value.includes(a.label):!!a.modelValue),h=(0,t.computed)(()=>p.value?c.position:a.textPosition);let y="";const C=(m,v)=>{y="click",s("update:modelValue",m),s("change",m,v)};(0,t.watch)(()=>a.modelValue,m=>{y=="click"?y="":s("change",m)});const b=()=>{const m=[];if(u.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const v=fe(a.iconSize),N=a.indeterminateIcon??i.checkbox.Indeterminate??l;return m.push("fox-checkbox__icon--indeterminate"),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)(N,{width:v,height:v,class:m})}}else if(d.value){if(r.checkedIcon)return r.checkedIcon();{const v=fe(a.iconSize),N=a.checkedIcon??i.checkbox.Checked??o;return m.push("fox-checkbox__icon"),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)(N,{width:v,height:v,class:m})}}else{if(r.icon)return r.icon();{const v=fe(a.iconSize),N=a.icon??i.checkbox.CheckNormal??n;return m.push("fox-checkbox__icon--unchecked"),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)(N,{width:v,height:v,class:m})}}},g=()=>{const m=[`${e}__label`];return a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)("view",{class:m},r.default?.())},f=()=>{const m=[`${e}__button`];return d.value&&m.push(`${e}__button--active`),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)("view",{class:m},r.default?.())},w=m=>{if(!(a.disabled||a.readonly)){if(d.value&&u.partialSelect){u.partialSelect=!1,C(d.value,r.default?.()[0].children);return}if(C(!d.value,r.default?.()[0].children),p.value){const v=c.value.value,N=c.max.value,{label:k}=a,S=v.indexOf(k);S>-1?v.splice(S,1):S<=-1&&(v.length<N||!N)&&v.push(k),c.updateValue(v)}}};return(0,t.onMounted)(()=>{p.value&&c.link((0,t.getCurrentInstance)())}),(0,t.onBeforeUnmount)(()=>{p.value&&c.unlink((0,t.getCurrentInstance)())}),()=>(0,t.h)("view",{class:`${e} ${e}--${a.shape} ${h.value==="left"?`${e}--reverse`:""}`,onClick:w},[a.shape=="button"?f():[b(),g()]])}}),{componentName:e0,create:t0}=G("checkbox"),n0=t0(Jm(e0,{CheckNormal:oe.CheckNormal,Checked:oe.Checked,Indeterminate:oe.CheckDisabled})),ll=n0,{create:l0,componentName:Bi}=G("checkbox-group"),o0=l0({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:o}=yt(),l=(0,t.reactive)({children:[]}),a=u=>{u.proxy&&l.children.push(u.proxy)},r=u=>{u.proxy&&(l.children=l.children.filter(p=>p!==u.proxy))},s=u=>{o("update:modelValue",u),o("change",u)},i=u=>{const p=[];u&&l.children.forEach(d=>{d?.disabled||p.push(d?.label)}),o("update:modelValue",p)},c=()=>{o("update:modelValue",l.children.filter(u=>u?.disabled?!1:!e.modelValue.includes(u.label)).map(u=>u.label))};return(0,t.provide)("parent",{value:(0,t.computed)(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:(0,t.computed)(()=>e.max),updateValue:s,link:a,unlink:r}),(0,t.watch)(()=>e.modelValue,u=>{o("change",u)}),Ee({toggleAll:i,toggleReverse:c}),()=>{const u={};return e.textAlign&&(u["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Bi} ${Bi}--${e.direction}`,style:u},n.default?.())}}}),ol=o0;function Ai(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(mo(e,r)===o)return a}else if(l==="item"){if(Ie(o,r))return a}else if(al(e,r)===o)return a}return-1}function mo(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function al(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function a0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function r0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var i0=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=et(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(De(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function s0(){return new i0((0,t.getCurrentInstance)().proxy)}function c0(e){return{text:e,value:e}}var d0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Vi={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},u0={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 f0(e,n,o,l,a){return{props:{...ge,...be,...d0,...Vi,...u0},emits:["change","update:modelValue","setValue"],setup(r,s){const i=$e((0,t.computed)(()=>r.disabled)),c=Te((0,t.computed)(()=>r.readonly)),u=Ve((0,t.computed)(()=>r.textAlign),"textAlign"),{emitEvent:p}=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),d=s0(),h=(0,t.ref)([]);(0,t.watch)([()=>r.source,()=>r.params],async([f,w])=>{if(f){const m=await d.load("checkbox",f,w);m.length>0?typeof m[0]=="string"?h.value=m.map(v=>c0(v)):h.value=m:h.value=[]}},{immediate:!0});const y=(0,t.ref)([]);(0,t.watch)([()=>r.modelValue,()=>h.value],async([f,w])=>{const m=[];Array.isArray(f)&&f.forEach(v=>{let N=Ai(r,w,v,r.valueType);N!==-1&&m.push(N)}),!Ie(m,y.value)&&(y.value=m,p("setValue",m))},{deep:!0});const C=(0,t.computed)(()=>{if(!r.source)return r.modelValue;let f=[];return y.value.forEach(w=>{let m=h.value[w];f.push(al(r,m))}),f}),b=f=>{let w=[],m=[];if(h.value.length>0){const v=[];Array.isArray(f)&&f.forEach(N=>{let k=Ai(r,h.value,N,"value");k!==-1&&v.push(k);const S=h.value[k];m.push(S),r.valueType==="text"?w.push(mo(r,S)):r.valueType==="item"?w.push(S):w.push(al(r,S))}),y.value=v}else w=f;p("update:modelValue",w),p("change",w,m)},g=(0,t.ref)();if(Ee({toggleAll:f=>{g.value.toggleAll(f)},toggleReverse:()=>{g.value.toggleReverse()}}),r.source){const f=()=>{const w=[],m=ye(r,Vi);return h.value.forEach((v,N)=>{const k=al(r,v),S=a0(r,v);let A={...m,label:k,disabled:S};const V=r0(r,v,N);A={...A,...V},i.value&&(A.disabled=!0),c.value&&(A.readonly=!0);const E={};if(s.slots.icon&&(E.icon=s.slots.icon),s.slots.checkedIcon&&(E.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(E.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const _=s.slots.text(v);E.default=()=>[_]}else{const _=mo(r,v);E.default=()=>_}let $=(0,t.h)(a,A,E);w.push($)}),w};return()=>{const w=f(),m=(0,t.h)(l,{class:`${e}`,ref:g,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:C.value,"onUpdate:modelValue":b},{default:()=>w}),v={default:()=>m};v.label=s.slots.default,v.prepend=s.slots.prepend,v.append=s.slots.append,v.fixedPreTip=s.slots.fixedPreTip,v.fixedTip=s.slots.fixedTip;const N={...ye(r,be,ge)};return r.prop&&(N.prop=`${r.prop}_item`),(0,t.h)(o,N,v)}}else return()=>{const f=s.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:g,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:u.value,modelValue:C,"onUpdate:modelValue":b},{default:()=>f})}}}}var{componentName:m0,create:p0,scope:h0}=G("checkbox-item"),g0=p0(f0(m0,h0,Ne,ol,ll)),po=g0,ho={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:y0,create:b0}=G("switch"),k0=b0({components:{Loading1:oe.Loading1},props:{...ho},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const o=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const i=y0;return{[i]:!0,[o.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-base`]:!0,"is-disabled":e.disabled}}),a=(0,t.computed)(()=>({backgroundColor:o.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disabled||e.loading)return;r="click";const c=o.value?e.inactiveValue:e.activeValue;n("update:modelValue",c),n("change",c,i)};return(0,t.watch)(()=>e.modelValue,i=>{r=="click"?r="":n("change",i)}),{classes:l,style:a,isActive:o,onClick:s}}}),S0={class:"fox-switch-button"};function w0(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",S0,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(s,{name:"loading",color:e.activeColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.activeText?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label open"},(0,t.toDisplayString)(e.activeText),513),[[t.vShow,e.isActive]]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label close"},(0,t.toDisplayString)(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):(0,t.createCommentVNode)("",!0)])],6)}var rl=le(k0,[["render",w0]]);function C0(e,n,o,l){return{props:{...ge,...be,...ho},emits:["change","update:modelValue","setValue"],setup(a,r){const s=$e((0,t.computed)(()=>a.disabled)),i=Te((0,t.computed)(()=>a.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),u=e,p=Me(a,"modelValue",null,c),d=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const h={...ye(a,ho),disabled:s.value||i.value,value:p.value,"onUpdate:modelValue":d},y=[],C=(0,t.h)(l,h);y.push(C);const b={default:()=>y};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const g={...ye(a,be,ge)};return a.prop&&(g.prop=`${a.prop}_item`),g["content-class"]=u,(0,t.h)(o,g,b)}}}}var{componentName:v0,create:N0,scope:B0}=G("switch-item"),A0=N0(C0(v0,B0,Ne,rl)),go=A0;function V0(e,n,o,l){return{props:{...ge,...be,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(a,r){const s=$e((0,t.computed)(()=>a.disabled)),i=Te((0,t.computed)(()=>a.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),{toLocaleRefs:u}=(0,ce.useFoxI18n)(n),p=u(a,["placeholder"]),d=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,_=>{d.value=_,c("change",_)});const h=(0,t.computed)(()=>({[`${e}`]:!0})),y=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&de(d.value),"is-disabled":s.value,"is-readonly":i.value})),C=Ve((0,t.computed)(()=>a.textAlign),"textAlign"),b=(0,t.computed)(()=>{const _={};return C.value&&(_["text-align"]=C.value),_}),g=(0,t.computed)(()=>!de(a.modelValue)||r.slots.main?!0:!!de(a.desc)),f=(0,t.computed)(()=>de(d.value)?p.placeholder.value:d.value),w=(0,t.computed)(()=>!de(a.desc)||r.slots.sub),m=(0,t.computed)(()=>({[`${e}__sub`]:!0})),v=(0,t.computed)(()=>{const _={};return C.value&&(_["text-align"]=C.value),_}),N=()=>{c("focus",d.value)},k=()=>{c("blur",d.value)},S=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),A=(0,t.computed)(()=>Se(a.unit)>0),V=_=>{s.value==!0||i.value==!0||c("click")},E=(0,t.computed)(()=>a.icon??o),$=(0,t.computed)(()=>({action:!0}));return()=>{const _=[];if(typeof r.slots.content=="function"){const x=r.slots.content();_.push(x)}else{const x=[];if(g.value){const ne={tabIndex:0,class:y.value,style:b.value,onFocus:N,onBlur:k};let F=null;r.slots.main?F=(0,t.h)("view",ne,[r.slots.main(f.value)]):F=(0,t.h)("view",ne,[f.value]),x.push(F)}if(w.value){const ne={tabIndex:0,class:m.value,style:v.value,onFocus:N,onBlur:k};let F=null;r.slots.sub?F=(0,t.h)("view",ne,[r.slots.sub(a.desc)]):F=(0,t.h)("view",ne,[a.desc]),x.push(F)}const Q=(0,t.h)("view",{class:h.value,onClick:V},x);_.push(Q)}const J=[],D=fe(a.iconSize);let T=r.slots.icon;if(!T){const x={width:D,height:D,class:["action-icon"]};T=(0,t.h)(E.value,x)}const P=(0,t.h)("view",{class:$.value,onClick:V},{default:()=>[T]});if(J.push(P),A.value){const x=(0,t.h)("view",{},[a.unit]);J.push(x)}const q=(0,t.h)("view",{class:S.value},{default:()=>J});_.push(q);const O={default:()=>_};O.label=r.slots.default,O.prepend=r.slots.prepend,O.append=r.slots.append,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const R={...ye(a,be,ge)};return a.prop&&(R.prop=`${a.prop}_item`),(0,t.h)(l,R,O)}}}}var{componentName:T0,create:$0,scope:E0}=G("link-item"),D0=$0(V0(T0,E0,oe.ArrowRight,Ne)),yo=D0,bo={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:I0,componentName:q0}=G("rate"),P0=I0({props:{...bo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)([]),a=(0,t.computed)(()=>({[q0]:!0})),r=y=>{n("update:modelValue",y),n("change",y)},s=(y,C)=>{if(e.disabled||e.readonly)return;let b=0;C===1&&e.modelValue===C||(b=C,e.allowHalf&&y==2&&(b-=.5)),r(b)},i=(y,C,b)=>{let g=0;for(let f=C.value.length-1;f>=0;f--){const w=C.value[f];if(y>w.offsetLeft){b?g=f+(y>w.offsetLeft+w.clientWidth/2?1:.5):g=f+1;break}}return g},c=nt(),u={onTouchStart(y){!e.touchable||e.readonly||c.start(y)},onTouchMove(y){e.touchable&&(c.move(y),c.isHorizontal()&&l.value&&(y.preventDefault(),r(i(c.moveX.value,l,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),d=(0,t.computed)(()=>e.customIcon??oe.StarFillN);return{classes:a,...u,onClick:s,toPxString:ue,renderIcon:(y,C)=>(0,t.h)(y,C),rateRefs:l,refRandomId:p,slots:o,customIcon:d}}}),x0=["id"],M0={class:"fox-rate-item__icon--full"},L0={key:0,class:"fox-rate-item__icon--half"},z0={key:1,class:"fox-rate-item__icon--half"};function O0(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,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))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),s=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:s,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+s,style:(0,t.normalizeStyle)(s<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("view",M0,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,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?((0,t.openBlock)(),(0,t.createElementBlock)("view",L0,[((0,t.openBlock)(),(0,t.createBlock)((0,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?((0,t.openBlock)(),(0,t.createElementBlock)("view",z0,[((0,t.openBlock)(),(0,t.createBlock)((0,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"]))])):(0,t.createCommentVNode)("",!0)],12,x0))),128))],34)}var Bt=le(P0,[["render",O0]]);function F0(e,n,o,l){return{props:{...ge,...be,...bo},emits:["change","update:modelValue","setValue"],setup(a,r){const s=$e((0,t.computed)(()=>a.disabled)),i=Te((0,t.computed)(()=>a.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),u=e,p=Me(a,"modelValue",null,c),d=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const h={...ye(a,bo),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":d},y=[],C=(0,t.h)(l,h);y.push(C);const b={default:()=>y};if(r.slots.default){const f=r.slots.default();b.label=()=>f}const g=ye(a,be,ge);return a.prop&&(g.prop=`${a.prop}_item`),g["content-class"]=u,(0,t.h)(o,g,b)}}}}var{componentName:R0,create:K0,scope:U0}=G("rate-item"),H0=K0(F0(R0,U0,Ne,Bt)),ko=H0,_0=/scroll|auto|overlay/i,Ti=window;function W0(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function So(e,n=Ti){let o=e;for(;o&&o!==n&&W0(o);){const{overflowY:l}=window.getComputedStyle(o);if(_0.test(l))return o;o=o.parentNode}return n}function $i(e,n=Ti){const o=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(o.value=So(e.value,n))}),o}var Ei=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,j0={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function Y0(e,n,o){return{props:{...j0},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:s}=(0,ce.useFoxI18n)(n),i=s(l,["pullText","loadText","noMoreText"]),c=(0,t.ref)(),u=$i(c),p=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=(0,t.computed)(()=>({[e]:!0})),h=w=>w?w.offsetTop+h(w.offsetParent):0,y=()=>{let w=0,m=0,v="down";if(u.value==window){const N=Ei();c.value&&(w=h(c.value)+c.value.offsetHeight-N-window.innerHeight),m=N}else{const{scrollHeight:N,clientHeight:k,scrollTop:S}=u.value;w=N-k-S,m=S}return p.beforeScrollTop>m?v="up":v="down",p.beforeScrollTop=m,a("scroll-change",m),w<=l.threshold&&v=="down"},C=()=>{Xe(()=>{if(!y()||!l.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,a("update:modelValue",!0),(0,t.nextTick)(()=>a("load-more"))})},b=()=>{u.value&&u.value.addEventListener("scroll",C,l.useCapture)},g=()=>{u.value&&u.value.removeEventListener("scroll",C,l.useCapture)};(0,t.onMounted)(()=>{b(),l.immediate&&C()}),(0,t.onUnmounted)(()=>{g()});const f=(0,t.ref)(!1);return(0,t.onActivated)(()=>{f.value&&(f.value=!1,b())}),(0,t.onDeactivated)(()=>{f.value=!0,g()}),(0,t.watch)(()=>l.modelValue,w=>{w||(p.isInfiniting=!1)}),()=>{const w=(0,t.h)("view",{class:"fox-infinite__container"},[r?.default?.()]),m=[];if(p.isInfiniting){let N=r?.loading?.()??null;if(!N){let S=r?.loadingIcon?.()??null;S||(S=(0,t.h)(o,{class:["fox-infinite__bottom-box__img"]}));const A=(0,t.h)("view",{class:"fox-infinite__bottom-box__text"},[i.loadText.value]);N=[S,A]}const k=(0,t.h)("view",{class:"fox-infinite__bottom-box"},N);m.push(k)}else if(!l.hasMore){let N=r?.finished?.()??null;N||(N=(0,t.h)("view",{class:"fox-infinite__bottom-tips"},[i.noMoreText.value]),m.push(N))}const v=(0,t.h)("view",{class:"fox-infinite__bottom"},m);return(0,t.h)("view",{class:d.value,ref:c},[w,v])}}}}var{componentName:X0,create:Q0,scope:G0}=G("infinite-loading"),Z0=Q0(Y0(X0,G0,oe.Loading)),il=Z0,{componentName:J0,create:ep}=G("button"),tp=ep({components:{Loading:oe.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:o}){const{type:l,size:a,shape:r,disabled:s,loading:i,color:c,plain:u,block:p}=(0,t.toRefs)(e);return{handleClick:h=>{!i.value&&!s.value&&n("click",h)},classes:(0,t.computed)(()=>{const h=J0;return{[h]:!0,[`${h}--${l.value}`]:l.value,[`${h}--${a.value}`]:a.value,[`${h}--${r.value}`]:r.value,[`${h}--plain`]:u.value,[`${h}--block`]:p.value,[`${h}--disabled`]:s.value,[`${h}--loading`]:i.value}}),getStyle:(0,t.computed)(()=>{const h={};return c?.value&&(u.value?(h.color=c.value,h.background="#fff",c.value?.includes("gradient")||(h.borderColor=c.value)):(h.color="#fff",h.background=c.value)),h})}}}),np={class:"fox-button__wrap"};function lp(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Loading");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[(0,t.createElementVNode)("view",np,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,class:"fox-icon-loading"})):(0,t.createCommentVNode)("",!0),e.$slots.icon&&!e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:1}):(0,t.createCommentVNode)("",!0),e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)({"fox-button__text":e.$slots.icon||e.loading})},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)])],6)}var Oe=le(tp,[["render",lp]]),op={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"}},ap=(e,n,o)=>({props:{...op},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:a}){const{emitEvent:r}=yt(),{toLocaleRefs:s}=(0,ce.useFoxI18n)(n),i=s(l,["placeholder"]),c=(0,t.reactive)({active:!1}),u=(0,t.computed)(()=>({background:l.background})),p=(0,t.computed)(()=>({background:l.inputBackground})),d=V=>{let E=V.target.value;l.maxLength&&E.length>Number(l.maxLength)&&(E=E.slice(0,Number(l.maxLength))),r("update:modelValue",E,V),r("change",E,V)},h=(0,t.ref)({}),y=V=>{let E=V.target.value;c.active=!0,h.value=l.focusStyle,r("focus",E,V)},C=V=>{setTimeout(()=>{c.active=!1},0);let E=V.target.value;l.maxLength&&E.length>Number(l.maxLength)&&(E=E.slice(0,Number(l.maxLength))),h.value={},r("blur",E,V)},b=V=>{r("update:modelValue","",V),r("change","",V),r("clear","")},g=(0,t.computed)(()=>String(l.modelValue).length>0),f=(0,t.computed)(()=>{const V={};return g.value||(V.display="none"),V}),w=V=>{l.autoblur&&S.value?.blur(),(typeof V.cancelable!="boolean"||V.cancelable)&&V.preventDefault(),r("search",l.modelValue)},m=V=>{r("keyup-input",V)},v=V=>{r("click-input",V)},N=V=>{r("click-left-icon",l.modelValue,V)},k=(0,t.computed)(()=>({textAlign:l.inputAlign})),S=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&S.value.focus()});const A=()=>{const V=[];if(a.leftin){const J=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:N},[a.leftin()]);V.push(J)}const E=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:S,style:k.value,type:l.inputType,maxlengt:l.maxLength,placeholder:i.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:v,onInput:d,onFocus:y,onBlur:C,onkeyup:m}),$=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:w},[E]);V.push($);const _=[];if(l.clearable){const J=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:b},[(0,t.h)(a?.clear?.()??l.clearIcon??o)]);_.push(J)}if(a.rightin){const J=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[a.rightin()]);_.push(J)}if(_.length>0){const J=(0,t.h)("view",{class:`${e}__input-inner-right`},_);V.push(J)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...p.value,...h.value}},V)};return()=>{const V=[];if(l.label){const $=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);V.push($)}if(a.leftout){const $=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[a.leftout()]);V.push($)}const E=A();if(V.push(E),a.rightout){const $=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[a.rightout()]);V.push($)}return(0,t.h)("view",{class:`${e}`,style:u.value},V)}}}),{componentName:rp,create:ip,scope:sp}=G("searchbar"),cp=ip(ap(rp,sp,oe.CircleClose)),sl=cp,cl={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]},noMoreText:{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 dp(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(dl(e,r)===o)return a}else if(l==="item"){if(Ie(o,r))return a}else if(Ii(e,r)===o)return a}return-1}function dl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Di(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Ii(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function up(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function fp(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var mp=class{proxy;constructor(e){this.proxy=e}async load(e,n,o,l,a,r,s){if(Array.isArray(n)){let c=n;typeof s=="function"&&(c=c.filter(s));let u=(o-1)*l,p=u+l;p>c.length&&(p=c.length);const d=c.slice(u,p);return{totalSize:c.length,page:d}}if(typeof n=="function")return await Reflect.apply(n,null,[o,l,a,r]);const i=et(this.proxy,e);return i===null?(console.error(`${e} component not found api function`),{totalSize:0,page:[]}):(De(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await Reflect.apply(i,null,[n,o,l,a]))}};function pp(){return new mp((0,t.getCurrentInstance)().proxy)}function hp(e,n,o,l,a,r,s,i,c,u,p){return{props:{...cl},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{slots:h}){const{emitEvent:y}=yt(),{toLocaleRefs:C}=(0,ce.useFoxI18n)(n),b=C(d,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),g=pp(),f=(0,t.ref)([]),w=(0,t.ref)(0),m=(0,t.ref)(""),v=(0,t.shallowRef)(null),N=(0,t.computed)(()=>{const L={};return d.params&&Object.assign(L,d.params),de(m.value)||(L[`${d.searchKey}`]=m.value),v.value&&Object.assign(L,v.value),L});let k=!0;const S=async(L,W,M)=>{try{if(V.value===!1)return;let I=null;de(m.value)||(I=Z=>{const ae=dl(d,Z);if(typeof ae=="string"&&ae.includes(m.value))return!0;const re=Di(d,Z);return!!(typeof re=="string"&&re.includes(m.value))});const j=await g.load("actionsheet",L,W,M,N.value,k,I??void 0);k=!1,Array.isArray(j)?(f.value=j,w.value=1,V.value=!1):!Array.isArray(j.page)||j.page.length===0?(console.warn("[FoxUI] can not load more data"),V.value=!1):(Reflect.apply([].push,f.value,j.page),w.value=Math.ceil(f.value.length/d.pageSize),(j.totalSize&&f.value.length>=j.totalSize||M<j.page.length)&&(V.value=!1)),A.value=!1}catch(I){console.error("[FoxUI] ActionSheet load more data fail",I),V.value=!0,w.value=0,f.value=[]}setTimeout(()=>{y("loaded-data")},250)},A=(0,t.ref)(!1),V=(0,t.ref)(!0),E=async()=>{if(!d.source){A.value=!1;return}await S(d.source,w.value+1,d.pageSize)};let $=null;(0,t.watch)(m,(L,W)=>{$&&(clearTimeout($),$=null),de(L)&&!de(W)&&($=setTimeout(()=>{J()},d.searchDelayTriggerClear))});const _=()=>{V.value=!0,w.value=0,f.value=[],d.source&&E()},J=()=>{_()};(0,t.watch)([()=>d.source,()=>d.pageSize,()=>d.params],async([L,W,M])=>{d.source&&_()},{immediate:!0});const D=(0,t.computed)(()=>!d.multiple&&d.isAutoBackFill),T=(0,t.ref)([]);let P=null;const q=(0,t.ref)(d.visible);(0,t.watch)(()=>d.visible,L=>{q.value!==L&&(q.value=L),L?P=[...T.value]:P=null});const O=(L,W)=>{const M=[];return Array.isArray(L)||(L=[L]),L.forEach(I=>{let j=dp(d,W,I,d.valueType);j!==-1&&M.push(j)}),Ie(M,T.value)?!1:(T.value=M,!0)};(0,t.watch)([()=>d.modelValue,()=>f.value],([L,W],[M,I])=>{O(L,W)&&x(R())},{deep:!0});const R=()=>{const L=[],W=[],M=[];for(let ae of T.value){const re=f.value[ae];W.push(re);const se=dl(d,re);if(M.push(se),d.valueType==="item")L.push(re);else if(d.valueType==="text")L.push(se);else{const we=Ii(d,re);L.push(we)}}let I=null,j=null,Z=null;return d.multiple?(I=L,j=M,Z=W):(I=L[0]??null,j=M[0]??null,Z=W[0]??null),{value:I,text:j,item:Z}},x=L=>{y("update:modelValue",L.value),y("update:text",L.text),y("change",L.value,L.item,L.text)},Q=()=>{P&&(T.value=P)},ne=L=>{const W=T.value.indexOf(L);d.multiple?W===-1?T.value.push(L):T.value.splice(W,1):W===-1?T.value=[L]:T.value=[],(D.value||!d.poppable&&!d.showFooter)&&z()},F=L=>{q.value=L,y("update:visible",L)},U=()=>{const L=()=>{Q(),F(!1)},W=d.beforeMethod??d.beforeClose;if(typeof W=="function"){const M=W("close");mt(M)?M.then(I=>{I!==!1&&L()}).catch(()=>{L()}):M!==!1&&L()}else L()},z=()=>{const L=R(),W=()=>{x(L),F(!1)},M=d.beforeMethod??d.beforeClose;if(typeof M=="function"){const I=M("confirm",L.value,L.item,L.text);mt(I)?I.then(j=>{j!==!1&&W()}).catch(()=>{W()}):I!==!1&&W()}else W()},X=()=>{let L=b.title.value??"";return h.title&&(L=h.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[L]),(0,t.h)(c,{class:["fox-actionsheet__header-icon"],onClick:U})])},K=()=>{let L=null;return h.search?L=h.search():L=(0,t.h)(r,{onSearch:_,placeholder:b.seachPlaceholder.value,disabled:d.disabled,modelValue:m.value,"onUpdate:modelValue":W=>{m.value=W}},{leftin:()=>(0,t.h)(u)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[L])},H=(L,W,M,I,j)=>{if(h.optionLabel)return h.optionLabel({text:L,checked:W,disabled:M,subText:I,item:j});const Z=[],ae=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[L]);if(Z.push(ae),I){const re=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[I]);Z.push(re)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},Z)},ee=(L,W,M,I)=>h.optionIcon?h.optionIcon({checked:L,disabled:W,iconSize:M,item:I}):L?h.checkedIcon?h.checkedIcon({disabled:W,item:I}):(0,t.h)(d.checkedIcon??i,{width:M,height:M,class:["fox-actionsheet__list-item-icon"]}):h.icon?h.icon({disabled:W,item:I}):(0,t.h)(d.icon??s,{width:M,height:M,class:["fox-actionsheet__list-item-icon"]}),Y=()=>{const L=[];for(let W=0;W<f.value.length;W++){const M=f.value[W],I=dl(d,M),j=Di(d,M),Z=["fox-actionsheet__list-item"],ae={};let re=up(d,M),se=d.iconSize?fe(d.iconSize):null;const we=fp(d,M,W);we&&(re=re||we.disabled,we.class&&Z.push(we.class),we.style&&Object.assign(ae,we.style)),re=!!(d.disabled||re);const qt=T.value.includes(W);re&&Z.push("is-disabled"),qt&&Z.push("is-checked");const ft={class:Z,style:ae,key:`${W}`,onClick:()=>{re||ne(W)}};let ot=[];if(h.option)ot.push(h.option({item:M,checked:qt,disabled:re}));else{const jA=H(I,qt,re,j,M);ot.push(jA);const YA=ee(qt,re,se,M);ot.push(YA),d.textPosition==="right"&&ot.reverse()}const Ga=(0,t.h)("view",ft,ot);L.push(Ga)}return L},te=()=>{let L=[];if(h.buttons)L=h.buttons();else{const W=(0,t.h)(a,{type:"primary",block:"block",onClick:z,disabled:d.disabled},{default:()=>b.confirmText.value});L.push(W)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[L])};return Ee({search:async(L=null,W=!0)=>{v.value=L&&(0,t.toRaw)(L),(0,t.triggerRef)(v),W&&(V.value=!0,w.value=0,f.value=[]),(0,t.nextTick)(()=>{E()})},clear:()=>{V.value=!0,w.value=0,f.value=[]},confirm:()=>{z()},cancel:()=>{U()}}),()=>{const L=[];if(d.showHeader){const re=X();L.push(re)}if(d.showSearchbar){const re=K();L.push(re)}let W=null;if(h.content)W=h.content();else{const re=Y();W=(0,t.h)(l,{hasMore:V.value,loadText:b.loadText.value,noMoreText:b.noMoreText.value,modelValue:A.value,"onUpdate:modelValue":se=>{A.value=se},onLoadMore:E},{default:()=>re})}const M={};d.optionsHeight&&(M.height=d.optionsHeight);const I={"fox-actionsheet__list":!0};d.poppable||(I["fox-actionsheet__list--inner"]=!0);const j=(0,t.h)("view",{class:I,style:M},[W]);if(L.push(j),d.showFooter&&!D.value){const re=te();L.push(re)}const Z=(0,t.h)("view",{class:"fox-actionsheet"},L);if(!d.poppable)return Z;const ae=["fox-actionsheet__popup"];return d.popClass&&ae.push(d.popClass),(0,t.h)(o,{popClass:ae.join(" "),visible:q.value,closeable:!1,"onUpdate:visible":F,position:d.position,round:"round",onClickOverlay:U,closeOnClickOverlay:d.closeOnClickOverlay},{default:()=>Z})}}}}var{componentName:gp,create:yp,scope:bp}=G("actionsheet-pane"),kp=yp(hp(gp,bp,pe,il,Oe,sl,oe.CheckNormal,oe.Checked,oe.Close,oe.Search2,!1)),ul=kp,qi={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 Sp(e,n,o,l,a,r,s){return{props:{...ge,...be,...qi,...cl},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,c){const u=$e((0,t.computed)(()=>i.disabled)),p=Te((0,t.computed)(()=>i.readonly)),{emitEvent:d}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=(0,ce.useFoxI18n)(n),y=h(i,["placeholder"]),C=(0,t.ref)(!1),b=Me(i,"modelValue",null,d),g=(0,t.ref)(""),f=(0,t.computed)(()=>Array.isArray(g.value)?g.value.join(i.separator):g.value),w="fox-input-item",m=(0,t.computed)(()=>({[w]:!0,"is-disabled":u.value,"is-readonly":p.value})),v=Ve((0,t.computed)(()=>i.textAlign),"textAlign"),N=(0,t.computed)(()=>{const z={};return v.value&&(z["text-align"]=v.value),z}),k=(0,t.ref)(!1),S=()=>{k.value=!0},A=z=>{k.value=z},V=z=>{b.value=z,d("update:modelValue",z)},E=(z,X)=>{d("change",z,X)},$=z=>{let X=z.target.value;C.value=!0,d("focus",X,z)},_=z=>{setTimeout(()=>{C.value=!1},0);let X=z.target.value;i.maxLength&&X.length>Number(i.maxLength)&&(X=X.slice(0,Number(i.maxLength))),d("blur",X,z)},J=z=>{g.value=z,d("update:text",z)},D=(0,t.computed)(()=>({[`${w}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),T=(0,t.computed)(()=>Se(i.unit)>0),P=(0,t.computed)(()=>Se(i.unit)>0&&!C.value),q=(0,t.computed)(()=>({hidden:!P.value})),O=z=>{b.value="",d("update:modelValue","",z),d("change","",z),d("clear","")},R=(0,t.computed)(()=>i.clearable&&!u.value&&!p.value),x=(0,t.computed)(()=>Se(b.value)>0&&C.value),Q=z=>{x.value?O(z):S()},ne=(0,t.computed)(()=>x.value&&R.value?l:a),F=(0,t.computed)(()=>({action:!0})),U=(0,t.ref)(null);return Ee({search:z=>{U.value&&U.value.search(z)},clear:()=>{U.value&&U.value.clear},confirm:z=>{U.value&&U.value.confirm()},cancel:()=>{U.value&&U.value.cancel()}}),()=>{const z={class:m.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:S,onFocus:$,onBlur:_};s&&(z.disabled=!0);const X=[],K=(0,t.h)("input",z);X.push(K);const H=[],ee=(0,t.h)(ne.value,{class:["action-icon"]}),Y=(0,t.h)("view",{class:F.value,onClick:Q},{default:()=>[ee]});if(H.push(Y),T.value){const j=(0,t.h)("view",{class:q.value},[i.unit]);H.push(j)}const te=(0,t.h)("view",{class:D.value},{default:()=>H});X.push(te);const L={default:()=>X};L.label=c.slots.default,L.prepend=c.slots.prepend,L.append=c.slots.append,L.fixedPreTip=c.slots.fixedPreTip,L.fixedTip=c.slots.fixedTip;const W=ye(i,cl);W.ref=U,W.class=i.actionsheetProps,W.disabled=u.value||p.value,W.visible=k.value,W["onUpdate:visible"]=A,W.modelValue=b.value,W["onUpdate:modelValue"]=V,W.text=g.value,W["onUpdate:text"]=J,W.onChange=E,W.poppable=!0,W["text-position"]=i.textPosition;const M=(0,t.h)(r,W,{title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons});L.hide=()=>[M];const I={...Ge(i,qi,cl)};return i.prop&&(I.prop=`${i.prop}_item`),(0,t.h)(o,I,L)}}}}var{componentName:wp,create:Cp,scope:vp}=G("actionsheet-item"),Np=Cp(Sp(wp,vp,Ne,oe.CircleClose,oe.ArrowRight,ul)),wo=Np,Co={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:Bp,create:Ap}=G("input-number"),Vp=Ap({components:{Minus:oe.Minus,Plus:oe.Plus},props:{...Co},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const y=Bp;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),l=y=>Number(y).toFixed(Number(e.decimalPlaces)),a=y=>{const C=y.target;n("update:modelValue",C.valueAsNumber,y)},r=(y,C)=>{let b=l(y);n("update:modelValue",b,C),n("change",b,C)},s=(y=Number(e.modelValue))=>y<Number(e.max)&&!e.disabled,i=(y=Number(e.modelValue))=>y>Number(e.min)&&!e.disabled,c=y=>{n("reduce",y),i()?r(Number(e.modelValue)-Number(e.step),y):n("overlimit",y,"reduce")},u=y=>{n("add",y),s()?r(Number(e.modelValue)+Number(e.step),y):n("overlimit",y,"add")},p=y=>{e.disabled||e.readonly||n("focus",y)},d=y=>{if(e.disabled||e.readonly)return;let C=y.target.valueAsNumber;C<Number(e.min)?C=Number(e.min):C>Number(e.max)&&(C=Number(e.max)),r(C,y),n("blur",y)},h=y=>{let C=Number(y);return C<Number(e.min)?C=Number(e.min):C>Number(e.max)&&(C=Number(e.max)),C};return(0,t.watch)(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const y=h(e.modelValue);y!==Number(e.modelValue)&&r(y,{})}),{classes:o,change:a,blur:d,focus:p,add:u,addAllow:s,reduce:c,reduceAllow:i,toPxString:ue}}}),Tp=["min","max","disabled","readonly","value"];function $p(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Minus"),i=(0,t.resolveComponent)("Plus");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,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))},[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[(0,t.createVNode)(s,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2),(0,t.createElementVNode)("input",{type:"number",min:e.min,max:e.max,style:(0,t.normalizeStyle)({width:e.toPxString(e.inputWidth),height:e.toPxString(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[1]||(n[1]=(...c)=>e.change&&e.change(...c)),onBlur:n[2]||(n[2]=(...c)=>e.blur&&e.blur(...c)),onFocus:n[3]||(n[3]=(...c)=>e.focus&&e.focus(...c))},null,44,Tp),(0,t.createElementVNode)("view",{class:(0,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))},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[(0,t.createVNode)(i,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var lt=le(Vp,[["render",$p]]);function Ep(e,n,o,l){return{props:{...ge,...be,...Co},emits:["change","update:modelValue","setValue","add","reduce"],setup(a,r){const s=$e((0,t.computed)(()=>a.disabled)),i=Te((0,t.computed)(()=>a.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),u=(0,t.computed)(()=>{const C=[`${e}`];return a.textAlign==="left"?C.push("is-left"):a.textAlign==="center"?C.push("is-center"):a.textAlign==="right"&&C.push("is-right"),C.join(" ")}),p=Me(a,"modelValue",null,c),d=C=>{p.value=C,c("update:modelValue",C,{}),c("change",C,{})},h=C=>{c("add",C)},y=C=>{c("reduce",C)};return()=>{const C={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},b=ye(a,Co),g=(0,t.h)(l,{...r.attrs,...b,disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":d,onAdd:h,onReduce:y},C),f=[];f.push(g);const w={default:()=>f};w.label=r.slots.default,w.fixedPreTip=r.slots.fixedPreTip,w.fixedTip=r.slots.fixedTip;const m={...ye(a,be,ge)};return a.prop&&(m.prop=`${a.prop}_item`),m["content-class"]=u.value,(0,t.h)(o,m,w)}}}}var{componentName:Dp,create:Ip,scope:qp}=G("input-number-item"),Pp=Ip(Ep(Dp,qp,Ne,lt)),vo=Pp;function xp(e,n,o,l){return{props:{...to,...no,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}},emits:["update:modelValue","change"],setup(a,{emit:r,slots:s}){const i=e,c=(0,t.computed)(()=>{const b=[`${i}`];return a.direction==="vertical"?b.push("vertical-tabbar"):b.push("horizontal-tabbar"),b}),u=(0,t.computed)(()=>{const b={};if(a.width){const g=ue(a.width);g&&(b.width=g)}if(a.height){const g=ue(a.height);g&&(b.height=g)}return b}),p=(0,t.computed)(()=>[`${i}__bar`]),d=(0,t.computed)(()=>[`${i}__container`]),h=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,b=>{h.value!==b&&(h.value=b)});const y=b=>{r("change",b)},C=b=>{h.value!==b&&(h.value=b,r("update:modelValue",b))};return()=>{const{getChildren:b}=Rr(s.default),g=b(),f=[];if(Array.isArray(a.data))f.push(...a.data);else for(let A=0;A<g.length;A++){const V=g[A].props??{},E={text:V.label??"",value:V["pane-key"]??V.paneKey??""};f.push(E)}const w={};for(let A in s)A!=="default"&&(w[A]=s[A]);const m=ye(a,to);Object.assign(m,{data:f,class:p.value,modelValue:h.value,direction:a.direction,onChange:y,"onUpdate:modelValue":C});const v=(0,t.h)(o,m,w),N={default:()=>g},k=ye(a,no);Object.assign(k,{class:d.value,modelValue:h.value,onChange:y,"onUpdate:modelValue":C});const S=(0,t.h)(l,k,N);return(0,t.h)("view",{class:c.value,style:u.value},[v,S])}}}}var{create:Mp,componentName:Lp,scope:zp}=G("tabs-frame"),Op=Mp(xp(Lp,zp,Wt,jt)),No=Op,Fp={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:[String,Number]},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 Rp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Pi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function xi(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Kp(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Bo(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Mi(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Li(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Ao(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var Up=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[o]);const l=et(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(De(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await Reflect.apply(l,null,[n,o]))}};function Hp(){return new Up((0,t.getCurrentInstance)().proxy)}function _p(e,n,o,l){return{props:{...Fp},emits:["update:modelValue","change","loaded-data","click"],setup(a,{slots:r,emit:s}){const i=e,c=Hp(),u=(0,t.ref)([]),p=(0,t.computed)(()=>u.value.filter(F=>Kp(a,F)!==!1)),d=(0,t.ref)(-1),h=()=>{const F=a.modelValue,U=p.value.findIndex(z=>Pi(a,z)===F);d.value!==U&&(d.value=U,a.scroll&&Q(U,!1))};(0,t.watch)([()=>a.modelValue,p],()=>{h()});const y=F=>d.value===F,C=F=>{if(F<0&&F>=p.value.length)return!1;const U=p.value[F],z=(Ao(a,U,F)??{}).status??Bo(a,U);return y(F)||z},b=(0,t.computed)(()=>{const F={[i]:!0};return a.mode?F[`is-${a.mode}`]=!0:a.direction&&(F[`is-${a.direction}`]=!0),a.scroll&&(F["is-scroll"]=!0),F}),g=(0,t.computed)(()=>({})),f=(F,U,z,X,K)=>{const H={[`${i}__step`]:!0};return K&&(H[`${K}`]=!0),H[`${w.value}`]=!0,X&&(H["is-doit"]=!0),F===d.value?H["is-active"]=!0:U==="done"?H["is-done"]=!0:U==="error"?H["is-error"]=!0:U==="half"?H["is-half"]=!0:z?H["is-disabled"]=!0:H["is-normal"]=!0,H},w=(0,t.computed)(()=>{let F=a.align;if(!F){if(a.mode==="simple")return"start";a.direction==="vertical"?F="start":F="center"}return F}),m=(F,U={})=>{const z={...U};if(w.value==="start"&&F===p.value.length-1)z.flex="0 0 auto";else if(a.step){const X=typeof a.step=="number"||gn(a.step)?ue(a.step):a.step;a.direction==="vertical"?z.height=X:z.width=X}else z.flex="1 1 100%";return z},v=(F,U)=>{let z={};if(U<p.value.length-1){const X=U+1;C(U)&&C(X)?a.direction==="vertical"?z.height="100%":z.width="100%":z.opacity="0"}return z},N=F=>p.value.length-1===F,k=(F,U)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&U>d.value||d.value===U)return;const z=d.value,X=U;d.value=U,a.scroll&&Q(U,!1);const K=Pi(a,F);s("update:modelValue",K),s("change",K,{fromIndex:z,currentIndex:X,item:F,items:p.value,clickNavigatePolicy:a.clickNavigatePolicy})},S=(0,t.ref)(!0),A=async(F,U)=>{try{const z=await c.load("stesbar",F,U);Array.isArray(z)&&(u.value=z),S.value=!1}catch(z){console.error("[FoxUI] Load StepsBar Data Fail",z),u.value=[]}setTimeout(()=>{s("loaded-data")},250)};(0,t.watch)([()=>a.data,()=>a.params],async([F,U])=>{F&&A(F,U)},{immediate:!0});const V=(F,U,z,X,K,H)=>{const ee=[];let Y=null;if(!H)if(r.icon)Y=r.icon({item:F,index:U,status:X});else if(X==="done"){const te={};a.iconSize&&(te.width=a.iconSize,te.height=a.iconSize),Y=(0,t.h)(a.icon??o,te)}else Y=(0,t.h)("span",{},[z??`${U+1}`]);return Y&&ee.push(Y),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{s("click",{item:F,index:U}),!K&&k(F,U)}},ee)},E=(F,U,z)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:v(F,U)})]),$=()=>{let F=null;if(r.markIcon)F=r.markIcon();else{const U={};a.iconSize&&(U.width=a.markIconSize,U.height=a.markIconSize),F=(0,t.h)(a.markIcon??l,U)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[F])},_=(F,U,z,X,K,H)=>{const ee=[];if(!N(U)){const te=E(F,U,X);ee.push(te)}const Y=V(F,U,z,X,K,H);return ee.push(Y),(0,t.h)("view",{class:"fox-steps-bar__head"},ee)},J=(F,U,z,X)=>{let K=null;return r.main?K=r.main({item:F,index:U,status:z}):K=Rp(a,F),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{s("click",{item:F,index:U}),!X&&k(F,U)}},[K])},D=(F,U,z)=>{let X=null;return r.sub?(X=r.sub({item:F,index:U,status:z}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[X])):null},T=(F,U)=>{const z=Ao(a,F,U)??{},X=z.status??Bo(a,F);let K=xi(a,F);z.disabled===!0&&(K=!0),a.disabled===!0&&(K=!0);let H=Mi(a,F);z.doit===!0&&(H=!0);const ee=z.label??Li(a,F),Y=[],te=V(F,U,ee,X,K,H);te&&Y.push(te);const L=J(F,U,X,K);if(L&&Y.push(L),!N(U)){const j=E(F,U,X);j&&Y.push(j)}const W=(0,t.h)("view",{class:"fox-steps-bar__head"},Y),M=z.class,I=z.style??{};return(0,t.h)("view",{ref:x(U),class:f(U,X,K,H,M),style:m(U,I)},[W])},P=(F,U)=>{const z=Ao(a,F,U)??{},X=z.status??Bo(a,F);let K=xi(a,F);z.disabled===!0&&(K=!0),a.disabled===!0&&(K=!0);let H=Mi(a,F);z.doit===!0&&(H=!0);const ee=z.label??Li(a,F),Y=[],te=a.layout;for(let M of te)if(M==="head"){const I=_(F,U,ee,X,K,H);Y.push(I)}else if(M==="main"){const I=J(F,U,X,K);Y.push(I)}else if(M==="sub"){const I=D(F,U,X);Y.push(I)}else if(M==="mark"){const I=$();Y.push(I)}const L=z.class,W=z.style??{};return(0,t.h)("view",{ref:x(U),class:f(U,X,K,H,L),style:m(U,W)},Y)},q=(0,t.ref)(),O=(0,t.ref)([]),R=(F,U)=>{O.value[U]=F},x=F=>U=>{R(U,F)},Q=(F,U)=>{const z=q.value,X=O.value;if(!z||!X||!X[F])return;const K=X[F];let H=0;a.direction==="vertical"?H=K.offsetTop-(z.offsetHeight-K.offsetHeight)/2:H=K.offsetLeft-(z.offsetWidth-K.offsetWidth)/2,ne(z,H,U?0:.3,a.direction)},ne=(F,U,z,X)=>{let K=0;const H=X==="horizontal"?F.scrollLeft:F.scrollTop,ee=z===0?1:Math.round(z*1e3/16);function Y(){X==="horizontal"?F.scrollLeft+=(U-H)/ee:F.scrollTop+=(U-H)/ee,++K<ee&&We(Y)}Y()};return()=>{let F=[];if(a.mode==="simple")for(let z=0;z<p.value.length;z++){const X=p.value[z],K=T(X,z);F.push(K)}else for(let z=0;z<p.value.length;z++){const X=p.value[z],K=P(X,z);F.push(K)}const U={ref:q,class:b.value,style:g.value};return F.length===0&&typeof r.default=="function"&&(F=r.default()),(0,t.h)("view",U,F)}}}}var{componentName:Wp,create:jp,scope:Yp}=G("steps-bar"),Xp=jp(_p(Wp,Yp,oe.Checklist,oe.ArrowRight)),Vo=Xp;function Qp(e){e.stopPropagation()}var Gp=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,n){this.startMove=e,this.updateMove=n,this.isTouch=Hn()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=_n(),o=(l,a,r,s)=>{this.updateMove({x:l,y:a})};this.touchstart=l=>{this.moving||(n.start(l),this.startMove({x:n.state.startX,y:n.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&&(n.move(l),Qp(l),o(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{o(n.state.deltaX,n.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),n.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(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function Zp(e,n){return new Gp(e,n)}var Jp={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]},zIndex:{type:[String]}},eh=(e,n,o,l=!1)=>({props:{...Jp},emits:["click"],setup(a,{slots:r,emit:s}){let i=-1,c=-1;const u=(0,t.reactive)({top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:0,height:0}),p=(0,t.computed)(()=>{const N=[`${e}`];return a.customClass&&N.push(a.customClass),N}),d=N=>typeof N=="string"&&!gn(N)?N:`${N}px`,h=(0,t.computed)(()=>{const N={};return de(u.top)||(N.top=d(u.top)),de(u.right)||(N.right=d(u.right)),de(u.bottom)||(N.bottom=d(u.bottom)),de(u.left)||(N.left=d(u.left)),de(a.width)||(N.width=d(a.width)),de(a.height)||(N.height=d(a.height)),de(a.color)||(N.color=a.color),de(a.background)||(N.background=a.background),de(a.borderRadius)||(N["border-radius"]=a.borderRadius),de(a.zIndex)||(N["z-index"]=a.zIndex),N}),y=(0,t.computed)(()=>({[`${e}__icon`]:!0})),C=()=>{s("click")},b=(0,t.ref)(null),g=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},f={x:0,y:0},v=Zp(N=>{if(!b.value)return;const k=b.value;g(),u.left=k.offsetLeft,u.top=k.offsetTop,k.style.left=`${u.left}px`,k.style.top=`${u.top}px`,k.style.right=null,k.style.bottom=null,f.x=u.left,f.y=u.top,u.width=k.offsetWidth,u.height=k.offsetHeight,i=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight},N=>{if(!b.value)return;const k=b.value;g();let S=f.x+N.x;S<0&&(S=0),S>i-u.width&&(S=i-u.width);let A=f.y+N.y;A<0&&(A=0),A>c-u.height&&(A=c-u.height),u.left=S,u.top=A,k.style.left=`${S}px`,k.style.top=`${A}px`});return(0,t.onMounted)(()=>{if(a.draggable&&b.value){const N=[b.value];v.open(N)}}),(0,t.onBeforeUnmount)(()=>{a.draggable&&b.value&&v.close()}),()=>{let N=[];const k=typeof r.default=="function"?r.default():[];if(k&&k.length>0)N=k;else{const S=(0,t.h)(o,{class:y.value});N.push(S)}return(0,t.h)("view",{ref:S=>{b.value=S},class:p.value,style:h.value,onClick:C},N)}}}),{componentName:th,create:nh,scope:lh}=G("floating-button"),oh=nh(eh(th,lh,oe.Uploader,!1)),To=oh,ah={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},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function rh(e,n,o){return{props:{...ah},emits:["click","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:s}=(0,ce.useFoxI18n)(n),i=s(l,["collapseText","expandText"]),c=(0,t.computed)(()=>{const C={[`${e}`]:!0};return l.disabled?C[`${e}--disabled`]=!0:C[`${e}--${l.type}`]=!0,C}),u=Me(l,"modelValue"),p=(0,t.computed)(()=>u.value?i.expandText.value??"":i.collapseText.value??""),d=(0,t.computed)(()=>({[`${e}__text`]:!0})),h=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!u.value,"is-collapse":u.value})),y=()=>{a("update:modelValue",!u.value)};return()=>{const C=[];if(p.value){const f=(0,t.h)("span",{class:d.value},[p.value]);C.push(f)}const b={class:h.value},g=(r.icon&&r.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(o);if(g){const f=(0,t.h)("view",b,[g]);C.push(f)}return l.textPosition==="right"&&C.reverse(),(0,t.h)("view",{class:c.value,onClick:y},C)}}}}var{componentName:ih,create:sh,scope:ch}=G("more-button"),dh=sh(rh(ih,ch,oe.RectUp)),$o=dh,uh={visible:{type:[Boolean],default:!0},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}},fh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function mh(e,n,o){return{props:{...uh},emits:["update:visible"],setup(l,{attrs:a,slots:r,emit:s}){const{toLocaleRefs:i}=(0,ce.useFoxI18n)(n),c=i(l,["confirmText","cancelText"]),u=e,p=(0,t.ref)(l.visible),d=N=>{p.value=N,s("update:visible",N)};(0,t.watch)(()=>l.visible,N=>{p.value!==N&&(p.value=N)});const h=N=>{if(typeof l.unmount=="function")try{l.unmount()}catch(k){console.error(k)}if(typeof l.callback=="function")try{l.callback(N)}catch(k){console.error(k)}},y=()=>{h("confirm")},C=()=>{h("cancel")},b=()=>{l.closeOnClickOverlay!==!1&&h("close")},g=(N,k)=>fh(N)?(k.src=N,(0,t.h)("img",k)):typeof N=="string"?(Array.isArray(k.class)?k.class.push(N):k.class&&typeof k.class=="object"?k[`${N}`]=!0:typeof k.class=="string"?k.class=`${k.class}, ${N}`:k.class=N,(0,t.h)(l.tag,k)):(0,t.h)(N,k),f=()=>{const N=[];if(l.icon){const k={class:[`${u}__header-icon`]},S=g(l.icon,k);N.push(S)}if(l.title){const k=(0,t.h)("view",{class:`${u}__header-title`},[l.title]);N.push(k)}if(l.showClose&&l.closeIcon){const k={class:[`${u}__header-close-icon`],onClick:b},S=g(l.closeIcon,k);N.push(S)}return(0,t.h)("view",{class:[`${u}__header`]},N)},w=(N,k)=>{const S=[];if(k){const A=(0,t.h)("view",{class:`${u}__group-title`},[k]);S.push(A)}if(N){const A=[];Array.isArray(N)||(N=[N]);for(let V of N){const E=(0,t.h)("view",{class:`${u}__group-row`,innerHTML:V});A.push(E)}if(A.length>0){const V=(0,t.h)("view",{class:`${u}__group-rows`},A);S.push(V)}}return S.length===0?null:(0,t.h)("view",{class:`${u}__group`},S)},m=()=>{const N=[];if(typeof l.message=="string")N.push(l.message);else if(Array.isArray(l.message))for(let k of l.message)if(typeof k=="string"){const S=w(k);N.push(S)}else{const S=w(k.content,k.title);N.push(S)}else if(typeof l.message=="function"){const k=l.message();N.push(k)}else{const k=l.message;N.push(k)}return(0,t.h)("view",{class:`${u}__body`},N)},v=()=>{const N=[];if(l.showCancelButton){const k={class:[`${u}__footer-button`],style:{},onClick:C};l.cancelButtonClass&&k.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(k.style,l.cancleButtonStyle);const S=(0,t.h)("button",k,[l.cancelButtonText??c.cancelText.value]);N.push(S)}if(l.showConfirmButton){const k={class:[`${u}__footer-button`],style:{},onClick:y};l.confirmButtonClass&&k.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(k.style,l.confirmButtonStyle);const S=(0,t.h)("button",k,[l.confirmButtonText??c.confirmText.value]);N.push(S)}return N.length===0?null:(0,t.h)("view",{class:`${u}__footer`},N)};return()=>{const N=[],k=f();k&&N.push(k);const S=m();S&&N.push(S);const A=v();A&&N.push(A);const V=(0,t.h)("view",{class:{[`${u}`]:!0,[`${u}--${l.type||"info"}`]:!0}},N),E=[`${u}__popup`];l.popClass&&E.push(l.popClass);const $={};return l.width&&($.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&($.height=typeof l.height=="number"?`${l.height}px`:l.height),(0,t.h)(o,{popClass:E.join(" "),style:$,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":d,position:l.position,round:"round",onClickOverlay:b,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>V})}}}}var{componentName:ph,create:hh,scope:gh}=G("messagebox"),yh=hh(mh(ph,gh,pe)),bh=yh,kh="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",Sh="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",wh="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",Ch="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",vh=new zn,Nh={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Bh=e=>{let n=document.body,o=e.teleport;o!="body"&&(typeof o=="string"?n=document.querySelector(o):o&&(n=e.teleport));const l=document.createElement("view"),a=`messagebox-${vh.get()}`;l.id=a,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const s=document.querySelector(`#${a}`);s&&s.parentNode?.removeChild(s)};const r=(0,t.createVNode)(bh,e);n.appendChild(l),(0,t.render)(r,l)},ut={show:(e,n,o,l)=>{const a={...Nh};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(a,n):(n&&(a.message=n),o&&typeof o=="object"?Object.assign(a,o):(typeof o=="string"&&(a.title=o),l&&typeof l=="object"?Object.assign(a,l):typeof l=="string"&&(a.type=l)));const r=a.type??"info";return a.icon||(r==="success"?a.icon=wh:r==="warning"?a.icon=Ch:r==="error"?a.icon=kh:a.icon=Sh),e==="alert"?(a.showCancelButton=!1,a.showConfirmButton=!0):e==="confirm"&&(a.showCancelButton=!0,a.showConfirmButton=!0),a.showClose&&!a.closeIcon&&(a.closeIcon=oe.Close),new Promise((s,i)=>{const c=a.callback;a.callback=u=>{if(typeof c=="function")try{c(u)}catch(p){console.error(p)}s({action:u})},Bh(a)})},alert:(e,n,o)=>ut.show("alert",e,n,o),confirm:(e,n,o)=>ut.show("confirm",e,n,o),install(e){e.config.globalProperties.$alert=ut.alert,e.config.globalProperties.$confirm=ut.confirm}},Ah=(e,n,o)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let a=!0,r=!0;for(let s in n)s==="bubbles"?a=!!n[s]:s==="cancelable"?r=!!n[s]:l[s]=n[s];l.initEvent(e,a,r),(o??document).dispatchEvent(l)},Vh=new zn,Th=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),$h=e=>`${e}-${Vh.get()}`,Eh=Symbol.for("InnerPageScopeKey"),Dh=Symbol.for("PageWrapperKey"),Ih="FoxLeave",qh="FoxLeaveEnd",Ph={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 xh(e,n,o,l){return{props:{...Re,...Ph},emits:["update:visible"],setup(a,{attrs:r,slots:s,emit:i}){(0,t.provide)(Eh,!0);const c={};(0,t.provide)(Dh,c);const u=k=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),p=()=>{u("close")},d=e,h=k=>{y.value=k,i("update:visible",k)},y=(0,t.ref)(!1),C=(k,S)=>Th(k)?(S.src=k,(0,t.h)("img",S)):typeof k=="string"?(Array.isArray(S.class)?S.class.push(k):S.class&&typeof S.class=="object"?S[`${k}`]=!0:typeof S.class=="string"?S.class=`${S.class}, ${k}`:S.class=k,(0,t.h)(a.tag,S)):(0,t.h)(k,S),b=()=>{if(!a.showHeader)return null;const k=[];if(s.header){const S=s.header();k.push(S)}else if(a.title){const S=(0,t.h)("view",{class:`${d}__header-title`},[a.title]);k.push(S)}return k.length===0?null:(0,t.h)("view",{class:[`${d}__header`]},k)},g=()=>{if(!a.showClose)return null;const k={class:[`${d}__close-icon`],onClick:p};return C(a.closeIcon??l,k)};let f=null;const w=k=>{Ah(qh,{},f)},m=$h(e),v=()=>{h(!0)},N=()=>{if(!f)return;const k=f.querySelector(".fox-overlay");k&&(k.classList.add("overlay-fade-leave-active"),k.classList.add("overlay-fade-leave-to"));const S=f.querySelector(".fox-popup");S&&(S.classList.add(`fox-popup-slide-${a.position}-leave-active`),S.classList.add(`fox-popup-slide-${a.position}-leave-to`),S.addEventListener("animationend",w,{once:!0}),S.addEventListener("transitionend",w,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{f=document.querySelector(`.${m}`),f?.addEventListener(Ih,N,{once:!0}),v()}),()=>{const k=[],S=b();S&&k.push(S);const A=g();A&&k.push(A);const V=s.default?s.default():[];Reflect.apply([].push,k,V);const E={[`${d}`]:!0};a.mode&&(E[`${d}--${a.mode}`]=!0);const $=(0,t.h)("view",{class:E},k),_=[`${d}__popup`,m];a.popClass&&_.push(a.popClass),a.position&&_.push(`${d}__popup--${a.position}`);const J={};a.width&&(J.width=typeof a.width=="number"?`${a.width}px`:a.width),a.height&&(J.height=typeof a.height=="number"?`${a.height}px`:a.height);const D=(0,t.h)(o,{...ye(a,Re),popClass:_.join(" "),style:J,visible:y.value,teleportDisable:!0,closeable:!1,position:a.position,closeOnClickOverlay:a.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":h},{default:()=>$});return(0,t.h)("div",{class:[`${d}__root`,m]},[D])}}}}var{componentName:Mh,create:Lh,scope:zh}=G("popup-wrapper"),Oh=Lh(xh(Mh,zh,pe,oe.Close)),Eo=Oh,Fh={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function Rh(e,n,o,l){return{props:{...Fh},emits:["update:visible"],setup(a,{emit:r,slots:s}){const i=c=>{r("update:visible",c)};return()=>{const c=[`${e}__popup`];a.popClass&&c.push(a.popClass);const u=(0,t.h)(o,{popClass:c,style:a.popStyle??{},position:"top",zIndex:a.zIndex,closeOnClickOverlay:a.closeOnClickOverlay,teleportDisable:!0,visible:a.visible,"onUpdate:visible":i},s);return(0,t.h)("view",{class:`${e}`},[u])}}}}var{componentName:Kh,create:Uh,scope:Hh}=G("dropdown"),_h=Uh(Rh(Kh,Hh,pe,!1)),Do=_h;function Wh(e,n,o,l,a){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[a]){let c=n;for(let u=0;c&&u<r.length;u++){let p=r[u],d=c.find(h=>h[l]===p);if(!d)break;s.push(d[o])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let u=n[c],p=r[c];const d=u.find(h=>h[l]===p);if(!d)break;s.push(d[o])}else{let c=n;for(let u=0;c&&u<r.length;u++){let p=r[u],d=c.find(h=>h[l]===p);if(!d)break;s.push(d[o]),c=d[a]}}return s}var jh=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=et(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(De(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function Yh(){return new jh((0,t.getCurrentInstance)().proxy)}var Xh={tag:{type:[String,Object],required:!1,default:"span"},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}};function Qh(e,n){return{props:{...Xh},setup(o,{attrs:l,slots:a}){const r=Yh(),s=(0,t.ref)([]);(0,t.watch)([()=>o.source,()=>o.params],async([c,u])=>{s.value=await r.load(o.sourceType,c,u)},{immediate:!0});const i=(0,t.computed)(()=>{if(!Array.isArray(s.value)||s.value.length===0)return o.emptyText;let c=Wh(o.modelValue,s.value,o.textKey,o.valueKey,o.childrenKey);return c.length==0?o.emptyText??"":c.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${c[0]}`:c[0]:c.join(o.separator)});return()=>{const c={...l};if(a.default)return a.default({text:i.value,value:o.modelValue});const u=o.tag??"span";return typeof u=="object"?(0,t.h)(u,c,{default:()=>i.value}):(0,t.h)(u,c,[i.value])}}}}var{componentName:Gh,create:Zh,scope:Jh}=G("mapping"),eg=Zh(Qh(Gh,Jh,!1)),Io=eg;function tg(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(o,{slots:l}){return Br(o.name,()=>o.config),Le(o.innerPageScope)||Tr(o.innerPageScope),Le(o.abstractPageScope)||$r(o.abstractPageScope),()=>typeof l.default=="function"?l.default():null}}}var{componentName:ng,create:lg,scope:og}=G("domain-provider"),ag=lg(tg(ng,og)),qo=ag,rg={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 ig(e,n){return{inheritAttrs:!1,props:rg,emits:["change"],setup(o,{slots:l,emit:a}){if(Qe&&window.IntersectionObserver){const r=new WeakMap;let s=new Map;const i=(h,y)=>{if(p===null){s.set(h,{visible:null,callback:y});return}r.has(h)&&p.unobserve(h),r.set(h,{visible:null,callback:y}),p.observe(h)},c=h=>{if(p===null){s.delete(h);return}r.has(h)&&(r.delete(h),p.unobserve(h))};let u=o.initialVisibleObserverSize;cc({acquire:()=>{if(o.loadPolicy==="always")return!0;const h=u>0;return u--,h},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:c});let p=null;const d=(h,y,C)=>{p=new IntersectionObserver(b=>{if(a("change",b),o.loadPolicy!=="always")for(let g of b){let f=!1;g.intersectionRatio>0&&(f=!0);const w=r.get(g.target);if(w)try{if(o.loadPolicy==="lazy"&&!f&&w.visible!==null)return;w.visible=f,w.callback(f)}catch(m){console.error(m)}}},{root:h,rootMargin:y,threshold:C}),s.forEach((b,g)=>{r.set(g,b),p?.observe(g)}),s.clear()};(0,t.watch)([()=>o.root,()=>o.disabled],([h,y])=>{if(y||!h||p)return;let C=null;typeof h=="string"?C=document.querySelector(h):C=h,C&&d(C,o.rootMargin,o.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:sg,create:cg,scope:dg}=G("rolling-provider"),ug=cg(ig(sg,dg)),Po=ug,{componentName:fg,create:mg}=G("cell"),pg=mg({components:{Right:oe.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const r=fg;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:ue(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:o,baseStyle:l}}}),hg={key:0,class:"fox-cell__icon"},gg={key:1,class:"fox-cell__title"},yg={class:"title"},bg={class:"fox-cell__title-desc"};function kg(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Right");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.baseStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",hg,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",gg,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",yg,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",bg,(0,t.toDisplayString)(e.subTitle),1)],64)):(0,t.renderSlot)(e.$slots,"title",{key:1},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)])])):(0,t.createCommentVNode)("",!0),e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:(0,t.normalizeStyle)({"text-align":e.descTextAlign})},(0,t.toDisplayString)(e.desc),7)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"link",{},()=>[e.isLink?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var xo=le(pg,[["render",kg]]),Sg={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function wg(e,n){return{props:{...Sg},setup(o,{attrs:l,slots:a}){const r=(0,t.computed)(()=>{const s={};return o.color&&(s.color=o.color),o.size&&(s.fontSize=ue(o.size)),s});return()=>{const s={style:r.value,class:`${e}-wrap`,...l};return(0,t.h)(o.tag??"li",s,a)}}}}var{componentName:Cg,create:vg,scope:Ng}=G("icon"),Bg=vg(wg(Cg,Ng)),Mo=Bg,{componentName:Ag,create:Vg}=G("cell-group"),Tg=Vg({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[Ag]:!0}))}}}),$g={key:1,class:"fox-cell-group__title"},Eg={key:3,class:"fox-cell-group__desc"},Dg={class:"fox-cell-group__wrap"};function Ig(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",$g,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.$slots.desc?(0,t.renderSlot)(e.$slots,"desc",{key:2}):e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Eg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Dg,[(0,t.renderSlot)(e.$slots,"default")])],2)}var Lo=le(Tg,[["render",Ig]]),{componentName:qg,create:Pg}=G("image"),xg=Pg({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:oe.Image,ImageError:oe.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const o=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const y=qg;return{[y]:!0,[`${y}-round`]:e.round}}),a=(0,t.ref)(null),r=(0,t.ref)(!1),s=(0,t.ref)(null),i=()=>{a.value=new IntersectionObserver(y=>{y.forEach(C=>{C.isIntersecting&&(r.value=!0,a.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),s.value&&a.value.observe(s.value)};(0,t.onMounted)(()=>{e.lazyLoad&&i()}),(0,t.onBeforeUnmount)(()=>{a.value&&a.value.disconnect()});const c=(0,t.computed)(()=>{let y={};return e.width&&(y.width=ue(e.width)),e.height&&(y.height=ue(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=ue(e.radius)),y}),u=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,y=>{o.isError=!1,o.loading=!0});const p=()=>{o.loading=!1,n("load")},d=()=>{o.isError=!0,o.loading=!1,n("error")},h=y=>{n("click",y)};return{...(0,t.toRefs)(o),imageClick:h,classes:l,styles:u,stylebox:c,error:d,load:p,show:r,imgRef:s}}}),Mg=["src","date-src","alt"],Lg={key:0,class:"fox-img-loading"},zg={key:1,class:"fox-img-error"};function Og(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Image"),i=(0,t.resolveComponent)("ImageError");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.stylebox),onClick:n[2]||(n[2]=(...c)=>e.imageClick&&e.imageClick(...c))},[(0,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:(0,t.normalizeStyle)(e.styles)},null,44,Mg),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",Lg,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,width:"16px",height:"20px",name:"image"})),(0,t.renderSlot)(e.$slots,"loading")])):(0,t.createCommentVNode)("",!0),e.isError&&!e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",zg,[e.slotError?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,width:"16px",height:"20px",name:"imageError"})),(0,t.renderSlot)(e.$slots,"error")])):(0,t.createCommentVNode)("",!0)],6)}var zo=le(xg,[["render",Og]]),{create:Fg}=G("layout"),Rg=Fg({}),Oo=Rg,{componentName:Kg,create:Ug}=G("col"),Hg=Ug({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=Kg,o=(0,t.inject)("gutter");return{classes:(0,t.computed)(()=>({[n]:!0,[`${n}-gutter`]:o,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),style:(0,t.computed)(()=>({paddingLeft:o/2+"px",paddingRight:o/2+"px"}))}}});function _g(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Fo=le(Hg,[["render",_g]]),{componentName:Wg,create:jg}=G("row"),Yg=jg({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=Wg;(0,t.provide)("gutter",e.gutter);const o=(l,a)=>l?a?`fox-row-${l}-${a}`:"":`fox-row-${a}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
2
+ ${o("",e.type)}
3
+ ${o("justify",e.justify)}
4
+ ${o("align",e.align)}
5
+ ${o("flex",e.flexWrap)}
6
6
  ${n}
7
7
  `:`
8
8
  ${n}
9
- `)}}});function my(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Zl=le(fy,[["render",my]]),{create:py}=_("sticky"),hy=py({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),i=t.computed(()=>l.fixed?{[e.position]:`${r.value}px`,transform:l.transform?`translate3d(0, ${l.transform}px, 0)`:void 0,position:l.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const u=e.container;if(!a.value&&!u)return;const p=Pe(a),d=o.value,h=Pe(d),C=Pe(u);l.height=p.height;const b=()=>{let y=!1;if(e.position==="top")y=u?r.value>p.top&&C.bottom>0:r.value>p.top;else{const m=document.documentElement.clientHeight;y=u?C.bottom>0&&m-r.value-h.height>C.top:m-r.value<p.bottom}return y},g=()=>{if(u)if(e.position==="top"){const y=C.bottom-r.value-h.height;return y<0?y:0}else{const y=document.documentElement.clientHeight,m=C.bottom-(y-r.value);return m<0?m:0}return 0};l.transform=g(),l.fixed=b()};return t.watch(()=>l.fixed,u=>{n("change",u)}),t.onMounted(()=>{c(),Il(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Il(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function gy(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 Yt=le(hy,[["render",gy]]),{componentName:yy,create:by}=_("divider"),ky=by({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=yy;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 Sy(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 Jl=le(ky,[["render",Sy]]);function Cy(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 wy(e,n,a){const o=Cy(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function Ny(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=i=>{i.proxy&&(a.push(t.markRaw(i)),wy(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:ei}=_("grid"),ti=Symbol("grid"),By={props:{columnNum:{type:[Number,String],default:4},border:{type:Boolean,default:!0},gutter:{type:[Number,String],default:0},center:{type:Boolean,default:!0},square:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},direction:{type:String},clickable:{type:Boolean,default:!1}},setup(e,{slots:n}){Ny(ti,`${ei}-item`)({props:e});const a=t.computed(()=>{const l=ei;return{[l]:!0,[`${l}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const l={};return e.gutter&&(l.paddingLeft=me(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:Ay}=_("grid"),_l=Ay(By);function Ty(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:$y,componentName:ni}=_("grid-item"),Vy=$y({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=Ty(ti);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[ni]:!0})),s=t.computed(()=>{const u={flexBasis:`${100/+l.columnNum}%`};return l.square?u.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(u.paddingRight=me(l.gutter),o.value>=l.columnNum&&(u.marginTop=me(l.gutter))),u}),i=t.computed(()=>{const u=`${ni}__content`;return{[`${u}`]:!0,[`${u}--border`]:l.border,[`${u}--surround`]:l.border&&l.gutter,[`${u}--center`]:l.center,[`${u}--square`]:l.square,[`${u}--reverse`]:l.reverse,[`${u}--${l.direction}`]:!!l.direction,[`${u}--clickable`]:l.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:u=>{n("click",u)}}}}),Ey={class:"fox-grid-item__text"};function Dy(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",Ey,[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 ea=le(Vy,[["render",Dy]]),{componentName:Iy,create:vy}=_("navbar"),xy=vy({components:{Left:ae.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:o,safeAreaInsetTop:l,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let u=t.ref();const p=t.computed(()=>{const y=Iy;return{[y]:!0,[`${y}--border`]:a.value,[`${y}--fixed`]:o.value,[`${y}--safe-area-inset-top`]:l.value}}),d=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{u.value=c?.value?.getBoundingClientRect().height,i.value.style.height=u.value+"px"})});function h(){n("on-click-back")}function C(){n("on-click-title")}function b(){n("on-click-icon")}function g(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:p,styles:d,handleLeft:h,handleCenter:C,handleCenterIcon:b,handleRight:g}}}),qy={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Py={key:1,class:"fox-navbar__text"},My={class:"fox-navbar__title"},Ly={key:0,class:"fox-navbar__text"},zy={key:1,class:"fox-navbar__text"},Oy={class:"fox-navbar__title"},Ry={key:0,class:"fox-navbar__text"};function Fy(e,n,a,o,l,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",qy,[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",Py,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",My,[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",Ly,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",zy,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Oy,[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",Ry,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const ta=le(xy,[["render",Fy]]),Ky=(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}=ce.useFoxI18n(n),s=r(o,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(d=!o.visible)=>{l("update:visible",d)},selected:(d,h)=>{l("selected",{item:d,event:h}),c.value=d.id},current:c}}}),{componentName:Uy,create:Hy,scope:jy}=_("fixednav"),Wy=Hy(Ky(Uy,jy,{[ft.name]:ft,Left:ae.Left})),Yy={class:"fox-fixednav__list"},Xy=["onClick"],Qy=["src"],Gy={class:"span"},Zy={key:0,class:"b"},Jy={class:"text"};function _y(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",Yy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:p=>e.selected(c,p),key:c.id||u},[t.createElementVNode("img",{src:c.icon},null,8,Qy),t.createElementVNode("view",Gy,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Zy,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Xy))),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",Jy,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const na=le(Wy,[["render",_y]]),{componentName:e0,create:t0}=_("menu"),n0=t0({components:{ArrowUp2:ae.ArrowUp2,ArrowDown2:ae.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.ref(0),r=t.ref(!1),s=()=>{const y=t.reactive([]),m=t.reactive([]);return{children:y,linkChildren:f=>{const A=w=>{w.proxy&&(m.push(w),y.push(w.proxy))},N=w=>{if(w.proxy){let S=m.indexOf(w);S>-1&&m.splice(S,1);let B=y.indexOf(w.proxy);S>-1&&y.splice(B,1)}};t.provide("menuParent",Object.assign({removeLink:N,link:A,children:y,internalChildren:m},f))}}},{children:i,linkChildren:c}=s(),u=t.computed(()=>i.some(y=>y.state.showWrapper)),p=t.computed(()=>({[e0]:!0,"scroll-fixed":r.value})),d=()=>{if(o.value){const y=Pe(o);e.direction==="down"?l.value=y.bottom:l.value=window.innerHeight-y.top}};c({props:e,offset:l});const h=y=>{i.forEach((m,k)=>{k===y?(d(),m.toggle()):m.state.showPopup&&m.toggle(!1,{immediate:!0})})},C=y=>Math.max(0,"scrollTop"in y?y.scrollTop:y.pageYOffset),b=()=>{const{scrollFixed:y}=e,m=C(window);r.value=m>(typeof y=="boolean"?30:Number(y))},g=y=>{let m="";const{titleClass:k}=e;return y&&(m+="active"),k&&(m+=` ${k}`),m};return t.onMounted(()=>{const{scrollFixed:y}=e;y&&window.addEventListener("scroll",b)}),t.onUnmounted(()=>{const{scrollFixed:y}=e;y&&window.removeEventListener("scroll",b)}),{toggleItem:h,children:i,opened:u,classes:p,barRef:o,getClasses:g}}}),o0=["onClick"],l0={class:"fox-menu__title-text"},a0={class:"fox-menu__title-icon"};function r0(e,n,a,o,l,r){const s=t.resolveComponent("ArrowUp2"),i=t.resolveComponent("ArrowDown2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:p=>!c.disabled&&e.toggleItem(u),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",l0,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",a0,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,o0))),128))],2),t.renderSlot(e.$slots,"default")],2)}const oa=le(n0,[["render",r0]]),{componentName:s0,create:i0}=_("menu-item"),c0=i0({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:{[he.name]:he,Check:ae.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 C=t.inject("menuParent",null);if(C){const b=t.getCurrentInstance(),{link:g,removeLink:y}=C;return g(b),t.onUnmounted(()=>{y(b)}),{parent:C}}},{parent:r}=l(),s=t.computed(()=>({[s0]:!0})),i=t.computed(()=>{const C={height:r.offset.value+"px"};return r.props.direction==="down"?C:{...C,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const C=e.options?.find(b=>b.value===e.modelValue);return C?C.text:""},state:o,parent:r,toggle:(C=!o.showPopup,b={})=>{C!==o.showPopup&&(o.showPopup=C,o.isShowPlaceholderElement=C,C&&(o.showWrapper=!0,n("open")))},onClick:C=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,C.value!==e.modelValue&&(n("update:modelValue",C.value),n("change",C.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),d0={class:"fox-menu-item__content fox-menu-item__overflow"},u0=["onClick"];function f0(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",d0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:p=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(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,u0))),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 la=le(c0,[["render",f0]]),{create:m0}=_("tabbar"),p0=m0({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 h0(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 aa=le(p0,[["render",h0]]),{create:g0}=_("tabbar-item"),y0=g0({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,n){const a=t.inject("parent"),o=t.reactive({size:a.size,inactiveColor:a.inactiveColor,activeColor:a.activeColor,value:a.value,index:0}),l=t.getCurrentInstance();l!==null&&(u=>{if(u.proxy){let p=a.children.length;o.index=p;let d=Object.assign(u.proxy,{index:p});a.children.push(d)}})(l);const r=t.computed(()=>o.index===o.value);function 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}}}),b0={class:"fox-tabbar-item_icon-box"},k0={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},S0={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},C0={key:1,class:"fox-tabbar-item_icon-box_dot"},w0={key:2},N0={key:0};function B0(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",b0,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",k0,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",S0,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",C0)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",w0,[(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",N0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const ra=le(y0,[["render",B0]]),{componentName:A0,create:T0}=_("elevator"),$0=T0({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(()=>({[A0]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>a.value.clientHeight),i=(m,k)=>m.getAttribute("data-"+k),c=m=>{t.nextTick(()=>{!o.listGroup.includes(m)&&m!=null&&o.listGroup.push(m)})},u=()=>{let m=0;o.listHeight.push(m);for(let k=0;k<o.listGroup.length;k++){let f=o.listGroup[k];m+=Math.floor(f.clientHeight),o.listHeight.push(m)}},p=m=>{!m&&m!==0||(m<0&&(m=0),m>o.listHeight.length-2&&(m=o.listHeight.length-2),o.codeIndex=m,a.value.scrollTo(0,o.listHeight[m]))},d=m=>{o.scrollStart=!0;let k=i(m.target,"index"),f=m.touches[0];o.touchState.y1=f.pageY,o.anchorIndex=+k,o.codeIndex=+k,p(+k)},h=m=>{let k=m.touches[0];o.touchState.y2=k.pageY;let f=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+f,p(o.codeIndex)},C=()=>{o.scrollStart=!1},b=(m,k)=>{n.emit("click-item",m,k),o.currentData=k,o.currentKey=m},g=m=>{n.emit("click-index",m)},y=m=>{let f=m.target.scrollTop;const A=o.listHeight;o.scrollY=f;for(let N=0;N<A.length-1;N++){let w=A[N],S=A[N+1];if(o.scrollY>=w&&o.scrollY<S){o.currentIndex=N,o.diff=S-o.scrollY;return}}o.currentIndex=A.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",y)}),Ie({scrollTo:p}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(u)}),t.watch(()=>o.diff,m=>{const k=o.listHeight;let f=m>0&&m<e.titleHeight?m-e.titleHeight:0;o.scrollY+s.value===k[k.length-1]&&f!==0&&(f=0),o.fixedTop!==f&&(o.fixedTop=f)}),t.watch(()=>o.currentIndex,m=>{n.emit("change",m)}),{classes:l,...t.toRefs(o),fixedStyle:r,clientHeight:s,setListGroup:c,listview:a,touchStart:d,touchMove:h,touchEnd:C,handleClickItem:b,handleClickIndex:g}}}),V0={class:"fox-elevator__list__item__code"},E0=["onClick"],D0=["innerHTML"],I0={class:"fox-elevator__fixed-title"},v0={class:"fox-elevator__bars__inner"},x0=["data-index","onClick"];function q0(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",V0,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,D0))],10,E0))),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",I0,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",v0,[(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,x0))),128))])],32)],2)}const Xt=le($0,[["render",q0]]),{create:P0,scope:M0}=_("pagination"),L0=P0({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}=ce.useFoxI18n(M0),o=a(e,["prevText","nextText"]),{modelValue:l,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:C,itemsPerPage:b}=t.toRefs(e),g=+h.value||Math.ceil(+C.value/+b.value);return Math.max(1,g)}),u=(h,C)=>{h>c.value||h<1||(h!=l.value&&n("update:modelValue",h),C&&n("change",h))},p=(h,C,b=!1)=>({number:h,text:C,active:b}),d=t.computed(()=>{if(r.value=="simple")return;let h=[];const C=c.value,b=+s.value;let g=1,y=C;const m=C>b;m&&(g=Math.max(l.value-Math.floor(b/2),1),y=g+b-1,y>C&&(y=C,g=y-b+1));for(var k=g;k<=y;k++){const f=p(k,k,l.value==k);h.push(f)}if(m&&b>0&&i.value){if(g>1){const f=p(g-1,"...");h.unshift(f)}if(y<C){const f=p(y+1,"...");h.push(f)}}return h});return t.watchEffect(()=>{u(l.value,!1)}),{...o,modelValue:l,select:u,countRef:c,mode:r,pages:d,forceEllipses:i}}}),z0={class:"fox-pagination"},O0={key:0,class:"fox-pagination-contain"},R0=["onClick"],F0={key:1,class:"fox-pagination-contain"},K0={class:"fox-pagination-simple"};function U0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",z0,[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",O0,[(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,R0))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",F0,[t.createElementVNode("view",K0,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 sa=le(L0,[["render",U0]]),H0=(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=ot();let u="";const p=(h,C)=>{let b=h;switch(e.direction=="horizontal"?(u=h>0?"right":"left",b=Math.abs(b)/r.value.width*100):(u=C>0?"bottom":"top",b=C,b=Math.abs(b)/r.value?.height*100),b>85&&(b=85),u){case"left":case"top":n.isEnd()&&(b=0,i.moving=!1);break;case"right":case"bottom":b=-b,n.isBegin()&&(b=0,i.moving=!1);break}i.offset=b};return{touchMethods:{onTouchStart(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,u){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:l}};class j0{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:W0}=_("tabs"),Y0=W0({components:{[Yt.name]:Yt,JoySmile:ae.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=D=>{D.forEach((E,U)=>{let J=E.type;if(J=J.name||J,J=="fox-tab-pane"){let I=new j0;if(E.props?.title||E.props?.["pane-key"]||E.props?.paneKey){let V=ct(E.props?.["pane-key"]),P=V=="number"||V=="string"?String(E.props?.["pane-key"]):null,v=ct(E.props?.paneKey),O=v=="number"||v=="string"?String(E.props?.paneKey):null;I.title=E.props?.title,I.paneKey=P||O||String(U),I.disabled=E.props?.disabled}r.value.push(I)}else{if(E.children==" ")return;Array.isArray(E.children)&&s(E.children)}})},i=t.ref(e.modelValue||0),c=D=>{let E=r.value.findIndex(U=>U.paneKey==D);r.value.length==0||E==-1||(i.value=E)},u=t.computed(()=>e.titleScroll&&e.direction==="vertical"),p=t.ref(),d=t.ref([]),h=D=>{const E=p.value,U=d.value;if(!E||!U||!U[i.value])return;const J=U[i.value];let I=0;e.direction==="vertical"?I=J.offsetTop-E.offsetTop+10-(E.offsetHeight-J.offsetHeight)/2:I=J.offsetLeft-(E.offsetWidth-J.offsetWidth)/2,C(E,I,.3,e.direction)},C=(D,E,U,J)=>{let I=0;const V=J==="horizontal"?D.scrollLeft:D.scrollTop,P=Math.round(U*1e3/16);function v(){J==="horizontal"?D.scrollLeft+=(E-V)/P:D.scrollTop+=(E-V)/P,++I<P&&je(v)}v()},b=(D=a.default?.())=>{r.value=[],D=D?.filter(E=>typeof E.children!="string"),D&&D.length&&s(D),c(e.modelValue),t.nextTick(()=>{h()})},g=D=>{l=D.fixed};t.watch(()=>a.default?.(),D=>{b(D)});const y=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,D=>{if(c(D),h(),l){let E=Pe(o.value).top+y(),U=Math.ceil(E-e.top);window.scrollTo({top:U,behavior:"smooth"})}}),t.onMounted(b),t.onActivated(b);const m={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,m.updateValue(r.value[i.value])},prev:()=>{i.value-=1,m.updateValue(r.value[i.value])},updateValue:D=>{n("update:modelValue",D.paneKey),n("change",D)},tabChange:(D,E)=>{n("click",D),!(D.disabled||i.value==E)&&(i.value=E,m.updateValue(D))},setTabItemRef:(D,E)=>{d.value[E]=D}},{tabsContentRef:k,touchState:f,touchMethods:A}=H0(e,m),N=t.computed(()=>{let D=i.value*100;f.moving&&(D+=f.offset);let E={transform:e.direction=="horizontal"?`translate3d(-${D}%, 0, 0)`:`translate3d( 0,-${D}%, 0)`,transitionDuration:f.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(E={}),E}),w=t.computed(()=>({background:e.background})),S=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),B=t.computed(()=>{if(!e.titleGutter)return{};const D=me(e.titleGutter);return e.direction==="vertical"?{marginTop:D,marginBottom:D}:{marginLeft:D,marginRight:D}}),$=t.computed(()=>a.fixedTitle);return{navRef:p,tabsContentRef:k,titles:r,contentStyle:N,tabsNavStyle:w,titleStyle:B,tabsActiveStyle:S,container:o,getScrollY:u,onStickyScroll:g,...m,...A,hasFixedTitle:$}}}),X0=["onClick"],Q0={key:0,class:"fox-tabs__titles-fixed-item"},G0=["onClick"],Z0={key:0,class:"fox-tabs__titles-fixed-item"};function J0(e,n,a,o,l,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:p=>e.tabChange(c,u),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(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,X0))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Q0,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:p=>e.tabChange(c,u),key:c.paneKey,ref_for:!0,ref:p=>e.setTabItemRef(p,u)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(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,G0))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Z0,[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 ia=le(Y0,[["render",J0]]),{create:_0}=_("tab-pane"),eb=_0({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 tb(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 ca=le(eb,[["render",tb]]),{componentName:oi,create:nb}=_("indicator"),ob=nb({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=oi;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:oi,padZero:dt}}});function lb(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 da=le(ob,[["render",lb]]),{componentName:ab,create:rb}=_("side-navbar"),sb=rb({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(()=>({[ab]:!0})),l=(s,i=1)=>{for(let c=0;c<s.length;c++){let u=s[c];u?.children?.[0]&&(u.children[0].style.paddingLeft=+e.offset*i+"px",u.className.includes("fox-side-navbar-item")||l(Array.from(u.children[1].children),++a.count))}a.count--},r=()=>{let s=n.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),l(s))};return t.onMounted(()=>{r(),a.observer=new MutationObserver(function(){a.count=1,r()}),a.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(a),list:n,classes:o}}}),ib={class:"fox-side-navbar__content"},cb={class:"fox-side-navbar__content__list",ref:"list"};function db(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",ib,[t.createElementVNode("view",cb,[t.renderSlot(e.$slots,"default")],512)])],2)}const ua=le(sb,[["render",db]]),{componentName:ub,create:fb}=_("side-navbar-item"),mb=fb({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[ub]:!0})),handleClick:()=>{n.emit("click")}})}),pb=["ikey"],hb={class:"fox-side-navbar-item__title"};function gb(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",hb,t.toDisplayString(e.title),1)],10,pb)}const fa=le(mb,[["render",gb]]),{componentName:yb,create:bb}=_("sub-side-navbar"),kb=bb({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:ae.ArrowDown2,ArrowUp2:ae.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=t.reactive({direction:""}),o=t.computed(()=>({[yb]:!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}}}),Sb=["ikey"],Cb={class:"fox-sub-side-navbar__title__text"},wb={class:"fox-sub-side-navbar__title__icon"};function Nb(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",Cb,t.toDisplayString(e.title),1),t.createElementVNode("span",wb,[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,Sb)}const ma=le(kb,[["render",Nb]]),{componentName:Bb,create:Ab}=_("range"),Tb=Ab({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=ot(),c=t.computed(()=>{const{marks:I,max:V,min:P}=e;return Object.keys(I).map(parseFloat).sort((H,L)=>H-L).filter(H=>H>=P&&H<=V)}),u=t.computed(()=>Number(e.max)-Number(e.min)),p=t.computed(()=>{const I=Bb;return{[I]:!0,[`${I}-disabled`]:e.disabled,[`${I}-vertical`]:e.vertical,[`${I}-show-number`]:!e.hiddenRange}}),d=t.computed(()=>{const I="fox-range-container";return{[I]:!0,[`${I}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),C=t.computed(()=>({borderColor:e.buttonColor})),b=I=>!!e.range&&Array.isArray(I),g=()=>{const{modelValue:I,min:V}=e;return b(I)?`${(I[1]-I[0])*100/u.value}%`:`${(I-Number(V))*100/u.value}%`},y=()=>{const{modelValue:I,min:V}=e;return b(I)?`${(I[0]-Number(V))*100/u.value}%`:"0%"},m=t.computed(()=>e.vertical?{height:g(),top:y(),background:e.activeColor,transition:s.value?"none":void 0}:{width:g(),left:y(),background:e.activeColor,transition:s.value?"none":void 0}),k=I=>{const V="fox-range-mark",{modelValue:P,max:v,min:O}=e;let H=Number(O),L=Number(v);if(e.range){const[te,F]=P;H=te,L=F}else L=P;let Z=I<=L&&I>=H;return{[`${V}-text`]:!0,[`${V}-text-active`]:Z}},f=I=>{const{min:V,vertical:P}=e;let v={left:`${(I-Number(V))/u.value*100}%`};return P&&(v={top:`${(I-Number(V))/u.value*100}%`}),v},A=I=>{const{modelValue:V,max:P,min:v}=e;let O=Number(v),H=Number(P);if(e.range){const[te,F]=V;O=te,H=F}return{background:I<=H&&I>=O?e.activeColor:e.inactiveColor}},N=I=>{const{min:V,max:P,step:v}=e;return I=Math.max(+V,Math.min(I,+P)),Math.round(I/+v)*+v},w=(I,V)=>JSON.stringify(I)===JSON.stringify(V),S=I=>I[0]>I[1]?I.slice(0).reverse():I,B=(I,V)=>{b(I)?I=S(I).map(N):I=N(I),w(I,e.modelValue)||n("update:modelValue",I),V&&!w(I,o)&&n("change",I)},$=I=>{if(e.disabled)return;const{min:V,modelValue:P}=e,v=Pe(r);let O=I.clientX-v.left,H=v.width;e.vertical&&(O=I.clientY-v.top,H=v.height);const L=Number(V)+O/H*u.value;if(b(P)){const[Z,te]=P,F=(Z+te)/2;L<=F?B([L,te],!0):B([Z,L],!0)}else B(L,!0)},D=I=>{e.disabled||(i.start(I),l=e.modelValue,b(l)?o=l.map(N):o=N(l),s.value="start")},E=I=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(I),s.value="draging";const V=Pe(r);let P=i.deltaX.value,v=V.width,O=P/v*u.value;e.vertical&&(P=i.deltaY.value,v=V.height,O=P/v*u.value),b(o)?l[a.value]=o[a.value]+O:l=o+O,B(l),I.stopPropagation(),I.preventDefault()},U=()=>{e.disabled||(s.value==="draging"&&(B(l,!0),n("drag-end")),s.value="")},J=I=>un(e.modelValue)&&typeof I=="number"?e.modelValue[I]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:h,buttonStyle:C,onClick:$,onTouchStart:D,onTouchMove:E,onTouchEnd:U,...t.toRefs(e),barStyle:m,curValue:J,buttonIndex:a,containerClasses:d,markClassName:k,marksStyle:f,marksList:c,tickStyle:A}}}),$b={key:0,class:"fox-range-min"},Vb={key:0,class:"fox-range-mark"},Eb=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Db={key:0,class:"number"},Ib=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],vb={key:0,class:"number"},xb={key:1,class:"fox-range-max"};function qb(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",$b,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",Vb,[(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",Db,t.toDisplayString(e.curValue(s)),1))],4))],42,Eb)),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",vb,t.toDisplayString(e.curValue()),1))],4))],40,Ib))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",xb,t.toDisplayString(+e.max),1))],2)}const Qt=le(Tb,[["render",qb]]),{create:Pb,scope:Mb}=_("short-password"),Lb=Pb({components:{[he.name]:he,Tips:ae.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}=ce.useFoxI18n(Mb),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>u(Number(e.length))),s=t.ref(e.visible),i=d=>{d.stopPropagation(),n("focus")};t.watch(()=>e.visible,d=>{s.value=d}),t.watch(()=>e.modelValue,d=>{l.value=d,String(d).length===r.value&&n("complete",d)});const c=()=>{n("update:visible",!1),n("close")},u=d=>Math.min(Math.max(4,d),6);return{comLen:r,realInput:l,onTouchStart:i,range:u,close:c,onTips:()=>{n("tips")},show:s,...o}}}),zb={class:"fox-short-password-title"},Ob={class:"fox-short-password-subtitle"},Rb={class:"fox-short-password-wrapper"},Fb={key:0,class:"fox-short-password__item-icon"},Kb={class:"fox-short-password__message"},Ub={class:"fox-short-password--error"},Hb={key:0,class:"fox-short-password--forget"};function jb(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",zb,t.toDisplayString(e.title),1),t.createElementVNode("view",Ob,t.toDisplayString(e.desc),1),t.createElementVNode("div",Rb,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:u},[String(e.realInput).length>u?(t.openBlock(),t.createElementBlock("view",Fb)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",Kb,[t.createElementVNode("view",Ub,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",Hb,[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 pa=le(Lb,[["render",jb]]);class Wb{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Yb=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 Xb{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const li=(e,{args:n=[],done:a,canceled:o})=>{if(e){const l=e.apply(null,n);pt(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:Qb}=_("progress"),Gb=Qb({components:{Checked:ae.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}}}),Zb={class:"fox-progress"},Jb={key:0,class:"fox-progress-text"};function _b(e,n,a,o,l,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",Zb,[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",Jb,[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 Gt=le(Gb,[["render",_b]]),{componentName:ek,create:tk,scope:nk}=_("uploader"),ok=tk({components:{[Gt.name]:Gt,Photograph:ae.Photograph,Failure:ae.Failure,Loading:ae.Loading,Del:ae.Del,Link:ae.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}=ce.useFoxI18n(nk),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[ek]:!0})),s=()=>{let k={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(k.capture="camera"),t.h("input",k)},i=k=>{k.value=""},c=k=>{n("file-item-click",{fileItem:k})},u=(k,f)=>{const A=new Wb;A.url=e.url,A.formData=k.formData,A.timeout=e.timeout*1,A.method=e.method,A.xhrState=e.xhrState,A.headers=e.headers,A.withCredentials=e.withCredentials,A.beforeXhrUpload=e.beforeXhrUpload;try{A.sourceFile=k.formData.get(e.name)}catch{}A.onStart=w=>{k.status="ready",k.message=a("readyUpload"),p(f),n("start",w)},A.onProgress=(w,S)=>{k.status="uploading",k.message=a("uploading"),k.percentage=(w.loaded/w.total*100).toFixed(0),n("progress",{event:w,option:S,percentage:k.percentage})},A.onSuccess=(w,S)=>{k.status="success",k.message=a("success"),n("success",{responseText:w,option:S,fileItem:k}),n("update:fileList",o)},A.onFailure=(w,S)=>{k.status="error",k.message=a("error"),n("failure",{responseText:w,option:S,fileItem:k})};let N=new Yb(A);e.autoUpload?N.upload():l.push(new Promise((w,S)=>{w(N)}))},p=(k=-1)=>{k>-1?l.splice(k,1):(l=[],o.splice(0,o.length))},d=()=>{Promise.all(l).then(k=>{k.forEach(f=>f.upload())})},h=k=>{k.forEach((f,A)=>{const N=new FormData;for(const[S,B]of Object.entries(e.data))N.append(S,B);N.append(e.name,f);const w=t.reactive(new Xb);if(w.name=f.name,w.status="ready",w.type=f.type,w.formData=N,w.message=a("waitingUpload"),u(w,A),e.isPreview&&f.type.includes("image")){const S=new FileReader;S.onload=B=>{w.url=B.target.result,o.push(w)},S.readAsDataURL(f)}else o.push(w)})},C=k=>{const f=e.maximum*1,A=e.maximize*1,N=new Array;k=k.filter(S=>S.size>A?(N.push(S),!1):!0),N.length&&n("oversize",N);let w=k.length+o.length;return w>f&&k.splice(k.length-(w-f)),k},b=(k,f)=>{o.splice(f,1),n("delete",{file:k,fileList:o,index:f})},g=(k,f)=>{p(f),li(e.beforeDelete,{args:[k,o],done:()=>b(k,f)})},y=k=>{if(e.disabled)return;const f=k.target;let{files:A}=f;e.beforeUpload?e.beforeUpload(A).then(N=>m(N)):m(A),n("change",{fileList:o,event:k}),e.clearInput&&i(f)},m=k=>{const f=C(new Array().slice.call(k));h(f)};return{onChange:y,onDelete:g,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:p,submit:d,renderInput:s}}}),lk={key:0,class:"fox-uploader__slot"},ak={key:0,class:"fox-uploader__preview-img"},rk={key:0,class:"fox-uploader__preview__progress"},sk={class:"fox-uploader__preview__progress__msg"},ik=["onClick"],ck=["onClick","src"],dk={key:3,class:"fox-uploader__preview-img__file"},uk=["onClick"],fk={class:"file__name_tips"},mk={class:"tips"},pk={key:1,class:"fox-uploader__preview-list"},hk=["onClick"],gk={class:"file__name_tips"};function yk(e,n,a,o,l,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),u=t.resolveComponent("Del"),p=t.resolveComponent("fox-progress"),d=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",lk,[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,C)=>(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",ak,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",rk,[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",sk,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:b=>e.onDelete(h,C)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,ik)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:b=>e.fileItemClick(h),src:h.url},null,8,ck)):(t.openBlock(),t.createElementBlock("view",dk,[t.createElementVNode("view",{onClick:b=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",fk,t.toDisplayString(h.name),1)],8,uk)])),t.createElementVNode("view",mk,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",pk,[t.createElementVNode("view",{onClick:b=>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",gk,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(u,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:b=>e.onDelete(h,C)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,hk),h.status=="uploading"?(t.openBlock(),t.createBlock(p,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(d,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const ha=le(ok,[["render",yk]]),bk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozOUNBQTQ0M0Y3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCI+IDx4bXBNTTpEZXJpdmV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ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:Sk,scope:Ck}=_("number-keyboard"),wk=Sk({components:{[he.name]:he},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}=ce.useFoxI18n(Ck),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:m}=e;let k={id:"lock",type:"lock"},f=Array.isArray(m)?m:[m];return f.length===1&&(k={id:f[0],type:"custom"}),[...c(),k,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const m=[];for(let k=1;k<=9;k++)m.push({id:k,type:"number"});return e.randomKeys?m.sort(()=>Math.random()>.5?1:-1):m}function u(){const m=c(),{customKey:k}=e;let f=Array.isArray(k)?k:[k];return f.length>2&&(f=[f[0],f[1]]),f.length==2&&e.title&&e.type!="rightColumn"&&(f=[f[0]]),f.length===1?e.title&&e.type!="rightColumn"?m.push({id:f[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):m.push({id:0,type:"number"},{id:f[0],type:"custom"}):f.length===2&&m.push({id:f[0],type:"custom"},{id:0,type:"number"},{id:f[1],type:"custom"}),m}const p=t.computed(()=>e.type=="rightColumn"||e.title!=""?u():i()),d=()=>{e.visible&&n("blur")},h=m=>{const k=s.value;k&&!k.contains(m.target)&&d()};t.watch(()=>e.visible,m=>{r.value=m,m?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function C(m,k){k.stopPropagation(),l.value=m.id,(m.type=="number"||m.type=="custom")&&(n("input",m.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+m.id)),m.type=="lock"&&y(),m.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function b(m){m.stopPropagation()}function g(m){m.preventDefault(),l.value=void 0}function y(){n("update:visible",!1),n("close")}return{...o,delImg:bk,lockImg:kk,clickKeyIndex:l,defaultKey:i,closeBoard:y,onTouchEnd:g,onTouchMove:b,onTouchstart:C,keysList:p,genCustomKeys:u,getBasicKeys:c,root:s,show:r}}}),Nk={ref:"root"},Bk={class:"fox-number-keyboard"},Ak={key:0,class:"fox-number-keyboard__header"},Tk={class:"fox-number-keyboard__title"},$k={class:"fox-number-keyboard__body"},Vk={class:"fox-number-keyboard__keys"},Ek=["onTouchstart"],Dk=["src"],Ik=["src"],vk={key:0,class:"fox-number-keyboard__sidebar"},xk={class:"fox-key__wrapper"},qk=["src"];function Pk(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",Nk,[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",Bk,[e.title?(t.openBlock(),t.createElementBlock("div",Ak,[t.createElementVNode("h3",Tk,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",$k,[t.createElementVNode("div",Vk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,i=>(t.openBlock(),t.createElementBlock("div",{key:"key"+i.id,class:t.normalizeClass(["fox-key__wrapper",{"fox-key__wrapper--wider":i.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{"fox-key--active":i.id==e.clickKeyIndex},{"fox-key--lock":i.type=="lock"},{"fox-key--delete":i.type=="delete"}]),onTouchstart:c=>e.onTouchstart(i,c),onTouchmove:n[1]||(n[1]=c=>e.onTouchMove(c)),onTouchend:n[2]||(n[2]=c=>e.onTouchEnd(c))},[i.type=="number"||i.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.id),1)],64)):t.createCommentVNode("",!0),i.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,Dk)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,Ik)):t.createCommentVNode("",!0)],42,Ek)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",vk,[t.createElementVNode("div",xk,[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,qk)],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 ga=le(wk,[["render",Pk]]),{componentName:Mk,create:Lk}=_("swipe"),zk=Lk({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(()=>({[Mk]:!0})),o=k=>k.value?.clientWidth||0,l=t.ref(),r=t.computed(()=>o(l)),s=t.ref(),i=t.computed(()=>o(s));let c=!1,u="",p="";const d=t.reactive({offset:0,moving:!1}),h=(k="")=>{c=!0,k&&(d.offset=k==="left"?-i.value:r.value),n("open",{name:e.name,position:u||k})},C=()=>{d.offset=0,c=!1,n("close",{name:e.name,position:u})},b=t.computed(()=>({transform:`translate3d(${d.offset}px, 0, 0)`})),g=k=>{u=k>0?"right":"left";let f=k;switch(u){case"left":c&&p===u?f=-i.value:f=Math.abs(k)>i.value?-i.value:k;break;case"right":c&&p===u?f=r.value:f=Math.abs(k)>r.value?r.value:k;break}d.offset=f},y=ot();return{classes:a,touchStyle:b,...{onTouchStart(k){e.disabled||y.start(k)},onTouchMove(k){e.disabled||(y.move(k),y.isHorizontal()&&(d.moving=!0,g(y.deltaX.value),e.touchMovePreventDefault&&k.preventDefault(),e.touchMoveStopPropagation&&k.stopPropagation()))},onTouchEnd(){if(d.moving)switch(d.moving=!1,p=u,u){case"left":Math.abs(d.offset)<=i.value/2?C():(d.offset=-i.value,h());break;case"right":Math.abs(d.offset)<=r.value/2?C():(d.offset=r.value,h());break}}},leftRef:l,rightRef:s,open:h,close:C}}}),Ok={class:"fox-swipe__left",ref:"leftRef"},Rk={class:"fox-swipe__content"},Fk={class:"fox-swipe__right",ref:"rightRef"};function Kk(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",Ok,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",Rk,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Fk,[t.renderSlot(e.$slots,"right")],512)],38)}const Zt=le(zk,[["render",Kk]]),{componentName:Uk,create:Hk}=_("action-sheet"),jk=Hk({components:{Popup:he,Loading:ae.Loading},props:{...Ke,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(()=>({[Uk]:!0}));return{slotDefault:a,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(c,u)=>{!c.disable&&!c.loading&&(n("choose",c,u),n("update:visible",!1))},close:c=>{n("close",c),n("update:visible",!1)},classes:o}}}),Wk={key:0,class:"fox-action-sheet__title"},Yk={key:1},Xk={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},Qk={key:1,class:"fox-action-sheet__menu"},Gk=["onClick"],Zk={key:1},Jk={class:"fox-action-sheet__subdesc"};function _k(e,n,a,o,l,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("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",Wk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Yk,[e.description?(t.openBlock(),t.createElementBlock("view",Xk,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",Qk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:t.normalizeStyle({color:e.isHighlight(c)||c.color}),key:u,onClick:p=>e.chooseItem(c,u)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",Zk,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",Jk,t.toDisplayString(c[e.optionSubTag]),1)],14,Gk))),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 ya=le(jk,[["render",_k]]),{componentName:eS,create:tS}=_("backtop"),ba=tS({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(()=>({[eS]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function i(b=0){o.scrollEl instanceof Window?window.scrollTo(0,b):o.scrollEl.scrollTop=b}function c(){let b=Ge(function g(){var y=e.duration-Math.max(0,o.startTime-+new Date+e.duration),m=y*-o.scrollTop/e.duration+o.scrollTop;i(m),b=Ge(g),(y==e.duration||m==0)&&ir(b)})}function u(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function p(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function d(b){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",b)}function h(){C.value?o.scrollEl=C.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),u()}t.onMounted(()=>{e.distance==0&&(o.backTop=!0),h()}),t.onUnmounted(()=>{p()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,h())}),t.onDeactivated(()=>{o.keepAlive=!0,p()});const C=t.computed(()=>{if(typeof a.content=="function"){const b=a.content();return Array.isArray(b)?b[0]:b}return null});return()=>{const b=[];C.value&&b.push(C.value);const g=[];if(typeof a.default=="function")g.push(a.default());else{const m=t.h(ae.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});g.push(m)}const y=t.h("div",{class:l.value,style:r.value,onClick:d},g);return b.push(y),b}}}),{componentName:nS,create:oS}=_("drag"),lS=oS({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(()=>({[nS]:!0}));function r(){const d=document.documentElement;o.elWidth=a.value.offsetWidth,o.elHeight=a.value.offsetHeight,o.screenWidth=d.clientWidth,o.screenHeight=d.clientHeight}function s(d){o.boundary.left?+d.style.left.split("px")[0]>o.boundary.left?(d.style.left=+d.style.left.split("px")[0]-10+"px",je(()=>{s(d)})):d.style.left=`${o.boundary.left}px`:+d.style.left.split("px")[0]>10?(d.style.left=+d.style.left.split("px")[0]-10+"px",je(()=>{s(d)})):d.style.left="0px"}function i(d,h){h-parseInt(d.style.left.split("px")[0])>10?(d.style.left=parseInt(d.style.left.split("px")[0])+10+"px",je(()=>{i(d,h)})):d.style.left=h+"px"}function c(d){d.preventDefault();const h=d.currentTarget;if(d.targetTouches.length===1){const C=d.targetTouches[0];o.nx=C.clientX-o.position.x,o.ny=C.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const b=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>b?o.xPum=b:o.xPum<=o.boundary.left&&(o.xPum=o.boundary.left),o.yPum<o.boundary.top?o.yPum=o.boundary.top:o.yPum>o.screenHeight-o.elHeight-o.boundary.bottom&&(o.yPum=o.screenHeight-o.elHeight-o.boundary.bottom),e.direction!="y"&&(h.style.left=o.xPum+"px"),e.direction!="x"&&(h.style.top=o.yPum+"px")}}function u(d){const h=d.currentTarget;let b=d.changedTouches[0].clientX;const g=o.screenWidth-o.elWidth-o.boundary.right;b>g?b=g:b<o.boundary.left?b=o.boundary.left:b=b<o.screenWidth/2?o.boundary.left:g,e.direction!="y"&&e.attract&&(b<o.screenWidth/2?je(()=>{s(h)}):je(()=>{i(h,g)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function p(d){const h=d.currentTarget,C=d.touches[0],b=d.targetTouches[0];o.startTop=h.offsetTop,o.startLeft=h.offsetLeft,o.position.x=C.clientX,o.position.y=C.clientY,o.nx=b.clientX-o.position.x,o.ny=b.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny}return t.onMounted(()=>{r(),o.boundary=e.boundary}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1)}),t.onDeactivated(()=>{o.keepAlive=!0;const d=a;d.value.removeEventListener("touchstart",p),d.value.removeEventListener("touchmove",c),d.value.removeEventListener("touchend",u)}),{classes:l,myDrag:a,touchStart:p,touchMove:c,touchEnd:u}}});function aS(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 ka=le(lS,[["render",aS]]),rS={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}},sS=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function iS(e,n,a,o,l){return{props:{...Ke,...rS},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:u}=ce.useFoxI18n(n),p=u(r,["confirmText","cancelText"]),d=e,h=t.ref(r.visible);t.watch(()=>r.visible,w=>{h.value!==w&&(h.value=w,w&&c("opened"))});const C=w=>{h.value=w,c("update:visible",w),c("update",w)},b=w=>{if(c(w),!(w==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const S=r.beforeClose(w);pt(S)?S.then(B=>{B&&(C(!1),c("closed",w))}):S===!0&&(C(!1),c("closed",w))}else C(!1),c("closed",w)},g=()=>{b("confirm")},y=()=>{b("cancel")},m=()=>{b("close")},k=(w,S)=>sS(w)?(S.src=w,t.h("img",S)):typeof w=="string"?(Array.isArray(S.class)?S.class.push(w):S.class&&typeof S.class=="object"?S[`${w}`]=!0:typeof S.class=="string"?S.class=`${S.class}, ${w}`:S.class=w,t.h(r.tag,S)):t.h(w,S),f=()=>{const w=[];if(i.header){const B=i.header();w.push(B)}else{if(r.title){const B=t.h("view",{class:`${d}__header-title`},[r.title]);w.push(B)}if(r.showClose){const B={class:[`${d}__header-close-icon`],onClick:m},$=r.closeIcon??l,D=k($,B);w.push(D)}}if(w.length===0)return null;const S={class:[`${d}__header`]};return t.h("view",S,w)},A=()=>{const w=[];if(i.default)w.push(i.default());else{const B={class:[`${d}__content`]};if(r.textAlign&&B.class.push(r.textAlign),typeof r.content=="string"){B.innerHTML=r.content;const $=t.h("view",B);w.push($)}else if(typeof r.content=="function"){const $=t.h("view",B,[r.content()]);w.push($)}else{const $=t.h("view",B,[r.content]);w.push($)}}if(w.length===0)return null;const S={class:[`${d}__body`]};return t.h("view",S,w)},N=()=>{if(!r.showFooter)return null;const w=[];if(i.footer)w.push(i.footer());else if(r.plain){if(r.showCancelButton){const B={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},onClick:y};r.cancelButtonClass&&B.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(B.style,r.cancleButtonStyle);const $=t.h("view",B,[r.cancelButtonText??p.cancelText.value]);w.push($)}if(r.showConfirmButton){const B={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},onClick:g};r.confirmButtonClass&&B.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(B.style,r.confirmButtonStyle);const $=t.h("view",B,[r.confirmButtonText??p.confirmText.value]);w.push($)}}else{if(r.showCancelButton){const B={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:y};r.cancelButtonClass&&B.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(B.style,r.cancleButtonStyle);const $=t.h(o,B,{default:()=>[r.cancelButtonText??p.cancelText.value]});w.push($)}if(r.showConfirmButton){const B={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:g};r.confirmButtonClass&&B.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(B.style,r.confirmButtonStyle);const $=t.h(o,B,{default:()=>[r.confirmButtonText??p.confirmText.value]});w.push($)}}if(w.length===0)return null;const S={class:[`${d}__footer`,`${d}__footer--${r.footerDirection}`]};return t.h("view",S,w)};return()=>{const w=[],S=f();S&&w.push(S);const B=A();B&&w.push(B);const $=N();$&&w.push($);const D={class:{[`${d}`]:!0,[`${d}--plain`]:r.plain}},E=t.h("view",D,w),U=[`${d}__popup`];r.popClass&&U.push(r.popClass);const J={};r.width&&(J.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(J.height=typeof r.height=="number"?`${r.height}px`:r.height);const V={...be(r,Ke),popClass:U.join(" "),style:J,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":C,position:r.position,onClickOverlay:m,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,V,{default:()=>E})}}}}const{componentName:cS,create:dS,scope:uS}=_("dialog"),ai=dS(iS(cS,uS,he,Re,ae.Close));class fS{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 mS{options=new fS;constructor(n){let a=Object.assign(this.options,n),o=document.body,l=a.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=a.teleport);const r=document.createElement("view"),s=`dialog-${a.id}`;r.id=s;const i={setup(){return a.onUpdate=u=>{if(u===!1){const p=document.querySelector(`#${s}`);p&&p.parentNode?.removeChild(p)}},a?.onOpened&&a?.onOpened(),()=>t.h(ai,a)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Jt=function(e){return new mS(e)};Jt.install=e=>{e.use(ai),e.config.globalProperties.$dialog=Jt};const pS={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}},hS=(e,n,a)=>({props:{...pS},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ce.useFoxI18n(n),i=s(o,["pullingText","loosingText","loadingText"]),c=Un(),u=t.ref(),p=js(u),d=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=t.computed(()=>({[e]:!0})),C=t.computed(()=>{switch(d.status){case"pulling":return r.pulling?"":i.pullingText.value;case"loosing":return r.loosing?"":i.loosingText.value;case"loading":return r.loading?"":i.loadingText.value;default:return""}}),b=t.computed(()=>({transitionDuration:`${o.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),g=t.computed(()=>{const S={};return o.headHeight!=50&&(S.height=me(o.headHeight)),S}),y=S=>{const B=+(o.pullDistance||o.headHeight);let $=S;return S>B&&(S<B*2?$=(S+B)/2:$=B+S/4),Math.round($)},m=(S,B)=>{const $=+(o.pullDistance||o.headHeight);d.distance=S,B?d.status="loading":S===0?d.status="normal":S<$?d.status="pulling":d.status="loosing",l("change",{status:d.status,distance:S})},k=()=>d.status!=="loading"&&d.status!=="complete",f=()=>p.value==window?Ws()==0:p.value&&p.value.scrollTop==0,A=S=>{k()&&(f()?(c.start(S),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},N=S=>{k()&&d.moving&&(c.move(S),c.isVertical()&&c.state.deltaY>0&&d.isPullRefresh&&(S.cancelable&&S.preventDefault(),m(y(c.state.deltaY))))},w=()=>{d.moving=!1,d.isPullRefresh&&k()&&c.state.deltaY&&(d.status==="loosing"?(m(+o.headHeight,!0),l("update:modelValue",!0),t.nextTick(()=>l("refresh"))):m(0)),setTimeout(()=>{c.reset()},0)};return t.watch(()=>o.modelValue,S=>{S?m(+o.headHeight,!0):m(0)}),()=>{const S=[];let B=null;if(d.status==="loading"){if(B=r?.loading?.()??null,!B){const P={class:["fox-pull-refresh-container-topbox-icon"]};B=t.h(a,P)}}else d.status==="pulling"?B=r?.pulling?.()??null:d.status==="loosing"&&(B=r?.loosing?.()??null);B&&S.push(B);const $={class:["fox-pull-refresh-container-topbox-text"]},D=t.h("dive",$,[C.value]);S.push(D);const E={class:["fox-pull-refresh-container-topbox"],style:g.value},U=t.h("div",E,S),J={class:"fox-pull-refresh-container",style:b.value},I=t.h("div",J,[U,r?.default?.()]),V={ref:u,class:h.value};return Kn()?Object.assign(V,{onTouchstart:A,onTouchmove:N,onTouchend:w}):Object.assign(V,{onMousedown:A,onMousemove:N,onMouseup:w}),t.h("div",V,[I])}}}),{componentName:gS,create:yS,scope:bS}=_("pull-refresh"),Sa=yS(hS(gS,bS,ae.Loading)),{create:kS}=_("notify"),SS=kS({components:{[he.name]:he},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const a=()=>{e.onClick&&e.onClick()};let o=null;const l=()=>{o&&clearTimeout(o),o=null},r=()=>{n("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,u=>{s.value=e.visible;const p=e.duration;u&&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 CS(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 Ca=le(SS,[["render",CS]]),wa={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let Tt=[],_t=[];const ri=e=>{if(e){const n=document.getElementById(e);_t=_t.filter(a=>a.id!==e),Tt=Tt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Tt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),_t=[],Tt=[]},wS=e=>{const n=document.getElementById(e.id);if(n){const a=_t.find(l=>l.id===e.id);a?e={...wa,...a,...e}:e={...wa,...e};const o=t.createVNode(Ca,e);return t.render(o,n),o.component.data}},en=e=>{e.unmount=ri;let n;if(e.id){if(n=e.id,Tt.find(r=>r===e.id))return wS(e)}else n=new Date().getTime()+"";e={...wa,...e},e.id=n,Tt.push(e.id),_t.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(Ca,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},tn=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Na={text(e,n={}){return tn(e),en({...n,msg:e})},primary(e,n={}){return tn(e),en({...n,msg:e,type:"primary"})},success(e,n={}){return tn(e),en({...n,msg:e,type:"success"})},danger(e,n={}){return tn(e),en({...n,msg:e,type:"danger"})},warn(e,n={}){return tn(e),en({...n,msg:e,type:"warning"})},hide(){ri()},install(e){e.use(Ca)}},{create:NS}=_("toast"),BS=NS({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,C=>{C&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),u=()=>{const C=fe(e.iconSize);return t.h(e.icon,{width:C,height:C,color:e.iconColor})},p=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:u,hasIcon:c,toastBodyClass:p,toastIconWrapperClass:d,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),AS={key:1,class:"fox-toast-title"},TS=["innerHTML"];function $S(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",AS,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,TS)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Ba=le(BS,[["render",$S]]),Aa={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 $t=[],nn=[];const si=e=>{if(e){const n=document.getElementById(e);nn=nn.filter(a=>a.id!==e),$t=$t.filter(a=>a!==e),n&&document.body.removeChild(n)}else $t.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),nn=[],$t=[]},VS=e=>{const n=document.getElementById(e.id);if(n){const a=nn.find(l=>l.id===e.id);a?e={...Aa,...a,...e}:e={...Aa,...e};const o=t.createVNode(Ba,e);return t.render(o,n),Vt}},on=e=>{e.unmount=si;let n;if(e.id){if(n=e.id,$t.find(l=>l===e.id))return VS(e)}else n=new Date().getTime()+"";e={...Aa,...e},e.id=n,$t.push(e.id),nn.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Ba,e);return t.render(o,a),document.body.appendChild(a),Vt},So=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Vt={text(e,n={}){return So(e),on({...n,type:"text",msg:e})},success(e,n={}){return So(e),on({icon:ae.Success,...n,msg:e,type:"success"})},fail(e,n={}){return So(e),on({icon:ae.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return So(e),on({icon:ae.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return on({icon:ae.Loading,...n,msg:e,type:"loading"})},hide(e){si(e)},install(e){e.use(Ba),e.config.globalProperties.$toast=Vt}},{create:ES}=_("audio"),DS=ES({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:ae.Service,[Qt.name]:Qt},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 g=["webkitVisibilityState","visibilitychange"];try{for(let y=0;y<g.length;y++)document.addEventListener(g[y],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(y){y.message}});const r=g=>{const y=o.value;e.autoplay&&y&&y.paused&&y.play(),l.second=y.duration,l.duration=b(y.duration),n("can-play",g)},s=g=>{l.currentTime=parseInt(g.target.currentTime)},i=()=>{l.currentTime>0&&l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},c=()=>{const g=o.value;l.playing?(g.pause(),l.handPlaying=!1):(g.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},u=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},p=g=>{l.currentDuration=b(g),l.percent=g/l.second*100},d=()=>{l.playing=!1,n("ended")},h=g=>{const y=o.value;y.currentTime=l.second*g/100,n("changeProgress",y.currentTime)},C=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},b=g=>{if(!g)return"00:00:00";let y=parseInt(g),m=Math.floor(y/3600),k=Math.floor((y-m*3600)/60),f=y-m*3600-k*60,A="";return A+=("0"+m.toString()).slice(-2)+":",A+=("0"+k.toString()).slice(-2)+":",A+=("0"+f.toString()).slice(-2),A};return t.watch(()=>l.currentTime,g=>{p(g)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:C,forward:u,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:i,forward:u,changeStatus:c,progressChange:h,audioEnd:d,onTimeupdate:s,handleMute:C,onCanplay:r,slots:a}}}),IS={class:"fox-audio"},vS={key:0,class:"fox-audio__progress"},xS={class:"fox-audio__time"},qS={class:"fox-audio__bar"},PS={class:"fox-audio__time"},MS={key:1,class:"fox-audio__icon"},LS=["controls","src","preload","autoplay","loop","muted"];function zS(e,n,a,o,l,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",IS,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",vS,[t.createElementVNode("div",xS,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",qS,[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",PS,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",MS,[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,LS)])}const Ta=le(DS,[["render",zS]]),{create:OS,scope:RS}=_("audio-operate"),FS=OS({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=ce.useFoxI18n(RS),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}}}),KS={class:"fox-audio-operate"};function US(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",KS,[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 $a=le(FS,[["render",US]]),{componentName:HS,create:jS}=_("avatar"),WS=jS({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:a,bgColor:o,color:l}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),u=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const b=s?.avatarGroupRef?.value?.children;b&&C(b)});const p=t.computed(()=>({[HS]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||s?.props?.shape||"normal"}`]:!0})),d=t.computed(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${o.value}`,color:`${l.value}`,marginLeft:u.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(u.maxIndex-u.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),C=b=>{u.maxIndex=b.length;for(let g=0;g<b.length;g++)b[g]&&b[g].classList&&b[g].classList[0]=="fox-avatar"&&b[g].setAttribute("data-index",g+1);u.index=i?.value?.dataset?.index,u.index==u.maxIndex&&u.index!=s?.props?.maxCount&&(u.showMax=!0)};return{classes:p,styles:d,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(u)}}});function YS(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 ln=le(WS,[["render",YS]]),{componentName:XS,create:QS}=_("avatar-group"),GS=QS({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}){const{size:o}=t.toRefs(e),l=t.ref(null),r=t.ref(0),s=t.computed(()=>({[XS]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:l,index:r}),{classes:s,avatarGroupRef:l}}});function ZS(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 Va=le(GS,[["render",ZS]]);var Co=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(Co||{});function JS(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:_S,create:e1}=_("list"),ii=document.documentElement.clientHeight||document.body.clientHeight||667,t1=e1({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:ii},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,ii)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),u=t.computed(()=>({[_S]:!0})),p=t.computed(()=>r.list.slice(r.start,c.value)),d=()=>{if(l.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let m=0;m<r.list.length;++m)r.cachePositions[m]={index:m,height:e.height,top:m*e.height,bottom:(m+1)*(e.height+e.margin),dValue:0}},C=()=>{let m=l.value.childNodes;m=Array.from(m).filter(S=>S.nodeType===1);const k=m[0];m.forEach((S,B)=>{if(!S)return;const $=Pe(S),{height:D}=$,U=r.cachePositions[B+r.start].height-D;U&&(r.cachePositions[B+r.start].bottom-=U,r.cachePositions[B+r.start].height=D,r.cachePositions[B+r.start].dValue=U)});let f=0;k&&(f=r.start);const A=r.cachePositions.length;let N=r.cachePositions[f].dValue;r.cachePositions[f].dValue=0;for(let S=f+1;S<A;++S){const B=r.cachePositions[S];r.cachePositions[S].top=r.cachePositions[S-1].bottom,r.cachePositions[S].bottom=r.cachePositions[S].bottom-N,B.dValue!==0&&(N+=B.dValue,B.dValue=0)}const w=r.cachePositions[A-1].bottom;r.phantomHeight=w},b=(m=0)=>{let k=JS(r.cachePositions,m,(A,N)=>{const w=A.bottom;return w===N?Co.eq:w<N?Co.lt:Co.gt});return r.cachePositions[k].bottom<m&&(k+=1),k},g=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,a.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},y=()=>{const m=a.value?.scrollTop,{originStartIndex:k}=r,f=b(m);f!==k&&(r.originStartIndex=f,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&n("scroll-bottom")),n(m>r.scrollTop?"scroll-up":"scroll-down",m),r.scrollTop=m};return t.watch(()=>e.listData,m=>{if(r.list=m.slice(),r.list.length===m.length)h(),C();else{g();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&C()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:d,visibleData:p,classes:u,getContainerHeight:s,handleScrollEvent:y}}});function n1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform()}),ref:"actualContent"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:s},[t.renderSlot(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}const Ea=le(t1,[["render",n1]]),{componentName:o1,create:l1}=_("circleprogress"),a1=l1({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(()=>({[o1]:!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(()=>ve(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let p=283,d=p*Number(e.progress)/100;return{stroke:ve(e.color)?`url(#${o})`:e.color,strokeDasharray:`${d}px ${p}px`}}),c=t.computed(()=>({stroke:e.pathColor})),u=t.computed(()=>{if(!ve(e.color))return;let p=e.color;const d=Object.keys(p).sort((C,b)=>parseFloat(C)-parseFloat(b));let h=[];return d.map((C,b)=>{let g={key:"",value:""};g.key=C,g.value=p[C],h.push(g)}),h});return{classes:l,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:u,slotDefault:a,refRandomId:o}}}),r1={viewBox:"0 0 100 100"},s1=["id"],i1=["offset","stop-color"],c1=["d","stroke-width"],d1=["d","stroke","stroke-linecap","stroke-width"],u1={class:"fox-circleprogress-text"},f1={key:0};function m1(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",r1,[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,i1))),128))],8,s1)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,c1),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,d1)])),t.createElementVNode("div",u1,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",f1,t.toDisplayString(e.progress)+"%",1))])],6)}const Da=le(a1,[["render",m1]]),{componentName:p1,create:h1}=_("noticebar"),g1=h1({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:ae.Notice,CircleClose:ae.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(()=>({[p1]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),u=t.computed(()=>{let S={};return e.color&&(S.color=e.color),e.background&&(S.background=e.background),e.direction=="vertical"&&(S.height=`${e.height}px`),S}),p=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),d=t.computed(()=>{let S={};if(e.complexAm)S={transform:`translateY(${r.distance}px)`};else if(r.animate){let B=~~(e.height/e.speed/4);S={transition:`all ${B==0?~~(e.height/e.speed):B}s`,"margin-top":`-${e.height}px`}}return S});t.watch(()=>e.text,S=>{h()}),t.watch(()=>e.list,S=>{r.scrollList=[...S]});const h=S=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const B=o.value.getBoundingClientRect().width,$=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?$>B:e.scrollable,r.isCanScroll?(r.wrapWidth=B,r.offsetWidth=$,r.duration=$/e.speed,r.animationClass="play"):r.animationClass=""},0)},C=S=>{n("click",S)},b=S=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",S)},g=S=>{r.firstRound=!1,n("across-end",S),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},y=()=>{m(),r.timer=setInterval(m,~~(e.height/e.speed/4*1e3)+e.standTime)},m=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},k=()=>{r.timer=setInterval(()=>{let S=100;for(let B=0;B<S;B++)f(B,!(B<S-1))},e.standTime+100*e.speed)},f=(S,B)=>{setTimeout(()=>{r.distance-=e.height/100,B&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},S*e.speed)},A=S=>{n("click",S)},N=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(a.default?w(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?k():y()},e.standTime)):h(e.text)}),t.watch(()=>a.default?a.default():[],S=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),w(S))});const w=S=>{S&&S.length>0&&(r.scrollList=S[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:u,contentStyle:p,horseLampStyle:d,wrap:o,content:l,handleClick:C,onClickIcon:b,onAnimationEnd:g,go:A,handleClickIcon:N,slots:a,toPxString:me,wrapContentClass:c}}}),y1={key:0,class:"fox-noticebar__page-lefticon"},b1={ref:"wrap",class:"fox-noticebar__page-wrap"},k1={class:"showNotica"},S1=["onClick"];function C1(e,n,a,o,l,r){const s=t.resolveComponent("Notice"),i=t.resolveComponent("CircleClose"),c=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:n[3]||(n[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[e.showLeftIcon?(t.openBlock(),t.createElementBlock("view",y1,[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",b1,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u)),"on:webkitAnimationEnd":n[1]||(n[1]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=t.withModifiers((...u)=>e.onClickIcon&&e.onClickIcon(...u),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",k1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(u,p)=>(t.openBlock(),t.createBlock(c,{key:p,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:u},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(u,p)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:p,style:t.normalizeStyle({height:e.toPxString(e.height),lineHeight:e.toPxString(e.height)}),onClick:d=>e.go(u)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(u),1)])],12,S1))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=u=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const Ia=le(g1,[["render",C1]]),w1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR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qFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{create:A1,scope:T1}=_("empty"),$1={empty:w1,error:N1,network:B1},V1=A1({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=ce.useFoxI18n(T1),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:$1[o.value];return{...a,imageUrl:i,imgStyle:r}}}),E1={class:"fox-empty"},D1=["src"],I1={key:1,class:"fox-empty-description"};function v1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",E1,[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,D1)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",I1,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const va=le(V1,[["render",v1]]),{create:x1,scope:q1}=_("video"),P1=x1({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}=ce.useFoxI18n(q1),o=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),l=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,w=>{w.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,w=>{o.state.isMuted=w?w.muted:!1},{immediate:!0});const s=()=>{o.videoElm=l.value,e.options.autoplay&&setTimeout(()=>{o.videoElm.play()},200),e.options.touchPlay&&(o.showTouchMask=!0),e.options.playsinline&&(o.videoElm.setAttribute("playsinline",e.options.playsinline),o.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),o.videoElm.setAttribute("x5-video-player-type","h5-page"),o.videoElm.setAttribute("x5-video-player-fullscreen",!1)),b(),o.showToolbox?i():(o.videoElm.addEventListener("play",()=>{o.state.playing=!0,n("play",o.videoElm)}),o.videoElm.addEventListener("pause",()=>{o.state.playing=!1,n("pause",o.videoElm)}),o.videoElm.addEventListener("ended",h),o.videoElm.addEventListener("timeupdate",bn(d,1e3)))},i=()=>{const w=l.value,S=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=w,o.progressBar.progressElm=S,o.progressBar.pos=S.getBoundingClientRect(),o.videoSet.progress.width=Math.round(S.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",bn(d,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{C()}else o.videoElm.pause(),n("pause",o.videoElm)},u=w=>{var S=Math.floor(w/3600);S<10&&(S="0"+S);var B=Math.floor(w%3600/60);B<10&&(B="0"+B);var $=Math.round(w%3600%60);$<10&&($="0"+$);var D="";return S!=0?D=S+":"+B+":"+$:D=B+":"+$,D},p=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},d=()=>{const w=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*w),o.videoSet.totalTime=u(o.videoElm.duration),o.videoSet.displayTime=u(o.videoElm.currentTime),n("time",o.videoSet.displayTime,o.videoSet.totalTime)},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)},C=()=>{o.state.isError=!0},b=()=>{o.state.vol=e.options.volume},g=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},y=()=>{},m=w=>{let B=w.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 $=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&f($,o.videoElm.duration)},k=w=>{let B=w.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=B;let $=B/o.videoSet.progress.width;o.videoElm.duration&&f($,o.videoElm.duration)},f=(w,S)=>{o.videoElm.currentTime=Math.floor(w*S)},A=()=>{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:C,isDisabled:r,play:c,handleMuted:g,touchSlidSrart:y,touchSlidMove:m,touchSlidEnd:k,retry:A,fullScreen:N,t:a}}}),M1={class:"fox-video",ref:"videocon"},L1=["muted","autoplay","loop","poster","controls","preload"],z1=["src","type"],O1={class:"fox-video-controller__now"},R1={class:"fox-video-controller__progress"},F1={class:"fox-video-controller__progress-value",ref:"progressBar"},K1={class:"fox-video-controller__played",ref:"playedBar"},U1={class:"fox-video-controller__total"},H1={class:"fox-video-error"},j1={class:"fox-video-error-tip"};function W1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",M1,[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,z1)],40,L1),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",O1,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",R1,[t.createElementVNode("div",F1,[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",K1,null,512)],512)]),t.createElementVNode("div",U1,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",H1,[t.createElementVNode("p",j1,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...s)=>e.retry&&e.retry(...s))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const Et=le(P1,[["render",W1]]),{create:Y1,componentName:X1}=_("steps"),xa=Y1({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=X1;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:Q1,componentName:G1}=_("step"),Z1=Q1({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=G1;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:s,handleClickStep:i}}}),J1={class:"fox-step-head"},_1={class:"fox-step-icon-inner"},eC={key:1,class:"fox-step-inner"},tC={class:"fox-step-main"},nC={class:"fox-step-title"},oC={key:0},lC={key:0,class:"fox-step-content"},aC=["innerHTML"];function rC(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",J1,[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",_1,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",eC,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",tC,[t.createElementVNode("view",nC,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",oC,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",lC,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,aC)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const qa=le(Z1,[["render",rC]]),{create:sC,componentName:Pa}=_("swiper"),iC=sC({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=ot(),s=t.computed(()=>({[Pa]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const v=Pa;return{[`${v}-inner`]:!0,[`${v}-vertical`]:i.value}}),u=t.computed(()=>{const v=Pa;return{[`${v}-pagination`]:!0,[`${v}-pagination-vertical`]:i.value}}),p=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),d=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>l.children.length),C=t.computed(()=>l[i.value?"height":"width"]),b=t.computed(()=>h.value*C.value),g=t.computed(()=>l.rect?(i.value?l.rect.height:l.rect.width)-C.value*h.value:0),y=t.computed(()=>(l.active+h.value)%h.value),m=()=>{let v=0;v=l.offset,l.style={transitionDuration:`${l.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${v}px)`,[i.value?"height":"width"]:`${C.value*h.value}px`,[i.value?"width":"height"]:`${i.value?l.width:l.height}px`}},k=v=>{let O=[];const H=l.childrenVNode.length;let L=a?.default?.();if(L=L.filter(Z=>Z.children&&Array.isArray(Z.children)),L.forEach(Z=>{O=O.concat(Z.children)}),!H)l.childrenVNode=O.slice(),v.proxy&&l.children.push(v.proxy);else if(H>O.length)l.children=l.children.filter(Z=>v.proxy!==Z);else if(H<O.length){for(let Z=0;Z<H;Z++)if(O[Z].key!==l.childrenVNode[Z].key){v.proxy&&l.children.splice(Z,0,v.proxy),v.vnode&&l.childrenVNode.splice(Z,0,v.vnode);break}H!==O.length&&(v.proxy&&l.children.push(v.proxy),v.vnode&&l.childrenVNode.push(v.vnode))}else l.childrenVNode=O.slice(),v.proxy&&l.children.push(v.proxy)},f=(v,O=0)=>{let H=v*C.value;e.loop||(H=Math.min(H,-g.value));let L=O-H;return e.loop||(L=Ye(L,g.value,0)),L},A=v=>{const{active:O}=l;return v?e.loop?Ye(O+v,-1,h.value):Ye(O+v,0,h.value-1):O},N=({pace:v=0,offset:O=0,isEmit:H=!1})=>{if(h.value<=1)return;const{active:L}=l,Z=A(v),te=f(Z,O);if(e.loop){if(l.children[0]&&te!==g.value){const F=te<g.value;l.children[0].setOffset(F?b.value:0)}if(l.children[h.value-1]&&te!==0){const F=te>0;l.children[h.value-1].setOffset(F?-b.value:0)}}l.active=Z,l.offset=te,H&&L!==l.active&&n("change",y.value),m()},w=()=>{l.moving=!0,l.active<=-1&&N({pace:h.value}),l.active>=h.value&&N({pace:-h.value})},S=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},B=v=>{w(),r.reset(),Ge(()=>{Ge(()=>{l.moving=!1,N({pace:v,isEmit:!0})})})},$=()=>{B(-1)},D=()=>{B(1)},E=v=>{w(),r.reset(),Ge(()=>{l.moving=!1;let O;e.loop&&h.value===v?O=l.active===0?0:v:O=v%h.value,N({pace:O-l.active,isEmit:!0})})},U=()=>{e.autoPlay<=0||h.value<=1||(S(),l.autoplayTimer=setTimeout(()=>{D(),U()},Number(e.autoPlay)))},J=(v=+e.initPage)=>{S(),l.rect=o.value.getBoundingClientRect(),v=Math.min(h.value-1,v),l.width=e.width?+e.width:l.rect.width,l.height=e.height?+e.height:l.rect.height,l.active=v,l.offset=f(l.active),l.moving=!0,m(),U()},I=v=>{e.isPreventDefault&&v.preventDefault(),e.isStopPropagation&&v.stopPropagation(),e.touchable&&(r.start(v),l.touchTime=Date.now(),S(),w())},V=v=>{e.touchable&&l.moving&&(r.move(v),d.value&&N({offset:p.value}))},P=v=>{if(!e.touchable||!l.moving)return;const O=p.value/(Date.now()-l.touchTime);if((Math.abs(O)>.3||Math.abs(p.value)>+(C.value/2).toFixed(2))&&d.value){let L=0;const Z=i.value?r.offsetY.value:r.offsetX.value;e.loop?L=Z>0?p.value>0?-1:1:0:L=-Math[p.value>0?"ceil":"floor"](p.value/C.value),N({pace:L,isEmit:!0})}else p.value&&N({pace:0});l.moving=!1,m(),U()};return t.provide("parent",{props:e,size:C,relation:k}),Ie({prev:$,next:D,to:E}),t.onDeactivated(()=>{S()}),t.onBeforeUnmount(()=>{S()}),t.watch(()=>e.initPage,v=>{t.nextTick(()=>{J(Number(v))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{J()})}),t.watch(()=>e.autoPlay,v=>{v>0?U():S()}),{state:l,classes:s,classesInner:c,classesPagination:u,container:o,activePagination:y,onTouchStart:I,onTouchMove:V,onTouchEnd:P}}});function cC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.classesInner),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classesPagination)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(s,i)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===i}),key:i},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const Dt=le(iC,[["render",cC]]),{create:dC,componentName:uC}=_("swiper-item"),fC=dC({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[uC]:!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 mC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const It=le(fC,[["render",mC]]),ci={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:pC}=_("image-preview-item"),hC=pC({props:{...ci,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},contentClose:{type:Boolean,default:!0}},emits:["close","scale"],components:{[Et.name]:Et,[It.name]:It},setup(e,{emit:n}){const a=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),o=ot(),l=t.computed(()=>{const{rootWidth:$,rootHeight:D}=e,E=D/$;return a.imageRatio>E}),r=t.computed(()=>{const $=e.image;if($&&$.src){const{scale:D,moveX:E,moveY:U,moving:J,zooming:I}=a,V={transitionDuration:I||J?"0s":".3s"};if(D!==1){const P=E/D,v=U/D;V.transform=`scale(${D}, ${D}) translate(${P}px, ${v}px)`}return V}return{}}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:$,rootHeight:D}=e,E=l.value?D/a.imageRatio:$;return Math.max(0,(a.scale*E-$)/2)}return 0}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:$,rootHeight:D}=e,E=l.value?D:$*a.imageRatio;return Math.max(0,(a.scale*E-D)/2)}return 0}),c=$=>{const{naturalWidth:D,naturalHeight:E}=$.target;a.imageRatio=E/D},u=()=>{p(1),a.moveX=0,a.moveY=0},p=$=>{$=Ye($,+e.minZoom,+e.maxZoom+1),$!==a.scale&&(a.scale=$,n("scale",{scale:$,index:e.initNo}))},d=()=>{const $=a.scale>1?1:2;p($),a.moveX=0,a.moveY=0},h=$=>Math.sqrt(($[0].clientX-$[1].clientX)**2+($[0].clientY-$[1].clientY)**2);let C,b,g,y,m,k,f;const A=$=>{const{touches:D}=$,{offsetX:E}=o;o.start($),f=D.length,C=a.moveX,b=a.moveY,k=Date.now(),a.moving=f===1&&a.scale!==1,a.zooming=f===2&&!E.value,a.zooming&&(g=a.scale,y=h($.touches))},N=$=>{const{touches:D}=$;if(o.move($),(a.moving||a.zooming)&&zo($,!0),a.moving){const{deltaX:E,deltaY:U}=o,J=E.value+C,I=U.value+b;a.moveX=Ye(J,-s.value,s.value),a.moveY=Ye(I,-i.value,i.value)}if(a.zooming&&D.length===2){const E=h(D),U=g*E/y;p(U)}},w=()=>{if(f==1&&e.video&&e.video.source||f>1)return;const{offsetX:$,offsetY:D}=o,E=Date.now()-k,U=250,J=5;$.value<J&&D.value<J&&E<U&&(m?(clearTimeout(m),m=null,d()):m=setTimeout(()=>{e.contentClose&&n("close"),m=null},U))},S=$=>{let D=!1;(a.moving||a.zooming)&&(D=!0,a.moving&&C===a.moveX&&b===a.moveY&&(D=!1),$.touches.length||(a.zooming&&(a.moveX=Ye(a.moveX,-s.value,s.value),a.moveY=Ye(a.moveY,-i.value,i.value),a.zooming=!1),a.moving=!1,C=0,b=0,g=1,a.scale<1&&u(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),zo($,D),w(),o.reset()},B=()=>{n("close")};return t.watch(()=>e.initNo,u),t.watch(()=>e.show,$=>{$||u()}),{...t.toRefs(a),onTouchStart:A,onTouchMove:N,onTouchEnd:S,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:B}}}),gC=["src"];function yC(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,gC)):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 bC=le(hC,[["render",yC]]),{create:kC}=_("image-preview"),SC=kC({props:{...ci,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:bC,CircleClose:ae.CircleClose,[he.name]:he,[Dt.name]:Dt},setup(e,{emit:n}){const a=t.ref(),o=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),l=t.computed(()=>{const p="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${p}-right`:`${p}-left`}`}),r=t.computed(()=>un(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=p=>{p!==o.active&&(o.active=p,n("change",o.active))},i=()=>{li(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},u=()=>{if(a.value){const p=Pe(a.value);o.rootHeight=p.height,o.rootWidth=p.width}};return t.watch(()=>e.show,p=>{o.showPop=p,p&&(s(e.initNo),u())}),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}}}),CC={class:"fox-image-preview",ref:"swipeRef"},wC={key:0,class:"fox-image-preview-index"};function NC(e,n,a,o,l,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),u=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(u,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=p=>e.showPop=p),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",CC,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(p,d)=>(t.openBlock(),t.createBlock(s,{key:d,video:d<e.videos.length?p:{},image:d>=e.videos.length?p:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",wC,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 di=le(SC,[["render",NC]]);class BC{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 AC{options=new BC;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=Yi(a,{name:"image-preview",components:[he,Et,Dt,It,ft],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(di,a))}})})}}const wo=e=>new AC(e);wo.install=e=>{e.use(di)};function TC(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{create:$C}=_("countup"),VC=$C({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:u}=t.reactive(e);t.watch(()=>e.customChangeNum,(B,$)=>{d(),y(0)}),t.watch(()=>e.machinePrizeLevel,(B,$)=>{r.prizeLevelTrun=B}),t.watch(()=>e.initNum,(B,$)=>{r.current=B,r.valFlag=!1,p()}),t.watch(()=>e.endNum,(B,$)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;s&&(i||c?u!="machine"&&y():(g(),setTimeout(()=>{r.valFlag=!0},300)))},d=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(B,$,D)=>{const E=(B.toString().split(".")[1]||"").length,U=($.toString().split(".")[1]||"").length,J=Math.pow(10,Math.max(E,U));return Number((B*J-$*J).toFixed(0))/J},C=B=>{let{num_total_len:$,pointNum:D,initDigit1:E,initDigit2:U,sortFlag:J}=r,I=J=="add"||J=="equal"?String(U)[B-($-D)]:10-Number(String(U)[B-($-D)]),V=J=="add"||J=="equal"?String(E)[B]:10-Number(String(E)[B]),P=B>$-D-1?-I*100+"%":B<=String(E).length-1?-V*100+"%":0;return P=="-1000%"&&(P=0),P},b=B=>{let{num_total_len:$,pointNum:D,initDigit1:E,initDigit2:U,sortFlag:J}=r,I=String(U)[B-($-D)];return B>$-D-1?I||0:B<=String(E).length-1?String(E)[B]:0},g=()=>{let{endNum:B,initNum:$,speed:D,toFixed:E}=e,U=setInterval(()=>{if($>B)if(r.current<=B||r.current<=D)r.current=B.toFixed(E),clearInterval(U),n("scroll-end"),r.valFlag=!1;else{let J=parseFloat(String(r.current))-parseFloat(String(D));r.current=J.toFixed(E)}else if(r.current>=B)r.current=B.toFixed(E),clearInterval(U),n("scroll-end"),r.valFlag=!1;else{let J=parseFloat(String(r.current))+parseFloat(String(D));r.current=J.toFixed(E)}},e.during)},y=B=>{let{initNum:$,endNum:D,toFixed:E,customBgImg:U}=e;U&&($=e.customChangeNum);let J,I,V,P;$!=0?(E!=0&&($=Number($.toFixed(E))),String($).indexOf(".")>-1?(J=String($).split(".")[0].length,I=String($).split(".")[1].length):(J=String($).length,I=0)):(J=1,I=0),D!=0?(E!=0&&(D=Number(D.toFixed(E))),String(D).indexOf(".")>-1?(V=String(D).split(".")[0].length,P=String(D).split(".")[1].length):(V=String(D).length,P=0)):(V=1,P=0);let v=J>=V?J:V,O=I>=P?I:P;r.num_total_len=v+O,r.pointNum=O,$>D?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h($,D),r.numberVal=Number(String($))):$<D?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(D,$),r.numberVal=Number(String(D))):r.sortFlag="equal";var H=1;for(let Z=0;Z<r.pointNum;Z++)H*=10;var L=r.numberVal*H;if(r.relNum=L,E!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(L).length),String($).indexOf(".")>-1){let Z=String($).split(".");r.initDigit1=Number(Z[0]),r.initDigit2=Number(Z[1])}else r.initDigit1=$,r.initDigit2=0;i&&!U?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let Z=o.value[r.num_total_len-1];m(Z)}):B!==0&&A()},m=B=>{d();var $=1;r.pointNum!=0&&($=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{k(B),r.totalCount=h(r.totalCount,$),r.totalCount<=0&&(d(),n("scroll-end"),r.valFlag=!1)},e.during)},k=B=>{let $=B.getAttribute("turn-number"),D;if(r.sortFlag=="add"?D=parseInt(String($))+1:D=parseInt(String($))-1>=0?parseInt(String($))-1:9,B.setAttribute("turn-number",String(D)),(B.style.transition=="none 0s ease 0s"||D==1||!B.style.transition)&&(B.style.transition=`all linear ${e.during}ms`),D==10||r.sortFlag=="reduce"&&D==0){var E=null;B.style.top=`-${r.sortFlag=="add"?D*100:(10-D)*100}%`,B.setAttribute("turn-number","0"),E=setTimeout(()=>{E&&clearTimeout(E),B.style.transition="none",B.style.top="0",f(B,D)},.975*e.during)}else B.style.top=`-${r.sortFlag=="add"?D*100:(10-D)*100}%`;B.style.top=="-100%"&&r.sortFlag=="reduce"&&k(B.previousSibling)},f=(B,$)=>{setTimeout(()=>{$==10&&B.previousSibling&&k(B.previousSibling)},200)},A=()=>{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)}};TC({machineLuck:()=>{const B=e.machineTurnMore<0?0:e.machineTurnMore;let $=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&N();for(let D=0;D<e.machineNum;D++)setTimeout(()=>{let E=$*(D+1+parseFloat(String(B)));r.prizeYPrev.length!=0&&(r.prizeY[D]=r.prizeYPrev[D]);let U=r.prizeYPrev[D]?r.prizeYPrev[D]:0,J=E+U+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+($-U);r.prizeLevelTrun<0&&(J+=e.numHeight*r.notPrize[D]),S(D,J,U)},500*D)}});const S=(B,$,D)=>{let E=setInterval(()=>{if(D<=$)D+=10,r.prizeY[B]=parseFloat(String(D));else if(clearInterval(E),E=null,r.finshMachine+=1,r.prizeY[B]=$,r.finshMachine==e.machineNum){let U=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(I=>{let V=I;for(;V>U;)V-=U;r.prizeYPrev.push(V)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{p()})}),t.onUnmounted(()=>{d(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:C,turnNumber:b}}}),EC={class:"fox-countup"},DC=["turn-number"];function IC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",EC,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__machine",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+u,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,DC))),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=le(VC,[["render",IC]]),vC=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:xC,create:qC}=_("countdown"),PC=qC({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(()=>({[xC]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-vC(e.startTime),o.counting||(o.counting=!0),i()},i=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const C=Date.now()-o.diffTime,b=Math.max(o.handleEndTime-C,0);o.restTime=b,b||(o.counting=!1,d(),n("on-end")),b>0&&i()}}))},c=(C,b)=>{const g=C;let y={d:0,h:0,m:0,s:0,ms:0};const m=1e3,k=60*m,f=60*k,A=24*f;return g>0&&(y.d=g>=m?Math.floor(g/A):0,y.h=Math.floor(g%A/f),y.m=Math.floor(g%f/k),y.s=Math.floor(g%k/m),y.ms=Math.floor(g%m)),b=="custom"?y:u({...y})},u=C=>{let{d:b,h:g,m:y,s:m,ms:k}=C,f=e.format;if(f.includes("DD")?f=f.replace("DD",dt(b)):g+=Number(b)*24,f.includes("HH")?f=f.replace("HH",dt(g)):y+=Number(g)*60,f.includes("mm")?f=f.replace("mm",dt(y)):m+=Number(y)*60,f.includes("ss")?f=f.replace("ss",dt(m)):k+=Number(m)*1e3,f.includes("S")){const A=dt(k,3).toString();f.includes("SSS")?f=f.replace("SSS",A):f.includes("SS")?f=f.replace("SS",A.slice(0,2)):f.includes("S")&&(f=f.replace("SS",A.slice(0,1)))}return f},p=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i(),n("on-restart",o.restTime))},d=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},h=()=>{e.autoStart||(d(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():o.restTime=e.time}),t.watch(()=>o.restTime,C=>{let b=c(C,"custom");n("update:modelValue",b),n("input",b)}),t.watch(()=>e.paused,(C,b)=>{b?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i()),n("on-restart",o.restTime)):o.counting&&d()}),t.watch(()=>e.endTime,C=>{s()}),t.watch(()=>e.startTime,C=>{s()}),{...t.toRefs(e),slots:a,classes:l,start:p,pause:d,renderTime:r,reset:h}}}),MC=["innerHTML"];function LC(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,MC))],2)}const La=le(PC,[["render",LC]]),{create:zC}=_("badge"),OC=zC({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}}}),RC={class:"fox-badge"},FC=["textContent"];function KC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",RC,[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,FC),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const za=le(OC,[["render",KC]]),{componentName:UC,create:HC}=_("tag"),jC=HC({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:ae.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const s=UC;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 WC(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 an=le(jC,[["render",WC]]),{create:YC}=_("popover"),XC=YC({components:{FoxPopup:he},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 k="fox-popover-arrow",f=e.location,A=f.split("-")[0];return`${k} ${k}-${A} ${k}--${f}`}),c=t.computed(()=>{const k={},{bgColor:f,arrowOffset:A,location:N}=e,w=N.split("-")[0],S=N.split("-")[1],B=16;return f&&(k[`border${u(w)}Color`]=f),e.arrowOffset!=0&&(["bottom","top"].includes(w)&&(S||(k.left=`calc(50% + ${A}px)`),S=="start"&&(k.left=`${B+A}px`),S=="end"&&(k.right=`${B-A}px`)),["left","right"].includes(w)&&(S||(k.top=`calc(50% - ${A}px)`),S=="start"&&(k.top=`${B-A}px`),S=="end"&&(k.bottom=`${B+A}px`))),k}),u=k=>(k=k.toLowerCase(),k=k.replace(/\b\w+\b/g,f=>f.substring(0,1).toUpperCase()+f.substring(1)),k),p=t.computed(()=>{let k={};if(!r.value||!s.value)return{};const f=s.value.width,A=s.value.height,{width:N,height:w,left:S,top:B}=r.value,{location:$,offset:D}=e,E=$.split("-")[0],U=$.split("-")[1];let J=0,I=0;if(un(D)&&D.length==2&&(J+=Number(D[1]),I+=Number(D[0])),N){if(["bottom","top"].includes(E)){const V=E=="bottom"?w+J:-(A+J);k.top=`${B+V}px`,U||(k.left=`${-(f-N)/2+S+I}px`),U=="start"&&(k.left=`${S+I}px`),U=="end"&&(k.left=`${r.value.right+I}px`)}if(["left","right"].includes(E)){const V=E=="left"?-(f+J):N+J;k.left=`${S+V}px`,U||(k.top=`${B-A/2+w/2-4+I}px`),U=="start"&&(k.top=`${B+I}px`),U=="end"&&(k.top=`${B+w+I}px`)}}return k}),d=t.computed(()=>{const k={};return e.bgColor&&(k.background=e.bgColor),k}),h=()=>{let k=Pe(a.value);e.targetId&&(k=Pe(document.querySelector(`#${e.targetId}`))),r.value=k,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,k=>{l.value=k,k?(window.addEventListener("touchstart",m,!0),h()):window.removeEventListener("touchstart",m,!0)});const C=k=>{n("update",k),n("update:visible",k)},b=()=>{C(!e.visible),n("open")},g=()=>{n("update:visible",!1),n("close")},y=(k,f)=>{!k.disabled&&n("choose",k,f),e.closeOnClickAction&&g()},m=k=>{const f=a.value,A=o.value;let N=f&&!f.contains(k.target);if(e.targetId){const w=document.querySelector(`#${e.targetId}`);N=w&&!w.contains(k.target)}N&&A&&!A.contains(k.target)&&e.closeOnClickOutside&&g()};return{showPopup:l,openPopover:b,popoverArrow:i,closePopover:g,chooseItem:y,popoverRef:a,popoverContentRef:o,getRootPosition:p,customStyle:d,popoverArrowStyle:c,renderIcon:Fr}}}),QC={ref:"popoverContentRef",class:"fox-popover-content-group"},GC=["onClick"],ZC={class:"fox-popover-menu-item-name"};function JC(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",QC,[e.showArrow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.popoverArrowStyle)},null,6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(u=>e.chooseItem(i,c),["stop"])},[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",ZC,t.toDisplayString(i.name),1)],10,GC))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const rn=le(XC,[["render",JC]]),_C=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:ew}=_("skeleton"),tw=ew(_C({[ln.name]:ln})),nw={key:0},ow={key:1,class:"fox-skeleton"},lw={key:0,class:"fox-skeleton-animation"},aw={class:"fox-skeleton-content"};function rw(e,n,a,o,l,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",ow,[e.animated?(t.openBlock(),t.createElementBlock("view",lw)):t.createCommentVNode("",!0),t.createElementVNode("view",aw,[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",nw,[t.renderSlot(e.$slots,"default")]))}const Oa=le(tw,[["render",rw]]),{create:sw,componentName:iw}=_("collapse"),cw=sw({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(()=>({[iw]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,u,p=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,u,p)},s=c=>{if(e.accordion)o.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(o.value))if(o.value.includes(c)){const u=o.value.filter(p=>p!==c);r(u,c,!1)}else{const u=o.value.concat([c]);r(u,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},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 dw(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 Ra=le(cw,[["render",dw]]),{create:uw,componentName:fw}=_("collapse-item"),mw=uw({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:ae.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=fw;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)},u=()=>{s.value&&(i.value="auto")},p=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},d=()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?p():d()}),{classes:r,renderIcon:Fr,wrapperRef:n,contentRef:a,open:p,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:u}}}),pw={class:"fox-collapse-item__title-main"},hw={class:"fox-collapse-item__title-main-value"},gw=["innerHTML"],yw={key:2,class:"fox-collapse-item__title-label"},bw={key:0,class:"fox-collapse-item__title-sub"},kw=["innerHTML"],Sw={key:0,class:"fox-collapse__item-extraWrapper"},Cw={class:"fox-collapse__item-extraWrapper__extraRender"},ww={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function Nw(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",pw,[t.createElementVNode("view",hw,[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,gw)),e.label?(t.openBlock(),t.createElementBlock("view",yw,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",bw,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,kw)),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",Sw,[t.createElementVNode("div",Cw,[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",ww,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const Fa=le(mw,[["render",Nw]]),Bw=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:Aw,create:Tw,scope:$w}=_("table"),Vw=Tw({components:{RenderColumn:Bw,DownArrow:ae.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}=ce.useFoxI18n($w),l=t.reactive({curData:e.data}),r=t.computed(()=>({[Aw]:!0})),s=C=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${C.align?C.align:""}`]:!0}),i=C=>C.stylehead?C.stylehead:"",c=C=>C.stylecolumn?C.stylecolumn:"",u=C=>e.columns.filter(b=>b.key===C)[0],p=C=>{const b=e.columns.filter(g=>g.key===C);return b[0].stylecolumn?b[0].stylecolumn:""},d=C=>{C.sorter&&(n("sorter",C),l.curData=typeof C.sorter=="function"?l.curData.sort(C.sorter):C.sorter==="default"?l.curData.sort():l.curData)},h=()=>e.columns.map(C=>[C.key,C.render]);return t.watch(()=>e.data,C=>{l.curData=C.slice()}),{...t.toRefs(l),classes:r,cellClasses:s,getColumnItem:u,getColumnItemStyle:p,handleSorterClick:d,sortDataItem:h,t:o,stylehead:i,stylecolumn:c}}}),Ew={class:"fox-table__main__head"},Dw={class:"fox-table__main__head__tr"},Iw=["onClick"],vw={class:"fox-table__main__body"},xw={key:1},qw={key:0,class:"fox-table__nodata"},Pw={key:0,class:"fox-table__nodata__text"},Mw={key:1,class:"fox-table__summary"},Lw=["innerHTML"];function zw(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",Ew,[t.createElementVNode("view",Dw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:u=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,Iw))),128))])]),t.createElementVNode("view",vw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([u,p])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(u))]),key:u,style:t.normalizeStyle(e.getColumnItemStyle(u))},[typeof c[u]=="function"||typeof p=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[p,c[u]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",xw,t.toDisplayString(c[u]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",qw,[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",Pw,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",Mw,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,Lw)])):t.createCommentVNode("",!0)],2)}const Ka=le(Vw,[["render",zw]]),{componentName:Ow,create:Rw}=_("ellipsis"),Fw=Rw({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(()=>({[Ow]:!0}));t.watch(()=>e.content,(g,y)=>{g!=y&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!a.value)return;const g=window.getComputedStyle(a.value);o=document.createElement("div"),Array.prototype.slice.apply(g).forEach(k=>{o.style.setProperty(k,g.getPropertyValue(k))}),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 m=h(g.lineHeight==="normal"?e.lineHeight:g.lineHeight);l=Math.floor(m*(Number(e.rows)+.5)+h(g.paddingTop)+h(g.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),u()},u=()=>{if(o.offsetHeight<=l)s.exceeded=!1,document.body.removeChild(o);else{s.exceeded=!0;const g=e.content.length,y=Math.floor((0+g)/2),m=e.direction==="middle"?d([0,y],[y,g]):p(0,g);r.value=m,document.body.removeChild(o)}},p=(g,y)=>{const m=s.expanded?e.collapseText:e.expandText,k=e.content.length;if(y-g<=1)return e.direction==="end"?{leading:e.content.slice(0,g)+e.symbol}:{tailing:e.symbol+e.content.slice(y,k)};const f=Math.round((g+y)/2);return e.direction==="end"?o.innerText=e.content.slice(0,f)+e.symbol+m:o.innerText=m+e.symbol+e.content.slice(f,k),o.offsetHeight<=l?e.direction==="end"?p(f,y):p(g,f):e.direction==="end"?p(g,f):p(f,y)},d=(g,y)=>{const m=s.expanded?e.collapseText:e.expandText,k=e.content.length;if(g[1]-g[0]<=1&&y[1]-y[0]<=1)return{leading:e.content.slice(0,g[0])+e.symbol,tailing:e.symbol+e.content.slice(y[1],k)};const f=Math.floor((g[0]+g[1])/2),A=Math.ceil((y[0]+y[1])/2);return o.innerText=e.content.slice(0,f)+e.symbol+m+e.symbol+e.content.slice(A,k),o.offsetHeight<=l?d([f,g[1]],[y[0],A]):d([g[0],f],[A,y[1]])},h=g=>{if(!g)return 0;const y=g.match(/^\d*(\.\d*)?/);return y?Number(y[0]):0},C=g=>{g==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},b=()=>{n("click")};return{...t.toRefs(s),root:a,ellipsis:r,classes:i,clickHandle:C,handleClick:b}}}),Kw={key:0},Uw={key:1},Hw={key:2};function jw(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",Kw,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",Uw,[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",Hw,[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 Ua=le(Fw,[["render",jw]]),{componentName:Ww,create:Yw}=_("animate"),Xw=Yw({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,[`${Ww}-${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}}}),Qw={class:"fox-animate"};function Gw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Qw,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const Ha=le(Xw,[["render",Gw]]),{componentName:Zw,create:Jw}=_("watermark"),_w=Jw({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.reactive({base64Url:""}),{zIndex:o,gapX:l,gapY:r,width:s,height:i,rotate:c,image:u,imageWidth:p,imageHeight:d,content:h,fontStyle:C,fontWeight:b,fontColor:g,fontSize:y,fontFamily:m}=e,k=()=>{const A=document.createElement("canvas"),N=window.devicePixelRatio,w=A.getContext("2d"),S=`${(l+s)*N}px`,B=`${(r+i)*N}px`,$=s*N,D=i*N;if(A.setAttribute("width",S),A.setAttribute("height",B),w){if(u){w.translate($/2,D/2),w.rotate(Math.PI/180*Number(c));const E=new Image;E.crossOrigin="anonymous",E.referrerPolicy="no-referrer",E.src=u,E.onload=()=>{w.drawImage(E,-p*N/2,-d*N/2,p*N,d*N),w.restore(),a.base64Url=A.toDataURL()}}else if(h){w.textBaseline="middle",w.textAlign="center",w.translate($/2,D/2),w.rotate(Math.PI/180*Number(c));const E=Number(y)*N;w.font=`${C} normal ${b} ${E}px/${D}px ${m}`,w.fillStyle=g,w.fillText(h,0,0),w.restore(),a.base64Url=A.toDataURL()}}else throw new Error("当前环境不支持Canvas")};k(),t.watch(()=>[o,l,r,s,i,c,u,p,d,h,C,b,g,y,m],()=>{k()});const f=t.computed(()=>{const A=Zw;return{[A]:!0,[`${A}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:f}}});function eN(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 ja=le(_w,[["render",eN]]);function tN(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:nN,create:oN}=_("trend-arrow"),lN=oN({components:{TriangleUp:ae.TriangleUp,TriangleDown:ae.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(()=>({[nN]:!0})),o=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;n.rateTrend=r>0;const u=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${tN(Number(u),s)}%`}),l=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:u}=e;return{color:u===0?c:i?n.rateTrend?s:r:c}});return{...t.toRefs(n),classes:a,calcRate:o,calcStyle:l}}});function aN(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=le(lN,[["render",aN]]),{create:rN}=_("tour"),sN=rN({components:{[rn.name]:rn,Close:ae.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),l=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:p,maskWidth:d,maskHeight:h}=e,{width:C,height:b,left:g,top:y}=o.value,m=[g+C/2,y+b/2],k=Number(d||C),f=Number(h||b);return{width:`${k+ +p[1]*2}px`,height:`${f+ +p[0]*2}px`,top:`${m[1]-f/2-+p[0]}px`,left:`${m[0]-k/2-+p[1]}px`}}),s=p=>{p=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,t.nextTick(()=>{a.showPopup=!0,i()}),n("change",a.active)},i=()=>{const p=document.querySelector(`#${e.steps[a.active].target}`),d=Pe(p);o.value=d},c=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},u=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{a.active=0,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:u}}}),iN={key:0,class:"fox-tour-content"},cN={key:0,class:"fox-tour-content-top"},dN={class:"fox-tour-content-inner"},uN={class:"fox-tour-content-bottom"},fN={class:"fox-tour-content-bottom-init"},mN={class:"fox-tour-content-bottom-operate"},pN={key:1,class:"fox-tour-content fox-tour-content-tile"},hN={class:"fox-tour-content-inner"};function gN(e,n,a,o,l,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-popover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,u)=>(t.openBlock(),t.createElementBlock("div",{key:u,style:{height:"0"}},[u==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=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",iN,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",cN,[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",dN,t.toDisplayString(c.content),1),t.createElementVNode("div",uN,[t.createElementVNode("div",fN,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",mN,[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",pN,[t.createElementVNode("div",hN,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const Ya=le(sN,[["render",gN]]),{create:yN,scope:bN}=_("address"),kN=yN({components:{Location:ae.Location,Location2:ae.Location2,Check:ae.Check,Close:ae.Close,Left:ae.Left,[he.name]:he,[Xt.name]:Xt},inheritAttrs:!1,props:{...Ke,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}=ce.useFoxI18n(bN),o=t.ref(null),l=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),u=t.ref(["province","city","country","town"]),p=t.ref(null),d=t.ref([0,0,0,0]),h=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),C=V=>{if(!Array.isArray(V))throw new TypeError("params muse be array.");if(!V.length)return[];V.forEach(v=>{if(!v.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const P=[];return V=V.sort((v,O)=>v.title.localeCompare(O.title)),V.forEach(v=>{const O=P.findIndex(H=>H.title===v.title);O<=-1?P.push({title:v.title,list:[].concat(v)}):P[O].list.push(v)}),P};let b=t.ref([]),g=t.reactive({});const y=t.ref("self"),m=t.ref(20),k=()=>{const V=e.modelValue,P=V.length;if(P>0){if(i.value=P-1,h.value.length==0){i.value=0;return}for(let v=0;v<P;v++){let O=[];switch(v){case 0:O=e.province;break;case 1:O=e.city;break;case 2:O=e.country;break;default:O=e.town}b.value[v]=O.filter(H=>H.id==V[v])[0]}A()}},f=(V,P)=>V&&V.name||i.value<P&&V?V.name:e.columnsPlaceholder[P]||a("select"),A=()=>{S(),t.nextTick(()=>{const V=l.value&&l.value.getElementsByClassName("active")[0];if(V){const P=V.offsetLeft;m.value=P||20}})},N=V=>{const P=i.value;c.value=i.value;const v={custom:u.value[P]};b.value[P]=V;for(let O=P+2;O<4;O++)b.value.splice(O,1);P<3?(i.value=P+1,A(),v.next=u.value[i.value],v.value=V,n("change",v)):(D(),n("update:modelValue"))},w=(V,P)=>{c.value=i.value,f(V,P)&&(i.value=P,A())},S=()=>{const V=p.value,P=c.value,v=d.value[i.value];V?.scrollTop&&(d.value[P]=V?.scrollTop),t.nextTick(()=>{V?.scrollTo({top:v,behavior:"auto"})})},B=V=>{const P=e.existAddress;let v={};P.forEach(O=>{O&&O.selectedAddress&&(v=O),O.selectedAddress=!1}),V.selectedAddress=!0,g=V,n("selected",v,V,P),D()},$=()=>{b.value=[],i.value=0,A()},D=(V="self")=>{y.value=V=="cross"?"cross":"self",r.value=!1},E=()=>{y.value="mask"},U=()=>{const V={addressIdStr:"",addressStr:"",province:b.value[0],city:b.value[1],country:b.value[2],town:b.value[3]},P={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(v=>{const O=b.value[v];V.addressIdStr+=`${v?"_":""}${O&&O.id||0}`,V.addressStr+=O&&O.name||""}),P.data=V):P.data=g,$(),y.value=="self"?n("close",P):n("close-mask",{closeWay:y}),n("update:visible",!1)},J=()=>{const V=s.value;s.value=V=="exist"?"custom":"exist",$(),n("switch-module",{type:s.value})},I=(V,P)=>{N(P)};return t.watch(()=>e.visible,V=>{r.value=V}),t.watch(()=>r.value,V=>{V&&k()}),{showPopup:r,privateType:s,tabIndex:i,tabName:u,selectedRegion:b,switchModule:J,closeWay:y,close:U,getTabName:f,nextAreaList:N,regionLine:o,tabRegion:l,lineDistance:m,changeRegionTab:w,selectedExist:B,clickOverlay:E,handClose:D,handleElevatorItem:I,initCustomSelected:k,...t.toRefs(e),t:a,regionList:h,transformData:C,scrollDom:p}}}),SN={class:"fox-address"},CN={class:"fox-address__header"},wN={class:"fox-address__header__title"},NN={key:0,class:"fox-address__custom"},BN={class:"fox-address__region",ref:"tabRegion"},AN=["onClick"],TN={key:0,class:"active fox-address__region-item"},$N={key:0,class:"fox-address__detail"},VN={class:"fox-address__detail-list",ref:"scrollDom"},EN=["onClick"],DN={key:1,class:"fox-address__elevator-group"},IN={key:1,class:"fox-address__exist"},vN={class:"fox-address__exist-group"},xN={class:"fox-address__exist-group-list"},qN=["onClick"],PN={class:"fox-address__exist-item-info"},MN={key:0,class:"fox-address__exist-item-info-name"},LN={key:1,class:"fox-address__exist-item-info-phone"},zN={class:"fox-address__exist-item-info-bottom"},ON={class:"fox-address__exist-choose-btn"};function RN(e,n,a,o,l,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),u=t.resolveComponent("fox-elevator"),p=t.resolveComponent("Location2"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=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",SN,[t.createElementVNode("view",CN,[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",wN,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",NN,[t.createElementVNode("view",BN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,C)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",C==e.tabIndex?"active":""]),key:C,onClick:b=>e.changeRegionTab(h,C)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,C)),1)],10,AN))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",TN,[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",$N,[t.createElementVNode("ul",VN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,C)=>(t.openBlock(),t.createElementBlock("li",{key:C,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick:b=>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,EN))),128))],512)])):(t.openBlock(),t.createElementBlock("view",DN,[t.createVNode(u,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",IN,[t.createElementVNode("div",vN,[t.createElementVNode("ul",xN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,C)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:C,onClick:b=>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",PN,[h.name?(t.openBlock(),t.createElementBlock("div",MN,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",LN,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",zN,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,qN))),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",ON,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 Xa=le(kN,[["render",RN]]),{componentName:FN,create:KN}=_("barrage"),UN=KN({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(()=>({[FN]:!0}));let l=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),u=t.ref(e.top),p=t.ref(0),d=e.speeds,h=t.ref(0);t.onMounted(()=>{C(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(g(),p.value=0,b("hidden")):document.visibilityState==="visible"&&C()})}),t.onUnmounted(()=>{i.value=[],g()});const C=()=>{h.value=l.value.offsetWidth,a&&b("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${h.value}px`),m()},300)},b=f=>{let N=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const w=[];N&&Array.from(N).forEach(S=>{f=="init"?(S.style.opacity="0",w.push(S)):(S.classList="",S.style={})}),f=="init"&&(i.value=w)},g=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,f=>{e.danmu.length>0&&(i.value=[...f])});const y=f=>{const A=p.value%i.value.length;!e.loop&&p.value===i.value.length?i.value.splice(i.value.length,0,f):i.value.splice(A,0,f)},m=()=>{g(),s=setTimeout(()=>{k()},e.frequency)},k=()=>{const f=e.loop?p.value%i.value.length:p.value;let A=document.createElement("view");a&&typeof i.value[f]=="object"?(A=i.value[f],A?.classList?.add("fox-barrage__item")):(A.innerHTML=i.value[f],A.classList.add("fox-barrage__item"),r.value.appendChild(A)),t.nextTick(()=>{const N=A.offsetHeight;if(A?.classList?.add("move"),A.style.animationDuration=`${d}ms`,A.style.top=f%c.value*(N+u.value)+20+"px",A.style.opacity="1",!a){const w=A.offsetWidth;A.style.width=w+20+"px"}A.addEventListener("animationend",()=>{a?A.classList.remove("move"):r.value.removeChild(A)}),!(!e.loop&&p.value>=i.value.length-1)&&(p.value++,p.value>=i.value.length&&(p.value=0),A.removeEventListener("animationend",()=>{}),m())})};return{classTime:n,classes:o,danmuList:i,dmBody:l,dmContainer:r,add:y}}});function HN(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 Qa=le(UN,[["render",HN]]),{componentName:jN,create:WN,scope:YN}=_("signature"),XN=WN({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:{[Re.name]:Re},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:a}=ce.useFoxI18n(YN),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),s=t.computed(()=>({[jN]:!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 k=document.createElement("canvas");return!!(k.getContext&&k.getContext("2d"))},u=()=>{l.value.addEventListener(i.events[0],p,!1)},p=k=>{k.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(i.events[1],d,!1),l.value.addEventListener(i.events[2],h,!1),l.value.addEventListener(i.events[3],C,!1)},d=k=>{k.preventDefault();let f=i.isSupportTouch?k.touches[0]:k;n("signing",f);let A=l.value.getBoundingClientRect(),N=f.clientX-A.left,w=f.clientY-A.top;i.ctx.lineTo(N,w),i.ctx.stroke()},h=k=>{k.preventDefault(),n("end"),l.value.removeEventListener(i.events[1],d,!1),l.value.removeEventListener(i.events[2],h,!1)},C=k=>{k.preventDefault(),l.value.removeEventListener(i.events[1],d,!1),l.value.removeEventListener(i.events[2],h,!1)},b=()=>{l.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},g=()=>{m(l.value)},y=k=>{if(!k)return!0;var f=document.createElement("canvas");return f.width=k.width,f.height=k.height,k?.toDataURL()==f.toDataURL()},m=k=>{let f;switch(e.type){case"png":f=k.toDataURL("image/png");break;case"jpg":f=k.toDataURL("image/jpeg",.8);break}const A=y(k)?"请绘制签名":k,N=y(k)?"":f;n("confirm",A,N)};return t.onMounted(()=>{c()&&(i.ctx=l.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,u())}),{...o,...t.toRefs(i),canvas:l,wrap:r,isCanvasSupported:c,confirm:g,clear:b,classes:s}}}),QN={class:"fox-signature-inner",ref:"wrap"},GN=["height","width"],ZN={key:0,class:"fox-signature-unsopport"};function JN(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",QN,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,GN),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",ZN,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(s,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=i=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(s,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const Ga=le(XN,[["render",JN]]),{componentName:_N,create:eB,scope:tB}=_("time-select"),nB=eB({components:{[he.name]:he},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}=ce.useFoxI18n(tB),o=t.computed(()=>({[_N]:!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}}}),oB={class:"fox-time-select__title"},lB={class:"fox-time-select__title__fixed"},aB={key:0},rB={class:"fox-time-select__content"},sB={class:"fox-time-select__content__pannel"},iB={class:"fox-time-select__content__detail"};function cB(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",oB,[t.createElementVNode("view",lB,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",aB,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",rB,[t.createElementVNode("view",sB,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",iB,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Za=le(nB,[["render",cB]]),{componentName:dB,create:uB}=_("time-pannel"),fB=uB({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(()=>({[dB]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function mB(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 Ja=le(fB,[["render",mB]]),{componentName:pB,create:hB}=_("time-detail"),gB=hB({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(()=>({[pB]:!0})),s=u=>{let p=l.currentTime.find(d=>d.key==l.currentKey);if(p)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":p.list.filter(d=>d===u).length>0}},i=t.computed(()=>e.times.find(u=>u.key==l.currentKey).list),c=u=>{n.emit("select",u)};return{classes:r,...t.toRefs(l),getClass:s,renderData:i,handleTime:c}}}),yB={class:"fox-time-detail__detail fox-time-detail__detail--moring"},bB={class:"fox-time-detail__detail__list"},kB=["onClick"];function SB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",yB,[t.createElementVNode("view",bB,[(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,kB))),128))])])],2)}const _a=le(gB,[["render",SB]]),{create:CB,scope:wB}=_("sku-header"),NB=CB({props:{goods:{type:Object,default:{}}},emits:[],components:{[nt.name]:nt},setup(e,{emit:n,slots:a}){const{t:o}=ce.useFoxI18n(wB);return{getSlots:r=>a[r],t:o}}}),BB={class:"fox-sku-header"},AB=["src"],TB={class:"fox-sku-header-right"},$B={key:3,class:"fox-sku-header-right-extra"};function VB(e,n,a,o,l,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",BB,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,AB),t.createElementVNode("view",TB,[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",$B,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const EB=le(NB,[["render",VB]]),{create:DB}=_("sku-select"),IB=DB({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})}}}}),vB={class:"fox-sku-select"},xB={class:"fox-sku-select-item-title"},qB={class:"fox-sku-select-item-skus"},PB=["onClick"];function MB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",vB,[(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",xB,t.toDisplayString(s.name),1),t.createElementVNode("view",qB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:p=>e.changeSaleChild(c,u,s,i),key:c.name},t.toDisplayString(c.name),11,PB))),128))])]))),128))])}const LB=le(IB,[["render",MB]]),{create:zB}=_("sku-stepper"),OB=zB({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:{[lt.name]:lt},setup(e,{emit:n}){const a=t.ref(e.stepperMin);return t.onMounted(()=>{a.value=e.stepperMin}),{goodsCount:a,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,u)=>{n("overLimit",{action:u,value:parseInt(a.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&ct(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),RB={class:"fox-sku-stepper"},FB={class:"fox-sku-stepper-title"},KB=["innerHTML"],UB={class:"fox-sku-stepper-count"};function HB(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",RB,[t.createElementVNode("view",FB,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,KB),t.createElementVNode("view",UB,[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 jB=le(OB,[["render",HB]]),{create:WB}=_("sku-operate"),YB=WB({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]}}}),XB={key:0,class:"fox-sku-operate"},QB={key:0,class:"fox-sku-operate-desc"},GB={key:1,class:"fox-sku-operate-btn"},ZB=["onClick"];function JB(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",XB,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",QB,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",GB,[(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,ZB))),128))]))])):t.createCommentVNode("",!0)}const _B=le(YB,[["render",JB]]),{create:eA,scope:tA}=_("sku"),nA=eA({props:{...Ke,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:EB,SkuSelect:LB,SkuStepper:jB,SkuOperate:_B,[he.name]:he},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=ce.useFoxI18n(tA),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,y=>{r.value=y}),t.watch(()=>r.value,y=>{y==!1&&g()}),t.onMounted(()=>{});const i=y=>a[y],c=y=>{n("select-sku",y)},u=y=>{s.value=y,n("change-stepper",y)},p=y=>{n("add",y)},d=y=>{n("reduce",y)},h=y=>{n("over-limit",y)},C=y=>{n("click-btn-operate",{type:y,value:s.value})},b=y=>{y=="icon"&&n("click-close-icon"),y=="overlay"&&n("click-overlay"),y=="close"&&n("close"),r.value=!1},g=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:b,selectSku:c,changeStepper:u,stepperOverLimit:h,clickBtnOperate:C,add:p,reduce:d,getSlots:i,...l}}}),oA={class:"fox-sku"},lA={class:"fox-sku-content"};function aA(e,n,a,o,l,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),u=t.resolveComponent("sku-operate"),p=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(p,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=d=>e.showPopup=d),onClickCloseIcon:n[1]||(n[1]=d=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=d=>e.closePopup("overlay")),onClose:n[3]||(n[3]=d=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",oA,[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",lA,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(u,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const er=le(nA,[["render",aA]]),{create:rA}=_("card"),sA=rA({components:{[nt.name]:nt,[an.name]:an},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]}}}),iA={class:"fox-card"},cA={class:"fox-card__left"},dA=["src"],uA={class:"fox-card__right"},fA={class:"fox-card__right__title"},mA={key:0,class:"fox-card__right__price"},pA={class:"fox-card__right__other"},hA={class:"fox-card__right__shop"},gA={class:"fox-card__right__shop__name"};function yA(e,n,a,o,l,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",iA,[t.createElementVNode("div",cA,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,dA)]),t.createElementVNode("div",uA,[t.createElementVNode("div",fA,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",mA,[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",pA,[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",hA,[t.createElementVNode("div",gA,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const tr=le(sA,[["render",yA]]),{create:bA,scope:kA}=_("ecard"),SA=bA({components:{[lt.name]:lt},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}=ce.useFoxI18n(kA),o=t.ref(null),l=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,C)=>{o.value=C,s.value=e.cardAmountMin,l.value=h.price,n("change",h),n("update:modelValue",h.price)},u=h=>{let b=h.target.value.replace(/[^\d]/g,"");r.value=b,l.value=b,Number(b)>e.cardAmountMax&&(r.value=e.cardAmountMax,l.value=e.cardAmountMax),Number(b)<e.cardAmountMin&&(r.value=e.cardAmountMin,l.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},p=()=>{o.value="input",s.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},d=h=>{s.value=h,n("changeStep",s.value,l.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:d,change:u,inputClick:p,stepValue:s,currentIndex:o,inputValue:r,money:i,t:a}}}),CA={class:"fox-ecard"},wA={class:"fox-ecard__title"},NA={class:"fox-ecard__list"},BA=["onClick"],AA={class:"fox-ecard__list__input--con"},TA=["placeholder"],$A={class:"fox-ecard__list__step"};function VA(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",CA,[t.createElementVNode("view",wA,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",NA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:u=>e.handleClick(i,c)},t.toDisplayString(i.price),11,BA))),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",AA,[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,TA),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",$A,[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 nr=le(SA,[["render",VA]]),{create:EA,scope:DA}=_("address-list-item"),IA=EA({components:{Del:ae.Del,Edit:ae.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=ce.useFoxI18n(DA);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}}}),vA={class:"fox-address-list-item__info"},xA={class:"fox-address-list-item__info-contact"},qA={class:"fox-address-list-item__info-contact-name"},PA={class:"fox-address-list-item__info-contact-tel"},MA={key:0,class:"fox-address-list-item__info-contact-default"},LA={class:"fox-address-list-item__info-handle"},zA={class:"fox-address-list-item__addr"};function OA(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",vA,[t.createElementVNode("div",xA,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",qA,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",PA,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",MA,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",LA,[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",zA,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const ui=le(IA,[["render",OA]]),{create:RA}=_("address-list-general"),FA=RA({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:ui,[Re.name]:Re,[Zt.name]:Zt},setup(e,{emit:n}){const a=()=>t.h(ui,{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())},u=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:u,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}}}}),KA={key:0,class:"fox-address-list-general"},UA={class:"fox-address-list-swipe"};function HA(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)])]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",UA,[(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",KA,[(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 jA=le(FA,[["render",HA]]),{componentName:WA,create:YA,scope:XA}=_("address-list"),QA=YA({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:jA,[Re.name]:Re},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=ce.useFoxI18n(XA),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[WA]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(g=>$r(l,g,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(g,y)=>{n("delIcon",g,y),g.stopPropagation()},c=(g,y)=>{n("editIcon",g,y),g.stopPropagation()},u=(g,y)=>{n("clickItem",g,y),g.stopPropagation()},p=(g,y)=>{n("longCopy",g,y),g.stopPropagation()},d=(g,y)=>{n("longSet",g,y),g.stopPropagation()},h=(g,y)=>{n("longDel",g,y),g.stopPropagation()},C=(g,y)=>{n("swipeDel",g,y),g.stopPropagation()},b=g=>{n("add",g),g.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:u,clickLongCopy:p,clickLongSet:d,clickLongDel:h,clickSwipeDel:C,addAddress:b,dataArray:o,t:a}}});function GA(e,n,a,o,l,r){const s=t.resolveComponent("general-shell"),i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,u)=>(t.openBlock(),t.createBlock(s,{key:u,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:n[0]||(n[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const or=le(QA,[["render",GA]]),{create:ZA}=_("category"),JA=ZA({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}}}),_A={class:"fox-category"},e2={class:"fox-category__cateList"},t2={key:0},n2=["onClick"];function o2(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",_A,[t.createElementVNode("div",e2,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",t2,[(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,n2)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const lr=le(JA,[["render",o2]]),{create:l2}=_("category-pane"),a2=l2({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),r2={class:"fox-category-pane"},s2={key:0,class:"fox-category-pane__cateListRight"},i2={class:"fox-category-pane__childTitle"},c2={key:0,class:"fox-category-pane__childItemList"},d2=["onClick"],u2=["src"],f2={class:"fox-category-pane__skuImg"},m2={key:1,class:"fox-category-pane__cateListRight"},p2={class:"fox-category-pane__childTitle"},h2={key:0,class:"fox-category-pane__childItemList"},g2=["onClick"],y2={class:"fox-category-pane__skuName"},b2={key:2,class:"fox-category-pane__selfItemList"},k2=["onClick"];function S2(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",r2,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",s2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",i2,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",c2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:u,onClick:p=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,u2),t.createElementVNode("div",f2,t.toDisplayString(c?.catName),1)],8,d2))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",m2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",p2,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",h2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:u,onClick:p=>e.onChange(c)},[t.createElementVNode("div",y2,t.toDisplayString(c?.catName),1)],8,g2))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",b2,[(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,k2))),128))])):t.createCommentVNode("",!0)])}const ar=le(a2,[["render",S2]]),{create:C2}=_("comment-header"),w2=C2({components:{[At.name]:At},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),N2={class:"fox-comment-header__user"},B2={class:"fox-comment-header__user-avter"},A2=["src"],T2={class:"fox-comment-header__user-score"},$2={key:0,class:"fox-comment-header__time"};function V2(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",N2,[t.createElementVNode("view",B2,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,A2)):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",T2,[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",$2,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 E2=le(w2,[["render",V2]]),{create:D2}=_("comment-images"),I2=D2({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:ae.Right},emits:["click","clickImages"],setup(e,{emit:n}){const a=t.ref(!1),o=t.ref(1),l=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),l.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),l.value=e.videos.concat(e.images)}),{isShowImage:a,initIndex:o,showImages:(s,i)=>{const{videos:c,images:u}=e,p=s=="img"?i-c.length:i;n("clickImages",{type:s,index:p,value:s=="img"?u[p]:c[p]})},totalImages:l}}}),v2=["onClick"],x2=["src"],q2=["onClick"],P2=["src"],M2={key:0,class:"fox-comment-images__mask"};function L2(e,n,a,o,l,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:u=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,x2),n[0]||(n[0]=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1))],8,v2))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:u=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,P2),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",M2,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,q2)):t.createCommentVNode("",!0)],64))),128))],2)}const z2=le(I2,[["render",L2]]),{create:O2,scope:R2}=_("comment-bottom"),F2=O2({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:ae.Fabulous,Comment:ae.Comment,MoreX:ae.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:a}=ce.useFoxI18n(R2),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}}}),K2={class:"fox-comment-bottom"},U2={key:0},H2={class:"fox-comment-bottom__cpx"},j2=["onClick"];function W2(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",K2,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...u)=>e.handleClick&&e.handleClick(...u)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",U2,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",H2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(u,p)=>(t.openBlock(),t.createElementBlock("view",{key:p,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${u}`]),onClick:d=>e.operate(u)},[u!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[u]),1),u=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),u=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=d=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,j2))),128))])])}const Y2=le(F2,[["render",W2]]),{componentName:X2,create:Q2,scope:G2}=_("comment"),Z2=Q2({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:E2,CommentImages:z2,CommentBottom:Y2,Right:ae.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=ce.useFoxI18n(G2),o=t.computed(()=>({[X2]:!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}}}),J2=["innerHTML"],_2={class:"fox-comment__follow-title"},eT={class:"fox-comment__follow-com"},tT={key:0,class:"fox-comment__follow-img"};function nT(e,n,a,o,l,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),u=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:n[0]||(n[0]=(...p)=>e.handleClick&&e.handleClick(...p)),innerHTML:e.info.content},null,12,J2),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",_2,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",eT,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",tT,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",e.follow.images.length))+" ",1),t.createVNode(c,{width:"12px"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(u,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const rr=le(Z2,[["render",nT]]),oT=[Yo,Qo,Go,Zo,el,Ae,zn,ll,al,rl,sl,cl,Fn,fl,gl,Sl,wl,so,io,Nl,uo,fo,Al,$l,St,Vl,Dl,ko,vl,ql,Ht,jt,jn,Pl,zl,Ol,Rl,mt,Fl,Kl,Rn,On,Ul,Hl,jl,Re,Wl,Yl,ft,he,Xl,Ql,Gl,Zl,Yt,Jl,_l,ea,ta,na,oa,la,aa,ra,Xt,sa,ia,ca,da,ua,fa,ma,Qt,go,Wn,ro,lo,lt,At,Kt,pa,ha,ga,Zt,ya,ba,ka,Jt,ho,Sa,Na,po,Vt,Ta,$a,ln,Va,Ea,Gt,Da,Ia,va,Et,xa,qa,Dt,It,nt,wo,Ma,La,za,an,rn,Oa,Ra,Fa,Ka,Ua,Ha,ja,Wa,Ya,Xa,Qa,Ga,Za,Ja,_a,er,tr,nr,or,lr,ar,rr],lT=new Wi(oT,"4.0.0");T.AbstractPageScopeKey=jo,T.ActionSheet=ya,T.ActionsheetItem=vl,T.ActionsheetPane=ko,T.Address=Xa,T.AddressList=or,T.Animate=Ha,T.Audio=Ta,T.AudioOperate=$a,T.Avatar=ln,T.AvatarGroup=Va,T.BackTop=ba,T.Badge=za,T.Barrage=Qa,T.Broadcast=Oo,T.BroadcastKey=Ne,T.Button=Re,T.ButtonsItem=ll,T.Calendar=ro,T.CalendarItem=wl,T.Card=tr,T.Cascader=Wn,T.CascaderItem=gl,T.Category=lr,T.CategoryPane=ar,T.Cell=Wl,T.CellGroup=Yl,T.Checkbox=uo,T.CheckboxGroup=fo,T.CheckboxItem=Al,T.CircleProgress=Da,T.Col=Gl,T.Collapse=Ra,T.CollapseItem=Fa,T.Comment=rr,T.Content=Zo,T.CountDown=La,T.CountUp=Ma,T.DataItemsKey=ht,T.DateItem=Sl,T.DatePicker=lo,T.DateUtils=ie,T.Dialog=Jt,T.Divider=Jl,T.Domain=kn,T.DomainKey=qe,T.DomainProvider=Hl,T.Drag=ka,T.Dropdown=Kl,T.Ecard=nr,T.Elevator=Xt,T.Ellipsis=Ua,T.Empty=va,T.FixedNav=na,T.FloatingButton=Ol,T.FooterBar=Go,T.FoxActionSheet=ya,T.FoxActionsheetItem=vl,T.FoxActionsheetPane=ko,T.FoxAddress=Xa,T.FoxAddressList=or,T.FoxAnimate=Ha,T.FoxAudio=Ta,T.FoxAudioOperate=$a,T.FoxAvatar=ln,T.FoxAvatarGroup=Va,T.FoxBackTop=ba,T.FoxBadge=za,T.FoxBarrage=Qa,T.FoxButton=Re,T.FoxButtonsItem=ll,T.FoxCalendar=ro,T.FoxCalendarItem=wl,T.FoxCard=tr,T.FoxCascader=Wn,T.FoxCascaderItem=gl,T.FoxCategory=lr,T.FoxCategoryPane=ar,T.FoxCell=Wl,T.FoxCellGroup=Yl,T.FoxCheckbox=uo,T.FoxCheckboxGroup=fo,T.FoxCheckboxItem=Al,T.FoxCircleProgress=Da,T.FoxCol=Gl,T.FoxCollapse=Ra,T.FoxCollapseItem=Fa,T.FoxComment=rr,T.FoxContent=Zo,T.FoxCountDown=La,T.FoxCountUp=Ma,T.FoxDateItem=Sl,T.FoxDatePicker=lo,T.FoxDialog=Jt,T.FoxDivider=Jl,T.FoxDomainProvider=Hl,T.FoxDrag=ka,T.FoxDropdown=Kl,T.FoxEcard=nr,T.FoxElevator=Xt,T.FoxEllipsis=Ua,T.FoxEmpty=va,T.FoxFixedNav=na,T.FoxFloatingButton=Ol,T.FoxFooterBar=Go,T.FoxGrid=_l,T.FoxGridItem=ea,T.FoxGroup=el,T.FoxHeaderBar=Qo,T.FoxHintText=St,T.FoxImage=Xl,T.FoxImagePreview=wo,T.FoxIndicator=da,T.FoxInfiniteLoading=ho,T.FoxInputItem=rl,T.FoxInputNumber=lt,T.FoxInputNumberItem=ql,T.FoxItem=Ae,T.FoxLayout=Ql,T.FoxLinkItem=Vl,T.FoxList=Ea,T.FoxMapping=Ul,T.FoxMenu=oa,T.FoxMenuItem=la,T.FoxMessageBox=mt,T.FoxMoneyItem=sl,T.FoxMoreButton=Rl,T.FoxNavbar=ta,T.FoxNoticeBar=Ia,T.FoxNotify=Na,T.FoxNumberKeyboard=ga,T.FoxOverLay=ft,T.FoxPage=Yo,T.FoxPagination=sa,T.FoxPicker=Kt,T.FoxPickerItem=fl,T.FoxPopover=rn,T.FoxPopoverDialog=Rn,T.FoxPopup=he,T.FoxPopupWrapper=Fl,T.FoxPrice=nt,T.FoxProgress=Gt,T.FoxPullRefresh=Sa,T.FoxRadio=so,T.FoxRadioGroup=io,T.FoxRadioItem=Nl,T.FoxRange=Qt,T.FoxRate=At,T.FoxRateItem=Dl,T.FoxRollingProvider=jl,T.FoxRow=Zl,T.FoxRowItem=zn,T.FoxSearchBar=go,T.FoxShortPassword=pa,T.FoxSideNavBar=ua,T.FoxSideNavBarItem=fa,T.FoxSignature=Ga,T.FoxSkeleton=Oa,T.FoxSku=er,T.FoxSlotItem=al,T.FoxStep=qa,T.FoxSteps=xa,T.FoxStepsBar=zl,T.FoxSticky=Yt,T.FoxSubSideNavBar=ma,T.FoxSwipe=Zt,T.FoxSwiper=Dt,T.FoxSwiperItem=It,T.FoxSwitch=po,T.FoxSwitchItem=$l,T.FoxTabPane=ca,T.FoxTabbar=aa,T.FoxTabbarItem=ra,T.FoxTable=Ka,T.FoxTabs=ia,T.FoxTabsBar=Ht,T.FoxTabsContainer=jt,T.FoxTabsFrame=Pl,T.FoxTabsPane=jn,T.FoxTag=an,T.FoxText=On,T.FoxTextarea=Fn,T.FoxTextareaItem=cl,T.FoxTimeDetail=_a,T.FoxTimePannel=Ja,T.FoxTimeSelect=Za,T.FoxToast=Vt,T.FoxTour=Ya,T.FoxTrendArrow=Wa,T.FoxUploader=ha,T.FoxVideo=Et,T.FoxWaterMark=ja,T.Grid=_l,T.GridItem=ea,T.Group=el,T.HeaderBar=Qo,T.HintText=St,T.Image=Xl,T.ImagePreview=wo,T.Indicator=da,T.InfiniteLoading=ho,T.InnerPageScopeKey=Ho,T.InputItem=rl,T.InputNumber=lt,T.InputNumberItem=ql,T.Item=Ae,T.Layout=Ql,T.LinkItem=Vl,T.List=Ea,T.Mapping=Ul,T.Menu=oa,T.MenuItem=la,T.MessageBox=mt,T.MoneyItem=sl,T.MoreButton=Rl,T.Navbar=ta,T.NoticeBar=Ia,T.Notify=Na,T.NumberKeyboard=ga,T.OverLay=ft,T.Page=Yo,T.Pagination=sa,T.Picker=Kt,T.PickerItem=fl,T.Popover=rn,T.PopoverDialog=Rn,T.Popup=he,T.PopupWrapper=Fl,T.Price=nt,T.PriorityPolicy=An,T.Progress=Gt,T.PullRefresh=Sa,T.Radio=so,T.RadioGroup=io,T.RadioItem=Nl,T.Range=Qt,T.Rate=At,T.RateItem=Dl,T.RollingProvider=jl,T.Row=Zl,T.RowItem=zn,T.SearchBar=go,T.ShortPassword=pa,T.SideNavBar=ua,T.SideNavBarItem=fa,T.Signature=Ga,T.Skeleton=Oa,T.Sku=er,T.SlotItem=al,T.Step=qa,T.Steps=xa,T.StepsBar=zl,T.Sticky=Yt,T.SubSideNavBar=ma,T.Swipe=Zt,T.Swiper=Dt,T.SwiperItem=It,T.Switch=po,T.SwitchItem=$l,T.TabPane=ca,T.Tabbar=aa,T.TabbarItem=ra,T.Table=Ka,T.Tabs=ia,T.TabsBar=Ht,T.TabsContainer=jt,T.TabsFrame=Pl,T.TabsPane=jn,T.Tag=an,T.Text=On,T.Textarea=Fn,T.TextareaItem=cl,T.TimeDetail=_a,T.TimePannel=Ja,T.TimeSelect=Za,T.Toast=Vt,T.Tour=Ya,T.TrendArrow=Wa,T.UniqueID=Mn,T.Uploader=ha,T.ValidateSchema=vr,T.ValidateSchemaKey=Oe,T.Video=Et,T.WaterMark=ja,T.cancelRaf=ir,T.clamp=Ye,T.clearNonNumber=Lo,T.clone=xo,T.compareTo=Io,T.createBroadcast=pn,T.createValidateSchema=gn,T.debounce=Me,T.debounceRef=qi,T.decimalLength=Ar,T.default=lT,T.defineBroadcast=Ai,T.defineConfigDomain=qr,T.defineDataItem=Pr,T.defineDomain=Ko,T.defineItem=$e,T.definePageState=Mr,T.defineSimpleItem=yt,T.deleteGlobalValidator=Di,T.disabledProperty=De,T.divide=Do,T.excludeProps=Je,T.extend=it,T.floatData=$r,T.getGlobalIcons=En,T.getGlobalValidateCheckEvents=Er,T.getGlobalValidateResetEvents=Ir,T.getPageContentAreaHeight=Nn,T.getPageContentAreaWidth=Bn,T.getPageFooterAreaHeight=wn,T.getPageHeaderAreaHeight=Cn,T.getRootDomain=gt,T.hasSymbol=kr,T.includeProps=be,T.indexOf=Ni,T.injectAbstractPageScope=Ot,T.injectInnerPageScope=zt,T.integerLength=Br,T.isArray=un,T.isArrayLike=wr,T.isBrowser=Ze,T.isDate=We,T.isESModule=bi,T.isEmptyString=ue,T.isEqual=xe,T.isFunction=fn,T.isHidden=Sr,T.isMap=hi,T.isNil=ze,T.isNumberString=Mo,T.isObject=ve,T.isPlainObject=vo,T.isPromise=pt,T.isRegExp=Po,T.isSet=gi,T.isString=yr,T.isSubPage=Oi,T.isSymbol=yi,T.isTouch=Kn,T.isWindow=Cr,T.lastIndexOf=Bi,T.makeArray=wi,T.merge=Nr,T.multiply=pr,T.negate=hr,T.nextTick=Si,T.numberFormat=dn,T.objectToString=br,T.once=Pi,T.overrideGlobalIcons=Ji,T.overrideGlobalValidateHandler=Vi,T.padZero=dt,T.preventDefault=zo,T.property=Ve,T.provideAbstractPageScope=zr,T.provideInnerPageScope=Lr,T.px2Number=zi,T.raf=je,T.readonlyProperty=Ee,T.setGlobalValidateCheckEvents=Ii,T.setGlobalValidateHandler=$i,T.setGlobalValidateMessages=xi,T.setGlobalValidateResetEvents=vi,T.setGlobalValidator=Ei,T.throttle=bn,T.toBoolean=Se,T.toNumber=ge,T.toPadding=Fe,T.toPx=fe,T.toPxDesc=Li,T.toPxString=me,T.toTypeString=mn,T.toValue=Le,T.tryTimes=Ro,T.typeOf=ct,T.unNumberFormat=gr,T.updatePageState=Uo,T.useBroadcast=Pt,T.useDomain=_e,T.useExpose=Ie,T.useInnerSize=Vn,T.usePageState=Sn,T.usePosition=tl,T.useRawTouch=Un,T.useRect=Pe,T.useSize=Xo,T.useTouch=ot,T.valueLength=Ce,Object.defineProperties(T,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
9
+ `)}}});function Xg(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)}var Ro=le(Yg,[["render",Xg]]),{create:Qg}=G("sticky"),Gg=Qg({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 o=(0,t.ref)(),l=(0,t.ref)(),a=(0,t.reactive)({fixed:!1,height:0,transform:0}),r=(0,t.computed)(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=(0,t.computed)(()=>a.fixed?{height:`${a.height}px`}:{}),i=(0,t.computed)(()=>a.fixed?{[e.position]:`${r.value}px`,transform:a.transform?`translate3d(0, ${a.transform}px, 0)`:void 0,position:a.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const u=e.container;if(!o.value&&!u)return;const p=Pe(o),d=l.value,h=Pe(d),y=Pe(u);a.height=p.height;const C=()=>{let g=!1;if(e.position==="top")g=u?r.value>p.top&&y.bottom>0:r.value>p.top;else{const f=document.documentElement.clientHeight;g=u?y.bottom>0&&f-r.value-h.height>y.top:f-r.value<p.bottom}return g},b=()=>{if(u)if(e.position==="top"){const g=y.bottom-r.value-h.height;return g<0?g:0}else{const g=document.documentElement.clientHeight,f=y.bottom-(g-r.value);return f<0?f:0}return 0};a.transform=b(),a.fixed=C()};return(0,t.watch)(()=>a.fixed,u=>{n("change",u)}),(0,t.onMounted)(()=>{c(),So(o.value).addEventListener("scroll",c,!0)}),(0,t.onUnmounted)(()=>{So(o.value).removeEventListener("scroll",c)}),{rootRef:o,rootStyle:s,stickyRef:l,stickyStyle:i}}});function Zg(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-sticky",ref:"rootRef",style:(0,t.normalizeStyle)(e.rootStyle)},[(0,t.createElementVNode)("div",{class:"fox-sticky__box",ref:"stickyRef",style:(0,t.normalizeStyle)(e.stickyStyle)},[(0,t.renderSlot)(e.$slots,"default")],4)],4)}var Xt=le(Gg,[["render",Zg]]),{componentName:Jg,create:ey}=G("divider"),ty=ey({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:(0,t.computed)(()=>{const o=Jg;let l={[o]:!0},a={};return e.direction==="horizontal"?a={...l,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:a={...l,[`${o}-vertical`]:e.direction==="vertical"},a})}}});function ny(e,n,o,l,a,r){return e.direction==="horizontal"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes)},null,2))}var Ko=le(ty,[["render",ny]]);function ly(e,n){const o=[],l=a=>{Array.isArray(a)&&a.forEach(r=>{if((0,t.isVNode)(r)){if(n){if(r.type&&r.type.name===n){o.push(r);return}}else o.push(r);r.component?.subTree&&l(r.component.subTree.children),r.children&&l(r.children)}})};return l(e),o}function oy(e,n,o){const l=ly(e.subTree.children,o);n.sort((a,r)=>l.indexOf(a.vnode)-l.indexOf(r.vnode))}function ay(e,n){const o=(0,t.shallowReactive)([]),l=(0,t.getCurrentInstance)(),a=i=>{i.proxy&&(o.push((0,t.markRaw)(i)),oy(l,o,n))},r=i=>{o.splice(o.indexOf((0,t.markRaw)(i)),1)},s=Object.assign;return i=>((0,t.provide)(e,s({add:a,remove:r,internalChildren:o},i)),{internalChildren:o})}var{componentName:zi}=G("grid"),Oi=Symbol("grid"),ry={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}},iy={props:ry,setup(e,{slots:n}){ay(Oi,`${zi}-item`)({props:e});const o=(0,t.computed)(()=>{const a=zi;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),l=(0,t.computed)(()=>{const a={};return e.gutter&&(a.paddingLeft=ue(e.gutter)),a});return()=>(0,t.h)("view",{class:o.value,style:l.value},n.default?.())}},{create:sy}=G("grid"),cy=sy(iy),Uo=cy;function dy(e){const n=(0,t.inject)(e,null);if(n){const o=(0,t.getCurrentInstance)(),{add:l,remove:a,internalChildren:r}=n;return l(o),(0,t.onUnmounted)(()=>a(o)),{parent:n,index:(0,t.computed)(()=>r.indexOf(o))}}return{parent:null,index:(0,t.ref)(-1)}}var{create:uy,componentName:Fi}=G("grid-item"),fy=uy({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const o=dy(Oi);if(!o.parent)return{};const l=o.index,a=o.parent.props,r=(0,t.computed)(()=>({[Fi]:!0})),s=(0,t.computed)(()=>{const u={flexBasis:`${100/+a.columnNum}%`};return a.square?u.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(u.paddingRight=ue(a.gutter),l.value>=a.columnNum&&(u.marginTop=ue(a.gutter))),u}),i=(0,t.computed)(()=>{const u=`${Fi}__content`;return{[`${u}`]:!0,[`${u}--border`]:a.border,[`${u}--surround`]:a.border&&a.gutter,[`${u}--center`]:a.center,[`${u}--square`]:a.square,[`${u}--reverse`]:a.reverse,[`${u}--${a.direction}`]:!!a.direction,[`${u}--clickable`]:a.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:u=>{n("click",u)}}}}),my={class:"fox-grid-item__text"};function py(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.rootClass),style:(0,t.normalizeStyle)(e.rootStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.contentClass)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("view",my,[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.renderSlot)(e.$slots,"text",{key:1})])],2)],6)}var Ho=le(fy,[["render",py]]),{componentName:hy,create:gy}=G("navbar"),yy=gy({components:{Left:oe.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:o,fixed:l,safeAreaInsetTop:a,placeholder:r,zIndex:s}=(0,t.toRefs)(e),i=(0,t.ref)(null),c=(0,t.ref)(null);let u=(0,t.ref)();const p=(0,t.computed)(()=>{const g=hy;return{[g]:!0,[`${g}--border`]:o.value,[`${g}--fixed`]:l.value,[`${g}--safe-area-inset-top`]:a.value}}),d=(0,t.computed)(()=>({zIndex:s.value}));(0,t.onMounted)(()=>{l.value&&r.value&&(0,t.nextTick)(()=>{u.value=c?.value?.getBoundingClientRect().height,i.value.style.height=u.value+"px"})});function h(){n("on-click-back")}function y(){n("on-click-title")}function C(){n("on-click-icon")}function b(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:p,styles:d,handleLeft:h,handleCenter:y,handleCenterIcon:C,handleRight:b}}}),by={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},ky={key:1,class:"fox-navbar__text"},Sy={class:"fox-navbar__title"},wy={key:0,class:"fox-navbar__text"},Cy={key:1,class:"fox-navbar__text"},vy={class:"fox-navbar__title"},Ny={key:0,class:"fox-navbar__text"};function By(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",by,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),ref:"navBarHtml"},[(0,t.createElementVNode)("view",{class:"fox-navbar__left",onClick:n[0]||(n[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(s,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",ky,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Sy,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...i)=>e.handleCenter&&e.handleCenter(...i))},(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.titleIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"icon",onClick:n[3]||(n[3]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",wy,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6)],512)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("view",{class:"fox-navbar__left",onClick:n[5]||(n[5]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(s,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Cy,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",vy,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...i)=>e.handleCenter&&e.handleCenter(...i))},(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.titleIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"icon",onClick:n[8]||(n[8]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ny,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var _o=le(yy,[["render",By]]),Ay=(e,n,o)=>({components:o,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(l,{emit:a}){const{toLocaleRefs:r}=(0,ce.useFoxI18n)(n),s=r(l,["activeText","unActiveText"]),i=(0,t.computed)(()=>({[e]:!0,active:l.visible,[l.type]:!0})),c=(0,t.ref)(-1);return{...s,classes:i,updateValue:(d=!l.visible)=>{a("update:visible",d)},selected:(d,h)=>{a("selected",{item:d,event:h}),c.value=d.id},current:c}}}),{componentName:Vy,create:Ty,scope:$y}=G("fixednav"),Ey=Ty(Ay(Vy,$y,{[dt.name]:dt,Left:oe.Left})),Dy={class:"fox-fixednav__list"},Iy=["onClick"],qy=["src"],Py={class:"span"},xy={key:0,class:"b"},My={class:"text"};function Ly(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-overlay"),i=(0,t.resolveComponent)("Left");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.position)},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=c=>e.updateValue(!1))},null,8,["visible"])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"list",{},()=>[(0,t.createElementVNode)("view",Dy,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.navList,(c,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:p=>e.selected(c,p),key:c.id||u},[(0,t.createElementVNode)("img",{src:c.icon},null,8,qy),(0,t.createElementVNode)("view",Py,(0,t.toDisplayString)(c.text),1),c.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",xy,(0,t.toDisplayString)(c.num),1)):(0,t.createCommentVNode)("",!0)],10,Iy))),128))])]),(0,t.createElementVNode)("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[(0,t.renderSlot)(e.$slots,"btn",{},()=>[(0,t.createVNode)(i,{color:"#fff"}),(0,t.createElementVNode)("view",My,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var Wo=le(Ey,[["render",Ly]]),{componentName:zy,create:Oy}=G("menu"),Fy=Oy({components:{ArrowUp2:oe.ArrowUp2,ArrowDown2:oe.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:o}){const l=(0,t.ref)(),a=(0,t.ref)(0),r=(0,t.ref)(!1),s=()=>{const g=(0,t.reactive)([]),f=(0,t.reactive)([]);return{children:g,linkChildren:m=>{const v=k=>{k.proxy&&(f.push(k),g.push(k.proxy))},N=k=>{if(k.proxy){let S=f.indexOf(k);S>-1&&f.splice(S,1);let A=g.indexOf(k.proxy);S>-1&&g.splice(A,1)}};(0,t.provide)("menuParent",Object.assign({removeLink:N,link:v,children:g,internalChildren:f},m))}}},{children:i,linkChildren:c}=s(),u=(0,t.computed)(()=>i.some(g=>g.state.showWrapper)),p=(0,t.computed)(()=>({[zy]:!0,"scroll-fixed":r.value})),d=()=>{if(l.value){const g=Pe(l);e.direction==="down"?a.value=g.bottom:a.value=window.innerHeight-g.top}};c({props:e,offset:a});const h=g=>{i.forEach((f,w)=>{w===g?(d(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},y=g=>Math.max(0,"scrollTop"in g?g.scrollTop:g.pageYOffset),C=()=>{const{scrollFixed:g}=e;r.value=y(window)>(typeof g=="boolean"?30:Number(g))},b=g=>{let f="";const{titleClass:w}=e;return g&&(f+="active"),w&&(f+=` ${w}`),f};return(0,t.onMounted)(()=>{const{scrollFixed:g}=e;g&&window.addEventListener("scroll",C)}),(0,t.onUnmounted)(()=>{const{scrollFixed:g}=e;g&&window.removeEventListener("scroll",C)}),{toggleItem:h,children:i,opened:u,classes:p,barRef:l,getClasses:b}}}),Ry=["onClick"],Ky={class:"fox-menu__title-text"},Uy={class:"fox-menu__title-icon"};function Hy(e,n,o,l,a,r){const s=(0,t.resolveComponent)("ArrowUp2"),i=(0,t.resolveComponent)("ArrowDown2");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.children,(c,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u,class:(0,t.normalizeClass)(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:p=>!c.disabled&&e.toggleItem(u),style:(0,t.normalizeStyle)({color:c.state.showPopup?e.activeColor:""})},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__title",e.getClasses(c.state.showPopup)])},[(0,t.createElementVNode)("view",Ky,(0,t.toDisplayString)(c.renderTitle()),1),(0,t.createElementVNode)("span",Uy,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.direction==="up"?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1}))])])],2)],14,Ry))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var jo=le(Fy,[["render",Hy]]),{componentName:_y,create:Wy}=G("menu-item"),jy=Wy({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:{[pe.name]:pe,Check:oe.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:o}){const l=(0,t.reactive)({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),a=()=>{const y=(0,t.inject)("menuParent",null);if(y){const C=(0,t.getCurrentInstance)(),{link:b,removeLink:g}=y;return b(C),(0,t.onUnmounted)(()=>{g(C)}),{parent:y}}},{parent:r}=a(),s=(0,t.computed)(()=>({[_y]:!0})),i=(0,t.computed)(()=>{const y={height:r.offset.value+"px"};return r.props.direction==="down"?y:{...y,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const y=e.options?.find(C=>C.value===e.modelValue);return y?y.text:""},state:l,parent:r,toggle:(y=!l.showPopup,C={})=>{y!==l.showPopup&&(l.showPopup=y,l.isShowPlaceholderElement=y,y&&(l.showWrapper=!0,n("open")))},onClick:y=>{l.showPopup=!1,l.isShowPlaceholderElement=!1,y.value!==e.modelValue&&(n("update:modelValue",y.value),n("change",y.value))},handleClose:()=>{n("close"),l.showWrapper=!1,l.isShowPlaceholderElement=!1},handleClickOutside:()=>{l.showPopup=!1,n("close")}}}}),Yy={class:"fox-menu-item__content fox-menu-item__overflow"},Xy=["onClick"];function Qy(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Check"),i=(0,t.resolveComponent)("fox-popup");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{onClick:n[0]||(n[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:(0,t.normalizeClass)(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:(0,t.normalizeStyle)(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),(0,t.createVNode)(i,(0,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:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Yy,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(c,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u,class:(0,t.normalizeClass)(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:(0,t.normalizeStyle)({"flex-basis":100/e.cols+"%"}),onClick:p=>e.onClick(c)},[c.value===e.modelValue?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:(0,t.normalizeClass)(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[(0,t.renderSlot)(e.$slots,"icon",{},()=>[(0,t.createVNode)(s,(0,t.mergeProps)({ref_for:!0},e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)([c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:(0,t.normalizeStyle)({color:c.value===e.modelValue?e.parent.props.activeColor:""})},(0,t.toDisplayString)(c.text),7)],14,Xy))),128)),(0,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]])}var Yo=le(jy,[["render",Qy]]),{create:Gy}=G("tabbar"),Zy=Gy({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 o(a){l.value!==a&&(l.value=a,n.emit("update:modelValue",a),n.emit("change",a,l.children[a]))}const l=(0,t.reactive)({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:o});return(0,t.provide)("parent",l),(0,t.watch)(()=>e.modelValue,a=>{l.value=a}),{changeIndex:o}}});function Jy(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[(0,t.renderSlot)(e.$slots,"default")],2)}var Xo=le(Zy,[["render",Jy]]),{create:eb}=G("tabbar-item"),tb=eb({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 o=(0,t.inject)("parent"),l=(0,t.reactive)({size:o.size,inactiveColor:o.inactiveColor,activeColor:o.activeColor,value:o.value,index:0}),a=(0,t.getCurrentInstance)();a!==null&&(c=>{if(c.proxy){let u=o.children.length;l.index=u;let p=Object.assign(c.proxy,{index:u});o.children.push(p)}})(a);const r=(0,t.computed)(()=>l.index===l.value);function s(i){o&&typeof o.changeIndex=="function"&&o.changeIndex(i)}return(0,t.watch)((0,t.computed)(()=>o?o.value:null),i=>{l.value=i}),{state:l,active:r,change:s}}}),nb={class:"fox-tabbar-item_icon-box"},lb={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},ob={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},ab={key:1,class:"fox-tabbar-item_icon-box_dot"},rb={key:2},ib={key:0};function sb(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:(0,t.normalizeStyle)({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=s=>e.change(e.state.index))},[(0,t.createElementVNode)("view",nb,[e.dot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.num&&e.num<=99?((0,t.openBlock)(),(0,t.createElementBlock)("view",lb,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",ob,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",ab)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",rb,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):(0,t.createCommentVNode)("",!0),!e.icon&&e.activeImg?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:(0,t.normalizeStyle)({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",ib,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.title?(0,t.createCommentVNode)("",!0):(0,t.renderSlot)(e.$slots,"default",{key:1})],2)])],6)}var Qo=le(tb,[["render",sb]]),{componentName:cb,create:db}=G("elevator"),ub=db({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 o=(0,t.ref)(null),l=(0,t.reactive)({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),a=(0,t.computed)(()=>({[cb]:!0})),r=(0,t.computed)(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),s=(0,t.computed)(()=>o.value.clientHeight),i=(f,w)=>f.getAttribute("data-"+w),c=f=>{(0,t.nextTick)(()=>{!l.listGroup.includes(f)&&f!=null&&l.listGroup.push(f)})},u=()=>{let f=0;l.listHeight.push(f);for(let w=0;w<l.listGroup.length;w++){let m=l.listGroup[w];f+=Math.floor(m.clientHeight),l.listHeight.push(f)}},p=f=>{!f&&f!==0||(f<0&&(f=0),f>l.listHeight.length-2&&(f=l.listHeight.length-2),l.codeIndex=f,o.value.scrollTo(0,l.listHeight[f]))},d=f=>{l.scrollStart=!0;let w=i(f.target,"index"),m=f.touches[0];l.touchState.y1=m.pageY,l.anchorIndex=+w,l.codeIndex=+w,p(+w)},h=f=>{let w=f.touches[0];l.touchState.y2=w.pageY;let m=(l.touchState.y2-l.touchState.y1)/e.spaceHeight|0;l.codeIndex=l.anchorIndex+m,p(l.codeIndex)},y=()=>{l.scrollStart=!1},C=(f,w)=>{n.emit("click-item",f,w),l.currentData=w,l.currentKey=f},b=f=>{n.emit("click-index",f)},g=f=>{let w=f.target.scrollTop;const m=l.listHeight;l.scrollY=w;for(let v=0;v<m.length-1;v++){let N=m[v],k=m[v+1];if(l.scrollY>=N&&l.scrollY<k){l.currentIndex=v,l.diff=k-l.scrollY;return}}l.currentIndex=m.length-2};return(0,t.onMounted)(()=>{o.value.addEventListener("scroll",g)}),Ee({scrollTo:p}),(0,t.watch)(()=>l.listGroup.length,()=>{l.listHeight=[],(0,t.nextTick)(u)}),(0,t.watch)(()=>l.diff,f=>{const w=l.listHeight;let m=f>0&&f<e.titleHeight?f-e.titleHeight:0;l.scrollY+s.value===w[w.length-1]&&m!==0&&(m=0),l.fixedTop!==m&&(l.fixedTop=m)}),(0,t.watch)(()=>l.currentIndex,f=>{n.emit("change",f)}),{classes:a,...(0,t.toRefs)(l),fixedStyle:r,clientHeight:s,setListGroup:c,listview:o,touchStart:d,touchMove:h,touchEnd:y,handleClickItem:C,handleClickIndex:b}}}),fb={class:"fox-elevator__list__item__code"},mb=["onClick"],pb=["innerHTML"],hb={class:"fox-elevator__fixed-title"},gb={class:"fox-elevator__bars__inner"},yb=["data-index","onClick"];function bb(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:"fox-elevator__list",ref:"listview",style:(0,t.normalizeStyle)({height:isNaN(+e.height)?e.height:`${e.height}px`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,s=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[(0,t.createElementVNode)("view",fb,(0,t.toDisplayString)(s[e.acceptKey]),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.list,i=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,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?(0,t.renderSlot)(e.$slots,"default",{key:1,item:i}):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:i.name},null,8,pb))],10,mb))),128))]))),128)),e.isSticky?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-elevator__list__fixed",style:(0,t.normalizeStyle)(e.fixedStyle)},[(0,t.createElementVNode)("span",hb,(0,t.toDisplayString)(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):(0,t.createCommentVNode)("",!0)],4),e.indexList.length?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-elevator__code--current"},(0,t.toDisplayString)(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-elevator__bars",onTouchstart:n[0]||(n[0]=(...s)=>e.touchStart&&e.touchStart(...s)),onTouchmove:n[1]||(n[1]=(0,t.withModifiers)((...s)=>e.touchMove&&e.touchMove(...s),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...s)=>e.touchEnd&&e.touchEnd(...s))},[(0,t.createElementVNode)("view",gb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,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])},(0,t.toDisplayString)(s[e.acceptKey]),11,yb))),128))])],32)],2)}var Qt=le(ub,[["render",bb]]),{componentName:QA,create:kb,scope:Sb}=G("pagination"),wb=kb({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:o}=(0,ce.useFoxI18n)(Sb),l=o(e,["prevText","nextText"]),{modelValue:a,mode:r,showPageSize:s,forceEllipses:i}=(0,t.toRefs)(e),c=(0,t.computed)(()=>{const{pageCount:h,totalItems:y,itemsPerPage:C}=(0,t.toRefs)(e),b=+h.value||Math.ceil(+y.value/+C.value);return Math.max(1,b)}),u=(h,y)=>{h>c.value||h<1||(h!=a.value&&n("update:modelValue",h),y&&n("change",h))},p=(h,y,C=!1)=>({number:h,text:y,active:C}),d=(0,t.computed)(()=>{if(r.value=="simple")return;let h=[];const y=c.value,C=+s.value;let b=1,g=y;const f=y>C;f&&(b=Math.max(a.value-Math.floor(C/2),1),g=b+C-1,g>y&&(g=y,b=g-C+1));for(var w=b;w<=g;w++){const m=p(w,w,a.value==w);h.push(m)}if(f&&C>0&&i.value){if(b>1){const m=p(b-1,"...");h.unshift(m)}if(g<y){const m=p(g+1,"...");h.push(m)}}return h});return(0,t.watchEffect)(()=>{u(a.value,!1)}),{...l,modelValue:a,select:u,countRef:c,mode:r,pages:d,forceEllipses:i}}}),Cb={class:"fox-pagination"},vb={key:0,class:"fox-pagination-contain"},Nb=["onClick"],Bb={key:1,class:"fox-pagination-contain"},Ab={class:"fox-pagination-simple"};function Vb(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Cb,[(0,t.createElementVNode)("view",{class:(0,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))},[(0,t.renderSlot)(e.$slots,"prev-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.prevText),1)])],2),e.mode=="multi"?((0,t.openBlock)(),(0,t.createElementBlock)("view",vb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pages,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:i+"pagination",class:(0,t.normalizeClass)(["fox-pagination-item",s.active?"active":""]),onClick:c=>e.select(s.number,!0)},[(0,t.renderSlot)(e.$slots,"page",{item:s},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.text),1)])],10,Nb))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Bb,[(0,t.createElementVNode)("view",Ab,(0,t.toDisplayString)(e.modelValue)+"/"+(0,t.toDisplayString)(e.countRef),1)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=s=>e.select(e.modelValue+1,!0))},[(0,t.renderSlot)(e.$slots,"next-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextText),1)])],2)])}var Go=le(wb,[["render",Vb]]),Tb=(e,n,o,l)=>{const a=(0,t.ref)(),r=(0,t.ref)({width:0,height:0}),s=async()=>{if(o&&o.getEnv()!==o.ENV_TYPE.WEB){let d=await l(a,o);r.value.width=d.width||0,r.value.height=d.height||0}else r.value.width=a.value?.clientWidth||0,r.value.height=a.value?.clientHeight||0};(0,t.onMounted)(()=>{setTimeout(()=>{s()},100)});const i=(0,t.reactive)({offset:0,moving:!1}),c=nt();let u="";const p=(d,h)=>{let y=d;switch(e.direction=="horizontal"?(u=d>0?"right":"left",y=Math.abs(y)/r.value.width*100):(u=h>0?"bottom":"top",y=h,y=Math.abs(y)/r.value?.height*100),y>85&&(y=85),u){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(d){e.swipeable&&c.start(d)},onTouchMove(d){e.swipeable&&(c.move(d),i.moving=!0,p(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(d.preventDefault(),d.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(d.preventDefault(),d.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,u){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:a}},$b=class{title="";titleSlot;paneKey="";disabled=!1;constructor(){}},{create:Eb}=G("tabs"),Db=Eb({components:{[Xt.name]:Xt,JoySmile:oe.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null);let a;(0,t.provide)("tabsOpiton",{activeKey:(0,t.computed)(()=>e.modelValue||"0"),autoHeight:(0,t.computed)(()=>e.autoHeight),animatedTime:(0,t.computed)(()=>e.animatedTime)});const r=(0,t.ref)([]),s=E=>{E.forEach(($,_)=>{let J=$.type;if(J=J.name||J,J=="fox-tab-pane"){let D=new $b;if($.props?.title||$.props?.["pane-key"]||$.props?.paneKey){let T=rt($.props?.["pane-key"]),P=T=="number"||T=="string"?String($.props?.["pane-key"]):null,q=rt($.props?.paneKey),O=q=="number"||q=="string"?String($.props?.paneKey):null;D.title=$.props?.title,D.paneKey=P||O||String(_),D.disabled=$.props?.disabled}r.value.push(D)}else{if($.children==" ")return;Array.isArray($.children)&&s($.children)}})},i=(0,t.ref)(e.modelValue||0),c=E=>{let $=r.value.findIndex(_=>_.paneKey==E);r.value.length==0||$==-1||(i.value=$)},u=(0,t.computed)(()=>e.titleScroll&&e.direction==="vertical"),p=(0,t.ref)(),d=(0,t.ref)([]),h=E=>{const $=p.value,_=d.value;if(!$||!_||!_[i.value])return;const J=_[i.value];let D=0;e.direction==="vertical"?D=J.offsetTop-$.offsetTop+10-($.offsetHeight-J.offsetHeight)/2:D=J.offsetLeft-($.offsetWidth-J.offsetWidth)/2,y($,D,E?0:.3,e.direction)},y=(E,$,_,J)=>{let D=0;const T=J==="horizontal"?E.scrollLeft:E.scrollTop,P=_===0?1:Math.round(_*1e3/16);function q(){J==="horizontal"?E.scrollLeft+=($-T)/P:E.scrollTop+=($-T)/P,++D<P&&We(q)}q()},C=(E=o.default?.())=>{r.value=[],E=E?.filter($=>typeof $.children!="string"),E&&E.length&&s(E),c(e.modelValue),(0,t.nextTick)(()=>{h()})},b=E=>{a=E.fixed};(0,t.watch)(()=>o.default?.(),E=>{C(E)});const g=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;(0,t.watch)(()=>e.modelValue,E=>{if(c(E),h(),a){let $=Pe(l.value).top+g(),_=Math.ceil($-e.top);window.scrollTo({top:_,behavior:"smooth"})}}),(0,t.onMounted)(C),(0,t.onActivated)(C);const f={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,f.updateValue(r.value[i.value])},prev:()=>{i.value-=1,f.updateValue(r.value[i.value])},updateValue:E=>{n("update:modelValue",E.paneKey),n("change",E)},tabChange:(E,$)=>{n("click",E),!(E.disabled||i.value==$)&&(i.value=$,f.updateValue(E))},setTabItemRef:(E,$)=>{d.value[$]=E}},{tabsContentRef:w,touchState:m,touchMethods:v}=Tb(e,f),N=(0,t.computed)(()=>{let E=i.value*100;m.moving&&(E+=m.offset);let $={transform:e.direction=="horizontal"?`translate3d(-${E}%, 0, 0)`:`translate3d( 0,-${E}%, 0)`,transitionDuration:m.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&($={}),$}),k=(0,t.computed)(()=>({background:e.background})),S=(0,t.computed)(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),A=(0,t.computed)(()=>{if(!e.titleGutter)return{};const E=ue(e.titleGutter);return e.direction==="vertical"?{marginTop:E,marginBottom:E}:{marginLeft:E,marginRight:E}}),V=(0,t.computed)(()=>o.fixedTitle);return{navRef:p,tabsContentRef:w,titles:r,contentStyle:N,tabsNavStyle:k,titleStyle:A,tabsActiveStyle:S,container:l,getScrollY:u,onStickyScroll:b,...f,...v,hasFixedTitle:V}}}),Ib=["onClick"],qb={key:0,class:"fox-tabs__titles-fixed-item"},Pb=["onClick"],xb={key:0,class:"fox-tabs__titles-fixed-item"};function Mb(e,n,o,l,a,r){const s=(0,t.resolveComponent)("JoySmile"),i=(0,t.resolveComponent)("fox-sticky");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:(0,t.normalizeStyle)(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?(0,t.renderSlot)(e.$slots,"titles",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.titles,(c,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:p=>e.tabChange(c,u),key:c.paneKey},[(0,t.renderSlot)(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-tabs__titles-item__line",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},null,4)):(0,t.createCommentVNode)("",!0),e.type=="smile"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-tabs__titles-item__smile",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},[(0,t.createVNode)(s,{color:e.color},null,8,["color"])],4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},(0,t.toDisplayString)(c.title),3)])],14,Ib))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",qb,[(0,t.renderSlot)(e.$slots,"fixedTitle")])):(0,t.createCommentVNode)("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:(0,t.normalizeStyle)(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?(0,t.renderSlot)(e.$slots,"titles",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.titles,(c,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:p=>e.tabChange(c,u),key:c.paneKey,ref_for:!0,ref:p=>e.setTabItemRef(p,u)},[(0,t.renderSlot)(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-tabs__titles-item__line",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},null,4)):(0,t.createCommentVNode)("",!0),e.type=="smile"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-tabs__titles-item__smile",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},[(0,t.createVNode)(s,{color:e.color},null,8,["color"])],4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},(0,t.toDisplayString)(c.title),3)])],14,Pb))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",xb,[(0,t.renderSlot)(e.$slots,"fixedTitle")])):(0,t.createCommentVNode)("",!0)],64))],6)),(0,t.createElementVNode)("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:(0,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))},[(0,t.renderSlot)(e.$slots,"default")],36)],2)}var Zo=le(Db,[["render",Mb]]),{create:Lb}=G("tab-pane"),zb=Lb({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const o=(0,t.inject)("tabsOpiton"),l=(0,t.computed)(()=>({display:o.animatedTime.value==0&&e.paneKey!=o.activeKey.value?"none":void 0}));return{...o,paneStyle:l}}});function Ob(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:(0,t.normalizeStyle)(e.paneStyle)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Jo=le(zb,[["render",Ob]]),{componentName:Ri,create:Fb}=G("indicator"),Rb=Fb({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:o}=(0,t.toRefs)(e);return{classes:(0,t.computed)(()=>{const l=Ri;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${o.value}`]:n.value&&o.value}}),componentName:Ri,padZero:it}}});function Kb(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.size,s=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:s},[s===e.current?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(`${e.componentName}--number`)},(0,t.toDisplayString)(e.fillZero&&e.padZero(s)||s),3)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var ea=le(Rb,[["render",Kb]]),{componentName:Ub,create:Hb}=G("side-navbar"),_b=Hb({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=(0,t.ref)(null),o=(0,t.reactive)({count:1,observer:null}),l=(0,t.computed)(()=>({[Ub]:!0})),a=(s,i=1)=>{for(let c=0;c<s.length;c++){let u=s[c];u?.children?.[0]&&(u.children[0].style.paddingLeft=+e.offset*i+"px",u.className.includes("fox-side-navbar-item")||a(Array.from(u.children[1].children),++o.count))}o.count--},r=()=>{let s=n.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),a(s))};return(0,t.onMounted)(()=>{r(),o.observer=new MutationObserver(function(){o.count=1,r()}),o.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(o),list:n,classes:l}}}),Wb={class:"fox-side-navbar__content"},jb={class:"fox-side-navbar__content__list",ref:"list"};function Yb(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",Wb,[(0,t.createElementVNode)("view",jb,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var ta=le(_b,[["render",Yb]]),{componentName:Xb,create:Qb}=G("side-navbar-item"),Gb=Qb({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[Xb]:!0})),handleClick:()=>{n.emit("click")}})}),Zb=["ikey"],Jb={class:"fox-side-navbar-item__title"};function ek(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[(0,t.createElementVNode)("span",Jb,(0,t.toDisplayString)(e.title),1)],10,Zb)}var na=le(Gb,[["render",ek]]),{componentName:tk,create:nk}=G("sub-side-navbar"),lk=nk({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:oe.ArrowDown2,ArrowUp2:oe.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const o=(0,t.reactive)({direction:""}),l=(0,t.computed)(()=>({[tk]:!0})),a=(0,t.computed)(()=>({height:o.direction?"0px":"auto"})),r=()=>{n.emit("title-click"),o.direction=o.direction?"":"up"};return(0,t.onMounted)(()=>{o.direction=e.open?"":"up"}),{...(0,t.toRefs)(o),classes:l,style:a,handleClick:r}}}),ok=["ikey"],ak={class:"fox-sub-side-navbar__title__text"},rk={class:"fox-sub-side-navbar__title__icon"};function ik(e,n,o,l,a,r){const s=(0,t.resolveComponent)("ArrowDown2"),i=(0,t.resolveComponent)("ArrowUp2");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ikey:e.ikey},[(0,t.createElementVNode)("view",{class:"fox-sub-side-navbar__title",onClick:n[0]||(n[0]=(0,t.withModifiers)((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[(0,t.createElementVNode)("span",ak,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",rk,[e.direction?((0,t.openBlock)(),(0,t.createBlock)(i,{key:1})):((0,t.openBlock)(),(0,t.createBlock)(s,{key:0}))])]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,ok)}var la=le(lk,[["render",ik]]),{componentName:sk,create:ck}=G("range"),dk=ck({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 o=(0,t.ref)(0);let l,a;const r=(0,t.ref)(),s=(0,t.ref)(),i=nt(),c=(0,t.computed)(()=>{const{marks:D,max:T,min:P}=e;return Object.keys(D).map(parseFloat).sort((q,O)=>q-O).filter(q=>q>=P&&q<=T)}),u=(0,t.computed)(()=>Number(e.max)-Number(e.min)),p=(0,t.computed)(()=>{const D=sk;return{[D]:!0,[`${D}-disabled`]:e.disabled,[`${D}-vertical`]:e.vertical,[`${D}-show-number`]:!e.hiddenRange}}),d=(0,t.computed)(()=>{const D="fox-range-container";return{[D]:!0,[`${D}-vertical`]:e.vertical}}),h=(0,t.computed)(()=>({background:e.inactiveColor})),y=(0,t.computed)(()=>({borderColor:e.buttonColor})),C=D=>!!e.range&&Array.isArray(D),b=()=>{const{modelValue:D,min:T}=e;return C(D)?`${(D[1]-D[0])*100/u.value}%`:`${(D-Number(T))*100/u.value}%`},g=()=>{const{modelValue:D,min:T}=e;return C(D)?`${(D[0]-Number(T))*100/u.value}%`:"0%"},f=(0,t.computed)(()=>e.vertical?{height:b(),top:g(),background:e.activeColor,transition:s.value?"none":void 0}:{width:b(),left:g(),background:e.activeColor,transition:s.value?"none":void 0}),w=D=>{const T="fox-range-mark",{modelValue:P,max:q,min:O}=e;let R=Number(O),x=Number(q);if(e.range){const[ne,F]=P;R=ne,x=F}else x=P;let Q=D<=x&&D>=R;return{[`${T}-text`]:!0,[`${T}-text-active`]:Q}},m=D=>{const{min:T,vertical:P}=e;let q={left:`${(D-Number(T))/u.value*100}%`};return P&&(q={top:`${(D-Number(T))/u.value*100}%`}),q},v=D=>{const{modelValue:T,max:P,min:q}=e;let O=Number(q),R=Number(P);if(e.range){const[x,Q]=T;O=x,R=Q}return{background:D<=R&&D>=O?e.activeColor:e.inactiveColor}},N=D=>{const{min:T,max:P,step:q}=e;return D=Math.max(+T,Math.min(D,+P)),Math.round(D/+q)*+q},k=(D,T)=>JSON.stringify(D)===JSON.stringify(T),S=D=>D[0]>D[1]?D.slice(0).reverse():D,A=(D,T)=>{C(D)?D=S(D).map(N):D=N(D),k(D,e.modelValue)||n("update:modelValue",D),T&&!k(D,l)&&n("change",D)},V=D=>{if(e.disabled)return;const{min:T,modelValue:P}=e,q=Pe(r);let O=D.clientX-q.left,R=q.width;e.vertical&&(O=D.clientY-q.top,R=q.height);const x=Number(T)+O/R*u.value;if(C(P)){const[Q,ne]=P;x<=(Q+ne)/2?A([x,ne],!0):A([Q,x],!0)}else A(x,!0)},E=D=>{e.disabled||(i.start(D),a=e.modelValue,C(a)?l=a.map(N):l=N(a),s.value="start")},$=D=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(D),s.value="draging";const T=Pe(r);let P=i.deltaX.value,q=T.width,O=P/q*u.value;e.vertical&&(P=i.deltaY.value,q=T.height,O=P/q*u.value),C(l)?a[o.value]=l[o.value]+O:a=l+O,A(a),D.stopPropagation(),D.preventDefault()},_=()=>{e.disabled||(s.value==="draging"&&(A(a,!0),n("drag-end")),s.value="")},J=D=>mn(e.modelValue)&&typeof D=="number"?e.modelValue[D]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:h,buttonStyle:y,onClick:V,onTouchStart:E,onTouchMove:$,onTouchEnd:_,...(0,t.toRefs)(e),barStyle:f,curValue:J,buttonIndex:o,containerClasses:d,markClassName:w,marksStyle:m,marksList:c,tickStyle:v}}}),uk={key:0,class:"fox-range-min"},fk={key:0,class:"fox-range-mark"},mk=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],pk={key:0,class:"number"},hk=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],gk={key:0,class:"number"},yk={key:1,class:"fox-range-max"};function bk(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.containerClasses)},[e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",uk,(0,t.toDisplayString)(+e.min),1)),(0,t.createElementVNode)("view",{ref:"root",style:(0,t.normalizeStyle)(e.wrapperStyle),class:(0,t.normalizeClass)(e.classes),onClick:n[9]||(n[9]=(0,t.withModifiers)((...s)=>e.onClick&&e.onClick(...s),["stop"]))},[e.marksList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",fk,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.marksList,s=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:s,class:(0,t.normalizeClass)(e.markClassName(s)),style:(0,t.normalizeStyle)(e.marksStyle(s))},[(0,t.createTextVNode)((0,t.toDisplayString)(s)+" ",1),(0,t.createElementVNode)("span",{class:"fox-range-tick",style:(0,t.normalizeStyle)(e.tickStyle(s))},null,4)],6))),128))])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-range-bar",style:(0,t.normalizeStyle)(e.barStyle)},[e.range?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)([0,1],s=>(0,t.createElementVNode)("view",{key:s,role:"slider",class:(0,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:(0,t.withModifiers)(i=>{typeof s=="number"&&(e.buttonIndex=s),e.onTouchStart(i)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=(0,t.withModifiers)((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:n[1]||(n[1]=(0,t.withModifiers)((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=(0,t.withModifiers)((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:n[3]||(n[3]=i=>i.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",pk,(0,t.toDisplayString)(e.curValue(s)),1))],4))],42,mk)),64)):((0,t.openBlock)(),(0,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]=(0,t.withModifiers)(s=>{e.onTouchStart(s)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=(0,t.withModifiers)((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=(0,t.withModifiers)((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:n[8]||(n[8]=s=>s.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",gk,(0,t.toDisplayString)(e.curValue()),1))],4))],40,hk))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",yk,(0,t.toDisplayString)(+e.max),1))],2)}var Gt=le(dk,[["render",bk]]),{create:kk,scope:Sk}=G("short-password"),wk=kk({components:{[pe.name]:pe,Tips:oe.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:o}=(0,ce.useFoxI18n)(Sk),l=o(e,["title","desc","tips"]),a=(0,t.ref)(e.modelValue),r=(0,t.computed)(()=>u(Number(e.length))),s=(0,t.ref)(e.visible),i=d=>{d.stopPropagation(),n("focus")};(0,t.watch)(()=>e.visible,d=>{s.value=d}),(0,t.watch)(()=>e.modelValue,d=>{a.value=d,String(d).length===r.value&&n("complete",d)});const c=()=>{n("update:visible",!1),n("close")},u=d=>Math.min(Math.max(4,d),6);return{comLen:r,realInput:a,onTouchStart:i,range:u,close:c,onTips:()=>{n("tips")},show:s,...l}}}),Ck={class:"fox-short-password-title"},vk={class:"fox-short-password-subtitle"},Nk={class:"fox-short-password-wrapper"},Bk={key:0,class:"fox-short-password__item-icon"},Ak={class:"fox-short-password__message"},Vk={class:"fox-short-password--error"},Tk={key:0,class:"fox-short-password--forget"};function $k(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Tips"),i=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",null,[(0,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:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Ck,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",vk,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",Nk,[(0,t.createElementVNode)("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(new Array(e.comLen),(c,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-short-password__item",key:u},[String(e.realInput).length>u?((0,t.openBlock)(),(0,t.createElementBlock)("view",Bk)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",Ak,[(0,t.createElementVNode)("view",Vk,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",Tk,[(0,t.createVNode)(s,{class:"icon",width:"11px",height:"11px"}),(0,t.createElementVNode)("view",{onClick:n[1]||(n[1]=(...c)=>e.onTips&&e.onTips(...c))},(0,t.toDisplayString)(e.tips),1)])):(0,t.createCommentVNode)("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}var oa=le(wk,[["render",$k]]),Ek=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},Dk=class{options;constructor(e){this.options=e}upload(){const e=this.options,n=new XMLHttpRequest;if(n.timeout=e.timeout,n.upload){n.upload.addEventListener("progress",o=>{e.onProgress?.(o,e)},!1),n.onreadystatechange=()=>{n.readyState===4&&(n.status==e.xhrState?e.onSuccess?.(n.responseText,e):e.onFailure?.(n.responseText,e))},n.withCredentials=e.withCredentials,n.open(e.method,e.url,!0);for(const[o,l]of Object.entries(e.headers))n.setRequestHeader(o,l);e.onStart?.(e),e.beforeXhrUpload?e.beforeXhrUpload(n,e):n.send(e.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}},Ik=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},Ki=(e,{args:n=[],done:o,canceled:l})=>{if(e){const a=e.apply(null,n);mt(a)?a.then(r=>{r?o(r):l&&l()}).catch(()=>{}):a?o():l&&l()}else o()},{create:qk}=G("progress"),Pk=qk({components:{Checked:oe.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!(0,t.useSlots)().default,o=(0,t.ref)(e.strokeWidth+"px"),l=(0,t.ref)(),a=(0,t.ref)(),r=(0,t.computed)(()=>e.percentage>=100?100:e.percentage),s=(0,t.computed)(()=>({width:r.value+"%",background:e.strokeColor||""})),i=(0,t.computed)(()=>({color:e.textColor||""}));return(0,t.onMounted)(()=>{}),{height:o,percentage:r,bgStyle:s,textStyle:i,progressOuter:l,insideText:a,slotDefault:n}}}),xk={class:"fox-progress"},Mk={key:0,class:"fox-progress-text"};function Lk(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",xk,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-progress-outer",[e.showText&&!e.textInside?"fox-progress-outer-part":"",e.size?"fox-progress-"+e.size:""]]),ref:"progressOuter",style:(0,t.normalizeStyle)({height:e.height})},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-progress-inner",e.status=="active"?"fox-active":""]),style:(0,t.normalizeStyle)(e.bgStyle)},null,6),e.showText&&e.textInside&&!e.slotDefault?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-progress-text fox-progress-insidetext",ref:"insideText",style:(0,t.normalizeStyle)({lineHeight:e.height,left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`,background:e.textBackground||e.strokeColor})},[(0,t.createElementVNode)("span",{style:(0,t.normalizeStyle)(e.textStyle)},(0,t.toDisplayString)(e.percentage)+(0,t.toDisplayString)(e.isShowPercentage?"%":""),5)],4)):(0,t.createCommentVNode)("",!0),e.showText&&e.textInside&&e.slotDefault?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,ref:"insideText",style:(0,t.normalizeStyle)({position:"absolute",top:"50%",left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`})},[(0,t.renderSlot)(e.$slots,"default")],4)):(0,t.createCommentVNode)("",!0)],6),e.showText&&!e.textInside?((0,t.openBlock)(),(0,t.createElementBlock)("div",Mk,[e.status=="active"||e.status==""?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,style:(0,t.normalizeStyle)(e.textStyle)},(0,t.toDisplayString)(e.percentage)+(0,t.toDisplayString)(e.isShowPercentage?"%":""),5)):e.status=="icon"?(0,t.renderSlot)(e.$slots,"icon-name",{key:1},()=>[(0,t.createVNode)(s,{width:"15px",height:"15px",color:"#439422"})]):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)])}var Zt=le(Pk,[["render",Lk]]),{componentName:zk,create:Ok,scope:Fk}=G("uploader"),Rk=Ok({components:{[Zt.name]:Zt,Photograph:oe.Photograph,Failure:oe.Failure,Loading:oe.Loading,Del:oe.Del,Link:oe.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:o}=(0,ce.useFoxI18n)(Fk),l=(0,t.reactive)(e.fileList);let a=[];const r=(0,t.computed)(()=>({[zk]:!0})),s=()=>{let w={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(w.capture="camera"),(0,t.h)("input",w)},i=w=>{w.value=""},c=w=>{n("file-item-click",{fileItem:w})},u=(w,m)=>{const v=new Ek;v.url=e.url,v.formData=w.formData,v.timeout=e.timeout*1,v.method=e.method,v.xhrState=e.xhrState,v.headers=e.headers,v.withCredentials=e.withCredentials,v.beforeXhrUpload=e.beforeXhrUpload;try{v.sourceFile=w.formData.get(e.name)}catch{}v.onStart=k=>{w.status="ready",w.message=o("readyUpload"),p(m),n("start",k)},v.onProgress=(k,S)=>{w.status="uploading",w.message=o("uploading"),w.percentage=(k.loaded/k.total*100).toFixed(0),n("progress",{event:k,option:S,percentage:w.percentage})},v.onSuccess=(k,S)=>{w.status="success",w.message=o("success"),n("success",{responseText:k,option:S,fileItem:w}),n("update:fileList",l)},v.onFailure=(k,S)=>{w.status="error",w.message=o("error"),n("failure",{responseText:k,option:S,fileItem:w})};let N=new Dk(v);e.autoUpload?N.upload():a.push(new Promise((k,S)=>{k(N)}))},p=(w=-1)=>{w>-1?a.splice(w,1):(a=[],l.splice(0,l.length))},d=()=>{Promise.all(a).then(w=>{w.forEach(m=>m.upload())})},h=w=>{w.forEach((m,v)=>{const N=new FormData;for(const[S,A]of Object.entries(e.data))N.append(S,A);N.append(e.name,m);const k=(0,t.reactive)(new Ik);if(k.name=m.name,k.status="ready",k.type=m.type,k.formData=N,k.message=o("waitingUpload"),u(k,v),e.isPreview&&m.type.includes("image")){const S=new FileReader;S.onload=A=>{k.url=A.target.result,l.push(k)},S.readAsDataURL(m)}else l.push(k)})},y=w=>{const m=e.maximum*1,v=e.maximize*1,N=new Array;w=w.filter(S=>S.size>v?(N.push(S),!1):!0),N.length&&n("oversize",N);let k=w.length+l.length;return k>m&&w.splice(w.length-(k-m)),w},C=(w,m)=>{l.splice(m,1),n("delete",{file:w,fileList:l,index:m})},b=(w,m)=>{p(m),Ki(e.beforeDelete,{args:[w,l],done:()=>C(w,m)})},g=w=>{if(e.disabled)return;const m=w.target;let{files:v}=m;e.beforeUpload?e.beforeUpload(v).then(N=>f(N)):f(v),n("change",{fileList:l,event:w}),e.clearInput&&i(m)},f=w=>{h(y(new Array().slice.call(w)))};return{onChange:g,onDelete:b,fileList:l,classes:r,fileItemClick:c,clearUploadQueue:p,submit:d,renderInput:s}}}),Kk={key:0,class:"fox-uploader__slot"},Uk={key:0,class:"fox-uploader__preview-img"},Hk={key:0,class:"fox-uploader__preview__progress"},_k={class:"fox-uploader__preview__progress__msg"},Wk=["onClick"],jk=["onClick","src"],Yk={key:3,class:"fox-uploader__preview-img__file"},Xk=["onClick"],Qk={class:"file__name_tips"},Gk={class:"tips"},Zk={key:1,class:"fox-uploader__preview-list"},Jk=["onClick"],eS={class:"file__name_tips"};function tS(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Failure"),i=(0,t.resolveComponent)("Loading"),c=(0,t.resolveComponent)("Link"),u=(0,t.resolveComponent)("Del"),p=(0,t.resolveComponent)("fox-progress"),d=(0,t.resolveComponent)("Photograph");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",Kk,[(0,t.renderSlot)(e.$slots,"default"),Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.fileList,(h,y)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-uploader__preview",[e.listType]]),key:h.uid},[e.listType=="picture"&&!e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",Uk,[h.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hk,[h.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[h.status=="error"?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,color:"#fff"})):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,name:"loading",color:"#fff"}))],64)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",_k,(0,t.toDisplayString)(h.message),1)])):(0,t.createCommentVNode)("",!0),e.isDeletable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"close",onClick:C=>e.onDelete(h,y)},[(0,t.renderSlot)(e.$slots,"delete-icon",{},()=>[(0,t.createVNode)(s)])],8,Wk)):(0,t.createCommentVNode)("",!0),h?.type?.includes("image")&&h.url?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,class:"fox-uploader__preview-img__c",onClick:C=>e.fileItemClick(h),src:h.url},null,8,jk)):((0,t.openBlock)(),(0,t.createElementBlock)("view",Yk,[(0,t.createElementVNode)("view",{onClick:C=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[(0,t.createElementVNode)("view",Qk,(0,t.toDisplayString)(h.name),1)],8,Xk)])),(0,t.createElementVNode)("view",Gk,(0,t.toDisplayString)(h.name),1)])):e.listType=="list"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Zk,[(0,t.createElementVNode)("view",{onClick:C=>e.fileItemClick(h),class:(0,t.normalizeClass)(["fox-uploader__preview-img__file__name",[h.status]])},[(0,t.createVNode)(c,{class:"fox-uploader__preview-img__file__link"}),(0,t.createElementVNode)("view",eS,(0,t.toDisplayString)(h.name),1),e.isDeletable?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:C=>e.onDelete(h,y)},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],10,Jk),h.status=="uploading"?((0,t.openBlock)(),(0,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"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(["fox-uploader__upload",[e.listType]])},[(0,t.renderSlot)(e.$slots,"upload-icon",{},()=>[(0,t.createVNode)(d,{color:"#808080"})]),((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):(0,t.createCommentVNode)("",!0)],2)}var aa=le(Rk,[["render",tS]]),nS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBN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MC0tDQo=",lS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAAgCAYAAACLmoEDAAACb0lEQVRYR+WY33HTMBzHvz/J72QD8tyzhJiAMAHdgDBBywQ0E5BuECYAJqCZAGPl+pxMQPoeSZwUy6ck7sUlBtziJ59P/urj33+ZlFIDa8wHAOcAhujftQYwY5xPSOb5FEQX/WPcI3LumqQQPwEMeg8LrD2sq0DnpdajvkFLIW4AvPJcjx/WJ50x5oX/Gs75qiiKpb9XSg2NMc+r5z+KovDBD3V2pgznz/y91noevSOECBbhxtwVt7dFpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:oS,scope:aS}=G("number-keyboard"),rS=oS({components:{[pe.name]:pe},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:o}=(0,ce.useFoxI18n)(aS),l=o(e,["confirmText"]),a=(0,t.ref)(void 0),r=(0,t.ref)(e.visible),s=(0,t.ref)();function i(){const{customKey:f}=e;let w={id:"lock",type:"lock"},m=Array.isArray(f)?f:[f];return m.length===1&&(w={id:m[0],type:"custom"}),[...c(),w,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const f=[];for(let w=1;w<=9;w++)f.push({id:w,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function u(){const f=c(),{customKey:w}=e;let m=Array.isArray(w)?w:[w];return m.length>2&&(m=[m[0],m[1]]),m.length==2&&e.title&&e.type!="rightColumn"&&(m=[m[0]]),m.length===1?e.title&&e.type!="rightColumn"?f.push({id:m[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:m[0],type:"custom"}):m.length===2&&f.push({id:m[0],type:"custom"},{id:0,type:"number"},{id:m[1],type:"custom"}),f}const p=(0,t.computed)(()=>e.type=="rightColumn"||e.title!=""?u():i()),d=()=>{e.visible&&n("blur")},h=f=>{const w=s.value;w&&!w.contains(f.target)&&d()};(0,t.watch)(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function y(f,w){w.stopPropagation(),a.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"&&g(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function C(f){f.stopPropagation()}function b(f){f.preventDefault(),a.value=void 0}function g(){n("update:visible",!1),n("close")}return{...l,delImg:nS,lockImg:lS,clickKeyIndex:a,defaultKey:i,closeBoard:g,onTouchEnd:b,onTouchMove:C,onTouchstart:y,keysList:p,genCustomKeys:u,getBasicKeys:c,root:s,show:r}}}),iS={ref:"root"},sS={class:"fox-number-keyboard"},cS={key:0,class:"fox-number-keyboard__header"},dS={class:"fox-number-keyboard__title"},uS={class:"fox-number-keyboard__body"},fS={class:"fox-number-keyboard__keys"},mS=["onTouchstart"],pS=["src"],hS=["src"],gS={key:0,class:"fox-number-keyboard__sidebar"},yS={class:"fox-key__wrapper"},bS=["src"];function kS(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",iS,[(0,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:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",sS,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",cS,[(0,t.createElementVNode)("h3",dS,(0,t.toDisplayString)(e.title),1),e.type=="default"?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-number-keyboard__close",onClick:n[0]||(n[0]=i=>e.closeBoard())},(0,t.toDisplayString)(e.confirmText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",uS,[(0,t.createElementVNode)("div",fS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.keysList,i=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:"key"+i.id,class:(0,t.normalizeClass)(["fox-key__wrapper",{"fox-key__wrapper--wider":i.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[(0,t.createElementVNode)("div",{class:(0,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"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(i.id),1)],64)):(0,t.createCommentVNode)("",!0),i.type=="lock"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:1,src:e.lockImg},null,8,pS)):(0,t.createCommentVNode)("",!0),i.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,hS)):(0,t.createCommentVNode)("",!0)],42,mS)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",gS,[(0,t.createElementVNode)("div",yS,[(0,t.createElementVNode)("div",{class:(0,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))},[(0,t.createElementVNode)("img",{src:e.delImg},null,8,bS)],34)]),(0,t.createElementVNode)("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=i=>e.closeBoard())},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},(0,t.toDisplayString)(e.confirmText),3)])])):(0,t.createCommentVNode)("",!0)])])]),_:1},8,["visible","popClass"])],512)}var ra=le(rS,[["render",kS]]),{componentName:SS,create:wS}=G("swipe"),CS=wS({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 o=(0,t.computed)(()=>({[SS]:!0})),l=f=>f.value?.clientWidth||0,a=(0,t.ref)(),r=(0,t.computed)(()=>l(a)),s=(0,t.ref)(),i=(0,t.computed)(()=>l(s));let c=!1,u="",p="";const d=(0,t.reactive)({offset:0,moving:!1}),h=(f="")=>{c=!0,f&&(d.offset=f==="left"?-i.value:r.value),n("open",{name:e.name,position:u||f})},y=()=>{d.offset=0,c=!1,n("close",{name:e.name,position:u})},C=(0,t.computed)(()=>({transform:`translate3d(${d.offset}px, 0, 0)`})),b=f=>{u=f>0?"right":"left";let w=f;switch(u){case"left":c&&p===u?w=-i.value:w=Math.abs(f)>i.value?-i.value:f;break;case"right":c&&p===u?w=r.value:w=Math.abs(f)>r.value?r.value:f;break}d.offset=w},g=nt();return{classes:o,touchStyle:C,onTouchStart(f){e.disabled||g.start(f)},onTouchMove(f){e.disabled||(g.move(f),g.isHorizontal()&&(d.moving=!0,b(g.deltaX.value),e.touchMovePreventDefault&&f.preventDefault(),e.touchMoveStopPropagation&&f.stopPropagation()))},onTouchEnd(){if(d.moving)switch(d.moving=!1,p=u,u){case"left":Math.abs(d.offset)<=i.value/2?y():(d.offset=-i.value,h());break;case"right":Math.abs(d.offset)<=r.value/2?y():(d.offset=r.value,h());break}},leftRef:a,rightRef:s,open:h,close:y}}}),vS={class:"fox-swipe__left",ref:"leftRef"},NS={class:"fox-swipe__content"},BS={class:"fox-swipe__right",ref:"rightRef"};function AS(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,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))},[(0,t.createElementVNode)("view",vS,[(0,t.renderSlot)(e.$slots,"left")],512),(0,t.createElementVNode)("view",NS,[(0,t.renderSlot)(e.$slots,"default")]),(0,t.createElementVNode)("view",BS,[(0,t.renderSlot)(e.$slots,"right")],512)],38)}var Jt=le(CS,[["render",AS]]),{componentName:VS,create:TS}=G("action-sheet"),$S=TS({components:{Popup:pe,Loading:oe.Loading},props:{...Re,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const o=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[VS]:!0}));return{slotDefault:o,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(c,u)=>{!c.disable&&!c.loading&&(n("choose",c,u),n("update:visible",!1))},close:c=>{n("close",c),n("update:visible",!1)},classes:l}}}),ES={key:0,class:"fox-action-sheet__title"},DS={key:1},IS={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},qS={key:1,class:"fox-action-sheet__menu"},PS=["onClick"],xS={key:1},MS={class:"fox-action-sheet__subdesc"};function LS(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Loading"),i=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createBlock)(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes)},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",ES,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",DS,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",IS,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",qS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.menuItems,(c,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:(0,t.normalizeStyle)({color:e.isHighlight(c)||c.color}),key:u,onClick:p=>e.chooseItem(c,u)},[c.loading?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",xS,(0,t.toDisplayString)(c[e.optionTag]),1)),(0,t.createElementVNode)("view",MS,(0,t.toDisplayString)(c[e.optionSubTag]),1)],14,PS))),128))])):(0,t.createCommentVNode)("",!0),e.cancelTxt?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:"fox-action-sheet__cancel",onClick:n[0]||(n[0]=(...c)=>e.cancelActionSheet&&e.cancelActionSheet(...c))},(0,t.toDisplayString)(e.cancelTxt),1)):(0,t.createCommentVNode)("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}var ia=le($S,[["render",LS]]),{componentName:zS,create:OS}=G("backtop"),FS=OS({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:o}){const l=(0,t.reactive)({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),a=(0,t.computed)(()=>({[zS]:!0,show:l.backTop})),r=(0,t.computed)(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){l.scrollEl instanceof Window?l.scrollTop=l.scrollEl.pageYOffset:l.scrollTop=l.scrollEl.scrollTop,l.backTop=l.scrollTop>=e.distance}function i(C=0){l.scrollEl instanceof Window?window.scrollTo(0,C):l.scrollEl.scrollTop=C}function c(){let C=Xe(function b(){var g=e.duration-Math.max(0,l.startTime-+new Date+e.duration),f=g*-l.scrollTop/e.duration+l.scrollTop;i(f),C=Xe(b),(g==e.duration||f==0)&&Ja(C)})}function u(){l.scrollEl.addEventListener("scroll",s,!1),l.scrollEl.addEventListener("resize",s,!1)}function p(){l.scrollEl.removeEventListener("scroll",s,!1),l.scrollEl.removeEventListener("resize",s,!1)}function d(C){l.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",C)}function h(){y.value?l.scrollEl=y.value.el:e.elId&&document.getElementById(e.elId)&&(l.scrollEl=document.getElementById(e.elId)),u()}(0,t.onMounted)(()=>{e.distance==0&&(l.backTop=!0),h()}),(0,t.onUnmounted)(()=>{p()}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1,h())}),(0,t.onDeactivated)(()=>{l.keepAlive=!0,p()});const y=(0,t.computed)(()=>{if(typeof o.content=="function"){const C=o.content();return Array.isArray(C)?C[0]:C}return null});return()=>{const C=[];y.value&&C.push(y.value);const b=[];if(typeof o.default=="function")b.push(o.default());else{const f=(0,t.h)(oe.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});b.push(f)}const g=(0,t.h)("div",{class:a.value,style:r.value,onClick:d},b);return C.push(g),C}}}),sa=FS,{componentName:RS,create:KS}=G("drag"),US=KS({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 o=(0,t.ref)(),l=(0,t.reactive)({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),a=(0,t.computed)(()=>({[RS]:!0}));function r(){const d=document.documentElement;l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight,l.screenWidth=d.clientWidth,l.screenHeight=d.clientHeight}function s(d){l.boundary.left?+d.style.left.split("px")[0]>l.boundary.left?(d.style.left=+d.style.left.split("px")[0]-10+"px",We(()=>{s(d)})):d.style.left=`${l.boundary.left}px`:+d.style.left.split("px")[0]>10?(d.style.left=+d.style.left.split("px")[0]-10+"px",We(()=>{s(d)})):d.style.left="0px"}function i(d,h){h-parseInt(d.style.left.split("px")[0])>10?(d.style.left=parseInt(d.style.left.split("px")[0])+10+"px",We(()=>{i(d,h)})):d.style.left=h+"px"}function c(d){d.preventDefault();const h=d.currentTarget;if(d.targetTouches.length===1){const y=d.targetTouches[0];l.nx=y.clientX-l.position.x,l.ny=y.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const C=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>C?l.xPum=C:l.xPum<=l.boundary.left&&(l.xPum=l.boundary.left),l.yPum<l.boundary.top?l.yPum=l.boundary.top:l.yPum>l.screenHeight-l.elHeight-l.boundary.bottom&&(l.yPum=l.screenHeight-l.elHeight-l.boundary.bottom),e.direction!="y"&&(h.style.left=l.xPum+"px"),e.direction!="x"&&(h.style.top=l.yPum+"px")}}function u(d){const h=d.currentTarget;let y=d.changedTouches[0].clientX;const C=l.screenWidth-l.elWidth-l.boundary.right;y>C?y=C:y<l.boundary.left?y=l.boundary.left:y=y<l.screenWidth/2?l.boundary.left:C,e.direction!="y"&&e.attract&&(y<l.screenWidth/2?We(()=>{s(h)}):We(()=>{i(h,C)})),e.direction!="x"&&(h.style.top=l.yPum+"px")}function p(d){const h=d.currentTarget,y=d.touches[0],C=d.targetTouches[0];l.startTop=h.offsetTop,l.startLeft=h.offsetLeft,l.position.x=y.clientX,l.position.y=y.clientY,l.nx=C.clientX-l.position.x,l.ny=C.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return(0,t.onMounted)(()=>{r(),l.boundary=e.boundary}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1)}),(0,t.onDeactivated)(()=>{l.keepAlive=!0;const d=o;d.value.removeEventListener("touchstart",p),d.value.removeEventListener("touchmove",c),d.value.removeEventListener("touchend",u)}),{classes:a,myDrag:o,touchStart:p,touchMove:c,touchEnd:u}}});function HS(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,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))},[(0,t.renderSlot)(e.$slots,"default")],34)}var ca=le(US,[["render",HS]]),_S={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}},WS=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function jS(e,n,o,l,a){return{props:{...Re,..._S},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:u}=(0,ce.useFoxI18n)(n),p=u(r,["confirmText","cancelText"]),d=e,h=(0,t.ref)(r.visible);(0,t.watch)(()=>r.visible,k=>{h.value!==k&&(h.value=k,k&&c("opened"))});const y=k=>{h.value=k,c("update:visible",k),c("update",k)},C=k=>{if(c(k),!(k==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const S=r.beforeClose(k);mt(S)?S.then(A=>{A&&(y(!1),c("closed",k))}):S===!0&&(y(!1),c("closed",k))}else y(!1),c("closed",k)},b=()=>{C("confirm")},g=()=>{C("cancel")},f=()=>{C("close")},w=(k,S)=>WS(k)?(S.src=k,(0,t.h)("img",S)):typeof k=="string"?(Array.isArray(S.class)?S.class.push(k):S.class&&typeof S.class=="object"?S[`${k}`]=!0:typeof S.class=="string"?S.class=`${S.class}, ${k}`:S.class=k,(0,t.h)(r.tag,S)):(0,t.h)(k,S),m=()=>{const k=[];if(i.header){const S=i.header();k.push(S)}else{if(r.title){const S=(0,t.h)("view",{class:`${d}__header-title`},[r.title]);k.push(S)}if(r.showClose){const S={class:[`${d}__header-close-icon`],onClick:f},A=w(r.closeIcon??a,S);k.push(A)}}return k.length===0?null:(0,t.h)("view",{class:[`${d}__header`]},k)},v=()=>{const k=[];if(i.default)k.push(i.default());else{const S={class:[`${d}__content`]};if(r.textAlign&&S.class.push(r.textAlign),typeof r.content=="string"){S.innerHTML=r.content;const A=(0,t.h)("view",S);k.push(A)}else if(typeof r.content=="function"){const A=(0,t.h)("view",S,[r.content()]);k.push(A)}else{const A=(0,t.h)("view",S,[r.content]);k.push(A)}}return k.length===0?null:(0,t.h)("view",{class:[`${d}__body`]},k)},N=()=>{if(!r.showFooter)return null;const k=[];if(i.footer)k.push(i.footer());else if(r.plain){if(r.showCancelButton){const S={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},onClick:g};r.cancelButtonClass&&S.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(S.style,r.cancleButtonStyle);const A=(0,t.h)("view",S,[r.cancelButtonText??p.cancelText.value]);k.push(A)}if(r.showConfirmButton){const S={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},onClick:b};r.confirmButtonClass&&S.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(S.style,r.confirmButtonStyle);const A=(0,t.h)("view",S,[r.confirmButtonText??p.confirmText.value]);k.push(A)}}else{if(r.showCancelButton){const S={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:g};r.cancelButtonClass&&S.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(S.style,r.cancleButtonStyle);const A=(0,t.h)(l,S,{default:()=>[r.cancelButtonText??p.cancelText.value]});k.push(A)}if(r.showConfirmButton){const S={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:b};r.confirmButtonClass&&S.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(S.style,r.confirmButtonStyle);const A=(0,t.h)(l,S,{default:()=>[r.confirmButtonText??p.confirmText.value]});k.push(A)}}return k.length===0?null:(0,t.h)("view",{class:[`${d}__footer`,`${d}__footer--${r.footerDirection}`]},k)};return()=>{const k=[],S=m();S&&k.push(S);const A=v();A&&k.push(A);const V=N();V&&k.push(V);const E=(0,t.h)("view",{class:{[`${d}`]:!0,[`${d}--plain`]:r.plain}},k),$=[`${d}__popup`];r.popClass&&$.push(r.popClass);const _={};return r.width&&(_.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(_.height=typeof r.height=="number"?`${r.height}px`:r.height),(0,t.h)(o,{...ye(r,Re),popClass:$.join(" "),style:_,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay},{default:()=>E})}}}}var{componentName:YS,create:XS,scope:QS}=G("dialog"),GS=XS(jS(YS,QS,pe,Oe,oe.Close)),Ui=GS,ZS=class{title="";content="";cancelText="";confirmText="";textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=e=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1},JS=class{options=new ZS;constructor(e){let n=Object.assign(this.options,e),o=document.body,l=n.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=n.teleport);const a=document.createElement("view"),r=`dialog-${n.id}`;a.id=r;const s=(0,t.createVNode)({setup(){return n.onUpdate=i=>{if(i===!1){const c=document.querySelector(`#${r}`);c&&c.parentNode?.removeChild(c)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(Ui,n)}});o.appendChild(a),(0,t.render)(s,a)}},en=function(e){return new JS(e)};en.install=e=>{e.use(Ui),e.config.globalProperties.$dialog=en};var e1={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}},t1=(e,n,o)=>({props:{...e1},emits:["change","refresh","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:s}=(0,ce.useFoxI18n)(n),i=s(l,["pullingText","loosingText","loadingText"]),c=_n(),u=(0,t.ref)(),p=$i(u),d=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=(0,t.computed)(()=>({[e]:!0})),y=(0,t.computed)(()=>{switch(d.status){case"pulling":return r.pulling?"":i.pullingText.value;case"loosing":return r.loosing?"":i.loosingText.value;case"loading":return r.loading?"":i.loadingText.value;default:return""}}),C=(0,t.computed)(()=>({transitionDuration:`${l.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),b=(0,t.computed)(()=>{const S={};return l.headHeight!=50&&(S.height=ue(l.headHeight)),S}),g=S=>{const A=+(l.pullDistance||l.headHeight);let V=S;return S>A&&(S<A*2?V=(S+A)/2:V=A+S/4),Math.round(V)},f=(S,A)=>{const V=+(l.pullDistance||l.headHeight);d.distance=S,A?d.status="loading":S===0?d.status="normal":S<V?d.status="pulling":d.status="loosing",a("change",{status:d.status,distance:S})},w=()=>d.status!=="loading"&&d.status!=="complete",m=()=>p.value==window?Ei()==0:p.value&&p.value.scrollTop==0,v=S=>{w()&&(m()?(c.start(S),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},N=S=>{w()&&d.moving&&(c.move(S),c.isVertical()&&c.state.deltaY>0&&d.isPullRefresh&&(S.cancelable&&S.preventDefault(),f(g(c.state.deltaY))))},k=()=>{d.moving=!1,d.isPullRefresh&&w()&&c.state.deltaY&&(d.status==="loosing"?(f(+l.headHeight,!0),a("update:modelValue",!0),(0,t.nextTick)(()=>a("refresh"))):f(0)),setTimeout(()=>{c.reset()},0)};return(0,t.watch)(()=>l.modelValue,S=>{S?f(+l.headHeight,!0):f(0)}),()=>{const S=[];let A=null;d.status==="loading"?(A=r?.loading?.()??null,A||(A=(0,t.h)(o,{class:["fox-pull-refresh-container-topbox-icon"]}))):d.status==="pulling"?A=r?.pulling?.()??null:d.status==="loosing"&&(A=r?.loosing?.()??null),A&&S.push(A);const V=(0,t.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[y.value]);S.push(V);const E=(0,t.h)("div",{class:["fox-pull-refresh-container-topbox"],style:b.value},S),$=(0,t.h)("div",{class:"fox-pull-refresh-container",style:C.value},[E,r?.default?.()]),_={ref:u,class:h.value};return Hn()?Object.assign(_,{onTouchstart:v,onTouchmove:N,onTouchend:k}):Object.assign(_,{onMousedown:v,onMousemove:N,onMouseup:k}),(0,t.h)("div",_,[$])}}}),{componentName:n1,create:l1,scope:o1}=G("pull-refresh"),a1=l1(t1(n1,o1,oe.Loading)),da=a1,{create:r1}=G("notify"),i1=r1({components:{[pe.name]:pe},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 o=()=>{e.onClick&&e.onClick()};let l=null;const a=()=>{l&&clearTimeout(l),l=null},r=()=>{n("update:visible",!1)},s=(0,t.ref)(!1),i=(0,t.watch)(()=>e.visible,u=>{s.value=e.visible;const p=e.duration;u&&p&&(l=setTimeout(()=>{r()},p))},{immediate:!0});return{onAfterLeave:()=>{a(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:o,isShowPopup:s}}});function s1(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,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:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-notify",`fox-notify--${e.type}`,e.className]),style:(0,t.normalizeStyle)({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}var ua=le(i1,[["render",s1]]),fa={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function},At=[],tn=[],Hi=e=>{if(e){const n=document.getElementById(e);tn=tn.filter(o=>o.id!==e),At=At.filter(o=>o!==e),n&&document.body.removeChild(n)}else At.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),tn=[],At=[]},c1=e=>{const n=document.getElementById(e.id);if(n){const o=tn.find(a=>a.id===e.id);o?e={...fa,...o,...e}:e={...fa,...e};const l=(0,t.createVNode)(ua,e);return(0,t.render)(l,n),l.component.data}},nn=e=>{e.unmount=Hi;let n;if(e.id){if(n=e.id,At.find(a=>a===e.id))return c1(e)}else n=new Date().getTime()+"";e={...fa,...e},e.id=n,At.push(e.id),tn.push(e);const o=document.createElement("view");o.id="notify-"+e.id;const l=(0,t.createVNode)({setup(){return e.teleport=`#notify-${e.id}`,(0,t.onMounted)(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(o)},e.duration)}),()=>(0,t.h)(ua,e)}});document.body.appendChild(o),(0,t.render)(l,o)},ln=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},ma={text(e,n={}){return ln(e),nn({...n,msg:e})},primary(e,n={}){return ln(e),nn({...n,msg:e,type:"primary"})},success(e,n={}){return ln(e),nn({...n,msg:e,type:"success"})},danger(e,n={}){return ln(e),nn({...n,msg:e,type:"danger"})},warn(e,n={}){return ln(e),nn({...n,msg:e,type:"warning"})},hide(){Hi()},install(e){e.use(ua)}},{create:d1}=G("toast"),u1=d1({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 o=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const a=()=>{o&&(clearTimeout(o),o=null)},r=()=>{l.mounted=!1},s=()=>{a(),e.duration&&(o=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),(0,t.watch)(()=>e.duration,y=>{y&&s()});const c=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),u=()=>{const y=fe(e.iconSize);return(0,t.h)(e.icon,{width:y,height:y,color:e.iconColor})},p=(0,t.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=(0,t.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:r,clickCover:i,renderIcon:u,hasIcon:c,toastBodyClass:p,toastIconWrapperClass:d,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),f1={key:1,class:"fox-toast-title"},m1=["innerHTML"];function p1(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.toastBodyClass),style:(0,t.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[(0,t.createElementVNode)("view",{class:"fox-toast-inner",style:(0,t.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.toastIconWrapperClass)},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon())))],2)):(0,t.createCommentVNode)("",!0),e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",f1,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,m1)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var pa=le(u1,[["render",p1]]),ha={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},Vt=[],on=[],_i=e=>{if(e){const n=document.getElementById(e);on=on.filter(o=>o.id!==e),Vt=Vt.filter(o=>o!==e),n&&document.body.removeChild(n)}else Vt.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),on=[],Vt=[]},h1=e=>{const n=document.getElementById(e.id);if(n){const o=on.find(l=>l.id===e.id);return o?e={...ha,...o,...e}:e={...ha,...e},(0,t.render)((0,t.createVNode)(pa,e),n),Tt}},an=e=>{e.unmount=_i;let n;if(e.id){if(n=e.id,Vt.find(l=>l===e.id))return h1(e)}else n=new Date().getTime()+"";e={...ha,...e},e.id=n,Vt.push(e.id),on.push(e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(pa,e),o),document.body.appendChild(o),Tt},fl=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Tt={text(e,n={}){return fl(e),an({...n,type:"text",msg:e})},success(e,n={}){return fl(e),an({icon:oe.Success,...n,msg:e,type:"success"})},fail(e,n={}){return fl(e),an({icon:oe.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return fl(e),an({icon:oe.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return an({icon:oe.Loading,...n,msg:e,type:"loading"})},hide(e){_i(e)},install(e){e.use(pa),e.config.globalProperties.$toast=Tt}},{componentName:GA,create:g1}=G("audio"),y1=g1({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:oe.Service,[Gt.name]:Gt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null),a=(0,t.reactive)({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});(0,t.onMounted)(()=>{var b=["webkitVisibilityState","visibilitychange"];try{for(let g=0;g<b.length;g++)document.addEventListener(b[g],()=>{document.hidden?l.value.pause():a.playing&&setTimeout(()=>{l.value.play()},200)})}catch(g){g.message}});const r=b=>{const g=l.value;e.autoplay&&g&&g.paused&&g.play(),a.second=g.duration,a.duration=C(g.duration),n("can-play",b)},s=b=>{a.currentTime=parseInt(b.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,l.value.currentTime=a.currentTime,n("fastBack",a.currentTime)},c=()=>{const b=l.value;a.playing?(b.pause(),a.handPlaying=!1):(b.play(),a.handPlaying=!0),a.playing=!a.playing,n("play",a.playing)},u=()=>{a.currentTime++,l.value.currentTime=a.currentTime,n("forward",a.currentTime)},p=b=>{a.currentDuration=C(b),a.percent=b/a.second*100},d=()=>{a.playing=!1,n("ended")},h=b=>{const g=l.value;g.currentTime=a.second*b/100,n("changeProgress",g.currentTime)},y=()=>{a.hanMuted=!a.hanMuted,n("mute",a.hanMuted)},C=b=>{if(!b)return"00:00:00";let g=parseInt(b),f=Math.floor(g/3600),w=Math.floor((g-f*3600)/60),m=g-f*3600-w*60,v="";return v+=("0"+f.toString()).slice(-2)+":",v+=("0"+w.toString()).slice(-2)+":",v+=("0"+m.toString()).slice(-2),v};return(0,t.watch)(()=>a.currentTime,b=>{p(b)}),(0,t.provide)("audioParent",{children:[],props:e,audioData:a,handleMute:y,forward:u,fastBack:i,changeStatus:c}),{...(0,t.toRefs)(e),...(0,t.toRefs)(a),audioRef:l,fastBack:i,forward:u,changeStatus:c,progressChange:h,audioEnd:d,onTimeupdate:s,handleMute:y,onCanplay:r,slots:o}}}),b1={class:"fox-audio"},k1={key:0,class:"fox-audio__progress"},S1={class:"fox-audio__time"},w1={class:"fox-audio__bar"},C1={class:"fox-audio__time"},v1={key:1,class:"fox-audio__icon"},N1=["controls","src","preload","autoplay","loop","muted"];function B1(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-range"),i=(0,t.resolveComponent)("Service");return(0,t.openBlock)(),(0,t.createElementBlock)("div",b1,[e.type=="progress"?((0,t.openBlock)(),(0,t.createElementBlock)("div",k1,[(0,t.createElementVNode)("div",S1,(0,t.toDisplayString)(e.currentDuration),1),(0,t.createElementVNode)("div",w1,[(0,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:(0,t.withCtx)(()=>[...n[6]||(n[6]=[(0,t.createElementVNode)("div",{class:"fox-audio__button--custom"},null,-1)])]),_:1},8,["modelValue","onChange"])]),(0,t.createElementVNode)("div",C1,(0,t.toDisplayString)(e.duration),1)])):(0,t.createCommentVNode)("",!0),e.type=="icon"?((0,t.openBlock)(),(0,t.createElementBlock)("div",v1,[(0,t.createElementVNode)("div",{class:(0,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?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1}))],2)])):(0,t.createCommentVNode)("",!0),e.type=="none"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,onClick:n[2]||(n[2]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type!="none"?(0,t.renderSlot)(e.$slots,"default",{key:3}):(0,t.createCommentVNode)("",!0),(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,N1)])}var ga=le(y1,[["render",B1]]),{componentName:ZA,create:A1,scope:V1}=G("audio-operate"),T1=A1({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:o}=(0,ce.useFoxI18n)(V1),l=(0,t.reactive)((0,t.inject)("audioParent")),a=(0,t.ref)((0,t.useSlots)().default);return{...(0,t.toRefs)(e),...(0,t.toRefs)(l),customSlot:a,t:o}}}),$1={class:"fox-audio-operate"};function E1(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",$1,[e.type=="back"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...i)=>e.fastBack&&e.fastBack(...i))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("back")),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="play"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...i)=>e.changeStatus&&e.changeStatus(...i))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="forward"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...i)=>e.forward&&e.forward(...i))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("forward")),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="mute"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...i)=>e.handleMute&&e.handleMute(...i))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("mute")),1)]),_:1},8,["type"])),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0)])}var ya=le(T1,[["render",E1]]),{componentName:D1,create:I1}=G("avatar"),q1=I1({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:o,bgColor:l,color:a}=(0,t.toRefs)(e),r=["large","normal","small"],s=(0,t.inject)("avatarGroup",null),i=(0,t.ref)(null),c=(0,t.reactive)({lightTheme:!1}),u=(0,t.reactive)({index:1,showMax:!1,maxIndex:0});(0,t.onMounted)(()=>{const C=s?.avatarGroupRef?.value?.children;C&&y(C)});const p=(0,t.computed)(()=>({[D1]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${o.value||s?.props?.shape||"normal"}`]:!0})),d=(0,t.computed)(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${l.value}`,color:`${a.value}`,marginLeft:u.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(u.maxIndex-u.index)}`:""})),h=(0,t.computed)(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),y=C=>{u.maxIndex=C.length;for(let b=0;b<C.length;b++)C[b]&&C[b].classList&&C[b].classList[0]=="fox-avatar"&&C[b].setAttribute("data-index",b+1);u.index=i?.value?.dataset?.index,u.index==u.maxIndex&&u.index!=s?.props?.maxCount&&(u.showMax=!0)};return{classes:p,styles:d,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...(0,t.toRefs)(u)}}});function P1(e,n,o,l,a,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,style:(0,t.normalizeStyle)(e.showMax?e.maxStyles:e.styles),class:(0,t.normalizeClass)(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):(0,t.createCommentVNode)("",!0)],6)):(0,t.createCommentVNode)("",!0)}var rn=le(q1,[["render",P1]]),{componentName:x1,create:M1}=G("avatar-group"),L1=M1({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:o}){const{size:l}=(0,t.toRefs)(e),a=(0,t.ref)(null),r=(0,t.ref)(0),s=(0,t.computed)(()=>({[x1]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:a,index:r}),{classes:s,avatarGroupRef:a}}});function z1(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"avatarGroupRef"},[(0,t.renderSlot)(e.$slots,"default")],2)}var ba=le(L1,[["render",z1]]),$t=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function O1(e,n,o){let l=0,a=e.length-1,r=null;for(;l<=a;){r=Math.floor((l+a)/2);const s=e[r],i=o(s,n);if(i===$t.eq)return r;i===$t.lt?l=r+1:i===$t.gt&&(a=r-1)}return r}var{componentName:F1,create:R1}=G("list"),Wi=document.documentElement.clientHeight||document.body.clientHeight||667,K1=R1({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Wi},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const o=(0,t.ref)(null),l=(0,t.ref)(null),a=(0,t.ref)(null),r=(0,t.reactive)({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),s=(0,t.computed)(()=>Math.min(e.containerHeight,Wi)),i=(0,t.computed)(()=>Math.ceil(s.value/e.height)),c=(0,t.computed)(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),u=(0,t.computed)(()=>({[F1]:!0})),p=(0,t.computed)(()=>r.list.slice(r.start,c.value)),d=()=>{if(a.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{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}},y=()=>{let f=a.value.childNodes;f=Array.from(f).filter(k=>k.nodeType===1);const w=f[0];f.forEach((k,S)=>{if(!k)return;const{height:A}=Pe(k),V=r.cachePositions[S+r.start].height-A;V&&(r.cachePositions[S+r.start].bottom-=V,r.cachePositions[S+r.start].height=A,r.cachePositions[S+r.start].dValue=V)});let m=0;w&&(m=r.start);const v=r.cachePositions.length;let N=r.cachePositions[m].dValue;r.cachePositions[m].dValue=0;for(let k=m+1;k<v;++k){const S=r.cachePositions[k];r.cachePositions[k].top=r.cachePositions[k-1].bottom,r.cachePositions[k].bottom=r.cachePositions[k].bottom-N,S.dValue!==0&&(N+=S.dValue,S.dValue=0)}r.phantomHeight=r.cachePositions[v-1].bottom},C=(f=0)=>{let w=O1(r.cachePositions,f,(m,v)=>{const N=m.bottom;return N===v?$t.eq:N<v?$t.lt:$t.gt});return r.cachePositions[w].bottom<f&&(w+=1),w},b=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,o.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},g=()=>{const f=o.value?.scrollTop,{originStartIndex:w}=r,m=C(f);m!==w&&(r.originStartIndex=m,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(0,t.watch)(()=>e.listData,f=>{if(r.list=f.slice(),r.list.length===f.length)h(),y();else{b();return}}),(0,t.watch)(()=>r.start,()=>{a.value&&r.list.length>0&&y()}),{...(0,t.toRefs)(r),list:o,phantom:l,actualContent:a,getTransform:d,visibleData:p,classes:u,getContainerHeight:s,handleScrollEvent:g}}});function U1(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[(0,t.createElementVNode)("div",{class:"fox-list-phantom",style:(0,t.normalizeStyle)({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),(0,t.createElementVNode)("div",{class:"fox-list-container",style:(0,t.normalizeStyle)({transform:e.getTransform()}),ref:"actualContent"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.visibleData,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-list-item",key:s},[(0,t.renderSlot)(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}var ka=le(K1,[["render",U1]]),{componentName:H1,create:_1}=G("circleprogress"),W1=_1({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 o=!!(0,t.useSlots)().default,l=Math.random().toString(36).slice(-8),a=(0,t.computed)(()=>({[H1]:!0})),r=(0,t.computed)(()=>{const i=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${i} 0 90 a 45 45 0 1, ${i} 0 -90`}),s=(0,t.computed)(()=>De(e.color)?`url(#${l})`:e.color);return{classes:a,hoverStyle:(0,t.computed)(()=>{let i=283,c=i*Number(e.progress)/100;return{stroke:De(e.color)?`url(#${l})`:e.color,strokeDasharray:`${c}px ${i}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:r,hoverColor:s,stop:(0,t.computed)(()=>{if(!De(e.color))return;let i=e.color;const c=Object.keys(i).sort((p,d)=>parseFloat(p)-parseFloat(d));let u=[];return c.map((p,d)=>{let h={key:"",value:""};h.key=p,h.value=i[p],u.push(h)}),u}),slotDefault:o,refRandomId:l}}}),j1={viewBox:"0 0 100 100"},Y1=["id"],X1=["offset","stop-color"],Q1=["d","stroke-width"],G1=["d","stroke","stroke-linecap","stroke-width"],Z1={class:"fox-circleprogress-text"},J1={key:0};function ew(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:e.radius*2+"px",width:e.radius*2+"px"})},[((0,t.openBlock)(),(0,t.createElementBlock)("svg",j1,[(0,t.createElementVNode)("defs",null,[(0,t.createElementVNode)("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.stop,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("stop",{key:i,offset:s.key,"stop-color":s.value},null,8,X1))),128))],8,Y1)]),(0,t.createElementVNode)("path",{class:"fox-circleprogress-path",style:(0,t.normalizeStyle)(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,Q1),(0,t.createElementVNode)("path",{class:"fox-circleprogress-hover",style:(0,t.normalizeStyle)(e.hoverStyle),d:e.path,fill:"none",stroke:e.hoverColor,"stroke-linecap":e.strokeLinecap,"stroke-width":e.strokeWidth},null,12,G1)])),(0,t.createElementVNode)("div",Z1,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",J1,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var Sa=le(W1,[["render",ew]]),{componentName:tw,create:nw}=G("noticebar"),lw=nw({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,(0,t.h)(e.item)},Notice:oe.Notice,CircleClose:oe.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null),a=(0,t.ref)(null),r=(0,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=(0,t.computed)(()=>({[tw]:!0})),i=(0,t.computed)(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=(0,t.computed)(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),u=(0,t.computed)(()=>{let S={};return e.color&&(S.color=e.color),e.background&&(S.background=e.background),e.direction=="vertical"&&(S.height=`${e.height}px`),S}),p=(0,t.computed)(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),d=(0,t.computed)(()=>{let S={};if(e.complexAm)S={transform:`translateY(${r.distance}px)`};else if(r.animate){let A=~~(e.height/e.speed/4);S={transition:`all ${A==0?~~(e.height/e.speed):A}s`,"margin-top":`-${e.height}px`}}return S});(0,t.watch)(()=>e.text,S=>{h(S)}),(0,t.watch)(()=>e.list,S=>{r.scrollList=[...S]});const h=S=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!l.value||!a.value)return;const A=l.value.getBoundingClientRect().width,V=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?V>A:e.scrollable,r.isCanScroll?(r.wrapWidth=A,r.offsetWidth=V,r.duration=V/e.speed,r.animationClass="play"):r.animationClass=""},0)},y=S=>{n("click",S)},C=S=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",S)},b=S=>{r.firstRound=!1,n("across-end",S),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},g=()=>{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))},w=()=>{r.timer=setInterval(()=>{let S=100;for(let A=0;A<S;A++)m(A,!(A<S-1))},e.standTime+100*e.speed)},m=(S,A)=>{setTimeout(()=>{r.distance-=e.height/100,A&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},S*e.speed)},v=S=>{n("click",S)},N=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(o.default?k(o.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?w():g()},e.standTime)):h(e.text)}),(0,t.watch)(()=>o.default?o.default():[],S=>{e.direction==="vertical"&&o.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),k(S))});const k=S=>{S&&S.length>0&&(r.scrollList=S[0].children)};return(0,t.onActivated)(()=>{r.keepAlive&&(r.keepAlive=!1)}),(0,t.onDeactivated)(()=>{r.keepAlive=!0,clearInterval(r.timer)}),(0,t.onUnmounted)(()=>{clearInterval(r.timer)}),{...(0,t.toRefs)(e),...(0,t.toRefs)(r),isEllipsis:i,classes:s,barStyle:u,contentStyle:p,horseLampStyle:d,wrap:l,content:a,handleClick:y,onClickIcon:C,onAnimationEnd:b,go:v,handleClickIcon:N,slots:o,toPxString:ue,wrapContentClass:c}}}),ow={key:0,class:"fox-noticebar__page-lefticon"},aw={ref:"wrap",class:"fox-noticebar__page-wrap"},rw={class:"showNotica"},iw=["onClick"];function sw(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Notice"),i=(0,t.resolveComponent)("CircleClose"),c=(0,t.resolveComponent)("ScrollItem");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.direction=="across"?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:(0,t.normalizeStyle)(e.barStyle),onClick:n[3]||(n[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[e.showLeftIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",ow,[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,size:"16px"})):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",aw,[(0,t.createElementVNode)("view",{ref:"content",class:(0,t.normalizeClass)(e.wrapContentClass),style:(0,t.normalizeStyle)(e.contentStyle),onAnimationend:n[0]||(n[0]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u)),"on:webkitAnimationEnd":n[1]||(n[1]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=(0,t.withModifiers)((...u)=>e.onClickIcon&&e.onClickIcon(...u),["stop"]))},[e.$slots["right-icon"]?(0,t.renderSlot)(e.$slots,"right-icon",{key:0}):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1}))])):(0,t.createCommentVNode)("",!0)],6)),[[t.vShow,e.showNoticebar]]):(0,t.createCommentVNode)("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__vertical",style:(0,t.normalizeStyle)(e.barStyle)},[e.slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[(0,t.createElementVNode)("div",rw,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(u,p)=>((0,t.openBlock)(),(0,t.createBlock)(c,{key:p,style:(0,t.normalizeStyle)({height:e.height+"px","line-height":e.height+"px"}),item:u},null,8,["style","item"]))),128))])],4)):((0,t.openBlock)(),(0,t.createElementBlock)("ul",{key:1,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(u,p)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{class:"fox-noticebar__vertical-item",key:p,style:(0,t.normalizeStyle)({height:e.toPxString(e.height),lineHeight:e.toPxString(e.height)}),onClick:d=>e.go(u)},[(0,t.renderSlot)(e.$slots,"item",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(u),1)])],12,iw))),128))],4)),(0,t.createElementVNode)("view",{class:"go",onClick:n[4]||(n[4]=u=>!e.slots.rightIcon&&e.handleClickIcon())},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[e.closeMode?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):(0,t.createCommentVNode)("",!0)])])],4)):(0,t.createCommentVNode)("",!0)],2)}var wa=le(lw,[["render",sw]]),cw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fX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6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:JA,create:fw,scope:mw}=G("empty"),pw={empty:cw,error:dw,network:uw},hw=fw({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,ce.useFoxI18n)(mw),o=n(e,["description"]),{image:l,imageSize:a}=(0,t.toRefs)(e),r=(0,t.computed)(()=>a.value?typeof a.value=="number"?`width:${a.value}px;height:${a.value}px`:`width:${a.value};height:${a.value}`:""),s=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:pw[l.value];return{...o,imageUrl:s,imgStyle:r}}}),gw={class:"fox-empty"},yw=["src"],bw={key:1,class:"fox-empty-description"};function kw(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",gw,[(0,t.createElementVNode)("view",{class:"fox-empty-image",style:(0,t.normalizeStyle)(e.imgStyle)},[e.$slots.image?(0,t.renderSlot)(e.$slots,"image",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.imageUrl?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,class:"img",src:e.imageUrl},null,8,yw)):(0,t.createCommentVNode)("",!0)],64))],4),e.$slots.description?(0,t.renderSlot)(e.$slots,"description",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",bw,(0,t.toDisplayString)(e.description),1)),e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:2}):(0,t.createCommentVNode)("",!0)])}var Ca=le(hw,[["render",kw]]),{create:Sw,scope:ww}=G("video"),Cw=Sw({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:o}=(0,ce.useFoxI18n)(ww),l=(0,t.reactive)({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),a=(0,t.ref)(null),r=(0,t.computed)(()=>e.options.disabled);(0,t.watch)(()=>e.source,k=>{k.src&&(0,t.nextTick)(()=>{l.videoElm.load()})},{immediate:!0,deep:!0}),(0,t.watch)(()=>e.options,k=>{l.state.isMuted=k?k.muted:!1},{immediate:!0});const s=()=>{l.videoElm=a.value,e.options.autoplay&&setTimeout(()=>{l.videoElm.play()},200),e.options.touchPlay&&(l.showTouchMask=!0),e.options.playsinline&&(l.videoElm.setAttribute("playsinline",e.options.playsinline),l.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),l.videoElm.setAttribute("x5-video-player-type","h5-page"),l.videoElm.setAttribute("x5-video-player-fullscreen",!1)),C(),l.showToolbox?i():(l.videoElm.addEventListener("play",()=>{l.state.playing=!0,n("play",l.videoElm)}),l.videoElm.addEventListener("pause",()=>{l.state.playing=!1,n("pause",l.videoElm)}),l.videoElm.addEventListener("ended",h),l.videoElm.addEventListener("timeupdate",wn(d,1e3)))},i=()=>{const k=a.value,S=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];l.player.$player=k,l.progressBar.progressElm=S,l.progressBar.pos=S.getBoundingClientRect(),l.videoSet.progress.width=Math.round(S.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return l.state.playing=!0,!1;if(l.state.playing=!l.state.playing,l.videoElm)if(l.state.playing)try{setTimeout(()=>{l.videoElm.play()},200),l.videoElm.addEventListener("progress",()=>{p()}),l.videoElm.addEventListener("timeupdate",wn(d,1e3)),l.videoElm.addEventListener("ended",h),n("play",l.videoElm)}catch{y()}else l.videoElm.pause(),n("pause",l.videoElm)},u=k=>{var S=Math.floor(k/3600);S<10&&(S="0"+S);var A=Math.floor(k%3600/60);A<10&&(A="0"+A);var V=Math.round(k%3600%60);V<10&&(V="0"+V);var E="";return S!=0?E=S+":"+A+":"+V:E=A+":"+V,E},p=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},d=()=>{const k=l.videoElm.currentTime/l.videoElm.duration;l.videoSet.progress.current=Math.round(l.videoSet.progress.width*k),l.videoSet.totalTime=u(l.videoElm.duration),l.videoSet.displayTime=u(l.videoElm.currentTime),n("time",l.videoSet.displayTime,l.videoSet.totalTime)},h=()=>{l.state.playing=!1,l.state.isEnd=!0,l.videoSet.displayTime="00:00",l.videoSet.progress.current=0,l.videoElm.currentTime=0,n("playend",l.videoElm)},y=()=>{l.state.isError=!0},C=()=>{l.state.vol=e.options.volume},b=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},g=()=>{},f=k=>{let S=k.targetTouches[0].pageX-l.progressBar.pos.left;S<=0&&(S=0),S>=l.videoSet.progress.width&&(S=l.videoSet.progress.width),l.videoSet.progress.current=S;let A=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&m(A,l.videoElm.duration)},w=k=>{let S=k.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=S;let A=S/l.videoSet.progress.width;l.videoElm.duration&&m(A,l.videoElm.duration)},m=(k,S)=>{l.videoElm.currentTime=Math.floor(k*S)},v=()=>{l.state.isError=!1,s()},N=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{s()}),{root:a,...(0,t.toRefs)(e),...(0,t.toRefs)(l),handleError:y,isDisabled:r,play:c,handleMuted:b,touchSlidSrart:g,touchSlidMove:f,touchSlidEnd:w,retry:v,fullScreen:N,t:o}}}),vw={class:"fox-video",ref:"videocon"},Nw=["muted","autoplay","loop","poster","controls","preload"],Bw=["src","type"],Aw={class:"fox-video-controller__now"},Vw={class:"fox-video-controller__progress"},Tw={class:"fox-video-controller__progress-value",ref:"progressBar"},$w={class:"fox-video-controller__played",ref:"playedBar"},Ew={class:"fox-video-controller__total"},Dw={class:"fox-video-error"},Iw={class:"fox-video-error-tip"};function qw(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",vw,[(0,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))},[(0,t.createElementVNode)("source",{src:e.source.src,type:e.source.type},null,8,Bw)],40,Nw),e.showToolbox&&!e.isDisabled?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...s)=>e.play&&e.play(...s))},null,512)):(0,t.createCommentVNode)("",!0),e.showToolbox&&!e.isDisabled?(0,t.withDirectives)(((0,t.openBlock)(),(0,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]]):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[(0,t.createElementVNode)("div",{class:"fox-video-controller__playbtn",onClick:n[3]||(n[3]=(...s)=>e.play&&e.play(...s))}),(0,t.createElementVNode)("div",Aw,(0,t.toDisplayString)(e.videoSet.displayTime),1),(0,t.createElementVNode)("div",Vw,[(0,t.createElementVNode)("div",Tw,[(0,t.createElementVNode)("div",{class:"buffered",style:(0,t.normalizeStyle)({width:`${e.videoSet.loaded}%`})},null,4),(0,t.createElementVNode)("div",{class:"fox-video-controller__ball",style:(0,t.normalizeStyle)({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:n[4]||(n[4]=(0,t.withModifiers)(s=>e.touchSlidMove(s),["stop","prevent"])),onTouchstart:n[5]||(n[5]=(0,t.withModifiers)(s=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)(s=>e.touchSlidEnd(s),["stop"]))},[...n[10]||(n[10]=[(0,t.createElementVNode)("div",{class:"fox-video-controller__ball-move"},null,-1)])],36),(0,t.createElementVNode)("div",$w,null,512)],512)]),(0,t.createElementVNode)("div",Ew,(0,t.toDisplayString)(e.videoSet.totalTime),1),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...s)=>e.handleMuted&&e.handleMuted(...s))},null,2),(0,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]]),(0,t.withDirectives)((0,t.createElementVNode)("div",Dw,[(0,t.createElementVNode)("p",Iw,(0,t.toDisplayString)(e.t("errorTip")),1),(0,t.createElementVNode)("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...s)=>e.retry&&e.retry(...s))},(0,t.toDisplayString)(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var Et=le(Cw,[["render",qw]]),{create:Pw,componentName:xw}=G("steps"),Mw=Pw({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:o}){const l=(0,t.reactive)({children:[]}),a=(0,t.computed)(()=>{const i=xw;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&l.children.push(i)},s=i=>{n("click-step",i)};return(0,t.provide)("parent",{relation:r,state:l,props:e,onEmit:s}),()=>(0,t.h)("view",{class:a.value},o.default?.())}}),va=Mw,{create:Lw,componentName:zw}=G("step"),Ow=Lw({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=(0,t.getCurrentInstance)(),n=(0,t.inject)("parent");n.relation(e);const o=(0,t.reactive)({dot:n.props.progressDot}),l=(0,t.computed)(()=>n.state.children.indexOf(e)+1),a=()=>{const c=l.value;return c<+n.props.current?"finish":c===+n.props.current?"process":"wait"},r=(0,t.computed)(()=>a()),s=(0,t.computed)(()=>{const c=zw;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(l.value)};return{...(0,t.toRefs)(o),index:l,classes:s,handleClickStep:i}}}),Fw={class:"fox-step-head"},Rw={class:"fox-step-icon-inner"},Kw={key:1,class:"fox-step-inner"},Uw={class:"fox-step-main"},Hw={class:"fox-step-title"},_w={key:0},Ww={key:0,class:"fox-step-content"},jw=["innerHTML"];function Yw(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[(0,t.createElementVNode)("view",Fw,[n[1]||(n[1]=(0,t.createElementVNode)("view",{class:"fox-step-line"},null,-1)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-step-icon",[e.dot?"":"is-icon"]])},[(0,t.createElementVNode)("view",Rw,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.dot?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[],64)):((0,t.openBlock)(),(0,t.createElementBlock)("view",Kw,(0,t.toDisplayString)(e.index),1))])])],2)]),(0,t.createElementVNode)("view",Uw,[(0,t.createElementVNode)("view",Hw,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",_w,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ww,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,jw)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var Na=le(Ow,[["render",Yw]]),{create:Xw,componentName:Ba}=G("swiper"),Qw=Xw({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:o}){const l=(0,t.ref)(),a=(0,t.reactive)({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=nt(),s=(0,t.computed)(()=>({[Ba]:!0})),i=(0,t.computed)(()=>e.direction==="vertical"),c=(0,t.computed)(()=>{const q=Ba;return{[`${q}-inner`]:!0,[`${q}-vertical`]:i.value}}),u=(0,t.computed)(()=>{const q=Ba;return{[`${q}-pagination`]:!0,[`${q}-pagination-vertical`]:i.value}}),p=(0,t.computed)(()=>i.value?r.deltaY.value:r.deltaX.value),d=(0,t.computed)(()=>r.direction.value===e.direction),h=(0,t.computed)(()=>a.children.length),y=(0,t.computed)(()=>a[i.value?"height":"width"]),C=(0,t.computed)(()=>h.value*y.value),b=(0,t.computed)(()=>a.rect?(i.value?a.rect.height:a.rect.width)-y.value*h.value:0),g=(0,t.computed)(()=>(a.active+h.value)%h.value),f=()=>{let q=0;q=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${q}px)`,[i.value?"height":"width"]:`${y.value*h.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},w=q=>{let O=[];const R=a.childrenVNode.length;let x=o?.default?.();if(x=x.filter(Q=>Q.children&&Array.isArray(Q.children)),x.forEach(Q=>{O=O.concat(Q.children)}),!R)a.childrenVNode=O.slice(),q.proxy&&a.children.push(q.proxy);else if(R>O.length)a.children=a.children.filter(Q=>q.proxy!==Q);else if(R<O.length){for(let Q=0;Q<R;Q++)if(O[Q].key!==a.childrenVNode[Q].key){q.proxy&&a.children.splice(Q,0,q.proxy),q.vnode&&a.childrenVNode.splice(Q,0,q.vnode);break}R!==O.length&&(q.proxy&&a.children.push(q.proxy),q.vnode&&a.childrenVNode.push(q.vnode))}else a.childrenVNode=O.slice(),q.proxy&&a.children.push(q.proxy)},m=(q,O=0)=>{let R=q*y.value;e.loop||(R=Math.min(R,-b.value));let x=O-R;return e.loop||(x=Ye(x,b.value,0)),x},v=q=>{const{active:O}=a;return q?e.loop?Ye(O+q,-1,h.value):Ye(O+q,0,h.value-1):O},N=({pace:q=0,offset:O=0,isEmit:R=!1})=>{if(h.value<=1)return;const{active:x}=a,Q=v(q),ne=m(Q,O);if(e.loop){if(a.children[0]&&ne!==b.value){const F=ne<b.value;a.children[0].setOffset(F?C.value:0)}if(a.children[h.value-1]&&ne!==0){const F=ne>0;a.children[h.value-1].setOffset(F?-C.value:0)}}a.active=Q,a.offset=ne,R&&x!==a.active&&n("change",g.value),f()},k=()=>{a.moving=!0,a.active<=-1&&N({pace:h.value}),a.active>=h.value&&N({pace:-h.value})},S=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},A=q=>{k(),r.reset(),Xe(()=>{Xe(()=>{a.moving=!1,N({pace:q,isEmit:!0})})})},V=()=>{A(-1)},E=()=>{A(1)},$=q=>{k(),r.reset(),Xe(()=>{a.moving=!1;let O;e.loop&&h.value===q?O=a.active===0?0:q:O=q%h.value,N({pace:O-a.active,isEmit:!0})})},_=()=>{e.autoPlay<=0||h.value<=1||(S(),a.autoplayTimer=setTimeout(()=>{E(),_()},Number(e.autoPlay)))},J=(q=+e.initPage)=>{S(),a.rect=l.value.getBoundingClientRect(),q=Math.min(h.value-1,q),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=q,a.offset=m(a.active),a.moving=!0,f(),_()},D=q=>{e.isPreventDefault&&q.preventDefault(),e.isStopPropagation&&q.stopPropagation(),e.touchable&&(r.start(q),a.touchTime=Date.now(),S(),k())},T=q=>{e.touchable&&a.moving&&(r.move(q),d.value&&N({offset:p.value}))},P=q=>{if(!e.touchable||!a.moving)return;const O=p.value/(Date.now()-a.touchTime);if((Math.abs(O)>.3||Math.abs(p.value)>+(y.value/2).toFixed(2))&&d.value){let R=0;const x=i.value?r.offsetY.value:r.offsetX.value;e.loop?R=x>0?p.value>0?-1:1:0:R=-Math[p.value>0?"ceil":"floor"](p.value/y.value),N({pace:R,isEmit:!0})}else p.value&&N({pace:0});a.moving=!1,f(),_()};return(0,t.provide)("parent",{props:e,size:y,relation:w}),Ee({prev:V,next:E,to:$}),(0,t.onDeactivated)(()=>{S()}),(0,t.onBeforeUnmount)(()=>{S()}),(0,t.watch)(()=>e.initPage,q=>{(0,t.nextTick)(()=>{J(Number(q))})}),(0,t.watch)(()=>a.children.length,()=>{(0,t.nextTick)(()=>{J()})}),(0,t.watch)(()=>e.autoPlay,q=>{q>0?_():S()}),{state:a,classes:s,classesInner:c,classesPagination:u,container:l,activePagination:g,onTouchStart:D,onTouchMove:T,onTouchEnd:P}}});function Gw(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{ref:"container",class:(0,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))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classesInner),style:(0,t.normalizeStyle)(e.state.style)},[(0,t.renderSlot)(e.$slots,"default")],6),(0,t.renderSlot)(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classesPagination)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.state.children.length,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("i",{style:(0,t.normalizeStyle)({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:(0,t.normalizeClass)({active:e.activePagination===i}),key:i},null,6))),128))],2)):(0,t.createCommentVNode)("",!0)],34)}var Dt=le(Qw,[["render",Gw]]),{create:Zw,componentName:Jw}=G("swiper-item"),eC=Zw({setup(e,{slots:n}){const o=(0,t.inject)("parent");o.relation((0,t.getCurrentInstance)());const l=(0,t.reactive)({offset:0}),a=(0,t.computed)(()=>({[Jw]:!0})),r=(0,t.computed)(()=>{const i={},c=o?.props.direction;return o?.size.value&&(i[c==="horizontal"?"width":"height"]=`${o?.size.value}px`),l.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${l.offset}px)`),i}),s=i=>{l.offset=i};return(0,t.onUnmounted)(()=>{o.relation((0,t.getCurrentInstance)(),"unmount")}),Ee({setOffset:s}),{style:r,classes:a}}});function tC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var It=le(eC,[["render",tC]]),ji={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:nC}=G("image-preview-item"),lC=nC({props:{...ji,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},contentClose:{type:Boolean,default:!0}},emits:["close","scale"],components:{[Et.name]:Et,[It.name]:It},setup(e,{emit:n}){const o=(0,t.reactive)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),l=nt(),a=(0,t.computed)(()=>{const{rootWidth:V,rootHeight:E}=e,$=E/V;return o.imageRatio>$}),r=(0,t.computed)(()=>{const V=e.image;if(V&&V.src){const{scale:E,moveX:$,moveY:_,moving:J,zooming:D}=o,T={transitionDuration:D||J?"0s":".3s"};return E!==1&&(T.transform=`scale(${E}, ${E}) translate(${$/E}px, ${_/E}px)`),T}return{}}),s=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:V,rootHeight:E}=e,$=a.value?E/o.imageRatio:V;return Math.max(0,(o.scale*$-V)/2)}return 0}),i=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:V,rootHeight:E}=e,$=a.value?E:V*o.imageRatio;return Math.max(0,(o.scale*$-E)/2)}return 0}),c=V=>{const{naturalWidth:E,naturalHeight:$}=V.target;o.imageRatio=$/E},u=()=>{p(1),o.moveX=0,o.moveY=0},p=V=>{V=Ye(V,+e.minZoom,+e.maxZoom+1),V!==o.scale&&(o.scale=V,n("scale",{scale:V,index:e.initNo}))},d=()=>{p(o.scale>1?1:2),o.moveX=0,o.moveY=0},h=V=>Math.sqrt((V[0].clientX-V[1].clientX)**2+(V[0].clientY-V[1].clientY)**2);let y,C,b,g,f,w,m;const v=V=>{const{touches:E}=V,{offsetX:$}=l;l.start(V),m=E.length,y=o.moveX,C=o.moveY,w=Date.now(),o.moving=m===1&&o.scale!==1,o.zooming=m===2&&!$.value,o.zooming&&(b=o.scale,g=h(V.touches))},N=V=>{const{touches:E}=V;if(l.move(V),(o.moving||o.zooming)&&Al(V,!0),o.moving){const{deltaX:$,deltaY:_}=l,J=$.value+y,D=_.value+C;o.moveX=Ye(J,-s.value,s.value),o.moveY=Ye(D,-i.value,i.value)}if(o.zooming&&E.length===2){const $=h(E);p(b*$/g)}},k=()=>{if(m==1&&e.video&&e.video.source||m>1)return;const{offsetX:V,offsetY:E}=l,$=Date.now()-w,_=250,J=5;V.value<J&&E.value<J&&$<_&&(f?(clearTimeout(f),f=null,d()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},_))},S=V=>{let E=!1;(o.moving||o.zooming)&&(E=!0,o.moving&&y===o.moveX&&C===o.moveY&&(E=!1),V.touches.length||(o.zooming&&(o.moveX=Ye(o.moveX,-s.value,s.value),o.moveY=Ye(o.moveY,-i.value,i.value),o.zooming=!1),o.moving=!1,y=0,C=0,b=1,o.scale<1&&u(),o.scale>e.maxZoom&&(o.scale=+e.maxZoom))),Al(V,E),k(),l.reset()},A=()=>{n("close")};return(0,t.watch)(()=>e.initNo,u),(0,t.watch)(()=>e.show,V=>{V||u()}),{...(0,t.toRefs)(o),onTouchStart:v,onTouchMove:N,onTouchEnd:S,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:A}}}),oC=["src"];function aC(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-video"),i=(0,t.resolveComponent)("fox-swiper-item");return(0,t.openBlock)(),(0,t.createBlock)(i,{onClick:e.closeSwiper},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{style:(0,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?((0,t.openBlock)(),(0,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,oC)):(0,t.createCommentVNode)("",!0),e.video&&e.video.source?((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):(0,t.createCommentVNode)("",!0)],36)]),_:1},8,["onClick"])}var rC=le(lC,[["render",aC]]),{create:iC}=G("image-preview"),sC=iC({props:{...ji,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:rC,CircleClose:oe.CircleClose,[pe.name]:pe,[Dt.name]:Dt},setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.reactive)({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),a=(0,t.computed)(()=>{const p="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${p}-right`:`${p}-left`}`}),r=(0,t.computed)(()=>mn(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=p=>{p!==l.active&&(l.active=p,n("change",l.active))},i=()=>{Ki(e.beforeClose,{args:[l.active],done:()=>c()})},c=()=>{l.showPop=!1,n("close")},u=()=>{if(o.value){const p=Pe(o.value);l.rootHeight=p.height,l.rootWidth=p.width}};return(0,t.watch)(()=>e.show,p=>{l.showPop=p,p&&(s(e.initNo),u())}),(0,t.watch)(()=>e.initNo,p=>{p!=l.active&&s(p)}),(0,t.onMounted)(()=>{s(e.initNo)}),{swipeRef:o,...(0,t.toRefs)(l),onClose:i,mergeImages:r,setActive:s,iconClasses:a}}}),cC={class:"fox-image-preview",ref:"swipeRef"},dC={key:0,class:"fox-image-preview-index"};function uC(e,n,o,l,a,r){const s=(0,t.resolveComponent)("image-preview-item"),i=(0,t.resolveComponent)("fox-swiper"),c=(0,t.resolveComponent)("CircleClose"),u=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(u,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=p=>e.showPop=p),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",cC,[e.showPop?((0,t.openBlock)(),(0,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:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.mergeImages,(p,d)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:d,video:d<e.videos.length?p:{},image:d>=e.videos.length?p:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):(0,t.createCommentVNode)("",!0)],512),e.showIndex?((0,t.openBlock)(),(0,t.createElementBlock)("view",dC,(0,t.toDisplayString)(e.active+1)+" / "+(0,t.toDisplayString)(e.mergeImages.length),1)):(0,t.createCommentVNode)("",!0),e.closeable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.iconClasses),onClick:n[0]||(n[0]=(...p)=>e.onClose&&e.onClose(...p))},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(c,{color:"#ffffff"})])],2)):(0,t.createCommentVNode)("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}var Yi=le(sC,[["render",uC]]),fC=class{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"},mC=class{options=new fC;constructor(e){const n=Object.assign(this.options,e),{unmount:o}=zs(n,{name:"image-preview",components:[pe,Et,Dt,It,dt],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{o()})},(0,t.h)(Yi,n))}})})}},ml=e=>new mC(e);ml.install=e=>{e.use(Yi)};function pC(e){const n=(0,t.getCurrentInstance)();if(n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}var{componentName:eV,create:hC}=G("countup"),gC=hC({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 o=(0,t.ref)(null),l=(0,t.ref)([]),a=A=>{A&&l.value.push(A)},r=(0,t.reactive)({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:u}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,(A,V)=>{d(),g(0)}),(0,t.watch)(()=>e.machinePrizeLevel,(A,V)=>{r.prizeLevelTrun=A}),(0,t.watch)(()=>e.initNum,(A,V)=>{r.current=A,r.valFlag=!1,p()}),(0,t.watch)(()=>e.endNum,(A,V)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;s&&(i||c?u!="machine"&&g():(b(),setTimeout(()=>{r.valFlag=!0},300)))},d=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(A,V,E)=>{const $=(A.toString().split(".")[1]||"").length,_=(V.toString().split(".")[1]||"").length,J=Math.pow(10,Math.max($,_));return E=="-"?Number((A*J-V*J).toFixed(0))/J:Number((A*J+V*J).toFixed(0))/J},y=A=>{let{num_total_len:V,pointNum:E,initDigit1:$,initDigit2:_,sortFlag:J}=r,D=J=="add"||J=="equal"?String(_)[A-(V-E)]:10-Number(String(_)[A-(V-E)]),T=J=="add"||J=="equal"?String($)[A]:10-Number(String($)[A]),P=A>V-E-1?-D*100+"%":A<=String($).length-1?-T*100+"%":0;return P=="-1000%"&&(P=0),P},C=A=>{let{num_total_len:V,pointNum:E,initDigit1:$,initDigit2:_,sortFlag:J}=r,D=String(_)[A-(V-E)];return A>V-E-1?D||0:A<=String($).length-1?String($)[A]:0},b=()=>{let{endNum:A,initNum:V,speed:E,toFixed:$}=e,_=setInterval(()=>{V>A?r.current<=A||r.current<=E?(r.current=A.toFixed($),clearInterval(_),n("scroll-end"),r.valFlag=!1):r.current=(parseFloat(String(r.current))-parseFloat(String(E))).toFixed($):r.current>=A?(r.current=A.toFixed($),clearInterval(_),n("scroll-end"),r.valFlag=!1):r.current=(parseFloat(String(r.current))+parseFloat(String(E))).toFixed($)},e.during)},g=A=>{let{initNum:V,endNum:E,toFixed:$,customBgImg:_}=e;_&&(V=e.customChangeNum);let J,D,T,P;V!=0?($!=0&&(V=Number(V.toFixed($))),String(V).indexOf(".")>-1?(J=String(V).split(".")[0].length,D=String(V).split(".")[1].length):(J=String(V).length,D=0)):(J=1,D=0),E!=0?($!=0&&(E=Number(E.toFixed($))),String(E).indexOf(".")>-1?(T=String(E).split(".")[0].length,P=String(E).split(".")[1].length):(T=String(E).length,P=0)):(T=1,P=0);let q=J>=T?J:T,O=D>=P?D:P;r.num_total_len=q+O,r.pointNum=O,V>E?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(V,E,"-"),r.numberVal=Number(String(V))):V<E?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(E,V,"-"),r.numberVal=Number(String(E))):r.sortFlag="equal";var R=1;for(let Q=0;Q<r.pointNum;Q++)R*=10;var x=r.numberVal*R;if(r.relNum=x,$!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(x).length),String(V).indexOf(".")>-1){let Q=String(V).split(".");r.initDigit1=Number(Q[0]),r.initDigit2=Number(Q[1])}else r.initDigit1=V,r.initDigit2=0;i&&!_?(0,t.nextTick)(()=>{if(r.sortFlag=="equal")return!1;let Q=l.value[r.num_total_len-1];f(Q)}):A!==0&&v()},f=A=>{d();var V=1;r.pointNum!=0&&(V=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{w(A),r.totalCount=h(r.totalCount,V,"-"),r.totalCount<=0&&(d(),n("scroll-end"),r.valFlag=!1)},e.during)},w=A=>{let V=A.getAttribute("turn-number"),E;if(r.sortFlag=="add"?E=parseInt(String(V))+1:E=parseInt(String(V))-1>=0?parseInt(String(V))-1:9,A.setAttribute("turn-number",String(E)),(A.style.transition=="none 0s ease 0s"||E==1||!A.style.transition)&&(A.style.transition=`all linear ${e.during}ms`),E==10||r.sortFlag=="reduce"&&E==0){var $=null;A.style.top=`-${r.sortFlag=="add"?E*100:(10-E)*100}%`,A.setAttribute("turn-number","0"),$=setTimeout(()=>{$&&clearTimeout($),A.style.transition="none",A.style.top="0",m(A,E)},.975*e.during)}else A.style.top=`-${r.sortFlag=="add"?E*100:(10-E)*100}%`;A.style.top=="-100%"&&r.sortFlag=="reduce"&&w(A.previousSibling)},m=(A,V)=>{setTimeout(()=>{V==10&&A.previousSibling&&w(A.previousSibling)},200)},v=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),(0,t.nextTick)(()=>{o.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},N=()=>{for(r.notPrize=[];r.notPrize.length<3;){var A=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(A)==-1&&r.notPrize.push(A)}};pC({machineLuck:()=>{const A=e.machineTurnMore<0?0:e.machineTurnMore;let V=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&N();for(let E=0;E<e.machineNum;E++)setTimeout(()=>{let $=V*(E+1+parseFloat(String(A)));r.prizeYPrev.length!=0&&(r.prizeY[E]=r.prizeYPrev[E]);let _=r.prizeYPrev[E]?r.prizeYPrev[E]:0,J=$+_+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(V-_);r.prizeLevelTrun<0&&(J+=e.numHeight*r.notPrize[E]),S(E,J,_)},500*E)}});const S=(A,V,E)=>{let $=setInterval(()=>{if(E<=V)E+=10,r.prizeY[A]=parseFloat(String(E));else if(clearInterval($),$=null,r.finshMachine+=1,r.prizeY[A]=V,r.finshMachine==e.machineNum){let _=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(J=>{let D=J;for(;D>_;)D-=_;r.prizeYPrev.push(D)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return(0,t.onMounted)(()=>{r.current=e.initNum,(0,t.nextTick)(()=>{p()})}),(0,t.onUnmounted)(()=>{d(),r.timer=null}),{...(0,t.toRefs)(r),...(0,t.toRefs)((0,t.reactive)(e)),runNumberImg:o,setRef:a,topNumber:y,turnNumber:C}}}),yC={class:"fox-countup"},bC=["turn-number"];function kC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",yC,[e.customBgImg!=""?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.type=="machine"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup__machine",style:(0,t.normalizeStyle)({height:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.machineNum,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:(0,t.normalizeStyle)({height:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.num_total_len,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:(0,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?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup-pointstyl",style:(0,t.normalizeStyle)({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):(0,t.createCommentVNode)("",!0)],4))],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.scrolling?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup__number",style:(0,t.normalizeStyle)({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.num_total_len,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:(0,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)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.to0_10,(c,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-countup__number-item__span",key:"dote"+u,style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},(0,t.toDisplayString)(c),5))),128))],12,bC))),128)),e.pointNum>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup-pointstyl",style:(0,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)):(0,t.createCommentVNode)("",!0)],4)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.current),1)],64))],64))])}var Aa=le(gC,[["render",kC]]),SC=e=>{if(!e)return Date.now();let n=Number(e),o=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(o).getTime()},{componentName:wC,create:CC}=G("countdown"),vC=CC({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:o}){const l=(0,t.reactive)({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),a=(0,t.computed)(()=>({[wC]:!0})),r=(0,t.computed)(()=>c(l.restTime)),s=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-SC(e.startTime),l.counting||(l.counting=!0),i()},i=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const y=Date.now()-l.diffTime,C=Math.max(l.handleEndTime-y,0);l.restTime=C,C||(l.counting=!1,d(),n("on-end")),C>0&&i()}}))},c=(y,C)=>{const b=y;let g={d:0,h:0,m:0,s:0,ms:0};const f=1e3,w=60*f,m=60*w,v=24*m;return b>0&&(g.d=b>=f?Math.floor(b/v):0,g.h=Math.floor(b%v/m),g.m=Math.floor(b%m/w),g.s=Math.floor(b%w/f),g.ms=Math.floor(b%f)),C=="custom"?g:u({...g})},u=y=>{let{d:C,h:b,m:g,s:f,ms:w}=y,m=e.format;if(m.includes("DD")?m=m.replace("DD",it(C)):b+=Number(C)*24,m.includes("HH")?m=m.replace("HH",it(b)):g+=Number(b)*60,m.includes("mm")?m=m.replace("mm",it(g)):f+=Number(g)*60,m.includes("ss")?m=m.replace("ss",it(f)):w+=Number(f)*1e3,m.includes("S")){const v=it(w,3).toString();m.includes("SSS")?m=m.replace("SSS",v):m.includes("SS")?m=m.replace("SS",v.slice(0,2)):m.includes("S")&&(m=m.replace("SS",v.slice(0,1)))}return m},p=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),i(),n("on-restart",l.restTime))},d=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},h=()=>{e.autoStart||(d(),l.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?s():l.restTime=e.time}),(0,t.watch)(()=>l.restTime,y=>{let C=c(y,"custom");n("update:modelValue",C),n("input",C)}),(0,t.watch)(()=>e.paused,(y,C)=>{C?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),i()),n("on-restart",l.restTime)):l.counting&&d()}),(0,t.watch)(()=>e.endTime,y=>{s()}),(0,t.watch)(()=>e.startTime,y=>{s()}),{...(0,t.toRefs)(e),slots:o,classes:a,start:p,pause:d,renderTime:r,reset:h}}}),NC=["innerHTML"];function BC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,NC))],2)}var Va=le(vC,[["render",BC]]),{create:AC}=G("badge"),VC=AC({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){return{state:(0,t.reactive)({}),stl:(0,t.computed)(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),content:(0,t.computed)(()=>{if(e.dot)return;const n=e.value,o=e.max;return typeof n=="number"&&typeof o=="number"&&o<n?`${o}+`:n})}}}),TC={class:"fox-badge"},$C=["textContent"];function EC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",TC,[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-badge__icon",style:(0,t.normalizeStyle)(e.stl)},[(0,t.renderSlot)(e.$slots,"icon")],4),[[t.vShow,!e.hidden&&!e.dot&&e.$slots.icon]]),(0,t.renderSlot)(e.$slots,"default"),(0,t.withDirectives)((0,t.createElementVNode)("view",{textContent:(0,t.toDisplayString)(e.content),class:(0,t.normalizeClass)(["fox-badge__content fox-badge__content--sup",{"fox-badge__content--dot":e.dot,"fox-badge__content--bubble":!e.dot&&e.bubble}]),style:(0,t.normalizeStyle)(e.stl)},null,14,$C),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var Ta=le(VC,[["render",EC]]),{componentName:DC,create:IC}=G("tag"),qC=IC({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:oe.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:(0,t.computed)(()=>{const s=DC;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 PC(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle()),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i))},[(0,t.renderSlot)(e.$slots,"default"),e.closeable?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],6)}var sn=le(qC,[["render",PC]]),{create:xC}=G("popover"),MC=xC({components:{FoxPopup:pe},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 o=(0,t.ref)(),l=(0,t.ref)(),a=(0,t.ref)(e.visible);let r=(0,t.ref)(),s=(0,t.ref)();const i=(0,t.computed)(()=>{const w="fox-popover-arrow",m=e.location;return`${w} ${w}-${m.split("-")[0]} ${w}--${m}`}),c=(0,t.computed)(()=>{const w={},{bgColor:m,arrowOffset:v,location:N}=e,k=N.split("-")[0],S=N.split("-")[1],A=16;return m&&(w[`border${u(k)}Color`]=m),e.arrowOffset!=0&&(["bottom","top"].includes(k)&&(S||(w.left=`calc(50% + ${v}px)`),S=="start"&&(w.left=`${A+v}px`),S=="end"&&(w.right=`${A-v}px`)),["left","right"].includes(k)&&(S||(w.top=`calc(50% - ${v}px)`),S=="start"&&(w.top=`${A-v}px`),S=="end"&&(w.bottom=`${A+v}px`))),w}),u=w=>(w=w.toLowerCase(),w=w.replace(/\b\w+\b/g,m=>m.substring(0,1).toUpperCase()+m.substring(1)),w),p=(0,t.computed)(()=>{let w={};if(!r.value||!s.value)return{};const m=s.value.width,v=s.value.height,{width:N,height:k,left:S,top:A}=r.value,{location:V,offset:E}=e,$=V.split("-")[0],_=V.split("-")[1];let J=0,D=0;return mn(E)&&E.length==2&&(J+=Number(E[1]),D+=Number(E[0])),N&&(["bottom","top"].includes($)&&(w.top=`${A+($=="bottom"?k+J:-(v+J))}px`,_||(w.left=`${-(m-N)/2+S+D}px`),_=="start"&&(w.left=`${S+D}px`),_=="end"&&(w.left=`${r.value.right+D}px`)),["left","right"].includes($)&&(w.left=`${S+($=="left"?-(m+J):N+J)}px`,_||(w.top=`${A-v/2+k/2-4+D}px`),_=="start"&&(w.top=`${A+D}px`),_=="end"&&(w.top=`${A+k+D}px`))),w}),d=(0,t.computed)(()=>{const w={};return e.bgColor&&(w.background=e.bgColor),w}),h=()=>{let w=Pe(o.value);e.targetId&&(w=Pe(document.querySelector(`#${e.targetId}`))),r.value=w,setTimeout(()=>{s.value={height:l.value?.clientHeight,width:l.value?.clientWidth}},0)};(0,t.onMounted)(()=>{setTimeout(()=>{h()},200)}),(0,t.watch)(()=>e.visible,w=>{a.value=w,w?(window.addEventListener("touchstart",f,!0),h()):window.removeEventListener("touchstart",f,!0)});const y=w=>{n("update",w),n("update:visible",w)},C=()=>{y(!e.visible),n("open")},b=()=>{n("update:visible",!1),n("close")},g=(w,m)=>{!w.disabled&&n("choose",w,m),e.closeOnClickAction&&b()},f=w=>{const m=o.value,v=l.value;let N=m&&!m.contains(w.target);if(e.targetId){const k=document.querySelector(`#${e.targetId}`);N=k&&!k.contains(w.target)}N&&v&&!v.contains(w.target)&&e.closeOnClickOutside&&b()};return{showPopup:a,openPopover:C,popoverArrow:i,closePopover:b,chooseItem:g,popoverRef:o,popoverContentRef:l,getRootPosition:p,customStyle:d,popoverArrowStyle:c,renderIcon:Ir}}}),LC={ref:"popoverContentRef",class:"fox-popover-content-group"},zC=["onClick"],OC={class:"fox-popover-menu-item-name"};function FC(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.targetId?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:n[0]||(n[0]=(...i)=>e.openPopover&&e.openPopover(...i))},[(0,t.renderSlot)(e.$slots,"reference")],512)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:(0,t.normalizeStyle)(e.getRootPosition)},[(0,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:(0,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:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",LC,[e.showArrow?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.popoverArrow),style:(0,t.normalizeStyle)(e.popoverArrowStyle)},null,6)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content"),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.list,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:c,class:(0,t.normalizeClass)([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:(0,t.withModifiers)(u=>e.chooseItem(i,c),["stop"])},[i.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",OC,(0,t.toDisplayString)(i.name),1)],10,zC))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}var cn=le(MC,[["render",FC]]),RC=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:o,round:l,avatarSize:a}=(0,t.toRefs)(n),r=(0,t.computed)(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${o.value}`]:o.value}});return{avatarShape:o,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:l.value}),getStyle:()=>a.value?{width:a.value,height:a.value}:{width:"50px",height:"50px"}}}}),{create:KC}=G("skeleton"),UC=KC(RC({[rn.name]:rn})),HC={key:0},_C={key:1,class:"fox-skeleton"},WC={key:0,class:"fox-skeleton-animation"},jC={class:"fox-skeleton-content"};function YC(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",_C,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",WC)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",jC,[e.avatar?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,class:(0,t.normalizeClass)(e.avatarClass),shape:e.avatarShape,style:(0,t.normalizeStyle)(e.getStyle())},null,8,["class","shape","style"])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-skeleton-content__line",style:(0,t.normalizeStyle)({width:e.width})},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.getBlockClass("fox-skeleton-blockTitle")),style:(0,t.normalizeStyle)({height:e.height})},null,6)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.row),i=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:i,class:(0,t.normalizeClass)(e.getBlockClass("fox-skeleton-blockLine")),style:(0,t.normalizeStyle)({height:e.height})},null,6))),128))],4)])])):((0,t.openBlock)(),(0,t.createElementBlock)("view",HC,[(0,t.renderSlot)(e.$slots,"default")]))}var $a=le(UC,[["render",YC]]),{create:XC,componentName:QC}=G("collapse"),GC=XC({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const o=(0,t.ref)(null),l=(0,t.ref)(e.modelValue||(e.accordion?"":[])),a=(0,t.computed)(()=>({[QC]:!0}));(0,t.watch)(()=>e.modelValue,c=>{l.value=c});const r=(c,u,p=!0)=>{l.value=c,n("update:modelValue",c),n("change",c,u,p)},s=c=>{e.accordion?l.value===c?r("",c,!1):r(c,c,!0):Array.isArray(l.value)?l.value.includes(c)?r(l.value.filter(u=>u!==c),c,!1):r(l.value.concat([c]),c,!0):console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?l.value===c:Array.isArray(l.value)?l.value.includes(c):!1;return(0,t.provide)("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:o,classes:a}}});function ZC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"collapseDom"},[(0,t.renderSlot)(e.$slots,"default")],2)}var Ea=le(GC,[["render",ZC]]),{create:JC,componentName:ev}=G("collapse-item"),tv=JC({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:oe.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=(0,t.ref)(null),o=(0,t.ref)(null),l=(0,t.reactive)((0,t.inject)("collapseParent")),a=(0,t.computed)(()=>{const d=ev;return{[d]:!0,[d+"__border"]:e.border}}),r=(0,t.computed)(()=>l?l.isExpanded(e.name):!1),s=(0,t.ref)(r.value?"auto":"0px"),i=()=>{l.updateVal(e.name)},c=()=>{r.value&&(s.value="auto")},u=()=>{s.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const d=o.value?.offsetHeight;s.value=d?`${d}px`:"auto"})})},p=()=>{const d=o.value?.offsetHeight;s.value=d?`${d}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{s.value="0px"})})};return(0,t.watch)(r,d=>{d?u():p()}),{classes:a,renderIcon:Ir,wrapperRef:n,contentRef:o,open:u,toggle:i,wrapperHeight:s,expanded:r,onTransitionEnd:c}}}),nv={class:"fox-collapse-item__title-main"},lv={class:"fox-collapse-item__title-main-value"},ov=["innerHTML"],av={key:2,class:"fox-collapse-item__title-label"},rv={key:0,class:"fox-collapse-item__title-sub"},iv=["innerHTML"],sv={key:0,class:"fox-collapse__item-extraWrapper"},cv={class:"fox-collapse__item-extraWrapper__extraRender"},dv={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function uv(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:n[0]||(n[0]=(...s)=>e.toggle&&e.toggle(...s))},[(0,t.createElementVNode)("view",nv,[(0,t.createElementVNode)("view",lv,[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,innerHTML:e.title,class:"fox-collapse-item__title-mtitle"},null,8,ov)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",av,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",rv,[(0,t.renderSlot)(e.$slots,"value")])):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,iv)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-collapse-item__title-icon",{"fox-collapse-item__title-icon--expanded":e.expanded}]),style:(0,t.normalizeStyle)({transform:"rotate("+(e.expanded?e.rotate:0)+"deg)"})},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.icon))))],6)],2),e.$slots.extra?((0,t.openBlock)(),(0,t.createElementBlock)("view",sv,[(0,t.createElementVNode)("div",cv,[(0,t.renderSlot)(e.$slots,"extra")])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:(0,t.normalizeStyle)({willChange:"height",height:e.wrapperHeight}),onTransitionend:n[1]||(n[1]=(...s)=>e.onTransitionEnd&&e.onTransitionEnd(...s))},[(0,t.createElementVNode)("view",dv,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var Da=le(tv,[["render",uv]]),fv=(0,t.defineComponent)({setup(e){return()=>(0,t.h)("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}}),{componentName:mv,create:pv,scope:hv}=G("table"),gv=pv({components:{RenderColumn:fv,DownArrow:oe.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:o}){const{t:l}=(0,ce.useFoxI18n)(hv),a=(0,t.reactive)({curData:e.data}),r=(0,t.computed)(()=>({[mv]:!0})),s=y=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${y.align?y.align:""}`]:!0}),i=y=>y.stylehead?y.stylehead:"",c=y=>y.stylecolumn?y.stylecolumn:"",u=y=>e.columns.filter(C=>C.key===y)[0],p=y=>{const C=e.columns.filter(b=>b.key===y);return C[0].stylecolumn?C[0].stylecolumn:""},d=y=>{y.sorter&&(n("sorter",y),a.curData=typeof y.sorter=="function"?a.curData.sort(y.sorter):y.sorter==="default"?a.curData.sort():a.curData)},h=()=>e.columns.map(y=>[y.key,y.render]);return(0,t.watch)(()=>e.data,y=>{a.curData=y.slice()}),{...(0,t.toRefs)(a),classes:r,cellClasses:s,getColumnItem:u,getColumnItemStyle:p,handleSorterClick:d,sortDataItem:h,t:l,stylehead:i,stylecolumn:c}}}),yv={class:"fox-table__main__head"},bv={class:"fox-table__main__head__tr"},kv=["onClick"],Sv={class:"fox-table__main__body"},wv={key:1},Cv={key:0,class:"fox-table__nodata"},vv={key:0,class:"fox-table__nodata__text"},Nv={key:1,class:"fox-table__summary"},Bv=["innerHTML"];function Av(e,n,o,l,a,r){const s=(0,t.resolveComponent)("DownArrow"),i=(0,t.resolveComponent)("RenderColumn");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-table__main",{"fox-table__main--striped":e.striped}])},[(0,t.createElementVNode)("view",yv,[(0,t.createElementVNode)("view",bv,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,c=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:u=>e.handleSorterClick(c),style:(0,t.normalizeStyle)(c.stylehead)},[(0,t.createTextVNode)((0,t.toDisplayString)(c.title)+" ",1),(0,t.renderSlot)(e.$slots,"icon"),!e.$slots.icon&&c.sorter?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,width:"12px",height:"12px"})):(0,t.createCommentVNode)("",!0)],14,kv))),128))])]),(0,t.createElementVNode)("view",Sv,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.curData,c=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-table__main__body__tr",key:c},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.sortDataItem(),([u,p])=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(u))]),key:u,style:(0,t.normalizeStyle)(e.getColumnItemStyle(u))},[typeof c[u]=="function"||typeof p=="function"?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,slots:[p,c[u]],record:c},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",wv,(0,t.toDisplayString)(c[u]),1))],6))),128))]))),128))])],2),e.curData.length?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Cv,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-table__nodata",{"fox-table__nodata--border":e.bordered}])},[(0,t.renderSlot)(e.$slots,"nodata"),e.$slots.nodata?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",vv,(0,t.toDisplayString)(e.t("noData")),1))],2)])),e.summary?((0,t.openBlock)(),(0,t.createElementBlock)("view",Nv,[(0,t.createElementVNode)("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,Bv)])):(0,t.createCommentVNode)("",!0)],2)}var Ia=le(gv,[["render",Av]]),{componentName:Vv,create:Tv}=G("ellipsis"),$v=Tv({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 o=(0,t.ref)(null);let l=null,a=0;const r=(0,t.ref)(),s=(0,t.reactive)({exceeded:!1,expanded:!1}),i=(0,t.computed)(()=>({[Vv]:!0}));(0,t.watch)(()=>e.content,(b,g)=>{b!=g&&c()}),(0,t.onMounted)(()=>{c()});const c=()=>{if(!o.value)return;const b=window.getComputedStyle(o.value);l=document.createElement("div"),Array.prototype.slice.apply(b).forEach(f=>{l.style.setProperty(f,b.getPropertyValue(f))}),l.style.position="fixed",l.style.left="999999px",l.style.top="999999px",l.style.zIndex="-1000",l.style.height="auto",l.style.minHeight="auto",l.style.maxHeight="auto",l.style.textOverflow="clip",l.style.whiteSpace="normal",l.style.webkitLineClamp="unset",l.style.display="block";const g=h(b.lineHeight==="normal"?e.lineHeight:b.lineHeight);a=Math.floor(g*(Number(e.rows)+.5)+h(b.paddingTop)+h(b.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),u()},u=()=>{if(l.offsetHeight<=a)s.exceeded=!1,document.body.removeChild(l);else{s.exceeded=!0;const b=e.content.length,g=Math.floor((0+b)/2);r.value=e.direction==="middle"?d([0,g],[g,b]):p(0,b),document.body.removeChild(l)}},p=(b,g)=>{const f=s.expanded?e.collapseText:e.expandText,w=e.content.length;if(g-b<=1)return e.direction==="end"?{leading:e.content.slice(0,b)+e.symbol}:{tailing:e.symbol+e.content.slice(g,w)};const m=Math.round((b+g)/2);return e.direction==="end"?l.innerText=e.content.slice(0,m)+e.symbol+f:l.innerText=f+e.symbol+e.content.slice(m,w),l.offsetHeight<=a?e.direction==="end"?p(m,g):p(b,m):e.direction==="end"?p(b,m):p(m,g)},d=(b,g)=>{const f=s.expanded?e.collapseText:e.expandText,w=e.content.length;if(b[1]-b[0]<=1&&g[1]-g[0]<=1)return{leading:e.content.slice(0,b[0])+e.symbol,tailing:e.symbol+e.content.slice(g[1],w)};const m=Math.floor((b[0]+b[1])/2),v=Math.ceil((g[0]+g[1])/2);return l.innerText=e.content.slice(0,m)+e.symbol+f+e.symbol+e.content.slice(v,w),l.offsetHeight<=a?d([m,b[1]],[g[0],v]):d([b[0],m],[v,g[1]])},h=b=>{if(!b)return 0;const g=b.match(/^\d*(\.\d*)?/);return g?Number(g[0]):0},y=b=>{b==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},C=()=>{n("click")};return{...(0,t.toRefs)(s),root:o,ellipsis:r,classes:i,clickHandle:y,handleClick:C}}}),Ev={key:0},Dv={key:1},Iv={key:2};function qv(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[2]||(n[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Ev,(0,t.toDisplayString)(e.content),1)),e.exceeded&&!e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",Dv,[(0,t.createTextVNode)((0,t.toDisplayString)(e.ellipsis&&e.ellipsis.leading),1),e.expandText?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-ellipsis__text",onClick:n[0]||(n[0]=(0,t.withModifiers)(s=>e.clickHandle(1),["stop"]))},(0,t.toDisplayString)(e.expandText),1)):(0,t.createCommentVNode)("",!0),(0,t.createTextVNode)((0,t.toDisplayString)(e.ellipsis&&e.ellipsis.tailing),1)])):(0,t.createCommentVNode)("",!0),e.exceeded&&e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",Iv,[(0,t.createTextVNode)((0,t.toDisplayString)(e.content)+" ",1),e.expandText?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-ellipsis__text",onClick:n[1]||(n[1]=(0,t.withModifiers)(s=>e.clickHandle(2),["stop"]))},(0,t.toDisplayString)(e.collapseText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2)}var qa=le($v,[["render",qv]]),{componentName:Pv,create:xv}=G("animate"),Mv=xv({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:o,loop:l,action:a}=(0,t.toRefs)(e),r=(0,t.reactive)({clicked:!1});let s=(0,t.computed)(()=>({"fox-animate__container":!0,[`${Pv}-${o.value}`]:a.value==="initial"||r.clicked?o.value:!1,loop:l.value}));const i=c=>{r.clicked=!0,l.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",c)};return{...(0,t.toRefs)(r),classes:s,handleClick:i}}}),Lv={class:"fox-animate"};function zv(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Lv,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s)),style:(0,t.normalizeStyle)({animationDuration:e.duration?`${e.duration}ms`:void 0})},[(0,t.renderSlot)(e.$slots,"default")],6)])}var Pa=le(Mv,[["render",zv]]),{componentName:Ov,create:Fv}=G("watermark"),Rv=Fv({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 o=(0,t.reactive)({base64Url:""}),{zIndex:l,gapX:a,gapY:r,width:s,height:i,rotate:c,image:u,imageWidth:p,imageHeight:d,content:h,fontStyle:y,fontWeight:C,fontColor:b,fontSize:g,fontFamily:f}=e,w=()=>{const v=document.createElement("canvas"),N=window.devicePixelRatio,k=v.getContext("2d"),S=`${(a+s)*N}px`,A=`${(r+i)*N}px`,V=s*N,E=i*N;if(v.setAttribute("width",S),v.setAttribute("height",A),k)if(u){k.translate(V/2,E/2),k.rotate(Math.PI/180*Number(c));const $=new Image;$.crossOrigin="anonymous",$.referrerPolicy="no-referrer",$.src=u,$.onload=()=>{k.drawImage($,-p*N/2,-d*N/2,p*N,d*N),k.restore(),o.base64Url=v.toDataURL()}}else h&&(k.textBaseline="middle",k.textAlign="center",k.translate(V/2,E/2),k.rotate(Math.PI/180*Number(c)),k.font=`${y} normal ${C} ${Number(g)*N}px/${E}px ${f}`,k.fillStyle=b,k.fillText(h,0,0),k.restore(),o.base64Url=v.toDataURL());else throw new Error("当前环境不支持Canvas")};w(),(0,t.watch)(()=>[l,a,r,s,i,c,u,p,d,h,y,C,b,g,f],()=>{w()});const m=(0,t.computed)(()=>{const v=Ov;return{[v]:!0,[`${v}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(o),classes:m}}});function Kv(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}var xa=le(Rv,[["render",Kv]]);function Uv(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))}var{componentName:Hv,create:_v}=G("trend-arrow"),Wv=_v({components:{TriangleUp:oe.TriangleUp,TriangleDown:oe.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=(0,t.reactive)({rateTrend:e.rate>0}),o=(0,t.computed)(()=>({[Hv]:!0})),l=(0,t.computed)(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;n.rateTrend=r>0;const u=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${Uv(Number(u),s)}%`}),a=(0,t.computed)(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:u}=e;return{color:u===0?c:i?n.rateTrend?s:r:c}});return{...(0,t.toRefs)(n),classes:o,calcRate:l,calcStyle:a}}});function jv(e,n,o,l,a,r){const s=(0,t.resolveComponent)("TriangleUp"),i=(0,t.resolveComponent)("TriangleDown");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.arrowLeft?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?(0,t.renderSlot)(e.$slots,"up-icon",{key:1},()=>[(0,t.createVNode)(s,{color:e.riseColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),Number(e.rate)!==0&&!e.rateTrend?(0,t.renderSlot)(e.$slots,"down-icon",{key:2},()=>[(0,t.createVNode)(i,{color:e.dropColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.arrowLeft?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)):(0,t.createCommentVNode)("",!0)],2)}var Ma=le(Wv,[["render",jv]]),{create:Yv}=G("tour"),Xv=Yv({components:{[cn.name]:cn,Close:oe.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const o=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),l=(0,t.ref)({}),a=(0,t.computed)(()=>"fox-tour"),r=(0,t.computed)(()=>{const{offset:p,maskWidth:d,maskHeight:h}=e,{width:y,height:C,left:b,top:g}=l.value,f=[b+y/2,g+C/2],w=Number(d||y),m=Number(h||C);return{width:`${w+ +p[1]*2}px`,height:`${m+ +p[0]*2}px`,top:`${f[1]-m/2-+p[0]}px`,left:`${f[0]-w/2-+p[1]}px`}}),s=p=>{p=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,(0,t.nextTick)(()=>{o.showPopup=!0,i()}),n("change",o.active)},i=()=>{l.value=Pe(document.querySelector(`#${e.steps[o.active].target}`))},c=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},u=()=>{e.closeOnClickOverlay&&c()};return(0,t.onMounted)(()=>{o.active=0,i()}),(0,t.watch)(()=>e.modelValue,p=>{p&&i(),o.active=0,o.showTour=p,o.showPopup=p}),{...(0,t.toRefs)(o),classes:a,maskStyle:r,changeStep:s,close:c,handleClickMask:u}}}),Qv={key:0,class:"fox-tour-content"},Gv={key:0,class:"fox-tour-content-top"},Zv={class:"fox-tour-content-inner"},Jv={class:"fox-tour-content-bottom"},e2={class:"fox-tour-content-bottom-init"},t2={class:"fox-tour-content-bottom-operate"},n2={key:1,class:"fox-tour-content fox-tour-content-tile"},l2={class:"fox-tour-content-inner"};function o2(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Close"),i=(0,t.resolveComponent)("fox-popover");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.steps,(c,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:u,style:{height:"0"}},[u==e.active?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.showTour?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:(0,t.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,t.createCommentVNode)("",!0),(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:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,t.openBlock)(),(0,t.createElementBlock)("div",Qv,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",Gv,[(0,t.createElementVNode)("div",{onClick:n[1]||(n[1]=(...p)=>e.close&&e.close(...p))},[(0,t.createVNode)(s,{class:"fox-tour-content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",Zv,(0,t.toDisplayString)(c.content),1),(0,t.createElementVNode)("div",Jv,[(0,t.createElementVNode)("div",e2,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",t2,[(0,t.renderSlot)(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:n[2]||(n[2]=p=>e.changeStep("prev"))},(0,t.toDisplayString)(e.prevStepTxt),1)):(0,t.createCommentVNode)("",!0)]),e.steps.length-1==e.active?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[3]||(n[3]=(...p)=>e.close&&e.close(...p))},(0,t.toDisplayString)(e.completeTxt),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[4]||(n[4]=p=>e.changeStep("next"))},(0,t.toDisplayString)(e.nextStepTxt),1)):(0,t.createCommentVNode)("",!0)])])])])):(0,t.createCommentVNode)("",!0),e.type=="tile"?((0,t.openBlock)(),(0,t.createElementBlock)("div",n2,[(0,t.createElementVNode)("div",l2,(0,t.toDisplayString)(c.content),1)])):(0,t.createCommentVNode)("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):(0,t.createCommentVNode)("",!0)]))),128))],2)}var La=le(Xv,[["render",o2]]),{componentName:tV,create:a2,scope:r2}=G("address"),i2=a2({components:{Location:oe.Location,Location2:oe.Location2,Check:oe.Check,Close:oe.Close,Left:oe.Left,[pe.name]:pe,[Qt.name]:Qt},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:o}=(0,ce.useFoxI18n)(r2),l=(0,t.ref)(null),a=(0,t.ref)(null),r=(0,t.ref)(e.visible),s=(0,t.ref)(e.type),i=(0,t.ref)(0),c=(0,t.ref)(0),u=(0,t.ref)(["province","city","country","town"]),p=(0,t.ref)(null),d=(0,t.ref)([0,0,0,0]),h=(0,t.computed)(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),y=T=>{if(!Array.isArray(T))throw new TypeError("params muse be array.");if(!T.length)return[];T.forEach(q=>{if(!q.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const P=[];return T=T.sort((q,O)=>q.title.localeCompare(O.title)),T.forEach(q=>{const O=P.findIndex(R=>R.title===q.title);O<=-1?P.push({title:q.title,list:[].concat(q)}):P[O].list.push(q)}),P};let C=(0,t.ref)([]),b=(0,t.reactive)({});const g=(0,t.ref)("self"),f=(0,t.ref)(20),w=()=>{const T=e.modelValue,P=T.length;if(P>0){if(i.value=P-1,h.value.length==0){i.value=0;return}for(let q=0;q<P;q++){let O=[];switch(q){case 0:O=e.province;break;case 1:O=e.city;break;case 2:O=e.country;break;default:O=e.town}C.value[q]=O.filter(R=>R.id==T[q])[0]}v()}},m=(T,P)=>T&&T.name||i.value<P&&T?T.name:e.columnsPlaceholder[P]||o("select"),v=()=>{S(),(0,t.nextTick)(()=>{const T=a.value&&a.value.getElementsByClassName("active")[0];if(T){const P=T.offsetLeft;f.value=P||20}})},N=T=>{const P=i.value;c.value=i.value;const q={custom:u.value[P]};C.value[P]=T;for(let O=P+2;O<4;O++)C.value.splice(O,1);P<3?(i.value=P+1,v(),q.next=u.value[i.value],q.value=T,n("change",q)):(E(),n("update:modelValue"))},k=(T,P)=>{c.value=i.value,m(T,P)&&(i.value=P,v())},S=()=>{const T=p.value,P=c.value,q=d.value[i.value];T?.scrollTop&&(d.value[P]=T?.scrollTop),(0,t.nextTick)(()=>{T?.scrollTo({top:q,behavior:"auto"})})},A=T=>{const P=e.existAddress;let q={};P.forEach(O=>{O&&O.selectedAddress&&(q=O),O.selectedAddress=!1}),T.selectedAddress=!0,b=T,n("selected",q,T,P),E()},V=()=>{C.value=[],i.value=0,v()},E=(T="self")=>{g.value=T=="cross"?"cross":"self",r.value=!1},$=()=>{g.value="mask"},_=()=>{const T={addressIdStr:"",addressStr:"",province:C.value[0],city:C.value[1],country:C.value[2],town:C.value[3]},P={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(q=>{const O=C.value[q];T.addressIdStr+=`${q?"_":""}${O&&O.id||0}`,T.addressStr+=O&&O.name||""}),P.data=T):P.data=b,V(),g.value=="self"?n("close",P):n("close-mask",{closeWay:g}),n("update:visible",!1)},J=()=>{s.value=s.value=="exist"?"custom":"exist",V(),n("switch-module",{type:s.value})},D=(T,P)=>{N(P)};return(0,t.watch)(()=>e.visible,T=>{r.value=T}),(0,t.watch)(()=>r.value,T=>{T&&w()}),{showPopup:r,privateType:s,tabIndex:i,tabName:u,selectedRegion:C,switchModule:J,closeWay:g,close:_,getTabName:m,nextAreaList:N,regionLine:l,tabRegion:a,lineDistance:f,changeRegionTab:k,selectedExist:A,clickOverlay:$,handClose:E,handleElevatorItem:D,initCustomSelected:w,...(0,t.toRefs)(e),t:o,regionList:h,transformData:y,scrollDom:p}}}),s2={class:"fox-address"},c2={class:"fox-address__header"},d2={class:"fox-address__header__title"},u2={key:0,class:"fox-address__custom"},f2={class:"fox-address__region",ref:"tabRegion"},m2=["onClick"],p2={key:0,class:"active fox-address__region-item"},h2={key:0,class:"fox-address__detail"},g2={class:"fox-address__detail-list",ref:"scrollDom"},y2=["onClick"],b2={key:1,class:"fox-address__elevator-group"},k2={key:1,class:"fox-address__exist"},S2={class:"fox-address__exist-group"},w2={class:"fox-address__exist-group-list"},C2=["onClick"],v2={class:"fox-address__exist-item-info"},N2={key:0,class:"fox-address__exist-item-info-name"},B2={key:1,class:"fox-address__exist-item-info-phone"},A2={class:"fox-address__exist-item-info-bottom"},V2={class:"fox-address__exist-choose-btn"};function T2(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Left"),i=(0,t.resolveComponent)("Close"),c=(0,t.resolveComponent)("Check"),u=(0,t.resolveComponent)("fox-elevator"),p=(0,t.resolveComponent)("Location2"),d=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(d,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",s2,[(0,t.createElementVNode)("view",c2,[(0,t.createElementVNode)("view",{class:"fox-address__header-back",onClick:n[0]||(n[0]=(...h)=>e.switchModule&&e.switchModule(...h))},[(0,t.renderSlot)(e.$slots,"back-icon",{},()=>[(0,t.withDirectives)((0,t.createVNode)(s,{size:"14px"},null,512),[[t.vShow,e.type=="exist"&&e.privateType=="custom"]])])]),(0,t.createElementVNode)("view",d2,(0,t.toDisplayString)(e.privateType=="custom"?e.customAddressTitle||e.t("selectRegion"):e.existAddressTitle||e.t("deliveryTo")),1),(0,t.createElementVNode)("view",{class:"fox-address__header-close",onClick:n[1]||(n[1]=h=>e.handClose("cross"))},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(i,{color:"#cccccc",size:"14px"})])])]),["custom","custom2"].includes(e.privateType)?((0,t.openBlock)(),(0,t.createElementBlock)("view",u2,[(0,t.createElementVNode)("view",f2,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.selectedRegion,(h,y)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-address__region-item",y==e.tabIndex?"active":""]),key:y,onClick:C=>e.changeRegionTab(h,y)},[(0,t.createElementVNode)("view",null,(0,t.toDisplayString)(e.getTabName(h,y)),1)],10,m2))),128)),e.tabIndex==e.selectedRegion.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",p2,[(0,t.createElementVNode)("view",null,(0,t.toDisplayString)(e.getTabName(null,e.selectedRegion.length)),1)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-address__region-line",ref:"regionLine",style:(0,t.normalizeStyle)({left:e.lineDistance+"px"})},null,4)],512),e.privateType=="custom"?((0,t.openBlock)(),(0,t.createElementBlock)("view",h2,[(0,t.createElementVNode)("ul",g2,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.regionList,(h,y)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{key:y,class:(0,t.normalizeClass)(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick:C=>e.nextAreaList(h)},[(0,t.createElementVNode)("div",null,[e.selectedRegion[e.tabIndex]?.id==h.id?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(c,{class:"fox-address-select-icon",size:"13px"})]):(0,t.createCommentVNode)("",!0),(0,t.createTextVNode)((0,t.toDisplayString)(h.name),1)])],10,y2))),128))],512)])):((0,t.openBlock)(),(0,t.createElementBlock)("view",b2,[(0,t.createVNode)(u,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):((0,t.openBlock)(),(0,t.createElementBlock)("view",k2,[(0,t.createElementVNode)("div",S2,[(0,t.createElementVNode)("ul",w2,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.existAddress,(h,y)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{class:(0,t.normalizeClass)(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:y,onClick:C=>e.selectedExist(h)},[h.selectedAddress?(0,t.createCommentVNode)("",!0):(0,t.renderSlot)(e.$slots,"unselected-icon",{key:0},()=>[(0,t.createVNode)(p,{class:"fox-address-select-icon",size:"13px"})]),h.selectedAddress?(0,t.renderSlot)(e.$slots,"icon",{key:1},()=>[(0,t.createVNode)(c,{class:"fox-address-select-icon",size:"13px"})]):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",v2,[h.name?((0,t.openBlock)(),(0,t.createElementBlock)("div",N2,(0,t.toDisplayString)(h.name),1)):(0,t.createCommentVNode)("",!0),h.phone?((0,t.openBlock)(),(0,t.createElementBlock)("div",B2,(0,t.toDisplayString)(h.phone),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",A2,[(0,t.createElementVNode)("view",null,(0,t.toDisplayString)(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,C2))),128))])]),e.isShowCustomAddress?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-address__exist-choose",onClick:n[2]||(n[2]=(...h)=>e.switchModule&&e.switchModule(...h))},[(0,t.createElementVNode)("div",V2,(0,t.toDisplayString)(e.customAndExistTitle||e.t("chooseAnotherAddress")),1)])):(0,t.createCommentVNode)("",!0)])),(0,t.renderSlot)(e.$slots,"bottom")])]),_:3},8,["lock-scroll","onClose","onClickOverlay","visible","teleportDisable","teleport"])}var za=le(i2,[["render",T2]]),{componentName:$2,create:E2}=G("barrage"),D2=E2({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(),o=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[$2]:!0}));let a=(0,t.ref)(document.createElement("div")),r=(0,t.ref)(document.createElement("div")),s=null;const i=(0,t.ref)(e.danmu),c=(0,t.ref)(e.rows),u=(0,t.ref)(e.top),p=(0,t.ref)(0),d=e.speeds,h=(0,t.ref)(0);(0,t.onMounted)(()=>{y(),o&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(b(),p.value=0,C("hidden")):document.visibilityState==="visible"&&y()})}),(0,t.onUnmounted)(()=>{i.value=[],b()});const y=()=>{h.value=a.value.offsetWidth,o&&C("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${h.value}px`),f()},300)},C=m=>{let v=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const N=[];v&&Array.from(v).forEach(k=>{m=="init"?(k.style.opacity="0",N.push(k)):(k.classList="",k.style={})}),m=="init"&&(i.value=N)},b=()=>{s&&(clearTimeout(s),s=null)};(0,t.watch)(()=>e.danmu,m=>{e.danmu.length>0&&(i.value=[...m])});const g=m=>{const v=p.value%i.value.length;!e.loop&&p.value===i.value.length?i.value.splice(i.value.length,0,m):i.value.splice(v,0,m)},f=()=>{b(),s=setTimeout(()=>{w()},e.frequency)},w=()=>{const m=e.loop?p.value%i.value.length:p.value;let v=document.createElement("view");o&&typeof i.value[m]=="object"?(v=i.value[m],v?.classList?.add("fox-barrage__item")):(v.innerHTML=i.value[m],v.classList.add("fox-barrage__item"),r.value.appendChild(v)),(0,t.nextTick)(()=>{const N=v.offsetHeight;if(v?.classList?.add("move"),v.style.animationDuration=`${d}ms`,v.style.top=m%c.value*(N+u.value)+20+"px",v.style.opacity="1",!o){const k=v.offsetWidth;v.style.width=k+20+"px"}v.addEventListener("animationend",()=>{o?v.classList.remove("move"):r.value.removeChild(v)}),!(!e.loop&&p.value>=i.value.length-1)&&(p.value++,p.value>=i.value.length&&(p.value=0),v.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:l,danmuList:i,dmBody:a,dmContainer:r,add:g}}});function I2(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{ref:"dmBody",class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",{ref:"dmContainer",class:(0,t.normalizeClass)(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["slotBody","slotBody"+e.classTime])},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)],2)],2)}var Oa=le(D2,[["render",I2]]),{componentName:q2,create:P2,scope:x2}=G("signature"),M2=P2({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:{[Oe.name]:Oe},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:o}=(0,ce.useFoxI18n)(x2),l=o(e,["unSupportTpl","reSign","confirmText"]),a=(0,t.ref)(null),r=(0,t.ref)(null),s=(0,t.computed)(()=>({[q2]:!0,[`${e.customClass}`]:e.customClass})),i=(0,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 w=document.createElement("canvas");return!!(w.getContext&&w.getContext("2d"))},u=()=>{a.value.addEventListener(i.events[0],p,!1)},p=w=>{w.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),a.value.addEventListener(i.events[1],d,!1),a.value.addEventListener(i.events[2],h,!1),a.value.addEventListener(i.events[3],y,!1)},d=w=>{w.preventDefault();let m=i.isSupportTouch?w.touches[0]:w;n("signing",m);let v=a.value.getBoundingClientRect(),N=m.clientX-v.left,k=m.clientY-v.top;i.ctx.lineTo(N,k),i.ctx.stroke()},h=w=>{w.preventDefault(),n("end"),a.value.removeEventListener(i.events[1],d,!1),a.value.removeEventListener(i.events[2],h,!1)},y=w=>{w.preventDefault(),a.value.removeEventListener(i.events[1],d,!1),a.value.removeEventListener(i.events[2],h,!1)},C=()=>{a.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},b=()=>{f(a.value)},g=w=>{if(!w)return!0;var m=document.createElement("canvas");return m.width=w.width,m.height=w.height,w?.toDataURL()==m.toDataURL()},f=w=>{let m;switch(e.type){case"png":m=w.toDataURL("image/png");break;case"jpg":m=w.toDataURL("image/jpeg",.8);break}n("confirm",g(w)?"请绘制签名":w,g(w)?"":m)};return(0,t.onMounted)(()=>{c()&&(i.ctx=a.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,u())}),{...l,...(0,t.toRefs)(i),canvas:a,wrap:r,isCanvasSupported:c,confirm:b,clear:C,classes:s}}}),L2={class:"fox-signature-inner",ref:"wrap"},z2=["height","width"],O2={key:0,class:"fox-signature-unsopport"};function F2(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",L2,[(0,t.withDirectives)((0,t.createElementVNode)("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,z2),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("p",O2,(0,t.toDisplayString)(e.unSupportTpl),1))],512),(0,t.createVNode)(s,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=i=>e.clear())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.reSign),1)]),_:1}),(0,t.createVNode)(s,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=i=>e.confirm())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.confirmText),1)]),_:1})],2)}var Fa=le(M2,[["render",F2]]),{componentName:R2,create:K2,scope:U2}=G("time-select"),H2=K2({components:{[pe.name]:pe},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:o}=(0,ce.useFoxI18n)(U2),l=(0,t.computed)(()=>({[R2]:!0})),a=(0,t.computed)(()=>({width:"100%",height:e.height})),r=(0,t.computed)(()=>e.currentKey),s=(0,t.computed)(()=>e.currentTime),i=()=>{n.emit("update:visible",!1),n.emit("select",s.value)};return(0,t.provide)("currentKey",r),(0,t.provide)("currentTime",s),{classes:l,popStyle:a,props:e,close:i,t:o}}}),_2={class:"fox-time-select__title"},W2={class:"fox-time-select__title__fixed"},j2={key:0},Y2={class:"fox-time-select__content"},X2={class:"fox-time-select__content__pannel"},Q2={class:"fox-time-select__content__detail"};function G2(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(s,{position:"bottom",closeable:"",round:"",teleportDisable:e.teleportDisable,visible:e.visible,style:(0,t.normalizeStyle)(e.popStyle),"lock-scroll":e.lockScroll,onClickOverlay:e.close,onClickCloseIcon:e.close},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",_2,[(0,t.createElementVNode)("view",W2,[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:1}):((0,t.openBlock)(),(0,t.createElementBlock)("span",j2,(0,t.toDisplayString)(e.title||e.t("pickupTime")),1))])]),(0,t.createElementVNode)("view",Y2,[(0,t.createElementVNode)("view",X2,[(0,t.renderSlot)(e.$slots,"pannel")]),(0,t.createElementVNode)("view",Q2,[(0,t.renderSlot)(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}var Ra=le(H2,[["render",G2]]),{componentName:Z2,create:J2}=G("time-pannel"),eN=J2({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,n)=>{const o=(0,t.reactive)({currentKey:(0,t.inject)("currentKey")}),l=(0,t.computed)(()=>({[Z2]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),a=r=>{n.emit("change",r)};return{...(0,t.toRefs)(o),classes:l,handlePannel:a}}});function tN(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=s=>e.handlePannel(e.pannelKey))},(0,t.toDisplayString)(e.name),3)}var Ka=le(eN,[["render",tN]]),{componentName:nN,create:lN}=G("time-detail"),oN=lN({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,n)=>{const o=(0,t.reactive)({currentKey:(0,t.inject)("currentKey"),currentTime:(0,t.inject)("currentTime")}),l=(0,t.computed)(()=>({[nN]:!0})),a=i=>{let c=o.currentTime.find(u=>u.key==o.currentKey);if(c)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":c.list.filter(u=>u===i).length>0}},r=(0,t.computed)(()=>e.times.find(i=>i.key==o.currentKey).list),s=i=>{n.emit("select",i)};return{classes:l,...(0,t.toRefs)(o),getClass:a,renderData:r,handleTime:s}}}),aN={class:"fox-time-detail__detail fox-time-detail__detail--moring"},rN={class:"fox-time-detail__detail__list"},iN=["onClick"];function sN(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",aN,[(0,t.createElementVNode)("view",rN,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.renderData,s=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.getClass(s)),key:s,onClick:i=>e.handleTime(s)},(0,t.toDisplayString)(s),11,iN))),128))])])],2)}var Ua=le(oN,[["render",sN]]),{componentName:nV,create:cN,scope:dN}=G("sku-header"),uN=cN({props:{goods:{type:Object,default:{}}},emits:[],components:{[tt.name]:tt},setup(e,{emit:n,slots:o}){const{t:l}=(0,ce.useFoxI18n)(dN);return{getSlots:r=>o[r],t:l}}}),fN={class:"fox-sku-header"},mN=["src"],pN={class:"fox-sku-header-right"},hN={key:3,class:"fox-sku-header-right-extra"};function gN(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-price");return(0,t.openBlock)(),(0,t.createElementBlock)("view",fN,[(0,t.createElementVNode)("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,mN),(0,t.createElementVNode)("view",pN,[e.getSlots("sku-header-price")?(0,t.renderSlot)(e.$slots,"sku-header-price",{key:0}):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,price:e.goods.price,needSymbol:!0,thousands:!1},null,8,["price"])),e.getSlots("sku-header-extra")?(0,t.renderSlot)(e.$slots,"sku-header-extra",{key:2}):(0,t.createCommentVNode)("",!0),e.goods.skuId&&!e.getSlots("sku-header-extra")?((0,t.openBlock)(),(0,t.createElementBlock)("view",hN,(0,t.toDisplayString)(e.t("skuId"))+" : "+(0,t.toDisplayString)(e.goods.skuId),1)):(0,t.createCommentVNode)("",!0)])])}var yN=le(uN,[["render",gN]]),{componentName:lV,create:bN}=G("sku-select"),kN=bN({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:n}){const o=(0,t.ref)([]);return(0,t.watch)(()=>e.sku,a=>{o.value=[].slice.call(a)},{deep:!0}),(0,t.onMounted)(()=>{e.sku.length>0&&(o.value=[].slice.call(e.sku))}),{skuInfo:o,changeSaleChild:(a,r,s,i)=>{a.checkFlag||a.disable||n("selectSku",{sku:a,skuIndex:r,parentSku:s,parentIndex:i})}}}}),SN={class:"fox-sku-select"},wN={class:"fox-sku-select-item-title"},CN={class:"fox-sku-select-item-skus"},vN=["onClick"];function NN(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",SN,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.skuInfo,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-sku-select-item",key:s.id},[(0,t.createElementVNode)("view",wN,(0,t.toDisplayString)(s.name),1),(0,t.createElementVNode)("view",CN,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.list,(c,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:p=>e.changeSaleChild(c,u,s,i),key:c.name},(0,t.toDisplayString)(c.name),11,vN))),128))])]))),128))])}var BN=le(kN,[["render",NN]]),{componentName:oV,create:AN}=G("sku-stepper"),VN=AN({props:{stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},stepperExtraText:{type:[Function,Boolean],default:!1},stepperTitle:{type:String,default:"购买数量"}},emits:["click","changeSku","changeStepper","clickBtnOptions","overLimit","reduce","add"],components:{[lt.name]:lt},setup(e,{emit:n}){const o=(0,t.ref)(e.stepperMin);return(0,t.onMounted)(()=>{o.value=e.stepperMin}),{goodsCount:o,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,u)=>{n("overLimit",{action:u,value:parseInt(o.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&rt(c)=="function"?c():""},changeStepper:c=>{o.value=c,n("changeStepper",c)}}}}),TN={class:"fox-sku-stepper"},$N={class:"fox-sku-stepper-title"},EN=["innerHTML"],DN={class:"fox-sku-stepper-count"};function IN(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-input-number");return(0,t.openBlock)(),(0,t.createElementBlock)("view",TN,[(0,t.createElementVNode)("view",$N,(0,t.toDisplayString)(e.stepperTitle),1),(0,t.createElementVNode)("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,EN),(0,t.createElementVNode)("view",DN,[(0,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"])])])}var qN=le(VN,[["render",IN]]),{componentName:aV,create:PN}=G("sku-operate"),xN=PN({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:o}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{n("clickBtnOperate",s)},getSlots:s=>o[s]}}}),MN={key:0,class:"fox-sku-operate"},LN={key:0,class:"fox-sku-operate-desc"},zN={key:1,class:"fox-sku-operate-btn"},ON=["onClick"];function FN(e,n,o,l,a,r){return e.btnOptions.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",MN,[e.btnExtraText?((0,t.openBlock)(),(0,t.createElementBlock)("view",LN,(0,t.toDisplayString)(e.btnExtraText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"operate-btn"),e.getSlots("operate-btn")?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",zN,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.btnOptions,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)([`fox-sku-operate-btn-${s}`,"fox-sku-operate-btn-item"]),key:i,onClick:c=>e.clickBtnOperate(s)},(0,t.toDisplayString)(e.getBtnDesc(s)),11,ON))),128))]))])):(0,t.createCommentVNode)("",!0)}var RN=le(xN,[["render",FN]]),{componentName:rV,create:KN,scope:UN}=G("sku"),HN=KN({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:yN,SkuSelect:BN,SkuStepper:qN,SkuOperate:RN,[pe.name]:pe},setup(e,{emit:n,slots:o}){const{toLocaleRefs:l}=(0,ce.useFoxI18n)(UN),a=l(e,["confirmText","buyText","stepperTitle","addCartText"]),r=(0,t.ref)(e.visible),s=(0,t.ref)(e.stepperMin);(0,t.watch)(()=>e.visible,g=>{r.value=g}),(0,t.watch)(()=>r.value,g=>{g==!1&&b()}),(0,t.onMounted)(()=>{});const i=g=>o[g],c=g=>{n("select-sku",g)},u=g=>{s.value=g,n("change-stepper",g)},p=g=>{n("add",g)},d=g=>{n("reduce",g)},h=g=>{n("over-limit",g)},y=g=>{n("click-btn-operate",{type:g,value:s.value})},C=g=>{g=="icon"&&n("click-close-icon"),g=="overlay"&&n("click-overlay"),g=="close"&&n("close"),r.value=!1},b=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:C,selectSku:c,changeStepper:u,stepperOverLimit:h,clickBtnOperate:y,add:p,reduce:d,getSlots:i,...a}}}),_N={class:"fox-sku"},WN={class:"fox-sku-content"};function jN(e,n,o,l,a,r){const s=(0,t.resolveComponent)("sku-header"),i=(0,t.resolveComponent)("SkuSelect"),c=(0,t.resolveComponent)("sku-stepper"),u=(0,t.resolveComponent)("sku-operate"),p=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(p,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=d=>e.showPopup=d),onClickCloseIcon:n[1]||(n[1]=d=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=d=>e.closePopup("overlay")),onClose:n[3]||(n[3]=d=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",_N,[(0,t.renderSlot)(e.$slots,"sku-header"),e.getSlots("sku-header")?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,goods:e.goods},(0,t.createSlots)({_:2},[e.getSlots("sku-header-price")?{name:"sku-header-price",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"sku-header-price")]),key:"0"}:void 0,e.getSlots("sku-header-extra")?{name:"sku-header-extra",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"sku-header-extra")]),key:"1"}:void 0]),1032,["goods"])),(0,t.createElementVNode)("view",WN,[(0,t.renderSlot)(e.$slots,"sku-select-top"),(0,t.renderSlot)(e.$slots,"sku-select"),e.getSlots("sku-select")?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),(0,t.renderSlot)(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,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"])),(0,t.renderSlot)(e.$slots,"sku-stepper-bottom")]),(0,t.createVNode)(u,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},(0,t.createSlots)({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}var Ha=le(HN,[["render",jN]]),{create:YN}=G("card"),XN=YN({components:{[tt.name]:tt,[sn.name]:sn},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:o}){return{isHaveSlot:a=>o[a]}}}),QN={class:"fox-card"},GN={class:"fox-card__left"},ZN=["src"],JN={class:"fox-card__right"},eB={class:"fox-card__right__title"},tB={key:0,class:"fox-card__right__price"},nB={class:"fox-card__right__other"},lB={class:"fox-card__right__shop"},oB={class:"fox-card__right__shop__name"};function aB(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-price"),i=(0,t.resolveComponent)("fox-tag");return(0,t.openBlock)(),(0,t.createElementBlock)("div",QN,[(0,t.createElementVNode)("div",GN,[(0,t.createElementVNode)("img",{src:e.imgUrl,alt:""},null,8,ZN)]),(0,t.createElementVNode)("div",JN,[(0,t.createElementVNode)("div",eB,(0,t.toDisplayString)(e.title),1),(0,t.renderSlot)(e.$slots,"prolist"),e.isNeedPrice?((0,t.openBlock)(),(0,t.createElementBlock)("div",tB,[e.isHaveSlot("price")?(0,t.renderSlot)(e.$slots,"price",{key:0}):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,price:e.price},null,8,["price"])),e.isHaveSlot("origin")?(0,t.renderSlot)(e.$slots,"origin",{key:2}):((0,t.openBlock)(),(0,t.createBlock)(s,{key:3,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",nB,[e.isHaveSlot("shop-tag")?(0,t.renderSlot)(e.$slots,"shop-tag",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createVNode)(i,{type:"danger"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.shopDesc),1)]),_:1}),(0,t.createVNode)(i,{plain:""},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.delivery),1)]),_:1})],64))]),(0,t.createElementVNode)("div",lB,[(0,t.createElementVNode)("div",oB,(0,t.toDisplayString)(e.shopName),1),(0,t.renderSlot)(e.$slots,"footer")])])])}var _a=le(XN,[["render",aB]]),{create:rB,scope:iB}=G("ecard"),sB=rB({components:{[lt.name]:lt},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:o}=(0,ce.useFoxI18n)(iB),l=(0,t.ref)(null),a=(0,t.ref)(null),r=(0,t.ref)(""),s=(0,t.ref)(e.cardAmountMin),i=(0,t.ref)(e.modelValue),c=(h,y)=>{l.value=y,s.value=e.cardAmountMin,a.value=h.price,n("change",h),n("update:modelValue",h.price)},u=h=>{let y=h.target.value.replace(/[^\d]/g,"");r.value=y,a.value=y,Number(y)>e.cardAmountMax&&(r.value=e.cardAmountMax,a.value=e.cardAmountMax),Number(y)<e.cardAmountMin&&(r.value=e.cardAmountMin,a.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},p=()=>{l.value="input",s.value=e.cardAmountMin,a.value=r.value,n("update:modelValue",r.value),n("inputClick")},d=h=>{s.value=h,n("changeStep",s.value,a.value)};return(0,t.watch)(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:d,change:u,inputClick:p,stepValue:s,currentIndex:l,inputValue:r,money:i,t:o}}}),cB={class:"fox-ecard"},dB={class:"fox-ecard__title"},uB={class:"fox-ecard__list"},fB=["onClick"],mB={class:"fox-ecard__list__input--con"},pB=["placeholder"],hB={class:"fox-ecard__list__step"};function gB(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-input-number");return(0,t.openBlock)(),(0,t.createElementBlock)("view",cB,[(0,t.createElementVNode)("view",dB,(0,t.toDisplayString)(e.chooseText||e.t("chooseText")),1),(0,t.createElementVNode)("view",uB,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.dataList,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:c,class:(0,t.normalizeClass)(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:u=>e.handleClick(i,c)},(0,t.toDisplayString)(i.price),11,fB))),128)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:n[2]||(n[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[(0,t.createElementVNode)("view",null,(0,t.toDisplayString)(e.otherValueText||e.t("otherValueText")),1),(0,t.createElementVNode)("view",mB,[(0,t.withDirectives)((0,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,pB),[[t.vModelText,e.inputValue]]),(0,t.createTextVNode)(" "+(0,t.toDisplayString)(e.suffix),1)])],2),(0,t.createElementVNode)("view",hB,[(0,t.createElementVNode)("view",null,(0,t.toDisplayString)(e.suffix)+(0,t.toDisplayString)(e.money),1),(0,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"])])])])}var Wa=le(sB,[["render",gB]]),{create:yB,scope:bB}=G("address-list-item"),kB=yB({components:{Del:oe.Del,Edit:oe.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:o}=(0,ce.useFoxI18n)(bB);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:o}}}),SB={class:"fox-address-list-item__info"},wB={class:"fox-address-list-item__info-contact"},CB={class:"fox-address-list-item__info-contact-name"},vB={class:"fox-address-list-item__info-contact-tel"},NB={key:0,class:"fox-address-list-item__info-contact-default"},BB={class:"fox-address-list-item__info-handle"},AB={class:"fox-address-list-item__addr"};function VB(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Del"),i=(0,t.resolveComponent)("Edit");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-address-list-item",onClick:n[0]||(n[0]=(...c)=>e.contentsClick&&e.contentsClick(...c))},[(0,t.createElementVNode)("div",SB,[(0,t.createElementVNode)("div",wB,[(0,t.renderSlot)(e.$slots,"content-top",{},()=>[(0,t.createElementVNode)("div",CB,(0,t.toDisplayString)(e.item.addressName),1),(0,t.createElementVNode)("div",vB,(0,t.toDisplayString)(e.item.phone),1),e.item.defaultAddress?((0,t.openBlock)(),(0,t.createElementBlock)("div",NB,(0,t.toDisplayString)(e.t("default")),1)):(0,t.createCommentVNode)("",!0)])]),(0,t.createElementVNode)("div",BB,[(0,t.renderSlot)(e.$slots,"content-icon",{},()=>[(0,t.createVNode)(s,{name:"del",class:"fox-address-list-item__info-handle-del",onClick:e.delClick},null,8,["onClick"]),(0,t.createVNode)(i,{name:"edit",class:"fox-address-list-item__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),(0,t.createElementVNode)("div",AB,[(0,t.renderSlot)(e.$slots,"content-addr",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.item.fullAddress),1)])])])}var Xi=le(kB,[["render",VB]]),{create:TB}=G("address-list-general"),$B=TB({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:Xi,[Oe.name]:Oe,[Jt.name]:Jt},setup(e,{emit:n}){const o=()=>(0,t.h)(Xi,{item:e.item,onDelIcon(N){s(N)},onEditIcon(N){i(N)},onClickItem(N){c(N)}});let l=null;const a=(0,t.ref)(!1),r=(0,t.ref)(!1),s=N=>{n("delIcon",N,e.item),N.stopPropagation()},i=N=>{n("editIcon",N,e.item),N.stopPropagation()},c=N=>{a.value||(n("clickItem",N,e.item),N.stopPropagation())},u=N=>{n("longDel",N,e.item),N.stopPropagation()},p=N=>{l=0,r.value=!0,n("longDown",N,e.item)};return{renderCompontent:o,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:u,holddownstart:N=>{l=setTimeout(()=>{p(N)},300)},holddownmove:()=>{clearTimeout(l)},holddownend:()=>{clearTimeout(l)},copyCLick:N=>{n("longCopy",N,e.item),N.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:N=>{n("longSet",N,e.item),N.stopPropagation()},maskClick:N=>{l!=0&&(r.value=!1),N.stopPropagation(),N.preventDefault()},swipeDelClick:N=>{n("swipeDel",N,e.item),N.stopPropagation()},swipestart:()=>{a.value=!1},swipemove:()=>{a.value=!0}}}}),EB={key:0,class:"fox-address-list-general"},DB={class:"fox-address-list-swipe"};function IB(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-button"),i=(0,t.resolveComponent)("fox-swipe");return e.swipeEdition?((0,t.openBlock)(),(0,t.createBlock)(i,{key:1},{right:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"swipe-right-btn",{},()=>[(0,t.createVNode)(s,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:(0,t.withCtx)(()=>[...n[5]||(n[5]=[(0,t.createTextVNode)("删除",-1)])]),_:1},8,["onClick"])])]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",DB,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderCompontent()),{onTouchmove:e.swipemove,onTouchstart:e.swipestart},{"content-top":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"content-info")]),"content-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"content-icons")]),"content-addr":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"content-addrs")]),_:3},40,["onTouchmove","onTouchstart"]))])]),_:3})):((0,t.openBlock)(),(0,t.createElementBlock)("div",EB,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderCompontent()),{onTouchstart:e.holddownstart,onTouchend:e.holddownend,onTouchmove:e.holddownmove},{"content-top":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"content-info")]),"content-icon":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"content-icons")]),"content-addr":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"content-addrs")]),_:3},40,["onTouchstart","onTouchend","onTouchmove"])),e.longPress&&e.showMaskRef?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-address-list-general__mask",onClick:n[3]||(n[3]=(...c)=>e.maskClick&&e.maskClick(...c))},[(0,t.renderSlot)(e.$slots,"longpress-all",{},()=>[(0,t.createElementVNode)("div",{class:"fox-address-list-general__mask-copy",onClick:n[0]||(n[0]=(...c)=>e.copyCLick&&e.copyCLick(...c))},"复制地址"),(0,t.createElementVNode)("div",{class:"fox-address-list-general__mask-set",onClick:n[1]||(n[1]=(...c)=>e.setDefault&&e.setDefault(...c))},"设置默认"),(0,t.createElementVNode)("div",{class:"fox-address-list-general__mask-del",onClick:n[2]||(n[2]=(...c)=>e.delLongClick&&e.delLongClick(...c))},"删除地址")])])):(0,t.createCommentVNode)("",!0),e.showMaskRef?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:"fox-address-list__mask-bottom",onClick:n[4]||(n[4]=(...c)=>e.hideMaskClick&&e.hideMaskClick(...c))})):(0,t.createCommentVNode)("",!0)]))}var qB=le($B,[["render",IB]]),{componentName:PB,create:xB,scope:MB}=G("address-list"),LB=xB({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:qB,[Oe.name]:Oe},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:o}=(0,ce.useFoxI18n)(MB),l=(0,t.ref)([]),a=(0,t.reactive)({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=(0,t.computed)(()=>({[PB]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(l.value=e.data.map(b=>br(a,b,e.dataOptions)))};(0,t.watch)(()=>e.data,()=>s(),{deep:!0});const i=(b,g)=>{n("delIcon",b,g),b.stopPropagation()},c=(b,g)=>{n("editIcon",b,g),b.stopPropagation()},u=(b,g)=>{n("clickItem",b,g),b.stopPropagation()},p=(b,g)=>{n("longCopy",b,g),b.stopPropagation()},d=(b,g)=>{n("longSet",b,g),b.stopPropagation()},h=(b,g)=>{n("longDel",b,g),b.stopPropagation()},y=(b,g)=>{n("swipeDel",b,g),b.stopPropagation()},C=b=>{n("add",b),b.stopPropagation()};return(0,t.onMounted)(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:u,clickLongCopy:p,clickLongSet:d,clickLongDel:h,clickSwipeDel:y,addAddress:C,dataArray:l,t:o}}});function zB(e,n,o,l,a,r){const s=(0,t.resolveComponent)("general-shell"),i=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.dataArray,(c,u)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:u,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},(0,t.createSlots)({"content-info":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"item-infos")]),"content-icons":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"item-icon")]),"content-addrs":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-address-list__bottom",onClick:n[0]||(n[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[(0,t.createVNode)(i,{block:"",type:"danger"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("addAddress")),1)]),_:1})])):(0,t.createCommentVNode)("",!0)],2)}var ja=le(LB,[["render",zB]]),{componentName:iV,create:OB}=G("category"),FB=OB({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:n,slots:o}){const l=(0,t.ref)(0),a=(0,t.ref)(!1);return{getChildList:s=>{l.value=s,n("change",s)},checkIndex:l,categoryLeft:a}}}),RB={class:"fox-category"},KB={class:"fox-category__cateList"},UB={key:0},HB=["onClick"];function _B(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",RB,[(0,t.createElementVNode)("div",KB,[e.type=="classify"||e.type=="text"?((0,t.openBlock)(),(0,t.createElementBlock)("div",UB,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.category,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-category__cateListLeft",key:i},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)([e.checkIndex==i?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(i)},(0,t.toDisplayString)(s.catName),11,HB)]))),128))])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"default")])])}var Ya=le(FB,[["render",_B]]),{componentName:sV,create:WB}=G("category-pane"),jB=WB({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:l=>{n("onChange",l)}}}}),YB={class:"fox-category-pane"},XB={key:0,class:"fox-category-pane__cateListRight"},QB={class:"fox-category-pane__childTitle"},GB={key:0,class:"fox-category-pane__childItemList"},ZB=["onClick"],JB=["src"],eA={class:"fox-category-pane__skuImg"},tA={key:1,class:"fox-category-pane__cateListRight"},nA={class:"fox-category-pane__childTitle"},lA={key:0,class:"fox-category-pane__childItemList"},oA=["onClick"],aA={class:"fox-category-pane__skuName"},rA={key:2,class:"fox-category-pane__selfItemList"},iA=["onClick"];function sA(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",YB,[e.type=="classify"?((0,t.openBlock)(),(0,t.createElementBlock)("div",XB,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.categoryChild,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:i},[(0,t.createElementVNode)("div",QB,(0,t.toDisplayString)(s?.catName),1),s?.catType==1?((0,t.openBlock)(),(0,t.createElementBlock)("div",GB,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.childCateList,(c,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-category-pane__childItem",key:u,onClick:p=>e.onChange(c)},[(0,t.createElementVNode)("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,JB),(0,t.createElementVNode)("div",eA,(0,t.toDisplayString)(c?.catName),1)],8,ZB))),128))])):(0,t.createCommentVNode)("",!0)]))),128))])):(0,t.createCommentVNode)("",!0),e.type=="text"?((0,t.openBlock)(),(0,t.createElementBlock)("div",tA,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.categoryChild,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:i},[(0,t.createElementVNode)("div",nA,(0,t.toDisplayString)(s?.catName),1),s?.catType==1?((0,t.openBlock)(),(0,t.createElementBlock)("div",lA,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.childCateList,(c,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-category-pane__childItem",key:u,onClick:p=>e.onChange(c)},[(0,t.createElementVNode)("div",aA,(0,t.toDisplayString)(c?.catName),1)],8,oA))),128))])):(0,t.createCommentVNode)("",!0)]))),128))])):(0,t.createCommentVNode)("",!0),e.type=="custom"?((0,t.openBlock)(),(0,t.createElementBlock)("div",rA,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.customCategory,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-category-pane__skuName",key:i,onClick:c=>e.onChange(s)},(0,t.toDisplayString)(s?.catName),9,iA))),128))])):(0,t.createCommentVNode)("",!0)])}var Xa=le(jB,[["render",sA]]),{componentName:cV,create:cA}=G("comment-header"),dA=cA({components:{[Bt.name]:Bt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),uA={class:"fox-comment-header__user"},fA={class:"fox-comment-header__user-avter"},mA=["src"],pA={class:"fox-comment-header__user-score"},hA={key:0,class:"fox-comment-header__time"};function gA(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-rate");return(0,t.openBlock)(),(0,t.createElementBlock)("view",null,[e.info?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-comment-header",onClick:n[1]||(n[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[(0,t.createElementVNode)("view",uA,[(0,t.createElementVNode)("view",fA,[e.info.avatar?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,src:e.info.avatar},null,8,mA)):(0,t.createCommentVNode)("",!0)]),e.type=="default"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)([`fox-comment-header__user-${e.type}`])},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)([`fox-comment-header__user-${e.type}-name`])},[(0,t.createElementVNode)("span",null,(0,t.toDisplayString)(e.info.nickName),1),(0,t.renderSlot)(e.$slots,"labels")],2),(0,t.createElementVNode)("view",pA,[(0,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)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)([`fox-comment-header__user-${e.type}`])},[(0,t.createElementVNode)("span",{class:(0,t.normalizeClass)([`fox-comment-header__user-${e.type}-name`])},(0,t.toDisplayString)(e.info.nickName),3),(0,t.renderSlot)(e.$slots,"labels")],2))]),e.info.time?((0,t.openBlock)(),(0,t.createElementBlock)("view",hA,(0,t.toDisplayString)(e.info.time),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),e.type=="complex"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)([`fox-comment-header__${e.type}-score`])},[(0,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"]),(0,t.createElementVNode)("i",{class:(0,t.normalizeClass)([`fox-comment-header__${e.type}-score-i`])},null,2),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)([`fox-comment-header__${e.type}-score-size`])},(0,t.toDisplayString)(e.info.size),3)],2)):(0,t.createCommentVNode)("",!0)])}var yA=le(dA,[["render",gA]]),{componentName:dV,create:bA}=G("comment-images"),kA=bA({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:oe.Right},emits:["click","clickImages"],setup(e,{emit:n}){const o=(0,t.ref)(!1),l=(0,t.ref)(1),a=(0,t.ref)([]);return(0,t.watch)(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),a.value=s[0].concat(s[1])},{deep:!0}),(0,t.onMounted)(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),a.value=e.videos.concat(e.images)}),{isShowImage:o,initIndex:l,showImages:(s,i)=>{const{videos:c,images:u}=e,p=s=="img"?i-c.length:i;n("clickImages",{type:s,index:p,value:s=="img"?u[p]:c[p]})},totalImages:a}}}),SA=["onClick"],wA=["src"],CA=["onClick"],vA=["src"],NA={key:0,class:"fox-comment-images__mask"};function BA(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Right");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(`fox-comment-images fox-comment-images--${e.type}`)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.videos,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:u=>e.showImages("video",c)},[(0,t.createElementVNode)("img",{src:i.mainUrl},null,8,wA),n[0]||(n[0]=(0,t.createElementVNode)("view",{class:"fox-comment-images__play"},null,-1))],8,SA))),128)),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.images,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:u=>e.showImages("img",c+e.videos.length)},[(0,t.createElementVNode)("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,vA),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?((0,t.openBlock)(),(0,t.createElementBlock)("view",NA,[(0,t.createElementVNode)("span",null,"共 "+(0,t.toDisplayString)(e.totalImages.length)+" 张",1),(0,t.createVNode)(s,{style:{width:"12px"}})])):(0,t.createCommentVNode)("",!0)],8,CA)):(0,t.createCommentVNode)("",!0)],64))),128))],2)}var AA=le(kA,[["render",BA]]),{componentName:uV,create:VA,scope:TA}=G("comment-bottom"),$A=VA({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:oe.Fabulous,Comment:oe.Comment,MoreX:oe.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:o}=(0,ce.useFoxI18n)(TA),l=(0,t.ref)(!1),a=(0,t.ref)([]);return(0,t.onMounted)(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&a.value.push(c)})}),{showPopver:l,operate:i=>{i=="more"&&(l.value=!l.value),n("clickOperate",i)},mergeOp:a,handleClick:()=>{n("handleClick")},t:o}}}),EA={class:"fox-comment-bottom"},DA={key:0},IA={class:"fox-comment-bottom__cpx"},qA=["onClick"];function PA(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Fabulous"),i=(0,t.resolveComponent)("Comment"),c=(0,t.resolveComponent)("MoreX");return(0,t.openBlock)(),(0,t.createElementBlock)("view",EA,[(0,t.createElementVNode)("view",{onClick:n[0]||(n[0]=(...u)=>e.handleClick&&e.handleClick(...u)),class:"fox-comment-bottom__lable"},[e.type!="complex"?((0,t.openBlock)(),(0,t.createElementBlock)("span",DA,(0,t.toDisplayString)(e.info.size),1)):(0,t.createCommentVNode)("",!0)]),(0,t.createElementVNode)("view",IA,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.mergeOp,(u,p)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:p,class:(0,t.normalizeClass)(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${u}`]),onClick:d=>e.operate(u)},[u!="more"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)("span",null,(0,t.toDisplayString)(e.info[u]),1),u=="like"?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1}))],64)):(0,t.createCommentVNode)("",!0),u=="more"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createVNode)(c),e.showPopver?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=d=>e.operate("popover"))},(0,t.toDisplayString)(e.t("complaintsText")),1)):(0,t.createCommentVNode)("",!0)],64)):(0,t.createCommentVNode)("",!0)],10,qA))),128))])])}var xA=le($A,[["render",PA]]),{componentName:MA,create:LA,scope:zA}=G("comment"),OA=LA({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:yA,CommentImages:AA,CommentBottom:xA,Right:oe.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:o}=(0,ce.useFoxI18n)(zA),l=(0,t.computed)(()=>({[MA]:!0})),a=(0,t.computed)(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:l,conEllipsis:a,clickOperate:c=>{n("clickOperate",c)},handleClick:()=>{n("click",e.info)},clickImages:c=>{n("clickImages",c)},t:o}}}),FA=["innerHTML"],RA={class:"fox-comment__follow-title"},KA={class:"fox-comment__follow-com"},UA={key:0,class:"fox-comment__follow-img"};function HA(e,n,o,l,a,r){const s=(0,t.resolveComponent)("comment-header"),i=(0,t.resolveComponent)("comment-images"),c=(0,t.resolveComponent)("Right"),u=(0,t.resolveComponent)("comment-bottom");return e.info&&Object.keys(e.info)?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),(0,t.renderSlot)(e.$slots,"feature"),(0,t.createElementVNode)("view",{class:"fox-comment__main",style:(0,t.normalizeStyle)(`-webkit-line-clamp:${e.conEllipsis}`),onClick:n[0]||(n[0]=(...p)=>e.handleClick&&e.handleClick(...p)),innerHTML:e.info.content},null,12,FA),(0,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?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-comment__follow",onClick:n[1]||(n[1]=(...p)=>e.handleClick&&e.handleClick(...p))},[(0,t.createElementVNode)("view",RA,(0,t.toDisplayString)(e.t("additionalReview",e.follow.days)),1),(0,t.createElementVNode)("view",KA,(0,t.toDisplayString)(e.follow.content),1),e.follow.images&&e.follow.images.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",UA,[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("additionalImages",e.follow.images.length))+" ",1),(0,t.createVNode)(c,{width:"12px"})])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(u,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),(0,t.renderSlot)(e.$slots,"comment-shop-reply")],2)):(0,t.createCommentVNode)("",!0)}var Qa=le(OA,[["render",HA]]),_A=[xl,Ll,zl,Ol,Kl,Ne,Fn,Wl,jl,Yl,Xl,Gl,Un,eo,oo,so,uo,el,tl,fo,ll,ol,po,go,St,yo,ko,ul,wo,vo,Wt,jt,jn,No,Vo,To,$o,ut,Eo,Do,Kn,Rn,Io,qo,Po,Oe,xo,Mo,Lo,dt,pe,zo,Oo,Fo,Ro,Xt,Ko,Uo,Ho,_o,Wo,jo,Yo,Xo,Qo,Qt,Go,Zo,Jo,ea,ta,na,la,Gt,sl,Yn,Jn,Gn,lt,Bt,Ht,oa,aa,ra,Jt,ia,sa,ca,en,il,da,ma,rl,Tt,ga,ya,rn,ba,ka,Zt,Sa,wa,Ca,Et,va,Na,Dt,It,tt,ml,Aa,Va,Ta,sn,cn,$a,Ea,Da,Ia,qa,Pa,xa,Ma,La,za,Oa,Fa,Ra,Ka,Ua,Ha,_a,Wa,ja,Ya,Xa,Qa],WA=new Ls(_A,"4.0.0");B.AbstractPageScopeKey=ql,B.ActionSheet=ia,B.FoxActionSheet=ia,B.ActionsheetItem=wo,B.FoxActionsheetItem=wo,B.ActionsheetPane=ul,B.FoxActionsheetPane=ul,B.Address=za,B.FoxAddress=za,B.AddressList=ja,B.FoxAddressList=ja,B.Animate=Pa,B.FoxAnimate=Pa,B.Audio=ga,B.FoxAudio=ga,B.AudioOperate=ya,B.FoxAudioOperate=ya,B.Avatar=rn,B.FoxAvatar=rn,B.AvatarGroup=ba,B.FoxAvatarGroup=ba,B.BackTop=sa,B.FoxBackTop=sa,B.Badge=Ta,B.FoxBadge=Ta,B.Barrage=Oa,B.FoxBarrage=Oa,B.Broadcast=Vl,B.BroadcastKey=Ce,B.Button=Oe,B.FoxButton=Oe,B.ButtonsItem=Wl,B.FoxButtonsItem=Wl,B.Calendar=Jn,B.FoxCalendar=Jn,B.CalendarItem=uo,B.FoxCalendarItem=uo,B.Card=_a,B.FoxCard=_a,B.Cascader=Yn,B.FoxCascader=Yn,B.CascaderItem=oo,B.FoxCascaderItem=oo,B.Category=Ya,B.FoxCategory=Ya,B.CategoryPane=Xa,B.FoxCategoryPane=Xa,B.Cell=xo,B.FoxCell=xo,B.CellGroup=Lo,B.FoxCellGroup=Lo,B.Checkbox=ll,B.FoxCheckbox=ll,B.CheckboxGroup=ol,B.FoxCheckboxGroup=ol,B.CheckboxItem=po,B.FoxCheckboxItem=po,B.CircleProgress=Sa,B.FoxCircleProgress=Sa,B.Col=Fo,B.FoxCol=Fo,B.Collapse=Ea,B.FoxCollapse=Ea,B.CollapseItem=Da,B.FoxCollapseItem=Da,B.Comment=Qa,B.FoxComment=Qa,B.Content=Ol,B.FoxContent=Ol,B.CountDown=Va,B.FoxCountDown=Va,B.CountUp=Aa,B.FoxCountUp=Aa,B.DataItemsKey=ht,B.DateItem=so,B.FoxDateItem=so,B.DatePicker=Gn,B.FoxDatePicker=Gn,B.DateUtils=ie,B.Dialog=en,B.FoxDialog=en,B.Divider=Ko,B.FoxDivider=Ko,B.Domain=Cn,B.DomainKey=qe,B.DomainProvider=qo,B.FoxDomainProvider=qo,B.Drag=ca,B.FoxDrag=ca,B.Dropdown=Do,B.FoxDropdown=Do,B.Ecard=Wa,B.FoxEcard=Wa,B.Elevator=Qt,B.FoxElevator=Qt,B.Ellipsis=qa,B.FoxEllipsis=qa,B.Empty=Ca,B.FoxEmpty=Ca,B.FixedNav=Wo,B.FoxFixedNav=Wo,B.FloatingButton=To,B.FoxFloatingButton=To,B.FooterBar=zl,B.FoxFooterBar=zl,B.FoxGrid=Uo,B.Grid=Uo,B.FoxGridItem=Ho,B.GridItem=Ho,B.FoxGroup=Kl,B.Group=Kl,B.FoxHeaderBar=Ll,B.HeaderBar=Ll,B.FoxHintText=St,B.HintText=St,B.FoxIcon=Mo,B.Icon=Mo,B.FoxImage=zo,B.Image=zo,B.FoxImagePreview=ml,B.ImagePreview=ml,B.FoxIndicator=ea,B.Indicator=ea,B.FoxInfiniteLoading=il,B.InfiniteLoading=il,B.FoxInputItem=Yl,B.InputItem=Yl,B.FoxInputNumber=lt,B.InputNumber=lt,B.FoxInputNumberItem=vo,B.InputNumberItem=vo,B.FoxItem=Ne,B.Item=Ne,B.FoxLayout=Oo,B.Layout=Oo,B.FoxLinkItem=yo,B.LinkItem=yo,B.FoxList=ka,B.List=ka,B.FoxMapping=Io,B.Mapping=Io,B.FoxMenu=jo,B.Menu=jo,B.FoxMenuItem=Yo,B.MenuItem=Yo,B.FoxMessageBox=ut,B.MessageBox=ut,B.FoxMoneyItem=Xl,B.MoneyItem=Xl,B.FoxMoreButton=$o,B.MoreButton=$o,B.FoxNavbar=_o,B.Navbar=_o,B.FoxNoticeBar=wa,B.NoticeBar=wa,B.FoxNotify=ma,B.Notify=ma,B.FoxNumberKeyboard=ra,B.NumberKeyboard=ra,B.FoxOverLay=dt,B.OverLay=dt,B.FoxPage=xl,B.Page=xl,B.FoxPagination=Go,B.Pagination=Go,B.FoxPicker=Ht,B.Picker=Ht,B.FoxPickerItem=eo,B.PickerItem=eo,B.FoxPopover=cn,B.Popover=cn,B.FoxPopoverDialog=Kn,B.PopoverDialog=Kn,B.FoxPopup=pe,B.Popup=pe,B.FoxPopupWrapper=Eo,B.PopupWrapper=Eo,B.FoxPrice=tt,B.Price=tt,B.FoxProgress=Zt,B.Progress=Zt,B.FoxPullRefresh=da,B.PullRefresh=da,B.FoxRadio=el,B.Radio=el,B.FoxRadioGroup=tl,B.RadioGroup=tl,B.FoxRadioItem=fo,B.RadioItem=fo,B.FoxRange=Gt,B.Range=Gt,B.FoxRate=Bt,B.Rate=Bt,B.FoxRateItem=ko,B.RateItem=ko,B.FoxRollingProvider=Po,B.RollingProvider=Po,B.FoxRow=Ro,B.Row=Ro,B.FoxRowItem=Fn,B.RowItem=Fn,B.FoxSearchBar=sl,B.SearchBar=sl,B.FoxShortPassword=oa,B.ShortPassword=oa,B.FoxSideNavBar=ta,B.SideNavBar=ta,B.FoxSideNavBarItem=na,B.SideNavBarItem=na,B.FoxSignature=Fa,B.Signature=Fa,B.FoxSkeleton=$a,B.Skeleton=$a,B.FoxSku=Ha,B.Sku=Ha,B.FoxSlotItem=jl,B.SlotItem=jl,B.FoxStep=Na,B.Step=Na,B.FoxSteps=va,B.Steps=va,B.FoxStepsBar=Vo,B.StepsBar=Vo,B.FoxSticky=Xt,B.Sticky=Xt,B.FoxSubSideNavBar=la,B.SubSideNavBar=la,B.FoxSwipe=Jt,B.Swipe=Jt,B.FoxSwiper=Dt,B.Swiper=Dt,B.FoxSwiperItem=It,B.SwiperItem=It,B.FoxSwitch=rl,B.Switch=rl,B.FoxSwitchItem=go,B.SwitchItem=go,B.FoxTabPane=Jo,B.TabPane=Jo,B.FoxTabbar=Xo,B.Tabbar=Xo,B.FoxTabbarItem=Qo,B.TabbarItem=Qo,B.FoxTable=Ia,B.Table=Ia,B.FoxTabs=Zo,B.Tabs=Zo,B.FoxTabsBar=Wt,B.TabsBar=Wt,B.FoxTabsContainer=jt,B.TabsContainer=jt,B.FoxTabsFrame=No,B.TabsFrame=No,B.FoxTabsPane=jn,B.TabsPane=jn,B.FoxTag=sn,B.Tag=sn,B.FoxText=Rn,B.Text=Rn,B.FoxTextarea=Un,B.Textarea=Un,B.FoxTextareaItem=Gl,B.TextareaItem=Gl,B.FoxTimeDetail=Ua,B.TimeDetail=Ua,B.FoxTimePannel=Ka,B.TimePannel=Ka,B.FoxTimeSelect=Ra,B.TimeSelect=Ra,B.FoxToast=Tt,B.Toast=Tt,B.FoxTour=La,B.Tour=La,B.FoxTrendArrow=Ma,B.TrendArrow=Ma,B.FoxUploader=aa,B.Uploader=aa,B.FoxVideo=Et,B.Video=Et,B.FoxWaterMark=xa,B.WaterMark=xa,B.InnerPageScopeKey=Il,B.PriorityPolicy=st,B.UniqueID=zn,B.ValidateSchema=vr,B.ValidateSchemaKey=ze,B.cancelRaf=Ja,B.clamp=Ye,B.clearNonNumber=Bl,B.compareTo=Cl,B.createBroadcast=yn,B.createValidateSchema=kn,B.debounce=xe,B.debounceRef=Bs,B.decimalLength=gr,B.default=WA,B.defineBroadcast=gs,B.defineConfigDomain=Br,B.defineDataItem=Ar,B.defineDomain=El,B.defineItem=Ae,B.definePageState=Vr,B.defineSimpleItem=yt,B.deleteGlobalValidator=ws,B.disabledProperty=$e,B.divide=wl,B.excludeProps=Ge,B.extend=pt,B.floatData=br,B.getGlobalIcons=Dn,B.getGlobalValidateCheckEvents=Sr,B.getGlobalValidateResetEvents=Cr,B.getPageContentAreaHeight=An,B.getPageContentAreaWidth=Vn,B.getPageFooterAreaHeight=Bn,B.getPageHeaderAreaHeight=Nn,B.getRootDomain=gt,B.hasSymbol=dr,B.includeProps=ye,B.indexOf=ps,B.injectAbstractPageScope=Rt,B.injectInnerPageScope=Ft,B.integerLength=hr,B.isArray=mn,B.isArrayLike=mr,B.isBrowser=Qe,B.isDate=je,B.isESModule=cs,B.isEmptyString=de,B.isEqual=Ie,B.isFunction=pn,B.isHidden=ur,B.isMap=as,B.isNil=Le,B.isNumberString=gn,B.isObject=De,B.isPlainObject=ss,B.isPromise=mt,B.isRegExp=Nl,B.isSet=rs,B.isString=sr,B.isSubPage=Es,B.isSymbol=is,B.isTouch=Hn,B.isWindow=fr,B.lastIndexOf=hs,B.makeArray=ms,B.merge=pr,B.multiply=ar,B.negate=rr,B.nextTick=us,B.numberFormat=fn,B.objectToString=cr,B.once=As,B.overrideGlobalIcons=_s,B.overrideGlobalValidateHandler=ks,B.padZero=it,B.preventDefault=Al,B.property=Ve,B.provideAbstractPageScope=$r,B.provideInnerPageScope=Tr,B.px2Number=$s,B.raf=We,B.readonlyProperty=Te,B.setGlobalValidateCheckEvents=Cs,B.setGlobalValidateHandler=bs,B.setGlobalValidateMessages=Ns,B.setGlobalValidateResetEvents=vs,B.setGlobalValidator=Ss,B.throttle=wn,B.toBoolean=ke,B.toNumber=he,B.toPadding=Fe,B.toPx=fe,B.toPxDesc=Ts,B.toPxString=ue,B.toTypeString=hn,B.toValue=Me,B.tryTimes=Tl,B.typeOf=rt,B.unNumberFormat=ir,B.updatePageState=Dl,B.useBroadcast=Lt,B.useDomain=Ze,B.useExpose=Ee,B.useInnerSize=En,B.usePageState=vn,B.usePosition=Ul,B.useRawTouch=_n,B.useRect=Pe,B.useSize=Ml,B.useTouch=nt,B.valueLength=Se});