@fox-js/foxui 4.0.1-81 → 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.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),st=require("@fox-js/validator"),le=require("@fox-js/icons-vue"),ie=require("@fox-js/i18n"),rn=window,ui=typeof window<"u";function di(){return typeof rn<"u"?rn.requestAnimationFrame||rn.webkitRequestAnimationFrame||function(e){rn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function rs(e){ui?cancelAnimationFrame(e):clearTimeout(e)}const Ze=di();function Tn(e,n="0"){let a=0,o=-1;e[0]=="-"&&(a++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,o=2,n=n.substring(1),n.length),e=Be(e),n=Be(n),[e,n]=sl(Be(e),Be(n)),a==1&&(o==1?e=No(e):n=No(n));let l=ss(e,n);return a?a==2?"-"+Be(l):e.length<l.length?Be(l.substring(1)):"-"+Be(No(l)):Be(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 ss(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 sl(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 ss(e,n){[e,n]=sl(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 Se=(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))(Se||{});function jt(e,n=0,a=Se.HALF_EVEN){if(a===Se.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=jt(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,ar(l[1],r,o,a)?(o?"-":"")+Bo(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&&ar(i,s,o,a)&&(s=Bo(s),s.length>n)?(o?"-":"")+Bo(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function ar(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===Se.DOWN||!a&&o===Se.FLOOR||a&&o===Se.CEILING)return!1;if(o===Se.UP||a&&o===Se.FLOOR||!a&&o===Se.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 Se.HALF_DOWN:return!1;case Se.HALF_UP:return!0;case Se.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Bo(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 Po(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=Dt(e),n=Dt(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=Dt(e.replace(".","")),n=Dt(n.replace(".","")),e.length<n.length){let u=e;e=n,n=u}if(n=="0")return"0";let s=n.length,i=0,c=[],d=s-1,p="";for(let u=0;u<s;u++)c[u]=e.length-1;for(let u=0;u<2*e.length;u++){let h=0;for(let S=n.length-1;S>=d&&S>=0;S--)c[S]>-1&&c[S]<e.length&&(h+=parseInt(e[c[S]--])*parseInt(n[S]));h+=i,i=Math.floor(h/10),p=h%10+p,d--}return p=Dt(fi(p,r)),a==1&&(p="-"+p),p}function fi(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 Dt(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 Mo(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var l=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Be(n.replace(".","")),l>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Be(e+new Array(l+1).join("0"));else if(l>d)e=e.replace(".",""),e=Be(e+new Array(l-d+1).join("0"));else if(l<d){e=e.replace(".","");let p=e.length-d+l;e=Be(e.substring(0,p)+"."+e.substring(p))}else l==d&&(e=Be(e.replace(".","")))}let r=0,s=n.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let d=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(d+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=d,i="0."+new Array(d).join("0")}for(a=a+2;r<=a;){let d=0;for(;parseInt(c)>=parseInt(n);)c=Tn(c,"-"+n),d++;i+=d,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(o==1?"-":"")+Be(jt(i,a-2))}function Lo(e,n){return e=e.toString(),n=n.toString(),n=zo(n),Tn(e,n)}function zo(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function rr(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),sr(e),sr(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=Lo(e,Po(n,jt(Mo(e,n),0,Se.FLOOR)));return a+o}function sr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function ir(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]=sl(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?a?-1:1:a?1:-1;return 0}class ce{value;static RoundingModes=Se;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,o]=n.split(/[eE]/);a=Be(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(o=parseInt(o)+a.indexOf("."),a=a.replace(".","")):o=parseInt(o)+a.length,a.length<o?n=l+a+new Array(o-a.length+1).join("0"):a.length>=o&&o>0?n=l+Be(a.substring(0,o))+(a.length>o?"."+a.substring(o):""):n=l+"0."+new Array(-o+1).join("0")+a}return n}constructor(n="0"){this.value=ce.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,o){if(!(a||o))a=3,o=",";else if(!(a&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ce.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var s="",i=r;i>0;)i<a?(a=i,i=0):i-=a,s=n.substring(i,i+a)+(i<r-a&&i>=0?o:"")+s;return(l?"-":"")+s+n.substring(r)}getPrettyValue(n,a){return ce.getPrettyValue(this.value,n,a)}static round(n,a=0,o=Se.HALF_EVEN){if(n=ce.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return jt(n,a,o)}round(n=0,a=Se.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ce(jt(this.value,n,a))}static floor(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,Se.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,Se.FLOOR)}static ceil(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,Se.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,Se.CEILING)}static add(n,a){return n=ce.validate(n),a=ce.validate(a),Tn(n,a)}add(n){return new ce(Tn(this.value,n.getValue()))}static subtract(n,a){return n=ce.validate(n),a=ce.validate(a),Lo(n,a)}subtract(n){return new ce(Lo(this.value,n.getValue()))}static multiply(n,a){return n=ce.validate(n),a=ce.validate(a),Po(n,a)}multiply(n){return new ce(Po(this.value,n.getValue()))}static divide(n,a,o){return n=ce.validate(n),a=ce.validate(a),Mo(n,a,o)}divide(n,a){return new ce(Mo(this.value,n.getValue(),a))}static modulus(n,a){return n=ce.validate(n),a=ce.validate(a),rr(n,a)}modulus(n){return new ce(rr(this.value,n.getValue()))}static compareTo(n,a){return n=ce.validate(n),a=ce.validate(a),ir(n,a)}compareTo(n){return ir(this.value,n.getValue())}static negate(n){return n=ce.validate(n),zo(n)}negate(){return new ce(zo(this.value))}}function is(e,n){return ce.multiply(`${e}`,`${n}`)}function il(e,n,a=8){return ce.divide(`${e}`,`${n}`,a)}function Oo(e,n){return e=`${e}`,n=`${n}`,ce.compareTo(e,n)}function cs(e){return ce.negate(e)}function zn(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",d=r.indexOf(".");d!=-1&&(i=r.substring(0,d),c=r.substring(d+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let p;if(o>0){let u="",h=i.split("").reverse();for(let S=0;S<h.length;S++)u+=h[S]+((S+1)%o==0&&S+1!=h.length?l:"");c.length==0?p=`${s}${u.split("").reverse().join("")}`:p=`${s}${u.split("").reverse().join("")}.${c}`}else c.length==0?p=`${s}${i}`:p=`${s}${i}.${c}`;return p}function us(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const tt=typeof window<"u",je=Ze;function Le(e){return e==null}const On=Array.isArray,mi=e=>Rn(e)==="[object Map]",pi=e=>Rn(e)==="[object Set]",Ye=e=>e instanceof Date,$n=e=>typeof e=="function",ds=e=>typeof e=="string",hi=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",kt=e=>De(e)&&$n(e.then)&&$n(e.catch),fs=Object.prototype.toString,Rn=e=>fs.call(e),gi=e=>Rn(e)==="[object Object]",ms=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function yi(e){return e.__esModule||ms&&e[Symbol.toStringTag]==="Module"}const vi=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function St(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,o=e.length,l=!1;for(typeof n=="boolean"&&(l=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<o;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let s in r){let i=n[s],c=r[s];if(i!==c)if(l===!0&&c&&typeof c=="object"){let d;Array.isArray(c)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},n[s]=St(l,d,c)}else c!==void 0&&(n[s]=c)}}return n}const Ao=vi?Promise.resolve():null;function bi(e,...n){Ao!==null?n&&n.length>0?Ao.then(()=>{e(n)}):Ao.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function be(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function he(e){return typeof e=="number"?e:Number(e)}const ki={"[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):ki[a]||"object"}function ps(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 hs(e){return e&&typeof e=="object"&&"setInterval"in e}function gs(e){let n=!!e&&"length"in e&&e.length,a=ct(e);return a==="function"||hs(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function ys(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 Si(e,n=[]){let a=n;return e!=null&&(gs(Object(e))?ys(a,typeof e=="string"?[e]:e):a.push(e)),a}function Ie(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],d=n[i];if(!Ie(c,d))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],s=n[l];if(!Ie(r,s))return!1}return!0}return!1}function Ro(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Fn(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 vs(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 bs(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 cr(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 Fo(e,n=!0,a=!0){n?e=cr(e,".",/\./g):e=e.replace(/\./g,""),a?e=cr(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function Ci(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Ie(e,a))return!0}):n.indexOf(e)}function wi(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Ie(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function ke(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ye(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function nt(e,...n){const a=[];n.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const o={};for(const l in e)a.includes(l)||(o[l]=e[l]);return o}const ks=(e,n,a)=>{const o=Object.assign({},e),l=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{l.hasOwnProperty(r)?typeof l[r]=="string"&&(o[r]=n[l[r]]):n[r]&&(o[r]=n[r])}),o):e};function Ko(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const rt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},We=(e,n,a)=>Math.min(Math.max(e,n),a),Ce=Symbol.for("BroadcastKey");class cl{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==="+"||Ro(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=(...d)=>{this.deletePersistantMessage(i),typeof s=="function"&&s(...d)};n.resolve=c}n.cachePolicy="None"}let l=!1;!n.name||n.name==="*"?l=!0:n.name==="+"?(l=!1,n.name="*"):Ro(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 Kn(e,n,a,o){const l=new cl(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function Ni(e,n,a){const o=a;if(o[Ce])return o[Ce];const l=t.inject(Ce,null),r=new cl(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[Ce]=r,t.provide(Ce,r),t.onUnmounted(()=>{r.destroy(),o[Ce]=void 0}),r}function Ot(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ce]??t.inject(Ce,null):t.inject(Ce,null)}class Bi{error(n,a){const o=a,l=a||t.hasInjectionContext()?Ot(a):null;l?l.emit({name:"*"},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=n||t.hasInjectionContext()?Ot(n):null;o?o.emit({name:"*"},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=n||t.hasInjectionContext()?Ot(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()?Ot(o):null,s=a.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let Ft=new Bi;function Ai(e){Ft=e}function Vi(e){Ft?Object.assign(Ft,e):Ft=e}function Ti(e,n){st.Schema.setValidator(e,n)}function $i(e){st.Schema.deleteValidator(e)}let Ss=["blur","clear"];function Ei(e){Ss=e}function Cs(){return Ss}let ws=["focus","change","setValue"];function xi(e){ws=e}function Ns(){return ws}function Di(e){st.Schema.messages(e)}function It(...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 sn(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 ze=Symbol("ValidateSchemaKey");class Bs{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=sn(It(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=sn(o);const l=It(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=Ft;return l&&typeof l[n]=="function"?Reflect.apply(l[n],l,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,a,o=!1){o?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=It(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=sn(n):this.rules=sn([n]);const o=It(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=It(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 u="error";Array.isArray(p.errors)&&p.errors.length>0&&(u=p.errors[0].message??u,p.errors=[p.errors[0]],p.errors[0].ref=c),this.error(u)}return p}).catch(p=>{const u=p.message??`${p}`;return this.error(u),p})}}return Promise.resolve({pass:!0})}}function Un(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(r){return r[l]}}}return new Bs(n,a,e)}const En=Symbol.for("EventEmitterKey");class As{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 Pe(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function xn(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function Ii(e,n){const a=Pe((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function qi(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function ul(e,n,a,o=0,l=!0){let r=n,s=0;if(l){const c=e();if(s++,c||s>a)return}const i=()=>{const c=e();s++,!(c||s>a)&&(r+=o,setTimeout(i,r))};setTimeout(i,r)}const xe=Symbol("DomainKey"),ht=Symbol("DataItemsKey");class Hn{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,a=[]){for(const o in n){const l=n[o];a.length>0&&a.indexOf(l)!==-1||(this._props[o]=l)}}has(n){if(Reflect.has(this._props,n)){const a=this._props[n];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,a){this._props[n]=a}get(n,a){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?a:this.parent.get(n,a)}getForParent(n,a){return this.parent==null?a:this.parent.get(n,a)}getForSelf(n){return this._props[n]}getAll(n){const a=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const l=o._props[n];a.push(l)}o=o._parent}return a}}const Pi=new Hn;function vt(){return Pi}function ot(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[xe]??t.inject(xe,null):t.inject(xe,null)}const Vo=Symbol("OriginalDateKey");function dl(e,n,a=[],o){const l=t.getCurrentInstance();let r=l?.proxy,s=t.inject(xe,null);s===null&&(s=vt());const i=e||n.prop||n.name;let c=new Hn(i);c.parent=s;const d=g=>{r[Vo]||h(g),c?.set("modelValue",g)},p=()=>c?.getForSelf("modelValue")??null,u=()=>r[Vo]??null,h=g=>{const y={};St(!0,y,t.toRaw(g)),r[Vo]=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 S=(g,y)=>{c?.set(g,y)},v=g=>c?.getForSelf(g)??null;if(r[xe]=c,t.provide(xe,c),l!==null){const g=t.inject(Ce,null),y=Kn(r,g,i,o);c.broadcast=y,r[Ce]=y,t.provide(Ce,y),r.broadcast=(f,B,...w)=>Reflect.apply(y.emit,y,[f,B,...w]);const m=t.inject(ze,null),b=Un(r,m,{componentName:""});c.validateSchema=b,r[ze]=b,t.provide(ze,b),r[ht]=new Map,r.validate=(f=!0)=>{const B=[];let w=null;const C={deep:!1};if(f===!0)w={name:"*"};else if(Array.isArray(f)&&f.length>0){const k=f;w={name:N=>N?k.indexOf(N)!==-1:!1}}else if(f!=null&&typeof f=="object"){const k=f;if(Object.assign(C,k),Array.isArray(k.include)&&k.include.length>0){const N=k.include;w={name:A=>A?N.indexOf(A)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const N=k.exclude;w={name:A=>A?N.indexOf(A)===-1:!1}}else w={name:"*"}}if(w){const k=y?.emitToChildren(w,"validate",C);k&&Reflect.apply([].push,B,k)}return B.length==1?B[0]:B.length>1?Promise.all(B).then(k=>{let N=[];return k.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(N=[...N,...A.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(f,B=!0,w=!1)=>{if(w===!0){Reflect.ownKeys(f).forEach(k=>{let N=String(k);const A={componentName:"",fieldName:N,pureDataValidate:!0};if(c){const $=Ts(c,N,A,y,b);r[ht].set(N,$);const T=f[N];T&&$.validateSchema.setRule(T)}});return}if(B){const C=Reflect.ownKeys(f),k={name:N=>C.includes(N),cachePolicy:"Persistant",uniqueId:"validateRules"};y?.emitToChildren(k,"setNameValidateRules",f,!1)}},r.clearValidate=(f=!0)=>{let B=null;if(f===!0)B={name:"*"};else if(Array.isArray(f)&&f.length>0){const w=f;B={name:C=>C?w.indexOf(C)!==-1:!1}}else if(f!=null&&typeof f=="object"){const w=f;if(Array.isArray(w.include)&&w.include.length>0){const C=w.include;B={name:k=>k?C.indexOf(k)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const C=w.exclude;B={name:k=>k?C.indexOf(k)===-1:!1}}else B={name:"*"}}B&&y?.emitToChildren(B,"clearValidate",!1)},r.resetFields=f=>{const B=p();if(!B)return;const w={};if(St(!0,w,u()??{}),Array.isArray(f))f.forEach(C=>{B[C]=w[C]});else if(f&&Array.isArray(f.include))(f.include??[]).forEach(k=>{B[k]=w[k]});else if(f&&Array.isArray(f.exclude)){let C=f.exclude??[];Reflect.ownKeys(w).forEach(k=>{C.includes(k)||(B[k]=w[k])})}else Object.assign(B,w);r.clearValidate(f)},r.setModelValue=(f,B)=>{if(!B||B===i)d(f);else{const w={name:B,messagingPolicy:"Once"};y?.emitToChildren(w,"setModelValue",f)}},r.getModelValue=()=>p(),r.setDomainProperty=(f,B)=>{S(f,B)},r.getDomainProperty=f=>v(f),setTimeout(function(){y?.pull()},0)}return t.onUnmounted(function(){c?.validateSchema&&(c.validateSchema.destroy(),r[ze]=void 0,t.provide(ze,null)),c?.broadcast&&(c?.broadcast?.destroy(),r[Ce]=void 0,t.provide(Ce,null)),c?.destroy(),r[xe]=void 0,t.provide(xe,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 Vs(e,n,a=[]){let l=t.getCurrentInstance()?.proxy,r=t.inject(xe,null);r===null&&(r=vt());const s=e||n.prop||n.name;let i=new Hn(s);return i.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{i?.merge(c,a)},{immediate:!0}):i.merge(n,a),l[xe]=i,t.provide(xe,i),t.onUnmounted(()=>{i?.destroy(),l[xe]=void 0,t.provide(xe,null),i=null,l=null}),i}function Ae(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(Ce,null);let i=Kn(l,s,r,a);l[Ce]=i,t.provide(Ce,i),l.broadcast=(v,g,...y)=>i?Reflect.apply(i.emit,i,[v,g,...y]):null;const c=t.inject(ze,null);e.fieldName=e.fieldName??r;let d=Un(l,c,e);l[ze]=d,t.provide(ze,d),l.validate=(v=null)=>{if(!d)return Promise.resolve({pass:!0});const g=[];let y=!1,m=!1;if(Array.isArray(v)&&v.indexOf(r)!==-1)m=!0,y=!0;else if(v&&typeof v=="object"){const b=v,f=b.ignoreDisabled??!0,B=b.ignoreReadonly??!0,w=b.ignoreHidden??!0;f===!0&&e.disabled===!0||B===!0&&e.readonly===!0||w===!0&&ps(l.$el)?m=!1:(Array.isArray(b.include)&&b.include.indexOf(r)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(r),m=!0),y=b.deep??!1}else typeof v=="boolean"&&(y=v),m=!0;if(m){const b=d?.validate();g.push(b)}if(y){let b=null;const f={deep:!1};if(v===!0)b={name:"*"};else if(Array.isArray(v)&&v.length>0){const B=v;b={name:w=>w?B.indexOf(w)!==-1:!1}}else if(v!=null&&typeof v=="object"){const B=v;if(Object.assign(f,B),Array.isArray(B.include)&&B.include.length>0){const w=B.include;b={name:C=>C?w.indexOf(C)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const w=B.exclude;b={name:C=>C?w.indexOf(C)===-1:!1}}else b={name:"*"}}if(b&&i){const B=i.emitToChildren(b,"validate",f);Reflect.apply([].push,g,B)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(b=>{let f=[];return b.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(f=[...f,...B.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=v=>d?.setRule(v),l.setNameValidateRules=(v,g=!1)=>{const y=v[r];if(y&&d?.setRule(y),g&&i){const m={name:b=>Reflect.ownKeys(v).includes(b)};i.emitToChildren(m,"setNameValidateRules",v,!1)}},l.clearValidate=(v=null)=>{(!Array.isArray(v)||v.indexOf(n??"")!==-1)&&d?.clear();let g=null;if(v===!0)g={name:"*"};else if(Array.isArray(v)&&v.length>0){const y=v;g={name:m=>m?y.indexOf(m)!==-1:!1}}else if(v!=null&&typeof v=="object"){const y=v;if(Array.isArray(y.include)&&y.include.length>0){const m=y.include;g={name:b=>b?m.indexOf(b)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const m=y.exclude;g={name:b=>b?m.indexOf(b)===-1:!1}}else g={name:"*"}}g&&i&&i.emitToChildren(g,"clearValidate",!1)};let p=new As(l);l[En]=p;const u=Pe((v="validate")=>{d&&(v==="reset"?d.clear():d.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Cs()).forEach(v=>{p&&p.on(v,g=>{u("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Ns()).forEach(v=>{p&&p.on(v,g=>{u("reset")})}),setTimeout(function(){i?.pull()},0),t.onUnmounted(()=>{i?.destroy(),l[Ce]=void 0,t.provide(Ce,null),i=null,d?.destroy(),l[ze]=void 0,t.provide(ze,null),d=null,p?.destroy(),l[En]=void 0,p=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:i,validateSchema:d,emitEvent:(v,...g)=>{p&&Reflect.apply(p.emit,p,[v,...g])},onEvent:(v,g)=>{p&&Reflect.apply(p.on,p,[g])},offEvent:(v,g)=>{p&&Reflect.apply(p.off,p,[g])}}}function Ts(e,n,a,o,l){const r={},s=n??"",i={getValue(){const p=e.getForSelf("modelValue");return p?p[s]:null},isExist(){const p=e.getForSelf("modelValue");return p?Reflect.has(p,s):!1}};a.fieldName=s,a.validateHandler={getValue(p){return i.getValue()}};let c=Un({},l,a);r.validate=(p=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const u=[];let h=!1,S=!1;if(Array.isArray(p)&&p.indexOf(s)!==-1)S=!0,h=!0;else if(p&&typeof p=="object"){const v=p;Array.isArray(v.include)&&v.include.indexOf(s)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(s),S=!0,h=v.deep??!1}else typeof p=="boolean"&&(h=p),S=!0;if(S&&c){const v=c.validate();u.push(v)}if(h){let v=null;const g={deep:!1};if(p===!0)v={name:"*"};else if(Array.isArray(p)&&p.length>0){const y=p;v={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;v={name:b=>b?m.indexOf(b)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const m=y.exclude;v={name:b=>b?m.indexOf(b)===-1:!1}}else v={name:"*"}}if(v&&d){const y=d.emitToChildren(v,"validate",g);Reflect.apply([].push,u,y)}}return u.length==1?u[0]:u.length>1?Promise.all(u).then(v=>{let g=[];return v.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 u=p[s];u&&c?.setRule(u)};let d=Kn(null,o,s,r);return t.onUnmounted(()=>{c=null,d=null}),{broadcast:d,validateSchema:c}}function $t(){let n=t.getCurrentInstance()?.proxy,a=new As(n);return n[En]=a,t.onUnmounted(()=>{a?.destroy(),n[En]=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 fe=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${de(e)}px`:"",Mi=fe;function de(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),r=1;if(tt){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 Li(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}const 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=de(e.top)),e.left!==null&&e.left!==void 0&&(n.left=de(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=de(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=de(e.right))),n}function Uo(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=de(a.headerHeight??n.headerHeight??-1),e.headerPadding=Fe(a.headerPadding??n.headerPadding),e.footerHeight=de(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=de(c,r):e.height=de(r)-de(s,r)-de(i,r),e.width=de(a.width??n.width??0,l)}}function $s(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=de(l.top),o.safeAreaBottom=de(l.bottom),o.safeAreaLeft=de(l.left),o.safeAreaRight=de(l.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Uo(o,r,n,!0,s,i,c,d);const p=t.reactive(o),u=e.getForParent(Je);u&&(o.height=Dn(e,u),o.width=In(e,u),t.watch([()=>Dn(e,u),()=>In(e,u)],([S,v])=>{p.height=S,p.width=v}));const h=!u;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([S,v,g=-1,y=-1,m=0,b=0])=>{Uo(p,v,n,h,g,y,m,b)}),e.set(Je,p),p}function jn(e){return e.get(Je)}function Wn(e,n){if(n=n??e.get(Je),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function Yn(e,n){if(n=n??e.get(Je),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function Dn(e,n){if(n=n??e.get(Je),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=Wn(e,n),o=Yn(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function In(e,n){return n=n??e.get(Je),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function zi(e){return!!e.getForParent(Je)}const fl=Symbol.for("InnerPageScopeKey");function Es(e){t.provide(fl,e)}function tn(e=!1){return t.inject(fl,e)}const ml=Symbol.for("AbstractPageScopeKey");function xs(e){t.provide(ml,e)}function nn(e=!1){return t.inject(ml,e)}var qn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(qn||{});function cn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ve(e,n,a=1,o){const l=ot();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(cn(c,o))return c}const s=e.value;return cn(s,o)?s:null}):t.computed(()=>{const r=e.value;if(cn(r,o))return r;const s=l.getAll(n);for(let i=0;i<s.length;i++){const c=s[i];if(cn(c,o))return c}return null})}function Te(e){return Ve(e,"readonly",1)}function $e(e){return Ve(e,"disabled",1)}function Me(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 Ds=new Map,Pn=new Map;let Ho=null;function Oi(e){Ho=e}function Is(e,n,a){if(a){let o=Pn.get(a);o||(o=new Map,Pn.set(a,o)),o.set(e,n)}else Ds.set(e,n)}function lt(e,n,a){!a&&Ho&&(a=Ho(e)??void 0);let o=null;if(a){let l=Pn.get(a);l&&(o=l.get(n))}return o||(o=Ds.get(n)),o}function Ri(e,n){for(let a in e){const o=e[a];Is(a,o,n)}}function Fi(e){Pn.delete(e)}function Ki(){return{top:0,left:0,bottom:0,right:0}}function Ui(){if(tt){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 Hi(e,n){if(n.componentPrefix){const a=e.indexOf("-");return`${n.componentPrefix}${e.slice(a)}`}return e}class ji{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=Hi(l.name,a);n.component(r,l)}});const o=vt();if(a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l={...a},r=Pe(()=>{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=St({},Ki(),n.safeAreaInset),s=Ui(),i=St({},s.pageLayout,n.pageLayout);a=a??vt(),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 d in n)c.indexOf(d)===-1&&a.set(d,n[d])}setScopeGetter(n){Oi(n)}setAPI(n,a,o){Is(n,a,o)}getAPI(n,a,o){return lt(n,a,o)}batchSetAPI(n,a){Ri(n,a)}clearScopeAPI(n){Fi(n)}getRootDomain(){return vt()}}function J(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 Wi=(e,n)=>{let a=document.body;const o=e.teleport||"body";o!="body"&&(ds(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={};$n(n.wrapper)?i=n.wrapper(a,l):i=n.wrapper;const c=t.createApp(i,e),d=n.components;return d&&d.forEach(p=>{c.use(p)}),a.appendChild(l),{instance:c.mount(l),unmount:()=>{c.unmount(),a.removeChild(l)}}},qs=(e,n)=>e?t.h(e,n):"";function Ee(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const 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}},ve={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}},Ps={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}},Ms={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}},Ls=[];for(const e in Ms)Ls.push(e);const Yi={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}},Xi=(e,n)=>({inheritAttrs:!0,props:{...ge,...Ps,...Yi},setup(a,{slots:o}){const l=nn(!1),r=tn(!1),s=dl(a.name,a);if(s){const u=$s(s,a);Ee({getPageContentHeight:()=>Dn(s,u),getPageContentWidth:()=>In(s,u),getPageHeaderHeight:()=>Wn(s,u),getPageFooterHeight:()=>Yn(s,u)}),u&&r&&(u.contentHeight="100%")}const i=t.computed(()=>({[e]:!0,"is-inner":r})),c=t.computed(()=>({})),d=t.getCurrentInstance(),p=(u,h=!1)=>{const S=d?.proxy;S&&typeof S.setNameValidateRules=="function"&&S.setNameValidateRules(u,!0,h)};return t.watch([()=>a.rules,()=>a.pureDataRules],([u,h],[S,v])=>{if(u&&S){const g=t.toRaw(S),y=t.toRaw(u),m=y?Reflect.ownKeys(y):[];(g?Reflect.ownKeys(g):[]).forEach(f=>{m.includes(f)||(y[f]=[])}),p(y)}if(h&&v){const g=t.toRaw(v),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 u=t.toRaw(a.rules);p(u)}if(a.pureDataRules){const u=t.toRaw(a.pureDataRules);p(u,!0)}}),()=>{if(l)return o?.default?.();{const u={class:i.value,style:c.value};return t.h("div",u,[o?.default?.()])}}}}),{componentName:Qi,create:Gi}=J("page"),pl=Gi(Xi(Qi));function hl(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Xn(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 zs={headerbar:{},radio:{},checkbox:{}};function Zi(e){Object.assign(zs,e)}function Qn(){return zs}const Ji=(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=nn(!1),i=tn(!1),c=s?null:ot(),d=c?jn(c):null,p=Qn(),u=e,h=t.computed(()=>{const E={[u]:!0,[`${u}--border`]:l.border,[`${u}--fixed`]:l.fixed};return i||(E[`${u}--safe-area-inset-top`]=l.safeAreaInsetTop),E}),S=t.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${l.align}`]:!0})),v=Le(l.height)?null:de(l.height),g=t.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return E;if(c&&d){const V=Fe(l.padding??d.headerPadding);return Object.assign(E,V),Le(v)||(d.headerHeight=v),E.height=d.headerHeight,E.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(V.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(Le(v)||(E.height=v),l.padding){const V=Fe(l.padding);Object.assign(E,V)}return E}),y=t.ref(null),m=()=>{if(d&&y.value&&y.value.offsetParent!==null){if(!o){const E=hl(y.value);d.headerAllHeight=E.height}return d.headerMounted=!0,!0}return!1},b=Pe(m,120);let f=null;t.onMounted(()=>{s||d&&(ul(m,50,5,50,!0),window.ResizeObserver&&y.value&&(f=new window.ResizeObserver(b),f.observe(y.value)))}),t.onUnmounted(()=>{s||d&&(d.headerMounted=!1,f&&(f.disconnect(),f=null))});const B=t.computed(()=>{const E={};return s||(g.value.height!==null&&g.value.height!==void 0&&(E.height=`${g.value.height}px`),g.value.top!==null&&g.value.top!==void 0&&(E.paddingTop=`${g.value.top}px`),g.value.left!==null&&g.value.left!==void 0&&(E.paddingLeft=`${g.value.left}px`),g.value.right!==null&&g.value.right!==void 0&&(E.paddingRight=`${g.value.right}px`),g.value.bottom!==null&&g.value.bottom!==void 0&&(E.paddingBottom=`${g.value.bottom}px`)),E}),w=t.computed(()=>{const E=g.value?.height;return Le(E)||E<0?!0:E>0});function C(){r.emit("back")}function k(){r.emit("click-title")}function N(){r.emit("click-right")}function A(){r.emit("click-right-text")}const $=()=>{if(!l.leftShow)return null;const E=[];if(r.slots.left)E.push(r.slots.left());else{if(r.slots.leftIcon){const V=t.h("view",{class:"left-icon",onClick:C},[r.slots.leftIcon()]);E.push(V)}else{const V=l.leftIcon??p.headerbar.Left??a,q=t.h("view",{class:"left-icon",onClick:C},[t.h(V)]);E.push(q)}if(l.leftText){const V=t.h("view",{class:"left-text",onClick:C},[l.leftText]);E.push(V)}}return E.length===0?null:t.h("view",{class:"fox-header-bar__left"},E)},T=()=>{if(!l.rightShow)return null;const E=[];if(r.slots.right)E.push(r.slots.right());else{if(l.rightText){const V=t.h("view",{class:"right-text",onClick:A},[l.rightText]);E.push(V)}if(r.slots.rightIcon){const V=t.h("view",{class:"right-icon",onClick:N},[r.slots.rightIcon()]);E.push(V)}else if(l.rightIcon){const V=t.h("view",{class:"right-icon",onClick:N},[t.h(l.rightIcon)]);E.push(V)}}return E.length===0?null:t.h("view",{class:"fox-header-bar__right"},E)},K=()=>{if(!l.titleShow)return null;const E=[],V=r.slots.default?r.slots.default():null;if(V)E.push(V);else{if(l.title){const q=t.h("view",{class:"title-text"},[l.title]);E.push(q)}if(r.slots.titleIcon){const q=t.h("view",{class:"title-icon",onClick:k},[r.slots.titleIcon()]);E.push(q)}else if(l.titleIcon){const q=t.h("view",{class:"title-icon",onClick:k},[t.h(l.titleIcon)]);E.push(q)}}return E.length===0?null:t.h("view",{class:"fox-header-bar__title"},E)},Z=()=>{const E=[],V=r.slots.bottom?r.slots.bottom():null;return V&&E.push(V),E.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(s||!w.value)return null;const E=[];if(r.slots.all)E.push(r.slots.all());else{const q=[],x=$();x&&q.push(x);const z=K();z&&q.push(z);const U=T();if(U&&q.push(U),q.length>0){const G=t.h("view",{class:S.value},q);E.push(G)}const M=Z();M&&E.push(M)}if(E.length===0)return null;const V={class:h.value,style:B.value,ref:y};return t.h("view",V,E)}}}),{componentName:_i,create:ec,scope:tc}=J("header-bar"),gl=ec(Ji(_i,tc,le.Left,!1));function nc(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=nn(!1),s=tn(!1),i=r?null:ot(),c=i?jn(i):null,d=e,p=t.computed(()=>{const f={[d]:!0,[`${d}--${o.align}`]:!0,[`${d}--border`]:o.border,[`${d}--fixed`]:o.fixed};return s||(f[`${d}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),f}),u=Le(o.height)?null:de(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 B=Fe(o.padding??c.footerPadding);return Object.assign(f,B),Le(u)||(c.footerHeight=u),f.height=c.footerHeight,f.safeAreaBottom=c.safeAreaBottom===-1?0:c.safeAreaBottom,f.safeAreaBottom>0&&(f.bottom=f.safeAreaBottom+(B.bottom??0),f.height&&f.height>0&&(f.height=f.height+f.safeAreaBottom)),f}if(Le(u)||(f.height=u),o.padding){const B=Fe(o.padding);Object.assign(f,B)}return f}),S=t.computed(()=>{const f=h.value?.height;return Le(f)||f<0?!0:f>0}),v=t.ref(null),g=()=>{if(c&&v.value&&v.value.offsetParent!==null){if(!a){const f=hl(v.value);c.footerAllHeight=f.height}return c.footerMounted=!0,!0}return!1},y=Pe(g,120);let m=null;t.onMounted(()=>{r||c&&(ul(g,50,5,50,!0),window.ResizeObserver&&(m=new window.ResizeObserver(y),m.observe(v.value)))}),t.onUnmounted(()=>{r||c&&(c.footerMounted=!1,m&&(m.disconnect(),m=null))});const b=t.computed(()=>{const f={};return r||(h.value.height!==null&&h.value.height!==void 0&&(f.height=fe(h.value.height)),h.value.top!==null&&h.value.top!==void 0&&(f.paddingTop=fe(h.value.top)),h.value.left!==null&&h.value.left!==void 0&&(f.paddingLeft=fe(h.value.left)),h.value.right!==null&&h.value.right!==void 0&&(f.paddingRight=fe(h.value.right)),h.value.bottom!==null&&h.value.bottom!==void 0&&(f.paddingBottom=fe(h.value.bottom))),f});return()=>{if(r||!S.value)return null;const f=l.slots.default?l.slots.default():[],B={ref:v,class:p.value,style:b.value};return t.h("view",B,f)}}}}const{componentName:oc,create:lc,scope:ac}=J("footer-bar"),yl=lc(nc(oc,ac,!1));function rc(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:o,attrs:l}){const r=nn(!1),s=tn(!1),i=r?null:ot(),c=t.computed(()=>({[e]:!0})),d=i?jn(i):null,p=t.computed(()=>{const g={};if(r)return g;if(i&&d){if(a.padding){const k=Fe(a.padding);Object.assign(d.contentPadding,k)}const y=Wn(i,d),m=Yn(i,d);let b="";d.contentHeight?b=`${d.contentHeight}`:b=`${d.height}px`,console.debug("[content]page height:",b),console.debug("[content]header height:",y),console.debug("[content]footer height:",m),console.debug("[content]padding:",d.contentPadding),g.height=b;let f=(d&&d.contentPadding&&d.contentPadding.top)??-1;(f>=0||y>0)&&(f=f<0?0:f,g.paddingTop=`${y+f}px`);let B=(d&&d.contentPadding&&d.contentPadding.bottom)??-1;(B>=0||m>0)&&(B=B<0?0:B,g.paddingBottom=`${m+B}px`);const w=(d&&d.contentPadding&&d.contentPadding.left)??-1;w>=0&&(g.paddingLeft=`${w}px`);const C=(d&&d.contentPadding&&d.contentPadding.right)??-1;return C>=0&&(g.paddingRight=`${C}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}),u=t.ref(null),h=()=>{if(d&&u.value){const g=Xn(u.value);d.contentInnerHeight=g.height,d.contentInnerWidth=g.width}},S=Pe(h,120);let v=null;return t.onMounted(()=>{s||r||(requestAnimationFrame(h),window.ResizeObserver&&u.value&&(v=new window.ResizeObserver(S),v.observe(u.value)))}),t.onUnmounted(()=>{s||r||v&&(v.disconnect(),v=null)}),()=>{if(r)return o.default?.();{const g=a.tag??"view",y={...l,ref:u,class:c.value,style:p.value};return t.h(g,y,o)}}}}}const{componentName:sc,create:ic}=J("content"),vl=ic(rc(sc)),Ct="GroupStateKey",Os=Symbol.for("GroupScopeKey");function Gn(){return t.inject(Os,!1)}function Zn(e=!0){t.provide(Os,e)}function cc(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Le(l)||(e[o]=l)})}function uc(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};cc(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(Ct,r),r}function To(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(Ct);if(!c)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),o===-1&&(o=d.gutter??0),r||(r=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const p=de(r),u=de(s);i||(i=d.type??"grid");const h=()=>{const S=n===""||n===-1,v=de(n);let g=he(a);const y=de(o);if(!S){let f=(v-(g-1)*y)/g;for(;u!==-1&&f>u;)g++,f=(v-(g-1)*y)/g;for(;p!==-1&&g>1&&f<p;)g--,f=(v-(g-1)*y)/g}let m=!1;const b=c.layout;b.value.width=n,b.value.column!==g&&(b.value.column=g,m=!0),b.value.gutter!==y&&(b.value.gutter=y,m=!0),b.value.type!==i&&(b.value.type=i,m=!0),m&&t.triggerRef(b)};if(l)h();else{const S=++c.passport;setTimeout(()=>{S===c.passport&&h()},50)}}function Jn(e,n=!1){let a;return n?a=e.getForParent(Ct):a=e.get(Ct),a.layout}function _n(e,n=!1){let a;return n?a=e.getForParent(Ct):a=e.get(Ct),a.order}function ur(e,n=1){if(n==="stretch")return-1;const a=he(n);return a===-1?100:100*a/e}function eo(e,n,a=1,o=0,l){const r={};let s=0;l?s=de(l):s=ur(n.column,a),s>0&&(r.width=`${s}%`);const i=ur(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 to(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,d=c+(n.column-c);return e.index=e.index+(d-c),{"grid-column":`${c+1} / -1`}}let l=he(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=he(o)%n.column;let s=(e.index+r)%n.column,i=s+l;return i>n.column?(s=0,i=s+l,e.index=e.index+(n.column-s)+l):e.index=e.index+r+l,r>0?{"grid-column":`${s+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const Rs=Symbol("RollingStateKey");function dc(e){t.provide(Rs,e)}function fc(){return t.inject(Rs,null)}function jo(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 mc(e){let n=jo(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=jo(a),document.body.removeChild(a)}return n}function pc(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 hc={...ge,...Ps,...Ms};function gc(e,n,a){return{props:hc,emits:["update:collapse","header-click"],setup(o,l){const r=dl(o.prop??o.name,o,Ls),s=uc(r,{type:o.type}),i=Gn();Zn(!0);const c=o.rollingDisplay?fc():null,d=t.ref(null),p=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),u=t.computed(()=>i&&r?Jn(r,!0).value:null),h=t.getCurrentInstance(),S=(L,Y=!1)=>{const I=h?.proxy;I&&typeof I.setNameValidateRules=="function"&&I.setNameValidateRules(L,!0,Y)};t.watch([()=>o.rules,()=>o.pureDataRules],([L,Y],[I,D])=>{if(L&&I){const W=t.toRaw(I),j=t.toRaw(L),ne=j?Reflect.ownKeys(j):[];(W?Reflect.ownKeys(W):[]).forEach(re=>{ne.includes(re)||(j[re]=[])}),S(j)}if(Y&&D){const W=t.toRaw(D),j=t.toRaw(Y),ne=j?Reflect.ownKeys(j):[];(W?Reflect.ownKeys(W):[]).forEach(re=>{ne.includes(re)||(j[re]=[])}),S(j,!0)}},{deep:!0});const v=e,g=t.computed(()=>{const L={};if(L.height=V.value,o.width)o.width!=="auto"&&(L.width=fe(o.width));else{const Y=i?_n(r,!0):null;if(u.value&&Y){if(u.value.type==="grid"){const I=to(Y,u.value,o.span,o.offset);Object.assign(L,I)}else if(u.value.type==="flow"){const I=eo(Y,u.value,o.span,o.offset,o.width);Object.assign(L,I)}}}return L}),y=t.computed(()=>{const L=s.layout.value.type;return L==="grid"||L==="flow"?{[`${v}--${L}`]:!0,[`${v}--${L}-justify-${o.justify}`]:!0,[`${v}--${L}-align-${o.align}`]:!0,[`${v}--gutter`]:!0}:{[`${v}--${L}`]:!0,[`${v}--gutter`]:!0}}),m=t.computed(()=>{if(s.layout.value.type==="grid"){let Y="";if(o.columnWidth)Y=`repeat(auto-fill, ${o.columnWidth})`;else{const I=pc(N.value,s.layout.value.column,s.layout.value.gutter);Y=`repeat(${s.layout.value.column}, ${I})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":Y}}}),b=t.toRef(o,"gutter"),f=t.toRef(o,"column"),B=t.computed(()=>i||p.value?!0:be(o.isWrap)),w=[],C=L=>{w.push(L)},k=()=>{let L=w.length;w.splice(0,L)},N=t.ref(-1),A=L=>{const Y=Xn(L).width;Y>0&&Y!==N.value&&(N.value=Y)};To(r,N.value,f.value,b.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([N,f,b],([L,Y,I])=>{s.order.index=0,To(r,L,Y,I,!1,o.minItemWidth,o.maxItemWidth,o.type)});const $=t.computed(()=>q.value?o.expandText??"":o.collapseText??""),T=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),K=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!q.value,"is-collapse":q.value})),Z=t.ref(),E=t.ref(),V=t.computed(()=>x.value||fe(o.height)||""),q=t.ref(!1),x=t.ref(""),z=t.ref(!1);let U=-1;const M=(L,Y=!0)=>{const I=Z.value;if(I&&q.value!==L){if(U=U<=0?mc(I):U,z.value=!0,Y)if(I.style["will-change"]="height",I.ontransitionend=function(){I.ontransitionend=null,this.style["will-change"]="auto",L||(x.value="",z.value=!1)},L){let D=0;o.collapseHeight?D=o.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(D=E.value.offsetHeight),x.value=`${U}px`,t.nextTick(()=>{x.value=`${D}px`})}else x.value=`${U}px`;else if(L){let D=0;o.collapseHeight?D=o.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(D=E.value.offsetHeight),x.value=`${D}px`}else z.value=!1,x.value=`${U}px`;q.value=L,l.emit("update:collapse",L)}};t.watch(()=>o.collapse,L=>{M(L)});const G=L=>{l.emit("header-click",L)},ee=()=>{R()},R=L=>{L=L??!q.value,M(L)};Ee({toggleCollapse:R,doLayout:()=>{w[0]&&(A(w[0]),To(r,N.value,f.value,b.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let P=null,X=!0;const O=L=>{if(o.rules){const Y=t.toRaw(o.rules);S(Y)}if(o.pureDataRules){const Y=t.toRaw(o.pureDataRules);S(Y,!0)}if(tt&&(L&&M(be(o.collapse),!1),o.autoLayout&&Array.isArray(w)&&w.length>0)){const Y=w[0];if(A(Y),window.ResizeObserver){const I=Pe(()=>A(Y),120);P=new window.ResizeObserver(I),P.observe(Y)}}},F=()=>{P?.disconnect(),P=null},_=!p.value||c?.acquire();_&&(d.value=p.value?!0:null),t.onMounted(()=>{if(_&&(O(X),X=!1),p.value&&c){let L=null,Y=c.initialHeight;c.observe(Z.value,I=>{if(I!==d.value)if(I)d.value=!0,q.value||(x.value=""),L=setTimeout(()=>{L=null,d.value!==!1&&(O(X),X=!1)},100);else{if(L!==null&&clearTimeout(L),d.value=!1,!q.value)if(X)x.value=c.initialHeight;else{let D=jo(Z.value);D<=0?x.value=Y:(x.value=`${D}px`,Y=x.value)}X||F()}})}}),t.onUnmounted(()=>{P?.disconnect(),c&&c.unobserve(Z.value)});const Q=(L="right")=>{const Y=[];if($.value){const j={class:T.value},ne=t.h("span",j,[$.value]);Y.push(ne)}const I={class:K.value},D=o.collapseIcon??a,W=t.h(D,I);return Y.push(W),Y.length>0?t.h("div",{class:{[`${v}__header-collapse`]:!0,[`is-${L}`]:!0},onClick:ee},Y):null},te=(L,Y,I,D)=>{const W={...y.value};if(Y===0&&(W[`${v}__first`]=!0),I>=D-1&&(W[`${v}__last`]=!0),B.value===!1){const j=l.attrs.class;j&&(W[`${j}`]=!0)}return t.h("div",{ref:C,key:`${Y}`,class:W,style:m.value},L)};return()=>{const L=o.prop??o.name;if(p.value&&d.value!==!0){const j=o.tag||"div";return t.h(j,{ref:Z,prop:L,class:{[`${v}`]:!0,"is-collapse":z.value},style:g.value},[])}s.order.index=0;const Y=[];let I=0;if(l.slots.header){const j={key:`${I++}`,ref:E,class:{[`${v}__header`]:!0,[`${v}__first`]:!0},onClick:G},ne=t.h("div",j,[l.slots.header()]);Y.push(ne)}else{const j=[],ne=o.collapsePosition==="left";if(ne&&o.showCollapse){const ae=Q("left");ae&&j.push(ae)}if(o.title||l.slots.title){if(o.showMark){const ae={class:{[`${v}__header-mark`]:!0}};o.markColor&&(ae.style={background:o.markColor});const re=t.h("div",ae);j.push(re)}if(l.slots.title){const ae=t.h("div",{class:{[`${v}__header-title`]:!0}},[l.slots.title()]);j.push(ae)}else if(o.title){const ae=t.h("div",{class:{[`${v}__header-title`]:!0}},[o.title]);j.push(ae)}}if(l.slots.toolbar&&j.push(l.slots.toolbar()),!ne&&o.showCollapse){const ae=Q("right");ae&&j.push(ae)}if(j.length>0){const ae={key:`${I++}`,ref:E,class:{[`${v}__header`]:!0,[`${v}__first`]:!0},onClick:G},re=t.h("div",ae,j);Y.push(re)}}k();const D=l.slots.default?l.slots.default():[],W=s.layout.value.type;if(W==="grid"){const j=te(D,I++,0,D.length);Y.push(j)}else if(W==="flow"){const j=te(D,I++,0,D.length);Y.push(j)}else for(let j=0;j<D.length;j++){const ne=D[j],ae=te([ne],I++,j,D.length);Y.push(ae)}if(B.value){const j=o.tag||"div";return t.h(j,{ref:Z,prop:L,class:{[`${v}`]:!0,"is-collapse":z.value},style:g.value},[Y])}else return Y}}}}const{componentName:yc,create:vc,scope:bc}=J("group"),bl=vc(gc(yc,bc,le.RectUp));function kc(e){return e===window}const Sc=/matrix\((.+)\)/,kl=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(kc(n))return{x:0,y:0};let a=0,o=0,l=n;for(;l!==null;)a+=l.offsetLeft,o+=l.offsetTop,l=l.offsetParent;let r=0,s=0,i=0,c=0;for(l=n;l!==document;){s+=l.scrollTop,r+=l.scrollLeft;const{transform:d}=window.getComputedStyle(l);if(d){const p=Sc.exec(d);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 Cc{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 wc{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 Cc,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 Kt=new wc,Fs={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}=J("price"),Ac=Bc({props:{...Fs},setup(e){const n=t.computed(()=>({[Nc]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ke(e.price)==0?"":zn(e.price,e.decimalLength,!0,he(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}}}),oe=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},Vc=["innerHTML"],Tc=["innerHTML"];function $c(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,Tc)):t.createCommentVNode("",!0)],2)}const _e=oe(Ac,[["render",$c]]),{componentName:$o,create:Ec}=J("hint-text"),xc=Ec({components:{Price:_e},props:{...Fs,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:()=>6},showArrow:{type:Boolean,default:()=>!0},arrowOffset:{type:Number,default:()=>20},offset:{type:Number,default:()=>12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const a=t.ref({top:null,right:null,bottom:null,left:null}),o=t.ref({x:0,y:0}),l=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),d=(T,K,Z,E,V,q)=>{const x=document.documentElement.clientWidth||document.body.clientWidth,z=document.documentElement.clientHeight||document.body.clientHeight,U=T.split("-");let M=[];U[0]==="top"?M=["top","bottom","right","left"]:U[0]==="bottom"?M=["bottom","top","right","left"]:U[0]==="left"?M=["left","top","bottom","right"]:U[0]==="right"&&(M=["right","top","bottom","left"]);const G={top:null,right:null,bottom:null,left:null},ee=[];for(let R=0;R<M.length;R++){const H=M[R];if(ee[0]=H,U[1]&&(ee[1]=U[1]),H==="top"){const P=K.y-q-e.arrowSize-e.offset;if(P>=0){G.top=P;let X=0;U[1]==="start"?X=K.x:U[1]==="end"?X=K.x+Z-V:X=K.x+Z/2-V/2;const O=x-X-V;O<0?(X+=O,u.value=-O):u.value=0,G.left=X<0?0:X;break}}else if(H==="bottom"){const P=K.y+E+e.arrowSize+e.offset;if(P+q<=z){G.top=P;let X=0;U[1]==="start"?X=K.x:U[1]==="end"?X=K.x+Z-V:X=K.x+Z/2-V/2;const O=x-X-V;O<0?(X+=O,u.value=-O):u.value=0,G.left=X<0?0:X;break}}else if(H==="left"){const P=K.x-V-e.arrowSize-e.offset;if(P>=0){G.left=P;let X=0;U[1]==="start"?X=K.y:U[1]==="end"?X=K.y+E-q:X=K.y+E/2-q/2,G.top=X<0?0:X;break}}else if(H==="right"){const P=K.x+Z+e.arrowSize+e.offset;if(P+V<=x){G.left=P;let X=0;U[1]==="start"?X=K.y:U[1]==="end"?X=K.y+E-q:X=K.y+E/2-q/2,G.top=X<0?0:X;break}}}return{bestPlacement:ee.join("-"),bestInsetRect:G}},p=(T,K,Z=10)=>{if(!tt||K===!1||!T)return;o.value=kl(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const E=c.value.offsetHeight,V=c.value.offsetWidth,{bestPlacement:q,bestInsetRect:x}=d(e.placement,o.value,l.value,r.value,V,E);s.value=q,a.value=x,i.value=!0},u=t.ref(0),h=Pe(()=>{p(e.message,e.visible)},10),S=t.ref(e.visible);t.watch(()=>e.visible,T=>{S.value=T});const v=t.computed(()=>S.value&&g.value),g=t.ref(!0),y=Pe(T=>{const K=T[0];K&&(g.value=K.isIntersecting)},10),m=new IntersectionObserver(y);t.watch([()=>e.message,()=>e.visible],([T,K])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Kt.watch(e.reference,h),m.observe(e.reference)}),t.onBeforeUnmount(()=>{Kt.unwatch(e.reference,h),m.unobserve(e.reference),m.disconnect()});const b=t.computed(()=>{const T={[$o]:!0};return s.value.startsWith("top")?T["is-top"]=!0:s.value.startsWith("right")?T["is-right"]=!0:s.value.startsWith("bottom")?T["is-bottom"]=!0:s.value.startsWith("right")&&(T["is-right"]=!0),e.size==="small"?T["is-small"]=!0:e.size==="large"&&(T["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(T[`${e.customClass}`]=!0),T}),f=t.computed(()=>{const T={};a.value.top!==null&&(T.top=`${a.value.top}px`),a.value.right!==null&&(T.right=`${a.value.right}px`),a.value.bottom!==null&&(T.bottom=`${a.value.bottom}px`),a.value.left!==null&&(T.left=`${a.value.left}px`),e.autoFit&&(T["min-width"]=`${l.value}px`);const K=document.documentElement.clientWidth||document.body.clientWidth;return T["max-width"]=`${K}px`,i.value&&(T.opacity="1"),e.transition||(T.transition="none"),e.zIndex&&(T["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(T,e.customStyle),T}),B=t.computed(()=>{const T=[`${$o}__content`];return e.customTextClass&&T.push(e.customTextClass),T}),w=t.computed(()=>{const T={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(T,e.customTextStyle),T}),C=t.computed(()=>({[`${$o}__arrow`]:!0})),k=t.computed(()=>{const T={};return e.showArrow?(T.width=`${e.arrowSize}px`,T.height=`${e.arrowSize}px`,s.value==="top"?(T.left="50%",T.bottom=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):s.value==="top-start"?(T.left=`${e.arrowOffset+u.value}px`,T.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(T.right=`${e.arrowOffset-u.value}px`,T.bottom=`-${e.arrowSize}px`):s.value==="right"?(T.left=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):s.value==="right-start"?(T.left=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):s.value==="right-end"?(T.left=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(T.left="50%",T.top=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(T.left=`${e.arrowOffset+u.value}px`,T.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(T.right=`${e.arrowOffset-u.value}px`,T.top=`-${e.arrowSize}px`):s.value==="left"?(T.right=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):s.value==="left-start"?(T.right=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):s.value==="left-end"&&(T.right=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`),T):{display:"none"}}),N=t.computed(()=>v.value&&e.closeOnClick),A=t.computed(()=>{const T={};return e.zIndex&&(T["z-index"]=`${e.zIndex}`),T});return{show:v,tipRef:c,classes:b,styles:f,textClasses:B,textStyles:w,arrowClasses:C,arrowStyles:k,overlayShow:N,overlayStyle:A,onClickOverlay:()=>{S.value=!1,n.emit("update:visible",!1)}}}}),Dc=["innerHTML"];function Ic(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,Dc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Ks=oe(xc,[["render",Ic]]);class no{seed=0;constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const Wo={},qc=new no,bt=new Map,Mn=e=>{if(e){const n=document.getElementById(e);bt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of bt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}bt.clear()}},Pc=e=>{e.unmount=Mn;const n=document.getElementById(e.id);if(n){const a=bt.get(e.id);a?e={...Wo,...a,...e}:e={...Wo,...e},e.transition=!1;const o=t.createVNode(Ks,e);return t.render(o,n),e.id}},Mc=e=>{e.unmount=Mn;let n=e.id??`hinttext_${qc.get()}`;e={...Wo,...e},e.id=n,bt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Ks,e);return t.render(o,a),document.body.appendChild(a),n},Lc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Et={show(e,n,a={},o=!0){Lc(n);const l=a.id;return l&&bt.has(l)?Pc({...a,message:n,reference:e}):(o&&Mn(),Mc({...a,message:n,reference:e}))},hide(e){Mn(e)},install(e){e.config.globalProperties.$hintText=Et}};function zc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...ge,...ve},emits:["appear","disappear"],setup(l,r){const s=l.prop??r.attrs.name;Ae({componentName:e,validate:!1},s);const i=ot(),c=Gn();Zn(!1);const d=t.computed(()=>c&&i?Jn(i,!1).value:null),p=e,u=t.ref(null),h=t.computed(()=>{const D={[p]:!0,[`${p}__gutter`]:d.value&&d.value.type!=="flow",[`${p}__stretch`]:l.span==="stretch",[`${p}__input--border`]:be(l.hasBorder)};if(D[l.errorMarkClass]=!!q.value,D[l.warnMarkClass]=!!E.value,D[l.infoMarkClass]=!!K.value,typeof u.value=="function"){const W=u.value(s);D[W]=!0}else if(typeof u.value=="string"){const W=u.value;D[W]=!0}return D}),S=t.ref(null),v=t.computed(()=>{const D={};if(l.width)l.width!=="auto"&&(D.width=fe(l.width));else{const W=c&&i?_n(i,!1):null;if(d.value&&W){if(d.value.type==="grid"){const j=to(W,d.value,l.span,l.offset);Object.assign(D,j)}else if(d.value.type==="flow"){const j=eo(W,d.value,l.span,l.offset,l.width);Object.assign(D,j)}}}if(typeof S.value=="function"){const W=S.value(s);W&&Object.assign(D,W)}else if(S.value&&typeof S.value=="object"){const W=S.value;Object.assign(D,W)}return D}),g=t.ref(null),y=t.computed({get:()=>g.value??be(l.isRequired),set:D=>{g.value=D}}),m=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",b=Ve(t.toRef(l,"labelPosition"),"labelPosition",qn.Near),f=t.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),B=t.computed(()=>({[`${p}__main`]:!0,[`${p}__main--${f.value}`]:!0})),w=t.computed(()=>({label:!0,[`label--${f.value}`]:!0})),C=Ve(t.toRef(l,"labelWidth"),"labelWidth",qn.Near),k=t.computed(()=>C&&C.value?{width:fe(C.value)}:{}),N=t.computed(()=>({"label--string":!0,"label--required":y.value})),A=t.computed(()=>({content:!0,[l.contentClass]:!0})),$=t.computed(()=>({...l.contentStyle})),T=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ee({setRequired(D){y.value=D},setErrorTip(D){T.errorTip=D},setErrorIcon(D){T.errorIcon=D},setWarnTip(D){T.warnTip=D},setWarnIcon(D){T.warnIcon=D},setInfoTip(D){T.infoTip=D},setInfoIcon(D){T.infoIcon=D},setCustomClassName(D){u.value=D},setCustomStyle(D){S.value=D}});const K=t.computed(()=>l.infoTip||T.infoTip),Z=t.computed(()=>l.infoIcon||T.infoIcon),E=t.computed(()=>l.warnTip||T.warnTip),V=t.computed(()=>l.warnIcon||T.warnIcon),q=t.computed(()=>l.errorTip||T.errorTip),x=t.computed(()=>l.errorIcon||T.errorIcon),z=t.computed(()=>q.value?"error":E.value?"warn":K.value?"info":""),U=()=>z.value.length>0,M=t.computed(()=>z.value==="error"?q.value:z.value==="warn"?E.value:z.value==="info"?K.value:""),G=t.computed(()=>z.value==="error"?x.value:z.value==="warn"?V.value:z.value==="info"?Z.value:null),ee=t.computed(()=>{const D={[`${p}__tip`]:!0,[`${p}__tip--${z.value}`]:!0,[`${p}--animate`]:!0};return z.value==="error"&&l.errorClass?D[`${l.errorClass}`]=!0:z.value==="warn"&&l.warnClass?D[`${l.warnClass}`]=!0:z.value==="info"&&l.infoClass&&(D[`${l.infoClass}`]=!0),D}),R=t.computed(()=>{const D={};return b&&b.value==="top"||!m()?D["padding-left"]="0px":C&&C.value&&(D["padding-left"]=fe(C.value)),D}),H=t.ref();let P="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([D,W,j,ne])=>{H.value&&(D&&!ue(W)?P?a.show(H.value,W,{...ne,id:P,type:j},!0):P=a.show(H.value,W,{...ne,type:j},!0):a.hide(P))});let X=null;const O=()=>{X||!H.value||(X=new IntersectionObserver(D=>{let W=!1;for(let j of D)if(j.intersectionRatio>0){W=!0,W&&r.emit("appear",j);break}W||r.emit("disappear")}),X.observe(H.value))},F=()=>{!X||!H.value||(X.unobserve(H.value),X=null)};t.watch(()=>be(l.appearListen),D=>{D?O():F()}),t.onMounted(()=>{be(l.appearListen)&&O()}),t.onUnmounted(F);const _=()=>{if(!m())return null;const D=[],W=r.slots?.label?.()??l.label,j={class:N.value},ne=t.h("div",j,[W]);if(D.push(ne),r.slots.fixedPreTip){const re=r.slots.fixedPreTip();D.push(re)}const ae={class:w.value,style:k.value};return t.h("div",ae,D)},Q=()=>{const D=[];if(r.slots.prepend){const j=r.slots.prepend();D.push(j)}if(r.slots.default){const j=r.slots.default();D.push(j)}if(r.slots.append){const j=r.slots.append();D.push(j)}if(r.slots.fixedTip){const j={class:[`${p}__fixed-tip`]},ne=t.h("div",j,[r.slots.fixedTip()]);D.push(ne)}const W={ref:H,class:A.value,style:$.value};return t.h("div",W,D)},te=()=>{const D=G.value;return D?typeof D=="function"?t.h("div",{class:"fox-item__tip--icon"},[D()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(D)]):null},L=()=>{const D=M.value;return D?typeof D=="function"?t.h("div",{class:"fox-item__tip--text"},[D()]):t.h("div",{class:"fox-item__tip--text"},[D]):null},Y=()=>{if(!U())return null;const D=[],W=te();W&&D.push(W);const j=L();j&&D.push(j);const ne={class:ee.value,style:R.value};return t.h("div",ne,D)},I=()=>r.slots?.hide?.()??null;return()=>{const D=[],W=[],j=_();j&&W.push(j);const ne=Q();ne&&W.push(ne);const ae={class:B.value},re=t.h("div",ae,W);D.push(re);const me=Y();me&&D.push(me);const we=I();we&&D.push(we);const Qe={class:h.value,style:v.value,prop:l.prop};return t.h("div",Qe,D)}}}}const{componentName:Oc,create:Rc,scope:Fc}=J("item"),Ne=Rc(zc(Oc,Fc,Et,!1)),Us={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 Kc(e,n){return{props:{...Us},setup(a,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=ot(),i=Gn();Zn(!1);const c=t.computed(()=>{const d={};if(a.width)a.width!=="auto"&&(d.width=fe(a.width));else if(i&&s){const p=Jn(s,!1),u=_n(s,!1);if(p.value&&u){if(p.value.type==="grid"){const h=to(u,p.value,a.span,a.offset);Object.assign(d,h)}else if(p.value.type==="flow"){const h=eo(u,p.value,a.span,a.offset,a.width);Object.assign(d,h)}}}return a.gutter&&(d.gap=fe(a.gutter)),d});return()=>{const d=[];if(o.slots.default){const u=o.slots.default();if(a.divide)for(let h=0;h<u.length;h++){if(h>0){const S=t.h("div",{class:{[`${l}__divide`]:!0}});d.push(S)}d.push(u[h])}else Reflect.apply([].push,d,u)}const p={class:r.value,style:c.value};return t.h("div",p,d)}}}}const{componentName:Uc,create:Hc}=J("row-item"),oo=Hc(Kc(Uc));var jc=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"})]))}}),Wc=jc;function Yc(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 Xc={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 Qc(e,n,a,o=!1){return{props:{...Xc},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={},B=l.textColor??l.color;return B&&(f.color=B),f}),d=(f,B)=>{let w=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const C=l.highlightFilter;if(f.indexOf(C)!==-1){const N=f.replace(new RegExp(C,"g"),`<span>${C}</span>`);B.innerHTML=N,B.class["is-highlight"]=!0,w=t.h(l.tag,B)}}else if(typeof l.highlightFilter=="function"){const C=l.highlightFilter(f);C&&(B.innerHTML=C,B.class["is-highlight"]=!0,w=t.h(l.tag,B))}return w},p=f=>{r.emit("click",f)};let u="";const h=()=>{const f=s.value;if(!f)return;const B=f.clientWidth;Yc(f,w=>{const C=f.innerHTML??"";ue(C)||w<B||(u?a?.show(f,C,{type:"text",id:u,showArrow:l.showArrow},!0):u=a?.show(f,C,{type:"text",showArrow:l.showArrow},!0)??"")})},S=()=>{u&&a?.hide(u)};let v=null;const g=f=>{v||(v=setTimeout(()=>{h(),v=null},l.showAfter??0))},y=f=>{v&&(clearTimeout(v),v=null),setTimeout(()=>{S()},l.hideAfter??0)},m=()=>{const f=s.value;f&&(f.addEventListener("mouseover",g),f.addEventListener("mouseleave",y))},b=()=>{const f=s.value;f&&(f.removeEventListener("mouseover",g),f.removeEventListener("mouseleave",y))};return t.onMounted(()=>{!be(l.showOverflowTooltip)||!a||m()}),t.onBeforeUnmount(()=>{!be(l.showOverflowTooltip)||!a||b()}),()=>{const f={onClick:p,class:i.value,style:c.value,ref:s};let B=null;if(be(l.numberFormat)&&typeof r.slots.default=="function"){const N=r.slots.default();if(Array.isArray(N)&&N.length===1){const A=N[0].type.toString();if(A==="Symbol(Text)"||A==="Symbol(v-txt)"){const $=he(l.digits),T=he(l.decimalLength),K=be(l.autoPadding);let Z=`${N[0].children}`,E=Z.split("").reverse().join("");E=zn(E,T,K,$,l.separator),Z=E.split("").reverse().join(""),l.highlightFilter!==void 0&&(B=d(Z,f)),B||(f.innerHTML=Z,B=t.h(l.tag,f))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const N=r.slots.default();if(Array.isArray(N)&&N.length===1){const A=N[0].type.toString();if(A==="Symbol(Text)"||A==="Symbol(v-txt)"){const $=`${N[0].children}`;B=d($,f),B||(f.innerHTML=$,B=t.h(l.tag,f))}}}B||(B=t.h(l.tag,f,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return B;let C=null;if(l.icon){const N={[`${e}__mark-wrap`]:!0};l.type&&(N[`${e}__mark-wrap--${l.type}`]=!0);const A={},$=l.color;$&&(A.color=$);const T={class:N,style:A};C=t.h("view",T,t.h(l.icon))}else if(r.slots.mark){const N={[`${e}__mark-wrap`]:!0};l.type&&(N[`${e}__mark-wrap--${l.type}`]=!0);const A={},$=l.color;$&&(A.color=$);const T={class:N,style:A};C=t.h("view",T,{default:r.slots.mark})}else{const N={[`${e}__mark`]:!0};l.type&&(N[`${e}__mark--${l.type??"default"}`]=!0);const A={},$=l.color;$&&(A["background-color"]=$);const T={class:N,style:A};C=t.h("view",T)}const k={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",k,[C,B])}}}}const{componentName:Gc,create:Zc,scope:Jc}=J("text"),lo=Zc(Qc(Gc,Jc,Et,!1)),_c={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 eu(e,n,a=!1){return{props:{..._c},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),d=t.ref(0),p=t.ref(0),u=t.ref(0),h=t.ref(o.placement),S=t.ref(!1),v=t.ref(!1),g=t.ref(null),y=()=>typeof o.reference=="string"?document.querySelector(o.reference):o.reference,m=(M,G,ee,R,H,P,X,O=!0)=>{const F=document.documentElement.clientWidth||document.body.clientWidth,_=document.documentElement.clientHeight||document.body.clientHeight,Q=M.split("-");let te=[];O?Q[0]==="top"?te=["top","bottom","right","left"]:Q[0]==="bottom"?te=["bottom","top","right","left"]:Q[0]==="left"?te=["left","top","bottom","right"]:Q[0]==="right"&&(te=["right","top","bottom","left"]):te=[M[0]];const L={top:null,right:null,bottom:null,left:null},Y=[];for(let I=0;I<te.length;I++){const D=te[I];if(Y[0]=D,Q[1]&&(Y[1]=Q[1]),D==="top"){const W=ee-X-o.arrowSize/2-o.offset;if(W>=0){L.top=W;let j=0;Q[1]==="start"?j=G:Q[1]==="end"?j=G+R-P:j=G+R/2-P/2;const ne=F-j-P;ne<0?(j+=ne,f.value=-ne):f.value=0,L.left=j<0?0:j;break}}else if(D==="bottom"){const W=ee+H+o.arrowSize/2+o.offset;if(W+X<=_){L.top=W;let j=0;Q[1]==="start"?j=G:Q[1]==="end"?j=G+R-P:j=G+R/2-P/2;const ne=F-j-P;ne<0?(j+=ne,f.value=-ne):f.value=0,L.left=j<0?0:j;break}}else if(D==="left"){const W=G-P-o.arrowSize/2-o.offset;if(W>=0){L.left=W;let j=0;Q[1]==="start"?j=ee:Q[1]==="end"?j=ee+H-X:j=ee+H/2-X/2,L.top=j<0?0:j;break}}else if(D==="right"){const W=G+R+o.arrowSize/2+o.offset;if(W+P<=F){L.left=W;let j=0;Q[1]==="start"?j=ee:Q[1]==="end"?j=ee+H-X:j=ee+H/2-X/2,L.top=j<0?0:j;break}}}return{bestPlacement:Y.join("-"),bestInsetRect:L}},b=()=>{const M=o.visible,G=o.autoFit;if(!tt||M===!1)return;if(o.reference){const X=y(),O=kl(X);c.value=O.x,d.value=O.y,p.value=X.offsetWidth,u.value=X.offsetHeight}else o.referenceInset&&(c.value=o.referenceInset.left,d.value=o.referenceInset.top,p.value=o.referenceInset.right-o.referenceInset.left,u.value=o.referenceInset.bottom-o.referenceInset.top);const ee=g.value.offsetWidth,R=g.value.offsetHeight,{bestPlacement:H,bestInsetRect:P}=m(o.placement,c.value,d.value,p.value,u.value,ee,R,G);h.value=H,i.value=P},f=t.ref(0),B=Pe(()=>{b()},10),w=t.ref(o.visible);t.watch([()=>o.visible],([M])=>{w.value=M,M?(S.value=M,setTimeout(()=>{b(),v.value=!0},0)):v.value=!1});const C=t.computed(()=>w.value&&k.value),k=t.ref(!0),N=Pe(M=>{const G=M[0];G&&(k.value=G.isIntersecting)},10),A=new IntersectionObserver(N);t.watch([()=>o.reference,()=>o.referenceInset],([M,G],[ee,R])=>{!M&&!G||(setTimeout(()=>{b()},0),o.autoFit&&(ee&&(Kt.unwatch(ee,B),A.unobserve(ee)),M&&(Kt.watch(M,B),A.observe(M))))},{immediate:!0}),t.onBeforeUnmount(()=>{o.reference&&(Kt.unwatch(o.reference,B),A.unobserve(o.reference),A.disconnect())});const $=t.computed(()=>{const M={[e]:!0};return h.value.startsWith("top")?M["is-top"]=!0:h.value.startsWith("right")?M["is-right"]=!0:h.value.startsWith("bottom")?M["is-bottom"]=!0:h.value.startsWith("left")&&(M["is-left"]=!0),M[`is-${o.effect}`]=!0,!v.value&&C.value&&(M["is-opacity"]=!0),v.value&&C.value&&(M["is-show"]=!0),C.value||(M["is-hide"]=!0),o.customClass&&typeof o.customClass=="string"&&(M[`${o.customClass}`]=!0),M}),T=t.computed(()=>{const M={};return i.value.top!==null&&(M.top=`${i.value.top}px`),i.value.right!==null&&(M.right=`${i.value.right}px`),i.value.bottom!==null&&(M.bottom=`${i.value.bottom}px`),i.value.left!==null&&(M.left=`${i.value.left}px`),o.width&&(M.width=o.width),o.zIndex&&(M["z-index"]=`${o.zIndex}`),o.customStyle&&typeof o.customStyle=="object"&&Object.assign(M,o.customStyle),M}),K=()=>{w.value=!1,l("update:visible",!1)},Z=()=>{if(!o.showOverlay)return null;const M={class:`${e}__overlay`,onClick:K};return t.h("div",M)},E=()=>{let M=null;return r.title?M=t.h("div",{class:`${e}__title`},{default:r.title}):o.title&&(M=t.h("div",{class:`${e}__title`},[o.title])),M},V=t.computed(()=>({[`${e}__arrow`]:!0})),q=t.computed(()=>{const M={};return o.showArrow?(M.width=`${o.arrowSize}px`,M.height=`${o.arrowSize}px`,h.value==="top"?(M.left="50%",M.bottom="0",M.transform="translate(-50%, 50%)"):h.value==="top-start"?(M.left=`${o.arrowOffset+f.value}px`,M.bottom="0",M.transform="translate(-50%, 50%)"):h.value==="top-end"?(M.right=`${o.arrowOffset-f.value}px`,M.bottom="0",M.transform="translate(-50%, 50%)"):h.value==="right"?(M.left="0",M.top="50%",M.transform="translate(-50%, -50%)"):h.value==="right-start"?(M.left="0",M.top=`${o.arrowOffset}px`,M.transform="translate(-50%, 50%)"):h.value==="right-end"?(M.left="0",M.bottom=`-${o.arrowOffset}px`,M.transform="translate(-50%, 50%)"):h.value==="bottom"?(M.left="50%",M.top="0",M.transform="translate(-50%, -50%)"):h.value==="bottom-start"?(M.left=`${o.arrowOffset+f.value}px`,M.top="0",M.transform="translate(-50%, -50%)"):h.value==="bottom-end"?(M.right=`${o.arrowOffset-f.value}px`,M.top="0",M.transform="translate(-50%, -50%)"):h.value==="left"?(M.right="0",M.top="50%",M.transform="translate(50%, -50%)"):h.value==="left-start"?(M.right="0",M.top=`${o.arrowOffset}px`,M.transform="translate(50%, -50%)"):h.value==="left-end"&&(M.right="0",M.bottom=`-${o.arrowOffset}px`,M.transform="translate(50%, -50%)"),M):{display:"none"}}),x=()=>{const M={class:V.value,style:q.value};return t.h("div",M)},z=()=>{w.value===!1&&(S.value=!1)},U=M=>{if(!g.value||w.value===!1)return;const{relatedTarget:G}=M;g.value.contains(G)||(w.value=!1,l("update:visible",!1))};return s({doLayout:b}),()=>{if(!S.value)return null;const M=[],G=Z();G&&M.push(G);const ee=[],R=E();if(R&&ee.push(R),r.default){const F=r.default();ee.push(F)}const H=x();H&&ee.push(H);const P={ref:g,class:$.value,style:T.value,onAnimationend:z};o.leaveHide&&(P.onMouseleave=U);const X=t.h("div",P,{default:()=>ee});return M.push(X),t.h(t.Teleport,{to:o.teleport,disabled:o.teleportDisable},{default:()=>M})}}}}const{componentName:tu,create:nu,scope:ou}=J("popover-dialog"),ao=nu(eu(tu,ou,!1)),lu={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 au(e,n,a){return{props:{...Us,...lu},emits:["click"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["moreText"]),c=e,d=t.computed(()=>({[c]:!0}));function p(C){return C.props||{}}function u(C){return!!p(C).disabled}function h(C){return C.children??[]}const S=t.ref(),v=t.computed(()=>S.value?.$el??null),g=t.ref(!1),y=C=>{g.value=C},m=()=>{g.value=!g.value};function b(C,k){return()=>{if(k)return;g.value=!1,p(C)?.onClick?.()}}function f(C,k){const N=h(C),A=u(C),$=b(C,A),T=[`${c}__dropdown-item`];A&&T.push("is-disabled");const K={class:T,onClick:$};return t.h("span",K,N)}const B=C=>{const k=o.maxDisplayCount??C.length;if(k>=C.length)return C;const N=[],A=k-1;for(let q=0;q<A;q++)N.push(C[q]);const $=(r.moreIcon&&r.moreIcon())??(o.moreIcon&&t.h(o.moreIcon))??t.h(a),T={ref:q=>S.value=q,class:`${c}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:o.type,onClick:m},K=t.h(lo,T,{default:()=>i.moreText.value,mark:()=>$});N.push(K);const Z=[];for(let q=A;q<C.length;q++){const x=f(C[q]);Z.push(x)}const E={placement:o.dropdownPlacement,"onUpdate:visible":y,visible:g.value,reference:v.value,"custom-class":`${c}__popover`},V=t.h(ao,E,{default:()=>Z});return N.push(V),N},w=()=>(r.default?.()||[]).filter(k=>k.type!==Comment);return()=>{const C=w(),k=B(C),N={class:d.value};return t.h(oo,N,{default:()=>k})}}}}const{componentName:ru,create:su,scope:iu}=J("buttons-item"),Sl=su(au(ru,iu,Wc)),cu={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function uu(e,n){return{props:{...cu},setup(a,o){const l=ot(),r=Gn();Zn(!1);const s=t.computed(()=>r&&l?Jn(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),d=t.computed(()=>{const p={};if(a.width)a.width!=="auto"&&(p.width=fe(a.width));else{const u=r&&l?_n(l,!1):null;if(s.value&&u){if(s.value.type==="grid"){const h=to(u,s.value,a.span,a.offset);Object.assign(p,h)}else if(s.value.type==="flow"){const h=eo(u,s.value,a.span,a.offset,a.width);Object.assign(p,h)}}}return p});return()=>{const p={class:c.value,style:d.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",p,o.slots.default()):t.h("div",p)}}}}const{componentName:du,create:fu}=J("slot-item"),Cl=fu(uu(du)),dr={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 mu(e,n,a,o){return{props:{...ge,...ve,...dr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=ie.useFoxI18n(n),p=d(l,["placeholder"]),u=t.ref(!1),h=Me(l,"modelValue",null,c),S=e,v=t.computed(()=>({[S]:!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 x=V.target.value;l.type==="digit"&&(x=Fo(x,!0)),l.type==="number"&&(x=Fo(x,!1)),l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),h.value=x,c("update:modelValue",x,V),c("change",x,V)};let b=Me(l,"hintText"),f=t.ref(!1);const B=V=>{let x=V.target.value;u.value=!0,ue(b.value)||(f.value=!0),c("focus",x,V)},w=V=>{setTimeout(()=>{f.value&&(f.value=!1),u.value=!1},0);let x=V.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),c("blur",x,V)},C=t.computed(()=>({[`${S}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),k=t.computed(()=>{const V={};return r.slots.append&&!N.value&&!Z.value&&(V.display="none"),V}),N=t.computed(()=>ke(l.unit)>0),A=t.computed(()=>!Z.value),$=t.computed(()=>({[`${S}__unit`]:!0,hidden:!A.value})),T=V=>{h.value="",c("update:modelValue","",V),c("change","",V),c("clear","")},K=t.computed(()=>be(l.clearable)&&!s.value&&!i.value),Z=t.computed(()=>{let V=ke(h.value)>0;return be(l.clearable)&&V&&u.value}),E=t.computed(()=>({action:!0,hidden:!Z.value}));return()=>{const V={class:v.value,style:y.value,type:l.type,maxlength:l.maxLength,placeholder:p.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:m,onFocus:B,onBlur:w},q=[],x=t.h("input",V);q.push(x);const z=[];if(K.value){const P={class:["action-icon"]},X=t.h(o,P),O={class:E.value,onClick:T},F=t.h("view",O,{default:()=>[X]});z.push(F)}if(N.value){const P=t.h("view",{class:$.value},[l.unit]);z.push(P)}const U={class:C.value,style:k.value},M=t.h("view",U,{default:()=>z});q.push(M);const G={default:()=>q};G.label=r.slots.default,G.prepend=r.slots.prepend,G.append=r.slots.append,G.fixedPreTip=r.slots.fixedPreTip,G.fixedTip=r.slots.fixedTip;const R={...nt(l,dr),hintText:b.value,hintVisible:f.value};return l.prop&&(R.prop=`${l.prop}_item`),t.h(a,R,G)}}}}const{componentName:pu,create:hu,scope:gu}=J("input-item"),wl=hu(mu(pu,gu,Ne,le.CircleClose));function fr(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 mr(e,n,a=20){if(typeof n=="string"&&(n=he(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=is(`${e}`,`${n}`);return fr(o)}else{let o=il(`${e}`,cs(`${n}`),20);return fr(o)}}function yu(e,n=-1,a=!1,o=3,l=","){return zn(e,n,a,o,l)}function pr(e,n,a,o,l=!0){if(e==="")return"";if(e=us(e),n=he(n),n==1)return e;if(o)e=mr(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(he(a)+2,"0"):e=il(e,1,he(a)));else{let r=-1*n;e=mr(e,r)}return e}function hr(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=be(n.minInclude),l=Oo(e,n.min);if(o&&l==-1||!o&&(l==0||l==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let o=be(n.maxInclude),l=Oo(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const gr={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 vu(e,n,a,o){return{props:{...ge,...ve,...gr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),d=t.ref(!1),p=Me(l,"modelValue",null,c),u=t.ref("");t.watch([()=>p.value,()=>l.rates,()=>l.precision],([U,M,G])=>{if(ue(U)){u.value="";return}const ee=pr(U,M,G,!1);u.value!==ee&&(u.value=ee)},{immediate:!0});const h=t.computed(()=>{let U="";return d.value&&(U=u.value),U}),{t:S}=ie.useFoxI18n(n),v=t.computed(()=>{let U=l.placeholder??"";return!d.value&&!ue(u.value)?U=yu(u.value,l.decimalLength,l.autoPadding,l.digits,l.separator):U=ue(U)?S(["placeholder"]):U,U}),g=e,y=t.computed(()=>({[g]:!0,[`${g}__placeholder`]:u.value.length>0,"is-disabled":s.value,"is-readonly":i.value})),m=Ve(t.computed(()=>l.textAlign),"textAlign"),b=t.computed(()=>{const U={};return m.value&&(U["text-align"]=m.value),U}),f=t.ref(""),B=t.computed(()=>{let U=f.value;return ue(U)&&(U=l.errorTip??""),U}),w=t.ref(""),C=t.ref(!1),k=U=>{let G=U.target.value;if(ue(G)){u.value="",p.value="",c("update:modelValue","",U),c("change","",U),be(l.showTip)&&C.value&&(C.value=!1);return}if(G.length>=2){let ee=G;if(ee.charAt(0)=="-"&&(ee=ee.substring(1)),ee.length>=2&&ee.charAt(0)=="0"&&ee.charAt(1)!="."){t.triggerRef(u);return}}if(G!="-"){if(!Fn(G)){t.triggerRef(u);return}if(l.integerLength!=-1&&vs(G)>Number(l.integerLength)){t.triggerRef(u);return}if(l.decimalLength&&l.decimalLength!=-1&&bs(G)>Number(l.decimalLength)){t.triggerRef(u);return}let ee=hr(G,l);if(ee.maxValid===!1){f.value=ee.message,t.triggerRef(u);return}}else if(l.min!=null&&he(l.min)>=0){t.triggerRef(u);return}w.value=G,be(l.showTip)&&(C.value=G.length>0),u.value=G,p.value=pr(G,l.rates,l.precision,!0),c("update:modelValue",p.value,U),c("change",p.value,U)},N=U=>{if(d.value=!0,be(l.showTip)){let M=u.value;ue(M)&&(M=l.hintText),ue(M)||(w.value=M,C.value=!0)}f.value="",c("focus",p.value,U)},A=U=>{if(setTimeout(()=>{d.value=!1,be(l.showTip)&&C.value===!0&&(C.value=!1)},0),!ue(u.value)){let M=hr(u.value,l);if(M.minValid===!1||M.maxValid===!1){f.value=M.message;return}}c("update:modelValue",p.value,U),c("blur",p.value,U)},$=t.computed(()=>({[`${g}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),T=t.computed(()=>{const U={};return r.slots.append&&!K.value&&!x.value&&(U.display="none"),U}),K=t.computed(()=>ke(l.unit)>0),Z=t.computed(()=>!x.value),E=t.computed(()=>({[`${g}__unit`]:!0,hidden:!Z.value})),V=U=>{p.value="",c("update:modelValue","",U),c("change","",U),c("clear","")},q=t.computed(()=>be(l.clearable)&&!s.value&&!i.value),x=t.computed(()=>{let U=ke(p.value)>0;return be(l.clearable)&&U&&d.value}),z=t.computed(()=>({action:!0,hidden:!x.value}));return()=>{let U={class:y.value,style:b.value,type:"digit",maxlength:l.maxLength,placeholder:v.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:k,onFocus:N,onBlur:A},M=[],G=t.h("input",U);M.push(G);let ee=[];if(q.value){const F={class:["action-icon"]},_=t.h(o,F),Q={class:z.value,onClick:V},te=t.h("view",Q,{default:()=>[_]});ee.push(te)}if(K.value){const F=t.h("view",{class:E.value},[l.unit]);ee.push(F)}const R={class:$.value,style:T.value},H=t.h("view",R,{default:()=>ee});M.push(H);const P={default:()=>M};P.label=r.slots.default,P.prepend=r.slots.prepend,P.append=r.slots.append,P.fixedPreTip=r.slots.fixedPreTip,P.fixedTip=r.slots.fixedTip;const O={...nt(l,gr),errorTip:B.value,hintText:w.value,hintVisible:C.value,hintType:"number"};return l.prop&&(O.prop=`${l.prop}_item`),t.h(a,O,P)}}}}const{componentName:bu,create:ku,scope:Su}=J("money-item"),Nl=ku(vu(bu,Su,Ne,le.CircleClose)),Yo={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:Cu,create:wu,scope:Nu}=J("textarea"),Bu=wu({props:{...Yo},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=ie.useFoxI18n(Nu);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const h=Cu;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 S=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:v,minHeight:g}=e.autosize;v!==void 0&&(S=Math.min(S,v)),g!==void 0&&(S=Math.max(S,g))}S&&(console.info("----------- height",S),h.style.height=S+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,S)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,S),n("change",h,S)};return{...o,textareaRef:l,classes:r,styles:s,change:h=>{const S=h.target;c(S.value,h)},focus:h=>{e.disabled||e.readonly||n("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let v=h.target.value;c(v,h),n("blur",{value:v,event:h})}}}}),Au=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Vu={key:0,class:"fox-textarea__limit"};function Tu(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,Au),e.limitShow?(t.openBlock(),t.createElementBlock("view",Vu,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const ro=oe(Bu,[["render",Tu]]);function $u(e,n,a,o){return{props:{...ge,...ve,...Yo},emits:["update:modelValue","change","blur","focus","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),d=Me(l,"modelValue",null,c),p=g=>{d.value=g,c("update:modelValue",g,{}),c("change",g,{})};let u=Me(l,"hintText"),h=t.ref(!1);const S=g=>{ue(u.value)||(h.value=!0),c("focus",d.value,g)},v=g=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",d.value,g)};return()=>{const y={...ye(l,Yo),disabled:s.value,readonly:i.value,value:d.value,"onUpdate:modelValue":p,onFocus:S,onBlur:v},m=[],b=t.h(o,y);m.push(b);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 w={...ye(l,ve,ge)};return l.prop&&(w.prop=`${l.prop}_item`),t.h(a,w,f)}}}}const{componentName:Eu,create:xu,scope:Du}=J("textarea-item"),Bl=xu($u(Eu,Du,Ne,ro));function Iu(e){return e===window}const qe=e=>{const n=t.unref(e);if(Iu(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}},yr=10;function Hs(e,n){return e>n&&e>yr?"horizontal":n>e&&n>yr?"vertical":""}function so(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function io(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(s=>{if(s.touches){const d=s.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const c=s;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Hs(e.offsetX,e.offsetY))}),start:(s=>{if(o(),s.touches){const d=s.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const c=s;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()}),reset:o,isVertical:n,isHorizontal:a,state:e}}function at(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),d=t.ref(0),p=t.ref(""),u=()=>p.value==="vertical",h=()=>p.value==="horizontal",S=()=>{s.value=0,i.value=0,c.value=0,d.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 b=y;s.value=b.clientX-e.value,i.value=b.clientY-n.value,l.value=b.clientX,r.value=b.clientY}c.value=Math.abs(s.value),d.value=Math.abs(i.value),o.value=Date.now()-a.value,p.value||(p.value=Hs(c.value,d.value))}),start:(y=>{if(S(),y.touches){const f=y.touches[0];e.value=f.clientX,n.value=f.clientY}else{const b=y;e.value=b.clientX,n.value=b.clientY}a.value=Date.now()}),reset:S,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:d,direction:p,isVertical:u,isHorizontal:h}}let qu=2e3;const vr=()=>qu++,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:{}}},Pu=(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=vr());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=vr(),a.destroyOnClose&&(l.showSlot=!0),o("open")},d=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},p=g=>{o("click-pop",g)},u=g=>{g.stopPropagation(),o("click-close-icon",g),o("update:visible",!1)},h=g=>{o("click-overlay",g),a.closeOnClickOverlay&&o("update:visible",!1)},S=g=>{o("opend",g)},v=g=>{o("closed",g)};return t.watch(()=>a.visible,g=>{a.visible?c():d()}),t.watch(()=>a.closeable,g=>{l.closed=g}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:p,onClickCloseIcon:u,onClickOverlay:h,onOpened:S,onClosed:v}}}),js={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}},Xo={...Ke,...js,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 Ws=36;function Mu(){return Ws}function Lu(e){Ws=e}function Re(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Qo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function zu(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 br(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Ou=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=lt(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(De(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Ru(){const e=t.getCurrentInstance();return new Ou(e.proxy)}function kr(e,n,a){const o=Re(e,n),l=Re(e,a);if(o!==l)return!1;const r=ut(e,n),s=ut(e,a);return r===s}function Fu(e,n,a,o){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const l=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=n[s];let d=a[s].findIndex(p=>{if(r==="text")return Re(e,p)===i;if(r==="value"){let u=ut(e,p);return u==null&&(u=Re(e,p)),u===i}else if(r==="item")return kr(e,p,i)});if(d==-1)break;l.push(d)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let d=s.findIndex(u=>{if(r==="text")return Re(e,u)===c;if(r==="value"){let h=ut(e,u);return h==null&&(h=Re(e,u)),h===c}else if(r==="item")return kr(e,u,c)});if(d==-1)break;l.push(d);const p=Qo(e,s[d]);if(!Array.isArray(p))break;s=p}}return l}function Sr(e,n,a,o){if(a.length==0)return null;const l={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=a[s];let c=n[s];c<0&&c>=i.length&&(c=0);const d=i[c],p=Re(e,d);if(l.texts.push(p),l.items.push(d),r==="text")l.values.push(p);else if(r==="value"){let u=ut(e,d);u==null&&(u=p),l.values.push(u)}else l.values.push(d)}else{let s=a[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=s.length&&(c=0);const d=s[c],p=Object.assign({},d);p.children=null;const u=Re(e,d);if(l.texts.push(u),l.items.push(p),r==="text")l.values.push(u);else if(r==="value"){let h=ut(e,d);h==null&&(h=u),l.values.push(h)}else l.values.push(p);if(!Array.isArray(d.children))break;s=d.children}}return l}function Cr(e){return{text:e,value:e}}const Ku=15,Uu=300,Hu=200,{create:ju}=J("picker-column");function Wu(e){e.stopPropagation()}function Yu(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),Wu(e)}const Xu=ju({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},...js},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${he(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=k=>k>=u.currIndex+8||k<=u.currIndex-8,i=t.computed(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${u.deg})`,top:`${r.value}px`})),c=k=>`transform: rotate3d(1, 0, 0, ${-u.rotation*k}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${u.scrollDistance+r.value}px, 0)`})),p=t.ref(null),u=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=k=>Re(e,k),S=k=>ut(e,k),v=at(),g=()=>{u.transitionEndTrigger&&(u.transitionEndTrigger(),u.transitionEndTrigger=null)},y=(k,N=!1,A=!1)=>{if(u.currIndex=k,N){const $=()=>{u.moving=!1,n("update:modelValue",k),n("change",k)};A?u.transitionEndTrigger=$:$()}},m=(k,N,A)=>{let $=k+u.startDistance;if(N==="end"){const T=-(e.source.length-1)*e.itemHeight;$<T&&($=T),$>0&&($=0);let K=Math.abs(Math.round(-$/e.itemHeight));const Z=-K*e.itemHeight,E=`${(K+1)*u.rotation}deg`,V=A?A>0:!1;y(K,!0,V),b(Z,N,A,E)}else{let T=(-$/e.itemHeight+1)*u.rotation;const K=(e.source.length+1)*u.rotation,Z=0;if(T=Math.min(Math.max(T,Z),K),e.threeDimensional&&(T<Z||T>K))return;b($,null,void 0,`${T}deg`)}},b=(k=0,N,A=Hu,$)=>{N==="end"?u.scrollTime=A:u.scrollTime=0,u.deg=$,u.scrollDistance=k},f=(k,N)=>(k=Math.abs(k/N)/.003*(k<0?-1:1),k),B=k=>{e.readonly||(u.startDistance=u.scrollDistance,v.start(k),u.transitionEndTrigger=null)},w=k=>{e.readonly||(u.moving=!0,v.move(k),v.isVertical()&&(u.moving=!0,Yu(k)),m(v.deltaY.value,"",0))},C=()=>{if(e.readonly)return;const k=v.deltaY.value,N=v.duration.value;if(N<Uu&&Math.abs(k)>Ku){const $=f(k,N);m($,"end",e.swipeDuration)}else m(k,"end",0)};return t.watch(()=>e.modelValue,k=>{const N=u.currIndex-k;if(N!==0){u.currIndex=k,u.startDistance=u.scrollDistance;const A=N*e.itemHeight;m(A,"",0)}}),t.watch(()=>e.source,k=>{if(u.currIndex>=k.length){const $=(k.length-1-u.currIndex)*e.itemHeight;u.startDistance=u.scrollDistance,m($,"end",0)}}),t.watch(()=>e.visible,k=>{k===!1&&g()}),t.onMounted(()=>{const k=-e.modelValue*e.itemHeight;m(k)}),{classes:a,styles:o,contentClasses:l,itemText:h,itemValue:S,...t.toRefs(u),roller:p,getItemText:Re,onTouchStart:B,onTouchMove:w,onTouchEnd:C,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:d,stopMomentum:g}}}),Qu={key:1,class:"fox-picker__item-tile"};function Gu(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",Qu,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Zu=oe(Xu,[["render",Gu]]);let qt=0;const wr="fox-overflow-hidden",Nr=()=>tt?document.body:{classList:[]},Ju=e=>[()=>{if(e())try{!qt&&Nr().classList.add(wr),qt++}catch{}},()=>{if(e()&&qt)try{qt--,!qt&&Nr().classList.remove(wr)}catch{}}],_u={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:ed,create:td}=J("overlay"),nd=td({props:{..._u},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=Ju(()=>e.lockScroll),l=t.computed(()=>({[ed]:!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 od(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 dt=oe(nd,[["render",od]]),{componentName:ld,create:ad}=J("popup"),rd=ad(Pu(ld,{FoxOverLay:dt,Close:le.Close}));function sd(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 pe=oe(rd,[["render",sd]]),id=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=nt({...e},{poppable:!1});return t.h(pe,a,n)}else return n?.default?.()??null}}}),{create:cd,componentName:Br,scope:ud}=J("picker"),dd=cd({components:{Column:Zu,Wrapper:id},props:{...Xo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=ie.useFoxI18n(ud),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Mu());t.watch(()=>e.visible,V=>{V&&s.value<=0&&setTimeout(()=>{if(r.value){const q=qe(r.value);s.value=q.height,Lu(s.value)}},50)});const i=t.computed(()=>({[Br]:!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(`${Br}__popup`),V.join(" ")}),d=Ru(),p=t.ref("singleColumn");let u=t.ref([]);t.watch([()=>e.source,()=>e.params],async([V,q])=>{if(V){let x=await d.load("picker",V,q);if(x.length>0){let z=x[0];if(Array.isArray(z)){if(typeof z[0]=="string"){let U=x,M=[];U.forEach(G=>{let ee=G.map(R=>Cr(R));M.push(ee)}),u.value=M}else u.value=x;p.value="multipleColumn"}else if(typeof z=="string"){let U=x,M=[],G=U.map(ee=>Cr(ee));M.push(G),u.value=M,p.value="singleColumn"}else{const U=Qo(e,z);Array.isArray(U)?(p.value="cascade",u.value=[x]):(p.value="singleColumn",u.value=[x])}}else u.value=[]}},{immediate:!0});const h=t.ref([]),S=t.ref(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),v=t.ref([]);let g=null;const y=t.ref([]);t.watch([()=>e.modelValue,()=>u.value],([V,q])=>{let x=Fu(e,V,q,p.value);if(!Ie(x,y.value)){y.value=x,g||(g=x?[...x]:[]);let z=Sr(e,x,q,p.value);z&&(h.value=z.texts,Ie(S.value,z.values)||(S.value=z.values),Ie(v.value,z.items)||(v.value=z.items),n("update:text",h.value))}});let m="";const b=t.ref(e.visible);t.watch(()=>e.visible,V=>{b.value=V,V&&(m="active",y.value.length>0&&(g=[...y.value]))});const f=V=>{let q=br(e,V);return De(q)?q.defaultIndex??0:0},B=V=>{if(e.readonly===!0)return!0;let q=br(e,V);return De(q)?q.readonly??!1:!1},w=(V,q)=>{let x=y.value;x[V]=q;for(let U=0;U<V;U++)x[U]==null&&(x[U]=f(U));if(p.value==="cascade")for(let U=V+1;U<k.value.length;U++){let M=f(U);U<x.length?x[U]=M:x.push(M)}else for(let U=x.length;U<k.value.length;U++){let M=f(U);x.push(M)}y.value=x;let z=Sr(e,x,u.value,p.value);z&&(h.value=z.texts,S.value=z.values,v.value=z.items)},C=V=>V<y.value.length?y.value[V]:f(V),k=t.computed(()=>{if(u.value.length==0)return[];if(p.value=="singleColumn"||p.value=="multipleColumn")return u.value;let V=[],q=0,x=u.value[0],z=0;for(;;){let U=x.map(ee=>{let R=Object.assign({},ee);return zu(e,R,null),R});V.push(U),q>=y.value.length?z=0:z=y.value[q],(z<0||z>=x.length)&&(z=0);let M=x[z];const G=Qo(e,M);if(!Array.isArray(G))break;x=G,q++}return V}),N=t.computed(()=>he(+e.visibleItemCount-1)/2*s.value),A=(V=!1)=>{if(e.readonly===!0){V&&n("update:visible",!1);return}let q=u.value.length-1;for(;q>=0&&!(y.value[q]===null||y.value[q]===void 0);q--);if(q>=0&&w(q,0),p.value==="singleColumn"){let x=S.value.length>0?S.value[0]:"",z=v.value.length>0?v.value[0]:null;n("update:modelValue",x),n("update:text",h.value),n("change",x,z),V&&(n("confirm",x),n("update:visible",!1))}else n("update:modelValue",S.value),n("update:text",h.value),n("change",S.value,v.value),V&&(n("confirm",S.value),n("update:visible",!1))},$=(V,q)=>{if(m!=="close"&&(w(V,q),e.isAutoBackFill)){const x=!b.value;A(x)}},T=()=>{m==="active"&&(m="confirm",g=Array.isArray(y.value)?[...y.value]:[],A(!0))},K=()=>{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:k,dataType:p,show:b,itemHeight:s,top:N,isReadonly:B,getIndex:C,change:$,close:()=>{if(m==="active"){if(m="close",g===null||g.length===0)K();else{if(Array.isArray(g))for(let V=0;V<g.length;V++)w(V,g[V]);A(!1)}n("close"),n("update:visible",!1)}},confirm:T,clear:()=>{if(m==="active"){if(m="clear",e.readonly===!0){n("update:visible",!1);return}K(),g=null,n("clear",""),n("update:visible",!1)}}}}}),fd={key:0,class:"fox-picker__bar"},md={class:"fox-picker__title"},pd={class:"fox-picker__bar__action"},hd={class:"fox-picker__column"};function gd(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",fd,[t.createElementVNode("view",md,t.toDisplayString(e.title),1),t.createElementVNode("view",pd,[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",hd,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(s,{visible:e.show,source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":p=>e.change(d,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 on=oe(dd,[["render",gd]]);function yd(e,n,a,o,l,r,s=!0){return{props:{...ge,...ve,...Xo,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),S=h(i,["placeholder"]),v=t.ref(!1),g=Me(i,"modelValue",null,u),y=t.ref([]),m=t.computed(()=>Array.isArray(y.value)?y.value.join(i.separator):y.value),b="fox-input-item",f=t.computed(()=>({[b]:!0,"is-disabled":d.value,"is-readonly":p.value})),B=Ve(t.computed(()=>i.textAlign),"textAlign"),w=t.computed(()=>{const H={};return B.value&&(H["text-align"]=B.value),H}),C=t.ref(!1),k=()=>{C.value=!0},N=H=>{C.value=H},A=H=>{g.value=H,u("update:modelValue",H)},$=(H,P)=>{u("change",H,P)},T=H=>{let X=H.target.value;v.value=!0,u("focus",X,H)},K=H=>{setTimeout(()=>{v.value=!1},0);let X=H.target.value;i.maxLength&&X.length>Number(i.maxLength)&&(X=X.slice(0,Number(i.maxLength))),u("blur",X,H)},Z=H=>{y.value=H,Array.isArray(H)&&H.length===0?u("update:text",H[0]):u("update:text",H)},E=t.computed(()=>({[`${b}__append`]:!0,"is-disabled":d.value,"is-readonly":p.value})),V=t.computed(()=>ke(i.unit)>0),q=t.computed(()=>ke(i.unit)>0&&!v.value),x=t.computed(()=>({hidden:!q.value})),z=H=>{g.value="",u("update:modelValue","",H),u("change","",H),u("clear","")},U=t.computed(()=>i.clearable&&!d.value&&!p.value),M=t.computed(()=>ke(g.value)>0&&v.value),G=H=>{M.value?z(H):k()},ee=t.computed(()=>M.value&&U.value?o:l),R=t.computed(()=>({action:!0}));return()=>{const H={class:f.value,style:w.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:k,onFocus:T,onBlur:K};s&&(H.disabled=!0);const P=[],X=t.h("input",H);P.push(X);const O=[],F={class:["action-icon"]},_=t.h(ee.value,F),Q={class:R.value,onClick:G},te=t.h("view",Q,{default:()=>[_]});if(O.push(te),V.value){const ae=t.h("view",{class:x.value},[i.unit]);O.push(ae)}const L={class:E.value},Y=t.h("view",L,{default:()=>O});P.push(Y);const I={default:()=>P};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 D=ye(i,Xo);D.disabled=!1,D.readonly=d.value||p.value,D.visible=C.value,D["onUpdate:visible"]=N,D.modelValue=g.value,D["onUpdate:modelValue"]=A,D.text=y.value,D["onUpdate:text"]=Z,D.onChange=$;const W=t.h(r,D);I.hide=()=>[W];const j=ye(i,ve,ge);return i.prop&&(j.prop=`${i.prop}_item`),t.h(a,j,I)}}}}const{componentName:vd,create:bd,scope:kd}=J("picker-item"),Al=bd(yd(vd,kd,Ne,le.CircleClose,le.ArrowRight,on,!1)),Sd=t.defineComponent({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:a}){return()=>{if(e.poppable){const o={...a};return t.h(pe,o,n)}else return n?.default?.()??null}}}),fn=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:d,...p}=o,u={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:d,_parent:n};return u.children&&u.children.length&&(u.children=fn(u.children,u,a)),u}),Ys=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&Ys(o.children,n)},Cd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},wd=(e,n)=>{const a={...Cd,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(d=>{d={...d};const{[l]:p,[r]:u}=d,h=c[u]=c[u]||[];!i.length&&u===o&&(i=h),h.push(d),d.children=c[p]||(c[p]=[])}),s&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((p,u)=>p[s]-u[s])}),c=null,i},Go={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}},Ar=(e,n)=>n[e.textKey],Pt=(e,n)=>n[e.valueKey],Nd=(e,n)=>n[e.visibleKey],Vr=(e,n)=>n[e.disabledKey],Bd=(e,n)=>{const a=n[e.doitKey];return be(a)},Ad=(e,n)=>{const a=n[e.numKey];return a==null?null:he(n[a])},Tr=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function Vd(e,n,a,o,l,r=!1){return{props:{...Go},emits:["update:modelValue","change","click"],setup(s,{slots:i,emit:c}){const d=t.computed(()=>{const I={};return I[`${e}`]=!0,I}),p=t.computed(()=>{const I={};return I[`${e}__titles`]=!0,I[`${s.direction}`]=!0,s.align==="left"&&(I.left=!0),s.scroll===!0&&(I.scrollable=!0),s.shape&&(I[`${s.shape}`]=!0),s.showScrollArrow?(X.value===!0&&(I["has-left-scroll-arrow "]=!0),O.value===!0&&(I["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(I["has-navigation"]=!0),I}),u=t.computed(()=>({})),h=t.computed(()=>{if(!s.gutter)return 0;const I=de(s.gutter);return I<=0?0:I}),S=t.ref(s.modelValue);t.watch(()=>s.modelValue,I=>{S.value!==I&&(S.value=I,U(!1))});const v=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),g=t.computed(()=>{const I={};return m.value||(I.display="none"),I}),y=t.ref(),m=t.ref(!1),b=()=>{const I=!m.value;f(I)},f=I=>{const D=I;D?(m.value=D,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,y.value?y.value.addEventListener("transitionend",()=>{m.value=!1},{once:!0}):setTimeout(()=>{m.value=!1},0))},B=t.ref(),w=t.ref([]),C=(I,D)=>{w.value[D]=I},k=I=>D=>{C(D,I)},N=(I,D)=>{const W=B.value,j=w.value;if(!W||!j||!j[I])return;const ne=j[I];let ae=0;s.direction==="vertical"?ae=ne.offsetTop-(W.offsetHeight-ne.offsetHeight)/2:ae=ne.offsetLeft-(W.offsetWidth-ne.offsetWidth)/2,A(W,ae,D?0:.3,s.direction)},A=(I,D,W,j)=>{let ne=0;const ae=j==="horizontal"?I.scrollLeft:I.scrollTop,re=W===0?1:Math.round(W*1e3/16);function me(){j==="horizontal"?I.scrollLeft+=(D-ae)/re:I.scrollTop+=(D-ae)/re,++ne<re&&je(me)}me()},$=(I,D)=>{const W=Pt(s,I),j={};return j[`${e}__titles-item`]=!0,j.disabled=Vr(s,I),j.active=W===S.value,s.shape&&(j[`${s.shape}`]=!0),s.ellipsis&&(j.ellipsis=!0),D&&(D.class&&(j[`${D.class}`]=!0),D.disabled===!0&&(j.disabled=D.disabled)),j},T=(I,D)=>{const W={};if(h.value>0){const j=Math.abs(h.value/2);s.direction==="vertical"?(W["margin-top"]=`${j}px`,W["margin-bottom"]=`${j}px`):(W["margin-left"]=`${j}px`,W["margin-right"]=`${j}px`)}return D&&D.style&&Object.assign(W,D.style),W},K=(I,D)=>`${Pt(s,I)??D}`,Z=(I,D)=>{const W=Pt(s,I),j={};j[`${e}__popup-item`]=!0,j.disabled=Vr(s,I),j.active=W===S.value,s.shape&&(j[`${s.shape}`]=!0);const ne=Tr(s,I,D);return ne&&ne.disabled===!0&&(j.disabled=ne.disabled),j},E=t.computed(()=>(s.data??[]).filter(D=>Nd(s,D)!==!1)),V=(I,D)=>{const W=Pt(s,I);if(c("click",I,D),S.value==W)return;const j=()=>{S.value=W,s.scroll&&N(D,!1),c("update:modelValue",W),c("change",I,D)};if(typeof s.beforeChange=="function"){const ne=s.beforeChange(I,D);kt(ne)?ne.then(ae=>{ae!==!1&&j()}).catch(()=>{j()}):ne!==!1&&j()}else j()},q=(I,D)=>function(){V(I,D)},x=(I,D)=>{V(I,D),f(!1)},z=(I,D)=>function(){x(I,D)},U=I=>{if(!Array.isArray(s.data)||!s.scroll)return;P()&&te();const D=s.data.findIndex(W=>Pt(s,W)===S.value);D!==-1&&N(D,I)},M=()=>{P()||L()};t.watch(()=>s.data,()=>{setTimeout(U,0)}),t.onMounted(()=>{U(!0)}),t.onBeforeUnmount(()=>{M()});const G=(I,D)=>{if(i.item)return i.item({item:I,index:D});const W=Tr(s,I,D),j=[];if(i.text){const me=i.text({item:I,index:D});j.push(me)}else{const me=[];if(W?.doit===!0||Bd(s,I)){const He={class:[`${e}__titles-item-tip`,"doit"]},ft=t.h("view",He);me.push(ft)}const we=W?.num??Ad(s,I);if(we){let He="";const ft=he(we);ft>=100?He="99+":He=`${ft}`;const wo={class:[`${e}__titles-item-tip`,"num"]},ci=t.h("view",wo,[He]);me.push(ci)}const Qe={class:`${e}__titles-item-text`};me.push(Ar(s,I));const Ge=t.h("view",Qe,me);j.push(Ge)}const ne={class:`${e}__titles-item-line`},ae=t.h("view",ne);j.push(ae);const re={ref:k(D),class:$(I,W),style:T(I,W),key:K(I,D),onClick:q(I,D)};return t.h("view",re,j)},ee=()=>{const I=i.default?i.default():[];if(I.length===0)for(let W=0;W<E.value.length;W++){const j=E.value[W],ne=G(j,W);I.push(ne)}const D={ref:B,class:p.value,style:u.value};return t.h("view",D,I)},R=()=>{let I=null;i.navigation?I=i.navigation():I=t.h(a);const D={class:`${e}__navigation`,onClick:b};return t.h("view",D,[I])},H=()=>{const I=[];for(let W=0;W<E.value.length;W++){const j=E.value[W];let ne=null;i.popupItem?ne=i.popupItem({item:j,index:W}):ne=Ar(s,j);const ae={class:Z(j,W),key:K(j,W),onClick:z(j,W)},re=t.h("view",ae,[ne]);I.push(re)}const D={class:v.value,style:g.value};return t.h("view",D,I)},P=()=>s.showScrollArrow&&s.direction=="horizontal",X=t.ref(!1),O=t.ref(!1),F=I=>{const D=B.value,W=w.value;if(!(!D||!W))if(I==="left"){const j=D.scrollLeft;let ne=j;for(let ae=0;ae<W.length;ae++){const re=W[ae].offsetLeft;if(j-re<0)break;ne=re}A(D,ne,.3,"horizontal")}else{const j=D.scrollLeft;let ne=j,ae=D.offsetWidth;for(let re=W.length-1;re>=0;re--){const me=W[re].offsetLeft+W[re].offsetWidth;if(me-j<D.offsetWidth){ne+=ae-me;break}ae=me}A(D,ne,.3,"horizontal")}},_=Pe(()=>{const I=B.value;if(!I)return;let D=I.scrollLeft>0;D!==X.value&&(X.value=D);let W=I.scrollWidth-I.scrollLeft>I.offsetWidth;W!==O.value&&(O.value=W)},50),Q=I=>{_()},te=()=>{const I=B.value;I&&(_(),I.addEventListener("scroll",Q))},L=()=>{const I=B.value;I&&I.removeEventListener("scroll",Q)},Y=I=>{if(I==="left"&&X.value!==!0||I==="right"&&O.value!==!0)return null;let D=null;I==="left"?i.leftArrow?D=i.leftArrow():D=t.h(o):i.rightArrow?D=i.rightArrow():D=t.h(l);const W={class:[`${e}__scroll-arrow`,I],onClick:()=>{F(I)}};return t.h("view",W,[D])};return()=>{const I=[],D=ee();if(I.push(D),P()){const j=Y("left");j&&I.push(j);const ne=Y("right");ne&&I.push(ne)}else if(s.showQuickNavigation){const j=R();I.push(j);const ne=H();I.push(ne)}const W={class:d.value};return t.h("view",W,I)}}}}const{create:Td,componentName:$d,scope:Ed}=J("tabs-bar"),ln=Td(Vd($d,Ed,le.MoreH,le.Left,le.Right,!1)),Xs=Symbol("TabsStatesKey"),Zo={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]}},xd=15,Dd=300,Id=200;function qd(e,n,a=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*a}function $r(e,n=0,a,o,l=Id){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 Pd=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??so()}open(n){this.el=n;const a=io(),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<Dd&&Math.abs(l)>xd?(l=qd(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 Md(e,n,a,o=1,l){return new Pd(e,n,a,o,l)}function Ld(e,n,a=!1){return{props:{...Zo},emits:["update:modelValue","change"],setup(o,{emit:l,slots:r}){const s=t.shallowRef([]),i={current:t.ref(o.modelValue??""),direction:t.ref(o.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:k=>{const N={name:k};i.current.value===k&&(N.loaded=!0),s.value.push(N),t.triggerRef(s)},remove:k=>{const N=s.value.findIndex(A=>A.name===k);N!==-1&&s.value.splice(N,1)},isLoaded:k=>{if(!o.lazy)return!0;const N=s.value.findIndex(A=>A.name===k);return N!==-1?i.current.value?s.value[N].loaded??!1:N===0:!1}};t.provide(Xs,i);const c=k=>{const N=s.value.findIndex(A=>A.name===k);N!==-1&&(s.value[N].loaded=!0,t.triggerRef(s))};t.watch([()=>o.modelValue,()=>o.direction],([k,N])=>{i.current.value!==k&&(i.current.value=k??"",c(k??"")),i.direction.value!==N&&(i.direction.value=N)});const d=t.ref(null),p=t.ref(null),u=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0})),h=t.computed(()=>{const k={};if(o.width){const N=fe(o.width);N&&(k.width=N)}if(o.height){const N=fe(o.height);N&&(k.height=N)}return k});let S=!0;const v=t.computed(()=>{const k={},N=s.value.length;if(N<=0)return k;const A=s.value.findIndex($=>$.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(k.height=`${N*i.tabHeight.value}px`,A!==-1&&(k.transform=`translate(0, -${A*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(k.width=`${N*i.tabWidth.value}px`,A!==-1&&(k.transform=`translate(-${A*i.tabWidth.value}px, 0)`)),S&&(S=!1,k.transition="transform 0s ease"),k}),g={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},y=k=>{const N=s.value.length,A=s.value.findIndex($=>$.name===i.current.value);g.moved=0,k.direction==="vertical"?(g.min=-1*(i.tabHeight.value*(N-1)+i.tabHeight.value/4),g.max=i.tabHeight.value/4,g.start=-A*i.tabHeight.value,g.itemDistance=i.tabHeight.value):(g.min=-1*(i.tabWidth.value*(N-1)+i.tabWidth.value/4),g.max=i.tabWidth.value/4,g.start=-A*i.tabWidth.value,g.itemDistance=i.tabWidth.value)},m=k=>{const N=p.value;if(!N)return;let A=g.start+k.delta;if(A>g.max?A=g.max:A<g.min&&(A=g.min),k.type==="move")$r(N,A,"move",k.direction,300);else if(k.type==="end"){let $=Math.floor(Math.abs(A)*1/g.itemDistance);const T=Math.abs(A)%g.itemDistance;g.start>A?T>=g.itemDistance*g.triggerAutoMoveRatio&&($+=1):T>g.itemDistance-g.itemDistance*g.triggerAutoMoveRatio&&($+=1),A=-1*$*g.itemDistance,$r(N,A,"end",k.direction,300),g.moved=A;const K=s.value[$].name;i.current.value=K??"",c(K??""),l("update:modelValue",K)}},b=()=>{},f=()=>{if(!d.value)return;const k=Xn(d.value);i.tabWidth.value=k.width,i.tabHeight.value=k.height},B=xn(f,120);let w=null,C=null;return t.onMounted(()=>{d.value&&(f(),window.ResizeObserver&&(C=new window.ResizeObserver(B),C.observe(d.value)),o.draggle&&(w=Md(y,m,b),w.open(p.value)))}),t.onBeforeUnmount(()=>{C&&(C.disconnect(),C=null),w&&w.close()}),Ee({doLayout(){f()}}),()=>{const k={class:`${e}__panes`,style:v.value,ref:p},N=t.h("view",k,[r?.default?.()]),A={class:u.value,style:h.value,ref:d};return t.h("view",A,[N])}}}}const{create:zd,componentName:Od,scope:Rd}=J("tabs-container"),an=zd(Ld(Od,Rd,!1)),Fd={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 Kd(e,n,a){return{props:{...Fd},setup(o,{emit:l,slots:r}){const s=t.inject(Xs);t.onMounted(()=>{s.add(o.paneKey)}),t.onBeforeUnmount(()=>{s.remove(o.paneKey)});const i=t.computed(()=>{const d={};return s.direction.value==="vertical"&&s.tabHeight.value>0?d.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(d.width=`${s.tabWidth.value}px`),d}),c=t.computed(()=>o.loaded!=null?be(o.loaded):s.isLoaded(o.paneKey));return()=>{let d=[];if(c.value)d=r?.default?.()??[];else if(r.empty)d=r.empty();else{const u={class:`${e}__empty-icon`},h=o.emptyIcon??a,S=t.h(h,u),v={class:`${e}__empty-text`},g=o.emptyText??"Loading",y=t.h("view",v,[g]),m={class:`${e}__empty`},b=t.h("view",m,[S,y]);d.push(b)}const p={class:`${e}`,style:i.value,prop:o.paneKey};return t.h("view",p,d)}}}}const{create:Ud,componentName:Hd,scope:jd}=J("tabs-pane"),co=Ud(Kd(Hd,jd,le.Loading));class Er{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=fn(n,null,this.config)}updateChildren(n,a){a?a.children=fn(n,a,this.config):this.nodes=fn(n,null,this.config)}getNodeByValue(n){let a;return Ys(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:Wd,scope:Yd}=J("cascader-pane"),Xd=Wd({components:{Loading:le.Loading,Checklist:le.Checklist,TabsBar:ln,TabsContainer:an,TabsPane:co},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(Yd),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 Er([],{})),d=t.ref([]),p=t.computed(()=>o.value.lazy&&!!o.value.lazyLoad),u=t.computed(()=>s.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((f,B)=>({text:f.selectedNode?f.selectedNode.text:a("select"),value:B}))),h=new Map;let S;const v=async()=>{h.clear(),d.value=[],l.value=0,s.value=!1,S=null;let{options:f}=e;o.value.convertConfig&&(f=wd(f,o.value.convertConfig)),c.value=new Er(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:""}),d.value=[{nodes:c.value.nodes,selectedNode:null}],g(!p.value)},g=async(f=!0)=>{const B=i.value;if(B===void 0||!c.value.nodes.length)return;if(B.length===0){l.value=0,d.value=[{nodes:c.value.nodes,selectedNode:null}];return}let w=B;if(p.value&&Array.isArray(B)&&B.length){w=[];let C=c.value.nodes.find(k=>k.value===B[0]);if(C){w=[C.value],s.value=!0;const k=await B.slice(1).reduce(async(N,A)=>{const $=await N;await y($);const T=$?.children?.find(K=>K.value===A);return T&&w.push(A),Promise.resolve(T)},Promise.resolve(C));await y(k),s.value=!1}}w.length&&B===e.modelValue&&c.value.getPathNodesByValue(w).map((k,N)=>{l.value=N,b.handleNode(k,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 B=f.root?null:f;let w=h.get(f);w||(w=new Promise(k=>{o.value.lazyLoad?.(f,k)}),h.set(f,w));const C=await w;Array.isArray(C)&&C.length>0?c.value.updateChildren(C,B):f.leaf=!0,f.loading=!1,h.delete(f)},m=f=>{const B=f.map(w=>w.value);i.value=B,n("change",B,f),n("pathChange",f),n("update:modelValue",B)},b={async handleNode(f,B){const{disabled:w,loading:C}=f;if(!(!B&&w||!d.value[l.value])){if(c.value.isLeaf(f,p.value)){if(f.leaf=!0,d.value[l.value].selectedNode=f,d.value=d.value.slice(0,f.level+1),!B){const k=d.value.map(N=>N.selectedNode);m(k),n("pathChange",k)}return}if(c.value.hasChildren(f,p.value)){const k=f.level+1;if(d.value[l.value].selectedNode=f,d.value=d.value.slice(0,k),d.value.push({nodes:f.children||[],selectedNode:null}),l.value=k,!B){const N=d.value.map(A=>A.selectedNode);n("pathChange",N)}return}S=f,!C&&(await y(f),S===f&&(d.value[l.value].selectedNode=f,b.handleNode(f,B)))}},handleTabChange(f,B){S=null},formatTabTitle(f){return f.selectedNode?f.selectedNode.text:a("select")},isSelected(f,B){return f.selectedNode&&f.selectedNode.value===B.value}};return t.watch([o,()=>e.options],()=>{v()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,f=>{Ie(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:d,panesTitles:u,initLoading:s,tabsCursor:l,tabsContainerRef:r,...b}}}),Qd={class:"fox-cascader"},Gd={role:"menu",class:"fox-cascader__pane"},Zd=["aria-checked","aria-disabled","onClick"],Jd={class:"fox-cascader__item__title"};function _d(e,n,a,o,l,r){const s=t.resolveComponent("TabsBar"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),d=t.resolveComponent("TabsPane"),p=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",Qd,[t.createVNode(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(p,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=u=>e.tabsCursor=u)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(u,h)=>(t.openBlock(),t.createBlock(d,{"pane-key":h,key:h},{default:t.withCtx(()=>[t.createElementVNode("view",Gd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,S=>(t.openBlock(),t.createElementBlock("view",{key:S.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(u,S),disabled:S.disabled}]),"aria-checked":e.isSelected(u,S),"aria-disabled":S.disabled||void 0,role:"menuitemradio",onClick:v=>e.handleNode(S,!1)},[t.createElementVNode("view",Jd,t.toDisplayString(S.text),1),S.loading?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(c,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Zd))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(d,{key:1,"pane-key":0},{default:t.withCtx(()=>[...n[2]||(n[2]=[t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}const ef=oe(Xd,[["render",_d]]),{create:tf}=J("cascader"),nf=tf({components:{CascaderPane:ef,Wrapper:Sd},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}}}),of=["innerHTML"];function lf(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,of)):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 uo=oe(nf,[["render",lf]]);function wt(e,n){const a=e.textKey??"text";return n[a]??""}function Nt(e,n){const a=e.valueKey??"value";return n[a]}function Qs(e,n){const a=e.childrenKey??"children";return n[a]}function un(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=wt(e,l),s=Nt(e,l);a.texts.push(r),a.values.push(s??"")}return a}function Gs(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(wt(e,n[s])===r){const c=Nt(e,n[s])??"",d={[e.textKey]:r,[e.valueKey]:c};l.push(d);const p=Qs(e,n[s]);Array.isArray(p)&&Gs(e,p,a,o+1,l);return}}function Zs(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Nt(e,n[s])===r){const c=wt(e,n[s])??"",d={[e.textKey]:c,[e.valueKey]:r};l.push(d);const p=Qs(e,n[s]);Array.isArray(p)&&Zs(e,p,a,o+1,l);return}}function Eo(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=wt(e,n[o]),r=wt(e,a[o]);if(l!==r)return!1;const s=Nt(e,n[o]),i=Nt(e,a[o]);if(s!==i)return!1}return!0}let af=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=lt(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(De(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await r(n,a,o))}};function rf(){const e=t.getCurrentInstance();return new af(e.proxy)}const xr={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 sf(e,n,a,o,l,r,s=!1){return{props:{...ge,...ve,...xr},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),S=h(i,["placeholder"]),v=t.ref(!1),g=rf(),y=t.ref([]),m=t.ref([]),b=t.computed(()=>{if(Array.isArray(m.value)){if(i.showAllLevels===!1){const F=m.value.length-1;return m.value[F]}return m.value.join(i.separator)}else return m.value}),f=t.ref([]),B=t.ref([]);t.watch([()=>i.modelValue,()=>y.value],async([F,_])=>{if(u("setValue",F),i.lazy===!0){B.value.length==0&&(f.value=Array.isArray(F)?F:[]);return}if(i.valueType==="item"){let Q=F;if(!Eo(i,Q,B.value)){B.value=Q;let te=un(i,Q);m.value=te.texts,f.value=te.values}}else if(i.valueType==="text"){let Q=F,te=[];if(Gs(i,_,Q,0,te),!Eo(i,te,B.value)){B.value=te;let L=un(i,te);Q.value=L.texts,f.value=L.values}}else{let Q=[];if(Zs(i,_,F,0,Q),!Eo(i,Q,B.value)){B.value=Q;let te=un(i,Q);m.value=te.texts,f.value=te.values}}}),i.lazy===!0&&(f.value=Array.isArray(i.modelValue)?i.modelValue:[]),t.watch([()=>i.source,()=>i.params],async([F,_])=>{i.lazy||F&&(y.value=await g.load(F,_))},{immediate:!0});const w="fox-input-item",C=t.computed(()=>({[w]:!0,"is-disabled":d.value,"is-readonly":p.value})),k=Ve(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const F={};return k.value&&(F["text-align"]=k.value),F}),A=t.ref(!1),$=()=>{d.value===!0||p.value===!0||(A.value=!0)},T=F=>{A.value=F},K=(F,_)=>{let Q=_.map(L=>{if(L==null)return L;let Y={...L};return Reflect.deleteProperty(Y,"text"),Y[i.textKey]=L.text??"",Reflect.deleteProperty(Y,"value"),Y[i.valueKey]=L.value??"",Y});B.value=Q;let te=un(i,Q);m.value=te.texts,f.value=te.values,i.valueType==="text"?(u("change",m.value,Q),u("update:modelValue",m.value)):i.valueType==="item"?(u("change",Q,Q),u("update:modelValue",Q)):(u("change",f.value,Q),u("update:modelValue",f.value)),u("update:pathNodes",Q)},Z=F=>{let _=F.map(Q=>{if(Q==null)return Q;let te={...Q};return Reflect.deleteProperty(te,"text"),te[i.textKey]=Q.text??"",Reflect.deleteProperty(te,"value"),te[i.valueKey]=Q.value??"",te});u("pathChange",_)},E=F=>{v.value=!0,u("focus",f.value,F)},V=F=>{setTimeout(()=>{v.value=!1},0),u("blur",f.value,F)},q=t.computed(()=>({[`${w}__append`]:!0,"is-disabled":d.value,"is-readonly":p.value})),x=t.computed(()=>ke(i.unit)>0),z=t.computed(()=>ke(i.unit)>0&&!v.value),U=t.computed(()=>({hidden:!z.value})),M=F=>{B.value=[],m.value=[],f.value=[],u("update:modelValue",[]),u("change",[],F),u("clear",[]),u("update:pathNodes",[])},G=t.computed(()=>i.clearable&&!d.value&&!p.value),ee=t.computed(()=>{let F=f.value&&f.value.length>0;return i.clearable&&F&&v.value}),R=F=>{ee.value?M(F):$()},H=t.computed(()=>ee.value&&G.value?o:l),P=t.computed(()=>({action:!0}));let X=null;const O=()=>typeof X=="function"?X:typeof i.lazyLoad=="function"?i.lazyLoad:(X=async(F,_)=>{const Q=[],te=[];let L=0;if(!F.root){let I=F;for(;I;){const D=wt(i,I),W=Nt(i,I);te.splice(0,0,D),Q.splice(0,0,W),I=I._parent}L=Q.length}const Y=await g.load(i.source,{...F,level:L,pathLabels:te,pathValues:Q},!0);_(Y)},X);return()=>{const F={class:C.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:$,onFocus:E,onBlur:V};s&&(F.disabled=!0);const _=[],Q=t.h("input",F);_.push(Q);const te=[],L={class:["action-icon"]},Y=t.h(H.value,L),I={class:P.value,onClick:R},D=t.h("view",I,{default:()=>[Y]});if(te.push(D),x.value){const He=t.h("view",{class:U.value},[i.unit]);te.push(He)}const W={class:q.value},j=t.h("view",W,{default:()=>te});_.push(j);const ne={default:()=>_};ne.label=c.slots.default,ne.prepend=c.slots.prepend,ne.append=c.slots.append,ne.fixedPreTip=c.slots.fixedPreTip,ne.fixedTip=c.slots.fixedTip;const ae={};ae.visible=A.value,ae["onUpdate:visible"]=T,ae.modelValue=f.value,ae.onChange=K,ae.onPathChange=Z,ae.title=i.title,ae.valueKey=i.valueKey,ae.textKey=i.textKey,ae.childrenKey=i.childrenKey,ae.convertConfig=i.convertConfig,i.lazy?(ae.lazy=!0,ae.lazyLoad=O()):ae.options=y.value;const re={};re.header=c.slots.header;const me=t.h(r,ae,re);ne.hide=()=>[me];const Qe={...nt(i,xr)};return i.prop&&(Qe.prop=`${i.prop}_item`),t.h(a,Qe,ne)}}}}const{componentName:cf,create:uf,scope:df}=J("cascader-item"),Vl=uf(sf(cf,df,Ne,le.CircleClose,le.ArrowRight,uo,!1));function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mn={exports:{}},ff=mn.exports,Dr;function mf(){return Dr||(Dr=1,(function(e,n){(function(a,o){e.exports=o()})(ff,(function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",d="day",p="week",u="month",h="quarter",S="year",v="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,b={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(E){var V=["th","st","nd","rd"],q=E%100;return"["+E+(V[(q-20)%10]||V[q]||V[0])+"]"}},f=function(E,V,q){var x=String(E);return!x||x.length>=V?E:""+Array(V+1-x.length).join(q)+E},B={s:f,z:function(E){var V=-E.utcOffset(),q=Math.abs(V),x=Math.floor(q/60),z=q%60;return(V<=0?"+":"-")+f(x,2,"0")+":"+f(z,2,"0")},m:function E(V,q){if(V.date()<q.date())return-E(q,V);var x=12*(q.year()-V.year())+(q.month()-V.month()),z=V.clone().add(x,u),U=q-z<0,M=V.clone().add(x+(U?-1:1),u);return+(-(x+(q-z)/(U?z-M:M-z))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:u,y:S,w:p,d,D:v,h:c,m:i,s,ms:r,Q:h}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},w="en",C={};C[w]=b;var k="$isDayjsObject",N=function(E){return E instanceof K||!(!E||!E[k])},A=function E(V,q,x){var z;if(!V)return w;if(typeof V=="string"){var U=V.toLowerCase();C[U]&&(z=U),q&&(C[U]=q,z=U);var M=V.split("-");if(!z&&M.length>1)return E(M[0])}else{var G=V.name;C[G]=V,z=G}return!x&&z&&(w=z),z||!x&&w},$=function(E,V){if(N(E))return E.clone();var q=typeof V=="object"?V:{};return q.date=E,q.args=arguments,new K(q)},T=B;T.l=A,T.i=N,T.w=function(E,V){return $(E,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var K=(function(){function E(q){this.$L=A(q.locale,null,!0),this.parse(q),this.$x=this.$x||q.x||{},this[k]=!0}var V=E.prototype;return V.parse=function(q){this.$d=(function(x){var z=x.date,U=x.utc;if(z===null)return new Date(NaN);if(T.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var M=z.match(y);if(M){var G=M[2]-1||0,ee=(M[7]||"0").substring(0,3);return U?new Date(Date.UTC(M[1],G,M[3]||1,M[4]||0,M[5]||0,M[6]||0,ee)):new Date(M[1],G,M[3]||1,M[4]||0,M[5]||0,M[6]||0,ee)}}return new Date(z)})(q),this.init()},V.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},V.$utils=function(){return T},V.isValid=function(){return this.$d.toString()!==g},V.isSame=function(q,x){var z=$(q);return this.startOf(x)<=z&&z<=this.endOf(x)},V.isAfter=function(q,x){return $(q)<this.startOf(x)},V.isBefore=function(q,x){return this.endOf(x)<$(q)},V.$g=function(q,x,z){return T.u(q)?this[x]:this.set(z,q)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(q,x){var z=this,U=!!T.u(x)||x,M=T.p(q),G=function(_,Q){var te=T.w(z.$u?Date.UTC(z.$y,Q,_):new Date(z.$y,Q,_),z);return U?te:te.endOf(d)},ee=function(_,Q){return T.w(z.toDate()[_].apply(z.toDate("s"),(U?[0,0,0,0]:[23,59,59,999]).slice(Q)),z)},R=this.$W,H=this.$M,P=this.$D,X="set"+(this.$u?"UTC":"");switch(M){case S:return U?G(1,0):G(31,11);case u:return U?G(1,H):G(0,H+1);case p:var O=this.$locale().weekStart||0,F=(R<O?R+7:R)-O;return G(U?P-F:P+(6-F),H);case d:case v:return ee(X+"Hours",0);case c:return ee(X+"Minutes",1);case i:return ee(X+"Seconds",2);case s:return ee(X+"Milliseconds",3);default:return this.clone()}},V.endOf=function(q){return this.startOf(q,!1)},V.$set=function(q,x){var z,U=T.p(q),M="set"+(this.$u?"UTC":""),G=(z={},z[d]=M+"Date",z[v]=M+"Date",z[u]=M+"Month",z[S]=M+"FullYear",z[c]=M+"Hours",z[i]=M+"Minutes",z[s]=M+"Seconds",z[r]=M+"Milliseconds",z)[U],ee=U===d?this.$D+(x-this.$W):x;if(U===u||U===S){var R=this.clone().set(v,1);R.$d[G](ee),R.init(),this.$d=R.set(v,Math.min(this.$D,R.daysInMonth())).$d}else G&&this.$d[G](ee);return this.init(),this},V.set=function(q,x){return this.clone().$set(q,x)},V.get=function(q){return this[T.p(q)]()},V.add=function(q,x){var z,U=this;q=Number(q);var M=T.p(x),G=function(H){var P=$(U);return T.w(P.date(P.date()+Math.round(H*q)),U)};if(M===u)return this.set(u,this.$M+q);if(M===S)return this.set(S,this.$y+q);if(M===d)return G(1);if(M===p)return G(7);var ee=(z={},z[i]=o,z[c]=l,z[s]=a,z)[M]||1,R=this.$d.getTime()+q*ee;return T.w(R,this)},V.subtract=function(q,x){return this.add(-1*q,x)},V.format=function(q){var x=this,z=this.$locale();if(!this.isValid())return z.invalidDate||g;var U=q||"YYYY-MM-DDTHH:mm:ssZ",M=T.z(this),G=this.$H,ee=this.$m,R=this.$M,H=z.weekdays,P=z.months,X=z.meridiem,O=function(Q,te,L,Y){return Q&&(Q[te]||Q(x,U))||L[te].slice(0,Y)},F=function(Q){return T.s(G%12||12,Q,"0")},_=X||function(Q,te,L){var Y=Q<12?"AM":"PM";return L?Y.toLowerCase():Y};return U.replace(m,(function(Q,te){return te||(function(L){switch(L){case"YY":return String(x.$y).slice(-2);case"YYYY":return T.s(x.$y,4,"0");case"M":return R+1;case"MM":return T.s(R+1,2,"0");case"MMM":return O(z.monthsShort,R,P,3);case"MMMM":return O(P,R);case"D":return x.$D;case"DD":return T.s(x.$D,2,"0");case"d":return String(x.$W);case"dd":return O(z.weekdaysMin,x.$W,H,2);case"ddd":return O(z.weekdaysShort,x.$W,H,3);case"dddd":return H[x.$W];case"H":return String(G);case"HH":return T.s(G,2,"0");case"h":return F(1);case"hh":return F(2);case"a":return _(G,ee,!0);case"A":return _(G,ee,!1);case"m":return String(ee);case"mm":return T.s(ee,2,"0");case"s":return String(x.$s);case"ss":return T.s(x.$s,2,"0");case"SSS":return T.s(x.$ms,3,"0");case"Z":return M}return null})(Q)||M.replace(":","")}))},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(q,x,z){var U,M=this,G=T.p(x),ee=$(q),R=(ee.utcOffset()-this.utcOffset())*o,H=this-ee,P=function(){return T.m(M,ee)};switch(G){case S:U=P()/12;break;case u:U=P();break;case h:U=P()/3;break;case p:U=(H-R)/6048e5;break;case d:U=(H-R)/864e5;break;case c:U=H/l;break;case i:U=H/o;break;case s:U=H/a;break;default:U=H}return z?U:T.a(U)},V.daysInMonth=function(){return this.endOf(u).$D},V.$locale=function(){return C[this.$L]},V.locale=function(q,x){if(!q)return this.$L;var z=this.clone(),U=A(q,x,!0);return U&&(z.$L=U),z},V.clone=function(){return T.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},E})(),Z=K.prototype;return $.prototype=Z,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",d],["$M",u],["$y",S],["$D",v]].forEach((function(E){Z[E[1]]=function(V){return this.$g(V,E[0],E[1])}})),$.extend=function(E,V){return E.$i||(E(V,K,$),E.$i=!0),$},$.locale=A,$.isDayjs=N,$.unix=function(E){return $(1e3*E)},$.en=C[w],$.Ls=C,$.p={},$}))})(mn)),mn.exports}var pf=mf();const Ue=Xe(pf);var pn={exports:{}},hf=pn.exports,Ir;function gf(){return Ir||(Ir=1,(function(e,n){(function(a,o){e.exports=o()})(hf,(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={},d=function(y){return(y=+y)+(y>68?1900:2e3)},p=function(y){return function(m){this[y]=+m}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=(function(m){if(!m||m==="Z")return 0;var b=m.match(/([+-]|\d\d)/g),f=60*b[1]+(+b[2]||0);return f===0?0:b[0]==="+"?-f:f})(y)}],h=function(y){var m=c[y];return m&&(m.indexOf?m:m.s.concat(m.f))},S=function(y,m){var b,f=c.meridiem;if(f){for(var B=1;B<=24;B+=1)if(y.indexOf(f(B,0,m))>-1){b=B>12;break}}else b=y===(m?"pm":"PM");return b},v={A:[i,function(y){this.afternoon=S(y,!1)}],a:[i,function(y){this.afternoon=S(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,b=y.match(/\d+/);if(this.day=b[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"),b=(h("monthsShort")||m.map((function(f){return f.slice(0,3)}))).indexOf(y)+1;if(b<1)throw new Error;this.month=b%12||b}],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=d(y)}],YYYY:[/\d{4}/,p("year")],Z:u,ZZ:u};function g(y){var m,b;m=y,b=c&&c.formats;for(var f=(y=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function($,T,K){var Z=K&&K.toUpperCase();return T||b[K]||a[K]||b[Z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(E,V,q){return V||q.slice(1)}))}))).match(o),B=f.length,w=0;w<B;w+=1){var C=f[w],k=v[C],N=k&&k[0],A=k&&k[1];f[w]=A?{regex:N,parser:A}:C.replace(/^\[|\]$/g,"")}return function($){for(var T={},K=0,Z=0;K<B;K+=1){var E=f[K];if(typeof E=="string")Z+=E.length;else{var V=E.regex,q=E.parser,x=$.slice(Z),z=V.exec(x)[0];q.call(T,z),$=$.replace(z,"")}}return(function(U){var M=U.afternoon;if(M!==void 0){var G=U.hours;M?G<12&&(U.hours+=12):G===12&&(U.hours=0),delete U.afternoon}})(T),T}}return function(y,m,b){b.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(d=y.parseTwoDigitYear);var f=m.prototype,B=f.parse;f.parse=function(w){var C=w.date,k=w.utc,N=w.args;this.$u=k;var A=N[1];if(typeof A=="string"){var $=N[2]===!0,T=N[3]===!0,K=$||T,Z=N[2];T&&(Z=N[2]),c=this.$locale(),!$&&Z&&(c=b.Ls[Z]),this.$d=(function(x,z,U,M){try{if(["x","X"].indexOf(z)>-1)return new Date((z==="X"?1e3:1)*x);var G=g(z)(x),ee=G.year,R=G.month,H=G.day,P=G.hours,X=G.minutes,O=G.seconds,F=G.milliseconds,_=G.zone,Q=G.week,te=new Date,L=H||(ee||R?1:te.getDate()),Y=ee||te.getFullYear(),I=0;ee&&!R||(I=R>0?R-1:te.getMonth());var D,W=P||0,j=X||0,ne=O||0,ae=F||0;return _?new Date(Date.UTC(Y,I,L,W,j,ne,ae+60*_.offset*1e3)):U?new Date(Date.UTC(Y,I,L,W,j,ne,ae)):(D=new Date(Y,I,L,W,j,ne,ae),Q&&(D=M(D).week(Q).toDate()),D)}catch{return new Date("")}})(C,A,k,b),this.init(),Z&&Z!==!0&&(this.$L=this.locale(Z).$L),K&&C!=this.format(A)&&(this.$d=new Date("")),c={}}else if(A instanceof Array)for(var E=A.length,V=1;V<=E;V+=1){N[1]=A[V-1];var q=b.apply(this,N);if(q.isValid()){this.$d=q.$d,this.$L=q.$L,this.init();break}V===E&&(this.$d=new Date(""))}else B.call(this,w)}}}))})(pn)),pn.exports}var yf=gf();const vf=Xe(yf);var hn={exports:{}},bf=hn.exports,qr;function kf(){return qr||(qr=1,(function(e,n){(function(a,o){e.exports=o()})(bf,(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 d=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(u){switch(u){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 d.s(i.week(),u==="w"?1:2,"0");case"W":case"WW":return d.s(i.isoWeek(),u==="W"?1:2,"0");case"k":case"kk":return d.s(String(i.$H===0?24:i.$H),u==="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 u}}));return r.bind(this)(p)}}}))})(hn)),hn.exports}var Sf=kf();const Cf=Xe(Sf);var gn={exports:{}},wf=gn.exports,Pr;function Nf(){return Pr||(Pr=1,(function(e,n){(function(a,o){e.exports=o()})(wf,(function(){return function(a,o,l){var r=o.prototype,s=function(u){return u&&(u.indexOf?u:u.s)},i=function(u,h,S,v,g){var y=u.name?u:u.$locale(),m=s(y[h]),b=s(y[S]),f=m||b.map((function(w){return w.slice(0,v)}));if(!g)return f;var B=y.weekStart;return f.map((function(w,C){return f[(C+(B||0))%7]}))},c=function(){return l.Ls[l.locale()]},d=function(u,h){return u.formats[h]||(function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(v,g,y){return g||y.slice(1)}))})(u.formats[h.toUpperCase()])},p=function(){var u=this;return{months:function(h){return h?h.format("MMMM"):i(u,"months")},monthsShort:function(h){return h?h.format("MMM"):i(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(u,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(u,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(u.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},l.localeData=function(){var u=c();return{firstDayOfWeek:function(){return u.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(h){return d(u,h)},meridiem:u.meridiem,ordinal:u.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(u){return i(c(),"weekdays",null,null,u)},l.weekdaysShort=function(u){return i(c(),"weekdaysShort","weekdays",3,u)},l.weekdaysMin=function(u){return i(c(),"weekdaysMin","weekdays",2,u)}}}))})(gn)),gn.exports}var Bf=Nf();const Af=Xe(Bf);var yn={exports:{}},Vf=yn.exports,Mr;function Tf(){return Mr||(Mr=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 d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=s(this).startOf(o).add(1,o).date(d),u=s(this).endOf(a);if(p.isBefore(u))return 1}var h=s(this).startOf(o).date(d).startOf(a).subtract(1,"millisecond"),S=this.diff(h,a,!0);return S<0?s(this).startOf("week").week():Math.ceil(S)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(yn)),yn.exports}var $f=Tf();const Ef=Xe($f);var vn={exports:{}},xf=vn.exports,Lr;function Df(){return Lr||(Lr=1,(function(e,n){(function(a,o){e.exports=o()})(xf,(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}}}))})(vn)),vn.exports}var If=Df();const qf=Xe(If);var bn={exports:{}},Pf=bn.exports,zr;function Mf(){return zr||(zr=1,(function(e,n){(function(a,o){e.exports=o()})(Pf,(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")}}}))})(bn)),bn.exports}var Lf=Mf();const zf=Xe(Lf);var kn={exports:{}},Of=kn.exports,Or;function Rf(){return Or||(Or=1,(function(e,n){(function(a,o){e.exports=o()})(Of,(function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}}))})(kn)),kn.exports}var Ff=Rf();const Kf=Xe(Ff);var Sn={exports:{}},Uf=Sn.exports,Rr;function Hf(){return Rr||(Rr=1,(function(e,n){(function(a,o){e.exports=o()})(Uf,(function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}}))})(Sn)),Sn.exports}var jf=Hf();const Wf=Xe(jf);Ue.extend(Af);Ue.extend(Cf);Ue.extend(vf);Ue.extend(Ef);Ue.extend(qf);Ue.extend(zf);Ue.extend(Kf);Ue.extend(Wf);const se={format(e,n){return Ue(e).format(n)},parser(e,n){return Ue(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,d=r+(6-s)*864e5,p=this.date2Str(new Date(c)),u=this.date2Str(new Date(d));return[p,u]}else{s=s==0?7:s;const i=1440*60*1e3,c=r-(s-1)*i,d=r+(7-s)*i,p=this.date2Str(new Date(c)),u=this.date2Str(new Date(d));return[p,u]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=se.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=se.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}},Fr=new Date().getFullYear(),Tl={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"},Ln=(e,n,a)=>{let o;if(Ye(n)?o=n:typeof n=="string"&&ke(n)>0?o=se.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},Jo=(e,n,a)=>{Ye(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),se.format(new Date(o),a)},_o={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:()=>"date"},valueFormat:{type:String},visible:{type:Boolean,default:()=>!1},title:{type:String,default:()=>""},isShowChinese:{type:Boolean,default:()=>!0},minuteStep:{type:Number,default:()=>1},minDate:{type:Date,default:()=>new Date(Fr-10,0,1),validator:Ye},maxDate:{type:Date,default:()=>new Date(Fr+10,11,31),validator:Ye},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:Yf,scope:Xf}=J("date-picker"),Qf=Yf({components:{Picker:on},props:{..._o},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(Xf),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,B){return new Date(f,B,0).getDate()}const s=(f,B)=>{const w=e[`${f}Date`],C=w.getFullYear();let k=1,N=1,A=0,$=0;f==="max"&&(k=12,N=r(B.getFullYear(),B.getMonth()+1),A=23,$=59);const T=$;return B.getFullYear()===C&&(k=w.getMonth()+1,B.getMonth()+1===k&&(N=w.getDate(),B.getDate()===N&&(A=w.getHours(),B.getHours()===A&&($=w.getMinutes())))),{[`${f}Year`]:C,[`${f}Month`]:k,[`${f}Date`]:N,[`${f}Hour`]:A,[`${f}Minute`]:$,[`${f}Seconds`]:T}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:f,maxDate:B,maxMonth:w,maxHour:C,maxMinute:k,maxSeconds:N}=s("max",h.value),{minYear:A,minDate:$,minMonth:T,minHour:K,minMinute:Z,minSeconds:E}=s("min",h.value);let V=[{type:"year",range:[A,f]},{type:"month",range:[T,w]},{type:"day",range:[$,B]},{type:"hour",range:[K,C]},{type:"minute",range:[Z,k]},{type:"seconds",range:[E,N]}];switch(e.type){case"date":V=V.slice(0,3);break;case"datetime":V=V.slice(0,5);break;case"time":V=V.slice(3,6);break;case"year-month":V=V.slice(0,2);break;case"month-day":V=V.slice(1,3);break;case"datehour":V=V.slice(0,4);break;case"hour-minute":V=V.slice(3,5);break}return V}),c=(f,B,w,C,k)=>{const N=[];for(;f<=B;){let A=!0;if(typeof e.itemFilter=="function"){const $={text:`${f}`,value:f,type:w,currentYearMonth:C};A=e.itemFilter($)}if(A)if(typeof e.itemFormatter=="function"){const $={text:`${f}`,value:f,type:w,currentYearMonth:C};e.itemFormatter($),N.push({text:$.text,value:$.value})}else if(e.isShowChinese){let $=`${f}${o[w]}`;if(w==="day"){if(C[0]===k[0]&&C[1]===k[1]&&f===k[2])$=o.today;else{const K=new Date(C[0],C[1],f).getDay();$=`${$} ${o.fullWeekdays[K]}`}N.push({text:$,value:f})}else N.push({text:f+o[w],value:f})}else N.push({text:`${f}`,value:f});w==="minute"?f+=e.minuteStep:f++}return N},d=t.computed(()=>{const f=new Date,B=[f.getFullYear(),f.getMonth(),f.getDate()],w=[];h.value&&(w[0]=h.value.getFullYear(),w[1]=h.value.getMonth());let C=[];return i.value.forEach(k=>{let N=c(k.range[0],k.range[1],k.type,w,B);N&&C.push(N)}),C}),p=(f,B)=>f==="year"?B.getFullYear():f==="month"?B.getMonth()+1:f==="day"?B.getDate():f==="hour"?B.getHours():f==="minute"?B.getMinutes():f==="seconds"?B.getSeconds():0,u=t.ref(),h=t.ref(null);t.watch(()=>e.modelValue,f=>{let B;if(typeof f=="string"?f.length==0||f==="Invalid Date"?B=new Date:e.valueFormat?B=Ln(e,e.modelValue,e.valueFormat):B=Ln(e,f,Tl[e.type]):Ye(f)?B=f:B=new Date,!!B&&(!h.value||B.getTime()!==h.value.getTime())){h.value=B;let w=[];i.value.forEach(C=>{let k=p(C.type,B);w.push(k)}),u.value=w}},{immediate:!0});const S=f=>{if(!f||f.length===0){h.value=new Date;let B=[];i.value.forEach(w=>{let C=p(w.type,h.value);B.push(C)}),u.value=B;return}if(e.type==="date"){const B=f[0],w=f[1]-1,C=Math.min(f[2],r(B,w+1));C!==f[2]&&(f[2]=C),h.value=new Date(B,w,C)}else if(e.type==="datetime"){const B=f[0],w=f[1]-1,C=Math.min(f[2],r(B,w+1)),k=f[3],N=f[4];C!==f[2]&&(f[2]=C),h.value=new Date(B,w,C,k,N)}else if(e.type==="time"){const B=f[0],w=f[1],C=f[2],k=h.value??new Date,N=new Date(k.getFullYear(),k.getMonth(),k.getDate(),B,w,C);h.value=N}else if(e.type==="year-month"){const B=f[0],w=f[1]-1;h.value=new Date(B,w)}else if(e.type==="month-day"){const w=(h.value??new Date).getFullYear(),C=f[0]-1,k=Math.min(f[1],r(w,C+1));k!==f[1]&&(f[1]=k);const N=new Date(w,C,k);h.value=N}else if(e.type==="datehour"){const B=f[0],w=f[1]-1,C=Math.min(f[2],r(B,w+1)),k=f[3];C!==f[2]&&(f[2]=C),h.value=new Date(B,w,C,k)}else if(e.type==="hour-minute"){const B=f[0],w=f[1],C=h.value??new Date,k=new Date(C.getFullYear(),C.getMonth(),C.getDate(),B,w);h.value=k}u.value=f};return{columns:d,dateIndexs:u,show:l,onChange:f=>{S(f)},onClose:()=>{n("update:close",!1)},onConfirm:f=>{S(f);const B=h.value??new Date;if(e.valueFormat){let w=Jo(e,B,e.valueFormat);n("update:modelValue",w)}else n("update:modelValue",B);n("confirm",f)},onClear:()=>{n("clear")},onUpdateVisible:f=>{l.value=f,n("update:visible",f)}}}});function Gf(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 fo=oe(Qf,[["render",Gf]]),Zf={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Jf(e){let n=e.format;if(!n){let a=e.type??"date";n=Tl[a]}return n}function _f(e,n,a,o,l,r,s=!1){return{props:{...ge,...ve,..._o,...Zf},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),S=h(i,["placeholder"]),v=t.ref(!1),y=Me(i,"modelValue",R=>R==null?null:typeof R=="string"?R.length==0?null:i.valueFormat?Ln(i,R,i.valueFormat)??R:Ln(i,R,Tl[i.type])??R:Ye(R)?R:null,u),m=t.computed(()=>{if(!y.value)return"";const R=Jf(i);return Jo(i,y.value,R)}),b="fox-input-item",f=t.computed(()=>({[b]:!0,"is-disabled":d.value,"is-readonly":p.value})),B=Ve(t.computed(()=>i.textAlign),"textAlign"),w=t.computed(()=>{const R={};return B.value&&(R["text-align"]=B.value),R}),C=t.ref(!1),k=()=>{C.value=!0},N=()=>{C.value=!1};c.expose({showPicker:k,hidePicker:N});const A=R=>{C.value=R},$=R=>{if(y.value=R,i.valueFormat){let H=Jo(i,R,i.valueFormat);u("update:modelValue",H,{}),u("change",H,{})}else u("update:modelValue",R,{}),u("change",R,{})},T=R=>{let P=R.target.value;v.value=!0,u("focus",P,R)},K=R=>{setTimeout(()=>{v.value=!1},0);let P=R.target.value;i.maxLength&&P.length>Number(i.maxLength)&&(P=P.slice(0,Number(i.maxLength))),u("blur",P,R)},Z=t.computed(()=>({[`${b}__append`]:!0,"is-disabled":d.value,"is-readonly":p.value})),E=t.computed(()=>ke(i.unit)>0),V=t.computed(()=>ke(i.unit)>0&&!v.value),q=t.computed(()=>({hidden:!V.value})),x=R=>{y.value="",u("update:modelValue","",R),u("change","",R),u("clear",""),N()},z=t.computed(()=>i.clearable&&!d.value&&!p.value),U=t.computed(()=>{let R=ke(y.value)>0;return i.clearable&&R&&v.value}),M=R=>{U.value?x(R):k()},G=t.computed(()=>U.value&&z.value?o:l),ee=t.computed(()=>({action:!0}));return()=>{const R={class:f.value,style:w.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:k,onFocus:T,onBlur:K};s&&(R.disabled=!0);const H=[],P=t.h("input",R);H.push(P);const X=[],O={class:["action-icon"]},F=t.h(G.value,O),_={class:ee.value,onClick:M},Q=t.h("view",_,{default:()=>[F]});if(X.push(Q),E.value){const re=t.h("view",{class:q.value},[i.unit]);X.push(re)}const te={class:Z.value},L=t.h("view",te,{default:()=>X});H.push(L);const Y={default:()=>H};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 I=ye(i,_o);I.valueFormat=null,I.disabled=!1,I.readonly=d.value||p.value,I.visible=C.value,I["onUpdate:visible"]=A,I.modelValue=y.value,I["onUpdate:modelValue"]=$,I.onClear=x;const D={};if(c.slots.top){const re=c.slots.top();D.top=()=>re}if(c.slots.bottom){const re=c.slots.bottom();D.default=()=>re}const W=t.h(r,I,D);Y.hide=()=>[W];const ne={...ye(i,ve,ge)};return i.prop&&(ne.prop=`${i.prop}_item`),t.h(a,ne,Y)}}}}const{create:em,componentName:tm,scope:nm}=J("date-item"),$l=em(_f(tm,nm,Ne,le.CircleClose,le.Date,fo,!1)),om=39,lm=64,{create:am,scope:rm}=J("calendar-pane"),sm=am({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:se.getDay(0)},endDate:{type:String,default:se.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=ie.useFoxI18n(rm),r=o(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(l("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),d=t.ref(null),p=t.ref(null),u=t.ref(null),h=t.ref(0),S=t.computed(()=>m.monthsData.slice(m.defaultRange[0],m.defaultRange[1])),v=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}),b=O=>O.split("-"),f=O=>se.isEqual(m.currDate[0],O),B=O=>se.isEqual(m.currDate[1],O),w=O=>m.currDate?.length>0?m.currDate?.some(F=>se.isEqual(F,O)):!1,C=(O,F)=>F.curData[0]+"-"+F.curData[1]+"-"+se.getNumTwoBit(+O.day),k=(O,F)=>{const _=C(O,F),{type:Q}=e;return O.type=="curr"?se.isEqual(m.currDate,_)||(Q=="range"||Q=="week")&&(f(_)||B(_))||Q=="multiple"&&w(_)?`${m.dayPrefix}--active`:m.propStartDate&&se.compareDate(_,m.propStartDate)||m.propEndDate&&se.compareDate(m.propEndDate,_)?`${m.dayPrefix}--disabled`:(Q=="range"||Q=="week")&&Array.isArray(m.currDate)&&Object.values(m.currDate).length==2&&se.compareDate(m.currDate[0],_)&&se.compareDate(_,m.currDate[1])?`${m.dayPrefix}--choose`:null:`${m.dayPrefix}--disabled`},N=()=>{const{type:O}=e;if(O=="range"&&m.chooseData.length==2||O!="range"){let F=m.chooseData.slice(0);O=="week"&&(F={weekDate:[$(m.chooseData[0]),$(m.chooseData[1])]}),n("choose",F),e.poppable&&n("update")}},A=(O,F,_=!1)=>{if(k(O,F)!=`${m.dayPrefix}--disabled`){const{type:Q}=e;let[te,L]=F.curData,Y=[...F.curData];if(Y[2]=se.getNumTwoBit(Number(O.day)),Y[3]=`${Y[0]}-${Y[1]}-${Y[2]}`,Y[4]=se.getWhatDay(+Y[0],+Y[1],+Y[2]),Q=="multiple")if(m.currDate?.length>0){let I;m.currDate?.forEach((D,W)=>{D==Y[3]&&(I=W)}),_?m.chooseData.push([...Y]):I!==void 0?(m.currDate.splice(I,1),m.chooseData.splice(I,1)):(m.currDate.push(Y[3]),m.chooseData.push([...Y]))}else m.currDate=[Y[3]],m.chooseData=[[...Y]];else if(Q=="range"){let I=Object.values(m.currDate).length;I==2||I==0?m.currDate=[Y[3]]:se.compareDate(m.currDate[0],Y[3])?Array.isArray(m.currDate)&&m.currDate.push(Y[3]):Array.isArray(m.currDate)&&m.currDate.unshift(Y[3]),m.chooseData.length==2||!m.chooseData.length?m.chooseData=[[...Y]]:se.compareDate(m.chooseData[0][3],Y[3])?m.chooseData=[...m.chooseData,[...Y]]:m.chooseData=[[...Y],...m.chooseData]}else if(Q=="week"){let I=se.getWeekDate(te,L,O.day,e.firstDayOfWeek);m.propStartDate&&se.compareDate(I[0],m.propStartDate)&&I.splice(0,1,m.propStartDate),m.propEndDate&&se.compareDate(m.propEndDate,I[1])&&I.splice(1,1,m.propEndDate),m.currDate=I,m.chooseData=[se.formatResultDate(I[0]),se.formatResultDate(I[1])]}else m.currDate=Y[3],m.chooseData=[...Y];if(!_){let I=m.chooseData;Q=="week"&&(I={weekDate:[$(m.chooseData[0]),$(m.chooseData[1])]}),n("select",I),(e.isAutoBackFill||!e.poppable)&&N()}}},$=O=>{let[F,_,Q]=O;return{date:O,monthWeekNum:se.getMonthWeek(F,_,Q,e.firstDayOfWeek),yearWeekNum:se.getYearWeek(F,_,Q,e.firstDayOfWeek)}},T=O=>{const F=m.monthsData[m.monthsData.length-1];let _=parseInt(F.curData[0]),Q=parseInt(F.curData[1].toString().replace(/^0/,""));switch(O){case"prev":Q==1&&(_-=1),Q=Q==1?12:--Q;break;case"next":Q==12&&(_+=1),Q=Q==12?1:++Q;break}return[_+"",se.getNumTwoBit(Q),se.getMonthDays(String(_),String(Q))+""]},K=(O,F,_)=>{let{year:Q,month:te}=_;return Array.from(Array(O),(L,Y)=>({day:String(Y+1),type:F,year:Q,month:te}))},Z=(O,F,_,Q)=>{O=O-e.firstDayOfWeek;let{year:te,month:L}=_;return O>=7&&(O-=7),Array.from(Array(Q),(I,D)=>({day:String(D+1),type:F,year:te,month:L})).slice(Q-O)},E=(O,F)=>{const _=se.getMonthPreDay(+O[0],+O[1]);let Q=Number(O[1])-1,te=Number(O[0]);Q<=0&&(Q=12,te+=1);const L=se.getMonthDays(String(O[0]),String(O[1])),Y=se.getMonthDays(te+"",Q+""),I={year:O[0],month:O[1]},D={curData:O,title:l("monthTitle",{year:I.year,month:I.month}),monthData:[...Z(_,"prev",{month:String(Q),year:String(te)},Y),...K(L,"curr",I)],cssHeight:0,cssScrollHeight:0},W=D.monthData.length>35?6:5;D.cssHeight=om+lm*W;let j=0;m.monthsData.length>0&&(j=m.monthsData[m.monthsData.length-1].cssScrollHeight+m.monthsData[m.monthsData.length-1].cssHeight),D.cssScrollHeight=j,(!m.endData||!se.compareDate(`${m.endData[0]}-${m.endData[1]}-${se.getMonthDays(m.endData[0],m.endData[1])}`,`${O[0]}-${O[1]}-${O[2]}`))&&m.monthsData.push(D)},V=()=>{let O=e.startDate?e.startDate:se.getDay(0),F=e.endDate?e.endDate:se.getDay(365);m.propStartDate=O,m.propEndDate=F,m.startData=b(O),m.endData=b(F),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(m.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const _={year:Number(m.startData[0]),month:Number(m.startData[1])},Q={year:Number(m.endData[0]),month:Number(m.endData[1])};let te=Q.month-_.month;Q.year-_.year>0&&(te=te+12*(Q.year-_.year)),te<=0&&(te=1),E(m.startData);let L=1;do E(T("next"));while(L++<te);if(m.monthsNum=te,e.type=="range"&&Array.isArray(m.currDate))m.currDate.length>0&&(O&&se.compareDate(m.currDate[0],O)&&m.currDate.splice(0,1,O),F&&se.compareDate(F,m.currDate[1])&&m.currDate.splice(1,1,F),m.defaultData=[...b(m.currDate[0]),...b(m.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(m.currDate)){if(m.currDate.length>0){let Y=[],I={};m.currDate.forEach(D=>{O&&!se.compareDate(D,O)&&F&&!se.compareDate(F,D)&&(Object.hasOwnProperty.call(I,D)||(Y.push(D),I[D]=D))}),m.currDate=[...Y],m.defaultData=[...b(Y[0])]}}else if(e.type=="week"&&Array.isArray(m.currDate)){if(m.currDate.length>0){let[Y,I,D]=b(m.currDate[0]),W=se.getWeekDate(Y,I,D,e.firstDayOfWeek);m.currDate=W,O&&se.compareDate(m.currDate[0],O)&&m.currDate.splice(0,1,O),F&&se.compareDate(F,m.currDate[1])&&m.currDate.splice(1,1,F),m.defaultData=[...b(m.currDate[0]),...b(m.currDate[1])]}}else m.currDate&&(O&&se.compareDate(m.currDate,O)?m.currDate=O:F&&!se.compareDate(m.currDate,F)&&(m.currDate=F),m.defaultData=[...b(m.currDate)])};Ee({scrollToDate:O=>{se.compareDate(O,m.propStartDate)?O=m.propStartDate:se.compareDate(O,m.propEndDate)||(O=m.propEndDate);let F=b(O);m.monthsData.forEach((_,Q)=>{if(_.title==l("monthTitle",{year:F[0],month:F[1]})&&c.value){let te=m.monthsData[Q].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let L=0,Y=setInterval(()=>{if(L++,c.value){let I=te/10;c.value.scrollTop=c.value.scrollTop+I}L>=10&&(clearInterval(Y),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 O=0,F=0;m.defaultData.length>0&&m.monthsData.forEach((te,L)=>{te.title==l("monthTitle",{year:m.defaultData[0],month:m.defaultData[1]})&&(O=L),(e.type=="range"||e.type=="week")&&te.title==l("monthTitle",{year:m.defaultData[3],month:m.defaultData[4]})&&(F=L)}),U(m.monthsNum,O),m.currentIndex=O,m.yearMonthTitle=m.monthsData[m.currentIndex].title,m.defaultData.length>0&&(m.isRange?(A({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0),A({day:m.defaultData[5],type:"curr"},m.monthsData[F],!0)):e.type=="week"?A({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0):e.type=="multiple"?[...m.currDate].forEach(te=>{let L=b(te),Y=m.currentIndex;m.monthsData.forEach((I,D)=>{I.title==l("monthTitle",{year:L[0],month:L[1]})&&(Y=D)}),A({day:L[2],type:"curr"},m.monthsData[Y],!0)}):A({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0));let _=m.monthsData[m.monthsData.length-1],Q=_.cssHeight+_.cssScrollHeight;Ze(()=>{c?.value&&d?.value&&u?.value&&(h.value=c.value.clientHeight,d.value.style.height=`${Q}px`,c.value.scrollTop=m.monthsData[m.currentIndex].cssScrollHeight)}),m.avgHeight=Math.floor(Q/(m.monthsNum+1))}});const U=(O,F)=>{O>=3?F>0&&F<O?m.defaultRange=[F-1,F+3]:F==0?m.defaultRange=[F,F+4]:F==O&&(m.defaultRange=[F-2,F+2]):m.defaultRange=[0,O+2];let _=m.monthsData[m.defaultRange[0]].cssScrollHeight;m.translateY=_},M=(O,F)=>(e.type=="range"||e.type=="week")&&O.type=="curr"&&k(O,F)=="fox-calendar__day--active",G=(O,F)=>M(O,F)&&f(C(O,F)),ee=(O,F)=>m.currDate.length>=2&&B(C(O,F))?M(O,F):!1,R=()=>{if(m.currDate.length>=2)return se.isEqual(m.currDate[0],m.currDate[1])},H=O=>{const F=`${O.year}-${O.month}-${Number(O.day)<10?"0"+O.day:O.day}`;return se.isEqual(F,se.date2Str(new Date))},P=O=>{if(m.monthsData.length<=1)return;const F=O.target.scrollTop;let _=Math.floor(F/m.avgHeight);if(_==0)F>=m.monthsData[_+1].cssScrollHeight&&(_+=1);else if(_>0&&_<m.monthsNum-1)F>=m.monthsData[_+1].cssScrollHeight&&(_+=1),F<m.monthsData[_].cssScrollHeight&&(_-=1);else{const Q=Math.round(F+h.value);Q<m.monthsData[_].cssScrollHeight+m.monthsData[_].cssHeight&&F>m.monthsData[_-1].cssScrollHeight&&(_-=1),_+1<=m.monthsNum&&Q>=m.monthsData[_+1].cssScrollHeight+m.monthsData[_+1].cssHeight&&(_+=1),_>=1&&F<m.monthsData[_-1].cssScrollHeight&&(_-=1)}m.currentIndex!==_&&(m.currentIndex=_,U(m.monthsNum,_)),m.yearMonthTitle=m.monthsData[_].title},X=()=>{m.chooseData.splice(0),m.monthsData.splice(0),V()};return V(),t.watch(()=>e.defaultValue,O=>{O&&e.poppable&&X()}),{weeks:i,compConthsData:S,showTopBtn:v,topInfo:g,bottomInfo:y,rangeTip:R,mothsViewScroll:P,getClass:k,isStartTip:G,isEndTip:ee,chooseDay:A,isCurrDay:H,confirm:N,months:c,...t.toRefs(m),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:p,viewArea:u}}}),im={class:"fox-calendar__header"},cm={key:0,class:"fox-calendar__header-title"},um={key:1,class:"fox-calendar__header-slot"},dm={key:2,class:"fox-calendar__header-subtitle"},fm={class:"fox-calendar__weekdays",ref:"weeksPanel"},mm={class:"fox-calendar__panel",ref:"monthsPanel"},pm={class:"fox-calendar__month-title"},hm={class:"fox-calendar__days"},gm=["onClick"],ym={class:"fox-calendar__day-value"},vm={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},bm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},km={key:2,class:"fox-calendar__day-tips--curr"},Sm={key:4,class:"fox-calendar__day-tip"},Cm={key:0,class:"fox-calendar__footer"};function wm(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",im,[e.showTitle?(t.openBlock(),t.createElementBlock("view",cm,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",dm,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",fm,[(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",mm,[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",pm,t.toDisplayString(s.title),1),t.createElementVNode("view",hm,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:p=>e.chooseDay(c,s)},[t.createElementVNode("view",ym,[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",vm,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",bm,[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",km,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",Sm,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,gm))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Cm,[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 Nm=oe(sm,[["render",wm]]),Bm=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=nt({...e},{poppable:!1});return t.h(pe,a,n)}else return n?.default?.()??null}}}),Am=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Cn={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}=J("calendar"),Tm=Vm({components:{Wrapper:Bm,CalendarPane:Nm},props:{...Cn},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)},d=()=>{i.value?.initPosition()};t.watch(()=>e.visible,g=>{g&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Ee({scrollToDate:c,initPosition:d});const p=()=>{n("update:visible",!1)},u=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{u()},update:p,close:u,select:g=>{n("select",g)},choose:g=>{u(),n("choose",g)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function $m(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 mo=oe(Tm,[["render",$m]]),Kr={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}},xo=(e,n)=>{let a;return Ye(e)?a=e:typeof e=="string"&&ke(e)>0?a=se.parser(e,n):a=new Date,a},mt=(e,n,a)=>(Ye(n)||(n=new Date),se.format(n,a)),pt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=se.date2Str(e),r=se.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function Em(e,n,a,o,{CloseIcon:l,MarkIcon:r},s=!1){return{props:{...ge,...ve,...Cn,...Kr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),S=h(i,["placeholder"]),v=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=[])},b=(P,X="one",O="YYYY-MM-DD")=>{if(Am(P)){m();return}if(g.value&&Array.isArray(P)&&P.length==2){let F,_;typeof P[0]=="string"?(F=xo(P[0],O),_=xo(P[1],O)):(F=P[0],_=P[1]);let Q=pt(F),te=pt(_);(y.startDate===null||y.startDate.getTime()!==F.getTime()||y.endDate?.getTime()!==_.getTime())&&(y.startDate=F,y.startArray=Q,y.endDate=_,y.endArray=te)}else{let F;typeof P=="string"?F=xo(P,O):F=P;let _=pt(F);(y.startDate===null||y.startDate.getTime()!==F.getTime())&&(y.startDate=F,y.startArray=_)}};b(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,P=>{b(P,i.type,i.valueFormat),u("setValue",P)});const f=t.computed(()=>{if(y.startDate===null)return"";if(g.value){let P=mt(i,y.startDate,i.format),X=mt(i,y.endDate,i.format);return`${P} ${i.rangeSeparator} ${X}`}else{let P=mt(i,y.startDate,i.format);return i.showWeek&&(P=`${P} ${y.startArray[4]}`),P}}),B=t.computed(()=>{if(y.startDate===null)return null;if(g.value){let P=se.date2Str(y.startDate),X=se.date2Str(y.endDate??new Date);return[P,X]}else return se.date2Str(y.startDate)}),w="fox-input-item",C=t.computed(()=>({[w]:!0,"is-disabled":d.value,"is-readonly":p.value})),k=Ve(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const P={};return k.value&&(P["text-align"]=k.value),P}),A=t.ref(!1),$=()=>{p.value||d.value||(A.value=!0)},T=P=>{A.value=P},K=P=>{if(P){if(g.value&&Array.isArray(P)){let X=P[0],O=he(X[0]),F=he(X[1]),_=he(X[2]),Q=new Date(O,F-1,_),te=P[1];O=he(te[0]),F=he(te[1]),_=he(te[2]);let L=new Date(O,F-1,_);if(y.startDate=Q,y.startArray=pt(Q),y.endDate=L,y.endArray=pt(L),i.valueFormat){let Y=mt(i,Q,i.valueFormat),I=mt(i,L,i.valueFormat);u("update:modelValue",[Y,I],{})}else u("update:modelValue",[Q,L],{})}else{let X=P,O=he(X[0]),F=he(X[1]),_=he(X[2]),Q=new Date(O,F-1,_);if(y.startDate=Q,y.startArray=pt(Q),i.valueFormat){let te=mt(i,Q,i.valueFormat);u("update:modelValue",te,{})}else u("update:modelValue",Q,{})}u("change",P,{})}},Z=P=>{let O=P.target.value;v.value=!0,u("focus",O,P)},E=P=>{setTimeout(()=>{v.value=!1},0);let O=P.target.value;i.maxLength&&O.length>Number(i.maxLength)&&(O=O.slice(0,Number(i.maxLength))),u("blur",O,P)},V=t.computed(()=>({[`${w}__append`]:!0,"is-disabled":d.value,"is-readonly":p.value})),q=t.computed(()=>ke(i.unit)>0),x=t.computed(()=>ke(i.unit)>0&&!v.value),z=t.computed(()=>({hidden:!x.value})),U=P=>{m(),u("update:modelValue",null,P),u("change","",P),u("clear","")},M=t.computed(()=>i.clearable&&!d.value&&!p.value),G=t.computed(()=>{let P=ke(f.value)>0;return i.clearable&&P&&v.value}),ee=P=>{G.value?U(P):$()},R=t.computed(()=>G.value&&M.value?l:r),H=t.computed(()=>({action:!0}));return()=>{const P={class:C.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:$,onFocus:Z,onBlur:E};s&&(P.disabled=!0);const X=[],O=t.h("input",P);X.push(O);const F=[],_={class:["action-icon"]},Q=t.h(R.value,_),te={class:H.value,onClick:ee},L=t.h("view",te,{default:()=>[Q]});if(F.push(L),q.value){const we=t.h("view",{class:z.value},[i.unit]);F.push(we)}const Y={class:V.value},I=t.h("view",Y,{default:()=>F});X.push(I);const D={default:()=>X};D.label=c.slots.default,D.prepend=c.slots.prepend,D.append=c.slots.append,D.fixedPreTip=c.slots.fixedPreTip,D.fixedTip=c.slots.fixedTip;const W=ye(i,Cn);W.visible=A.value,W["onUpdate:visible"]=T,W["default-value"]=B.value,W.onChoose=K;const j={};if(c.slots.btn){const we=c.slots.btn();j.btn=()=>we}c.slots.day&&(j.day=c.slots.day),c.slots.topInfo&&(j.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(j.bottomInfo=c.slots.bottomInfo);const ne=t.h(a,W,j);D.hide=()=>[ne];const re={...nt(i,Cn,Kr)};return i.prop&&(re.prop=`${i.prop}_item`),t.h(o,re,D)}}}}const{componentName:xm,create:Dm,scope:Im}=J("calendar-item"),El=Dm(Em(xm,Im,mo,Ne,{CloseIcon:le.CircleClose,MarkIcon:le.Date},!1)),qm={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 Pm(e,{CheckNormal:n,Checked:a}){return{props:{...qm},setup(o,{emit:l,slots:r}){const s=t.inject("parent",null),i=Qn(),c=t.computed(()=>s.label.value===o.label),d=t.computed(()=>s.position),p=()=>{const g=[];if(c.value){if(r.checkedIcon)return r.checkedIcon();{const y=de(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=de(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})}}},u=()=>{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?.())},S=()=>{c.value||o.disabled||o.readonly||s.updateValue(o.label)},v=d.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${v?`${e}--reverse`:""}`,onClick:S},[o.shape=="button"?h():v?[u(),p()]:[p(),u()]])}}}const{componentName:Mm,create:Lm}=J("radio"),po=Lm(Pm(Mm,{CheckNormal:le.CheckNormal,Checked:le.CheckChecked})),{componentName:Ur,create:zm}=J("radio-group"),ho=zm({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}=$t(),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:`${Ur} ${Ur}--${e.direction}`,style:l},n.default?.())}}});function Hr(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(wn(e,r)===a)return l}else if(o==="item"){if(Ie(a,r))return l}else if(Rt(e,r)===a)return l}return-1}function wn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Om(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Rm(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Fm=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=lt(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(De(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Km(){const e=t.getCurrentInstance();return new Fm(e.proxy)}function Um(e){return{text:e,value:e}}const jr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},Hm={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 Wm(e,n,a,o,l){return{props:{...ge,...ve,...jr,...Hm,...jm},emits:["change","update:modelValue","setValue"],setup(r,s){const i=Te(t.computed(()=>r.readonly)),c=$e(t.computed(()=>r.disabled)),d=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent: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),u=Km(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([m,b])=>{if(m){const f=await u.load("radio",m,b);if(f.length>0)if(typeof f[0]=="string"){const C=f.map(k=>Um(k));h.value=C}else h.value=f;else h.value=[]}},{immediate:!0});let S=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([m,b])=>{S.value=Hr(r,b,m,r.valueType),p("setValue",m)},{deep:!0});const v=t.computed(()=>{if(!r.source)return r.modelValue;if(S.value===-1)return null;const m=h.value[S.value];return Rt(r,m)}),g=m=>{let b=null,f=null;if(h.value.length>0){let B=Hr(r,h.value,m,"value");S.value=B,B>=0&&(f=h.value[B],r.valueType==="text"?b=wn(r,f):r.valueType==="item"?b=f:b=Rt(r,f))}else b=m;p("update:modelValue",b),p("change",b,f)},y=()=>{let m=null,b=null;if(h.value.length>0&&S.value!==-1){let f=h.value[S.value];r.valueType==="text"?m=wn(r,f):r.valueType==="item"?m=f:m=Rt(r,f)}p("update:modelValue",m),p("change",m,b)};if(Ee({clear(){S.value!==-1&&(S.value=-1,y())}}),r.source){const m=()=>{const b=[],f=ye(r,jr);return h.value.forEach((B,w)=>{const C=Rt(r,B),k=Om(r,B);let N={...f,label:C,disabled:k};const A=Rm(r,B,w);N={...N,...A},c.value&&(N.disabled=!0),i.value&&(N.readonly=!0);const $={};if(s.slots.icon&&($.icon=s.slots.icon),s.slots.checkedIcon&&($.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const K=s.slots.text(B);$.default=()=>[K]}else{const K=wn(r,B);$.default=()=>K}let T=t.h(l,N,$);b.push(T)}),b};return()=>{const b=m(),f={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:v,"onUpdate:modelValue":g},B=t.h(o,f,{default:()=>b}),w={default:()=>B};w.label=s.slots.default,w.prepend=s.slots.prepend,w.append=s.slots.append,w.fixedPreTip=s.slots.fixedPreTip,w.fixedTip=s.slots.fixedTip;const k={...ye(r,ve,ge)};return r.prop&&(k.prop=`${r.prop}_item`),t.h(a,k,w)}}else return()=>{const m=s.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:v,"update:modelValue":g},{default:()=>m})}}}}const{componentName:Ym,create:Xm,scope:Qm}=J("radio-item"),xl=Xm(Wm(Ym,Qm,Ne,ho,po)),Gm=(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}=$t(),i=Qn(),c=t.inject("parent",null),d=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,f=>{d.partialSelect=f});const p=t.computed(()=>!!c),u=t.computed(()=>p.value?c.value.value.includes(l.label):!!l.modelValue),h=t.computed(()=>p.value?c.position:l.textPosition);let S="";const v=(f,B)=>{S="click",s("update:modelValue",f),s("change",f,B)};t.watch(()=>l.modelValue,f=>{S=="click"?S="":s("change",f)});const g=()=>{const f=[];if(d.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const B=de(l.iconSize),w=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(w,{width:B,height:B,class:f})}}else if(u.value){if(r.checkedIcon)return r.checkedIcon();{const B=de(l.iconSize),w=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(w,{width:B,height:B,class:f})}}else{if(r.icon)return r.icon();{const B=de(l.iconSize),w=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(w,{width:B,height:B,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 u.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?.())},b=f=>{if(!(l.disabled||l.readonly)){if(u.value&&d.partialSelect){d.partialSelect=!1,v(u.value,r.default?.()[0].children);return}if(v(!u.value,r.default?.()[0].children),p.value){const B=c.value.value,w=c.max.value,{label:C}=l,k=B.indexOf(C);k>-1?B.splice(k,1):k<=-1&&(B.length<w||!w)&&B.push(C),c.updateValue(B)}}};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:b},[l.shape=="button"?m():[g(),y()]])}}),{componentName:Zm,create:Jm}=J("checkbox"),go=Jm(Gm(Zm,{CheckNormal:le.CheckNormal,Checked:le.Checked,Indeterminate:le.CheckDisabled})),{create:_m,componentName:Wr}=J("checkbox-group"),yo=_m({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}=$t(),o=t.reactive({children:[]}),l=d=>{d.proxy&&o.children.push(d.proxy)},r=d=>{d.proxy&&(o.children=o.children.filter(p=>p!==d.proxy))},s=d=>{a("update:modelValue",d),a("change",d)},i=d=>{const p=[];d&&o.children.forEach(u=>{u?.disabled||p.push(u?.label)}),a("update:modelValue",p)},c=()=>{const d=o.children.filter(p=>p?.disabled?!1:!e.modelValue.includes(p.label)).map(p=>p.label);a("update:modelValue",d)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:l,unlink:r}),t.watch(()=>e.modelValue,d=>{a("change",d)}),Ee({toggleAll:i,toggleReverse:c}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),t.h("view",{class:`${Wr} ${Wr}--${e.direction}`,style:d},n.default?.())}}});function Yr(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(el(e,r)===a)return l}else if(o==="item"){if(Ie(a,r))return l}else if(Nn(e,r)===a)return l}return-1}function el(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Nn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ep(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function tp(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let np=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=lt(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(De(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function op(){const e=t.getCurrentInstance();return new np(e.proxy)}function lp(e){return{text:e,value:e}}const ap={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Xr={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},rp={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 sp(e,n,a,o,l){return{props:{...ge,...ve,...ap,...Xr,...rp},emits:["change","update:modelValue","setValue"],setup(r,s){const i=$e(t.computed(()=>r.disabled)),c=Te(t.computed(()=>r.readonly)),d=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent: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),u=op(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([m,b])=>{if(m){const f=await u.load("checkbox",m,b);if(f.length>0)if(typeof f[0]=="string"){const C=f.map(k=>lp(k));h.value=C}else h.value=f;else h.value=[]}},{immediate:!0});const S=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([m,b])=>{const f=[];Array.isArray(m)&&m.forEach(B=>{let w=Yr(r,b,B,r.valueType);w!==-1&&f.push(w)}),!Ie(f,S.value)&&(S.value=f,p("setValue",f))},{deep:!0});const v=t.computed(()=>{if(!r.source)return r.modelValue;let m=[];return S.value.forEach(b=>{let f=h.value[b];m.push(Nn(r,f))}),m}),g=m=>{let b=[],f=[];if(h.value.length>0){const B=[];Array.isArray(m)&&m.forEach(w=>{let C=Yr(r,h.value,w,"value");C!==-1&&B.push(C);const k=h.value[C];f.push(k),r.valueType==="text"?b.push(el(r,k)):r.valueType==="item"?b.push(k):b.push(Nn(r,k))}),S.value=B}else b=m;p("update:modelValue",b),p("change",b,f)},y=t.ref();if(Ee({toggleAll:m=>{y.value.toggleAll(m)},toggleReverse:()=>{y.value.toggleReverse()}}),r.source){const m=()=>{const b=[],f=ye(r,Xr);return h.value.forEach((B,w)=>{const C=Nn(r,B),k=ep(r,B);let N={...f,label:C,disabled:k};const A=tp(r,B,w);N={...N,...A},i.value&&(N.disabled=!0),c.value&&(N.readonly=!0);const $={};if(s.slots.icon&&($.icon=s.slots.icon),s.slots.checkedIcon&&($.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&($.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const K=s.slots.text(B);$.default=()=>[K]}else{const K=el(r,B);$.default=()=>K}let T=t.h(l,N,$);b.push(T)}),b};return()=>{const b=m(),f={class:`${e}`,ref:y,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:v.value,"onUpdate:modelValue":g},B=t.h(o,f,{default:()=>b}),w={default:()=>B};w.label=s.slots.default,w.prepend=s.slots.prepend,w.append=s.slots.append,w.fixedPreTip=s.slots.fixedPreTip,w.fixedTip=s.slots.fixedTip;const k={...ye(r,ve,ge)};return r.prop&&(k.prop=`${r.prop}_item`),t.h(a,k,w)}}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:d.value,modelValue:v,"onUpdate:modelValue":g},{default:()=>m})}}}}const{componentName:ip,create:cp,scope:up}=J("checkbox-item"),Dl=cp(sp(ip,up,Ne,yo,go)),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:dp,create:fp}=J("switch"),mp=fp({components:{Loading1:le.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=dp;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}}}),pp={class:"fox-switch-button"};function hp(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",pp,[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 vo=oe(mp,[["render",hp]]);function gp(e,n,a,o){return{props:{...ge,...ve,...tl},emits:["change","update:modelValue","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),d=e,p=Me(l,"modelValue",null,c),u=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const S={...ye(l,tl),disabled:s.value||i.value,value:p.value,"onUpdate:modelValue":u},v=[],g=t.h(o,S);v.push(g);const y={default:()=>v};y.label=r.slots.default,y.fixedPreTip=r.slots.fixedPreTip,y.fixedTip=r.slots.fixedTip;const b={...ye(l,ve,ge)};return l.prop&&(b.prop=`${l.prop}_item`),b["content-class"]=d,t.h(a,b,y)}}}}const{componentName:yp,create:vp,scope:bp}=J("switch-item"),Il=vp(gp(yp,bp,Ne,vo));function kp(e,n,a,o){return{props:{...ge,...ve,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=ie.useFoxI18n(n),p=d(l,["placeholder"]),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,K=>{u.value=K,c("change",K)});const h=t.computed(()=>({[`${e}`]:!0})),S=t.computed(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&ue(u.value),"is-disabled":s.value,"is-readonly":i.value})),v=Ve(t.computed(()=>l.textAlign),"textAlign"),g=t.computed(()=>{const K={};return v.value&&(K["text-align"]=v.value),K}),y=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),m=t.computed(()=>ue(u.value)?p.placeholder.value:u.value),b=t.computed(()=>!ue(l.desc)||r.slots.sub),f=t.computed(()=>({[`${e}__sub`]:!0})),B=t.computed(()=>{const K={};return v.value&&(K["text-align"]=v.value),K}),w=()=>{c("focus",u.value)},C=()=>{c("blur",u.value)},k=t.computed(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),N=t.computed(()=>ke(l.unit)>0),A=K=>{s.value==!0||i.value==!0||c("click")},$=t.computed(()=>l.icon??a),T=t.computed(()=>({action:!0}));return()=>{const K=[];if(typeof r.slots.content=="function"){const H=r.slots.content();K.push(H)}else{const H=[];if(y.value){const O={tabIndex:0,class:S.value,style:g.value,onFocus:w,onBlur:C};let F=null;r.slots.main?F=t.h("view",O,[r.slots.main(m.value)]):F=t.h("view",O,[m.value]),H.push(F)}if(b.value){const O={tabIndex:0,class:f.value,style:B.value,onFocus:w,onBlur:C};let F=null;r.slots.sub?F=t.h("view",O,[r.slots.sub(l.desc)]):F=t.h("view",O,[l.desc]),H.push(F)}const P={class:h.value,onClick:A},X=t.h("view",P,H);K.push(X)}const Z=[],E=de(l.iconSize);let V=r.slots.icon;if(!V){const H={width:E,height:E,class:["action-icon"]};V=t.h($.value,H)}const q={class:T.value,onClick:A},x=t.h("view",q,{default:()=>[V]});if(Z.push(x),N.value){const H=t.h("view",{},[l.unit]);Z.push(H)}const z={class:k.value},U=t.h("view",z,{default:()=>Z});K.push(U);const M={default:()=>K};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 ee={...ye(l,ve,ge)};return l.prop&&(ee.prop=`${l.prop}_item`),t.h(o,ee,M)}}}}const{componentName:Sp,create:Cp,scope:wp}=J("link-item"),ql=Cp(kp(Sp,wp,le.ArrowRight,Ne)),nl={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:Np,componentName:Bp}=J("rate"),Ap=Np({props:{...nl},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[Bp]:!0})),r=S=>{n("update:modelValue",S),n("change",S)},s=(S,v)=>{if(e.disabled||e.readonly)return;let g=0;v===1&&e.modelValue===v||(g=v,e.allowHalf&&S==2&&(g-=.5)),r(g)},i=(S,v,g)=>{let y=0;for(let m=v.value.length-1;m>=0;m--){const b=v.value[m];if(S>b.offsetLeft){g?y=m+(S>b.offsetLeft+b.clientWidth/2?1:.5):y=m+1;break}}return y},c=at(),d={onTouchStart(S){!e.touchable||e.readonly||c.start(S)},onTouchMove(S){e.touchable&&(c.move(S),c.isHorizontal()&&o.value&&(S.preventDefault(),r(i(c.moveX.value,o,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),u=t.computed(()=>e.customIcon??le.StarFillN);return{classes:l,...d,onClick:s,toPxString:fe,renderIcon:(S,v)=>t.h(S,v),rateRefs:o,refRandomId:p,slots:a,customIcon:u}}}),Vp=["id"],Tp={class:"fox-rate-item__icon--full"},$p={key:0,class:"fox-rate-item__icon--half"},Ep={key:1,class:"fox-rate-item__icon--half"};function xp(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",Tp,[(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",$p,[(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",Ep,[(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 Bt=oe(Ap,[["render",xp]]);function Dp(e,n,a,o){return{props:{...ge,...ve,...nl},emits:["change","update:modelValue","setValue"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),d=e,p=Me(l,"modelValue",null,c),u=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const S={...ye(l,nl),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":u},v=[],g=t.h(o,S);v.push(g);const y={default:()=>v};if(r.slots.default){const f=r.slots.default();y.label=()=>f}const m=ye(l,ve,ge);return l.prop&&(m.prop=`${l.prop}_item`),m["content-class"]=d,t.h(a,m,y)}}}}const{componentName:Ip,create:qp,scope:Pp}=J("rate-item"),Pl=qp(Dp(Ip,Pp,Ne,Bt)),Mp=/scroll|auto|overlay/i,Js=window;function Lp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function ol(e,n=Js){let a=e;for(;a&&a!==n&&Lp(a);){const{overflowY:o}=window.getComputedStyle(a);if(Mp.test(o))return a;a=a.parentNode}return n}function _s(e,n=Js){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=ol(e.value,n))}),a}const ei=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,zp={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 Op(e,n,a){return{props:{...zp},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["pullText","loadText","noMoreText"]),c=t.ref(),d=_s(c),p=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),u=t.computed(()=>({[e]:!0})),h=b=>b?b.offsetTop+h(b.offsetParent):0,S=()=>{let b=0,f=0,B="down";if(d.value==window){const w=ei();c.value&&(b=h(c.value)+c.value.offsetHeight-w-window.innerHeight),f=w}else{const{scrollHeight:w,clientHeight:C,scrollTop:k}=d.value;b=w-C-k,f=k}return p.beforeScrollTop>f?B="up":B="down",p.beforeScrollTop=f,l("scroll-change",f),b<=o.threshold&&B=="down"},v=()=>{Ze(()=>{if(!S()||!o.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,l("update:modelValue",!0),t.nextTick(()=>l("load-more"))})},g=()=>{d.value&&d.value.addEventListener("scroll",v,o.useCapture)},y=()=>{d.value&&d.value.removeEventListener("scroll",v,o.useCapture)};t.onMounted(()=>{g(),o.immediate&&v()}),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,b=>{b||(p.isInfiniting=!1)}),()=>{const b={class:"fox-infinite__container"},f=t.h("view",b,[r?.default?.()]),B=[];if(p.isInfiniting){let N=r?.loading?.()??null;if(!N){let T=r?.loadingIcon?.()??null;if(!T){const E={class:["fox-infinite__bottom-box__img"]};T=t.h(a,E)}const K={class:"fox-infinite__bottom-box__text"},Z=t.h("view",K,[i.loadText.value]);N=[T,Z]}const A={class:"fox-infinite__bottom-box"},$=t.h("view",A,N);B.push($)}else if(!o.hasMore){let N=r?.finished?.()??null;if(!N){const A={class:"fox-infinite__bottom-tips"};N=t.h("view",A,[i.noMoreText.value]),B.push(N)}}const w={class:"fox-infinite__bottom"},C=t.h("view",w,B),k={class:u.value,ref:c};return t.h("view",k,[f,C])}}}}const{componentName:Rp,create:Fp,scope:Kp}=J("infinite-loading"),bo=Fp(Op(Rp,Kp,le.Loading)),{componentName:Up,create:Hp}=J("button"),jp=Hp({components:{Loading:le.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:o,size:l,shape:r,disabled:s,loading:i,color:c,plain:d,block:p}=t.toRefs(e),u=v=>{!i.value&&!s.value&&n("click",v)},h=t.computed(()=>{const v=Up;return{[v]:!0,[`${v}--${o.value}`]:o.value,[`${v}--${l.value}`]:l.value,[`${v}--${r.value}`]:r.value,[`${v}--plain`]:d.value,[`${v}--block`]:p.value,[`${v}--disabled`]:s.value,[`${v}--loading`]:i.value}}),S=t.computed(()=>{const v={};return c?.value&&(d.value?(v.color=c.value,v.background="#fff",c.value?.includes("gradient")||(v.borderColor=c.value)):(v.color="#fff",v.background=c.value)),v});return{handleClick:u,classes:h,getStyle:S}}}),Wp={class:"fox-button__wrap"};function Yp(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",Wp,[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 Oe=oe(jp,[["render",Yp]]),Xp={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"}},Qp=(e,n,a)=>({props:{...Xp},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}=$t(),{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["placeholder"]),c=t.reactive({active:!1}),d=t.computed(()=>({background:o.background})),p=t.computed(()=>({background:o.inputBackground})),u=A=>{let T=A.target.value;o.maxLength&&T.length>Number(o.maxLength)&&(T=T.slice(0,Number(o.maxLength))),r("update:modelValue",T,A),r("change",T,A)},h=t.ref({}),S=A=>{let T=A.target.value;c.active=!0,h.value=o.focusStyle,r("focus",T,A)},v=A=>{setTimeout(()=>{c.active=!1},0);let T=A.target.value;o.maxLength&&T.length>Number(o.maxLength)&&(T=T.slice(0,Number(o.maxLength))),h.value={},r("blur",T,A)},g=A=>{r("update:modelValue","",A),r("change","",A),r("clear","")},y=t.computed(()=>String(o.modelValue).length>0),m=t.computed(()=>{const A={};return y.value||(A.display="none"),A}),b=A=>{o.autoblur&&k.value?.blur(),(typeof A.cancelable!="boolean"||A.cancelable)&&A.preventDefault(),r("search",o.modelValue)},f=A=>{r("keyup-input",A)},B=A=>{r("click-input",A)},w=A=>{r("click-left-icon",o.modelValue,A)},C=t.computed(()=>({textAlign:o.inputAlign})),k=t.ref(null);t.onMounted(()=>{o.autofocus&&k.value.focus()});const N=()=>{const A=[];if(l.leftin){const q={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:w},x=t.h("view",q,[l.leftin()]);A.push(x)}const $={class:`${e}__input-inner-input`,ref:k,style:C.value,type:o.inputType,maxlengt:o.maxLength,placeholder:i.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:B,onInput:u,onFocus:S,onBlur:v,onkeyup:f},T=t.h("input",$),K={class:[`${e}__input-inner`],action:"#",onSubmit:b},Z=t.h("form",K,[T]);A.push(Z);const E=[];if(o.clearable){const q={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:m.value,onClick:g},x=l?.clear?.()??o.clearIcon??a,z=t.h("view",q,[t.h(x)]);E.push(z)}if(l.rightin){const q={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},x=t.h("view",q,[l.rightin()]);E.push(x)}if(E.length>0){const q={class:`${e}__input-inner-right`},x=t.h("view",q,E);A.push(x)}const V={class:[`${e}__search-input`,`${o.shape}`],style:{...p.value,...h.value}};return t.h("view",V,A)};return()=>{const A=[];if(o.label){const K={class:`${e}__search-label`},Z=t.h("span",K,[o.label]);A.push(Z)}if(l.leftout){const K={class:[`${e}__search-icon`,`${e}__left-search-icon`]},Z=t.h("view",K,[l.leftout()]);A.push(Z)}const $=N();if(A.push($),l.rightout){const K={class:[`${e}__search-icon`,`${e}__right-search-icon`]},Z=t.h("view",K,[l.rightout()]);A.push(Z)}const T={class:`${e}`,style:d.value};return t.h("view",T,A)}}}),{componentName:Gp,create:Zp,scope:Jp}=J("searchbar"),ko=Zp(Qp(Gp,Jp,le.CircleClose)),Bn={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 _p(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(An(e,r)===a)return l}else if(o==="item"){if(Ie(a,r))return l}else if(ti(e,r)===a)return l}return-1}function An(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Qr(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function ti(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function eh(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function th(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let nh=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let d=a;typeof i=="function"&&(d=d.filter(i));let p=(o-1)*l,u=p+l;u>d.length&&(u=d.length);const h=d.slice(p,u);return{totalSize:d.length,page:h}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s]);const c=lt(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(De(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r]))}};function oh(){const e=t.getCurrentInstance();return new nh(e.proxy)}function lh(e,n,a,o,l,r,s,i,c,d,p){return{props:{...Bn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(u,{slots:h}){const{emitEvent:S}=$t(),{toLocaleRefs:v}=ie.useFoxI18n(n),g=v(u,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),y=oh(),m=t.ref([]),b=t.ref(0),f=t.ref(""),B=t.shallowRef(null),w=t.computed(()=>{const L={};return u.params&&Object.assign(L,u.params),ue(f.value)||(L[`${u.searchKey}`]=f.value),B.value&&Object.assign(L,B.value),L});let C=!0;const k=async(L,Y,I)=>{try{if(A.value===!1)return;let D=null;ue(f.value)||(D=j=>{const ne=An(u,j);if(typeof ne=="string"&&ne.includes(f.value))return!0;const ae=Qr(u,j);return!!(typeof ae=="string"&&ae.includes(f.value))});const W=await y.load("actionsheet",L,Y,I,w.value,C,D??void 0);C=!1,Array.isArray(W)?(m.value=W,b.value=1,A.value=!1):!Array.isArray(W.page)||W.page.length===0?(console.warn("[FoxUI] can not load more data"),A.value=!1):(Reflect.apply([].push,m.value,W.page),b.value=Math.ceil(m.value.length/u.pageSize),(W.totalSize&&m.value.length>=W.totalSize||I<W.page.length)&&(A.value=!1)),N.value=!1}catch(D){console.error("[FoxUI] ActionSheet load more data fail",D),A.value=!0,b.value=0,m.value=[]}setTimeout(()=>{S("loaded-data")},250)},N=t.ref(!1),A=t.ref(!0),$=async()=>{if(!u.source){N.value=!1;return}await k(u.source,b.value+1,u.pageSize)};let T=null;t.watch(f,(L,Y)=>{T&&(clearTimeout(T),T=null),ue(L)&&!ue(Y)&&(T=setTimeout(()=>{Z()},u.searchDelayTriggerClear))});const K=()=>{A.value=!0,b.value=0,m.value=[],u.source&&$()},Z=()=>{K()};t.watch([()=>u.source,()=>u.pageSize,()=>u.params],async([L,Y,I])=>{u.source&&K()},{immediate:!0});const E=t.computed(()=>!u.multiple&&u.isAutoBackFill),V=t.ref([]);let q=null;const x=t.ref(u.visible);t.watch(()=>u.visible,L=>{x.value!==L&&(x.value=L),L?q=[...V.value]:q=null});const z=(L,Y)=>{const I=[];return Array.isArray(L)||(L=[L]),L.forEach(D=>{let W=_p(u,Y,D,u.valueType);W!==-1&&I.push(W)}),Ie(I,V.value)?!1:(V.value=I,!0)};t.watch([()=>u.modelValue,()=>m.value],([L,Y],[I,D])=>{if(z(L,Y)){const j=U();M(j)}},{deep:!0});const U=()=>{const L=[],Y=[],I=[];for(let ne of V.value){const ae=m.value[ne];Y.push(ae);const re=An(u,ae);if(I.push(re),u.valueType==="item")L.push(ae);else if(u.valueType==="text")L.push(re);else{const me=ti(u,ae);L.push(me)}}let D=null,W=null,j=null;return u.multiple?(D=L,W=I,j=Y):(D=L[0]??null,W=I[0]??null,j=Y[0]??null),{value:D,text:W,item:j}},M=L=>{S("update:modelValue",L.value),S("update:text",L.text),S("change",L.value,L.item,L.text)},G=()=>{q&&(V.value=q)},ee=L=>{const Y=V.value.indexOf(L);u.multiple?Y===-1?V.value.push(L):V.value.splice(Y,1):Y===-1?V.value=[L]:V.value=[],(E.value||!u.poppable&&!u.showFooter)&&P()},R=L=>{x.value=L,S("update:visible",L)},H=()=>{const L=()=>{G(),R(!1)},Y=u.beforeMethod??u.beforeClose;if(typeof Y=="function"){const I=Y("close");kt(I)?I.then(D=>{D!==!1&&L()}).catch(()=>{L()}):I!==!1&&L()}else L()},P=()=>{const L=U(),Y=()=>{M(L),R(!1)},I=u.beforeMethod??u.beforeClose;if(typeof I=="function"){const D=I("confirm",L.value,L.item,L.text);kt(D)?D.then(W=>{W!==!1&&Y()}).catch(()=>{Y()}):D!==!1&&Y()}else Y()},X=()=>{let L=g.title.value??"";h.title&&(L=h.title());const Y=t.h("view",{class:["fox-actionsheet__header-title"]},[L]),I=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:H});return t.h("view",{class:["fox-actionsheet__header"]},[Y,I])},O=()=>{let L=null;if(h.search)L=h.search();else{const Y={onSearch:K,placeholder:g.seachPlaceholder.value,disabled:u.disabled,modelValue:f.value,"onUpdate:modelValue":I=>{f.value=I}};L=t.h(r,Y,{leftin:()=>t.h(d)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[L])},F=(L,Y,I,D,W)=>{if(h.optionLabel)return h.optionLabel({text:L,checked:Y,disabled:I,subText:D,item:W});const j=[],ne=t.h("view",{class:"fox-actionsheet__list-item-text"},[L]);if(j.push(ne),D){const ae=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[D]);j.push(ae)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},j)},_=(L,Y,I,D)=>{if(h.optionIcon)return h.optionIcon({checked:L,disabled:Y,iconSize:I,item:D});if(L){if(h.checkedIcon)return h.checkedIcon({disabled:Y,item:D});{const W=u.checkedIcon??i;return t.h(W,{width:I,height:I,class:["fox-actionsheet__list-item-icon"]})}}else{if(h.icon)return h.icon({disabled:Y,item:D});{const W=u.icon??s;return t.h(W,{width:I,height:I,class:["fox-actionsheet__list-item-icon"]})}}},Q=()=>{const L=[];for(let Y=0;Y<m.value.length;Y++){const I=m.value[Y],D=An(u,I),W=Qr(u,I),j=["fox-actionsheet__list-item"],ne={};let ae=eh(u,I),re=u.iconSize?de(u.iconSize):null;const me=th(u,I,Y);me&&(ae=ae||me.disabled,me.class&&j.push(me.class),me.style&&Object.assign(ne,me.style)),ae=!!(u.disabled||ae);const we=V.value.includes(Y);ae&&j.push("is-disabled"),we&&j.push("is-checked");const Qe={class:j,style:ne,key:`${Y}`,onClick:()=>{ae||ee(Y)}};let Ge=[];if(h.option)Ge.push(h.option({item:I,checked:we,disabled:ae}));else{const ft=F(D,we,ae,W,I);Ge.push(ft);const wo=_(we,ae,re,I);Ge.push(wo),u.textPosition==="right"&&Ge.reverse()}const He=t.h("view",Qe,Ge);L.push(He)}return L},te=()=>{let L=[];if(h.buttons)L=h.buttons();else{const I=t.h(l,{type:"primary",block:"block",onClick:P,disabled:u.disabled},{default:()=>g.confirmText.value});L.push(I)}return t.h("view",{class:"fox-actionsheet__footer"},[L])};return Ee({search:async(L=null,Y=!0)=>{B.value=L&&t.toRaw(L),t.triggerRef(B),Y&&(A.value=!0,b.value=0,m.value=[]),t.nextTick(()=>{$()})},clear:()=>{A.value=!0,b.value=0,m.value=[]},confirm:()=>{P()},cancel:()=>{H()}}),()=>{const L=[];if(u.showHeader){const re=X();L.push(re)}if(u.showSearchbar){const re=O();L.push(re)}let Y=null;if(h.content)Y=h.content();else{const re=Q(),me={hasMore:A.value,loadText:g.loadText.value,noMoreText:g.noMoreText.value,modelValue:N.value,"onUpdate:modelValue":we=>{N.value=we},onLoadMore:$};Y=t.h(o,me,{default:()=>re})}const I={};u.optionsHeight&&(I.height=u.optionsHeight);const D={"fox-actionsheet__list":!0};u.poppable||(D["fox-actionsheet__list--inner"]=!0);const W=t.h("view",{class:D,style:I},[Y]);if(L.push(W),u.showFooter&&!E.value){const re=te();L.push(re)}const j=t.h("view",{class:"fox-actionsheet"},L);if(!u.poppable)return j;const ne=["fox-actionsheet__popup"];u.popClass&&ne.push(u.popClass);const ae={popClass:ne.join(" "),visible:x.value,closeable:!1,"onUpdate:visible":R,position:u.position,round:"round",onClickOverlay:H,closeOnClickOverlay:u.closeOnClickOverlay};return t.h(a,ae,{default:()=>j})}}}}const{componentName:ah,create:rh,scope:sh}=J("actionsheet-pane"),So=rh(lh(ah,sh,pe,bo,Oe,ko,le.CheckNormal,le.Checked,le.Close,le.Search2)),Gr={type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function ih(e,n,a,o,l,r,s){return{props:{...ge,...ve,...Gr,...Bn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,c){const d=$e(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return d.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),S=h(i,["placeholder"]),v=t.ref(!1),g=Me(i,"modelValue",null,u),y=t.ref(""),m=t.computed(()=>Array.isArray(y.value)?y.value.join(i.separator):y.value),b="fox-input-item",f=t.computed(()=>({[b]:!0,"is-disabled":d.value,"is-readonly":p.value})),B=Ve(t.computed(()=>i.textAlign),"textAlign"),w=t.computed(()=>{const P={};return B.value&&(P["text-align"]=B.value),P}),C=t.ref(!1),k=()=>{C.value=!0},N=P=>{C.value=P},A=P=>{g.value=P,u("update:modelValue",P)},$=(P,X)=>{u("change",P,X)},T=P=>{let O=P.target.value;v.value=!0,u("focus",O,P)},K=P=>{setTimeout(()=>{v.value=!1},0);let O=P.target.value;i.maxLength&&O.length>Number(i.maxLength)&&(O=O.slice(0,Number(i.maxLength))),u("blur",O,P)},Z=P=>{y.value=P,u("update:text",P)},E=t.computed(()=>({[`${b}__append`]:!0,"is-disabled":d.value,"is-readonly":p.value})),V=t.computed(()=>ke(i.unit)>0),q=t.computed(()=>ke(i.unit)>0&&!v.value),x=t.computed(()=>({hidden:!q.value})),z=P=>{g.value="",u("update:modelValue","",P),u("change","",P),u("clear","")},U=t.computed(()=>i.clearable&&!d.value&&!p.value),M=t.computed(()=>ke(g.value)>0&&v.value),G=P=>{M.value?z(P):k()},ee=t.computed(()=>M.value&&U.value?o:l),R=t.computed(()=>({action:!0})),H=t.ref(null);return Ee({search:P=>{H.value&&H.value.search(P)},clear:()=>{H.value&&H.value.clear},confirm:P=>{H.value&&H.value.confirm()},cancel:()=>{H.value&&H.value.cancel()}}),()=>{const P={class:f.value,style:w.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:k,onFocus:T,onBlur:K},X=[],O=t.h("input",P);X.push(O);const F=[],_={class:["action-icon"]},Q=t.h(ee.value,_),te={class:R.value,onClick:G},L=t.h("view",te,{default:()=>[Q]});if(F.push(L),V.value){const we=t.h("view",{class:x.value},[i.unit]);F.push(we)}const Y={class:E.value},I=t.h("view",Y,{default:()=>F});X.push(I);const D={default:()=>X};D.label=c.slots.default,D.prepend=c.slots.prepend,D.append=c.slots.append,D.fixedPreTip=c.slots.fixedPreTip,D.fixedTip=c.slots.fixedTip;const W=ye(i,Bn);W.ref=H,W.class=i.actionsheetProps,W.disabled=d.value||p.value,W.visible=C.value,W["onUpdate:visible"]=N,W.modelValue=g.value,W["onUpdate:modelValue"]=A,W.text=y.value,W["onUpdate:text"]=Z,W.onChange=$,W.poppable=!0,W["text-position"]=i.textPosition;const j={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},ne=t.h(r,W,j);D.hide=()=>[ne];const re={...nt(i,Gr,Bn)};return i.prop&&(re.prop=`${i.prop}_item`),t.h(a,re,D)}}}}const{componentName:ch,create:uh,scope:dh}=J("actionsheet-item"),Ml=uh(ih(ch,dh,Ne,le.CircleClose,le.ArrowRight,So)),ll={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:fh,create:mh}=J("input-number"),ph=mh({components:{Minus:le.Minus,Plus:le.Plus},props:{...ll},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const S=fh;return{[S]:!0,[`${S}--disabled`]:e.disabled}}),o=S=>Number(S).toFixed(Number(e.decimalPlaces)),l=S=>{const v=S.target;n("update:modelValue",v.valueAsNumber,S)},r=(S,v)=>{let g=o(S);n("update:modelValue",g,v),n("change",g,v)},s=(S=Number(e.modelValue))=>S<Number(e.max)&&!e.disabled,i=(S=Number(e.modelValue))=>S>Number(e.min)&&!e.disabled,c=S=>{if(n("reduce",S),i()){let v=Number(e.modelValue)-Number(e.step);r(v,S)}else n("overlimit",S,"reduce")},d=S=>{if(n("add",S),s()){let v=Number(e.modelValue)+Number(e.step);r(v,S)}else n("overlimit",S,"add")},p=S=>{e.disabled||e.readonly||n("focus",S)},u=S=>{if(e.disabled||e.readonly)return;let g=S.target.valueAsNumber;g<Number(e.min)?g=Number(e.min):g>Number(e.max)&&(g=Number(e.max)),r(g,S),n("blur",S)},h=S=>{let v=Number(S);return v<Number(e.min)?v=Number(e.min):v>Number(e.max)&&(v=Number(e.max)),v};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const S=h(e.modelValue);S!==Number(e.modelValue)&&r(S,{})}),{classes:a,change:l,blur:u,focus:p,add:d,addAllow:s,reduce:c,reduceAllow:i,toPxString:fe}}}),hh=["min","max","disabled","readonly","value"];function gh(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,hh),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 et=oe(ph,[["render",gh]]);function yh(e,n,a,o){return{props:{...ge,...ve,...ll},emits:["change","update:modelValue","setValue","add","reduce"],setup(l,r){const s=$e(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),d=t.computed(()=>{const v=[`${e}`];return l.textAlign==="left"?v.push("is-left"):l.textAlign==="center"?v.push("is-center"):l.textAlign==="right"&&v.push("is-right"),v.join(" ")}),p=Me(l,"modelValue",null,c),u=v=>{p.value=v,c("update:modelValue",v,{}),c("change",v,{})},h=v=>{c("add",v)},S=v=>{c("reduce",v)};return()=>{const v={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},g=ye(l,ll),m={...r.attrs,...g,disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":u,onAdd:h,onReduce:S},b=t.h(o,m,v),f=[];f.push(b);const B={default:()=>f};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const C={...ye(l,ve,ge)};return l.prop&&(C.prop=`${l.prop}_item`),C["content-class"]=d.value,t.h(a,C,B)}}}}const{componentName:vh,create:bh,scope:kh}=J("input-number-item"),Ll=bh(yh(vh,kh,Ne,et));function Sh(e,n,a,o){return{props:{...Go,...Zo,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}),d=t.computed(()=>{const g={};if(l.width){const y=fe(l.width);y&&(g.width=y)}if(l.height){const y=fe(l.height);y&&(g.height=y)}return g}),p=t.computed(()=>[`${i}__bars`]),u=t.computed(()=>[`${i}__container`]),h=t.ref(l.modelValue);t.watch(()=>l.modelValue,g=>{h.value!==g&&(h.value=g)});const S=g=>{r("change",g)},v=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 N=0;N<g.length;N++){const A=g[N].props??{},$={text:A.label??"",value:A["pane-key"]??A.paneKey??""};y.push($)}const m={};for(let N in s)N!=="default"&&(m[N]=s[N]);const b=ye(l,Go);Object.assign(b,{data:y,class:p.value,modelValue:h.value,direction:l.direction,onChange:S,"onUpdate:modelValue":v});const f=t.h(a,b,m),B={default:()=>g},w=ye(l,Zo);Object.assign(w,{class:u.value,modelValue:h.value,onChange:S,"onUpdate:modelValue":v});const C=t.h(o,w,B),k={class:c.value,style:d.value};return t.h("view",k,[f,C])}}}}const{create:Ch,componentName:wh,scope:Nh}=J("tabs-frame"),zl=Ch(Sh(wh,Nh,ln,an)),Bh={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 Ah(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Zr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Jr(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 Do(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function _r(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function es(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Io(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Th=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=lt(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(De(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(l,null,[a,o]))}};function $h(){const e=t.getCurrentInstance();return new Th(e.proxy)}function Eh(e,n,a,o){return{props:{...Bh},emits:["update:modelValue","change","loaded-data","click"],setup(l,{slots:r,emit:s}){const i=e,c=$h(),d=t.ref([]),p=t.computed(()=>d.value.filter(R=>Vh(l,R)!==!1)),u=t.ref(-1),h=()=>{const R=l.modelValue,H=p.value.findIndex(P=>Zr(l,P)===R);u.value!==H&&(u.value=H,l.scroll&&G(H))};t.watch([()=>l.modelValue,p],()=>{h()});const S=R=>u.value===R,v=R=>{if(R<0&&R>=p.value.length)return!1;const H=p.value[R],X=(Io(l,H,R)??{}).status??Do(l,H);return S(R)||X},g=t.computed(()=>{const R={[i]:!0};return l.mode?R[`is-${l.mode}`]=!0:l.direction&&(R[`is-${l.direction}`]=!0),l.scroll&&(R["is-scroll"]=!0),R}),y=t.computed(()=>({})),m=(R,H,P,X,O)=>{const F={[`${i}__step`]:!0};return O&&(F[`${O}`]=!0),F[`${b.value}`]=!0,X&&(F["is-doit"]=!0),R===u.value?F["is-active"]=!0:H==="done"?F["is-done"]=!0:H==="error"?F["is-error"]=!0:H==="half"?F["is-half"]=!0:P?F["is-disabled"]=!0:F["is-normal"]=!0,F},b=t.computed(()=>{let R=l.align;if(!R){if(l.mode==="simple")return"start";l.direction==="vertical"?R="start":R="center"}return R}),f=(R,H={})=>{const P={...H};if(b.value==="start"&&R===p.value.length-1)P.flex="0 0 auto";else if(l.step){const X=typeof l.step=="number"||Fn(l.step)?fe(l.step):l.step;l.direction==="vertical"?P.height=X:P.width=X}else P.flex="1 1 100%";return P},B=(R,H)=>{let P={};if(H<p.value.length-1){const X=H+1;v(H)&&v(X)?l.direction==="vertical"?P.height="100%":P.width="100%":P.opacity="0"}return P},w=R=>p.value.length-1===R,C=(R,H)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&H>u.value||u.value===H)return;const P=u.value,X=H;u.value=H,l.scroll&&G(H);const O=Zr(l,R);s("update:modelValue",O);const F={fromIndex:P,currentIndex:X,item:R,items:p.value,clickNavigatePolicy:l.clickNavigatePolicy};s("change",O,F)},k=t.ref(!0),N=async(R,H)=>{try{const P=await c.load("stesbar",R,H);Array.isArray(P)&&(d.value=P),k.value=!1}catch(P){console.error("[FoxUI] Load StepsBar Data Fail",P),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([R,H])=>{R&&N(R,H)},{immediate:!0});const A=(R,H,P,X,O,F)=>{const _=[];let Q=null;if(!F)if(r.icon)Q=r.icon({item:R,index:H,status:X});else if(X==="done"){const L={};l.iconSize&&(L.width=l.iconSize,L.height=l.iconSize);const Y=l.icon??a;Q=t.h(Y,L)}else{const L=P??`${H+1}`;Q=t.h("span",{},[L])}Q&&_.push(Q);const te={class:"fox-steps-bar__icon",onClick:()=>{s("click",{item:R,index:H}),!O&&C(R,H)}};return t.h("view",te,_)},$=(R,H,P)=>{const X=t.h("i",{class:"fox-steps-bar__line-inner",style:B(R,H)});return t.h("view",{class:"fox-steps-bar__line"},[X])},T=()=>{let R=null;if(r.markIcon)R=r.markIcon();else{const P={};l.iconSize&&(P.width=l.markIconSize,P.height=l.markIconSize);const X=l.markIcon??o;R=t.h(X,P)}return t.h("view",{class:"fox-steps-bar__mark"},[R])},K=(R,H,P,X,O,F)=>{const _=[];if(!w(H)){const L=$(R,H);_.push(L)}const Q=A(R,H,P,X,O,F);_.push(Q);const te={class:"fox-steps-bar__head"};return t.h("view",te,_)},Z=(R,H,P,X)=>{let O=null;r.main?O=r.main({item:R,index:H,status:P}):O=Ah(l,R);const F={class:"fox-steps-bar__main",onClick:()=>{s("click",{item:R,index:H}),!X&&C(R,H)}};return t.h("view",F,[O])},E=(R,H,P)=>{let X=null;if(r.sub){X=r.sub({item:R,index:H,status:P});const O={class:"fox-steps-bar__sub"};return t.h("view",O,[X])}return null},V=(R,H)=>{const P=Io(l,R,H)??{},X=P.status??Do(l,R);let O=Jr(l,R);P.disabled===!0&&(O=!0),l.disabled===!0&&(O=!0);let F=_r(l,R);P.doit===!0&&(F=!0);const _=P.label??es(l,R),Q=[],te=A(R,H,_,X,O,F);te&&Q.push(te);const L=Z(R,H,X,O);if(L&&Q.push(L),!w(H)){const j=$(R,H);j&&Q.push(j)}const Y=t.h("view",{class:"fox-steps-bar__head"},Q),I=P.class,D=P.style??{},W={ref:M(H),class:m(H,X,O,F,I),style:f(H,D)};return t.h("view",W,[Y])},q=(R,H)=>{const P=Io(l,R,H)??{},X=P.status??Do(l,R);let O=Jr(l,R);P.disabled===!0&&(O=!0),l.disabled===!0&&(O=!0);let F=_r(l,R);P.doit===!0&&(F=!0);const _=P.label??es(l,R),Q=[],te=l.layout;for(let D of te)if(D==="head"){const W=K(R,H,_,X,O,F);Q.push(W)}else if(D==="main"){const W=Z(R,H,X,O);Q.push(W)}else if(D==="sub"){const W=E(R,H,X);Q.push(W)}else if(D==="mark"){const W=T();Q.push(W)}const L=P.class,Y=P.style??{},I={ref:M(H),class:m(H,X,O,F,L),style:f(H,Y)};return t.h("view",I,Q)},x=t.ref(),z=t.ref([]),U=(R,H)=>{z.value[H]=R},M=R=>H=>{U(H,R)},G=(R,H)=>{const P=x.value,X=z.value;if(!P||!X||!X[R])return;const O=X[R];let F=0;l.direction==="vertical"?F=O.offsetTop-(P.offsetHeight-O.offsetHeight)/2:F=O.offsetLeft-(P.offsetWidth-O.offsetWidth)/2,ee(P,F,.3,l.direction)},ee=(R,H,P,X)=>{let O=0;const F=X==="horizontal"?R.scrollLeft:R.scrollTop,_=Math.round(P*1e3/16);function Q(){X==="horizontal"?R.scrollLeft+=(H-F)/_:R.scrollTop+=(H-F)/_,++O<_&&je(Q)}Q()};return()=>{let R=[];if(l.mode==="simple")for(let P=0;P<p.value.length;P++){const X=p.value[P],O=V(X,P);R.push(O)}else for(let P=0;P<p.value.length;P++){const X=p.value[P],O=q(X,P);R.push(O)}const H={ref:x,class:g.value,style:y.value};return R.length===0&&typeof r.default=="function"&&(R=r.default()),t.h("view",H,R)}}}}const{componentName:xh,create:Dh,scope:Ih}=J("steps-bar"),Ol=Dh(Eh(xh,Ih,le.Checklist,le.ArrowRight));function qh(e){e.stopPropagation()}class Ph{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=so()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=io(),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),qh(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 Mh(e,n){return new Ph(e,n)}const Lh={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]}},zh=(e,n,a,o=!1)=>({props:{...Lh},emits:["click"],setup(l,{slots:r,emit:s}){let i=-1,c=-1;const d=t.reactive({top:l.top,right:l.right,bottom:l.bottom,left:l.left,width:0,height:0}),p=t.computed(()=>{const w=[`${e}`];return l.customClass&&w.push(l.customClass),w}),u=w=>typeof w=="string"&&!Fn(w)?w:`${w}px`,h=t.computed(()=>{const w={};return ue(d.top)||(w.top=u(d.top)),ue(d.right)||(w.right=u(d.right)),ue(d.bottom)||(w.bottom=u(d.bottom)),ue(d.left)||(w.left=u(d.left)),ue(l.width)||(w.width=u(l.width)),ue(l.height)||(w.height=u(l.height)),ue(l.color)||(w.color=l.color),ue(l.background)||(w.background=l.background),ue(l.borderRadius)||(w["border-radius"]=l.borderRadius),ue(l.zIndex)||(w["z-index"]=l.zIndex),w}),S=t.computed(()=>({[`${e}__icon`]:!0})),v=()=>{s("click")},g=t.ref(null),y=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},m={x:0,y:0},B=Mh(w=>{if(!g.value)return;const C=g.value;y(),d.left=C.offsetLeft,d.top=C.offsetTop,C.style.left=`${d.left}px`,C.style.top=`${d.top}px`,C.style.right=null,C.style.bottom=null,m.x=d.left,m.y=d.top,d.width=C.offsetWidth,d.height=C.offsetHeight,i=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight},w=>{if(!g.value)return;const C=g.value;y();let k=m.x+w.x;k<0&&(k=0),k>i-d.width&&(k=i-d.width);let N=m.y+w.y;N<0&&(N=0),N>c-d.height&&(N=c-d.height),d.left=k,d.top=N,C.style.left=`${k}px`,C.style.top=`${N}px`});return t.onMounted(()=>{if(l.draggable&&g.value){const w=[g.value];B.open(w)}}),t.onBeforeUnmount(()=>{l.draggable&&g.value&&B.close()}),()=>{let w=[];const C=typeof r.default=="function"?r.default():[];if(C&&C.length>0)w=C;else{const N=t.h(a,{class:S.value});w.push(N)}const k={ref:N=>{g.value=N},class:p.value,style:h.value,onClick:v};return t.h("view",k,w)}}}),{componentName:Oh,create:Rh,scope:Fh}=J("floating-button"),Rl=Rh(zh(Oh,Fh,le.Uploader,!1)),Kh={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 Uh(e,n,a){return{props:{...Kh},emits:["click","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["collapseText","expandText"]),c=t.computed(()=>{const v={[`${e}`]:!0};return o.disabled?v[`${e}--disabled`]=!0:v[`${e}--${o.type}`]=!0,v}),d=Me(o,"modelValue"),p=t.computed(()=>d.value?i.expandText.value??"":i.collapseText.value??""),u=t.computed(()=>({[`${e}__text`]:!0})),h=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),S=()=>{l("update:modelValue",!d.value)};return()=>{const v=[];if(p.value){const b={class:u.value},f=t.h("span",b,[p.value]);v.push(f)}const g={class:h.value},y=(r.icon&&r.icon())??(o.icon&&t.h(o.icon))??t.h(a);if(y){const b=t.h("view",g,[y]);v.push(b)}return o.textPosition==="right"&&v.reverse(),t.h("view",{class:c.value,onClick:S},v)}}}}const{componentName:Hh,create:jh,scope:Wh}=J("more-button"),Fl=jh(Uh(Hh,Wh,le.RectUp)),Yh={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}},Xh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Qh(e,n,a){return{props:{...Yh},emits:["update:visible"],setup(o,{attrs:l,slots:r,emit:s}){const{toLocaleRefs:i}=ie.useFoxI18n(n),c=i(o,["confirmText","cancelText"]),d=e,p=t.ref(o.visible),u=w=>{p.value=w,s("update:visible",w)};t.watch(()=>o.visible,w=>{p.value!==w&&(p.value=w)});const h=w=>{if(typeof o.unmount=="function")try{o.unmount()}catch(C){console.error(C)}if(typeof o.callback=="function")try{o.callback(w)}catch(C){console.error(C)}},S=()=>{h("confirm")},v=()=>{h("cancel")},g=()=>{o.closeOnClickOverlay!==!1&&h("close")},y=(w,C)=>Xh(w)?(C.src=w,t.h("img",C)):typeof w=="string"?(Array.isArray(C.class)?C.class.push(w):C.class&&typeof C.class=="object"?C[`${w}`]=!0:typeof C.class=="string"?C.class=`${C.class}, ${w}`:C.class=w,t.h(o.tag,C)):t.h(w,C),m=()=>{const w=[];if(o.icon){const k={class:[`${d}__header-icon`]},N=y(o.icon,k);w.push(N)}if(o.title){const k=t.h("view",{class:`${d}__header-title`},[o.title]);w.push(k)}if(o.showClose&&o.closeIcon){const k={class:[`${d}__header-close-icon`],onClick:g},N=y(o.closeIcon,k);w.push(N)}const C={class:[`${d}__header`]};return t.h("view",C,w)},b=(w,C)=>{const k=[];if(C){const A={class:`${d}__group-title`},$=t.h("view",A,[C]);k.push($)}if(w){const A=[];Array.isArray(w)||(w=[w]);for(let $ of w){const T={class:`${d}__group-row`,innerHTML:$},K=t.h("view",T);A.push(K)}if(A.length>0){const $={class:`${d}__group-rows`},T=t.h("view",$,A);k.push(T)}}if(k.length===0)return null;const N={class:`${d}__group`};return t.h("view",N,k)},f=()=>{const w=[];if(typeof o.message=="string")w.push(o.message);else if(Array.isArray(o.message))for(let k of o.message)if(typeof k=="string"){const N=b(k);w.push(N)}else{const N=b(k.content,k.title);w.push(N)}else if(typeof o.message=="function"){const k=o.message();w.push(k)}else{const k=o.message;w.push(k)}const C={class:`${d}__body`};return t.h("view",C,w)},B=()=>{const w=[];if(o.showCancelButton){const k={class:[`${d}__footer-button`],style:{},onClick:v};o.cancelButtonClass&&k.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(k.style,o.cancleButtonStyle);const N=t.h("button",k,[o.cancelButtonText??c.cancelText.value]);w.push(N)}if(o.showConfirmButton){const k={class:[`${d}__footer-button`],style:{},onClick:S};o.confirmButtonClass&&k.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(k.style,o.confirmButtonStyle);const N=t.h("button",k,[o.confirmButtonText??c.confirmText.value]);w.push(N)}if(w.length===0)return null;const C={class:`${d}__footer`};return t.h("view",C,w)};return()=>{const w=[],C=m();C&&w.push(C);const k=f();k&&w.push(k);const N=B();N&&w.push(N);const A={class:{[`${d}`]:!0,[`${d}--${o.type||"info"}`]:!0}},$=t.h("view",A,w),T=[`${d}__popup`];o.popClass&&T.push(o.popClass);const K={};o.width&&(K.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(K.height=typeof o.height=="number"?`${o.height}px`:o.height);const Z={popClass:T.join(" "),style:K,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":u,position:o.position,round:"round",onClickOverlay:g,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,Z,{default:()=>$})}}}}const{componentName:Gh,create:Zh,scope:Jh}=J("messagebox"),_h=Zh(Qh(Gh,Jh,pe)),eg="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",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%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",ng="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",og="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",lg=new no,ag={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},rg=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-${lg.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(_h,e);n.appendChild(o),t.render(r,o)},it={show:(e,n,a,o)=>{const l={...ag};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=ng:r==="warning"?l.icon=og:r==="error"?l.icon=eg:l.icon=tg),e==="alert"?(l.showCancelButton=!1,l.showConfirmButton=!0):e==="confirm"&&(l.showCancelButton=!0,l.showConfirmButton=!0),l.showClose&&!l.closeIcon&&(l.closeIcon=le.Close),new Promise((s,i)=>{const c=l.callback;l.callback=d=>{if(typeof c=="function")try{c(d)}catch(p){console.error(p)}s({action:d})},rg(l)})},alert:(e,n,a)=>it.show("alert",e,n,a),confirm:(e,n,a)=>it.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=it.alert,e.config.globalProperties.$confirm=it.confirm}},sg=(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)},ig=new no,cg=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),ug=e=>`${e}-${ig.get()}`,dg=Symbol.for("InnerPageScopeKey"),fg=Symbol.for("PageWrapperKey"),mg="FoxLeave",pg="FoxLeaveEnd",hg={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 gg(e,n,a,o){return{props:{...Ke,...hg},emits:["update:visible"],setup(l,{attrs:r,slots:s,emit:i}){t.provide(dg,!0);const c={};t.provide(fg,c);const d=C=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),p=()=>{d()},u=e,h=C=>{S.value=C,i("update:visible",C)},S=t.ref(!1),v=(C,k)=>cg(C)?(k.src=C,t.h("img",k)):typeof C=="string"?(Array.isArray(k.class)?k.class.push(C):k.class&&typeof k.class=="object"?k[`${C}`]=!0:typeof k.class=="string"?k.class=`${k.class}, ${C}`:k.class=C,t.h(l.tag,k)):t.h(C,k),g=()=>{if(!l.showHeader)return null;const C=[];if(s.header){const N=s.header();C.push(N)}else if(l.title){const N=t.h("view",{class:`${u}__header-title`},[l.title]);C.push(N)}if(C.length===0)return null;const k={class:[`${u}__header`]};return t.h("view",k,C)},y=()=>{if(!l.showClose)return null;const C={class:[`${u}__close-icon`],onClick:p},k=l.closeIcon??o;return v(k,C)};let m=null;const b=C=>{sg(pg,{},m)},f=ug(e),B=()=>{h(!0)},w=()=>{if(!m)return;const C=m.querySelector(".fox-overlay");C&&(C.classList.add("overlay-fade-leave-active"),C.classList.add("overlay-fade-leave-to"));const k=m.querySelector(".fox-popup");k&&(k.classList.add(`fox-popup-slide-${l.position}-leave-active`),k.classList.add(`fox-popup-slide-${l.position}-leave-to`),k.addEventListener("animationend",b,{once:!0}),k.addEventListener("transitionend",b,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{m=document.querySelector(`.${f}`),m?.addEventListener(mg,w,{once:!0}),B()}),()=>{const C=[],k=g();k&&C.push(k);const N=y();N&&C.push(N);const A=s.default?s.default():[];Reflect.apply([].push,C,A);const $={[`${u}`]:!0};l.mode&&($[`${u}--${l.mode}`]=!0);const T={class:$},K=t.h("view",T,C),Z=[`${u}__popup`,f];l.popClass&&Z.push(l.popClass),l.position&&Z.push(`${u}__popup--${l.position}`);const E={};l.width&&(E.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(E.height=typeof l.height=="number"?`${l.height}px`:l.height);const q={...ye(l,Ke),popClass:Z.join(" "),style:E,visible:S.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":h},x=t.h(a,q,{default:()=>K});return t.h("div",{class:[`${u}__root`,f]},[x])}}}}const{componentName:yg,create:vg,scope:bg}=J("popup-wrapper"),Kl=vg(gg(yg,bg,pe,le.Close)),kg={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function Sg(e,n,a,o){return{props:{...kg},emits:["update:visible"],setup(l,{emit:r,slots:s}){const i=c=>{r("update:visible",c)};return()=>{const c=[`${e}__popup`];l.popClass&&c.push(l.popClass);const d={popClass:c,style:l.popStyle??{},position:"top",zIndex:l.zIndex,closeOnClickOverlay:l.closeOnClickOverlay,teleportDisable:!0,visible:l.visible,"onUpdate:visible":i},p=t.h(a,d,s),u={class:`${e}`};return t.h("view",u,[p])}}}}const{componentName:Cg,create:wg,scope:Ng}=J("dropdown"),Ul=wg(Sg(Cg,Ng,pe));function Bg(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[l]){let c=n;for(let d=0;c&&d<r.length;d++){let p=r[d],u=c.find(h=>h[o]===p);if(!u)break;s.push(u[a])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let d=n[c],p=r[c];const u=d.find(h=>h[o]===p);if(!u)break;s.push(u[a])}else{let c=n;for(let d=0;c&&d<r.length;d++){let p=r[d],u=c.find(h=>h[o]===p);if(!u)break;s.push(u[a]),c=u[l]}}return s}class Ag{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=lt(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(De(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function Vg(){const e=t.getCurrentInstance();return new Ag(e.proxy)}const Tg={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 $g(e,n){return{props:{...Tg},setup(a,{attrs:o,slots:l}){const r=Vg(),s=t.ref([]);t.watch([()=>a.source,()=>a.params],async([c,d])=>{s.value=await r.load(a.sourceType,c,d)},{immediate:!0});const i=t.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return a.emptyText;let c=Bg(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 d=a.tag??"span";return typeof d=="object"?t.h(d,c,{default:()=>i.value}):t.h(d,c,[i.value])}}}}const{create:Eg}=J("mapping"),Hl=Eg($g());function xg(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 Vs(a.name,()=>a.config),Le(a.innerPageScope)||Es(a.innerPageScope),Le(a.abstractPageScope)||xs(a.abstractPageScope),()=>typeof o.default=="function"?o.default():null}}}const{create:Dg}=J("domain-provider"),jl=Dg(xg()),Ig={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 qg(e,n){return{inheritAttrs:!1,props:Ig,emits:["change"],setup(a,{slots:o,emit:l}){if(tt&&window.IntersectionObserver){const r=new WeakMap;let s=new Map;const i=(S,v)=>{if(u===null){s.set(S,{visible:null,callback:v});return}r.has(S)&&u.unobserve(S),r.set(S,{visible:null,callback:v}),u.observe(S)},c=S=>{if(u===null){s.delete(S);return}r.has(S)&&(r.delete(S),u.unobserve(S))};let d=a.initialVisibleObserverSize;dc({acquire:()=>{if(a.loadPolicy==="always")return!0;const S=d>0;return d--,S},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:i,unobserve:c});let u=null;const h=(S,v,g)=>{u=new IntersectionObserver(y=>{if(l("change",y),a.loadPolicy!=="always")for(let m of y){let b=!1;m.intersectionRatio>0&&(b=!0);const f=r.get(m.target);if(f)try{if(a.loadPolicy==="lazy"&&!b&&f.visible!==null)return;f.visible=b,f.callback(b)}catch(B){console.error(B)}}},{root:S,rootMargin:v,threshold:g}),s.forEach((y,m)=>{r.set(m,y),u?.observe(m)}),s.clear()};t.watch([()=>a.root,()=>a.disabled],([S,v])=>{if(v||!S||u)return;let g=null;typeof S=="string"?g=document.querySelector(S):g=S,g&&h(g,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{u&&(u.disconnect(),u=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{create:Pg}=J("rolling-provider"),Wl=Pg(qg()),{componentName:Mg,create:Lg}=J("cell"),zg=Lg({components:{Right:le.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.computed(()=>{const r=Mg;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:fe(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),Og={key:0,class:"fox-cell__icon"},Rg={key:1,class:"fox-cell__title"},Fg={class:"title"},Kg={class:"fox-cell__title-desc"};function Ug(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",Og,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Rg,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Fg,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Kg,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 Yl=oe(zg,[["render",Ug]]),{componentName:Hg,create:jg}=J("cell-group"),Wg=jg({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Hg]:!0}))}}}),Yg={key:1,class:"fox-cell-group__title"},Xg={key:3,class:"fox-cell-group__desc"},Qg={class:"fox-cell-group__wrap"};function Gg(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",Yg,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",Xg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Qg,[t.renderSlot(e.$slots,"default")])],2)}const Xl=oe(Wg,[["render",Gg]]),{componentName:Zg,create:Jg}=J("image"),_g=Jg({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:le.Image,ImageError:le.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),o=t.computed(()=>{const S=Zg;return{[S]:!0,[`${S}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const S={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(v=>{v.forEach(g=>{g.isIntersecting&&(r.value=!0,l.value.disconnect())})},S),s.value&&l.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let S={};return e.width&&(S.width=fe(e.width)),e.height&&(S.height=fe(e.height)),e.radius!==void 0&&e.radius!==null&&(S.overflow="hidden",S.borderRadius=fe(e.radius)),S}),d=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,S=>{a.isError=!1,a.loading=!0});const p=()=>{a.loading=!1,n("load")},u=()=>{a.isError=!0,a.loading=!1,n("error")},h=S=>{n("click",S)};return{...t.toRefs(a),imageClick:h,classes:o,styles:d,stylebox:c,error:u,load:p,show:r,imgRef:s}}}),ey=["src","date-src","alt"],ty={key:0,class:"fox-img-loading"},ny={key:1,class:"fox-img-error"};function oy(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,ey),e.loading?(t.openBlock(),t.createElementBlock("div",ty,[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",ny,[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 Ql=oe(_g,[["render",oy]]),{create:ly}=J("layout"),Gl=ly({}),{componentName:ay,create:ry}=J("col"),sy=ry({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=ay,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 iy(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 Zl=oe(sy,[["render",iy]]),{componentName:cy,create:uy}=J("row"),dy=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=cy;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
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Gi=Object.create,Kr=Object.defineProperty,Zi=Object.getOwnPropertyDescriptor,Ji=Object.getOwnPropertyNames,es=Object.getPrototypeOf,ts=Object.prototype.hasOwnProperty,je=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),ns=(e,n,l,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(var a=Ji(n),r=0,s=a.length,i;r<s;r++)i=a[r],!ts.call(e,i)&&i!==l&&Kr(e,i,{get:(u=>n[u]).bind(null,i),enumerable:!(o=Zi(n,i))||o.enumerable});return e},We=(e,n,l)=>(l=e!=null?Gi(es(e)):{},ns(n||!e||!e.__esModule?Kr(l,"default",{value:e,enumerable:!0}):l,e));let t=require("vue"),rt=require("@fox-js/validator"),oe=require("@fox-js/icons-vue"),se=require("@fox-js/i18n");var un=window,os=typeof window<"u";function ls(){return typeof un<"u"?un.requestAnimationFrame||un.webkitRequestAnimationFrame||function(e){un.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ur(e){os?cancelAnimationFrame(e):clearTimeout(e)}var Xe=ls();function kn(e,n="0"){let l=0,o=-1;e[0]=="-"&&(l++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(l++,o=2,n=n.substring(1),n.length),e=Ne(e),n=Ne(n),[e,n]=Zo(Ne(e),Ne(n)),l==1&&(o==1?e=vo(e):n=vo(n));let a=Hr(e,n);return l?l==2?"-"+Ne(a):e.length<a.length?Ne(a.substring(1)):"-"+Ne(vo(a)):Ne(a)}function vo(e){let n="",l=e.length,o=e.split(".")[1],a=o?o.length:0;for(let s=0;s<l;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return Hr(n,r)}function Ne(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 Zo(e,n){let l=e.split("."),o=n.split("."),a=l[0].length,r=o[0].length;return a>r?o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""):l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""),a=l[1]?l[1].length:0,r=o[1]?o[1].length:0,(a||r)&&(a>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function Hr(e,n){[e,n]=Zo(e,n);let l="",o=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){l="."+l;continue}let r=parseInt(e[a])+parseInt(n[a])+o;l=r%10+l,o=Math.floor(r/10)}return o?o.toString()+l:l}var we=(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 jt(e,n=0,l=we.HALF_EVEN){if(l===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 a=e.split("."),r=a[0],s=a[1];if(n<0){if(n=-n,r.length<=n)return"0";{let u=r.substr(0,r.length-n);return e=u+"."+r.substr(r.length-n)+s,u=jt(e,0,l),(o?"-":"")+u+new Array(n+1).join("0")}}if(n==0)return r.length,Ga(a[1],r,o,l)?(o?"-":"")+ho(r):(o?"-":"")+r;if(a[1]){if(a[1].length<n)return(o?"-":"")+r+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");s=a[1].substring(0,n);let i=a[1].substring(n);return i&&Ga(i,s,o,l)&&(s=ho(s),s.length>n)?(o?"-":"")+ho(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function Ga(e,n,l,o){if(!e||e===new Array(e.length+1).join("0")||o===we.DOWN||!l&&o===we.FLOOR||l&&o===we.CEILING)return!1;if(o===we.UP||l&&o===we.FLOOR||!l&&o===we.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(o){case 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 ho(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let l=e.length-1,o="";for(let a=l;a>=0;a--){let r=parseInt(e[a])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function Ao(e,n){e=e.toString(),n=n.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),n[0]=="-"&&(l++,n=n.substr(1)),e=It(e),n=It(n);let o=0,a=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(a=n.length-n.indexOf(".")-1);let r=o+a;if(e=It(e.replace(".","")),n=It(n.replace(".","")),e.length<n.length){let c=e;e=n,n=c}if(n=="0")return"0";let s=n.length,i=0,u=[],d=s-1,p="";for(let c=0;c<s;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let v=0;for(let g=n.length-1;g>=d&&g>=0;g--)u[g]>-1&&u[g]<e.length&&(v+=parseInt(e[u[g]--])*parseInt(n[g]));v+=i,i=Math.floor(v/10),p=v%10+p,d--}return p=It(as(p,r)),l==1&&(p="-"+p),p}function as(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 It(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 Vo(e,n,l=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ne(n.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ne(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=Ne(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let p=e.length-d+a;e=Ne(e.substring(0,p)+"."+e.substring(p))}else a==d&&(e=Ne(e.replace(".","")))}let r=0,s=n.length,i="",u=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),u.indexOf(".")>-1){let d=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(d+=s-u.length,u=u+new Array(s-u.length+1).join("0")),r=d,i="0."+new Array(d).join("0")}for(l=l+2;r<=l;){let d=0;for(;parseInt(u)>=parseInt(n);)u=kn(u,"-"+n),d++;i+=d,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,u=u+"0")}return(o==1?"-":"")+Ne(jt(i,l-2))}function To(e,n){return e=e.toString(),n=n.toString(),n=$o(n),kn(e,n)}function $o(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Za(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Ja(e),Ja(n);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=To(e,Ao(n,jt(Vo(e,n),0,we.FLOOR)));return l+o}function Ja(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function er(e,n){let l=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),l=!0),[e,n]=Zo(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?l?-1:1:l?1:-1;return 0}var nn=class ce{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[l,o]=n.split(/[eE]/);l=Ne(l);let a="";l[0]=="-"&&(a="-",l=l.substring(1)),l.indexOf(".")>=0?(o=parseInt(o)+l.indexOf("."),l=l.replace(".","")):o=parseInt(o)+l.length,l.length<o?n=a+l+new Array(o-l.length+1).join("0"):l.length>=o&&o>0?n=a+Ne(l.substring(0,o))+(l.length>o?"."+l.substring(o):""):n=a+"0."+new Array(-o+1).join("0")+l}return n}constructor(n="0"){this.value=ce.validate(n)}getValue(){return this.value}static getPrettyValue(n,l,o){if(!(l||o))l=3,o=",";else if(!(l&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ce.validate(n);let a=n.charAt(0)=="-";a&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var s="",i=r;i>0;)i<l?(l=i,i=0):i-=l,s=n.substring(i,i+l)+(i<r-l&&i>=0?o:"")+s;return(a?"-":"")+s+n.substring(r)}getPrettyValue(n,l){return ce.getPrettyValue(this.value,n,l)}static round(n,l=0,o=we.HALF_EVEN){if(n=ce.validate(n),isNaN(l))throw Error("Precision is not a number: "+l);return jt(n,l,o)}round(n=0,l=we.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ce(jt(this.value,n,l))}static floor(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,we.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,we.FLOOR)}static ceil(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,we.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,we.CEILING)}static add(n,l){return n=ce.validate(n),l=ce.validate(l),kn(n,l)}add(n){return new ce(kn(this.value,n.getValue()))}static subtract(n,l){return n=ce.validate(n),l=ce.validate(l),To(n,l)}subtract(n){return new ce(To(this.value,n.getValue()))}static multiply(n,l){return n=ce.validate(n),l=ce.validate(l),Ao(n,l)}multiply(n){return new ce(Ao(this.value,n.getValue()))}static divide(n,l,o){return n=ce.validate(n),l=ce.validate(l),Vo(n,l,o)}divide(n,l){return new ce(Vo(this.value,n.getValue(),l))}static modulus(n,l){return n=ce.validate(n),l=ce.validate(l),Za(n,l)}modulus(n){return new ce(Za(this.value,n.getValue()))}static compareTo(n,l){return n=ce.validate(n),l=ce.validate(l),er(n,l)}compareTo(n){return er(this.value,n.getValue())}static negate(n){return n=ce.validate(n),$o(n)}negate(){return new ce($o(this.value))}};function jr(e,n){return nn.multiply(`${e}`,`${n}`)}function Jo(e,n,l=8){return nn.divide(`${e}`,`${n}`,l)}var YA=nn.RoundingModes;function Eo(e,n){return e=`${e}`,n=`${n}`,nn.compareTo(e,n)}function Wr(e){return nn.negate(e)}function $n(e,n=-1,l=!1,o=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,u="",d=r.indexOf(".");d!=-1&&(i=r.substring(0,d),u=r.substring(d+1)),n!=-1&&(n<u.length?u=u.substring(0,n):l&&n>u.length&&(u=u.padEnd(n,"0")));let p;if(o>0){let c="",v=i.split("").reverse();for(let g=0;g<v.length;g++)c+=v[g]+((g+1)%o==0&&g+1!=v.length?a:"");u.length==0?p=`${s}${c.split("").reverse().join("")}`:p=`${s}${c.split("").reverse().join("")}.${u}`}else u.length==0?p=`${s}${i}`:p=`${s}${i}.${u}`;return p}function Yr(e){let n=`${e}`,l=n.charAt(0);l=="-"?n=n.substring(1):l="";let o=n.replace(/[^\d\.-]/g,"");return`${l}${o}`}var Je=typeof window<"u",Ke=Xe;function Me(e){return e==null}var En=Array.isArray,rs=e=>xn(e)==="[object Map]",is=e=>xn(e)==="[object Set]",He=e=>e instanceof Date,Sn=e=>typeof e=="function",Xr=e=>typeof e=="string",ss=e=>typeof e=="symbol",xe=e=>e!==null&&typeof e=="object",St=e=>xe(e)&&Sn(e.then)&&Sn(e.catch),Qr=Object.prototype.toString,xn=e=>Qr.call(e),us=e=>xn(e)==="[object Object]",Gr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function cs(e){return e.__esModule||Gr&&e[Symbol.toStringTag]==="Module"}var ds=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function wt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,o=e.length,a=!1;for(typeof n=="boolean"&&(a=n,n=e[l]??{},l++),typeof n!="object"&&(n={});l<o;l++)if(e[l]!==null&&e[l]!==void 0){let r=e[l];for(let s in r){let i=n[s],u=r[s];if(i!==u)if(a===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},n[s]=wt(a,d,u)}else u!==void 0&&(n[s]=u)}}return n}var go=ds?Promise.resolve():null;function fs(e,...n){go!==null?n&&n.length>0?go.then(()=>{e(n)}):go.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ye(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function pe(e){return typeof e=="number"?e:Number(e)}var ms={"[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 st(e){let n=Object.prototype.toString.call(e);return e==null?String(e):ms[n]||"object"}function Zr(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const l=window.getComputedStyle(n);if(l.display==="none"||l.visibility==="hidden"||l.visibility==="collapse")return!0;n=n.parentElement}return!1}function Jr(e){return e&&typeof e=="object"&&"setInterval"in e}function ei(e){let n=!!e&&"length"in e&&e.length,l=st(e);return l==="function"||Jr(e)?!1:l==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function ti(e,n){let l=+n.length,o=0,a=e.length;for(;o<l;o++)e[a++]=n[o];return e.length=a,e}function ps(e,n=[]){let l=n;return e!=null&&(ei(Object(e))?ti(l,typeof e=="string"?[e]:e):l.push(e)),l}function De(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let l=st(e);if(l!==st(n))return!1;if(l==="object"){let o=Object.keys(e),a=Object.keys(n);if(o.length!==a.length)return!1;for(let r=0;r<o.length;r++){let s=o[r],i=e[s],u=n[s];if(!De(i,u))return!1}return!0}else if(l==="array"){if(e.length!==n.length)return!1;for(let o=0;o<e.length;o++){let a=e[o],r=n[o];if(!De(a,r))return!1}return!0}return!1}function xo(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Dn(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 ni(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const l=n.indexOf(".");return l==-1?n.length:l}function oi(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const l=n.indexOf(".");return l==-1?0:n.length-(l+1)}function tr(e,n,l){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(l,"")}function Do(e,n=!0,l=!0){n?e=tr(e,".",/\./g):e=e.replace(/\./g,""),l?e=tr(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function vs(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(l=>{if(De(e,l))return!0}):n.indexOf(e)}function hs(e,n){if(typeof e=="object"||Array.isArray(e)){let l=n.reverse().findIndex(o=>{if(De(e,o))return!0});return l!==-1&&(l=n.length-1-l),l}return n.lastIndexOf(e)}function be(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function he(e,...n){const l={};return n.forEach(o=>{for(const a in o)l[a]=e[a]}),l}function et(e,...n){const l=[];n.forEach(a=>{Reflect.apply([].push,l,Reflect.ownKeys(a))});const o={};for(const a in e)l.includes(a)||(o[a]=e[a]);return o}var li=(e,n,l)=>{const o=Object.assign({},e),a=Object.assign({},l);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(o[r]=n[a[r]]):n[r]&&(o[r]=n[r])}),o):e};function Io(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var at=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Ue=(e,n,l)=>Math.min(Math.max(e,n),l),Se=Symbol.for("BroadcastKey"),el=class{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(e,n,l){this.parent=e,this.proxy=n,this.name=l,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(l=>e===l);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,l){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const o=e.uniqueId,a={matched:e,action:n,args:l};return this.persistantMessages.set(o,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 l=!1;return!n.name||n.name==="*"||n.name==="+"||xo(n.name)&&e&&n.name.test(e)?l=!0:typeof n.name=="function"?l=Reflect.apply(n.name,null,[e]):n.name===e&&(l=!0),l}trigger(e,n,l){let o=null;const a=this.callbacks.get(n);typeof a=="function"&&(o=Reflect.apply(a,this.proxy,[...l]));const r=this.proxy??{};typeof r[n]=="function"&&(o=Reflect.apply(r[n],r,[...l])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(o)}pull(){let e=this.parent;for(;e;){const n=e.getPersistantMessages();Array.isArray(n)&&n.length>0&&n.forEach(l=>{if(this.isMatched(this.name,l.matched))try{this.trigger(l.matched,l.action,l.args)}catch(o){console.error(o)}}),e=e.parent}}emit(e,n,...l){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,l),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,l)){const r=e.resolve,s=e.uniqueId??"",i=(...u)=>{this.deletePersistantMessage(s),typeof r=="function"&&r(...u)};e.resolve=i}e.cachePolicy="None"}let o=!1;!e.name||e.name==="*"?o=!0:e.name==="+"?(o=!1,e.name="*"):xo(e.name)&&this.name&&e.name.test(this.name)?o=!0:typeof e.name=="function"?o=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(o=!0);const a=[];if(o){const r=this.callbacks.get(n);if(typeof r=="function"){const i=Reflect.apply(r,this.proxy,[...l]);i!=null&&a.push(i)}const s=this.proxy??{};if(typeof s[n]=="function"){const i=Reflect.apply(s[n],s,[...l]);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,...l]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(e,n,...l){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,l),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,l)){const a=e.resolve,r=e.uniqueId??"",s=(...i)=>{this.deletePersistantMessage(r),typeof a=="function"&&a(...i)};e.resolve=s}e.cachePolicy="None"}const o=[];return this.children.forEach(a=>{const r=Reflect.apply(a.emit,a,[{...e},n,...l]);r!=null&&Array.isArray(r)&&Reflect.apply([].push,o,[...r])}),o}on(e,n){this.callbacks.set(e,n)}};function In(e,n,l,o){const a=new el(n,e,l);if(o&&typeof o=="object")for(const r in o)a.on(r,o[r]);return a}function gs(e,n,l){const o=l;if(o[Se])return o[Se];const a=new el((0,t.inject)(Se,null),l,e);if(n&&typeof n=="object")for(const r in n)a.on(r,n[r]);return o[Se]=a,(0,t.provide)(Se,a),(0,t.onUnmounted)(()=>{a.destroy(),o[Se]=void 0}),a}function Ot(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[Se]??(0,t.inject)(Se,null):(0,t.inject)(Se,null)}var ys=class{error(e,n){const l=n,o=n||(0,t.hasInjectionContext)()?Ot(n):null;o?o.emit({name:"*"},"setErrorTip",e):typeof l.setErrorTip=="function"&&l.setErrorTip(e)}reset(e){const n=e,l=e||(0,t.hasInjectionContext)()?Ot(e):null;l?l.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}success(e){const n=e,l=e||(0,t.hasInjectionContext)()?Ot(e):null;l?l.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}decorate(e,n,l){Array.isArray(e)||(e=[e]);const o=l,a=l||(0,t.hasInjectionContext)()?Ot(l):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 o.setRequired=="function"&&o.setRequired(!0):r&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof o.setRequired=="function"&&o.setRequired(!1),this.reset(l))}getValue(e){return e.modelValue}},Rt=new ys;function bs(e){Rt=e}function ks(e){Rt?Object.assign(Rt,e):Rt=e}function Ss(e,n){rt.Schema.setValidator(e,n)}function ws(e){rt.Schema.deleteValidator(e)}var ai=["blur","clear"];function Cs(e){ai=e}function ri(){return ai}var ii=["focus","change","setValue"];function Ns(e){ii=e}function si(){return ii}function Bs(e){rt.Schema.messages(e)}function qt(...e){const n=[];return e.forEach(l=>{l.forEach(o=>{const a=n.findIndex(r=>r.type===o.type);a!==-1&&n.splice(a,1),n.push(o)})}),n}function cn(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var _e=Symbol("ValidateSchemaKey"),ui=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,l){this.parent=e,this.descriptor=n,this.proxy=l,(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=cn(qt(this.attrRules,this.rules)),l=[];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),l.push(i);continue}let s=this.getValidator(a);if(s!==null){let i={type:a,validator:s};l.push(i)}}this.attrRules=cn(l);const o=qt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(o,n)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...n){const l=this.descriptor.validateHandler;if(l&&typeof l[e]=="function")return Reflect.apply(l[e],l,[...n]);const o=Rt;return o&&typeof o[e]=="function"?Reflect.apply(o[e],o,[...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,l=!1){l?rt.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?rt.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return rt.Schema.hasValidator(e);{let l=Reflect.has(this.validators,e);return!l&&this.parent!==null&&(l=this.parent.hasValidator(e,!1)),l}}setRule(e){const n=qt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=cn(e):this.rules=cn([e]);const l=qt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(l,n)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=qt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const l={[`${n}`]:e},o=this.getValue(),a={[`${n}`]:o},r=new rt.Schema(l),s=this.proxy??a;return r.validate(a,{context:s}).then(i=>{if(i.pass)this.success();else{let u="error";Array.isArray(i.errors)&&i.errors.length>0&&(u=i.errors[0].message??u,i.errors=[i.errors[0]],i.errors[0].ref=s),this.error(u)}return i}).catch(i=>{const u=i.message??`${i}`;return this.error(u),i})}}return Promise.resolve({pass:!0})}};function qn(e,n,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const o=l.valueName;l.validateHandler={getValue(a){return a[o]}}}return new ui(n,l,e)}var wn=Symbol.for("EventEmitterKey"),ci=class{register=new Map;proxy;constructor(e){this.proxy=e}destroy(){this.proxy=null,this.register.clear()}off(e,n){let l=this.register.get(e);if(l&&Array.isArray(l)){let o=l.findIndex(a=>a===n);o!==-1&&l.splice(o,1)}}on(e,n){let l=this.register.get(e);l||(l=new Array,this.register.set(e,l)),l.push(n)}emit(e,...n){const l=this.register.get(e);l&&l.forEach(o=>{try{Reflect.apply(o,null,[e,...n])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[e,...n])}};function qe(e,n){let l=null;return function(...o){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...o])},n)}}function Cn(e,n){let l=0;return function(...o){const a=new Date().getTime();a-l<n||(l=a,Reflect.apply(e,null,[...o]))}}function As(e,n){const l=qe((o,a)=>{e=o,a()},n);return(0,t.customRef)((o,a)=>({get(){return o(),e},set(r){l(r,a)}}))}function Vs(e){let n=!1;return function(...l){n||(n=!0,Reflect.apply(e,null,[...l]))}}function tl(e,n,l,o=0,a=!0){let r=n,s=0;if(a){const u=e();if(s++,u||s>l)return}const i=()=>{const u=e();s++,!(u||s>l)&&(r+=o,setTimeout(i,r))};setTimeout(i,r)}var Ee=Symbol("DomainKey"),vt=Symbol("DataItemsKey"),Pn=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 l in e){const o=e[l];n.length>0&&n.indexOf(o)!==-1||(this._props[l]=o)}}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 l=this._props[e];if(l!=null)return l}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 l=this;for(;l!=null;){if(Reflect.has(l._props,e)){const o=l._props[e];n.push(o)}l=l._parent}return n}},Ts=new Pn;function yt(){return Ts}function tt(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[Ee]??(0,t.inject)(Ee,null):(0,t.inject)(Ee,null)}var yo=Symbol("OriginalDateKey");function nl(e,n,l=[],o){const a=(0,t.getCurrentInstance)();let r=a?.proxy,s=(0,t.inject)(Ee,null);s===null&&(s=yt());const i=e||n.prop||n.name;let u=new Pn(i);u.parent=s;const d=y=>{r[yo]||v(y),u?.set("modelValue",y)},p=()=>u?.getForSelf("modelValue")??null,c=()=>r[yo]??null,v=y=>{const h={};wt(!0,h,(0,t.toRaw)(y)),r[yo]=h};(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,y=>{u?.merge(y,l)},{immediate:!0}):u.merge(n,l),n.modelValue&&v(n.modelValue);const g=(y,h)=>{u?.set(y,h)},w=y=>u?.getForSelf(y)??null;if(r[Ee]=u,(0,t.provide)(Ee,u),a!==null){const y=(0,t.inject)(Se,null),h=In(r,y,i,o);u.broadcast=h,r[Se]=h,(0,t.provide)(Se,h),r.broadcast=(m,C,...N)=>Reflect.apply(h.emit,h,[m,C,...N]);const f=(0,t.inject)(_e,null),S=qn(r,f,{componentName:""});u.validateSchema=S,r[_e]=S,(0,t.provide)(_e,S),r[vt]=new Map,r.validate=(m=!0)=>{const C=[];let N=null;const b={deep:!1};if(m===!0)N={name:"*"};else if(Array.isArray(m)&&m.length>0){const k=m;N={name:B=>B?k.indexOf(B)!==-1:!1}}else if(m!=null&&typeof m=="object"){const k=m;if(Object.assign(b,k),Array.isArray(k.include)&&k.include.length>0){const B=k.include;N={name:A=>A?B.indexOf(A)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const B=k.exclude;N={name:A=>A?B.indexOf(A)===-1:!1}}else N={name:"*"}}if(N){const k=h?.emitToChildren(N,"validate",b);k&&Reflect.apply([].push,C,k)}return C.length==1?C[0]:C.length>1?Promise.all(C).then(k=>{let B=[];return k.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(B=[...B,...A.errors])}),B.length>0?{pass:!1,errors:B}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(m,C=!0,N=!1)=>{if(N===!0){Reflect.ownKeys(m).forEach(b=>{let k=String(b);const B={componentName:"",fieldName:k,pureDataValidate:!0};if(u){const A=fi(u,k,B,h,S);r[vt].set(k,A);const $=m[k];$&&A.validateSchema.setRule($)}});return}if(C){const b=Reflect.ownKeys(m);h?.emitToChildren({name:k=>b.includes(k),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",m,!1)}},r.clearValidate=(m=!0)=>{let C=null;if(m===!0)C={name:"*"};else if(Array.isArray(m)&&m.length>0){const N=m;C={name:b=>b?N.indexOf(b)!==-1:!1}}else if(m!=null&&typeof m=="object"){const N=m;if(Array.isArray(N.include)&&N.include.length>0){const b=N.include;C={name:k=>k?b.indexOf(k)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const b=N.exclude;C={name:k=>k?b.indexOf(k)===-1:!1}}else C={name:"*"}}C&&h?.emitToChildren(C,"clearValidate",!1)},r.resetFields=m=>{const C=p();if(!C)return;const N={};if(wt(!0,N,c()??{}),Array.isArray(m))m.forEach(b=>{C[b]=N[b]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(b=>{C[b]=N[b]});else if(m&&Array.isArray(m.exclude)){let b=m.exclude??[];Reflect.ownKeys(N).forEach(k=>{b.includes(k)||(C[k]=N[k])})}else Object.assign(C,N);r.clearValidate(m)},r.setModelValue=(m,C)=>{if(!C||C===i)d(m);else{const N={name:C,messagingPolicy:"Once"};h?.emitToChildren(N,"setModelValue",m)}},r.getModelValue=()=>p(),r.setDomainProperty=(m,C)=>{g(m,C)},r.getDomainProperty=m=>w(m),setTimeout(function(){h?.pull()},0)}return(0,t.onUnmounted)(function(){u?.validateSchema&&(u.validateSchema.destroy(),r[_e]=void 0,(0,t.provide)(_e,null)),u?.broadcast&&(u?.broadcast?.destroy(),r[Se]=void 0,(0,t.provide)(Se,null)),u?.destroy(),r[Ee]=void 0,(0,t.provide)(Ee,null),r[vt]&&(r[vt].clear(),r[vt]=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,u=null,r=null}),u}function di(e,n,l=[]){let o=(0,t.getCurrentInstance)()?.proxy,a=(0,t.inject)(Ee,null);a===null&&(a=yt());let r=new Pn(e||n.prop||n.name);return r.parent=a,(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,s=>{r?.merge(s,l)},{immediate:!0}):r.merge(n,l),o[Ee]=r,(0,t.provide)(Ee,r),(0,t.onUnmounted)(()=>{r?.destroy(),o[Ee]=void 0,(0,t.provide)(Ee,null),r=null,o=null}),r}function Be(e,n,l){const o=(0,t.getCurrentInstance)()?.proxy,a=n??"";let r=In(o,(0,t.inject)(Se,null),a,l);o[Se]=r,(0,t.provide)(Se,r),o.broadcast=(p,c,...v)=>r?Reflect.apply(r.emit,r,[p,c,...v]):null;const s=(0,t.inject)(_e,null);e.fieldName=e.fieldName??a;let i=qn(o,s,e);o[_e]=i,(0,t.provide)(_e,i),o.validate=(p=null)=>{if(!i)return Promise.resolve({pass:!0});const c=[];let v=!1,g=!1;if(Array.isArray(p)&&p.indexOf(a)!==-1)g=!0,v=!0;else if(p&&typeof p=="object"){const w=p,y=w.ignoreDisabled??!0,h=w.ignoreReadonly??!0,f=w.ignoreHidden??!0;y===!0&&e.disabled===!0||h===!0&&e.readonly===!0||f===!0&&Zr(o.$el)?g=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),g=!0),v=w.deep??!1}else typeof p=="boolean"&&(v=p),g=!0;if(g){const w=i?.validate();c.push(w)}if(v){let w=null;const y={deep:!1};if(p===!0)w={name:"*"};else if(Array.isArray(p)&&p.length>0){const h=p;w={name:f=>f?h.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const h=p;if(Object.assign(y,h),Array.isArray(h.include)&&h.include.length>0){const f=h.include;w={name:S=>S?f.indexOf(S)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const f=h.exclude;w={name:S=>S?f.indexOf(S)===-1:!1}}else w={name:"*"}}if(w&&r){const h=r.emitToChildren(w,"validate",y);Reflect.apply([].push,c,h)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(w=>{let y=[];return w.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(y=[...y,...h.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=p=>i?.setRule(p),o.setNameValidateRules=(p,c=!1)=>{const v=p[a];v&&i?.setRule(v),c&&r&&r.emitToChildren({name:g=>Reflect.ownKeys(p).includes(g)},"setNameValidateRules",p,!1)},o.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(n??"")!==-1)&&i?.clear();let c=null;if(p===!0)c={name:"*"};else if(Array.isArray(p)&&p.length>0){const v=p;c={name:g=>g?v.indexOf(g)!==-1:!1}}else if(p!=null&&typeof p=="object"){const v=p;if(Array.isArray(v.include)&&v.include.length>0){const g=v.include;c={name:w=>w?g.indexOf(w)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const g=v.exclude;c={name:w=>w?g.indexOf(w)===-1:!1}}else c={name:"*"}}c&&r&&r.emitToChildren(c,"clearValidate",!1)};let u=new ci(o);o[wn]=u;const d=qe((p="validate")=>{i&&(p==="reset"?i.clear():i.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ri()).forEach(p=>{u&&u.on(p,c=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:si()).forEach(p=>{u&&u.on(p,c=>{d("reset")})}),setTimeout(function(){r?.pull()},0),(0,t.onUnmounted)(()=>{r?.destroy(),o[Se]=void 0,(0,t.provide)(Se,null),r=null,i?.destroy(),o[_e]=void 0,(0,t.provide)(_e,null),i=null,u?.destroy(),o[wn]=void 0,u=null,o.broadcast=null,o.validate=null,o.setValidateRule=null,o.setNameValidateRules=null,o.clearValidate=null}),{broadcast:r,validateSchema:i,emitEvent:(p,...c)=>{u&&Reflect.apply(u.emit,u,[p,...c])},onEvent:(p,c)=>{u&&Reflect.apply(u.on,u,[c])},offEvent:(p,c)=>{u&&Reflect.apply(u.off,u,[c])}}}function fi(e,n,l,o,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}};l.fieldName=s,l.validateHandler={getValue(p){return i.getValue()}};let u=qn({},a,l);r.validate=(p=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const c=[];let v=!1,g=!1;if(Array.isArray(p)&&p.indexOf(s)!==-1)g=!0,v=!0;else if(p&&typeof p=="object"){const w=p;Array.isArray(w.include)&&w.include.indexOf(s)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(s),g=!0,v=w.deep??!1}else typeof p=="boolean"&&(v=p),g=!0;if(g&&u){const w=u.validate();c.push(w)}if(v){let w=null;const y={deep:!1};if(p===!0)w={name:"*"};else if(Array.isArray(p)&&p.length>0){const h=p;w={name:f=>f?h.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const h=p;if(Object.assign(y,h),Array.isArray(h.include)&&h.include.length>0){const f=h.include;w={name:S=>S?f.indexOf(S)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const f=h.exclude;w={name:S=>S?f.indexOf(S)===-1:!1}}else w={name:"*"}}if(w&&d){const h=d.emitToChildren(w,"validate",y);Reflect.apply([].push,c,h)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(w=>{let y=[];return w.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(y=[...y,...h.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>u?.setRule(p),r.setNameValidateRules=p=>{const c=p[s];c&&u?.setRule(c)};let d=In(null,o,s,r);return(0,t.onUnmounted)(()=>{u=null,d=null}),{broadcast:d,validateSchema:u}}function Et(){let e=(0,t.getCurrentInstance)()?.proxy,n=new ci(e);return e[wn]=n,(0,t.onUnmounted)(()=>{n?.destroy(),e[wn]=void 0,n=null,e=null}),{emitEvent:(l,...o)=>{n&&Reflect.apply(n.emit,n,[l,...o])},onEvent:(l,o)=>{n&&Reflect.apply(n.on,n,[o])},offEvent:(l,o)=>{n&&Reflect.apply(n.off,n,[o])}}}var fe=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${de(e)}px`:"",$s=fe;function de(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let a=Number(e.substring(0,l)),r=1;if(Je){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return a*=r,a}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))*n;const o=Number(e);return isNaN(o)?0:o}function Es(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}var Qe="PageStateKey";function Oe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=de(e.top)),e.left!==null&&e.left!==void 0&&(n.left=de(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=de(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=de(e.right))),n}function qo(e,n,l={},o=!0,a=-1,r=-1,s=0,i=0){if(e.headerHeight=de(l.headerHeight??n.headerHeight??-1),e.headerPadding=Oe(l.headerPadding??n.headerPadding),e.footerHeight=de(l.footerHeight??n.footerHeight??-1),e.footerPadding=Oe(l.footerPadding??n.footerPadding),e.contentPadding=Oe(l.contentPadding??n.contentPadding),o){const u=l.height??n.height;u?e.height=de(u,r):e.height=de(r)-de(s,r)-de(i,r),e.width=de(l.width??n.width??0,a)}}function mi(e,n={}){const l={top:null,bottom:null,right:null,left:null},o={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(o.safeAreaTop=de(a.top),o.safeAreaBottom=de(a.bottom),o.safeAreaLeft=de(a.left),o.safeAreaRight=de(a.right));const r=e.get("pageLayout");if(!r)return null;qo(o,r,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const s=(0,t.reactive)(o),i=e.getForParent(Qe);i&&(o.height=Nn(e,i),o.width=Bn(e,i),(0,t.watch)([()=>Nn(e,i),()=>Bn(e,i)],([d,p])=>{s.height=d,s.width=p}));const u=!i;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([d,p,c=-1,v=-1,g=0,w=0])=>{qo(s,p,n,u,c,v,g,w)}),e.set(Qe,s),s}function Mn(e){return e.get(Qe)}function _n(e,n){if(n=n??e.get(Qe),n&&n.headerMounted){const l=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+l}return 0}function Ln(e,n){if(n=n??e.get(Qe),n&&n.footerMounted){const l=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+l}return 0}function Nn(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const l=_n(e,n),o=Ln(e,n);return n.height-l-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Bn(e,n){return n=n??e.get(Qe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function xs(e){return!!e.getForParent(Qe)}var ol=Symbol.for("InnerPageScopeKey");function pi(e){(0,t.provide)(ol,e)}function on(e=!1){return(0,t.inject)(ol,e)}var ll=Symbol.for("AbstractPageScopeKey");function vi(e){(0,t.provide)(ll,e)}function ln(e=!1){return(0,t.inject)(ll,e)}var ut=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function dn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ae(e,n,l=ut.Near,o){const a=tt();return a==null?e:l===ut.Parent?(0,t.computed)(()=>{const r=a.getAll(n);for(let i=r.length-1;i>=0;i--){const u=r[i];if(dn(u,o))return u}const s=e.value;return dn(s,o)?s:null}):(0,t.computed)(()=>{const r=e.value;if(dn(r,o))return r;const s=a.getAll(n);for(let i=0;i<s.length;i++){const u=s[i];if(dn(u,o))return u}return null})}function Ve(e){return Ae(e,"readonly",ut.Near)}function Te(e){return Ae(e,"disabled",ut.Near)}function Pe(e,n="modelValue",l=null,o){const a=(0,t.toRef)(e,n);let r=a.value;typeof l=="function"&&(r=l(a.value));const s=(0,t.ref)(r);return(0,t.watch)(a,i=>{if(typeof l=="function"){const u=l(i);u!==s.value&&(s.value=u,o&&o("setValue",u))}else i!==s.value&&(s.value=i,o&&o("setValue",i))}),s}var hi=new Map,An=new Map,Po=null;function Ds(e){Po=e}function gi(e,n,l){if(l){let o=An.get(l);o||(o=new Map,An.set(l,o)),o.set(e,n)}else hi.set(e,n)}function nt(e,n,l){!l&&Po&&(l=Po(e)??void 0);let o=null;if(l){let a=An.get(l);a&&(o=a.get(n))}return o||(o=hi.get(n)),o}function Is(e,n){for(let l in e){const o=e[l];gi(l,o,n)}}function qs(e){An.delete(e)}function Ps(){return{top:0,left:0,bottom:0,right:0}}function Ms(){return Je?{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 _s(e,n){if(n.componentPrefix){const l=e.indexOf("-");return`${n.componentPrefix}${e.slice(l)}`}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(o=>{if(o.install)e.use(o);else if(o.name){const a=_s(o.name,n);e.component(a,o)}});const l=yt();if(n.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o={...n},a=qe(()=>{const r={...o};this.updateLayout(r,l)},120);new window.ResizeObserver(a).observe(window.document.body)}this.updateLayout(n,l)}updateLayout(e,n){const l=e.headerBarHeight??0,o=e.footerBarHeight??0,a=wt({},Ps(),e.safeAreaInset),r=Ms(),s=wt({},r.pageLayout,e.pageLayout);n=n??yt(),n.set("safeAreaInset",a),n.set("headerBarHeight",l),n.set("footerBarHeight",o),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 u in e)i.indexOf(u)===-1&&n.set(u,e[u])}setScopeGetter(e){Ds(e)}setAPI(e,n,l){gi(e,n,l)}getAPI(e,n,l){return nt(e,n,l)}batchSetAPI(e,n){Is(e,n)}clearScopeAPI(e){qs(e)}getRootDomain(){return yt()}};function Q(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=n,l.install=o=>{o.component(l.name,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var zs=(e,n)=>{let l=document.body;const o=e.teleport||"body";o!="body"&&(Xr(o)?l=document.querySelector(o):l=e.teleport);const a=document.createElement("view");a.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let r={};Sn(n.wrapper)?r=n.wrapper(l,a):r=n.wrapper;const s=(0,t.createApp)(r,e),i=n.components;return i&&i.forEach(u=>{s.use(u)}),l.appendChild(a),{instance:s.mount(a),unmount:()=>{s.unmount(),l.removeChild(a)}}},yi=(e,n)=>e?(0,t.h)(e,n):"";function $e(e,n=null){if(n||(n=(0,t.getCurrentInstance)()),n&&n.proxy){let l=n.proxy;Object.assign(l,e)}}var ve={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},ge={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},bi={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}},ki={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}},Si=[];for(const e in ki)Si.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:{...ve,...bi,...Os},setup(l,{slots:o}){const a=ln(!1),r=on(!1),s=nl(l.name,l);if(s){const c=mi(s,l);$e({getPageContentHeight:()=>Nn(s,c),getPageContentWidth:()=>Bn(s,c),getPageHeaderHeight:()=>_n(s,c),getPageFooterHeight:()=>Ln(s,c)}),c&&r&&(c.contentHeight="100%")}const i=(0,t.computed)(()=>({[e]:!0,"is-inner":r})),u=(0,t.computed)(()=>({})),d=(0,t.getCurrentInstance)(),p=(c,v=!1)=>{const g=d?.proxy;g&&typeof g.setNameValidateRules=="function"&&g.setNameValidateRules(c,!0,v)};return(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([c,v],[g,w])=>{if(c&&g){const y=(0,t.toRaw)(g),h=(0,t.toRaw)(c),f=h?Reflect.ownKeys(h):[];(y?Reflect.ownKeys(y):[]).forEach(S=>{f.includes(S)||(h[S]=[])}),p(h)}if(v&&w){const y=(0,t.toRaw)(w),h=(0,t.toRaw)(v),f=h?Reflect.ownKeys(h):[];(y?Reflect.ownKeys(y):[]).forEach(S=>{f.includes(S)||(h[S]=[])}),p(h,!0)}},{deep:!0}),(0,t.onMounted)(()=>{l.rules&&p((0,t.toRaw)(l.rules)),l.pureDataRules&&p((0,t.toRaw)(l.pureDataRules),!0)}),()=>a?o?.default?.():(0,t.h)("div",{class:i.value,style:u.value},[o?.default?.()])}}),{componentName:Rs,create:Ks,scope:Us}=Q("page"),Hs=Ks(Fs(Rs,Us)),al=Hs;function rl(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function zn(e){const n=(0,t.unref)(e),l=window.getComputedStyle(n,null),o=parseFloat(l.getPropertyValue("padding-left")),a=parseFloat(l.getPropertyValue("padding-right")),r=parseFloat(l.getPropertyValue("padding-top")),s=parseFloat(l.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-a,height:n.clientHeight-r-s}}var wi={headerbar:{},radio:{},checkbox:{}};function js(e){Object.assign(wi,e)}function On(){return wi}var Ws=(e,n,l,o=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1},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=ln(!1),i=on(!1),u=s?null:tt(),d=u?Mn(u):null,p=On(),c=e,v=(0,t.computed)(()=>{const E={[c]:!0,[`${c}--border`]:a.border,[`${c}--fixed`]:a.fixed};return i||(E[`${c}--safe-area-inset-top`]=a.safeAreaInsetTop),E}),g=(0,t.computed)(()=>({[`${c}__inner`]:!0,[`${c}__inner--${a.align}`]:!0})),w=Me(a.height)?null:de(a.height),y=(0,t.computed)(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return E;if(u&&d){const V=Oe(a.padding??d.headerPadding);return Object.assign(E,V),Me(w)||(d.headerHeight=w),E.height=d.headerHeight,E.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(V.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(Me(w)||(E.height=w),a.padding){const V=Oe(a.padding);Object.assign(E,V)}return E}),h=(0,t.ref)(null),f=()=>d&&h.value&&h.value.offsetParent!==null?(o||(d.headerAllHeight=rl(h.value).height),d.headerMounted=!0,!0):!1,S=qe(f,120);let m=null;(0,t.onMounted)(()=>{s||d&&(tl(f,50,5,50,!0),window.ResizeObserver&&h.value&&(m=new window.ResizeObserver(S),m.observe(h.value)))}),(0,t.onUnmounted)(()=>{s||d&&(d.headerMounted=!1,m&&(m.disconnect(),m=null))});const C=(0,t.computed)(()=>{const E={};return s||(y.value.height!==null&&y.value.height!==void 0&&(E.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(E.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(E.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(E.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(E.paddingBottom=`${y.value.bottom}px`)),E}),N=(0,t.computed)(()=>{const E=y.value?.height;return Me(E)||E<0?!0:E>0});function b(){r.emit("back")}function k(){r.emit("click-title")}function B(){r.emit("click-right")}function A(){r.emit("click-right-text")}const $=()=>{if(!a.leftShow)return null;const E=[];if(r.slots.left)E.push(r.slots.left());else{if(r.slots.leftIcon){const V=(0,t.h)("view",{class:"left-icon",onClick:b},[r.slots.leftIcon()]);E.push(V)}else{const V=a.leftIcon??p.headerbar.Left??l,I=(0,t.h)("view",{class:"left-icon",onClick:b},[(0,t.h)(V)]);E.push(I)}if(a.leftText){const V=(0,t.h)("view",{class:"left-text",onClick:b},[a.leftText]);E.push(V)}}return E.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},E)},T=()=>{if(!a.rightShow)return null;const E=[];if(r.slots.right)E.push(r.slots.right());else{if(a.rightText){const V=(0,t.h)("view",{class:"right-text",onClick:A},[a.rightText]);E.push(V)}if(r.slots.rightIcon){const V=(0,t.h)("view",{class:"right-icon",onClick:B},[r.slots.rightIcon()]);E.push(V)}else if(a.rightIcon){const V=(0,t.h)("view",{class:"right-icon",onClick:B},[(0,t.h)(a.rightIcon)]);E.push(V)}}return E.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},E)},U=()=>{if(!a.titleShow)return null;const E=[],V=r.slots.default?r.slots.default():null;if(V)E.push(V);else{if(a.title){const I=(0,t.h)("view",{class:"title-text"},[a.title]);E.push(I)}if(r.slots.titleIcon){const I=(0,t.h)("view",{class:"title-icon",onClick:k},[r.slots.titleIcon()]);E.push(I)}else if(a.titleIcon){const I=(0,t.h)("view",{class:"title-icon",onClick:k},[(0,t.h)(a.titleIcon)]);E.push(I)}}return E.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},E)},Z=()=>{const E=[],V=r.slots.bottom?r.slots.bottom():null;return V&&E.push(V),E.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(s||!N.value)return null;const E=[];if(r.slots.all)E.push(r.slots.all());else{const V=[],I=$();I&&V.push(I);const D=U();D&&V.push(D);const L=T();if(L&&V.push(L),V.length>0){const q=(0,t.h)("view",{class:g.value},V);E.push(q)}const O=Z();O&&E.push(O)}return E.length===0?null:(0,t.h)("view",{class:v.value,style:C.value,ref:h},E)}}}),{componentName:Ys,create:Xs,scope:Qs}=Q("header-bar"),Gs=Xs(Ws(Ys,Qs,oe.Left,!1)),il=Gs;function Zs(e,n,l=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,a){const r=ln(!1),s=on(!1),i=r?null:tt(),u=i?Mn(i):null,d=e,p=(0,t.computed)(()=>{const m={[d]:!0,[`${d}--${o.align}`]:!0,[`${d}--border`]:o.border,[`${d}--fixed`]:o.fixed};return s||(m[`${d}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),m}),c=Me(o.height)?null:de(o.height),v=(0,t.computed)(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r)return m;if(i&&u){const C=Oe(o.padding??u.footerPadding);return Object.assign(m,C),Me(c)||(u.footerHeight=c),m.height=u.footerHeight,m.safeAreaBottom=u.safeAreaBottom===-1?0:u.safeAreaBottom,m.safeAreaBottom>0&&(m.bottom=m.safeAreaBottom+(C.bottom??0),m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)),m}if(Me(c)||(m.height=c),o.padding){const C=Oe(o.padding);Object.assign(m,C)}return m}),g=(0,t.computed)(()=>{const m=v.value?.height;return Me(m)||m<0?!0:m>0}),w=(0,t.ref)(null),y=()=>u&&w.value&&w.value.offsetParent!==null?(l||(u.footerAllHeight=rl(w.value).height),u.footerMounted=!0,!0):!1,h=qe(y,120);let f=null;(0,t.onMounted)(()=>{r||u&&(tl(y,50,5,50,!0),window.ResizeObserver&&(f=new window.ResizeObserver(h),f.observe(w.value)))}),(0,t.onUnmounted)(()=>{r||u&&(u.footerMounted=!1,f&&(f.disconnect(),f=null))});const S=(0,t.computed)(()=>{const m={};return r||(v.value.height!==null&&v.value.height!==void 0&&(m.height=fe(v.value.height)),v.value.top!==null&&v.value.top!==void 0&&(m.paddingTop=fe(v.value.top)),v.value.left!==null&&v.value.left!==void 0&&(m.paddingLeft=fe(v.value.left)),v.value.right!==null&&v.value.right!==void 0&&(m.paddingRight=fe(v.value.right)),v.value.bottom!==null&&v.value.bottom!==void 0&&(m.paddingBottom=fe(v.value.bottom))),m});return()=>{if(r||!g.value)return null;const m=a.slots.default?a.slots.default():[];return(0,t.h)("view",{ref:w,class:p.value,style:S.value},m)}}}}var{componentName:Js,create:eu,scope:tu}=Q("footer-bar"),nu=eu(Zs(Js,tu,!1)),sl=nu;function ou(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(l,{slots:o,attrs:a}){const r=ln(!1),s=on(!1),i=r?null:tt(),u=(0,t.computed)(()=>({[e]:!0})),d=i?Mn(i):null,p=(0,t.computed)(()=>{const y={};if(r)return y;if(i&&d){if(l.padding){const k=Oe(l.padding);Object.assign(d.contentPadding,k)}const h=_n(i,d),f=Ln(i,d);let S="";d.contentHeight?S=`${d.contentHeight}`:S=`${d.height}px`,console.debug("[content]page height:",S),console.debug("[content]header height:",h),console.debug("[content]footer height:",f),console.debug("[content]padding:",d.contentPadding),y.height=S;let m=(d&&d.contentPadding&&d.contentPadding.top)??-1;(m>=0||h>0)&&(m=m<0?0:m,y.paddingTop=`${h+m}px`);let C=(d&&d.contentPadding&&d.contentPadding.bottom)??-1;(C>=0||f>0)&&(C=C<0?0:C,y.paddingBottom=`${f+C}px`);const N=(d&&d.contentPadding&&d.contentPadding.left)??-1;N>=0&&(y.paddingLeft=`${N}px`);const b=(d&&d.contentPadding&&d.contentPadding.right)??-1;return b>=0&&(y.paddingRight=`${b}px`),y}if(l.padding){const h=Oe(l.padding);h.left&&(y.paddingLeft=`${h.left}px`),h.top&&(y.paddingTop=`${h.top}px`),h.right&&(y.paddingRight=`${h.right}px`),h.bottom&&(y.paddingBottom=`${h.bottom}px`)}return y}),c=(0,t.ref)(null),v=()=>{if(d&&c.value){const y=zn(c.value);d.contentInnerHeight=y.height,d.contentInnerWidth=y.width}},g=qe(v,120);let w=null;return(0,t.onMounted)(()=>{s||r||(requestAnimationFrame(v),window.ResizeObserver&&c.value&&(w=new window.ResizeObserver(g),w.observe(c.value)))}),(0,t.onUnmounted)(()=>{s||r||w&&(w.disconnect(),w=null)}),()=>r?o.default?.():(0,t.h)(l.tag??"view",{...a,ref:c,class:u.value,style:p.value},o)}}}var{componentName:lu,create:au,scope:ru}=Q("content"),iu=au(ou(lu,ru)),ul=iu,Ct="GroupStateKey",Ci=Symbol.for("GroupScopeKey");function Fn(){return(0,t.inject)(Ci,!1)}function Rn(e=!0){(0,t.provide)(Ci,e)}function su(e,n={}){Reflect.ownKeys(n).forEach(l=>{if(typeof l!="string")return;const o=n[l];Me(o)||(e[l]=o)})}function uu(e,n={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};su(l,n);const o=(0,t.markRaw)({layout:(0,t.shallowRef)(l),passport:0,order:{index:0}});return e.set(Ct,o),o}function bo(e,n,l=-1,o=-1,a=!1,r,s,i){const u=e.get(Ct);if(!u)return;const d=e.get("groupLayout")??{};l===-1&&(l=d.column??1),o===-1&&(o=d.gutter??0),r||(r=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const p=de(r),c=de(s);i||(i=d.type??"grid");const v=()=>{const g=n===""||n===-1,w=de(n);let y=pe(l);const h=de(o);if(!g){let m=(w-(y-1)*h)/y;for(;c!==-1&&m>c;)y++,m=(w-(y-1)*h)/y;for(;p!==-1&&y>1&&m<p;)y--,m=(w-(y-1)*h)/y}let f=!1;const S=u.layout;S.value.width=n,S.value.column!==y&&(S.value.column=y,f=!0),S.value.gutter!==h&&(S.value.gutter=h,f=!0),S.value.type!==i&&(S.value.type=i,f=!0),f&&(0,t.triggerRef)(S)};if(a)v();else{const g=++u.passport;setTimeout(()=>{g===u.passport&&v()},50)}}function Kn(e,n=!1){let l;return n?l=e.getForParent(Ct):l=e.get(Ct),l.layout}function Un(e,n=!1){let l;return n?l=e.getForParent(Ct):l=e.get(Ct),l.order}function nr(e,n=1){if(n==="stretch")return-1;const l=pe(n);return l===-1?100:100*l/e}function Hn(e,n,l=1,o=0,a){const r={};let s=0;a?s=de(a):s=nr(n.column,l),s>0&&(r.width=`${s}%`);const i=nr(n.column,o);i>0&&(r["margin-left"]=`${i}%`);const u=n.gutter/2;return u>0&&(r["padding-left"]=`${u}px`,r["padding-right"]=`${u}px`),r}function jn(e,n,l=1,o=0){if(l==="stretch"){const u=e.index%n.column,d=u+(n.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let a=pe(l);if(a===-1){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}if(a>n.column){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}const r=pe(o)%n.column;let s=(e.index+r)%n.column,i=s+a;return i>n.column?(s=0,i=s+a,e.index=e.index+(n.column-s)+a):e.index=e.index+r+a,r>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}var Ni=Symbol("RollingStateKey");function cu(e){(0,t.provide)(Ni,e)}function du(){return(0,t.inject)(Ni,null)}function Mo(e){let n=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const o=parseFloat(l.getPropertyValue("padding-top")),a=parseFloat(l.getPropertyValue("padding-bottom"));n=e.clientHeight-o-a}else n=e.offsetHeight;return n}function fu(e){let n=Mo(e);if(n<=0){const l=e.cloneNode(!0);l.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),n=Mo(l),document.body.removeChild(l)}return n}function mu(e,n,l){const o=typeof e=="number"?e:parseInt(e),a=typeof n=="number"?n:parseInt(n),r=typeof l=="number"?l:parseInt(l);if(o<=0)return"1fr";const s=(o-(a-1)*r)/a;return s>0?`${s}px`:"1fr"}function Bi(e){const n=[];return e.forEach(l=>{l.type===t.Fragment&&Array.isArray(l.children)?n.push(...Bi(l.children)):n.push(l)}),n}function pu(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Ai(e){function n(){return Bi(e?.()??[]).filter(pu)}return{getChildren:n}}var vu={...ve,...bi,...ki};function hu(e,n,l){return{props:vu,emits:["update:collapse","header-click"],setup(o,a){const r=nl(o.prop??o.name,o,Si),s=uu(r,{type:o.type}),i=Fn();Rn(!0);const u=o.rollingDisplay?du():null,d=(0,t.ref)(null),p=(0,t.computed)(()=>o.rollingDisplay?u&&!u.disabled:!1),c=(0,t.computed)(()=>i&&r?Kn(r,!0).value:null),v=(0,t.getCurrentInstance)(),g=(M,H=!1)=>{const P=v?.proxy;P&&typeof P.setNameValidateRules=="function"&&P.setNameValidateRules(M,!0,H)};(0,t.watch)([()=>o.rules,()=>o.pureDataRules],([M,H],[P,x])=>{if(M&&P){const j=(0,t.toRaw)(P),G=(0,t.toRaw)(M),le=G?Reflect.ownKeys(G):[];(j?Reflect.ownKeys(j):[]).forEach(ae=>{le.includes(ae)||(G[ae]=[])}),g(G)}if(H&&x){const j=(0,t.toRaw)(x),G=(0,t.toRaw)(H),le=G?Reflect.ownKeys(G):[];(j?Reflect.ownKeys(j):[]).forEach(ae=>{le.includes(ae)||(G[ae]=[])}),g(G,!0)}},{deep:!0});const w=e,y=(0,t.computed)(()=>{const M={};if(M.height=V.value,o.width)o.width!=="auto"&&(M.width=fe(o.width));else{const H=i?Un(r,!0):null;if(c.value&&H){if(c.value.type==="grid"){const P=jn(H,c.value,o.span,o.offset);Object.assign(M,P)}else if(c.value.type==="flow"){const P=Hn(H,c.value,o.span,o.offset,o.width);Object.assign(M,P)}}}return M}),h=(0,t.computed)(()=>{const M=s.layout.value.type;return M==="grid"||M==="flow"?{[`${w}--${M}`]:!0,[`${w}--${M}-justify-${o.justify}`]:!0,[`${w}--${M}-align-${o.align}`]:!0,[`${w}--gutter`]:!0}:{[`${w}--${M}`]:!0,[`${w}--gutter`]:!0}}),f=(0,t.computed)(()=>{if(s.layout.value.type==="grid"){let M="";if(o.columnWidth)M=`repeat(auto-fill, ${o.columnWidth})`;else{const H=mu(B.value,s.layout.value.column,s.layout.value.gutter);M=`repeat(${s.layout.value.column}, ${H})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":M}}}),S=(0,t.toRef)(o,"gutter"),m=(0,t.toRef)(o,"column"),C=(0,t.computed)(()=>i||p.value?!0:ye(o.isWrap)),N=[],b=M=>{N.push(M)},k=()=>{let M=N.length;N.splice(0,M)},B=(0,t.ref)(-1),A=M=>{const H=zn(M).width;H>0&&H!==B.value&&(B.value=H)};bo(r,B.value,m.value,S.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&(0,t.watch)([B,m,S],([M,H,P])=>{s.order.index=0,bo(r,M,H,P,!1,o.minItemWidth,o.maxItemWidth,o.type)});const $=(0,t.computed)(()=>I.value?o.expandText??"":o.collapseText??""),T=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),U=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!I.value,"is-collapse":I.value})),Z=(0,t.ref)(),E=(0,t.ref)(),V=(0,t.computed)(()=>D.value||fe(o.height)||""),I=(0,t.ref)(!1),D=(0,t.ref)(""),L=(0,t.ref)(!1);let O=-1;const q=(M,H=!0)=>{const P=Z.value;if(P&&I.value!==M){if(O=O<=0?fu(P):O,L.value=!0,H)if(P.style["will-change"]="height",P.ontransitionend=function(){P.ontransitionend=null,this.style["will-change"]="auto",M||(D.value="",L.value=!1)},M){let x=0;o.collapseHeight?x=o.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(x=E.value.offsetHeight),D.value=`${O}px`,(0,t.nextTick)(()=>{D.value=`${x}px`})}else D.value=`${O}px`;else if(M){let x=0;o.collapseHeight?x=o.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(x=E.value.offsetHeight),D.value=`${x}px`}else L.value=!1,D.value=`${O}px`;I.value=M,a.emit("update:collapse",M)}};(0,t.watch)(()=>o.collapse,M=>{q(M)});const X=M=>{a.emit("header-click",M)},te=()=>{z()},z=M=>{M=M??!I.value,q(M)};$e({toggleCollapse:z,doLayout:()=>{N[0]&&(A(N[0]),bo(r,B.value,m.value,S.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let _=null,Y=!0;const F=M=>{if(o.rules&&g((0,t.toRaw)(o.rules)),o.pureDataRules&&g((0,t.toRaw)(o.pureDataRules),!0),!!Je&&(M&&q(ye(o.collapse),!1),o.autoLayout&&Array.isArray(N)&&N.length>0)){const H=N[0];if(A(H),window.ResizeObserver){const P=qe(()=>A(H),120);_=new window.ResizeObserver(P),_.observe(H)}}},K=()=>{_?.disconnect(),_=null},J=!p.value||u?.acquire();J&&(d.value=p.value?!0:null),(0,t.onMounted)(()=>{if(J&&(F(Y),Y=!1),p.value&&u){let M=null,H=u.initialHeight;u.observe(Z.value,P=>{if(P!==d.value)if(P)d.value=!0,I.value||(D.value=""),M=setTimeout(()=>{M=null,d.value!==!1&&(F(Y),Y=!1)},100);else{if(M!==null&&clearTimeout(M),d.value=!1,!I.value)if(Y)D.value=u.initialHeight;else{let x=Mo(Z.value);x<=0?D.value=H:(D.value=`${x}px`,H=D.value)}Y||K()}})}}),(0,t.onUnmounted)(()=>{_?.disconnect(),u&&u.unobserve(Z.value)});const W=(M="right")=>{const H=[];if($.value){const j=(0,t.h)("span",{class:T.value},[$.value]);H.push(j)}const P={class:U.value},x=(0,t.h)(o.collapseIcon??l,P);return H.push(x),H.length>0?(0,t.h)("div",{class:{[`${w}__header-collapse`]:!0,[`is-${M}`]:!0},onClick:te},H):null},ee=(M,H,P,x)=>{const j={...h.value};if(H===0&&(j[`${w}__first`]=!0),P>=x-1&&(j[`${w}__last`]=!0),C.value===!1){const G=a.attrs.class;G&&(j[`${G}`]=!0)}return(0,t.h)("div",{ref:b,key:`${H}`,class:j,style:f.value},M)};return()=>{const M=o.prop??o.name;if(p.value&&d.value!==!0)return(0,t.h)(o.tag||"div",{ref:Z,prop:M,class:{[`${w}`]:!0,"is-collapse":L.value},style:y.value},[]);s.order.index=0;const H=[];let P=0;if(a.slots.header){const le=(0,t.h)("div",{key:`${P++}`,ref:E,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:X},[a.slots.header()]);H.push(le)}else{const le=[],ae=o.collapsePosition==="left";if(ae&&o.showCollapse){const ie=W("left");ie&&le.push(ie)}if(o.title||a.slots.title){if(o.showMark){const ie={class:{[`${w}__header-mark`]:!0}};o.markColor&&(ie.style={background:o.markColor});const ke=(0,t.h)("div",ie);le.push(ke)}if(a.slots.title){const ie=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[a.slots.title()]);le.push(ie)}else if(o.title){const ie=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[o.title]);le.push(ie)}}if(a.slots.toolbar&&le.push(a.slots.toolbar()),!ae&&o.showCollapse){const ie=W("right");ie&&le.push(ie)}if(le.length>0){const ie=(0,t.h)("div",{key:`${P++}`,ref:E,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:X},le);H.push(ie)}}k();const{getChildren:x}=Ai(a.slots.default),j=x(),G=s.layout.value.type;if(G==="grid"){const le=ee(j,P++,0,j.length);H.push(le)}else if(G==="flow"){const le=ee(j,P++,0,j.length);H.push(le)}else for(let le=0;le<j.length;le++){const ae=j[le],ie=ee([ae],P++,le,j.length);H.push(ie)}return C.value?(0,t.h)(o.tag||"div",{ref:Z,prop:M,class:{[`${w}`]:!0,"is-collapse":L.value},style:y.value},[H]):H}}}}var{componentName:gu,create:yu,scope:bu}=Q("group"),ku=yu(hu(gu,bu,oe.RectUp)),cl=ku;function Su(e){return e===window}var wu=/matrix\((.+)\)/,dl=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(Su(n))return{x:0,y:0};let l=0,o=0,a=n;for(;a!==null;)l+=a.offsetLeft,o+=a.offsetTop,a=a.offsetParent;let r=0,s=0,i=0,u=0;for(a=n;a!==document;){s+=a.scrollTop,r+=a.scrollLeft;const{transform:d}=window.getComputedStyle(a);if(d){const p=wu.exec(d);if(p){let c=p[1].split(/\s*,\s*/);c.length==6&&(i+=Number(c[4]),u+=Number(c[5]))}}a=a.parentNode}return l-=r,o-=s,l+=i,o+=u,{x:l,y:o}},Cu=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{}})}},Nu=class{monitorRegister=new WeakMap;watch(e,n){let l=e.parentNode;const o=document.body.parentNode;for(;l&&l!==o;){let a=this.monitorRegister.get(l);a||(a=new Cu,l.addEventListener("scroll",a.listen),l===document.body&&l.addEventListener("resize",a.listen),this.monitorRegister.set(l,a)),a.add(n),l=l.parentNode}}unwatch(e,n){let l=e.parentNode;const o=document.body.parentNode;for(;l&&l!==o;){let a=this.monitorRegister.get(l);a&&(a.remove(n),a.size()===0&&(this.monitorRegister.delete(l),l.removeEventListener("scroll",a.listen),l===document.body&&l.removeEventListener("resize",a.listen))),l=l.parentNode}}},Kt=new Nu,Vi={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:Bu,create:Au}=Q("price"),Vu=Au({props:{...Vi},setup(e){const n=(0,t.computed)(()=>({[Bu]:!0})),l=(0,t.computed)(()=>e.needSymbol?e.symbol:""),o=(0,t.computed)(()=>be(e.price)==0?"":$n(e.price,e.decimalLength,!0,pe(e.digits),e.separator));return{classes:n,showSymbol:l,intText:(0,t.computed)(()=>{let a=o.value;if(a.length==0)return"";let r=a.indexOf(".");return a.substring(0,r)}),decimalText:(0,t.computed)(()=>{let a=o.value;if(a.length==0)return"";let r=a.indexOf(".");return a.substring(r+1)})}}}),ne=(e,n)=>{const l=e.__vccOpts||e;for(const[o,a]of n)l[o]=a;return l},Tu=["innerHTML"],$u=["innerHTML"];function Eu(e,n,l,o,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,Tu)):(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,$u)):(0,t.createCommentVNode)("",!0)],2)}var Ge=ne(Vu,[["render",Eu]]),{componentName:ko,create:xu}=Q("hint-text"),Du=xu({components:{Price:Ge},props:{...Vi,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:()=>6},showArrow:{type:Boolean,default:()=>!0},arrowOffset:{type:Number,default:()=>20},offset:{type:Number,default:()=>12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const l=(0,t.ref)({top:null,right:null,bottom:null,left:null}),o=(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),u=(0,t.ref)(null),d=(T,U,Z,E,V,I)=>{const D=document.documentElement.clientWidth||document.body.clientWidth,L=document.documentElement.clientHeight||document.body.clientHeight,O=T.split("-");let q=[];O[0]==="top"?q=["top","bottom","right","left"]:O[0]==="bottom"?q=["bottom","top","right","left"]:O[0]==="left"?q=["left","top","bottom","right"]:O[0]==="right"&&(q=["right","top","bottom","left"]);const X={top:null,right:null,bottom:null,left:null},te=[];for(let z=0;z<q.length;z++){const R=q[z];if(te[0]=R,O[1]&&(te[1]=O[1]),R==="top"){const _=U.y-I-e.arrowSize-e.offset;if(_>=0){X.top=_;let Y=0;O[1]==="start"?Y=U.x:O[1]==="end"?Y=U.x+Z-V:Y=U.x+Z/2-V/2;const F=D-Y-V;F<0?(Y+=F,c.value=-F):c.value=0,X.left=Y<0?0:Y;break}}else if(R==="bottom"){const _=U.y+E+e.arrowSize+e.offset;if(_+I<=L){X.top=_;let Y=0;O[1]==="start"?Y=U.x:O[1]==="end"?Y=U.x+Z-V:Y=U.x+Z/2-V/2;const F=D-Y-V;F<0?(Y+=F,c.value=-F):c.value=0,X.left=Y<0?0:Y;break}}else if(R==="left"){const _=U.x-V-e.arrowSize-e.offset;if(_>=0){X.left=_;let Y=0;O[1]==="start"?Y=U.y:O[1]==="end"?Y=U.y+E-I:Y=U.y+E/2-I/2,X.top=Y<0?0:Y;break}}else if(R==="right"){const _=U.x+Z+e.arrowSize+e.offset;if(_+V<=D){X.left=_;let Y=0;O[1]==="start"?Y=U.y:O[1]==="end"?Y=U.y+E-I:Y=U.y+E/2-I/2,X.top=Y<0?0:Y;break}}}return{bestPlacement:te.join("-"),bestInsetRect:X}},p=(T,U,Z=10)=>{if(!Je||U===!1||!T)return;o.value=dl(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const E=u.value.offsetHeight,V=u.value.offsetWidth,{bestPlacement:I,bestInsetRect:D}=d(e.placement,o.value,a.value,r.value,V,E);s.value=I,l.value=D,i.value=!0},c=(0,t.ref)(0),v=qe(()=>{p(e.message,e.visible)},10),g=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,T=>{g.value=T});const w=(0,t.computed)(()=>g.value&&y.value),y=(0,t.ref)(!0),h=qe(T=>{const U=T[0];U&&(y.value=U.isIntersecting)},10),f=new IntersectionObserver(h);(0,t.watch)([()=>e.message,()=>e.visible],([T,U])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Kt.watch(e.reference,v),f.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Kt.unwatch(e.reference,v),f.unobserve(e.reference),f.disconnect()});const S=(0,t.computed)(()=>{const T={[ko]:!0};return s.value.startsWith("top")?T["is-top"]=!0:s.value.startsWith("right")?T["is-right"]=!0:s.value.startsWith("bottom")?T["is-bottom"]=!0:s.value.startsWith("right")&&(T["is-right"]=!0),e.size==="small"?T["is-small"]=!0:e.size==="large"&&(T["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(T[`${e.customClass}`]=!0),T}),m=(0,t.computed)(()=>{const T={};return l.value.top!==null&&(T.top=`${l.value.top}px`),l.value.right!==null&&(T.right=`${l.value.right}px`),l.value.bottom!==null&&(T.bottom=`${l.value.bottom}px`),l.value.left!==null&&(T.left=`${l.value.left}px`),e.autoFit&&(T["min-width"]=`${a.value}px`),T["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,i.value&&(T.opacity="1"),e.transition||(T.transition="none"),e.zIndex&&(T["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(T,e.customStyle),T}),C=(0,t.computed)(()=>{const T=[`${ko}__content`];return e.customTextClass&&T.push(e.customTextClass),T}),N=(0,t.computed)(()=>{const T={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(T,e.customTextStyle),T}),b=(0,t.computed)(()=>({[`${ko}__arrow`]:!0})),k=(0,t.computed)(()=>{const T={};return e.showArrow?(T.width=`${e.arrowSize}px`,T.height=`${e.arrowSize}px`,s.value==="top"?(T.left="50%",T.bottom=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):s.value==="top-start"?(T.left=`${e.arrowOffset+c.value}px`,T.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(T.right=`${e.arrowOffset-c.value}px`,T.bottom=`-${e.arrowSize}px`):s.value==="right"?(T.left=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):s.value==="right-start"?(T.left=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):s.value==="right-end"?(T.left=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(T.left="50%",T.top=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(T.left=`${e.arrowOffset+c.value}px`,T.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(T.right=`${e.arrowOffset-c.value}px`,T.top=`-${e.arrowSize}px`):s.value==="left"?(T.right=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):s.value==="left-start"?(T.right=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):s.value==="left-end"&&(T.right=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`),T):{display:"none"}}),B=(0,t.computed)(()=>w.value&&e.closeOnClick),A=(0,t.computed)(()=>{const T={};return e.zIndex&&(T["z-index"]=`${e.zIndex}`),T});return{show:w,tipRef:u,classes:S,styles:m,textClasses:C,textStyles:N,arrowClasses:b,arrowStyles:k,overlayShow:B,overlayStyle:A,onClickOverlay:()=>{g.value=!1,n.emit("update:visible",!1)}}}}),Iu=["innerHTML"];function qu(e,n,l,o,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,Iu))],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 Ti=ne(Du,[["render",qu]]),Wn=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},_o={},Pu=new Wn,bt=new Map,Vn=e=>{if(e){const n=document.getElementById(e);bt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of bt.keys()){const l=document.getElementById(n);l&&l.parentNode?.removeChild(l)}bt.clear()}},Mu=e=>{e.unmount=Vn;const n=document.getElementById(e.id);if(n){const l=bt.get(e.id);return l?e={..._o,...l,...e}:e={..._o,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(Ti,e),n),e.id}},_u=e=>{e.unmount=Vn;let n=e.id??`hinttext_${Pu.get()}`;e={..._o,...e},e.id=n,bt.set(n,e);const l=document.createElement("div");return l.id=e.id,(0,t.render)((0,t.createVNode)(Ti,e),l),document.body.appendChild(l),n},Lu=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},xt={show(e,n,l={},o=!0){Lu(n);const a=l.id;return a&&bt.has(a)?Mu({...l,message:n,reference:e}):(o&&Vn(),_u({...l,message:n,reference:e}))},hide(e){Vn(e)},install(e){e.config.globalProperties.$hintText=xt}};function zu(e,n,l,o=!1){return{inheritAttrs:!0,props:{...ve,...ge},emits:["appear","disappear"],setup(a,r){const s=a.prop??r.attrs.name;Be({componentName:e,validate:!1},s);const i=tt(),u=Fn();Rn(!1);const d=(0,t.computed)(()=>u&&i?Kn(i,!1).value:null),p=e,c=(0,t.ref)(null),v=(0,t.computed)(()=>{const x={[p]:!0,[`${p}__gutter`]:d.value&&d.value.type!=="flow",[`${p}__stretch`]:a.span==="stretch",[`${p}__input--border`]:ye(a.hasBorder)};if(x[a.errorMarkClass]=!!I.value,x[a.warnMarkClass]=!!E.value,x[a.infoMarkClass]=!!U.value,typeof c.value=="function"){const j=c.value(s);x[j]=!0}else if(typeof c.value=="string"){const j=c.value;x[j]=!0}return x}),g=(0,t.ref)(null),w=(0,t.computed)(()=>{const x={};if(a.width)a.width!=="auto"&&(x.width=fe(a.width));else{const j=u&&i?Un(i,!1):null;if(d.value&&j){if(d.value.type==="grid"){const G=jn(j,d.value,a.span,a.offset);Object.assign(x,G)}else if(d.value.type==="flow"){const G=Hn(j,d.value,a.span,a.offset,a.width);Object.assign(x,G)}}}if(typeof g.value=="function"){const j=g.value(s);j&&Object.assign(x,j)}else if(g.value&&typeof g.value=="object"){const j=g.value;Object.assign(x,j)}return x}),y=(0,t.ref)(null),h=(0,t.computed)({get:()=>y.value??ye(a.isRequired),set:x=>{y.value=x}}),f=()=>typeof a.label=="string"&&a.label.length>0||typeof r.slots.label=="function",S=Ae((0,t.toRef)(a,"labelPosition"),"labelPosition",ut.Near),m=(0,t.computed)(()=>S&&S.value==="top"?"top":S&&S.value==="right"?"right":"left"),C=(0,t.computed)(()=>({[`${p}__main`]:!0,[`${p}__main--${m.value}`]:!0})),N=(0,t.computed)(()=>({label:!0,[`label--${m.value}`]:!0})),b=Ae((0,t.toRef)(a,"labelWidth"),"labelWidth",ut.Near),k=(0,t.computed)(()=>b&&b.value?{width:fe(b.value)}:{}),B=(0,t.computed)(()=>({"label--string":!0,"label--required":h.value})),A=(0,t.computed)(()=>({content:!0,[a.contentClass]:!0})),$=(0,t.computed)(()=>({...a.contentStyle})),T=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(x){h.value=x},setErrorTip(x){T.errorTip=x},setErrorIcon(x){T.errorIcon=x},setWarnTip(x){T.warnTip=x},setWarnIcon(x){T.warnIcon=x},setInfoTip(x){T.infoTip=x},setInfoIcon(x){T.infoIcon=x},setCustomClassName(x){c.value=x},setCustomStyle(x){g.value=x}});const U=(0,t.computed)(()=>a.infoTip||T.infoTip),Z=(0,t.computed)(()=>a.infoIcon||T.infoIcon),E=(0,t.computed)(()=>a.warnTip||T.warnTip),V=(0,t.computed)(()=>a.warnIcon||T.warnIcon),I=(0,t.computed)(()=>a.errorTip||T.errorTip),D=(0,t.computed)(()=>a.errorIcon||T.errorIcon),L=(0,t.computed)(()=>I.value?"error":E.value?"warn":U.value?"info":""),O=()=>L.value.length>0,q=(0,t.computed)(()=>L.value==="error"?I.value:L.value==="warn"?E.value:L.value==="info"?U.value:""),X=(0,t.computed)(()=>L.value==="error"?D.value:L.value==="warn"?V.value:L.value==="info"?Z.value:null),te=(0,t.computed)(()=>{const x={[`${p}__tip`]:!0,[`${p}__tip--${L.value}`]:!0,[`${p}--animate`]:!0};return L.value==="error"&&a.errorClass?x[`${a.errorClass}`]=!0:L.value==="warn"&&a.warnClass?x[`${a.warnClass}`]=!0:L.value==="info"&&a.infoClass&&(x[`${a.infoClass}`]=!0),x}),z=(0,t.computed)(()=>{const x={};return S&&S.value==="top"||!f()?x["padding-left"]="0px":b&&b.value&&(x["padding-left"]=fe(b.value)),x}),R=(0,t.ref)();let _="";(0,t.watch)([()=>a.hintVisible,()=>a.hintText,()=>a.hintType,()=>a.hintProps],([x,j,G,le])=>{R.value&&(x&&!ue(j)?_?l.show(R.value,j,{...le,id:_,type:G},!0):_=l.show(R.value,j,{...le,type:G},!0):l.hide(_))});let Y=null;const F=()=>{Y||!R.value||(Y=new IntersectionObserver(x=>{let j=!1;for(let G of x)if(G.intersectionRatio>0){j=!0,j&&r.emit("appear",G);break}j||r.emit("disappear")}),Y.observe(R.value))},K=()=>{!Y||!R.value||(Y.unobserve(R.value),Y=null)};(0,t.watch)(()=>ye(a.appearListen),x=>{x?F():K()}),(0,t.onMounted)(()=>{ye(a.appearListen)&&F()}),(0,t.onUnmounted)(K);const J=()=>{if(!f())return null;const x=[],j=r.slots?.label?.()??a.label,G=(0,t.h)("div",{class:B.value},[j]);if(x.push(G),r.slots.fixedPreTip){const le=r.slots.fixedPreTip();x.push(le)}return(0,t.h)("div",{class:N.value,style:k.value},x)},W=()=>{const x=[];if(r.slots.prepend){const j=r.slots.prepend();x.push(j)}if(r.slots.default){const j=r.slots.default();x.push(j)}if(r.slots.append){const j=r.slots.append();x.push(j)}if(r.slots.fixedTip){const j=(0,t.h)("div",{class:[`${p}__fixed-tip`]},[r.slots.fixedTip()]);x.push(j)}return(0,t.h)("div",{ref:R,class:A.value,style:$.value},x)},ee=()=>{const x=X.value;return x?typeof x=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[x()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(x)]):null},M=()=>{const x=q.value;return x?typeof x=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[x()]):(0,t.h)("div",{class:"fox-item__tip--text"},[x]):null},H=()=>{if(!O())return null;const x=[],j=ee();j&&x.push(j);const G=M();return G&&x.push(G),(0,t.h)("div",{class:te.value,style:z.value},x)},P=()=>r.slots?.hide?.()??null;return()=>{const x=[],j=[],G=J();G&&j.push(G);const le=W();le&&j.push(le);const ae=(0,t.h)("div",{class:C.value},j);x.push(ae);const ie=H();ie&&x.push(ie);const ke=P();return ke&&x.push(ke),(0,t.h)("div",{class:v.value,style:w.value,prop:a.prop},x)}}}}var{componentName:Ou,create:Fu,scope:Ru}=Q("item"),Ku=Fu(zu(Ou,Ru,xt,!1)),Ce=Ku,$i={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 Uu(e,n){return{props:{...$i},setup(l,o){const a=e,r=(0,t.computed)(()=>({[a]:!0,[`${a}__stretch`]:l.span==="stretch",[`${a}__${l.align}`]:!0})),s=tt(),i=Fn();Rn(!1);const u=(0,t.computed)(()=>{const d={};if(l.width)l.width!=="auto"&&(d.width=fe(l.width));else if(i&&s){const p=Kn(s,!1),c=Un(s,!1);if(p.value&&c){if(p.value.type==="grid"){const v=jn(c,p.value,l.span,l.offset);Object.assign(d,v)}else if(p.value.type==="flow"){const v=Hn(c,p.value,l.span,l.offset,l.width);Object.assign(d,v)}}}return l.gutter&&(d.gap=fe(l.gutter)),d});return()=>{const d=[];if(o.slots.default){const p=o.slots.default();if(l.divide)for(let c=0;c<p.length;c++){if(c>0){const v=(0,t.h)("div",{class:{[`${a}__divide`]:!0}});d.push(v)}d.push(p[c])}else Reflect.apply([].push,d,p)}return(0,t.h)("div",{class:r.value,style:u.value},d)}}}}var{componentName:Hu,create:ju,scope:Wu}=Q("row-item"),Yu=ju(Uu(Hu,Wu)),Yn=Yu,Xu=(0,t.defineComponent)({name:"ArrowDown",__name:"arrow-down",setup(e){return(n,l)=>((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 Qu(e,n){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const o=l.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const a=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},500)}var Gu={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 Zu(e,n,l,o=!1){return{props:{...Gu},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}),u=(0,t.computed)(()=>{const m={},C=a.textColor??a.color;return C&&(m.color=C),m}),d=(m,C)=>{let N=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const b=a.highlightFilter;m.indexOf(b)!==-1&&(C.innerHTML=m.replace(new RegExp(b,"g"),`<span>${b}</span>`),C.class["is-highlight"]=!0,N=(0,t.h)(a.tag,C))}else if(typeof a.highlightFilter=="function"){const b=a.highlightFilter(m);b&&(C.innerHTML=b,C.class["is-highlight"]=!0,N=(0,t.h)(a.tag,C))}return N},p=m=>{r.emit("click",m)};let c="";const v=()=>{const m=s.value;if(!m)return;const C=m.clientWidth;Qu(m,N=>{const b=m.innerHTML??"";ue(b)||N<C||(c?l?.show(m,b,{type:"text",id:c,showArrow:a.showArrow},!0):c=l?.show(m,b,{type:"text",showArrow:a.showArrow},!0)??"")})},g=()=>{c&&l?.hide(c)};let w=null;const y=m=>{w||(w=setTimeout(()=>{v(),w=null},a.showAfter??0))},h=m=>{w&&(clearTimeout(w),w=null),setTimeout(()=>{g()},a.hideAfter??0)},f=()=>{const m=s.value;m&&(m.addEventListener("mouseover",y),m.addEventListener("mouseleave",h))},S=()=>{const m=s.value;m&&(m.removeEventListener("mouseover",y),m.removeEventListener("mouseleave",h))};return(0,t.onMounted)(()=>{!ye(a.showOverflowTooltip)||!l||f()}),(0,t.onBeforeUnmount)(()=>{!ye(a.showOverflowTooltip)||!l||S()}),()=>{const m={onClick:p,class:i.value,style:u.value,ref:s};let C=null;if(ye(a.numberFormat)&&typeof r.slots.default=="function"){const b=r.slots.default();if(Array.isArray(b)&&b.length===1){const k=b[0].type.toString();if(k==="Symbol(Text)"||k==="Symbol(v-txt)"){const B=pe(a.digits),A=pe(a.decimalLength),$=ye(a.autoPadding);let T=`${b[0].children}`,U=T.split("").reverse().join("");U=$n(U,A,$,B,a.separator),T=U.split("").reverse().join(""),a.highlightFilter!==void 0&&(C=d(T,m)),C||(m.innerHTML=T,C=(0,t.h)(a.tag,m))}}}else{if(a.highlightFilter!==void 0&&typeof r.slots.default=="function"){const b=r.slots.default();if(Array.isArray(b)&&b.length===1){const k=b[0].type.toString();if(k==="Symbol(Text)"||k==="Symbol(v-txt)"){const B=`${b[0].children}`;C=d(B,m),C||(m.innerHTML=B,C=(0,t.h)(a.tag,m))}}}C||(C=(0,t.h)(a.tag,m,{default:r.slots.default}))}if(!a.mark&&!a.icon&&!r.slots.mark)return C;const N=[];if(r.slots.mark){const b={[`${e}__mark-wrap`]:!0};a.type&&(b[`${e}__mark-wrap--${a.type}`]=!0);const k={},B=a.color;B&&(k.color=B);const A=(0,t.h)("view",{class:b,style:k},{default:r.slots.mark});N.push(A)}else{const b={[`${e}__mark`]:!0};a.type&&(b[`${e}__mark--${a.type??"default"}`]=!0);const k={},B=a.color;B&&(k["background-color"]=B);const A=(0,t.h)("view",{class:b,style:k});N.push(A)}if(a.divide){const b=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});N.push(b)}return N.push(C),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":a.textPosition==="left","text-right":a.textPosition==="right"}},N)}}}}var{componentName:Ju,create:ec,scope:tc}=Q("text"),nc=ec(Zu(Ju,tc,xt,!1)),Xn=nc,oc={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 lc(e,n,l=!1){return{props:{...oc},emits:["update:visible"],setup(o,{emit:a,slots:r,expose:s}){const i=(0,t.ref)({top:null,right:null,bottom:null,left:null}),u=(0,t.ref)(0),d=(0,t.ref)(0),p=(0,t.ref)(0),c=(0,t.ref)(0),v=(0,t.ref)(o.placement),g=(0,t.ref)(!1),w=(0,t.ref)(!1),y=(0,t.ref)(null),h=()=>typeof o.reference=="string"?document.querySelector(o.reference):o.reference,f=(q,X,te,z,R,_,Y,F=!0)=>{const K=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,W=q.split("-");let ee=[];F?W[0]==="top"?ee=["top","bottom","right","left"]:W[0]==="bottom"?ee=["bottom","top","right","left"]:W[0]==="left"?ee=["left","top","bottom","right"]:W[0]==="right"&&(ee=["right","top","bottom","left"]):ee=[q[0]];const M={top:null,right:null,bottom:null,left:null},H=[];for(let P=0;P<ee.length;P++){const x=ee[P];if(H[0]=x,W[1]&&(H[1]=W[1]),x==="top"){const j=te-Y-o.arrowSize/2-o.offset;if(j>=0){M.top=j;let G=0;W[1]==="start"?G=X:W[1]==="end"?G=X+z-_:G=X+z/2-_/2;const le=K-G-_;le<0?(G+=le,m.value=-le):m.value=0,M.left=G<0?0:G;break}}else if(x==="bottom"){const j=te+R+o.arrowSize/2+o.offset;if(j+Y<=J){M.top=j;let G=0;W[1]==="start"?G=X:W[1]==="end"?G=X+z-_:G=X+z/2-_/2;const le=K-G-_;le<0?(G+=le,m.value=-le):m.value=0,M.left=G<0?0:G;break}}else if(x==="left"){const j=X-_-o.arrowSize/2-o.offset;if(j>=0){M.left=j;let G=0;W[1]==="start"?G=te:W[1]==="end"?G=te+R-Y:G=te+R/2-Y/2,M.top=G<0?0:G;break}}else if(x==="right"){const j=X+z+o.arrowSize/2+o.offset;if(j+_<=K){M.left=j;let G=0;W[1]==="start"?G=te:W[1]==="end"?G=te+R-Y:G=te+R/2-Y/2,M.top=G<0?0:G;break}}}return{bestPlacement:H.join("-"),bestInsetRect:M}},S=()=>{const q=o.visible,X=o.autoFit;if(!Je||q===!1)return;if(o.reference){const Y=h(),F=dl(Y);u.value=F.x,d.value=F.y,p.value=Y.offsetWidth,c.value=Y.offsetHeight}else o.referenceInset&&(u.value=o.referenceInset.left,d.value=o.referenceInset.top,p.value=o.referenceInset.right-o.referenceInset.left,c.value=o.referenceInset.bottom-o.referenceInset.top);const te=y.value.offsetWidth,z=y.value.offsetHeight,{bestPlacement:R,bestInsetRect:_}=f(o.placement,u.value,d.value,p.value,c.value,te,z,X);v.value=R,i.value=_},m=(0,t.ref)(0),C=qe(()=>{S()},10),N=(0,t.ref)(o.visible);(0,t.watch)([()=>o.visible],([q])=>{N.value=q,q?(g.value=q,setTimeout(()=>{S(),w.value=!0},0)):w.value=!1});const b=(0,t.computed)(()=>N.value&&k.value),k=(0,t.ref)(!0),B=qe(q=>{const X=q[0];X&&(k.value=X.isIntersecting)},10),A=new IntersectionObserver(B);(0,t.watch)([()=>o.reference,()=>o.referenceInset],([q,X],[te,z])=>{!q&&!X||(setTimeout(()=>{S()},0),o.autoFit&&(te&&(Kt.unwatch(te,C),A.unobserve(te)),q&&(Kt.watch(q,C),A.observe(q))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{o.reference&&(Kt.unwatch(o.reference,C),A.unobserve(o.reference),A.disconnect())});const $=(0,t.computed)(()=>{const q={[e]:!0};return v.value.startsWith("top")?q["is-top"]=!0:v.value.startsWith("right")?q["is-right"]=!0:v.value.startsWith("bottom")?q["is-bottom"]=!0:v.value.startsWith("left")&&(q["is-left"]=!0),q[`is-${o.effect}`]=!0,!w.value&&b.value&&(q["is-opacity"]=!0),w.value&&b.value&&(q["is-show"]=!0),b.value||(q["is-hide"]=!0),o.customClass&&typeof o.customClass=="string"&&(q[`${o.customClass}`]=!0),q}),T=(0,t.computed)(()=>{const q={};return i.value.top!==null&&(q.top=`${i.value.top}px`),i.value.right!==null&&(q.right=`${i.value.right}px`),i.value.bottom!==null&&(q.bottom=`${i.value.bottom}px`),i.value.left!==null&&(q.left=`${i.value.left}px`),o.width&&(q.width=o.width),o.zIndex&&(q["z-index"]=`${o.zIndex}`),o.customStyle&&typeof o.customStyle=="object"&&Object.assign(q,o.customStyle),q}),U=()=>{N.value=!1,a("update:visible",!1)},Z=()=>o.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:U}):null,E=()=>{let q=null;return r.title?q=(0,t.h)("div",{class:`${e}__title`},{default:r.title}):o.title&&(q=(0,t.h)("div",{class:`${e}__title`},[o.title])),q},V=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),I=(0,t.computed)(()=>{const q={};return o.showArrow?(q.width=`${o.arrowSize}px`,q.height=`${o.arrowSize}px`,v.value==="top"?(q.left="50%",q.bottom="0",q.transform="translate(-50%, 50%)"):v.value==="top-start"?(q.left=`${o.arrowOffset+m.value}px`,q.bottom="0",q.transform="translate(-50%, 50%)"):v.value==="top-end"?(q.right=`${o.arrowOffset-m.value}px`,q.bottom="0",q.transform="translate(-50%, 50%)"):v.value==="right"?(q.left="0",q.top="50%",q.transform="translate(-50%, -50%)"):v.value==="right-start"?(q.left="0",q.top=`${o.arrowOffset}px`,q.transform="translate(-50%, 50%)"):v.value==="right-end"?(q.left="0",q.bottom=`-${o.arrowOffset}px`,q.transform="translate(-50%, 50%)"):v.value==="bottom"?(q.left="50%",q.top="0",q.transform="translate(-50%, -50%)"):v.value==="bottom-start"?(q.left=`${o.arrowOffset+m.value}px`,q.top="0",q.transform="translate(-50%, -50%)"):v.value==="bottom-end"?(q.right=`${o.arrowOffset-m.value}px`,q.top="0",q.transform="translate(-50%, -50%)"):v.value==="left"?(q.right="0",q.top="50%",q.transform="translate(50%, -50%)"):v.value==="left-start"?(q.right="0",q.top=`${o.arrowOffset}px`,q.transform="translate(50%, -50%)"):v.value==="left-end"&&(q.right="0",q.bottom=`-${o.arrowOffset}px`,q.transform="translate(50%, -50%)"),q):{display:"none"}}),D=()=>(0,t.h)("div",{class:V.value,style:I.value}),L=()=>{N.value===!1&&(g.value=!1)},O=q=>{if(!y.value||N.value===!1)return;const{relatedTarget:X}=q;y.value.contains(X)||(N.value=!1,a("update:visible",!1))};return s({doLayout:S}),()=>{if(!g.value)return null;const q=[],X=Z();X&&q.push(X);const te=[],z=E();if(z&&te.push(z),r.default){const F=r.default();te.push(F)}const R=D();R&&te.push(R);const _={ref:y,class:$.value,style:T.value,onAnimationend:L};o.leaveHide&&(_.onMouseleave=O);const Y=(0,t.h)("div",_,{default:()=>te});return q.push(Y),(0,t.h)(t.Teleport,{to:o.teleport,disabled:o.teleportDisable},{default:()=>q})}}}}var{componentName:ac,create:rc,scope:ic}=Q("popover-dialog"),sc=rc(lc(ac,ic,!1)),Qn=sc,uc={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 cc(e,n,l){return{props:{...$i,...uc},emits:["click"],setup(o,{emit:a,slots:r}){const{toLocaleRefs:s}=(0,se.useFoxI18n)(n),i=s(o,["moreText"]),u=e,d=(0,t.computed)(()=>({[u]:!0}));function p(b){return b.props||{}}function c(b){return!!p(b).disabled}function v(b){return b.children??[]}const g=(0,t.ref)(),w=(0,t.computed)(()=>g.value?.$el??null),y=(0,t.ref)(!1),h=b=>{y.value=b},f=()=>{y.value=!y.value};function S(b,k){return()=>{k||(y.value=!1,p(b)?.onClick?.())}}function m(b,k){const B=v(b),A=c(b),$=S(b,A),T=[`${u}__dropdown-item`];return A&&T.push("is-disabled"),(0,t.h)("span",{class:T,onClick:$},B)}const C=b=>{const k=o.maxDisplayCount??b.length;if(k>=b.length)return b;const B=[],A=k-1;for(let E=0;E<A;E++)B.push(b[E]);const $=(r.moreIcon&&r.moreIcon())??(o.moreIcon&&(0,t.h)(o.moreIcon))??(0,t.h)(l),T=(0,t.h)(Xn,{ref:E=>g.value=E,class:`${u}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:o.type,onClick:f},{default:()=>i.moreText.value,mark:()=>$});B.push(T);const U=[];for(let E=A;E<b.length;E++){const V=m(b[E],E);U.push(V)}const Z=(0,t.h)(Qn,{placement:o.dropdownPlacement,"onUpdate:visible":h,visible:y.value,reference:w.value,"custom-class":`${u}__popover`},{default:()=>U});return B.push(Z),B},N=()=>(r.default?.()||[]).filter(b=>b.type!==Comment);return()=>{const b=C(N());return(0,t.h)(Yn,{class:d.value},{default:()=>b})}}}}var{componentName:dc,create:fc,scope:mc}=Q("buttons-item"),pc=fc(cc(dc,mc,Xu)),fl=pc,vc={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function hc(e,n){return{props:{...vc},setup(l,o){const a=tt(),r=Fn();Rn(!1);const s=(0,t.computed)(()=>r&&a?Kn(a,!1).value:null),i=e,u=(0,t.computed)(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:l.span==="stretch"})),d=(0,t.computed)(()=>{const p={};if(l.width)l.width!=="auto"&&(p.width=fe(l.width));else{const c=r&&a?Un(a,!1):null;if(s.value&&c){if(s.value.type==="grid"){const v=jn(c,s.value,l.span,l.offset);Object.assign(p,v)}else if(s.value.type==="flow"){const v=Hn(c,s.value,l.span,l.offset,l.width);Object.assign(p,v)}}}return p});return()=>{const p={class:u.value,style:d.value};return o.slots&&typeof o.slots.default=="function"?(0,t.h)("div",p,o.slots.default()):(0,t.h)("div",p)}}}}var{componentName:gc,create:yc,scope:bc}=Q("slot-item"),kc=yc(hc(gc,bc)),ml=kc,or={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 Sc(e,n,l,o){return{props:{...ve,...ge,...or},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(a,r){const s=Te((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Be({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),{toLocaleRefs:d}=(0,se.useFoxI18n)(n),p=d(a,["placeholder"]),c=(0,t.ref)(!1),v=Pe(a,"modelValue",null,u),g=e,w=(0,t.computed)(()=>({[g]:!0,"is-disabled":s.value,"is-readonly":i.value})),y=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),h=(0,t.computed)(()=>{const V={};return y.value&&(V["text-align"]=y.value),V}),f=V=>{let I=V.target.value;a.type==="digit"&&(I=Do(I,!0)),a.type==="number"&&(I=Do(I,!1)),a.maxLength&&I.length>Number(a.maxLength)&&(I=I.slice(0,Number(a.maxLength))),v.value=I,u("update:modelValue",I,V),u("change",I,V)};let S=Pe(a,"hintText"),m=(0,t.ref)(!1);const C=V=>{let I=V.target.value;c.value=!0,ue(S.value)||(m.value=!0),u("focus",I,V)},N=V=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let I=V.target.value;a.maxLength&&I.length>Number(a.maxLength)&&(I=I.slice(0,Number(a.maxLength))),u("blur",I,V)},b=(0,t.computed)(()=>({[`${g}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),k=(0,t.computed)(()=>{const V={};return r.slots.append&&!B.value&&!Z.value&&(V.display="none"),V}),B=(0,t.computed)(()=>be(a.unit)>0),A=(0,t.computed)(()=>!Z.value),$=(0,t.computed)(()=>({[`${g}__unit`]:!0,hidden:!A.value})),T=V=>{v.value="",u("update:modelValue","",V),u("change","",V),u("clear","")},U=(0,t.computed)(()=>ye(a.clearable)&&!s.value&&!i.value),Z=(0,t.computed)(()=>{let V=be(v.value)>0;return ye(a.clearable)&&V&&c.value}),E=(0,t.computed)(()=>({action:!0,hidden:!Z.value}));return()=>{const V={class:w.value,style:h.value,type:a.type,maxlength:a.maxLength,placeholder:p.placeholder.value,disabled:s.value,readonly:i.value,value:v.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:f,onFocus:C,onBlur:N},I=[],D=(0,t.h)("input",V);I.push(D);const L=[];if(U.value){const te=(0,t.h)(o,{class:["action-icon"]}),z=(0,t.h)("view",{class:E.value,onClick:T},{default:()=>[te]});L.push(z)}if(B.value){const te=(0,t.h)("view",{class:$.value},[a.unit]);L.push(te)}const O=(0,t.h)("view",{class:b.value,style:k.value},{default:()=>L});I.push(O);const q={default:()=>I};q.label=r.slots.default,q.prepend=r.slots.prepend,q.append=r.slots.append,q.fixedPreTip=r.slots.fixedPreTip,q.fixedTip=r.slots.fixedTip;const X={...et(a,or),hintText:S.value,hintVisible:m.value};return a.prop&&(X.prop=`${a.prop}_item`),(0,t.h)(l,X,q)}}}}var{componentName:wc,create:Cc,scope:Nc}=Q("input-item"),Bc=Cc(Sc(wc,Nc,Ce,oe.CircleClose)),pl=Bc;function lr(e,n=0){let l=`${e}`,o=l.indexOf(".");if(o==-1)return l;let a=o;for(let r=l.length-1;r>=o;r--)if(l.charAt(r)!="0"){a=r;break}return a-o<n?a=o+n+1:a!=o&&(a+=1),a>l.length?l=l.padEnd(a,"0"):l=l.substring(0,a),l}function ar(e,n,l=20){return typeof n=="string"&&(n=pe(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?lr(jr(`${e}`,`${n}`)):lr(Jo(`${e}`,Wr(`${n}`),20))}function Ac(e,n=-1,l=!1,o=3,a=","){return $n(e,n,l,o,a)}function rr(e,n,l,o,a=!0){if(e==="")return"";if(e=Yr(e),n=pe(n),n==1)return e;if(o)e=ar(e,n),l&&(e=="0"&&a?e=`${e}.`.padEnd(pe(l)+2,"0"):e=Jo(e,1,pe(l)));else{let r=-1*n;e=ar(e,r)}return e}function ir(e,n){let l={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=ye(n.minInclude),a=Eo(e,n.min);(o&&a==-1||!o&&(a==0||a==-1))&&(l.message="请输入不小于 {0} 的数值".replace("{0}",n.min),l.minValid=!1)}if(n.max!=null){let o=ye(n.maxInclude),a=Eo(e,n.max);(o&&a==1||!o&&(a==0||a==1))&&(l.maxValid=!1)}return l}var sr={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 Vc(e,n,l,o){return{props:{...ve,...ge,...sr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(a,r){const s=Te((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Be({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),d=(0,t.ref)(!1),p=Pe(a,"modelValue",null,u),c=(0,t.ref)("");(0,t.watch)([()=>p.value,()=>a.rates,()=>a.precision],([O,q,X])=>{if(ue(O)){c.value="";return}const te=rr(O,q,X,!1);c.value!==te&&(c.value=te)},{immediate:!0});const v=(0,t.computed)(()=>{let O="";return d.value&&(O=c.value),O}),{t:g}=(0,se.useFoxI18n)(n),w=(0,t.computed)(()=>{let O=a.placeholder??"";return!d.value&&!ue(c.value)?O=Ac(c.value,a.decimalLength,a.autoPadding,a.digits,a.separator):O=ue(O)?g(["placeholder"]):O,O}),y=e,h=(0,t.computed)(()=>({[y]:!0,[`${y}__placeholder`]:c.value.length>0,"is-disabled":s.value,"is-readonly":i.value})),f=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),S=(0,t.computed)(()=>{const O={};return f.value&&(O["text-align"]=f.value),O}),m=(0,t.ref)(""),C=(0,t.computed)(()=>{let O=m.value;return ue(O)&&(O=a.errorTip??""),O}),N=(0,t.ref)(""),b=(0,t.ref)(!1),k=O=>{let q=O.target.value;if(ue(q)){c.value="",p.value="",u("update:modelValue","",O),u("change","",O),ye(a.showTip)&&b.value&&(b.value=!1);return}if(q.length>=2){let X=q;if(X.charAt(0)=="-"&&(X=X.substring(1)),X.length>=2&&X.charAt(0)=="0"&&X.charAt(1)!="."){(0,t.triggerRef)(c);return}}if(q!="-"){if(!Dn(q)){(0,t.triggerRef)(c);return}if(a.integerLength!=-1&&ni(q)>Number(a.integerLength)){(0,t.triggerRef)(c);return}if(a.decimalLength&&a.decimalLength!=-1&&oi(q)>Number(a.decimalLength)){(0,t.triggerRef)(c);return}let X=ir(q,a);if(X.maxValid===!1){m.value=X.message,(0,t.triggerRef)(c);return}}else if(a.min!=null&&pe(a.min)>=0){(0,t.triggerRef)(c);return}N.value=q,ye(a.showTip)&&(b.value=q.length>0),c.value=q,p.value=rr(q,a.rates,a.precision,!0),u("update:modelValue",p.value,O),u("change",p.value,O)},B=O=>{if(d.value=!0,ye(a.showTip)){let q=c.value;ue(q)&&(q=a.hintText),ue(q)||(N.value=q,b.value=!0)}m.value="",u("focus",p.value,O)},A=O=>{if(setTimeout(()=>{d.value=!1,ye(a.showTip)&&b.value===!0&&(b.value=!1)},0),!ue(c.value)){let q=ir(c.value,a);if(q.minValid===!1||q.maxValid===!1){m.value=q.message;return}}u("update:modelValue",p.value,O),u("blur",p.value,O)},$=(0,t.computed)(()=>({[`${y}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),T=(0,t.computed)(()=>{const O={};return r.slots.append&&!U.value&&!D.value&&(O.display="none"),O}),U=(0,t.computed)(()=>be(a.unit)>0),Z=(0,t.computed)(()=>!D.value),E=(0,t.computed)(()=>({[`${y}__unit`]:!0,hidden:!Z.value})),V=O=>{p.value="",u("update:modelValue","",O),u("change","",O),u("clear","")},I=(0,t.computed)(()=>ye(a.clearable)&&!s.value&&!i.value),D=(0,t.computed)(()=>{let O=be(p.value)>0;return ye(a.clearable)&&O&&d.value}),L=(0,t.computed)(()=>({action:!0,hidden:!D.value}));return()=>{let O={class:h.value,style:S.value,type:"digit",maxlength:a.maxLength,placeholder:w.value,disabled:s.value,readonly:i.value,value:v.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:k,onFocus:B,onBlur:A},q=[],X=(0,t.h)("input",O);q.push(X);let te=[];if(I.value){const Y=(0,t.h)(o,{class:["action-icon"]}),F=(0,t.h)("view",{class:L.value,onClick:V},{default:()=>[Y]});te.push(F)}if(U.value){const Y=(0,t.h)("view",{class:E.value},[a.unit]);te.push(Y)}const z=(0,t.h)("view",{class:$.value,style:T.value},{default:()=>te});q.push(z);const R={default:()=>q};R.label=r.slots.default,R.prepend=r.slots.prepend,R.append=r.slots.append,R.fixedPreTip=r.slots.fixedPreTip,R.fixedTip=r.slots.fixedTip;const _={...et(a,sr),errorTip:C.value,hintText:N.value,hintVisible:b.value,hintType:"number"};return a.prop&&(_.prop=`${a.prop}_item`),(0,t.h)(l,_,R)}}}}var{componentName:Tc,create:$c,scope:Ec}=Q("money-item"),xc=$c(Vc(Tc,Ec,Ce,oe.CircleClose)),vl=xc,Lo={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:Dc,create:Ic,scope:qc}=Q("textarea"),Pc=Ic({props:{...Lo},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:l}=(0,se.useFoxI18n)(qc);const o=l(e,["placeholder"]),a=(0,t.ref)(),r=(0,t.computed)(()=>{const v=Dc;return{[v]:!0,[`${v}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&u(String(e.modelValue)),e.autosize&&(0,t.nextTick)(i)});const s=(0,t.computed)(()=>({textAlign:e.textAlign})),i=()=>{let v=a.value;v.style.height="auto";let g=v.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:w,minHeight:y}=e.autosize;w!==void 0&&(g=Math.min(g,w)),y!==void 0&&(g=Math.max(g,y))}g&&(console.info("----------- height",g),v.style.height=g+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(i)});const u=(v,g)=>{e.maxLength&&v.length>Number(e.maxLength)&&(v=v.substring(0,Number(e.maxLength))),n("update:modelValue",v,g),n("change",v,g)};return{...o,textareaRef:a,classes:r,styles:s,change:v=>{const g=v.target;u(g.value,v)},focus:v=>{e.disabled||e.readonly||n("focus",v)},blur:v=>{if(e.disabled||e.readonly)return;let g=v.target.value;u(g,v),n("blur",{value:g,event:v})}}}}),Mc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],_c={key:0,class:"fox-textarea__limit"};function Lc(e,n,l,o,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,Mc),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",_c,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var Gn=ne(Pc,[["render",Lc]]);function zc(e,n,l,o){return{props:{...ve,...ge,...Lo},emits:["update:modelValue","change","blur","focus","setValue"],setup(a,r){const s=Te((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Be({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),d=Pe(a,"modelValue",null,u),p=y=>{d.value=y,u("update:modelValue",y,{}),u("change",y,{})};let c=Pe(a,"hintText"),v=(0,t.ref)(!1);const g=y=>{ue(c.value)||(v.value=!0),u("focus",d.value,y)},w=y=>{setTimeout(()=>{v.value&&(v.value=!1)},0),u("blur",d.value,y)};return()=>{const y={...he(a,Lo),disabled:s.value,readonly:i.value,value:d.value,"onUpdate:modelValue":p,onFocus:g,onBlur:w},h=[],f=(0,t.h)(o,y);h.push(f);const S={default:()=>h};S.label=r.slots.default,S.prepend=r.slots.prepend,S.append=r.slots.append,S.fixedPreTip=r.slots.fixedPreTip,S.fixedTip=r.slots.fixedTip;const m={...he(a,ge,ve)};return a.prop&&(m.prop=`${a.prop}_item`),(0,t.h)(l,m,S)}}}}var{componentName:Oc,create:Fc,scope:Rc}=Q("textarea-item"),Kc=Fc(zc(Oc,Rc,Ce,Gn)),hl=Kc;function Uc(e){return e===window}var Ie=e=>{const n=(0,t.unref)(e);if(Uc(n)){const l=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:l,bottom:o,width:l,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},ur=10;function Ei(e,n){return e>n&&e>ur?"horizontal":n>e&&n>ur?"vertical":""}function Zn(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Jn(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",l=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else{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=Ei(e.offsetX,e.offsetY))}),start:(s=>{if(o(),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:o,isVertical:n,isHorizontal:l,state:e}}function ot(){const e=(0,t.ref)(0),n=(0,t.ref)(0),l=(0,t.ref)(0),o=(0,t.ref)(0),a=(0,t.ref)(0),r=(0,t.ref)(0),s=(0,t.ref)(0),i=(0,t.ref)(0),u=(0,t.ref)(0),d=(0,t.ref)(0),p=(0,t.ref)(""),c=()=>p.value==="vertical",v=()=>p.value==="horizontal",g=()=>{s.value=0,i.value=0,u.value=0,d.value=0,p.value="",l.value=0};return{move:(h=>{if(h.touches){const f=h.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=h;s.value=f.clientX-e.value,i.value=f.clientY-n.value,a.value=f.clientX,r.value=f.clientY}u.value=Math.abs(s.value),d.value=Math.abs(i.value),o.value=Date.now()-l.value,p.value||(p.value=Ei(u.value,d.value))}),start:(h=>{if(g(),h.touches){const f=h.touches[0];e.value=f.clientX,n.value=f.clientY}else{const f=h;e.value=f.clientX,n.value=f.clientY}l.value=Date.now()}),reset:g,startX:e,startY:n,startTime:l,duration:o,moveX:a,moveY:r,deltaX:s,deltaY:i,offsetX:u,offsetY:d,direction:p,isVertical:c,isHorizontal:v}}var Hc=2e3,cr=()=>Hc++,Fe={visible:{type:Boolean,default:!1},zIndex:{type:[String,Number]},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:[String,Array],default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},jc=(e,n)=>({components:n,props:{...Fe},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:o}){const a=(0,t.reactive)({zIndex:0,showSlot:!0,closed:l.closeable});l.visible&&(a.zIndex=cr());const r=(0,t.computed)(()=>{const y=e,h=[y,`${y}--${l.position}`];return l.round&&h.push("round"),l.position==="bottom"&&l.safeAreaInsetBottom&&h.push(`${y}--${l.position}--safebottom`),typeof l.popClass=="string"?h.push(l.popClass):Array.isArray(l.popClass)&&l.popClass.forEach(f=>{h.push(f)}),h}),s=(0,t.computed)(()=>({zIndex:a.zIndex,transitionDuration:`${l.duration}s`,...l.style})),i=(0,t.computed)(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),u=()=>{o("update:visible",!0),l.zIndex?a.zIndex=l.zIndex:a.zIndex=cr(),l.destroyOnClose&&(a.showSlot=!0),o("open")},d=()=>{o("update:visible",!1),o("close"),l.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+l.duration*1e3)},p=y=>{o("click-pop",y)},c=y=>{y.stopPropagation(),o("click-close-icon",y),o("update:visible",!1)},v=y=>{o("click-overlay",y),l.closeOnClickOverlay&&o("update:visible",!1)},g=y=>{o("opend",y)},w=y=>{o("closed",y)};return(0,t.watch)(()=>l.visible,y=>{l.visible?u():d()}),(0,t.watch)(()=>l.closeable,y=>{a.closed=y}),{...(0,t.toRefs)(a),popStyle:s,transitionName:i,classes:r,onClick:p,onClickCloseIcon:c,onClickOverlay:v,onOpened:g,onClosed:w}}}),xi={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}},zo={...Fe,...xi,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}},Di=36;function Wc(){return Di}function Yc(e){Di=e}function ze(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Oo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Xc(e,n,l){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=l),n.children=l}function ct(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function dr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var Qc=class{proxy;constructor(e){this.proxy=e}async load(e,n,l){if(Array.isArray(n))return n;if(typeof n=="function")return await n(l);const o=nt(this.proxy,e);return o===null?(console.error(`${e} component not found api function`),[]):(xe(l)&&(0,t.isReactive)(l)&&(l=(0,t.toRaw)(l)),await o(n,l))}};function Gc(){return new Qc((0,t.getCurrentInstance)().proxy)}function fr(e,n,l){return!(ze(e,n)!==ze(e,l)||ct(e,n)!==ct(e,l))}function Zc(e,n,l,o){if(l.length==0)return[];Array.isArray(n)||(n=[n]);const a=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<l.length;s++){const i=n[s];let u=l[s].findIndex(d=>{if(r==="text")return ze(e,d)===i;if(r==="value"){let p=ct(e,d);return p==null&&(p=ze(e,d)),p===i}else if(r==="item")return fr(e,d,i)});if(u==-1)break;a.push(u)}else{let s=l[0];for(let i=0;i<n.length;i++){const u=n[i];let d=s.findIndex(c=>{if(r==="text")return ze(e,c)===u;if(r==="value"){let v=ct(e,c);return v==null&&(v=ze(e,c)),v===u}else if(r==="item")return fr(e,c,u)});if(d==-1)break;a.push(d);const p=Oo(e,s[d]);if(!Array.isArray(p))break;s=p}}return a}function mr(e,n,l,o){if(l.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<l.length;s++){const i=l[s];let u=n[s];u<0&&u>=i.length&&(u=0);const d=i[u],p=ze(e,d);if(a.texts.push(p),a.items.push(d),r==="text")a.values.push(p);else if(r==="value"){let c=ct(e,d);c==null&&(c=p),a.values.push(c)}else a.values.push(d)}else{let s=l[0];for(let i=0;i<n.length;i++){let u=n[i];u<0&&u>=s.length&&(u=0);const d=s[u],p=Object.assign({},d);p.children=null;const c=ze(e,d);if(a.texts.push(c),a.items.push(p),r==="text")a.values.push(c);else if(r==="value"){let v=ct(e,d);v==null&&(v=c),a.values.push(v)}else a.values.push(p);if(!Array.isArray(d.children))break;s=d.children}}return a}function pr(e){return{text:e,value:e}}var Jc=15,ed=300,td=200,{create:nd}=Q("picker-column");function od(e){e.stopPropagation()}function ld(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&od(e)}var ad=nd({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},...xi},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const l=(0,t.computed)(()=>({"fox-picker__list":!0})),o=(0,t.computed)(()=>({height:`${pe(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=k=>k>=c.currIndex+8||k<=c.currIndex-8,i=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${c.deg})`,top:`${r.value}px`})),u=k=>`transform: rotate3d(1, 0, 0, ${-c.rotation*k}deg) translate3d(0px, 0px, 104px)`,d=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+r.value}px, 0)`})),p=(0,t.ref)(null),c=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),v=k=>ze(e,k),g=k=>ct(e,k),w=ot(),y=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},h=(k,B=!1,A=!1)=>{if(c.currIndex=k,B){const $=()=>{c.moving=!1,n("update:modelValue",k),n("change",k)};A?c.transitionEndTrigger=$:$()}},f=(k,B,A)=>{let $=k+c.startDistance;if(B==="end"){const T=-(e.source.length-1)*e.itemHeight;$<T&&($=T),$>0&&($=0);let U=Math.abs(Math.round(-$/e.itemHeight));const Z=-U*e.itemHeight,E=`${(U+1)*c.rotation}deg`;h(U,!0,A?A>0:!1),S(Z,B,A,E)}else{let T=(-$/e.itemHeight+1)*c.rotation;const U=(e.source.length+1)*c.rotation,Z=0;if(T=Math.min(Math.max(T,Z),U),e.threeDimensional&&(T<Z||T>U))return;S($,null,void 0,`${T}deg`)}},S=(k=0,B,A=td,$)=>{B==="end"?c.scrollTime=A:c.scrollTime=0,c.deg=$,c.scrollDistance=k},m=(k,B)=>(k=Math.abs(k/B)/.003*(k<0?-1:1),k),C=k=>{e.readonly||(c.startDistance=c.scrollDistance,w.start(k),c.transitionEndTrigger=null)},N=k=>{e.readonly||(c.moving=!0,w.move(k),w.isVertical()&&(c.moving=!0,ld(k,!0)),f(w.deltaY.value,"",0))},b=()=>{if(e.readonly)return;const k=w.deltaY.value,B=w.duration.value;B<ed&&Math.abs(k)>Jc?f(m(k,B),"end",e.swipeDuration):f(k,"end",0)};return(0,t.watch)(()=>e.modelValue,k=>{const B=c.currIndex-k;B!==0&&(c.currIndex=k,c.startDistance=c.scrollDistance,f(B*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,k=>{if(c.currIndex>=k.length){const B=(k.length-1-c.currIndex)*e.itemHeight;c.startDistance=c.scrollDistance,f(B,"end",0)}}),(0,t.watch)(()=>e.visible,k=>{k===!1&&y()}),(0,t.onMounted)(()=>{f(-e.modelValue*e.itemHeight)}),{classes:l,styles:o,contentClasses:a,itemText:v,itemValue:g,...(0,t.toRefs)(c),roller:p,getItemText:ze,onTouchStart:C,onTouchMove:N,onTouchEnd:b,isHidden:s,setRollerStyle:u,touchRollerStyle:i,touchTileStyle:d,stopMomentum:y}}}),rd={key:1,class:"fox-picker__item-tile"};function id(e,n,l,o,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",rd,(0,t.toDisplayString)(e.itemText(s)),1))],64))),128))],6)],38)}var sd=ne(ad,[["render",id]]),Pt=0,vr="fox-overflow-hidden",hr=()=>Je?document.body:{classList:[]},ud=e=>[()=>{if(e())try{!Pt&&hr().classList.add(vr),Pt++}catch{}},()=>{if(e()&&Pt)try{Pt--,!Pt&&hr().classList.remove(vr)}catch{}}],cd={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:dd,create:fd}=Q("overlay"),md=fd({props:{...cd},emits:["click","update:visible"],setup(e,{emit:n}){const[l,o]=ud(()=>e.lockScroll),a=(0,t.computed)(()=>({[dd]:!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?l():o()}),{classes:a,style:r,onClick:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function pd(e,n,l,o,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=ne(md,[["render",pd]]),{componentName:vd,create:hd}=Q("popup"),gd=hd(jc(vd,{FoxOverLay:dt,Close:oe.Close}));function yd(e,n,l,o,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]=(...u)=>e.onClick&&e.onClick(...u))},[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]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),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 me=ne(gd,[["render",yd]]),bd=(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)(me,et({...e},{poppable:!1}),n):n?.default?.()??null}}),kd=bd,{create:Sd,componentName:gr,scope:wd}=Q("picker"),Cd=Sd({components:{Column:sd,Wrapper:kd},props:{...zo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:l,t:o}=(0,se.useFoxI18n)(wd),a=l(e,["title","cancelText","clearText","confirmText"]),r=(0,t.ref)(null),s=(0,t.ref)(Wc());(0,t.watch)(()=>e.visible,V=>{V&&s.value<=0&&setTimeout(()=>{r.value&&(s.value=Ie(r.value).height,Yc(s.value))},50)});const i=(0,t.computed)(()=>({[gr]:!0})),u=(0,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(`${gr}__popup`),V.join(" ")}),d=Gc(),p=(0,t.ref)("singleColumn");let c=(0,t.ref)([]);(0,t.watch)([()=>e.source,()=>e.params],async([V,I])=>{if(V){let D=await d.load("picker",V,I);if(D.length>0){let L=D[0];if(Array.isArray(L)){if(typeof L[0]=="string"){let O=D,q=[];O.forEach(X=>{let te=X.map(z=>pr(z));q.push(te)}),c.value=q}else c.value=D;p.value="multipleColumn"}else if(typeof L=="string"){let O=D,q=[],X=O.map(te=>pr(te));q.push(X),c.value=q,p.value="singleColumn"}else{const O=Oo(e,L);Array.isArray(O)?(p.value="cascade",c.value=[D]):(p.value="singleColumn",c.value=[D])}}else c.value=[]}},{immediate:!0});const v=(0,t.ref)([]),g=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),w=(0,t.ref)([]);let y=null;const h=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>c.value],([V,I])=>{let D=Zc(e,V,I,p.value);if(!De(D,h.value)){h.value=D,y||(y=D?[...D]:[]);let L=mr(e,D,I,p.value);L&&(v.value=L.texts,De(g.value,L.values)||(g.value=L.values),De(w.value,L.items)||(w.value=L.items),n("update:text",v.value))}});let f="";const S=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,V=>{S.value=V,V&&(f="active",h.value.length>0&&(y=[...h.value]))});const m=V=>{let I=dr(e,V);return xe(I)?I.defaultIndex??0:0},C=V=>{if(e.readonly===!0)return!0;let I=dr(e,V);return xe(I)?I.readonly??!1:!1},N=(V,I)=>{let D=h.value;D[V]=I;for(let O=0;O<V;O++)D[O]==null&&(D[O]=m(O));if(p.value==="cascade")for(let O=V+1;O<k.value.length;O++){let q=m(O);O<D.length?D[O]=q:D.push(q)}else for(let O=D.length;O<k.value.length;O++){let q=m(O);D.push(q)}h.value=D;let L=mr(e,D,c.value,p.value);L&&(v.value=L.texts,g.value=L.values,w.value=L.items)},b=V=>V<h.value.length?h.value[V]:m(V),k=(0,t.computed)(()=>{if(c.value.length==0)return[];if(p.value=="singleColumn"||p.value=="multipleColumn")return c.value;let V=[],I=0,D=c.value[0],L=0;for(;;){let O=D.map(te=>{let z=Object.assign({},te);return Xc(e,z,null),z});V.push(O),I>=h.value.length?L=0:L=h.value[I],(L<0||L>=D.length)&&(L=0);let q=D[L];const X=Oo(e,q);if(!Array.isArray(X))break;D=X,I++}return V}),B=(0,t.computed)(()=>pe(+e.visibleItemCount-1)/2*s.value),A=(V=!1)=>{if(e.readonly===!0){V&&n("update:visible",!1);return}let I=c.value.length-1;for(;I>=0&&!(h.value[I]===null||h.value[I]===void 0);I--);if(I>=0&&N(I,0),p.value==="singleColumn"){let D=g.value.length>0?g.value[0]:"",L=w.value.length>0?w.value[0]:null;n("update:modelValue",D),n("update:text",v.value),n("change",D,L),V&&(n("confirm",D),n("update:visible",!1))}else n("update:modelValue",g.value),n("update:text",v.value),n("change",g.value,w.value),V&&(n("confirm",g.value),n("update:visible",!1))},$=(V,I)=>{f!=="close"&&(N(V,I),e.isAutoBackFill&&A(!S.value))},T=()=>{f==="active"&&(f="confirm",y=Array.isArray(h.value)?[...h.value]:[],A(!0))},U=()=>{p.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),h.value=[],y=null};return{...a,pickerLineRef:r,classes:i,popClasses:u,columns:k,dataType:p,show:S,itemHeight:s,top:B,isReadonly:C,getIndex:b,change:$,close:()=>{if(f==="active"){if(f="close",y===null||y.length===0)U();else{if(Array.isArray(y))for(let V=0;V<y.length;V++)N(V,y[V]);A(!1)}n("close"),n("update:visible",!1)}},confirm:T,clear:()=>{if(f==="active"){if(f="clear",e.readonly===!0){n("update:visible",!1);return}U(),y=null,n("clear",""),n("update:visible",!1)}}}}}),Nd={key:0,class:"fox-picker__bar"},Bd={class:"fox-picker__title"},Ad={class:"fox-picker__bar__action"},Vd={class:"fox-picker__column"};function Td(e,n,l,o,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]=u=>e.show=u),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",Nd,[(0,t.createElementVNode)("view",Bd,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Ad,[(0,t.createElementVNode)("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...u)=>e.close&&e.close(...u))},(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]=(...u)=>e.confirm&&e.confirm(...u))},(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]=(...u)=>e.clear&&e.clear(...u))},(0,t.toDisplayString)(e.clearText),1)):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"top"),(0,t.createElementVNode)("view",Vd,[(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,(u,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:"fox-picker__columnitem"},[(0,t.createVNode)(s,{visible:e.show,source:u,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":p=>e.change(d,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 an=ne(Cd,[["render",Td]]);function $d(e,n,l,o,a,r,s=!0){return{props:{...ve,...ge,...zo,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,u){const d=Te((0,t.computed)(()=>i.disabled)),p=Ve((0,t.computed)(()=>i.readonly)),{emitEvent:c}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return d.value}},i.prop??u.attrs.name),{toLocaleRefs:v}=(0,se.useFoxI18n)(n),g=v(i,["placeholder"]),w=(0,t.ref)(!1),y=Pe(i,"modelValue",null,c),h=(0,t.ref)([]),f=(0,t.computed)(()=>Array.isArray(h.value)?h.value.join(i.separator):h.value),S="fox-input-item",m=(0,t.computed)(()=>({[S]:!0,"is-disabled":d.value,"is-readonly":p.value})),C=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),N=(0,t.computed)(()=>{const R={};return C.value&&(R["text-align"]=C.value),R}),b=(0,t.ref)(!1),k=()=>{b.value=!0},B=R=>{b.value=R},A=R=>{y.value=R,c("update:modelValue",R)},$=(R,_)=>{c("change",R,_)},T=R=>{let _=R.target.value;w.value=!0,c("focus",_,R)},U=R=>{setTimeout(()=>{w.value=!1},0);let _=R.target.value;i.maxLength&&_.length>Number(i.maxLength)&&(_=_.slice(0,Number(i.maxLength))),c("blur",_,R)},Z=R=>{h.value=R,Array.isArray(R)&&R.length===0?c("update:text",R[0]):c("update:text",R)},E=(0,t.computed)(()=>({[`${S}__append`]:!0,"is-disabled":d.value,"is-readonly":p.value})),V=(0,t.computed)(()=>be(i.unit)>0),I=(0,t.computed)(()=>be(i.unit)>0&&!w.value),D=(0,t.computed)(()=>({hidden:!I.value})),L=R=>{y.value="",c("update:modelValue","",R),c("change","",R),c("clear","")},O=(0,t.computed)(()=>i.clearable&&!d.value&&!p.value),q=(0,t.computed)(()=>be(y.value)>0&&w.value),X=R=>{q.value?L(R):k()},te=(0,t.computed)(()=>q.value&&O.value?o:a),z=(0,t.computed)(()=>({action:!0}));return()=>{const R={class:m.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:g.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:k,onFocus:T,onBlur:U};s&&(R.disabled=!0);const _=[],Y=(0,t.h)("input",R);_.push(Y);const F=[],K=(0,t.h)(te.value,{class:["action-icon"]}),J=(0,t.h)("view",{class:z.value,onClick:X},{default:()=>[K]});if(F.push(J),V.value){const x=(0,t.h)("view",{class:D.value},[i.unit]);F.push(x)}const W=(0,t.h)("view",{class:E.value},{default:()=>F});_.push(W);const ee={default:()=>_};ee.label=u.slots.default,ee.prepend=u.slots.prepend,ee.append=u.slots.append,ee.fixedPreTip=u.slots.fixedPreTip,ee.fixedTip=u.slots.fixedTip;const M=he(i,zo);M.disabled=!1,M.readonly=d.value||p.value,M.visible=b.value,M["onUpdate:visible"]=B,M.modelValue=y.value,M["onUpdate:modelValue"]=A,M.text=h.value,M["onUpdate:text"]=Z,M.onChange=$;const H=(0,t.h)(r,M);ee.hide=()=>[H];const P=he(i,ge,ve);return i.prop&&(P.prop=`${i.prop}_item`),(0,t.h)(l,P,ee)}}}}var{componentName:Ed,create:xd,scope:Dd}=Q("picker-item"),Id=xd($d(Ed,Dd,Ce,oe.CircleClose,oe.ArrowRight,an,!1)),gl=Id,qd=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:l}){return()=>e.poppable?(0,t.h)(me,{...l},n):n?.default?.()??null}}),Pd=qd,pn=(e,n,l)=>e.map(o=>{const{value:a="value",text:r="text",children:s="children"}=l??{},{[a]:i,[r]:u,[s]:d,...p}=o,c={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:i,text:u,children:d,_parent:n};return c.children&&c.children.length&&(c.children=pn(c.children,c,l)),c}),Ii=(e,n)=>{let l=0,o;for(;(o=e[l++])&&n(o)!==!0;)o.children&&o.children.length&&Ii(o.children,n)},Md={topId:null,idKey:"id",pidKey:"pid",sortKey:""},_d=(e,n)=>{const{topId:l,idKey:o,pidKey:a,sortKey:r}={...Md,...n||{}};let s=[],i={};return e.forEach(u=>{u={...u};const{[o]:d,[a]:p}=u,c=i[p]=i[p]||[];!s.length&&p===l&&(s=c),c.push(u),u.children=i[d]||(i[d]=[])}),r&&Object.keys(i).forEach(u=>{i[u].length>1&&i[u].sort((d,p)=>d[r]-p[r])}),i=null,s},Fo={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}},yr=(e,n)=>n[e.textKey],Mt=(e,n)=>n[e.valueKey],Ld=(e,n)=>n[e.visibleKey],br=(e,n)=>n[e.disabledKey],zd=(e,n)=>{const l=n[e.doitKey];return ye(l)},Od=(e,n)=>{const l=n[e.numKey];return l==null?null:pe(n[l])},kr=(e,n,l)=>{const o=e.itemOptions;return typeof o=="function"?o(n,l):o||null};function Fd(e,n,l,o,a,r=!1){return{props:{...Fo},emits:["update:modelValue","change","click"],setup(s,{slots:i,emit:u}){const d=(0,t.computed)(()=>{const P={};return P[`${e}`]=!0,P}),p=(0,t.computed)(()=>{const P={};return P[`${e}__titles`]=!0,P[`${s.direction}`]=!0,s.align&&(P[`${s.align}`]=!0),s.scroll===!0&&(P.scrollable=!0),s.shape&&(P[`${s.shape}`]=!0),s.showScrollArrow?(Y.value===!0&&(P["has-left-scroll-arrow "]=!0),F.value===!0&&(P["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(P["has-navigation"]=!0),P}),c=(0,t.computed)(()=>({})),v=(0,t.computed)(()=>{if(!s.gutter)return 0;const P=de(s.gutter);return P<=0?0:P}),g=(0,t.ref)(s.modelValue);(0,t.watch)(()=>s.modelValue,P=>{g.value!==P&&(g.value=P,O(!1))});const w=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),y=(0,t.computed)(()=>{const P={};return f.value||(P.display="none"),P}),h=(0,t.ref)(),f=(0,t.ref)(!1),S=()=>{m(!f.value)},m=P=>{const x=P;x?(f.value=x,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.value["fox-tabs-bar__popup--hide"]=!0,h.value?h.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},C=(0,t.ref)(),N=(0,t.ref)([]),b=(P,x)=>{N.value[x]=P},k=P=>x=>{b(x,P)},B=(P,x)=>{const j=C.value,G=N.value;if(!j||!G||!G[P])return;const le=G[P];let ae=0;s.direction==="vertical"?ae=le.offsetTop-(j.offsetHeight-le.offsetHeight)/2:ae=le.offsetLeft-(j.offsetWidth-le.offsetWidth)/2,A(j,ae,x?0:.3,s.direction)},A=(P,x,j,G)=>{let le=0;const ae=G==="horizontal"?P.scrollLeft:P.scrollTop,ie=j===0?1:Math.round(j*1e3/16);function ke(){G==="horizontal"?P.scrollLeft+=(x-ae)/ie:P.scrollTop+=(x-ae)/ie,++le<ie&&Ke(ke)}ke()},$=(P,x)=>{const j=Mt(s,P),G={};return G[`${e}__titles-item`]=!0,G.disabled=br(s,P),G.active=j===g.value,s.shape&&(G[`${s.shape}`]=!0),s.ellipsis&&(G.ellipsis=!0),x&&(x.class&&(G[`${x.class}`]=!0),x.disabled===!0&&(G.disabled=x.disabled)),G},T=(P,x)=>{const j={};if(v.value>0){const G=Math.abs(v.value/2);s.direction==="vertical"?(j["margin-top"]=`${G}px`,j["margin-bottom"]=`${G}px`):(j["margin-left"]=`${G}px`,j["margin-right"]=`${G}px`)}return x&&x.style&&Object.assign(j,x.style),j},U=(P,x)=>`${Mt(s,P)??x}`,Z=(P,x)=>{const j=Mt(s,P),G={};G[`${e}__popup-item`]=!0,G.disabled=br(s,P),G.active=j===g.value,s.shape&&(G[`${s.shape}`]=!0);const le=kr(s,P,x);return le&&le.disabled===!0&&(G.disabled=le.disabled),G},E=(0,t.computed)(()=>(s.data??[]).filter(P=>Ld(s,P)!==!1)),V=(P,x)=>{const j=Mt(s,P);if(u("click",P,x),g.value==j)return;const G=()=>{g.value=j,s.scroll&&B(x,!1),u("update:modelValue",j),u("change",P,x)};if(typeof s.beforeChange=="function"){const le=s.beforeChange(P,x);St(le)?le.then(ae=>{ae!==!1&&G()}).catch(()=>{G()}):le!==!1&&G()}else G()},I=(P,x)=>function(){V(P,x)},D=(P,x)=>{V(P,x),m(!1)},L=(P,x)=>function(){D(P,x)},O=P=>{if(!Array.isArray(s.data)||!s.scroll)return;_()&&ee();const x=s.data.findIndex(j=>Mt(s,j)===g.value);x!==-1&&B(x,P)},q=()=>{_()||M()};(0,t.watch)(()=>s.data,()=>{setTimeout(O,0)}),(0,t.onMounted)(()=>{O(!0)}),(0,t.onBeforeUnmount)(()=>{q()});const X=(P,x)=>{if(i.item)return i.item({item:P,index:x});const j=kr(s,P,x),G=[];if(i.text){const ae=i.text({item:P,index:x});G.push(ae)}else{const ae=[];if(j?.doit===!0||zd(s,P)){const lt=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ae.push(lt)}const ie=j?.num??Od(s,P);if(ie){let lt="";const Ye=pe(ie);Ye>=100?lt="99+":lt=`${Ye}`;const po=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[lt]);ae.push(po)}const ke={class:`${e}__titles-item-text`};ae.push(yr(s,P));const ft=(0,t.h)("view",ke,ae);G.push(ft)}const le=(0,t.h)("view",{class:`${e}__titles-item-line`});return G.push(le),(0,t.h)("view",{ref:k(x),class:$(P,j),style:T(P,j),key:U(P,x),onClick:I(P,x)},G)},te=()=>{const P=i.default?i.default():[];if(P.length===0)for(let x=0;x<E.value.length;x++){const j=E.value[x],G=X(j,x);P.push(G)}return(0,t.h)("view",{ref:C,class:p.value,style:c.value},P)},z=()=>{let P=null;return i.navigation?P=i.navigation():P=(0,t.h)(l),(0,t.h)("view",{class:`${e}__navigation`,onClick:S},[P])},R=()=>{const P=[];for(let x=0;x<E.value.length;x++){const j=E.value[x];let G=null;i.popupItem?G=i.popupItem({item:j,index:x}):G=yr(s,j);const le=(0,t.h)("view",{class:Z(j,x),key:U(j,x),onClick:L(j,x)},[G]);P.push(le)}return(0,t.h)("view",{class:w.value,style:y.value},P)},_=()=>s.showScrollArrow&&s.direction=="horizontal",Y=(0,t.ref)(!1),F=(0,t.ref)(!1),K=P=>{const x=C.value,j=N.value;if(!(!x||!j))if(P==="left"){const G=x.scrollLeft;let le=G;for(let ae=0;ae<j.length;ae++){const ie=j[ae].offsetLeft;if(G-ie<0)break;le=ie}A(x,le,.3,"horizontal")}else{const G=x.scrollLeft;let le=G,ae=x.offsetWidth;for(let ie=j.length-1;ie>=0;ie--){const ke=j[ie].offsetLeft+j[ie].offsetWidth;if(ke-G<x.offsetWidth){le+=ae-ke;break}ae=ke}A(x,le,.3,"horizontal")}},J=qe(()=>{const P=C.value;if(!P)return;let x=P.scrollLeft>0;x!==Y.value&&(Y.value=x);let j=P.scrollWidth-P.scrollLeft>P.offsetWidth;j!==F.value&&(F.value=j)},50),W=P=>{J()},ee=()=>{const P=C.value;P&&(J(),P.addEventListener("scroll",W))},M=()=>{const P=C.value;P&&P.removeEventListener("scroll",W)},H=P=>{if(P==="left"&&Y.value!==!0||P==="right"&&F.value!==!0)return null;let x=null;return P==="left"?i.leftArrow?x=i.leftArrow():x=(0,t.h)(o):i.rightArrow?x=i.rightArrow():x=(0,t.h)(a),(0,t.h)("view",{class:[`${e}__scroll-arrow`,P],onClick:()=>{K(P)}},[x])};return()=>{const P=[],x=te();if(P.push(x),_()){const j=H("left");j&&P.push(j);const G=H("right");G&&P.push(G)}else if(s.showQuickNavigation){const j=z();P.push(j);const G=R();P.push(G)}return(0,t.h)("view",{class:d.value},P)}}}}var{create:Rd,componentName:Kd,scope:Ud}=Q("tabs-bar"),Hd=Rd(Fd(Kd,Ud,oe.MoreH,oe.Left,oe.Right,!1)),rn=Hd,qi=Symbol("TabsStatesKey"),Ro={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]}},jd=15,Wd=300,Yd=200;function Xd(e,n,l=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*l}function Sr(e,n=0,l,o,a=Yd){l==="end"?e.style.transition=`transform ${a}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)`}var Qd=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,l,o=1,a){this.onStart=e,this.onMove=n,this.onEnd=l,this.momentumReduceRatio=o,this.isTouch=a??Zn()}open(e){this.el=e;const n=Jn(),l=(o,a,r)=>{const s={delta:o,direction:a,type:r};this.onMove(s)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=o=>{if(this.moving)return;n.start(o),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=o=>{if(!this.moving)return;n.move(o);let a=0;if(this.direction==="horizontal"){if(n.isVertical())return;a=n.state.deltaX}else{if(n.isHorizontal())return;a=n.state.deltaY}l(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 o=0;if(this.direction==="horizontal"){if(n.isVertical()){this.moving=!1;return}o=n.state.deltaX}else{if(n.isHorizontal()){this.moving=!1;return}o=n.state.deltaY}const a=n.state.duration;a<Wd&&Math.abs(o)>jd?(o=Xd(o,a,this.momentumReduceRatio),l(o,this.direction,"end")):l(o,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 Gd(e,n,l,o=1,a){return new Qd(e,n,l,o,a)}function Zd(e,n,l=!1){return{props:{...Ro},emits:["update:modelValue","change"],setup(o,{emit:a,slots:r}){const s=(0,t.shallowRef)([]),i={current:(0,t.ref)(o.modelValue??""),direction:(0,t.ref)(o.direction),tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:k=>{const B={name:k};i.current.value===k&&(B.loaded=!0),s.value.push(B),(0,t.triggerRef)(s)},remove:k=>{const B=s.value.findIndex(A=>A.name===k);B!==-1&&s.value.splice(B,1)},isLoaded:k=>{if(!o.lazy)return!0;const B=s.value.findIndex(A=>A.name===k);return B!==-1?i.current.value?s.value[B].loaded??!1:B===0:!1}};(0,t.provide)(qi,i);const u=k=>{const B=s.value.findIndex(A=>A.name===k);B!==-1&&(s.value[B].loaded=!0,(0,t.triggerRef)(s))};(0,t.watch)([()=>o.modelValue,()=>o.direction],([k,B])=>{i.current.value!==k&&(i.current.value=k??"",u(k??"")),i.direction.value!==B&&(i.direction.value=B)});const d=(0,t.ref)(null),p=(0,t.ref)(null),c=(0,t.computed)(()=>({[e]:!0,[`${o.direction}`]:!0})),v=(0,t.computed)(()=>{const k={};if(o.width){const B=fe(o.width);B&&(k.width=B)}if(o.height){const B=fe(o.height);B&&(k.height=B)}return k});let g=!0;const w=(0,t.computed)(()=>{const k={},B=s.value.length;if(B<=0)return k;const A=s.value.findIndex($=>$.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(k.height=`${B*i.tabHeight.value}px`,A!==-1&&(k.transform=`translate(0, -${A*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(k.width=`${B*i.tabWidth.value}px`,A!==-1&&(k.transform=`translate(-${A*i.tabWidth.value}px, 0)`)),g&&(g=!1,k.transition="transform 0s ease"),k}),y={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},h=k=>{const B=s.value.length,A=s.value.findIndex($=>$.name===i.current.value);y.moved=0,k.direction==="vertical"?(y.min=-1*(i.tabHeight.value*(B-1)+i.tabHeight.value/4),y.max=i.tabHeight.value/4,y.start=-A*i.tabHeight.value,y.itemDistance=i.tabHeight.value):(y.min=-1*(i.tabWidth.value*(B-1)+i.tabWidth.value/4),y.max=i.tabWidth.value/4,y.start=-A*i.tabWidth.value,y.itemDistance=i.tabWidth.value)},f=k=>{const B=p.value;if(!B)return;let A=y.start+k.delta;if(A>y.max?A=y.max:A<y.min&&(A=y.min),k.type==="move")Sr(B,A,"move",k.direction,300);else if(k.type==="end"){let $=Math.floor(Math.abs(A)*1/y.itemDistance);const T=Math.abs(A)%y.itemDistance;y.start>A?T>=y.itemDistance*y.triggerAutoMoveRatio&&($+=1):T>y.itemDistance-y.itemDistance*y.triggerAutoMoveRatio&&($+=1),A=-1*$*y.itemDistance,Sr(B,A,"end",k.direction,300),y.moved=A;const U=s.value[$].name;i.current.value=U??"",u(U??""),a("update:modelValue",U)}},S=()=>{},m=()=>{if(!d.value)return;const k=zn(d.value);i.tabWidth.value=k.width,i.tabHeight.value=k.height},C=Cn(m,120);let N=null,b=null;return(0,t.onMounted)(()=>{d.value&&(m(),window.ResizeObserver&&(b=new window.ResizeObserver(C),b.observe(d.value)),o.draggle&&(N=Gd(h,f,S),N.open(p.value)))}),(0,t.onBeforeUnmount)(()=>{b&&(b.disconnect(),b=null),N&&N.close()}),$e({doLayout(){m()}}),()=>{const k=(0,t.h)("view",{class:`${e}__panes`,style:w.value,ref:p},[r?.default?.()]);return(0,t.h)("view",{class:c.value,style:v.value,ref:d},[k])}}}}var{create:Jd,componentName:ef,scope:tf}=Q("tabs-container"),nf=Jd(Zd(ef,tf,!1)),sn=nf,of={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,l){return{props:{...of},setup(o,{emit:a,slots:r}){const s=(0,t.inject)(qi);(0,t.onMounted)(()=>{s.add(o.paneKey)}),(0,t.onBeforeUnmount)(()=>{s.remove(o.paneKey)});const i=(0,t.computed)(()=>{const d={};return s.direction.value==="vertical"&&s.tabHeight.value>0?d.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(d.width=`${s.tabWidth.value}px`),d}),u=(0,t.computed)(()=>o.loaded!=null?ye(o.loaded):s.isLoaded(o.paneKey));return()=>{let d=[];if(u.value)d=r?.default?.()??[];else if(r.empty)d=r.empty();else{const p={class:`${e}__empty-icon`},c=(0,t.h)(o.emptyIcon??l,p),v=(0,t.h)("view",{class:`${e}__empty-text`},[o.emptyText??"Loading"]),g=(0,t.h)("view",{class:`${e}__empty`},[c,v]);d.push(g)}return(0,t.h)("view",{class:`${e}`,style:i.value,prop:o.paneKey},d)}}}}var{create:af,componentName:rf,scope:sf}=Q("tabs-pane"),uf=af(lf(rf,sf,oe.Loading)),eo=uf,wr=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=pn(e,null,this.config)}updateChildren(e,n){n?n.children=pn(e,n,this.config):this.nodes=pn(e,null,this.config)}getNodeByValue(e){let n;return Ii(this.nodes,l=>{if(l.value===e)return n=l,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let l=this.nodes;for(;l&&l.length;){const o=l.find(a=>a.value===e[a.level]);if(!o)break;n.push(o),l=o.children}return n}isLeaf(e,n){const{leaf:l,children:o}=e,a=Array.isArray(o)&&!!o.length;return l||!a&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:l}=e;return Array.isArray(l)&&!!l.length}},{create:cf,scope:df}=Q("cascader-pane"),ff=cf({components:{Loading:oe.Loading,Checklist:oe.Checklist,TabsBar:rn,TabsContainer:sn,TabsPane:eo},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:l}=(0,se.useFoxI18n)(df),o=(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),u=(0,t.ref)(new wr([],{})),d=(0,t.ref)([]),p=(0,t.computed)(()=>o.value.lazy&&!!o.value.lazyLoad),c=(0,t.computed)(()=>s.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((m,C)=>({text:m.selectedNode?m.selectedNode.text:l("select"),value:C}))),v=new Map;let g;const w=async()=>{v.clear(),d.value=[],a.value=0,s.value=!1,g=null;let{options:m}=e;o.value.convertConfig&&(m=_d(m,o.value.convertConfig)),u.value=new wr(m,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),p.value&&!u.value.nodes.length&&await h({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:u.value.nodes,selectedNode:null}],y(!p.value)},y=async(m=!0)=>{const C=i.value;if(C===void 0||!u.value.nodes.length)return;if(C.length===0){a.value=0,d.value=[{nodes:u.value.nodes,selectedNode:null}];return}let N=C;if(p.value&&Array.isArray(C)&&C.length){N=[];let b=u.value.nodes.find(k=>k.value===C[0]);b&&(N=[b.value],s.value=!0,await h(await C.slice(1).reduce(async(k,B)=>{const A=await k;await h(A);const $=A?.children?.find(T=>T.value===B);return $&&N.push(B),Promise.resolve($)},Promise.resolve(b))),s.value=!1)}N.length&&C===e.modelValue&&u.value.getPathNodesByValue(N).map((b,k)=>{a.value=k,S.handleNode(b,m)})},h=async m=>{if(!m)return;if(!o.value.lazyLoad){m.leaf=!0;return}if(u.value.isLeaf(m,p.value)||u.value.hasChildren(m,p.value))return;m.loading=!0;const C=m.root?null:m;let N=v.get(m);N||(N=new Promise(k=>{o.value.lazyLoad?.(m,k)}),v.set(m,N));const b=await N;Array.isArray(b)&&b.length>0?u.value.updateChildren(b,C):m.leaf=!0,m.loading=!1,v.delete(m)},f=m=>{const C=m.map(N=>N.value);i.value=C,n("change",C,m),n("pathChange",m),n("update:modelValue",C)},S={async handleNode(m,C){const{disabled:N,loading:b}=m;if(!(!C&&N||!d.value[a.value])){if(u.value.isLeaf(m,p.value)){if(m.leaf=!0,d.value[a.value].selectedNode=m,d.value=d.value.slice(0,m.level+1),!C){const k=d.value.map(B=>B.selectedNode);f(k),n("pathChange",k)}return}if(u.value.hasChildren(m,p.value)){const k=m.level+1;d.value[a.value].selectedNode=m,d.value=d.value.slice(0,k),d.value.push({nodes:m.children||[],selectedNode:null}),a.value=k,C||n("pathChange",d.value.map(B=>B.selectedNode));return}g=m,!b&&(await h(m),g===m&&(d.value[a.value].selectedNode=m,S.handleNode(m,C)))}},handleTabChange(m,C){g=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:l("select")},isSelected(m,C){return m.selectedNode&&m.selectedNode.value===C.value}};return(0,t.watch)([o,()=>e.options],()=>{w()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,m=>{De(m,i.value)||(i.value=m,y(!p.value))}),(0,t.watch)(()=>e.visible,m=>{m&&Array.isArray(i.value)&&i.value.length>0&&y(),m&&r.value&&setTimeout(()=>{r.value.doLayout()},0)}),{panes:d,panesTitles:c,initLoading:s,tabsCursor:a,tabsContainerRef:r,...S}}}),mf={class:"fox-cascader"},pf={role:"menu",class:"fox-cascader__pane"},vf=["aria-checked","aria-disabled","onClick"],hf={class:"fox-cascader__item__title"};function gf(e,n,l,o,a,r){const s=(0,t.resolveComponent)("TabsBar"),i=(0,t.resolveComponent)("Loading"),u=(0,t.resolveComponent)("Checklist"),d=(0,t.resolveComponent)("TabsPane"),p=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",mf,[(0,t.createVNode)(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=c=>e.tabsCursor=c),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]=c=>e.tabsCursor=c)},{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,(c,v)=>((0,t.openBlock)(),(0,t.createBlock)(d,{"pane-key":v,key:v},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",pf,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.nodes,g=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:g.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(c,g),disabled:g.disabled}]),"aria-checked":e.isSelected(c,g),"aria-disabled":g.disabled||void 0,role:"menuitemradio",onClick:w=>e.handleNode(g,!1)},[(0,t.createElementVNode)("view",hf,(0,t.toDisplayString)(g.text),1),g.loading?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,vf))),128))])]),_:2},1032,["pane-key"]))),128)):((0,t.openBlock)(),(0,t.createBlock)(d,{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=ne(ff,[["render",gf]]),{create:bf}=Q("cascader"),kf=bf({components:{CascaderPane:yf,Wrapper:Pd},props:{...Fe,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},poppable:{type:Boolean,default:()=>!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const l=(0,t.ref)(e.modelValue),o=(0,t.computed)({get(){return e.visible},set(s){n("update:visible",s)}}),a=(s,i)=>{l.value=s,o.value=!1,n("change",s,i),n("update:modelValue",s)},r=s=>{n("pathChange",s)};return(0,t.watch)(()=>e.modelValue,s=>{s!==l.value&&(l.value=s)}),{onChange:a,onPathChange:r,innerValue:l,innerVisible:o}}}),Sf=["innerHTML"];function wf(e,n,l,o,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]=u=>e.innerVisible=u),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 to=ne(kf,[["render",wf]]);function Nt(e,n){return n[e.textKey??"text"]??""}function Bt(e,n){return n[e.valueKey??"value"]}function Pi(e,n){return n[e.childrenKey??"children"]}function fn(e,n=[]){const l={texts:[],values:[]};for(let o=0;o<n.length;o++){const a=n[o],r=Nt(e,a),s=Bt(e,a);l.texts.push(r),l.values.push(s??"")}return l}function Mi(e,n,l,o,a=[]){if(!l)return;const r=l[o];for(let s=0;s<n.length;s++)if(Nt(e,n[s])===r){const i=Bt(e,n[s])??"",u={[e.textKey]:r,[e.valueKey]:i};a.push(u);const d=Pi(e,n[s]);Array.isArray(d)&&Mi(e,d,l,o+1,a);return}}function _i(e,n,l,o,a=[]){if(!l)return;const r=l[o];for(let s=0;s<n.length;s++)if(Bt(e,n[s])===r){const i=Nt(e,n[s])??"",u={[e.textKey]:i,[e.valueKey]:r};a.push(u);const d=Pi(e,n[s]);Array.isArray(d)&&_i(e,d,l,o+1,a);return}}function So(e,n,l){if(n===l)return!0;if(n.length!==l.length)return!1;for(let o=0;o<n.length;o++)if(Nt(e,n[o])!==Nt(e,l[o])||Bt(e,n[o])!==Bt(e,l[o]))return!1;return!0}var Cf=class{proxy;constructor(e){this.proxy=e}async load(e,n,l){const o="cascader";if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,l);const a=nt(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(xe(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await a(e,n,l))}};function Nf(){return new Cf((0,t.getCurrentInstance)().proxy)}var Cr={modelValue:{type:[Array,String]},pathNodes:{type:[Array]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object},showAllLevels:{type:[Boolean],default:!0},separator:{type:[String],default:"/"}};function Bf(e,n,l,o,a,r,s=!1){return{props:{...ve,...ge,...Cr},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(i,u){const d=Te((0,t.computed)(()=>i.disabled)),p=Ve((0,t.computed)(()=>i.readonly)),{emitEvent:c}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return d.value}},i.prop??u.attrs.name),{toLocaleRefs:v}=(0,se.useFoxI18n)(n),g=v(i,["placeholder"]),w=(0,t.ref)(!1),y=Nf(),h=(0,t.ref)([]),f=(0,t.ref)([]),S=(0,t.computed)(()=>{if(Array.isArray(f.value)){if(i.showAllLevels===!1){const K=f.value.length-1;return f.value[K]}return f.value.join(i.separator)}else return f.value}),m=(0,t.ref)([]),C=(0,t.ref)([]);(0,t.watch)([()=>i.modelValue,()=>h.value],async([K,J])=>{if(c("setValue",K),i.lazy===!0){C.value.length==0&&(m.value=Array.isArray(K)?K:[]);return}if(i.valueType==="item"){let W=K;if(!So(i,W,C.value)){C.value=W;let ee=fn(i,W);f.value=ee.texts,m.value=ee.values}}else if(i.valueType==="text"){let W=K,ee=[];if(Mi(i,J,W,0,ee),!So(i,ee,C.value)){C.value=ee;let M=fn(i,ee);W.value=M.texts,m.value=M.values}}else{let W=[];if(_i(i,J,K,0,W),!So(i,W,C.value)){C.value=W;let ee=fn(i,W);f.value=ee.texts,m.value=ee.values}}}),i.lazy===!0&&(m.value=Array.isArray(i.modelValue)?i.modelValue:[]),(0,t.watch)([()=>i.source,()=>i.params],async([K,J])=>{i.lazy||K&&(h.value=await y.load(K,J))},{immediate:!0});const N="fox-input-item",b=(0,t.computed)(()=>({[N]:!0,"is-disabled":d.value,"is-readonly":p.value})),k=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),B=(0,t.computed)(()=>{const K={};return k.value&&(K["text-align"]=k.value),K}),A=(0,t.ref)(!1),$=()=>{d.value===!0||p.value===!0||(A.value=!0)},T=K=>{A.value=K},U=(K,J)=>{let W=J.map(M=>{if(M==null)return M;let H={...M};return Reflect.deleteProperty(H,"text"),H[i.textKey]=M.text??"",Reflect.deleteProperty(H,"value"),H[i.valueKey]=M.value??"",H});C.value=W;let ee=fn(i,W);f.value=ee.texts,m.value=ee.values,i.valueType==="text"?(c("change",f.value,W),c("update:modelValue",f.value)):i.valueType==="item"?(c("change",W,W),c("update:modelValue",W)):(c("change",m.value,W),c("update:modelValue",m.value)),c("update:pathNodes",W)},Z=K=>{c("pathChange",K.map(J=>{if(J==null)return J;let W={...J};return Reflect.deleteProperty(W,"text"),W[i.textKey]=J.text??"",Reflect.deleteProperty(W,"value"),W[i.valueKey]=J.value??"",W}))},E=K=>{w.value=!0,c("focus",m.value,K)},V=K=>{setTimeout(()=>{w.value=!1},0),c("blur",m.value,K)},I=(0,t.computed)(()=>({[`${N}__append`]:!0,"is-disabled":d.value,"is-readonly":p.value})),D=(0,t.computed)(()=>be(i.unit)>0),L=(0,t.computed)(()=>be(i.unit)>0&&!w.value),O=(0,t.computed)(()=>({hidden:!L.value})),q=K=>{C.value=[],f.value=[],m.value=[],c("update:modelValue",[]),c("change",[],K),c("clear",[]),c("update:pathNodes",[])},X=(0,t.computed)(()=>i.clearable&&!d.value&&!p.value),te=(0,t.computed)(()=>{let K=m.value&&m.value.length>0;return i.clearable&&K&&w.value}),z=K=>{te.value?q(K):$()},R=(0,t.computed)(()=>te.value&&X.value?o:a),_=(0,t.computed)(()=>({action:!0}));let Y=null;const F=()=>typeof Y=="function"?Y:typeof i.lazyLoad=="function"?i.lazyLoad:(Y=async(K,J)=>{const W=[],ee=[];let M=0;if(!K.root){let H=K;for(;H;){const P=Nt(i,H),x=Bt(i,H);ee.splice(0,0,P),W.splice(0,0,x),H=H._parent}M=W.length}J(await y.load(i.source,{...K,level:M,pathLabels:ee,pathValues:W},!0))},Y);return()=>{const K={class:b.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:g.placeholder.value,readonly:!0,unselectable:"on",value:S.value,onClick:$,onFocus:E,onBlur:V};s&&(K.disabled=!0);const J=[],W=(0,t.h)("input",K);J.push(W);const ee=[],M=(0,t.h)(R.value,{class:["action-icon"]}),H=(0,t.h)("view",{class:_.value,onClick:z},{default:()=>[M]});if(ee.push(H),D.value){const ie=(0,t.h)("view",{class:O.value},[i.unit]);ee.push(ie)}const P=(0,t.h)("view",{class:I.value},{default:()=>ee});J.push(P);const x={default:()=>J};x.label=u.slots.default,x.prepend=u.slots.prepend,x.append=u.slots.append,x.fixedPreTip=u.slots.fixedPreTip,x.fixedTip=u.slots.fixedTip;const j={};j.visible=A.value,j["onUpdate:visible"]=T,j.modelValue=m.value,j.onChange=U,j.onPathChange=Z,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=F()):j.options=h.value;const G={};G.header=u.slots.header;const le=(0,t.h)(r,j,G);x.hide=()=>[le];const ae={...et(i,Cr)};return i.prop&&(ae.prop=`${i.prop}_item`),(0,t.h)(l,ae,x)}}}}var{componentName:Af,create:Vf,scope:Tf}=Q("cascader-item"),$f=Vf(Bf(Af,Tf,Ce,oe.CircleClose,oe.ArrowRight,to,!1)),yl=$f,Ef=je(((e,n)=>{(function(l,o){typeof e=="object"&&typeof n<"u"?n.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self).dayjs=o()})(e,(function(){"use strict";var l=1e3,o=6e4,a=36e5,r="millisecond",s="second",i="minute",u="hour",d="day",p="week",c="month",v="quarter",g="year",w="date",y="Invalid Date",h=/^(\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,S={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(E){var V=["th","st","nd","rd"],I=E%100;return"["+E+(V[(I-20)%10]||V[I]||V[0])+"]"}},m=function(E,V,I){var D=String(E);return!D||D.length>=V?E:""+Array(V+1-D.length).join(I)+E},C={s:m,z:function(E){var V=-E.utcOffset(),I=Math.abs(V),D=Math.floor(I/60),L=I%60;return(V<=0?"+":"-")+m(D,2,"0")+":"+m(L,2,"0")},m:function E(V,I){if(V.date()<I.date())return-E(I,V);var D=12*(I.year()-V.year())+(I.month()-V.month()),L=V.clone().add(D,c),O=I-L<0,q=V.clone().add(D+(O?-1:1),c);return+(-(D+(I-L)/(O?L-q:q-L))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:c,y:g,w:p,d,D:w,h:u,m:i,s,ms:r,Q:v}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},N="en",b={};b[N]=S;var k="$isDayjsObject",B=function(E){return E instanceof U||!(!E||!E[k])},A=function E(V,I,D){var L;if(!V)return N;if(typeof V=="string"){var O=V.toLowerCase();b[O]&&(L=O),I&&(b[O]=I,L=O);var q=V.split("-");if(!L&&q.length>1)return E(q[0])}else{var X=V.name;b[X]=V,L=X}return!D&&L&&(N=L),L||!D&&N},$=function(E,V){if(B(E))return E.clone();var I=typeof V=="object"?V:{};return I.date=E,I.args=arguments,new U(I)},T=C;T.l=A,T.i=B,T.w=function(E,V){return $(E,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var U=(function(){function E(I){this.$L=A(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[k]=!0}var V=E.prototype;return V.parse=function(I){this.$d=(function(D){var L=D.date,O=D.utc;if(L===null)return new Date(NaN);if(T.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var q=L.match(h);if(q){var X=q[2]-1||0,te=(q[7]||"0").substring(0,3);return O?new Date(Date.UTC(q[1],X,q[3]||1,q[4]||0,q[5]||0,q[6]||0,te)):new Date(q[1],X,q[3]||1,q[4]||0,q[5]||0,q[6]||0,te)}}return new Date(L)})(I),this.init()},V.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},V.$utils=function(){return T},V.isValid=function(){return this.$d.toString()!==y},V.isSame=function(I,D){var L=$(I);return this.startOf(D)<=L&&L<=this.endOf(D)},V.isAfter=function(I,D){return $(I)<this.startOf(D)},V.isBefore=function(I,D){return this.endOf(D)<$(I)},V.$g=function(I,D,L){return T.u(I)?this[D]:this.set(L,I)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(I,D){var L=this,O=!!T.u(D)||D,q=T.p(I),X=function(J,W){var ee=T.w(L.$u?Date.UTC(L.$y,W,J):new Date(L.$y,W,J),L);return O?ee:ee.endOf(d)},te=function(J,W){return T.w(L.toDate()[J].apply(L.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(W)),L)},z=this.$W,R=this.$M,_=this.$D,Y="set"+(this.$u?"UTC":"");switch(q){case g:return O?X(1,0):X(31,11);case c:return O?X(1,R):X(0,R+1);case p:var F=this.$locale().weekStart||0,K=(z<F?z+7:z)-F;return X(O?_-K:_+(6-K),R);case d:case w:return te(Y+"Hours",0);case u:return te(Y+"Minutes",1);case i:return te(Y+"Seconds",2);case s:return te(Y+"Milliseconds",3);default:return this.clone()}},V.endOf=function(I){return this.startOf(I,!1)},V.$set=function(I,D){var L,O=T.p(I),q="set"+(this.$u?"UTC":""),X=(L={},L[d]=q+"Date",L[w]=q+"Date",L[c]=q+"Month",L[g]=q+"FullYear",L[u]=q+"Hours",L[i]=q+"Minutes",L[s]=q+"Seconds",L[r]=q+"Milliseconds",L)[O],te=O===d?this.$D+(D-this.$W):D;if(O===c||O===g){var z=this.clone().set(w,1);z.$d[X](te),z.init(),this.$d=z.set(w,Math.min(this.$D,z.daysInMonth())).$d}else X&&this.$d[X](te);return this.init(),this},V.set=function(I,D){return this.clone().$set(I,D)},V.get=function(I){return this[T.p(I)]()},V.add=function(I,D){var L,O=this;I=Number(I);var q=T.p(D),X=function(R){var _=$(O);return T.w(_.date(_.date()+Math.round(R*I)),O)};if(q===c)return this.set(c,this.$M+I);if(q===g)return this.set(g,this.$y+I);if(q===d)return X(1);if(q===p)return X(7);var te=(L={},L[i]=o,L[u]=a,L[s]=l,L)[q]||1,z=this.$d.getTime()+I*te;return T.w(z,this)},V.subtract=function(I,D){return this.add(-1*I,D)},V.format=function(I){var D=this,L=this.$locale();if(!this.isValid())return L.invalidDate||y;var O=I||"YYYY-MM-DDTHH:mm:ssZ",q=T.z(this),X=this.$H,te=this.$m,z=this.$M,R=L.weekdays,_=L.months,Y=L.meridiem,F=function(W,ee,M,H){return W&&(W[ee]||W(D,O))||M[ee].slice(0,H)},K=function(W){return T.s(X%12||12,W,"0")},J=Y||function(W,ee,M){var H=W<12?"AM":"PM";return M?H.toLowerCase():H};return O.replace(f,(function(W,ee){return ee||(function(M){switch(M){case"YY":return String(D.$y).slice(-2);case"YYYY":return T.s(D.$y,4,"0");case"M":return z+1;case"MM":return T.s(z+1,2,"0");case"MMM":return F(L.monthsShort,z,_,3);case"MMMM":return F(_,z);case"D":return D.$D;case"DD":return T.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return F(L.weekdaysMin,D.$W,R,2);case"ddd":return F(L.weekdaysShort,D.$W,R,3);case"dddd":return R[D.$W];case"H":return String(X);case"HH":return T.s(X,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return J(X,te,!0);case"A":return J(X,te,!1);case"m":return String(te);case"mm":return T.s(te,2,"0");case"s":return String(D.$s);case"ss":return T.s(D.$s,2,"0");case"SSS":return T.s(D.$ms,3,"0");case"Z":return q}return null})(W)||q.replace(":","")}))},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(I,D,L){var O,q=this,X=T.p(D),te=$(I),z=(te.utcOffset()-this.utcOffset())*o,R=this-te,_=function(){return T.m(q,te)};switch(X){case g:O=_()/12;break;case c:O=_();break;case v:O=_()/3;break;case p:O=(R-z)/6048e5;break;case d:O=(R-z)/864e5;break;case u:O=R/a;break;case i:O=R/o;break;case s:O=R/l;break;default:O=R}return L?O:T.a(O)},V.daysInMonth=function(){return this.endOf(c).$D},V.$locale=function(){return b[this.$L]},V.locale=function(I,D){if(!I)return this.$L;var L=this.clone(),O=A(I,D,!0);return O&&(L.$L=O),L},V.clone=function(){return T.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},E})(),Z=U.prototype;return $.prototype=Z,[["$ms",r],["$s",s],["$m",i],["$H",u],["$W",d],["$M",c],["$y",g],["$D",w]].forEach((function(E){Z[E[1]]=function(V){return this.$g(V,E[0],E[1])}})),$.extend=function(E,V){return E.$i||(E(V,U,$),E.$i=!0),$},$.locale=A,$.isDayjs=B,$.unix=function(E){return $(1e3*E)},$.en=b[N],$.Ls=b,$.p={},$}))})),xf=je(((e,n)=>{(function(l,o){typeof e=="object"&&typeof n<"u"?n.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self).dayjs_plugin_customParseFormat=o()})(e,(function(){"use strict";var l={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|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]+/,u={},d=function(h){return(h=+h)+(h>68?1900:2e3)},p=function(h){return function(f){this[h]=+f}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=(function(f){if(!f||f==="Z")return 0;var S=f.match(/([+-]|\d\d)/g),m=60*S[1]+(+S[2]||0);return m===0?0:S[0]==="+"?-m:m})(h)}],v=function(h){var f=u[h];return f&&(f.indexOf?f:f.s.concat(f.f))},g=function(h,f){var S,m=u.meridiem;if(m){for(var C=1;C<=24;C+=1)if(h.indexOf(m(C,0,f))>-1){S=C>12;break}}else S=h===(f?"pm":"PM");return S},w={A:[i,function(h){this.afternoon=g(h,!1)}],a:[i,function(h){this.afternoon=g(h,!0)}],Q:[a,function(h){this.month=3*(h-1)+1}],S:[a,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],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(h){var f=u.ordinal;if(this.day=h.match(/\d+/)[0],f)for(var S=1;S<=31;S+=1)f(S).replace(/\[|\]/g,"")===h&&(this.day=S)}],w:[s,p("week")],ww:[r,p("week")],M:[s,p("month")],MM:[r,p("month")],MMM:[i,function(h){var f=v("months"),S=(v("monthsShort")||f.map((function(m){return m.slice(0,3)}))).indexOf(h)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[i,function(h){var f=v("months").indexOf(h)+1;if(f<1)throw new Error;this.month=f%12||f}],Y:[/[+-]?\d+/,p("year")],YY:[r,function(h){this.year=d(h)}],YYYY:[/\d{4}/,p("year")],Z:c,ZZ:c};function y(h){for(var f=h,S=u&&u.formats,m=(h=f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function($,T,U){var Z=U&&U.toUpperCase();return T||S[U]||l[U]||S[Z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(E,V,I){return V||I.slice(1)}))}))).match(o),C=m.length,N=0;N<C;N+=1){var b=m[N],k=w[b],B=k&&k[0],A=k&&k[1];m[N]=A?{regex:B,parser:A}:b.replace(/^\[|\]$/g,"")}return function($){for(var T={},U=0,Z=0;U<C;U+=1){var E=m[U];if(typeof E=="string")Z+=E.length;else{var V=E.regex,I=E.parser,D=$.slice(Z),L=V.exec(D)[0];I.call(T,L),$=$.replace(L,"")}}return(function(O){var q=O.afternoon;if(q!==void 0){var X=O.hours;q?X<12&&(O.hours+=12):X===12&&(O.hours=0),delete O.afternoon}})(T),T}}return function(h,f,S){S.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(d=h.parseTwoDigitYear);var m=f.prototype,C=m.parse;m.parse=function(N){var b=N.date,k=N.utc,B=N.args;this.$u=k;var A=B[1];if(typeof A=="string"){var $=B[2]===!0,T=B[3]===!0,U=$||T,Z=B[2];T&&(Z=B[2]),u=this.$locale(),!$&&Z&&(u=S.Ls[Z]),this.$d=(function(D,L,O,q){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*D);var X=y(L)(D),te=X.year,z=X.month,R=X.day,_=X.hours,Y=X.minutes,F=X.seconds,K=X.milliseconds,J=X.zone,W=X.week,ee=new Date,M=R||(te||z?1:ee.getDate()),H=te||ee.getFullYear(),P=0;te&&!z||(P=z>0?z-1:ee.getMonth());var x,j=_||0,G=Y||0,le=F||0,ae=K||0;return J?new Date(Date.UTC(H,P,M,j,G,le,ae+60*J.offset*1e3)):O?new Date(Date.UTC(H,P,M,j,G,le,ae)):(x=new Date(H,P,M,j,G,le,ae),W&&(x=q(x).week(W).toDate()),x)}catch{return new Date("")}})(b,A,k,S),this.init(),Z&&Z!==!0&&(this.$L=this.locale(Z).$L),U&&b!=this.format(A)&&(this.$d=new Date("")),u={}}else if(A instanceof Array)for(var E=A.length,V=1;V<=E;V+=1){B[1]=A[V-1];var I=S.apply(this,B);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}V===E&&(this.$d=new Date(""))}else C.call(this,N)}}}))})),Df=je(((e,n)=>{(function(l,o){typeof e=="object"&&typeof n<"u"?n.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self).dayjs_plugin_advancedFormat=o()})(e,(function(){"use strict";return function(l,o){var a=o.prototype,r=a.format;a.format=function(s){var i=this,u=this.$locale();if(!this.isValid())return r.bind(this)(s);var d=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(c){switch(c){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return u.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return u.ordinal(i.week(),"W");case"w":case"ww":return d.s(i.week(),c==="w"?1:2,"0");case"W":case"WW":return d.s(i.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return d.s(String(i.$H===0?24:i.$H),c==="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 c}}));return r.bind(this)(p)}}}))})),If=je(((e,n)=>{(function(l,o){typeof e=="object"&&typeof n<"u"?n.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self).dayjs_plugin_localeData=o()})(e,(function(){"use strict";return function(l,o,a){var r=o.prototype,s=function(c){return c&&(c.indexOf?c:c.s)},i=function(c,v,g,w,y){var h=c.name?c:c.$locale(),f=s(h[v]),S=s(h[g]),m=f||S.map((function(N){return N.slice(0,w)}));if(!y)return m;var C=h.weekStart;return m.map((function(N,b){return m[(b+(C||0))%7]}))},u=function(){return a.Ls[a.locale()]},d=function(c,v){return c.formats[v]||(function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,y,h){return y||h.slice(1)}))})(c.formats[v.toUpperCase()])},p=function(){var c=this;return{months:function(v){return v?v.format("MMMM"):i(c,"months")},monthsShort:function(v){return v?v.format("MMM"):i(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):i(c,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):i(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):i(c,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return d(c.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},a.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.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(v){return d(c,v)},meridiem:c.meridiem,ordinal:c.ordinal}},a.months=function(){return i(u(),"months")},a.monthsShort=function(){return i(u(),"monthsShort","months",3)},a.weekdays=function(c){return i(u(),"weekdays",null,null,c)},a.weekdaysShort=function(c){return i(u(),"weekdaysShort","weekdays",3,c)},a.weekdaysMin=function(c){return i(u(),"weekdaysMin","weekdays",2,c)}}}))})),qf=je(((e,n)=>{(function(l,o){typeof e=="object"&&typeof n<"u"?n.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self).dayjs_plugin_weekOfYear=o()})(e,(function(){"use strict";var l="week",o="year";return function(a,r,s){var i=r.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=s(this).startOf(o).add(1,o).date(d),c=s(this).endOf(l);if(p.isBefore(c))return 1}var v=s(this).startOf(o).date(d).startOf(l).subtract(1,"millisecond"),g=this.diff(v,l,!0);return g<0?s(this).startOf("week").week():Math.ceil(g)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}}))})),Pf=je(((e,n)=>{(function(l,o){typeof e=="object"&&typeof n<"u"?n.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self).dayjs_plugin_weekYear=o()})(e,(function(){"use strict";return function(l,o){o.prototype.weekYear=function(){var a=this.month(),r=this.week(),s=this.year();return r===1&&a===11?s+1:a===0&&r>=52?s-1:s}}}))})),Mf=je(((e,n)=>{(function(l,o){typeof e=="object"&&typeof n<"u"?n.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self).dayjs_plugin_dayOfYear=o()})(e,(function(){"use strict";return function(l,o,a){o.prototype.dayOfYear=function(r){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}}))})),_f=je(((e,n)=>{(function(l,o){typeof e=="object"&&typeof n<"u"?n.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self).dayjs_plugin_isSameOrAfter=o()})(e,(function(){"use strict";return function(l,o){o.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}}))})),Lf=je(((e,n)=>{(function(l,o){typeof e=="object"&&typeof n<"u"?n.exports=o():typeof define=="function"&&define.amd?define(o):(l=typeof globalThis<"u"?globalThis:l||self).dayjs_plugin_isSameOrBefore=o()})(e,(function(){"use strict";return function(l,o){o.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}}))})),Re=We(Ef(),1),zf=We(xf(),1),Of=We(Df(),1),Ff=We(If(),1),Rf=We(qf(),1),Kf=We(Pf(),1),Uf=We(Mf(),1),Hf=We(_f(),1),jf=We(Lf(),1);Re.default.extend(Ff.default);Re.default.extend(Of.default);Re.default.extend(zf.default);Re.default.extend(Rf.default);Re.default.extend(Kf.default);Re.default.extend(Uf.default);Re.default.extend(Hf.default);Re.default.extend(jf.default);var re={format(e,n){return(0,Re.default)(e).format(n)},parser(e,n){return(0,Re.default)(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,l){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+l).getDay()]},getMonthPreDay(e,n){let l=new Date(e+"/"+n+"/01").getDay();return l==0&&(l=7),l},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,l){e=e||0;let o=n??new Date;const a=e*(1e3*60*60*24);return o=new Date(o.getTime()+a),l=l??"YYYY-MM-DD",this.format(o,l)},compareDate(e,n){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(l>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,l==o},getMonthWeek:function(e,n,l,o=0){const a=new Date(Number(e),parseInt(n)-1,Number(l));let r=a.getDay(),s=a.getDate(),i=6-r;return o!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,l,o=0){const a=new Date(Number(e),parseInt(n)-1,Number(l)),r=new Date(Number(e),0,1),s=Math.round((a.valueOf()-r.valueOf())/864e5);let i=a.getDay(),u=6-i;return o!==0&&(i=i==0?7:i,u=7-i),Math.ceil((s+u)/7)},getWeekDate:function(e,n,l,o=0){const a=new Date(Number(e),parseInt(n)-1,Number(l)),r=a.getTime();let s=a.getDay();if(o===0){const u=r-s*864e5,d=r+(6-s)*864e5;return[this.date2Str(new Date(u)),this.date2Str(new Date(d))]}else{s=s==0?7:s;const i=1440*60*1e3,u=r-(s-1)*i,d=r+(7-s)*i;return[this.date2Str(new Date(u)),this.date2Str(new Date(d))]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=re.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=re.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,l){const o=new Date(new Date(n).setDate(n.getDate()+l)),a=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s},inScope4Month(e,n,l){const o=new Date(new Date(n).setMonth(n.getMonth()+l)),a=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s}},Nr=new Date().getFullYear(),bl={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"},Tn=(e,n,l)=>{let o;if(He(n)?o=n:typeof n=="string"&&be(n)>0?o=re.parser(n,l):o=new Date,o.toString()==="Invalid Date")return null;let a=Math.max(o.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Ko=(e,n,l)=>{He(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),re.format(new Date(o),l)},Uo={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(Nr-10,0,1),validator:He},maxDate:{type:Date,default:()=>new Date(Nr+10,11,31),validator:He},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:Yf}=Q("date-picker"),Xf=Wf({components:{Picker:an},props:{...Uo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:l}=(0,se.useFoxI18n)(Yf),o={day:l("day"),year:l("year"),month:l("month"),hour:l("hour"),minute:l("minute"),seconds:l("seconds"),today:l("today"),fullWeekdays:JSON.parse(l("fullWeekdays"))},a=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,m=>{a.value=m});function r(m,C){return new Date(m,C,0).getDate()}const s=(m,C)=>{const N=e[`${m}Date`],b=N.getFullYear();let k=1,B=1,A=0,$=0;m==="max"&&(k=12,B=r(C.getFullYear(),C.getMonth()+1),A=23,$=59);const T=$;return C.getFullYear()===b&&(k=N.getMonth()+1,C.getMonth()+1===k&&(B=N.getDate(),C.getDate()===B&&(A=N.getHours(),C.getHours()===A&&($=N.getMinutes())))),{[`${m}Year`]:b,[`${m}Month`]:k,[`${m}Date`]:B,[`${m}Hour`]:A,[`${m}Minute`]:$,[`${m}Seconds`]:T}},i=(0,t.computed)(()=>{if(!v.value)return[];const{maxYear:m,maxDate:C,maxMonth:N,maxHour:b,maxMinute:k,maxSeconds:B}=s("max",v.value),{minYear:A,minDate:$,minMonth:T,minHour:U,minMinute:Z,minSeconds:E}=s("min",v.value);let V=[{type:"year",range:[A,m]},{type:"month",range:[T,N]},{type:"day",range:[$,C]},{type:"hour",range:[U,b]},{type:"minute",range:[Z,k]},{type:"seconds",range:[E,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}),u=(m,C,N,b,k)=>{const B=[];for(;m<=C;){let A=!0;if(typeof e.itemFilter=="function"){const $={text:`${m}`,value:m,type:N,currentYearMonth:b};A=e.itemFilter($)}if(A)if(typeof e.itemFormatter=="function"){const $={text:`${m}`,value:m,type:N,currentYearMonth:b};e.itemFormatter($),B.push({text:$.text,value:$.value})}else if(e.isShowChinese){let $=`${m}${o[N]}`;if(N==="day"){if(b[0]===k[0]&&b[1]===k[1]&&m===k[2])$=o.today;else{const T=new Date(b[0],b[1],m).getDay();$=`${$} ${o.fullWeekdays[T]}`}B.push({text:$,value:m})}else B.push({text:m+o[N],value:m})}else B.push({text:`${m}`,value:m});N==="minute"?m+=e.minuteStep:m++}return B},d=(0,t.computed)(()=>{const m=new Date,C=[m.getFullYear(),m.getMonth(),m.getDate()],N=[];v.value&&(N[0]=v.value.getFullYear(),N[1]=v.value.getMonth());let b=[];return i.value.forEach(k=>{let B=u(k.range[0],k.range[1],k.type,N,C);B&&b.push(B)}),b}),p=(m,C)=>m==="year"?C.getFullYear():m==="month"?C.getMonth()+1:m==="day"?C.getDate():m==="hour"?C.getHours():m==="minute"?C.getMinutes():m==="seconds"?C.getSeconds():0,c=(0,t.ref)(),v=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,m=>{let C;if(typeof m=="string"?m.length==0||m==="Invalid Date"?C=new Date:e.valueFormat?C=Tn(e,e.modelValue,e.valueFormat):C=Tn(e,m,bl[e.type]):He(m)?C=m:C=new Date,!!C&&(!v.value||C.getTime()!==v.value.getTime())){v.value=C;let N=[];i.value.forEach(b=>{let k=p(b.type,C);N.push(k)}),c.value=N}},{immediate:!0});const g=m=>{if(!m||m.length===0){v.value=new Date;let C=[];i.value.forEach(N=>{let b=p(N.type,v.value);C.push(b)}),c.value=C;return}if(e.type==="date"){const C=m[0],N=m[1]-1,b=Math.min(m[2],r(C,N+1));b!==m[2]&&(m[2]=b),v.value=new Date(C,N,b)}else if(e.type==="datetime"){const C=m[0],N=m[1]-1,b=Math.min(m[2],r(C,N+1)),k=m[3],B=m[4];b!==m[2]&&(m[2]=b),v.value=new Date(C,N,b,k,B)}else if(e.type==="time"){const C=m[0],N=m[1],b=m[2],k=v.value??new Date;v.value=new Date(k.getFullYear(),k.getMonth(),k.getDate(),C,N,b)}else if(e.type==="year-month"){const C=m[0],N=m[1]-1;v.value=new Date(C,N)}else if(e.type==="month-day"){const C=(v.value??new Date).getFullYear(),N=m[0]-1,b=Math.min(m[1],r(C,N+1));b!==m[1]&&(m[1]=b),v.value=new Date(C,N,b)}else if(e.type==="datehour"){const C=m[0],N=m[1]-1,b=Math.min(m[2],r(C,N+1)),k=m[3];b!==m[2]&&(m[2]=b),v.value=new Date(C,N,b,k)}else if(e.type==="hour-minute"){const C=m[0],N=m[1],b=v.value??new Date;v.value=new Date(b.getFullYear(),b.getMonth(),b.getDate(),C,N)}c.value=m};return{columns:d,dateIndexs:c,show:a,onChange:m=>{g(m)},onClose:()=>{n("update:close",!1)},onConfirm:m=>{g(m);const C=v.value??new Date;e.valueFormat?n("update:modelValue",Ko(e,C,e.valueFormat)):n("update:modelValue",C),n("confirm",m)},onClear:()=>{n("clear")},onUpdateVisible:m=>{a.value=m,n("update:visible",m)}}}});function Qf(e,n,l,o,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 no=ne(Xf,[["render",Qf]]),Gf={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Zf(e){let n=e.format;return n||(n=bl[e.type??"date"]),n}function Jf(e,n,l,o,a,r,s=!1){return{props:{...ve,...ge,...Uo,...Gf},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,u){const d=Te((0,t.computed)(()=>i.disabled)),p=Ve((0,t.computed)(()=>i.readonly)),{emitEvent:c}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return d.value}},i.prop??u.attrs.name),{toLocaleRefs:v}=(0,se.useFoxI18n)(n),g=v(i,["placeholder"]),w=(0,t.ref)(!1),h=Pe(i,"modelValue",z=>z==null?null:typeof z=="string"?z.length==0?null:i.valueFormat?Tn(i,z,i.valueFormat)??z:Tn(i,z,bl[i.type])??z:He(z)?z:null,c),f=(0,t.computed)(()=>{if(!h.value)return"";const z=Zf(i);return Ko(i,h.value,z)}),S="fox-input-item",m=(0,t.computed)(()=>({[S]:!0,"is-disabled":d.value,"is-readonly":p.value})),C=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),N=(0,t.computed)(()=>{const z={};return C.value&&(z["text-align"]=C.value),z}),b=(0,t.ref)(!1),k=()=>{b.value=!0},B=()=>{b.value=!1};u.expose({showPicker:k,hidePicker:B});const A=z=>{b.value=z},$=z=>{if(h.value=z,i.valueFormat){let R=Ko(i,z,i.valueFormat);c("update:modelValue",R,{}),c("change",R,{})}else c("update:modelValue",z,{}),c("change",z,{})},T=z=>{let R=z.target.value;w.value=!0,c("focus",R,z)},U=z=>{setTimeout(()=>{w.value=!1},0);let R=z.target.value;i.maxLength&&R.length>Number(i.maxLength)&&(R=R.slice(0,Number(i.maxLength))),c("blur",R,z)},Z=(0,t.computed)(()=>({[`${S}__append`]:!0,"is-disabled":d.value,"is-readonly":p.value})),E=(0,t.computed)(()=>be(i.unit)>0),V=(0,t.computed)(()=>be(i.unit)>0&&!w.value),I=(0,t.computed)(()=>({hidden:!V.value})),D=z=>{h.value="",c("update:modelValue","",z),c("change","",z),c("clear",""),B()},L=(0,t.computed)(()=>i.clearable&&!d.value&&!p.value),O=(0,t.computed)(()=>{let z=be(h.value)>0;return i.clearable&&z&&w.value}),q=z=>{O.value?D(z):k()},X=(0,t.computed)(()=>O.value&&L.value?o:a),te=(0,t.computed)(()=>({action:!0}));return()=>{const z={class:m.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:g.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:k,onFocus:T,onBlur:U};s&&(z.disabled=!0);const R=[],_=(0,t.h)("input",z);R.push(_);const Y=[],F=(0,t.h)(X.value,{class:["action-icon"]}),K=(0,t.h)("view",{class:te.value,onClick:q},{default:()=>[F]});if(Y.push(K),E.value){const x=(0,t.h)("view",{class:I.value},[i.unit]);Y.push(x)}const J=(0,t.h)("view",{class:Z.value},{default:()=>Y});R.push(J);const W={default:()=>R};W.label=u.slots.default,W.prepend=u.slots.prepend,W.append=u.slots.append,W.fixedPreTip=u.slots.fixedPreTip,W.fixedTip=u.slots.fixedTip;const ee=he(i,Uo);ee.valueFormat=null,ee.disabled=!1,ee.readonly=d.value||p.value,ee.visible=b.value,ee["onUpdate:visible"]=A,ee.modelValue=h.value,ee["onUpdate:modelValue"]=$,ee.onClear=D;const M={};if(u.slots.top){const x=u.slots.top();M.top=()=>x}if(u.slots.bottom){const x=u.slots.bottom();M.default=()=>x}const H=(0,t.h)(r,ee,M);W.hide=()=>[H];const P={...he(i,ge,ve)};return i.prop&&(P.prop=`${i.prop}_item`),(0,t.h)(l,P,W)}}}}var{create:em,componentName:tm,scope:nm}=Q("date-item"),om=em(Jf(tm,nm,Ce,oe.CircleClose,oe.Date,no,!1)),kl=om,{create:lm,scope:am}=Q("calendar-pane"),rm=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:re.getDay(0)},endDate:{type:String,default:re.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:l}){const{toLocaleRefs:o,t:a}=(0,se.useFoxI18n)(am),r=o(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)]),u=(0,t.ref)(null),d=(0,t.ref)(null),p=(0,t.ref)(null),c=(0,t.ref)(null),v=(0,t.ref)(0),g=(0,t.computed)(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),w=(0,t.computed)(()=>l.btn),y=(0,t.computed)(()=>l["top-info"]),h=(0,t.computed)(()=>l["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}),S=F=>F.split("-"),m=F=>re.isEqual(f.currDate[0],F),C=F=>re.isEqual(f.currDate[1],F),N=F=>f.currDate?.length>0?f.currDate?.some(K=>re.isEqual(K,F)):!1,b=(F,K)=>K.curData[0]+"-"+K.curData[1]+"-"+re.getNumTwoBit(+F.day),k=(F,K)=>{const J=b(F,K),{type:W}=e;return F.type=="curr"?re.isEqual(f.currDate,J)||(W=="range"||W=="week")&&(m(J)||C(J))||W=="multiple"&&N(J)?`${f.dayPrefix}--active`:f.propStartDate&&re.compareDate(J,f.propStartDate)||f.propEndDate&&re.compareDate(f.propEndDate,J)?`${f.dayPrefix}--disabled`:(W=="range"||W=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&re.compareDate(f.currDate[0],J)&&re.compareDate(J,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},B=()=>{const{type:F}=e;if(F=="range"&&f.chooseData.length==2||F!="range"){let K=f.chooseData.slice(0);F=="week"&&(K={weekDate:[$(f.chooseData[0]),$(f.chooseData[1])]}),n("choose",K),e.poppable&&n("update")}},A=(F,K,J=!1)=>{if(k(F,K)!=`${f.dayPrefix}--disabled`){const{type:W}=e;let[ee,M]=K.curData,H=[...K.curData];if(H[2]=re.getNumTwoBit(Number(F.day)),H[3]=`${H[0]}-${H[1]}-${H[2]}`,H[4]=re.getWhatDay(+H[0],+H[1],+H[2]),W=="multiple")if(f.currDate?.length>0){let P;f.currDate?.forEach((x,j)=>{x==H[3]&&(P=j)}),J?f.chooseData.push([...H]):P!==void 0?(f.currDate.splice(P,1),f.chooseData.splice(P,1)):(f.currDate.push(H[3]),f.chooseData.push([...H]))}else f.currDate=[H[3]],f.chooseData=[[...H]];else if(W=="range"){let P=Object.values(f.currDate).length;P==2||P==0?f.currDate=[H[3]]:re.compareDate(f.currDate[0],H[3])?Array.isArray(f.currDate)&&f.currDate.push(H[3]):Array.isArray(f.currDate)&&f.currDate.unshift(H[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...H]]:re.compareDate(f.chooseData[0][3],H[3])?f.chooseData=[...f.chooseData,[...H]]:f.chooseData=[[...H],...f.chooseData]}else if(W=="week"){let P=re.getWeekDate(ee,M,F.day,e.firstDayOfWeek);f.propStartDate&&re.compareDate(P[0],f.propStartDate)&&P.splice(0,1,f.propStartDate),f.propEndDate&&re.compareDate(f.propEndDate,P[1])&&P.splice(1,1,f.propEndDate),f.currDate=P,f.chooseData=[re.formatResultDate(P[0]),re.formatResultDate(P[1])]}else f.currDate=H[3],f.chooseData=[...H];if(!J){let P=f.chooseData;W=="week"&&(P={weekDate:[$(f.chooseData[0]),$(f.chooseData[1])]}),n("select",P),(e.isAutoBackFill||!e.poppable)&&B()}}},$=F=>{let[K,J,W]=F;return{date:F,monthWeekNum:re.getMonthWeek(K,J,W,e.firstDayOfWeek),yearWeekNum:re.getYearWeek(K,J,W,e.firstDayOfWeek)}},T=F=>{const K=F=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let J=parseInt(K.curData[0]),W=parseInt(K.curData[1].toString().replace(/^0/,""));switch(F){case"prev":W==1&&(J-=1),W=W==1?12:--W;break;case"next":W==12&&(J+=1),W=W==12?1:++W;break}return[J+"",re.getNumTwoBit(W),re.getMonthDays(String(J),String(W))+""]},U=(F,K,J)=>{let{year:W,month:ee}=J;return K=="prev"&&F>=7&&(F-=7),Array.from(Array(F),(M,H)=>({day:String(H+1),type:K,year:W,month:ee}))},Z=(F,K,J,W)=>{F=F-e.firstDayOfWeek;let{year:ee,month:M}=J;return K=="prev"&&F>=7&&(F-=7),Array.from(Array(W),(H,P)=>({day:String(P+1),type:K,year:ee,month:M})).slice(W-F)},E=(F,K)=>{const J=re.getMonthPreDay(+F[0],+F[1]);let W=Number(F[1])-1,ee=Number(F[0]);W<=0&&(W=12,ee+=1);const M=re.getMonthDays(String(F[0]),String(F[1])),H=re.getMonthDays(ee+"",W+""),P={year:F[0],month:F[1]},x={curData:F,title:a("monthTitle",{year:P.year,month:P.month}),monthData:[...Z(J,"prev",{month:String(W),year:String(ee)},H),...U(M,"curr",P)],cssHeight:0,cssScrollHeight:0};x.cssHeight=39+64*(x.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),x.cssScrollHeight=j,K=="next"?(!f.endData||!re.compareDate(`${f.endData[0]}-${f.endData[1]}-${re.getMonthDays(f.endData[0],f.endData[1])}`,`${F[0]}-${F[1]}-${F[2]}`))&&f.monthsData.push(x):!f.startData||!re.compareDate(`${F[0]}-${F[1]}-${F[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(x):f.unLoadPrev=!0},V=()=>{let F=e.startDate?e.startDate:re.getDay(0),K=e.endDate?e.endDate:re.getDay(365);f.propStartDate=F,f.propEndDate=K,f.startData=S(F),f.endData=S(K),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const J={year:Number(f.startData[0]),month:Number(f.startData[1])},W={year:Number(f.endData[0]),month:Number(f.endData[1])};let ee=W.month-J.month;W.year-J.year>0&&(ee=ee+12*(W.year-J.year)),ee<=0&&(ee=1),E(f.startData,"next");let M=1;do E(T("next"),"next");while(M++<ee);if(f.monthsNum=ee,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(F&&re.compareDate(f.currDate[0],F)&&f.currDate.splice(0,1,F),K&&re.compareDate(K,f.currDate[1])&&f.currDate.splice(1,1,K),f.defaultData=[...S(f.currDate[0]),...S(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let H=[],P={};f.currDate.forEach(x=>{F&&!re.compareDate(x,F)&&K&&!re.compareDate(K,x)&&(Object.hasOwnProperty.call(P,x)||(H.push(x),P[x]=x))}),f.currDate=[...H],f.defaultData=[...S(H[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[H,P,x]=S(f.currDate[0]);f.currDate=re.getWeekDate(H,P,x,e.firstDayOfWeek),F&&re.compareDate(f.currDate[0],F)&&f.currDate.splice(0,1,F),K&&re.compareDate(K,f.currDate[1])&&f.currDate.splice(1,1,K),f.defaultData=[...S(f.currDate[0]),...S(f.currDate[1])]}}else f.currDate&&(F&&re.compareDate(f.currDate,F)?f.currDate=F:K&&!re.compareDate(f.currDate,K)&&(f.currDate=K),f.defaultData=[...S(f.currDate)])};$e({scrollToDate:F=>{re.compareDate(F,f.propStartDate)?F=f.propStartDate:re.compareDate(F,f.propEndDate)||(F=f.propEndDate);let K=S(F);f.monthsData.forEach((J,W)=>{if(J.title==a("monthTitle",{year:K[0],month:K[1]})&&u.value){let ee=f.monthsData[W].cssScrollHeight-u.value.scrollTop;if(e.toDateAnimation){let M=0,H=setInterval(()=>{if(M++,u.value){let P=ee/10;u.value.scrollTop=u.value.scrollTop+P}M>=10&&(clearInterval(H),u.value&&(u.value.scrollTop=f.monthsData[W].cssScrollHeight))},40)}else u.value.scrollTop=f.monthsData[W].cssScrollHeight}})},initPosition:()=>{u?.value&&(u.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let F=0,K=0;f.defaultData.length>0&&f.monthsData.forEach((ee,M)=>{ee.title==a("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(F=M),(e.type=="range"||e.type=="week")&&ee.title==a("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(K=M)}),O(f.monthsNum,F),f.currentIndex=F,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),A({day:f.defaultData[5],type:"curr"},f.monthsData[K],!0)):e.type=="week"?A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(ee=>{let M=S(ee),H=f.currentIndex;f.monthsData.forEach((P,x)=>{P.title==a("monthTitle",{year:M[0],month:M[1]})&&(H=x)}),A({day:M[2],type:"curr"},f.monthsData[H],!0)}):A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let J=f.monthsData[f.monthsData.length-1],W=J.cssHeight+J.cssScrollHeight;Xe(()=>{u?.value&&d?.value&&c?.value&&(v.value=u.value.clientHeight,d.value.style.height=`${W}px`,u.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(W/(f.monthsNum+1))}});const O=(F,K)=>{F>=3?K>0&&K<F?f.defaultRange=[K-1,K+3]:K==0?f.defaultRange=[K,K+4]:K==F&&(f.defaultRange=[K-2,K+2]):f.defaultRange=[0,F+2],f.translateY=f.monthsData[f.defaultRange[0]].cssScrollHeight},q=(F,K)=>(e.type=="range"||e.type=="week")&&F.type=="curr"&&k(F,K)=="fox-calendar__day--active",X=(F,K)=>q(F,K)&&m(b(F,K)),te=(F,K)=>f.currDate.length>=2&&C(b(F,K))?q(F,K):!1,z=()=>{if(f.currDate.length>=2)return re.isEqual(f.currDate[0],f.currDate[1])},R=F=>{const K=`${F.year}-${F.month}-${Number(F.day)<10?"0"+F.day:F.day}`;return re.isEqual(K,re.date2Str(new Date))},_=F=>{if(f.monthsData.length<=1)return;const K=F.target.scrollTop;let J=Math.floor(K/f.avgHeight);if(J==0)K>=f.monthsData[J+1].cssScrollHeight&&(J+=1);else if(J>0&&J<f.monthsNum-1)K>=f.monthsData[J+1].cssScrollHeight&&(J+=1),K<f.monthsData[J].cssScrollHeight&&(J-=1);else{const W=Math.round(K+v.value);W<f.monthsData[J].cssScrollHeight+f.monthsData[J].cssHeight&&K>f.monthsData[J-1].cssScrollHeight&&(J-=1),J+1<=f.monthsNum&&W>=f.monthsData[J+1].cssScrollHeight+f.monthsData[J+1].cssHeight&&(J+=1),J>=1&&K<f.monthsData[J-1].cssScrollHeight&&(J-=1)}f.currentIndex!==J&&(f.currentIndex=J,O(f.monthsNum,J)),f.yearMonthTitle=f.monthsData[J].title},Y=()=>{f.chooseData.splice(0),f.monthsData.splice(0),V()};return V(),(0,t.watch)(()=>e.defaultValue,F=>{F&&e.poppable&&Y()}),{weeks:i,compConthsData:g,showTopBtn:w,topInfo:y,bottomInfo:h,rangeTip:z,mothsViewScroll:_,getClass:k,isStartTip:X,isEndTip:te,chooseDay:A,isCurrDay:R,confirm:B,months:u,...(0,t.toRefs)(f),...(0,t.toRefs)(e),...r,monthsPanel:d,weeksPanel:p,viewArea:c}}}),im={class:"fox-calendar__header"},sm={key:0,class:"fox-calendar__header-title"},um={key:1,class:"fox-calendar__header-slot"},cm={key:2,class:"fox-calendar__header-subtitle"},dm={class:"fox-calendar__weekdays",ref:"weeksPanel"},fm={class:"fox-calendar__panel",ref:"monthsPanel"},mm={class:"fox-calendar__month-title"},pm={class:"fox-calendar__days"},vm=["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,l,o,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",im,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",sm,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",um,[(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",fm,[(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",mm,(0,t.toDisplayString)(s.title),1),(0,t.createElementVNode)("view",pm,[(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,(u,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(u,s)]),onClick:p=>e.chooseDay(u,s)},[(0,t.createElementVNode)("view",hm,[(0,t.renderSlot)(e.$slots,"day",{date:u.type=="curr"?u:""},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(u.type=="curr"?u.day:""),1)])]),e.topInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",gm,[(0,t.renderSlot)(e.$slots,"top-info",{date:u.type=="curr"?u:""})])):(0,t.createCommentVNode)("",!0),e.bottomInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",ym,[(0,t.renderSlot)(e.$slots,"bottom-info",{date:u.type=="curr"?u:""})])):(0,t.createCommentVNode)("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(u)?((0,t.openBlock)(),(0,t.createElementBlock)("view",bm,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(u,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(u,s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",km,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,vm))),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=ne(rm,[["render",wm]]),Nm=(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)(me,et({...e},{poppable:!1}),n):n?.default?.()??null}}),Bm=Nm,Am=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),vn={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}=Q("calendar"),Tm=Vm({components:{Wrapper:Bm,CalendarPane:Cm},props:{...vn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:l}){const o=(0,t.computed)(()=>l.btn),a=(0,t.computed)(()=>l["top-info"]),r=(0,t.computed)(()=>l.day),s=(0,t.computed)(()=>l["bottom-info"]),i=(0,t.ref)(null),u=y=>{i.value?.scrollToDate(y)},d=()=>{i.value?.initPosition()};(0,t.watch)(()=>e.visible,y=>{y&&(0,t.nextTick)(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),$e({scrollToDate:u,initPosition:d});const p=()=>{n("update:visible",!1)},c=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{c()},update:p,close:c,select:y=>{n("select",y)},choose:y=>{c(),n("choose",y)},calendarRef:i,showTopBtn:o,topInfo:a,dayInfo:r,bottomInfo:s}}});function $m(e,n,l,o,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)(u=>[(0,t.renderSlot)(e.$slots,"day",{date:u.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(u=>[(0,t.renderSlot)(e.$slots,"top-info",{date:u.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(u=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:u.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 oo=ne(Tm,[["render",$m]]),Br={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}},wo=(e,n)=>{let l;return He(e)?l=e:typeof e=="string"&&be(e)>0?l=re.parser(e,n):l=new Date,l},mt=(e,n,l)=>(He(n)||(n=new Date),re.format(n,l)),pt=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,re.date2Str(e),re.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())];function Em(e,n,l,o,{CloseIcon:a,MarkIcon:r},s=!1){return{props:{...ve,...ge,...vn,...Br},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,u){const d=Te((0,t.computed)(()=>i.disabled)),p=Ve((0,t.computed)(()=>i.readonly)),{emitEvent:c}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return d.value}},i.prop??u.attrs.name),{toLocaleRefs:v}=(0,se.useFoxI18n)(n),g=v(i,["placeholder"]),w=(0,t.ref)(!1),y=(0,t.computed)(()=>i.type==="range"),h=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),f=()=>{h.startDate!==null&&(h.startDate=null,h.endDate=null,h.startArray=[],h.endArray=[])},S=(_,Y="one",F="YYYY-MM-DD")=>{if(Am(_)){f();return}if(y.value&&Array.isArray(_)&&_.length==2){let K,J;typeof _[0]=="string"?(K=wo(_[0],F),J=wo(_[1],F)):(K=_[0],J=_[1]);let W=pt(K),ee=pt(J);(h.startDate===null||h.startDate.getTime()!==K.getTime()||h.endDate?.getTime()!==J.getTime())&&(h.startDate=K,h.startArray=W,h.endDate=J,h.endArray=ee)}else{let K;typeof _=="string"?K=wo(_,F):K=_;let J=pt(K);(h.startDate===null||h.startDate.getTime()!==K.getTime())&&(h.startDate=K,h.startArray=J)}};S(i.modelValue,i.type,i.valueFormat),(0,t.watch)(()=>i.modelValue,_=>{S(_,i.type,i.valueFormat),c("setValue",_)});const m=(0,t.computed)(()=>{if(h.startDate===null)return"";if(y.value){let _=mt(i,h.startDate,i.format),Y=mt(i,h.endDate,i.format);return`${_} ${i.rangeSeparator} ${Y}`}else{let _=mt(i,h.startDate,i.format);return i.showWeek&&(_=`${_} ${h.startArray[4]}`),_}}),C=(0,t.computed)(()=>h.startDate===null?null:y.value?[re.date2Str(h.startDate),re.date2Str(h.endDate??new Date)]:re.date2Str(h.startDate)),N="fox-input-item",b=(0,t.computed)(()=>({[N]:!0,"is-disabled":d.value,"is-readonly":p.value})),k=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),B=(0,t.computed)(()=>{const _={};return k.value&&(_["text-align"]=k.value),_}),A=(0,t.ref)(!1),$=()=>{p.value||d.value||(A.value=!0)},T=_=>{A.value=_},U=_=>{if(_){if(y.value&&Array.isArray(_)){let Y=_[0],F=pe(Y[0]),K=pe(Y[1]),J=pe(Y[2]),W=new Date(F,K-1,J),ee=_[1];F=pe(ee[0]),K=pe(ee[1]),J=pe(ee[2]);let M=new Date(F,K-1,J);h.startDate=W,h.startArray=pt(W),h.endDate=M,h.endArray=pt(M),i.valueFormat?c("update:modelValue",[mt(i,W,i.valueFormat),mt(i,M,i.valueFormat)],{}):c("update:modelValue",[W,M],{})}else{let Y=_,F=pe(Y[0]),K=pe(Y[1]),J=pe(Y[2]),W=new Date(F,K-1,J);h.startDate=W,h.startArray=pt(W),i.valueFormat?c("update:modelValue",mt(i,W,i.valueFormat),{}):c("update:modelValue",W,{})}c("change",_,{})}},Z=_=>{let Y=_.target.value;w.value=!0,c("focus",Y,_)},E=_=>{setTimeout(()=>{w.value=!1},0);let Y=_.target.value;i.maxLength&&Y.length>Number(i.maxLength)&&(Y=Y.slice(0,Number(i.maxLength))),c("blur",Y,_)},V=(0,t.computed)(()=>({[`${N}__append`]:!0,"is-disabled":d.value,"is-readonly":p.value})),I=(0,t.computed)(()=>be(i.unit)>0),D=(0,t.computed)(()=>be(i.unit)>0&&!w.value),L=(0,t.computed)(()=>({hidden:!D.value})),O=_=>{f(),c("update:modelValue",null,_),c("change","",_),c("clear","")},q=(0,t.computed)(()=>i.clearable&&!d.value&&!p.value),X=(0,t.computed)(()=>{let _=be(m.value)>0;return i.clearable&&_&&w.value}),te=_=>{X.value?O(_):$()},z=(0,t.computed)(()=>X.value&&q.value?a:r),R=(0,t.computed)(()=>({action:!0}));return()=>{const _={class:b.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:g.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:$,onFocus:Z,onBlur:E};s&&(_.disabled=!0);const Y=[],F=(0,t.h)("input",_);Y.push(F);const K=[],J=(0,t.h)(z.value,{class:["action-icon"]}),W=(0,t.h)("view",{class:R.value,onClick:te},{default:()=>[J]});if(K.push(W),I.value){const G=(0,t.h)("view",{class:L.value},[i.unit]);K.push(G)}const ee=(0,t.h)("view",{class:V.value},{default:()=>K});Y.push(ee);const M={default:()=>Y};M.label=u.slots.default,M.prepend=u.slots.prepend,M.append=u.slots.append,M.fixedPreTip=u.slots.fixedPreTip,M.fixedTip=u.slots.fixedTip;const H=he(i,vn);H.visible=A.value,H["onUpdate:visible"]=T,H["default-value"]=C.value,H.onChoose=U;const P={};if(u.slots.btn){const G=u.slots.btn();P.btn=()=>G}u.slots.day&&(P.day=u.slots.day),u.slots.topInfo&&(P.topInfo=u.slots.topInfo),u.slots.bottomInfo&&(P.bottomInfo=u.slots.bottomInfo);const x=(0,t.h)(l,H,P);M.hide=()=>[x];const j={...et(i,vn,Br)};return i.prop&&(j.prop=`${i.prop}_item`),(0,t.h)(o,j,M)}}}}var{componentName:xm,create:Dm,scope:Im}=Q("calendar-item"),qm=Dm(Em(xm,Im,oo,Ce,{CloseIcon:oe.CircleClose,MarkIcon:oe.Date},!1)),Sl=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 Mm(e,{CheckNormal:n,Checked:l}){return{props:{...Pm},setup(o,{emit:a,slots:r}){const s=(0,t.inject)("parent",null),i=On(),u=(0,t.computed)(()=>s.label.value===o.label),d=(0,t.computed)(()=>s.position),p=()=>{const y=[];if(u.value){if(r.checkedIcon)return r.checkedIcon();{const h=de(o.iconSize),f=o.checkedIcon??i.radio.Checked??l;return y.push("fox-radio__icon"),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),(0,t.h)(f,{width:h,height:h,class:y})}}else{if(r.icon)return r.icon();{const h=de(o.iconSize),f=o.icon??i.radio.CheckNormal??n;return y.push("fox-radio__icon--unchecked"),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),(0,t.h)(f,{width:h,height:h,class:y})}}},c=()=>{const y=[`${e}__label`];return o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),(0,t.h)("view",{class:y},r.default?.())},v=()=>{const y=[`${e}__button`];return u.value&&y.push(`${e}__button--active`),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),(0,t.h)("view",{class:y},r.default?.())},g=()=>{u.value||o.disabled||o.readonly||s.updateValue(o.label)},w=d.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${o.shape} ${w?`${e}--reverse`:""}`,onClick:g},[o.shape=="button"?v():w?[c(),p()]:[p(),c()]])}}}var{componentName:_m,create:Lm}=Q("radio"),zm=Lm(Mm(_m,{CheckNormal:oe.CheckNormal,Checked:oe.CheckChecked})),lo=zm,{componentName:Ar,create:Om}=Q("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:l}=Et(),o=a=>l("update:modelValue",a);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:o}),(0,t.watch)(()=>e.modelValue,a=>l("change",a)),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Ar} ${Ar}--${e.direction}`,style:a},n.default?.())}}}),ao=Fm;function Vr(e,n,l,o="value"){for(let a=0;a<n.length;a++){let r=n[a];if(o==="text"){if(hn(e,r)===l)return a}else if(o==="item"){if(De(l,r))return a}else if(Ft(e,r)===l)return a}return-1}function hn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ft(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Rm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Km(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}var Um=class{proxy;constructor(e){this.proxy=e}async load(e,n,l){if(Array.isArray(n))return n;if(typeof n=="function")return await n(l);let o=nt(this.proxy,e);return o===null?(console.error(`${e} component not found api function`),[]):(xe(l)&&(0,t.isReactive)(l)&&(l=(0,t.toRaw)(l)),await o(n,l))}};function Hm(){return new Um((0,t.getCurrentInstance)().proxy)}function jm(e){return{text:e,value:e}}var Tr={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}},Ym={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 Xm(e,n,l,o,a){return{props:{...ve,...ge,...Tr,...Wm,...Ym},emits:["change","update:modelValue","setValue"],setup(r,s){const i=Ve((0,t.computed)(()=>r.readonly)),u=Te((0,t.computed)(()=>r.disabled)),d=Ae((0,t.computed)(()=>r.textAlign),"textAlign"),{emitEvent:p}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return u.value}},r.prop??s.attrs.name),c=Hm(),v=(0,t.ref)([]);(0,t.watch)([()=>r.source,()=>r.params],async([f,S])=>{if(f){const m=await c.load("radio",f,S);m.length>0?typeof m[0]=="string"?v.value=m.map(C=>jm(C)):v.value=m:v.value=[]}},{immediate:!0});let g=(0,t.ref)(-1);(0,t.watch)([()=>r.modelValue,()=>v.value],async([f,S])=>{g.value=Vr(r,S,f,r.valueType),p("setValue",f)},{deep:!0});const w=(0,t.computed)(()=>{if(!r.source)return r.modelValue;if(g.value===-1)return null;const f=v.value[g.value];return Ft(r,f)}),y=f=>{let S=null,m=null;if(v.value.length>0){let C=Vr(r,v.value,f,"value");g.value=C,C>=0&&(m=v.value[C],r.valueType==="text"?S=hn(r,m):r.valueType==="item"?S=m:S=Ft(r,m))}else S=f;p("update:modelValue",S),p("change",S,m)},h=()=>{let f=null,S=null;if(v.value.length>0&&g.value!==-1){let m=v.value[g.value];r.valueType==="text"?f=hn(r,m):r.valueType==="item"?f=m:f=Ft(r,m)}p("update:modelValue",f),p("change",f,S)};if($e({clear(){g.value!==-1&&(g.value=-1,h())}}),r.source){const f=()=>{const S=[],m=he(r,Tr);return v.value.forEach((C,N)=>{const b=Ft(r,C),k=Rm(r,C);let B={...m,label:b,disabled:k};const A=Km(r,C,N);B={...B,...A},u.value&&(B.disabled=!0),i.value&&(B.readonly=!0);const $={};if(s.slots.icon&&($.icon=s.slots.icon),s.slots.checkedIcon&&($.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const U=s.slots.text(C);$.default=()=>[U]}else{const U=hn(r,C);$.default=()=>U}let T=(0,t.h)(a,B,$);S.push(T)}),S};return()=>{const S=f(),m=(0,t.h)(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:w,"onUpdate:modelValue":y},{default:()=>S}),C={default:()=>m};C.label=s.slots.default,C.prepend=s.slots.prepend,C.append=s.slots.append,C.fixedPreTip=s.slots.fixedPreTip,C.fixedTip=s.slots.fixedTip;const N={...he(r,ge,ve)};return r.prop&&(N.prop=`${r.prop}_item`),(0,t.h)(l,N,C)}}else return()=>{const f=s.slots.options?.()??[];return(0,t.h)(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:w,"update:modelValue":y},{default:()=>f})}}}}var{componentName:Qm,create:Gm,scope:Zm}=Q("radio-item"),Jm=Gm(Xm(Qm,Zm,Ce,ao,lo)),wl=Jm,e0=(e,{CheckNormal:n,Checked:l,Indeterminate:o})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(a,{slots:r}){const{emitEvent:s}=Et(),i=On(),u=(0,t.inject)("parent",null),d=(0,t.reactive)({partialSelect:a.indeterminate});(0,t.watch)(()=>a.indeterminate,m=>{d.partialSelect=m});const p=(0,t.computed)(()=>!!u),c=(0,t.computed)(()=>p.value?u.value.value.includes(a.label):!!a.modelValue),v=(0,t.computed)(()=>p.value?u.position:a.textPosition);let g="";const w=(m,C)=>{g="click",s("update:modelValue",m),s("change",m,C)};(0,t.watch)(()=>a.modelValue,m=>{g=="click"?g="":s("change",m)});const y=()=>{const m=[];if(d.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const C=de(a.iconSize),N=a.indeterminateIcon??i.checkbox.Indeterminate??o;return m.push("fox-checkbox__icon--indeterminate"),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)(N,{width:C,height:C,class:m})}}else if(c.value){if(r.checkedIcon)return r.checkedIcon();{const C=de(a.iconSize),N=a.checkedIcon??i.checkbox.Checked??l;return m.push("fox-checkbox__icon"),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)(N,{width:C,height:C,class:m})}}else{if(r.icon)return r.icon();{const C=de(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:C,height:C,class:m})}}},h=()=>{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 c.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?.())},S=m=>{if(!(a.disabled||a.readonly)){if(c.value&&d.partialSelect){d.partialSelect=!1,w(c.value,r.default?.()[0].children);return}if(w(!c.value,r.default?.()[0].children),p.value){const C=u.value.value,N=u.max.value,{label:b}=a,k=C.indexOf(b);k>-1?C.splice(k,1):k<=-1&&(C.length<N||!N)&&C.push(b),u.updateValue(C)}}};return(0,t.onMounted)(()=>{p.value&&u.link((0,t.getCurrentInstance)())}),(0,t.onBeforeUnmount)(()=>{p.value&&u.unlink((0,t.getCurrentInstance)())}),()=>(0,t.h)("view",{class:`${e} ${e}--${a.shape} ${v.value==="left"?`${e}--reverse`:""}`,onClick:S},[a.shape=="button"?f():[y(),h()]])}}),{componentName:t0,create:n0}=Q("checkbox"),o0=n0(e0(t0,{CheckNormal:oe.CheckNormal,Checked:oe.Checked,Indeterminate:oe.CheckDisabled})),ro=o0,{create:l0,componentName:$r}=Q("checkbox-group"),a0=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:l}=Et(),o=(0,t.reactive)({children:[]}),a=d=>{d.proxy&&o.children.push(d.proxy)},r=d=>{d.proxy&&(o.children=o.children.filter(p=>p!==d.proxy))},s=d=>{l("update:modelValue",d),l("change",d)},i=d=>{const p=[];d&&o.children.forEach(c=>{c?.disabled||p.push(c?.label)}),l("update:modelValue",p)},u=()=>{l("update:modelValue",o.children.filter(d=>d?.disabled?!1:!e.modelValue.includes(d.label)).map(d=>d.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,d=>{l("change",d)}),$e({toggleAll:i,toggleReverse:u}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),(0,t.h)("view",{class:`${$r} ${$r}--${e.direction}`,style:d},n.default?.())}}}),io=a0;function Er(e,n,l,o="value"){for(let a=0;a<n.length;a++){let r=n[a];if(o==="text"){if(Ho(e,r)===l)return a}else if(o==="item"){if(De(l,r))return a}else if(gn(e,r)===l)return a}return-1}function Ho(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function gn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function r0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function i0(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}var s0=class{proxy;constructor(e){this.proxy=e}async load(e,n,l){if(Array.isArray(n))return n;if(typeof n=="function")return await n(l);let o=nt(this.proxy,e);return o===null?(console.error(`${e} component not found api function`),[]):(xe(l)&&(0,t.isReactive)(l)&&(l=(0,t.toRaw)(l)),await o(n,l))}};function u0(){return new s0((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}},xr={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},f0={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 m0(e,n,l,o,a){return{props:{...ve,...ge,...d0,...xr,...f0},emits:["change","update:modelValue","setValue"],setup(r,s){const i=Te((0,t.computed)(()=>r.disabled)),u=Ve((0,t.computed)(()=>r.readonly)),d=Ae((0,t.computed)(()=>r.textAlign),"textAlign"),{emitEvent:p}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return u.value},get disabled(){return i.value}},r.prop??s.attrs.name),c=u0(),v=(0,t.ref)([]);(0,t.watch)([()=>r.source,()=>r.params],async([f,S])=>{if(f){const m=await c.load("checkbox",f,S);m.length>0?typeof m[0]=="string"?v.value=m.map(C=>c0(C)):v.value=m:v.value=[]}},{immediate:!0});const g=(0,t.ref)([]);(0,t.watch)([()=>r.modelValue,()=>v.value],async([f,S])=>{const m=[];Array.isArray(f)&&f.forEach(C=>{let N=Er(r,S,C,r.valueType);N!==-1&&m.push(N)}),!De(m,g.value)&&(g.value=m,p("setValue",m))},{deep:!0});const w=(0,t.computed)(()=>{if(!r.source)return r.modelValue;let f=[];return g.value.forEach(S=>{let m=v.value[S];f.push(gn(r,m))}),f}),y=f=>{let S=[],m=[];if(v.value.length>0){const C=[];Array.isArray(f)&&f.forEach(N=>{let b=Er(r,v.value,N,"value");b!==-1&&C.push(b);const k=v.value[b];m.push(k),r.valueType==="text"?S.push(Ho(r,k)):r.valueType==="item"?S.push(k):S.push(gn(r,k))}),g.value=C}else S=f;p("update:modelValue",S),p("change",S,m)},h=(0,t.ref)();if($e({toggleAll:f=>{h.value.toggleAll(f)},toggleReverse:()=>{h.value.toggleReverse()}}),r.source){const f=()=>{const S=[],m=he(r,xr);return v.value.forEach((C,N)=>{const b=gn(r,C),k=r0(r,C);let B={...m,label:b,disabled:k};const A=i0(r,C,N);B={...B,...A},i.value&&(B.disabled=!0),u.value&&(B.readonly=!0);const $={};if(s.slots.icon&&($.icon=s.slots.icon),s.slots.checkedIcon&&($.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&($.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const U=s.slots.text(C);$.default=()=>[U]}else{const U=Ho(r,C);$.default=()=>U}let T=(0,t.h)(a,B,$);S.push(T)}),S};return()=>{const S=f(),m=(0,t.h)(o,{class:`${e}`,ref:h,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:w.value,"onUpdate:modelValue":y},{default:()=>S}),C={default:()=>m};C.label=s.slots.default,C.prepend=s.slots.prepend,C.append=s.slots.append,C.fixedPreTip=s.slots.fixedPreTip,C.fixedTip=s.slots.fixedTip;const N={...he(r,ge,ve)};return r.prop&&(N.prop=`${r.prop}_item`),(0,t.h)(l,N,C)}}else return()=>{const f=s.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:h,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:d.value,modelValue:w,"onUpdate:modelValue":y},{default:()=>f})}}}}var{componentName:p0,create:v0,scope:h0}=Q("checkbox-item"),g0=v0(m0(p0,h0,Ce,io,ro)),Cl=g0,jo={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}=Q("switch"),k0=b0({components:{Loading1:oe.Loading1},props:{...jo},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const l=(0,t.computed)(()=>e.modelValue===e.activeValue),o=(0,t.computed)(()=>{const i=y0;return{[i]:!0,[l.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-base`]:!0,"is-disabled":e.disabled}}),a=(0,t.computed)(()=>({backgroundColor:l.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disabled||e.loading)return;r="click";const u=l.value?e.inactiveValue:e.activeValue;n("update:modelValue",u),n("change",u,i)};return(0,t.watch)(()=>e.modelValue,i=>{r=="click"?r="":n("change",i)}),{classes:o,style:a,isActive:l,onClick:s}}}),S0={class:"fox-switch-button"};function w0(e,n,l,o,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 so=ne(k0,[["render",w0]]);function C0(e,n,l,o){return{props:{...ve,...ge,...jo},emits:["change","update:modelValue","setValue"],setup(a,r){const s=Te((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),d=e,p=Pe(a,"modelValue",null,u),c=v=>{p.value=v,u("update:modelValue",v,{}),u("change",v,{})};return()=>{const v={...he(a,jo),disabled:s.value||i.value,value:p.value,"onUpdate:modelValue":c},g=[],w=(0,t.h)(o,v);g.push(w);const y={default:()=>g};y.label=r.slots.default,y.fixedPreTip=r.slots.fixedPreTip,y.fixedTip=r.slots.fixedTip;const h={...he(a,ge,ve)};return a.prop&&(h.prop=`${a.prop}_item`),h["content-class"]=d,(0,t.h)(l,h,y)}}}}var{componentName:N0,create:B0,scope:A0}=Q("switch-item"),V0=B0(C0(N0,A0,Ce,so)),Nl=V0;function T0(e,n,l,o){return{props:{...ve,...ge,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(a,r){const s=Te((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Be({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),{toLocaleRefs:d}=(0,se.useFoxI18n)(n),p=d(a,["placeholder"]),c=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,U=>{c.value=U,u("change",U)});const v=(0,t.computed)(()=>({[`${e}`]:!0})),g=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&ue(c.value),"is-disabled":s.value,"is-readonly":i.value})),w=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),y=(0,t.computed)(()=>{const U={};return w.value&&(U["text-align"]=w.value),U}),h=(0,t.computed)(()=>!ue(a.modelValue)||r.slots.main?!0:!!ue(a.desc)),f=(0,t.computed)(()=>ue(c.value)?p.placeholder.value:c.value),S=(0,t.computed)(()=>!ue(a.desc)||r.slots.sub),m=(0,t.computed)(()=>({[`${e}__sub`]:!0})),C=(0,t.computed)(()=>{const U={};return w.value&&(U["text-align"]=w.value),U}),N=()=>{u("focus",c.value)},b=()=>{u("blur",c.value)},k=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),B=(0,t.computed)(()=>be(a.unit)>0),A=U=>{s.value==!0||i.value==!0||u("click")},$=(0,t.computed)(()=>a.icon??l),T=(0,t.computed)(()=>({action:!0}));return()=>{const U=[];if(typeof r.slots.content=="function"){const q=r.slots.content();U.push(q)}else{const q=[];if(h.value){const te={tabIndex:0,class:g.value,style:y.value,onFocus:N,onBlur:b};let z=null;r.slots.main?z=(0,t.h)("view",te,[r.slots.main(f.value)]):z=(0,t.h)("view",te,[f.value]),q.push(z)}if(S.value){const te={tabIndex:0,class:m.value,style:C.value,onFocus:N,onBlur:b};let z=null;r.slots.sub?z=(0,t.h)("view",te,[r.slots.sub(a.desc)]):z=(0,t.h)("view",te,[a.desc]),q.push(z)}const X=(0,t.h)("view",{class:v.value,onClick:A},q);U.push(X)}const Z=[],E=de(a.iconSize);let V=r.slots.icon;if(!V){const q={width:E,height:E,class:["action-icon"]};V=(0,t.h)($.value,q)}const I=(0,t.h)("view",{class:T.value,onClick:A},{default:()=>[V]});if(Z.push(I),B.value){const q=(0,t.h)("view",{},[a.unit]);Z.push(q)}const D=(0,t.h)("view",{class:k.value},{default:()=>Z});U.push(D);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 O={...he(a,ge,ve)};return a.prop&&(O.prop=`${a.prop}_item`),(0,t.h)(o,O,L)}}}}var{componentName:$0,create:E0,scope:x0}=Q("link-item"),D0=E0(T0($0,x0,oe.ArrowRight,Ce)),Bl=D0,Wo={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}=Q("rate"),P0=I0({props:{...Wo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:l}){const o=(0,t.ref)([]),a=(0,t.computed)(()=>({[q0]:!0})),r=g=>{n("update:modelValue",g),n("change",g)},s=(g,w)=>{if(e.disabled||e.readonly)return;let y=0;w===1&&e.modelValue===w||(y=w,e.allowHalf&&g==2&&(y-=.5)),r(y)},i=(g,w,y)=>{let h=0;for(let f=w.value.length-1;f>=0;f--){const S=w.value[f];if(g>S.offsetLeft){y?h=f+(g>S.offsetLeft+S.clientWidth/2?1:.5):h=f+1;break}}return h},u=ot(),d={onTouchStart(g){!e.touchable||e.readonly||u.start(g)},onTouchMove(g){e.touchable&&(u.move(g),u.isHorizontal()&&o.value&&(g.preventDefault(),r(i(u.moveX.value,o,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),c=(0,t.computed)(()=>e.customIcon??oe.StarFillN);return{classes:a,...d,onClick:s,toPxString:fe,renderIcon:(g,w)=>(0,t.h)(g,w),rateRefs:o,refRandomId:p,slots:l,customIcon:c}}}),M0=["id"],_0={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,l,o,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",_0,[((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,M0))),128))],34)}var At=ne(P0,[["render",O0]]);function F0(e,n,l,o){return{props:{...ve,...ge,...Wo},emits:["change","update:modelValue","setValue"],setup(a,r){const s=Te((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),d=e,p=Pe(a,"modelValue",null,u),c=v=>{p.value=v,u("update:modelValue",v,{}),u("change",v,{})};return()=>{const v={...he(a,Wo),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":c},g=[],w=(0,t.h)(o,v);g.push(w);const y={default:()=>g};if(r.slots.default){const f=r.slots.default();y.label=()=>f}const h=he(a,ge,ve);return a.prop&&(h.prop=`${a.prop}_item`),h["content-class"]=d,(0,t.h)(l,h,y)}}}}var{componentName:R0,create:K0,scope:U0}=Q("rate-item"),H0=K0(F0(R0,U0,Ce,At)),Al=H0,j0=/scroll|auto|overlay/i,Li=window;function W0(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Yo(e,n=Li){let l=e;for(;l&&l!==n&&W0(l);){const{overflowY:o}=window.getComputedStyle(l);if(j0.test(o))return l;l=l.parentNode}return n}function zi(e,n=Li){const l=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(l.value=Yo(e.value,n))}),l}var Oi=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Y0={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 X0(e,n,l){return{props:{...Y0},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:a,slots:r}){const{toLocaleRefs:s}=(0,se.useFoxI18n)(n),i=s(o,["pullText","loadText","noMoreText"]),u=(0,t.ref)(),d=zi(u),p=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=(0,t.computed)(()=>({[e]:!0})),v=S=>S?S.offsetTop+v(S.offsetParent):0,g=()=>{let S=0,m=0,C="down";if(d.value==window){const N=Oi();u.value&&(S=v(u.value)+u.value.offsetHeight-N-window.innerHeight),m=N}else{const{scrollHeight:N,clientHeight:b,scrollTop:k}=d.value;S=N-b-k,m=k}return p.beforeScrollTop>m?C="up":C="down",p.beforeScrollTop=m,a("scroll-change",m),S<=o.threshold&&C=="down"},w=()=>{Xe(()=>{if(!g()||!o.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,a("update:modelValue",!0),(0,t.nextTick)(()=>a("load-more"))})},y=()=>{d.value&&d.value.addEventListener("scroll",w,o.useCapture)},h=()=>{d.value&&d.value.removeEventListener("scroll",w,o.useCapture)};(0,t.onMounted)(()=>{y(),o.immediate&&w()}),(0,t.onUnmounted)(()=>{h()});const f=(0,t.ref)(!1);return(0,t.onActivated)(()=>{f.value&&(f.value=!1,y())}),(0,t.onDeactivated)(()=>{f.value=!0,h()}),(0,t.watch)(()=>o.modelValue,S=>{S||(p.isInfiniting=!1)}),()=>{const S=(0,t.h)("view",{class:"fox-infinite__container"},[r?.default?.()]),m=[];if(p.isInfiniting){let N=r?.loading?.()??null;if(!N){let k=r?.loadingIcon?.()??null;k||(k=(0,t.h)(l,{class:["fox-infinite__bottom-box__img"]}));const B=(0,t.h)("view",{class:"fox-infinite__bottom-box__text"},[i.loadText.value]);N=[k,B]}const b=(0,t.h)("view",{class:"fox-infinite__bottom-box"},N);m.push(b)}else if(!o.hasMore){let N=r?.finished?.()??null;N||(N=(0,t.h)("view",{class:"fox-infinite__bottom-tips"},[i.noMoreText.value]),m.push(N))}const C=(0,t.h)("view",{class:"fox-infinite__bottom"},m);return(0,t.h)("view",{class:c.value,ref:u},[S,C])}}}}var{componentName:Q0,create:G0,scope:Z0}=Q("infinite-loading"),J0=G0(X0(Q0,Z0,oe.Loading)),uo=J0,{componentName:ep,create:tp}=Q("button"),np=tp({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:l}){const{type:o,size:a,shape:r,disabled:s,loading:i,color:u,plain:d,block:p}=(0,t.toRefs)(e);return{handleClick:v=>{!i.value&&!s.value&&n("click",v)},classes:(0,t.computed)(()=>{const v=ep;return{[v]:!0,[`${v}--${o.value}`]:o.value,[`${v}--${a.value}`]:a.value,[`${v}--${r.value}`]:r.value,[`${v}--plain`]:d.value,[`${v}--block`]:p.value,[`${v}--disabled`]:s.value,[`${v}--loading`]:i.value}}),getStyle:(0,t.computed)(()=>{const v={};return u?.value&&(d.value?(v.color=u.value,v.background="#fff",u.value?.includes("gradient")||(v.borderColor=u.value)):(v.color="#fff",v.background=u.value)),v})}}}),op={class:"fox-button__wrap"};function lp(e,n,l,o,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",op,[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 Le=ne(np,[["render",lp]]),ap={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"}},rp=(e,n,l)=>({props:{...ap},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(o,{slots:a}){const{emitEvent:r}=Et(),{toLocaleRefs:s}=(0,se.useFoxI18n)(n),i=s(o,["placeholder"]),u=(0,t.reactive)({active:!1}),d=(0,t.computed)(()=>({background:o.background})),p=(0,t.computed)(()=>({background:o.inputBackground})),c=A=>{let $=A.target.value;o.maxLength&&$.length>Number(o.maxLength)&&($=$.slice(0,Number(o.maxLength))),r("update:modelValue",$,A),r("change",$,A)},v=(0,t.ref)({}),g=A=>{let $=A.target.value;u.active=!0,v.value=o.focusStyle,r("focus",$,A)},w=A=>{setTimeout(()=>{u.active=!1},0);let $=A.target.value;o.maxLength&&$.length>Number(o.maxLength)&&($=$.slice(0,Number(o.maxLength))),v.value={},r("blur",$,A)},y=A=>{r("update:modelValue","",A),r("change","",A),r("clear","")},h=(0,t.computed)(()=>String(o.modelValue).length>0),f=(0,t.computed)(()=>{const A={};return h.value||(A.display="none"),A}),S=A=>{o.autoblur&&k.value?.blur(),(typeof A.cancelable!="boolean"||A.cancelable)&&A.preventDefault(),r("search",o.modelValue)},m=A=>{r("keyup-input",A)},C=A=>{r("click-input",A)},N=A=>{r("click-left-icon",o.modelValue,A)},b=(0,t.computed)(()=>({textAlign:o.inputAlign})),k=(0,t.ref)(null);(0,t.onMounted)(()=>{o.autofocus&&k.value.focus()});const B=()=>{const A=[];if(a.leftin){const Z=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:N},[a.leftin()]);A.push(Z)}const $=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:k,style:b.value,type:o.inputType,maxlengt:o.maxLength,placeholder:i.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:C,onInput:c,onFocus:g,onBlur:w,onkeyup:m}),T=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:S},[$]);A.push(T);const U=[];if(o.clearable){const Z=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:y},[(0,t.h)(a?.clear?.()??o.clearIcon??l)]);U.push(Z)}if(a.rightin){const Z=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[a.rightin()]);U.push(Z)}if(U.length>0){const Z=(0,t.h)("view",{class:`${e}__input-inner-right`},U);A.push(Z)}return(0,t.h)("view",{class:[`${e}__search-input`,`${o.shape}`],style:{...p.value,...v.value}},A)};return()=>{const A=[];if(o.label){const T=(0,t.h)("span",{class:`${e}__search-label`},[o.label]);A.push(T)}if(a.leftout){const T=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[a.leftout()]);A.push(T)}const $=B();if(A.push($),a.rightout){const T=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[a.rightout()]);A.push(T)}return(0,t.h)("view",{class:`${e}`,style:d.value},A)}}}),{componentName:ip,create:sp,scope:up}=Q("searchbar"),cp=sp(rp(ip,up,oe.CircleClose)),co=cp,yn={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,l,o="value"){for(let a=0;a<n.length;a++){let r=n[a];if(o==="text"){if(bn(e,r)===l)return a}else if(o==="item"){if(De(l,r))return a}else if(Fi(e,r)===l)return a}return-1}function bn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Dr(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Fi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function fp(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function mp(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}var pp=class{proxy;constructor(e){this.proxy=e}async load(e,n,l,o,a,r,s){if(Array.isArray(n)){let u=n;typeof s=="function"&&(u=u.filter(s));let d=(l-1)*o,p=d+o;p>u.length&&(p=u.length);const c=u.slice(d,p);return{totalSize:u.length,page:c}}if(typeof n=="function")return await Reflect.apply(n,null,[l,o,a,r]);const i=nt(this.proxy,e);return i===null?(console.error(`${e} component not found api function`),{totalSize:0,page:[]}):(xe(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await Reflect.apply(i,null,[n,l,o,a]))}};function vp(){return new pp((0,t.getCurrentInstance)().proxy)}function hp(e,n,l,o,a,r,s,i,u,d,p){return{props:{...yn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,{slots:v}){const{emitEvent:g}=Et(),{toLocaleRefs:w}=(0,se.useFoxI18n)(n),y=w(c,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),h=vp(),f=(0,t.ref)([]),S=(0,t.ref)(0),m=(0,t.ref)(""),C=(0,t.shallowRef)(null),N=(0,t.computed)(()=>{const M={};return c.params&&Object.assign(M,c.params),ue(m.value)||(M[`${c.searchKey}`]=m.value),C.value&&Object.assign(M,C.value),M});let b=!0;const k=async(M,H,P)=>{try{if(A.value===!1)return;let x=null;ue(m.value)||(x=G=>{const le=bn(c,G);if(typeof le=="string"&&le.includes(m.value))return!0;const ae=Dr(c,G);return!!(typeof ae=="string"&&ae.includes(m.value))});const j=await h.load("actionsheet",M,H,P,N.value,b,x??void 0);b=!1,Array.isArray(j)?(f.value=j,S.value=1,A.value=!1):!Array.isArray(j.page)||j.page.length===0?(console.warn("[FoxUI] can not load more data"),A.value=!1):(Reflect.apply([].push,f.value,j.page),S.value=Math.ceil(f.value.length/c.pageSize),(j.totalSize&&f.value.length>=j.totalSize||P<j.page.length)&&(A.value=!1)),B.value=!1}catch(x){console.error("[FoxUI] ActionSheet load more data fail",x),A.value=!0,S.value=0,f.value=[]}setTimeout(()=>{g("loaded-data")},250)},B=(0,t.ref)(!1),A=(0,t.ref)(!0),$=async()=>{if(!c.source){B.value=!1;return}await k(c.source,S.value+1,c.pageSize)};let T=null;(0,t.watch)(m,(M,H)=>{T&&(clearTimeout(T),T=null),ue(M)&&!ue(H)&&(T=setTimeout(()=>{Z()},c.searchDelayTriggerClear))});const U=()=>{A.value=!0,S.value=0,f.value=[],c.source&&$()},Z=()=>{U()};(0,t.watch)([()=>c.source,()=>c.pageSize,()=>c.params],async([M,H,P])=>{c.source&&U()},{immediate:!0});const E=(0,t.computed)(()=>!c.multiple&&c.isAutoBackFill),V=(0,t.ref)([]);let I=null;const D=(0,t.ref)(c.visible);(0,t.watch)(()=>c.visible,M=>{D.value!==M&&(D.value=M),M?I=[...V.value]:I=null});const L=(M,H)=>{const P=[];return Array.isArray(M)||(M=[M]),M.forEach(x=>{let j=dp(c,H,x,c.valueType);j!==-1&&P.push(j)}),De(P,V.value)?!1:(V.value=P,!0)};(0,t.watch)([()=>c.modelValue,()=>f.value],([M,H],[P,x])=>{L(M,H)&&q(O())},{deep:!0});const O=()=>{const M=[],H=[],P=[];for(let le of V.value){const ae=f.value[le];H.push(ae);const ie=bn(c,ae);if(P.push(ie),c.valueType==="item")M.push(ae);else if(c.valueType==="text")M.push(ie);else{const ke=Fi(c,ae);M.push(ke)}}let x=null,j=null,G=null;return c.multiple?(x=M,j=P,G=H):(x=M[0]??null,j=P[0]??null,G=H[0]??null),{value:x,text:j,item:G}},q=M=>{g("update:modelValue",M.value),g("update:text",M.text),g("change",M.value,M.item,M.text)},X=()=>{I&&(V.value=I)},te=M=>{const H=V.value.indexOf(M);c.multiple?H===-1?V.value.push(M):V.value.splice(H,1):H===-1?V.value=[M]:V.value=[],(E.value||!c.poppable&&!c.showFooter)&&_()},z=M=>{D.value=M,g("update:visible",M)},R=()=>{const M=()=>{X(),z(!1)},H=c.beforeMethod??c.beforeClose;if(typeof H=="function"){const P=H("close");St(P)?P.then(x=>{x!==!1&&M()}).catch(()=>{M()}):P!==!1&&M()}else M()},_=()=>{const M=O(),H=()=>{q(M),z(!1)},P=c.beforeMethod??c.beforeClose;if(typeof P=="function"){const x=P("confirm",M.value,M.item,M.text);St(x)?x.then(j=>{j!==!1&&H()}).catch(()=>{H()}):x!==!1&&H()}else H()},Y=()=>{let M=y.title.value??"";return v.title&&(M=v.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[M]),(0,t.h)(u,{class:["fox-actionsheet__header-icon"],onClick:R})])},F=()=>{let M=null;return v.search?M=v.search():M=(0,t.h)(r,{onSearch:U,placeholder:y.seachPlaceholder.value,disabled:c.disabled,modelValue:m.value,"onUpdate:modelValue":H=>{m.value=H}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[M])},K=(M,H,P,x,j)=>{if(v.optionLabel)return v.optionLabel({text:M,checked:H,disabled:P,subText:x,item:j});const G=[],le=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[M]);if(G.push(le),x){const ae=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[x]);G.push(ae)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},G)},J=(M,H,P,x)=>v.optionIcon?v.optionIcon({checked:M,disabled:H,iconSize:P,item:x}):M?v.checkedIcon?v.checkedIcon({disabled:H,item:x}):(0,t.h)(c.checkedIcon??i,{width:P,height:P,class:["fox-actionsheet__list-item-icon"]}):v.icon?v.icon({disabled:H,item:x}):(0,t.h)(c.icon??s,{width:P,height:P,class:["fox-actionsheet__list-item-icon"]}),W=()=>{const M=[];for(let H=0;H<f.value.length;H++){const P=f.value[H],x=bn(c,P),j=Dr(c,P),G=["fox-actionsheet__list-item"],le={};let ae=fp(c,P),ie=c.iconSize?de(c.iconSize):null;const ke=mp(c,P,H);ke&&(ae=ae||ke.disabled,ke.class&&G.push(ke.class),ke.style&&Object.assign(le,ke.style)),ae=!!(c.disabled||ae);const ft=V.value.includes(H);ae&&G.push("is-disabled"),ft&&G.push("is-checked");const lt={class:G,style:le,key:`${H}`,onClick:()=>{ae||te(H)}};let Ye=[];if(v.option)Ye.push(v.option({item:P,checked:ft,disabled:ae}));else{const Xi=K(x,ft,ae,j,P);Ye.push(Xi);const Qi=J(ft,ae,ie,P);Ye.push(Qi),c.textPosition==="right"&&Ye.reverse()}const po=(0,t.h)("view",lt,Ye);M.push(po)}return M},ee=()=>{let M=[];if(v.buttons)M=v.buttons();else{const H=(0,t.h)(a,{type:"primary",block:"block",onClick:_,disabled:c.disabled},{default:()=>y.confirmText.value});M.push(H)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[M])};return $e({search:async(M=null,H=!0)=>{C.value=M&&(0,t.toRaw)(M),(0,t.triggerRef)(C),H&&(A.value=!0,S.value=0,f.value=[]),(0,t.nextTick)(()=>{$()})},clear:()=>{A.value=!0,S.value=0,f.value=[]},confirm:()=>{_()},cancel:()=>{R()}}),()=>{const M=[];if(c.showHeader){const ae=Y();M.push(ae)}if(c.showSearchbar){const ae=F();M.push(ae)}let H=null;if(v.content)H=v.content();else{const ae=W();H=(0,t.h)(o,{hasMore:A.value,loadText:y.loadText.value,noMoreText:y.noMoreText.value,modelValue:B.value,"onUpdate:modelValue":ie=>{B.value=ie},onLoadMore:$},{default:()=>ae})}const P={};c.optionsHeight&&(P.height=c.optionsHeight);const x={"fox-actionsheet__list":!0};c.poppable||(x["fox-actionsheet__list--inner"]=!0);const j=(0,t.h)("view",{class:x,style:P},[H]);if(M.push(j),c.showFooter&&!E.value){const ae=ee();M.push(ae)}const G=(0,t.h)("view",{class:"fox-actionsheet"},M);if(!c.poppable)return G;const le=["fox-actionsheet__popup"];return c.popClass&&le.push(c.popClass),(0,t.h)(l,{popClass:le.join(" "),visible:D.value,closeable:!1,"onUpdate:visible":z,position:c.position,round:"round",onClickOverlay:R,closeOnClickOverlay:c.closeOnClickOverlay},{default:()=>G})}}}}var{componentName:gp,create:yp,scope:bp}=Q("actionsheet-pane"),kp=yp(hp(gp,bp,me,uo,Le,co,oe.CheckNormal,oe.Checked,oe.Close,oe.Search2,!1)),fo=kp,Ir={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,l,o,a,r,s){return{props:{...ve,...ge,...Ir,...yn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,u){const d=Te((0,t.computed)(()=>i.disabled)),p=Ve((0,t.computed)(()=>i.readonly)),{emitEvent:c}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return d.value}},i.prop??u.attrs.name),{toLocaleRefs:v}=(0,se.useFoxI18n)(n),g=v(i,["placeholder"]),w=(0,t.ref)(!1),y=Pe(i,"modelValue",null,c),h=(0,t.ref)(""),f=(0,t.computed)(()=>Array.isArray(h.value)?h.value.join(i.separator):h.value),S="fox-input-item",m=(0,t.computed)(()=>({[S]:!0,"is-disabled":d.value,"is-readonly":p.value})),C=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),N=(0,t.computed)(()=>{const _={};return C.value&&(_["text-align"]=C.value),_}),b=(0,t.ref)(!1),k=()=>{b.value=!0},B=_=>{b.value=_},A=_=>{y.value=_,c("update:modelValue",_)},$=(_,Y)=>{c("change",_,Y)},T=_=>{let Y=_.target.value;w.value=!0,c("focus",Y,_)},U=_=>{setTimeout(()=>{w.value=!1},0);let Y=_.target.value;i.maxLength&&Y.length>Number(i.maxLength)&&(Y=Y.slice(0,Number(i.maxLength))),c("blur",Y,_)},Z=_=>{h.value=_,c("update:text",_)},E=(0,t.computed)(()=>({[`${S}__append`]:!0,"is-disabled":d.value,"is-readonly":p.value})),V=(0,t.computed)(()=>be(i.unit)>0),I=(0,t.computed)(()=>be(i.unit)>0&&!w.value),D=(0,t.computed)(()=>({hidden:!I.value})),L=_=>{y.value="",c("update:modelValue","",_),c("change","",_),c("clear","")},O=(0,t.computed)(()=>i.clearable&&!d.value&&!p.value),q=(0,t.computed)(()=>be(y.value)>0&&w.value),X=_=>{q.value?L(_):k()},te=(0,t.computed)(()=>q.value&&O.value?o:a),z=(0,t.computed)(()=>({action:!0})),R=(0,t.ref)(null);return $e({search:_=>{R.value&&R.value.search(_)},clear:()=>{R.value&&R.value.clear},confirm:_=>{R.value&&R.value.confirm()},cancel:()=>{R.value&&R.value.cancel()}}),()=>{const _={class:m.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:g.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:k,onFocus:T,onBlur:U};s&&(_.disabled=!0);const Y=[],F=(0,t.h)("input",_);Y.push(F);const K=[],J=(0,t.h)(te.value,{class:["action-icon"]}),W=(0,t.h)("view",{class:z.value,onClick:X},{default:()=>[J]});if(K.push(W),V.value){const j=(0,t.h)("view",{class:D.value},[i.unit]);K.push(j)}const ee=(0,t.h)("view",{class:E.value},{default:()=>K});Y.push(ee);const M={default:()=>Y};M.label=u.slots.default,M.prepend=u.slots.prepend,M.append=u.slots.append,M.fixedPreTip=u.slots.fixedPreTip,M.fixedTip=u.slots.fixedTip;const H=he(i,yn);H.ref=R,H.class=i.actionsheetProps,H.disabled=d.value||p.value,H.visible=b.value,H["onUpdate:visible"]=B,H.modelValue=y.value,H["onUpdate:modelValue"]=A,H.text=h.value,H["onUpdate:text"]=Z,H.onChange=$,H.poppable=!0,H["text-position"]=i.textPosition;const P=(0,t.h)(r,H,{title:u.slots.title,search:u.slots.search,option:u.slots.option,optionLabel:u.slots.optionLabel,optionIcon:u.slots.optionIcon,buttons:u.slots.buttons});M.hide=()=>[P];const x={...et(i,Ir,yn)};return i.prop&&(x.prop=`${i.prop}_item`),(0,t.h)(l,x,M)}}}}var{componentName:wp,create:Cp,scope:Np}=Q("actionsheet-item"),Bp=Cp(Sp(wp,Np,Ce,oe.CircleClose,oe.ArrowRight,fo)),Vl=Bp,Xo={modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{componentName:Ap,create:Vp}=Q("input-number"),Tp=Vp({components:{Minus:oe.Minus,Plus:oe.Plus},props:{...Xo},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const l=(0,t.computed)(()=>{const g=Ap;return{[g]:!0,[`${g}--disabled`]:e.disabled}}),o=g=>Number(g).toFixed(Number(e.decimalPlaces)),a=g=>{const w=g.target;n("update:modelValue",w.valueAsNumber,g)},r=(g,w)=>{let y=o(g);n("update:modelValue",y,w),n("change",y,w)},s=(g=Number(e.modelValue))=>g<Number(e.max)&&!e.disabled,i=(g=Number(e.modelValue))=>g>Number(e.min)&&!e.disabled,u=g=>{n("reduce",g),i()?r(Number(e.modelValue)-Number(e.step),g):n("overlimit",g,"reduce")},d=g=>{n("add",g),s()?r(Number(e.modelValue)+Number(e.step),g):n("overlimit",g,"add")},p=g=>{e.disabled||e.readonly||n("focus",g)},c=g=>{if(e.disabled||e.readonly)return;let w=g.target.valueAsNumber;w<Number(e.min)?w=Number(e.min):w>Number(e.max)&&(w=Number(e.max)),r(w,g),n("blur",g)},v=g=>{let w=Number(g);return w<Number(e.min)?w=Number(e.min):w>Number(e.max)&&(w=Number(e.max)),w};return(0,t.watch)(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const g=v(e.modelValue);g!==Number(e.modelValue)&&r(g,{})}),{classes:l,change:a,blur:c,focus:p,add:d,addAllow:s,reduce:u,reduceAllow:i,toPxString:fe}}}),$p=["min","max","disabled","readonly","value"];function Ep(e,n,l,o,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]=(...u)=>e.reduce&&e.reduce(...u))},[(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]=(...u)=>e.change&&e.change(...u)),onBlur:n[2]||(n[2]=(...u)=>e.blur&&e.blur(...u)),onFocus:n[3]||(n[3]=(...u)=>e.focus&&e.focus(...u))},null,44,$p),(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]=(...u)=>e.add&&e.add(...u))},[(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 Ze=ne(Tp,[["render",Ep]]);function xp(e,n,l,o){return{props:{...ve,...ge,...Xo},emits:["change","update:modelValue","setValue","add","reduce"],setup(a,r){const s=Te((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=(0,t.computed)(()=>{const w=[`${e}`];return a.textAlign==="left"?w.push("is-left"):a.textAlign==="center"?w.push("is-center"):a.textAlign==="right"&&w.push("is-right"),w.join(" ")}),p=Pe(a,"modelValue",null,u),c=w=>{p.value=w,u("update:modelValue",w,{}),u("change",w,{})},v=w=>{u("add",w)},g=w=>{u("reduce",w)};return()=>{const w={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},y=he(a,Xo),h=(0,t.h)(o,{...r.attrs,...y,disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":c,onAdd:v,onReduce:g},w),f=[];f.push(h);const S={default:()=>f};S.label=r.slots.default,S.fixedPreTip=r.slots.fixedPreTip,S.fixedTip=r.slots.fixedTip;const m={...he(a,ge,ve)};return a.prop&&(m.prop=`${a.prop}_item`),m["content-class"]=d.value,(0,t.h)(l,m,S)}}}}var{componentName:Dp,create:Ip,scope:qp}=Q("input-number-item"),Pp=Ip(xp(Dp,qp,Ce,Ze)),Tl=Pp;function Mp(e,n,l,o){return{props:{...Fo,...Ro,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,u=(0,t.computed)(()=>{const y=[`${i}`];return a.direction==="vertical"?y.push("vertical-tabbar"):y.push("horizontal-tabbar"),y}),d=(0,t.computed)(()=>{const y={};if(a.width){const h=fe(a.width);h&&(y.width=h)}if(a.height){const h=fe(a.height);h&&(y.height=h)}return y}),p=(0,t.computed)(()=>[`${i}__bar`]),c=(0,t.computed)(()=>[`${i}__container`]),v=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,y=>{v.value!==y&&(v.value=y)});const g=y=>{r("change",y)},w=y=>{v.value!==y&&(v.value=y,r("update:modelValue",y))};return()=>{const{getChildren:y}=Ai(s.default),h=y(),f=[];if(Array.isArray(a.data))f.push(...a.data);else for(let B=0;B<h.length;B++){const A=h[B].props??{},$={text:A.label??"",value:A["pane-key"]??A.paneKey??""};f.push($)}const S={};for(let B in s)B!=="default"&&(S[B]=s[B]);const m=he(a,Fo);Object.assign(m,{data:f,class:p.value,modelValue:v.value,direction:a.direction,onChange:g,"onUpdate:modelValue":w});const C=(0,t.h)(l,m,S),N={default:()=>h},b=he(a,Ro);Object.assign(b,{class:c.value,modelValue:v.value,onChange:g,"onUpdate:modelValue":w});const k=(0,t.h)(o,b,N);return(0,t.h)("view",{class:u.value,style:d.value},[C,k])}}}}var{create:_p,componentName:Lp,scope:zp}=Q("tabs-frame"),Op=_p(Mp(Lp,zp,rn,sn)),$l=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 qr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Pr(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 Co(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Mr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function _r(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function No(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}var Up=class{proxy;constructor(e){this.proxy=e}async load(e,n,l){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[l]);const o=nt(this.proxy,e);return o===null?(console.error(`${e} component not found api function`),[]):(xe(l)&&(0,t.isReactive)(l)&&(l=(0,t.toRaw)(l)),await Reflect.apply(o,null,[n,l]))}};function Hp(){return new Up((0,t.getCurrentInstance)().proxy)}function jp(e,n,l,o){return{props:{...Fp},emits:["update:modelValue","change","loaded-data","click"],setup(a,{slots:r,emit:s}){const i=e,u=Hp(),d=(0,t.ref)([]),p=(0,t.computed)(()=>d.value.filter(z=>Kp(a,z)!==!1)),c=(0,t.ref)(-1),v=()=>{const z=a.modelValue,R=p.value.findIndex(_=>qr(a,_)===z);c.value!==R&&(c.value=R,a.scroll&&X(R,!1))};(0,t.watch)([()=>a.modelValue,p],()=>{v()});const g=z=>c.value===z,w=z=>{if(z<0&&z>=p.value.length)return!1;const R=p.value[z],_=(No(a,R,z)??{}).status??Co(a,R);return g(z)||_},y=(0,t.computed)(()=>{const z={[i]:!0};return a.mode?z[`is-${a.mode}`]=!0:a.direction&&(z[`is-${a.direction}`]=!0),a.scroll&&(z["is-scroll"]=!0),z}),h=(0,t.computed)(()=>({})),f=(z,R,_,Y,F)=>{const K={[`${i}__step`]:!0};return F&&(K[`${F}`]=!0),K[`${S.value}`]=!0,Y&&(K["is-doit"]=!0),z===c.value?K["is-active"]=!0:R==="done"?K["is-done"]=!0:R==="error"?K["is-error"]=!0:R==="half"?K["is-half"]=!0:_?K["is-disabled"]=!0:K["is-normal"]=!0,K},S=(0,t.computed)(()=>{let z=a.align;if(!z){if(a.mode==="simple")return"start";a.direction==="vertical"?z="start":z="center"}return z}),m=(z,R={})=>{const _={...R};if(S.value==="start"&&z===p.value.length-1)_.flex="0 0 auto";else if(a.step){const Y=typeof a.step=="number"||Dn(a.step)?fe(a.step):a.step;a.direction==="vertical"?_.height=Y:_.width=Y}else _.flex="1 1 100%";return _},C=(z,R)=>{let _={};if(R<p.value.length-1){const Y=R+1;w(R)&&w(Y)?a.direction==="vertical"?_.height="100%":_.width="100%":_.opacity="0"}return _},N=z=>p.value.length-1===z,b=(z,R)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&R>c.value||c.value===R)return;const _=c.value,Y=R;c.value=R,a.scroll&&X(R,!1);const F=qr(a,z);s("update:modelValue",F),s("change",F,{fromIndex:_,currentIndex:Y,item:z,items:p.value,clickNavigatePolicy:a.clickNavigatePolicy})},k=(0,t.ref)(!0),B=async(z,R)=>{try{const _=await u.load("stesbar",z,R);Array.isArray(_)&&(d.value=_),k.value=!1}catch(_){console.error("[FoxUI] Load StepsBar Data Fail",_),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};(0,t.watch)([()=>a.data,()=>a.params],async([z,R])=>{z&&B(z,R)},{immediate:!0});const A=(z,R,_,Y,F,K)=>{const J=[];let W=null;if(!K)if(r.icon)W=r.icon({item:z,index:R,status:Y});else if(Y==="done"){const ee={};a.iconSize&&(ee.width=a.iconSize,ee.height=a.iconSize),W=(0,t.h)(a.icon??l,ee)}else W=(0,t.h)("span",{},[_??`${R+1}`]);return W&&J.push(W),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{s("click",{item:z,index:R}),!F&&b(z,R)}},J)},$=(z,R,_)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:C(z,R)})]),T=()=>{let z=null;if(r.markIcon)z=r.markIcon();else{const R={};a.iconSize&&(R.width=a.markIconSize,R.height=a.markIconSize),z=(0,t.h)(a.markIcon??o,R)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[z])},U=(z,R,_,Y,F,K)=>{const J=[];if(!N(R)){const ee=$(z,R,Y);J.push(ee)}const W=A(z,R,_,Y,F,K);return J.push(W),(0,t.h)("view",{class:"fox-steps-bar__head"},J)},Z=(z,R,_,Y)=>{let F=null;return r.main?F=r.main({item:z,index:R,status:_}):F=Rp(a,z),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{s("click",{item:z,index:R}),!Y&&b(z,R)}},[F])},E=(z,R,_)=>{let Y=null;return r.sub?(Y=r.sub({item:z,index:R,status:_}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[Y])):null},V=(z,R)=>{const _=No(a,z,R)??{},Y=_.status??Co(a,z);let F=Pr(a,z);_.disabled===!0&&(F=!0),a.disabled===!0&&(F=!0);let K=Mr(a,z);_.doit===!0&&(K=!0);const J=_.label??_r(a,z),W=[],ee=A(z,R,J,Y,F,K);ee&&W.push(ee);const M=Z(z,R,Y,F);if(M&&W.push(M),!N(R)){const j=$(z,R,Y);j&&W.push(j)}const H=(0,t.h)("view",{class:"fox-steps-bar__head"},W),P=_.class,x=_.style??{};return(0,t.h)("view",{ref:q(R),class:f(R,Y,F,K,P),style:m(R,x)},[H])},I=(z,R)=>{const _=No(a,z,R)??{},Y=_.status??Co(a,z);let F=Pr(a,z);_.disabled===!0&&(F=!0),a.disabled===!0&&(F=!0);let K=Mr(a,z);_.doit===!0&&(K=!0);const J=_.label??_r(a,z),W=[],ee=a.layout;for(let P of ee)if(P==="head"){const x=U(z,R,J,Y,F,K);W.push(x)}else if(P==="main"){const x=Z(z,R,Y,F);W.push(x)}else if(P==="sub"){const x=E(z,R,Y);W.push(x)}else if(P==="mark"){const x=T();W.push(x)}const M=_.class,H=_.style??{};return(0,t.h)("view",{ref:q(R),class:f(R,Y,F,K,M),style:m(R,H)},W)},D=(0,t.ref)(),L=(0,t.ref)([]),O=(z,R)=>{L.value[R]=z},q=z=>R=>{O(R,z)},X=(z,R)=>{const _=D.value,Y=L.value;if(!_||!Y||!Y[z])return;const F=Y[z];let K=0;a.direction==="vertical"?K=F.offsetTop-(_.offsetHeight-F.offsetHeight)/2:K=F.offsetLeft-(_.offsetWidth-F.offsetWidth)/2,te(_,K,R?0:.3,a.direction)},te=(z,R,_,Y)=>{let F=0;const K=Y==="horizontal"?z.scrollLeft:z.scrollTop,J=_===0?1:Math.round(_*1e3/16);function W(){Y==="horizontal"?z.scrollLeft+=(R-K)/J:z.scrollTop+=(R-K)/J,++F<J&&Ke(W)}W()};return()=>{let z=[];if(a.mode==="simple")for(let _=0;_<p.value.length;_++){const Y=p.value[_],F=V(Y,_);z.push(F)}else for(let _=0;_<p.value.length;_++){const Y=p.value[_],F=I(Y,_);z.push(F)}const R={ref:D,class:y.value,style:h.value};return z.length===0&&typeof r.default=="function"&&(z=r.default()),(0,t.h)("view",R,z)}}}}var{componentName:Wp,create:Yp,scope:Xp}=Q("steps-bar"),Qp=Yp(jp(Wp,Xp,oe.Checklist,oe.ArrowRight)),El=Qp;function Gp(e){e.stopPropagation()}var Zp=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=Zn()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=Jn(),l=(o,a,r,s)=>{this.updateMove({x:o,y:a})};this.touchstart=o=>{this.moving||(n.start(o),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=o=>{this.moving&&(n.move(o),Gp(o),l(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{l(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(o=>{this.touchstart&&o.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 Jp(e,n){return new Zp(e,n)}var ev={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]}},tv=(e,n,l,o=!1)=>({props:{...ev},emits:["click"],setup(a,{slots:r,emit:s}){let i=-1,u=-1;const d=(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}),c=N=>typeof N=="string"&&!Dn(N)?N:`${N}px`,v=(0,t.computed)(()=>{const N={};return ue(d.top)||(N.top=c(d.top)),ue(d.right)||(N.right=c(d.right)),ue(d.bottom)||(N.bottom=c(d.bottom)),ue(d.left)||(N.left=c(d.left)),ue(a.width)||(N.width=c(a.width)),ue(a.height)||(N.height=c(a.height)),ue(a.color)||(N.color=a.color),ue(a.background)||(N.background=a.background),ue(a.borderRadius)||(N["border-radius"]=a.borderRadius),ue(a.zIndex)||(N["z-index"]=a.zIndex),N}),g=(0,t.computed)(()=>({[`${e}__icon`]:!0})),w=()=>{s("click")},y=(0,t.ref)(null),h=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},f={x:0,y:0},C=Jp(N=>{if(!y.value)return;const b=y.value;h(),d.left=b.offsetLeft,d.top=b.offsetTop,b.style.left=`${d.left}px`,b.style.top=`${d.top}px`,b.style.right=null,b.style.bottom=null,f.x=d.left,f.y=d.top,d.width=b.offsetWidth,d.height=b.offsetHeight,i=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight},N=>{if(!y.value)return;const b=y.value;h();let k=f.x+N.x;k<0&&(k=0),k>i-d.width&&(k=i-d.width);let B=f.y+N.y;B<0&&(B=0),B>u-d.height&&(B=u-d.height),d.left=k,d.top=B,b.style.left=`${k}px`,b.style.top=`${B}px`});return(0,t.onMounted)(()=>{if(a.draggable&&y.value){const N=[y.value];C.open(N)}}),(0,t.onBeforeUnmount)(()=>{a.draggable&&y.value&&C.close()}),()=>{let N=[];const b=typeof r.default=="function"?r.default():[];if(b&&b.length>0)N=b;else{const k=(0,t.h)(l,{class:g.value});N.push(k)}return(0,t.h)("view",{ref:k=>{y.value=k},class:p.value,style:v.value,onClick:w},N)}}}),{componentName:nv,create:ov,scope:lv}=Q("floating-button"),av=ov(tv(nv,lv,oe.Uploader,!1)),xl=av,rv={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 iv(e,n,l){return{props:{...rv},emits:["click","update:modelValue"],setup(o,{emit:a,slots:r}){const{toLocaleRefs:s}=(0,se.useFoxI18n)(n),i=s(o,["collapseText","expandText"]),u=(0,t.computed)(()=>{const w={[`${e}`]:!0};return o.disabled?w[`${e}--disabled`]=!0:w[`${e}--${o.type}`]=!0,w}),d=Pe(o,"modelValue"),p=(0,t.computed)(()=>d.value?i.expandText.value??"":i.collapseText.value??""),c=(0,t.computed)(()=>({[`${e}__text`]:!0})),v=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),g=()=>{a("update:modelValue",!d.value)};return()=>{const w=[];if(p.value){const f=(0,t.h)("span",{class:c.value},[p.value]);w.push(f)}const y={class:v.value},h=(r.icon&&r.icon())??(o.icon&&(0,t.h)(o.icon))??(0,t.h)(l);if(h){const f=(0,t.h)("view",y,[h]);w.push(f)}return o.textPosition==="right"&&w.reverse(),(0,t.h)("view",{class:u.value,onClick:g},w)}}}}var{componentName:sv,create:uv,scope:cv}=Q("more-button"),dv=uv(iv(sv,cv,oe.RectUp)),Dl=dv,fv={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}},mv=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function pv(e,n,l){return{props:{...fv},emits:["update:visible"],setup(o,{attrs:a,slots:r,emit:s}){const{toLocaleRefs:i}=(0,se.useFoxI18n)(n),u=i(o,["confirmText","cancelText"]),d=e,p=(0,t.ref)(o.visible),c=N=>{p.value=N,s("update:visible",N)};(0,t.watch)(()=>o.visible,N=>{p.value!==N&&(p.value=N)});const v=N=>{if(typeof o.unmount=="function")try{o.unmount()}catch(b){console.error(b)}if(typeof o.callback=="function")try{o.callback(N)}catch(b){console.error(b)}},g=()=>{v("confirm")},w=()=>{v("cancel")},y=()=>{o.closeOnClickOverlay!==!1&&v("close")},h=(N,b)=>mv(N)?(b.src=N,(0,t.h)("img",b)):typeof N=="string"?(Array.isArray(b.class)?b.class.push(N):b.class&&typeof b.class=="object"?b[`${N}`]=!0:typeof b.class=="string"?b.class=`${b.class}, ${N}`:b.class=N,(0,t.h)(o.tag,b)):(0,t.h)(N,b),f=()=>{const N=[];if(o.icon){const b={class:[`${d}__header-icon`]},k=h(o.icon,b);N.push(k)}if(o.title){const b=(0,t.h)("view",{class:`${d}__header-title`},[o.title]);N.push(b)}if(o.showClose&&o.closeIcon){const b={class:[`${d}__header-close-icon`],onClick:y},k=h(o.closeIcon,b);N.push(k)}return(0,t.h)("view",{class:[`${d}__header`]},N)},S=(N,b)=>{const k=[];if(b){const B=(0,t.h)("view",{class:`${d}__group-title`},[b]);k.push(B)}if(N){const B=[];Array.isArray(N)||(N=[N]);for(let A of N){const $=(0,t.h)("view",{class:`${d}__group-row`,innerHTML:A});B.push($)}if(B.length>0){const A=(0,t.h)("view",{class:`${d}__group-rows`},B);k.push(A)}}return k.length===0?null:(0,t.h)("view",{class:`${d}__group`},k)},m=()=>{const N=[];if(typeof o.message=="string")N.push(o.message);else if(Array.isArray(o.message))for(let b of o.message)if(typeof b=="string"){const k=S(b);N.push(k)}else{const k=S(b.content,b.title);N.push(k)}else if(typeof o.message=="function"){const b=o.message();N.push(b)}else{const b=o.message;N.push(b)}return(0,t.h)("view",{class:`${d}__body`},N)},C=()=>{const N=[];if(o.showCancelButton){const b={class:[`${d}__footer-button`],style:{},onClick:w};o.cancelButtonClass&&b.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(b.style,o.cancleButtonStyle);const k=(0,t.h)("button",b,[o.cancelButtonText??u.cancelText.value]);N.push(k)}if(o.showConfirmButton){const b={class:[`${d}__footer-button`],style:{},onClick:g};o.confirmButtonClass&&b.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(b.style,o.confirmButtonStyle);const k=(0,t.h)("button",b,[o.confirmButtonText??u.confirmText.value]);N.push(k)}return N.length===0?null:(0,t.h)("view",{class:`${d}__footer`},N)};return()=>{const N=[],b=f();b&&N.push(b);const k=m();k&&N.push(k);const B=C();B&&N.push(B);const A=(0,t.h)("view",{class:{[`${d}`]:!0,[`${d}--${o.type||"info"}`]:!0}},N),$=[`${d}__popup`];o.popClass&&$.push(o.popClass);const T={};return o.width&&(T.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(T.height=typeof o.height=="number"?`${o.height}px`:o.height),(0,t.h)(l,{popClass:$.join(" "),style:T,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":c,position:o.position,round:"round",onClickOverlay:y,closeOnClickOverlay:o.closeOnClickOverlay},{default:()=>A})}}}}var{componentName:vv,create:hv,scope:gv}=Q("messagebox"),yv=hv(pv(vv,gv,me)),bv=yv,kv="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",Sv="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",wv="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",Cv="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",Nv=new Wn,Bv={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Av=e=>{let n=document.body,l=e.teleport;l!="body"&&(typeof l=="string"?n=document.querySelector(l):l&&(n=e.teleport));const o=document.createElement("view"),a=`messagebox-${Nv.get()}`;o.id=a,o.classList.add("fox-messagebox__root"),e.zIndex&&(o.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const s=document.querySelector(`#${a}`);s&&s.parentNode?.removeChild(s)};const r=(0,t.createVNode)(bv,e);n.appendChild(o),(0,t.render)(r,o)},it={show:(e,n,l,o)=>{const a={...Bv};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(a,n):(n&&(a.message=n),l&&typeof l=="object"?Object.assign(a,l):(typeof l=="string"&&(a.title=l),o&&typeof o=="object"?Object.assign(a,o):typeof o=="string"&&(a.type=o)));const r=a.type??"info";return a.icon||(r==="success"?a.icon=wv:r==="warning"?a.icon=Cv:r==="error"?a.icon=kv:a.icon=Sv),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 u=a.callback;a.callback=d=>{if(typeof u=="function")try{u(d)}catch(p){console.error(p)}s({action:d})},Av(a)})},alert:(e,n,l)=>it.show("alert",e,n,l),confirm:(e,n,l)=>it.show("confirm",e,n,l),install(e){e.config.globalProperties.$alert=it.alert,e.config.globalProperties.$confirm=it.confirm}},Vv=(e,n,l)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let a=!0,r=!0;for(let s in n)s==="bubbles"?a=!!n[s]:s==="cancelable"?r=!!n[s]:o[s]=n[s];o.initEvent(e,a,r),(l??document).dispatchEvent(o)},Tv=new Wn,$v=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Ev=e=>`${e}-${Tv.get()}`,xv=Symbol.for("InnerPageScopeKey"),Dv=Symbol.for("PageWrapperKey"),Iv="FoxLeave",qv="FoxLeaveEnd",Pv={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 Mv(e,n,l,o){return{props:{...Fe,...Pv},emits:["update:visible"],setup(a,{attrs:r,slots:s,emit:i}){(0,t.provide)(xv,!0);const u={};(0,t.provide)(Dv,u);const d=b=>(typeof u.beforeClose=="function"&&u.beforeClose(),!1),p=()=>{d("close")},c=e,v=b=>{g.value=b,i("update:visible",b)},g=(0,t.ref)(!1),w=(b,k)=>$v(b)?(k.src=b,(0,t.h)("img",k)):typeof b=="string"?(Array.isArray(k.class)?k.class.push(b):k.class&&typeof k.class=="object"?k[`${b}`]=!0:typeof k.class=="string"?k.class=`${k.class}, ${b}`:k.class=b,(0,t.h)(a.tag,k)):(0,t.h)(b,k),y=()=>{if(!a.showHeader)return null;const b=[];if(s.header){const k=s.header();b.push(k)}else if(a.title){const k=(0,t.h)("view",{class:`${c}__header-title`},[a.title]);b.push(k)}return b.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},b)},h=()=>{if(!a.showClose)return null;const b={class:[`${c}__close-icon`],onClick:p};return w(a.closeIcon??o,b)};let f=null;const S=b=>{Vv(qv,{},f)},m=Ev(e),C=()=>{v(!0)},N=()=>{if(!f)return;const b=f.querySelector(".fox-overlay");b&&(b.classList.add("overlay-fade-leave-active"),b.classList.add("overlay-fade-leave-to"));const k=f.querySelector(".fox-popup");k&&(k.classList.add(`fox-popup-slide-${a.position}-leave-active`),k.classList.add(`fox-popup-slide-${a.position}-leave-to`),k.addEventListener("animationend",S,{once:!0}),k.addEventListener("transitionend",S,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{f=document.querySelector(`.${m}`),f?.addEventListener(Iv,N,{once:!0}),C()}),()=>{const b=[],k=y();k&&b.push(k);const B=h();B&&b.push(B);const A=s.default?s.default():[];Reflect.apply([].push,b,A);const $={[`${c}`]:!0};a.mode&&($[`${c}--${a.mode}`]=!0);const T=(0,t.h)("view",{class:$},b),U=[`${c}__popup`,m];a.popClass&&U.push(a.popClass),a.position&&U.push(`${c}__popup--${a.position}`);const Z={};a.width&&(Z.width=typeof a.width=="number"?`${a.width}px`:a.width),a.height&&(Z.height=typeof a.height=="number"?`${a.height}px`:a.height);const E=(0,t.h)(l,{...he(a,Fe),popClass:U.join(" "),style:Z,visible:g.value,teleportDisable:!0,closeable:!1,position:a.position,closeOnClickOverlay:a.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":v},{default:()=>T});return(0,t.h)("div",{class:[`${c}__root`,m]},[E])}}}}var{componentName:_v,create:Lv,scope:zv}=Q("popup-wrapper"),Ov=Lv(Mv(_v,zv,me,oe.Close)),Il=Ov,Fv={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function Rv(e,n,l,o){return{props:{...Fv},emits:["update:visible"],setup(a,{emit:r,slots:s}){const i=u=>{r("update:visible",u)};return()=>{const u=[`${e}__popup`];a.popClass&&u.push(a.popClass);const d=(0,t.h)(l,{popClass:u,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}`},[d])}}}}var{componentName:Kv,create:Uv,scope:Hv}=Q("dropdown"),jv=Uv(Rv(Kv,Hv,me,!1)),ql=jv;function Wv(e,n,l,o,a){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[a]){let u=n;for(let d=0;u&&d<r.length;d++){let p=r[d],c=u.find(v=>v[o]===p);if(!c)break;s.push(c[l])}return s}if(Array.isArray(i))for(let u=0;u<n.length&&u<r.length;u++){let d=n[u],p=r[u];const c=d.find(v=>v[o]===p);if(!c)break;s.push(c[l])}else{let u=n;for(let d=0;u&&d<r.length;d++){let p=r[d],c=u.find(v=>v[o]===p);if(!c)break;s.push(c[l]),u=c[a]}}return s}var Yv=class{proxy;constructor(e){this.proxy=e}async load(e,n,l){if(Array.isArray(n))return n;if(typeof n=="function")return await n(l);const o=nt(this.proxy,e);return o===null?(console.error(`${e} component not found api function`),[]):(xe(l)&&(0,t.isReactive)(l)&&(l=(0,t.toRaw)(l)),await o(n,l))}};function Xv(){return new Yv((0,t.getCurrentInstance)().proxy)}var Qv={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 Gv(e,n){return{props:{...Qv},setup(l,{attrs:o,slots:a}){const r=Xv(),s=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([u,d])=>{s.value=await r.load(l.sourceType,u,d)},{immediate:!0});const i=(0,t.computed)(()=>{if(!Array.isArray(s.value)||s.value.length===0)return l.emptyText;let u=Wv(l.modelValue,s.value,l.textKey,l.valueKey,l.childrenKey);return u.length==0?l.emptyText??"":u.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${u[0]}`:u[0]:u.join(l.separator)});return()=>{const u={...o};if(a.default)return a.default({text:i.value,value:l.modelValue});const d=l.tag??"span";return typeof d=="object"?(0,t.h)(d,u,{default:()=>i.value}):(0,t.h)(d,u,[i.value])}}}}var{componentName:Zv,create:Jv,scope:eh}=Q("mapping"),th=Jv(Gv(Zv,eh,!1)),Pl=th;function nh(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(l,{slots:o}){return di(l.name,()=>l.config),Me(l.innerPageScope)||pi(l.innerPageScope),Me(l.abstractPageScope)||vi(l.abstractPageScope),()=>typeof o.default=="function"?o.default():null}}}var{componentName:oh,create:lh,scope:ah}=Q("domain-provider"),rh=lh(nh(oh,ah)),Ml=rh,ih={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function sh(e,n){return{inheritAttrs:!1,props:ih,emits:["change"],setup(l,{slots:o,emit:a}){if(Je&&window.IntersectionObserver){const r=new WeakMap;let s=new Map;const i=(v,g)=>{if(p===null){s.set(v,{visible:null,callback:g});return}r.has(v)&&p.unobserve(v),r.set(v,{visible:null,callback:g}),p.observe(v)},u=v=>{if(p===null){s.delete(v);return}r.has(v)&&(r.delete(v),p.unobserve(v))};let d=l.initialVisibleObserverSize;cu({acquire:()=>{if(l.loadPolicy==="always")return!0;const v=d>0;return d--,v},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:i,unobserve:u});let p=null;const c=(v,g,w)=>{p=new IntersectionObserver(y=>{if(a("change",y),l.loadPolicy!=="always")for(let h of y){let f=!1;h.intersectionRatio>0&&(f=!0);const S=r.get(h.target);if(S)try{if(l.loadPolicy==="lazy"&&!f&&S.visible!==null)return;S.visible=f,S.callback(f)}catch(m){console.error(m)}}},{root:v,rootMargin:g,threshold:w}),s.forEach((y,h)=>{r.set(h,y),p?.observe(h)}),s.clear()};(0,t.watch)([()=>l.root,()=>l.disabled],([v,g])=>{if(g||!v||p)return;let w=null;typeof v=="string"?w=document.querySelector(v):w=v,w&&c(w,l.rootMargin,l.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof o.default=="function"?o.default():null}}}var{componentName:uh,create:ch,scope:dh}=Q("rolling-provider"),fh=ch(sh(uh,dh)),_l=fh,{componentName:mh,create:ph}=Q("cell"),vh=ph({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 l=(0,t.computed)(()=>{const r=mh;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=(0,t.computed)(()=>({borderRadius:fe(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:l,baseStyle:o}}}),hh={key:0,class:"fox-cell__icon"},gh={key:1,class:"fox-cell__title"},yh={class:"title"},bh={class:"fox-cell__title-desc"};function kh(e,n,l,o,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",hh,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",gh,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",yh,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",bh,(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 Ll=ne(vh,[["render",kh]]),Sh={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function wh(e,n){return{props:{...Sh},setup(l,{attrs:o,slots:a}){const r=(0,t.computed)(()=>{const s={};return l.color&&(s.color=l.color),l.size&&(s.fontSize=fe(l.size)),s});return()=>{const s={style:r.value,class:`${e}-wrap`,...o};return(0,t.h)(l.tag??"li",s,a)}}}}var{componentName:Ch,create:Nh,scope:Bh}=Q("icon"),Ah=Nh(wh(Ch,Bh)),zl=Ah,{componentName:Vh,create:Th}=Q("cell-group"),$h=Th({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[Vh]:!0}))}}}),Eh={key:1,class:"fox-cell-group__title"},xh={key:3,class:"fox-cell-group__desc"},Dh={class:"fox-cell-group__wrap"};function Ih(e,n,l,o,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",Eh,(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",xh,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Dh,[(0,t.renderSlot)(e.$slots,"default")])],2)}var Ol=ne($h,[["render",Ih]]),{componentName:qh,create:Ph}=Q("image"),Mh=Ph({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 l=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),o=(0,t.computed)(()=>{const g=qh;return{[g]:!0,[`${g}-round`]:e.round}}),a=(0,t.ref)(null),r=(0,t.ref)(!1),s=(0,t.ref)(null),i=()=>{a.value=new IntersectionObserver(g=>{g.forEach(w=>{w.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 u=(0,t.computed)(()=>{let g={};return e.width&&(g.width=fe(e.width)),e.height&&(g.height=fe(e.height)),e.radius!==void 0&&e.radius!==null&&(g.overflow="hidden",g.borderRadius=fe(e.radius)),g}),d=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,g=>{l.isError=!1,l.loading=!0});const p=()=>{l.loading=!1,n("load")},c=()=>{l.isError=!0,l.loading=!1,n("error")},v=g=>{n("click",g)};return{...(0,t.toRefs)(l),imageClick:v,classes:o,styles:d,stylebox:u,error:c,load:p,show:r,imgRef:s}}}),_h=["src","date-src","alt"],Lh={key:0,class:"fox-img-loading"},zh={key:1,class:"fox-img-error"};function Oh(e,n,l,o,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]=(...u)=>e.imageClick&&e.imageClick(...u))},[(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]=(...u)=>e.load&&e.load(...u)),onError:n[1]||(n[1]=(...u)=>e.error&&e.error(...u)),style:(0,t.normalizeStyle)(e.styles)},null,44,_h),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",Lh,[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",zh,[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 Fl=ne(Mh,[["render",Oh]]),{create:Fh}=Q("layout"),Rh=Fh({}),Rl=Rh,{componentName:Kh,create:Uh}=Q("col"),Hh=Uh({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=Kh,l=(0,t.inject)("gutter");return{classes:(0,t.computed)(()=>({[n]:!0,[`${n}-gutter`]:l,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),style:(0,t.computed)(()=>({paddingLeft:l/2+"px",paddingRight:l/2+"px"}))}}});function jh(e,n,l,o,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 Kl=ne(Hh,[["render",jh]]),{componentName:Wh,create:Yh}=Q("row"),Xh=Yh({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=Wh;(0,t.provide)("gutter",e.gutter);const l=(o,a)=>o?a?`fox-row-${o}-${a}`:"":`fox-row-${a}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
2
+ ${l("",e.type)}
3
+ ${l("justify",e.justify)}
4
+ ${l("align",e.align)}
5
+ ${l("flex",e.flexWrap)}
6
6
  ${n}
7
7
  `:`
8
8
  ${n}
9
- `)}}});function fy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Jl=oe(dy,[["render",fy]]),{create:my}=J("sticky"),py=my({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),i=t.computed(()=>l.fixed?{[e.position]:`${r.value}px`,transform:l.transform?`translate3d(0, ${l.transform}px, 0)`:void 0,position:l.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const d=e.container;if(!a.value&&!d)return;const p=qe(a),u=o.value,h=qe(u),S=qe(d);l.height=p.height;const v=()=>{let y=!1;if(e.position==="top")y=d?r.value>p.top&&S.bottom>0:r.value>p.top;else{const m=document.documentElement.clientHeight;y=d?S.bottom>0&&m-r.value-h.height>S.top:m-r.value<p.bottom}return y},g=()=>{if(d)if(e.position==="top"){const y=S.bottom-r.value-h.height;return y<0?y:0}else{const y=document.documentElement.clientHeight,m=S.bottom-(y-r.value);return m<0?m:0}return 0};l.transform=g(),l.fixed=v()};return t.watch(()=>l.fixed,d=>{n("change",d)}),t.onMounted(()=>{c(),ol(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{ol(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function hy(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 Wt=oe(py,[["render",hy]]),{componentName:gy,create:yy}=J("divider"),vy=yy({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=gy;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 by(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 _l=oe(vy,[["render",by]]);function ky(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 Sy(e,n,a){const o=ky(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function Cy(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=i=>{i.proxy&&(a.push(t.markRaw(i)),Sy(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:ts}=J("grid"),ni=Symbol("grid"),wy={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}},Ny={props:wy,setup(e,{slots:n}){Cy(ni,`${ts}-item`)({props:e});const a=t.computed(()=>{const l=ts;return{[l]:!0,[`${l}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const l={};return e.gutter&&(l.paddingLeft=fe(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:By}=J("grid"),ea=By(Ny);function Ay(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:Vy,componentName:ns}=J("grid-item"),Ty=Vy({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=Ay(ni);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[ns]:!0})),s=t.computed(()=>{const d={flexBasis:`${100/+l.columnNum}%`};return l.square?d.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(d.paddingRight=fe(l.gutter),o.value>=l.columnNum&&(d.marginTop=fe(l.gutter))),d}),i=t.computed(()=>{const d=`${ns}__content`;return{[`${d}`]:!0,[`${d}--border`]:l.border,[`${d}--surround`]:l.border&&l.gutter,[`${d}--center`]:l.center,[`${d}--square`]:l.square,[`${d}--reverse`]:l.reverse,[`${d}--${l.direction}`]:!!l.direction,[`${d}--clickable`]:l.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:d=>{n("click",d)}}}}),$y={class:"fox-grid-item__text"};function Ey(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",$y,[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 ta=oe(Ty,[["render",Ey]]),{componentName:xy,create:Dy}=J("navbar"),Iy=Dy({components:{Left:le.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:o,safeAreaInsetTop:l,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let d=t.ref();const p=t.computed(()=>{const y=xy;return{[y]:!0,[`${y}--border`]:a.value,[`${y}--fixed`]:o.value,[`${y}--safe-area-inset-top`]:l.value}}),u=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{d.value=c?.value?.getBoundingClientRect().height,i.value.style.height=d.value+"px"})});function h(){n("on-click-back")}function S(){n("on-click-title")}function v(){n("on-click-icon")}function g(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:p,styles:u,handleLeft:h,handleCenter:S,handleCenterIcon:v,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 na=oe(Iy,[["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}=ie.useFoxI18n(n),s=r(o,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(u=!o.visible)=>{l("update:visible",u)},selected:(u,h)=>{l("selected",{item:u,event:h}),c.value=u.id},current:c}}}),{componentName:Uy,create:Hy,scope:jy}=J("fixednav"),Wy=Hy(Ky(Uy,jy,{[dt.name]:dt,Left:le.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,d)=>(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||d},[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 oa=oe(Wy,[["render",_y]]),{componentName:ev,create:tv}=J("menu"),nv=tv({components:{ArrowUp2:le.ArrowUp2,ArrowDown2:le.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.ref(0),r=t.ref(!1),s=()=>{const y=t.reactive([]),m=t.reactive([]);return{children:y,linkChildren:f=>{const B=C=>{C.proxy&&(m.push(C),y.push(C.proxy))},w=C=>{if(C.proxy){let k=m.indexOf(C);k>-1&&m.splice(k,1);let N=y.indexOf(C.proxy);k>-1&&y.splice(N,1)}};t.provide("menuParent",Object.assign({removeLink:w,link:B,children:y,internalChildren:m},f))}}},{children:i,linkChildren:c}=s(),d=t.computed(()=>i.some(y=>y.state.showWrapper)),p=t.computed(()=>({[ev]:!0,"scroll-fixed":r.value})),u=()=>{if(o.value){const y=qe(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,b)=>{b===y?(u(),m.toggle()):m.state.showPopup&&m.toggle(!1,{immediate:!0})})},S=y=>Math.max(0,"scrollTop"in y?y.scrollTop:y.pageYOffset),v=()=>{const{scrollFixed:y}=e,m=S(window);r.value=m>(typeof y=="boolean"?30:Number(y))},g=y=>{let m="";const{titleClass:b}=e;return y&&(m+="active"),b&&(m+=` ${b}`),m};return t.onMounted(()=>{const{scrollFixed:y}=e;y&&window.addEventListener("scroll",v)}),t.onUnmounted(()=>{const{scrollFixed:y}=e;y&&window.removeEventListener("scroll",v)}),{toggleItem:h,children:i,opened:d,classes:p,barRef:o,getClasses:g}}}),ov=["onClick"],lv={class:"fox-menu__title-text"},av={class:"fox-menu__title-icon"};function rv(e,n,a,o,l,r){const s=t.resolveComponent("ArrowUp2"),i=t.resolveComponent("ArrowDown2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:p=>!c.disabled&&e.toggleItem(d),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",lv,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",av,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,ov))),128))],2),t.renderSlot(e.$slots,"default")],2)}const la=oe(nv,[["render",rv]]),{componentName:sv,create:iv}=J("menu-item"),cv=iv({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:le.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:a}){const o=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),l=()=>{const S=t.inject("menuParent",null);if(S){const v=t.getCurrentInstance(),{link:g,removeLink:y}=S;return g(v),t.onUnmounted(()=>{y(v)}),{parent:S}}},{parent:r}=l(),s=t.computed(()=>({[sv]:!0})),i=t.computed(()=>{const S={height:r.offset.value+"px"};return r.props.direction==="down"?S:{...S,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const S=e.options?.find(v=>v.value===e.modelValue);return S?S.text:""},state:o,parent:r,toggle:(S=!o.showPopup,v={})=>{S!==o.showPopup&&(o.showPopup=S,o.isShowPlaceholderElement=S,S&&(o.showWrapper=!0,n("open")))},onClick:S=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,S.value!==e.modelValue&&(n("update:modelValue",S.value),n("change",S.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),uv={class:"fox-menu-item__content fox-menu-item__overflow"},dv=["onClick"];function fv(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",uv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick: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,dv))),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 aa=oe(cv,[["render",fv]]),{create:mv}=J("tabbar"),pv=mv({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 hv(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 ra=oe(pv,[["render",hv]]),{create:gv}=J("tabbar-item"),yv=gv({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,n){const a=t.inject("parent"),o=t.reactive({size:a.size,inactiveColor:a.inactiveColor,activeColor:a.activeColor,value:a.value,index:0}),l=t.getCurrentInstance();l!==null&&(d=>{if(d.proxy){let p=a.children.length;o.index=p;let u=Object.assign(d.proxy,{index:p});a.children.push(u)}})(l);const r=t.computed(()=>o.index===o.value);function s(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}const i=t.computed(()=>a?a.value:null);return t.watch(i,c=>{o.value=c}),{state:o,active:r,change:s}}}),vv={class:"fox-tabbar-item_icon-box"},bv={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},kv={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Sv={key:1,class:"fox-tabbar-item_icon-box_dot"},Cv={key:2},wv={key:0};function Nv(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",vv,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",bv,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",kv,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",Sv)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",Cv,[(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",wv,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const sa=oe(yv,[["render",Nv]]),{componentName:Bv,create:Av}=J("elevator"),Vv=Av({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(()=>({[Bv]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>a.value.clientHeight),i=(m,b)=>m.getAttribute("data-"+b),c=m=>{t.nextTick(()=>{!o.listGroup.includes(m)&&m!=null&&o.listGroup.push(m)})},d=()=>{let m=0;o.listHeight.push(m);for(let b=0;b<o.listGroup.length;b++){let f=o.listGroup[b];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]))},u=m=>{o.scrollStart=!0;let b=i(m.target,"index"),f=m.touches[0];o.touchState.y1=f.pageY,o.anchorIndex=+b,o.codeIndex=+b,p(+b)},h=m=>{let b=m.touches[0];o.touchState.y2=b.pageY;let f=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+f,p(o.codeIndex)},S=()=>{o.scrollStart=!1},v=(m,b)=>{n.emit("click-item",m,b),o.currentData=b,o.currentKey=m},g=m=>{n.emit("click-index",m)},y=m=>{let f=m.target.scrollTop;const B=o.listHeight;o.scrollY=f;for(let w=0;w<B.length-1;w++){let C=B[w],k=B[w+1];if(o.scrollY>=C&&o.scrollY<k){o.currentIndex=w,o.diff=k-o.scrollY;return}}o.currentIndex=B.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",y)}),Ee({scrollTo:p}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(d)}),t.watch(()=>o.diff,m=>{const b=o.listHeight;let f=m>0&&m<e.titleHeight?m-e.titleHeight:0;o.scrollY+s.value===b[b.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:u,touchMove:h,touchEnd:S,handleClickItem:v,handleClickIndex:g}}}),Tv={class:"fox-elevator__list__item__code"},$v=["onClick"],Ev=["innerHTML"],xv={class:"fox-elevator__fixed-title"},Dv={class:"fox-elevator__bars__inner"},Iv=["data-index","onClick"];function qv(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",Tv,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,Ev))],10,$v))),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",xv,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",Dv,[(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,Iv))),128))])],32)],2)}const Yt=oe(Vv,[["render",qv]]),{create:Pv,scope:Mv}=J("pagination"),Lv=Pv({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:a}=ie.useFoxI18n(Mv),o=a(e,["prevText","nextText"]),{modelValue:l,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:S,itemsPerPage:v}=t.toRefs(e),g=+h.value||Math.ceil(+S.value/+v.value);return Math.max(1,g)}),d=(h,S)=>{h>c.value||h<1||(h!=l.value&&n("update:modelValue",h),S&&n("change",h))},p=(h,S,v=!1)=>({number:h,text:S,active:v}),u=t.computed(()=>{if(r.value=="simple")return;let h=[];const S=c.value,v=+s.value;let g=1,y=S;const m=S>v;m&&(g=Math.max(l.value-Math.floor(v/2),1),y=g+v-1,y>S&&(y=S,g=y-v+1));for(var b=g;b<=y;b++){const f=p(b,b,l.value==b);h.push(f)}if(m&&v>0&&i.value){if(g>1){const f=p(g-1,"...");h.unshift(f)}if(y<S){const f=p(y+1,"...");h.push(f)}}return h});return t.watchEffect(()=>{d(l.value,!1)}),{...o,modelValue:l,select:d,countRef:c,mode:r,pages:u,forceEllipses:i}}}),zv={class:"fox-pagination"},Ov={key:0,class:"fox-pagination-contain"},Rv=["onClick"],Fv={key:1,class:"fox-pagination-contain"},Kv={class:"fox-pagination-simple"};function Uv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",zv,[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",Ov,[(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,Rv))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Fv,[t.createElementVNode("view",Kv,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 ia=oe(Lv,[["render",Uv]]),Hv=(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=at();let d="";const p=(h,S)=>{let v=h;switch(e.direction=="horizontal"?(d=h>0?"right":"left",v=Math.abs(v)/r.value.width*100):(d=S>0?"bottom":"top",v=S,v=Math.abs(v)/r.value?.height*100),v>85&&(v=85),d){case"left":case"top":n.isEnd()&&(v=0,i.moving=!1);break;case"right":case"bottom":v=-v,n.isBegin()&&(v=0,i.moving=!1);break}i.offset=v};return{touchMethods:{onTouchStart(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,d){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:l}};class jv{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Wv}=J("tabs"),Yv=Wv({components:{[Wt.name]:Wt,JoySmile:le.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=$=>{$.forEach((T,K)=>{let Z=T.type;if(Z=Z.name||Z,Z=="fox-tab-pane"){let E=new jv;if(T.props?.title||T.props?.["pane-key"]||T.props?.paneKey){let V=ct(T.props?.["pane-key"]),q=V=="number"||V=="string"?String(T.props?.["pane-key"]):null,x=ct(T.props?.paneKey),z=x=="number"||x=="string"?String(T.props?.paneKey):null;E.title=T.props?.title,E.paneKey=q||z||String(K),E.disabled=T.props?.disabled}r.value.push(E)}else{if(T.children==" ")return;Array.isArray(T.children)&&s(T.children)}})},i=t.ref(e.modelValue||0),c=$=>{let T=r.value.findIndex(K=>K.paneKey==$);r.value.length==0||T==-1||(i.value=T)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),p=t.ref(),u=t.ref([]),h=$=>{const T=p.value,K=u.value;if(!T||!K||!K[i.value])return;const Z=K[i.value];let E=0;e.direction==="vertical"?E=Z.offsetTop-T.offsetTop+10-(T.offsetHeight-Z.offsetHeight)/2:E=Z.offsetLeft-(T.offsetWidth-Z.offsetWidth)/2,S(T,E,.3,e.direction)},S=($,T,K,Z)=>{let E=0;const V=Z==="horizontal"?$.scrollLeft:$.scrollTop,q=Math.round(K*1e3/16);function x(){Z==="horizontal"?$.scrollLeft+=(T-V)/q:$.scrollTop+=(T-V)/q,++E<q&&je(x)}x()},v=($=a.default?.())=>{r.value=[],$=$?.filter(T=>typeof T.children!="string"),$&&$.length&&s($),c(e.modelValue),t.nextTick(()=>{h()})},g=$=>{l=$.fixed};t.watch(()=>a.default?.(),$=>{v($)});const y=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,$=>{if(c($),h(),l){let T=qe(o.value).top+y(),K=Math.ceil(T-e.top);window.scrollTo({top:K,behavior:"smooth"})}}),t.onMounted(v),t.onActivated(v);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:$=>{n("update:modelValue",$.paneKey),n("change",$)},tabChange:($,T)=>{n("click",$),!($.disabled||i.value==T)&&(i.value=T,m.updateValue($))},setTabItemRef:($,T)=>{u.value[T]=$}},{tabsContentRef:b,touchState:f,touchMethods:B}=Hv(e,m),w=t.computed(()=>{let $=i.value*100;f.moving&&($+=f.offset);let T={transform:e.direction=="horizontal"?`translate3d(-${$}%, 0, 0)`:`translate3d( 0,-${$}%, 0)`,transitionDuration:f.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(T={}),T}),C=t.computed(()=>({background:e.background})),k=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),N=t.computed(()=>{if(!e.titleGutter)return{};const $=fe(e.titleGutter);return e.direction==="vertical"?{marginTop:$,marginBottom:$}:{marginLeft:$,marginRight:$}}),A=t.computed(()=>a.fixedTitle);return{navRef:p,tabsContentRef:b,titles:r,contentStyle:w,tabsNavStyle:C,titleStyle:N,tabsActiveStyle:k,container:o,getScrollY:d,onStickyScroll:g,...m,...B,hasFixedTitle:A}}}),Xv=["onClick"],Qv={key:0,class:"fox-tabs__titles-fixed-item"},Gv=["onClick"],Zv={key:0,class:"fox-tabs__titles-fixed-item"};function Jv(e,n,a,o,l,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:p=>e.tabChange(c,d),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Xv))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Qv,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:p=>e.tabChange(c,d),key:c.paneKey,ref_for:!0,ref:p=>e.setTabItemRef(p,d)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Gv))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Zv,[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 ca=oe(Yv,[["render",Jv]]),{create:_v}=J("tab-pane"),e0=_v({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 t0(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 ua=oe(e0,[["render",t0]]),{componentName:os,create:n0}=J("indicator"),o0=n0({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=os;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:os,padZero:rt}}});function l0(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=oe(o0,[["render",l0]]),{componentName:a0,create:r0}=J("side-navbar"),s0=r0({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(()=>({[a0]:!0})),l=(s,i=1)=>{for(let c=0;c<s.length;c++){let d=s[c];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*i+"px",d.className.includes("fox-side-navbar-item")||l(Array.from(d.children[1].children),++a.count))}a.count--},r=()=>{let s=n.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),l(s))};return t.onMounted(()=>{r(),a.observer=new MutationObserver(function(){a.count=1,r()}),a.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(a),list:n,classes:o}}}),i0={class:"fox-side-navbar__content"},c0={class:"fox-side-navbar__content__list",ref:"list"};function u0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",i0,[t.createElementVNode("view",c0,[t.renderSlot(e.$slots,"default")],512)])],2)}const fa=oe(s0,[["render",u0]]),{componentName:d0,create:f0}=J("side-navbar-item"),m0=f0({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[d0]:!0})),handleClick:()=>{n.emit("click")}})}),p0=["ikey"],h0={class:"fox-side-navbar-item__title"};function g0(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",h0,t.toDisplayString(e.title),1)],10,p0)}const ma=oe(m0,[["render",g0]]),{componentName:y0,create:v0}=J("sub-side-navbar"),b0=v0({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:le.ArrowDown2,ArrowUp2:le.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=t.reactive({direction:""}),o=t.computed(()=>({[y0]:!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}}}),k0=["ikey"],S0={class:"fox-sub-side-navbar__title__text"},C0={class:"fox-sub-side-navbar__title__icon"};function w0(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",S0,t.toDisplayString(e.title),1),t.createElementVNode("span",C0,[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,k0)}const pa=oe(b0,[["render",w0]]),{componentName:N0,create:B0}=J("range"),A0=B0({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=at(),c=t.computed(()=>{const{marks:E,max:V,min:q}=e;return Object.keys(E).map(parseFloat).sort((U,M)=>U-M).filter(U=>U>=q&&U<=V)}),d=t.computed(()=>Number(e.max)-Number(e.min)),p=t.computed(()=>{const E=N0;return{[E]:!0,[`${E}-disabled`]:e.disabled,[`${E}-vertical`]:e.vertical,[`${E}-show-number`]:!e.hiddenRange}}),u=t.computed(()=>{const E="fox-range-container";return{[E]:!0,[`${E}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),S=t.computed(()=>({borderColor:e.buttonColor})),v=E=>!!e.range&&Array.isArray(E),g=()=>{const{modelValue:E,min:V}=e;return v(E)?`${(E[1]-E[0])*100/d.value}%`:`${(E-Number(V))*100/d.value}%`},y=()=>{const{modelValue:E,min:V}=e;return v(E)?`${(E[0]-Number(V))*100/d.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}),b=E=>{const V="fox-range-mark",{modelValue:q,max:x,min:z}=e;let U=Number(z),M=Number(x);if(e.range){const[ee,R]=q;U=ee,M=R}else M=q;let G=E<=M&&E>=U;return{[`${V}-text`]:!0,[`${V}-text-active`]:G}},f=E=>{const{min:V,vertical:q}=e;let x={left:`${(E-Number(V))/d.value*100}%`};return q&&(x={top:`${(E-Number(V))/d.value*100}%`}),x},B=E=>{const{modelValue:V,max:q,min:x}=e;let z=Number(x),U=Number(q);if(e.range){const[ee,R]=V;z=ee,U=R}return{background:E<=U&&E>=z?e.activeColor:e.inactiveColor}},w=E=>{const{min:V,max:q,step:x}=e;return E=Math.max(+V,Math.min(E,+q)),Math.round(E/+x)*+x},C=(E,V)=>JSON.stringify(E)===JSON.stringify(V),k=E=>E[0]>E[1]?E.slice(0).reverse():E,N=(E,V)=>{v(E)?E=k(E).map(w):E=w(E),C(E,e.modelValue)||n("update:modelValue",E),V&&!C(E,o)&&n("change",E)},A=E=>{if(e.disabled)return;const{min:V,modelValue:q}=e,x=qe(r);let z=E.clientX-x.left,U=x.width;e.vertical&&(z=E.clientY-x.top,U=x.height);const M=Number(V)+z/U*d.value;if(v(q)){const[G,ee]=q,R=(G+ee)/2;M<=R?N([M,ee],!0):N([G,M],!0)}else N(M,!0)},$=E=>{e.disabled||(i.start(E),l=e.modelValue,v(l)?o=l.map(w):o=w(l),s.value="start")},T=E=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(E),s.value="draging";const V=qe(r);let q=i.deltaX.value,x=V.width,z=q/x*d.value;e.vertical&&(q=i.deltaY.value,x=V.height,z=q/x*d.value),v(o)?l[a.value]=o[a.value]+z:l=o+z,N(l),E.stopPropagation(),E.preventDefault()},K=()=>{e.disabled||(s.value==="draging"&&(N(l,!0),n("drag-end")),s.value="")},Z=E=>On(e.modelValue)&&typeof E=="number"?e.modelValue[E]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:h,buttonStyle:S,onClick:A,onTouchStart:$,onTouchMove:T,onTouchEnd:K,...t.toRefs(e),barStyle:m,curValue:Z,buttonIndex:a,containerClasses:u,markClassName:b,marksStyle:f,marksList:c,tickStyle:B}}}),V0={key:0,class:"fox-range-min"},T0={key:0,class:"fox-range-mark"},$0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],E0={key:0,class:"number"},x0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],D0={key:0,class:"number"},I0={key:1,class:"fox-range-max"};function q0(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",V0,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",T0,[(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",E0,t.toDisplayString(e.curValue(s)),1))],4))],42,$0)),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",D0,t.toDisplayString(e.curValue()),1))],4))],40,x0))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",I0,t.toDisplayString(+e.max),1))],2)}const Xt=oe(A0,[["render",q0]]),{create:P0,scope:M0}=J("short-password"),L0=P0({components:{[pe.name]:pe,Tips:le.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:a}=ie.useFoxI18n(M0),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>d(Number(e.length))),s=t.ref(e.visible),i=u=>{u.stopPropagation(),n("focus")};t.watch(()=>e.visible,u=>{s.value=u}),t.watch(()=>e.modelValue,u=>{l.value=u,String(u).length===r.value&&n("complete",u)});const c=()=>{n("update:visible",!1),n("close")},d=u=>Math.min(Math.max(4,u),6);return{comLen:r,realInput:l,onTouchStart:i,range:d,close:c,onTips:()=>{n("tips")},show:s,...o}}}),z0={class:"fox-short-password-title"},O0={class:"fox-short-password-subtitle"},R0={class:"fox-short-password-wrapper"},F0={key:0,class:"fox-short-password__item-icon"},K0={class:"fox-short-password__message"},U0={class:"fox-short-password--error"},H0={key:0,class:"fox-short-password--forget"};function j0(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",z0,t.toDisplayString(e.title),1),t.createElementVNode("view",O0,t.toDisplayString(e.desc),1),t.createElementVNode("div",R0,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?(t.openBlock(),t.createElementBlock("view",F0)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",K0,[t.createElementVNode("view",U0,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",H0,[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 ha=oe(L0,[["render",j0]]);class W0{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Y0=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 X0{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const oi=(e,{args:n=[],done:a,canceled:o})=>{if(e){const l=e.apply(null,n);kt(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:Q0}=J("progress"),G0=Q0({components:{Checked:le.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,a=t.ref(e.strokeWidth+"px"),o=t.ref(),l=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),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}}}),Z0={class:"fox-progress"},J0={key:0,class:"fox-progress-text"};function _0(e,n,a,o,l,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",Z0,[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",J0,[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 Qt=oe(G0,[["render",_0]]),{componentName:eb,create:tb,scope:nb}=J("uploader"),ob=tb({components:{[Qt.name]:Qt,Photograph:le.Photograph,Failure:le.Failure,Loading:le.Loading,Del:le.Del,Link:le.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(nb),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[eb]:!0})),s=()=>{let b={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(b.capture="camera"),t.h("input",b)},i=b=>{b.value=""},c=b=>{n("file-item-click",{fileItem:b})},d=(b,f)=>{const B=new W0;B.url=e.url,B.formData=b.formData,B.timeout=e.timeout*1,B.method=e.method,B.xhrState=e.xhrState,B.headers=e.headers,B.withCredentials=e.withCredentials,B.beforeXhrUpload=e.beforeXhrUpload;try{B.sourceFile=b.formData.get(e.name)}catch{}B.onStart=C=>{b.status="ready",b.message=a("readyUpload"),p(f),n("start",C)},B.onProgress=(C,k)=>{b.status="uploading",b.message=a("uploading"),b.percentage=(C.loaded/C.total*100).toFixed(0),n("progress",{event:C,option:k,percentage:b.percentage})},B.onSuccess=(C,k)=>{b.status="success",b.message=a("success"),n("success",{responseText:C,option:k,fileItem:b}),n("update:fileList",o)},B.onFailure=(C,k)=>{b.status="error",b.message=a("error"),n("failure",{responseText:C,option:k,fileItem:b})};let w=new Y0(B);e.autoUpload?w.upload():l.push(new Promise((C,k)=>{C(w)}))},p=(b=-1)=>{b>-1?l.splice(b,1):(l=[],o.splice(0,o.length))},u=()=>{Promise.all(l).then(b=>{b.forEach(f=>f.upload())})},h=b=>{b.forEach((f,B)=>{const w=new FormData;for(const[k,N]of Object.entries(e.data))w.append(k,N);w.append(e.name,f);const C=t.reactive(new X0);if(C.name=f.name,C.status="ready",C.type=f.type,C.formData=w,C.message=a("waitingUpload"),d(C,B),e.isPreview&&f.type.includes("image")){const k=new FileReader;k.onload=N=>{C.url=N.target.result,o.push(C)},k.readAsDataURL(f)}else o.push(C)})},S=b=>{const f=e.maximum*1,B=e.maximize*1,w=new Array;b=b.filter(k=>k.size>B?(w.push(k),!1):!0),w.length&&n("oversize",w);let C=b.length+o.length;return C>f&&b.splice(b.length-(C-f)),b},v=(b,f)=>{o.splice(f,1),n("delete",{file:b,fileList:o,index:f})},g=(b,f)=>{p(f),oi(e.beforeDelete,{args:[b,o],done:()=>v(b,f)})},y=b=>{if(e.disabled)return;const f=b.target;let{files:B}=f;e.beforeUpload?e.beforeUpload(B).then(w=>m(w)):m(B),n("change",{fileList:o,event:b}),e.clearInput&&i(f)},m=b=>{const f=S(new Array().slice.call(b));h(f)};return{onChange:y,onDelete:g,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:p,submit:u,renderInput:s}}}),lb={key:0,class:"fox-uploader__slot"},ab={key:0,class:"fox-uploader__preview-img"},rb={key:0,class:"fox-uploader__preview__progress"},sb={class:"fox-uploader__preview__progress__msg"},ib=["onClick"],cb=["onClick","src"],ub={key:3,class:"fox-uploader__preview-img__file"},db=["onClick"],fb={class:"file__name_tips"},mb={class:"tips"},pb={key:1,class:"fox-uploader__preview-list"},hb=["onClick"],gb={class:"file__name_tips"};function yb(e,n,a,o,l,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),d=t.resolveComponent("Del"),p=t.resolveComponent("fox-progress"),u=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",lb,[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,S)=>(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",ab,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",rb,[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",sb,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:v=>e.onDelete(h,S)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,ib)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:v=>e.fileItemClick(h),src:h.url},null,8,cb)):(t.openBlock(),t.createElementBlock("view",ub,[t.createElementVNode("view",{onClick:v=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",fb,t.toDisplayString(h.name),1)],8,db)])),t.createElementVNode("view",mb,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",pb,[t.createElementVNode("view",{onClick:v=>e.fileItemClick(h),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[h.status]])},[t.createVNode(c,{class:"fox-uploader__preview-img__file__link"}),t.createElementVNode("view",gb,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:v=>e.onDelete(h,S)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,hb),h.status=="uploading"?(t.openBlock(),t.createBlock(p,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(u,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const ga=oe(ob,[["render",yb]]),vb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZ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FpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:kb,scope:Sb}=J("number-keyboard"),Cb=kb({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:a}=ie.useFoxI18n(Sb),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:m}=e;let b={id:"lock",type:"lock"},f=Array.isArray(m)?m:[m];return f.length===1&&(b={id:f[0],type:"custom"}),[...c(),b,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const m=[];for(let b=1;b<=9;b++)m.push({id:b,type:"number"});return e.randomKeys?m.sort(()=>Math.random()>.5?1:-1):m}function d(){const m=c(),{customKey:b}=e;let f=Array.isArray(b)?b:[b];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!=""?d():i()),u=()=>{e.visible&&n("blur")},h=m=>{const b=s.value;b&&!b.contains(m.target)&&u()};t.watch(()=>e.visible,m=>{r.value=m,m?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function S(m,b){b.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 v(m){m.stopPropagation()}function g(m){m.preventDefault(),l.value=void 0}function y(){n("update:visible",!1),n("close")}return{...o,delImg:vb,lockImg:bb,clickKeyIndex:l,defaultKey:i,closeBoard:y,onTouchEnd:g,onTouchMove:v,onTouchstart:S,keysList:p,genCustomKeys:d,getBasicKeys:c,root:s,show:r}}}),wb={ref:"root"},Nb={class:"fox-number-keyboard"},Bb={key:0,class:"fox-number-keyboard__header"},Ab={class:"fox-number-keyboard__title"},Vb={class:"fox-number-keyboard__body"},Tb={class:"fox-number-keyboard__keys"},$b=["onTouchstart"],Eb=["src"],xb=["src"],Db={key:0,class:"fox-number-keyboard__sidebar"},Ib={class:"fox-key__wrapper"},qb=["src"];function Pb(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",wb,[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",Nb,[e.title?(t.openBlock(),t.createElementBlock("div",Bb,[t.createElementVNode("h3",Ab,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",Vb,[t.createElementVNode("div",Tb,[(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,Eb)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,xb)):t.createCommentVNode("",!0)],42,$b)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",Db,[t.createElementVNode("div",Ib,[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,qb)],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 ya=oe(Cb,[["render",Pb]]),{componentName:Mb,create:Lb}=J("swipe"),zb=Lb({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(()=>({[Mb]:!0})),o=b=>b.value?.clientWidth||0,l=t.ref(),r=t.computed(()=>o(l)),s=t.ref(),i=t.computed(()=>o(s));let c=!1,d="",p="";const u=t.reactive({offset:0,moving:!1}),h=(b="")=>{c=!0,b&&(u.offset=b==="left"?-i.value:r.value),n("open",{name:e.name,position:d||b})},S=()=>{u.offset=0,c=!1,n("close",{name:e.name,position:d})},v=t.computed(()=>({transform:`translate3d(${u.offset}px, 0, 0)`})),g=b=>{d=b>0?"right":"left";let f=b;switch(d){case"left":c&&p===d?f=-i.value:f=Math.abs(b)>i.value?-i.value:b;break;case"right":c&&p===d?f=r.value:f=Math.abs(b)>r.value?r.value:b;break}u.offset=f},y=at();return{classes:a,touchStyle:v,...{onTouchStart(b){e.disabled||y.start(b)},onTouchMove(b){e.disabled||(y.move(b),y.isHorizontal()&&(u.moving=!0,g(y.deltaX.value),e.touchMovePreventDefault&&b.preventDefault(),e.touchMoveStopPropagation&&b.stopPropagation()))},onTouchEnd(){if(u.moving)switch(u.moving=!1,p=d,d){case"left":Math.abs(u.offset)<=i.value/2?S():(u.offset=-i.value,h());break;case"right":Math.abs(u.offset)<=r.value/2?S():(u.offset=r.value,h());break}}},leftRef:l,rightRef:s,open:h,close:S}}}),Ob={class:"fox-swipe__left",ref:"leftRef"},Rb={class:"fox-swipe__content"},Fb={class:"fox-swipe__right",ref:"rightRef"};function Kb(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",Ob,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",Rb,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Fb,[t.renderSlot(e.$slots,"right")],512)],38)}const Gt=oe(zb,[["render",Kb]]),{componentName:Ub,create:Hb}=J("action-sheet"),jb=Hb({components:{Popup:pe,Loading:le.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(()=>({[Ub]:!0}));return{slotDefault:a,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(c,d)=>{!c.disable&&!c.loading&&(n("choose",c,d),n("update:visible",!1))},close:c=>{n("close",c),n("update:visible",!1)},classes:o}}}),Wb={key:0,class:"fox-action-sheet__title"},Yb={key:1},Xb={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},Qb={key:1,class:"fox-action-sheet__menu"},Gb=["onClick"],Zb={key:1},Jb={class:"fox-action-sheet__subdesc"};function _b(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",Wb,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Yb,[e.description?(t.openBlock(),t.createElementBlock("view",Xb,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",Qb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:t.normalizeStyle({color:e.isHighlight(c)||c.color}),key:d,onClick:p=>e.chooseItem(c,d)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",Zb,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",Jb,t.toDisplayString(c[e.optionSubTag]),1)],14,Gb))),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 va=oe(jb,[["render",_b]]),{componentName:ek,create:tk}=J("backtop"),ba=tk({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(()=>({[ek]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function i(v=0){o.scrollEl instanceof Window?window.scrollTo(0,v):o.scrollEl.scrollTop=v}function c(){let v=Ze(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),v=Ze(g),(y==e.duration||m==0)&&rs(v)})}function d(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function p(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function u(v){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",v)}function h(){S.value?o.scrollEl=S.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),d()}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 S=t.computed(()=>{if(typeof a.content=="function"){const v=a.content();return Array.isArray(v)?v[0]:v}return null});return()=>{const v=[];S.value&&v.push(S.value);const g=[];if(typeof a.default=="function")g.push(a.default());else{const m=t.h(le.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});g.push(m)}const y=t.h("div",{class:l.value,style:r.value,onClick:u},g);return v.push(y),v}}}),{componentName:nk,create:ok}=J("drag"),lk=ok({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(()=>({[nk]:!0}));function r(){const u=document.documentElement;o.elWidth=a.value.offsetWidth,o.elHeight=a.value.offsetHeight,o.screenWidth=u.clientWidth,o.screenHeight=u.clientHeight}function s(u){o.boundary.left?+u.style.left.split("px")[0]>o.boundary.left?(u.style.left=+u.style.left.split("px")[0]-10+"px",je(()=>{s(u)})):u.style.left=`${o.boundary.left}px`:+u.style.left.split("px")[0]>10?(u.style.left=+u.style.left.split("px")[0]-10+"px",je(()=>{s(u)})):u.style.left="0px"}function i(u,h){h-parseInt(u.style.left.split("px")[0])>10?(u.style.left=parseInt(u.style.left.split("px")[0])+10+"px",je(()=>{i(u,h)})):u.style.left=h+"px"}function c(u){u.preventDefault();const h=u.currentTarget;if(u.targetTouches.length===1){const S=u.targetTouches[0];o.nx=S.clientX-o.position.x,o.ny=S.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const v=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>v?o.xPum=v:o.xPum<=o.boundary.left&&(o.xPum=o.boundary.left),o.yPum<o.boundary.top?o.yPum=o.boundary.top:o.yPum>o.screenHeight-o.elHeight-o.boundary.bottom&&(o.yPum=o.screenHeight-o.elHeight-o.boundary.bottom),e.direction!="y"&&(h.style.left=o.xPum+"px"),e.direction!="x"&&(h.style.top=o.yPum+"px")}}function d(u){const h=u.currentTarget;let v=u.changedTouches[0].clientX;const g=o.screenWidth-o.elWidth-o.boundary.right;v>g?v=g:v<o.boundary.left?v=o.boundary.left:v=v<o.screenWidth/2?o.boundary.left:g,e.direction!="y"&&e.attract&&(v<o.screenWidth/2?je(()=>{s(h)}):je(()=>{i(h,g)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function p(u){const h=u.currentTarget,S=u.touches[0],v=u.targetTouches[0];o.startTop=h.offsetTop,o.startLeft=h.offsetLeft,o.position.x=S.clientX,o.position.y=S.clientY,o.nx=v.clientX-o.position.x,o.ny=v.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny}return t.onMounted(()=>{r(),o.boundary=e.boundary}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1)}),t.onDeactivated(()=>{o.keepAlive=!0;const u=a;u.value.removeEventListener("touchstart",p),u.value.removeEventListener("touchmove",c),u.value.removeEventListener("touchend",d)}),{classes:l,myDrag:a,touchStart:p,touchMove:c,touchEnd:d}}});function ak(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=oe(lk,[["render",ak]]),rk={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}},sk=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function ik(e,n,a,o,l){return{props:{...Ke,...rk},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:d}=ie.useFoxI18n(n),p=d(r,["confirmText","cancelText"]),u=e,h=t.ref(r.visible);t.watch(()=>r.visible,C=>{h.value!==C&&(h.value=C,C&&c("opened"))});const S=C=>{h.value=C,c("update:visible",C),c("update",C)},v=C=>{if(c(C),!(C==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const k=r.beforeClose(C);kt(k)?k.then(N=>{N&&(S(!1),c("closed",C))}):k===!0&&(S(!1),c("closed",C))}else S(!1),c("closed",C)},g=()=>{v("confirm")},y=()=>{v("cancel")},m=()=>{v("close")},b=(C,k)=>sk(C)?(k.src=C,t.h("img",k)):typeof C=="string"?(Array.isArray(k.class)?k.class.push(C):k.class&&typeof k.class=="object"?k[`${C}`]=!0:typeof k.class=="string"?k.class=`${k.class}, ${C}`:k.class=C,t.h(r.tag,k)):t.h(C,k),f=()=>{const C=[];if(i.header){const N=i.header();C.push(N)}else{if(r.title){const N=t.h("view",{class:`${u}__header-title`},[r.title]);C.push(N)}if(r.showClose){const N={class:[`${u}__header-close-icon`],onClick:m},A=r.closeIcon??l,$=b(A,N);C.push($)}}if(C.length===0)return null;const k={class:[`${u}__header`]};return t.h("view",k,C)},B=()=>{const C=[];if(i.default)C.push(i.default());else{const N={class:[`${u}__content`]};if(r.textAlign&&N.class.push(r.textAlign),typeof r.content=="string"){N.innerHTML=r.content;const A=t.h("view",N);C.push(A)}else if(typeof r.content=="function"){const A=t.h("view",N,[r.content()]);C.push(A)}else{const A=t.h("view",N,[r.content]);C.push(A)}}if(C.length===0)return null;const k={class:[`${u}__body`]};return t.h("view",k,C)},w=()=>{if(!r.showFooter)return null;const C=[];if(i.footer)C.push(i.footer());else if(r.plain){if(r.showCancelButton){const N={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},onClick:y};r.cancelButtonClass&&N.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(N.style,r.cancleButtonStyle);const A=t.h("view",N,[r.cancelButtonText??p.cancelText.value]);C.push(A)}if(r.showConfirmButton){const N={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},onClick:g};r.confirmButtonClass&&N.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(N.style,r.confirmButtonStyle);const A=t.h("view",N,[r.confirmButtonText??p.confirmText.value]);C.push(A)}}else{if(r.showCancelButton){const N={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:y};r.cancelButtonClass&&N.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(N.style,r.cancleButtonStyle);const A=t.h(o,N,{default:()=>[r.cancelButtonText??p.cancelText.value]});C.push(A)}if(r.showConfirmButton){const N={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:g};r.confirmButtonClass&&N.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(N.style,r.confirmButtonStyle);const A=t.h(o,N,{default:()=>[r.confirmButtonText??p.confirmText.value]});C.push(A)}}if(C.length===0)return null;const k={class:[`${u}__footer`,`${u}__footer--${r.footerDirection}`]};return t.h("view",k,C)};return()=>{const C=[],k=f();k&&C.push(k);const N=B();N&&C.push(N);const A=w();A&&C.push(A);const $={class:{[`${u}`]:!0,[`${u}--plain`]:r.plain}},T=t.h("view",$,C),K=[`${u}__popup`];r.popClass&&K.push(r.popClass);const Z={};r.width&&(Z.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(Z.height=typeof r.height=="number"?`${r.height}px`:r.height);const V={...ye(r,Ke),popClass:K.join(" "),style:Z,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":S,position:r.position,onClickOverlay:m,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,V,{default:()=>T})}}}}const{componentName:ck,create:uk,scope:dk}=J("dialog"),li=uk(ik(ck,dk,pe,Oe,le.Close));class fk{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 mk{options=new fk;constructor(n){let a=Object.assign(this.options,n),o=document.body,l=a.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=a.teleport);const r=document.createElement("view"),s=`dialog-${a.id}`;r.id=s;const i={setup(){return a.onUpdate=d=>{if(d===!1){const p=document.querySelector(`#${s}`);p&&p.parentNode?.removeChild(p)}},a?.onOpened&&a?.onOpened(),()=>t.h(li,a)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Zt=function(e){return new mk(e)};Zt.install=e=>{e.use(li),e.config.globalProperties.$dialog=Zt};const pk={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}},hk=(e,n,a)=>({props:{...pk},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["pullingText","loosingText","loadingText"]),c=io(),d=t.ref(),p=_s(d),u=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=t.computed(()=>({[e]:!0})),S=t.computed(()=>{switch(u.status){case"pulling":return r.pulling?"":i.pullingText.value;case"loosing":return r.loosing?"":i.loosingText.value;case"loading":return r.loading?"":i.loadingText.value;default:return""}}),v=t.computed(()=>({transitionDuration:`${o.duration}s`,transform:u.distance?`translate3d(0,${u.distance}px, 0)`:""})),g=t.computed(()=>{const k={};return o.headHeight!=50&&(k.height=fe(o.headHeight)),k}),y=k=>{const N=+(o.pullDistance||o.headHeight);let A=k;return k>N&&(k<N*2?A=(k+N)/2:A=N+k/4),Math.round(A)},m=(k,N)=>{const A=+(o.pullDistance||o.headHeight);u.distance=k,N?u.status="loading":k===0?u.status="normal":k<A?u.status="pulling":u.status="loosing",l("change",{status:u.status,distance:k})},b=()=>u.status!=="loading"&&u.status!=="complete",f=()=>p.value==window?ei()==0:p.value&&p.value.scrollTop==0,B=k=>{b()&&(f()?(c.start(k),u.isPullRefresh=!0,u.moving=!0):(u.distance=0,u.isPullRefresh=!1))},w=k=>{b()&&u.moving&&(c.move(k),c.isVertical()&&c.state.deltaY>0&&u.isPullRefresh&&(k.cancelable&&k.preventDefault(),m(y(c.state.deltaY))))},C=()=>{u.moving=!1,u.isPullRefresh&&b()&&c.state.deltaY&&(u.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,k=>{k?m(+o.headHeight,!0):m(0)}),()=>{const k=[];let N=null;if(u.status==="loading"){if(N=r?.loading?.()??null,!N){const q={class:["fox-pull-refresh-container-topbox-icon"]};N=t.h(a,q)}}else u.status==="pulling"?N=r?.pulling?.()??null:u.status==="loosing"&&(N=r?.loosing?.()??null);N&&k.push(N);const A={class:["fox-pull-refresh-container-topbox-text"]},$=t.h("dive",A,[S.value]);k.push($);const T={class:["fox-pull-refresh-container-topbox"],style:g.value},K=t.h("div",T,k),Z={class:"fox-pull-refresh-container",style:v.value},E=t.h("div",Z,[K,r?.default?.()]),V={ref:d,class:h.value};return so()?Object.assign(V,{onTouchstart:B,onTouchmove:w,onTouchend:C}):Object.assign(V,{onMousedown:B,onMousemove:w,onMouseup:C}),t.h("div",V,[E])}}}),{componentName:gk,create:yk,scope:vk}=J("pull-refresh"),Sa=yk(hk(gk,vk,le.Loading)),{create:bk}=J("notify"),kk=bk({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 a=()=>{e.onClick&&e.onClick()};let o=null;const l=()=>{o&&clearTimeout(o),o=null},r=()=>{n("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,d=>{s.value=e.visible;const p=e.duration;d&&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 Sk(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=oe(kk,[["render",Sk]]),al={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let gt=[],Ut=[];const ai=e=>{if(e){const n=document.getElementById(e);Ut=Ut.filter(a=>a.id!==e),gt=gt.filter(a=>a!==e),n&&document.body.removeChild(n)}else gt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Ut=[],gt=[]},Ck=e=>{const n=document.getElementById(e.id);if(n){const a=Ut.find(l=>l.id===e.id);a?e={...al,...a,...e}:e={...al,...e};const o=t.createVNode(Ca,e);return t.render(o,n),o.component.data}},Mt=e=>{e.unmount=ai;let n;if(e.id){if(n=e.id,gt.find(r=>r===e.id))return Ck(e)}else n=new Date().getTime()+"";e={...al,...e},e.id=n,gt.push(e.id),Ut.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)},Lt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},wa={text(e,n={}){return Lt(e),Mt({...n,msg:e})},primary(e,n={}){return Lt(e),Mt({...n,msg:e,type:"primary"})},success(e,n={}){return Lt(e),Mt({...n,msg:e,type:"success"})},danger(e,n={}){return Lt(e),Mt({...n,msg:e,type:"danger"})},warn(e,n={}){return Lt(e),Mt({...n,msg:e,type:"warning"})},hide(){ai()},install(e){e.use(Ca)}},{create:wk}=J("toast"),Nk=wk({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const l=()=>{a&&(clearTimeout(a),a=null)},r=()=>{o.mounted=!1},s=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),t.watch(()=>e.duration,S=>{S&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const S=de(e.iconSize);return t.h(e.icon,{width:S,height:S,color:e.iconColor})},p=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),u=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:d,hasIcon:c,toastBodyClass:p,toastIconWrapperClass:u,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Bk={key:1,class:"fox-toast-title"},Ak=["innerHTML"];function Vk(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",Bk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Ak)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Na=oe(Nk,[["render",Vk]]),rl={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 yt=[],Ht=[];const ri=e=>{if(e){const n=document.getElementById(e);Ht=Ht.filter(a=>a.id!==e),yt=yt.filter(a=>a!==e),n&&document.body.removeChild(n)}else yt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Ht=[],yt=[]},Tk=e=>{const n=document.getElementById(e.id);if(n){const a=Ht.find(l=>l.id===e.id);a?e={...rl,...a,...e}:e={...rl,...e};const o=t.createVNode(Na,e);return t.render(o,n),xt}},zt=e=>{e.unmount=ri;let n;if(e.id){if(n=e.id,yt.find(l=>l===e.id))return Tk(e)}else n=new Date().getTime()+"";e={...rl,...e},e.id=n,yt.push(e.id),Ht.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Na,e);return t.render(o,a),document.body.appendChild(a),xt},dn=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},xt={text(e,n={}){return dn(e),zt({...n,type:"text",msg:e})},success(e,n={}){return dn(e),zt({icon:le.Success,...n,msg:e,type:"success"})},fail(e,n={}){return dn(e),zt({icon:le.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return dn(e),zt({icon:le.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return zt({icon:le.Loading,...n,msg:e,type:"loading"})},hide(e){ri(e)},install(e){e.use(Na),e.config.globalProperties.$toast=xt}},{create:$k}=J("audio"),Ek=$k({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:le.Service,[Xt.name]:Xt},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=v(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)},d=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},p=g=>{l.currentDuration=v(g),l.percent=g/l.second*100},u=()=>{l.playing=!1,n("ended")},h=g=>{const y=o.value;y.currentTime=l.second*g/100,n("changeProgress",y.currentTime)},S=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},v=g=>{if(!g)return"00:00:00";let y=parseInt(g),m=Math.floor(y/3600),b=Math.floor((y-m*3600)/60),f=y-m*3600-b*60,B="";return B+=("0"+m.toString()).slice(-2)+":",B+=("0"+b.toString()).slice(-2)+":",B+=("0"+f.toString()).slice(-2),B};return t.watch(()=>l.currentTime,g=>{p(g)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:S,forward:d,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:i,forward:d,changeStatus:c,progressChange:h,audioEnd:u,onTimeupdate:s,handleMute:S,onCanplay:r,slots:a}}}),xk={class:"fox-audio"},Dk={key:0,class:"fox-audio__progress"},Ik={class:"fox-audio__time"},qk={class:"fox-audio__bar"},Pk={class:"fox-audio__time"},Mk={key:1,class:"fox-audio__icon"},Lk=["controls","src","preload","autoplay","loop","muted"];function zk(e,n,a,o,l,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",xk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",Dk,[t.createElementVNode("div",Ik,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",qk,[t.createVNode(s,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=c=>e.percent=c),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:t.withCtx(()=>[...n[6]||(n[6]=[t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1)])]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Pk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Mk,[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,Lk)])}const Ba=oe(Ek,[["render",zk]]),{create:Ok,scope:Rk}=J("audio-operate"),Fk=Ok({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(Rk),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}}}),Kk={class:"fox-audio-operate"};function Uk(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Kk,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...i)=>e.fastBack&&e.fastBack(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...i)=>e.changeStatus&&e.changeStatus(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...i)=>e.forward&&e.forward(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...i)=>e.handleMute&&e.handleMute(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("mute")),1)]),_:1},8,["type"])),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)])}const Aa=oe(Fk,[["render",Uk]]),{componentName:Hk,create:jk}=J("avatar"),Wk=jk({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:a,bgColor:o,color:l}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),d=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const v=s?.avatarGroupRef?.value?.children;v&&S(v)});const p=t.computed(()=>({[Hk]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||s?.props?.shape||"normal"}`]:!0})),u=t.computed(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${o.value}`,color:`${l.value}`,marginLeft:d.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),S=v=>{d.maxIndex=v.length;for(let g=0;g<v.length;g++)v[g]&&v[g].classList&&v[g].classList[0]=="fox-avatar"&&v[g].setAttribute("data-index",g+1);d.index=i?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=s?.props?.maxCount&&(d.showMax=!0)};return{classes:p,styles:u,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(d)}}});function Yk(e,n,a,o,l,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const Jt=oe(Wk,[["render",Yk]]),{componentName:Xk,create:Qk}=J("avatar-group"),Gk=Qk({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(()=>({[Xk]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:l,index:r}),{classes:s,avatarGroupRef:l}}});function Zk(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=oe(Gk,[["render",Zk]]);var Vn=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(Vn||{});function Jk(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:_k,create:eS}=J("list"),ls=document.documentElement.clientHeight||document.body.clientHeight||667,tS=eS({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:ls},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,ls)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),d=t.computed(()=>({[_k]:!0})),p=t.computed(()=>r.list.slice(r.start,c.value)),u=()=>{if(l.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let 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}},S=()=>{let m=l.value.childNodes;m=Array.from(m).filter(k=>k.nodeType===1);const b=m[0];m.forEach((k,N)=>{if(!k)return;const A=qe(k),{height:$}=A,K=r.cachePositions[N+r.start].height-$;K&&(r.cachePositions[N+r.start].bottom-=K,r.cachePositions[N+r.start].height=$,r.cachePositions[N+r.start].dValue=K)});let f=0;b&&(f=r.start);const B=r.cachePositions.length;let w=r.cachePositions[f].dValue;r.cachePositions[f].dValue=0;for(let k=f+1;k<B;++k){const N=r.cachePositions[k];r.cachePositions[k].top=r.cachePositions[k-1].bottom,r.cachePositions[k].bottom=r.cachePositions[k].bottom-w,N.dValue!==0&&(w+=N.dValue,N.dValue=0)}const C=r.cachePositions[B-1].bottom;r.phantomHeight=C},v=(m=0)=>{let b=Jk(r.cachePositions,m,(B,w)=>{const C=B.bottom;return C===w?Vn.eq:C<w?Vn.lt:Vn.gt});return r.cachePositions[b].bottom<m&&(b+=1),b},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:b}=r,f=v(m);f!==b&&(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(),S();else{g();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&S()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:u,visibleData:p,classes:d,getContainerHeight:s,handleScrollEvent:y}}});function nS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform()}),ref:"actualContent"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:s},[t.renderSlot(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}const Ta=oe(tS,[["render",nS]]),{componentName:oS,create:lS}=J("circleprogress"),aS=lS({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(()=>({[oS]:!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(()=>De(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let p=283,u=p*Number(e.progress)/100;return{stroke:De(e.color)?`url(#${o})`:e.color,strokeDasharray:`${u}px ${p}px`}}),c=t.computed(()=>({stroke:e.pathColor})),d=t.computed(()=>{if(!De(e.color))return;let p=e.color;const u=Object.keys(p).sort((S,v)=>parseFloat(S)-parseFloat(v));let h=[];return u.map((S,v)=>{let g={key:"",value:""};g.key=S,g.value=p[S],h.push(g)}),h});return{classes:l,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:d,slotDefault:a,refRandomId:o}}}),rS={viewBox:"0 0 100 100"},sS=["id"],iS=["offset","stop-color"],cS=["d","stroke-width"],uS=["d","stroke","stroke-linecap","stroke-width"],dS={class:"fox-circleprogress-text"},fS={key:0};function mS(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",rS,[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,iS))),128))],8,sS)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,cS),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,uS)])),t.createElementVNode("div",dS,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",fS,t.toDisplayString(e.progress)+"%",1))])],6)}const $a=oe(aS,[["render",mS]]),{componentName:pS,create:hS}=J("noticebar"),gS=hS({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:le.Notice,CircleClose:le.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=t.computed(()=>({[pS]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),d=t.computed(()=>{let k={};return e.color&&(k.color=e.color),e.background&&(k.background=e.background),e.direction=="vertical"&&(k.height=`${e.height}px`),k}),p=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),u=t.computed(()=>{let k={};if(e.complexAm)k={transform:`translateY(${r.distance}px)`};else if(r.animate){let N=~~(e.height/e.speed/4);k={transition:`all ${N==0?~~(e.height/e.speed):N}s`,"margin-top":`-${e.height}px`}}return k});t.watch(()=>e.text,k=>{h()}),t.watch(()=>e.list,k=>{r.scrollList=[...k]});const h=k=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const N=o.value.getBoundingClientRect().width,A=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?A>N:e.scrollable,r.isCanScroll?(r.wrapWidth=N,r.offsetWidth=A,r.duration=A/e.speed,r.animationClass="play"):r.animationClass=""},0)},S=k=>{n("click",k)},v=k=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",k)},g=k=>{r.firstRound=!1,n("across-end",k),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))},b=()=>{r.timer=setInterval(()=>{let k=100;for(let N=0;N<k;N++)f(N,!(N<k-1))},e.standTime+100*e.speed)},f=(k,N)=>{setTimeout(()=>{r.distance-=e.height/100,N&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},k*e.speed)},B=k=>{n("click",k)},w=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(a.default?C(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?b():y()},e.standTime)):h(e.text)}),t.watch(()=>a.default?a.default():[],k=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),C(k))});const C=k=>{k&&k.length>0&&(r.scrollList=k[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:d,contentStyle:p,horseLampStyle:u,wrap:o,content:l,handleClick:S,onClickIcon:v,onAnimationEnd:g,go:B,handleClickIcon:w,slots:a,toPxString:fe,wrapContentClass:c}}}),yS={key:0,class:"fox-noticebar__page-lefticon"},vS={ref:"wrap",class:"fox-noticebar__page-wrap"},bS={class:"showNotica"},kS=["onClick"];function SS(e,n,a,o,l,r){const s=t.resolveComponent("Notice"),i=t.resolveComponent("CircleClose"),c=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:n[3]||(n[3]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.showLeftIcon?(t.openBlock(),t.createElementBlock("view",yS,[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",vS,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":n[1]||(n[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=t.withModifiers((...d)=>e.onClickIcon&&e.onClickIcon(...d),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",bS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(d,p)=>(t.openBlock(),t.createBlock(c,{key:p,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:d},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(d,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:u=>e.go(d)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(d),1)])],12,kS))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=d=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const Ea=oe(gS,[["render",SS]]),CS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y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+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{create:BS,scope:AS}=J("empty"),VS={empty:CS,error:wS,network:NS},TS=BS({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=ie.useFoxI18n(AS),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:VS[o.value];return{...a,imageUrl:i,imgStyle:r}}}),$S={class:"fox-empty"},ES=["src"],xS={key:1,class:"fox-empty-description"};function DS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",$S,[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,ES)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",xS,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const xa=oe(TS,[["render",DS]]),{create:IS,scope:qS}=J("video"),PS=IS({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(qS),o=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),l=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,C=>{C.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,C=>{o.state.isMuted=C?C.muted:!1},{immediate:!0});const s=()=>{o.videoElm=l.value,e.options.autoplay&&setTimeout(()=>{o.videoElm.play()},200),e.options.touchPlay&&(o.showTouchMask=!0),e.options.playsinline&&(o.videoElm.setAttribute("playsinline",e.options.playsinline),o.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),o.videoElm.setAttribute("x5-video-player-type","h5-page"),o.videoElm.setAttribute("x5-video-player-fullscreen",!1)),v(),o.showToolbox?i():(o.videoElm.addEventListener("play",()=>{o.state.playing=!0,n("play",o.videoElm)}),o.videoElm.addEventListener("pause",()=>{o.state.playing=!1,n("pause",o.videoElm)}),o.videoElm.addEventListener("ended",h),o.videoElm.addEventListener("timeupdate",xn(u,1e3)))},i=()=>{const C=l.value,k=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=C,o.progressBar.progressElm=k,o.progressBar.pos=k.getBoundingClientRect(),o.videoSet.progress.width=Math.round(k.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",xn(u,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{S()}else o.videoElm.pause(),n("pause",o.videoElm)},d=C=>{var k=Math.floor(C/3600);k<10&&(k="0"+k);var N=Math.floor(C%3600/60);N<10&&(N="0"+N);var A=Math.round(C%3600%60);A<10&&(A="0"+A);var $="";return k!=0?$=k+":"+N+":"+A:$=N+":"+A,$},p=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},u=()=>{const C=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*C),o.videoSet.totalTime=d(o.videoElm.duration),o.videoSet.displayTime=d(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)},S=()=>{o.state.isError=!0},v=()=>{o.state.vol=e.options.volume},g=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},y=()=>{},m=C=>{let N=C.targetTouches[0].pageX-o.progressBar.pos.left;N<=0&&(N=0),N>=o.videoSet.progress.width&&(N=o.videoSet.progress.width),o.videoSet.progress.current=N;let A=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&f(A,o.videoElm.duration)},b=C=>{let N=C.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=N;let A=N/o.videoSet.progress.width;o.videoElm.duration&&f(A,o.videoElm.duration)},f=(C,k)=>{o.videoElm.currentTime=Math.floor(C*k)},B=()=>{o.state.isError=!1,s()},w=()=>{o.state.fullScreen?(o.state.fullScreen=!1,document.webkitCancelFullScreen()):(o.state.fullScreen=!0,o.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:l,...t.toRefs(e),...t.toRefs(o),handleError:S,isDisabled:r,play:c,handleMuted:g,touchSlidSrart:y,touchSlidMove:m,touchSlidEnd:b,retry:B,fullScreen:w,t:a}}}),MS={class:"fox-video",ref:"videocon"},LS=["muted","autoplay","loop","poster","controls","preload"],zS=["src","type"],OS={class:"fox-video-controller__now"},RS={class:"fox-video-controller__progress"},FS={class:"fox-video-controller__progress-value",ref:"progressBar"},KS={class:"fox-video-controller__played",ref:"playedBar"},US={class:"fox-video-controller__total"},HS={class:"fox-video-error"},jS={class:"fox-video-error-tip"};function WS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",MS,[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,zS)],40,LS),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",OS,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",RS,[t.createElementVNode("div",FS,[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",KS,null,512)],512)]),t.createElementVNode("div",US,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",HS,[t.createElementVNode("p",jS,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 At=oe(PS,[["render",WS]]),{create:YS,componentName:XS}=J("steps"),Da=YS({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=XS;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:QS,componentName:GS}=J("step"),ZS=QS({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=GS;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:s,handleClickStep:i}}}),JS={class:"fox-step-head"},_S={class:"fox-step-icon-inner"},e1={key:1,class:"fox-step-inner"},t1={class:"fox-step-main"},n1={class:"fox-step-title"},o1={key:0},l1={key:0,class:"fox-step-content"},a1=["innerHTML"];function r1(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",JS,[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",_S,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",e1,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",t1,[t.createElementVNode("view",n1,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",o1,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",l1,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,a1)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const Ia=oe(ZS,[["render",r1]]),{create:s1,componentName:qo}=J("swiper"),i1=s1({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=at(),s=t.computed(()=>({[qo]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const x=qo;return{[`${x}-inner`]:!0,[`${x}-vertical`]:i.value}}),d=t.computed(()=>{const x=qo;return{[`${x}-pagination`]:!0,[`${x}-pagination-vertical`]:i.value}}),p=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),u=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>l.children.length),S=t.computed(()=>l[i.value?"height":"width"]),v=t.computed(()=>h.value*S.value),g=t.computed(()=>l.rect?(i.value?l.rect.height:l.rect.width)-S.value*h.value:0),y=t.computed(()=>(l.active+h.value)%h.value),m=()=>{let x=0;x=l.offset,l.style={transitionDuration:`${l.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${x}px)`,[i.value?"height":"width"]:`${S.value*h.value}px`,[i.value?"width":"height"]:`${i.value?l.width:l.height}px`}},b=x=>{let z=[];const U=l.childrenVNode.length;let M=a?.default?.();if(M=M.filter(G=>G.children&&Array.isArray(G.children)),M.forEach(G=>{z=z.concat(G.children)}),!U)l.childrenVNode=z.slice(),x.proxy&&l.children.push(x.proxy);else if(U>z.length)l.children=l.children.filter(G=>x.proxy!==G);else if(U<z.length){for(let G=0;G<U;G++)if(z[G].key!==l.childrenVNode[G].key){x.proxy&&l.children.splice(G,0,x.proxy),x.vnode&&l.childrenVNode.splice(G,0,x.vnode);break}U!==z.length&&(x.proxy&&l.children.push(x.proxy),x.vnode&&l.childrenVNode.push(x.vnode))}else l.childrenVNode=z.slice(),x.proxy&&l.children.push(x.proxy)},f=(x,z=0)=>{let U=x*S.value;e.loop||(U=Math.min(U,-g.value));let M=z-U;return e.loop||(M=We(M,g.value,0)),M},B=x=>{const{active:z}=l;return x?e.loop?We(z+x,-1,h.value):We(z+x,0,h.value-1):z},w=({pace:x=0,offset:z=0,isEmit:U=!1})=>{if(h.value<=1)return;const{active:M}=l,G=B(x),ee=f(G,z);if(e.loop){if(l.children[0]&&ee!==g.value){const R=ee<g.value;l.children[0].setOffset(R?v.value:0)}if(l.children[h.value-1]&&ee!==0){const R=ee>0;l.children[h.value-1].setOffset(R?-v.value:0)}}l.active=G,l.offset=ee,U&&M!==l.active&&n("change",y.value),m()},C=()=>{l.moving=!0,l.active<=-1&&w({pace:h.value}),l.active>=h.value&&w({pace:-h.value})},k=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},N=x=>{C(),r.reset(),Ze(()=>{Ze(()=>{l.moving=!1,w({pace:x,isEmit:!0})})})},A=()=>{N(-1)},$=()=>{N(1)},T=x=>{C(),r.reset(),Ze(()=>{l.moving=!1;let z;e.loop&&h.value===x?z=l.active===0?0:x:z=x%h.value,w({pace:z-l.active,isEmit:!0})})},K=()=>{e.autoPlay<=0||h.value<=1||(k(),l.autoplayTimer=setTimeout(()=>{$(),K()},Number(e.autoPlay)))},Z=(x=+e.initPage)=>{k(),l.rect=o.value.getBoundingClientRect(),x=Math.min(h.value-1,x),l.width=e.width?+e.width:l.rect.width,l.height=e.height?+e.height:l.rect.height,l.active=x,l.offset=f(l.active),l.moving=!0,m(),K()},E=x=>{e.isPreventDefault&&x.preventDefault(),e.isStopPropagation&&x.stopPropagation(),e.touchable&&(r.start(x),l.touchTime=Date.now(),k(),C())},V=x=>{e.touchable&&l.moving&&(r.move(x),u.value&&w({offset:p.value}))},q=x=>{if(!e.touchable||!l.moving)return;const z=p.value/(Date.now()-l.touchTime);if((Math.abs(z)>.3||Math.abs(p.value)>+(S.value/2).toFixed(2))&&u.value){let M=0;const G=i.value?r.offsetY.value:r.offsetX.value;e.loop?M=G>0?p.value>0?-1:1:0:M=-Math[p.value>0?"ceil":"floor"](p.value/S.value),w({pace:M,isEmit:!0})}else p.value&&w({pace:0});l.moving=!1,m(),K()};return t.provide("parent",{props:e,size:S,relation:b}),Ee({prev:A,next:$,to:T}),t.onDeactivated(()=>{k()}),t.onBeforeUnmount(()=>{k()}),t.watch(()=>e.initPage,x=>{t.nextTick(()=>{Z(Number(x))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{Z()})}),t.watch(()=>e.autoPlay,x=>{x>0?K():k()}),{state:l,classes:s,classesInner:c,classesPagination:d,container:o,activePagination:y,onTouchStart:E,onTouchMove:V,onTouchEnd:q}}});function c1(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 Vt=oe(i1,[["render",c1]]),{create:u1,componentName:d1}=J("swiper-item"),f1=u1({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[d1]:!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")}),Ee({setOffset:s}),{style:r,classes:l}}});function m1(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 Tt=oe(f1,[["render",m1]]),si={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:p1}=J("image-preview-item"),h1=p1({props:{...si,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:{[At.name]:At,[Tt.name]:Tt},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=at(),l=t.computed(()=>{const{rootWidth:A,rootHeight:$}=e,T=$/A;return a.imageRatio>T}),r=t.computed(()=>{const A=e.image;if(A&&A.src){const{scale:$,moveX:T,moveY:K,moving:Z,zooming:E}=a,V={transitionDuration:E||Z?"0s":".3s"};if($!==1){const q=T/$,x=K/$;V.transform=`scale(${$}, ${$}) translate(${q}px, ${x}px)`}return V}return{}}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:A,rootHeight:$}=e,T=l.value?$/a.imageRatio:A;return Math.max(0,(a.scale*T-A)/2)}return 0}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:A,rootHeight:$}=e,T=l.value?$:A*a.imageRatio;return Math.max(0,(a.scale*T-$)/2)}return 0}),c=A=>{const{naturalWidth:$,naturalHeight:T}=A.target;a.imageRatio=T/$},d=()=>{p(1),a.moveX=0,a.moveY=0},p=A=>{A=We(A,+e.minZoom,+e.maxZoom+1),A!==a.scale&&(a.scale=A,n("scale",{scale:A,index:e.initNo}))},u=()=>{const A=a.scale>1?1:2;p(A),a.moveX=0,a.moveY=0},h=A=>Math.sqrt((A[0].clientX-A[1].clientX)**2+(A[0].clientY-A[1].clientY)**2);let S,v,g,y,m,b,f;const B=A=>{const{touches:$}=A,{offsetX:T}=o;o.start(A),f=$.length,S=a.moveX,v=a.moveY,b=Date.now(),a.moving=f===1&&a.scale!==1,a.zooming=f===2&&!T.value,a.zooming&&(g=a.scale,y=h(A.touches))},w=A=>{const{touches:$}=A;if(o.move(A),(a.moving||a.zooming)&&Ko(A,!0),a.moving){const{deltaX:T,deltaY:K}=o,Z=T.value+S,E=K.value+v;a.moveX=We(Z,-s.value,s.value),a.moveY=We(E,-i.value,i.value)}if(a.zooming&&$.length===2){const T=h($),K=g*T/y;p(K)}},C=()=>{if(f==1&&e.video&&e.video.source||f>1)return;const{offsetX:A,offsetY:$}=o,T=Date.now()-b,K=250,Z=5;A.value<Z&&$.value<Z&&T<K&&(m?(clearTimeout(m),m=null,u()):m=setTimeout(()=>{e.contentClose&&n("close"),m=null},K))},k=A=>{let $=!1;(a.moving||a.zooming)&&($=!0,a.moving&&S===a.moveX&&v===a.moveY&&($=!1),A.touches.length||(a.zooming&&(a.moveX=We(a.moveX,-s.value,s.value),a.moveY=We(a.moveY,-i.value,i.value),a.zooming=!1),a.moving=!1,S=0,v=0,g=1,a.scale<1&&d(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),Ko(A,$),C(),o.reset()},N=()=>{n("close")};return t.watch(()=>e.initNo,d),t.watch(()=>e.show,A=>{A||d()}),{...t.toRefs(a),onTouchStart:B,onTouchMove:w,onTouchEnd:k,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:N}}}),g1=["src"];function y1(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,g1)):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 v1=oe(h1,[["render",y1]]),{create:b1}=J("image-preview"),k1=b1({props:{...si,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:v1,CircleClose:le.CircleClose,[pe.name]:pe,[Vt.name]:Vt},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(()=>On(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=p=>{p!==o.active&&(o.active=p,n("change",o.active))},i=()=>{oi(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},d=()=>{if(a.value){const p=qe(a.value);o.rootHeight=p.height,o.rootWidth=p.width}};return t.watch(()=>e.show,p=>{o.showPop=p,p&&(s(e.initNo),d())}),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}}}),S1={class:"fox-image-preview",ref:"swipeRef"},C1={key:0,class:"fox-image-preview-index"};function w1(e,n,a,o,l,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=p=>e.showPop=p),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",S1,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(p,u)=>(t.openBlock(),t.createBlock(s,{key:u,video:u<e.videos.length?p:{},image:u>=e.videos.length?p:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",C1,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 ii=oe(k1,[["render",w1]]);class N1{show=!1;images=[];videos=[];contentClose=!0;initNo=0;paginationVisible=!1;paginationColor="";autoplay=0;isWrapTeleport=!1;showIndex=!0;closeable=!1;closeIconPosition="top-right";beforeClose;maxZoom=3;minZoom=1/3;isLoop=!0;teleport="body"}class B1{options=new N1;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=Wi(a,{name:"image-preview",components:[pe,At,Vt,Tt,dt],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(ii,a))}})})}}const Co=e=>new B1(e);Co.install=e=>{e.use(ii)};function A1(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{create:V1}=J("countup"),T1=V1({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref([]),l=N=>{N&&o.value.push(N)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:d}=t.reactive(e);t.watch(()=>e.customChangeNum,(N,A)=>{u(),y(0)}),t.watch(()=>e.machinePrizeLevel,(N,A)=>{r.prizeLevelTrun=N}),t.watch(()=>e.initNum,(N,A)=>{r.current=N,r.valFlag=!1,p()}),t.watch(()=>e.endNum,(N,A)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;s&&(i||c?d!="machine"&&y():(g(),setTimeout(()=>{r.valFlag=!0},300)))},u=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(N,A,$)=>{const T=(N.toString().split(".")[1]||"").length,K=(A.toString().split(".")[1]||"").length,Z=Math.pow(10,Math.max(T,K));return Number((N*Z-A*Z).toFixed(0))/Z},S=N=>{let{num_total_len:A,pointNum:$,initDigit1:T,initDigit2:K,sortFlag:Z}=r,E=Z=="add"||Z=="equal"?String(K)[N-(A-$)]:10-Number(String(K)[N-(A-$)]),V=Z=="add"||Z=="equal"?String(T)[N]:10-Number(String(T)[N]),q=N>A-$-1?-E*100+"%":N<=String(T).length-1?-V*100+"%":0;return q=="-1000%"&&(q=0),q},v=N=>{let{num_total_len:A,pointNum:$,initDigit1:T,initDigit2:K,sortFlag:Z}=r,E=String(K)[N-(A-$)];return N>A-$-1?E||0:N<=String(T).length-1?String(T)[N]:0},g=()=>{let{endNum:N,initNum:A,speed:$,toFixed:T}=e,K=setInterval(()=>{if(A>N)if(r.current<=N||r.current<=$)r.current=N.toFixed(T),clearInterval(K),n("scroll-end"),r.valFlag=!1;else{let Z=parseFloat(String(r.current))-parseFloat(String($));r.current=Z.toFixed(T)}else if(r.current>=N)r.current=N.toFixed(T),clearInterval(K),n("scroll-end"),r.valFlag=!1;else{let Z=parseFloat(String(r.current))+parseFloat(String($));r.current=Z.toFixed(T)}},e.during)},y=N=>{let{initNum:A,endNum:$,toFixed:T,customBgImg:K}=e;K&&(A=e.customChangeNum);let Z,E,V,q;A!=0?(T!=0&&(A=Number(A.toFixed(T))),String(A).indexOf(".")>-1?(Z=String(A).split(".")[0].length,E=String(A).split(".")[1].length):(Z=String(A).length,E=0)):(Z=1,E=0),$!=0?(T!=0&&($=Number($.toFixed(T))),String($).indexOf(".")>-1?(V=String($).split(".")[0].length,q=String($).split(".")[1].length):(V=String($).length,q=0)):(V=1,q=0);let x=Z>=V?Z:V,z=E>=q?E:q;r.num_total_len=x+z,r.pointNum=z,A>$?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(A,$),r.numberVal=Number(String(A))):A<$?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h($,A),r.numberVal=Number(String($))):r.sortFlag="equal";var U=1;for(let G=0;G<r.pointNum;G++)U*=10;var M=r.numberVal*U;if(r.relNum=M,T!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(M).length),String(A).indexOf(".")>-1){let G=String(A).split(".");r.initDigit1=Number(G[0]),r.initDigit2=Number(G[1])}else r.initDigit1=A,r.initDigit2=0;i&&!K?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let G=o.value[r.num_total_len-1];m(G)}):N!==0&&B()},m=N=>{u();var A=1;r.pointNum!=0&&(A=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{b(N),r.totalCount=h(r.totalCount,A),r.totalCount<=0&&(u(),n("scroll-end"),r.valFlag=!1)},e.during)},b=N=>{let A=N.getAttribute("turn-number"),$;if(r.sortFlag=="add"?$=parseInt(String(A))+1:$=parseInt(String(A))-1>=0?parseInt(String(A))-1:9,N.setAttribute("turn-number",String($)),(N.style.transition=="none 0s ease 0s"||$==1||!N.style.transition)&&(N.style.transition=`all linear ${e.during}ms`),$==10||r.sortFlag=="reduce"&&$==0){var T=null;N.style.top=`-${r.sortFlag=="add"?$*100:(10-$)*100}%`,N.setAttribute("turn-number","0"),T=setTimeout(()=>{T&&clearTimeout(T),N.style.transition="none",N.style.top="0",f(N,$)},.975*e.during)}else N.style.top=`-${r.sortFlag=="add"?$*100:(10-$)*100}%`;N.style.top=="-100%"&&r.sortFlag=="reduce"&&b(N.previousSibling)},f=(N,A)=>{setTimeout(()=>{A==10&&N.previousSibling&&b(N.previousSibling)},200)},B=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{a.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},w=()=>{for(r.notPrize=[];r.notPrize.length<3;){var N=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(N)==-1&&r.notPrize.push(N)}};A1({machineLuck:()=>{const N=e.machineTurnMore<0?0:e.machineTurnMore;let A=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&w();for(let $=0;$<e.machineNum;$++)setTimeout(()=>{let T=A*($+1+parseFloat(String(N)));r.prizeYPrev.length!=0&&(r.prizeY[$]=r.prizeYPrev[$]);let K=r.prizeYPrev[$]?r.prizeYPrev[$]:0,Z=T+K+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(A-K);r.prizeLevelTrun<0&&(Z+=e.numHeight*r.notPrize[$]),k($,Z,K)},500*$)}});const k=(N,A,$)=>{let T=setInterval(()=>{if($<=A)$+=10,r.prizeY[N]=parseFloat(String($));else if(clearInterval(T),T=null,r.finshMachine+=1,r.prizeY[N]=A,r.finshMachine==e.machineNum){let K=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(E=>{let V=E;for(;V>K;)V-=K;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(()=>{u(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:S,turnNumber:v}}}),$1={class:"fox-countup"},E1=["turn-number"];function x1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",$1,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__machine",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+d,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,E1))),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 qa=oe(T1,[["render",x1]]),D1=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:I1,create:q1}=J("countdown"),P1=q1({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(()=>({[I1]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-D1(e.startTime),o.counting||(o.counting=!0),i()},i=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const S=Date.now()-o.diffTime,v=Math.max(o.handleEndTime-S,0);o.restTime=v,v||(o.counting=!1,u(),n("on-end")),v>0&&i()}}))},c=(S,v)=>{const g=S;let y={d:0,h:0,m:0,s:0,ms:0};const m=1e3,b=60*m,f=60*b,B=24*f;return g>0&&(y.d=g>=m?Math.floor(g/B):0,y.h=Math.floor(g%B/f),y.m=Math.floor(g%f/b),y.s=Math.floor(g%b/m),y.ms=Math.floor(g%m)),v=="custom"?y:d({...y})},d=S=>{let{d:v,h:g,m:y,s:m,ms:b}=S,f=e.format;if(f.includes("DD")?f=f.replace("DD",rt(v)):g+=Number(v)*24,f.includes("HH")?f=f.replace("HH",rt(g)):y+=Number(g)*60,f.includes("mm")?f=f.replace("mm",rt(y)):m+=Number(y)*60,f.includes("ss")?f=f.replace("ss",rt(m)):b+=Number(m)*1e3,f.includes("S")){const B=rt(b,3).toString();f.includes("SSS")?f=f.replace("SSS",B):f.includes("SS")?f=f.replace("SS",B.slice(0,2)):f.includes("S")&&(f=f.replace("SS",B.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))},u=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},h=()=>{e.autoStart||(u(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():o.restTime=e.time}),t.watch(()=>o.restTime,S=>{let v=c(S,"custom");n("update:modelValue",v),n("input",v)}),t.watch(()=>e.paused,(S,v)=>{v?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i()),n("on-restart",o.restTime)):o.counting&&u()}),t.watch(()=>e.endTime,S=>{s()}),t.watch(()=>e.startTime,S=>{s()}),{...t.toRefs(e),slots:a,classes:l,start:p,pause:u,renderTime:r,reset:h}}}),M1=["innerHTML"];function L1(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,M1))],2)}const Pa=oe(P1,[["render",L1]]),{create:z1}=J("badge"),O1=z1({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}}}),R1={class:"fox-badge"},F1=["textContent"];function K1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",R1,[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,F1),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const Ma=oe(O1,[["render",K1]]),{componentName:U1,create:H1}=J("tag"),j1=H1({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:le.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const s=U1;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 W1(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 _t=oe(j1,[["render",W1]]),{create:Y1}=J("popover"),X1=Y1({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 a=t.ref(),o=t.ref(),l=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const b="fox-popover-arrow",f=e.location,B=f.split("-")[0];return`${b} ${b}-${B} ${b}--${f}`}),c=t.computed(()=>{const b={},{bgColor:f,arrowOffset:B,location:w}=e,C=w.split("-")[0],k=w.split("-")[1],N=16;return f&&(b[`border${d(C)}Color`]=f),e.arrowOffset!=0&&(["bottom","top"].includes(C)&&(k||(b.left=`calc(50% + ${B}px)`),k=="start"&&(b.left=`${N+B}px`),k=="end"&&(b.right=`${N-B}px`)),["left","right"].includes(C)&&(k||(b.top=`calc(50% - ${B}px)`),k=="start"&&(b.top=`${N-B}px`),k=="end"&&(b.bottom=`${N+B}px`))),b}),d=b=>(b=b.toLowerCase(),b=b.replace(/\b\w+\b/g,f=>f.substring(0,1).toUpperCase()+f.substring(1)),b),p=t.computed(()=>{let b={};if(!r.value||!s.value)return{};const f=s.value.width,B=s.value.height,{width:w,height:C,left:k,top:N}=r.value,{location:A,offset:$}=e,T=A.split("-")[0],K=A.split("-")[1];let Z=0,E=0;if(On($)&&$.length==2&&(Z+=Number($[1]),E+=Number($[0])),w){if(["bottom","top"].includes(T)){const V=T=="bottom"?C+Z:-(B+Z);b.top=`${N+V}px`,K||(b.left=`${-(f-w)/2+k+E}px`),K=="start"&&(b.left=`${k+E}px`),K=="end"&&(b.left=`${r.value.right+E}px`)}if(["left","right"].includes(T)){const V=T=="left"?-(f+Z):w+Z;b.left=`${k+V}px`,K||(b.top=`${N-B/2+C/2-4+E}px`),K=="start"&&(b.top=`${N+E}px`),K=="end"&&(b.top=`${N+C+E}px`)}}return b}),u=t.computed(()=>{const b={};return e.bgColor&&(b.background=e.bgColor),b}),h=()=>{let b=qe(a.value);e.targetId&&(b=qe(document.querySelector(`#${e.targetId}`))),r.value=b,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,b=>{l.value=b,b?(window.addEventListener("touchstart",m,!0),h()):window.removeEventListener("touchstart",m,!0)});const S=b=>{n("update",b),n("update:visible",b)},v=()=>{S(!e.visible),n("open")},g=()=>{n("update:visible",!1),n("close")},y=(b,f)=>{!b.disabled&&n("choose",b,f),e.closeOnClickAction&&g()},m=b=>{const f=a.value,B=o.value;let w=f&&!f.contains(b.target);if(e.targetId){const C=document.querySelector(`#${e.targetId}`);w=C&&!C.contains(b.target)}w&&B&&!B.contains(b.target)&&e.closeOnClickOutside&&g()};return{showPopup:l,openPopover:v,popoverArrow:i,closePopover:g,chooseItem:y,popoverRef:a,popoverContentRef:o,getRootPosition:p,customStyle:u,popoverArrowStyle:c,renderIcon:qs}}}),Q1={ref:"popoverContentRef",class:"fox-popover-content-group"},G1=["onClick"],Z1={class:"fox-popover-menu-item-name"};function J1(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",Q1,[e.showArrow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.popoverArrowStyle)},null,6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(d=>e.chooseItem(i,c),["stop"])},[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",Z1,t.toDisplayString(i.name),1)],10,G1))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const en=oe(X1,[["render",J1]]),_1=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:eC}=J("skeleton"),tC=eC(_1({[Jt.name]:Jt})),nC={key:0},oC={key:1,class:"fox-skeleton"},lC={key:0,class:"fox-skeleton-animation"},aC={class:"fox-skeleton-content"};function rC(e,n,a,o,l,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",oC,[e.animated?(t.openBlock(),t.createElementBlock("view",lC)):t.createCommentVNode("",!0),t.createElementVNode("view",aC,[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",nC,[t.renderSlot(e.$slots,"default")]))}const La=oe(tC,[["render",rC]]),{create:sC,componentName:iC}=J("collapse"),cC=sC({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(()=>({[iC]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,d,p=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,d,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 d=o.value.filter(p=>p!==c);r(d,c,!1)}else{const d=o.value.concat([c]);r(d,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?o.value===c:Array.isArray(o.value)?o.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:a,classes:l}}});function uC(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 za=oe(cC,[["render",uC]]),{create:dC,componentName:fC}=J("collapse-item"),mC=dC({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:le.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=t.ref(null),a=t.ref(null),o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const h=fC;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)},d=()=>{s.value&&(i.value="auto")},p=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},u=()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?p():u()}),{classes:r,renderIcon:qs,wrapperRef:n,contentRef:a,open:p,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:d}}}),pC={class:"fox-collapse-item__title-main"},hC={class:"fox-collapse-item__title-main-value"},gC=["innerHTML"],yC={key:2,class:"fox-collapse-item__title-label"},vC={key:0,class:"fox-collapse-item__title-sub"},bC=["innerHTML"],kC={key:0,class:"fox-collapse__item-extraWrapper"},SC={class:"fox-collapse__item-extraWrapper__extraRender"},CC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function wC(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",pC,[t.createElementVNode("view",hC,[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,gC)),e.label?(t.openBlock(),t.createElementBlock("view",yC,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",vC,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,bC)),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",kC,[t.createElementVNode("div",SC,[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",CC,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const Oa=oe(mC,[["render",wC]]),NC=t.defineComponent({setup(e){return()=>t.h("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}}),{componentName:BC,create:AC,scope:VC}=J("table"),TC=AC({components:{RenderColumn:NC,DownArrow:le.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:o}=ie.useFoxI18n(VC),l=t.reactive({curData:e.data}),r=t.computed(()=>({[BC]:!0})),s=S=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${S.align?S.align:""}`]:!0}),i=S=>S.stylehead?S.stylehead:"",c=S=>S.stylecolumn?S.stylecolumn:"",d=S=>e.columns.filter(v=>v.key===S)[0],p=S=>{const v=e.columns.filter(g=>g.key===S);return v[0].stylecolumn?v[0].stylecolumn:""},u=S=>{S.sorter&&(n("sorter",S),l.curData=typeof S.sorter=="function"?l.curData.sort(S.sorter):S.sorter==="default"?l.curData.sort():l.curData)},h=()=>e.columns.map(S=>[S.key,S.render]);return t.watch(()=>e.data,S=>{l.curData=S.slice()}),{...t.toRefs(l),classes:r,cellClasses:s,getColumnItem:d,getColumnItemStyle:p,handleSorterClick:u,sortDataItem:h,t:o,stylehead:i,stylecolumn:c}}}),$C={class:"fox-table__main__head"},EC={class:"fox-table__main__head__tr"},xC=["onClick"],DC={class:"fox-table__main__body"},IC={key:1},qC={key:0,class:"fox-table__nodata"},PC={key:0,class:"fox-table__nodata__text"},MC={key:1,class:"fox-table__summary"},LC=["innerHTML"];function zC(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",$C,[t.createElementVNode("view",EC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:d=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,xC))),128))])]),t.createElementVNode("view",DC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([d,p])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:t.normalizeStyle(e.getColumnItemStyle(d))},[typeof c[d]=="function"||typeof p=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[p,c[d]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",IC,t.toDisplayString(c[d]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",qC,[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",PC,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",MC,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,LC)])):t.createCommentVNode("",!0)],2)}const Ra=oe(TC,[["render",zC]]),{componentName:OC,create:RC}=J("ellipsis"),FC=RC({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(()=>({[OC]:!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(b=>{o.style.setProperty(b,g.getPropertyValue(b))}),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),d()},d=()=>{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"?u([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,b=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,b)};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,b),o.offsetHeight<=l?e.direction==="end"?p(f,y):p(g,f):e.direction==="end"?p(g,f):p(f,y)},u=(g,y)=>{const m=s.expanded?e.collapseText:e.expandText,b=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],b)};const f=Math.floor((g[0]+g[1])/2),B=Math.ceil((y[0]+y[1])/2);return o.innerText=e.content.slice(0,f)+e.symbol+m+e.symbol+e.content.slice(B,b),o.offsetHeight<=l?u([f,g[1]],[y[0],B]):u([g[0],f],[B,y[1]])},h=g=>{if(!g)return 0;const y=g.match(/^\d*(\.\d*)?/);return y?Number(y[0]):0},S=g=>{g==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},v=()=>{n("click")};return{...t.toRefs(s),root:a,ellipsis:r,classes:i,clickHandle:S,handleClick:v}}}),KC={key:0},UC={key:1},HC={key:2};function jC(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",KC,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",UC,[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",HC,[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 Fa=oe(FC,[["render",jC]]),{componentName:WC,create:YC}=J("animate"),XC=YC({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,[`${WC}-${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}}}),QC={class:"fox-animate"};function GC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",QC,[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 Ka=oe(XC,[["render",GC]]),{componentName:ZC,create:JC}=J("watermark"),_C=JC({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.reactive({base64Url:""}),{zIndex:o,gapX:l,gapY:r,width:s,height:i,rotate:c,image:d,imageWidth:p,imageHeight:u,content:h,fontStyle:S,fontWeight:v,fontColor:g,fontSize:y,fontFamily:m}=e,b=()=>{const B=document.createElement("canvas"),w=window.devicePixelRatio,C=B.getContext("2d"),k=`${(l+s)*w}px`,N=`${(r+i)*w}px`,A=s*w,$=i*w;if(B.setAttribute("width",k),B.setAttribute("height",N),C){if(d){C.translate(A/2,$/2),C.rotate(Math.PI/180*Number(c));const T=new Image;T.crossOrigin="anonymous",T.referrerPolicy="no-referrer",T.src=d,T.onload=()=>{C.drawImage(T,-p*w/2,-u*w/2,p*w,u*w),C.restore(),a.base64Url=B.toDataURL()}}else if(h){C.textBaseline="middle",C.textAlign="center",C.translate(A/2,$/2),C.rotate(Math.PI/180*Number(c));const T=Number(y)*w;C.font=`${S} normal ${v} ${T}px/${$}px ${m}`,C.fillStyle=g,C.fillText(h,0,0),C.restore(),a.base64Url=B.toDataURL()}}else throw new Error("当前环境不支持Canvas")};b(),t.watch(()=>[o,l,r,s,i,c,d,p,u,h,S,v,g,y,m],()=>{b()});const f=t.computed(()=>{const B=ZC;return{[B]:!0,[`${B}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:f}}});function ew(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 Ua=oe(_C,[["render",ew]]);function tw(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:nw,create:ow}=J("trend-arrow"),lw=ow({components:{TriangleUp:le.TriangleUp,TriangleDown:le.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=t.reactive({rateTrend:e.rate>0}),a=t.computed(()=>({[nw]:!0})),o=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;n.rateTrend=r>0;const d=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${tw(Number(d),s)}%`}),l=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:d}=e;return{color:d===0?c:i?n.rateTrend?s:r:c}});return{...t.toRefs(n),classes:a,calcRate:o,calcStyle:l}}});function aw(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 Ha=oe(lw,[["render",aw]]),{create:rw}=J("tour"),sw=rw({components:{[en.name]:en,Close:le.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),l=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:p,maskWidth:u,maskHeight:h}=e,{width:S,height:v,left:g,top:y}=o.value,m=[g+S/2,y+v/2],b=Number(u||S),f=Number(h||v);return{width:`${b+ +p[1]*2}px`,height:`${f+ +p[0]*2}px`,top:`${m[1]-f/2-+p[0]}px`,left:`${m[0]-b/2-+p[1]}px`}}),s=p=>{p=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,t.nextTick(()=>{a.showPopup=!0,i()}),n("change",a.active)},i=()=>{const p=document.querySelector(`#${e.steps[a.active].target}`),u=qe(p);o.value=u},c=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{a.active=0,i()}),t.watch(()=>e.modelValue,p=>{p&&i(),a.active=0,a.showTour=p,a.showPopup=p}),{...t.toRefs(a),classes:l,maskStyle:r,changeStep:s,close:c,handleClickMask:d}}}),iw={key:0,class:"fox-tour-content"},cw={key:0,class:"fox-tour-content-top"},uw={class:"fox-tour-content-inner"},dw={class:"fox-tour-content-bottom"},fw={class:"fox-tour-content-bottom-init"},mw={class:"fox-tour-content-bottom-operate"},pw={key:1,class:"fox-tour-content fox-tour-content-tile"},hw={class:"fox-tour-content-inner"};function gw(e,n,a,o,l,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-popover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=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",iw,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",cw,[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",uw,t.toDisplayString(c.content),1),t.createElementVNode("div",dw,[t.createElementVNode("div",fw,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",mw,[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",pw,[t.createElementVNode("div",hw,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const ja=oe(sw,[["render",gw]]),{create:yw,scope:vw}=J("address"),bw=yw({components:{Location:le.Location,Location2:le.Location2,Check:le.Check,Close:le.Close,Left:le.Left,[pe.name]:pe,[Yt.name]:Yt},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}=ie.useFoxI18n(vw),o=t.ref(null),l=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),d=t.ref(["province","city","country","town"]),p=t.ref(null),u=t.ref([0,0,0,0]),h=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),S=V=>{if(!Array.isArray(V))throw new TypeError("params muse be array.");if(!V.length)return[];V.forEach(x=>{if(!x.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const q=[];return V=V.sort((x,z)=>x.title.localeCompare(z.title)),V.forEach(x=>{const z=q.findIndex(U=>U.title===x.title);z<=-1?q.push({title:x.title,list:[].concat(x)}):q[z].list.push(x)}),q};let v=t.ref([]),g=t.reactive({});const y=t.ref("self"),m=t.ref(20),b=()=>{const V=e.modelValue,q=V.length;if(q>0){if(i.value=q-1,h.value.length==0){i.value=0;return}for(let x=0;x<q;x++){let z=[];switch(x){case 0:z=e.province;break;case 1:z=e.city;break;case 2:z=e.country;break;default:z=e.town}v.value[x]=z.filter(U=>U.id==V[x])[0]}B()}},f=(V,q)=>V&&V.name||i.value<q&&V?V.name:e.columnsPlaceholder[q]||a("select"),B=()=>{k(),t.nextTick(()=>{const V=l.value&&l.value.getElementsByClassName("active")[0];if(V){const q=V.offsetLeft;m.value=q||20}})},w=V=>{const q=i.value;c.value=i.value;const x={custom:d.value[q]};v.value[q]=V;for(let z=q+2;z<4;z++)v.value.splice(z,1);q<3?(i.value=q+1,B(),x.next=d.value[i.value],x.value=V,n("change",x)):($(),n("update:modelValue"))},C=(V,q)=>{c.value=i.value,f(V,q)&&(i.value=q,B())},k=()=>{const V=p.value,q=c.value,x=u.value[i.value];V?.scrollTop&&(u.value[q]=V?.scrollTop),t.nextTick(()=>{V?.scrollTo({top:x,behavior:"auto"})})},N=V=>{const q=e.existAddress;let x={};q.forEach(z=>{z&&z.selectedAddress&&(x=z),z.selectedAddress=!1}),V.selectedAddress=!0,g=V,n("selected",x,V,q),$()},A=()=>{v.value=[],i.value=0,B()},$=(V="self")=>{y.value=V=="cross"?"cross":"self",r.value=!1},T=()=>{y.value="mask"},K=()=>{const V={addressIdStr:"",addressStr:"",province:v.value[0],city:v.value[1],country:v.value[2],town:v.value[3]},q={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(x=>{const z=v.value[x];V.addressIdStr+=`${x?"_":""}${z&&z.id||0}`,V.addressStr+=z&&z.name||""}),q.data=V):q.data=g,A(),y.value=="self"?n("close",q):n("close-mask",{closeWay:y}),n("update:visible",!1)},Z=()=>{const V=s.value;s.value=V=="exist"?"custom":"exist",A(),n("switch-module",{type:s.value})},E=(V,q)=>{w(q)};return t.watch(()=>e.visible,V=>{r.value=V}),t.watch(()=>r.value,V=>{V&&b()}),{showPopup:r,privateType:s,tabIndex:i,tabName:d,selectedRegion:v,switchModule:Z,closeWay:y,close:K,getTabName:f,nextAreaList:w,regionLine:o,tabRegion:l,lineDistance:m,changeRegionTab:C,selectedExist:N,clickOverlay:T,handClose:$,handleElevatorItem:E,initCustomSelected:b,...t.toRefs(e),t:a,regionList:h,transformData:S,scrollDom:p}}}),kw={class:"fox-address"},Sw={class:"fox-address__header"},Cw={class:"fox-address__header__title"},ww={key:0,class:"fox-address__custom"},Nw={class:"fox-address__region",ref:"tabRegion"},Bw=["onClick"],Aw={key:0,class:"active fox-address__region-item"},Vw={key:0,class:"fox-address__detail"},Tw={class:"fox-address__detail-list",ref:"scrollDom"},$w=["onClick"],Ew={key:1,class:"fox-address__elevator-group"},xw={key:1,class:"fox-address__exist"},Dw={class:"fox-address__exist-group"},Iw={class:"fox-address__exist-group-list"},qw=["onClick"],Pw={class:"fox-address__exist-item-info"},Mw={key:0,class:"fox-address__exist-item-info-name"},Lw={key:1,class:"fox-address__exist-item-info-phone"},zw={class:"fox-address__exist-item-info-bottom"},Ow={class:"fox-address__exist-choose-btn"};function Rw(e,n,a,o,l,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),d=t.resolveComponent("fox-elevator"),p=t.resolveComponent("Location2"),u=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(u,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",kw,[t.createElementVNode("view",Sw,[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",Cw,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",ww,[t.createElementVNode("view",Nw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,S)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",S==e.tabIndex?"active":""]),key:S,onClick:v=>e.changeRegionTab(h,S)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,S)),1)],10,Bw))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",Aw,[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",Vw,[t.createElementVNode("ul",Tw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,S)=>(t.openBlock(),t.createElementBlock("li",{key:S,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick:v=>e.nextAreaList(h)},[t.createElementVNode("div",null,[e.selectedRegion[e.tabIndex]?.id==h.id?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(h.name),1)])],10,$w))),128))],512)])):(t.openBlock(),t.createElementBlock("view",Ew,[t.createVNode(d,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",xw,[t.createElementVNode("div",Dw,[t.createElementVNode("ul",Iw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,S)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:S,onClick:v=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(p,{class:"fox-address-select-icon",size:"13px"})]),h.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",Pw,[h.name?(t.openBlock(),t.createElementBlock("div",Mw,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",Lw,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",zw,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,qw))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:n[2]||(n[2]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.createElementVNode("div",Ow,t.toDisplayString(e.customAndExistTitle||e.t("chooseAnotherAddress")),1)])):t.createCommentVNode("",!0)])),t.renderSlot(e.$slots,"bottom")])]),_:3},8,["lock-scroll","onClose","onClickOverlay","visible","teleportDisable","teleport"])}const Wa=oe(bw,[["render",Rw]]),{componentName:Fw,create:Kw}=J("barrage"),Uw=Kw({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(()=>({[Fw]:!0}));let l=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),d=t.ref(e.top),p=t.ref(0),u=e.speeds,h=t.ref(0);t.onMounted(()=>{S(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(g(),p.value=0,v("hidden")):document.visibilityState==="visible"&&S()})}),t.onUnmounted(()=>{i.value=[],g()});const S=()=>{h.value=l.value.offsetWidth,a&&v("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${h.value}px`),m()},300)},v=f=>{let w=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const C=[];w&&Array.from(w).forEach(k=>{f=="init"?(k.style.opacity="0",C.push(k)):(k.classList="",k.style={})}),f=="init"&&(i.value=C)},g=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,f=>{e.danmu.length>0&&(i.value=[...f])});const y=f=>{const B=p.value%i.value.length;!e.loop&&p.value===i.value.length?i.value.splice(i.value.length,0,f):i.value.splice(B,0,f)},m=()=>{g(),s=setTimeout(()=>{b()},e.frequency)},b=()=>{const f=e.loop?p.value%i.value.length:p.value;let B=document.createElement("view");a&&typeof i.value[f]=="object"?(B=i.value[f],B?.classList?.add("fox-barrage__item")):(B.innerHTML=i.value[f],B.classList.add("fox-barrage__item"),r.value.appendChild(B)),t.nextTick(()=>{const w=B.offsetHeight;if(B?.classList?.add("move"),B.style.animationDuration=`${u}ms`,B.style.top=f%c.value*(w+d.value)+20+"px",B.style.opacity="1",!a){const C=B.offsetWidth;B.style.width=C+20+"px"}B.addEventListener("animationend",()=>{a?B.classList.remove("move"):r.value.removeChild(B)}),!(!e.loop&&p.value>=i.value.length-1)&&(p.value++,p.value>=i.value.length&&(p.value=0),B.removeEventListener("animationend",()=>{}),m())})};return{classTime:n,classes:o,danmuList:i,dmBody:l,dmContainer:r,add:y}}});function Hw(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 Ya=oe(Uw,[["render",Hw]]),{componentName:jw,create:Ww,scope:Yw}=J("signature"),Xw=Ww({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:a}=ie.useFoxI18n(Yw),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),s=t.computed(()=>({[jw]:!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 b=document.createElement("canvas");return!!(b.getContext&&b.getContext("2d"))},d=()=>{l.value.addEventListener(i.events[0],p,!1)},p=b=>{b.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(i.events[1],u,!1),l.value.addEventListener(i.events[2],h,!1),l.value.addEventListener(i.events[3],S,!1)},u=b=>{b.preventDefault();let f=i.isSupportTouch?b.touches[0]:b;n("signing",f);let B=l.value.getBoundingClientRect(),w=f.clientX-B.left,C=f.clientY-B.top;i.ctx.lineTo(w,C),i.ctx.stroke()},h=b=>{b.preventDefault(),n("end"),l.value.removeEventListener(i.events[1],u,!1),l.value.removeEventListener(i.events[2],h,!1)},S=b=>{b.preventDefault(),l.value.removeEventListener(i.events[1],u,!1),l.value.removeEventListener(i.events[2],h,!1)},v=()=>{l.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},g=()=>{m(l.value)},y=b=>{if(!b)return!0;var f=document.createElement("canvas");return f.width=b.width,f.height=b.height,b?.toDataURL()==f.toDataURL()},m=b=>{let f;switch(e.type){case"png":f=b.toDataURL("image/png");break;case"jpg":f=b.toDataURL("image/jpeg",.8);break}const B=y(b)?"请绘制签名":b,w=y(b)?"":f;n("confirm",B,w)};return t.onMounted(()=>{c()&&(i.ctx=l.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,d())}),{...o,...t.toRefs(i),canvas:l,wrap:r,isCanvasSupported:c,confirm:g,clear:v,classes:s}}}),Qw={class:"fox-signature-inner",ref:"wrap"},Gw=["height","width"],Zw={key:0,class:"fox-signature-unsopport"};function Jw(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",Qw,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,Gw),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",Zw,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 Xa=oe(Xw,[["render",Jw]]),{componentName:_w,create:eN,scope:tN}=J("time-select"),nN=eN({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:a}=ie.useFoxI18n(tN),o=t.computed(()=>({[_w]:!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}}}),oN={class:"fox-time-select__title"},lN={class:"fox-time-select__title__fixed"},aN={key:0},rN={class:"fox-time-select__content"},sN={class:"fox-time-select__content__pannel"},iN={class:"fox-time-select__content__detail"};function cN(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",oN,[t.createElementVNode("view",lN,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",aN,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",rN,[t.createElementVNode("view",sN,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",iN,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Qa=oe(nN,[["render",cN]]),{componentName:uN,create:dN}=J("time-pannel"),fN=dN({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(()=>({[uN]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function mN(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 Ga=oe(fN,[["render",mN]]),{componentName:pN,create:hN}=J("time-detail"),gN=hN({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(()=>({[pN]:!0})),s=d=>{let p=l.currentTime.find(u=>u.key==l.currentKey);if(p)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":p.list.filter(u=>u===d).length>0}},i=t.computed(()=>e.times.find(d=>d.key==l.currentKey).list),c=d=>{n.emit("select",d)};return{classes:r,...t.toRefs(l),getClass:s,renderData:i,handleTime:c}}}),yN={class:"fox-time-detail__detail fox-time-detail__detail--moring"},vN={class:"fox-time-detail__detail__list"},bN=["onClick"];function kN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",yN,[t.createElementVNode("view",vN,[(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,bN))),128))])])],2)}const Za=oe(gN,[["render",kN]]),{create:SN,scope:CN}=J("sku-header"),wN=SN({props:{goods:{type:Object,default:{}}},emits:[],components:{[_e.name]:_e},setup(e,{emit:n,slots:a}){const{t:o}=ie.useFoxI18n(CN);return{getSlots:r=>a[r],t:o}}}),NN={class:"fox-sku-header"},BN=["src"],AN={class:"fox-sku-header-right"},VN={key:3,class:"fox-sku-header-right-extra"};function TN(e,n,a,o,l,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",NN,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,BN),t.createElementVNode("view",AN,[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",VN,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const $N=oe(wN,[["render",TN]]),{create:EN}=J("sku-select"),xN=EN({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})}}}}),DN={class:"fox-sku-select"},IN={class:"fox-sku-select-item-title"},qN={class:"fox-sku-select-item-skus"},PN=["onClick"];function MN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",DN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:s.id},[t.createElementVNode("view",IN,t.toDisplayString(s.name),1),t.createElementVNode("view",qN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:p=>e.changeSaleChild(c,d,s,i),key:c.name},t.toDisplayString(c.name),11,PN))),128))])]))),128))])}const LN=oe(xN,[["render",MN]]),{create:zN}=J("sku-stepper"),ON=zN({props:{stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},stepperExtraText:{type:[Function,Boolean],default:!1},stepperTitle:{type:String,default:"购买数量"}},emits:["click","changeSku","changeStepper","clickBtnOptions","overLimit","reduce","add"],components:{[et.name]:et},setup(e,{emit:n}){const a=t.ref(e.stepperMin);return t.onMounted(()=>{a.value=e.stepperMin}),{goodsCount:a,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,d)=>{n("overLimit",{action:d,value:parseInt(a.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&ct(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),RN={class:"fox-sku-stepper"},FN={class:"fox-sku-stepper-title"},KN=["innerHTML"],UN={class:"fox-sku-stepper-count"};function HN(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",RN,[t.createElementVNode("view",FN,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,KN),t.createElementVNode("view",UN,[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 jN=oe(ON,[["render",HN]]),{create:WN}=J("sku-operate"),YN=WN({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]}}}),XN={key:0,class:"fox-sku-operate"},QN={key:0,class:"fox-sku-operate-desc"},GN={key:1,class:"fox-sku-operate-btn"},ZN=["onClick"];function JN(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",XN,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",QN,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",GN,[(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,ZN))),128))]))])):t.createCommentVNode("",!0)}const _N=oe(YN,[["render",JN]]),{create:eB,scope:tB}=J("sku"),nB=eB({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:$N,SkuSelect:LN,SkuStepper:jN,SkuOperate:_N,[pe.name]:pe},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=ie.useFoxI18n(tB),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)},d=y=>{s.value=y,n("change-stepper",y)},p=y=>{n("add",y)},u=y=>{n("reduce",y)},h=y=>{n("over-limit",y)},S=y=>{n("click-btn-operate",{type:y,value:s.value})},v=y=>{y=="icon"&&n("click-close-icon"),y=="overlay"&&n("click-overlay"),y=="close"&&n("close"),r.value=!1},g=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:v,selectSku:c,changeStepper:d,stepperOverLimit:h,clickBtnOperate:S,add:p,reduce:u,getSlots:i,...l}}}),oB={class:"fox-sku"},lB={class:"fox-sku-content"};function aB(e,n,a,o,l,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),d=t.resolveComponent("sku-operate"),p=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(p,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=u=>e.showPopup=u),onClickCloseIcon:n[1]||(n[1]=u=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=u=>e.closePopup("overlay")),onClose:n[3]||(n[3]=u=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",oB,[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",lB,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(d,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const Ja=oe(nB,[["render",aB]]),{create:rB}=J("card"),sB=rB({components:{[_e.name]:_e,[_t.name]:_t},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:n,slots:a}){return{isHaveSlot:l=>a[l]}}}),iB={class:"fox-card"},cB={class:"fox-card__left"},uB=["src"],dB={class:"fox-card__right"},fB={class:"fox-card__right__title"},mB={key:0,class:"fox-card__right__price"},pB={class:"fox-card__right__other"},hB={class:"fox-card__right__shop"},gB={class:"fox-card__right__shop__name"};function yB(e,n,a,o,l,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",iB,[t.createElementVNode("div",cB,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,uB)]),t.createElementVNode("div",dB,[t.createElementVNode("div",fB,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",mB,[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",pB,[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",hB,[t.createElementVNode("div",gB,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const _a=oe(sB,[["render",yB]]),{create:vB,scope:bB}=J("ecard"),kB=vB({components:{[et.name]:et},props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:Array,default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"¥"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(bB),o=t.ref(null),l=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,S)=>{o.value=S,s.value=e.cardAmountMin,l.value=h.price,n("change",h),n("update:modelValue",h.price)},d=h=>{let v=h.target.value.replace(/[^\d]/g,"");r.value=v,l.value=v,Number(v)>e.cardAmountMax&&(r.value=e.cardAmountMax,l.value=e.cardAmountMax),Number(v)<e.cardAmountMin&&(r.value=e.cardAmountMin,l.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},p=()=>{o.value="input",s.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},u=h=>{s.value=h,n("changeStep",s.value,l.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:u,change:d,inputClick:p,stepValue:s,currentIndex:o,inputValue:r,money:i,t:a}}}),SB={class:"fox-ecard"},CB={class:"fox-ecard__title"},wB={class:"fox-ecard__list"},NB=["onClick"],BB={class:"fox-ecard__list__input--con"},AB=["placeholder"],VB={class:"fox-ecard__list__step"};function TB(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",SB,[t.createElementVNode("view",CB,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",wB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:d=>e.handleClick(i,c)},t.toDisplayString(i.price),11,NB))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:n[2]||(n[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",BB,[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,AB),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",VB,[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 er=oe(kB,[["render",TB]]),{create:$B,scope:EB}=J("address-list-item"),xB=$B({components:{Del:le.Del,Edit:le.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(EB);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}}}),DB={class:"fox-address-list-item__info"},IB={class:"fox-address-list-item__info-contact"},qB={class:"fox-address-list-item__info-contact-name"},PB={class:"fox-address-list-item__info-contact-tel"},MB={key:0,class:"fox-address-list-item__info-contact-default"},LB={class:"fox-address-list-item__info-handle"},zB={class:"fox-address-list-item__addr"};function OB(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",DB,[t.createElementVNode("div",IB,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",qB,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",PB,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",MB,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",LB,[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",zB,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const as=oe(xB,[["render",OB]]),{create:RB}=J("address-list-general"),FB=RB({props:{item:{type:Object,default:{}},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1}},emits:["delIcon","editIcon","clickItem","longDown","longCopy","longSet","longDel","swipeDel"],components:{ItemContents:as,[Oe.name]:Oe,[Gt.name]:Gt},setup(e,{emit:n}){const a=()=>t.h(as,{item:e.item,onDelIcon(w){s(w)},onEditIcon(w){i(w)},onClickItem(w){c(w)}});let o=null;const l=t.ref(!1),r=t.ref(!1),s=w=>{n("delIcon",w,e.item),w.stopPropagation()},i=w=>{n("editIcon",w,e.item),w.stopPropagation()},c=w=>{l.value||(n("clickItem",w,e.item),w.stopPropagation())},d=w=>{n("longDel",w,e.item),w.stopPropagation()},p=w=>{o=0,r.value=!0,n("longDown",w,e.item)};return{renderCompontent:a,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:d,holddownstart:w=>{o=setTimeout(()=>{p(w)},300)},holddownmove:()=>{clearTimeout(o)},holddownend:()=>{clearTimeout(o)},copyCLick:w=>{n("longCopy",w,e.item),w.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:w=>{n("longSet",w,e.item),w.stopPropagation()},maskClick:w=>{o!=0&&(r.value=!1),w.stopPropagation(),w.preventDefault()},swipeDelClick:w=>{n("swipeDel",w,e.item),w.stopPropagation()},swipestart:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),KB={key:0,class:"fox-address-list-general"},UB={class:"fox-address-list-swipe"};function HB(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",UB,[(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",KB,[(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 jB=oe(FB,[["render",HB]]),{componentName:WB,create:YB,scope:XB}=J("address-list"),QB=YB({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:jB,[Oe.name]:Oe},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(XB),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[WB]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(g=>ks(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()},d=(g,y)=>{n("clickItem",g,y),g.stopPropagation()},p=(g,y)=>{n("longCopy",g,y),g.stopPropagation()},u=(g,y)=>{n("longSet",g,y),g.stopPropagation()},h=(g,y)=>{n("longDel",g,y),g.stopPropagation()},S=(g,y)=>{n("swipeDel",g,y),g.stopPropagation()},v=g=>{n("add",g),g.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:d,clickLongCopy:p,clickLongSet:u,clickLongDel:h,clickSwipeDel:S,addAddress:v,dataArray:o,t:a}}});function GB(e,n,a,o,l,r){const s=t.resolveComponent("general-shell"),i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,d)=>(t.openBlock(),t.createBlock(s,{key:d,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:n[0]||(n[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const tr=oe(QB,[["render",GB]]),{create:ZB}=J("category"),JB=ZB({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}}}),_B={class:"fox-category"},eA={class:"fox-category__cateList"},tA={key:0},nA=["onClick"];function oA(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",_B,[t.createElementVNode("div",eA,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",tA,[(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,nA)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const nr=oe(JB,[["render",oA]]),{create:lA}=J("category-pane"),aA=lA({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),rA={class:"fox-category-pane"},sA={key:0,class:"fox-category-pane__cateListRight"},iA={class:"fox-category-pane__childTitle"},cA={key:0,class:"fox-category-pane__childItemList"},uA=["onClick"],dA=["src"],fA={class:"fox-category-pane__skuImg"},mA={key:1,class:"fox-category-pane__cateListRight"},pA={class:"fox-category-pane__childTitle"},hA={key:0,class:"fox-category-pane__childItemList"},gA=["onClick"],yA={class:"fox-category-pane__skuName"},vA={key:2,class:"fox-category-pane__selfItemList"},bA=["onClick"];function kA(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",rA,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",sA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",iA,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",cA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:p=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,dA),t.createElementVNode("div",fA,t.toDisplayString(c?.catName),1)],8,uA))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",mA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",pA,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",hA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:p=>e.onChange(c)},[t.createElementVNode("div",yA,t.toDisplayString(c?.catName),1)],8,gA))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",vA,[(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,bA))),128))])):t.createCommentVNode("",!0)])}const or=oe(aA,[["render",kA]]),{create:SA}=J("comment-header"),CA=SA({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")}}}}),wA={class:"fox-comment-header__user"},NA={class:"fox-comment-header__user-avter"},BA=["src"],AA={class:"fox-comment-header__user-score"},VA={key:0,class:"fox-comment-header__time"};function TA(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",wA,[t.createElementVNode("view",NA,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,BA)):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",AA,[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",VA,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 $A=oe(CA,[["render",TA]]),{create:EA}=J("comment-images"),xA=EA({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:le.Right},emits:["click","clickImages"],setup(e,{emit:n}){const a=t.ref(!1),o=t.ref(1),l=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),l.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),l.value=e.videos.concat(e.images)}),{isShowImage:a,initIndex:o,showImages:(s,i)=>{const{videos:c,images:d}=e,p=s=="img"?i-c.length:i;n("clickImages",{type:s,index:p,value:s=="img"?d[p]:c[p]})},totalImages:l}}}),DA=["onClick"],IA=["src"],qA=["onClick"],PA=["src"],MA={key:0,class:"fox-comment-images__mask"};function LA(e,n,a,o,l,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:d=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,IA),n[0]||(n[0]=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1))],8,DA))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:d=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,PA),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",MA,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,qA)):t.createCommentVNode("",!0)],64))),128))],2)}const zA=oe(xA,[["render",LA]]),{create:OA,scope:RA}=J("comment-bottom"),FA=OA({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:le.Fabulous,Comment:le.Comment,MoreX:le.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(RA),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}}}),KA={class:"fox-comment-bottom"},UA={key:0},HA={class:"fox-comment-bottom__cpx"},jA=["onClick"];function WA(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",KA,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...d)=>e.handleClick&&e.handleClick(...d)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",UA,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",HA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(d,p)=>(t.openBlock(),t.createElementBlock("view",{key:p,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${d}`]),onClick:u=>e.operate(d)},[d!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[d]),1),d=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),d=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=u=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,jA))),128))])])}const YA=oe(FA,[["render",WA]]),{componentName:XA,create:QA,scope:GA}=J("comment"),ZA=QA({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:$A,CommentImages:zA,CommentBottom:YA,Right:le.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(GA),o=t.computed(()=>({[XA]:!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}}}),JA=["innerHTML"],_A={class:"fox-comment__follow-title"},e2={class:"fox-comment__follow-com"},t2={key:0,class:"fox-comment__follow-img"};function n2(e,n,a,o,l,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),d=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:n[0]||(n[0]=(...p)=>e.handleClick&&e.handleClick(...p)),innerHTML:e.info.content},null,12,JA),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",_A,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",e2,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",t2,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",e.follow.images.length))+" ",1),t.createVNode(c,{width:"12px"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(d,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const lr=oe(ZA,[["render",n2]]),o2=[pl,gl,yl,vl,bl,Ne,oo,Sl,Cl,wl,Nl,Bl,ro,Al,Vl,$l,El,po,ho,xl,go,yo,Dl,Il,Et,ql,Pl,So,Ml,Ll,ln,an,co,zl,Ol,Rl,Fl,it,Kl,Ul,ao,lo,Hl,jl,Wl,Oe,Yl,Xl,dt,pe,Ql,Gl,Zl,Jl,Wt,_l,ea,ta,na,oa,la,aa,ra,sa,Yt,ia,ca,ua,da,fa,ma,pa,Xt,ko,uo,mo,fo,et,Bt,on,ha,ga,ya,Gt,va,ba,ka,Zt,bo,Sa,wa,vo,xt,Ba,Aa,Jt,Va,Ta,Qt,$a,Ea,xa,At,Da,Ia,Vt,Tt,_e,Co,qa,Pa,Ma,_t,en,La,za,Oa,Ra,Fa,Ka,Ua,Ha,ja,Wa,Ya,Xa,Qa,Ga,Za,Ja,_a,er,tr,nr,or,lr],l2=new ji(o2,"4.0.0");exports.AbstractPageScopeKey=ml;exports.ActionSheet=va;exports.ActionsheetItem=Ml;exports.ActionsheetPane=So;exports.Address=Wa;exports.AddressList=tr;exports.Animate=Ka;exports.Audio=Ba;exports.AudioOperate=Aa;exports.Avatar=Jt;exports.AvatarGroup=Va;exports.BackTop=ba;exports.Badge=Ma;exports.Barrage=Ya;exports.Broadcast=cl;exports.BroadcastKey=Ce;exports.Button=Oe;exports.ButtonsItem=Sl;exports.Calendar=mo;exports.CalendarItem=El;exports.Card=_a;exports.Cascader=uo;exports.CascaderItem=Vl;exports.Category=nr;exports.CategoryPane=or;exports.Cell=Yl;exports.CellGroup=Xl;exports.Checkbox=go;exports.CheckboxGroup=yo;exports.CheckboxItem=Dl;exports.CircleProgress=$a;exports.Col=Zl;exports.Collapse=za;exports.CollapseItem=Oa;exports.Comment=lr;exports.Content=vl;exports.CountDown=Pa;exports.CountUp=qa;exports.DataItemsKey=ht;exports.DateItem=$l;exports.DatePicker=fo;exports.DateUtils=se;exports.Dialog=Zt;exports.Divider=_l;exports.Domain=Hn;exports.DomainKey=xe;exports.DomainProvider=jl;exports.Drag=ka;exports.Dropdown=Ul;exports.Ecard=er;exports.Elevator=Yt;exports.Ellipsis=Fa;exports.Empty=xa;exports.FixedNav=oa;exports.FloatingButton=Rl;exports.FooterBar=yl;exports.FoxActionSheet=va;exports.FoxActionsheetItem=Ml;exports.FoxActionsheetPane=So;exports.FoxAddress=Wa;exports.FoxAddressList=tr;exports.FoxAnimate=Ka;exports.FoxAudio=Ba;exports.FoxAudioOperate=Aa;exports.FoxAvatar=Jt;exports.FoxAvatarGroup=Va;exports.FoxBackTop=ba;exports.FoxBadge=Ma;exports.FoxBarrage=Ya;exports.FoxButton=Oe;exports.FoxButtonsItem=Sl;exports.FoxCalendar=mo;exports.FoxCalendarItem=El;exports.FoxCard=_a;exports.FoxCascader=uo;exports.FoxCascaderItem=Vl;exports.FoxCategory=nr;exports.FoxCategoryPane=or;exports.FoxCell=Yl;exports.FoxCellGroup=Xl;exports.FoxCheckbox=go;exports.FoxCheckboxGroup=yo;exports.FoxCheckboxItem=Dl;exports.FoxCircleProgress=$a;exports.FoxCol=Zl;exports.FoxCollapse=za;exports.FoxCollapseItem=Oa;exports.FoxComment=lr;exports.FoxContent=vl;exports.FoxCountDown=Pa;exports.FoxCountUp=qa;exports.FoxDateItem=$l;exports.FoxDatePicker=fo;exports.FoxDialog=Zt;exports.FoxDivider=_l;exports.FoxDomainProvider=jl;exports.FoxDrag=ka;exports.FoxDropdown=Ul;exports.FoxEcard=er;exports.FoxElevator=Yt;exports.FoxEllipsis=Fa;exports.FoxEmpty=xa;exports.FoxFixedNav=oa;exports.FoxFloatingButton=Rl;exports.FoxFooterBar=yl;exports.FoxGrid=ea;exports.FoxGridItem=ta;exports.FoxGroup=bl;exports.FoxHeaderBar=gl;exports.FoxHintText=Et;exports.FoxImage=Ql;exports.FoxImagePreview=Co;exports.FoxIndicator=da;exports.FoxInfiniteLoading=bo;exports.FoxInputItem=wl;exports.FoxInputNumber=et;exports.FoxInputNumberItem=Ll;exports.FoxItem=Ne;exports.FoxLayout=Gl;exports.FoxLinkItem=ql;exports.FoxList=Ta;exports.FoxMapping=Hl;exports.FoxMenu=la;exports.FoxMenuItem=aa;exports.FoxMessageBox=it;exports.FoxMoneyItem=Nl;exports.FoxMoreButton=Fl;exports.FoxNavbar=na;exports.FoxNoticeBar=Ea;exports.FoxNotify=wa;exports.FoxNumberKeyboard=ya;exports.FoxOverLay=dt;exports.FoxPage=pl;exports.FoxPagination=ia;exports.FoxPicker=on;exports.FoxPickerItem=Al;exports.FoxPopover=en;exports.FoxPopoverDialog=ao;exports.FoxPopup=pe;exports.FoxPopupWrapper=Kl;exports.FoxPrice=_e;exports.FoxProgress=Qt;exports.FoxPullRefresh=Sa;exports.FoxRadio=po;exports.FoxRadioGroup=ho;exports.FoxRadioItem=xl;exports.FoxRange=Xt;exports.FoxRate=Bt;exports.FoxRateItem=Pl;exports.FoxRollingProvider=Wl;exports.FoxRow=Jl;exports.FoxRowItem=oo;exports.FoxSearchBar=ko;exports.FoxShortPassword=ha;exports.FoxSideNavBar=fa;exports.FoxSideNavBarItem=ma;exports.FoxSignature=Xa;exports.FoxSkeleton=La;exports.FoxSku=Ja;exports.FoxSlotItem=Cl;exports.FoxStep=Ia;exports.FoxSteps=Da;exports.FoxStepsBar=Ol;exports.FoxSticky=Wt;exports.FoxSubSideNavBar=pa;exports.FoxSwipe=Gt;exports.FoxSwiper=Vt;exports.FoxSwiperItem=Tt;exports.FoxSwitch=vo;exports.FoxSwitchItem=Il;exports.FoxTabPane=ua;exports.FoxTabbar=ra;exports.FoxTabbarItem=sa;exports.FoxTable=Ra;exports.FoxTabs=ca;exports.FoxTabsBar=ln;exports.FoxTabsContainer=an;exports.FoxTabsFrame=zl;exports.FoxTabsPane=co;exports.FoxTag=_t;exports.FoxText=lo;exports.FoxTextarea=ro;exports.FoxTextareaItem=Bl;exports.FoxTimeDetail=Za;exports.FoxTimePannel=Ga;exports.FoxTimeSelect=Qa;exports.FoxToast=xt;exports.FoxTour=ja;exports.FoxTrendArrow=Ha;exports.FoxUploader=ga;exports.FoxVideo=At;exports.FoxWaterMark=Ua;exports.Grid=ea;exports.GridItem=ta;exports.Group=bl;exports.HeaderBar=gl;exports.HintText=Et;exports.Image=Ql;exports.ImagePreview=Co;exports.Indicator=da;exports.InfiniteLoading=bo;exports.InnerPageScopeKey=fl;exports.InputItem=wl;exports.InputNumber=et;exports.InputNumberItem=Ll;exports.Item=Ne;exports.Layout=Gl;exports.LinkItem=ql;exports.List=Ta;exports.Mapping=Hl;exports.Menu=la;exports.MenuItem=aa;exports.MessageBox=it;exports.MoneyItem=Nl;exports.MoreButton=Fl;exports.Navbar=na;exports.NoticeBar=Ea;exports.Notify=wa;exports.NumberKeyboard=ya;exports.OverLay=dt;exports.Page=pl;exports.Pagination=ia;exports.Picker=on;exports.PickerItem=Al;exports.Popover=en;exports.PopoverDialog=ao;exports.Popup=pe;exports.PopupWrapper=Kl;exports.Price=_e;exports.PriorityPolicy=qn;exports.Progress=Qt;exports.PullRefresh=Sa;exports.Radio=po;exports.RadioGroup=ho;exports.RadioItem=xl;exports.Range=Xt;exports.Rate=Bt;exports.RateItem=Pl;exports.RollingProvider=Wl;exports.Row=Jl;exports.RowItem=oo;exports.SearchBar=ko;exports.ShortPassword=ha;exports.SideNavBar=fa;exports.SideNavBarItem=ma;exports.Signature=Xa;exports.Skeleton=La;exports.Sku=Ja;exports.SlotItem=Cl;exports.Step=Ia;exports.Steps=Da;exports.StepsBar=Ol;exports.Sticky=Wt;exports.SubSideNavBar=pa;exports.Swipe=Gt;exports.Swiper=Vt;exports.SwiperItem=Tt;exports.Switch=vo;exports.SwitchItem=Il;exports.TabPane=ua;exports.Tabbar=ra;exports.TabbarItem=sa;exports.Table=Ra;exports.Tabs=ca;exports.TabsBar=ln;exports.TabsContainer=an;exports.TabsFrame=zl;exports.TabsPane=co;exports.Tag=_t;exports.Text=lo;exports.Textarea=ro;exports.TextareaItem=Bl;exports.TimeDetail=Za;exports.TimePannel=Ga;exports.TimeSelect=Qa;exports.Toast=xt;exports.Tour=ja;exports.TrendArrow=Ha;exports.UniqueID=no;exports.Uploader=ga;exports.ValidateSchema=Bs;exports.ValidateSchemaKey=ze;exports.Video=At;exports.WaterMark=Ua;exports.cancelRaf=rs;exports.clamp=We;exports.clearNonNumber=Fo;exports.compareTo=Oo;exports.createBroadcast=Kn;exports.createValidateSchema=Un;exports.debounce=Pe;exports.debounceRef=Ii;exports.decimalLength=bs;exports.default=l2;exports.defineBroadcast=Ni;exports.defineConfigDomain=Vs;exports.defineDataItem=Ts;exports.defineDomain=dl;exports.defineItem=Ae;exports.definePageState=$s;exports.defineSimpleItem=$t;exports.deleteGlobalValidator=$i;exports.disabledProperty=$e;exports.divide=il;exports.excludeProps=nt;exports.extend=St;exports.floatData=ks;exports.getGlobalIcons=Qn;exports.getGlobalValidateCheckEvents=Cs;exports.getGlobalValidateResetEvents=Ns;exports.getPageContentAreaHeight=Dn;exports.getPageContentAreaWidth=In;exports.getPageFooterAreaHeight=Yn;exports.getPageHeaderAreaHeight=Wn;exports.getRootDomain=vt;exports.hasSymbol=ms;exports.includeProps=ye;exports.indexOf=Ci;exports.injectAbstractPageScope=nn;exports.injectInnerPageScope=tn;exports.integerLength=vs;exports.isArray=On;exports.isArrayLike=gs;exports.isBrowser=tt;exports.isDate=Ye;exports.isESModule=yi;exports.isEmptyString=ue;exports.isEqual=Ie;exports.isFunction=$n;exports.isHidden=ps;exports.isMap=mi;exports.isNil=Le;exports.isNumberString=Fn;exports.isObject=De;exports.isPlainObject=gi;exports.isPromise=kt;exports.isRegExp=Ro;exports.isSet=pi;exports.isString=ds;exports.isSubPage=zi;exports.isSymbol=hi;exports.isTouch=so;exports.isWindow=hs;exports.lastIndexOf=wi;exports.makeArray=Si;exports.merge=ys;exports.multiply=is;exports.negate=cs;exports.nextTick=bi;exports.numberFormat=zn;exports.objectToString=fs;exports.once=qi;exports.overrideGlobalIcons=Zi;exports.overrideGlobalValidateHandler=Vi;exports.padZero=rt;exports.preventDefault=Ko;exports.property=Ve;exports.provideAbstractPageScope=xs;exports.provideInnerPageScope=Es;exports.px2Number=Li;exports.raf=je;exports.readonlyProperty=Te;exports.setGlobalValidateCheckEvents=Ei;exports.setGlobalValidateHandler=Ai;exports.setGlobalValidateMessages=Di;exports.setGlobalValidateResetEvents=xi;exports.setGlobalValidator=Ti;exports.throttle=xn;exports.toBoolean=be;exports.toNumber=he;exports.toPadding=Fe;exports.toPx=de;exports.toPxDesc=Mi;exports.toPxString=fe;exports.toTypeString=Rn;exports.toValue=Me;exports.tryTimes=ul;exports.typeOf=ct;exports.unNumberFormat=us;exports.updatePageState=Uo;exports.useBroadcast=Ot;exports.useDomain=ot;exports.useExpose=Ee;exports.useInnerSize=Xn;exports.usePageState=jn;exports.usePosition=kl;exports.useRawTouch=io;exports.useRect=qe;exports.useSize=hl;exports.useTouch=at;exports.valueLength=ke;
9
+ `)}}});function Qh(e,n,l,o,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)}var Ul=ne(Xh,[["render",Qh]]),{create:Gh}=Q("sticky"),Zh=Gh({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const l=(0,t.ref)(),o=(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)}:{}),u=()=>{const d=e.container;if(!l.value&&!d)return;const p=Ie(l),c=o.value,v=Ie(c),g=Ie(d);a.height=p.height;const w=()=>{let h=!1;if(e.position==="top")h=d?r.value>p.top&&g.bottom>0:r.value>p.top;else{const f=document.documentElement.clientHeight;h=d?g.bottom>0&&f-r.value-v.height>g.top:f-r.value<p.bottom}return h},y=()=>{if(d)if(e.position==="top"){const h=g.bottom-r.value-v.height;return h<0?h:0}else{const h=document.documentElement.clientHeight,f=g.bottom-(h-r.value);return f<0?f:0}return 0};a.transform=y(),a.fixed=w()};return(0,t.watch)(()=>a.fixed,d=>{n("change",d)}),(0,t.onMounted)(()=>{u(),Yo(l.value).addEventListener("scroll",u,!0)}),(0,t.onUnmounted)(()=>{Yo(l.value).removeEventListener("scroll",u)}),{rootRef:l,rootStyle:s,stickyRef:o,stickyStyle:i}}});function Jh(e,n,l,o,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 Wt=ne(Zh,[["render",Jh]]),{componentName:eg,create:tg}=Q("divider"),ng=tg({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 l=eg;let o={[l]:!0},a={};return e.direction==="horizontal"?a={...o,[`${l}-center`]:n.slots.default,[`${l}-left`]:e.contentPosition==="left",[`${l}-right`]:e.contentPosition==="right",[`${l}-dashed`]:e.dashed,[`${l}-hairline`]:e.hairline}:a={...o,[`${l}-vertical`]:e.direction==="vertical"},a})}}});function og(e,n,l,o,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 Hl=ne(ng,[["render",og]]);function lg(e,n){const l=[],o=a=>{Array.isArray(a)&&a.forEach(r=>{if((0,t.isVNode)(r)){if(n){if(r.type&&r.type.name===n){l.push(r);return}}else l.push(r);r.component?.subTree&&o(r.component.subTree.children),r.children&&o(r.children)}})};return o(e),l}function ag(e,n,l){const o=lg(e.subTree.children,l);n.sort((a,r)=>o.indexOf(a.vnode)-o.indexOf(r.vnode))}function rg(e,n){const l=(0,t.shallowReactive)([]),o=(0,t.getCurrentInstance)(),a=i=>{i.proxy&&(l.push((0,t.markRaw)(i)),ag(o,l,n))},r=i=>{l.splice(l.indexOf((0,t.markRaw)(i)),1)},s=Object.assign;return i=>((0,t.provide)(e,s({add:a,remove:r,internalChildren:l},i)),{internalChildren:l})}var{componentName:Lr}=Q("grid"),Ri=Symbol("grid"),ig={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}},sg={props:ig,setup(e,{slots:n}){rg(Ri,`${Lr}-item`)({props:e});const l=(0,t.computed)(()=>{const a=Lr;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),o=(0,t.computed)(()=>{const a={};return e.gutter&&(a.paddingLeft=fe(e.gutter)),a});return()=>(0,t.h)("view",{class:l.value,style:o.value},n.default?.())}},{create:ug}=Q("grid"),cg=ug(sg),jl=cg;function dg(e){const n=(0,t.inject)(e,null);if(n){const l=(0,t.getCurrentInstance)(),{add:o,remove:a,internalChildren:r}=n;return o(l),(0,t.onUnmounted)(()=>a(l)),{parent:n,index:(0,t.computed)(()=>r.indexOf(l))}}return{parent:null,index:(0,t.ref)(-1)}}var{create:fg,componentName:zr}=Q("grid-item"),mg=fg({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const l=dg(Ri);if(!l.parent)return{};const o=l.index,a=l.parent.props,r=(0,t.computed)(()=>({[zr]:!0})),s=(0,t.computed)(()=>{const d={flexBasis:`${100/+a.columnNum}%`};return a.square?d.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(d.paddingRight=fe(a.gutter),o.value>=a.columnNum&&(d.marginTop=fe(a.gutter))),d}),i=(0,t.computed)(()=>{const d=`${zr}__content`;return{[`${d}`]:!0,[`${d}--border`]:a.border,[`${d}--surround`]:a.border&&a.gutter,[`${d}--center`]:a.center,[`${d}--square`]:a.square,[`${d}--reverse`]:a.reverse,[`${d}--${a.direction}`]:!!a.direction,[`${d}--clickable`]:a.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:d=>{n("click",d)}}}}),pg={class:"fox-grid-item__text"};function vg(e,n,l,o,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",pg,[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 Wl=ne(mg,[["render",vg]]),{componentName:hg,create:gg}=Q("navbar"),yg=gg({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:l,fixed:o,safeAreaInsetTop:a,placeholder:r,zIndex:s}=(0,t.toRefs)(e),i=(0,t.ref)(null),u=(0,t.ref)(null);let d=(0,t.ref)();const p=(0,t.computed)(()=>{const h=hg;return{[h]:!0,[`${h}--border`]:l.value,[`${h}--fixed`]:o.value,[`${h}--safe-area-inset-top`]:a.value}}),c=(0,t.computed)(()=>({zIndex:s.value}));(0,t.onMounted)(()=>{o.value&&r.value&&(0,t.nextTick)(()=>{d.value=u?.value?.getBoundingClientRect().height,i.value.style.height=d.value+"px"})});function v(){n("on-click-back")}function g(){n("on-click-title")}function w(){n("on-click-icon")}function y(){n("on-click-right")}return{navBarWrap:i,navBarHtml:u,classes:p,styles:c,handleLeft:v,handleCenter:g,handleCenterIcon:w,handleRight:y}}}),bg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},kg={key:1,class:"fox-navbar__text"},Sg={class:"fox-navbar__title"},wg={key:0,class:"fox-navbar__text"},Cg={key:1,class:"fox-navbar__text"},Ng={class:"fox-navbar__title"},Bg={key:0,class:"fox-navbar__text"};function Ag(e,n,l,o,a,r){const s=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",bg,[(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",kg,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Sg,[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",wg,(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",Cg,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Ng,[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",Bg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var Yl=ne(yg,[["render",Ag]]),Vg=(e,n,l)=>({components:l,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{default:"",type:String},activeText:{default:"",type:String},unActiveText:{default:"",type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(o,{emit:a}){const{toLocaleRefs:r}=(0,se.useFoxI18n)(n),s=r(o,["activeText","unActiveText"]),i=(0,t.computed)(()=>({[e]:!0,active:o.visible,[o.type]:!0})),u=(0,t.ref)(-1);return{...s,classes:i,updateValue:(c=!o.visible)=>{a("update:visible",c)},selected:(c,v)=>{a("selected",{item:c,event:v}),u.value=c.id},current:u}}}),{componentName:Tg,create:$g,scope:Eg}=Q("fixednav"),xg=$g(Vg(Tg,Eg,{[dt.name]:dt,Left:oe.Left})),Dg={class:"fox-fixednav__list"},Ig=["onClick"],qg=["src"],Pg={class:"span"},Mg={key:0,class:"b"},_g={class:"text"};function Lg(e,n,l,o,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]=u=>e.updateValue(!1))},null,8,["visible"])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"list",{},()=>[(0,t.createElementVNode)("view",Dg,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.navList,(u,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-fixednav__list-item",{active:u.id==e.current}]),onClick:p=>e.selected(u,p),key:u.id||d},[(0,t.createElementVNode)("img",{src:u.icon},null,8,qg),(0,t.createElementVNode)("view",Pg,(0,t.toDisplayString)(u.text),1),u.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",Mg,(0,t.toDisplayString)(u.num),1)):(0,t.createCommentVNode)("",!0)],10,Ig))),128))])]),(0,t.createElementVNode)("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=u=>e.updateValue())},[(0,t.renderSlot)(e.$slots,"btn",{},()=>[(0,t.createVNode)(i,{color:"#fff"}),(0,t.createElementVNode)("view",_g,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var Xl=ne(xg,[["render",Lg]]),{componentName:zg,create:Og}=Q("menu"),Fg=Og({components:{ArrowUp2:oe.ArrowUp2,ArrowDown2:oe.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:l}){const o=(0,t.ref)(),a=(0,t.ref)(0),r=(0,t.ref)(!1),s=()=>{const h=(0,t.reactive)([]),f=(0,t.reactive)([]);return{children:h,linkChildren:m=>{const C=b=>{b.proxy&&(f.push(b),h.push(b.proxy))},N=b=>{if(b.proxy){let k=f.indexOf(b);k>-1&&f.splice(k,1);let B=h.indexOf(b.proxy);k>-1&&h.splice(B,1)}};(0,t.provide)("menuParent",Object.assign({removeLink:N,link:C,children:h,internalChildren:f},m))}}},{children:i,linkChildren:u}=s(),d=(0,t.computed)(()=>i.some(h=>h.state.showWrapper)),p=(0,t.computed)(()=>({[zg]:!0,"scroll-fixed":r.value})),c=()=>{if(o.value){const h=Ie(o);e.direction==="down"?a.value=h.bottom:a.value=window.innerHeight-h.top}};u({props:e,offset:a});const v=h=>{i.forEach((f,S)=>{S===h?(c(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},g=h=>Math.max(0,"scrollTop"in h?h.scrollTop:h.pageYOffset),w=()=>{const{scrollFixed:h}=e;r.value=g(window)>(typeof h=="boolean"?30:Number(h))},y=h=>{let f="";const{titleClass:S}=e;return h&&(f+="active"),S&&(f+=` ${S}`),f};return(0,t.onMounted)(()=>{const{scrollFixed:h}=e;h&&window.addEventListener("scroll",w)}),(0,t.onUnmounted)(()=>{const{scrollFixed:h}=e;h&&window.removeEventListener("scroll",w)}),{toggleItem:v,children:i,opened:d,classes:p,barRef:o,getClasses:y}}}),Rg=["onClick"],Kg={class:"fox-menu__title-text"},Ug={class:"fox-menu__title-icon"};function Hg(e,n,l,o,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,(u,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu__item",{disabled:u.disabled,active:u.state.showPopup}]),onClick:p=>!u.disabled&&e.toggleItem(d),style:(0,t.normalizeStyle)({color:u.state.showPopup?e.activeColor:""})},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__title",e.getClasses(u.state.showPopup)])},[(0,t.createElementVNode)("view",Kg,(0,t.toDisplayString)(u.renderTitle()),1),(0,t.createElementVNode)("span",Ug,[(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,Rg))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var Ql=ne(Fg,[["render",Hg]]),{componentName:jg,create:Wg}=Q("menu-item"),Yg=Wg({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[me.name]:me,Check:oe.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:l}){const o=(0,t.reactive)({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),a=()=>{const g=(0,t.inject)("menuParent",null);if(g){const w=(0,t.getCurrentInstance)(),{link:y,removeLink:h}=g;return y(w),(0,t.onUnmounted)(()=>{h(w)}),{parent:g}}},{parent:r}=a(),s=(0,t.computed)(()=>({[jg]:!0})),i=(0,t.computed)(()=>{const g={height:r.offset.value+"px"};return r.props.direction==="down"?g:{...g,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const g=e.options?.find(w=>w.value===e.modelValue);return g?g.text:""},state:o,parent:r,toggle:(g=!o.showPopup,w={})=>{g!==o.showPopup&&(o.showPopup=g,o.isShowPlaceholderElement=g,g&&(o.showWrapper=!0,n("open")))},onClick:g=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,g.value!==e.modelValue&&(n("update:modelValue",g.value),n("change",g.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),Xg={class:"fox-menu-item__content fox-menu-item__overflow"},Qg=["onClick"];function Gg(e,n,l,o,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]=(...u)=>e.handleClickOutside&&e.handleClickOutside(...u)),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]=u=>e.state.showPopup=u),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",Xg,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(u,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu-item__option",[{active:u.value===e.modelValue}]]),style:(0,t.normalizeStyle)({"flex-basis":100/e.cols+"%"}),onClick:p=>e.onClick(u)},[u.value===e.modelValue?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:(0,t.normalizeClass)(["fox-menu-item__span",[u.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)([u.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:(0,t.normalizeStyle)({color:u.value===e.modelValue?e.parent.props.activeColor:""})},(0,t.toDisplayString)(u.text),7)],14,Qg))),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 Gl=ne(Yg,[["render",Gg]]),{create:Zg}=Q("tabbar"),Jg=Zg({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,n){function l(a){o.value!==a&&(o.value=a,n.emit("update:modelValue",a),n.emit("change",a,o.children[a]))}const o=(0,t.reactive)({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:l});return(0,t.provide)("parent",o),(0,t.watch)(()=>e.modelValue,a=>{o.value=a}),{changeIndex:l}}});function ey(e,n,l,o,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 Zl=ne(Jg,[["render",ey]]),{create:ty}=Q("tabbar-item"),ny=ty({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,n){const l=(0,t.inject)("parent"),o=(0,t.reactive)({size:l.size,inactiveColor:l.inactiveColor,activeColor:l.activeColor,value:l.value,index:0}),a=(0,t.getCurrentInstance)();a!==null&&(u=>{if(u.proxy){let d=l.children.length;o.index=d;let p=Object.assign(u.proxy,{index:d});l.children.push(p)}})(a);const r=(0,t.computed)(()=>o.index===o.value);function s(i){l&&typeof l.changeIndex=="function"&&l.changeIndex(i)}return(0,t.watch)((0,t.computed)(()=>l?l.value:null),i=>{o.value=i}),{state:o,active:r,change:s}}}),oy={class:"fox-tabbar-item_icon-box"},ly={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},ay={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},ry={key:1,class:"fox-tabbar-item_icon-box_dot"},iy={key:2},sy={key:0};function uy(e,n,l,o,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",oy,[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",ly,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",ay,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",ry)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",iy,[((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",sy,(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 Jl=ne(ny,[["render",uy]]),{componentName:cy,create:dy}=Q("elevator"),fy=dy({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const l=(0,t.ref)(null),o=(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)(()=>({[cy]:!0})),r=(0,t.computed)(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=(0,t.computed)(()=>l.value.clientHeight),i=(f,S)=>f.getAttribute("data-"+S),u=f=>{(0,t.nextTick)(()=>{!o.listGroup.includes(f)&&f!=null&&o.listGroup.push(f)})},d=()=>{let f=0;o.listHeight.push(f);for(let S=0;S<o.listGroup.length;S++){let m=o.listGroup[S];f+=Math.floor(m.clientHeight),o.listHeight.push(f)}},p=f=>{!f&&f!==0||(f<0&&(f=0),f>o.listHeight.length-2&&(f=o.listHeight.length-2),o.codeIndex=f,l.value.scrollTo(0,o.listHeight[f]))},c=f=>{o.scrollStart=!0;let S=i(f.target,"index"),m=f.touches[0];o.touchState.y1=m.pageY,o.anchorIndex=+S,o.codeIndex=+S,p(+S)},v=f=>{let S=f.touches[0];o.touchState.y2=S.pageY;let m=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+m,p(o.codeIndex)},g=()=>{o.scrollStart=!1},w=(f,S)=>{n.emit("click-item",f,S),o.currentData=S,o.currentKey=f},y=f=>{n.emit("click-index",f)},h=f=>{let S=f.target.scrollTop;const m=o.listHeight;o.scrollY=S;for(let C=0;C<m.length-1;C++){let N=m[C],b=m[C+1];if(o.scrollY>=N&&o.scrollY<b){o.currentIndex=C,o.diff=b-o.scrollY;return}}o.currentIndex=m.length-2};return(0,t.onMounted)(()=>{l.value.addEventListener("scroll",h)}),$e({scrollTo:p}),(0,t.watch)(()=>o.listGroup.length,()=>{o.listHeight=[],(0,t.nextTick)(d)}),(0,t.watch)(()=>o.diff,f=>{const S=o.listHeight;let m=f>0&&f<e.titleHeight?f-e.titleHeight:0;o.scrollY+s.value===S[S.length-1]&&m!==0&&(m=0),o.fixedTop!==m&&(o.fixedTop=m)}),(0,t.watch)(()=>o.currentIndex,f=>{n.emit("change",f)}),{classes:a,...(0,t.toRefs)(o),fixedStyle:r,clientHeight:s,setListGroup:u,listview:l,touchStart:c,touchMove:v,touchEnd:g,handleClickItem:w,handleClickIndex:y}}}),my={class:"fox-elevator__list__item__code"},py=["onClick"],vy=["innerHTML"],hy={class:"fox-elevator__fixed-title"},gy={class:"fox-elevator__bars__inner"},yy=["data-index","onClick"];function by(e,n,l,o,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",my,(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:u=>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,vy))],10,py))),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",hy,(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",gy,[((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:u=>e.handleClickIndex(s[e.acceptKey])},(0,t.toDisplayString)(s[e.acceptKey]),11,yy))),128))])],32)],2)}var Yt=ne(fy,[["render",by]]),{componentName:XA,create:ky,scope:Sy}=Q("pagination"),wy=ky({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:l}=(0,se.useFoxI18n)(Sy),o=l(e,["prevText","nextText"]),{modelValue:a,mode:r,showPageSize:s,forceEllipses:i}=(0,t.toRefs)(e),u=(0,t.computed)(()=>{const{pageCount:v,totalItems:g,itemsPerPage:w}=(0,t.toRefs)(e),y=+v.value||Math.ceil(+g.value/+w.value);return Math.max(1,y)}),d=(v,g)=>{v>u.value||v<1||(v!=a.value&&n("update:modelValue",v),g&&n("change",v))},p=(v,g,w=!1)=>({number:v,text:g,active:w}),c=(0,t.computed)(()=>{if(r.value=="simple")return;let v=[];const g=u.value,w=+s.value;let y=1,h=g;const f=g>w;f&&(y=Math.max(a.value-Math.floor(w/2),1),h=y+w-1,h>g&&(h=g,y=h-w+1));for(var S=y;S<=h;S++){const m=p(S,S,a.value==S);v.push(m)}if(f&&w>0&&i.value){if(y>1){const m=p(y-1,"...");v.unshift(m)}if(h<g){const m=p(h+1,"...");v.push(m)}}return v});return(0,t.watchEffect)(()=>{d(a.value,!1)}),{...o,modelValue:a,select:d,countRef:u,mode:r,pages:c,forceEllipses:i}}}),Cy={class:"fox-pagination"},Ny={key:0,class:"fox-pagination-contain"},By=["onClick"],Ay={key:1,class:"fox-pagination-contain"},Vy={class:"fox-pagination-simple"};function Ty(e,n,l,o,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Cy,[(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",Ny,[((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:u=>e.select(s.number,!0)},[(0,t.renderSlot)(e.$slots,"page",{item:s},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.text),1)])],10,By))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ay,[(0,t.createElementVNode)("view",Vy,(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 ea=ne(wy,[["render",Ty]]),$y=(e,n,l,o)=>{const a=(0,t.ref)(),r=(0,t.ref)({width:0,height:0}),s=async()=>{if(l&&l.getEnv()!==l.ENV_TYPE.WEB){let c=await o(a,l);r.value.width=c.width||0,r.value.height=c.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}),u=ot();let d="";const p=(c,v)=>{let g=c;switch(e.direction=="horizontal"?(d=c>0?"right":"left",g=Math.abs(g)/r.value.width*100):(d=v>0?"bottom":"top",g=v,g=Math.abs(g)/r.value?.height*100),g>85&&(g=85),d){case"left":case"top":n.isEnd()&&(g=0,i.moving=!1);break;case"right":case"bottom":g=-g,n.isBegin()&&(g=0,i.moving=!1);break}i.offset=g};return{touchMethods:{onTouchStart(c){e.swipeable&&u.start(c)},onTouchMove(c){e.swipeable&&(u.move(c),i.moving=!0,p(u.deltaX.value,u.deltaY.value),e.direction=="horizontal"&&u.isHorizontal()&&(c.preventDefault(),c.stopPropagation()),e.direction=="vertical"&&u.isVertical()&&(c.preventDefault(),c.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,d){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:a}},Ey=class{title="";titleSlot;paneKey="";disabled=!1;constructor(){}},{create:xy}=Q("tabs"),Dy=xy({components:{[Wt.name]:Wt,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:l}){const o=(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=$=>{$.forEach((T,U)=>{let Z=T.type;if(Z=Z.name||Z,Z=="fox-tab-pane"){let E=new Ey;if(T.props?.title||T.props?.["pane-key"]||T.props?.paneKey){let V=st(T.props?.["pane-key"]),I=V=="number"||V=="string"?String(T.props?.["pane-key"]):null,D=st(T.props?.paneKey),L=D=="number"||D=="string"?String(T.props?.paneKey):null;E.title=T.props?.title,E.paneKey=I||L||String(U),E.disabled=T.props?.disabled}r.value.push(E)}else{if(T.children==" ")return;Array.isArray(T.children)&&s(T.children)}})},i=(0,t.ref)(e.modelValue||0),u=$=>{let T=r.value.findIndex(U=>U.paneKey==$);r.value.length==0||T==-1||(i.value=T)},d=(0,t.computed)(()=>e.titleScroll&&e.direction==="vertical"),p=(0,t.ref)(),c=(0,t.ref)([]),v=$=>{const T=p.value,U=c.value;if(!T||!U||!U[i.value])return;const Z=U[i.value];let E=0;e.direction==="vertical"?E=Z.offsetTop-T.offsetTop+10-(T.offsetHeight-Z.offsetHeight)/2:E=Z.offsetLeft-(T.offsetWidth-Z.offsetWidth)/2,g(T,E,$?0:.3,e.direction)},g=($,T,U,Z)=>{let E=0;const V=Z==="horizontal"?$.scrollLeft:$.scrollTop,I=U===0?1:Math.round(U*1e3/16);function D(){Z==="horizontal"?$.scrollLeft+=(T-V)/I:$.scrollTop+=(T-V)/I,++E<I&&Ke(D)}D()},w=($=l.default?.())=>{r.value=[],$=$?.filter(T=>typeof T.children!="string"),$&&$.length&&s($),u(e.modelValue),(0,t.nextTick)(()=>{v()})},y=$=>{a=$.fixed};(0,t.watch)(()=>l.default?.(),$=>{w($)});const h=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;(0,t.watch)(()=>e.modelValue,$=>{if(u($),v(),a){let T=Ie(o.value).top+h(),U=Math.ceil(T-e.top);window.scrollTo({top:U,behavior:"smooth"})}}),(0,t.onMounted)(w),(0,t.onActivated)(w);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:$=>{n("update:modelValue",$.paneKey),n("change",$)},tabChange:($,T)=>{n("click",$),!($.disabled||i.value==T)&&(i.value=T,f.updateValue($))},setTabItemRef:($,T)=>{c.value[T]=$}},{tabsContentRef:S,touchState:m,touchMethods:C}=$y(e,f),N=(0,t.computed)(()=>{let $=i.value*100;m.moving&&($+=m.offset);let T={transform:e.direction=="horizontal"?`translate3d(-${$}%, 0, 0)`:`translate3d( 0,-${$}%, 0)`,transitionDuration:m.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(T={}),T}),b=(0,t.computed)(()=>({background:e.background})),k=(0,t.computed)(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),B=(0,t.computed)(()=>{if(!e.titleGutter)return{};const $=fe(e.titleGutter);return e.direction==="vertical"?{marginTop:$,marginBottom:$}:{marginLeft:$,marginRight:$}}),A=(0,t.computed)(()=>l.fixedTitle);return{navRef:p,tabsContentRef:S,titles:r,contentStyle:N,tabsNavStyle:b,titleStyle:B,tabsActiveStyle:k,container:o,getScrollY:d,onStickyScroll:y,...f,...C,hasFixedTitle:A}}}),Iy=["onClick"],qy={key:0,class:"fox-tabs__titles-fixed-item"},Py=["onClick"],My={key:0,class:"fox-tabs__titles-fixed-item"};function _y(e,n,l,o,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,(u,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:u.paneKey==e.modelValue,disabled:u.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:p=>e.tabChange(u,d),key:u.paneKey},[(0,t.renderSlot)(e.$slots,"title",{title:u.title,paneKey:u.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)(u.title),3)])],14,Iy))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",qy,[(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,(u,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:u.paneKey==e.modelValue,disabled:u.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:p=>e.tabChange(u,d),key:u.paneKey,ref_for:!0,ref:p=>e.setTabItemRef(p,d)},[(0,t.renderSlot)(e.$slots,"title",{title:u.title,paneKey:u.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)(u.title),3)])],14,Py))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",My,[(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]=(...u)=>e.onTouchStart&&e.onTouchStart(...u)),onTouchmove:n[1]||(n[1]=(...u)=>e.onTouchMove&&e.onTouchMove(...u)),onTouchend:n[2]||(n[2]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u)),onTouchcancel:n[3]||(n[3]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u))},[(0,t.renderSlot)(e.$slots,"default")],36)],2)}var ta=ne(Dy,[["render",_y]]),{create:Ly}=Q("tab-pane"),zy=Ly({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const l=(0,t.inject)("tabsOpiton"),o=(0,t.computed)(()=>({display:l.animatedTime.value==0&&e.paneKey!=l.activeKey.value?"none":void 0}));return{...l,paneStyle:o}}});function Oy(e,n,l,o,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 na=ne(zy,[["render",Oy]]),{componentName:Or,create:Fy}=Q("indicator"),Ry=Fy({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:l}=(0,t.toRefs)(e);return{classes:(0,t.computed)(()=>{const o=Or;return{[o]:!0,[`${o}--block`]:n.value,[`${o}--align__${l.value}`]:n.value&&l.value}}),componentName:Or,padZero:at}}});function Ky(e,n,l,o,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 oa=ne(Ry,[["render",Ky]]),{componentName:Uy,create:Hy}=Q("side-navbar"),jy=Hy({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=(0,t.ref)(null),l=(0,t.reactive)({count:1,observer:null}),o=(0,t.computed)(()=>({[Uy]:!0})),a=(s,i=1)=>{for(let u=0;u<s.length;u++){let d=s[u];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*i+"px",d.className.includes("fox-side-navbar-item")||a(Array.from(d.children[1].children),++l.count))}l.count--},r=()=>{let s=n.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),a(s))};return(0,t.onMounted)(()=>{r(),l.observer=new MutationObserver(function(){l.count=1,r()}),l.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(l),list:n,classes:o}}}),Wy={class:"fox-side-navbar__content"},Yy={class:"fox-side-navbar__content__list",ref:"list"};function Xy(e,n,l,o,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",Wy,[(0,t.createElementVNode)("view",Yy,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var la=ne(jy,[["render",Xy]]),{componentName:Qy,create:Gy}=Q("side-navbar-item"),Zy=Gy({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[Qy]:!0})),handleClick:()=>{n.emit("click")}})}),Jy=["ikey"],eb={class:"fox-side-navbar-item__title"};function tb(e,n,l,o,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",eb,(0,t.toDisplayString)(e.title),1)],10,Jy)}var aa=ne(Zy,[["render",tb]]),{componentName:nb,create:ob}=Q("sub-side-navbar"),lb=ob({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 l=(0,t.reactive)({direction:""}),o=(0,t.computed)(()=>({[nb]:!0})),a=(0,t.computed)(()=>({height:l.direction?"0px":"auto"})),r=()=>{n.emit("title-click"),l.direction=l.direction?"":"up"};return(0,t.onMounted)(()=>{l.direction=e.open?"":"up"}),{...(0,t.toRefs)(l),classes:o,style:a,handleClick:r}}}),ab=["ikey"],rb={class:"fox-sub-side-navbar__title__text"},ib={class:"fox-sub-side-navbar__title__icon"};function sb(e,n,l,o,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)((...u)=>e.handleClick&&e.handleClick(...u),["stop"]))},[(0,t.createElementVNode)("span",rb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",ib,[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,ab)}var ra=ne(lb,[["render",sb]]),{componentName:ub,create:cb}=Q("range"),db=cb({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const l=(0,t.ref)(0);let o,a;const r=(0,t.ref)(),s=(0,t.ref)(),i=ot(),u=(0,t.computed)(()=>{const{marks:E,max:V,min:I}=e;return Object.keys(E).map(parseFloat).sort((D,L)=>D-L).filter(D=>D>=I&&D<=V)}),d=(0,t.computed)(()=>Number(e.max)-Number(e.min)),p=(0,t.computed)(()=>{const E=ub;return{[E]:!0,[`${E}-disabled`]:e.disabled,[`${E}-vertical`]:e.vertical,[`${E}-show-number`]:!e.hiddenRange}}),c=(0,t.computed)(()=>{const E="fox-range-container";return{[E]:!0,[`${E}-vertical`]:e.vertical}}),v=(0,t.computed)(()=>({background:e.inactiveColor})),g=(0,t.computed)(()=>({borderColor:e.buttonColor})),w=E=>!!e.range&&Array.isArray(E),y=()=>{const{modelValue:E,min:V}=e;return w(E)?`${(E[1]-E[0])*100/d.value}%`:`${(E-Number(V))*100/d.value}%`},h=()=>{const{modelValue:E,min:V}=e;return w(E)?`${(E[0]-Number(V))*100/d.value}%`:"0%"},f=(0,t.computed)(()=>e.vertical?{height:y(),top:h(),background:e.activeColor,transition:s.value?"none":void 0}:{width:y(),left:h(),background:e.activeColor,transition:s.value?"none":void 0}),S=E=>{const V="fox-range-mark",{modelValue:I,max:D,min:L}=e;let O=Number(L),q=Number(D);if(e.range){const[te,z]=I;O=te,q=z}else q=I;let X=E<=q&&E>=O;return{[`${V}-text`]:!0,[`${V}-text-active`]:X}},m=E=>{const{min:V,vertical:I}=e;let D={left:`${(E-Number(V))/d.value*100}%`};return I&&(D={top:`${(E-Number(V))/d.value*100}%`}),D},C=E=>{const{modelValue:V,max:I,min:D}=e;let L=Number(D),O=Number(I);if(e.range){const[q,X]=V;L=q,O=X}return{background:E<=O&&E>=L?e.activeColor:e.inactiveColor}},N=E=>{const{min:V,max:I,step:D}=e;return E=Math.max(+V,Math.min(E,+I)),Math.round(E/+D)*+D},b=(E,V)=>JSON.stringify(E)===JSON.stringify(V),k=E=>E[0]>E[1]?E.slice(0).reverse():E,B=(E,V)=>{w(E)?E=k(E).map(N):E=N(E),b(E,e.modelValue)||n("update:modelValue",E),V&&!b(E,o)&&n("change",E)},A=E=>{if(e.disabled)return;const{min:V,modelValue:I}=e,D=Ie(r);let L=E.clientX-D.left,O=D.width;e.vertical&&(L=E.clientY-D.top,O=D.height);const q=Number(V)+L/O*d.value;if(w(I)){const[X,te]=I;q<=(X+te)/2?B([q,te],!0):B([X,q],!0)}else B(q,!0)},$=E=>{e.disabled||(i.start(E),a=e.modelValue,w(a)?o=a.map(N):o=N(a),s.value="start")},T=E=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(E),s.value="draging";const V=Ie(r);let I=i.deltaX.value,D=V.width,L=I/D*d.value;e.vertical&&(I=i.deltaY.value,D=V.height,L=I/D*d.value),w(o)?a[l.value]=o[l.value]+L:a=o+L,B(a),E.stopPropagation(),E.preventDefault()},U=()=>{e.disabled||(s.value==="draging"&&(B(a,!0),n("drag-end")),s.value="")},Z=E=>En(e.modelValue)&&typeof E=="number"?e.modelValue[E]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:v,buttonStyle:g,onClick:A,onTouchStart:$,onTouchMove:T,onTouchEnd:U,...(0,t.toRefs)(e),barStyle:f,curValue:Z,buttonIndex:l,containerClasses:c,markClassName:S,marksStyle:m,marksList:u,tickStyle:C}}}),fb={key:0,class:"fox-range-min"},mb={key:0,class:"fox-range-mark"},pb=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],vb={key:0,class:"number"},hb=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],gb={key:0,class:"number"},yb={key:1,class:"fox-range-max"};function bb(e,n,l,o,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",fb,(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",mb,[((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",vb,(0,t.toDisplayString)(e.curValue(s)),1))],4))],42,pb)),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",gb,(0,t.toDisplayString)(e.curValue()),1))],4))],40,hb))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",yb,(0,t.toDisplayString)(+e.max),1))],2)}var Xt=ne(db,[["render",bb]]),{create:kb,scope:Sb}=Q("short-password"),wb=kb({components:{[me.name]:me,Tips:oe.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:l}=(0,se.useFoxI18n)(Sb),o=l(e,["title","desc","tips"]),a=(0,t.ref)(e.modelValue),r=(0,t.computed)(()=>d(Number(e.length))),s=(0,t.ref)(e.visible),i=c=>{c.stopPropagation(),n("focus")};(0,t.watch)(()=>e.visible,c=>{s.value=c}),(0,t.watch)(()=>e.modelValue,c=>{a.value=c,String(c).length===r.value&&n("complete",c)});const u=()=>{n("update:visible",!1),n("close")},d=c=>Math.min(Math.max(4,c),6);return{comLen:r,realInput:a,onTouchStart:i,range:d,close:u,onTips:()=>{n("tips")},show:s,...o}}}),Cb={class:"fox-short-password-title"},Nb={class:"fox-short-password-subtitle"},Bb={class:"fox-short-password-wrapper"},Ab={key:0,class:"fox-short-password__item-icon"},Vb={class:"fox-short-password__message"},Tb={class:"fox-short-password--error"},$b={key:0,class:"fox-short-password--forget"};function Eb(e,n,l,o,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]=u=>e.show=u),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Cb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Nb,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",Bb,[(0,t.createElementVNode)("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...u)=>e.onTouchStart&&e.onTouchStart(...u))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(new Array(e.comLen),(u,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ab)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",Vb,[(0,t.createElementVNode)("view",Tb,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",$b,[(0,t.createVNode)(s,{class:"icon",width:"11px",height:"11px"}),(0,t.createElementVNode)("view",{onClick:n[1]||(n[1]=(...u)=>e.onTips&&e.onTips(...u))},(0,t.toDisplayString)(e.tips),1)])):(0,t.createCommentVNode)("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}var ia=ne(wb,[["render",Eb]]),xb=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},Db=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",l=>{e.onProgress?.(l,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[l,o]of Object.entries(e.headers))n.setRequestHeader(l,o);e.onStart?.(e),e.beforeXhrUpload?e.beforeXhrUpload(n,e):n.send(e.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}},Ib=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},Ki=(e,{args:n=[],done:l,canceled:o})=>{if(e){const a=e.apply(null,n);St(a)?a.then(r=>{r?l(r):o&&o()}).catch(()=>{}):a?l():o&&o()}else l()},{create:qb}=Q("progress"),Pb=qb({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,l=(0,t.ref)(e.strokeWidth+"px"),o=(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:l,percentage:r,bgStyle:s,textStyle:i,progressOuter:o,insideText:a,slotDefault:n}}}),Mb={class:"fox-progress"},_b={key:0,class:"fox-progress-text"};function Lb(e,n,l,o,a,r){const s=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",Mb,[(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",_b,[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 Qt=ne(Pb,[["render",Lb]]),{componentName:zb,create:Ob,scope:Fb}=Q("uploader"),Rb=Ob({components:{[Qt.name]:Qt,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:l}=(0,se.useFoxI18n)(Fb),o=(0,t.reactive)(e.fileList);let a=[];const r=(0,t.computed)(()=>({[zb]:!0})),s=()=>{let S={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(S.capture="camera"),(0,t.h)("input",S)},i=S=>{S.value=""},u=S=>{n("file-item-click",{fileItem:S})},d=(S,m)=>{const C=new xb;C.url=e.url,C.formData=S.formData,C.timeout=e.timeout*1,C.method=e.method,C.xhrState=e.xhrState,C.headers=e.headers,C.withCredentials=e.withCredentials,C.beforeXhrUpload=e.beforeXhrUpload;try{C.sourceFile=S.formData.get(e.name)}catch{}C.onStart=b=>{S.status="ready",S.message=l("readyUpload"),p(m),n("start",b)},C.onProgress=(b,k)=>{S.status="uploading",S.message=l("uploading"),S.percentage=(b.loaded/b.total*100).toFixed(0),n("progress",{event:b,option:k,percentage:S.percentage})},C.onSuccess=(b,k)=>{S.status="success",S.message=l("success"),n("success",{responseText:b,option:k,fileItem:S}),n("update:fileList",o)},C.onFailure=(b,k)=>{S.status="error",S.message=l("error"),n("failure",{responseText:b,option:k,fileItem:S})};let N=new Db(C);e.autoUpload?N.upload():a.push(new Promise((b,k)=>{b(N)}))},p=(S=-1)=>{S>-1?a.splice(S,1):(a=[],o.splice(0,o.length))},c=()=>{Promise.all(a).then(S=>{S.forEach(m=>m.upload())})},v=S=>{S.forEach((m,C)=>{const N=new FormData;for(const[k,B]of Object.entries(e.data))N.append(k,B);N.append(e.name,m);const b=(0,t.reactive)(new Ib);if(b.name=m.name,b.status="ready",b.type=m.type,b.formData=N,b.message=l("waitingUpload"),d(b,C),e.isPreview&&m.type.includes("image")){const k=new FileReader;k.onload=B=>{b.url=B.target.result,o.push(b)},k.readAsDataURL(m)}else o.push(b)})},g=S=>{const m=e.maximum*1,C=e.maximize*1,N=new Array;S=S.filter(k=>k.size>C?(N.push(k),!1):!0),N.length&&n("oversize",N);let b=S.length+o.length;return b>m&&S.splice(S.length-(b-m)),S},w=(S,m)=>{o.splice(m,1),n("delete",{file:S,fileList:o,index:m})},y=(S,m)=>{p(m),Ki(e.beforeDelete,{args:[S,o],done:()=>w(S,m)})},h=S=>{if(e.disabled)return;const m=S.target;let{files:C}=m;e.beforeUpload?e.beforeUpload(C).then(N=>f(N)):f(C),n("change",{fileList:o,event:S}),e.clearInput&&i(m)},f=S=>{v(g(new Array().slice.call(S)))};return{onChange:h,onDelete:y,fileList:o,classes:r,fileItemClick:u,clearUploadQueue:p,submit:c,renderInput:s}}}),Kb={key:0,class:"fox-uploader__slot"},Ub={key:0,class:"fox-uploader__preview-img"},Hb={key:0,class:"fox-uploader__preview__progress"},jb={class:"fox-uploader__preview__progress__msg"},Wb=["onClick"],Yb=["onClick","src"],Xb={key:3,class:"fox-uploader__preview-img__file"},Qb=["onClick"],Gb={class:"file__name_tips"},Zb={class:"tips"},Jb={key:1,class:"fox-uploader__preview-list"},ek=["onClick"],tk={class:"file__name_tips"};function nk(e,n,l,o,a,r){const s=(0,t.resolveComponent)("Failure"),i=(0,t.resolveComponent)("Loading"),u=(0,t.resolveComponent)("Link"),d=(0,t.resolveComponent)("Del"),p=(0,t.resolveComponent)("fox-progress"),c=(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",Kb,[(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,(v,g)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-uploader__preview",[e.listType]]),key:v.uid},[e.listType=="picture"&&!e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ub,[v.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hb,[v.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[v.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",jb,(0,t.toDisplayString)(v.message),1)])):(0,t.createCommentVNode)("",!0),e.isDeletable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"close",onClick:w=>e.onDelete(v,g)},[(0,t.renderSlot)(e.$slots,"delete-icon",{},()=>[(0,t.createVNode)(s)])],8,Wb)):(0,t.createCommentVNode)("",!0),v?.type?.includes("image")&&v.url?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,class:"fox-uploader__preview-img__c",onClick:w=>e.fileItemClick(v),src:v.url},null,8,Yb)):((0,t.openBlock)(),(0,t.createElementBlock)("view",Xb,[(0,t.createElementVNode)("view",{onClick:w=>e.fileItemClick(v),class:"fox-uploader__preview-img__file__name"},[(0,t.createElementVNode)("view",Gb,(0,t.toDisplayString)(v.name),1)],8,Qb)])),(0,t.createElementVNode)("view",Zb,(0,t.toDisplayString)(v.name),1)])):e.listType=="list"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Jb,[(0,t.createElementVNode)("view",{onClick:w=>e.fileItemClick(v),class:(0,t.normalizeClass)(["fox-uploader__preview-img__file__name",[v.status]])},[(0,t.createVNode)(u,{class:"fox-uploader__preview-img__file__link"}),(0,t.createElementVNode)("view",tk,(0,t.toDisplayString)(v.name),1),e.isDeletable?((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:w=>e.onDelete(v,g)},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],10,ek),v.status=="uploading"?((0,t.openBlock)(),(0,t.createBlock)(p,{key:0,size:"small",percentage:v.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)(c,{color:"#808080"})]),((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):(0,t.createComment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ck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:ak,scope:rk}=Q("number-keyboard"),ik=ak({components:{[me.name]:me},props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:n}){const{toLocaleRefs:l}=(0,se.useFoxI18n)(rk),o=l(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 S={id:"lock",type:"lock"},m=Array.isArray(f)?f:[f];return m.length===1&&(S={id:m[0],type:"custom"}),[...u(),S,{id:0,type:"number"},{id:"delete",type:"delete"}]}function u(){const f=[];for(let S=1;S<=9;S++)f.push({id:S,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function d(){const f=u(),{customKey:S}=e;let m=Array.isArray(S)?S:[S];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!=""?d():i()),c=()=>{e.visible&&n("blur")},v=f=>{const S=s.value;S&&!S.contains(f.target)&&c()};(0,t.watch)(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",v,!1):window.removeEventListener("touchstart",v,!1)});function g(f,S){S.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"&&h(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function w(f){f.stopPropagation()}function y(f){f.preventDefault(),a.value=void 0}function h(){n("update:visible",!1),n("close")}return{...o,delImg:ok,lockImg:lk,clickKeyIndex:a,defaultKey:i,closeBoard:h,onTouchEnd:y,onTouchMove:w,onTouchstart:g,keysList:p,genCustomKeys:d,getBasicKeys:u,root:s,show:r}}}),sk={ref:"root"},uk={class:"fox-number-keyboard"},ck={key:0,class:"fox-number-keyboard__header"},dk={class:"fox-number-keyboard__title"},fk={class:"fox-number-keyboard__body"},mk={class:"fox-number-keyboard__keys"},pk=["onTouchstart"],vk=["src"],hk=["src"],gk={key:0,class:"fox-number-keyboard__sidebar"},yk={class:"fox-key__wrapper"},bk=["src"];function kk(e,n,l,o,a,r){const s=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",sk,[(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",uk,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",ck,[(0,t.createElementVNode)("h3",dk,(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",fk,[(0,t.createElementVNode)("div",mk,[((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:u=>e.onTouchstart(i,u),onTouchmove:n[1]||(n[1]=u=>e.onTouchMove(u)),onTouchend:n[2]||(n[2]=u=>e.onTouchEnd(u))},[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,vk)):(0,t.createCommentVNode)("",!0),i.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,hk)):(0,t.createCommentVNode)("",!0)],42,pk)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",gk,[(0,t.createElementVNode)("div",yk,[(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,bk)],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 ua=ne(ik,[["render",kk]]),{componentName:Sk,create:wk}=Q("swipe"),Ck=wk({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n}){const l=(0,t.computed)(()=>({[Sk]:!0})),o=f=>f.value?.clientWidth||0,a=(0,t.ref)(),r=(0,t.computed)(()=>o(a)),s=(0,t.ref)(),i=(0,t.computed)(()=>o(s));let u=!1,d="",p="";const c=(0,t.reactive)({offset:0,moving:!1}),v=(f="")=>{u=!0,f&&(c.offset=f==="left"?-i.value:r.value),n("open",{name:e.name,position:d||f})},g=()=>{c.offset=0,u=!1,n("close",{name:e.name,position:d})},w=(0,t.computed)(()=>({transform:`translate3d(${c.offset}px, 0, 0)`})),y=f=>{d=f>0?"right":"left";let S=f;switch(d){case"left":u&&p===d?S=-i.value:S=Math.abs(f)>i.value?-i.value:f;break;case"right":u&&p===d?S=r.value:S=Math.abs(f)>r.value?r.value:f;break}c.offset=S},h=ot();return{classes:l,touchStyle:w,onTouchStart(f){e.disabled||h.start(f)},onTouchMove(f){e.disabled||(h.move(f),h.isHorizontal()&&(c.moving=!0,y(h.deltaX.value),e.touchMovePreventDefault&&f.preventDefault(),e.touchMoveStopPropagation&&f.stopPropagation()))},onTouchEnd(){if(c.moving)switch(c.moving=!1,p=d,d){case"left":Math.abs(c.offset)<=i.value/2?g():(c.offset=-i.value,v());break;case"right":Math.abs(c.offset)<=r.value/2?g():(c.offset=r.value,v());break}},leftRef:a,rightRef:s,open:v,close:g}}}),Nk={class:"fox-swipe__left",ref:"leftRef"},Bk={class:"fox-swipe__content"},Ak={class:"fox-swipe__right",ref:"rightRef"};function Vk(e,n,l,o,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",Nk,[(0,t.renderSlot)(e.$slots,"left")],512),(0,t.createElementVNode)("view",Bk,[(0,t.renderSlot)(e.$slots,"default")]),(0,t.createElementVNode)("view",Ak,[(0,t.renderSlot)(e.$slots,"right")],512)],38)}var Gt=ne(Ck,[["render",Vk]]),{componentName:Tk,create:$k}=Q("action-sheet"),Ek=$k({components:{Popup:me,Loading:oe.Loading},props:{...Fe,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const l=!!(0,t.useSlots)().default,o=(0,t.computed)(()=>({[Tk]:!0}));return{slotDefault:l,isHighlight:u=>e.chooseTagValue&&e.chooseTagValue===u[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(u,d)=>{!u.disable&&!u.loading&&(n("choose",u,d),n("update:visible",!1))},close:u=>{n("close",u),n("update:visible",!1)},classes:o}}}),xk={key:0,class:"fox-action-sheet__title"},Dk={key:1},Ik={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},qk={key:1,class:"fox-action-sheet__menu"},Pk=["onClick"],Mk={key:1},_k={class:"fox-action-sheet__subdesc"};function Lk(e,n,l,o,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",xk,(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",Dk,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ik,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",qk,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.menuItems,(u,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":u.disable,"fox-action-sheet__item--loading":u.loading}]),style:(0,t.normalizeStyle)({color:e.isHighlight(u)||u.color}),key:d,onClick:p=>e.chooseItem(u,d)},[u.loading?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",Mk,(0,t.toDisplayString)(u[e.optionTag]),1)),(0,t.createElementVNode)("view",_k,(0,t.toDisplayString)(u[e.optionSubTag]),1)],14,Pk))),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]=(...u)=>e.cancelActionSheet&&e.cancelActionSheet(...u))},(0,t.toDisplayString)(e.cancelTxt),1)):(0,t.createCommentVNode)("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}var ca=ne(Ek,[["render",Lk]]),{componentName:zk,create:Ok}=Q("backtop"),Fk=Ok({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:l}){const o=(0,t.reactive)({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),a=(0,t.computed)(()=>({[zk]:!0,show:o.backTop})),r=(0,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(w=0){o.scrollEl instanceof Window?window.scrollTo(0,w):o.scrollEl.scrollTop=w}function u(){let w=Xe(function y(){var h=e.duration-Math.max(0,o.startTime-+new Date+e.duration),f=h*-o.scrollTop/e.duration+o.scrollTop;i(f),w=Xe(y),(h==e.duration||f==0)&&Ur(w)})}function d(){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 c(w){o.startTime=+new Date,e.isAnimation&&e.duration>0?u():i(),n("click",w)}function v(){g.value?o.scrollEl=g.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),d()}(0,t.onMounted)(()=>{e.distance==0&&(o.backTop=!0),v()}),(0,t.onUnmounted)(()=>{p()}),(0,t.onActivated)(()=>{o.keepAlive&&(o.keepAlive=!1,v())}),(0,t.onDeactivated)(()=>{o.keepAlive=!0,p()});const g=(0,t.computed)(()=>{if(typeof l.content=="function"){const w=l.content();return Array.isArray(w)?w[0]:w}return null});return()=>{const w=[];g.value&&w.push(g.value);const y=[];if(typeof l.default=="function")y.push(l.default());else{const f=(0,t.h)(oe.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});y.push(f)}const h=(0,t.h)("div",{class:a.value,style:r.value,onClick:c},y);return w.push(h),w}}}),da=Fk,{componentName:Rk,create:Kk}=Q("drag"),Uk=Kk({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const l=(0,t.ref)(),o=(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)(()=>({[Rk]:!0}));function r(){const c=document.documentElement;o.elWidth=l.value.offsetWidth,o.elHeight=l.value.offsetHeight,o.screenWidth=c.clientWidth,o.screenHeight=c.clientHeight}function s(c){o.boundary.left?+c.style.left.split("px")[0]>o.boundary.left?(c.style.left=+c.style.left.split("px")[0]-10+"px",Ke(()=>{s(c)})):c.style.left=`${o.boundary.left}px`:+c.style.left.split("px")[0]>10?(c.style.left=+c.style.left.split("px")[0]-10+"px",Ke(()=>{s(c)})):c.style.left="0px"}function i(c,v){v-parseInt(c.style.left.split("px")[0])>10?(c.style.left=parseInt(c.style.left.split("px")[0])+10+"px",Ke(()=>{i(c,v)})):c.style.left=v+"px"}function u(c){c.preventDefault();const v=c.currentTarget;if(c.targetTouches.length===1){const g=c.targetTouches[0];o.nx=g.clientX-o.position.x,o.ny=g.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const w=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>w?o.xPum=w: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"&&(v.style.left=o.xPum+"px"),e.direction!="x"&&(v.style.top=o.yPum+"px")}}function d(c){const v=c.currentTarget;let g=c.changedTouches[0].clientX;const w=o.screenWidth-o.elWidth-o.boundary.right;g>w?g=w:g<o.boundary.left?g=o.boundary.left:g=g<o.screenWidth/2?o.boundary.left:w,e.direction!="y"&&e.attract&&(g<o.screenWidth/2?Ke(()=>{s(v)}):Ke(()=>{i(v,w)})),e.direction!="x"&&(v.style.top=o.yPum+"px")}function p(c){const v=c.currentTarget,g=c.touches[0],w=c.targetTouches[0];o.startTop=v.offsetTop,o.startLeft=v.offsetLeft,o.position.x=g.clientX,o.position.y=g.clientY,o.nx=w.clientX-o.position.x,o.ny=w.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny}return(0,t.onMounted)(()=>{r(),o.boundary=e.boundary}),(0,t.onActivated)(()=>{o.keepAlive&&(o.keepAlive=!1)}),(0,t.onDeactivated)(()=>{o.keepAlive=!0;const c=l;c.value.removeEventListener("touchstart",p),c.value.removeEventListener("touchmove",u),c.value.removeEventListener("touchend",d)}),{classes:a,myDrag:l,touchStart:p,touchMove:u,touchEnd:d}}});function Hk(e,n,l,o,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 fa=ne(Uk,[["render",Hk]]),jk={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}},Wk=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Yk(e,n,l,o,a){return{props:{...Fe,...jk},setup(r,{attrs:s,slots:i,emit:u}){const{toLocaleRefs:d}=(0,se.useFoxI18n)(n),p=d(r,["confirmText","cancelText"]),c=e,v=(0,t.ref)(r.visible);(0,t.watch)(()=>r.visible,b=>{v.value!==b&&(v.value=b,b&&u("opened"))});const g=b=>{v.value=b,u("update:visible",b),u("update",b)},w=b=>{if(u(b),!(b==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const k=r.beforeClose(b);St(k)?k.then(B=>{B&&(g(!1),u("closed",b))}):k===!0&&(g(!1),u("closed",b))}else g(!1),u("closed",b)},y=()=>{w("confirm")},h=()=>{w("cancel")},f=()=>{w("close")},S=(b,k)=>Wk(b)?(k.src=b,(0,t.h)("img",k)):typeof b=="string"?(Array.isArray(k.class)?k.class.push(b):k.class&&typeof k.class=="object"?k[`${b}`]=!0:typeof k.class=="string"?k.class=`${k.class}, ${b}`:k.class=b,(0,t.h)(r.tag,k)):(0,t.h)(b,k),m=()=>{const b=[];if(i.header){const k=i.header();b.push(k)}else{if(r.title){const k=(0,t.h)("view",{class:`${c}__header-title`},[r.title]);b.push(k)}if(r.showClose){const k={class:[`${c}__header-close-icon`],onClick:f},B=S(r.closeIcon??a,k);b.push(B)}}return b.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},b)},C=()=>{const b=[];if(i.default)b.push(i.default());else{const k={class:[`${c}__content`]};if(r.textAlign&&k.class.push(r.textAlign),typeof r.content=="string"){k.innerHTML=r.content;const B=(0,t.h)("view",k);b.push(B)}else if(typeof r.content=="function"){const B=(0,t.h)("view",k,[r.content()]);b.push(B)}else{const B=(0,t.h)("view",k,[r.content]);b.push(B)}}return b.length===0?null:(0,t.h)("view",{class:[`${c}__body`]},b)},N=()=>{if(!r.showFooter)return null;const b=[];if(i.footer)b.push(i.footer());else if(r.plain){if(r.showCancelButton){const k={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},onClick:h};r.cancelButtonClass&&k.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(k.style,r.cancleButtonStyle);const B=(0,t.h)("view",k,[r.cancelButtonText??p.cancelText.value]);b.push(B)}if(r.showConfirmButton){const k={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},onClick:y};r.confirmButtonClass&&k.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(k.style,r.confirmButtonStyle);const B=(0,t.h)("view",k,[r.confirmButtonText??p.confirmText.value]);b.push(B)}}else{if(r.showCancelButton){const k={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:h};r.cancelButtonClass&&k.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(k.style,r.cancleButtonStyle);const B=(0,t.h)(o,k,{default:()=>[r.cancelButtonText??p.cancelText.value]});b.push(B)}if(r.showConfirmButton){const k={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:y};r.confirmButtonClass&&k.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(k.style,r.confirmButtonStyle);const B=(0,t.h)(o,k,{default:()=>[r.confirmButtonText??p.confirmText.value]});b.push(B)}}return b.length===0?null:(0,t.h)("view",{class:[`${c}__footer`,`${c}__footer--${r.footerDirection}`]},b)};return()=>{const b=[],k=m();k&&b.push(k);const B=C();B&&b.push(B);const A=N();A&&b.push(A);const $=(0,t.h)("view",{class:{[`${c}`]:!0,[`${c}--plain`]:r.plain}},b),T=[`${c}__popup`];r.popClass&&T.push(r.popClass);const U={};return r.width&&(U.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(U.height=typeof r.height=="number"?`${r.height}px`:r.height),(0,t.h)(l,{...he(r,Fe),popClass:T.join(" "),style:U,visible:v.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":g,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay},{default:()=>$})}}}}var{componentName:Xk,create:Qk,scope:Gk}=Q("dialog"),Zk=Qk(Yk(Xk,Gk,me,Le,oe.Close)),Ui=Zk,Jk=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},e1=class{options=new Jk;constructor(e){let n=Object.assign(this.options,e),l=document.body,o=n.teleport;o!="body"&&(typeof o=="string"?l=document.querySelector(o):l=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 u=document.querySelector(`#${r}`);u&&u.parentNode?.removeChild(u)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(Ui,n)}});l.appendChild(a),(0,t.render)(s,a)}},Zt=function(e){return new e1(e)};Zt.install=e=>{e.use(Ui),e.config.globalProperties.$dialog=Zt};var t1={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}},n1=(e,n,l)=>({props:{...t1},emits:["change","refresh","update:modelValue"],setup(o,{emit:a,slots:r}){const{toLocaleRefs:s}=(0,se.useFoxI18n)(n),i=s(o,["pullingText","loosingText","loadingText"]),u=Jn(),d=(0,t.ref)(),p=zi(d),c=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=(0,t.computed)(()=>({[e]:!0})),g=(0,t.computed)(()=>{switch(c.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""}}),w=(0,t.computed)(()=>({transitionDuration:`${o.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),y=(0,t.computed)(()=>{const k={};return o.headHeight!=50&&(k.height=fe(o.headHeight)),k}),h=k=>{const B=+(o.pullDistance||o.headHeight);let A=k;return k>B&&(k<B*2?A=(k+B)/2:A=B+k/4),Math.round(A)},f=(k,B)=>{const A=+(o.pullDistance||o.headHeight);c.distance=k,B?c.status="loading":k===0?c.status="normal":k<A?c.status="pulling":c.status="loosing",a("change",{status:c.status,distance:k})},S=()=>c.status!=="loading"&&c.status!=="complete",m=()=>p.value==window?Oi()==0:p.value&&p.value.scrollTop==0,C=k=>{S()&&(m()?(u.start(k),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},N=k=>{S()&&c.moving&&(u.move(k),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(k.cancelable&&k.preventDefault(),f(h(u.state.deltaY))))},b=()=>{c.moving=!1,c.isPullRefresh&&S()&&u.state.deltaY&&(c.status==="loosing"?(f(+o.headHeight,!0),a("update:modelValue",!0),(0,t.nextTick)(()=>a("refresh"))):f(0)),setTimeout(()=>{u.reset()},0)};return(0,t.watch)(()=>o.modelValue,k=>{k?f(+o.headHeight,!0):f(0)}),()=>{const k=[];let B=null;c.status==="loading"?(B=r?.loading?.()??null,B||(B=(0,t.h)(l,{class:["fox-pull-refresh-container-topbox-icon"]}))):c.status==="pulling"?B=r?.pulling?.()??null:c.status==="loosing"&&(B=r?.loosing?.()??null),B&&k.push(B);const A=(0,t.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[g.value]);k.push(A);const $=(0,t.h)("div",{class:["fox-pull-refresh-container-topbox"],style:y.value},k),T=(0,t.h)("div",{class:"fox-pull-refresh-container",style:w.value},[$,r?.default?.()]),U={ref:d,class:v.value};return Zn()?Object.assign(U,{onTouchstart:C,onTouchmove:N,onTouchend:b}):Object.assign(U,{onMousedown:C,onMousemove:N,onMouseup:b}),(0,t.h)("div",U,[T])}}}),{componentName:o1,create:l1,scope:a1}=Q("pull-refresh"),r1=l1(n1(o1,a1,oe.Loading)),ma=r1,{create:i1}=Q("notify"),s1=i1({components:{[me.name]:me},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const l=()=>{e.onClick&&e.onClick()};let o=null;const a=()=>{o&&clearTimeout(o),o=null},r=()=>{n("update:visible",!1)},s=(0,t.ref)(!1),i=(0,t.watch)(()=>e.visible,d=>{s.value=e.visible;const p=e.duration;d&&p&&(o=setTimeout(()=>{r()},p))},{immediate:!0});return{onAfterLeave:()=>{a(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:l,isShowPopup:s}}});function u1(e,n,l,o,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 pa=ne(s1,[["render",u1]]),Qo={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function},ht=[],Ut=[],Hi=e=>{if(e){const n=document.getElementById(e);Ut=Ut.filter(l=>l.id!==e),ht=ht.filter(l=>l!==e),n&&document.body.removeChild(n)}else ht.forEach(n=>{const l=document.getElementById(n);l&&document.body.removeChild(l)}),Ut=[],ht=[]},c1=e=>{const n=document.getElementById(e.id);if(n){const l=Ut.find(a=>a.id===e.id);l?e={...Qo,...l,...e}:e={...Qo,...e};const o=(0,t.createVNode)(pa,e);return(0,t.render)(o,n),o.component.data}},_t=e=>{e.unmount=Hi;let n;if(e.id){if(n=e.id,ht.find(a=>a===e.id))return c1(e)}else n=new Date().getTime()+"";e={...Qo,...e},e.id=n,ht.push(e.id),Ut.push(e);const l=document.createElement("view");l.id="notify-"+e.id;const o=(0,t.createVNode)({setup(){return e.teleport=`#notify-${e.id}`,(0,t.onMounted)(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(l)},e.duration)}),()=>(0,t.h)(pa,e)}});document.body.appendChild(l),(0,t.render)(o,l)},Lt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},va={text(e,n={}){return Lt(e),_t({...n,msg:e})},primary(e,n={}){return Lt(e),_t({...n,msg:e,type:"primary"})},success(e,n={}){return Lt(e),_t({...n,msg:e,type:"success"})},danger(e,n={}){return Lt(e),_t({...n,msg:e,type:"danger"})},warn(e,n={}){return Lt(e),_t({...n,msg:e,type:"warning"})},hide(){Hi()},install(e){e.use(pa)}},{create:d1}=Q("toast"),f1=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 l=null;const o=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{o.mounted=!0});const a=()=>{l&&(clearTimeout(l),l=null)},r=()=>{o.mounted=!1},s=()=>{a(),e.duration&&(l=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),(0,t.watch)(()=>e.duration,g=>{g&&s()});const u=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const g=de(e.iconSize);return(0,t.h)(e.icon,{width:g,height:g,color:e.iconColor})},p=(0,t.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=(0,t.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:d,hasIcon:u,toastBodyClass:p,toastIconWrapperClass:c,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),m1={key:1,class:"fox-toast-title"},p1=["innerHTML"];function v1(e,n,l,o,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",m1,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,p1)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var ha=ne(f1,[["render",v1]]),Go={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},gt=[],Ht=[],ji=e=>{if(e){const n=document.getElementById(e);Ht=Ht.filter(l=>l.id!==e),gt=gt.filter(l=>l!==e),n&&document.body.removeChild(n)}else gt.forEach(n=>{const l=document.getElementById(n);l&&document.body.removeChild(l)}),Ht=[],gt=[]},h1=e=>{const n=document.getElementById(e.id);if(n){const l=Ht.find(o=>o.id===e.id);return l?e={...Go,...l,...e}:e={...Go,...e},(0,t.render)((0,t.createVNode)(ha,e),n),Dt}},zt=e=>{e.unmount=ji;let n;if(e.id){if(n=e.id,gt.find(o=>o===e.id))return h1(e)}else n=new Date().getTime()+"";e={...Go,...e},e.id=n,gt.push(e.id),Ht.push(e);const l=document.createElement("div");return l.id=e.id,(0,t.render)((0,t.createVNode)(ha,e),l),document.body.appendChild(l),Dt},mn=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Dt={text(e,n={}){return mn(e),zt({...n,type:"text",msg:e})},success(e,n={}){return mn(e),zt({icon:oe.Success,...n,msg:e,type:"success"})},fail(e,n={}){return mn(e),zt({icon:oe.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return mn(e),zt({icon:oe.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return zt({icon:oe.Loading,...n,msg:e,type:"loading"})},hide(e){ji(e)},install(e){e.use(ha),e.config.globalProperties.$toast=Dt}},{componentName:QA,create:g1}=Q("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,[Xt.name]:Xt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:l}){const o=(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 y=["webkitVisibilityState","visibilitychange"];try{for(let h=0;h<y.length;h++)document.addEventListener(y[h],()=>{document.hidden?o.value.pause():a.playing&&setTimeout(()=>{o.value.play()},200)})}catch(h){h.message}});const r=y=>{const h=o.value;e.autoplay&&h&&h.paused&&h.play(),a.second=h.duration,a.duration=w(h.duration),n("can-play",y)},s=y=>{a.currentTime=parseInt(y.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,o.value.currentTime=a.currentTime,n("fastBack",a.currentTime)},u=()=>{const y=o.value;a.playing?(y.pause(),a.handPlaying=!1):(y.play(),a.handPlaying=!0),a.playing=!a.playing,n("play",a.playing)},d=()=>{a.currentTime++,o.value.currentTime=a.currentTime,n("forward",a.currentTime)},p=y=>{a.currentDuration=w(y),a.percent=y/a.second*100},c=()=>{a.playing=!1,n("ended")},v=y=>{const h=o.value;h.currentTime=a.second*y/100,n("changeProgress",h.currentTime)},g=()=>{a.hanMuted=!a.hanMuted,n("mute",a.hanMuted)},w=y=>{if(!y)return"00:00:00";let h=parseInt(y),f=Math.floor(h/3600),S=Math.floor((h-f*3600)/60),m=h-f*3600-S*60,C="";return C+=("0"+f.toString()).slice(-2)+":",C+=("0"+S.toString()).slice(-2)+":",C+=("0"+m.toString()).slice(-2),C};return(0,t.watch)(()=>a.currentTime,y=>{p(y)}),(0,t.provide)("audioParent",{children:[],props:e,audioData:a,handleMute:g,forward:d,fastBack:i,changeStatus:u}),{...(0,t.toRefs)(e),...(0,t.toRefs)(a),audioRef:o,fastBack:i,forward:d,changeStatus:u,progressChange:v,audioEnd:c,onTimeupdate:s,handleMute:g,onCanplay:r,slots:l}}}),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"},N1={key:1,class:"fox-audio__icon"},B1=["controls","src","preload","autoplay","loop","muted"];function A1(e,n,l,o,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]=u=>e.percent=u),"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",N1,[(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]=(...u)=>e.changeStatus&&e.changeStatus(...u))},[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]=(...u)=>e.changeStatus&&e.changeStatus(...u))},[(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]=(...u)=>e.onTimeupdate&&e.onTimeupdate(...u)),onCanplay:n[4]||(n[4]=(...u)=>e.onCanplay&&e.onCanplay(...u)),onEnded:n[5]||(n[5]=(...u)=>e.audioEnd&&e.audioEnd(...u)),muted:e.hanMuted},null,40,B1)])}var ga=ne(y1,[["render",A1]]),{componentName:GA,create:V1,scope:T1}=Q("audio-operate"),$1=V1({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:l}=(0,se.useFoxI18n)(T1),o=(0,t.reactive)((0,t.inject)("audioParent")),a=(0,t.ref)((0,t.useSlots)().default);return{...(0,t.toRefs)(e),...(0,t.toRefs)(o),customSlot:a,t:l}}}),E1={class:"fox-audio-operate"};function x1(e,n,l,o,a,r){const s=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",E1,[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=ne($1,[["render",x1]]),{componentName:D1,create:I1}=Q("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:l,bgColor:o,color:a}=(0,t.toRefs)(e),r=["large","normal","small"],s=(0,t.inject)("avatarGroup",null),i=(0,t.ref)(null),u=(0,t.reactive)({lightTheme:!1}),d=(0,t.reactive)({index:1,showMax:!1,maxIndex:0});(0,t.onMounted)(()=>{const w=s?.avatarGroupRef?.value?.children;w&&g(w)});const p=(0,t.computed)(()=>({[D1]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${l.value||s?.props?.shape||"normal"}`]:!0})),c=(0,t.computed)(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${o.value}`,color:`${a.value}`,marginLeft:d.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),v=(0,t.computed)(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),g=w=>{d.maxIndex=w.length;for(let y=0;y<w.length;y++)w[y]&&w[y].classList&&w[y].classList[0]=="fox-avatar"&&w[y].setAttribute("data-index",y+1);d.index=i?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=s?.props?.maxCount&&(d.showMax=!0)};return{classes:p,styles:c,maxStyles:v,avatarGroup:s,visible:u,avatarRef:i,...(0,t.toRefs)(d)}}});function P1(e,n,l,o,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 Jt=ne(q1,[["render",P1]]),{componentName:M1,create:_1}=Q("avatar-group"),L1=_1({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:l}){const{size:o}=(0,t.toRefs)(e),a=(0,t.ref)(null),r=(0,t.ref)(0),s=(0,t.computed)(()=>({[M1]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:a,index:r}),{classes:s,avatarGroupRef:a}}});function z1(e,n,l,o,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=ne(L1,[["render",z1]]),kt=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function O1(e,n,l){let o=0,a=e.length-1,r=null;for(;o<=a;){r=Math.floor((o+a)/2);const s=e[r],i=l(s,n);if(i===kt.eq)return r;i===kt.lt?o=r+1:i===kt.gt&&(a=r-1)}return r}var{componentName:F1,create:R1}=Q("list"),Fr=document.documentElement.clientHeight||document.body.clientHeight||667,K1=R1({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Fr},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const l=(0,t.ref)(null),o=(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,Fr)),i=(0,t.computed)(()=>Math.ceil(s.value/e.height)),u=(0,t.computed)(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),d=(0,t.computed)(()=>({[F1]:!0})),p=(0,t.computed)(()=>r.list.slice(r.start,u.value)),c=()=>{if(a.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},v=()=>{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}},g=()=>{let f=a.value.childNodes;f=Array.from(f).filter(b=>b.nodeType===1);const S=f[0];f.forEach((b,k)=>{if(!b)return;const{height:B}=Ie(b),A=r.cachePositions[k+r.start].height-B;A&&(r.cachePositions[k+r.start].bottom-=A,r.cachePositions[k+r.start].height=B,r.cachePositions[k+r.start].dValue=A)});let m=0;S&&(m=r.start);const C=r.cachePositions.length;let N=r.cachePositions[m].dValue;r.cachePositions[m].dValue=0;for(let b=m+1;b<C;++b){const k=r.cachePositions[b];r.cachePositions[b].top=r.cachePositions[b-1].bottom,r.cachePositions[b].bottom=r.cachePositions[b].bottom-N,k.dValue!==0&&(N+=k.dValue,k.dValue=0)}r.phantomHeight=r.cachePositions[C-1].bottom},w=(f=0)=>{let S=O1(r.cachePositions,f,(m,C)=>{const N=m.bottom;return N===C?kt.eq:N<C?kt.lt:kt.gt});return r.cachePositions[S].bottom<f&&(S+=1),S},y=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,l.value.scrollTop=0,v(),r.phantomHeight=e.height*r.list.length},h=()=>{const f=l.value?.scrollTop,{originStartIndex:S}=r,m=w(f);m!==S&&(r.originStartIndex=m,r.start=Math.max(r.originStartIndex-e.bufferSize,0),u.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)v(),g();else{y();return}}),(0,t.watch)(()=>r.start,()=>{a.value&&r.list.length>0&&g()}),{...(0,t.toRefs)(r),list:l,phantom:o,actualContent:a,getTransform:c,visibleData:p,classes:d,getContainerHeight:s,handleScrollEvent:h}}});function U1(e,n,l,o,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=ne(K1,[["render",U1]]),{componentName:H1,create:j1}=Q("circleprogress"),W1=j1({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const l=!!(0,t.useSlots)().default,o=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)(()=>xe(e.color)?`url(#${o})`:e.color);return{classes:a,hoverStyle:(0,t.computed)(()=>{let i=283,u=i*Number(e.progress)/100;return{stroke:xe(e.color)?`url(#${o})`:e.color,strokeDasharray:`${u}px ${i}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:r,hoverColor:s,stop:(0,t.computed)(()=>{if(!xe(e.color))return;let i=e.color;const u=Object.keys(i).sort((p,c)=>parseFloat(p)-parseFloat(c));let d=[];return u.map((p,c)=>{let v={key:"",value:""};v.key=p,v.value=i[p],d.push(v)}),d}),slotDefault:l,refRandomId:o}}}),Y1={viewBox:"0 0 100 100"},X1=["id"],Q1=["offset","stop-color"],G1=["d","stroke-width"],Z1=["d","stroke","stroke-linecap","stroke-width"],J1={class:"fox-circleprogress-text"},eS={key:0};function tS(e,n,l,o,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",Y1,[(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,Q1))),128))],8,X1)]),(0,t.createElementVNode)("path",{class:"fox-circleprogress-path",style:(0,t.normalizeStyle)(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,G1),(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,Z1)])),(0,t.createElementVNode)("div",J1,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",eS,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var Sa=ne(W1,[["render",tS]]),{componentName:nS,create:oS}=Q("noticebar"),lS=oS({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:l}){const o=(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)(()=>({[nS]:!0})),i=(0,t.computed)(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),u=(0,t.computed)(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),d=(0,t.computed)(()=>{let k={};return e.color&&(k.color=e.color),e.background&&(k.background=e.background),e.direction=="vertical"&&(k.height=`${e.height}px`),k}),p=(0,t.computed)(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),c=(0,t.computed)(()=>{let k={};if(e.complexAm)k={transform:`translateY(${r.distance}px)`};else if(r.animate){let B=~~(e.height/e.speed/4);k={transition:`all ${B==0?~~(e.height/e.speed):B}s`,"margin-top":`-${e.height}px`}}return k});(0,t.watch)(()=>e.text,k=>{v(k)}),(0,t.watch)(()=>e.list,k=>{r.scrollList=[...k]});const v=k=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!a.value)return;const B=o.value.getBoundingClientRect().width,A=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?A>B:e.scrollable,r.isCanScroll?(r.wrapWidth=B,r.offsetWidth=A,r.duration=A/e.speed,r.animationClass="play"):r.animationClass=""},0)},g=k=>{n("click",k)},w=k=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",k)},y=k=>{r.firstRound=!1,n("across-end",k),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},h=()=>{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))},S=()=>{r.timer=setInterval(()=>{let k=100;for(let B=0;B<k;B++)m(B,!(B<k-1))},e.standTime+100*e.speed)},m=(k,B)=>{setTimeout(()=>{r.distance-=e.height/100,B&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},k*e.speed)},C=k=>{n("click",k)},N=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(l.default?b(l.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?S():h()},e.standTime)):v(e.text)}),(0,t.watch)(()=>l.default?l.default():[],k=>{e.direction==="vertical"&&l.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),b(k))});const b=k=>{k&&k.length>0&&(r.scrollList=k[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:d,contentStyle:p,horseLampStyle:c,wrap:o,content:a,handleClick:g,onClickIcon:w,onAnimationEnd:y,go:C,handleClickIcon:N,slots:l,toPxString:fe,wrapContentClass:u}}}),aS={key:0,class:"fox-noticebar__page-lefticon"},rS={ref:"wrap",class:"fox-noticebar__page-wrap"},iS={class:"showNotica"},sS=["onClick"];function uS(e,n,l,o,a,r){const s=(0,t.resolveComponent)("Notice"),i=(0,t.resolveComponent)("CircleClose"),u=(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]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.showLeftIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",aS,[(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",rS,[(0,t.createElementVNode)("view",{ref:"content",class:(0,t.normalizeClass)(e.wrapContentClass),style:(0,t.normalizeStyle)(e.contentStyle),onAnimationend:n[0]||(n[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":n[1]||(n[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[(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)((...d)=>e.onClickIcon&&e.onClickIcon(...d),["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",iS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,p)=>((0,t.openBlock)(),(0,t.createBlock)(u,{key:p,style:(0,t.normalizeStyle)({height:e.height+"px","line-height":e.height+"px"}),item:d},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,(d,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:c=>e.go(d)},[(0,t.renderSlot)(e.$slots,"item",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(d),1)])],12,sS))),128))],4)),(0,t.createElementVNode)("view",{class:"go",onClick:n[4]||(n[4]=d=>!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=ne(lS,[["render",uS]]),cS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/xdD/y9UyMD0TExP5sb+4uLj/y9X+w879ws3/y9X1tMH8s8H/y9UkJSWAgYH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RU5ErkJggg==",{componentName:ZA,create:mS,scope:pS}=Q("empty"),vS={empty:cS,error:dS,network:fS},hS=mS({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,se.useFoxI18n)(pS),l=n(e,["description"]),{image:o,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=o.value.startsWith("https://")||o.value.startsWith("http://")||o.value.startsWith("//")?o.value:vS[o.value];return{...l,imageUrl:s,imgStyle:r}}}),gS={class:"fox-empty"},yS=["src"],bS={key:1,class:"fox-empty-description"};function kS(e,n,l,o,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",gS,[(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,yS)):(0,t.createCommentVNode)("",!0)],64))],4),e.$slots.description?(0,t.renderSlot)(e.$slots,"description",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",bS,(0,t.toDisplayString)(e.description),1)),e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:2}):(0,t.createCommentVNode)("",!0)])}var Ca=ne(hS,[["render",kS]]),{create:SS,scope:wS}=Q("video"),CS=SS({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:l}=(0,se.useFoxI18n)(wS),o=(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,b=>{b.src&&(0,t.nextTick)(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),(0,t.watch)(()=>e.options,b=>{o.state.isMuted=b?b.muted:!1},{immediate:!0});const s=()=>{o.videoElm=a.value,e.options.autoplay&&setTimeout(()=>{o.videoElm.play()},200),e.options.touchPlay&&(o.showTouchMask=!0),e.options.playsinline&&(o.videoElm.setAttribute("playsinline",e.options.playsinline),o.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),o.videoElm.setAttribute("x5-video-player-type","h5-page"),o.videoElm.setAttribute("x5-video-player-fullscreen",!1)),w(),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",v),o.videoElm.addEventListener("timeupdate",Cn(c,1e3)))},i=()=>{const b=a.value,k=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=b,o.progressBar.progressElm=k,o.progressBar.pos=k.getBoundingClientRect(),o.videoSet.progress.width=Math.round(k.getBoundingClientRect().width)},u=()=>{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",Cn(c,1e3)),o.videoElm.addEventListener("ended",v),n("play",o.videoElm)}catch{g()}else o.videoElm.pause(),n("pause",o.videoElm)},d=b=>{var k=Math.floor(b/3600);k<10&&(k="0"+k);var B=Math.floor(b%3600/60);B<10&&(B="0"+B);var A=Math.round(b%3600%60);A<10&&(A="0"+A);var $="";return k!=0?$=k+":"+B+":"+A:$=B+":"+A,$},p=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},c=()=>{const b=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*b),o.videoSet.totalTime=d(o.videoElm.duration),o.videoSet.displayTime=d(o.videoElm.currentTime),n("time",o.videoSet.displayTime,o.videoSet.totalTime)},v=()=>{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)},g=()=>{o.state.isError=!0},w=()=>{o.state.vol=e.options.volume},y=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},h=()=>{},f=b=>{let k=b.targetTouches[0].pageX-o.progressBar.pos.left;k<=0&&(k=0),k>=o.videoSet.progress.width&&(k=o.videoSet.progress.width),o.videoSet.progress.current=k;let B=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&m(B,o.videoElm.duration)},S=b=>{let k=b.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=k;let B=k/o.videoSet.progress.width;o.videoElm.duration&&m(B,o.videoElm.duration)},m=(b,k)=>{o.videoElm.currentTime=Math.floor(b*k)},C=()=>{o.state.isError=!1,s()},N=()=>{o.state.fullScreen?(o.state.fullScreen=!1,document.webkitCancelFullScreen()):(o.state.fullScreen=!0,o.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{s()}),{root:a,...(0,t.toRefs)(e),...(0,t.toRefs)(o),handleError:g,isDisabled:r,play:u,handleMuted:y,touchSlidSrart:h,touchSlidMove:f,touchSlidEnd:S,retry:C,fullScreen:N,t:l}}}),NS={class:"fox-video",ref:"videocon"},BS=["muted","autoplay","loop","poster","controls","preload"],AS=["src","type"],VS={class:"fox-video-controller__now"},TS={class:"fox-video-controller__progress"},$S={class:"fox-video-controller__progress-value",ref:"progressBar"},ES={class:"fox-video-controller__played",ref:"playedBar"},xS={class:"fox-video-controller__total"},DS={class:"fox-video-error"},IS={class:"fox-video-error-tip"};function qS(e,n,l,o,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",NS,[(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,AS)],40,BS),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",VS,(0,t.toDisplayString)(e.videoSet.displayTime),1),(0,t.createElementVNode)("div",TS,[(0,t.createElementVNode)("div",$S,[(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",ES,null,512)],512)]),(0,t.createElementVNode)("div",xS,(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",DS,[(0,t.createElementVNode)("p",IS,(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 Vt=ne(CS,[["render",qS]]),{create:PS,componentName:MS}=Q("steps"),_S=PS({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:l}){const o=(0,t.reactive)({children:[]}),a=(0,t.computed)(()=>{const i=MS;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(0,t.provide)("parent",{relation:r,state:o,props:e,onEmit:s}),()=>(0,t.h)("view",{class:a.value},l.default?.())}}),Na=_S,{create:LS,componentName:zS}=Q("step"),OS=LS({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 l=(0,t.reactive)({dot:n.props.progressDot}),o=(0,t.computed)(()=>n.state.children.indexOf(e)+1),a=()=>{const u=o.value;return u<+n.props.current?"finish":u===+n.props.current?"process":"wait"},r=(0,t.computed)(()=>a()),s=(0,t.computed)(()=>{const u=zS;return{[u]:!0,[`${u}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...(0,t.toRefs)(l),index:o,classes:s,handleClickStep:i}}}),FS={class:"fox-step-head"},RS={class:"fox-step-icon-inner"},KS={key:1,class:"fox-step-inner"},US={class:"fox-step-main"},HS={class:"fox-step-title"},jS={key:0},WS={key:0,class:"fox-step-content"},YS=["innerHTML"];function XS(e,n,l,o,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",FS,[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",RS,[(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",KS,(0,t.toDisplayString)(e.index),1))])])],2)]),(0,t.createElementVNode)("view",US,[(0,t.createElementVNode)("view",HS,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",jS,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",WS,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,YS)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var Ba=ne(OS,[["render",XS]]),{create:QS,componentName:Bo}=Q("swiper"),GS=QS({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:n,slots:l}){const o=(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=ot(),s=(0,t.computed)(()=>({[Bo]:!0})),i=(0,t.computed)(()=>e.direction==="vertical"),u=(0,t.computed)(()=>{const D=Bo;return{[`${D}-inner`]:!0,[`${D}-vertical`]:i.value}}),d=(0,t.computed)(()=>{const D=Bo;return{[`${D}-pagination`]:!0,[`${D}-pagination-vertical`]:i.value}}),p=(0,t.computed)(()=>i.value?r.deltaY.value:r.deltaX.value),c=(0,t.computed)(()=>r.direction.value===e.direction),v=(0,t.computed)(()=>a.children.length),g=(0,t.computed)(()=>a[i.value?"height":"width"]),w=(0,t.computed)(()=>v.value*g.value),y=(0,t.computed)(()=>a.rect?(i.value?a.rect.height:a.rect.width)-g.value*v.value:0),h=(0,t.computed)(()=>(a.active+v.value)%v.value),f=()=>{let D=0;D=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${D}px)`,[i.value?"height":"width"]:`${g.value*v.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},S=D=>{let L=[];const O=a.childrenVNode.length;let q=l?.default?.();if(q=q.filter(X=>X.children&&Array.isArray(X.children)),q.forEach(X=>{L=L.concat(X.children)}),!O)a.childrenVNode=L.slice(),D.proxy&&a.children.push(D.proxy);else if(O>L.length)a.children=a.children.filter(X=>D.proxy!==X);else if(O<L.length){for(let X=0;X<O;X++)if(L[X].key!==a.childrenVNode[X].key){D.proxy&&a.children.splice(X,0,D.proxy),D.vnode&&a.childrenVNode.splice(X,0,D.vnode);break}O!==L.length&&(D.proxy&&a.children.push(D.proxy),D.vnode&&a.childrenVNode.push(D.vnode))}else a.childrenVNode=L.slice(),D.proxy&&a.children.push(D.proxy)},m=(D,L=0)=>{let O=D*g.value;e.loop||(O=Math.min(O,-y.value));let q=L-O;return e.loop||(q=Ue(q,y.value,0)),q},C=D=>{const{active:L}=a;return D?e.loop?Ue(L+D,-1,v.value):Ue(L+D,0,v.value-1):L},N=({pace:D=0,offset:L=0,isEmit:O=!1})=>{if(v.value<=1)return;const{active:q}=a,X=C(D),te=m(X,L);if(e.loop){if(a.children[0]&&te!==y.value){const z=te<y.value;a.children[0].setOffset(z?w.value:0)}if(a.children[v.value-1]&&te!==0){const z=te>0;a.children[v.value-1].setOffset(z?-w.value:0)}}a.active=X,a.offset=te,O&&q!==a.active&&n("change",h.value),f()},b=()=>{a.moving=!0,a.active<=-1&&N({pace:v.value}),a.active>=v.value&&N({pace:-v.value})},k=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},B=D=>{b(),r.reset(),Xe(()=>{Xe(()=>{a.moving=!1,N({pace:D,isEmit:!0})})})},A=()=>{B(-1)},$=()=>{B(1)},T=D=>{b(),r.reset(),Xe(()=>{a.moving=!1;let L;e.loop&&v.value===D?L=a.active===0?0:D:L=D%v.value,N({pace:L-a.active,isEmit:!0})})},U=()=>{e.autoPlay<=0||v.value<=1||(k(),a.autoplayTimer=setTimeout(()=>{$(),U()},Number(e.autoPlay)))},Z=(D=+e.initPage)=>{k(),a.rect=o.value.getBoundingClientRect(),D=Math.min(v.value-1,D),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=D,a.offset=m(a.active),a.moving=!0,f(),U()},E=D=>{e.isPreventDefault&&D.preventDefault(),e.isStopPropagation&&D.stopPropagation(),e.touchable&&(r.start(D),a.touchTime=Date.now(),k(),b())},V=D=>{e.touchable&&a.moving&&(r.move(D),c.value&&N({offset:p.value}))},I=D=>{if(!e.touchable||!a.moving)return;const L=p.value/(Date.now()-a.touchTime);if((Math.abs(L)>.3||Math.abs(p.value)>+(g.value/2).toFixed(2))&&c.value){let O=0;const q=i.value?r.offsetY.value:r.offsetX.value;e.loop?O=q>0?p.value>0?-1:1:0:O=-Math[p.value>0?"ceil":"floor"](p.value/g.value),N({pace:O,isEmit:!0})}else p.value&&N({pace:0});a.moving=!1,f(),U()};return(0,t.provide)("parent",{props:e,size:g,relation:S}),$e({prev:A,next:$,to:T}),(0,t.onDeactivated)(()=>{k()}),(0,t.onBeforeUnmount)(()=>{k()}),(0,t.watch)(()=>e.initPage,D=>{(0,t.nextTick)(()=>{Z(Number(D))})}),(0,t.watch)(()=>a.children.length,()=>{(0,t.nextTick)(()=>{Z()})}),(0,t.watch)(()=>e.autoPlay,D=>{D>0?U():k()}),{state:a,classes:s,classesInner:u,classesPagination:d,container:o,activePagination:h,onTouchStart:E,onTouchMove:V,onTouchEnd:I}}});function ZS(e,n,l,o,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 Tt=ne(GS,[["render",ZS]]),{create:JS,componentName:ew}=Q("swiper-item"),tw=JS({setup(e,{slots:n}){const l=(0,t.inject)("parent");l.relation((0,t.getCurrentInstance)());const o=(0,t.reactive)({offset:0}),a=(0,t.computed)(()=>({[ew]:!0})),r=(0,t.computed)(()=>{const i={},u=l?.props.direction;return l?.size.value&&(i[u==="horizontal"?"width":"height"]=`${l?.size.value}px`),o.offset&&(i.transform=`translate${u==="horizontal"?"X":"Y"}(${o.offset}px)`),i}),s=i=>{o.offset=i};return(0,t.onUnmounted)(()=>{l.relation((0,t.getCurrentInstance)(),"unmount")}),$e({setOffset:s}),{style:r,classes:a}}});function nw(e,n,l,o,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 $t=ne(tw,[["render",nw]]),Wi={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:ow}=Q("image-preview-item"),lw=ow({props:{...Wi,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},contentClose:{type:Boolean,default:!0}},emits:["close","scale"],components:{[Vt.name]:Vt,[$t.name]:$t},setup(e,{emit:n}){const l=(0,t.reactive)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),o=ot(),a=(0,t.computed)(()=>{const{rootWidth:A,rootHeight:$}=e,T=$/A;return l.imageRatio>T}),r=(0,t.computed)(()=>{const A=e.image;if(A&&A.src){const{scale:$,moveX:T,moveY:U,moving:Z,zooming:E}=l,V={transitionDuration:E||Z?"0s":".3s"};return $!==1&&(V.transform=`scale(${$}, ${$}) translate(${T/$}px, ${U/$}px)`),V}return{}}),s=(0,t.computed)(()=>{if(l.imageRatio){const{rootWidth:A,rootHeight:$}=e,T=a.value?$/l.imageRatio:A;return Math.max(0,(l.scale*T-A)/2)}return 0}),i=(0,t.computed)(()=>{if(l.imageRatio){const{rootWidth:A,rootHeight:$}=e,T=a.value?$:A*l.imageRatio;return Math.max(0,(l.scale*T-$)/2)}return 0}),u=A=>{const{naturalWidth:$,naturalHeight:T}=A.target;l.imageRatio=T/$},d=()=>{p(1),l.moveX=0,l.moveY=0},p=A=>{A=Ue(A,+e.minZoom,+e.maxZoom+1),A!==l.scale&&(l.scale=A,n("scale",{scale:A,index:e.initNo}))},c=()=>{p(l.scale>1?1:2),l.moveX=0,l.moveY=0},v=A=>Math.sqrt((A[0].clientX-A[1].clientX)**2+(A[0].clientY-A[1].clientY)**2);let g,w,y,h,f,S,m;const C=A=>{const{touches:$}=A,{offsetX:T}=o;o.start(A),m=$.length,g=l.moveX,w=l.moveY,S=Date.now(),l.moving=m===1&&l.scale!==1,l.zooming=m===2&&!T.value,l.zooming&&(y=l.scale,h=v(A.touches))},N=A=>{const{touches:$}=A;if(o.move(A),(l.moving||l.zooming)&&Io(A,!0),l.moving){const{deltaX:T,deltaY:U}=o,Z=T.value+g,E=U.value+w;l.moveX=Ue(Z,-s.value,s.value),l.moveY=Ue(E,-i.value,i.value)}if(l.zooming&&$.length===2){const T=v($);p(y*T/h)}},b=()=>{if(m==1&&e.video&&e.video.source||m>1)return;const{offsetX:A,offsetY:$}=o,T=Date.now()-S,U=250,Z=5;A.value<Z&&$.value<Z&&T<U&&(f?(clearTimeout(f),f=null,c()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},U))},k=A=>{let $=!1;(l.moving||l.zooming)&&($=!0,l.moving&&g===l.moveX&&w===l.moveY&&($=!1),A.touches.length||(l.zooming&&(l.moveX=Ue(l.moveX,-s.value,s.value),l.moveY=Ue(l.moveY,-i.value,i.value),l.zooming=!1),l.moving=!1,g=0,w=0,y=1,l.scale<1&&d(),l.scale>e.maxZoom&&(l.scale=+e.maxZoom))),Io(A,$),b(),o.reset()},B=()=>{n("close")};return(0,t.watch)(()=>e.initNo,d),(0,t.watch)(()=>e.show,A=>{A||d()}),{...(0,t.toRefs)(l),onTouchStart:C,onTouchMove:N,onTouchEnd:k,getDistance:v,imageStyle:r,imageLoad:u,closeSwiper:B}}}),aw=["src"];function rw(e,n,l,o,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]=(...u)=>e.onTouchStart&&e.onTouchStart(...u)),onTouchmove:n[2]||(n[2]=(...u)=>e.onTouchMove&&e.onTouchMove(...u)),onTouchend:n[3]||(n[3]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u)),onTouchcancel:n[4]||(n[4]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u))},[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]=(...u)=>e.imageLoad&&e.imageLoad(...u))},null,40,aw)):(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 iw=ne(lw,[["render",rw]]),{create:sw}=Q("image-preview"),uw=sw({props:{...Wi,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:iw,CircleClose:oe.CircleClose,[me.name]:me,[Tt.name]:Tt},setup(e,{emit:n}){const l=(0,t.ref)(),o=(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)(()=>En(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=p=>{p!==o.active&&(o.active=p,n("change",o.active))},i=()=>{Ki(e.beforeClose,{args:[o.active],done:()=>u()})},u=()=>{o.showPop=!1,n("close")},d=()=>{if(l.value){const p=Ie(l.value);o.rootHeight=p.height,o.rootWidth=p.width}};return(0,t.watch)(()=>e.show,p=>{o.showPop=p,p&&(s(e.initNo),d())}),(0,t.watch)(()=>e.initNo,p=>{p!=o.active&&s(p)}),(0,t.onMounted)(()=>{s(e.initNo)}),{swipeRef:l,...(0,t.toRefs)(o),onClose:i,mergeImages:r,setActive:s,iconClasses:a}}}),cw={class:"fox-image-preview",ref:"swipeRef"},dw={key:0,class:"fox-image-preview-index"};function fw(e,n,l,o,a,r){const s=(0,t.resolveComponent)("image-preview-item"),i=(0,t.resolveComponent)("fox-swiper"),u=(0,t.resolveComponent)("CircleClose"),d=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(d,{"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",cw,[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,c)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:c,video:c<e.videos.length?p:{},image:c>=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",dw,(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)(u,{color:"#ffffff"})])],2)):(0,t.createCommentVNode)("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}var Yi=ne(uw,[["render",fw]]),mw=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"},pw=class{options=new mw;constructor(e){const n=Object.assign(this.options,e),{unmount:l}=zs(n,{name:"image-preview",components:[me,Vt,Tt,$t,dt],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{l()})},(0,t.h)(Yi,n))}})})}},mo=e=>new pw(e);mo.install=e=>{e.use(Yi)};function vw(e){const n=(0,t.getCurrentInstance)();if(n&&n.proxy){let l=n.proxy;Object.assign(l,e)}}var{componentName:JA,create:hw}=Q("countup"),gw=hw({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:n}){const l=(0,t.ref)(null),o=(0,t.ref)([]),a=B=>{B&&o.value.push(B)},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:u,type:d}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,(B,A)=>{c(),h(0)}),(0,t.watch)(()=>e.machinePrizeLevel,(B,A)=>{r.prizeLevelTrun=B}),(0,t.watch)(()=>e.initNum,(B,A)=>{r.current=B,r.valFlag=!1,p()}),(0,t.watch)(()=>e.endNum,(B,A)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;s&&(i||u?d!="machine"&&h():(y(),setTimeout(()=>{r.valFlag=!0},300)))},c=()=>{clearInterval(Number(r.timer)),r.timer=null},v=(B,A,$)=>{const T=(B.toString().split(".")[1]||"").length,U=(A.toString().split(".")[1]||"").length,Z=Math.pow(10,Math.max(T,U));return $=="-"?Number((B*Z-A*Z).toFixed(0))/Z:Number((B*Z+A*Z).toFixed(0))/Z},g=B=>{let{num_total_len:A,pointNum:$,initDigit1:T,initDigit2:U,sortFlag:Z}=r,E=Z=="add"||Z=="equal"?String(U)[B-(A-$)]:10-Number(String(U)[B-(A-$)]),V=Z=="add"||Z=="equal"?String(T)[B]:10-Number(String(T)[B]),I=B>A-$-1?-E*100+"%":B<=String(T).length-1?-V*100+"%":0;return I=="-1000%"&&(I=0),I},w=B=>{let{num_total_len:A,pointNum:$,initDigit1:T,initDigit2:U,sortFlag:Z}=r,E=String(U)[B-(A-$)];return B>A-$-1?E||0:B<=String(T).length-1?String(T)[B]:0},y=()=>{let{endNum:B,initNum:A,speed:$,toFixed:T}=e,U=setInterval(()=>{A>B?r.current<=B||r.current<=$?(r.current=B.toFixed(T),clearInterval(U),n("scroll-end"),r.valFlag=!1):r.current=(parseFloat(String(r.current))-parseFloat(String($))).toFixed(T):r.current>=B?(r.current=B.toFixed(T),clearInterval(U),n("scroll-end"),r.valFlag=!1):r.current=(parseFloat(String(r.current))+parseFloat(String($))).toFixed(T)},e.during)},h=B=>{let{initNum:A,endNum:$,toFixed:T,customBgImg:U}=e;U&&(A=e.customChangeNum);let Z,E,V,I;A!=0?(T!=0&&(A=Number(A.toFixed(T))),String(A).indexOf(".")>-1?(Z=String(A).split(".")[0].length,E=String(A).split(".")[1].length):(Z=String(A).length,E=0)):(Z=1,E=0),$!=0?(T!=0&&($=Number($.toFixed(T))),String($).indexOf(".")>-1?(V=String($).split(".")[0].length,I=String($).split(".")[1].length):(V=String($).length,I=0)):(V=1,I=0);let D=Z>=V?Z:V,L=E>=I?E:I;r.num_total_len=D+L,r.pointNum=L,A>$?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=v(A,$,"-"),r.numberVal=Number(String(A))):A<$?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=v($,A,"-"),r.numberVal=Number(String($))):r.sortFlag="equal";var O=1;for(let X=0;X<r.pointNum;X++)O*=10;var q=r.numberVal*O;if(r.relNum=q,T!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(q).length),String(A).indexOf(".")>-1){let X=String(A).split(".");r.initDigit1=Number(X[0]),r.initDigit2=Number(X[1])}else r.initDigit1=A,r.initDigit2=0;i&&!U?(0,t.nextTick)(()=>{if(r.sortFlag=="equal")return!1;let X=o.value[r.num_total_len-1];f(X)}):B!==0&&C()},f=B=>{c();var A=1;r.pointNum!=0&&(A=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{S(B),r.totalCount=v(r.totalCount,A,"-"),r.totalCount<=0&&(c(),n("scroll-end"),r.valFlag=!1)},e.during)},S=B=>{let A=B.getAttribute("turn-number"),$;if(r.sortFlag=="add"?$=parseInt(String(A))+1:$=parseInt(String(A))-1>=0?parseInt(String(A))-1:9,B.setAttribute("turn-number",String($)),(B.style.transition=="none 0s ease 0s"||$==1||!B.style.transition)&&(B.style.transition=`all linear ${e.during}ms`),$==10||r.sortFlag=="reduce"&&$==0){var T=null;B.style.top=`-${r.sortFlag=="add"?$*100:(10-$)*100}%`,B.setAttribute("turn-number","0"),T=setTimeout(()=>{T&&clearTimeout(T),B.style.transition="none",B.style.top="0",m(B,$)},.975*e.during)}else B.style.top=`-${r.sortFlag=="add"?$*100:(10-$)*100}%`;B.style.top=="-100%"&&r.sortFlag=="reduce"&&S(B.previousSibling)},m=(B,A)=>{setTimeout(()=>{A==10&&B.previousSibling&&S(B.previousSibling)},200)},C=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),(0,t.nextTick)(()=>{l.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)}};vw({machineLuck:()=>{const B=e.machineTurnMore<0?0:e.machineTurnMore;let A=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&N();for(let $=0;$<e.machineNum;$++)setTimeout(()=>{let T=A*($+1+parseFloat(String(B)));r.prizeYPrev.length!=0&&(r.prizeY[$]=r.prizeYPrev[$]);let U=r.prizeYPrev[$]?r.prizeYPrev[$]:0,Z=T+U+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(A-U);r.prizeLevelTrun<0&&(Z+=e.numHeight*r.notPrize[$]),k($,Z,U)},500*$)}});const k=(B,A,$)=>{let T=setInterval(()=>{if($<=A)$+=10,r.prizeY[B]=parseFloat(String($));else if(clearInterval(T),T=null,r.finshMachine+=1,r.prizeY[B]=A,r.finshMachine==e.machineNum){let U=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(Z=>{let E=Z;for(;E>U;)E-=U;r.prizeYPrev.push(E)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return(0,t.onMounted)(()=>{r.current=e.initNum,(0,t.nextTick)(()=>{p()})}),(0,t.onUnmounted)(()=>{c(),r.timer=null}),{...(0,t.toRefs)(r),...(0,t.toRefs)((0,t.reactive)(e)),runNumberImg:l,setRef:a,topNumber:g,turnNumber:w}}}),yw={class:"fox-countup"},bw=["turn-number"];function kw(e,n,l,o,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",yw,[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:u=>e.setRef(u),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,(u,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-countup__number-item__span",key:"dote"+d,style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},(0,t.toDisplayString)(u),5))),128))],12,bw))),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=ne(gw,[["render",kw]]),Sw=e=>{if(!e)return Date.now();let n=Number(e),l=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:ww,create:Cw}=Q("countdown"),Nw=Cw({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:l}){const o=(0,t.reactive)({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),a=(0,t.computed)(()=>({[ww]:!0})),r=(0,t.computed)(()=>u(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-Sw(e.startTime),o.counting||(o.counting=!0),i()},i=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const g=Date.now()-o.diffTime,w=Math.max(o.handleEndTime-g,0);o.restTime=w,w||(o.counting=!1,c(),n("on-end")),w>0&&i()}}))},u=(g,w)=>{const y=g;let h={d:0,h:0,m:0,s:0,ms:0};const f=1e3,S=60*f,m=60*S,C=24*m;return y>0&&(h.d=y>=f?Math.floor(y/C):0,h.h=Math.floor(y%C/m),h.m=Math.floor(y%m/S),h.s=Math.floor(y%S/f),h.ms=Math.floor(y%f)),w=="custom"?h:d({...h})},d=g=>{let{d:w,h:y,m:h,s:f,ms:S}=g,m=e.format;if(m.includes("DD")?m=m.replace("DD",at(w)):y+=Number(w)*24,m.includes("HH")?m=m.replace("HH",at(y)):h+=Number(y)*60,m.includes("mm")?m=m.replace("mm",at(h)):f+=Number(h)*60,m.includes("ss")?m=m.replace("ss",at(f)):S+=Number(f)*1e3,m.includes("S")){const C=at(S,3).toString();m.includes("SSS")?m=m.replace("SSS",C):m.includes("SS")?m=m.replace("SS",C.slice(0,2)):m.includes("S")&&(m=m.replace("SS",C.slice(0,1)))}return m},p=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i(),n("on-restart",o.restTime))},c=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},v=()=>{e.autoStart||(c(),o.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?s():o.restTime=e.time}),(0,t.watch)(()=>o.restTime,g=>{let w=u(g,"custom");n("update:modelValue",w),n("input",w)}),(0,t.watch)(()=>e.paused,(g,w)=>{w?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i()),n("on-restart",o.restTime)):o.counting&&c()}),(0,t.watch)(()=>e.endTime,g=>{s()}),(0,t.watch)(()=>e.startTime,g=>{s()}),{...(0,t.toRefs)(e),slots:l,classes:a,start:p,pause:c,renderTime:r,reset:v}}}),Bw=["innerHTML"];function Aw(e,n,l,o,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,Bw))],2)}var Va=ne(Nw,[["render",Aw]]),{create:Vw}=Q("badge"),Tw=Vw({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,l=e.max;return typeof n=="number"&&typeof l=="number"&&l<n?`${l}+`:n})}}}),$w={class:"fox-badge"},Ew=["textContent"];function xw(e,n,l,o,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",$w,[(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,Ew),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var Ta=ne(Tw,[["render",xw]]),{componentName:Dw,create:Iw}=Q("tag"),qw=Iw({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=Dw;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 Pw(e,n,l,o,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 en=ne(qw,[["render",Pw]]),{create:Mw}=Q("popover"),_w=Mw({components:{FoxPopup:me},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const l=(0,t.ref)(),o=(0,t.ref)(),a=(0,t.ref)(e.visible);let r=(0,t.ref)(),s=(0,t.ref)();const i=(0,t.computed)(()=>{const S="fox-popover-arrow",m=e.location;return`${S} ${S}-${m.split("-")[0]} ${S}--${m}`}),u=(0,t.computed)(()=>{const S={},{bgColor:m,arrowOffset:C,location:N}=e,b=N.split("-")[0],k=N.split("-")[1],B=16;return m&&(S[`border${d(b)}Color`]=m),e.arrowOffset!=0&&(["bottom","top"].includes(b)&&(k||(S.left=`calc(50% + ${C}px)`),k=="start"&&(S.left=`${B+C}px`),k=="end"&&(S.right=`${B-C}px`)),["left","right"].includes(b)&&(k||(S.top=`calc(50% - ${C}px)`),k=="start"&&(S.top=`${B-C}px`),k=="end"&&(S.bottom=`${B+C}px`))),S}),d=S=>(S=S.toLowerCase(),S=S.replace(/\b\w+\b/g,m=>m.substring(0,1).toUpperCase()+m.substring(1)),S),p=(0,t.computed)(()=>{let S={};if(!r.value||!s.value)return{};const m=s.value.width,C=s.value.height,{width:N,height:b,left:k,top:B}=r.value,{location:A,offset:$}=e,T=A.split("-")[0],U=A.split("-")[1];let Z=0,E=0;return En($)&&$.length==2&&(Z+=Number($[1]),E+=Number($[0])),N&&(["bottom","top"].includes(T)&&(S.top=`${B+(T=="bottom"?b+Z:-(C+Z))}px`,U||(S.left=`${-(m-N)/2+k+E}px`),U=="start"&&(S.left=`${k+E}px`),U=="end"&&(S.left=`${r.value.right+E}px`)),["left","right"].includes(T)&&(S.left=`${k+(T=="left"?-(m+Z):N+Z)}px`,U||(S.top=`${B-C/2+b/2-4+E}px`),U=="start"&&(S.top=`${B+E}px`),U=="end"&&(S.top=`${B+b+E}px`))),S}),c=(0,t.computed)(()=>{const S={};return e.bgColor&&(S.background=e.bgColor),S}),v=()=>{let S=Ie(l.value);e.targetId&&(S=Ie(document.querySelector(`#${e.targetId}`))),r.value=S,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};(0,t.onMounted)(()=>{setTimeout(()=>{v()},200)}),(0,t.watch)(()=>e.visible,S=>{a.value=S,S?(window.addEventListener("touchstart",f,!0),v()):window.removeEventListener("touchstart",f,!0)});const g=S=>{n("update",S),n("update:visible",S)},w=()=>{g(!e.visible),n("open")},y=()=>{n("update:visible",!1),n("close")},h=(S,m)=>{!S.disabled&&n("choose",S,m),e.closeOnClickAction&&y()},f=S=>{const m=l.value,C=o.value;let N=m&&!m.contains(S.target);if(e.targetId){const b=document.querySelector(`#${e.targetId}`);N=b&&!b.contains(S.target)}N&&C&&!C.contains(S.target)&&e.closeOnClickOutside&&y()};return{showPopup:a,openPopover:w,popoverArrow:i,closePopover:y,chooseItem:h,popoverRef:l,popoverContentRef:o,getRootPosition:p,customStyle:c,popoverArrowStyle:u,renderIcon:yi}}}),Lw={ref:"popoverContentRef",class:"fox-popover-content-group"},zw=["onClick"],Ow={class:"fox-popover-menu-item-name"};function Fw(e,n,l,o,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",Lw,[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,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u,class:(0,t.normalizeClass)([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:(0,t.withModifiers)(d=>e.chooseItem(i,u),["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",Ow,(0,t.toDisplayString)(i.name),1)],10,zw))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}var tn=ne(_w,[["render",Fw]]),Rw=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:l,round:o,avatarSize:a}=(0,t.toRefs)(n),r=(0,t.computed)(()=>{const u="avatarClass";return{[u]:!0,[`${u}--${l.value}`]:l.value}});return{avatarShape:l,avatarClass:r,getBlockClass:u=>({[u]:!0,[`${u}--round`]:o.value}),getStyle:()=>a.value?{width:a.value,height:a.value}:{width:"50px",height:"50px"}}}}),{create:Kw}=Q("skeleton"),Uw=Kw(Rw({[Jt.name]:Jt})),Hw={key:0},jw={key:1,class:"fox-skeleton"},Ww={key:0,class:"fox-skeleton-animation"},Yw={class:"fox-skeleton-content"};function Xw(e,n,l,o,a,r){const s=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",jw,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ww)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Yw,[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",Hw,[(0,t.renderSlot)(e.$slots,"default")]))}var $a=ne(Uw,[["render",Xw]]),{create:Qw,componentName:Gw}=Q("collapse"),Zw=Qw({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const l=(0,t.ref)(null),o=(0,t.ref)(e.modelValue||(e.accordion?"":[])),a=(0,t.computed)(()=>({[Gw]:!0}));(0,t.watch)(()=>e.modelValue,u=>{o.value=u});const r=(u,d,p=!0)=>{o.value=u,n("update:modelValue",u),n("change",u,d,p)},s=u=>{e.accordion?o.value===u?r("",u,!1):r(u,u,!0):Array.isArray(o.value)?o.value.includes(u)?r(o.value.filter(d=>d!==u),u,!1):r(o.value.concat([u]),u,!0):console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=u=>e.accordion?o.value===u:Array.isArray(o.value)?o.value.includes(u):!1;return(0,t.provide)("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:l,classes:a}}});function Jw(e,n,l,o,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=ne(Zw,[["render",Jw]]),{create:eC,componentName:tC}=Q("collapse-item"),nC=eC({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),l=(0,t.ref)(null),o=(0,t.reactive)((0,t.inject)("collapseParent")),a=(0,t.computed)(()=>{const c=tC;return{[c]:!0,[c+"__border"]:e.border}}),r=(0,t.computed)(()=>o?o.isExpanded(e.name):!1),s=(0,t.ref)(r.value?"auto":"0px"),i=()=>{o.updateVal(e.name)},u=()=>{r.value&&(s.value="auto")},d=()=>{s.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const c=l.value?.offsetHeight;s.value=c?`${c}px`:"auto"})})},p=()=>{const c=l.value?.offsetHeight;s.value=c?`${c}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{s.value="0px"})})};return(0,t.watch)(r,c=>{c?d():p()}),{classes:a,renderIcon:yi,wrapperRef:n,contentRef:l,open:d,toggle:i,wrapperHeight:s,expanded:r,onTransitionEnd:u}}}),oC={class:"fox-collapse-item__title-main"},lC={class:"fox-collapse-item__title-main-value"},aC=["innerHTML"],rC={key:2,class:"fox-collapse-item__title-label"},iC={key:0,class:"fox-collapse-item__title-sub"},sC=["innerHTML"],uC={key:0,class:"fox-collapse__item-extraWrapper"},cC={class:"fox-collapse__item-extraWrapper__extraRender"},dC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function fC(e,n,l,o,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",oC,[(0,t.createElementVNode)("view",lC,[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,aC)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",rC,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",iC,[(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,sC)),(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",uC,[(0,t.createElementVNode)("div",cC,[(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",dC,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var xa=ne(nC,[["render",fC]]),mC=(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:pC,create:vC,scope:hC}=Q("table"),gC=vC({components:{RenderColumn:mC,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:l}){const{t:o}=(0,se.useFoxI18n)(hC),a=(0,t.reactive)({curData:e.data}),r=(0,t.computed)(()=>({[pC]:!0})),s=g=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${g.align?g.align:""}`]:!0}),i=g=>g.stylehead?g.stylehead:"",u=g=>g.stylecolumn?g.stylecolumn:"",d=g=>e.columns.filter(w=>w.key===g)[0],p=g=>{const w=e.columns.filter(y=>y.key===g);return w[0].stylecolumn?w[0].stylecolumn:""},c=g=>{g.sorter&&(n("sorter",g),a.curData=typeof g.sorter=="function"?a.curData.sort(g.sorter):g.sorter==="default"?a.curData.sort():a.curData)},v=()=>e.columns.map(g=>[g.key,g.render]);return(0,t.watch)(()=>e.data,g=>{a.curData=g.slice()}),{...(0,t.toRefs)(a),classes:r,cellClasses:s,getColumnItem:d,getColumnItemStyle:p,handleSorterClick:c,sortDataItem:v,t:o,stylehead:i,stylecolumn:u}}}),yC={class:"fox-table__main__head"},bC={class:"fox-table__main__head__tr"},kC=["onClick"],SC={class:"fox-table__main__body"},wC={key:1},CC={key:0,class:"fox-table__nodata"},NC={key:0,class:"fox-table__nodata__text"},BC={key:1,class:"fox-table__summary"},AC=["innerHTML"];function VC(e,n,l,o,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",yC,[(0,t.createElementVNode)("view",bC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,u=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__head__tr__th",e.cellClasses(u)]),key:u.key,onClick:d=>e.handleSorterClick(u),style:(0,t.normalizeStyle)(u.stylehead)},[(0,t.createTextVNode)((0,t.toDisplayString)(u.title)+" ",1),(0,t.renderSlot)(e.$slots,"icon"),!e.$slots.icon&&u.sorter?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,width:"12px",height:"12px"})):(0,t.createCommentVNode)("",!0)],14,kC))),128))])]),(0,t.createElementVNode)("view",SC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.curData,u=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-table__main__body__tr",key:u},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.sortDataItem(),([d,p])=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:(0,t.normalizeStyle)(e.getColumnItemStyle(d))},[typeof u[d]=="function"||typeof p=="function"?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,slots:[p,u[d]],record:u},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",wC,(0,t.toDisplayString)(u[d]),1))],6))),128))]))),128))])],2),e.curData.length?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",CC,[(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",NC,(0,t.toDisplayString)(e.t("noData")),1))],2)])),e.summary?((0,t.openBlock)(),(0,t.createElementBlock)("view",BC,[(0,t.createElementVNode)("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,AC)])):(0,t.createCommentVNode)("",!0)],2)}var Da=ne(gC,[["render",VC]]),{componentName:TC,create:$C}=Q("ellipsis"),EC=$C({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const l=(0,t.ref)(null);let o=null,a=0;const r=(0,t.ref)(),s=(0,t.reactive)({exceeded:!1,expanded:!1}),i=(0,t.computed)(()=>({[TC]:!0}));(0,t.watch)(()=>e.content,(y,h)=>{y!=h&&u()}),(0,t.onMounted)(()=>{u()});const u=()=>{if(!l.value)return;const y=window.getComputedStyle(l.value);o=document.createElement("div"),Array.prototype.slice.apply(y).forEach(f=>{o.style.setProperty(f,y.getPropertyValue(f))}),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 h=v(y.lineHeight==="normal"?e.lineHeight:y.lineHeight);a=Math.floor(h*(Number(e.rows)+.5)+v(y.paddingTop)+v(y.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),d()},d=()=>{if(o.offsetHeight<=a)s.exceeded=!1,document.body.removeChild(o);else{s.exceeded=!0;const y=e.content.length,h=Math.floor((0+y)/2);r.value=e.direction==="middle"?c([0,h],[h,y]):p(0,y),document.body.removeChild(o)}},p=(y,h)=>{const f=s.expanded?e.collapseText:e.expandText,S=e.content.length;if(h-y<=1)return e.direction==="end"?{leading:e.content.slice(0,y)+e.symbol}:{tailing:e.symbol+e.content.slice(h,S)};const m=Math.round((y+h)/2);return e.direction==="end"?o.innerText=e.content.slice(0,m)+e.symbol+f:o.innerText=f+e.symbol+e.content.slice(m,S),o.offsetHeight<=a?e.direction==="end"?p(m,h):p(y,m):e.direction==="end"?p(y,m):p(m,h)},c=(y,h)=>{const f=s.expanded?e.collapseText:e.expandText,S=e.content.length;if(y[1]-y[0]<=1&&h[1]-h[0]<=1)return{leading:e.content.slice(0,y[0])+e.symbol,tailing:e.symbol+e.content.slice(h[1],S)};const m=Math.floor((y[0]+y[1])/2),C=Math.ceil((h[0]+h[1])/2);return o.innerText=e.content.slice(0,m)+e.symbol+f+e.symbol+e.content.slice(C,S),o.offsetHeight<=a?c([m,y[1]],[h[0],C]):c([y[0],m],[C,h[1]])},v=y=>{if(!y)return 0;const h=y.match(/^\d*(\.\d*)?/);return h?Number(h[0]):0},g=y=>{y==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},w=()=>{n("click")};return{...(0,t.toRefs)(s),root:l,ellipsis:r,classes:i,clickHandle:g,handleClick:w}}}),xC={key:0},DC={key:1},IC={key:2};function qC(e,n,l,o,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",xC,(0,t.toDisplayString)(e.content),1)),e.exceeded&&!e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",DC,[(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",IC,[(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 Ia=ne(EC,[["render",qC]]),{componentName:PC,create:MC}=Q("animate"),_C=MC({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:l,loop:o,action:a}=(0,t.toRefs)(e),r=(0,t.reactive)({clicked:!1});let s=(0,t.computed)(()=>({"fox-animate__container":!0,[`${PC}-${l.value}`]:a.value==="initial"||r.clicked?l.value:!1,loop:o.value}));const i=u=>{r.clicked=!0,o.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",u)};return{...(0,t.toRefs)(r),classes:s,handleClick:i}}}),LC={class:"fox-animate"};function zC(e,n,l,o,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",LC,[(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 qa=ne(_C,[["render",zC]]),{componentName:OC,create:FC}=Q("watermark"),RC=FC({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const l=(0,t.reactive)({base64Url:""}),{zIndex:o,gapX:a,gapY:r,width:s,height:i,rotate:u,image:d,imageWidth:p,imageHeight:c,content:v,fontStyle:g,fontWeight:w,fontColor:y,fontSize:h,fontFamily:f}=e,S=()=>{const C=document.createElement("canvas"),N=window.devicePixelRatio,b=C.getContext("2d"),k=`${(a+s)*N}px`,B=`${(r+i)*N}px`,A=s*N,$=i*N;if(C.setAttribute("width",k),C.setAttribute("height",B),b)if(d){b.translate(A/2,$/2),b.rotate(Math.PI/180*Number(u));const T=new Image;T.crossOrigin="anonymous",T.referrerPolicy="no-referrer",T.src=d,T.onload=()=>{b.drawImage(T,-p*N/2,-c*N/2,p*N,c*N),b.restore(),l.base64Url=C.toDataURL()}}else v&&(b.textBaseline="middle",b.textAlign="center",b.translate(A/2,$/2),b.rotate(Math.PI/180*Number(u)),b.font=`${g} normal ${w} ${Number(h)*N}px/${$}px ${f}`,b.fillStyle=y,b.fillText(v,0,0),b.restore(),l.base64Url=C.toDataURL());else throw new Error("当前环境不支持Canvas")};S(),(0,t.watch)(()=>[o,a,r,s,i,u,d,p,c,v,g,w,y,h,f],()=>{S()});const m=(0,t.computed)(()=>{const C=OC;return{[C]:!0,[`${C}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(l),classes:m}}});function KC(e,n,l,o,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 Pa=ne(RC,[["render",KC]]);function UC(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:HC,create:jC}=Q("trend-arrow"),WC=jC({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}),l=(0,t.computed)(()=>({[HC]:!0})),o=(0,t.computed)(()=>{const{rate:r,digits:s,showSign:i,showZero:u}=e;n.rateTrend=r>0;const d=Math.abs(r);return!u&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${UC(Number(d),s)}%`}),a=(0,t.computed)(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:u,rate:d}=e;return{color:d===0?u:i?n.rateTrend?s:r:u}});return{...(0,t.toRefs)(n),classes:l,calcRate:o,calcStyle:a}}});function YC(e,n,l,o,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=ne(WC,[["render",YC]]),{create:XC}=Q("tour"),QC=XC({components:{[tn.name]:tn,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 l=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),o=(0,t.ref)({}),a=(0,t.computed)(()=>"fox-tour"),r=(0,t.computed)(()=>{const{offset:p,maskWidth:c,maskHeight:v}=e,{width:g,height:w,left:y,top:h}=o.value,f=[y+g/2,h+w/2],S=Number(c||g),m=Number(v||w);return{width:`${S+ +p[1]*2}px`,height:`${m+ +p[0]*2}px`,top:`${f[1]-m/2-+p[0]}px`,left:`${f[0]-S/2-+p[1]}px`}}),s=p=>{p=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,(0,t.nextTick)(()=>{l.showPopup=!0,i()}),n("change",l.active)},i=()=>{o.value=Ie(document.querySelector(`#${e.steps[l.active].target}`))},u=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&u()};return(0,t.onMounted)(()=>{l.active=0,i()}),(0,t.watch)(()=>e.modelValue,p=>{p&&i(),l.active=0,l.showTour=p,l.showPopup=p}),{...(0,t.toRefs)(l),classes:a,maskStyle:r,changeStep:s,close:u,handleClickMask:d}}}),GC={key:0,class:"fox-tour-content"},ZC={key:0,class:"fox-tour-content-top"},JC={class:"fox-tour-content-inner"},e2={class:"fox-tour-content-bottom"},t2={class:"fox-tour-content-bottom-init"},n2={class:"fox-tour-content-bottom-operate"},o2={key:1,class:"fox-tour-content fox-tour-content-tile"},l2={class:"fox-tour-content-inner"};function a2(e,n,l,o,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]=(...u)=>e.handleClickMask&&e.handleClickMask(...u))},null,512),[[t.vShow,e.showTour]]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.steps,(u,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:d,style:{height:"0"}},[d==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:u.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:u.popoverOffset||[0,12],arrowOffset:u.arrowOffset||0},{content:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,t.openBlock)(),(0,t.createElementBlock)("div",GC,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",ZC,[(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",JC,(0,t.toDisplayString)(u.content),1),(0,t.createElementVNode)("div",e2,[(0,t.createElementVNode)("div",t2,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",n2,[(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",o2,[(0,t.createElementVNode)("div",l2,(0,t.toDisplayString)(u.content),1)])):(0,t.createCommentVNode)("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):(0,t.createCommentVNode)("",!0)]))),128))],2)}var _a=ne(QC,[["render",a2]]),{componentName:eV,create:r2,scope:i2}=Q("address"),s2=r2({components:{Location:oe.Location,Location2:oe.Location2,Check:oe.Check,Close:oe.Close,Left:oe.Left,[me.name]:me,[Yt.name]:Yt},inheritAttrs:!1,props:{...Fe,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:n}){const{t:l}=(0,se.useFoxI18n)(i2),o=(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),u=(0,t.ref)(0),d=(0,t.ref)(["province","city","country","town"]),p=(0,t.ref)(null),c=(0,t.ref)([0,0,0,0]),v=(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}}),g=V=>{if(!Array.isArray(V))throw new TypeError("params muse be array.");if(!V.length)return[];V.forEach(D=>{if(!D.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const I=[];return V=V.sort((D,L)=>D.title.localeCompare(L.title)),V.forEach(D=>{const L=I.findIndex(O=>O.title===D.title);L<=-1?I.push({title:D.title,list:[].concat(D)}):I[L].list.push(D)}),I};let w=(0,t.ref)([]),y=(0,t.reactive)({});const h=(0,t.ref)("self"),f=(0,t.ref)(20),S=()=>{const V=e.modelValue,I=V.length;if(I>0){if(i.value=I-1,v.value.length==0){i.value=0;return}for(let D=0;D<I;D++){let L=[];switch(D){case 0:L=e.province;break;case 1:L=e.city;break;case 2:L=e.country;break;default:L=e.town}w.value[D]=L.filter(O=>O.id==V[D])[0]}C()}},m=(V,I)=>V&&V.name||i.value<I&&V?V.name:e.columnsPlaceholder[I]||l("select"),C=()=>{k(),(0,t.nextTick)(()=>{const V=a.value&&a.value.getElementsByClassName("active")[0];if(V){const I=V.offsetLeft;f.value=I||20}})},N=V=>{const I=i.value;u.value=i.value;const D={custom:d.value[I]};w.value[I]=V;for(let L=I+2;L<4;L++)w.value.splice(L,1);I<3?(i.value=I+1,C(),D.next=d.value[i.value],D.value=V,n("change",D)):($(),n("update:modelValue"))},b=(V,I)=>{u.value=i.value,m(V,I)&&(i.value=I,C())},k=()=>{const V=p.value,I=u.value,D=c.value[i.value];V?.scrollTop&&(c.value[I]=V?.scrollTop),(0,t.nextTick)(()=>{V?.scrollTo({top:D,behavior:"auto"})})},B=V=>{const I=e.existAddress;let D={};I.forEach(L=>{L&&L.selectedAddress&&(D=L),L.selectedAddress=!1}),V.selectedAddress=!0,y=V,n("selected",D,V,I),$()},A=()=>{w.value=[],i.value=0,C()},$=(V="self")=>{h.value=V=="cross"?"cross":"self",r.value=!1},T=()=>{h.value="mask"},U=()=>{const V={addressIdStr:"",addressStr:"",province:w.value[0],city:w.value[1],country:w.value[2],town:w.value[3]},I={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(D=>{const L=w.value[D];V.addressIdStr+=`${D?"_":""}${L&&L.id||0}`,V.addressStr+=L&&L.name||""}),I.data=V):I.data=y,A(),h.value=="self"?n("close",I):n("close-mask",{closeWay:h}),n("update:visible",!1)},Z=()=>{s.value=s.value=="exist"?"custom":"exist",A(),n("switch-module",{type:s.value})},E=(V,I)=>{N(I)};return(0,t.watch)(()=>e.visible,V=>{r.value=V}),(0,t.watch)(()=>r.value,V=>{V&&S()}),{showPopup:r,privateType:s,tabIndex:i,tabName:d,selectedRegion:w,switchModule:Z,closeWay:h,close:U,getTabName:m,nextAreaList:N,regionLine:o,tabRegion:a,lineDistance:f,changeRegionTab:b,selectedExist:B,clickOverlay:T,handClose:$,handleElevatorItem:E,initCustomSelected:S,...(0,t.toRefs)(e),t:l,regionList:v,transformData:g,scrollDom:p}}}),u2={class:"fox-address"},c2={class:"fox-address__header"},d2={class:"fox-address__header__title"},f2={key:0,class:"fox-address__custom"},m2={class:"fox-address__region",ref:"tabRegion"},p2=["onClick"],v2={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"],N2={class:"fox-address__exist-item-info"},B2={key:0,class:"fox-address__exist-item-info-name"},A2={key:1,class:"fox-address__exist-item-info-phone"},V2={class:"fox-address__exist-item-info-bottom"},T2={class:"fox-address__exist-choose-btn"};function $2(e,n,l,o,a,r){const s=(0,t.resolveComponent)("Left"),i=(0,t.resolveComponent)("Close"),u=(0,t.resolveComponent)("Check"),d=(0,t.resolveComponent)("fox-elevator"),p=(0,t.resolveComponent)("Location2"),c=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(c,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=v=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=v=>e.showPopup=v),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",u2,[(0,t.createElementVNode)("view",c2,[(0,t.createElementVNode)("view",{class:"fox-address__header-back",onClick:n[0]||(n[0]=(...v)=>e.switchModule&&e.switchModule(...v))},[(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]=v=>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",f2,[(0,t.createElementVNode)("view",m2,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.selectedRegion,(v,g)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-address__region-item",g==e.tabIndex?"active":""]),key:g,onClick:w=>e.changeRegionTab(v,g)},[(0,t.createElementVNode)("view",null,(0,t.toDisplayString)(e.getTabName(v,g)),1)],10,p2))),128)),e.tabIndex==e.selectedRegion.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",v2,[(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,(v,g)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{key:g,class:(0,t.normalizeClass)(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==v.id?"active":""]),onClick:w=>e.nextAreaList(v)},[(0,t.createElementVNode)("div",null,[e.selectedRegion[e.tabIndex]?.id==v.id?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(u,{class:"fox-address-select-icon",size:"13px"})]):(0,t.createCommentVNode)("",!0),(0,t.createTextVNode)((0,t.toDisplayString)(v.name),1)])],10,y2))),128))],512)])):((0,t.openBlock)(),(0,t.createElementBlock)("view",b2,[(0,t.createVNode)(d,{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,(v,g)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{class:(0,t.normalizeClass)(["fox-address__exist-group-item",v.selectedAddress?"active":""]),key:g,onClick:w=>e.selectedExist(v)},[v.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"})]),v.selectedAddress?(0,t.renderSlot)(e.$slots,"icon",{key:1},()=>[(0,t.createVNode)(u,{class:"fox-address-select-icon",size:"13px"})]):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",N2,[v.name?((0,t.openBlock)(),(0,t.createElementBlock)("div",B2,(0,t.toDisplayString)(v.name),1)):(0,t.createCommentVNode)("",!0),v.phone?((0,t.openBlock)(),(0,t.createElementBlock)("div",A2,(0,t.toDisplayString)(v.phone),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",V2,[(0,t.createElementVNode)("view",null,(0,t.toDisplayString)(v.provinceName+v.cityName+v.countyName+v.townName+v.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]=(...v)=>e.switchModule&&e.switchModule(...v))},[(0,t.createElementVNode)("div",T2,(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 La=ne(s2,[["render",$2]]),{componentName:E2,create:x2}=Q("barrage"),D2=x2({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const n=new Date().getTime(),l=!!(0,t.useSlots)().default,o=(0,t.computed)(()=>({[E2]:!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),u=(0,t.ref)(e.rows),d=(0,t.ref)(e.top),p=(0,t.ref)(0),c=e.speeds,v=(0,t.ref)(0);(0,t.onMounted)(()=>{g(),l&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(y(),p.value=0,w("hidden")):document.visibilityState==="visible"&&g()})}),(0,t.onUnmounted)(()=>{i.value=[],y()});const g=()=>{v.value=a.value.offsetWidth,l&&w("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${v.value}px`),f()},300)},w=m=>{let C=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const N=[];C&&Array.from(C).forEach(b=>{m=="init"?(b.style.opacity="0",N.push(b)):(b.classList="",b.style={})}),m=="init"&&(i.value=N)},y=()=>{s&&(clearTimeout(s),s=null)};(0,t.watch)(()=>e.danmu,m=>{e.danmu.length>0&&(i.value=[...m])});const h=m=>{const C=p.value%i.value.length;!e.loop&&p.value===i.value.length?i.value.splice(i.value.length,0,m):i.value.splice(C,0,m)},f=()=>{y(),s=setTimeout(()=>{S()},e.frequency)},S=()=>{const m=e.loop?p.value%i.value.length:p.value;let C=document.createElement("view");l&&typeof i.value[m]=="object"?(C=i.value[m],C?.classList?.add("fox-barrage__item")):(C.innerHTML=i.value[m],C.classList.add("fox-barrage__item"),r.value.appendChild(C)),(0,t.nextTick)(()=>{const N=C.offsetHeight;if(C?.classList?.add("move"),C.style.animationDuration=`${c}ms`,C.style.top=m%u.value*(N+d.value)+20+"px",C.style.opacity="1",!l){const b=C.offsetWidth;C.style.width=b+20+"px"}C.addEventListener("animationend",()=>{l?C.classList.remove("move"):r.value.removeChild(C)}),!(!e.loop&&p.value>=i.value.length-1)&&(p.value++,p.value>=i.value.length&&(p.value=0),C.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:o,danmuList:i,dmBody:a,dmContainer:r,add:h}}});function I2(e,n,l,o,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 za=ne(D2,[["render",I2]]),{componentName:q2,create:P2,scope:M2}=Q("signature"),_2=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:{[Le.name]:Le},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:l}=(0,se.useFoxI18n)(M2),o=l(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"]}),u=()=>{let S=document.createElement("canvas");return!!(S.getContext&&S.getContext("2d"))},d=()=>{a.value.addEventListener(i.events[0],p,!1)},p=S=>{S.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),a.value.addEventListener(i.events[1],c,!1),a.value.addEventListener(i.events[2],v,!1),a.value.addEventListener(i.events[3],g,!1)},c=S=>{S.preventDefault();let m=i.isSupportTouch?S.touches[0]:S;n("signing",m);let C=a.value.getBoundingClientRect(),N=m.clientX-C.left,b=m.clientY-C.top;i.ctx.lineTo(N,b),i.ctx.stroke()},v=S=>{S.preventDefault(),n("end"),a.value.removeEventListener(i.events[1],c,!1),a.value.removeEventListener(i.events[2],v,!1)},g=S=>{S.preventDefault(),a.value.removeEventListener(i.events[1],c,!1),a.value.removeEventListener(i.events[2],v,!1)},w=()=>{a.value.addEventListener(i.events[2],v,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},y=()=>{f(a.value)},h=S=>{if(!S)return!0;var m=document.createElement("canvas");return m.width=S.width,m.height=S.height,S?.toDataURL()==m.toDataURL()},f=S=>{let m;switch(e.type){case"png":m=S.toDataURL("image/png");break;case"jpg":m=S.toDataURL("image/jpeg",.8);break}n("confirm",h(S)?"请绘制签名":S,h(S)?"":m)};return(0,t.onMounted)(()=>{u()&&(i.ctx=a.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,d())}),{...o,...(0,t.toRefs)(i),canvas:a,wrap:r,isCanvasSupported:u,confirm:y,clear:w,classes:s}}}),L2={class:"fox-signature-inner",ref:"wrap"},z2=["height","width"],O2={key:0,class:"fox-signature-unsopport"};function F2(e,n,l,o,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 Oa=ne(_2,[["render",F2]]),{componentName:R2,create:K2,scope:U2}=Q("time-select"),H2=K2({components:{[me.name]:me},props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!0},teleportDisable:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,n)=>{const{t:l}=(0,se.useFoxI18n)(U2),o=(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:o,popStyle:a,props:e,close:i,t:l}}}),j2={class:"fox-time-select__title"},W2={class:"fox-time-select__title__fixed"},Y2={key:0},X2={class:"fox-time-select__content"},Q2={class:"fox-time-select__content__pannel"},G2={class:"fox-time-select__content__detail"};function Z2(e,n,l,o,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",j2,[(0,t.createElementVNode)("view",W2,[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:1}):((0,t.openBlock)(),(0,t.createElementBlock)("span",Y2,(0,t.toDisplayString)(e.title||e.t("pickupTime")),1))])]),(0,t.createElementVNode)("view",X2,[(0,t.createElementVNode)("view",Q2,[(0,t.renderSlot)(e.$slots,"pannel")]),(0,t.createElementVNode)("view",G2,[(0,t.renderSlot)(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}var Fa=ne(H2,[["render",Z2]]),{componentName:J2,create:eN}=Q("time-pannel"),tN=eN({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,n)=>{const l=(0,t.reactive)({currentKey:(0,t.inject)("currentKey")}),o=(0,t.computed)(()=>({[J2]:!0,"fox-time-pannel--curr":l.currentKey==e.pannelKey})),a=r=>{n.emit("change",r)};return{...(0,t.toRefs)(l),classes:o,handlePannel:a}}});function nN(e,n,l,o,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 Ra=ne(tN,[["render",nN]]),{componentName:oN,create:lN}=Q("time-detail"),aN=lN({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,n)=>{const l=(0,t.reactive)({currentKey:(0,t.inject)("currentKey"),currentTime:(0,t.inject)("currentTime")}),o=(0,t.computed)(()=>({[oN]:!0})),a=i=>{let u=l.currentTime.find(d=>d.key==l.currentKey);if(u)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":u.list.filter(d=>d===i).length>0}},r=(0,t.computed)(()=>e.times.find(i=>i.key==l.currentKey).list),s=i=>{n.emit("select",i)};return{classes:o,...(0,t.toRefs)(l),getClass:a,renderData:r,handleTime:s}}}),rN={class:"fox-time-detail__detail fox-time-detail__detail--moring"},iN={class:"fox-time-detail__detail__list"},sN=["onClick"];function uN(e,n,l,o,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",rN,[(0,t.createElementVNode)("view",iN,[((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,sN))),128))])])],2)}var Ka=ne(aN,[["render",uN]]),{componentName:tV,create:cN,scope:dN}=Q("sku-header"),fN=cN({props:{goods:{type:Object,default:{}}},emits:[],components:{[Ge.name]:Ge},setup(e,{emit:n,slots:l}){const{t:o}=(0,se.useFoxI18n)(dN);return{getSlots:r=>l[r],t:o}}}),mN={class:"fox-sku-header"},pN=["src"],vN={class:"fox-sku-header-right"},hN={key:3,class:"fox-sku-header-right-extra"};function gN(e,n,l,o,a,r){const s=(0,t.resolveComponent)("fox-price");return(0,t.openBlock)(),(0,t.createElementBlock)("view",mN,[(0,t.createElementVNode)("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,pN),(0,t.createElementVNode)("view",vN,[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=ne(fN,[["render",gN]]),{componentName:nV,create:bN}=Q("sku-select"),kN=bN({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:n}){const l=(0,t.ref)([]);return(0,t.watch)(()=>e.sku,a=>{l.value=[].slice.call(a)},{deep:!0}),(0,t.onMounted)(()=>{e.sku.length>0&&(l.value=[].slice.call(e.sku))}),{skuInfo:l,changeSaleChild:(a,r,s,i)=>{a.checkFlag||a.disable||n("selectSku",{sku:a,skuIndex:r,parentSku:s,parentIndex:i})}}}}),SN={class:"fox-sku-select"},wN={class:"fox-sku-select-item-title"},CN={class:"fox-sku-select-item-skus"},NN=["onClick"];function BN(e,n,l,o,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,(u,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-sku-select-item-skus-sku",[{active:!u.disable&&u.active},{disable:u.disable}]]),onClick:p=>e.changeSaleChild(u,d,s,i),key:u.name},(0,t.toDisplayString)(u.name),11,NN))),128))])]))),128))])}var AN=ne(kN,[["render",BN]]),{componentName:oV,create:VN}=Q("sku-stepper"),TN=VN({props:{stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},stepperExtraText:{type:[Function,Boolean],default:!1},stepperTitle:{type:String,default:"购买数量"}},emits:["click","changeSku","changeStepper","clickBtnOptions","overLimit","reduce","add"],components:{[Ze.name]:Ze},setup(e,{emit:n}){const l=(0,t.ref)(e.stepperMin);return(0,t.onMounted)(()=>{l.value=e.stepperMin}),{goodsCount:l,add:u=>{n("add",u)},reduce:u=>{n("reduce",u)},overlimit:(u,d)=>{n("overLimit",{action:d,value:parseInt(l.value+"")})},getExtraText:()=>{const{stepperExtraText:u}=e;return u&&st(u)=="function"?u():""},changeStepper:u=>{l.value=u,n("changeStepper",u)}}}}),$N={class:"fox-sku-stepper"},EN={class:"fox-sku-stepper-title"},xN=["innerHTML"],DN={class:"fox-sku-stepper-count"};function IN(e,n,l,o,a,r){const s=(0,t.resolveComponent)("fox-input-number");return(0,t.openBlock)(),(0,t.createElementBlock)("view",$N,[(0,t.createElementVNode)("view",EN,(0,t.toDisplayString)(e.stepperTitle),1),(0,t.createElementVNode)("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,xN),(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=ne(TN,[["render",IN]]),{componentName:lV,create:PN}=Q("sku-operate"),MN=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:l}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{n("clickBtnOperate",s)},getSlots:s=>l[s]}}}),_N={key:0,class:"fox-sku-operate"},LN={key:0,class:"fox-sku-operate-desc"},zN={key:1,class:"fox-sku-operate-btn"},ON=["onClick"];function FN(e,n,l,o,a,r){return e.btnOptions.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",_N,[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:u=>e.clickBtnOperate(s)},(0,t.toDisplayString)(e.getBtnDesc(s)),11,ON))),128))]))])):(0,t.createCommentVNode)("",!0)}var RN=ne(MN,[["render",FN]]),{componentName:aV,create:KN,scope:UN}=Q("sku"),HN=KN({props:{...Fe,sku:{type:Array,default:[]},goods:{type:Object,default:{}},stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},btnOptions:{type:Array,default:()=>["confirm"]},stepperTitle:{type:String,default:""},stepperExtraText:{type:[Function,Boolean],default:!1},btnExtraText:{type:String,default:""},buyText:{type:String,default:""},addCartText:{type:String,default:""},confirmText:{type:String,default:""}},emits:["update:visible","select-sku","change-stepper","click-btn-operate","click-close-icon","click-overlay","close","reduce","add","over-limit"],components:{SkuHeader:yN,SkuSelect:AN,SkuStepper:qN,SkuOperate:RN,[me.name]:me},setup(e,{emit:n,slots:l}){const{toLocaleRefs:o}=(0,se.useFoxI18n)(UN),a=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=(0,t.ref)(e.visible),s=(0,t.ref)(e.stepperMin);(0,t.watch)(()=>e.visible,h=>{r.value=h}),(0,t.watch)(()=>r.value,h=>{h==!1&&y()}),(0,t.onMounted)(()=>{});const i=h=>l[h],u=h=>{n("select-sku",h)},d=h=>{s.value=h,n("change-stepper",h)},p=h=>{n("add",h)},c=h=>{n("reduce",h)},v=h=>{n("over-limit",h)},g=h=>{n("click-btn-operate",{type:h,value:s.value})},w=h=>{h=="icon"&&n("click-close-icon"),h=="overlay"&&n("click-overlay"),h=="close"&&n("close"),r.value=!1},y=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:w,selectSku:u,changeStepper:d,stepperOverLimit:v,clickBtnOperate:g,add:p,reduce:c,getSlots:i,...a}}}),jN={class:"fox-sku"},WN={class:"fox-sku-content"};function YN(e,n,l,o,a,r){const s=(0,t.resolveComponent)("sku-header"),i=(0,t.resolveComponent)("SkuSelect"),u=(0,t.resolveComponent)("sku-stepper"),d=(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]=c=>e.showPopup=c),onClickCloseIcon:n[1]||(n[1]=c=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=c=>e.closePopup("overlay")),onClose:n[3]||(n[3]=c=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",jN,[(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)(u,{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)(d,{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 Ua=ne(HN,[["render",YN]]),{create:XN}=Q("card"),QN=XN({components:{[Ge.name]:Ge,[en.name]:en},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:n,slots:l}){return{isHaveSlot:a=>l[a]}}}),GN={class:"fox-card"},ZN={class:"fox-card__left"},JN=["src"],eB={class:"fox-card__right"},tB={class:"fox-card__right__title"},nB={key:0,class:"fox-card__right__price"},oB={class:"fox-card__right__other"},lB={class:"fox-card__right__shop"},aB={class:"fox-card__right__shop__name"};function rB(e,n,l,o,a,r){const s=(0,t.resolveComponent)("fox-price"),i=(0,t.resolveComponent)("fox-tag");return(0,t.openBlock)(),(0,t.createElementBlock)("div",GN,[(0,t.createElementVNode)("div",ZN,[(0,t.createElementVNode)("img",{src:e.imgUrl,alt:""},null,8,JN)]),(0,t.createElementVNode)("div",eB,[(0,t.createElementVNode)("div",tB,(0,t.toDisplayString)(e.title),1),(0,t.renderSlot)(e.$slots,"prolist"),e.isNeedPrice?((0,t.openBlock)(),(0,t.createElementBlock)("div",nB,[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",oB,[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",aB,(0,t.toDisplayString)(e.shopName),1),(0,t.renderSlot)(e.$slots,"footer")])])])}var Ha=ne(QN,[["render",rB]]),{create:iB,scope:sB}=Q("ecard"),uB=iB({components:{[Ze.name]:Ze},props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:Array,default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"¥"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:n}){const{t:l}=(0,se.useFoxI18n)(sB),o=(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),u=(v,g)=>{o.value=g,s.value=e.cardAmountMin,a.value=v.price,n("change",v),n("update:modelValue",v.price)},d=v=>{let g=v.target.value.replace(/[^\d]/g,"");r.value=g,a.value=g,Number(g)>e.cardAmountMax&&(r.value=e.cardAmountMax,a.value=e.cardAmountMax),Number(g)<e.cardAmountMin&&(r.value=e.cardAmountMin,a.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},p=()=>{o.value="input",s.value=e.cardAmountMin,a.value=r.value,n("update:modelValue",r.value),n("inputClick")},c=v=>{s.value=v,n("changeStep",s.value,a.value)};return(0,t.watch)(()=>e.modelValue,v=>{i.value=v}),{handleClick:u,changeStep:c,change:d,inputClick:p,stepValue:s,currentIndex:o,inputValue:r,money:i,t:l}}}),cB={class:"fox-ecard"},dB={class:"fox-ecard__title"},fB={class:"fox-ecard__list"},mB=["onClick"],pB={class:"fox-ecard__list__input--con"},vB=["placeholder"],hB={class:"fox-ecard__list__step"};function gB(e,n,l,o,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",fB,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.dataList,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u,class:(0,t.normalizeClass)(["fox-ecard__list__item",e.currentIndex==u?"active":""]),onClick:d=>e.handleClick(i,u)},(0,t.toDisplayString)(i.price),11,mB))),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",pB,[(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,vB),[[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 ja=ne(uB,[["render",gB]]),{create:yB,scope:bB}=Q("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:l}=(0,se.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:l}}}),SB={class:"fox-address-list-item__info"},wB={class:"fox-address-list-item__info-contact"},CB={class:"fox-address-list-item__info-contact-name"},NB={class:"fox-address-list-item__info-contact-tel"},BB={key:0,class:"fox-address-list-item__info-contact-default"},AB={class:"fox-address-list-item__info-handle"},VB={class:"fox-address-list-item__addr"};function TB(e,n,l,o,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]=(...u)=>e.contentsClick&&e.contentsClick(...u))},[(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",NB,(0,t.toDisplayString)(e.item.phone),1),e.item.defaultAddress?((0,t.openBlock)(),(0,t.createElementBlock)("div",BB,(0,t.toDisplayString)(e.t("default")),1)):(0,t.createCommentVNode)("",!0)])]),(0,t.createElementVNode)("div",AB,[(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",VB,[(0,t.renderSlot)(e.$slots,"content-addr",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.item.fullAddress),1)])])])}var Rr=ne(kB,[["render",TB]]),{create:$B}=Q("address-list-general"),EB=$B({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:Rr,[Le.name]:Le,[Gt.name]:Gt},setup(e,{emit:n}){const l=()=>(0,t.h)(Rr,{item:e.item,onDelIcon(N){s(N)},onEditIcon(N){i(N)},onClickItem(N){u(N)}});let o=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()},u=N=>{a.value||(n("clickItem",N,e.item),N.stopPropagation())},d=N=>{n("longDel",N,e.item),N.stopPropagation()},p=N=>{o=0,r.value=!0,n("longDown",N,e.item)};return{renderCompontent:l,showMaskRef:r,clickItem:u,editClick:i,delClick:s,delLongClick:d,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:()=>{a.value=!1},swipemove:()=>{a.value=!0}}}}),xB={key:0,class:"fox-address-list-general"},DB={class:"fox-address-list-swipe"};function IB(e,n,l,o,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",xB,[((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]=(...u)=>e.maskClick&&e.maskClick(...u))},[(0,t.renderSlot)(e.$slots,"longpress-all",{},()=>[(0,t.createElementVNode)("div",{class:"fox-address-list-general__mask-copy",onClick:n[0]||(n[0]=(...u)=>e.copyCLick&&e.copyCLick(...u))},"复制地址"),(0,t.createElementVNode)("div",{class:"fox-address-list-general__mask-set",onClick:n[1]||(n[1]=(...u)=>e.setDefault&&e.setDefault(...u))},"设置默认"),(0,t.createElementVNode)("div",{class:"fox-address-list-general__mask-del",onClick:n[2]||(n[2]=(...u)=>e.delLongClick&&e.delLongClick(...u))},"删除地址")])])):(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]=(...u)=>e.hideMaskClick&&e.hideMaskClick(...u))})):(0,t.createCommentVNode)("",!0)]))}var qB=ne(EB,[["render",IB]]),{componentName:PB,create:MB,scope:_B}=Q("address-list"),LB=MB({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,[Le.name]:Le},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:l}=(0,se.useFoxI18n)(_B),o=(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&&(o.value=e.data.map(y=>li(a,y,e.dataOptions)))};(0,t.watch)(()=>e.data,()=>s(),{deep:!0});const i=(y,h)=>{n("delIcon",y,h),y.stopPropagation()},u=(y,h)=>{n("editIcon",y,h),y.stopPropagation()},d=(y,h)=>{n("clickItem",y,h),y.stopPropagation()},p=(y,h)=>{n("longCopy",y,h),y.stopPropagation()},c=(y,h)=>{n("longSet",y,h),y.stopPropagation()},v=(y,h)=>{n("longDel",y,h),y.stopPropagation()},g=(y,h)=>{n("swipeDel",y,h),y.stopPropagation()},w=y=>{n("add",y),y.stopPropagation()};return(0,t.onMounted)(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:u,clickContentItem:d,clickLongCopy:p,clickLongSet:c,clickLongDel:v,clickSwipeDel:g,addAddress:w,dataArray:o,t:l}}});function zB(e,n,l,o,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,(u,d)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:d,item:u,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]=(...u)=>e.addAddress&&e.addAddress(...u))},[(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 Wa=ne(LB,[["render",zB]]),{componentName:rV,create:OB}=Q("category"),FB=OB({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:n,slots:l}){const o=(0,t.ref)(0),a=(0,t.ref)(!1);return{getChildList:s=>{o.value=s,n("change",s)},checkIndex:o,categoryLeft:a}}}),RB={class:"fox-category"},KB={class:"fox-category__cateList"},UB={key:0},HB=["onClick"];function jB(e,n,l,o,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:u=>e.getChildList(i)},(0,t.toDisplayString)(s.catName),11,HB)]))),128))])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"default")])])}var Ya=ne(FB,[["render",jB]]),{componentName:iV,create:WB}=Q("category-pane"),YB=WB({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),XB={class:"fox-category-pane"},QB={key:0,class:"fox-category-pane__cateListRight"},GB={class:"fox-category-pane__childTitle"},ZB={key:0,class:"fox-category-pane__childItemList"},JB=["onClick"],eA=["src"],tA={class:"fox-category-pane__skuImg"},nA={key:1,class:"fox-category-pane__cateListRight"},oA={class:"fox-category-pane__childTitle"},lA={key:0,class:"fox-category-pane__childItemList"},aA=["onClick"],rA={class:"fox-category-pane__skuName"},iA={key:2,class:"fox-category-pane__selfItemList"},sA=["onClick"];function uA(e,n,l,o,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",XB,[e.type=="classify"?((0,t.openBlock)(),(0,t.createElementBlock)("div",QB,[((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",GB,(0,t.toDisplayString)(s?.catName),1),s?.catType==1?((0,t.openBlock)(),(0,t.createElementBlock)("div",ZB,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.childCateList,(u,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-category-pane__childItem",key:d,onClick:p=>e.onChange(u)},[(0,t.createElementVNode)("img",{class:"fox-category-pane__childImg",src:u.backImg},null,8,eA),(0,t.createElementVNode)("div",tA,(0,t.toDisplayString)(u?.catName),1)],8,JB))),128))])):(0,t.createCommentVNode)("",!0)]))),128))])):(0,t.createCommentVNode)("",!0),e.type=="text"?((0,t.openBlock)(),(0,t.createElementBlock)("div",nA,[((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",oA,(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,(u,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-category-pane__childItem",key:d,onClick:p=>e.onChange(u)},[(0,t.createElementVNode)("div",rA,(0,t.toDisplayString)(u?.catName),1)],8,aA))),128))])):(0,t.createCommentVNode)("",!0)]))),128))])):(0,t.createCommentVNode)("",!0),e.type=="custom"?((0,t.openBlock)(),(0,t.createElementBlock)("div",iA,[((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:u=>e.onChange(s)},(0,t.toDisplayString)(s?.catName),9,sA))),128))])):(0,t.createCommentVNode)("",!0)])}var Xa=ne(YB,[["render",uA]]),{componentName:sV,create:cA}=Q("comment-header"),dA=cA({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")}}}}),fA={class:"fox-comment-header__user"},mA={class:"fox-comment-header__user-avter"},pA=["src"],vA={class:"fox-comment-header__user-score"},hA={key:0,class:"fox-comment-header__time"};function gA(e,n,l,o,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",fA,[(0,t.createElementVNode)("view",mA,[e.info.avatar?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,src:e.info.avatar},null,8,pA)):(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",vA,[(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=ne(dA,[["render",gA]]),{componentName:uV,create:bA}=Q("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 l=(0,t.ref)(!1),o=(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:l,initIndex:o,showImages:(s,i)=>{const{videos:u,images:d}=e,p=s=="img"?i-u.length:i;n("clickImages",{type:s,index:p,value:s=="img"?d[p]:u[p]})},totalImages:a}}}),SA=["onClick"],wA=["src"],CA=["onClick"],NA=["src"],BA={key:0,class:"fox-comment-images__mask"};function AA(e,n,l,o,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,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:d=>e.showImages("video",u)},[(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,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+u<9||e.type!="multi"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:d=>e.showImages("img",u+e.videos.length)},[(0,t.createElementVNode)("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,NA),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+u>7?((0,t.openBlock)(),(0,t.createElementBlock)("view",BA,[(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 VA=ne(kA,[["render",AA]]),{componentName:cV,create:TA,scope:$A}=Q("comment-bottom"),EA=TA({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:l}=(0,se.useFoxI18n)($A),o=(0,t.ref)(!1),a=(0,t.ref)([]);return(0,t.onMounted)(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(u=>{i.includes(u)&&a.value.push(u)})}),{showPopver:o,operate:i=>{i=="more"&&(o.value=!o.value),n("clickOperate",i)},mergeOp:a,handleClick:()=>{n("handleClick")},t:l}}}),xA={class:"fox-comment-bottom"},DA={key:0},IA={class:"fox-comment-bottom__cpx"},qA=["onClick"];function PA(e,n,l,o,a,r){const s=(0,t.resolveComponent)("Fabulous"),i=(0,t.resolveComponent)("Comment"),u=(0,t.resolveComponent)("MoreX");return(0,t.openBlock)(),(0,t.createElementBlock)("view",xA,[(0,t.createElementVNode)("view",{onClick:n[0]||(n[0]=(...d)=>e.handleClick&&e.handleClick(...d)),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,(d,p)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:p,class:(0,t.normalizeClass)(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${d}`]),onClick:c=>e.operate(d)},[d!="more"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)("span",null,(0,t.toDisplayString)(e.info[d]),1),d=="like"?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1}))],64)):(0,t.createCommentVNode)("",!0),d=="more"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createVNode)(u),e.showPopver?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=c=>e.operate("popover"))},(0,t.toDisplayString)(e.t("complaintsText")),1)):(0,t.createCommentVNode)("",!0)],64)):(0,t.createCommentVNode)("",!0)],10,qA))),128))])])}var MA=ne(EA,[["render",PA]]),{componentName:_A,create:LA,scope:zA}=Q("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:VA,CommentBottom:MA,Right:oe.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:l}=(0,se.useFoxI18n)(zA),o=(0,t.computed)(()=>({[_A]:!0})),a=(0,t.computed)(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:o,conEllipsis:a,clickOperate:u=>{n("clickOperate",u)},handleClick:()=>{n("click",e.info)},clickImages:u=>{n("clickImages",u)},t:l}}}),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,l,o,a,r){const s=(0,t.resolveComponent)("comment-header"),i=(0,t.resolveComponent)("comment-images"),u=(0,t.resolveComponent)("Right"),d=(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)(u,{width:"12px"})])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(d,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),(0,t.renderSlot)(e.$slots,"comment-shop-reply")],2)):(0,t.createCommentVNode)("",!0)}var Qa=ne(OA,[["render",HA]]),jA=[al,il,sl,ul,cl,Ce,Yn,fl,ml,pl,vl,hl,Gn,gl,yl,kl,Sl,lo,ao,wl,ro,io,Cl,Nl,xt,Bl,Al,fo,Vl,Tl,rn,sn,eo,$l,El,xl,Dl,it,Il,ql,Qn,Xn,Pl,Ml,_l,Le,Ll,zl,Ol,dt,me,Fl,Rl,Kl,Ul,Wt,Hl,jl,Wl,Yl,Xl,Ql,Gl,Zl,Jl,Yt,ea,ta,na,oa,la,aa,ra,Xt,co,to,oo,no,Ze,At,an,ia,sa,ua,Gt,ca,da,fa,Zt,uo,ma,va,so,Dt,ga,ya,Jt,ba,ka,Qt,Sa,wa,Ca,Vt,Na,Ba,Tt,$t,Ge,mo,Aa,Va,Ta,en,tn,$a,Ea,xa,Da,Ia,qa,Pa,Ma,_a,La,za,Oa,Fa,Ra,Ka,Ua,Ha,ja,Wa,Ya,Xa,Qa],WA=new Ls(jA,"4.0.0");exports.AbstractPageScopeKey=ll;exports.ActionSheet=ca;exports.FoxActionSheet=ca;exports.ActionsheetItem=Vl;exports.FoxActionsheetItem=Vl;exports.ActionsheetPane=fo;exports.FoxActionsheetPane=fo;exports.Address=La;exports.FoxAddress=La;exports.AddressList=Wa;exports.FoxAddressList=Wa;exports.Animate=qa;exports.FoxAnimate=qa;exports.Audio=ga;exports.FoxAudio=ga;exports.AudioOperate=ya;exports.FoxAudioOperate=ya;exports.Avatar=Jt;exports.FoxAvatar=Jt;exports.AvatarGroup=ba;exports.FoxAvatarGroup=ba;exports.BackTop=da;exports.FoxBackTop=da;exports.Badge=Ta;exports.FoxBadge=Ta;exports.Barrage=za;exports.FoxBarrage=za;exports.Broadcast=el;exports.BroadcastKey=Se;exports.Button=Le;exports.FoxButton=Le;exports.ButtonsItem=fl;exports.FoxButtonsItem=fl;exports.Calendar=oo;exports.FoxCalendar=oo;exports.CalendarItem=Sl;exports.FoxCalendarItem=Sl;exports.Card=Ha;exports.FoxCard=Ha;exports.Cascader=to;exports.FoxCascader=to;exports.CascaderItem=yl;exports.FoxCascaderItem=yl;exports.Category=Ya;exports.FoxCategory=Ya;exports.CategoryPane=Xa;exports.FoxCategoryPane=Xa;exports.Cell=Ll;exports.FoxCell=Ll;exports.CellGroup=Ol;exports.FoxCellGroup=Ol;exports.Checkbox=ro;exports.FoxCheckbox=ro;exports.CheckboxGroup=io;exports.FoxCheckboxGroup=io;exports.CheckboxItem=Cl;exports.FoxCheckboxItem=Cl;exports.CircleProgress=Sa;exports.FoxCircleProgress=Sa;exports.Col=Kl;exports.FoxCol=Kl;exports.Collapse=Ea;exports.FoxCollapse=Ea;exports.CollapseItem=xa;exports.FoxCollapseItem=xa;exports.Comment=Qa;exports.FoxComment=Qa;exports.Content=ul;exports.FoxContent=ul;exports.CountDown=Va;exports.FoxCountDown=Va;exports.CountUp=Aa;exports.FoxCountUp=Aa;exports.DataItemsKey=vt;exports.DateItem=kl;exports.FoxDateItem=kl;exports.DatePicker=no;exports.FoxDatePicker=no;exports.DateUtils=re;exports.Dialog=Zt;exports.FoxDialog=Zt;exports.Divider=Hl;exports.FoxDivider=Hl;exports.Domain=Pn;exports.DomainKey=Ee;exports.DomainProvider=Ml;exports.FoxDomainProvider=Ml;exports.Drag=fa;exports.FoxDrag=fa;exports.Dropdown=ql;exports.FoxDropdown=ql;exports.Ecard=ja;exports.FoxEcard=ja;exports.Elevator=Yt;exports.FoxElevator=Yt;exports.Ellipsis=Ia;exports.FoxEllipsis=Ia;exports.Empty=Ca;exports.FoxEmpty=Ca;exports.FixedNav=Xl;exports.FoxFixedNav=Xl;exports.FloatingButton=xl;exports.FoxFloatingButton=xl;exports.FooterBar=sl;exports.FoxFooterBar=sl;exports.FoxGrid=jl;exports.Grid=jl;exports.FoxGridItem=Wl;exports.GridItem=Wl;exports.FoxGroup=cl;exports.Group=cl;exports.FoxHeaderBar=il;exports.HeaderBar=il;exports.FoxHintText=xt;exports.HintText=xt;exports.FoxIcon=zl;exports.Icon=zl;exports.FoxImage=Fl;exports.Image=Fl;exports.FoxImagePreview=mo;exports.ImagePreview=mo;exports.FoxIndicator=oa;exports.Indicator=oa;exports.FoxInfiniteLoading=uo;exports.InfiniteLoading=uo;exports.FoxInputItem=pl;exports.InputItem=pl;exports.FoxInputNumber=Ze;exports.InputNumber=Ze;exports.FoxInputNumberItem=Tl;exports.InputNumberItem=Tl;exports.FoxItem=Ce;exports.Item=Ce;exports.FoxLayout=Rl;exports.Layout=Rl;exports.FoxLinkItem=Bl;exports.LinkItem=Bl;exports.FoxList=ka;exports.List=ka;exports.FoxMapping=Pl;exports.Mapping=Pl;exports.FoxMenu=Ql;exports.Menu=Ql;exports.FoxMenuItem=Gl;exports.MenuItem=Gl;exports.FoxMessageBox=it;exports.MessageBox=it;exports.FoxMoneyItem=vl;exports.MoneyItem=vl;exports.FoxMoreButton=Dl;exports.MoreButton=Dl;exports.FoxNavbar=Yl;exports.Navbar=Yl;exports.FoxNoticeBar=wa;exports.NoticeBar=wa;exports.FoxNotify=va;exports.Notify=va;exports.FoxNumberKeyboard=ua;exports.NumberKeyboard=ua;exports.FoxOverLay=dt;exports.OverLay=dt;exports.FoxPage=al;exports.Page=al;exports.FoxPagination=ea;exports.Pagination=ea;exports.FoxPicker=an;exports.Picker=an;exports.FoxPickerItem=gl;exports.PickerItem=gl;exports.FoxPopover=tn;exports.Popover=tn;exports.FoxPopoverDialog=Qn;exports.PopoverDialog=Qn;exports.FoxPopup=me;exports.Popup=me;exports.FoxPopupWrapper=Il;exports.PopupWrapper=Il;exports.FoxPrice=Ge;exports.Price=Ge;exports.FoxProgress=Qt;exports.Progress=Qt;exports.FoxPullRefresh=ma;exports.PullRefresh=ma;exports.FoxRadio=lo;exports.Radio=lo;exports.FoxRadioGroup=ao;exports.RadioGroup=ao;exports.FoxRadioItem=wl;exports.RadioItem=wl;exports.FoxRange=Xt;exports.Range=Xt;exports.FoxRate=At;exports.Rate=At;exports.FoxRateItem=Al;exports.RateItem=Al;exports.FoxRollingProvider=_l;exports.RollingProvider=_l;exports.FoxRow=Ul;exports.Row=Ul;exports.FoxRowItem=Yn;exports.RowItem=Yn;exports.FoxSearchBar=co;exports.SearchBar=co;exports.FoxShortPassword=ia;exports.ShortPassword=ia;exports.FoxSideNavBar=la;exports.SideNavBar=la;exports.FoxSideNavBarItem=aa;exports.SideNavBarItem=aa;exports.FoxSignature=Oa;exports.Signature=Oa;exports.FoxSkeleton=$a;exports.Skeleton=$a;exports.FoxSku=Ua;exports.Sku=Ua;exports.FoxSlotItem=ml;exports.SlotItem=ml;exports.FoxStep=Ba;exports.Step=Ba;exports.FoxSteps=Na;exports.Steps=Na;exports.FoxStepsBar=El;exports.StepsBar=El;exports.FoxSticky=Wt;exports.Sticky=Wt;exports.FoxSubSideNavBar=ra;exports.SubSideNavBar=ra;exports.FoxSwipe=Gt;exports.Swipe=Gt;exports.FoxSwiper=Tt;exports.Swiper=Tt;exports.FoxSwiperItem=$t;exports.SwiperItem=$t;exports.FoxSwitch=so;exports.Switch=so;exports.FoxSwitchItem=Nl;exports.SwitchItem=Nl;exports.FoxTabPane=na;exports.TabPane=na;exports.FoxTabbar=Zl;exports.Tabbar=Zl;exports.FoxTabbarItem=Jl;exports.TabbarItem=Jl;exports.FoxTable=Da;exports.Table=Da;exports.FoxTabs=ta;exports.Tabs=ta;exports.FoxTabsBar=rn;exports.TabsBar=rn;exports.FoxTabsContainer=sn;exports.TabsContainer=sn;exports.FoxTabsFrame=$l;exports.TabsFrame=$l;exports.FoxTabsPane=eo;exports.TabsPane=eo;exports.FoxTag=en;exports.Tag=en;exports.FoxText=Xn;exports.Text=Xn;exports.FoxTextarea=Gn;exports.Textarea=Gn;exports.FoxTextareaItem=hl;exports.TextareaItem=hl;exports.FoxTimeDetail=Ka;exports.TimeDetail=Ka;exports.FoxTimePannel=Ra;exports.TimePannel=Ra;exports.FoxTimeSelect=Fa;exports.TimeSelect=Fa;exports.FoxToast=Dt;exports.Toast=Dt;exports.FoxTour=_a;exports.Tour=_a;exports.FoxTrendArrow=Ma;exports.TrendArrow=Ma;exports.FoxUploader=sa;exports.Uploader=sa;exports.FoxVideo=Vt;exports.Video=Vt;exports.FoxWaterMark=Pa;exports.WaterMark=Pa;exports.InnerPageScopeKey=ol;exports.PriorityPolicy=ut;exports.UniqueID=Wn;exports.ValidateSchema=ui;exports.ValidateSchemaKey=_e;exports.cancelRaf=Ur;exports.clamp=Ue;exports.clearNonNumber=Do;exports.compareTo=Eo;exports.createBroadcast=In;exports.createValidateSchema=qn;exports.debounce=qe;exports.debounceRef=As;exports.decimalLength=oi;exports.default=WA;exports.defineBroadcast=gs;exports.defineConfigDomain=di;exports.defineDataItem=fi;exports.defineDomain=nl;exports.defineItem=Be;exports.definePageState=mi;exports.defineSimpleItem=Et;exports.deleteGlobalValidator=ws;exports.disabledProperty=Te;exports.divide=Jo;exports.excludeProps=et;exports.extend=wt;exports.floatData=li;exports.getGlobalIcons=On;exports.getGlobalValidateCheckEvents=ri;exports.getGlobalValidateResetEvents=si;exports.getPageContentAreaHeight=Nn;exports.getPageContentAreaWidth=Bn;exports.getPageFooterAreaHeight=Ln;exports.getPageHeaderAreaHeight=_n;exports.getRootDomain=yt;exports.hasSymbol=Gr;exports.includeProps=he;exports.indexOf=vs;exports.injectAbstractPageScope=ln;exports.injectInnerPageScope=on;exports.integerLength=ni;exports.isArray=En;exports.isArrayLike=ei;exports.isBrowser=Je;exports.isDate=He;exports.isESModule=cs;exports.isEmptyString=ue;exports.isEqual=De;exports.isFunction=Sn;exports.isHidden=Zr;exports.isMap=rs;exports.isNil=Me;exports.isNumberString=Dn;exports.isObject=xe;exports.isPlainObject=us;exports.isPromise=St;exports.isRegExp=xo;exports.isSet=is;exports.isString=Xr;exports.isSubPage=xs;exports.isSymbol=ss;exports.isTouch=Zn;exports.isWindow=Jr;exports.lastIndexOf=hs;exports.makeArray=ps;exports.merge=ti;exports.multiply=jr;exports.negate=Wr;exports.nextTick=fs;exports.numberFormat=$n;exports.objectToString=Qr;exports.once=Vs;exports.overrideGlobalIcons=js;exports.overrideGlobalValidateHandler=ks;exports.padZero=at;exports.preventDefault=Io;exports.property=Ae;exports.provideAbstractPageScope=vi;exports.provideInnerPageScope=pi;exports.px2Number=Es;exports.raf=Ke;exports.readonlyProperty=Ve;exports.setGlobalValidateCheckEvents=Cs;exports.setGlobalValidateHandler=bs;exports.setGlobalValidateMessages=Bs;exports.setGlobalValidateResetEvents=Ns;exports.setGlobalValidator=Ss;exports.throttle=Cn;exports.toBoolean=ye;exports.toNumber=pe;exports.toPadding=Oe;exports.toPx=de;exports.toPxDesc=$s;exports.toPxString=fe;exports.toTypeString=xn;exports.toValue=Pe;exports.tryTimes=tl;exports.typeOf=st;exports.unNumberFormat=Yr;exports.updatePageState=qo;exports.useBroadcast=Ot;exports.useDomain=tt;exports.useExpose=$e;exports.useInnerSize=zn;exports.usePageState=Mn;exports.usePosition=dl;exports.useRawTouch=Jn;exports.useRect=Ie;exports.useSize=rl;exports.useTouch=ot;exports.valueLength=be;