@fox-js/foxui 4.0.1-81 → 4.0.1-83
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 +6 -6
- package/dist/index.d.ts +5 -2
- package/dist/index.esm.js +13742 -18853
- package/dist/index.umd.js +2 -2
- package/dist/locale/index.d.ts +488 -0
- package/dist/locale/index.esm.js +94 -124
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.css +9783 -1
- package/dist/style.js +3 -0
- package/dist/types/index.d.ts +484 -388
- package/package.json +1 -1
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:"¥"},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
|
-
${
|
|
3
|
-
${
|
|
4
|
-
${
|
|
5
|
-
${
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Ri=Object.create,qr=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor,Ki=Object.getOwnPropertyNames,Ui=Object.getPrototypeOf,Hi=Object.prototype.hasOwnProperty,He=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),_i=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var a=Ki(n),r=0,s=a.length,i;r<s;r++)i=a[r],!Hi.call(e,i)&&i!==o&&qr(e,i,{get:(u=>n[u]).bind(null,i),enumerable:!(l=Fi(n,i))||l.enumerable});return e},_e=(e,n,o)=>(o=e!=null?Ri(Ui(e)):{},_i(n||!e||!e.__esModule?qr(o,"default",{value:e,enumerable:!0}):o,e));let t=require("vue"),lt=require("@fox-js/validator"),le=require("@fox-js/icons-vue"),me=require("@fox-js/i18n");var ln=window,ji=typeof window<"u";function Wi(){return typeof ln<"u"?ln.requestAnimationFrame||ln.webkitRequestAnimationFrame||function(e){ln.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Pr(e){ji?cancelAnimationFrame(e):clearTimeout(e)}var We=Wi();function hn(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Ne(e),n=Ne(n),[e,n]=Xl(Ne(e),Ne(n)),o==1&&(l==1?e=fl(e):n=fl(n));let a=Mr(e,n);return o?o==2?"-"+Ne(a):e.length<a.length?Ne(a.substring(1)):"-"+Ne(fl(a)):Ne(a)}function fl(e){let n="",o=e.length,l=e.split(".")[1],a=l?l.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return Mr(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 Xl(e,n){let o=e.split("."),l=n.split("."),a=o[0].length,r=l[0].length;return a>r?l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,r=l[1]?l[1].length:0,(a||r)&&(a>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Mr(e,n){[e,n]=Xl(e,n);let o="",l=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let r=parseInt(e[a])+parseInt(n[a])+l;o=r%10+o,l=Math.floor(r/10)}return l?l.toString()+o:o}var 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 Ht(e,n=0,o=we.HALF_EVEN){if(o===we.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let a=e.split("."),r=a[0],s=a[1];if(n<0){if(n=-n,r.length<=n)return"0";{let u=r.substr(0,r.length-n);return e=u+"."+r.substr(r.length-n)+s,u=Ht(e,0,o),(l?"-":"")+u+new Array(n+1).join("0")}}if(n==0)return r.length,Ua(a[1],r,l,o)?(l?"-":"")+ml(r):(l?"-":"")+r;if(a[1]){if(a[1].length<n)return(l?"-":"")+r+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");s=a[1].substring(0,n);let i=a[1].substring(n);return i&&Ua(i,s,l,o)&&(s=ml(s),s.length>n)?(l?"-":"")+ml(r,parseInt(s[0]))+"."+s.substring(1):(l?"-":"")+r+"."+s}function Ua(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===we.DOWN||!o&&l===we.FLOOR||o&&l===we.CEILING)return!1;if(l===we.UP||o&&l===we.FLOOR||!o&&l===we.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(l){case 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 ml(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let a=o;a>=0;a--){let r=parseInt(e[a])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function Cl(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=Et(e),n=Et(n);let l=0,a=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(a=n.length-n.indexOf(".")-1);let r=l+a;if(e=Et(e.replace(".","")),n=Et(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=[],m=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 h=0;for(let y=n.length-1;y>=m&&y>=0;y--)u[y]>-1&&u[y]<e.length&&(h+=parseInt(e[u[y]--])*parseInt(n[y]));h+=i,i=Math.floor(h/10),p=h%10+p,m--}return p=Et(Yi(p,r)),o==1&&(p="-"+p),p}function Yi(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 Et(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 Nl(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ne(n.replace(".","")),a>=0){let m=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(m==-1)e=Ne(e+new Array(a+1).join("0"));else if(a>m)e=e.replace(".",""),e=Ne(e+new Array(a-m+1).join("0"));else if(a<m){e=e.replace(".","");let p=e.length-m+a;e=Ne(e.substring(0,p)+"."+e.substring(p))}else a==m&&(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 m=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(m+=s-u.length,u=u+new Array(s-u.length+1).join("0")),r=m,i="0."+new Array(m).join("0")}for(o=o+2;r<=o;){let m=0;for(;parseInt(u)>=parseInt(n);)u=hn(u,"-"+n),m++;i+=m,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(l==1?"-":"")+Ne(Ht(i,o-2))}function Al(e,n){return e=e.toString(),n=n.toString(),n=Bl(n),hn(e,n)}function Bl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ha(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),_a(e),_a(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Al(e,Cl(n,Ht(Nl(e,n),0,we.FLOOR)));return o+l}function _a(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function ja(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=Xl(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}var Gt=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[o,l]=n.split(/[eE]/);o=Ne(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=a+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=a+Ne(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=a+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=ce.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=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<o?(o=i,i=0):i-=o,s=n.substring(i,i+o)+(i<r-o&&i>=0?l:"")+s;return(a?"-":"")+s+n.substring(r)}getPrettyValue(n,o){return ce.getPrettyValue(this.value,n,o)}static round(n,o=0,l=we.HALF_EVEN){if(n=ce.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Ht(n,o,l)}round(n=0,o=we.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ce(Ht(this.value,n,o))}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,o){return n=ce.validate(n),o=ce.validate(o),hn(n,o)}add(n){return new ce(hn(this.value,n.getValue()))}static subtract(n,o){return n=ce.validate(n),o=ce.validate(o),Al(n,o)}subtract(n){return new ce(Al(this.value,n.getValue()))}static multiply(n,o){return n=ce.validate(n),o=ce.validate(o),Cl(n,o)}multiply(n){return new ce(Cl(this.value,n.getValue()))}static divide(n,o,l){return n=ce.validate(n),o=ce.validate(o),Nl(n,o,l)}divide(n,o){return new ce(Nl(this.value,n.getValue(),o))}static modulus(n,o){return n=ce.validate(n),o=ce.validate(o),Ha(n,o)}modulus(n){return new ce(Ha(this.value,n.getValue()))}static compareTo(n,o){return n=ce.validate(n),o=ce.validate(o),ja(n,o)}compareTo(n){return ja(this.value,n.getValue())}static negate(n){return n=ce.validate(n),Bl(n)}negate(){return new ce(Bl(this.value))}};function zr(e,n){return Gt.multiply(`${e}`,`${n}`)}function Ql(e,n,o=8){return Gt.divide(`${e}`,`${n}`,o)}var c2=Gt.RoundingModes;function Tl(e,n){return e=`${e}`,n=`${n}`,Gt.compareTo(e,n)}function Lr(e){return Gt.negate(e)}function Nn(e,n=-1,o=!1,l=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,u="",m=r.indexOf(".");m!=-1&&(i=r.substring(0,m),u=r.substring(m+1)),n!=-1&&(n<u.length?u=u.substring(0,n):o&&n>u.length&&(u=u.padEnd(n,"0")));let p;if(l>0){let c="",h=i.split("").reverse();for(let y=0;y<h.length;y++)c+=h[y]+((y+1)%l==0&&y+1!=h.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 Or(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}var Qe=typeof window<"u",Fe=We;function Me(e){return e==null}var An=Array.isArray,Xi=e=>Bn(e)==="[object Map]",Qi=e=>Bn(e)==="[object Set]",Ue=e=>e instanceof Date,vn=e=>typeof e=="function",Rr=e=>typeof e=="string",Gi=e=>typeof e=="symbol",Ee=e=>e!==null&&typeof e=="object",bt=e=>Ee(e)&&vn(e.then)&&vn(e.catch),Fr=Object.prototype.toString,Bn=e=>Fr.call(e),Zi=e=>Bn(e)==="[object Object]",Kr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ji(e){return e.__esModule||Kr&&e[Symbol.toStringTag]==="Module"}var es=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function St(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,a=!1;for(typeof n=="boolean"&&(a=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let r=e[o];for(let s in r){let i=n[s],u=r[s];if(i!==u)if(a===!0&&u&&typeof u=="object"){let m;Array.isArray(u)?m=i&&Array.isArray(i)?i:[]:m=i&&typeof i=="object"?i:{},n[s]=St(a,m,u)}else u!==void 0&&(n[s]=u)}}return n}var pl=es?Promise.resolve():null;function ts(e,...n){pl!==null?n&&n.length>0?pl.then(()=>{e(n)}):pl.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 fe(e){return typeof e=="number"?e:Number(e)}var ns={"[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 kt(e){let n=Object.prototype.toString.call(e);return e==null?String(e):ns[n]||"object"}function Ur(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const o=window.getComputedStyle(n);if(o.display==="none"||o.visibility==="hidden"||o.visibility==="collapse")return!0;n=n.parentElement}return!1}function Gl(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let n=e.parentElement;for(;n;){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Hr(e){return e&&typeof e=="object"&&"setInterval"in e}function _r(e){let n=!!e&&"length"in e&&e.length,o=kt(e);return o==="function"||Hr(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function jr(e,n){let o=+n.length,l=0,a=e.length;for(;l<o;l++)e[a++]=n[l];return e.length=a,e}function ls(e,n=[]){let o=n;return e!=null&&(_r(Object(e))?jr(o,typeof e=="string"?[e]:e):o.push(e)),o}function De(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=kt(e);if(o!==kt(n))return!1;if(o==="object"){let l=Object.keys(e),a=Object.keys(n);if(l.length!==a.length)return!1;for(let r=0;r<l.length;r++){let s=l[r],i=e[s],u=n[s];if(!De(i,u))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let a=e[l],r=n[l];if(!De(a,r))return!1}return!0}return!1}function Vl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Tn(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 Wr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function Yr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function Wa(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function xl(e,n=!0,o=!0){n?e=Wa(e,".",/\./g):e=e.replace(/\./g,""),o?e=Wa(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function os(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(De(e,o))return!0}):n.indexOf(e)}function as(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(De(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}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 o={};return n.forEach(l=>{for(const a in l)o[a]=e[a]}),o}function Ge(e,...n){const o=[];n.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const l={};for(const a in e)o.includes(a)||(l[a]=e[a]);return l}var rs=(e,n,o)=>{const l=Object.assign({},e),a=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(l[r]=n[a[r]]):n[r]&&(l[r]=n[r])}),l):e};function $l(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var nt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Ke=(e,n,o)=>Math.min(Math.max(e,n),o),ke=Symbol.for("BroadcastKey"),Zl=class{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(e,n,o){this.parent=e,this.proxy=n,this.name=o,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(o=>e===o);n!==-1&&this.children.splice(n,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(e,n,o){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,a={matched:e,action:n,args:o};return this.persistantMessages.set(l,a),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(n=>{e.push(n)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,n){if(!n||n.messagingPolicy==="Once"&&n.resolved===!0)return!1;let o=!1;return!n.name||n.name==="*"||n.name==="+"||Vl(n.name)&&e&&n.name.test(e)?o=!0:typeof n.name=="function"?o=Reflect.apply(n.name,null,[e]):n.name===e&&(o=!0),o}trigger(e,n,o){let l=null;const a=this.callbacks.get(n);typeof a=="function"&&(l=Reflect.apply(a,this.proxy,[...o]));const r=this.proxy??{};typeof r[n]=="function"&&(l=Reflect.apply(r[n],r,[...o])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(l)}pull(){let e=this.parent;for(;e;){const n=e.getPersistantMessages();Array.isArray(n)&&n.length>0&&n.forEach(o=>{if(this.isMatched(this.name,o.matched))try{this.trigger(o.matched,o.action,o.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...o){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const r=e.resolve,s=e.uniqueId??"",i=(...u)=>{this.deletePersistantMessage(s),typeof r=="function"&&r(...u)};e.resolve=i}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):Vl(e.name)&&this.name&&e.name.test(this.name)?l=!0:typeof e.name=="function"?l=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(l=!0);const a=[];if(l){const r=this.callbacks.get(n);if(typeof r=="function"){const i=Reflect.apply(r,this.proxy,[...o]);i!=null&&a.push(i)}const s=this.proxy??{};if(typeof s[n]=="function"){const i=Reflect.apply(s[n],s,[...o]);i!=null&&a.push(i)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...a),e.messagingPolicy==="Once")return a}return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...e},n,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(e,n,...o){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const a=e.resolve,r=e.uniqueId??"",s=(...i)=>{this.deletePersistantMessage(r),typeof a=="function"&&a(...i)};e.resolve=s}e.cachePolicy="None"}const l=[];return this.children.forEach(a=>{const r=Reflect.apply(a.emit,a,[{...e},n,...o]);r!=null&&Array.isArray(r)&&Reflect.apply([].push,l,[...r])}),l}on(e,n){this.callbacks.set(e,n)}};function Vn(e,n,o,l){const a=new Zl(n,e,o);if(l&&typeof l=="object")for(const r in l)a.on(r,l[r]);return a}function is(e,n,o){const l=o;if(l[ke])return l[ke];const a=new Zl((0,t.inject)(ke,null),o,e);if(n&&typeof n=="object")for(const r in n)a.on(r,n[r]);return l[ke]=a,(0,t.provide)(ke,a),(0,t.onUnmounted)(()=>{a.destroy(),l[ke]=void 0}),a}function Lt(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[ke]??(0,t.inject)(ke,null):(0,t.inject)(ke,null)}var ss=class{error(e,n){const o=n,l=n||(0,t.hasInjectionContext)()?Lt(n):null;l?l.emit({name:"*"},"setErrorTip",e):typeof o.setErrorTip=="function"&&o.setErrorTip(e)}reset(e){const n=e,o=e||(0,t.hasInjectionContext)()?Lt(e):null;o?o.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}success(e){const n=e,o=e||(0,t.hasInjectionContext)()?Lt(e):null;o?o.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}decorate(e,n,o){Array.isArray(e)||(e=[e]);const l=o,a=o||(0,t.hasInjectionContext)()?Lt(o):null,r=n.find(i=>i.required===!0||i.type==="required"&&i.required!==!1),s=e.find(i=>i.required===!0||i.type==="required"&&i.required!==!1);!r&&s?a?a.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):r&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(e){return e.modelValue}},Rt=new ss;function us(e){Rt=e}function cs(e){Rt?Object.assign(Rt,e):Rt=e}function ds(e,n){lt.Schema.setValidator(e,n)}function fs(e){lt.Schema.deleteValidator(e)}var Xr=["blur","clear"];function ms(e){Xr=e}function Qr(){return Xr}var Gr=["focus","change","setValue"];function ps(e){Gr=e}function Zr(){return Gr}function hs(e){lt.Schema.messages(e)}function Dt(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const a=n.findIndex(r=>r.type===l.type);a!==-1&&n.splice(a,1),n.push(l)})}),n}function on(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var ze=Symbol("ValidateSchemaKey"),Jr=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,o){this.parent=e,this.descriptor=n,this.proxy=o,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let e=this.proxy.$attrs;e&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const n=on(Dt(this.attrRules,this.rules)),o=[];for(let a in e){let r=e[a];if(this.hasValidator(a,!0)){if(r===!1)continue;let i={type:a};r!==null&&typeof r=="object"&&Object.assign(i,r),o.push(i);continue}let s=this.getValidator(a);if(s!==null){let i={type:a,validator:s};o.push(i)}}this.attrRules=on(o);const l=Dt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(l,n)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...n){const o=this.descriptor.validateHandler;if(o&&typeof o[e]=="function")return Reflect.apply(o[e],o,[...n]);const l=Rt;return l&&typeof l[e]=="function"?Reflect.apply(l[e],l,[...n]):null}decorate(e,n){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,n,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(e,n,o=!1){o?lt.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?lt.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return lt.Schema.hasValidator(e);{let o=Reflect.has(this.validators,e);return!o&&this.parent!==null&&(o=this.parent.hasValidator(e,!1)),o}}setRule(e){const n=Dt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=on(e):this.rules=on([e]);const o=Dt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(o,n)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Dt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const o={[`${n}`]:e},l=this.getValue(),a={[`${n}`]:l},r=new lt.Schema(o),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 xn(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const l=o.valueName;o.validateHandler={getValue(a){return a[l]}}}return new Jr(n,o,e)}var gn=Symbol.for("EventEmitterKey"),ei=class{register=new Map;proxy;constructor(e){this.proxy=e}destroy(){this.proxy=null,this.register.clear()}off(e,n){let o=this.register.get(e);if(o&&Array.isArray(o)){let l=o.findIndex(a=>a===n);l!==-1&&o.splice(l,1)}}on(e,n){let o=this.register.get(e);o||(o=new Array,this.register.set(e,o)),o.push(n)}emit(e,...n){const o=this.register.get(e);o&&o.forEach(l=>{try{Reflect.apply(l,null,[e,...n])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[e,...n])}};function qe(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function yn(e,n){let o=0;return function(...l){const a=new Date().getTime();a-o<n||(o=a,Reflect.apply(e,null,[...l]))}}function vs(e,n){const o=qe((l,a)=>{e=l,a()},n);return(0,t.customRef)((l,a)=>({get(){return l(),e},set(r){o(r,a)}}))}function gs(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function Jl(e,n,o,l=0,a=!0){let r=n,s=0;if(a){const u=e();if(s++,u||s>o)return}const i=()=>{const u=e();s++,!(u||s>o)&&(r+=l,setTimeout(i,r))};setTimeout(i,r)}var $e=Symbol("DomainKey"),ft=Symbol("DataItemsKey"),$n=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}_props=(0,t.reactive)({});constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(e,n=[]){for(const o in e){const l=e[o];n.length>0&&n.indexOf(l)!==-1||(this._props[o]=l)}}has(e){if(Reflect.has(this._props,e)){const n=this._props[e];if(n!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,n){this._props[e]=n}get(e,n){if(Reflect.has(this._props,e)){const o=this._props[e];if(o!=null)return o}return this.parent==null?n:this.parent.get(e,n)}getForParent(e,n){return this.parent==null?n:this.parent.get(e,n)}getForSelf(e){return this._props[e]}getAll(e){const n=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,e)){const l=o._props[e];n.push(l)}o=o._parent}return n}},ys=new $n;function ht(){return ys}function Ze(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[$e]??(0,t.inject)($e,null):(0,t.inject)($e,null)}var hl=Symbol("OriginalDateKey");function eo(e,n,o=[],l){const a=(0,t.getCurrentInstance)();let r=a?.proxy,s=(0,t.inject)($e,null);s===null&&(s=ht());const i=e||n.prop||n.name;let u=new $n(i);u.parent=s;const m=S=>{r[hl]||h(S),u?.set("modelValue",S)},p=()=>u?.getForSelf("modelValue")??null,c=()=>r[hl]??null,h=S=>{const b={};St(!0,b,(0,t.toRaw)(S)),r[hl]=b};(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,S=>{u?.merge(S,o)},{immediate:!0}):u.merge(n,o),n.modelValue&&h(n.modelValue);const y=(S,b)=>{u?.set(S,b)},w=S=>u?.getForSelf(S)??null;if(r[$e]=u,(0,t.provide)($e,u),a!==null){const S=(0,t.inject)(ke,null),b=Vn(r,S,i,l);u.broadcast=b,r[ke]=b,(0,t.provide)(ke,b),r.broadcast=(d,C,...N)=>Reflect.apply(b.emit,b,[d,C,...N]);const f=(0,t.inject)(ze,null),k=xn(r,f,{componentName:""});u.validateSchema=k,r[ze]=k,(0,t.provide)(ze,k),r[ft]=new Map,r.validate=(d=!0)=>{const C=[];let N=null;const v={deep:!1};if(d===!0)N={name:"*"};else if(Array.isArray(d)&&d.length>0){const g=d;N={name:A=>A?g.indexOf(A)!==-1:!1}}else if(d!=null&&typeof d=="object"){const g=d;if(Object.assign(v,g),Array.isArray(g.include)&&g.include.length>0){const A=g.include;N={name:B=>B?A.indexOf(B)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const A=g.exclude;N={name:B=>B?A.indexOf(B)===-1:!1}}else N={name:"*"}}if(N){const g=b?.emitToChildren(N,"validate",v);g&&Reflect.apply([].push,C,g)}return C.length==1?C[0]:C.length>1?Promise.all(C).then(g=>{let A=[];return g.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(A=[...A,...B.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(d,C=!0,N=!1)=>{if(N===!0){Reflect.ownKeys(d).forEach(v=>{let g=String(v);const A={componentName:"",fieldName:g,pureDataValidate:!0};if(u){const B=ni(u,g,A,b,k);r[ft].set(g,B);const V=d[g];V&&B.validateSchema.setRule(V)}});return}if(C){const v=Reflect.ownKeys(d);b?.emitToChildren({name:g=>v.includes(g),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",d,!1)}},r.clearValidate=(d=!0)=>{let C=null;if(d===!0)C={name:"*"};else if(Array.isArray(d)&&d.length>0){const N=d;C={name:v=>v?N.indexOf(v)!==-1:!1}}else if(d!=null&&typeof d=="object"){const N=d;if(Array.isArray(N.include)&&N.include.length>0){const v=N.include;C={name:g=>g?v.indexOf(g)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const v=N.exclude;C={name:g=>g?v.indexOf(g)===-1:!1}}else C={name:"*"}}C&&b?.emitToChildren(C,"clearValidate",!1)},r.resetFields=d=>{const C=p();if(!C)return;const N={};if(St(!0,N,c()??{}),Array.isArray(d))d.forEach(v=>{C[v]=N[v]});else if(d&&Array.isArray(d.include))(d.include??[]).forEach(v=>{C[v]=N[v]});else if(d&&Array.isArray(d.exclude)){let v=d.exclude??[];Reflect.ownKeys(N).forEach(g=>{v.includes(g)||(C[g]=N[g])})}else Object.assign(C,N);r.clearValidate(d)},r.setModelValue=(d,C)=>{if(!C||C===i)m(d);else{const N={name:C,messagingPolicy:"Once"};b?.emitToChildren(N,"setModelValue",d)}},r.getModelValue=()=>p(),r.setDomainProperty=(d,C)=>{y(d,C)},r.getDomainProperty=d=>w(d),setTimeout(function(){b?.pull()},0)}return(0,t.onUnmounted)(function(){u?.validateSchema&&(u.validateSchema.destroy(),r[ze]=void 0,(0,t.provide)(ze,null)),u?.broadcast&&(u?.broadcast?.destroy(),r[ke]=void 0,(0,t.provide)(ke,null)),u?.destroy(),r[$e]=void 0,(0,t.provide)($e,null),r[ft]&&(r[ft].clear(),r[ft]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,u=null,r=null}),u}function ti(e,n,o=[]){let l=(0,t.getCurrentInstance)()?.proxy,a=(0,t.inject)($e,null);a===null&&(a=ht());let r=new $n(e||n.prop||n.name);return r.parent=a,(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,s=>{r?.merge(s,o)},{immediate:!0}):r.merge(n,o),l[$e]=r,(0,t.provide)($e,r),(0,t.onUnmounted)(()=>{r?.destroy(),l[$e]=void 0,(0,t.provide)($e,null),r=null,l=null}),r}function Ae(e,n,o){const l=(0,t.getCurrentInstance)()?.proxy,a=n??"";let r=Vn(l,(0,t.inject)(ke,null),a,o);l[ke]=r,(0,t.provide)(ke,r),l.broadcast=(p,c,...h)=>r?Reflect.apply(r.emit,r,[p,c,...h]):null;const s=(0,t.inject)(ze,null);e.fieldName=e.fieldName??a;let i=xn(l,s,e);l[ze]=i,(0,t.provide)(ze,i),l.validate=(p=null)=>{if(!i)return Promise.resolve({pass:!0});const c=[];let h=!1,y=!1;if(Array.isArray(p)&&p.indexOf(a)!==-1)y=!0,h=!0;else if(p&&typeof p=="object"){const w=p,S=w.ignoreDisabled??!0,b=w.ignoreReadonly??!0,f=w.ignoreHidden??!0;S===!0&&e.disabled===!0||b===!0&&e.readonly===!0||f===!0&&Ur(l.$el)?y=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),y=!0),h=w.deep??!1}else typeof p=="boolean"&&(h=p),y=!0;if(y){const w=i?.validate();c.push(w)}if(h){let w=null;const S={deep:!1};if(p===!0)w={name:"*"};else if(Array.isArray(p)&&p.length>0){const b=p;w={name:f=>f?b.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const b=p;if(Object.assign(S,b),Array.isArray(b.include)&&b.include.length>0){const f=b.include;w={name:k=>k?f.indexOf(k)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const f=b.exclude;w={name:k=>k?f.indexOf(k)===-1:!1}}else w={name:"*"}}if(w&&r){const b=r.emitToChildren(w,"validate",S);Reflect.apply([].push,c,b)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(w=>{let S=[];return w.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(S=[...S,...b.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=p=>i?.setRule(p),l.setNameValidateRules=(p,c=!1)=>{const h=p[a];h&&i?.setRule(h),c&&r&&r.emitToChildren({name:y=>Reflect.ownKeys(p).includes(y)},"setNameValidateRules",p,!1)},l.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(n??"")!==-1)&&i?.clear();let c=null;if(p===!0)c={name:"*"};else if(Array.isArray(p)&&p.length>0){const h=p;c={name:y=>y?h.indexOf(y)!==-1:!1}}else if(p!=null&&typeof p=="object"){const h=p;if(Array.isArray(h.include)&&h.include.length>0){const y=h.include;c={name:w=>w?y.indexOf(w)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const y=h.exclude;c={name:w=>w?y.indexOf(w)===-1:!1}}else c={name:"*"}}c&&r&&r.emitToChildren(c,"clearValidate",!1)};let u=new ei(l);l[gn]=u;const m=qe((p="validate")=>{i&&(p==="reset"?i.clear():i.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Qr()).forEach(p=>{u&&u.on(p,c=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Zr()).forEach(p=>{u&&u.on(p,c=>{m("reset")})}),setTimeout(function(){r?.pull()},0),(0,t.onUnmounted)(()=>{r?.destroy(),l[ke]=void 0,(0,t.provide)(ke,null),r=null,i?.destroy(),l[ze]=void 0,(0,t.provide)(ze,null),i=null,u?.destroy(),l[gn]=void 0,u=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.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 ni(e,n,o,l,a){const r={},s=n??"",i={getValue(){const p=e.getForSelf("modelValue");return p?p[s]:null},isExist(){const p=e.getForSelf("modelValue");return p?Reflect.has(p,s):!1}};o.fieldName=s,o.validateHandler={getValue(p){return i.getValue()}};let u=xn({},a,o);r.validate=(p=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const c=[];let h=!1,y=!1;if(Array.isArray(p)&&p.indexOf(s)!==-1)y=!0,h=!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),y=!0,h=w.deep??!1}else typeof p=="boolean"&&(h=p),y=!0;if(y&&u){const w=u.validate();c.push(w)}if(h){let w=null;const S={deep:!1};if(p===!0)w={name:"*"};else if(Array.isArray(p)&&p.length>0){const b=p;w={name:f=>f?b.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const b=p;if(Object.assign(S,b),Array.isArray(b.include)&&b.include.length>0){const f=b.include;w={name:k=>k?f.indexOf(k)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const f=b.exclude;w={name:k=>k?f.indexOf(k)===-1:!1}}else w={name:"*"}}if(w&&m){const b=m.emitToChildren(w,"validate",S);Reflect.apply([].push,c,b)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(w=>{let S=[];return w.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(S=[...S,...b.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>u?.setRule(p),r.setNameValidateRules=p=>{const c=p[s];c&&u?.setRule(c)};let m=Vn(null,l,s,r);return(0,t.onUnmounted)(()=>{u=null,m=null}),{broadcast:m,validateSchema:u}}function Vt(){let e=(0,t.getCurrentInstance)()?.proxy,n=new ei(e);return e[gn]=n,(0,t.onUnmounted)(()=>{n?.destroy(),e[gn]=void 0,n=null,e=null}),{emitEvent:(o,...l)=>{n&&Reflect.apply(n.emit,n,[o,...l])},onEvent:(o,l)=>{n&&Reflect.apply(n.on,n,[l])},offEvent:(o,l)=>{n&&Reflect.apply(n.off,n,[l])}}}var de=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${se(e)}px`:"",bs=de;function se(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),r=1;if(Qe){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return a*=r,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))*n;const l=Number(e);return isNaN(l)?0:l}function Ss(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}var Ye="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=se(e.top)),e.left!==null&&e.left!==void 0&&(n.left=se(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=se(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=se(e.right))),n}function El(e,n,o={},l=!0,a=-1,r=-1,s=0,i=0){if(e.headerHeight=se(o.headerHeight??n.headerHeight??-1),e.headerPadding=Oe(o.headerPadding??n.headerPadding),e.footerHeight=se(o.footerHeight??n.footerHeight??-1),e.footerPadding=Oe(o.footerPadding??n.footerPadding),e.contentPadding=Oe(o.contentPadding??n.contentPadding),l){const u=o.height??n.height;u?e.height=se(u,r):e.height=se(r)-se(s,r)-se(i,r),e.width=se(o.width??n.width??0,a)}}function li(e,n={}){const o={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(l.safeAreaTop=se(a.top),l.safeAreaBottom=se(a.bottom),l.safeAreaLeft=se(a.left),l.safeAreaRight=se(a.right));const r=e.get("pageLayout");if(!r)return null;El(l,r,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const s=(0,t.reactive)(l),i=e.getForParent(Ye);i&&(l.height=bn(e,i),l.width=Sn(e,i),(0,t.watch)([()=>bn(e,i),()=>Sn(e,i)],([m,p])=>{s.height=m,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")],([m,p,c=-1,h=-1,y=0,w=0])=>{El(s,p,n,u,c,h,y,w)}),e.set(Ye,s),s}function En(e){return e.get(Ye)}function Dn(e,n){if(n=n??e.get(Ye),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function In(e,n){if(n=n??e.get(Ye),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function bn(e,n){if(n=n??e.get(Ye),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Dn(e,n),l=In(e,n),a=se(n.contentPadding.top??0),r=se(n.contentPadding.bottom??0);return n.height-o-l-a-r}return 0}function Sn(e,n){if(n=n??e.get(Ye),n){const o=se(n.contentPadding.left??0),l=se(n.contentPadding.right??0);return n.contentInnerWidth??n.width-o-l}return 0}function ks(e){return!!e.getForParent(Ye)}var to=Symbol.for("InnerPageScopeKey");function oi(e){(0,t.provide)(to,e)}function Zt(e=!1){return(0,t.inject)(to,e)}var no=Symbol.for("AbstractPageScopeKey");function ai(e){(0,t.provide)(no,e)}function Jt(e=!1){return(0,t.inject)(no,e)}var at=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function an(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Te(e,n,o=at.Near,l){const a=Ze();return a==null?e:o===at.Parent?(0,t.computed)(()=>{const r=a.getAll(n);for(let i=r.length-1;i>=0;i--){const u=r[i];if(an(u,l))return u}const s=e.value;return an(s,l)?s:null}):(0,t.computed)(()=>{const r=e.value;if(an(r,l))return r;const s=a.getAll(n);for(let i=0;i<s.length;i++){const u=s[i];if(an(u,l))return u}return null})}function Ve(e){return Te(e,"readonly",at.Near)}function xe(e){return Te(e,"disabled",at.Near)}function Pe(e,n="modelValue",o=null,l){const a=(0,t.toRef)(e,n);let r=a.value;typeof o=="function"&&(r=o(a.value));const s=(0,t.ref)(r);return(0,t.watch)(a,i=>{if(typeof o=="function"){const u=o(i);u!==s.value&&(s.value=u,l&&l("setValue",u))}else i!==s.value&&(s.value=i,l&&l("setValue",i))}),s}var ri=new Map,kn=new Map,Dl=null;function ws(e){Dl=e}function ii(e,n,o){if(o){let l=kn.get(o);l||(l=new Map,kn.set(o,l)),l.set(e,n)}else ri.set(e,n)}function Je(e,n,o){!o&&Dl&&(o=Dl(e)??void 0);let l=null;if(o){let a=kn.get(o);a&&(l=a.get(n))}return l||(l=ri.get(n)),l}function Cs(e,n){for(let o in e){const l=e[o];ii(o,l,n)}}function Ns(e){kn.delete(e)}function As(){return{top:0,left:0,bottom:0,right:0}}function Bs(){return Qe?{rootWidth:document.documentElement.clientWidth||document.body.clientWidth,rootHeight:document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{headerHeight:-1,footerHeight:-1}}}function Ts(e,n){if(n.componentPrefix){const o=e.indexOf("-");return`${n.componentPrefix}${e.slice(o)}`}return e}var Vs=class{packages;_version;get version(){return this._version}constructor(e,n){this.packages=e,this._version=n}install(e,n){n?.install!==!1&&this.packages.forEach(l=>{if(l.install)e.use(l);else if(l.name){const a=Ts(l.name,n);e.component(a,l)}});const o=ht();if(n.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l={...n},a=qe(()=>{const r={...l};this.updateLayout(r,o)},120);new window.ResizeObserver(a).observe(window.document.body)}this.updateLayout(n,o)}updateLayout(e,n){const o=e.headerBarHeight??0,l=e.footerBarHeight??0,a=St({},As(),e.safeAreaInset),r=Bs(),s=St({},r.pageLayout,e.pageLayout);n=n??ht(),n.set("safeAreaInset",a),n.set("headerBarHeight",o),n.set("footerBarHeight",l),n.set("pageLayout",s),n.set("rootWidth",r.rootWidth),n.set("rootHeight",r.rootHeight);const i=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const u in e)i.indexOf(u)===-1&&n.set(u,e[u])}setScopeGetter(e){ws(e)}setAPI(e,n,o){ii(e,n,o)}getAPI(e,n,o){return Je(e,n,o)}batchSetAPI(e,n){Cs(e,n)}clearScopeAPI(e){Ns(e)}getRootDomain(){return ht()}};function J(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=l=>{l.component(o.name,o)},(0,t.defineComponent)(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,(0,t.defineComponent)(o)}}}var xs=(e,n)=>{let o=document.body;const l=e.teleport||"body";l!="body"&&(Rr(l)?o=document.querySelector(l):o=e.teleport);const a=document.createElement("view");a.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let r={};vn(n.wrapper)?r=n.wrapper(o,a):r=n.wrapper;const s=(0,t.createApp)(r,e),i=n.components;return i&&i.forEach(u=>{s.use(u)}),o.appendChild(a),{instance:s.mount(a),unmount:()=>{s.unmount(),o.removeChild(a)}}},si=(e,n)=>e?(0,t.h)(e,n):"";function Be(e,n=null){if(n||(n=(0,t.getCurrentInstance)()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}var pe={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},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}},ui={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}},ci={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}},di=[];for(const e in ci)di.push(e);var $s={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}},Es=(e,n)=>({inheritAttrs:!0,props:{...pe,...ui,...$s},setup(o,{slots:l}){const a=Jt(!1),r=Zt(!1),s=eo(o.name,o);if(s){const c=li(s,o);Be({getPageContentHeight:()=>bn(s,c),getPageContentWidth:()=>Sn(s,c),getPageHeaderHeight:()=>Dn(s,c),getPageFooterHeight:()=>In(s,c)}),c&&r&&(c.contentHeight="100%")}const i=(0,t.computed)(()=>({[e]:!0,"is-inner":r})),u=(0,t.computed)(()=>({})),m=(0,t.getCurrentInstance)(),p=(c,h=!1)=>{const y=m?.proxy;y&&typeof y.setNameValidateRules=="function"&&y.setNameValidateRules(c,!0,h)};return(0,t.watch)([()=>o.rules,()=>o.pureDataRules],([c,h],[y,w])=>{if(c&&y){const S=(0,t.toRaw)(y),b=(0,t.toRaw)(c),f=b?Reflect.ownKeys(b):[];(S?Reflect.ownKeys(S):[]).forEach(k=>{f.includes(k)||(b[k]=[])}),p(b)}if(h&&w){const S=(0,t.toRaw)(w),b=(0,t.toRaw)(h),f=b?Reflect.ownKeys(b):[];(S?Reflect.ownKeys(S):[]).forEach(k=>{f.includes(k)||(b[k]=[])}),p(b,!0)}},{deep:!0}),(0,t.onMounted)(()=>{o.rules&&p((0,t.toRaw)(o.rules)),o.pureDataRules&&p((0,t.toRaw)(o.pureDataRules),!0)}),()=>a?l?.default?.():(0,t.h)("div",{class:i.value,style:u.value},[l?.default?.()])}}),{componentName:Ds,create:Is,scope:qs}=J("page"),Ps=Is(Es(Ds,qs)),lo=Ps;function oo(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function qn(e){const n=(0,t.unref)(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),r=parseFloat(o.getPropertyValue("padding-top")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-a,height:n.clientHeight-r-s}}var fi={headerbar:{},radio:{},checkbox:{}};function Ms(e){Object.assign(fi,e)}function Pn(){return fi}var zs=(e,n,o,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const s=Jt(!1),i=Zt(!1),u=s?null:Ze(),m=u?En(u):null,p=Pn(),c=e,h=(0,t.computed)(()=>{const x={[c]:!0,[`${c}--border`]:a.border,[`${c}--fixed`]:a.fixed};return i||(x[`${c}--safe-area-inset-top`]=a.safeAreaInsetTop),x}),y=(0,t.computed)(()=>({[`${c}__inner`]:!0,[`${c}__inner--${a.align}`]:!0})),w=Me(a.height)?null:se(a.height),S=(0,t.computed)(()=>{const x={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return x;if(u&&m){const $=Oe(a.padding??m.headerPadding);if(Object.assign(x,$),Me(w)||(m.headerHeight=w),x.height=m.headerHeight,x.safeAreaTop=m.safeAreaTop===-1?0:m.safeAreaTop,x.safeAreaTop>0){const z=se($.top??0);x.top=x.safeAreaTop+z,x.height&&x.height>0&&(x.height=x.height+x.safeAreaTop)}return x}if(Me(w)||(x.height=w),a.padding){const $=Oe(a.padding);Object.assign(x,$)}return x}),b=(0,t.ref)(null),f=()=>m&&b.value&&!Gl(b.value)?(l||(m.headerAllHeight=oo(b.value).height),m.headerMounted=!0,!0):!1,k=qe(f,120);let d=null;(0,t.onMounted)(()=>{s||m&&(Jl(f,50,5,50,!0),window.ResizeObserver&&b.value&&(d=new window.ResizeObserver(k),d.observe(b.value)))}),(0,t.onUnmounted)(()=>{s||m&&(m.headerMounted=!1,d&&(d.disconnect(),d=null))});const C=(0,t.computed)(()=>{const x={};return s||(S.value.height!==null&&S.value.height!==void 0&&(x.height=`${S.value.height}px`),S.value.top!==null&&S.value.top!==void 0&&(x.paddingTop=`${S.value.top}px`),S.value.left!==null&&S.value.left!==void 0&&(x.paddingLeft=`${S.value.left}px`),S.value.right!==null&&S.value.right!==void 0&&(x.paddingRight=`${S.value.right}px`),S.value.bottom!==null&&S.value.bottom!==void 0&&(x.paddingBottom=`${S.value.bottom}px`)),x}),N=(0,t.computed)(()=>{const x=S.value?.height;return Me(x)||x<0?!0:x>0});function v(){r.emit("back")}function g(){r.emit("click-title")}function A(){r.emit("click-right")}function B(){r.emit("click-right-text")}const V=()=>{if(!a.leftShow)return null;const x=[];if(r.slots.left)x.push(r.slots.left());else{if(r.slots.leftIcon){const $=(0,t.h)("view",{class:"left-icon",onClick:v},[r.slots.leftIcon()]);x.push($)}else{const $=a.leftIcon??p.headerbar.Left??o,z=(0,t.h)("view",{class:"left-icon",onClick:v},[(0,t.h)($)]);x.push(z)}if(a.leftText){const $=(0,t.h)("view",{class:"left-text",onClick:v},[a.leftText]);x.push($)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},x)},T=()=>{if(!a.rightShow)return null;const x=[];if(r.slots.right)x.push(r.slots.right());else{if(a.rightText){const $=(0,t.h)("view",{class:"right-text",onClick:B},[a.rightText]);x.push($)}if(r.slots.rightIcon){const $=(0,t.h)("view",{class:"right-icon",onClick:A},[r.slots.rightIcon()]);x.push($)}else if(a.rightIcon){const $=(0,t.h)("view",{class:"right-icon",onClick:A},[(0,t.h)(a.rightIcon)]);x.push($)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},x)},_=()=>{if(!a.titleShow)return null;const x=[],$=r.slots.default?r.slots.default():null;if($)x.push($);else{if(a.title){const z=(0,t.h)("view",{class:"title-text"},[a.title]);x.push(z)}if(r.slots.titleIcon){const z=(0,t.h)("view",{class:"title-icon",onClick:g},[r.slots.titleIcon()]);x.push(z)}else if(a.titleIcon){const z=(0,t.h)("view",{class:"title-icon",onClick:g},[(0,t.h)(a.titleIcon)]);x.push(z)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},x)},G=()=>{const x=[],$=r.slots.bottom?r.slots.bottom():null;return $&&x.push($),x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},x)};return()=>{if(s||!N.value)return null;const x=[];if(r.slots.all)x.push(r.slots.all());else{const $=[],z=V();z&&$.push(z);const P=_();P&&$.push(P);const O=T();if(O&&$.push(O),$.length>0){const D=(0,t.h)("view",{class:y.value},$);x.push(D)}const F=G();F&&x.push(F)}return x.length===0?null:(0,t.h)("view",{class:h.value,style:C.value,ref:b},x)}}}),{componentName:Ls,create:Os,scope:Rs}=J("header-bar"),Fs=Os(zs(Ls,Rs,le.Left,!1)),ao=Fs;function Ks(e,n,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,a){const r=Jt(!1),s=Zt(!1),i=r?null:Ze(),u=i?En(i):null,m=e,p=(0,t.computed)(()=>{const d={[m]:!0,[`${m}--${l.align}`]:!0,[`${m}--border`]:l.border,[`${m}--fixed`]:l.fixed};return s||(d[`${m}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),d}),c=Me(l.height)?null:se(l.height),h=(0,t.computed)(()=>{const d={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r)return d;if(i&&u){const C=Oe(l.padding??u.footerPadding);if(Object.assign(d,C),Me(c)||(u.footerHeight=c),d.height=u.footerHeight,d.safeAreaBottom=u.safeAreaBottom===-1?0:u.safeAreaBottom,d.safeAreaBottom>0){const N=se(C.bottom??0);d.bottom=d.safeAreaBottom+N,d.height&&d.height>0&&(d.height=d.height+d.safeAreaBottom)}return d}if(Me(c)||(d.height=c),l.padding){const C=Oe(l.padding);Object.assign(d,C)}return d}),y=(0,t.computed)(()=>{const d=h.value?.height;return Me(d)||d<0?!0:d>0}),w=(0,t.ref)(null),S=()=>u&&w.value&&!Gl(w.value)?(o||(u.footerAllHeight=oo(w.value).height),u.footerMounted=!0,!0):!1,b=qe(S,120);let f=null;(0,t.onMounted)(()=>{r||u&&(Jl(S,50,5,50,!0),window.ResizeObserver&&(f=new window.ResizeObserver(b),f.observe(w.value)))}),(0,t.onUnmounted)(()=>{r||u&&(u.footerMounted=!1,f&&(f.disconnect(),f=null))});const k=(0,t.computed)(()=>{const d={};return r||(h.value.height!==null&&h.value.height!==void 0&&(d.height=de(h.value.height)),h.value.top!==null&&h.value.top!==void 0&&(d.paddingTop=de(h.value.top)),h.value.left!==null&&h.value.left!==void 0&&(d.paddingLeft=de(h.value.left)),h.value.right!==null&&h.value.right!==void 0&&(d.paddingRight=de(h.value.right)),h.value.bottom!==null&&h.value.bottom!==void 0&&(d.paddingBottom=de(h.value.bottom))),d});return()=>{if(r||!y.value)return null;const d=a.slots.default?a.slots.default():[];return(0,t.h)("view",{ref:w,class:p.value,style:k.value},d)}}}}var{componentName:Us,create:Hs,scope:_s}=J("footer-bar"),js=Hs(Ks(Us,_s,!1)),ro=js;function Ws(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:l,attrs:a}){const r=Jt(!1),s=Zt(!1),i=r?null:Ze(),u=(0,t.computed)(()=>({[e]:!0})),m=i?En(i):null,p=(0,t.computed)(()=>{const S={};if(r)return S;if(i&&m){if(o.padding){const g=Oe(o.padding);Object.assign(m.contentPadding,g)}const b=Dn(i,m),f=In(i,m);let k="";m.contentHeight?k=`${m.contentHeight}`:k=`${m.height}px`,console.debug("[content]page height:",k),console.debug("[content]header height:",b),console.debug("[content]footer height:",f),console.debug("[content]padding:",m.contentPadding),S.height=k;let d=se((m&&m.contentPadding&&m.contentPadding.top)??-1);(d>=0||b>0)&&(d=d<0?0:d,S.paddingTop=`${b+d}px`);let C=se((m&&m.contentPadding&&m.contentPadding.bottom)??-1);(C>=0||f>0)&&(C=C<0?0:C,S.paddingBottom=`${f+C}px`);const N=se((m&&m.contentPadding&&m.contentPadding.left)??-1);N>=0&&(S.paddingLeft=`${N}px`);const v=se((m&&m.contentPadding&&m.contentPadding.right)??-1);return v>=0&&(S.paddingRight=`${v}px`),S}if(o.padding){const b=Oe(o.padding);b.left&&(S.paddingLeft=`${b.left}px`),b.top&&(S.paddingTop=`${b.top}px`),b.right&&(S.paddingRight=`${b.right}px`),b.bottom&&(S.paddingBottom=`${b.bottom}px`)}return S}),c=(0,t.ref)(null),h=()=>{if(m&&c.value){const S=qn(c.value);m.contentInnerHeight=S.height,m.contentInnerWidth=S.width}},y=qe(h,120);let w=null;return(0,t.onMounted)(()=>{s||r||(requestAnimationFrame(h),window.ResizeObserver&&c.value&&(w=new window.ResizeObserver(y),w.observe(c.value)))}),(0,t.onUnmounted)(()=>{s||r||w&&(w.disconnect(),w=null)}),()=>r?l.default?.():(0,t.h)(o.tag??"view",{...a,ref:c,class:u.value,style:p.value},l)}}}var{componentName:Ys,create:Xs,scope:Qs}=J("content"),Gs=Xs(Ws(Ys,Qs)),io=Gs,wt="GroupStateKey",mi=Symbol.for("GroupScopeKey");function Mn(){return(0,t.inject)(mi,!1)}function zn(e=!0){(0,t.provide)(mi,e)}function Zs(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Me(l)||(e[o]=l)})}function Js(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Zs(o,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(o),passport:0,order:{index:0}});return e.set(wt,l),l}function vl(e,n,o=-1,l=-1,a=!1,r,s,i){const u=e.get(wt);if(!u)return;const m=e.get("groupLayout")??{};o===-1&&(o=m.column??1),l===-1&&(l=m.gutter??0),r||(r=m.minItemWidth??-1),s||(s=m.maxItemWidth??-1);const p=se(r),c=se(s);i||(i=m.type??"grid");const h=()=>{const y=n===""||n===-1,w=se(n);let S=fe(o);const b=se(l);if(!y){let d=(w-(S-1)*b)/S;for(;c!==-1&&d>c;)S++,d=(w-(S-1)*b)/S;for(;p!==-1&&S>1&&d<p;)S--,d=(w-(S-1)*b)/S}let f=!1;const k=u.layout;k.value.width=n,k.value.column!==S&&(k.value.column=S,f=!0),k.value.gutter!==b&&(k.value.gutter=b,f=!0),k.value.type!==i&&(k.value.type=i,f=!0),f&&(0,t.triggerRef)(k)};if(a)h();else{const y=++u.passport;setTimeout(()=>{y===u.passport&&h()},50)}}function Ln(e,n=!1){let o;return n?o=e.getForParent(wt):o=e.get(wt),o.layout}function On(e,n=!1){let o;return n?o=e.getForParent(wt):o=e.get(wt),o.order}function Ya(e,n=1){if(n==="stretch")return-1;const o=fe(n);return o===-1?100:100*o/e}function Rn(e,n,o=1,l=0,a){const r={};let s=0;a?s=se(a):s=Ya(n.column,o),s>0&&(r.width=`${s}%`);const i=Ya(n.column,l);i>0&&(r["margin-left"]=`${i}%`);const u=se(n.gutter)/2;return u>0&&(r["padding-left"]=`${u}px`,r["padding-right"]=`${u}px`),r}function Fn(e,n,o=1,l=0){if(o==="stretch"){const u=e.index%n.column,m=u+(n.column-u);return e.index=e.index+(m-u),{"grid-column":`${u+1} / -1`}}let a=fe(o);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=fe(l)%n.column;let s=(e.index+r)%n.column,i=s+a;return i>n.column?(s=0,i=s+a,e.index=e.index+(n.column-s)+a):e.index=e.index+r+a,r>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}var pi=Symbol("RollingStateKey");function eu(e){(0,t.provide)(pi,e)}function tu(){return(0,t.inject)(pi,null)}function Il(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-l-a}else n=e.offsetHeight;return n}function nu(e){let n=Il(e);if(n<=0){const o=e.cloneNode(!0);o.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=Il(o),document.body.removeChild(o)}return n}function lu(e,n,o){const l=typeof e=="number"?e:parseInt(e),a=typeof n=="number"?n:parseInt(n),r=typeof o=="number"?o:parseInt(o);if(l<=0)return"1fr";const s=(l-(a-1)*r)/a;return s>0?`${s}px`:"1fr"}function hi(e){const n=[];return e.forEach(o=>{o.type===t.Fragment&&Array.isArray(o.children)?n.push(...hi(o.children)):n.push(o)}),n}function ou(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function so(e){function n(){return hi(e?.()??[]).filter(ou)}return{getChildren:n}}var au={...pe,...ui,...ci};function ru(e,n,o){return{props:au,emits:["update:collapse","header-click"],setup(l,a){const r=eo(l.prop??l.name,l,di),s=Js(r,{type:l.type}),i=Mn();zn(!0);const u=l.rollingDisplay?tu():null,m=(0,t.ref)(null),p=(0,t.computed)(()=>l.rollingDisplay?u&&!u.disabled:!1),c=(0,t.computed)(()=>i&&r?Ln(r,!0).value:null),h=(0,t.getCurrentInstance)(),y=(q,H=!1)=>{const I=h?.proxy;I&&typeof I.setNameValidateRules=="function"&&I.setNameValidateRules(q,!0,H)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([q,H],[I,E])=>{if(q&&I){const j=(0,t.toRaw)(I),Q=(0,t.toRaw)(q),ne=Q?Reflect.ownKeys(Q):[];(j?Reflect.ownKeys(j):[]).forEach(ae=>{ne.includes(ae)||(Q[ae]=[])}),y(Q)}if(H&&E){const j=(0,t.toRaw)(E),Q=(0,t.toRaw)(H),ne=Q?Reflect.ownKeys(Q):[];(j?Reflect.ownKeys(j):[]).forEach(ae=>{ne.includes(ae)||(Q[ae]=[])}),y(Q,!0)}},{deep:!0});const w=e,S=(0,t.computed)(()=>{const q={};if(q.height=$.value,l.width)l.width!=="auto"&&(q.width=de(l.width));else{const H=i?On(r,!0):null;if(c.value&&H){if(c.value.type==="grid"){const I=Fn(H,c.value,l.span,l.offset);Object.assign(q,I)}else if(c.value.type==="flow"){const I=Rn(H,c.value,l.span,l.offset,l.width);Object.assign(q,I)}}}return q}),b=(0,t.computed)(()=>{const q=s.layout.value.type;return q==="grid"||q==="flow"?{[`${w}--${q}`]:!0,[`${w}--${q}-justify-${l.justify}`]:!0,[`${w}--${q}-align-${l.align}`]:!0,[`${w}--gutter`]:!0}:{[`${w}--${q}`]:!0,[`${w}--gutter`]:!0}}),f=(0,t.computed)(()=>{if(s.layout.value.type==="grid"){let q="";if(l.columnWidth)q=`repeat(auto-fill, ${l.columnWidth})`;else{const H=lu(A.value,s.layout.value.column,s.layout.value.gutter);q=`repeat(${s.layout.value.column}, ${H})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":q}}}),k=(0,t.toRef)(l,"gutter"),d=(0,t.toRef)(l,"column"),C=(0,t.computed)(()=>i||p.value?!0:ye(l.isWrap)),N=[],v=q=>{N.push(q)},g=()=>{let q=N.length;N.splice(0,q)},A=(0,t.ref)(-1),B=q=>{const H=qn(q).width;H>0&&H!==A.value&&(A.value=H)};vl(r,A.value,d.value,k.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([A,d,k],([q,H,I])=>{s.order.index=0,vl(r,q,H,I,!1,l.minItemWidth,l.maxItemWidth,l.type)});const V=(0,t.computed)(()=>z.value?l.expandText??"":l.collapseText??""),T=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),_=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!z.value,"is-collapse":z.value})),G=(0,t.ref)(),x=(0,t.ref)(),$=(0,t.computed)(()=>P.value||de(l.height)||""),z=(0,t.ref)(!1),P=(0,t.ref)(""),O=(0,t.ref)(!1);let F=-1;const D=(q,H=!0)=>{const I=G.value;if(I&&z.value!==q){if(F=F<=0?nu(I):F,O.value=!0,H)if(I.style["will-change"]="height",I.ontransitionend=function(){I.ontransitionend=null,this.style["will-change"]="auto",q||(P.value="",O.value=!1)},q){let E=0;l.collapseHeight?E=l.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(E=x.value.offsetHeight),P.value=`${F}px`,(0,t.nextTick)(()=>{P.value=`${E}px`})}else P.value=`${F}px`;else if(q){let E=0;l.collapseHeight?E=l.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(E=x.value.offsetHeight),P.value=`${E}px`}else O.value=!1,P.value=`${F}px`;z.value=q,a.emit("update:collapse",q)}};(0,t.watch)(()=>l.collapse,q=>{D(q)});const X=q=>{a.emit("header-click",q)},te=()=>{L()},L=q=>{q=q??!z.value,D(q)};Be({toggleCollapse:L,doLayout:()=>{N[0]&&(B(N[0]),vl(r,A.value,d.value,k.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let M=null,Y=!0;const R=q=>{if(l.rules&&y((0,t.toRaw)(l.rules)),l.pureDataRules&&y((0,t.toRaw)(l.pureDataRules),!0),!!Qe&&(q&&D(ye(l.collapse),!1),l.autoLayout&&Array.isArray(N)&&N.length>0)){const H=N[0];if(B(H),window.ResizeObserver){const I=qe(()=>B(H),120);M=new window.ResizeObserver(I),M.observe(H)}}},U=()=>{M?.disconnect(),M=null},Z=!p.value||u?.acquire();Z&&(m.value=p.value?!0:null),(0,t.onMounted)(()=>{if(Z&&(R(Y),Y=!1),p.value&&u){let q=null,H=u.initialHeight;u.observe(G.value,I=>{if(I!==m.value)if(I)m.value=!0,z.value||(P.value=""),q=setTimeout(()=>{q=null,m.value!==!1&&(R(Y),Y=!1)},100);else{if(q!==null&&clearTimeout(q),m.value=!1,!z.value)if(Y)P.value=u.initialHeight;else{let E=Il(G.value);E<=0?P.value=H:(P.value=`${E}px`,H=P.value)}Y||U()}})}}),(0,t.onUnmounted)(()=>{M?.disconnect(),u&&u.unobserve(G.value)});const W=(q="right")=>{const H=[];if(V.value){const j=(0,t.h)("span",{class:T.value},[V.value]);H.push(j)}const I={class:_.value},E=(0,t.h)(l.collapseIcon??o,I);return H.push(E),H.length>0?(0,t.h)("div",{class:{[`${w}__header-collapse`]:!0,[`is-${q}`]:!0},onClick:te},H):null},ee=(q,H,I,E)=>{const j={...b.value};if(H===0&&(j[`${w}__first`]=!0),I>=E-1&&(j[`${w}__last`]=!0),C.value===!1){const Q=a.attrs.class;Q&&(j[`${Q}`]=!0)}return(0,t.h)("div",{ref:v,key:`${H}`,class:j,style:f.value},q)};return()=>{const q=l.prop??l.name;if(p.value&&m.value!==!0)return(0,t.h)(l.tag||"div",{ref:G,prop:q,class:{[`${w}`]:!0,"is-collapse":O.value},style:S.value},[]);s.order.index=0;const H=[];let I=0;if(a.slots.header){const ne=(0,t.h)("div",{key:`${I++}`,ref:x,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:X},[a.slots.header()]);H.push(ne)}else{const ne=[],ae=l.collapsePosition==="left";if(ae&&l.showCollapse){const ie=W("left");ie&&ne.push(ie)}if(l.title||a.slots.title){if(l.showMark){const ie={class:{[`${w}__header-mark`]:!0}};l.markColor&&(ie.style={background:l.markColor});const Se=(0,t.h)("div",ie);ne.push(Se)}if(a.slots.title){const ie=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[a.slots.title()]);ne.push(ie)}else if(l.title){const ie=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[l.title]);ne.push(ie)}}if(a.slots.toolbar&&ne.push(a.slots.toolbar()),!ae&&l.showCollapse){const ie=W("right");ie&&ne.push(ie)}if(ne.length>0){const ie=(0,t.h)("div",{key:`${I++}`,ref:x,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:X},ne);H.push(ie)}}g();const{getChildren:E}=so(a.slots.default),j=E(),Q=s.layout.value.type;if(Q==="grid"){const ne=ee(j,I++,0,j.length);H.push(ne)}else if(Q==="flow"){const ne=ee(j,I++,0,j.length);H.push(ne)}else for(let ne=0;ne<j.length;ne++){const ae=j[ne],ie=ee([ae],I++,ne,j.length);H.push(ie)}return C.value?(0,t.h)(l.tag||"div",{ref:G,prop:q,class:{[`${w}`]:!0,"is-collapse":O.value},style:S.value},[H]):H}}}}var{componentName:iu,create:su,scope:uu}=J("group"),cu=su(ru(iu,uu,le.RectUp)),uo=cu;function du(e){return e===window}var fu=/matrix\((.+)\)/,co=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(du(n))return{x:0,y:0};let o=0,l=0,a=n;for(;a!==null;)o+=a.offsetLeft,l+=a.offsetTop,a=a.offsetParent;let r=0,s=0,i=0,u=0;for(a=n;a!==document;){s+=a.scrollTop,r+=a.scrollLeft;const{transform:m}=window.getComputedStyle(a);if(m){const p=fu.exec(m);if(p){let c=p[1].split(/\s*,\s*/);c.length==6&&(i+=Number(c[4]),u+=Number(c[5]))}}a=a.parentNode}return o-=r,l-=s,o+=i,l+=u,{x:o,y:l}},mu=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{}})}},pu=class{monitorRegister=new WeakMap;watch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let a=this.monitorRegister.get(o);a||(a=new mu,o.addEventListener("scroll",a.listen),o===document.body&&o.addEventListener("resize",a.listen),this.monitorRegister.set(o,a)),a.add(n),o=o.parentNode}}unwatch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let a=this.monitorRegister.get(o);a&&(a.remove(n),a.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",a.listen),o===document.body&&o.removeEventListener("resize",a.listen))),o=o.parentNode}}},Ft=new pu,vi={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:hu,create:vu}=J("price"),gu=vu({props:{...vi},setup(e){const n=(0,t.computed)(()=>({[hu]:!0})),o=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>be(e.price)==0?"":Nn(e.price,e.decimalLength,!0,fe(e.digits),e.separator));return{classes:n,showSymbol:o,intText:(0,t.computed)(()=>{let a=l.value;if(a.length==0)return"";let r=a.indexOf(".");return a.substring(0,r)}),decimalText:(0,t.computed)(()=>{let a=l.value;if(a.length==0)return"";let r=a.indexOf(".");return a.substring(r+1)})}}}),oe=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},yu=["innerHTML"],bu=["innerHTML"];function Su(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,yu)):(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,bu)):(0,t.createCommentVNode)("",!0)],2)}var Kn=oe(gu,[["render",Su]]),{componentName:gl,create:ku}=J("hint-text"),wu=ku({components:{Price:Kn},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 o=(0,t.ref)({top:null,right:null,bottom:null,left:null}),l=(0,t.ref)({x:0,y:0}),a=(0,t.ref)(0),r=(0,t.ref)(0),s=(0,t.ref)(e.placement),i=(0,t.ref)(!1),u=(0,t.ref)(null),m=(T,_,G,x,$,z)=>{const P=document.documentElement.clientWidth||document.body.clientWidth,O=document.documentElement.clientHeight||document.body.clientHeight,F=T.split("-");let D=[];F[0]==="top"?D=["top","bottom","right","left"]:F[0]==="bottom"?D=["bottom","top","right","left"]:F[0]==="left"?D=["left","top","bottom","right"]:F[0]==="right"&&(D=["right","top","bottom","left"]);const X={top:null,right:null,bottom:null,left:null},te=[];for(let L=0;L<D.length;L++){const K=D[L];if(te[0]=K,F[1]&&(te[1]=F[1]),K==="top"){const M=_.y-z-e.arrowSize-e.offset;if(M>=0){X.top=M;let Y=0;F[1]==="start"?Y=_.x:F[1]==="end"?Y=_.x+G-$:Y=_.x+G/2-$/2;const R=P-Y-$;R<0?(Y+=R,c.value=-R):c.value=0,X.left=Y<0?0:Y;break}}else if(K==="bottom"){const M=_.y+x+e.arrowSize+e.offset;if(M+z<=O){X.top=M;let Y=0;F[1]==="start"?Y=_.x:F[1]==="end"?Y=_.x+G-$:Y=_.x+G/2-$/2;const R=P-Y-$;R<0?(Y+=R,c.value=-R):c.value=0,X.left=Y<0?0:Y;break}}else if(K==="left"){const M=_.x-$-e.arrowSize-e.offset;if(M>=0){X.left=M;let Y=0;F[1]==="start"?Y=_.y:F[1]==="end"?Y=_.y+x-z:Y=_.y+x/2-z/2,X.top=Y<0?0:Y;break}}else if(K==="right"){const M=_.x+G+e.arrowSize+e.offset;if(M+$<=P){X.left=M;let Y=0;F[1]==="start"?Y=_.y:F[1]==="end"?Y=_.y+x-z:Y=_.y+x/2-z/2,X.top=Y<0?0:Y;break}}}return{bestPlacement:te.join("-"),bestInsetRect:X}},p=(T,_,G=10)=>{if(!Qe||_===!1||!T)return;l.value=co(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const x=u.value.offsetHeight,$=u.value.offsetWidth,{bestPlacement:z,bestInsetRect:P}=m(e.placement,l.value,a.value,r.value,$,x);s.value=z,o.value=P,i.value=!0},c=(0,t.ref)(0),h=qe(()=>{p(e.message,e.visible)},10),y=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,T=>{y.value=T});const w=(0,t.computed)(()=>y.value&&S.value),S=(0,t.ref)(!0),b=qe(T=>{const _=T[0];_&&(S.value=_.isIntersecting)},10),f=new IntersectionObserver(b);(0,t.watch)([()=>e.message,()=>e.visible],([T,_])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Ft.watch(e.reference,h),f.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Ft.unwatch(e.reference,h),f.unobserve(e.reference),f.disconnect()});const k=(0,t.computed)(()=>{const T={[gl]:!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}),d=(0,t.computed)(()=>{const T={};return o.value.top!==null&&(T.top=`${o.value.top}px`),o.value.right!==null&&(T.right=`${o.value.right}px`),o.value.bottom!==null&&(T.bottom=`${o.value.bottom}px`),o.value.left!==null&&(T.left=`${o.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=[`${gl}__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}),v=(0,t.computed)(()=>({[`${gl}__arrow`]:!0})),g=(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"}}),A=(0,t.computed)(()=>w.value&&e.closeOnClick),B=(0,t.computed)(()=>{const T={};return e.zIndex&&(T["z-index"]=`${e.zIndex}`),T});return{show:w,tipRef:u,classes:k,styles:d,textClasses:C,textStyles:N,arrowClasses:v,arrowStyles:g,overlayShow:A,overlayStyle:B,onClickOverlay:()=>{y.value=!1,n.emit("update:visible",!1)}}}}),Cu=["innerHTML"];function Nu(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Price");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.overlayShow?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,t.normalizeStyle)(e.overlayStyle),onClick:n[0]||(n[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"tipRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.textClasses),style:(0,t.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,Cu))],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 gi=oe(wu,[["render",Nu]]),Un=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},ql={},Au=new Un,vt=new Map,wn=e=>{if(e){const n=document.getElementById(e);vt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of vt.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}vt.clear()}},Bu=e=>{e.unmount=wn;const n=document.getElementById(e.id);if(n){const o=vt.get(e.id);return o?e={...ql,...o,...e}:e={...ql,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(gi,e),n),e.id}},Tu=e=>{e.unmount=wn;let n=e.id??`hinttext_${Au.get()}`;e={...ql,...e},e.id=n,vt.set(n,e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(gi,e),o),document.body.appendChild(o),n},Vu=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},xt={show(e,n,o={},l=!0){Vu(n);const a=o.id;return a&&vt.has(a)?Bu({...o,message:n,reference:e}):(l&&wn(),Tu({...o,message:n,reference:e}))},hide(e){wn(e)},install(e){e.config.globalProperties.$hintText=xt}};function xu(e,n,o,l=!1){return{inheritAttrs:!0,props:{...pe,...ve},emits:["appear","disappear"],setup(a,r){const s=a.prop??r.attrs.name;Ae({componentName:e,validate:!1},s);const i=Ze(),u=Mn();zn(!1);const m=(0,t.computed)(()=>u&&i?Ln(i,!1).value:null),p=e,c=(0,t.ref)(null),h=(0,t.computed)(()=>{const E={[p]:!0,[`${p}__gutter`]:m.value&&m.value.type!=="flow",[`${p}__stretch`]:a.span==="stretch",[`${p}__input--border`]:ye(a.hasBorder)};if(E[a.errorMarkClass]=!!z.value,E[a.warnMarkClass]=!!x.value,E[a.infoMarkClass]=!!_.value,typeof c.value=="function"){const j=c.value(s);E[j]=!0}else if(typeof c.value=="string"){const j=c.value;E[j]=!0}return E}),y=(0,t.ref)(null),w=(0,t.computed)(()=>{const E={};if(a.width)a.width!=="auto"&&(E.width=de(a.width));else{const j=u&&i?On(i,!1):null;if(m.value&&j){if(m.value.type==="grid"){const Q=Fn(j,m.value,a.span,a.offset);Object.assign(E,Q)}else if(m.value.type==="flow"){const Q=Rn(j,m.value,a.span,a.offset,a.width);Object.assign(E,Q)}}}if(typeof y.value=="function"){const j=y.value(s);j&&Object.assign(E,j)}else if(y.value&&typeof y.value=="object"){const j=y.value;Object.assign(E,j)}return E}),S=(0,t.ref)(null),b=(0,t.computed)({get:()=>S.value??ye(a.isRequired),set:E=>{S.value=E}}),f=()=>typeof a.label=="string"&&a.label.length>0||typeof r.slots.label=="function",k=Te((0,t.toRef)(a,"labelPosition"),"labelPosition",at.Near),d=(0,t.computed)(()=>k&&k.value==="top"?"top":k&&k.value==="right"?"right":"left"),C=(0,t.computed)(()=>({[`${p}__main`]:!0,[`${p}__main--${d.value}`]:!0})),N=(0,t.computed)(()=>({label:!0,[`label--${d.value}`]:!0})),v=Te((0,t.toRef)(a,"labelWidth"),"labelWidth",at.Near),g=(0,t.computed)(()=>v&&v.value?{width:de(v.value)}:{}),A=(0,t.computed)(()=>({"label--string":!0,"label--required":b.value})),B=(0,t.computed)(()=>({content:!0,[a.contentClass]:!0})),V=(0,t.computed)(()=>({...a.contentStyle})),T=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Be({setRequired(E){b.value=E},setErrorTip(E){T.errorTip=E},setErrorIcon(E){T.errorIcon=E},setWarnTip(E){T.warnTip=E},setWarnIcon(E){T.warnIcon=E},setInfoTip(E){T.infoTip=E},setInfoIcon(E){T.infoIcon=E},setCustomClassName(E){c.value=E},setCustomStyle(E){y.value=E}});const _=(0,t.computed)(()=>a.infoTip||T.infoTip),G=(0,t.computed)(()=>a.infoIcon||T.infoIcon),x=(0,t.computed)(()=>a.warnTip||T.warnTip),$=(0,t.computed)(()=>a.warnIcon||T.warnIcon),z=(0,t.computed)(()=>a.errorTip||T.errorTip),P=(0,t.computed)(()=>a.errorIcon||T.errorIcon),O=(0,t.computed)(()=>z.value?"error":x.value?"warn":_.value?"info":""),F=()=>O.value.length>0,D=(0,t.computed)(()=>O.value==="error"?z.value:O.value==="warn"?x.value:O.value==="info"?_.value:""),X=(0,t.computed)(()=>O.value==="error"?P.value:O.value==="warn"?$.value:O.value==="info"?G.value:null),te=(0,t.computed)(()=>{const E={[`${p}__tip`]:!0,[`${p}__tip--${O.value}`]:!0,[`${p}--animate`]:!0};return O.value==="error"&&a.errorClass?E[`${a.errorClass}`]=!0:O.value==="warn"&&a.warnClass?E[`${a.warnClass}`]=!0:O.value==="info"&&a.infoClass&&(E[`${a.infoClass}`]=!0),E}),L=(0,t.computed)(()=>{const E={};return k&&k.value==="top"||!f()?E["padding-left"]="0px":v&&v.value&&(E["padding-left"]=de(v.value)),E}),K=(0,t.ref)();let M="";(0,t.watch)([()=>a.hintVisible,()=>a.hintText,()=>a.hintType,()=>a.hintProps],([E,j,Q,ne])=>{K.value&&(E&&!ue(j)?M?o.show(K.value,j,{...ne,id:M,type:Q},!0):M=o.show(K.value,j,{...ne,type:Q},!0):o.hide(M))});let Y=null;const R=()=>{Y||!K.value||(Y=new IntersectionObserver(E=>{let j=!1;for(let Q of E)if(Q.intersectionRatio>0){j=!0,j&&r.emit("appear",Q);break}j||r.emit("disappear")}),Y.observe(K.value))},U=()=>{!Y||!K.value||(Y.unobserve(K.value),Y=null)};(0,t.watch)(()=>ye(a.appearListen),E=>{E?R():U()}),(0,t.onMounted)(()=>{ye(a.appearListen)&&R()}),(0,t.onUnmounted)(U);const Z=()=>{if(!f())return null;const E=[],j=r.slots?.label?.()??a.label,Q=(0,t.h)("div",{class:A.value},[j]);if(E.push(Q),r.slots.fixedPreTip){const ne=r.slots.fixedPreTip();E.push(ne)}return(0,t.h)("div",{class:N.value,style:g.value},E)},W=()=>{const E=[];if(r.slots.prepend){const j=r.slots.prepend();E.push(j)}if(r.slots.default){const j=r.slots.default();E.push(j)}if(r.slots.append){const j=r.slots.append();E.push(j)}if(r.slots.fixedTip){const j=(0,t.h)("div",{class:[`${p}__fixed-tip`]},[r.slots.fixedTip()]);E.push(j)}return(0,t.h)("div",{ref:K,class:B.value,style:V.value},E)},ee=()=>{const E=X.value;return E?typeof E=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[E()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(E)]):null},q=()=>{const E=D.value;return E?typeof E=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[E()]):(0,t.h)("div",{class:"fox-item__tip--text"},[E]):null},H=()=>{if(!F())return null;const E=[],j=ee();j&&E.push(j);const Q=q();return Q&&E.push(Q),(0,t.h)("div",{class:te.value,style:L.value},E)},I=()=>r.slots?.hide?.()??null;return()=>{const E=[],j=[],Q=Z();Q&&j.push(Q);const ne=W();ne&&j.push(ne);const ae=(0,t.h)("div",{class:C.value},j);E.push(ae);const ie=H();ie&&E.push(ie);const Se=I();return Se&&E.push(Se),(0,t.h)("div",{class:h.value,style:w.value,prop:a.prop},E)}}}}var{componentName:$u,create:Eu,scope:Du}=J("item"),Iu=Eu(xu($u,Du,xt,!1)),Ce=Iu,yi={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 qu(e,n){return{props:{...yi},setup(o,l){const a=e,r=(0,t.computed)(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),s=Ze(),i=Mn();zn(!1);const u=(0,t.computed)(()=>{const m={};if(o.width)o.width!=="auto"&&(m.width=de(o.width));else if(i&&s){const p=Ln(s,!1),c=On(s,!1);if(p.value&&c){if(p.value.type==="grid"){const h=Fn(c,p.value,o.span,o.offset);Object.assign(m,h)}else if(p.value.type==="flow"){const h=Rn(c,p.value,o.span,o.offset,o.width);Object.assign(m,h)}}}return o.gutter&&(m.gap=de(o.gutter)),m});return()=>{const m=[];if(l.slots.default){const p=l.slots.default();if(o.divide)for(let c=0;c<p.length;c++){if(c>0){const h=(0,t.h)("div",{class:{[`${a}__divide`]:!0}});m.push(h)}m.push(p[c])}else Reflect.apply([].push,m,p)}return(0,t.h)("div",{class:r.value,style:u.value},m)}}}}var{componentName:Pu,create:Mu,scope:zu}=J("row-item"),Lu=Mu(qu(Pu,zu)),Hn=Lu,Ou=(0,t.defineComponent)({name:"ArrowDown",__name:"arrow-down",setup(e){return(n,o)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,t.createElementVNode)("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}});function Ru(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},500)}var Fu={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 Ku(e,n,o,l=!1){return{props:{...Fu},emits:["click"],setup(a,r){const s=(0,t.ref)(null),i=(0,t.computed)(()=>{const d={[`${e}`]:!0,"is-truncated":a.truncated};return a.type&&(d[`${e}--${a.type??"default"}`]=!0),a.size&&(d[`${e}--${a.size}`]=!0),d}),u=(0,t.computed)(()=>{const d={},C=a.textColor??a.color;return C&&(d.color=C),d}),m=(d,C)=>{let N=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const v=a.highlightFilter;d.indexOf(v)!==-1&&(C.innerHTML=d.replace(new RegExp(v,"g"),`<span>${v}</span>`),C.class["is-highlight"]=!0,N=(0,t.h)(a.tag,C))}else if(typeof a.highlightFilter=="function"){const v=a.highlightFilter(d);v&&(C.innerHTML=v,C.class["is-highlight"]=!0,N=(0,t.h)(a.tag,C))}return N},p=d=>{r.emit("click",d)};let c="";const h=()=>{const d=s.value;if(!d)return;const C=d.clientWidth;Ru(d,N=>{const v=d.innerHTML??"";ue(v)||N<C||(c?o?.show(d,v,{type:"text",id:c,showArrow:a.showArrow},!0):c=o?.show(d,v,{type:"text",showArrow:a.showArrow},!0)??"")})},y=()=>{c&&o?.hide(c)};let w=null;const S=d=>{w||(w=setTimeout(()=>{h(),w=null},a.showAfter??0))},b=d=>{w&&(clearTimeout(w),w=null),setTimeout(()=>{y()},a.hideAfter??0)},f=()=>{const d=s.value;d&&(d.addEventListener("mouseover",S),d.addEventListener("mouseleave",b))},k=()=>{const d=s.value;d&&(d.removeEventListener("mouseover",S),d.removeEventListener("mouseleave",b))};return(0,t.onMounted)(()=>{!ye(a.showOverflowTooltip)||!o||f()}),(0,t.onBeforeUnmount)(()=>{!ye(a.showOverflowTooltip)||!o||k()}),()=>{const d={onClick:p,class:i.value,style:u.value,ref:s};let C=null;if(ye(a.numberFormat)&&typeof r.slots.default=="function"){const v=r.slots.default();if(Array.isArray(v)&&v.length===1){const g=v[0].type.toString();if(g==="Symbol(Text)"||g==="Symbol(v-txt)"){const A=fe(a.digits),B=fe(a.decimalLength),V=ye(a.autoPadding);let T=`${v[0].children}`,_=T.split("").reverse().join("");_=Nn(_,B,V,A,a.separator),T=_.split("").reverse().join(""),a.highlightFilter!==void 0&&(C=m(T,d)),C||(d.innerHTML=T,C=(0,t.h)(a.tag,d))}}}else{if(a.highlightFilter!==void 0&&typeof r.slots.default=="function"){const v=r.slots.default();if(Array.isArray(v)&&v.length===1){const g=v[0].type.toString();if(g==="Symbol(Text)"||g==="Symbol(v-txt)"){const A=`${v[0].children}`;C=m(A,d),C||(d.innerHTML=A,C=(0,t.h)(a.tag,d))}}}C||(C=(0,t.h)(a.tag,d,{default:r.slots.default}))}if(!a.mark&&!a.icon&&!r.slots.mark)return C;const N=[];if(r.slots.mark){const v={[`${e}__mark-wrap`]:!0};a.type&&(v[`${e}__mark-wrap--${a.type}`]=!0);const g={},A=a.color;A&&(g.color=A);const B=(0,t.h)("view",{class:v,style:g},{default:r.slots.mark});N.push(B)}else{const v={[`${e}__mark`]:!0};a.type&&(v[`${e}__mark--${a.type??"default"}`]=!0);const g={},A=a.color;A&&(g["background-color"]=A);const B=(0,t.h)("view",{class:v,style:g});N.push(B)}if(a.divide){const v=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});N.push(v)}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:Uu,create:Hu,scope:_u}=J("text"),ju=Hu(Ku(Uu,_u,xt,!1)),_n=ju,Wu={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 Yu(e,n,o=!1){return{props:{...Wu},emits:["update:visible"],setup(l,{emit:a,slots:r,expose:s}){const i=(0,t.ref)({top:null,right:null,bottom:null,left:null}),u=(0,t.ref)(0),m=(0,t.ref)(0),p=(0,t.ref)(0),c=(0,t.ref)(0),h=(0,t.ref)(l.placement),y=(0,t.ref)(!1),w=(0,t.ref)(!1),S=(0,t.ref)(null),b=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,f=(D,X,te,L,K,M,Y,R=!0)=>{const U=document.documentElement.clientWidth||document.body.clientWidth,Z=document.documentElement.clientHeight||document.body.clientHeight,W=D.split("-");let ee=[];R?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=[D[0]];const q={top:null,right:null,bottom:null,left:null},H=[];for(let I=0;I<ee.length;I++){const E=ee[I];if(H[0]=E,W[1]&&(H[1]=W[1]),E==="top"){const j=te-Y-l.arrowSize/2-l.offset;if(j>=0){q.top=j;let Q=0;W[1]==="start"?Q=X:W[1]==="end"?Q=X+L-M:Q=X+L/2-M/2;const ne=U-Q-M;ne<0?(Q+=ne,d.value=-ne):d.value=0,q.left=Q<0?0:Q;break}}else if(E==="bottom"){const j=te+K+l.arrowSize/2+l.offset;if(j+Y<=Z){q.top=j;let Q=0;W[1]==="start"?Q=X:W[1]==="end"?Q=X+L-M:Q=X+L/2-M/2;const ne=U-Q-M;ne<0?(Q+=ne,d.value=-ne):d.value=0,q.left=Q<0?0:Q;break}}else if(E==="left"){const j=X-M-l.arrowSize/2-l.offset;if(j>=0){q.left=j;let Q=0;W[1]==="start"?Q=te:W[1]==="end"?Q=te+K-Y:Q=te+K/2-Y/2,q.top=Q<0?0:Q;break}}else if(E==="right"){const j=X+L+l.arrowSize/2+l.offset;if(j+M<=U){q.left=j;let Q=0;W[1]==="start"?Q=te:W[1]==="end"?Q=te+K-Y:Q=te+K/2-Y/2,q.top=Q<0?0:Q;break}}}return{bestPlacement:H.join("-"),bestInsetRect:q}},k=()=>{const D=l.visible,X=l.autoFit;if(!Qe||D===!1)return;if(l.reference){const Y=b(),R=co(Y);u.value=R.x,m.value=R.y,p.value=Y.offsetWidth,c.value=Y.offsetHeight}else l.referenceInset&&(u.value=l.referenceInset.left,m.value=l.referenceInset.top,p.value=l.referenceInset.right-l.referenceInset.left,c.value=l.referenceInset.bottom-l.referenceInset.top);const te=S.value.offsetWidth,L=S.value.offsetHeight,{bestPlacement:K,bestInsetRect:M}=f(l.placement,u.value,m.value,p.value,c.value,te,L,X);h.value=K,i.value=M},d=(0,t.ref)(0),C=qe(()=>{k()},10),N=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([D])=>{N.value=D,D?(y.value=D,setTimeout(()=>{k(),w.value=!0},0)):w.value=!1});const v=(0,t.computed)(()=>N.value&&g.value),g=(0,t.ref)(!0),A=qe(D=>{const X=D[0];X&&(g.value=X.isIntersecting)},10),B=new IntersectionObserver(A);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([D,X],[te,L])=>{!D&&!X||(setTimeout(()=>{k()},0),l.autoFit&&(te&&(Ft.unwatch(te,C),B.unobserve(te)),D&&(Ft.watch(D,C),B.observe(D))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Ft.unwatch(l.reference,C),B.unobserve(l.reference),B.disconnect())});const V=(0,t.computed)(()=>{const D={[e]:!0};return h.value.startsWith("top")?D["is-top"]=!0:h.value.startsWith("right")?D["is-right"]=!0:h.value.startsWith("bottom")?D["is-bottom"]=!0:h.value.startsWith("left")&&(D["is-left"]=!0),D[`is-${l.effect}`]=!0,!w.value&&v.value&&(D["is-opacity"]=!0),w.value&&v.value&&(D["is-show"]=!0),v.value||(D["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(D[`${l.customClass}`]=!0),D}),T=(0,t.computed)(()=>{const D={};return i.value.top!==null&&(D.top=`${i.value.top}px`),i.value.right!==null&&(D.right=`${i.value.right}px`),i.value.bottom!==null&&(D.bottom=`${i.value.bottom}px`),i.value.left!==null&&(D.left=`${i.value.left}px`),l.width&&(D.width=l.width),l.zIndex&&(D["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(D,l.customStyle),D}),_=()=>{N.value=!1,a("update:visible",!1)},G=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:_}):null,x=()=>{let D=null;return r.title?D=(0,t.h)("div",{class:`${e}__title`},{default:r.title}):l.title&&(D=(0,t.h)("div",{class:`${e}__title`},[l.title])),D},$=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),z=(0,t.computed)(()=>{const D={};return l.showArrow?(D.width=`${l.arrowSize}px`,D.height=`${l.arrowSize}px`,h.value==="top"?(D.left="50%",D.bottom="0",D.transform="translate(-50%, 50%)"):h.value==="top-start"?(D.left=`${l.arrowOffset+d.value}px`,D.bottom="0",D.transform="translate(-50%, 50%)"):h.value==="top-end"?(D.right=`${l.arrowOffset-d.value}px`,D.bottom="0",D.transform="translate(-50%, 50%)"):h.value==="right"?(D.left="0",D.top="50%",D.transform="translate(-50%, -50%)"):h.value==="right-start"?(D.left="0",D.top=`${l.arrowOffset}px`,D.transform="translate(-50%, 50%)"):h.value==="right-end"?(D.left="0",D.bottom=`-${l.arrowOffset}px`,D.transform="translate(-50%, 50%)"):h.value==="bottom"?(D.left="50%",D.top="0",D.transform="translate(-50%, -50%)"):h.value==="bottom-start"?(D.left=`${l.arrowOffset+d.value}px`,D.top="0",D.transform="translate(-50%, -50%)"):h.value==="bottom-end"?(D.right=`${l.arrowOffset-d.value}px`,D.top="0",D.transform="translate(-50%, -50%)"):h.value==="left"?(D.right="0",D.top="50%",D.transform="translate(50%, -50%)"):h.value==="left-start"?(D.right="0",D.top=`${l.arrowOffset}px`,D.transform="translate(50%, -50%)"):h.value==="left-end"&&(D.right="0",D.bottom=`-${l.arrowOffset}px`,D.transform="translate(50%, -50%)"),D):{display:"none"}}),P=()=>(0,t.h)("div",{class:$.value,style:z.value}),O=()=>{N.value===!1&&(y.value=!1)},F=D=>{if(!S.value||N.value===!1)return;const{relatedTarget:X}=D;S.value.contains(X)||(N.value=!1,a("update:visible",!1))};return s({doLayout:k}),()=>{if(!y.value)return null;const D=[],X=G();X&&D.push(X);const te=[],L=x();if(L&&te.push(L),r.default){const R=r.default();te.push(R)}const K=P();K&&te.push(K);const M={ref:S,class:V.value,style:T.value,onAnimationend:O};l.leaveHide&&(M.onMouseleave=F);const Y=(0,t.h)("div",M,{default:()=>te});return D.push(Y),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>D})}}}}var{componentName:Xu,create:Qu,scope:Gu}=J("popover-dialog"),Zu=Qu(Yu(Xu,Gu,!1)),jn=Zu,Ju={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 ec(e,n,o){return{props:{...yi,...Ju},emits:["click"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:s}=(0,me.useFoxI18n)(n),i=s(l,["moreText"]),u=e,m=(0,t.computed)(()=>({[u]:!0}));function p(v){return v.props||{}}function c(v){return!!p(v).disabled}function h(v){return v.children??[]}const y=(0,t.ref)(),w=(0,t.computed)(()=>y.value?.$el??null),S=(0,t.ref)(!1),b=v=>{S.value=v},f=()=>{S.value=!S.value};function k(v,g){return()=>{g||(S.value=!1,p(v)?.onClick?.())}}function d(v,g){const A=h(v),B=c(v),V=k(v,B),T=[`${u}__dropdown-item`];return B&&T.push("is-disabled"),(0,t.h)("span",{class:T,onClick:V},A)}const C=v=>{const g=l.maxDisplayCount??v.length;if(g>=v.length)return v;const A=[],B=g-1;for(let x=0;x<B;x++)A.push(v[x]);const V=(r.moreIcon&&r.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(o),T=(0,t.h)(_n,{ref:x=>y.value=x,class:`${u}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:f},{default:()=>i.moreText.value,mark:()=>V});A.push(T);const _=[];for(let x=B;x<v.length;x++){const $=d(v[x],x);_.push($)}const G=(0,t.h)(jn,{placement:l.dropdownPlacement,"onUpdate:visible":b,visible:S.value,reference:w.value,"custom-class":`${u}__popover`},{default:()=>_});return A.push(G),A},N=()=>(r.default?.()||[]).filter(v=>v.type!==Comment);return()=>{const v=C(N());return(0,t.h)(Hn,{class:m.value},{default:()=>v})}}}}var{componentName:tc,create:nc,scope:lc}=J("buttons-item"),oc=nc(ec(tc,lc,Ou)),fo=oc,ac={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function rc(e,n){return{props:{...ac},setup(o,l){const a=Ze(),r=Mn();zn(!1);const s=(0,t.computed)(()=>r&&a?Ln(a,!1).value:null),i=e,u=(0,t.computed)(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),m=(0,t.computed)(()=>{const p={};if(o.width)o.width!=="auto"&&(p.width=de(o.width));else{const c=r&&a?On(a,!1):null;if(s.value&&c){if(s.value.type==="grid"){const h=Fn(c,s.value,o.span,o.offset);Object.assign(p,h)}else if(s.value.type==="flow"){const h=Rn(c,s.value,o.span,o.offset,o.width);Object.assign(p,h)}}}return p});return()=>{const p={class:u.value,style:m.value};return l.slots&&typeof l.slots.default=="function"?(0,t.h)("div",p,l.slots.default()):(0,t.h)("div",p)}}}}var{componentName:ic,create:sc,scope:uc}=J("slot-item"),cc=sc(rc(ic,uc)),mo=cc,Xa={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 dc(e,n,o,l){return{props:{...pe,...ve,...Xa},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(a,r){const s=xe((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),{toLocaleRefs:m}=(0,me.useFoxI18n)(n),p=m(a,["placeholder"]),c=(0,t.ref)(!1),h=Pe(a,"modelValue",null,u),y=e,w=(0,t.computed)(()=>({[y]:!0,"is-disabled":s.value,"is-readonly":i.value})),S=Te((0,t.computed)(()=>a.textAlign),"textAlign"),b=(0,t.computed)(()=>{const $={};return S.value&&($["text-align"]=S.value),$}),f=$=>{let z=$.target.value;a.type==="digit"&&(z=xl(z,!0)),a.type==="number"&&(z=xl(z,!1)),a.maxLength&&z.length>Number(a.maxLength)&&(z=z.slice(0,Number(a.maxLength))),h.value=z,u("update:modelValue",z,$),u("change",z,$)};let k=Pe(a,"hintText"),d=(0,t.ref)(!1);const C=$=>{let z=$.target.value;c.value=!0,ue(k.value)||(d.value=!0),u("focus",z,$)},N=$=>{setTimeout(()=>{d.value&&(d.value=!1),c.value=!1},0);let z=$.target.value;a.maxLength&&z.length>Number(a.maxLength)&&(z=z.slice(0,Number(a.maxLength))),u("blur",z,$)},v=(0,t.computed)(()=>({[`${y}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),g=(0,t.computed)(()=>{const $={};return r.slots.append&&!A.value&&!G.value&&($.display="none"),$}),A=(0,t.computed)(()=>be(a.unit)>0),B=(0,t.computed)(()=>!G.value),V=(0,t.computed)(()=>({[`${y}__unit`]:!0,hidden:!B.value})),T=$=>{h.value="",u("update:modelValue","",$),u("change","",$),u("clear","")},_=(0,t.computed)(()=>ye(a.clearable)&&!s.value&&!i.value),G=(0,t.computed)(()=>{let $=be(h.value)>0;return ye(a.clearable)&&$&&c.value}),x=(0,t.computed)(()=>({action:!0,hidden:!G.value}));return()=>{const $={class:w.value,style:b.value,type:a.type,maxlength:a.maxLength,placeholder:p.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:f,onFocus:C,onBlur:N},z=[],P=(0,t.h)("input",$);z.push(P);const O=[];if(_.value){const te=(0,t.h)(l,{class:["action-icon"]}),L=(0,t.h)("view",{class:x.value,onClick:T},{default:()=>[te]});O.push(L)}if(A.value){const te=(0,t.h)("view",{class:V.value},[a.unit]);O.push(te)}const F=(0,t.h)("view",{class:v.value,style:g.value},{default:()=>O});z.push(F);const D={default:()=>z};D.label=r.slots.default,D.prepend=r.slots.prepend,D.append=r.slots.append,D.fixedPreTip=r.slots.fixedPreTip,D.fixedTip=r.slots.fixedTip;const X={...Ge(a,Xa),hintText:k.value,hintVisible:d.value};return a.prop&&(X.prop=`${a.prop}_item`),(0,t.h)(o,X,D)}}}}var{componentName:fc,create:mc,scope:pc}=J("input-item"),hc=mc(dc(fc,pc,Ce,le.CircleClose)),po=hc;function Qa(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let a=l;for(let r=o.length-1;r>=l;r--)if(o.charAt(r)!="0"){a=r;break}return a-l<n?a=l+n+1:a!=l&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function Ga(e,n,o=20){return typeof n=="string"&&(n=fe(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?Qa(zr(`${e}`,`${n}`)):Qa(Ql(`${e}`,Lr(`${n}`),20))}function vc(e,n=-1,o=!1,l=3,a=","){return Nn(e,n,o,l,a)}function Za(e,n,o,l,a=!0){if(e==="")return"";if(e=Or(e),n=fe(n),n==1)return e;if(l)e=Ga(e,n),o&&(e=="0"&&a?e=`${e}.`.padEnd(fe(o)+2,"0"):e=Ql(e,1,fe(o)));else{let r=-1*n;e=Ga(e,r)}return e}function Ja(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ye(n.minInclude),a=Tl(e,n.min);(l&&a==-1||!l&&(a==0||a==-1))&&(o.message="请输入不小于 {0} 的数值".replace("{0}",n.min),o.minValid=!1)}if(n.max!=null){let l=ye(n.maxInclude),a=Tl(e,n.max);(l&&a==1||!l&&(a==0||a==1))&&(o.maxValid=!1)}return o}var er={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 gc(e,n,o,l){return{props:{...pe,...ve,...er},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(a,r){const s=xe((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),m=(0,t.ref)(!1),p=Pe(a,"modelValue",null,u),c=(0,t.ref)("");(0,t.watch)([()=>p.value,()=>a.rates,()=>a.precision],([F,D,X])=>{if(ue(F)){c.value="";return}const te=Za(F,D,X,!1);c.value!==te&&(c.value=te)},{immediate:!0});const h=(0,t.computed)(()=>{let F="";return m.value&&(F=c.value),F}),{t:y}=(0,me.useFoxI18n)(n),w=(0,t.computed)(()=>{let F=a.placeholder??"";return!m.value&&!ue(c.value)?F=vc(c.value,a.decimalLength,a.autoPadding,a.digits,a.separator):F=ue(F)?y(["placeholder"]):F,F}),S=e,b=(0,t.computed)(()=>({[S]:!0,[`${S}__placeholder`]:c.value.length>0,"is-disabled":s.value,"is-readonly":i.value})),f=Te((0,t.computed)(()=>a.textAlign),"textAlign"),k=(0,t.computed)(()=>{const F={};return f.value&&(F["text-align"]=f.value),F}),d=(0,t.ref)(""),C=(0,t.computed)(()=>{let F=d.value;return ue(F)&&(F=a.errorTip??""),F}),N=(0,t.ref)(""),v=(0,t.ref)(!1),g=F=>{let D=F.target.value;if(ue(D)){c.value="",p.value="",u("update:modelValue","",F),u("change","",F),ye(a.showTip)&&v.value&&(v.value=!1);return}if(D.length>=2){let X=D;if(X.charAt(0)=="-"&&(X=X.substring(1)),X.length>=2&&X.charAt(0)=="0"&&X.charAt(1)!="."){(0,t.triggerRef)(c);return}}if(D!="-"){if(!Tn(D)){(0,t.triggerRef)(c);return}if(a.integerLength!=-1&&Wr(D)>Number(a.integerLength)){(0,t.triggerRef)(c);return}if(a.decimalLength&&a.decimalLength!=-1&&Yr(D)>Number(a.decimalLength)){(0,t.triggerRef)(c);return}let X=Ja(D,a);if(X.maxValid===!1){d.value=X.message,(0,t.triggerRef)(c);return}}else if(a.min!=null&&fe(a.min)>=0){(0,t.triggerRef)(c);return}N.value=D,ye(a.showTip)&&(v.value=D.length>0),c.value=D,p.value=Za(D,a.rates,a.precision,!0),u("update:modelValue",p.value,F),u("change",p.value,F)},A=F=>{if(m.value=!0,ye(a.showTip)){let D=c.value;ue(D)&&(D=a.hintText),ue(D)||(N.value=D,v.value=!0)}d.value="",u("focus",p.value,F)},B=F=>{if(setTimeout(()=>{m.value=!1,ye(a.showTip)&&v.value===!0&&(v.value=!1)},0),!ue(c.value)){let D=Ja(c.value,a);if(D.minValid===!1||D.maxValid===!1){d.value=D.message;return}}u("update:modelValue",p.value,F),u("blur",p.value,F)},V=(0,t.computed)(()=>({[`${S}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),T=(0,t.computed)(()=>{const F={};return r.slots.append&&!_.value&&!P.value&&(F.display="none"),F}),_=(0,t.computed)(()=>be(a.unit)>0),G=(0,t.computed)(()=>!P.value),x=(0,t.computed)(()=>({[`${S}__unit`]:!0,hidden:!G.value})),$=F=>{p.value="",u("update:modelValue","",F),u("change","",F),u("clear","")},z=(0,t.computed)(()=>ye(a.clearable)&&!s.value&&!i.value),P=(0,t.computed)(()=>{let F=be(p.value)>0;return ye(a.clearable)&&F&&m.value}),O=(0,t.computed)(()=>({action:!0,hidden:!P.value}));return()=>{let F={class:b.value,style:k.value,type:"digit",maxlength:a.maxLength,placeholder:w.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:g,onFocus:A,onBlur:B},D=[],X=(0,t.h)("input",F);D.push(X);let te=[];if(z.value){const Y=(0,t.h)(l,{class:["action-icon"]}),R=(0,t.h)("view",{class:O.value,onClick:$},{default:()=>[Y]});te.push(R)}if(_.value){const Y=(0,t.h)("view",{class:x.value},[a.unit]);te.push(Y)}const L=(0,t.h)("view",{class:V.value,style:T.value},{default:()=>te});D.push(L);const K={default:()=>D};K.label=r.slots.default,K.prepend=r.slots.prepend,K.append=r.slots.append,K.fixedPreTip=r.slots.fixedPreTip,K.fixedTip=r.slots.fixedTip;const M={...Ge(a,er),errorTip:C.value,hintText:N.value,hintVisible:v.value,hintType:"number"};return a.prop&&(M.prop=`${a.prop}_item`),(0,t.h)(o,M,K)}}}}var{componentName:yc,create:bc,scope:Sc}=J("money-item"),kc=bc(gc(yc,Sc,Ce,le.CircleClose)),ho=kc,Pl={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:wc,create:Cc,scope:Nc}=J("textarea"),Ac=Cc({props:{...Pl},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:o}=(0,me.useFoxI18n)(Nc);const l=o(e,["placeholder"]),a=(0,t.ref)(),r=(0,t.computed)(()=>{const h=wc;return{[h]:!0,[`${h}--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 h=a.value;h.style.height="auto";let y=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:w,minHeight:S}=e.autosize;w!==void 0&&(y=Math.min(y,w)),S!==void 0&&(y=Math.max(y,S))}y&&(console.info("----------- height",y),h.style.height=y+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(i)});const u=(h,y)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,y),n("change",h,y)};return{...l,textareaRef:a,classes:r,styles:s,change:h=>{const y=h.target;u(y.value,h)},focus:h=>{e.disabled||e.readonly||n("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let y=h.target.value;u(y,h),n("blur",{value:y,event:h})}}}}),Bc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Tc={key:0,class:"fox-textarea__limit"};function Vc(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:(0,t.normalizeStyle)(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...s)=>e.change&&e.change(...s)),onBlur:n[1]||(n[1]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[2]||(n[2]=(...s)=>e.focus&&e.focus(...s)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Bc),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",Tc,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var Wn=oe(Ac,[["render",Vc]]);function xc(e,n,o,l){return{props:{...pe,...ve,...Pl},emits:["update:modelValue","change","blur","focus","setValue"],setup(a,r){const s=xe((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),m=Pe(a,"modelValue",null,u),p=S=>{m.value=S,u("update:modelValue",S,{}),u("change",S,{})};let c=Pe(a,"hintText"),h=(0,t.ref)(!1);const y=S=>{ue(c.value)||(h.value=!0),u("focus",m.value,S)},w=S=>{setTimeout(()=>{h.value&&(h.value=!1)},0),u("blur",m.value,S)};return()=>{const S={...he(a,Pl),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":p,onFocus:y,onBlur:w},b=[],f=(0,t.h)(l,S);b.push(f);const k={default:()=>b};k.label=r.slots.default,k.prepend=r.slots.prepend,k.append=r.slots.append,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const d={...he(a,ve,pe)};return a.prop&&(d.prop=`${a.prop}_item`),(0,t.h)(o,d,k)}}}}var{componentName:$c,create:Ec,scope:Dc}=J("textarea-item"),Ic=Ec(xc($c,Dc,Ce,Wn)),vo=Ic;function qc(e){return e===window}var Ie=e=>{const n=(0,t.unref)(e);if(qc(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},tr=10;function bi(e,n){return e>n&&e>tr?"horizontal":n>e&&n>tr?"vertical":""}function Yn(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Xn(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else{const i=s;e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=bi(e.offsetX,e.offsetY))}),start:(s=>{if(l(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else{const i=s;e.startX=i.clientX,e.startY=i.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:o,state:e}}function et(){const e=(0,t.ref)(0),n=(0,t.ref)(0),o=(0,t.ref)(0),l=(0,t.ref)(0),a=(0,t.ref)(0),r=(0,t.ref)(0),s=(0,t.ref)(0),i=(0,t.ref)(0),u=(0,t.ref)(0),m=(0,t.ref)(0),p=(0,t.ref)(""),c=()=>p.value==="vertical",h=()=>p.value==="horizontal",y=()=>{s.value=0,i.value=0,u.value=0,m.value=0,p.value="",o.value=0};return{move:(b=>{if(b.touches){const f=b.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=b;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),m.value=Math.abs(i.value),l.value=Date.now()-o.value,p.value||(p.value=bi(u.value,m.value))}),start:(b=>{if(y(),b.touches){const f=b.touches[0];e.value=f.clientX,n.value=f.clientY}else{const f=b;e.value=f.clientX,n.value=f.clientY}o.value=Date.now()}),reset:y,startX:e,startY:n,startTime:o,duration:l,moveX:a,moveY:r,deltaX:s,deltaY:i,offsetX:u,offsetY:m,direction:p,isVertical:c,isHorizontal:h}}var Pc=2e3,nr=()=>Pc++,Xe={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:{}}},Mc=(e,n)=>({components:n,props:{...Xe},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const a=(0,t.reactive)({zIndex:0,showSlot:!0,closed:o.closeable});o.visible&&(a.zIndex=nr());const r=(0,t.computed)(()=>{const S=e,b=[S,`${S}--${o.position}`];return o.round&&b.push("round"),o.position==="bottom"&&o.safeAreaInsetBottom&&b.push(`${S}--${o.position}--safebottom`),typeof o.popClass=="string"?b.push(o.popClass):Array.isArray(o.popClass)&&o.popClass.forEach(f=>{b.push(f)}),b}),s=(0,t.computed)(()=>({zIndex:a.zIndex,transitionDuration:`${o.duration}s`,...o.style})),i=(0,t.computed)(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{l("update:visible",!0),o.zIndex?a.zIndex=o.zIndex:a.zIndex=nr(),o.destroyOnClose&&(a.showSlot=!0),l("open")},m=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+o.duration*1e3)},p=S=>{l("click-pop",S)},c=S=>{S.stopPropagation(),l("click-close-icon",S),l("update:visible",!1)},h=S=>{l("click-overlay",S),o.closeOnClickOverlay&&l("update:visible",!1)},y=S=>{l("opend",S)},w=S=>{l("closed",S)};return(0,t.watch)(()=>o.visible,S=>{o.visible?u():m()}),(0,t.watch)(()=>o.closeable,S=>{a.closed=S}),{...(0,t.toRefs)(a),popStyle:s,transitionName:i,classes:r,onClick:p,onClickCloseIcon:c,onClickOverlay:h,onOpened:y,onClosed:w}}}),Si={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}},Ml={...Xe,...Si,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}},ki=36;function zc(){return ki}function Lc(e){ki=e}function Le(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function zl(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Oc(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function lr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var Rc=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=Je(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ee(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function Fc(){return new Rc((0,t.getCurrentInstance)().proxy)}function or(e,n,o){return!(Le(e,n)!==Le(e,o)||rt(e,n)!==rt(e,o))}function Kc(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const a=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let s=0;s<n.length&&s<o.length;s++){const i=n[s];let u=o[s].findIndex(m=>{if(r==="text")return Le(e,m)===i;if(r==="value"){let p=rt(e,m);return p==null&&(p=Le(e,m)),p===i}else if(r==="item")return or(e,m,i)});if(u==-1)break;a.push(u)}else{let s=o[0];for(let i=0;i<n.length;i++){const u=n[i];let m=s.findIndex(c=>{if(r==="text")return Le(e,c)===u;if(r==="value"){let h=rt(e,c);return h==null&&(h=Le(e,c)),h===u}else if(r==="item")return or(e,c,u)});if(m==-1)break;a.push(m);const p=zl(e,s[m]);if(!Array.isArray(p))break;s=p}}return a}function ar(e,n,o,l){if(o.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let s=0;s<n.length&&s<o.length;s++){const i=o[s];let u=n[s];u<0&&u>=i.length&&(u=0);const m=i[u],p=Le(e,m);if(a.texts.push(p),a.items.push(m),r==="text")a.values.push(p);else if(r==="value"){let c=rt(e,m);c==null&&(c=p),a.values.push(c)}else a.values.push(m)}else{let s=o[0];for(let i=0;i<n.length;i++){let u=n[i];u<0&&u>=s.length&&(u=0);const m=s[u],p=Object.assign({},m);p.children=null;const c=Le(e,m);if(a.texts.push(c),a.items.push(p),r==="text")a.values.push(c);else if(r==="value"){let h=rt(e,m);h==null&&(h=c),a.values.push(h)}else a.values.push(p);if(!Array.isArray(m.children))break;s=m.children}}return a}function rr(e){return{text:e,value:e}}var Uc=15,Hc=300,_c=200,{create:jc}=J("picker-column");function Wc(e){e.stopPropagation()}function Yc(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Wc(e)}var Xc=jc({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},...Si},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=(0,t.computed)(()=>({"fox-picker__list":!0})),l=(0,t.computed)(()=>({height:`${fe(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=g=>{const A=g+1;return A>=c.currIndex+8||A<=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=g=>{const A=g+1;return`transform: rotate3d(1, 0, 0, ${-c.rotation*A}deg) translate3d(0px, 0px, 104px)`},m=(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}),h=g=>Le(e,g),y=g=>rt(e,g),w=et(),S=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},b=(g,A=!1,B=!1)=>{if(c.currIndex=g,A){const V=()=>{c.moving=!1,n("update:modelValue",g),n("change",g)};B?c.transitionEndTrigger=V:V()}},f=(g,A,B)=>{let V=g+c.startDistance;if(A==="end"){const T=-(e.source.length-1)*e.itemHeight;V<T&&(V=T),V>0&&(V=0);let _=Math.abs(Math.round(-V/e.itemHeight));const G=-_*e.itemHeight,x=`${(_+1)*c.rotation}deg`;b(_,!0,B?B>0:!1),k(G,A,B,x)}else{let T=(-V/e.itemHeight+1)*c.rotation;const _=(e.source.length+1)*c.rotation,G=0;if(T=Math.min(Math.max(T,G),_),e.threeDimensional&&(T<G||T>_))return;k(V,null,void 0,`${T}deg`)}},k=(g=0,A,B=_c,V)=>{A==="end"?c.scrollTime=B:c.scrollTime=0,c.deg=V,c.scrollDistance=g},d=(g,A)=>(g=Math.abs(g/A)/.003*(g<0?-1:1),g),C=g=>{e.readonly||(c.startDistance=c.scrollDistance,w.start(g),c.transitionEndTrigger=null)},N=g=>{e.readonly||(c.moving=!0,w.move(g),w.isVertical()&&(c.moving=!0,Yc(g,!0)),f(w.deltaY.value,"",0))},v=()=>{if(e.readonly)return;const g=w.deltaY.value,A=w.duration.value;A<Hc&&Math.abs(g)>Uc?f(d(g,A),"end",e.swipeDuration):f(g,"end",0)};return(0,t.watch)(()=>e.modelValue,g=>{const A=c.currIndex-g;A!==0&&(c.currIndex=g,c.startDistance=c.scrollDistance,f(A*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,g=>{if(c.currIndex>=g.length){const A=(g.length-1-c.currIndex)*e.itemHeight;c.startDistance=c.scrollDistance,f(A,"end",0)}}),(0,t.watch)(()=>e.visible,g=>{g===!1&&S()}),(0,t.onMounted)(()=>{f(-e.modelValue*e.itemHeight)}),{classes:o,styles:l,contentClasses:a,itemText:h,itemValue:y,...(0,t.toRefs)(c),roller:p,getItemText:Le,onTouchStart:C,onTouchMove:N,onTouchEnd:v,isHidden:s,setRollerStyle:u,touchRollerStyle:i,touchTileStyle:m,stopMomentum:S}}}),Qc={key:1,class:"fox-picker__item-tile"};function Gc(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:n[4]||(n[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[(0,t.createElementVNode)("view",{ref:"roller",class:(0,t.normalizeClass)(e.contentClasses),style:(0,t.normalizeStyle)(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.source,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(i))},(0,t.toDisplayString)(e.itemText(s)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",Qc,(0,t.toDisplayString)(e.itemText(s)),1))],64))),128))],6)],38)}var Zc=oe(Xc,[["render",Gc]]),It=0,ir="fox-overflow-hidden",sr=()=>Qe?document.body:{classList:[]},Jc=e=>[()=>{if(e())try{!It&&sr().classList.add(ir),It++}catch{}},()=>{if(e()&&It)try{It--,!It&&sr().classList.remove(ir)}catch{}}],ed={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:td,create:nd}=J("overlay"),ld=nd({props:{...ed},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=Jc(()=>e.lockScroll),a=(0,t.computed)(()=>({[td]:!0,[e.overlayClass]:!0})),r=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,i=>{i?o():l()}),{classes:a,style:r,onClick:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function od(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"overlay-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var it=oe(ld,[["render",od]]),{componentName:ad,create:rd}=J("popup"),id=rd(Mc(ad,{FoxOverLay:it,Close:le.Close}));function sd(e,n,o,l,a,r){const s=(0,t.resolveComponent)("FoxOverLay"),i=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(s,(0,t.mergeProps)({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.popStyle),onClick:n[1]||(n[1]=(...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 ge=oe(id,[["render",sd]]),ud=(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)(ge,Ge({...e},{poppable:!1}),n):n?.default?.()??null}}),cd=ud,{create:dd,componentName:ur,scope:fd}=J("picker"),md=dd({components:{Column:Zc,Wrapper:cd},props:{...Ml},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=(0,me.useFoxI18n)(fd),a=o(e,["title","cancelText","clearText","confirmText"]),r=(0,t.ref)(null),s=(0,t.ref)(zc());(0,t.watch)(()=>e.visible,$=>{$&&s.value<=0&&setTimeout(()=>{r.value&&(s.value=Ie(r.value).height,Lc(s.value))},50)});const i=(0,t.computed)(()=>({[ur]:!0})),u=(0,t.computed)(()=>{const $=[];return Array.isArray(e.popClass)?$.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&$.push(e.popClass),$.push(`${ur}__popup`),$.join(" ")}),m=Fc(),p=(0,t.ref)("singleColumn");let c=(0,t.ref)([]);(0,t.watch)([()=>e.source,()=>e.params],async([$,z])=>{if($){let P=await m.load("picker",$,z);if(P.length>0){let O=P[0];if(Array.isArray(O)){if(typeof O[0]=="string"){let F=P,D=[];F.forEach(X=>{let te=X.map(L=>rr(L));D.push(te)}),c.value=D}else c.value=P;p.value="multipleColumn"}else if(typeof O=="string"){let F=P,D=[],X=F.map(te=>rr(te));D.push(X),c.value=D,p.value="singleColumn"}else{const F=zl(e,O);Array.isArray(F)?(p.value="cascade",c.value=[P]):(p.value="singleColumn",c.value=[P])}}else c.value=[]}},{immediate:!0});const h=(0,t.ref)([]),y=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),w=(0,t.ref)([]);let S=null;const b=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>c.value],([$,z])=>{let P=Kc(e,$,z,p.value);if(!De(P,b.value)){b.value=P,S||(S=P?[...P]:[]);let O=ar(e,P,z,p.value);O&&(h.value=O.texts,De(y.value,O.values)||(y.value=O.values),De(w.value,O.items)||(w.value=O.items),n("update:text",h.value))}});let f="";const k=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,$=>{k.value=$,$&&(f="active",b.value.length>0&&(S=[...b.value]))});const d=$=>{let z=lr(e,$);return Ee(z)?z.defaultIndex??0:0},C=$=>{if(e.readonly===!0)return!0;let z=lr(e,$);return Ee(z)?z.readonly??!1:!1},N=($,z)=>{let P=b.value;P[$]=z;for(let F=0;F<$;F++)P[F]==null&&(P[F]=d(F));if(p.value==="cascade")for(let F=$+1;F<g.value.length;F++){let D=d(F);F<P.length?P[F]=D:P.push(D)}else for(let F=P.length;F<g.value.length;F++){let D=d(F);P.push(D)}b.value=P;let O=ar(e,P,c.value,p.value);O&&(h.value=O.texts,y.value=O.values,w.value=O.items)},v=$=>$<b.value.length?b.value[$]:d($),g=(0,t.computed)(()=>{if(c.value.length==0)return[];if(p.value=="singleColumn"||p.value=="multipleColumn")return c.value;let $=[],z=0,P=c.value[0],O=0;for(;;){let F=P.map(te=>{let L=Object.assign({},te);return Oc(e,L,null),L});$.push(F),z>=b.value.length?O=0:O=b.value[z],(O<0||O>=P.length)&&(O=0);let D=P[O];const X=zl(e,D);if(!Array.isArray(X))break;P=X,z++}return $}),A=(0,t.computed)(()=>fe(+e.visibleItemCount-1)/2*s.value),B=($=!1)=>{if(e.readonly===!0){$&&n("update:visible",!1);return}let z=c.value.length-1;for(;z>=0&&!(b.value[z]===null||b.value[z]===void 0);z--);if(z>=0&&N(z,0),p.value==="singleColumn"){let P=y.value.length>0?y.value[0]:"",O=w.value.length>0?w.value[0]:null;n("update:modelValue",P),n("update:text",h.value),n("change",P,O),$&&(n("confirm",P),n("update:visible",!1))}else n("update:modelValue",y.value),n("update:text",h.value),n("change",y.value,w.value),$&&(n("confirm",y.value),n("update:visible",!1))},V=($,z)=>{f!=="close"&&(N($,z),e.isAutoBackFill&&B(!k.value))},T=()=>{f==="active"&&(f="confirm",S=Array.isArray(b.value)?[...b.value]:[],B(!0))},_=()=>{p.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),b.value=[],S=null};return{...a,pickerLineRef:r,classes:i,popClasses:u,columns:g,dataType:p,show:k,itemHeight:s,top:A,isReadonly:C,getIndex:v,change:V,close:()=>{if(f==="active"){if(f="close",S===null||S.length===0)_();else{if(Array.isArray(S))for(let $=0;$<S.length;$++)N($,S[$]);B(!1)}n("close"),n("update:visible",!1)}},confirm:T,clear:()=>{if(f==="active"){if(f="clear",e.readonly===!0){n("update:visible",!1);return}_(),S=null,n("clear",""),n("update:visible",!1)}}}}}),pd={key:0,class:"fox-picker__bar"},hd={class:"fox-picker__title"},vd={class:"fox-picker__bar__action"},gd={class:"fox-picker__column"};function yd(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Column"),i=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(i,{position:"bottom","pop-class":e.popClasses,visible:e.show,"onUpdate:visible":n[3]||(n[3]=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",pd,[(0,t.createElementVNode)("view",hd,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",vd,[(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",gd,[(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,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:m,class:"fox-picker__columnitem"},[(0,t.createVNode)(s,{visible:e.show,source:u,readonly:e.isReadonly(m),"column-index":m,modelValue:e.getIndex(m),"onUpdate:modelValue":p=>e.change(m,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 en=oe(md,[["render",yd]]);function bd(e,n,o,l,a,r,s=!0){return{props:{...pe,...ve,...Ml,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 m=xe((0,t.computed)(()=>i.disabled)),p=Ve((0,t.computed)(()=>i.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??u.attrs.name),{toLocaleRefs:h}=(0,me.useFoxI18n)(n),y=h(i,["placeholder"]),w=(0,t.ref)(!1),S=Pe(i,"modelValue",null,c),b=(0,t.ref)([]),f=(0,t.computed)(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),k="fox-input-item",d=(0,t.computed)(()=>({[k]:!0,"is-disabled":m.value,"is-readonly":p.value})),C=Te((0,t.computed)(()=>i.textAlign),"textAlign"),N=(0,t.computed)(()=>{const K={};return C.value&&(K["text-align"]=C.value),K}),v=(0,t.ref)(!1),g=()=>{v.value=!0},A=K=>{v.value=K},B=K=>{S.value=K,c("update:modelValue",K)},V=(K,M)=>{c("change",K,M)},T=K=>{let M=K.target.value;w.value=!0,c("focus",M,K)},_=K=>{setTimeout(()=>{w.value=!1},0);let M=K.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),c("blur",M,K)},G=K=>{b.value=K,Array.isArray(K)&&K.length===0?c("update:text",K[0]):c("update:text",K)},x=(0,t.computed)(()=>({[`${k}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),$=(0,t.computed)(()=>be(i.unit)>0),z=(0,t.computed)(()=>be(i.unit)>0&&!w.value),P=(0,t.computed)(()=>({hidden:!z.value})),O=K=>{S.value="",c("update:modelValue","",K),c("change","",K),c("clear","")},F=(0,t.computed)(()=>i.clearable&&!m.value&&!p.value),D=(0,t.computed)(()=>be(S.value)>0&&w.value),X=K=>{D.value?O(K):g()},te=(0,t.computed)(()=>D.value&&F.value?l:a),L=(0,t.computed)(()=>({action:!0}));return()=>{const K={class:d.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:g,onFocus:T,onBlur:_};s&&(K.disabled=!0);const M=[],Y=(0,t.h)("input",K);M.push(Y);const R=[],U=(0,t.h)(te.value,{class:["action-icon"]}),Z=(0,t.h)("view",{class:L.value,onClick:X},{default:()=>[U]});if(R.push(Z),$.value){const E=(0,t.h)("view",{class:P.value},[i.unit]);R.push(E)}const W=(0,t.h)("view",{class:x.value},{default:()=>R});M.push(W);const ee={default:()=>M};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 q=he(i,Ml);q.disabled=!1,q.readonly=m.value||p.value,q.visible=v.value,q["onUpdate:visible"]=A,q.modelValue=S.value,q["onUpdate:modelValue"]=B,q.text=b.value,q["onUpdate:text"]=G,q.onChange=V;const H=(0,t.h)(r,q);ee.hide=()=>[H];const I=he(i,ve,pe);return i.prop&&(I.prop=`${i.prop}_item`),(0,t.h)(o,I,ee)}}}}var{componentName:Sd,create:kd,scope:wd}=J("picker-item"),Cd=kd(bd(Sd,wd,Ce,le.CircleClose,le.ArrowRight,en,!1)),go=Cd,Nd=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:o}){return()=>e.poppable?(0,t.h)(ge,{...o},n):n?.default?.()??null}}),Ad=Nd,un=(e,n,o)=>e.map(l=>{const{value:a="value",text:r="text",children:s="children"}=o??{},{[a]:i,[r]:u,[s]:m,...p}=l,c={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:i,text:u,children:m,_parent:n};return c.children&&c.children.length&&(c.children=un(c.children,c,o)),c}),wi=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&wi(l.children,n)},Bd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Td=(e,n)=>{const{topId:o,idKey:l,pidKey:a,sortKey:r}={...Bd,...n||{}};let s=[],i={};return e.forEach(u=>{u={...u};const{[l]:m,[a]:p}=u,c=i[p]=i[p]||[];!s.length&&p===o&&(s=c),c.push(u),u.children=i[m]||(i[m]=[])}),r&&Object.keys(i).forEach(u=>{i[u].length>1&&i[u].sort((m,p)=>m[r]-p[r])}),i=null,s},Ll={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}},cr=(e,n)=>n[e.textKey],qt=(e,n)=>n[e.valueKey],Vd=(e,n)=>n[e.visibleKey],dr=(e,n)=>n[e.disabledKey],xd=(e,n)=>{const o=n[e.doitKey];return ye(o)},$d=(e,n)=>{const o=n[e.numKey];return o==null?null:fe(n[o])},fr=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function Ed(e,n,o,l,a,r=!1){return{props:{...Ll},emits:["update:modelValue","change","click"],setup(s,{slots:i,emit:u}){const m=(0,t.computed)(()=>{const I={};return I[`${e}`]=!0,I}),p=(0,t.computed)(()=>{const I={};return I[`${e}__titles`]=!0,I[`${s.direction}`]=!0,s.align&&(I[`${s.align}`]=!0),s.scroll===!0&&(I.scrollable=!0),s.shape&&(I[`${s.shape}`]=!0),s.showScrollArrow?(Y.value===!0&&(I["has-left-scroll-arrow "]=!0),R.value===!0&&(I["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(I["has-navigation"]=!0),I}),c=(0,t.computed)(()=>({})),h=(0,t.computed)(()=>{if(!s.gutter)return 0;const I=se(s.gutter);return I<=0?0:I}),y=(0,t.ref)(s.modelValue);(0,t.watch)(()=>s.modelValue,I=>{y.value!==I&&(y.value=I,F(!1))});const w=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),S=(0,t.computed)(()=>{const I={};return f.value||(I.display="none"),I}),b=(0,t.ref)(),f=(0,t.ref)(!1),k=()=>{d(!f.value)},d=I=>{const E=I;E?(f.value=E,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,b.value?b.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},C=(0,t.ref)(),N=(0,t.ref)([]),v=(I,E)=>{N.value[E]=I},g=I=>E=>{v(E,I)},A=(I,E)=>{const j=C.value,Q=N.value;if(!j||!Q||!Q[I])return;const ne=Q[I];let ae=0;s.direction==="vertical"?ae=ne.offsetTop-(j.offsetHeight-ne.offsetHeight)/2:ae=ne.offsetLeft-(j.offsetWidth-ne.offsetWidth)/2,B(j,ae,E?0:.3,s.direction)},B=(I,E,j,Q)=>{let ne=0;const ae=Q==="horizontal"?I.scrollLeft:I.scrollTop,ie=j===0?1:Math.round(j*1e3/16);function Se(){Q==="horizontal"?I.scrollLeft+=(E-ae)/ie:I.scrollTop+=(E-ae)/ie,++ne<ie&&Fe(Se)}Se()},V=(I,E)=>{const j=qt(s,I),Q={};return Q[`${e}__titles-item`]=!0,Q.disabled=dr(s,I),Q.active=j===y.value,s.shape&&(Q[`${s.shape}`]=!0),s.ellipsis&&(Q.ellipsis=!0),E&&(E.class&&(Q[`${E.class}`]=!0),E.disabled===!0&&(Q.disabled=E.disabled)),Q},T=(I,E)=>{const j={};if(h.value>0){const Q=Math.abs(h.value/2);s.direction==="vertical"?(j["margin-top"]=`${Q}px`,j["margin-bottom"]=`${Q}px`):(j["margin-left"]=`${Q}px`,j["margin-right"]=`${Q}px`)}return E&&E.style&&Object.assign(j,E.style),j},_=(I,E)=>`${qt(s,I)??E}`,G=(I,E)=>{const j=qt(s,I),Q={};Q[`${e}__popup-item`]=!0,Q.disabled=dr(s,I),Q.active=j===y.value,s.shape&&(Q[`${s.shape}`]=!0);const ne=fr(s,I,E);return ne&&ne.disabled===!0&&(Q.disabled=ne.disabled),Q},x=(0,t.computed)(()=>(s.data??[]).filter(I=>Vd(s,I)!==!1)),$=(I,E)=>{const j=qt(s,I);if(u("click",I,E),y.value==j)return;const Q=()=>{y.value=j,s.scroll&&A(E,!1),u("update:modelValue",j),u("change",I,E)};if(typeof s.beforeChange=="function"){const ne=s.beforeChange(I,E);bt(ne)?ne.then(ae=>{ae!==!1&&Q()}).catch(()=>{Q()}):ne!==!1&&Q()}else Q()},z=(I,E)=>function(){$(I,E)},P=(I,E)=>{$(I,E),d(!1)},O=(I,E)=>function(){P(I,E)},F=I=>{if(!Array.isArray(s.data)||!s.scroll)return;M()&&ee();const E=s.data.findIndex(j=>qt(s,j)===y.value);E!==-1&&A(E,I)},D=()=>{M()||q()};(0,t.watch)(()=>s.data,()=>{setTimeout(F,0)}),(0,t.onMounted)(()=>{F(!0)}),(0,t.onBeforeUnmount)(()=>{D()});const X=(I,E)=>{if(i.item)return i.item({item:I,index:E});const j=fr(s,I,E),Q=[];if(i.text){const ae=i.text({item:I,index:E});Q.push(ae)}else{const ae=[];if(j?.doit===!0||xd(s,I)){const tt=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ae.push(tt)}const ie=j?.num??$d(s,I);if(ie){let tt="";const je=fe(ie);je>=100?tt="99+":tt=`${je}`;const dl=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[tt]);ae.push(dl)}const Se={class:`${e}__titles-item-text`};ae.push(cr(s,I));const ut=(0,t.h)("view",Se,ae);Q.push(ut)}const ne=(0,t.h)("view",{class:`${e}__titles-item-line`});return Q.push(ne),(0,t.h)("view",{ref:g(E),class:V(I,j),style:T(I,j),key:_(I,E),onClick:z(I,E)},Q)},te=()=>{const I=i.default?i.default():[];if(I.length===0)for(let E=0;E<x.value.length;E++){const j=x.value[E],Q=X(j,E);I.push(Q)}return(0,t.h)("view",{ref:C,class:p.value,style:c.value},I)},L=()=>{let I=null;return i.navigation?I=i.navigation():I=(0,t.h)(o),(0,t.h)("view",{class:`${e}__navigation`,onClick:k},[I])},K=()=>{const I=[];for(let E=0;E<x.value.length;E++){const j=x.value[E];let Q=null;i.popupItem?Q=i.popupItem({item:j,index:E}):Q=cr(s,j);const ne=(0,t.h)("view",{class:G(j,E),key:_(j,E),onClick:O(j,E)},[Q]);I.push(ne)}return(0,t.h)("view",{class:w.value,style:S.value},I)},M=()=>s.showScrollArrow&&s.direction=="horizontal",Y=(0,t.ref)(!1),R=(0,t.ref)(!1),U=I=>{const E=C.value,j=N.value;if(!(!E||!j))if(I==="left"){const Q=E.scrollLeft;let ne=Q;for(let ae=0;ae<j.length;ae++){const ie=j[ae].offsetLeft;if(Q-ie<0)break;ne=ie}B(E,ne,.3,"horizontal")}else{const Q=E.scrollLeft;let ne=Q,ae=E.offsetWidth;for(let ie=j.length-1;ie>=0;ie--){const Se=j[ie].offsetLeft+j[ie].offsetWidth;if(Se-Q<E.offsetWidth){ne+=ae-Se;break}ae=Se}B(E,ne,.3,"horizontal")}},Z=qe(()=>{const I=C.value;if(!I)return;let E=I.scrollLeft>0;E!==Y.value&&(Y.value=E);let j=I.scrollWidth-I.scrollLeft>I.offsetWidth;j!==R.value&&(R.value=j)},50),W=I=>{Z()},ee=()=>{const I=C.value;I&&(Z(),I.addEventListener("scroll",W))},q=()=>{const I=C.value;I&&I.removeEventListener("scroll",W)},H=I=>{if(I==="left"&&Y.value!==!0||I==="right"&&R.value!==!0)return null;let E=null;return I==="left"?i.leftArrow?E=i.leftArrow():E=(0,t.h)(l):i.rightArrow?E=i.rightArrow():E=(0,t.h)(a),(0,t.h)("view",{class:[`${e}__scroll-arrow`,I],onClick:()=>{U(I)}},[E])};return()=>{const I=[],E=te();if(I.push(E),M()){const j=H("left");j&&I.push(j);const Q=H("right");Q&&I.push(Q)}else if(s.showQuickNavigation){const j=L();I.push(j);const Q=K();I.push(Q)}return(0,t.h)("view",{class:m.value},I)}}}}var{create:Dd,componentName:Id,scope:qd}=J("tabs-bar"),Pd=Dd(Ed(Id,qd,le.MoreH,le.Left,le.Right,!1)),tn=Pd,Ci=Symbol("TabsStatesKey"),Ol={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]}},Md=15,zd=300,Ld=200;function Od(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function mr(e,n=0,o,l,a=Ld){o==="end"?e.style.transition=`transform ${a}ms linear`:e.style.transition="transform 0ms linear",l==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}var Rd=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,n,o,l=1,a){this.onStart=e,this.onMove=n,this.onEnd=o,this.momentumReduceRatio=l,this.isTouch=a??Yn()}open(e){this.el=e;const n=Xn(),o=(l,a,r)=>{const s={delta:l,direction:a,type:r};this.onMove(s)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;n.start(l),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=l=>{if(!this.moving)return;n.move(l);let a=0;if(this.direction==="horizontal"){if(n.isVertical())return;a=n.state.deltaX}else{if(n.isHorizontal())return;a=n.state.deltaY}o(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(n.isVertical()){this.moving=!1;return}l=n.state.deltaX}else{if(n.isHorizontal()){this.moving=!1;return}l=n.state.deltaY}const a=n.state.duration;a<zd&&Math.abs(l)>Md?(l=Od(l,a,this.momentumReduceRatio),o(l,this.direction,"end")):o(l,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Fd(e,n,o,l=1,a){return new Rd(e,n,o,l,a)}function Kd(e,n,o=!1){return{props:{...Ol},emits:["update:modelValue","change"],setup(l,{emit:a,slots:r}){const s=(0,t.shallowRef)([]),i={current:(0,t.ref)(l.modelValue??""),direction:(0,t.ref)(l.direction),tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:g=>{const A={name:g};i.current.value===g&&(A.loaded=!0),s.value.push(A),(0,t.triggerRef)(s)},remove:g=>{const A=s.value.findIndex(B=>B.name===g);A!==-1&&s.value.splice(A,1)},isLoaded:g=>{if(!l.lazy)return!0;const A=s.value.findIndex(B=>B.name===g);return A!==-1?i.current.value?s.value[A].loaded??!1:A===0:!1}};(0,t.provide)(Ci,i);const u=g=>{const A=s.value.findIndex(B=>B.name===g);A!==-1&&(s.value[A].loaded=!0,(0,t.triggerRef)(s))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([g,A])=>{i.current.value!==g&&(i.current.value=g??"",u(g??"")),i.direction.value!==A&&(i.direction.value=A)});const m=(0,t.ref)(null),p=(0,t.ref)(null),c=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),h=(0,t.computed)(()=>{const g={};if(l.width){const A=de(l.width);A&&(g.width=A)}if(l.height){const A=de(l.height);A&&(g.height=A)}return g});let y=!0;const w=(0,t.computed)(()=>{const g={},A=s.value.length;if(A<=0)return g;const B=s.value.findIndex(V=>V.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(g.height=`${A*i.tabHeight.value}px`,B!==-1&&(g.transform=`translate(0, -${B*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(g.width=`${A*i.tabWidth.value}px`,B!==-1&&(g.transform=`translate(-${B*i.tabWidth.value}px, 0)`)),y&&(y=!1,g.transition="transform 0s ease"),g}),S={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},b=g=>{const A=s.value.length,B=s.value.findIndex(V=>V.name===i.current.value);S.moved=0,g.direction==="vertical"?(S.min=-1*(i.tabHeight.value*(A-1)+i.tabHeight.value/4),S.max=i.tabHeight.value/4,S.start=-B*i.tabHeight.value,S.itemDistance=i.tabHeight.value):(S.min=-1*(i.tabWidth.value*(A-1)+i.tabWidth.value/4),S.max=i.tabWidth.value/4,S.start=-B*i.tabWidth.value,S.itemDistance=i.tabWidth.value)},f=g=>{const A=p.value;if(!A)return;let B=S.start+g.delta;if(B>S.max?B=S.max:B<S.min&&(B=S.min),g.type==="move")mr(A,B,"move",g.direction,300);else if(g.type==="end"){let V=Math.floor(Math.abs(B)*1/S.itemDistance);const T=Math.abs(B)%S.itemDistance;S.start>B?T>=S.itemDistance*S.triggerAutoMoveRatio&&(V+=1):T>S.itemDistance-S.itemDistance*S.triggerAutoMoveRatio&&(V+=1),B=-1*V*S.itemDistance,mr(A,B,"end",g.direction,300),S.moved=B;const _=s.value[V].name;i.current.value=_??"",u(_??""),a("update:modelValue",_)}},k=()=>{},d=()=>{if(!m.value)return;const g=qn(m.value);i.tabWidth.value=g.width,i.tabHeight.value=g.height},C=yn(d,120);let N=null,v=null;return(0,t.onMounted)(()=>{m.value&&(d(),window.ResizeObserver&&(v=new window.ResizeObserver(C),v.observe(m.value)),l.draggle&&(N=Fd(b,f,k),N.open(p.value)))}),(0,t.onBeforeUnmount)(()=>{v&&(v.disconnect(),v=null),N&&N.close()}),Be({doLayout(){d()}}),()=>{const g=(0,t.h)("view",{class:`${e}__panes`,style:w.value,ref:p},[r?.default?.()]);return(0,t.h)("view",{class:c.value,style:h.value,ref:m},[g])}}}}var{create:Ud,componentName:Hd,scope:_d}=J("tabs-container"),jd=Ud(Kd(Hd,_d,!1)),nn=jd,Wd={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 Yd(e,n,o){return{props:{...Wd},setup(l,{emit:a,slots:r}){const s=(0,t.inject)(Ci);(0,t.onMounted)(()=>{s.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{s.remove(l.paneKey)});const i=(0,t.computed)(()=>{const m={};return s.direction.value==="vertical"&&s.tabHeight.value>0?m.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(m.width=`${s.tabWidth.value}px`),m}),u=(0,t.computed)(()=>l.loaded!=null?ye(l.loaded):s.isLoaded(l.paneKey));return()=>{let m=[];if(u.value)m=r?.default?.()??[];else if(r.empty)m=r.empty();else{const p={class:`${e}__empty-icon`},c=(0,t.h)(l.emptyIcon??o,p),h=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),y=(0,t.h)("view",{class:`${e}__empty`},[c,h]);m.push(y)}return(0,t.h)("view",{class:`${e}`,style:i.value,prop:l.paneKey},m)}}}}var{create:Xd,componentName:Qd,scope:Gd}=J("tabs-pane"),Zd=Xd(Yd(Qd,Gd,le.Loading)),Qn=Zd,pr=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=un(e,null,this.config)}updateChildren(e,n){n?n.children=un(e,n,this.config):this.nodes=un(e,null,this.config)}getNodeByValue(e){let n;return wi(this.nodes,o=>{if(o.value===e)return n=o,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(a=>a.value===e[a.level]);if(!l)break;n.push(l),o=l.children}return n}isLeaf(e,n){const{leaf:o,children:l}=e,a=Array.isArray(l)&&!!l.length;return o||!a&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:o}=e;return Array.isArray(o)&&!!o.length}},{create:Jd,scope:ef}=J("cascader-pane"),tf=Jd({components:{Loading:le.Loading,Checklist:le.Checklist,TabsBar:tn,TabsContainer:nn,TabsPane:Qn},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:o}=(0,me.useFoxI18n)(ef),l=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),a=(0,t.ref)(0),r=(0,t.ref)(),s=(0,t.ref)(!1),i=(0,t.ref)(e.modelValue),u=(0,t.ref)(new pr([],{})),m=(0,t.ref)([]),p=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),c=(0,t.computed)(()=>s.value==!0||m.value.length==0?[{text:"Loading",value:0}]:m.value.map((d,C)=>({text:d.selectedNode?d.selectedNode.text:o("select"),value:C}))),h=new Map;let y;const w=async()=>{h.clear(),m.value=[],a.value=0,s.value=!1,y=null;let{options:d}=e;l.value.convertConfig&&(d=Td(d,l.value.convertConfig)),u.value=new pr(d,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),p.value&&!u.value.nodes.length&&await b({root:!0,loading:!0,text:"",value:""}),m.value=[{nodes:u.value.nodes,selectedNode:null}],S(!p.value)},S=async(d=!0)=>{const C=i.value;if(C===void 0||!u.value.nodes.length)return;if(C.length===0){a.value=0,m.value=[{nodes:u.value.nodes,selectedNode:null}];return}let N=C;if(p.value&&Array.isArray(C)&&C.length){N=[];let v=u.value.nodes.find(g=>g.value===C[0]);v&&(N=[v.value],s.value=!0,await b(await C.slice(1).reduce(async(g,A)=>{const B=await g;await b(B);const V=B&&B?.children?.find(T=>T.value===A);return V&&N.push(A),Promise.resolve(V)},Promise.resolve(v))),s.value=!1)}N.length&&C===e.modelValue&&u.value.getPathNodesByValue(N).map((v,g)=>{a.value=g,k.handleNode(v,d)})},b=async d=>{if(!d)return;if(!l.value.lazyLoad){d.leaf=!0;return}if(u.value.isLeaf(d,p.value)||u.value.hasChildren(d,p.value))return;d.loading=!0;const C=d.root?null:d;let N=h.get(d);N||(N=new Promise(g=>{l.value.lazyLoad?.(d,g)}),h.set(d,N));const v=await N;Array.isArray(v)&&v.length>0?u.value.updateChildren(v,C):d.leaf=!0,d.loading=!1,h.delete(d)},f=d=>{const C=d.map(N=>N.value);i.value=C,n("change",C,d),n("pathChange",d),n("update:modelValue",C)},k={async handleNode(d,C){const{disabled:N,loading:v}=d;if(!(!C&&N||!m.value[a.value])){if(u.value.isLeaf(d,p.value)){if(d.leaf=!0,m.value[a.value].selectedNode=d,m.value=m.value.slice(0,d.level+1),!C){const g=m.value.map(A=>A.selectedNode);f(g),n("pathChange",g)}return}if(u.value.hasChildren(d,p.value)){const g=d.level+1;m.value[a.value].selectedNode=d,m.value=m.value.slice(0,g),m.value.push({nodes:d.children||[],selectedNode:null}),a.value=g,C||n("pathChange",m.value.map(A=>A.selectedNode));return}y=d,!v&&(await b(d),y===d&&(m.value[a.value].selectedNode=d,k.handleNode(d,C)))}},handleTabChange(d,C){y=null},formatTabTitle(d){return d.selectedNode?d.selectedNode.text:o("select")},isSelected(d,C){return d.selectedNode&&d.selectedNode.value===C.value}};return(0,t.watch)([l,()=>e.options],()=>{w()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,d=>{De(d,i.value)||(i.value=d,S(!p.value))}),(0,t.watch)(()=>e.visible,d=>{d&&Array.isArray(i.value)&&i.value.length>0&&S(),d&&r.value&&setTimeout(()=>{r.value.doLayout()},0)}),{panes:m,panesTitles:c,initLoading:s,tabsCursor:a,tabsContainerRef:r,...k}}}),nf={class:"fox-cascader"},lf={role:"menu",class:"fox-cascader__pane"},of=["aria-checked","aria-disabled","onClick"],af={class:"fox-cascader__item__title"};function rf(e,n,o,l,a,r){const s=(0,t.resolveComponent)("TabsBar"),i=(0,t.resolveComponent)("Loading"),u=(0,t.resolveComponent)("Checklist"),m=(0,t.resolveComponent)("TabsPane"),p=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",nf,[(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,h)=>((0,t.openBlock)(),(0,t.createBlock)(m,{"pane-key":h,key:h},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",lf,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.nodes,y=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:y.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(c,y),disabled:y.disabled}]),"aria-checked":e.isSelected(c,y),"aria-disabled":y.disabled||void 0,role:"menuitemradio",onClick:w=>e.handleNode(y,!1)},[(0,t.createElementVNode)("view",af,(0,t.toDisplayString)(y.text),1),y.loading?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,of))),128))])]),_:2},1032,["pane-key"]))),128)):((0,t.openBlock)(),(0,t.createBlock)(m,{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 sf=oe(tf,[["render",rf]]),{create:uf}=J("cascader"),cf=uf({components:{CascaderPane:sf,Wrapper:Ad},props:{...Xe,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},poppable:{type:Boolean,default:()=>!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const o=(0,t.ref)(e.modelValue),l=(0,t.computed)({get(){return e.visible},set(s){n("update:visible",s)}}),a=(s,i)=>{o.value=s,l.value=!1,n("change",s,i),n("update:modelValue",s)},r=s=>{n("pathChange",s)};return(0,t.watch)(()=>e.modelValue,s=>{s!==o.value&&(o.value=s)}),{onChange:a,onPathChange:r,innerValue:o,innerVisible:l}}}),df=["innerHTML"];function ff(e,n,o,l,a,r){const s=(0,t.resolveComponent)("CascaderPane"),i=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(i,{poppable:e.poppable,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=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,df)):(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 Gn=oe(cf,[["render",ff]]);function Ct(e,n){return n[e.textKey??"text"]??""}function Nt(e,n){return n[e.valueKey??"value"]}function Ni(e,n){return n[e.childrenKey??"children"]}function rn(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const a=n[l],r=Ct(e,a),s=Nt(e,a);o.texts.push(r),o.values.push(s??"")}return o}function Ai(e,n,o,l,a=[]){if(!o)return;const r=o[l];for(let s=0;s<n.length;s++)if(Ct(e,n[s])===r){const i=Nt(e,n[s])??"",u={[e.textKey]:r,[e.valueKey]:i};a.push(u);const m=Ni(e,n[s]);Array.isArray(m)&&Ai(e,m,o,l+1,a);return}}function Bi(e,n,o,l,a=[]){if(!o)return;const r=o[l];for(let s=0;s<n.length;s++)if(Nt(e,n[s])===r){const i=Ct(e,n[s])??"",u={[e.textKey]:i,[e.valueKey]:r};a.push(u);const m=Ni(e,n[s]);Array.isArray(m)&&Bi(e,m,o,l+1,a);return}}function yl(e,n,o){if(n===o)return!0;if(n.length!==o.length)return!1;for(let l=0;l<n.length;l++)if(Ct(e,n[l])!==Ct(e,o[l])||Nt(e,n[l])!==Nt(e,o[l]))return!1;return!0}var mf=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){const l="cascader";if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,o);const a=Je(this.proxy,l);return a===null?(console.error(`${l} component not found api function`),[]):(Ee(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await a(e,n,o))}};function pf(){return new mf((0,t.getCurrentInstance)().proxy)}var hr={modelValue:{type:[Array,String]},pathNodes:{type:[Array]},title:{type:String,required:!1},placeholder:{type:String,required:!1},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 hf(e,n,o,l,a,r,s=!1){return{props:{...pe,...ve,...hr},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(i,u){const m=xe((0,t.computed)(()=>i.disabled)),p=Ve((0,t.computed)(()=>i.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??u.attrs.name),{toLocaleRefs:h}=(0,me.useFoxI18n)(n),y=h(i,["placeholder"]),w=(0,t.ref)(!1),S=pf(),b=(0,t.ref)([]),f=(0,t.ref)([]),k=(0,t.computed)(()=>{if(Array.isArray(f.value)){if(i.showAllLevels===!1){const U=f.value.length-1;return f.value[U]}return f.value.join(i.separator)}else return f.value}),d=(0,t.ref)([]),C=(0,t.ref)([]);(0,t.watch)([()=>i.modelValue,()=>b.value],async([U,Z])=>{if(c("setValue",U),i.lazy===!0){C.value.length==0&&(d.value=Array.isArray(U)?U:[]);return}if(i.valueType==="item"){let W=U;if(!yl(i,W,C.value)){C.value=W;let ee=rn(i,W);f.value=ee.texts,d.value=ee.values}}else if(i.valueType==="text"){let W=U,ee=[];if(Ai(i,Z,W,0,ee),!yl(i,ee,C.value)){C.value=ee;let q=rn(i,ee);W.value=q.texts,d.value=q.values}}else{let W=[];if(Bi(i,Z,U,0,W),!yl(i,W,C.value)){C.value=W;let ee=rn(i,W);f.value=ee.texts,d.value=ee.values}}}),i.lazy===!0&&(d.value=Array.isArray(i.modelValue)?i.modelValue:[]),(0,t.watch)([()=>i.source,()=>i.params],async([U,Z])=>{i.lazy||U&&(b.value=await S.load(U,Z))},{immediate:!0});const N="fox-input-item",v=(0,t.computed)(()=>({[N]:!0,"is-disabled":m.value,"is-readonly":p.value})),g=Te((0,t.computed)(()=>i.textAlign),"textAlign"),A=(0,t.computed)(()=>{const U={};return g.value&&(U["text-align"]=g.value),U}),B=(0,t.ref)(!1),V=()=>{m.value===!0||p.value===!0||(B.value=!0)},T=U=>{B.value=U},_=(U,Z)=>{let W=Z.map(q=>{if(q==null)return q;let H={...q};return Reflect.deleteProperty(H,"text"),H[i.textKey]=q.text??"",Reflect.deleteProperty(H,"value"),H[i.valueKey]=q.value??"",H});C.value=W;let ee=rn(i,W);f.value=ee.texts,d.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",d.value,W),c("update:modelValue",d.value)),c("update:pathNodes",W)},G=U=>{c("pathChange",U.map(Z=>{if(Z==null)return Z;let W={...Z};return Reflect.deleteProperty(W,"text"),W[i.textKey]=Z.text??"",Reflect.deleteProperty(W,"value"),W[i.valueKey]=Z.value??"",W}))},x=U=>{w.value=!0,c("focus",d.value,U)},$=U=>{setTimeout(()=>{w.value=!1},0),c("blur",d.value,U)},z=(0,t.computed)(()=>({[`${N}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),P=(0,t.computed)(()=>be(i.unit)>0),O=(0,t.computed)(()=>be(i.unit)>0&&!w.value),F=(0,t.computed)(()=>({hidden:!O.value})),D=U=>{C.value=[],f.value=[],d.value=[],c("update:modelValue",[]),c("change",[],U),c("clear",[]),c("update:pathNodes",[])},X=(0,t.computed)(()=>i.clearable&&!m.value&&!p.value),te=(0,t.computed)(()=>{let U=d.value&&d.value.length>0;return i.clearable&&U&&w.value}),L=U=>{te.value?D(U):V()},K=(0,t.computed)(()=>te.value&&X.value?l:a),M=(0,t.computed)(()=>({action:!0}));let Y=null;const R=()=>typeof Y=="function"?Y:typeof i.lazyLoad=="function"?i.lazyLoad:(Y=async(U,Z)=>{const W=[],ee=[];let q=0;if(!U.root){let H=U;for(;H;){const I=Ct(i,H),E=Nt(i,H);ee.splice(0,0,I),W.splice(0,0,E),H=H._parent}q=W.length}Z(await S.load(i.source,{...U,level:q,pathLabels:ee,pathValues:W},!0))},Y);return()=>{const U={class:v.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:k.value,onClick:V,onFocus:x,onBlur:$};s&&(U.disabled=!0);const Z=[],W=(0,t.h)("input",U);Z.push(W);const ee=[],q=(0,t.h)(K.value,{class:["action-icon"]}),H=(0,t.h)("view",{class:M.value,onClick:L},{default:()=>[q]});if(ee.push(H),P.value){const ie=(0,t.h)("view",{class:F.value},[i.unit]);ee.push(ie)}const I=(0,t.h)("view",{class:z.value},{default:()=>ee});Z.push(I);const E={default:()=>Z};E.label=u.slots.default,E.prepend=u.slots.prepend,E.append=u.slots.append,E.fixedPreTip=u.slots.fixedPreTip,E.fixedTip=u.slots.fixedTip;const j={};j.visible=B.value,j["onUpdate:visible"]=T,j.modelValue=d.value,j.onChange=_,j.onPathChange=G,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=R()):j.options=b.value;const Q={};Q.header=u.slots.header;const ne=(0,t.h)(r,j,Q);E.hide=()=>[ne];const ae={...Ge(i,hr)};return i.prop&&(ae.prop=`${i.prop}_item`),(0,t.h)(o,ae,E)}}}}var{componentName:vf,create:gf,scope:yf}=J("cascader-item"),bf=gf(hf(vf,yf,Ce,le.CircleClose,le.ArrowRight,Gn,!1)),yo=bf,Sf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs=l()})(e,(function(){"use strict";var o=1e3,l=6e4,a=36e5,r="millisecond",s="second",i="minute",u="hour",m="day",p="week",c="month",h="quarter",y="year",w="date",S="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var $=["th","st","nd","rd"],z=x%100;return"["+x+($[(z-20)%10]||$[z]||$[0])+"]"}},d=function(x,$,z){var P=String(x);return!P||P.length>=$?x:""+Array($+1-P.length).join(z)+x},C={s:d,z:function(x){var $=-x.utcOffset(),z=Math.abs($),P=Math.floor(z/60),O=z%60;return($<=0?"+":"-")+d(P,2,"0")+":"+d(O,2,"0")},m:function x($,z){if($.date()<z.date())return-x(z,$);var P=12*(z.year()-$.year())+(z.month()-$.month()),O=$.clone().add(P,c),F=z-O<0,D=$.clone().add(P+(F?-1:1),c);return+(-(P+(z-O)/(F?O-D:D-O))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:c,y,w:p,d:m,D:w,h:u,m:i,s,ms:r,Q:h}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},N="en",v={};v[N]=k;var g="$isDayjsObject",A=function(x){return x instanceof _||!(!x||!x[g])},B=function x($,z,P){var O;if(!$)return N;if(typeof $=="string"){var F=$.toLowerCase();v[F]&&(O=F),z&&(v[F]=z,O=F);var D=$.split("-");if(!O&&D.length>1)return x(D[0])}else{var X=$.name;v[X]=$,O=X}return!P&&O&&(N=O),O||!P&&N},V=function(x,$){if(A(x))return x.clone();var z=typeof $=="object"?$:{};return z.date=x,z.args=arguments,new _(z)},T=C;T.l=B,T.i=A,T.w=function(x,$){return V(x,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var _=(function(){function x(z){this.$L=B(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[g]=!0}var $=x.prototype;return $.parse=function(z){this.$d=(function(P){var O=P.date,F=P.utc;if(O===null)return new Date(NaN);if(T.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var D=O.match(b);if(D){var X=D[2]-1||0,te=(D[7]||"0").substring(0,3);return F?new Date(Date.UTC(D[1],X,D[3]||1,D[4]||0,D[5]||0,D[6]||0,te)):new Date(D[1],X,D[3]||1,D[4]||0,D[5]||0,D[6]||0,te)}}return new Date(O)})(z),this.init()},$.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},$.$utils=function(){return T},$.isValid=function(){return this.$d.toString()!==S},$.isSame=function(z,P){var O=V(z);return this.startOf(P)<=O&&O<=this.endOf(P)},$.isAfter=function(z,P){return V(z)<this.startOf(P)},$.isBefore=function(z,P){return this.endOf(P)<V(z)},$.$g=function(z,P,O){return T.u(z)?this[P]:this.set(O,z)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(z,P){var O=this,F=!!T.u(P)||P,D=T.p(z),X=function(Z,W){var ee=T.w(O.$u?Date.UTC(O.$y,W,Z):new Date(O.$y,W,Z),O);return F?ee:ee.endOf(m)},te=function(Z,W){return T.w(O.toDate()[Z].apply(O.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(W)),O)},L=this.$W,K=this.$M,M=this.$D,Y="set"+(this.$u?"UTC":"");switch(D){case y:return F?X(1,0):X(31,11);case c:return F?X(1,K):X(0,K+1);case p:var R=this.$locale().weekStart||0,U=(L<R?L+7:L)-R;return X(F?M-U:M+(6-U),K);case m: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()}},$.endOf=function(z){return this.startOf(z,!1)},$.$set=function(z,P){var O,F=T.p(z),D="set"+(this.$u?"UTC":""),X=(O={},O[m]=D+"Date",O[w]=D+"Date",O[c]=D+"Month",O[y]=D+"FullYear",O[u]=D+"Hours",O[i]=D+"Minutes",O[s]=D+"Seconds",O[r]=D+"Milliseconds",O)[F],te=F===m?this.$D+(P-this.$W):P;if(F===c||F===y){var L=this.clone().set(w,1);L.$d[X](te),L.init(),this.$d=L.set(w,Math.min(this.$D,L.daysInMonth())).$d}else X&&this.$d[X](te);return this.init(),this},$.set=function(z,P){return this.clone().$set(z,P)},$.get=function(z){return this[T.p(z)]()},$.add=function(z,P){var O,F=this;z=Number(z);var D=T.p(P),X=function(K){var M=V(F);return T.w(M.date(M.date()+Math.round(K*z)),F)};if(D===c)return this.set(c,this.$M+z);if(D===y)return this.set(y,this.$y+z);if(D===m)return X(1);if(D===p)return X(7);var te=(O={},O[i]=l,O[u]=a,O[s]=o,O)[D]||1,L=this.$d.getTime()+z*te;return T.w(L,this)},$.subtract=function(z,P){return this.add(-1*z,P)},$.format=function(z){var P=this,O=this.$locale();if(!this.isValid())return O.invalidDate||S;var F=z||"YYYY-MM-DDTHH:mm:ssZ",D=T.z(this),X=this.$H,te=this.$m,L=this.$M,K=O.weekdays,M=O.months,Y=O.meridiem,R=function(W,ee,q,H){return W&&(W[ee]||W(P,F))||q[ee].slice(0,H)},U=function(W){return T.s(X%12||12,W,"0")},Z=Y||function(W,ee,q){var H=W<12?"AM":"PM";return q?H.toLowerCase():H};return F.replace(f,(function(W,ee){return ee||(function(q){switch(q){case"YY":return String(P.$y).slice(-2);case"YYYY":return T.s(P.$y,4,"0");case"M":return L+1;case"MM":return T.s(L+1,2,"0");case"MMM":return R(O.monthsShort,L,M,3);case"MMMM":return R(M,L);case"D":return P.$D;case"DD":return T.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return R(O.weekdaysMin,P.$W,K,2);case"ddd":return R(O.weekdaysShort,P.$W,K,3);case"dddd":return K[P.$W];case"H":return String(X);case"HH":return T.s(X,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return Z(X,te,!0);case"A":return Z(X,te,!1);case"m":return String(te);case"mm":return T.s(te,2,"0");case"s":return String(P.$s);case"ss":return T.s(P.$s,2,"0");case"SSS":return T.s(P.$ms,3,"0");case"Z":return D}return null})(W)||D.replace(":","")}))},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(z,P,O){var F,D=this,X=T.p(P),te=V(z),L=(te.utcOffset()-this.utcOffset())*l,K=this-te,M=function(){return T.m(D,te)};switch(X){case y:F=M()/12;break;case c:F=M();break;case h:F=M()/3;break;case p:F=(K-L)/6048e5;break;case m:F=(K-L)/864e5;break;case u:F=K/a;break;case i:F=K/l;break;case s:F=K/o;break;default:F=K}return O?F:T.a(F)},$.daysInMonth=function(){return this.endOf(c).$D},$.$locale=function(){return v[this.$L]},$.locale=function(z,P){if(!z)return this.$L;var O=this.clone(),F=B(z,P,!0);return F&&(O.$L=F),O},$.clone=function(){return T.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},x})(),G=_.prototype;return V.prototype=G,[["$ms",r],["$s",s],["$m",i],["$H",u],["$W",m],["$M",c],["$y",y],["$D",w]].forEach((function(x){G[x[1]]=function($){return this.$g($,x[0],x[1])}})),V.extend=function(x,$){return x.$i||(x($,_,V),x.$i=!0),V},V.locale=B,V.isDayjs=A,V.unix=function(x){return V(1e3*x)},V.en=v[N],V.Ls=v,V.p={},V}))})),kf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,r=/\d\d/,s=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},m=function(b){return(b=+b)+(b>68?1900:2e3)},p=function(b){return function(f){this[b]=+f}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=(function(f){if(!f||f==="Z")return 0;var k=f.match(/([+-]|\d\d)/g),d=60*k[1]+(+k[2]||0);return d===0?0:k[0]==="+"?-d:d})(b)}],h=function(b){var f=u[b];return f&&(f.indexOf?f:f.s.concat(f.f))},y=function(b,f){var k,d=u.meridiem;if(d){for(var C=1;C<=24;C+=1)if(b.indexOf(d(C,0,f))>-1){k=C>12;break}}else k=b===(f?"pm":"PM");return k},w={A:[i,function(b){this.afternoon=y(b,!1)}],a:[i,function(b){this.afternoon=y(b,!0)}],Q:[a,function(b){this.month=3*(b-1)+1}],S:[a,function(b){this.milliseconds=100*+b}],SS:[r,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],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(b){var f=u.ordinal;if(this.day=b.match(/\d+/)[0],f)for(var k=1;k<=31;k+=1)f(k).replace(/\[|\]/g,"")===b&&(this.day=k)}],w:[s,p("week")],ww:[r,p("week")],M:[s,p("month")],MM:[r,p("month")],MMM:[i,function(b){var f=h("months"),k=(h("monthsShort")||f.map((function(d){return d.slice(0,3)}))).indexOf(b)+1;if(k<1)throw new Error;this.month=k%12||k}],MMMM:[i,function(b){var f=h("months").indexOf(b)+1;if(f<1)throw new Error;this.month=f%12||f}],Y:[/[+-]?\d+/,p("year")],YY:[r,function(b){this.year=m(b)}],YYYY:[/\d{4}/,p("year")],Z:c,ZZ:c};function S(b){for(var f=b,k=u&&u.formats,d=(b=f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(V,T,_){var G=_&&_.toUpperCase();return T||k[_]||o[_]||k[G].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,$,z){return $||z.slice(1)}))}))).match(l),C=d.length,N=0;N<C;N+=1){var v=d[N],g=w[v],A=g&&g[0],B=g&&g[1];d[N]=B?{regex:A,parser:B}:v.replace(/^\[|\]$/g,"")}return function(V){for(var T={},_=0,G=0;_<C;_+=1){var x=d[_];if(typeof x=="string")G+=x.length;else{var $=x.regex,z=x.parser,P=V.slice(G),O=$.exec(P)[0];z.call(T,O),V=V.replace(O,"")}}return(function(F){var D=F.afternoon;if(D!==void 0){var X=F.hours;D?X<12&&(F.hours+=12):X===12&&(F.hours=0),delete F.afternoon}})(T),T}}return function(b,f,k){k.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(m=b.parseTwoDigitYear);var d=f.prototype,C=d.parse;d.parse=function(N){var v=N.date,g=N.utc,A=N.args;this.$u=g;var B=A[1];if(typeof B=="string"){var V=A[2]===!0,T=A[3]===!0,_=V||T,G=A[2];T&&(G=A[2]),u=this.$locale(),!V&&G&&(u=k.Ls[G]),this.$d=(function(P,O,F,D){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*P);var X=S(O)(P),te=X.year,L=X.month,K=X.day,M=X.hours,Y=X.minutes,R=X.seconds,U=X.milliseconds,Z=X.zone,W=X.week,ee=new Date,q=K||(te||L?1:ee.getDate()),H=te||ee.getFullYear(),I=0;te&&!L||(I=L>0?L-1:ee.getMonth());var E,j=M||0,Q=Y||0,ne=R||0,ae=U||0;return Z?new Date(Date.UTC(H,I,q,j,Q,ne,ae+60*Z.offset*1e3)):F?new Date(Date.UTC(H,I,q,j,Q,ne,ae)):(E=new Date(H,I,q,j,Q,ne,ae),W&&(E=D(E).week(W).toDate()),E)}catch{return new Date("")}})(v,B,g,k),this.init(),G&&G!==!0&&(this.$L=this.locale(G).$L),_&&v!=this.format(B)&&(this.$d=new Date("")),u={}}else if(B instanceof Array)for(var x=B.length,$=1;$<=x;$+=1){A[1]=B[$-1];var z=k.apply(this,A);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}$===x&&(this.$d=new Date(""))}else C.call(this,N)}}}))})),wf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(o,l){var a=l.prototype,r=a.format;a.format=function(s){var i=this,u=this.$locale();if(!this.isValid())return r.bind(this)(s);var m=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 m.s(i.week(),c==="w"?1:2,"0");case"W":case"WW":return m.s(i.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return m.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)}}}))})),Cf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(o,l,a){var r=l.prototype,s=function(c){return c&&(c.indexOf?c:c.s)},i=function(c,h,y,w,S){var b=c.name?c:c.$locale(),f=s(b[h]),k=s(b[y]),d=f||k.map((function(N){return N.slice(0,w)}));if(!S)return d;var C=b.weekStart;return d.map((function(N,v){return d[(v+(C||0))%7]}))},u=function(){return a.Ls[a.locale()]},m=function(c,h){return c.formats[h]||(function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,S,b){return S||b.slice(1)}))})(c.formats[h.toUpperCase()])},p=function(){var c=this;return{months:function(h){return h?h.format("MMMM"):i(c,"months")},monthsShort:function(h){return h?h.format("MMM"):i(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(c,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(c,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return m(c.$locale(),h)},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(h){return m(c,h)},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)}}}))})),Nf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var o="week",l="year";return function(a,r,s){var i=r.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var m=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=s(this).startOf(l).add(1,l).date(m),c=s(this).endOf(o);if(p.isBefore(c))return 1}var h=s(this).startOf(l).date(m).startOf(o).subtract(1,"millisecond"),y=this.diff(h,o,!0);return y<0?s(this).startOf("week").week():Math.ceil(y)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}}))})),Af=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(o,l){l.prototype.weekYear=function(){var a=this.month(),r=this.week(),s=this.year();return r===1&&a===11?s+1:a===0&&r>=52?s-1:s}}}))})),Bf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(o,l,a){l.prototype.dayOfYear=function(r){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}}))})),Tf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}}))})),Vf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}}))})),Re=_e(Sf(),1),xf=_e(kf(),1),$f=_e(wf(),1),Ef=_e(Cf(),1),Df=_e(Nf(),1),If=_e(Af(),1),qf=_e(Bf(),1),Pf=_e(Tf(),1),Mf=_e(Vf(),1);Re.default.extend(Ef.default);Re.default.extend($f.default);Re.default.extend(xf.default);Re.default.extend(Df.default);Re.default.extend(If.default);Re.default.extend(qf.default);Re.default.extend(Pf.default);Re.default.extend(Mf.default);var gt={format(e,n="YYYY-MM-DD"){return(0,Re.default)(e).format(n)},parser(e,n){return(0,Re.default)(e,n).toDate()},getDay(e,n,o){let l=n??new Date;const a=e*(1e3*60*60*24);return l=new Date(l.getTime()+a),o=o??"YYYY-MM-DD",this.format(l,o)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){let l=new Date(e+"/"+n+"/"+o).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)},compare(e,n,o){const l=typeof e=="string"?this.parser(e,o):e,a=typeof n=="string"?this.parser(n,o):n,r=l.getTime(),s=a.getTime();return r==s?0:r>s?1:-1},between(e,n,o,l){let a;l==="year"?a=new Date(new Date(n).setFullYear(n.getFullYear()+o)):l==="month"?a=new Date(new Date(n).setMonth(n.getMonth()+o)):a=new Date(new Date(n).setDate(n.getDate()+o));const r=e.getTime(),s=a.getTime(),i=n.getTime();return s>i?r>=i&&r<=s:r>=s&&r<=i},inScope4Day(e,n,o){return this.between(e,n,o,"day")},inScope4Month(e,n,o){return this.between(e,n,o,"month")},inScope4Year(e,n,o){return this.between(e,n,o,"year")}},vr=new Date().getFullYear(),bo={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},Cn=(e,n,o)=>{let l;if(Ue(n)?l=n:typeof n=="string"&&be(n)>0?l=gt.parser(n,o):l=new Date,l.toString()==="Invalid Date")return null;let a=Math.max(l.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Rl=(e,n,o)=>{Ue(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),gt.format(new Date(l),o)},Fl={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},isShowChinese:{type:Boolean,default:()=>!0},minuteStep:{type:Number,default:()=>1},minDate:{type:Date,default:()=>new Date(vr-10,0,1),validator:Ue},maxDate:{type:Date,default:()=>new Date(vr+10,11,31),validator:Ue},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:zf,scope:Lf}=J("date-picker"),Of=zf({components:{Picker:en},props:{...Fl},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=(0,me.useFoxI18n)(Lf),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds"),today:o("today"),fullWeekdays:JSON.parse(o("fullWeekdays"))},a=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,d=>{a.value=d});function r(d,C){return new Date(d,C,0).getDate()}const s=(d,C)=>{const N=e[`${d}Date`],v=N.getFullYear();let g=1,A=1,B=0,V=0;d==="max"&&(g=12,A=r(C.getFullYear(),C.getMonth()+1),B=23,V=59);const T=V;return C.getFullYear()===v&&(g=N.getMonth()+1,C.getMonth()+1===g&&(A=N.getDate(),C.getDate()===A&&(B=N.getHours(),C.getHours()===B&&(V=N.getMinutes())))),{[`${d}Year`]:v,[`${d}Month`]:g,[`${d}Date`]:A,[`${d}Hour`]:B,[`${d}Minute`]:V,[`${d}Seconds`]:T}},i=(0,t.computed)(()=>{if(!h.value)return[];const{maxYear:d,maxDate:C,maxMonth:N,maxHour:v,maxMinute:g,maxSeconds:A}=s("max",h.value),{minYear:B,minDate:V,minMonth:T,minHour:_,minMinute:G,minSeconds:x}=s("min",h.value);let $=[{type:"year",range:[B,d]},{type:"month",range:[T,N]},{type:"day",range:[V,C]},{type:"hour",range:[_,v]},{type:"minute",range:[G,g]},{type:"seconds",range:[x,A]}];switch(e.type){case"date":$=$.slice(0,3);break;case"datetime":$=$.slice(0,5);break;case"time":$=$.slice(3,6);break;case"year-month":$=$.slice(0,2);break;case"month-day":$=$.slice(1,3);break;case"datehour":$=$.slice(0,4);break;case"hour-minute":$=$.slice(3,5);break}return $}),u=(d,C,N,v,g)=>{const A=[];for(;d<=C;){let B=!0;if(typeof e.itemFilter=="function"){const V={text:`${d}`,value:d,type:N,currentYearMonth:v};B=e.itemFilter(V)}if(B)if(typeof e.itemFormatter=="function"){const V={text:`${d}`,value:d,type:N,currentYearMonth:v};e.itemFormatter(V),A.push({text:V.text,value:V.value})}else if(e.isShowChinese){let V=`${d}${l[N]}`;if(N==="day"){if(v[0]===g[0]&&v[1]===g[1]&&d===g[2])V=l.today;else{const T=new Date(v[0],v[1],d).getDay();V=`${V} ${l.fullWeekdays[T]}`}A.push({text:V,value:d})}else A.push({text:d+l[N],value:d})}else A.push({text:`${d}`,value:d});N==="minute"?d+=e.minuteStep:d++}return A},m=(0,t.computed)(()=>{const d=new Date,C=[d.getFullYear(),d.getMonth(),d.getDate()],N=[];h.value&&(N[0]=h.value.getFullYear(),N[1]=h.value.getMonth());let v=[];return i.value.forEach(g=>{let A=u(g.range[0],g.range[1],g.type,N,C);A&&v.push(A)}),v}),p=(d,C)=>d==="year"?C.getFullYear():d==="month"?C.getMonth()+1:d==="day"?C.getDate():d==="hour"?C.getHours():d==="minute"?C.getMinutes():d==="seconds"?C.getSeconds():0,c=(0,t.ref)(),h=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,d=>{let C;if(typeof d=="string"?d.length==0||d==="Invalid Date"?C=new Date:e.valueFormat?C=Cn(e,e.modelValue,e.valueFormat):C=Cn(e,d,bo[e.type]):Ue(d)?C=d:C=new Date,!!C&&(!h.value||C.getTime()!==h.value.getTime())){h.value=C;let N=[];i.value.forEach(v=>{let g=p(v.type,C);N.push(g)}),c.value=N}},{immediate:!0});const y=d=>{if(!d||d.length===0){h.value=new Date;let C=[];i.value.forEach(N=>{let v=p(N.type,h.value);C.push(v)}),c.value=C;return}if(e.type==="date"){const C=d[0],N=d[1]-1,v=Math.min(d[2],r(C,N+1));v!==d[2]&&(d[2]=v),h.value=new Date(C,N,v)}else if(e.type==="datetime"){const C=d[0],N=d[1]-1,v=Math.min(d[2],r(C,N+1)),g=d[3],A=d[4];v!==d[2]&&(d[2]=v),h.value=new Date(C,N,v,g,A)}else if(e.type==="time"){const C=d[0],N=d[1],v=d[2],g=h.value??new Date;h.value=new Date(g.getFullYear(),g.getMonth(),g.getDate(),C,N,v)}else if(e.type==="year-month"){const C=d[0],N=d[1]-1;h.value=new Date(C,N)}else if(e.type==="month-day"){const C=(h.value??new Date).getFullYear(),N=d[0]-1,v=Math.min(d[1],r(C,N+1));v!==d[1]&&(d[1]=v),h.value=new Date(C,N,v)}else if(e.type==="datehour"){const C=d[0],N=d[1]-1,v=Math.min(d[2],r(C,N+1)),g=d[3];v!==d[2]&&(d[2]=v),h.value=new Date(C,N,v,g)}else if(e.type==="hour-minute"){const C=d[0],N=d[1],v=h.value??new Date;h.value=new Date(v.getFullYear(),v.getMonth(),v.getDate(),C,N)}c.value=d};return{columns:m,dateIndexs:c,show:a,onChange:d=>{y(d)},onClose:()=>{n("update:close",!1)},onConfirm:d=>{y(d);const C=h.value??new Date;e.valueFormat?n("update:modelValue",Rl(e,C,e.valueFormat)):n("update:modelValue",C),n("confirm",d)},onClear:()=>{n("clear")},onUpdateVisible:d=>{a.value=d,n("update:visible",d)}}}});function Rf(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"top")]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}var Zn=oe(Of,[["render",Rf]]),Ff={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Kf(e){let n=e.format;return n||(n=bo[e.type??"date"]),n}function Uf(e,n,o,l,a,r,s=!1){return{props:{...pe,...ve,...Fl,...Ff},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,u){const m=xe((0,t.computed)(()=>i.disabled)),p=Ve((0,t.computed)(()=>i.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??u.attrs.name),{toLocaleRefs:h}=(0,me.useFoxI18n)(n),y=h(i,["placeholder"]),w=(0,t.ref)(!1),b=Pe(i,"modelValue",L=>L==null?null:typeof L=="string"?L.length==0?null:i.valueFormat?Cn(i,L,i.valueFormat)??L:Cn(i,L,bo[i.type])??L:Ue(L)?L:null,c),f=(0,t.computed)(()=>{if(!b.value)return"";const L=Kf(i);return Rl(i,b.value,L)}),k="fox-input-item",d=(0,t.computed)(()=>({[k]:!0,"is-disabled":m.value,"is-readonly":p.value})),C=Te((0,t.computed)(()=>i.textAlign),"textAlign"),N=(0,t.computed)(()=>{const L={};return C.value&&(L["text-align"]=C.value),L}),v=(0,t.ref)(!1),g=()=>{v.value=!0},A=()=>{v.value=!1};u.expose({showPicker:g,hidePicker:A});const B=L=>{v.value=L},V=L=>{if(b.value=L,i.valueFormat){let K=Rl(i,L,i.valueFormat);c("update:modelValue",K,{}),c("change",K,{})}else c("update:modelValue",L,{}),c("change",L,{})},T=L=>{let K=L.target.value;w.value=!0,c("focus",K,L)},_=L=>{setTimeout(()=>{w.value=!1},0);let K=L.target.value;i.maxLength&&K.length>Number(i.maxLength)&&(K=K.slice(0,Number(i.maxLength))),c("blur",K,L)},G=(0,t.computed)(()=>({[`${k}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),x=(0,t.computed)(()=>be(i.unit)>0),$=(0,t.computed)(()=>be(i.unit)>0&&!w.value),z=(0,t.computed)(()=>({hidden:!$.value})),P=L=>{b.value="",c("update:modelValue","",L),c("change","",L),c("clear",""),A()},O=(0,t.computed)(()=>i.clearable&&!m.value&&!p.value),F=(0,t.computed)(()=>{let L=be(b.value)>0;return i.clearable&&L&&w.value}),D=L=>{F.value?P(L):g()},X=(0,t.computed)(()=>F.value&&O.value?l:a),te=(0,t.computed)(()=>({action:!0}));return()=>{const L={class:d.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:g,onFocus:T,onBlur:_};s&&(L.disabled=!0);const K=[],M=(0,t.h)("input",L);K.push(M);const Y=[],R=(0,t.h)(X.value,{class:["action-icon"]}),U=(0,t.h)("view",{class:te.value,onClick:D},{default:()=>[R]});if(Y.push(U),x.value){const E=(0,t.h)("view",{class:z.value},[i.unit]);Y.push(E)}const Z=(0,t.h)("view",{class:G.value},{default:()=>Y});K.push(Z);const W={default:()=>K};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,Fl);ee.valueFormat=null,ee.disabled=!1,ee.readonly=m.value||p.value,ee.visible=v.value,ee["onUpdate:visible"]=B,ee.modelValue=b.value,ee["onUpdate:modelValue"]=V,ee.onClear=P;const q={};if(u.slots.top){const E=u.slots.top();q.top=()=>E}if(u.slots.bottom){const E=u.slots.bottom();q.default=()=>E}const H=(0,t.h)(r,ee,q);W.hide=()=>[H];const I={...he(i,ve,pe)};return i.prop&&(I.prop=`${i.prop}_item`),(0,t.h)(o,I,W)}}}}var{create:Hf,componentName:_f,scope:jf}=J("date-item"),Wf=Hf(Uf(_f,jf,Ce,le.CircleClose,le.Date,Zn,!1)),So=Wf,re={format(e,n="YYYY-MM-DD"){return gt.format(e,n)},parser(e,n){return gt.parser(e,n)},isLeapYear:function(e){return gt.isLeapYear(e)},getWhatDay:function(e,n,o){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+o).getDay()]},getMonthPreDay:function(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays:function(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:function(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:function(e){e=e||0;let n=new Date;const o=e*(1e3*60*60*24);return n=new Date(n.getTime()+o),this.date2Str(n)},compareDate:function(e,n){return!(new Date(e.replace("-","/").replace("-","/"))>=new Date(n.replace("-","/").replace("-","/")))},isEqual:function(e,n){return new Date(e).getTime()==new Date(n).getTime()},getMonthWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o));let r=a.getDay();const s=a.getDate();let i=6-r;return l!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=new Date(Number(e),0,1),s=Math.round((a.valueOf()-r.valueOf())/864e5);return Math.ceil((s+(r.getDay()+1-1))/7)},getWeekDate:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=a.getTime();let s=a.getDay();if(l===0){const u=r-s*864e5,m=r+(6-s)*864e5;return[this.date2Str(new Date(u)),this.date2Str(new Date(m))]}else{s=s==0?7:s;const i=1440*60*1e3,u=r-(s-1)*i,m=r+(7-s)*i;return[this.date2Str(new Date(u)),this.date2Str(new Date(m))]}},formatResultDate:function(e){const 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}},{create:Yf,scope:Xf}=J("calendar-pane"),Qf=Yf({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},confirmText:{type:String},startText:{type:String},endText:{type:String},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:o}){const{toLocaleRefs:l,t:a}=(0,me.useFoxI18n)(Xf),r=l(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(a("weekdays")),i=(0,t.ref)([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),u=(0,t.ref)(null),m=(0,t.ref)(null),p=(0,t.ref)(null),c=(0,t.ref)(null),h=(0,t.ref)(0),y=(0,t.computed)(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),w=(0,t.computed)(()=>o.btn),S=(0,t.computed)(()=>o["top-info"]),b=(0,t.computed)(()=>o["bottom-info"]),f=(0,t.reactive)({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),k=R=>R.split("-"),d=R=>re.isEqual(f.currDate[0],R),C=R=>re.isEqual(f.currDate[1],R),N=R=>f.currDate?.length>0?f.currDate?.some(U=>re.isEqual(U,R)):!1,v=(R,U)=>U.curData[0]+"-"+U.curData[1]+"-"+re.getNumTwoBit(+R.day),g=(R,U)=>{const Z=v(R,U),{type:W}=e;return R.type=="curr"?re.isEqual(f.currDate,Z)||(W=="range"||W=="week")&&(d(Z)||C(Z))||W=="multiple"&&N(Z)?`${f.dayPrefix}--active`:f.propStartDate&&re.compareDate(Z,f.propStartDate)||f.propEndDate&&re.compareDate(f.propEndDate,Z)?`${f.dayPrefix}--disabled`:(W=="range"||W=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&re.compareDate(f.currDate[0],Z)&&re.compareDate(Z,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},A=()=>{const{type:R}=e;if(R=="range"&&f.chooseData.length==2||R!="range"){let U=f.chooseData.slice(0);R=="week"&&(U={weekDate:[V(f.chooseData[0]),V(f.chooseData[1])]}),n("choose",U),e.poppable&&n("update")}},B=(R,U,Z=!1)=>{if(g(R,U)!=`${f.dayPrefix}--disabled`){const{type:W}=e;let[ee,q]=U.curData,H=[...U.curData];if(H[2]=re.getNumTwoBit(Number(R.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 I;f.currDate?.forEach((E,j)=>{E==H[3]&&(I=j)}),Z?f.chooseData.push([...H]):I!==void 0?(f.currDate.splice(I,1),f.chooseData.splice(I,1)):(f.currDate.push(H[3]),f.chooseData.push([...H]))}else f.currDate=[H[3]],f.chooseData=[[...H]];else if(W=="range"){let I=Object.values(f.currDate).length;I==2||I==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 I=re.getWeekDate(ee,q,R.day,e.firstDayOfWeek);f.propStartDate&&re.compareDate(I[0],f.propStartDate)&&I.splice(0,1,f.propStartDate),f.propEndDate&&re.compareDate(f.propEndDate,I[1])&&I.splice(1,1,f.propEndDate),f.currDate=I,f.chooseData=[re.formatResultDate(I[0]),re.formatResultDate(I[1])]}else f.currDate=H[3],f.chooseData=[...H];if(!Z){let I=f.chooseData;W=="week"&&(I={weekDate:[V(f.chooseData[0]),V(f.chooseData[1])]}),n("select",I),(e.isAutoBackFill||!e.poppable)&&A()}}},V=R=>{let[U,Z,W]=R;return{date:R,monthWeekNum:re.getMonthWeek(U,Z,W,e.firstDayOfWeek),yearWeekNum:re.getYearWeek(U,Z,W,e.firstDayOfWeek)}},T=R=>{const U=R=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let Z=parseInt(U.curData[0]),W=parseInt(U.curData[1].toString().replace(/^0/,""));switch(R){case"prev":W==1&&(Z-=1),W=W==1?12:--W;break;case"next":W==12&&(Z+=1),W=W==12?1:++W;break}return[Z+"",re.getNumTwoBit(W),re.getMonthDays(String(Z),String(W))+""]},_=(R,U,Z)=>{let{year:W,month:ee}=Z;return U=="prev"&&R>=7&&(R-=7),Array.from(Array(R),(q,H)=>({day:String(H+1),type:U,year:W,month:ee}))},G=(R,U,Z,W)=>{R=R-e.firstDayOfWeek;let{year:ee,month:q}=Z;return U=="prev"&&R>=7&&(R-=7),Array.from(Array(W),(H,I)=>({day:String(I+1),type:U,year:ee,month:q})).slice(W-R)},x=(R,U)=>{const Z=re.getMonthPreDay(+R[0],+R[1]);let W=Number(R[1])-1,ee=Number(R[0]);W<=0&&(W=12,ee+=1);const q=re.getMonthDays(String(R[0]),String(R[1])),H=re.getMonthDays(ee+"",W+""),I={year:R[0],month:R[1]},E={curData:R,title:a("monthTitle",{year:I.year,month:I.month}),monthData:[...G(Z,"prev",{month:String(W),year:String(ee)},H),..._(q,"curr",I)],cssHeight:0,cssScrollHeight:0};E.cssHeight=39+64*(E.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),E.cssScrollHeight=j,U=="next"?(!f.endData||!re.compareDate(`${f.endData[0]}-${f.endData[1]}-${re.getMonthDays(f.endData[0],f.endData[1])}`,`${R[0]}-${R[1]}-${R[2]}`))&&f.monthsData.push(E):!f.startData||!re.compareDate(`${R[0]}-${R[1]}-${R[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(E):f.unLoadPrev=!0},$=()=>{let R=e.startDate?e.startDate:re.getDay(0),U=e.endDate?e.endDate:re.getDay(365);f.propStartDate=R,f.propEndDate=U,f.startData=k(R),f.endData=k(U),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const Z={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-Z.month;W.year-Z.year>0&&(ee=ee+12*(W.year-Z.year)),ee<=0&&(ee=1),x(f.startData,"next");let q=1;do x(T("next"),"next");while(q++<ee);if(f.monthsNum=ee,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(R&&re.compareDate(f.currDate[0],R)&&f.currDate.splice(0,1,R),U&&re.compareDate(U,f.currDate[1])&&f.currDate.splice(1,1,U),f.defaultData=[...k(f.currDate[0]),...k(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let H=[],I={};f.currDate.forEach(E=>{R&&!re.compareDate(E,R)&&U&&!re.compareDate(U,E)&&(Object.hasOwnProperty.call(I,E)||(H.push(E),I[E]=E))}),f.currDate=[...H],f.defaultData=[...k(H[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[H,I,E]=k(f.currDate[0]);f.currDate=re.getWeekDate(H,I,E,e.firstDayOfWeek),R&&re.compareDate(f.currDate[0],R)&&f.currDate.splice(0,1,R),U&&re.compareDate(U,f.currDate[1])&&f.currDate.splice(1,1,U),f.defaultData=[...k(f.currDate[0]),...k(f.currDate[1])]}}else f.currDate&&(R&&re.compareDate(f.currDate,R)?f.currDate=R:U&&!re.compareDate(f.currDate,U)&&(f.currDate=U),f.defaultData=[...k(f.currDate)])};Be({scrollToDate:R=>{re.compareDate(R,f.propStartDate)?R=f.propStartDate:re.compareDate(R,f.propEndDate)||(R=f.propEndDate);let U=k(R);f.monthsData.forEach((Z,W)=>{if(Z.title==a("monthTitle",{year:U[0],month:U[1]})&&u.value){let ee=f.monthsData[W].cssScrollHeight-u.value.scrollTop;if(e.toDateAnimation){let q=0,H=setInterval(()=>{if(q++,u.value){let I=ee/10;u.value.scrollTop=u.value.scrollTop+I}q>=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 R=0,U=0;f.defaultData.length>0&&f.monthsData.forEach((ee,q)=>{ee.title==a("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(R=q),(e.type=="range"||e.type=="week")&&ee.title==a("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(U=q)}),F(f.monthsNum,R),f.currentIndex=R,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),B({day:f.defaultData[5],type:"curr"},f.monthsData[U],!0)):e.type=="week"?B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(ee=>{let q=k(ee),H=f.currentIndex;f.monthsData.forEach((I,E)=>{I.title==a("monthTitle",{year:q[0],month:q[1]})&&(H=E)}),B({day:q[2],type:"curr"},f.monthsData[H],!0)}):B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let Z=f.monthsData[f.monthsData.length-1],W=Z.cssHeight+Z.cssScrollHeight;We(()=>{u?.value&&m?.value&&c?.value&&(h.value=u.value.clientHeight,m.value.style.height=`${W}px`,u.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(W/(f.monthsNum+1))}});const F=(R,U)=>{R>=3?U>0&&U<R?f.defaultRange=[U-1,U+3]:U==0?f.defaultRange=[U,U+4]:U==R&&(f.defaultRange=[U-2,U+2]):f.defaultRange=[0,R+2],f.translateY=f.monthsData[f.defaultRange[0]].cssScrollHeight},D=(R,U)=>(e.type=="range"||e.type=="week")&&R.type=="curr"&&g(R,U)=="fox-calendar__day--active",X=(R,U)=>D(R,U)&&d(v(R,U)),te=(R,U)=>f.currDate.length>=2&&C(v(R,U))?D(R,U):!1,L=()=>{if(f.currDate.length>=2)return re.isEqual(f.currDate[0],f.currDate[1])},K=R=>{const U=`${R.year}-${R.month}-${Number(R.day)<10?"0"+R.day:R.day}`;return re.isEqual(U,re.date2Str(new Date))},M=R=>{if(f.monthsData.length<=1)return;const U=R.target.scrollTop;let Z=Math.floor(U/f.avgHeight);if(Z==0)U>=f.monthsData[Z+1].cssScrollHeight&&(Z+=1);else if(Z>0&&Z<f.monthsNum-1)U>=f.monthsData[Z+1].cssScrollHeight&&(Z+=1),U<f.monthsData[Z].cssScrollHeight&&(Z-=1);else{const W=Math.round(U+h.value);W<f.monthsData[Z].cssScrollHeight+f.monthsData[Z].cssHeight&&U>f.monthsData[Z-1].cssScrollHeight&&(Z-=1),Z+1<=f.monthsNum&&W>=f.monthsData[Z+1].cssScrollHeight+f.monthsData[Z+1].cssHeight&&(Z+=1),Z>=1&&U<f.monthsData[Z-1].cssScrollHeight&&(Z-=1)}f.currentIndex!==Z&&(f.currentIndex=Z,F(f.monthsNum,Z)),f.yearMonthTitle=f.monthsData[Z].title},Y=()=>{f.chooseData.splice(0),f.monthsData.splice(0),$()};return $(),(0,t.watch)(()=>e.defaultValue,R=>{R&&e.poppable&&Y()}),{weeks:i,compConthsData:y,showTopBtn:w,topInfo:S,bottomInfo:b,rangeTip:L,mothsViewScroll:M,getClass:g,isStartTip:X,isEndTip:te,chooseDay:B,isCurrDay:K,confirm:A,months:u,...(0,t.toRefs)(f),...(0,t.toRefs)(e),...r,monthsPanel:m,weeksPanel:p,viewArea:c}}}),Gf={class:"fox-calendar__header"},Zf={key:0,class:"fox-calendar__header-title"},Jf={key:1,class:"fox-calendar__header-slot"},e0={key:2,class:"fox-calendar__header-subtitle"},t0={class:"fox-calendar__weekdays",ref:"weeksPanel"},n0={class:"fox-calendar__panel",ref:"monthsPanel"},l0={class:"fox-calendar__month-title"},o0={class:"fox-calendar__days"},a0=["onClick"],r0={class:"fox-calendar__day-value"},i0={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},s0={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},u0={key:2,class:"fox-calendar__day-tips--curr"},c0={key:4,class:"fox-calendar__day-tip"},d0={key:0,class:"fox-calendar__footer"};function f0(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[(0,t.createElementVNode)("view",Gf,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Zf,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",Jf,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",e0,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",t0,[((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",n0,[(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",l0,(0,t.toDisplayString)(s.title),1),(0,t.createElementVNode)("view",o0,[(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,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:m,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(u,s)]),onClick:p=>e.chooseDay(u,s)},[(0,t.createElementVNode)("view",r0,[(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",i0,[(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",s0,[(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",u0,(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",c0,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,a0))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",d0,[(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 m0=oe(Qf,[["render",f0]]),p0=(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)(ge,Ge({...e},{poppable:!1}),n):n?.default?.()??null}}),h0=p0,v0=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},confirmText:{type:String},startText:{type:String},endText:{type:String},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6}},{create:g0}=J("calendar"),y0=g0({components:{Wrapper:h0,CalendarPane:m0},props:{...cn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o}){const l=(0,t.computed)(()=>o.btn),a=(0,t.computed)(()=>o["top-info"]),r=(0,t.computed)(()=>o.day),s=(0,t.computed)(()=>o["bottom-info"]),i=(0,t.ref)(null),u=S=>{i.value?.scrollToDate(S)},m=()=>{i.value?.initPosition()};(0,t.watch)(()=>e.visible,S=>{S&&(0,t.nextTick)(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Be({scrollToDate:u,initPosition:m});const p=()=>{n("update:visible",!1)},c=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{c()},update:p,close:c,select:S=>{n("select",S)},choose:S=>{c(),n("choose",S)},calendarRef:i,showTopBtn:l,topInfo:a,dayInfo:r,bottomInfo:s}}});function b0(e,n,o,l,a,r){const s=(0,t.resolveComponent)("CalendarPane"),i=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(i,(0,t.mergeProps)({visible:e.visible,position:"bottom","pop-class":"fox-calendar__popup",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,poppable:e.poppable}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},(0,t.createSlots)({_:2},[e.showTopBtn?{name:"btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:(0,t.withCtx)(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 Jn=oe(y0,[["render",b0]]),gr={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},textAlign:{type:String},clearable:{type:Boolean,default:!0}},bl=(e,n)=>{let o;return Ue(e)?o=e:typeof e=="string"&&be(e)>0?o=re.parser(e,n):o=new Date,o},ct=(e,n,o)=>(Ue(n)||(n=new Date),re.format(n,o)),dt=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,re.date2Str(e),re.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())];function S0(e,n,o,l,{CloseIcon:a,MarkIcon:r},s=!1){return{props:{...pe,...ve,...cn,...gr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,u){const m=xe((0,t.computed)(()=>i.disabled)),p=Ve((0,t.computed)(()=>i.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??u.attrs.name),{toLocaleRefs:h}=(0,me.useFoxI18n)(n),y=h(i,["placeholder"]),w=(0,t.ref)(!1),S=(0,t.computed)(()=>i.type==="range"),b=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),f=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},k=(M,Y="one",R="YYYY-MM-DD")=>{if(v0(M)){f();return}if(S.value&&Array.isArray(M)&&M.length==2){let U,Z;typeof M[0]=="string"?(U=bl(M[0],R),Z=bl(M[1],R)):(U=M[0],Z=M[1]);let W=dt(U),ee=dt(Z);(b.startDate===null||b.startDate.getTime()!==U.getTime()||b.endDate?.getTime()!==Z.getTime())&&(b.startDate=U,b.startArray=W,b.endDate=Z,b.endArray=ee)}else{let U;typeof M=="string"?U=bl(M,R):U=M;let Z=dt(U);(b.startDate===null||b.startDate.getTime()!==U.getTime())&&(b.startDate=U,b.startArray=Z)}};k(i.modelValue,i.type,i.valueFormat),(0,t.watch)(()=>i.modelValue,M=>{k(M,i.type,i.valueFormat),c("setValue",M)});const d=(0,t.computed)(()=>{if(b.startDate===null)return"";if(S.value){let M=ct(i,b.startDate,i.format),Y=ct(i,b.endDate,i.format);return`${M} ${i.rangeSeparator} ${Y}`}else{let M=ct(i,b.startDate,i.format);return i.showWeek&&(M=`${M} ${b.startArray[4]}`),M}}),C=(0,t.computed)(()=>b.startDate===null?null:S.value?[re.date2Str(b.startDate),re.date2Str(b.endDate??new Date)]:re.date2Str(b.startDate)),N="fox-input-item",v=(0,t.computed)(()=>({[N]:!0,"is-disabled":m.value,"is-readonly":p.value})),g=Te((0,t.computed)(()=>i.textAlign),"textAlign"),A=(0,t.computed)(()=>{const M={};return g.value&&(M["text-align"]=g.value),M}),B=(0,t.ref)(!1),V=()=>{p.value||m.value||(B.value=!0)},T=M=>{B.value=M},_=M=>{if(M){if(S.value&&Array.isArray(M)){let Y=M[0],R=fe(Y[0]),U=fe(Y[1]),Z=fe(Y[2]),W=new Date(R,U-1,Z),ee=M[1];R=fe(ee[0]),U=fe(ee[1]),Z=fe(ee[2]);let q=new Date(R,U-1,Z);b.startDate=W,b.startArray=dt(W),b.endDate=q,b.endArray=dt(q),i.valueFormat?c("update:modelValue",[ct(i,W,i.valueFormat),ct(i,q,i.valueFormat)],{}):c("update:modelValue",[W,q],{})}else{let Y=M,R=fe(Y[0]),U=fe(Y[1]),Z=fe(Y[2]),W=new Date(R,U-1,Z);b.startDate=W,b.startArray=dt(W),i.valueFormat?c("update:modelValue",ct(i,W,i.valueFormat),{}):c("update:modelValue",W,{})}c("change",M,{})}},G=M=>{let Y=M.target.value;w.value=!0,c("focus",Y,M)},x=M=>{setTimeout(()=>{w.value=!1},0);let Y=M.target.value;i.maxLength&&Y.length>Number(i.maxLength)&&(Y=Y.slice(0,Number(i.maxLength))),c("blur",Y,M)},$=(0,t.computed)(()=>({[`${N}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),z=(0,t.computed)(()=>be(i.unit)>0),P=(0,t.computed)(()=>be(i.unit)>0&&!w.value),O=(0,t.computed)(()=>({hidden:!P.value})),F=M=>{f(),c("update:modelValue",null,M),c("change","",M),c("clear","")},D=(0,t.computed)(()=>i.clearable&&!m.value&&!p.value),X=(0,t.computed)(()=>{let M=be(d.value)>0;return i.clearable&&M&&w.value}),te=M=>{X.value?F(M):V()},L=(0,t.computed)(()=>X.value&&D.value?a:r),K=(0,t.computed)(()=>({action:!0}));return()=>{const M={class:v.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:V,onFocus:G,onBlur:x};s&&(M.disabled=!0);const Y=[],R=(0,t.h)("input",M);Y.push(R);const U=[],Z=(0,t.h)(L.value,{class:["action-icon"]}),W=(0,t.h)("view",{class:K.value,onClick:te},{default:()=>[Z]});if(U.push(W),z.value){const Q=(0,t.h)("view",{class:O.value},[i.unit]);U.push(Q)}const ee=(0,t.h)("view",{class:$.value},{default:()=>U});Y.push(ee);const q={default:()=>Y};q.label=u.slots.default,q.prepend=u.slots.prepend,q.append=u.slots.append,q.fixedPreTip=u.slots.fixedPreTip,q.fixedTip=u.slots.fixedTip;const H=he(i,cn);H.visible=B.value,H["onUpdate:visible"]=T,H["default-value"]=C.value,H.onChoose=_;const I={};if(u.slots.btn){const Q=u.slots.btn();I.btn=()=>Q}u.slots.day&&(I.day=u.slots.day),u.slots.topInfo&&(I.topInfo=u.slots.topInfo),u.slots.bottomInfo&&(I.bottomInfo=u.slots.bottomInfo);const E=(0,t.h)(o,H,I);q.hide=()=>[E];const j={...Ge(i,cn,gr)};return i.prop&&(j.prop=`${i.prop}_item`),(0,t.h)(l,j,q)}}}}var{componentName:k0,create:w0,scope:C0}=J("calendar-item"),N0=w0(S0(k0,C0,Jn,Ce,{CloseIcon:le.CircleClose,MarkIcon:le.Date},!1)),ko=N0,A0={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 B0(e,{CheckNormal:n,Checked:o}){return{props:{...A0},setup(l,{emit:a,slots:r}){const s=(0,t.inject)("parent",null),i=Pn(),u=(0,t.computed)(()=>s.label.value===l.label),m=(0,t.computed)(()=>s.position),p=()=>{const S=[];if(u.value){if(r.checkedIcon)return r.checkedIcon();{const b=se(l.iconSize),f=l.checkedIcon??i.radio.Checked??o;return S.push("fox-radio__icon"),l.disabled&&S.push("is-disabled"),l.readonly&&S.push("is-readonly"),(0,t.h)(f,{width:b,height:b,class:S})}}else{if(r.icon)return r.icon();{const b=se(l.iconSize),f=l.icon??i.radio.CheckNormal??n;return S.push("fox-radio__icon--unchecked"),l.disabled&&S.push("is-disabled"),l.readonly&&S.push("is-readonly"),(0,t.h)(f,{width:b,height:b,class:S})}}},c=()=>{const S=[`${e}__label`];return l.disabled&&S.push("is-disabled"),l.readonly&&S.push("is-readonly"),(0,t.h)("view",{class:S},r.default?.())},h=()=>{const S=[`${e}__button`];return u.value&&S.push(`${e}__button--active`),l.disabled&&S.push("is-disabled"),l.readonly&&S.push("is-readonly"),(0,t.h)("view",{class:S},r.default?.())},y=()=>{u.value||l.disabled||l.readonly||s.updateValue(l.label)},w=m.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${w?`${e}--reverse`:""}`,onClick:y},[l.shape=="button"?h():w?[c(),p()]:[p(),c()]])}}}var{componentName:T0,create:V0}=J("radio"),x0=V0(B0(T0,{CheckNormal:le.CheckNormal,Checked:le.CheckChecked})),el=x0,{componentName:yr,create:$0}=J("radio-group"),E0=$0({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:o}=Vt(),l=a=>o("update:modelValue",a);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:l}),(0,t.watch)(()=>e.modelValue,a=>o("change",a)),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),(0,t.h)("view",{class:`${yr} ${yr}--${e.direction}`,style:a},n.default?.())}}}),tl=E0;function br(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(dn(e,r)===o)return a}else if(l==="item"){if(De(o,r))return a}else if(Ot(e,r)===o)return a}return-1}function dn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ot(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function D0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function I0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var q0=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=Je(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ee(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function P0(){return new q0((0,t.getCurrentInstance)().proxy)}function M0(e){return{text:e,value:e}}var Sr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},z0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},L0={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 O0(e,n,o,l,a){return{props:{...pe,...ve,...Sr,...z0,...L0},emits:["change","update:modelValue","setValue"],setup(r,s){const i=Ve((0,t.computed)(()=>r.readonly)),u=xe((0,t.computed)(()=>r.disabled)),m=Te((0,t.computed)(()=>r.textAlign),"textAlign"),{emitEvent:p}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return u.value}},r.prop??s.attrs.name),c=P0(),h=(0,t.ref)([]);(0,t.watch)([()=>r.source,()=>r.params],async([f,k])=>{if(f){const d=await c.load("radio",f,k);d.length>0?typeof d[0]=="string"?h.value=d.map(C=>M0(C)):h.value=d:h.value=[]}},{immediate:!0});let y=(0,t.ref)(-1);(0,t.watch)([()=>r.modelValue,()=>h.value],async([f,k])=>{y.value=br(r,k,f,r.valueType),p("setValue",f)},{deep:!0});const w=(0,t.computed)(()=>{if(!r.source)return r.modelValue;if(y.value===-1)return null;const f=h.value[y.value];return Ot(r,f)}),S=f=>{let k=null,d=null;if(h.value.length>0){let C=br(r,h.value,f,"value");y.value=C,C>=0&&(d=h.value[C],r.valueType==="text"?k=dn(r,d):r.valueType==="item"?k=d:k=Ot(r,d))}else k=f;p("update:modelValue",k),p("change",k,d)},b=()=>{let f=null,k=null;if(h.value.length>0&&y.value!==-1){let d=h.value[y.value];r.valueType==="text"?f=dn(r,d):r.valueType==="item"?f=d:f=Ot(r,d)}p("update:modelValue",f),p("change",f,k)};if(Be({clear(){y.value!==-1&&(y.value=-1,b())}}),r.source){const f=()=>{const k=[],d=he(r,Sr);return h.value.forEach((C,N)=>{const v=Ot(r,C),g=D0(r,C);let A={...d,label:v,disabled:g};const B=I0(r,C,N);A={...A,...B},u.value&&(A.disabled=!0),i.value&&(A.readonly=!0);const V={};if(s.slots.icon&&(V.icon=s.slots.icon),s.slots.checkedIcon&&(V.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const _=s.slots.text(C);V.default=()=>[_]}else{const _=dn(r,C);V.default=()=>_}let T=(0,t.h)(a,A,V);k.push(T)}),k};return()=>{const k=f(),d=(0,t.h)(l,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:m.value,modelValue:w,"onUpdate:modelValue":S},{default:()=>k}),C={default:()=>d};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,ve,pe)};return r.prop&&(N.prop=`${r.prop}_item`),(0,t.h)(o,N,C)}}else return()=>{const f=s.slots.options?.()??[];return(0,t.h)(l,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:m.value,modelValue:w,"update:modelValue":S},{default:()=>f})}}}}var{componentName:R0,create:F0,scope:K0}=J("radio-item"),U0=F0(O0(R0,K0,Ce,tl,el)),wo=U0,H0=(e,{CheckNormal:n,Checked:o,Indeterminate:l})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(a,{slots:r}){const{emitEvent:s}=Vt(),i=Pn(),u=(0,t.inject)("parent",null),m=(0,t.reactive)({partialSelect:a.indeterminate});(0,t.watch)(()=>a.indeterminate,d=>{m.partialSelect=d});const p=(0,t.computed)(()=>!!u),c=(0,t.computed)(()=>p.value?u.value.value.includes(a.label):!!a.modelValue),h=(0,t.computed)(()=>p.value?u.position:a.textPosition);let y="";const w=(d,C)=>{y="click",s("update:modelValue",d),s("change",d,C)};(0,t.watch)(()=>a.modelValue,d=>{y=="click"?y="":s("change",d)});const S=()=>{const d=[];if(m.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const C=se(a.iconSize),N=a.indeterminateIcon??i.checkbox.Indeterminate??l;return d.push("fox-checkbox__icon--indeterminate"),a.disabled&&d.push("is-disabled"),a.readonly&&d.push("is-readonly"),(0,t.h)(N,{width:C,height:C,class:d})}}else if(c.value){if(r.checkedIcon)return r.checkedIcon();{const C=se(a.iconSize),N=a.checkedIcon??i.checkbox.Checked??o;return d.push("fox-checkbox__icon"),a.disabled&&d.push("is-disabled"),a.readonly&&d.push("is-readonly"),(0,t.h)(N,{width:C,height:C,class:d})}}else{if(r.icon)return r.icon();{const C=se(a.iconSize),N=a.icon??i.checkbox.CheckNormal??n;return d.push("fox-checkbox__icon--unchecked"),a.disabled&&d.push("is-disabled"),a.readonly&&d.push("is-readonly"),(0,t.h)(N,{width:C,height:C,class:d})}}},b=()=>{const d=[`${e}__label`];return a.disabled&&d.push("is-disabled"),a.readonly&&d.push("is-readonly"),(0,t.h)("view",{class:d},r.default?.())},f=()=>{const d=[`${e}__button`];return c.value&&d.push(`${e}__button--active`),a.disabled&&d.push("is-disabled"),a.readonly&&d.push("is-readonly"),(0,t.h)("view",{class:d},r.default?.())},k=d=>{if(!(a.disabled||a.readonly)){if(c.value&&m.partialSelect){m.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:v}=a,g=C.indexOf(v);g>-1?C.splice(g,1):g<=-1&&(C.length<N||!N)&&C.push(v),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} ${h.value==="left"?`${e}--reverse`:""}`,onClick:k},[a.shape=="button"?f():[S(),b()]])}}),{componentName:_0,create:j0}=J("checkbox"),W0=j0(H0(_0,{CheckNormal:le.CheckNormal,Checked:le.Checked,Indeterminate:le.CheckDisabled})),nl=W0,{create:Y0,componentName:kr}=J("checkbox-group"),X0=Y0({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:o}=Vt(),l=(0,t.reactive)({children:[]}),a=m=>{m.proxy&&l.children.push(m.proxy)},r=m=>{m.proxy&&(l.children=l.children.filter(p=>p!==m.proxy))},s=m=>{o("update:modelValue",m),o("change",m)},i=m=>{const p=[];m&&l.children.forEach(c=>{c?.disabled||p.push(c?.label)}),o("update:modelValue",p)},u=()=>{o("update:modelValue",l.children.filter(m=>m?.disabled?!1:!e.modelValue.includes(m.label)).map(m=>m.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,m=>{o("change",m)}),Be({toggleAll:i,toggleReverse:u}),()=>{const m={};return e.textAlign&&(m["text-align"]=e.textAlign),(0,t.h)("view",{class:`${kr} ${kr}--${e.direction}`,style:m},n.default?.())}}}),ll=X0;function wr(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(Kl(e,r)===o)return a}else if(l==="item"){if(De(o,r))return a}else if(fn(e,r)===o)return a}return-1}function Kl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function fn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Q0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function G0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var Z0=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=Je(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ee(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function J0(){return new Z0((0,t.getCurrentInstance)().proxy)}function em(e){return{text:e,value:e}}var tm={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Cr={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},nm={source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]}};function lm(e,n,o,l,a){return{props:{...pe,...ve,...tm,...Cr,...nm},emits:["change","update:modelValue","setValue"],setup(r,s){const i=xe((0,t.computed)(()=>r.disabled)),u=Ve((0,t.computed)(()=>r.readonly)),m=Te((0,t.computed)(()=>r.textAlign),"textAlign"),{emitEvent:p}=Ae({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=J0(),h=(0,t.ref)([]);(0,t.watch)([()=>r.source,()=>r.params],async([f,k])=>{if(f){const d=await c.load("checkbox",f,k);d.length>0?typeof d[0]=="string"?h.value=d.map(C=>em(C)):h.value=d:h.value=[]}},{immediate:!0});const y=(0,t.ref)([]);(0,t.watch)([()=>r.modelValue,()=>h.value],async([f,k])=>{const d=[];Array.isArray(f)&&f.forEach(C=>{let N=wr(r,k,C,r.valueType);N!==-1&&d.push(N)}),!De(d,y.value)&&(y.value=d,p("setValue",d))},{deep:!0});const w=(0,t.computed)(()=>{if(!r.source)return r.modelValue;let f=[];return y.value.forEach(k=>{let d=h.value[k];f.push(fn(r,d))}),f}),S=f=>{let k=[],d=[];if(h.value.length>0){const C=[];Array.isArray(f)&&f.forEach(N=>{let v=wr(r,h.value,N,"value");v!==-1&&C.push(v);const g=h.value[v];d.push(g),r.valueType==="text"?k.push(Kl(r,g)):r.valueType==="item"?k.push(g):k.push(fn(r,g))}),y.value=C}else k=f;p("update:modelValue",k),p("change",k,d)},b=(0,t.ref)();if(Be({toggleAll:f=>{b.value.toggleAll(f)},toggleReverse:()=>{b.value.toggleReverse()}}),r.source){const f=()=>{const k=[],d=he(r,Cr);return h.value.forEach((C,N)=>{const v=fn(r,C),g=Q0(r,C);let A={...d,label:v,disabled:g};const B=G0(r,C,N);A={...A,...B},i.value&&(A.disabled=!0),u.value&&(A.readonly=!0);const V={};if(s.slots.icon&&(V.icon=s.slots.icon),s.slots.checkedIcon&&(V.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(V.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const _=s.slots.text(C);V.default=()=>[_]}else{const _=Kl(r,C);V.default=()=>_}let T=(0,t.h)(a,A,V);k.push(T)}),k};return()=>{const k=f(),d=(0,t.h)(l,{class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:w.value,"onUpdate:modelValue":S},{default:()=>k}),C={default:()=>d};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,ve,pe)};return r.prop&&(N.prop=`${r.prop}_item`),(0,t.h)(o,N,C)}}else return()=>{const f=s.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:m.value,modelValue:w,"onUpdate:modelValue":S},{default:()=>f})}}}}var{componentName:om,create:am,scope:rm}=J("checkbox-item"),im=am(lm(om,rm,Ce,ll,nl)),Co=im,Ul={modelValue:{type:[String,Boolean,Number],default:!1},disabled:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:sm,create:um}=J("switch"),cm=um({components:{Loading1:le.Loading1},props:{...Ul},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const o=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const i=sm;return{[i]:!0,[o.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-base`]:!0,"is-disabled":e.disabled}}),a=(0,t.computed)(()=>({backgroundColor:o.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disabled||e.loading)return;r="click";const u=o.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:l,style:a,isActive:o,onClick:s}}}),dm={class:"fox-switch-button"};function fm(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",dm,[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 ol=oe(cm,[["render",fm]]);function mm(e,n,o,l){return{props:{...pe,...ve,...Ul},emits:["change","update:modelValue","setValue"],setup(a,r){const s=xe((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),m=e,p=Pe(a,"modelValue",null,u),c=h=>{p.value=h,u("update:modelValue",h,{}),u("change",h,{})};return()=>{const h={...he(a,Ul),disabled:s.value||i.value,value:p.value,"onUpdate:modelValue":c},y=[],w=(0,t.h)(l,h);y.push(w);const S={default:()=>y};S.label=r.slots.default,S.fixedPreTip=r.slots.fixedPreTip,S.fixedTip=r.slots.fixedTip;const b={...he(a,ve,pe)};return a.prop&&(b.prop=`${a.prop}_item`),b["content-class"]=m,(0,t.h)(o,b,S)}}}}var{componentName:pm,create:hm,scope:vm}=J("switch-item"),gm=hm(mm(pm,vm,Ce,ol)),No=gm;function ym(e,n,o,l){return{props:{...pe,...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(a,r){const s=xe((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),{toLocaleRefs:m}=(0,me.useFoxI18n)(n),p=m(a,["placeholder"]),c=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,_=>{c.value=_,u("change",_)});const h=(0,t.computed)(()=>({[`${e}`]:!0})),y=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&ue(c.value),"is-disabled":s.value,"is-readonly":i.value})),w=Te((0,t.computed)(()=>a.textAlign),"textAlign"),S=(0,t.computed)(()=>{const _={};return w.value&&(_["text-align"]=w.value),_}),b=(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),k=(0,t.computed)(()=>!ue(a.desc)||r.slots.sub),d=(0,t.computed)(()=>({[`${e}__sub`]:!0})),C=(0,t.computed)(()=>{const _={};return w.value&&(_["text-align"]=w.value),_}),N=()=>{u("focus",c.value)},v=()=>{u("blur",c.value)},g=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),A=(0,t.computed)(()=>be(a.unit)>0),B=_=>{s.value==!0||i.value==!0||u("click")},V=(0,t.computed)(()=>a.icon??o),T=(0,t.computed)(()=>({action:!0}));return()=>{const _=[];if(typeof r.slots.content=="function"){const D=r.slots.content();_.push(D)}else{const D=[];if(b.value){const te={tabIndex:0,class:y.value,style:S.value,onFocus:N,onBlur:v};let L=null;r.slots.main?L=(0,t.h)("view",te,[r.slots.main(f.value)]):L=(0,t.h)("view",te,[f.value]),D.push(L)}if(k.value){const te={tabIndex:0,class:d.value,style:C.value,onFocus:N,onBlur:v};let L=null;r.slots.sub?L=(0,t.h)("view",te,[r.slots.sub(a.desc)]):L=(0,t.h)("view",te,[a.desc]),D.push(L)}const X=(0,t.h)("view",{class:h.value,onClick:B},D);_.push(X)}const G=[],x=se(a.iconSize);let $=r.slots.icon;if(!$){const D={width:x,height:x,class:["action-icon"]};$=(0,t.h)(V.value,D)}const z=(0,t.h)("view",{class:T.value,onClick:B},{default:()=>[$]});if(G.push(z),A.value){const D=(0,t.h)("view",{},[a.unit]);G.push(D)}const P=(0,t.h)("view",{class:g.value},{default:()=>G});_.push(P);const O={default:()=>_};O.label=r.slots.default,O.prepend=r.slots.prepend,O.append=r.slots.append,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const F={...he(a,ve,pe)};return a.prop&&(F.prop=`${a.prop}_item`),(0,t.h)(l,F,O)}}}}var{componentName:bm,create:Sm,scope:km}=J("link-item"),wm=Sm(ym(bm,km,le.ArrowRight,Ce)),Ao=wm,Hl={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:Cm,componentName:Nm}=J("rate"),Am=Cm({props:{...Hl},emits:["update:modelValue","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)([]),a=(0,t.computed)(()=>({[Nm]:!0})),r=y=>{n("update:modelValue",y),n("change",y)},s=(y,w)=>{if(e.disabled||e.readonly)return;let S=0;w===1&&e.modelValue===w||(S=w,e.allowHalf&&y==2&&(S-=.5)),r(S)},i=(y,w,S)=>{let b=0;for(let f=w.value.length-1;f>=0;f--){const k=w.value[f];if(y>k.offsetLeft){S?b=f+(y>k.offsetLeft+k.clientWidth/2?1:.5):b=f+1;break}}return b},u=et(),m={onTouchStart(y){!e.touchable||e.readonly||u.start(y)},onTouchMove(y){e.touchable&&(u.move(y),u.isHorizontal()&&l.value&&(y.preventDefault(),r(i(u.moveX.value,l,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),c=(0,t.computed)(()=>e.customIcon??le.StarFillN);return{classes:a,...m,onClick:s,toPxString:de,renderIcon:(y,w)=>(0,t.h)(y,w),rateRefs:l,refRandomId:p,slots:o,customIcon:c}}}),Bm=["id"],Tm={class:"fox-rate-item__icon--full"},Vm={key:0,class:"fox-rate-item__icon--half"},xm={key:1,class:"fox-rate-item__icon--half"};function $m(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),s=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:s,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+s,style:(0,t.normalizeStyle)(s<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("view",Tm,[((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",Vm,[((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",xm,[((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,Bm))),128))],34)}var al=oe(Am,[["render",$m]]);function Em(e,n,o,l){return{props:{...pe,...ve,...Hl},emits:["change","update:modelValue","setValue"],setup(a,r){const s=xe((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),m=e,p=Pe(a,"modelValue",null,u),c=h=>{p.value=h,u("update:modelValue",h,{}),u("change",h,{})};return()=>{const h={...he(a,Hl),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":c},y=[],w=(0,t.h)(l,h);y.push(w);const S={default:()=>y};if(r.slots.default){const f=r.slots.default();S.label=()=>f}const b=he(a,ve,pe);return a.prop&&(b.prop=`${a.prop}_item`),b["content-class"]=m,(0,t.h)(o,b,S)}}}}var{componentName:Dm,create:Im,scope:qm}=J("rate-item"),Pm=Im(Em(Dm,qm,Ce,al)),Bo=Pm,Mm=/scroll|auto|overlay/i,Ti=window;function zm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function _l(e,n=Ti){let o=e;for(;o&&o!==n&&zm(o);){const{overflowY:l}=window.getComputedStyle(o);if(Mm.test(l))return o;o=o.parentNode}return n}function Vi(e,n=Ti){const o=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(o.value=_l(e.value,n))}),o}var xi=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Lm={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 Om(e,n,o){return{props:{...Lm},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:s}=(0,me.useFoxI18n)(n),i=s(l,["pullText","loadText","noMoreText"]),u=(0,t.ref)(),m=Vi(u),p=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=(0,t.computed)(()=>({[e]:!0})),h=k=>k?k.offsetTop+h(k.offsetParent):0,y=()=>{let k=0,d=0,C="down";if(m.value==window){const N=xi();u.value&&(k=h(u.value)+u.value.offsetHeight-N-window.innerHeight),d=N}else{const{scrollHeight:N,clientHeight:v,scrollTop:g}=m.value;k=N-v-g,d=g}return p.beforeScrollTop>d?C="up":C="down",p.beforeScrollTop=d,a("scroll-change",d),k<=l.threshold&&C=="down"},w=()=>{We(()=>{if(!y()||!l.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,a("update:modelValue",!0),(0,t.nextTick)(()=>a("load-more"))})},S=()=>{m.value&&m.value.addEventListener("scroll",w,l.useCapture)},b=()=>{m.value&&m.value.removeEventListener("scroll",w,l.useCapture)};(0,t.onMounted)(()=>{S(),l.immediate&&w()}),(0,t.onUnmounted)(()=>{b()});const f=(0,t.ref)(!1);return(0,t.onActivated)(()=>{f.value&&(f.value=!1,S())}),(0,t.onDeactivated)(()=>{f.value=!0,b()}),(0,t.watch)(()=>l.modelValue,k=>{k||(p.isInfiniting=!1)}),()=>{const k=(0,t.h)("view",{class:"fox-infinite__container"},[r?.default?.()]),d=[];if(p.isInfiniting){let N=r?.loading?.()??null;if(!N){let g=r?.loadingIcon?.()??null;g||(g=(0,t.h)(o,{class:["fox-infinite__bottom-box__img"]}));const A=(0,t.h)("view",{class:"fox-infinite__bottom-box__text"},[i.loadText.value]);N=[g,A]}const v=(0,t.h)("view",{class:"fox-infinite__bottom-box"},N);d.push(v)}else if(!l.hasMore){let N=r?.finished?.()??null;N||(N=(0,t.h)("view",{class:"fox-infinite__bottom-tips"},[i.noMoreText.value]),d.push(N))}const C=(0,t.h)("view",{class:"fox-infinite__bottom"},d);return(0,t.h)("view",{class:c.value,ref:u},[k,C])}}}}var{componentName:Rm,create:Fm,scope:Km}=J("infinite-loading"),Um=Fm(Om(Rm,Km,le.Loading)),rl=Um,{componentName:Hm,create:_m}=J("button"),jm=_m({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:o}){const{type:l,size:a,shape:r,disabled:s,loading:i,color:u,plain:m,block:p}=(0,t.toRefs)(e);return{handleClick:h=>{!i.value&&!s.value&&n("click",h)},classes:(0,t.computed)(()=>{const h=Hm;return{[h]:!0,[`${h}--${l.value}`]:l.value,[`${h}--${a.value}`]:a.value,[`${h}--${r.value}`]:r.value,[`${h}--plain`]:m.value,[`${h}--block`]:p.value,[`${h}--disabled`]:s.value,[`${h}--loading`]:i.value}}),getStyle:(0,t.computed)(()=>{const h={};return u?.value&&(m.value?(h.color=u.value,h.background="#fff",u.value?.includes("gradient")||(h.borderColor=u.value)):(h.color="#fff",h.background=u.value)),h})}}}),Wm={class:"fox-button__wrap"};function Ym(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Loading");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[(0,t.createElementVNode)("view",Wm,[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 st=oe(jm,[["render",Ym]]),Xm={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"}},Qm=(e,n,o)=>({props:{...Xm},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:a}){const{emitEvent:r}=Vt(),{toLocaleRefs:s}=(0,me.useFoxI18n)(n),i=s(l,["placeholder"]),u=(0,t.reactive)({active:!1}),m=(0,t.computed)(()=>({background:l.background})),p=(0,t.computed)(()=>({background:l.inputBackground})),c=B=>{let V=B.target.value;l.maxLength&&V.length>Number(l.maxLength)&&(V=V.slice(0,Number(l.maxLength))),r("update:modelValue",V,B),r("change",V,B)},h=(0,t.ref)({}),y=B=>{let V=B.target.value;u.active=!0,h.value=l.focusStyle,r("focus",V,B)},w=B=>{setTimeout(()=>{u.active=!1},0);let V=B.target.value;l.maxLength&&V.length>Number(l.maxLength)&&(V=V.slice(0,Number(l.maxLength))),h.value={},r("blur",V,B)},S=B=>{r("update:modelValue","",B),r("change","",B),r("clear","")},b=(0,t.computed)(()=>String(l.modelValue).length>0),f=(0,t.computed)(()=>{const B={};return b.value||(B.display="none"),B}),k=B=>{l.autoblur&&g.value?.blur(),(typeof B.cancelable!="boolean"||B.cancelable)&&B.preventDefault(),r("search",l.modelValue)},d=B=>{r("keyup-input",B)},C=B=>{r("click-input",B)},N=B=>{r("click-left-icon",l.modelValue,B)},v=(0,t.computed)(()=>({textAlign:l.inputAlign})),g=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&g.value.focus()});const A=()=>{const B=[];if(a.leftin){const G=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:N},[a.leftin()]);B.push(G)}const V=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:g,style:v.value,type:l.inputType,maxlengt:l.maxLength,placeholder:i.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:C,onInput:c,onFocus:y,onBlur:w,onkeyup:d}),T=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:k},[V]);B.push(T);const _=[];if(l.clearable){const G=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:S},[(0,t.h)(a?.clear?.()??l.clearIcon??o)]);_.push(G)}if(a.rightin){const G=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[a.rightin()]);_.push(G)}if(_.length>0){const G=(0,t.h)("view",{class:`${e}__input-inner-right`},_);B.push(G)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...p.value,...h.value}},B)};return()=>{const B=[];if(l.label){const T=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);B.push(T)}if(a.leftout){const T=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[a.leftout()]);B.push(T)}const V=A();if(B.push(V),a.rightout){const T=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[a.rightout()]);B.push(T)}return(0,t.h)("view",{class:`${e}`,style:m.value},B)}}}),{componentName:Gm,create:Zm,scope:Jm}=J("searchbar"),ep=Zm(Qm(Gm,Jm,le.CircleClose)),il=ep,mn={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 tp(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(pn(e,r)===o)return a}else if(l==="item"){if(De(o,r))return a}else if($i(e,r)===o)return a}return-1}function pn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Nr(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function $i(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function np(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function lp(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var op=class{proxy;constructor(e){this.proxy=e}async load(e,n,o,l,a,r,s){if(Array.isArray(n)){let u=n;typeof s=="function"&&(u=u.filter(s));let m=(o-1)*l,p=m+l;p>u.length&&(p=u.length);const c=u.slice(m,p);return{totalSize:u.length,page:c}}if(typeof n=="function")return await Reflect.apply(n,null,[o,l,a,r]);const i=Je(this.proxy,e);return i===null?(console.error(`${e} component not found api function`),{totalSize:0,page:[]}):(Ee(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await Reflect.apply(i,null,[n,o,l,a]))}};function ap(){return new op((0,t.getCurrentInstance)().proxy)}function rp(e,n,o,l,a,r,s,i,u,m,p){return{props:{...mn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,{slots:h}){const{emitEvent:y}=Vt(),{toLocaleRefs:w}=(0,me.useFoxI18n)(n),S=w(c,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),b=ap(),f=(0,t.ref)([]),k=(0,t.ref)(0),d=(0,t.ref)(""),C=(0,t.shallowRef)(null),N=(0,t.computed)(()=>{const q={};return c.params&&Object.assign(q,c.params),ue(d.value)||(q[`${c.searchKey}`]=d.value),C.value&&Object.assign(q,C.value),q});let v=!0;const g=async(q,H,I)=>{try{if(B.value===!1)return;let E=null;ue(d.value)||(E=Q=>{const ne=pn(c,Q);if(typeof ne=="string"&&ne.includes(d.value))return!0;const ae=Nr(c,Q);return!!(typeof ae=="string"&&ae.includes(d.value))});const j=await b.load("actionsheet",q,H,I,N.value,v,E??void 0);v=!1,Array.isArray(j)?(f.value=j,k.value=1,B.value=!1):!Array.isArray(j.page)||j.page.length===0?(console.warn("[FoxUI] can not load more data"),B.value=!1):(Reflect.apply([].push,f.value,j.page),k.value=Math.ceil(f.value.length/c.pageSize),(j.totalSize&&f.value.length>=j.totalSize||I<j.page.length)&&(B.value=!1)),A.value=!1}catch(E){console.error("[FoxUI] ActionSheet load more data fail",E),B.value=!0,k.value=0,f.value=[]}setTimeout(()=>{y("loaded-data")},250)},A=(0,t.ref)(!1),B=(0,t.ref)(!0),V=async()=>{if(!c.source){A.value=!1;return}await g(c.source,k.value+1,c.pageSize)};let T=null;(0,t.watch)(d,(q,H)=>{T&&(clearTimeout(T),T=null),ue(q)&&!ue(H)&&(T=setTimeout(()=>{G()},c.searchDelayTriggerClear))});const _=()=>{B.value=!0,k.value=0,f.value=[],c.source&&V()},G=()=>{_()};(0,t.watch)([()=>c.source,()=>c.pageSize,()=>c.params],async([q,H,I])=>{c.source&&_()},{immediate:!0});const x=(0,t.computed)(()=>!c.multiple&&c.isAutoBackFill),$=(0,t.ref)([]);let z=null;const P=(0,t.ref)(c.visible);(0,t.watch)(()=>c.visible,q=>{P.value!==q&&(P.value=q),q?z=[...$.value]:z=null});const O=(q,H)=>{const I=[];return Array.isArray(q)||(q=[q]),q.forEach(E=>{let j=tp(c,H,E,c.valueType);j!==-1&&I.push(j)}),De(I,$.value)?!1:($.value=I,!0)};(0,t.watch)([()=>c.modelValue,()=>f.value],([q,H],[I,E])=>{O(q,H)&&D(F())},{deep:!0});const F=()=>{const q=[],H=[],I=[];for(let ne of $.value){const ae=f.value[ne];H.push(ae);const ie=pn(c,ae);if(I.push(ie),c.valueType==="item")q.push(ae);else if(c.valueType==="text")q.push(ie);else{const Se=$i(c,ae);q.push(Se)}}let E=null,j=null,Q=null;return c.multiple?(E=q,j=I,Q=H):(E=q[0]??null,j=I[0]??null,Q=H[0]??null),{value:E,text:j,item:Q}},D=q=>{y("update:modelValue",q.value),y("update:text",q.text),y("change",q.value,q.item,q.text)},X=()=>{z&&($.value=z)},te=q=>{const H=$.value.indexOf(q);c.multiple?H===-1?$.value.push(q):$.value.splice(H,1):H===-1?$.value=[q]:$.value=[],(x.value||!c.poppable&&!c.showFooter)&&M()},L=q=>{P.value=q,y("update:visible",q)},K=()=>{const q=()=>{X(),L(!1)},H=c.beforeMethod??c.beforeClose;if(typeof H=="function"){const I=H("close");bt(I)?I.then(E=>{E!==!1&&q()}).catch(()=>{q()}):I!==!1&&q()}else q()},M=()=>{const q=F(),H=()=>{D(q),L(!1)},I=c.beforeMethod??c.beforeClose;if(typeof I=="function"){const E=I("confirm",q.value,q.item,q.text);bt(E)?E.then(j=>{j!==!1&&H()}).catch(()=>{H()}):E!==!1&&H()}else H()},Y=()=>{let q=S.title.value??"";return h.title&&(q=h.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[q]),(0,t.h)(u,{class:["fox-actionsheet__header-icon"],onClick:K})])},R=()=>{let q=null;return h.search?q=h.search():q=(0,t.h)(r,{onSearch:_,placeholder:S.seachPlaceholder.value,disabled:c.disabled,modelValue:d.value,"onUpdate:modelValue":H=>{d.value=H}},{leftin:()=>(0,t.h)(m)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[q])},U=(q,H,I,E,j)=>{if(h.optionLabel)return h.optionLabel({text:q,checked:H,disabled:I,subText:E,item:j});const Q=[],ne=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[q]);if(Q.push(ne),E){const ae=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[E]);Q.push(ae)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},Q)},Z=(q,H,I,E)=>h.optionIcon?h.optionIcon({checked:q,disabled:H,iconSize:I,item:E}):q?h.checkedIcon?h.checkedIcon({disabled:H,item:E}):(0,t.h)(c.checkedIcon??i,{width:I,height:I,class:["fox-actionsheet__list-item-icon"]}):h.icon?h.icon({disabled:H,item:E}):(0,t.h)(c.icon??s,{width:I,height:I,class:["fox-actionsheet__list-item-icon"]}),W=()=>{const q=[];for(let H=0;H<f.value.length;H++){const I=f.value[H],E=pn(c,I),j=Nr(c,I),Q=["fox-actionsheet__list-item"],ne={};let ae=np(c,I),ie=c.iconSize?se(c.iconSize):null;const Se=lp(c,I,H);Se&&(ae=ae||Se.disabled,Se.class&&Q.push(Se.class),Se.style&&Object.assign(ne,Se.style)),ae=!!(c.disabled||ae);const ut=$.value.includes(H);ae&&Q.push("is-disabled"),ut&&Q.push("is-checked");const tt={class:Q,style:ne,key:`${H}`,onClick:()=>{ae||te(H)}};let je=[];if(h.option)je.push(h.option({item:I,checked:ut,disabled:ae}));else{const Li=U(E,ut,ae,j,I);je.push(Li);const Oi=Z(ut,ae,ie,I);je.push(Oi),c.textPosition==="right"&&je.reverse()}const dl=(0,t.h)("view",tt,je);q.push(dl)}return q},ee=()=>{let q=[];if(h.buttons)q=h.buttons();else{const H=(0,t.h)(a,{type:"primary",block:"block",onClick:M,disabled:c.disabled},{default:()=>S.confirmText.value});q.push(H)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[q])};return Be({search:async(q=null,H=!0)=>{C.value=q&&(0,t.toRaw)(q),(0,t.triggerRef)(C),H&&(B.value=!0,k.value=0,f.value=[]),(0,t.nextTick)(()=>{V()})},clear:()=>{B.value=!0,k.value=0,f.value=[]},confirm:()=>{M()},cancel:()=>{K()}}),()=>{const q=[];if(c.showHeader){const ae=Y();q.push(ae)}if(c.showSearchbar){const ae=R();q.push(ae)}let H=null;if(h.content)H=h.content();else{const ae=W();H=(0,t.h)(l,{hasMore:B.value,loadText:S.loadText.value,noMoreText:S.noMoreText.value,modelValue:A.value,"onUpdate:modelValue":ie=>{A.value=ie},onLoadMore:V},{default:()=>ae})}const I={};c.optionsHeight&&(I.height=c.optionsHeight);const E={"fox-actionsheet__list":!0};c.poppable||(E["fox-actionsheet__list--inner"]=!0);const j=(0,t.h)("view",{class:E,style:I},[H]);if(q.push(j),c.showFooter&&!x.value){const ae=ee();q.push(ae)}const Q=(0,t.h)("view",{class:"fox-actionsheet"},q);if(!c.poppable)return Q;const ne=["fox-actionsheet__popup"];return c.popClass&&ne.push(c.popClass),(0,t.h)(o,{popClass:ne.join(" "),visible:P.value,closeable:!1,"onUpdate:visible":L,position:c.position,round:"round",onClickOverlay:K,closeOnClickOverlay:c.closeOnClickOverlay},{default:()=>Q})}}}}var{componentName:ip,create:sp,scope:up}=J("actionsheet-pane"),cp=sp(rp(ip,up,ge,rl,st,il,le.CheckNormal,le.Checked,le.Close,le.Search2,!1)),sl=cp,Ar={type:{type:String,default:"text"},placeholder:{type:String},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 dp(e,n,o,l,a,r,s){return{props:{...pe,...ve,...Ar,...mn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,u){const m=xe((0,t.computed)(()=>i.disabled)),p=Ve((0,t.computed)(()=>i.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??u.attrs.name),{toLocaleRefs:h}=(0,me.useFoxI18n)(n),y=h(i,["placeholder"]),w=(0,t.ref)(!1),S=Pe(i,"modelValue",null,c),b=(0,t.ref)(""),f=(0,t.computed)(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),k="fox-input-item",d=(0,t.computed)(()=>({[k]:!0,"is-disabled":m.value,"is-readonly":p.value})),C=Te((0,t.computed)(()=>i.textAlign),"textAlign"),N=(0,t.computed)(()=>{const M={};return C.value&&(M["text-align"]=C.value),M}),v=(0,t.ref)(!1),g=()=>{v.value=!0},A=M=>{v.value=M},B=M=>{S.value=M,c("update:modelValue",M)},V=(M,Y)=>{c("change",M,Y)},T=M=>{let Y=M.target.value;w.value=!0,c("focus",Y,M)},_=M=>{setTimeout(()=>{w.value=!1},0);let Y=M.target.value;i.maxLength&&Y.length>Number(i.maxLength)&&(Y=Y.slice(0,Number(i.maxLength))),c("blur",Y,M)},G=M=>{b.value=M,c("update:text",M)},x=(0,t.computed)(()=>({[`${k}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),$=(0,t.computed)(()=>be(i.unit)>0),z=(0,t.computed)(()=>be(i.unit)>0&&!w.value),P=(0,t.computed)(()=>({hidden:!z.value})),O=M=>{S.value="",c("update:modelValue","",M),c("change","",M),c("clear","")},F=(0,t.computed)(()=>i.clearable&&!m.value&&!p.value),D=(0,t.computed)(()=>be(S.value)>0&&w.value),X=M=>{D.value?O(M):g()},te=(0,t.computed)(()=>D.value&&F.value?l:a),L=(0,t.computed)(()=>({action:!0})),K=(0,t.ref)(null);return Be({search:M=>{K.value&&K.value.search(M)},clear:()=>{K.value&&K.value.clear},confirm:M=>{K.value&&K.value.confirm()},cancel:()=>{K.value&&K.value.cancel()}}),()=>{const M={class:d.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:g,onFocus:T,onBlur:_};s&&(M.disabled=!0);const Y=[],R=(0,t.h)("input",M);Y.push(R);const U=[],Z=(0,t.h)(te.value,{class:["action-icon"]}),W=(0,t.h)("view",{class:L.value,onClick:X},{default:()=>[Z]});if(U.push(W),$.value){const j=(0,t.h)("view",{class:P.value},[i.unit]);U.push(j)}const ee=(0,t.h)("view",{class:x.value},{default:()=>U});Y.push(ee);const q={default:()=>Y};q.label=u.slots.default,q.prepend=u.slots.prepend,q.append=u.slots.append,q.fixedPreTip=u.slots.fixedPreTip,q.fixedTip=u.slots.fixedTip;const H=he(i,mn);H.ref=K,H.class=i.actionsheetProps,H.disabled=m.value||p.value,H.visible=v.value,H["onUpdate:visible"]=A,H.modelValue=S.value,H["onUpdate:modelValue"]=B,H.text=b.value,H["onUpdate:text"]=G,H.onChange=V,H.poppable=!0,H["text-position"]=i.textPosition;const I=(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});q.hide=()=>[I];const E={...Ge(i,Ar,mn)};return i.prop&&(E.prop=`${i.prop}_item`),(0,t.h)(o,E,q)}}}}var{componentName:fp,create:mp,scope:pp}=J("actionsheet-item"),hp=mp(dp(fp,pp,Ce,le.CircleClose,le.ArrowRight,sl)),To=hp,jl={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:vp,create:gp}=J("input-number"),yp=gp({components:{Minus:le.Minus,Plus:le.Plus},props:{...jl},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const y=vp;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),l=y=>Number(y).toFixed(Number(e.decimalPlaces)),a=y=>{const w=y.target;n("update:modelValue",w.valueAsNumber,y)},r=(y,w)=>{let S=l(y);n("update:modelValue",S,w),n("change",S,w)},s=(y=Number(e.modelValue))=>y<Number(e.max)&&!e.disabled,i=(y=Number(e.modelValue))=>y>Number(e.min)&&!e.disabled,u=y=>{n("reduce",y),i()?r(Number(e.modelValue)-Number(e.step),y):n("overlimit",y,"reduce")},m=y=>{n("add",y),s()?r(Number(e.modelValue)+Number(e.step),y):n("overlimit",y,"add")},p=y=>{e.disabled||e.readonly||n("focus",y)},c=y=>{if(e.disabled||e.readonly)return;let w=y.target.valueAsNumber;w<Number(e.min)?w=Number(e.min):w>Number(e.max)&&(w=Number(e.max)),r(w,y),n("blur",y)},h=y=>{let w=Number(y);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 y=h(e.modelValue);y!==Number(e.modelValue)&&r(y,{})}),{classes:o,change:a,blur:c,focus:p,add:m,addAllow:s,reduce:u,reduceAllow:i,toPxString:de}}}),bp=["min","max","disabled","readonly","value"];function Sp(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Minus"),i=(0,t.resolveComponent)("Plus");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:n[0]||(n[0]=(...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,bp),(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 ul=oe(yp,[["render",Sp]]);function kp(e,n,o,l){return{props:{...pe,...ve,...jl},emits:["change","update:modelValue","setValue","add","reduce"],setup(a,r){const s=xe((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),m=(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,{})},h=w=>{u("add",w)},y=w=>{u("reduce",w)};return()=>{const w={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},S=he(a,jl),b=(0,t.h)(l,{...r.attrs,...S,disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":c,onAdd:h,onReduce:y},w),f=[];f.push(b);const k={default:()=>f};k.label=r.slots.default,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const d={...he(a,ve,pe)};return a.prop&&(d.prop=`${a.prop}_item`),d["content-class"]=m.value,(0,t.h)(o,d,k)}}}}var{componentName:wp,create:Cp,scope:Np}=J("input-number-item"),Ap=Cp(kp(wp,Np,Ce,ul)),Vo=Ap;function Bp(e,n,o,l){return{props:{...Ll,...Ol,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 S=[`${i}`];return a.direction==="vertical"?S.push("vertical-tabbar"):S.push("horizontal-tabbar"),S}),m=(0,t.computed)(()=>{const S={};if(a.width){const b=de(a.width);b&&(S.width=b)}if(a.height){const b=de(a.height);b&&(S.height=b)}return S}),p=(0,t.computed)(()=>[`${i}__bar`]),c=(0,t.computed)(()=>[`${i}__container`]),h=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,S=>{h.value!==S&&(h.value=S)});const y=S=>{r("change",S)},w=S=>{h.value!==S&&(h.value=S,r("update:modelValue",S))};return()=>{const{getChildren:S}=so(s.default),b=S(),f=[];if(Array.isArray(a.data))f.push(...a.data);else for(let A=0;A<b.length;A++){const B=b[A].props??{},V={text:B.label??"",value:B["pane-key"]??B.paneKey??""};f.push(V)}const k={};for(let A in s)A!=="default"&&(k[A]=s[A]);const d=he(a,Ll);Object.assign(d,{data:f,class:p.value,modelValue:h.value,direction:a.direction,onChange:y,"onUpdate:modelValue":w});const C=(0,t.h)(o,d,k),N={default:()=>b},v=he(a,Ol);Object.assign(v,{class:c.value,modelValue:h.value,onChange:y,"onUpdate:modelValue":w});const g=(0,t.h)(l,v,N);return(0,t.h)("view",{class:u.value,style:m.value},[C,g])}}}}var{create:Tp,componentName:Vp,scope:xp}=J("tabs-frame"),$p=Tp(Bp(Vp,xp,tn,nn)),xo=$p,Ep={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 Dp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Br(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Tr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Ip(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Sl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Vr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function xr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function kl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var qp=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[o]);const l=Je(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ee(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await Reflect.apply(l,null,[n,o]))}};function Pp(){return new qp((0,t.getCurrentInstance)().proxy)}function Mp(e,n,o,l){return{props:{...Ep},emits:["update:modelValue","change","loaded-data","click"],setup(a,{slots:r,emit:s}){const i=e,u=Pp(),m=(0,t.ref)([]),p=(0,t.computed)(()=>m.value.filter(L=>Ip(a,L)!==!1)),c=(0,t.ref)(-1),h=()=>{const L=a.modelValue,K=p.value.findIndex(M=>Br(a,M)===L);c.value!==K&&(c.value=K,a.scroll&&X(K,!1))};(0,t.watch)([()=>a.modelValue,p],()=>{h()});const y=L=>c.value===L,w=L=>{if(L<0&&L>=p.value.length)return!1;const K=p.value[L],M=(kl(a,K,L)??{}).status??Sl(a,K);return y(L)||M},S=(0,t.computed)(()=>{const L={[i]:!0};return a.mode?L[`is-${a.mode}`]=!0:a.direction&&(L[`is-${a.direction}`]=!0),a.scroll&&(L["is-scroll"]=!0),L}),b=(0,t.computed)(()=>({})),f=(L,K,M,Y,R)=>{const U={[`${i}__step`]:!0};return R&&(U[`${R}`]=!0),U[`${k.value}`]=!0,Y&&(U["is-doit"]=!0),L===c.value?U["is-active"]=!0:K==="done"?U["is-done"]=!0:K==="error"?U["is-error"]=!0:K==="half"?U["is-half"]=!0:M?U["is-disabled"]=!0:U["is-normal"]=!0,U},k=(0,t.computed)(()=>{let L=a.align;if(!L){if(a.mode==="simple")return"start";a.direction==="vertical"?L="start":L="center"}return L}),d=(L,K={})=>{const M={...K};if(k.value==="start"&&L===p.value.length-1)M.flex="0 0 auto";else if(a.step){const Y=typeof a.step=="number"||Tn(a.step)?de(a.step):a.step;a.direction==="vertical"?M.height=Y:M.width=Y}else M.flex="1 1 100%";return M},C=(L,K)=>{let M={};if(K<p.value.length-1){const Y=K+1;w(K)&&w(Y)?a.direction==="vertical"?M.height="100%":M.width="100%":M.opacity="0"}return M},N=L=>p.value.length-1===L,v=(L,K)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&K>c.value||c.value===K)return;const M=c.value,Y=K;c.value=K,a.scroll&&X(K,!1);const R=Br(a,L);s("update:modelValue",R),s("change",R,{fromIndex:M,currentIndex:Y,item:L,items:p.value,clickNavigatePolicy:a.clickNavigatePolicy})},g=(0,t.ref)(!0),A=async(L,K)=>{try{const M=await u.load("stesbar",L,K);Array.isArray(M)&&(m.value=M),g.value=!1}catch(M){console.error("[FoxUI] Load StepsBar Data Fail",M),m.value=[]}setTimeout(()=>{s("loaded-data")},250)};(0,t.watch)([()=>a.data,()=>a.params],async([L,K])=>{L&&A(L,K)},{immediate:!0});const B=(L,K,M,Y,R,U)=>{const Z=[];let W=null;if(!U)if(r.icon)W=r.icon({item:L,index:K,status:Y});else if(Y==="done"){const ee={};a.iconSize&&(ee.width=a.iconSize,ee.height=a.iconSize),W=(0,t.h)(a.icon??o,ee)}else W=(0,t.h)("span",{},[M??`${K+1}`]);return W&&Z.push(W),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{s("click",{item:L,index:K}),!R&&v(L,K)}},Z)},V=(L,K,M)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:C(L,K)})]),T=()=>{let L=null;if(r.markIcon)L=r.markIcon();else{const K={};a.iconSize&&(K.width=a.markIconSize,K.height=a.markIconSize),L=(0,t.h)(a.markIcon??l,K)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[L])},_=(L,K,M,Y,R,U)=>{const Z=[];if(!N(K)){const ee=V(L,K,Y);Z.push(ee)}const W=B(L,K,M,Y,R,U);return Z.push(W),(0,t.h)("view",{class:"fox-steps-bar__head"},Z)},G=(L,K,M,Y)=>{let R=null;return r.main?R=r.main({item:L,index:K,status:M}):R=Dp(a,L),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{s("click",{item:L,index:K}),!Y&&v(L,K)}},[R])},x=(L,K,M)=>{let Y=null;return r.sub?(Y=r.sub({item:L,index:K,status:M}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[Y])):null},$=(L,K)=>{const M=kl(a,L,K)??{},Y=M.status??Sl(a,L);let R=Tr(a,L);M.disabled===!0&&(R=!0),a.disabled===!0&&(R=!0);let U=Vr(a,L);M.doit===!0&&(U=!0);const Z=M.label??xr(a,L),W=[],ee=B(L,K,Z,Y,R,U);ee&&W.push(ee);const q=G(L,K,Y,R);if(q&&W.push(q),!N(K)){const j=V(L,K,Y);j&&W.push(j)}const H=(0,t.h)("view",{class:"fox-steps-bar__head"},W),I=M.class,E=M.style??{};return(0,t.h)("view",{ref:D(K),class:f(K,Y,R,U,I),style:d(K,E)},[H])},z=(L,K)=>{const M=kl(a,L,K)??{},Y=M.status??Sl(a,L);let R=Tr(a,L);M.disabled===!0&&(R=!0),a.disabled===!0&&(R=!0);let U=Vr(a,L);M.doit===!0&&(U=!0);const Z=M.label??xr(a,L),W=[],ee=a.layout;for(let I of ee)if(I==="head"){const E=_(L,K,Z,Y,R,U);W.push(E)}else if(I==="main"){const E=G(L,K,Y,R);W.push(E)}else if(I==="sub"){const E=x(L,K,Y);W.push(E)}else if(I==="mark"){const E=T();W.push(E)}const q=M.class,H=M.style??{};return(0,t.h)("view",{ref:D(K),class:f(K,Y,R,U,q),style:d(K,H)},W)},P=(0,t.ref)(),O=(0,t.ref)([]),F=(L,K)=>{O.value[K]=L},D=L=>K=>{F(K,L)},X=(L,K)=>{const M=P.value,Y=O.value;if(!M||!Y||!Y[L])return;const R=Y[L];let U=0;a.direction==="vertical"?U=R.offsetTop-(M.offsetHeight-R.offsetHeight)/2:U=R.offsetLeft-(M.offsetWidth-R.offsetWidth)/2,te(M,U,K?0:.3,a.direction)},te=(L,K,M,Y)=>{let R=0;const U=Y==="horizontal"?L.scrollLeft:L.scrollTop,Z=M===0?1:Math.round(M*1e3/16);function W(){Y==="horizontal"?L.scrollLeft+=(K-U)/Z:L.scrollTop+=(K-U)/Z,++R<Z&&Fe(W)}W()};return()=>{let L=[];if(a.mode==="simple")for(let M=0;M<p.value.length;M++){const Y=p.value[M],R=$(Y,M);L.push(R)}else for(let M=0;M<p.value.length;M++){const Y=p.value[M],R=z(Y,M);L.push(R)}const K={ref:P,class:S.value,style:b.value};return L.length===0&&typeof r.default=="function"&&(L=r.default()),(0,t.h)("view",K,L)}}}}var{componentName:zp,create:Lp,scope:Op}=J("steps-bar"),Rp=Lp(Mp(zp,Op,le.Checklist,le.ArrowRight)),$o=Rp;function Fp(e){e.stopPropagation()}var Kp=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=Yn()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=Xn(),o=(l,a,r,s)=>{this.updateMove({x:l,y:a})};this.touchstart=l=>{this.moving||(n.start(l),this.startMove({x:n.state.startX,y:n.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(n.move(l),Fp(l),o(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{o(n.state.deltaX,n.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),n.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function Up(e,n){return new Kp(e,n)}var Hp={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]}},_p=(e,n,o,l=!1)=>({props:{...Hp},emits:["click"],setup(a,{slots:r,emit:s}){let i=-1,u=-1;const m=(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"&&!Tn(N)?N:`${N}px`,h=(0,t.computed)(()=>{const N={};return ue(m.top)||(N.top=c(m.top)),ue(m.right)||(N.right=c(m.right)),ue(m.bottom)||(N.bottom=c(m.bottom)),ue(m.left)||(N.left=c(m.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}),y=(0,t.computed)(()=>({[`${e}__icon`]:!0})),w=()=>{s("click")},S=(0,t.ref)(null),b=()=>{m.top=null,m.right=null,m.bottom=null,m.left=null},f={x:0,y:0},C=Up(N=>{if(!S.value)return;const v=S.value;b(),m.left=v.offsetLeft,m.top=v.offsetTop,v.style.left=`${m.left}px`,v.style.top=`${m.top}px`,v.style.right=null,v.style.bottom=null,f.x=m.left,f.y=m.top,m.width=v.offsetWidth,m.height=v.offsetHeight,i=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight},N=>{if(!S.value)return;const v=S.value;b();let g=f.x+N.x;g<0&&(g=0),g>i-m.width&&(g=i-m.width);let A=f.y+N.y;A<0&&(A=0),A>u-m.height&&(A=u-m.height),m.left=g,m.top=A,v.style.left=`${g}px`,v.style.top=`${A}px`});return(0,t.onMounted)(()=>{if(a.draggable&&S.value){const N=[S.value];C.open(N)}}),(0,t.onBeforeUnmount)(()=>{a.draggable&&S.value&&C.close()}),()=>{let N=[];const v=typeof r.default=="function"?r.default():[];if(v&&v.length>0)N=v;else{const g=(0,t.h)(o,{class:y.value});N.push(g)}return(0,t.h)("view",{ref:g=>{S.value=g},class:p.value,style:h.value,onClick:w},N)}}}),{componentName:jp,create:Wp,scope:Yp}=J("floating-button"),Xp=Wp(_p(jp,Yp,le.Uploader,!1)),Eo=Xp,Qp={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function Gp(e,n,o){return{props:{...Qp},emits:["click","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:s}=(0,me.useFoxI18n)(n),i=s(l,["collapseText","expandText"]),u=(0,t.computed)(()=>{const w={[`${e}`]:!0};return l.disabled?w[`${e}--disabled`]=!0:w[`${e}--${l.type}`]=!0,w}),m=Pe(l,"modelValue"),p=(0,t.computed)(()=>m.value?i.expandText.value??"":i.collapseText.value??""),c=(0,t.computed)(()=>({[`${e}__text`]:!0})),h=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!m.value,"is-collapse":m.value})),y=()=>{a("update:modelValue",!m.value)};return()=>{const w=[];if(p.value){const f=(0,t.h)("span",{class:c.value},[p.value]);w.push(f)}const S={class:h.value},b=(r.icon&&r.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(o);if(b){const f=(0,t.h)("view",S,[b]);w.push(f)}return l.textPosition==="right"&&w.reverse(),(0,t.h)("view",{class:u.value,onClick:y},w)}}}}var{componentName:Zp,create:Jp,scope:eh}=J("more-button"),th=Jp(Gp(Zp,eh,le.RectUp)),Do=th,nh={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}},lh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function oh(e,n,o){return{props:{...nh},emits:["update:visible"],setup(l,{attrs:a,slots:r,emit:s}){const{toLocaleRefs:i}=(0,me.useFoxI18n)(n),u=i(l,["confirmText","cancelText"]),m=e,p=(0,t.ref)(l.visible),c=N=>{p.value=N,s("update:visible",N)};(0,t.watch)(()=>l.visible,N=>{p.value!==N&&(p.value=N)});const h=N=>{if(typeof l.unmount=="function")try{l.unmount()}catch(v){console.error(v)}if(typeof l.callback=="function")try{l.callback(N)}catch(v){console.error(v)}},y=()=>{h("confirm")},w=()=>{h("cancel")},S=()=>{l.closeOnClickOverlay!==!1&&h("close")},b=(N,v)=>lh(N)?(v.src=N,(0,t.h)("img",v)):typeof N=="string"?(Array.isArray(v.class)?v.class.push(N):v.class&&typeof v.class=="object"?v[`${N}`]=!0:typeof v.class=="string"?v.class=`${v.class}, ${N}`:v.class=N,(0,t.h)(l.tag,v)):(0,t.h)(N,v),f=()=>{const N=[];if(l.icon){const v={class:[`${m}__header-icon`]},g=b(l.icon,v);N.push(g)}if(l.title){const v=(0,t.h)("view",{class:`${m}__header-title`},[l.title]);N.push(v)}if(l.showClose&&l.closeIcon){const v={class:[`${m}__header-close-icon`],onClick:S},g=b(l.closeIcon,v);N.push(g)}return(0,t.h)("view",{class:[`${m}__header`]},N)},k=(N,v)=>{const g=[];if(v){const A=(0,t.h)("view",{class:`${m}__group-title`},[v]);g.push(A)}if(N){const A=[];Array.isArray(N)||(N=[N]);for(let B of N){const V=(0,t.h)("view",{class:`${m}__group-row`,innerHTML:B});A.push(V)}if(A.length>0){const B=(0,t.h)("view",{class:`${m}__group-rows`},A);g.push(B)}}return g.length===0?null:(0,t.h)("view",{class:`${m}__group`},g)},d=()=>{const N=[];if(typeof l.message=="string")N.push(l.message);else if(Array.isArray(l.message))for(let v of l.message)if(typeof v=="string"){const g=k(v);N.push(g)}else{const g=k(v.content,v.title);N.push(g)}else if(typeof l.message=="function"){const v=l.message();N.push(v)}else{const v=l.message;N.push(v)}return(0,t.h)("view",{class:`${m}__body`},N)},C=()=>{const N=[];if(l.showCancelButton){const v={class:[`${m}__footer-button`],style:{},onClick:w};l.cancelButtonClass&&v.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(v.style,l.cancleButtonStyle);const g=(0,t.h)("button",v,[l.cancelButtonText??u.cancelText.value]);N.push(g)}if(l.showConfirmButton){const v={class:[`${m}__footer-button`],style:{},onClick:y};l.confirmButtonClass&&v.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(v.style,l.confirmButtonStyle);const g=(0,t.h)("button",v,[l.confirmButtonText??u.confirmText.value]);N.push(g)}return N.length===0?null:(0,t.h)("view",{class:`${m}__footer`},N)};return()=>{const N=[],v=f();v&&N.push(v);const g=d();g&&N.push(g);const A=C();A&&N.push(A);const B=(0,t.h)("view",{class:{[`${m}`]:!0,[`${m}--${l.type||"info"}`]:!0}},N),V=[`${m}__popup`];l.popClass&&V.push(l.popClass);const T={};return l.width&&(T.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(T.height=typeof l.height=="number"?`${l.height}px`:l.height),(0,t.h)(o,{popClass:V.join(" "),style:T,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":c,position:l.position,round:"round",onClickOverlay:S,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>B})}}}}var{componentName:ah,create:rh,scope:ih}=J("messagebox"),sh=rh(oh(ah,ih,ge)),uh=sh,ch="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",dh="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",fh="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",mh="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",ph=new Un,hh={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},vh=e=>{let n=document.body,o=e.teleport;o!="body"&&(typeof o=="string"?n=document.querySelector(o):o&&(n=e.teleport));const l=document.createElement("view"),a=`messagebox-${ph.get()}`;l.id=a,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const s=document.querySelector(`#${a}`);s&&s.parentNode?.removeChild(s)};const r=(0,t.createVNode)(uh,e);n.appendChild(l),(0,t.render)(r,l)},ot={show:(e,n,o,l)=>{const a={...hh};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(a,n):(n&&(a.message=n),o&&typeof o=="object"?Object.assign(a,o):(typeof o=="string"&&(a.title=o),l&&typeof l=="object"?Object.assign(a,l):typeof l=="string"&&(a.type=l)));const r=a.type??"info";return a.icon||(r==="success"?a.icon=fh:r==="warning"?a.icon=mh:r==="error"?a.icon=ch:a.icon=dh),e==="alert"?(a.showCancelButton=!1,a.showConfirmButton=!0):e==="confirm"&&(a.showCancelButton=!0,a.showConfirmButton=!0),a.showClose&&!a.closeIcon&&(a.closeIcon=le.Close),new Promise((s,i)=>{const u=a.callback;a.callback=m=>{if(typeof u=="function")try{u(m)}catch(p){console.error(p)}s({action:m})},vh(a)})},alert:(e,n,o)=>ot.show("alert",e,n,o),confirm:(e,n,o)=>ot.show("confirm",e,n,o),install(e){e.config.globalProperties.$alert=ot.alert,e.config.globalProperties.$confirm=ot.confirm}},gh=(e,n,o)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let a=!0,r=!0;for(let s in n)s==="bubbles"?a=!!n[s]:s==="cancelable"?r=!!n[s]:l[s]=n[s];l.initEvent(e,a,r),(o??document).dispatchEvent(l)},yh=new Un,bh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Sh=e=>`${e}-${yh.get()}`,kh=Symbol.for("InnerPageScopeKey"),wh=Symbol.for("PageWrapperKey"),Ch="FoxLeave",Nh="FoxLeaveEnd",Ah={width:{type:[String,Number]},height:{type:[String,Number]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!0},showDelay:{type:Number,default:10},showClose:{type:Boolean,default:!0},closeIcon:{type:Object},showHeader:{type:Boolean,default:!1},popClass:{type:String},popStyle:{type:Object},position:{type:String,default:"center"},mode:{type:String}};function Bh(e,n,o,l){return{props:{...Xe,...Ah},emits:["update:visible"],setup(a,{attrs:r,slots:s,emit:i}){(0,t.provide)(kh,!0);const u={};(0,t.provide)(wh,u);const m=v=>(typeof u.beforeClose=="function"&&u.beforeClose(),!1),p=()=>{m("close")},c=e,h=v=>{y.value=v,i("update:visible",v)},y=(0,t.ref)(!1),w=(v,g)=>bh(v)?(g.src=v,(0,t.h)("img",g)):typeof v=="string"?(Array.isArray(g.class)?g.class.push(v):g.class&&typeof g.class=="object"?g[`${v}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${v}`:g.class=v,(0,t.h)(a.tag,g)):(0,t.h)(v,g),S=()=>{if(!a.showHeader)return null;const v=[];if(s.header){const g=s.header();v.push(g)}else if(a.title){const g=(0,t.h)("view",{class:`${c}__header-title`},[a.title]);v.push(g)}return v.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},v)},b=()=>{if(!a.showClose)return null;const v={class:[`${c}__close-icon`],onClick:p};return w(a.closeIcon??l,v)};let f=null;const k=v=>{gh(Nh,{},f)},d=Sh(e),C=()=>{h(!0)},N=()=>{if(!f)return;const v=f.querySelector(".fox-overlay");v&&(v.classList.add("overlay-fade-leave-active"),v.classList.add("overlay-fade-leave-to"));const g=f.querySelector(".fox-popup");g&&(g.classList.add(`fox-popup-slide-${a.position}-leave-active`),g.classList.add(`fox-popup-slide-${a.position}-leave-to`),g.addEventListener("animationend",k,{once:!0}),g.addEventListener("transitionend",k,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{f=document.querySelector(`.${d}`),f?.addEventListener(Ch,N,{once:!0}),C()}),()=>{const v=[],g=S();g&&v.push(g);const A=b();A&&v.push(A);const B=s.default?s.default():[];Reflect.apply([].push,v,B);const V={[`${c}`]:!0};a.mode&&(V[`${c}--${a.mode}`]=!0);const T=(0,t.h)("view",{class:V},v),_=[`${c}__popup`,d];a.popClass&&_.push(a.popClass),a.position&&_.push(`${c}__popup--${a.position}`);const G={};a.width&&(G.width=typeof a.width=="number"?`${a.width}px`:a.width),a.height&&(G.height=typeof a.height=="number"?`${a.height}px`:a.height);const x=(0,t.h)(o,{...he(a,Xe),popClass:_.join(" "),style:G,visible:y.value,teleportDisable:!0,closeable:!1,position:a.position,closeOnClickOverlay:a.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":h},{default:()=>T});return(0,t.h)("div",{class:[`${c}__root`,d]},[x])}}}}var{componentName:Th,create:Vh,scope:xh}=J("popup-wrapper"),$h=Vh(Bh(Th,xh,ge,le.Close)),Io=$h,Eh={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function Dh(e,n,o,l){return{props:{...Eh},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 m=(0,t.h)(o,{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}`},[m])}}}}var{componentName:Ih,create:qh,scope:Ph}=J("dropdown"),Mh=qh(Dh(Ih,Ph,ge,!1)),qo=Mh;function zh(e,n,o,l,a){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[a]){let u=n;for(let m=0;u&&m<r.length;m++){let p=r[m],c=u.find(h=>h[l]===p);if(!c)break;s.push(c[o])}return s}if(Array.isArray(i))for(let u=0;u<n.length&&u<r.length;u++){let m=n[u],p=r[u];const c=m.find(h=>h[l]===p);if(!c)break;s.push(c[o])}else{let u=n;for(let m=0;u&&m<r.length;m++){let p=r[m],c=u.find(h=>h[l]===p);if(!c)break;s.push(c[o]),u=c[a]}}return s}var Lh=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=Je(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ee(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function Oh(){return new Lh((0,t.getCurrentInstance)().proxy)}var Rh={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 Fh(e,n,o=!1){return{props:{...Rh},setup(l,{attrs:a,slots:r}){const s=Oh(),i=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([m,p])=>{i.value=await s.load(l.sourceType,m,p)},{immediate:!0});const u=(0,t.computed)(()=>{if(!Array.isArray(i.value)||i.value.length===0)return l.emptyText;let m=zh(l.modelValue,i.value,l.textKey,l.valueKey,l.childrenKey);return m.length==0?l.emptyText??"":m.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${m[0]}`:m[0]:m.join(l.separator)});return()=>{const m={...a};if(r.default)return r.default({text:u.value,value:l.modelValue});const p=l.tag??"span";return typeof p=="object"?(0,t.h)(p,m,{default:()=>u.value}):(0,t.h)(p,m,[u.value])}}}}var{componentName:Kh,create:Uh,scope:Hh}=J("mapping"),_h=Uh(Fh(Kh,Hh,!1)),Po=_h;function jh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(o,{slots:l}){return ti(o.name,()=>o.config),Me(o.innerPageScope)||oi(o.innerPageScope),Me(o.abstractPageScope)||ai(o.abstractPageScope),()=>typeof l.default=="function"?l.default():null}}}var{componentName:Wh,create:Yh,scope:Xh}=J("domain-provider"),Qh=Yh(jh(Wh,Xh)),Mo=Qh,Gh={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 Zh(e,n){return{inheritAttrs:!1,props:Gh,emits:["change"],setup(o,{slots:l,emit:a}){if(Qe&&window.IntersectionObserver){const r=new WeakMap;let s=new Map;const i=(h,y)=>{if(p===null){s.set(h,{visible:null,callback:y});return}r.has(h)&&p.unobserve(h),r.set(h,{visible:null,callback:y}),p.observe(h)},u=h=>{if(p===null){s.delete(h);return}r.has(h)&&(r.delete(h),p.unobserve(h))};let m=o.initialVisibleObserverSize;eu({acquire:()=>{if(o.loadPolicy==="always")return!0;const h=m>0;return m--,h},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let p=null;const c=(h,y,w)=>{p=new IntersectionObserver(S=>{if(a("change",S),o.loadPolicy!=="always")for(let b of S){let f=!1;b.intersectionRatio>0&&(f=!0);const k=r.get(b.target);if(k)try{if(o.loadPolicy==="lazy"&&!f&&k.visible!==null)return;k.visible=f,k.callback(f)}catch(d){console.error(d)}}},{root:h,rootMargin:y,threshold:w}),s.forEach((S,b)=>{r.set(b,S),p?.observe(b)}),s.clear()};(0,t.watch)([()=>o.root,()=>o.disabled],([h,y])=>{if(y||!h||p)return;let w=null;typeof h=="string"?w=document.querySelector(h):w=h,w&&c(w,o.rootMargin,o.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:Jh,create:ev,scope:tv}=J("rolling-provider"),nv=ev(Zh(Jh,tv)),zo=nv,{componentName:lv,create:ov}=J("cell"),av=ov({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 o=(0,t.computed)(()=>{const r=lv;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:de(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:o,baseStyle:l}}}),rv={key:0,class:"fox-cell__icon"},iv={key:1,class:"fox-cell__title"},sv={class:"title"},uv={class:"fox-cell__title-desc"};function cv(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Right");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.baseStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",rv,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",iv,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",sv,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",uv,(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 Lo=oe(av,[["render",cv]]),dv={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function fv(e,n){return{props:{...dv},setup(o,{attrs:l,slots:a}){const r=(0,t.computed)(()=>{const s={};return o.color&&(s.color=o.color),o.size&&(s.fontSize=de(o.size)),s});return()=>{const s={style:r.value,class:`${e}-wrap`,...l};return(0,t.h)(o.tag??"li",s,a)}}}}var{componentName:mv,create:pv,scope:hv}=J("icon"),vv=pv(fv(mv,hv)),Oo=vv,{componentName:gv,create:yv}=J("cell-group"),bv=yv({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[gv]:!0}))}}}),Sv={key:1,class:"fox-cell-group__title"},kv={key:3,class:"fox-cell-group__desc"},wv={class:"fox-cell-group__wrap"};function Cv(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Sv,(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",kv,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",wv,[(0,t.renderSlot)(e.$slots,"default")])],2)}var Ro=oe(bv,[["render",Cv]]),{componentName:Nv,create:Av}=J("image"),Bv=Av({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 o=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const y=Nv;return{[y]:!0,[`${y}-round`]:e.round}}),a=(0,t.ref)(null),r=(0,t.ref)(!1),s=(0,t.ref)(null),i=()=>{a.value=new IntersectionObserver(y=>{y.forEach(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 y={};return e.width&&(y.width=de(e.width)),e.height&&(y.height=de(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=de(e.radius)),y}),m=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,y=>{o.isError=!1,o.loading=!0});const p=()=>{o.loading=!1,n("load")},c=()=>{o.isError=!0,o.loading=!1,n("error")},h=y=>{n("click",y)};return{...(0,t.toRefs)(o),imageClick:h,classes:l,styles:m,stylebox:u,error:c,load:p,show:r,imgRef:s}}}),Tv=["src","date-src","alt"],Vv={key:0,class:"fox-img-loading"},xv={key:1,class:"fox-img-error"};function $v(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Image"),i=(0,t.resolveComponent)("ImageError");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.stylebox),onClick:n[2]||(n[2]=(...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,Tv),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",Vv,[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",xv,[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 Fo=oe(Bv,[["render",$v]]),{create:Ev}=J("layout"),Dv=Ev({}),Ko=Dv,{componentName:Iv,create:qv}=J("col"),Pv=qv({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=Iv,o=(0,t.inject)("gutter");return{classes:(0,t.computed)(()=>({[n]:!0,[`${n}-gutter`]:o,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),style:(0,t.computed)(()=>({paddingLeft:o/2+"px",paddingRight:o/2+"px"}))}}});function Mv(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Uo=oe(Pv,[["render",Mv]]),{componentName:zv,create:Lv}=J("row"),Ov=Lv({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=zv;(0,t.provide)("gutter",e.gutter);const o=(l,a)=>l?a?`fox-row-${l}-${a}`:"":`fox-row-${a}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
|
|
2
|
+
${o("",e.type)}
|
|
3
|
+
${o("justify",e.justify)}
|
|
4
|
+
${o("align",e.align)}
|
|
5
|
+
${o("flex",e.flexWrap)}
|
|
6
6
|
${n}
|
|
7
7
|
`:`
|
|
8
8
|
${n}
|
|
9
|
-
`)}}});function 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+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozOUNBQTQ0M0Y3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCI+IDx4bXBNTTpEZXJpdmVkRnJvbSB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r7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/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/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFB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DONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/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 Rv(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)}var Ho=oe(Ov,[["render",Rv]]),{create:Fv}=J("sticky"),Kv=Fv({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.ref)(),a=(0,t.reactive)({fixed:!1,height:0,transform:0}),r=(0,t.computed)(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=(0,t.computed)(()=>a.fixed?{height:`${a.height}px`}:{}),i=(0,t.computed)(()=>a.fixed?{[e.position]:`${r.value}px`,transform:a.transform?`translate3d(0, ${a.transform}px, 0)`:void 0,position:a.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),u=()=>{const m=e.container;if(!o.value&&!m)return;const p=Ie(o),c=l.value,h=Ie(c),y=Ie(m);a.height=p.height;const w=()=>{let b=!1;if(e.position==="top")b=m?r.value>p.top&&y.bottom>0:r.value>p.top;else{const f=document.documentElement.clientHeight;b=m?y.bottom>0&&f-r.value-h.height>y.top:f-r.value<p.bottom}return b},S=()=>{if(m)if(e.position==="top"){const b=y.bottom-r.value-h.height;return b<0?b:0}else{const b=document.documentElement.clientHeight,f=y.bottom-(b-r.value);return f<0?f:0}return 0};a.transform=S(),a.fixed=w()};return(0,t.watch)(()=>a.fixed,m=>{n("change",m)}),(0,t.onMounted)(()=>{u(),_l(o.value).addEventListener("scroll",u,!0)}),(0,t.onUnmounted)(()=>{_l(o.value).removeEventListener("scroll",u)}),{rootRef:o,rootStyle:s,stickyRef:l,stickyStyle:i}}});function Uv(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-sticky",ref:"rootRef",style:(0,t.normalizeStyle)(e.rootStyle)},[(0,t.createElementVNode)("div",{class:"fox-sticky__box",ref:"stickyRef",style:(0,t.normalizeStyle)(e.stickyStyle)},[(0,t.renderSlot)(e.$slots,"default")],4)],4)}var _t=oe(Kv,[["render",Uv]]),{componentName:Hv,create:_v}=J("divider"),jv=_v({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:(0,t.computed)(()=>{const o=Hv;let l={[o]:!0},a={};return e.direction==="horizontal"?a={...l,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:a={...l,[`${o}-vertical`]:e.direction==="vertical"},a})}}});function Wv(e,n,o,l,a,r){return e.direction==="horizontal"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes)},null,2))}var _o=oe(jv,[["render",Wv]]);function Yv(e,n){const o=[],l=a=>{Array.isArray(a)&&a.forEach(r=>{if((0,t.isVNode)(r)){if(n){if(r.type&&r.type.name===n){o.push(r);return}}else o.push(r);r.component?.subTree&&l(r.component.subTree.children),r.children&&l(r.children)}})};return l(e),o}function Xv(e,n,o){const l=Yv(e.subTree.children,o);n.sort((a,r)=>l.indexOf(a.vnode)-l.indexOf(r.vnode))}function Qv(e,n){const o=(0,t.shallowReactive)([]),l=(0,t.getCurrentInstance)(),a=i=>{i.proxy&&(o.push((0,t.markRaw)(i)),Xv(l,o,n))},r=i=>{o.splice(o.indexOf((0,t.markRaw)(i)),1)},s=Object.assign;return i=>((0,t.provide)(e,s({add:a,remove:r,internalChildren:o},i)),{internalChildren:o})}var{componentName:$r}=J("grid"),Ei=Symbol("grid"),Gv={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}},Zv={props:Gv,setup(e,{slots:n}){Qv(Ei,`${$r}-item`)({props:e});const o=(0,t.computed)(()=>{const a=$r;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),l=(0,t.computed)(()=>{const a={};return e.gutter&&(a.paddingLeft=de(e.gutter)),a});return()=>(0,t.h)("view",{class:o.value,style:l.value},n.default?.())}},{create:Jv}=J("grid"),eg=Jv(Zv),jo=eg;function tg(e){const n=(0,t.inject)(e,null);if(n){const o=(0,t.getCurrentInstance)(),{add:l,remove:a,internalChildren:r}=n;return l(o),(0,t.onUnmounted)(()=>a(o)),{parent:n,index:(0,t.computed)(()=>r.indexOf(o))}}return{parent:null,index:(0,t.ref)(-1)}}var{create:ng,componentName:Er}=J("grid-item"),lg=ng({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const o=tg(Ei);if(!o.parent)return{};const l=o.index,a=o.parent.props,r=(0,t.computed)(()=>({[Er]:!0})),s=(0,t.computed)(()=>{const m={flexBasis:`${100/+a.columnNum}%`};return a.square?m.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(m.paddingRight=de(a.gutter),l.value>=a.columnNum&&(m.marginTop=de(a.gutter))),m}),i=(0,t.computed)(()=>{const m=`${Er}__content`;return{[`${m}`]:!0,[`${m}--border`]:a.border,[`${m}--surround`]:a.border&&a.gutter,[`${m}--center`]:a.center,[`${m}--square`]:a.square,[`${m}--reverse`]:a.reverse,[`${m}--${a.direction}`]:!!a.direction,[`${m}--clickable`]:a.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:m=>{n("click",m)}}}}),og={class:"fox-grid-item__text"};function ag(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.rootClass),style:(0,t.normalizeStyle)(e.rootStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.contentClass)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("view",og,[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 Wo=oe(lg,[["render",ag]]),{componentName:rg,create:ig}=J("navbar"),sg=ig({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:o,fixed:l,safeAreaInsetTop:a,placeholder:r,zIndex:s}=(0,t.toRefs)(e),i=(0,t.ref)(null),u=(0,t.ref)(null);let m=(0,t.ref)();const p=(0,t.computed)(()=>{const b=rg;return{[b]:!0,[`${b}--border`]:o.value,[`${b}--fixed`]:l.value,[`${b}--safe-area-inset-top`]:a.value}}),c=(0,t.computed)(()=>({zIndex:s.value}));(0,t.onMounted)(()=>{l.value&&r.value&&(0,t.nextTick)(()=>{m.value=u?.value?.getBoundingClientRect().height,i.value.style.height=m.value+"px"})});function h(){n("on-click-back")}function y(){n("on-click-title")}function w(){n("on-click-icon")}function S(){n("on-click-right")}return{navBarWrap:i,navBarHtml:u,classes:p,styles:c,handleLeft:h,handleCenter:y,handleCenterIcon:w,handleRight:S}}}),ug={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},cg={key:1,class:"fox-navbar__text"},dg={class:"fox-navbar__title"},fg={key:0,class:"fox-navbar__text"},mg={key:1,class:"fox-navbar__text"},pg={class:"fox-navbar__title"},hg={key:0,class:"fox-navbar__text"};function vg(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",ug,[(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",cg,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",dg,[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",fg,(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",mg,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",pg,[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",hg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var Yo=oe(sg,[["render",vg]]),gg=(e,n,o)=>({components:o,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{type:String,default:""},activeText:{type:String},unActiveText:{type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(l,{emit:a}){const{toLocaleRefs:r}=(0,me.useFoxI18n)(n),s=r(l,["activeText","unActiveText"]),i=(0,t.computed)(()=>({[e]:!0,active:l.visible,[l.type]:!0})),u=(0,t.ref)(-1);return{...s,classes:i,updateValue:(c=!l.visible)=>{a("update:visible",c)},selected:(c,h)=>{a("selected",{item:c,event:h}),u.value=c.id},current:u}}}),{componentName:yg,create:bg,scope:Sg}=J("fixednav"),kg=bg(gg(yg,Sg,{[it.name]:it,Left:le.Left})),wg={class:"fox-fixednav__list"},Cg=["onClick"],Ng=["src"],Ag={class:"span"},Bg={key:0,class:"b"},Tg={class:"text"};function Vg(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-overlay"),i=(0,t.resolveComponent)("Left");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.position)},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=u=>e.updateValue(!1))},null,8,["visible"])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"list",{},()=>[(0,t.createElementVNode)("view",wg,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.navList,(u,m)=>((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||m},[(0,t.createElementVNode)("img",{src:u.icon},null,8,Ng),(0,t.createElementVNode)("view",Ag,(0,t.toDisplayString)(u.text),1),u.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",Bg,(0,t.toDisplayString)(u.num),1)):(0,t.createCommentVNode)("",!0)],10,Cg))),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",Tg,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var Xo=oe(kg,[["render",Vg]]),{componentName:xg,create:$g}=J("menu"),Eg=$g({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:o}){const l=(0,t.ref)(),a=(0,t.ref)(0),r=(0,t.ref)(!1),s=()=>{const b=(0,t.reactive)([]),f=(0,t.reactive)([]);return{children:b,linkChildren:d=>{const C=v=>{v.proxy&&(f.push(v),b.push(v.proxy))},N=v=>{if(v.proxy){let g=f.indexOf(v);g>-1&&f.splice(g,1);let A=b.indexOf(v.proxy);g>-1&&b.splice(A,1)}};(0,t.provide)("menuParent",Object.assign({removeLink:N,link:C,children:b,internalChildren:f},d))}}},{children:i,linkChildren:u}=s(),m=(0,t.computed)(()=>i.some(b=>b.state.showWrapper)),p=(0,t.computed)(()=>({[xg]:!0,"scroll-fixed":r.value})),c=()=>{if(l.value){const b=Ie(l);e.direction==="down"?a.value=b.bottom:a.value=window.innerHeight-b.top}};u({props:e,offset:a});const h=b=>{i.forEach((f,k)=>{k===b?(c(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},y=b=>Math.max(0,"scrollTop"in b?b.scrollTop:b.pageYOffset),w=()=>{const{scrollFixed:b}=e;r.value=y(window)>(typeof b=="boolean"?30:Number(b))},S=b=>{let f="";const{titleClass:k}=e;return b&&(f+="active"),k&&(f+=` ${k}`),f};return(0,t.onMounted)(()=>{const{scrollFixed:b}=e;b&&window.addEventListener("scroll",w)}),(0,t.onUnmounted)(()=>{const{scrollFixed:b}=e;b&&window.removeEventListener("scroll",w)}),{toggleItem:h,children:i,opened:m,classes:p,barRef:l,getClasses:S}}}),Dg=["onClick"],Ig={class:"fox-menu__title-text"},qg={class:"fox-menu__title-icon"};function Pg(e,n,o,l,a,r){const s=(0,t.resolveComponent)("ArrowUp2"),i=(0,t.resolveComponent)("ArrowDown2");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.children,(u,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:m,class:(0,t.normalizeClass)(["fox-menu__item",{disabled:u.disabled,active:u.state.showPopup}]),onClick:p=>!u.disabled&&e.toggleItem(m),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",Ig,(0,t.toDisplayString)(u.renderTitle()),1),(0,t.createElementVNode)("span",qg,[(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,Dg))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var Qo=oe(Eg,[["render",Pg]]),{componentName:Mg,create:zg}=J("menu-item"),Lg=zg({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:{[ge.name]:ge,Check:le.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:o}){const l=(0,t.reactive)({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),a=()=>{const y=(0,t.inject)("menuParent",null);if(y){const w=(0,t.getCurrentInstance)(),{link:S,removeLink:b}=y;return S(w),(0,t.onUnmounted)(()=>{b(w)}),{parent:y}}},{parent:r}=a(),s=(0,t.computed)(()=>({[Mg]:!0})),i=(0,t.computed)(()=>{const y={height:r.offset.value+"px"};return r.props.direction==="down"?y:{...y,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const y=e.options?.find(w=>w.value===e.modelValue);return y?y.text:""},state:l,parent:r,toggle:(y=!l.showPopup,w={})=>{y!==l.showPopup&&(l.showPopup=y,l.isShowPlaceholderElement=y,y&&(l.showWrapper=!0,n("open")))},onClick:y=>{l.showPopup=!1,l.isShowPlaceholderElement=!1,y.value!==e.modelValue&&(n("update:modelValue",y.value),n("change",y.value))},handleClose:()=>{n("close"),l.showWrapper=!1,l.isShowPlaceholderElement=!1},handleClickOutside:()=>{l.showPopup=!1,n("close")}}}}),Og={class:"fox-menu-item__content fox-menu-item__overflow"},Rg=["onClick"];function Fg(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Check"),i=(0,t.resolveComponent)("fox-popup");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{onClick:n[0]||(n[0]=(...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",Og,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(u,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:m,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,Rg))),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 Go=oe(Lg,[["render",Fg]]),{create:Kg}=J("tabbar"),Ug=Kg({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,n){function o(a){l.value!==a&&(l.value=a,n.emit("update:modelValue",a),n.emit("change",a,l.children[a]))}const l=(0,t.reactive)({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:o});return(0,t.provide)("parent",l),(0,t.watch)(()=>e.modelValue,a=>{l.value=a}),{changeIndex:o}}});function Hg(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[(0,t.renderSlot)(e.$slots,"default")],2)}var Zo=oe(Ug,[["render",Hg]]),{create:_g}=J("tabbar-item"),jg=_g({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,n){const o=(0,t.inject)("parent"),l=(0,t.reactive)({size:o.size,inactiveColor:o.inactiveColor,activeColor:o.activeColor,value:o.value,index:0}),a=(0,t.getCurrentInstance)();a!==null&&(u=>{if(u.proxy){let m=o.children.length;l.index=m;let p=Object.assign(u.proxy,{index:m});o.children.push(p)}})(a);const r=(0,t.computed)(()=>l.index===l.value);function s(i){o&&typeof o.changeIndex=="function"&&o.changeIndex(i)}return(0,t.watch)((0,t.computed)(()=>o?o.value:null),i=>{l.value=i}),{state:l,active:r,change:s}}}),Wg={class:"fox-tabbar-item_icon-box"},Yg={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Xg={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Qg={key:1,class:"fox-tabbar-item_icon-box_dot"},Gg={key:2},Zg={key:0};function Jg(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:(0,t.normalizeStyle)({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=s=>e.change(e.state.index))},[(0,t.createElementVNode)("view",Wg,[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",Yg,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",Xg,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",Qg)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Gg,[((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",Zg,(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 Jo=oe(jg,[["render",Jg]]),{componentName:ey,create:ty}=J("elevator"),ny=ty({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const o=(0,t.ref)(null),l=(0,t.reactive)({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),a=(0,t.computed)(()=>({[ey]:!0})),r=(0,t.computed)(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),s=(0,t.computed)(()=>o.value.clientHeight),i=(f,k)=>f.getAttribute("data-"+k),u=f=>{(0,t.nextTick)(()=>{!l.listGroup.includes(f)&&f!=null&&l.listGroup.push(f)})},m=()=>{let f=0;l.listHeight.push(f);for(let k=0;k<l.listGroup.length;k++){let d=l.listGroup[k];f+=Math.floor(d.clientHeight),l.listHeight.push(f)}},p=f=>{!f&&f!==0||(f<0&&(f=0),f>l.listHeight.length-2&&(f=l.listHeight.length-2),l.codeIndex=f,o.value.scrollTo(0,l.listHeight[f]))},c=f=>{l.scrollStart=!0;let k=i(f.target,"index"),d=f.touches[0];l.touchState.y1=d.pageY,l.anchorIndex=+k,l.codeIndex=+k,p(+k)},h=f=>{let k=f.touches[0];l.touchState.y2=k.pageY;let d=(l.touchState.y2-l.touchState.y1)/e.spaceHeight|0;l.codeIndex=l.anchorIndex+d,p(l.codeIndex)},y=()=>{l.scrollStart=!1},w=(f,k)=>{n.emit("click-item",f,k),l.currentData=k,l.currentKey=f},S=f=>{n.emit("click-index",f)},b=f=>{let k=f.target.scrollTop;const d=l.listHeight;l.scrollY=k;for(let C=0;C<d.length-1;C++){let N=d[C],v=d[C+1];if(l.scrollY>=N&&l.scrollY<v){l.currentIndex=C,l.diff=v-l.scrollY;return}}l.currentIndex=d.length-2};return(0,t.onMounted)(()=>{o.value.addEventListener("scroll",b)}),Be({scrollTo:p}),(0,t.watch)(()=>l.listGroup.length,()=>{l.listHeight=[],(0,t.nextTick)(m)}),(0,t.watch)(()=>l.diff,f=>{const k=l.listHeight;let d=f>0&&f<e.titleHeight?f-e.titleHeight:0;l.scrollY+s.value===k[k.length-1]&&d!==0&&(d=0),l.fixedTop!==d&&(l.fixedTop=d)}),(0,t.watch)(()=>l.currentIndex,f=>{n.emit("change",f)}),{classes:a,...(0,t.toRefs)(l),fixedStyle:r,clientHeight:s,setListGroup:u,listview:o,touchStart:c,touchMove:h,touchEnd:y,handleClickItem:w,handleClickIndex:S}}}),ly={class:"fox-elevator__list__item__code"},oy=["onClick"],ay=["innerHTML"],ry={class:"fox-elevator__fixed-title"},iy={class:"fox-elevator__bars__inner"},sy=["data-index","onClick"];function uy(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:"fox-elevator__list",ref:"listview",style:(0,t.normalizeStyle)({height:isNaN(+e.height)?e.height:`${e.height}px`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,s=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[(0,t.createElementVNode)("view",ly,(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,ay))],10,oy))),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",ry,(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",iy,[((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,sy))),128))])],32)],2)}var ea=oe(ny,[["render",uy]]),{componentName:d2,create:cy,scope:dy}=J("pagination"),fy=cy({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:o}=(0,me.useFoxI18n)(dy),l=o(e,["prevText","nextText"]),{modelValue:a,mode:r,showPageSize:s,forceEllipses:i}=(0,t.toRefs)(e),u=(0,t.computed)(()=>{const{pageCount:h,totalItems:y,itemsPerPage:w}=(0,t.toRefs)(e),S=+h.value||Math.ceil(+y.value/+w.value);return Math.max(1,S)}),m=(h,y)=>{h>u.value||h<1||(h!=a.value&&n("update:modelValue",h),y&&n("change",h))},p=(h,y,w=!1)=>({number:h,text:y,active:w}),c=(0,t.computed)(()=>{if(r.value=="simple")return;let h=[];const y=u.value,w=+s.value;let S=1,b=y;const f=y>w;f&&(S=Math.max(a.value-Math.floor(w/2),1),b=S+w-1,b>y&&(b=y,S=b-w+1));for(var k=S;k<=b;k++){const d=p(k,k,a.value==k);h.push(d)}if(f&&w>0&&i.value){if(S>1){const d=p(S-1,"...");h.unshift(d)}if(b<y){const d=p(b+1,"...");h.push(d)}}return h});return(0,t.watchEffect)(()=>{m(a.value,!1)}),{...l,modelValue:a,select:m,countRef:u,mode:r,pages:c,forceEllipses:i}}}),my={class:"fox-pagination"},py={key:0,class:"fox-pagination-contain"},hy=["onClick"],vy={key:1,class:"fox-pagination-contain"},gy={class:"fox-pagination-simple"};function yy(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",my,[(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",py,[((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,hy))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",vy,[(0,t.createElementVNode)("view",gy,(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 ta=oe(fy,[["render",yy]]),by=(e,n,o,l)=>{const a=(0,t.ref)(),r=(0,t.ref)({width:0,height:0}),s=async()=>{if(o&&o.getEnv()!==o.ENV_TYPE.WEB){let c=await l(a,o);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=et();let m="";const p=(c,h)=>{let y=c;switch(e.direction=="horizontal"?(m=c>0?"right":"left",y=Math.abs(y)/r.value.width*100):(m=h>0?"bottom":"top",y=h,y=Math.abs(y)/r.value?.height*100),y>85&&(y=85),m){case"left":case"top":n.isEnd()&&(y=0,i.moving=!1);break;case"right":case"bottom":y=-y,n.isBegin()&&(y=0,i.moving=!1);break}i.offset=y};return{touchMethods:{onTouchStart(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,m){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:a}},Sy=class{title="";titleSlot;paneKey="";disabled=!1;constructor(){}},{create:ky}=J("tabs"),wy=ky({components:{[_t.name]:_t,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:o}){const l=(0,t.ref)(null);let a;(0,t.provide)("tabsOpiton",{activeKey:(0,t.computed)(()=>e.modelValue||"0"),autoHeight:(0,t.computed)(()=>e.autoHeight),animatedTime:(0,t.computed)(()=>e.animatedTime)});const r=(0,t.ref)([]),s=V=>{V.forEach((T,_)=>{let G=T.type;if(G=G.name||G,G=="fox-tab-pane"){let x=new Sy;if(T.props?.title||T.props?.["pane-key"]||T.props?.paneKey){let $=kt(T.props?.["pane-key"]),z=$=="number"||$=="string"?String(T.props?.["pane-key"]):null,P=kt(T.props?.paneKey),O=P=="number"||P=="string"?String(T.props?.paneKey):null;x.title=T.props?.title,x.paneKey=z||O||String(_),x.disabled=T.props?.disabled}r.value.push(x)}else{if(T.children==" ")return;Array.isArray(T.children)&&s(T.children)}})},i=(0,t.ref)(e.modelValue||0),u=V=>{let T=r.value.findIndex(_=>_.paneKey==V);r.value.length==0||T==-1||(i.value=T)},m=(0,t.computed)(()=>e.titleScroll&&e.direction==="vertical"),p=(0,t.ref)(),c=(0,t.ref)([]),h=V=>{const T=p.value,_=c.value;if(!T||!_||!_[i.value])return;const G=_[i.value];let x=0;e.direction==="vertical"?x=G.offsetTop-T.offsetTop+10-(T.offsetHeight-G.offsetHeight)/2:x=G.offsetLeft-(T.offsetWidth-G.offsetWidth)/2,y(T,x,V?0:.3,e.direction)},y=(V,T,_,G)=>{let x=0;const $=G==="horizontal"?V.scrollLeft:V.scrollTop,z=_===0?1:Math.round(_*1e3/16);function P(){G==="horizontal"?V.scrollLeft+=(T-$)/z:V.scrollTop+=(T-$)/z,++x<z&&Fe(P)}P()},w=(V=o.default?.())=>{r.value=[],V=V?.filter(T=>typeof T.children!="string"),V&&V.length&&s(V),u(e.modelValue),(0,t.nextTick)(()=>{h()})},S=V=>{a=V.fixed};(0,t.watch)(()=>o.default?.(),V=>{w(V)});const b=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;(0,t.watch)(()=>e.modelValue,V=>{if(u(V),h(),a){let T=Ie(l.value).top+b(),_=Math.ceil(T-e.top);window.scrollTo({top:_,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:V=>{n("update:modelValue",V.paneKey),n("change",V)},tabChange:(V,T)=>{n("click",V),!(V.disabled||i.value==T)&&(i.value=T,f.updateValue(V))},setTabItemRef:(V,T)=>{c.value[T]=V}},{tabsContentRef:k,touchState:d,touchMethods:C}=by(e,f),N=(0,t.computed)(()=>{let V=i.value*100;d.moving&&(V+=d.offset);let T={transform:e.direction=="horizontal"?`translate3d(-${V}%, 0, 0)`:`translate3d( 0,-${V}%, 0)`,transitionDuration:d.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(T={}),T}),v=(0,t.computed)(()=>({background:e.background})),g=(0,t.computed)(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),A=(0,t.computed)(()=>{if(!e.titleGutter)return{};const V=de(e.titleGutter);return e.direction==="vertical"?{marginTop:V,marginBottom:V}:{marginLeft:V,marginRight:V}}),B=(0,t.computed)(()=>o.fixedTitle);return{navRef:p,tabsContentRef:k,titles:r,contentStyle:N,tabsNavStyle:v,titleStyle:A,tabsActiveStyle:g,container:l,getScrollY:m,onStickyScroll:S,...f,...C,hasFixedTitle:B}}}),Cy=["onClick"],Ny={key:0,class:"fox-tabs__titles-fixed-item"},Ay=["onClick"],By={key:0,class:"fox-tabs__titles-fixed-item"};function Ty(e,n,o,l,a,r){const s=(0,t.resolveComponent)("JoySmile"),i=(0,t.resolveComponent)("fox-sticky");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:(0,t.normalizeStyle)(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?(0,t.renderSlot)(e.$slots,"titles",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.titles,(u,m)=>((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,m),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,Cy))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ny,[(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,m)=>((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,m),key:u.paneKey,ref_for:!0,ref:p=>e.setTabItemRef(p,m)},[(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,Ay))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",By,[(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 na=oe(wy,[["render",Ty]]),{create:Vy}=J("tab-pane"),xy=Vy({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const o=(0,t.inject)("tabsOpiton"),l=(0,t.computed)(()=>({display:o.animatedTime.value==0&&e.paneKey!=o.activeKey.value?"none":void 0}));return{...o,paneStyle:l}}});function $y(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:(0,t.normalizeStyle)(e.paneStyle)},[(0,t.renderSlot)(e.$slots,"default")],6)}var la=oe(xy,[["render",$y]]),{componentName:Dr,create:Ey}=J("indicator"),Dy=Ey({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:o}=(0,t.toRefs)(e);return{classes:(0,t.computed)(()=>{const l=Dr;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${o.value}`]:n.value&&o.value}}),componentName:Dr,padZero:nt}}});function Iy(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.size,s=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:s},[s===e.current?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(`${e.componentName}--number`)},(0,t.toDisplayString)(e.fillZero&&e.padZero(s)||s),3)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var oa=oe(Dy,[["render",Iy]]),{componentName:qy,create:Py}=J("side-navbar"),My=Py({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=(0,t.ref)(null),o=(0,t.reactive)({count:1,observer:null}),l=(0,t.computed)(()=>({[qy]:!0})),a=(s,i=1)=>{for(let u=0;u<s.length;u++){let m=s[u];m?.children?.[0]&&(m.children[0].style.paddingLeft=+e.offset*i+"px",m.className.includes("fox-side-navbar-item")||a(Array.from(m.children[1].children),++o.count))}o.count--},r=()=>{let s=n.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),a(s))};return(0,t.onMounted)(()=>{r(),o.observer=new MutationObserver(function(){o.count=1,r()}),o.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(o),list:n,classes:l}}}),zy={class:"fox-side-navbar__content"},Ly={class:"fox-side-navbar__content__list",ref:"list"};function Oy(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",zy,[(0,t.createElementVNode)("view",Ly,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var aa=oe(My,[["render",Oy]]),{componentName:Ry,create:Fy}=J("side-navbar-item"),Ky=Fy({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[Ry]:!0})),handleClick:()=>{n.emit("click")}})}),Uy=["ikey"],Hy={class:"fox-side-navbar-item__title"};function _y(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[(0,t.createElementVNode)("span",Hy,(0,t.toDisplayString)(e.title),1)],10,Uy)}var ra=oe(Ky,[["render",_y]]),{componentName:jy,create:Wy}=J("sub-side-navbar"),Yy=Wy({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 o=(0,t.reactive)({direction:""}),l=(0,t.computed)(()=>({[jy]:!0})),a=(0,t.computed)(()=>({height:o.direction?"0px":"auto"})),r=()=>{n.emit("title-click"),o.direction=o.direction?"":"up"};return(0,t.onMounted)(()=>{o.direction=e.open?"":"up"}),{...(0,t.toRefs)(o),classes:l,style:a,handleClick:r}}}),Xy=["ikey"],Qy={class:"fox-sub-side-navbar__title__text"},Gy={class:"fox-sub-side-navbar__title__icon"};function Zy(e,n,o,l,a,r){const s=(0,t.resolveComponent)("ArrowDown2"),i=(0,t.resolveComponent)("ArrowUp2");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ikey:e.ikey},[(0,t.createElementVNode)("view",{class:"fox-sub-side-navbar__title",onClick:n[0]||(n[0]=(0,t.withModifiers)((...u)=>e.handleClick&&e.handleClick(...u),["stop"]))},[(0,t.createElementVNode)("span",Qy,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",Gy,[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,Xy)}var ia=oe(Yy,[["render",Zy]]),{componentName:Jy,create:eb}=J("range"),tb=eb({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const o=(0,t.ref)(0);let l,a;const r=(0,t.ref)(),s=(0,t.ref)(),i=et(),u=(0,t.computed)(()=>{const{marks:x,max:$,min:z}=e;return Object.keys(x).map(parseFloat).sort((P,O)=>P-O).filter(P=>{const O=fe(P);return O>=fe(z)&&O<=fe($)})}),m=(0,t.computed)(()=>Number(e.max)-Number(e.min)),p=(0,t.computed)(()=>{const x=Jy;return{[x]:!0,[`${x}-disabled`]:e.disabled,[`${x}-vertical`]:e.vertical,[`${x}-show-number`]:!e.hiddenRange}}),c=(0,t.computed)(()=>{const x="fox-range-container";return{[x]:!0,[`${x}-vertical`]:e.vertical}}),h=(0,t.computed)(()=>({background:e.inactiveColor})),y=(0,t.computed)(()=>({borderColor:e.buttonColor})),w=x=>!!e.range&&Array.isArray(x),S=()=>{const{modelValue:x,min:$}=e;return w(x)?`${(x[1]-x[0])*100/m.value}%`:`${(x-Number($))*100/m.value}%`},b=()=>{const{modelValue:x,min:$}=e;return w(x)?`${(x[0]-Number($))*100/m.value}%`:"0%"},f=(0,t.computed)(()=>e.vertical?{height:S(),top:b(),background:e.activeColor,transition:s.value?"none":void 0}:{width:S(),left:b(),background:e.activeColor,transition:s.value?"none":void 0}),k=x=>{const $="fox-range-mark",{modelValue:z,max:P,min:O}=e;let F=Number(O),D=Number(P);if(e.range){const[te,L]=z;F=te,D=L}else D=z;let X=x<=D&&x>=F;return{[`${$}-text`]:!0,[`${$}-text-active`]:X}},d=x=>{const{min:$,vertical:z}=e;let P={left:`${(x-Number($))/m.value*100}%`};return z&&(P={top:`${(x-Number($))/m.value*100}%`}),P},C=x=>{const{modelValue:$,max:z,min:P}=e;let O=Number(P),F=Number(z);if(e.range){const[D,X]=$;O=D,F=X}return{background:x<=F&&x>=O?e.activeColor:e.inactiveColor}},N=x=>{const{min:$,max:z,step:P}=e;return x=Math.max(+$,Math.min(x,+z)),Math.round(x/+P)*+P},v=(x,$)=>JSON.stringify(x)===JSON.stringify($),g=x=>x[0]>x[1]?x.slice(0).reverse():x,A=(x,$)=>{w(x)?x=g(x).map(N):x=N(x),v(x,e.modelValue)||n("update:modelValue",x),$&&!v(x,l)&&n("change",x)},B=x=>{if(e.disabled)return;const{min:$,modelValue:z}=e,P=Ie(r);let O=x.clientX-P.left,F=P.width;e.vertical&&(O=x.clientY-P.top,F=P.height);const D=Number($)+O/F*m.value;if(w(z)){const[X,te]=z;D<=(X+te)/2?A([D,te],!0):A([X,D],!0)}else A(D,!0)},V=x=>{e.disabled||(i.start(x),a=e.modelValue,w(a)?l=a.map(N):l=N(a),s.value="start")},T=x=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(x),s.value="draging";const $=Ie(r);let z=i.deltaX.value,P=$.width,O=z/P*m.value;e.vertical&&(z=i.deltaY.value,P=$.height,O=z/P*m.value),w(l)?a[o.value]=l[o.value]+O:a=l+O,A(a),x.stopPropagation(),x.preventDefault()},_=()=>{e.disabled||(s.value==="draging"&&(A(a,!0),n("drag-end")),s.value="")},G=x=>An(e.modelValue)&&typeof x=="number"?e.modelValue[x]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:h,buttonStyle:y,onClick:B,onTouchStart:V,onTouchMove:T,onTouchEnd:_,...(0,t.toRefs)(e),barStyle:f,curValue:G,buttonIndex:o,containerClasses:c,markClassName:k,marksStyle:d,marksList:u,tickStyle:C}}}),nb={key:0,class:"fox-range-min"},lb={key:0,class:"fox-range-mark"},ob=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],ab={key:0,class:"number"},rb=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],ib={key:0,class:"number"},sb={key:1,class:"fox-range-max"};function ub(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.containerClasses)},[e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",nb,(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",lb,[((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",ab,(0,t.toDisplayString)(e.curValue(s)),1))],4))],42,ob)),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",ib,(0,t.toDisplayString)(e.curValue()),1))],4))],40,rb))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",sb,(0,t.toDisplayString)(+e.max),1))],2)}var jt=oe(tb,[["render",ub]]),{create:cb,scope:db}=J("short-password"),fb=cb({components:{[ge.name]:ge,Tips:le.Tips},props:{title:{type:String},desc:{type:String},tips:{type:String},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:o}=(0,me.useFoxI18n)(db),l=o(e,["title","desc","tips"]),a=(0,t.ref)(e.modelValue),r=(0,t.computed)(()=>m(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")},m=c=>Math.min(Math.max(4,c),6);return{comLen:r,realInput:a,onTouchStart:i,range:m,close:u,onTips:()=>{n("tips")},show:s,...l}}}),mb={class:"fox-short-password-title"},pb={class:"fox-short-password-subtitle"},hb={class:"fox-short-password-wrapper"},vb={key:0,class:"fox-short-password__item-icon"},gb={class:"fox-short-password__message"},yb={class:"fox-short-password--error"},bb={key:0,class:"fox-short-password--forget"};function Sb(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Tips"),i=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",null,[(0,t.createVNode)(i,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":n[2]||(n[2]=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",mb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",pb,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",hb,[(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,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-short-password__item",key:m},[String(e.realInput).length>m?((0,t.openBlock)(),(0,t.createElementBlock)("view",vb)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",gb,[(0,t.createElementVNode)("view",yb,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",bb,[(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 sa=oe(fb,[["render",Sb]]),kb=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},wb=class{options;constructor(e){this.options=e}upload(){const e=this.options,n=new XMLHttpRequest;if(n.timeout=e.timeout,n.upload){n.upload.addEventListener("progress",o=>{e.onProgress?.(o,e)},!1),n.onreadystatechange=()=>{n.readyState===4&&(n.status==e.xhrState?e.onSuccess?.(n.responseText,e):e.onFailure?.(n.responseText,e))},n.withCredentials=e.withCredentials,n.open(e.method,e.url,!0);for(const[o,l]of Object.entries(e.headers))n.setRequestHeader(o,l);e.onStart?.(e),e.beforeXhrUpload?e.beforeXhrUpload(n,e):n.send(e.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}},Cb=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},Di=(e,{args:n=[],done:o,canceled:l})=>{if(e){const a=e.apply(null,n);bt(a)?a.then(r=>{r?o(r):l&&l()}).catch(()=>{}):a?o():l&&l()}else o()},{create:Nb}=J("progress"),Ab=Nb({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=!!(0,t.useSlots)().default,o=(0,t.ref)(e.strokeWidth+"px"),l=(0,t.ref)(),a=(0,t.ref)(),r=(0,t.computed)(()=>{const u=fe(e.percentage);return u>=100?100:u}),s=(0,t.computed)(()=>({width:r.value+"%",background:e.strokeColor||""})),i=(0,t.computed)(()=>({color:e.textColor||""}));return(0,t.onMounted)(()=>{}),{height:o,percentage:r,bgStyle:s,textStyle:i,progressOuter:l,insideText:a,slotDefault:n}}}),Bb={class:"fox-progress"},Tb={key:0,class:"fox-progress-text"};function Vb(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",Bb,[(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",Tb,[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 Wt=oe(Ab,[["render",Vb]]),{componentName:xb,create:$b,scope:Eb}=J("uploader"),Db=$b({components:{[Wt.name]:Wt,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:o}=(0,me.useFoxI18n)(Eb),l=(0,t.reactive)(e.fileList);let a=[];const r=(0,t.computed)(()=>({[xb]:!0})),s=()=>{let k={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(k.capture="camera"),(0,t.h)("input",k)},i=k=>{k.value=""},u=k=>{n("file-item-click",{fileItem:k})},m=(k,d)=>{const C=new kb;C.url=e.url,C.formData=k.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=k.formData.get(e.name)}catch{}C.onStart=v=>{k.status="ready",k.message=o("readyUpload"),p(d),n("start",v)},C.onProgress=(v,g)=>{k.status="uploading",k.message=o("uploading"),k.percentage=(v.loaded/v.total*100).toFixed(0),n("progress",{event:v,option:g,percentage:k.percentage})},C.onSuccess=(v,g)=>{k.status="success",k.message=o("success"),n("success",{responseText:v,option:g,fileItem:k}),n("update:fileList",l)},C.onFailure=(v,g)=>{k.status="error",k.message=o("error"),n("failure",{responseText:v,option:g,fileItem:k})};let N=new wb(C);e.autoUpload?N.upload():a.push(new Promise((v,g)=>{v(N)}))},p=(k=-1)=>{k>-1?a.splice(k,1):(a=[],l.splice(0,l.length))},c=()=>{Promise.all(a).then(k=>{k.forEach(d=>d.upload())})},h=k=>{k.forEach((d,C)=>{const N=new FormData;for(const[g,A]of Object.entries(e.data))N.append(g,A);N.append(e.name,d);const v=(0,t.reactive)(new Cb);if(v.name=d.name,v.status="ready",v.type=d.type,v.formData=N,v.message=o("waitingUpload"),m(v,C),e.isPreview&&d.type.includes("image")){const g=new FileReader;g.onload=A=>{v.url=A.target.result,l.push(v)},g.readAsDataURL(d)}else l.push(v)})},y=k=>{const d=e.maximum*1,C=e.maximize*1,N=new Array;k=k.filter(g=>g.size>C?(N.push(g),!1):!0),N.length&&n("oversize",N);let v=k.length+l.length;return v>d&&k.splice(k.length-(v-d)),k},w=(k,d)=>{l.splice(d,1),n("delete",{file:k,fileList:l,index:d})},S=(k,d)=>{p(d),Di(e.beforeDelete,{args:[k,l],done:()=>w(k,d)})},b=k=>{if(e.disabled)return;const d=k.target;let{files:C}=d;e.beforeUpload?e.beforeUpload(C).then(N=>f(N)):f(C),n("change",{fileList:l,event:k}),e.clearInput&&i(d)},f=k=>{h(y(new Array().slice.call(k)))};return{onChange:b,onDelete:S,fileList:l,classes:r,fileItemClick:u,clearUploadQueue:p,submit:c,renderInput:s}}}),Ib={key:0,class:"fox-uploader__slot"},qb={key:0,class:"fox-uploader__preview-img"},Pb={key:0,class:"fox-uploader__preview__progress"},Mb={class:"fox-uploader__preview__progress__msg"},zb=["onClick"],Lb=["onClick","src"],Ob={key:3,class:"fox-uploader__preview-img__file"},Rb=["onClick"],Fb={class:"file__name_tips"},Kb={class:"tips"},Ub={key:1,class:"fox-uploader__preview-list"},Hb=["onClick"],_b={class:"file__name_tips"};function jb(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Failure"),i=(0,t.resolveComponent)("Loading"),u=(0,t.resolveComponent)("Link"),m=(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",Ib,[(0,t.renderSlot)(e.$slots,"default"),Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.fileList,(h,y)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-uploader__preview",[e.listType]]),key:h.uid},[e.listType=="picture"&&!e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",qb,[h.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Pb,[h.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[h.status=="error"?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,color:"#fff"})):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,name:"loading",color:"#fff"}))],64)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Mb,(0,t.toDisplayString)(h.message),1)])):(0,t.createCommentVNode)("",!0),e.isDeletable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"close",onClick:w=>e.onDelete(h,y)},[(0,t.renderSlot)(e.$slots,"delete-icon",{},()=>[(0,t.createVNode)(s)])],8,zb)):(0,t.createCommentVNode)("",!0),h?.type?.includes("image")&&h.url?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,class:"fox-uploader__preview-img__c",onClick:w=>e.fileItemClick(h),src:h.url},null,8,Lb)):((0,t.openBlock)(),(0,t.createElementBlock)("view",Ob,[(0,t.createElementVNode)("view",{onClick:w=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[(0,t.createElementVNode)("view",Fb,(0,t.toDisplayString)(h.name),1)],8,Rb)])),(0,t.createElementVNode)("view",Kb,(0,t.toDisplayString)(h.name),1)])):e.listType=="list"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ub,[(0,t.createElementVNode)("view",{onClick:w=>e.fileItemClick(h),class:(0,t.normalizeClass)(["fox-uploader__preview-img__file__name",[h.status]])},[(0,t.createVNode)(u,{class:"fox-uploader__preview-img__file__link"}),(0,t.createElementVNode)("view",_b,(0,t.toDisplayString)(h.name),1),e.isDeletable?((0,t.openBlock)(),(0,t.createBlock)(m,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:w=>e.onDelete(h,y)},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],10,Hb),h.status=="uploading"?((0,t.openBlock)(),(0,t.createBlock)(p,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(["fox-uploader__upload",[e.listType]])},[(0,t.renderSlot)(e.$slots,"upload-icon",{},()=>[(0,t.createVNode)(c,{color:"#808080"})]),((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):(0,t.createCommentVNode)("",!0)],2)}var ua=oe(Db,[["render",jb]]),Wb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJl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CEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:Xb,scope:Qb}=J("number-keyboard"),Gb=Xb({components:{[ge.name]:ge},props:{confirmText:{type:String},title:{type:String},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:n}){const{toLocaleRefs:o}=(0,me.useFoxI18n)(Qb),l=o(e,["confirmText"]),a=(0,t.ref)(void 0),r=(0,t.ref)(e.visible),s=(0,t.ref)();function i(){const{customKey:f}=e;let k={id:"lock",type:"lock"},d=Array.isArray(f)?f:[f];return d.length===1&&(k={id:d[0],type:"custom"}),[...u(),k,{id:0,type:"number"},{id:"delete",type:"delete"}]}function u(){const f=[];for(let k=1;k<=9;k++)f.push({id:k,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function m(){const f=u(),{customKey:k}=e;let d=Array.isArray(k)?k:[k];return d.length>2&&(d=[d[0],d[1]]),d.length==2&&e.title&&e.type!="rightColumn"&&(d=[d[0]]),d.length===1?e.title&&e.type!="rightColumn"?f.push({id:d[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:d[0],type:"custom"}):d.length===2&&f.push({id:d[0],type:"custom"},{id:0,type:"number"},{id:d[1],type:"custom"}),f}const p=(0,t.computed)(()=>e.type=="rightColumn"||e.title!=""?m():i()),c=()=>{e.visible&&n("blur")},h=f=>{const k=s.value;k&&!k.contains(f.target)&&c()};(0,t.watch)(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function y(f,k){k.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"&&b(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function w(f){f.stopPropagation()}function S(f){f.preventDefault(),a.value=void 0}function b(){n("update:visible",!1),n("close")}return{...l,delImg:Wb,lockImg:Yb,clickKeyIndex:a,defaultKey:i,closeBoard:b,onTouchEnd:S,onTouchMove:w,onTouchstart:y,keysList:p,genCustomKeys:m,getBasicKeys:u,root:s,show:r}}}),Zb={ref:"root"},Jb={class:"fox-number-keyboard"},e1={key:0,class:"fox-number-keyboard__header"},t1={class:"fox-number-keyboard__title"},n1={class:"fox-number-keyboard__body"},l1={class:"fox-number-keyboard__keys"},o1=["onTouchstart"],a1=["src"],r1=["src"],i1={key:0,class:"fox-number-keyboard__sidebar"},s1={class:"fox-key__wrapper"},u1=["src"];function c1(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",Zb,[(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",Jb,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",e1,[(0,t.createElementVNode)("h3",t1,(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",n1,[(0,t.createElementVNode)("div",l1,[((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,a1)):(0,t.createCommentVNode)("",!0),i.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,r1)):(0,t.createCommentVNode)("",!0)],42,o1)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",i1,[(0,t.createElementVNode)("div",s1,[(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,u1)],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 ca=oe(Gb,[["render",c1]]),{componentName:d1,create:f1}=J("swipe"),m1=f1({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n}){const o=(0,t.computed)(()=>({[d1]:!0})),l=k=>k.value?.clientWidth||0,a=(0,t.ref)(),r=(0,t.computed)(()=>l(a)),s=(0,t.ref)(),i=(0,t.computed)(()=>l(s));let u=!1,m="",p="";const c=(0,t.reactive)({offset:0,moving:!1}),h=(k="")=>{u=!0,k&&(c.offset=k==="left"?-i.value:r.value),n("open",{name:e.name,position:m||k})},y=()=>{c.offset=0,u=!1,n("close",{name:e.name,position:m})},w=(0,t.computed)(()=>({transform:`translate3d(${c.offset}px, 0, 0)`})),S=k=>{m=k>0?"right":"left";let d=k;switch(m){case"left":u&&p===m?d=-i.value:d=Math.abs(k)>i.value?-i.value:k;break;case"right":u&&p===m?d=r.value:d=Math.abs(k)>r.value?r.value:k;break}c.offset=d},b=et(),f={onTouchStart(k){e.disabled||b.start(k)},onTouchMove(k){e.disabled||(b.move(k),b.isHorizontal()&&(c.moving=!0,S(b.deltaX.value),e.touchMovePreventDefault&&k.preventDefault(),e.touchMoveStopPropagation&&k.stopPropagation()))},onTouchEnd(){if(c.moving)switch(c.moving=!1,p=m,m){case"left":Math.abs(c.offset)<=i.value/2?y():(c.offset=-i.value,h());break;case"right":Math.abs(c.offset)<=r.value/2?y():(c.offset=r.value,h());break}}};return Be({open:h,close:y}),{classes:o,touchStyle:w,...f,leftRef:a,rightRef:s,open:h,close:y}}}),p1={class:"fox-swipe__left",ref:"leftRef"},h1={class:"fox-swipe__content"},v1={class:"fox-swipe__right",ref:"rightRef"};function g1(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.touchStyle),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[(0,t.createElementVNode)("view",p1,[(0,t.renderSlot)(e.$slots,"left")],512),(0,t.createElementVNode)("view",h1,[(0,t.renderSlot)(e.$slots,"default")]),(0,t.createElementVNode)("view",v1,[(0,t.renderSlot)(e.$slots,"right")],512)],38)}var da=oe(m1,[["render",g1]]),{componentName:y1,create:b1}=J("action-sheet"),S1=b1({components:{Popup:ge,Loading:le.Loading},props:{...Xe,cancelTxt:{type:String},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String},title:{type:String},color:{type:String,default:"#ee0a24"},description:{type:String},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const o=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[y1]:!0}));return{slotDefault:o,isHighlight:u=>e.chooseTagValue&&e.chooseTagValue===u[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(u,m)=>{!u.disable&&!u.loading&&(n("choose",u,m),n("update:visible",!1))},close:u=>{n("close",u),n("update:visible",!1)},classes:l}}}),k1={key:0,class:"fox-action-sheet__title"},w1={key:1},C1={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},N1={key:1,class:"fox-action-sheet__menu"},A1=["onClick"],B1={key:1},T1={class:"fox-action-sheet__subdesc"};function V1(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Loading"),i=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createBlock)(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes)},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",k1,(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",w1,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",C1,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",N1,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.menuItems,(u,m)=>((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:m,onClick:p=>e.chooseItem(u,m)},[u.loading?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",B1,(0,t.toDisplayString)(u[e.optionTag]),1)),(0,t.createElementVNode)("view",T1,(0,t.toDisplayString)(u[e.optionSubTag]),1)],14,A1))),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 fa=oe(S1,[["render",V1]]),{componentName:x1,create:$1}=J("backtop"),E1=$1({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:o}){const l=(0,t.reactive)({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),a=(0,t.computed)(()=>({[x1]:!0,show:l.backTop})),r=(0,t.computed)(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){l.scrollEl instanceof Window?l.scrollTop=l.scrollEl.pageYOffset:l.scrollTop=l.scrollEl.scrollTop,l.backTop=l.scrollTop>=e.distance}function i(w=0){l.scrollEl instanceof Window?window.scrollTo(0,w):l.scrollEl.scrollTop=w}function u(){let w=We(function S(){var b=e.duration-Math.max(0,l.startTime-+new Date+e.duration),f=b*-l.scrollTop/e.duration+l.scrollTop;i(f),w=We(S),(b==e.duration||f==0)&&Pr(w)})}function m(){l.scrollEl.addEventListener("scroll",s,!1),l.scrollEl.addEventListener("resize",s,!1)}function p(){l.scrollEl.removeEventListener("scroll",s,!1),l.scrollEl.removeEventListener("resize",s,!1)}function c(w){l.startTime=+new Date,e.isAnimation&&e.duration>0?u():i(),n("click",w)}function h(){y.value?l.scrollEl=y.value.el:e.elId&&document.getElementById(e.elId)&&(l.scrollEl=document.getElementById(e.elId)),m()}(0,t.onMounted)(()=>{e.distance==0&&(l.backTop=!0),h()}),(0,t.onUnmounted)(()=>{p()}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1,h())}),(0,t.onDeactivated)(()=>{l.keepAlive=!0,p()});const y=(0,t.computed)(()=>{if(typeof o.content=="function"){const w=o.content();return Array.isArray(w)?w[0]:w}return null});return()=>{const w=[];y.value&&w.push(y.value);const S=[];if(typeof o.default=="function")S.push(o.default());else{const f=(0,t.h)(le.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});S.push(f)}const b=(0,t.h)("div",{class:a.value,style:r.value,onClick:c},S);return w.push(b),w}}}),ma=E1,{componentName:D1,create:I1}=J("drag"),q1=I1({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.reactive)({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),a=(0,t.computed)(()=>({[D1]:!0}));function r(){const c=document.documentElement;l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight,l.screenWidth=c.clientWidth,l.screenHeight=c.clientHeight}function s(c){l.boundary.left?+c.style.left.split("px")[0]>l.boundary.left?(c.style.left=+c.style.left.split("px")[0]-10+"px",Fe(()=>{s(c)})):c.style.left=`${l.boundary.left}px`:+c.style.left.split("px")[0]>10?(c.style.left=+c.style.left.split("px")[0]-10+"px",Fe(()=>{s(c)})):c.style.left="0px"}function i(c,h){h-parseInt(c.style.left.split("px")[0])>10?(c.style.left=parseInt(c.style.left.split("px")[0])+10+"px",Fe(()=>{i(c,h)})):c.style.left=h+"px"}function u(c){c.preventDefault();const h=c.currentTarget;if(c.targetTouches.length===1){const y=c.targetTouches[0];l.nx=y.clientX-l.position.x,l.ny=y.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const w=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>w?l.xPum=w:l.xPum<=l.boundary.left&&(l.xPum=l.boundary.left),l.yPum<l.boundary.top?l.yPum=l.boundary.top:l.yPum>l.screenHeight-l.elHeight-l.boundary.bottom&&(l.yPum=l.screenHeight-l.elHeight-l.boundary.bottom),e.direction!="y"&&(h.style.left=l.xPum+"px"),e.direction!="x"&&(h.style.top=l.yPum+"px")}}function m(c){const h=c.currentTarget;let y=c.changedTouches[0].clientX;const w=l.screenWidth-l.elWidth-l.boundary.right;y>w?y=w:y<l.boundary.left?y=l.boundary.left:y=y<l.screenWidth/2?l.boundary.left:w,e.direction!="y"&&e.attract&&(y<l.screenWidth/2?Fe(()=>{s(h)}):Fe(()=>{i(h,w)})),e.direction!="x"&&(h.style.top=l.yPum+"px")}function p(c){const h=c.currentTarget,y=c.touches[0],w=c.targetTouches[0];l.startTop=h.offsetTop,l.startLeft=h.offsetLeft,l.position.x=y.clientX,l.position.y=y.clientY,l.nx=w.clientX-l.position.x,l.ny=w.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return(0,t.onMounted)(()=>{r(),l.boundary=e.boundary}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1)}),(0,t.onDeactivated)(()=>{l.keepAlive=!0;const c=o;c.value.removeEventListener("touchstart",p),c.value.removeEventListener("touchmove",u),c.value.removeEventListener("touchend",m)}),{classes:a,myDrag:o,touchStart:p,touchMove:u,touchEnd:m}}});function P1(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=s=>e.touchStart(s)),onTouchmove:n[1]||(n[1]=s=>e.touchMove(s)),onTouchend:n[2]||(n[2]=s=>e.touchEnd(s))},[(0,t.renderSlot)(e.$slots,"default")],34)}var pa=oe(q1,[["render",P1]]),M1={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}},z1=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function L1(e,n,o,l,a){return{props:{...Xe,...M1},setup(r,{attrs:s,slots:i,emit:u}){const{toLocaleRefs:m}=(0,me.useFoxI18n)(n),p=m(r,["confirmText","cancelText"]),c=e,h=(0,t.ref)(r.visible);(0,t.watch)(()=>r.visible,v=>{h.value!==v&&(h.value=v,v&&u("opened"))});const y=v=>{h.value=v,u("update:visible",v),u("update",v)},w=v=>{if(u(v),!(v==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const g=r.beforeClose(v);bt(g)?g.then(A=>{A&&(y(!1),u("closed",v))}):g===!0&&(y(!1),u("closed",v))}else y(!1),u("closed",v)},S=()=>{w("confirm")},b=()=>{w("cancel")},f=()=>{w("close")},k=(v,g)=>z1(v)?(g.src=v,(0,t.h)("img",g)):typeof v=="string"?(Array.isArray(g.class)?g.class.push(v):g.class&&typeof g.class=="object"?g[`${v}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${v}`:g.class=v,(0,t.h)(r.tag,g)):(0,t.h)(v,g),d=()=>{const v=[];if(i.header){const g=i.header();v.push(g)}else{if(r.title){const g=(0,t.h)("view",{class:`${c}__header-title`},[r.title]);v.push(g)}if(r.showClose){const g={class:[`${c}__header-close-icon`],onClick:f},A=k(r.closeIcon??a,g);v.push(A)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},v)},C=()=>{const v=[];if(i.default)v.push(i.default());else{const g={class:[`${c}__content`]};if(r.textAlign&&g.class.push(r.textAlign),typeof r.content=="string"){g.innerHTML=r.content;const A=(0,t.h)("view",g);v.push(A)}else if(typeof r.content=="function"){const A=(0,t.h)("view",g,[r.content()]);v.push(A)}else{const A=(0,t.h)("view",g,[r.content]);v.push(A)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__body`]},v)},N=()=>{if(!r.showFooter)return null;const v=[];if(i.footer)v.push(i.footer());else if(r.plain){if(r.showCancelButton){const g={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},onClick:b};r.cancelButtonClass&&g.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(g.style,r.cancleButtonStyle);const A=(0,t.h)("view",g,[r.cancelButtonText??p.cancelText.value]);v.push(A)}if(r.showConfirmButton){const g={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},onClick:S};r.confirmButtonClass&&g.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(g.style,r.confirmButtonStyle);const A=(0,t.h)("view",g,[r.confirmButtonText??p.confirmText.value]);v.push(A)}}else{if(r.showCancelButton){const g={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:b};r.cancelButtonClass&&g.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(g.style,r.cancleButtonStyle);const A=(0,t.h)(l,g,{default:()=>[r.cancelButtonText??p.cancelText.value]});v.push(A)}if(r.showConfirmButton){const g={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:S};r.confirmButtonClass&&g.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(g.style,r.confirmButtonStyle);const A=(0,t.h)(l,g,{default:()=>[r.confirmButtonText??p.confirmText.value]});v.push(A)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__footer`,`${c}__footer--${r.footerDirection}`]},v)};return()=>{const v=[],g=d();g&&v.push(g);const A=C();A&&v.push(A);const B=N();B&&v.push(B);const V=(0,t.h)("view",{class:{[`${c}`]:!0,[`${c}--plain`]:r.plain}},v),T=[`${c}__popup`];r.popClass&&T.push(r.popClass);const _={};return r.width&&(_.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(_.height=typeof r.height=="number"?`${r.height}px`:r.height),(0,t.h)(o,{...he(r,Xe),popClass:T.join(" "),style:_,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay},{default:()=>V})}}}}var{componentName:O1,create:R1,scope:F1}=J("dialog"),K1=R1(L1(O1,F1,ge,st,le.Close)),Ii=K1,U1=class{title="";content="";cancelText=null;confirmText=null;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},H1=class{options=new U1;constructor(e){let n=Object.assign(this.options,e),o=document.body,l=n.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=n.teleport);const a=document.createElement("view"),r=`dialog-${n.id}`;a.id=r;const s=(0,t.createVNode)({setup(){return n.onUpdate=i=>{if(i===!1){const u=document.querySelector(`#${r}`);u&&u.parentNode?.removeChild(u)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(Ii,n)}});o.appendChild(a),(0,t.render)(s,a)}},Yt=function(e){return new H1(e)};Yt.install=e=>{e.use(Ii),e.config.globalProperties.$dialog=Yt};var _1={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}},j1=(e,n,o)=>({props:{..._1},emits:["change","refresh","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:s}=(0,me.useFoxI18n)(n),i=s(l,["pullingText","loosingText","loadingText"]),u=Xn(),m=(0,t.ref)(),p=Vi(m),c=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=(0,t.computed)(()=>({[e]:!0})),y=(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:`${l.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),S=(0,t.computed)(()=>{const g={};return l.headHeight!=50&&(g.height=de(l.headHeight)),g}),b=g=>{const A=+(l.pullDistance||l.headHeight);let B=g;return g>A&&(g<A*2?B=(g+A)/2:B=A+g/4),Math.round(B)},f=(g,A)=>{const B=+(l.pullDistance||l.headHeight);c.distance=g,A?c.status="loading":g===0?c.status="normal":g<B?c.status="pulling":c.status="loosing",a("change",{status:c.status,distance:g})},k=()=>c.status!=="loading"&&c.status!=="complete",d=()=>p.value==window?xi()==0:p.value&&p.value.scrollTop==0,C=g=>{k()&&(d()?(u.start(g),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},N=g=>{k()&&c.moving&&(u.move(g),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(g.cancelable&&g.preventDefault(),f(b(u.state.deltaY))))},v=()=>{c.moving=!1,c.isPullRefresh&&k()&&u.state.deltaY&&(c.status==="loosing"?(f(+l.headHeight,!0),a("update:modelValue",!0),(0,t.nextTick)(()=>a("refresh"))):f(0)),setTimeout(()=>{u.reset()},0)};return(0,t.watch)(()=>l.modelValue,g=>{g?f(+l.headHeight,!0):f(0)}),()=>{const g=[];let A=null;c.status==="loading"?(A=r?.loading?.()??null,A||(A=(0,t.h)(o,{class:["fox-pull-refresh-container-topbox-icon"]}))):c.status==="pulling"?A=r?.pulling?.()??null:c.status==="loosing"&&(A=r?.loosing?.()??null),A&&g.push(A);const B=(0,t.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[y.value]);g.push(B);const V=(0,t.h)("div",{class:["fox-pull-refresh-container-topbox"],style:S.value},g),T=(0,t.h)("div",{class:"fox-pull-refresh-container",style:w.value},[V,r?.default?.()]),_={ref:m,class:h.value};return Yn()?Object.assign(_,{onTouchstart:C,onTouchmove:N,onTouchend:v}):Object.assign(_,{onMousedown:C,onMousemove:N,onMouseup:v}),(0,t.h)("div",_,[T])}}}),{componentName:W1,create:Y1,scope:X1}=J("pull-refresh"),Q1=Y1(j1(W1,X1,le.Loading)),ha=Q1,{create:G1}=J("notify"),Z1=G1({components:{[ge.name]:ge},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const o=()=>{e.onClick&&e.onClick()};let l=null;const a=()=>{l&&clearTimeout(l),l=null},r=()=>{n("update:visible",!1)},s=(0,t.ref)(!1),i=(0,t.watch)(()=>e.visible,m=>{s.value=e.visible;const p=e.duration;m&&p&&(l=setTimeout(()=>{r()},p))},{immediate:!0});return{onAfterLeave:()=>{a(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:o,isShowPopup:s}}});function J1(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(s,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.isShowPopup=i),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-notify",`fox-notify--${e.type}`,e.className]),style:(0,t.normalizeStyle)({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}var va=oe(Z1,[["render",J1]]),Wl={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function},mt=[],Kt=[],qi=e=>{if(e){const n=document.getElementById(e);Kt=Kt.filter(o=>o.id!==e),mt=mt.filter(o=>o!==e),n&&document.body.removeChild(n)}else mt.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),Kt=[],mt=[]},eS=e=>{const n=document.getElementById(e.id);if(n){const o=Kt.find(a=>a.id===e.id);o?e={...Wl,...o,...e}:e={...Wl,...e};const l=(0,t.createVNode)(va,e);return(0,t.render)(l,n),l.component.data}},Pt=e=>{e.unmount=qi;let n;if(e.id){if(n=e.id,mt.find(a=>a===e.id))return eS(e)}else n=new Date().getTime()+"";e={...Wl,...e},e.id=n,mt.push(e.id),Kt.push(e);const o=document.createElement("view");o.id="notify-"+e.id;const l=(0,t.createVNode)({setup(){return e.teleport=`#notify-${e.id}`,(0,t.onMounted)(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(o)},e.duration)}),()=>(0,t.h)(va,e)}});document.body.appendChild(o),(0,t.render)(l,o)},Mt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},ga={text(e,n={}){return Mt(e),Pt({...n,msg:e})},primary(e,n={}){return Mt(e),Pt({...n,msg:e,type:"primary"})},success(e,n={}){return Mt(e),Pt({...n,msg:e,type:"success"})},danger(e,n={}){return Mt(e),Pt({...n,msg:e,type:"danger"})},warn(e,n={}){return Mt(e),Pt({...n,msg:e,type:"warning"})},hide(){qi()},install(e){e.use(va)}},{create:tS}=J("toast"),nS=tS({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const a=()=>{o&&(clearTimeout(o),o=null)},r=()=>{l.mounted=!1},s=()=>{a(),e.duration&&(o=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),(0,t.watch)(()=>e.duration,y=>{y&&s()});const u=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),m=()=>{const y=se(e.iconSize);return(0,t.h)(e.icon,{width:y,height:y,color:e.iconColor})},p=(0,t.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":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:l,hide:r,clickCover:i,renderIcon:m,hasIcon:u,toastBodyClass:p,toastIconWrapperClass:c,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),lS={key:1,class:"fox-toast-title"},oS=["innerHTML"];function aS(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.toastBodyClass),style:(0,t.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[(0,t.createElementVNode)("view",{class:"fox-toast-inner",style:(0,t.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.toastIconWrapperClass)},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon())))],2)):(0,t.createCommentVNode)("",!0),e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",lS,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,oS)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var ya=oe(nS,[["render",aS]]),Yl={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},pt=[],Ut=[],Pi=e=>{if(e){const n=document.getElementById(e);Ut=Ut.filter(o=>o.id!==e),pt=pt.filter(o=>o!==e),n&&document.body.removeChild(n)}else pt.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),Ut=[],pt=[]},rS=e=>{const n=document.getElementById(e.id);if(n){const o=Ut.find(l=>l.id===e.id);return o?e={...Yl,...o,...e}:e={...Yl,...e},(0,t.render)((0,t.createVNode)(ya,e),n),$t}},zt=e=>{e.unmount=Pi;let n;if(e.id){if(n=e.id,pt.find(l=>l===e.id))return rS(e)}else n=new Date().getTime()+"";e={...Yl,...e},e.id=n,pt.push(e.id),Ut.push(e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(ya,e),o),document.body.appendChild(o),$t},sn=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},$t={text(e,n={}){return sn(e),zt({...n,type:"text",msg:e})},success(e,n={}){return sn(e),zt({icon:le.Success,...n,msg:e,type:"success"})},fail(e,n={}){return sn(e),zt({icon:le.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return sn(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){Pi(e)},install(e){e.use(ya),e.config.globalProperties.$toast=$t}},{componentName:f2,create:iS}=J("audio"),sS=iS({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,[jt.name]:jt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null),a=(0,t.reactive)({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});(0,t.onMounted)(()=>{var S=["webkitVisibilityState","visibilitychange"];try{for(let b=0;b<S.length;b++)document.addEventListener(S[b],()=>{document.hidden?l.value.pause():a.playing&&setTimeout(()=>{l.value.play()},200)})}catch(b){b.message}});const r=S=>{const b=l.value;e.autoplay&&b&&b.paused&&b.play(),a.second=b.duration,a.duration=w(b.duration),n("can-play",S)},s=S=>{a.currentTime=parseInt(S.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,l.value.currentTime=a.currentTime,n("fastBack",a.currentTime)},u=()=>{const S=l.value;a.playing?(S.pause(),a.handPlaying=!1):(S.play(),a.handPlaying=!0),a.playing=!a.playing,n("play",a.playing)},m=()=>{a.currentTime++,l.value.currentTime=a.currentTime,n("forward",a.currentTime)},p=S=>{a.currentDuration=w(S),a.percent=S/a.second*100},c=()=>{a.playing=!1,n("ended")},h=S=>{const b=l.value;b.currentTime=a.second*S/100,n("changeProgress",b.currentTime)},y=()=>{a.hanMuted=!a.hanMuted,n("mute",a.hanMuted)},w=S=>{if(!S)return"00:00:00";let b=parseInt(S),f=Math.floor(b/3600),k=Math.floor((b-f*3600)/60),d=b-f*3600-k*60,C="";return C+=("0"+f.toString()).slice(-2)+":",C+=("0"+k.toString()).slice(-2)+":",C+=("0"+d.toString()).slice(-2),C};return(0,t.watch)(()=>a.currentTime,S=>{p(S)}),(0,t.provide)("audioParent",{children:[],props:e,audioData:a,handleMute:y,forward:m,fastBack:i,changeStatus:u}),{...(0,t.toRefs)(e),...(0,t.toRefs)(a),audioRef:l,fastBack:i,forward:m,changeStatus:u,progressChange:h,audioEnd:c,onTimeupdate:s,handleMute:y,onCanplay:r,slots:o}}}),uS={class:"fox-audio"},cS={key:0,class:"fox-audio__progress"},dS={class:"fox-audio__time"},fS={class:"fox-audio__bar"},mS={class:"fox-audio__time"},pS={key:1,class:"fox-audio__icon"},hS=["controls","src","preload","autoplay","loop","muted"];function vS(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-range"),i=(0,t.resolveComponent)("Service");return(0,t.openBlock)(),(0,t.createElementBlock)("div",uS,[e.type=="progress"?((0,t.openBlock)(),(0,t.createElementBlock)("div",cS,[(0,t.createElementVNode)("div",dS,(0,t.toDisplayString)(e.currentDuration),1),(0,t.createElementVNode)("div",fS,[(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",mS,(0,t.toDisplayString)(e.duration),1)])):(0,t.createCommentVNode)("",!0),e.type=="icon"?((0,t.openBlock)(),(0,t.createElementBlock)("div",pS,[(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,hS)])}var ba=oe(sS,[["render",vS]]),{componentName:m2,create:gS,scope:yS}=J("audio-operate"),bS=gS({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:o}=(0,me.useFoxI18n)(yS),l=(0,t.reactive)((0,t.inject)("audioParent")),a=(0,t.ref)((0,t.useSlots)().default);return{...(0,t.toRefs)(e),...(0,t.toRefs)(l),customSlot:a,t:o}}}),SS={class:"fox-audio-operate"};function kS(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",SS,[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 Sa=oe(bS,[["render",kS]]),{componentName:wS,create:CS}=J("avatar"),NS=CS({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:o,bgColor:l,color:a}=(0,t.toRefs)(e),r=["large","normal","small"],s=(0,t.inject)("avatarGroup",null),i=(0,t.ref)(null),u=(0,t.reactive)({lightTheme:!1}),m=(0,t.reactive)({index:1,showMax:!1,maxIndex:0});(0,t.onMounted)(()=>{const w=s?.avatarGroupRef?.value?.children;w&&y(w)});const p=(0,t.computed)(()=>({[wS]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${o.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:`${l.value}`,color:`${a.value}`,marginLeft:m.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(m.maxIndex-m.index)}`:""})),h=(0,t.computed)(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),y=w=>{m.maxIndex=w.length;for(let S=0;S<w.length;S++)w[S]&&w[S].classList&&w[S].classList[0]=="fox-avatar"&&w[S].setAttribute("data-index",S+1);m.index=i?.value?.dataset?.index,m.index==m.maxIndex&&m.index!=s?.props?.maxCount&&(m.showMax=!0)};return{classes:p,styles:c,maxStyles:h,avatarGroup:s,visible:u,avatarRef:i,...(0,t.toRefs)(m)}}});function AS(e,n,o,l,a,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,style:(0,t.normalizeStyle)(e.showMax?e.maxStyles:e.styles),class:(0,t.normalizeClass)(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):(0,t.createCommentVNode)("",!0)],6)):(0,t.createCommentVNode)("",!0)}var Xt=oe(NS,[["render",AS]]),{componentName:BS,create:TS}=J("avatar-group"),VS=TS({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:o}){const{size:l}=(0,t.toRefs)(e),a=(0,t.ref)(null),r=(0,t.ref)(0),s=(0,t.computed)(()=>({[BS]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:a,index:r}),{classes:s,avatarGroupRef:a}}});function xS(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"avatarGroupRef"},[(0,t.renderSlot)(e.$slots,"default")],2)}var ka=oe(VS,[["render",xS]]),yt=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function $S(e,n,o){let l=0,a=e.length-1,r=null;for(;l<=a;){r=Math.floor((l+a)/2);const s=e[r],i=o(s,n);if(i===yt.eq)return r;i===yt.lt?l=r+1:i===yt.gt&&(a=r-1)}return r}var{componentName:ES,create:DS}=J("list"),Ir=document.documentElement.clientHeight||document.body.clientHeight||667,IS=DS({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Ir},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const o=(0,t.ref)(null),l=(0,t.ref)(null),a=(0,t.ref)(null),r=(0,t.reactive)({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),s=(0,t.computed)(()=>Math.min(e.containerHeight,Ir)),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)),m=(0,t.computed)(()=>({[ES]:!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)`},h=()=>{r.cachePositions=[];for(let f=0;f<r.list.length;++f)r.cachePositions[f]={index:f,height:e.height,top:f*e.height,bottom:(f+1)*(e.height+e.margin),dValue:0}},y=()=>{let f=a.value.childNodes;f=Array.from(f).filter(v=>v.nodeType===1);const k=f[0];f.forEach((v,g)=>{if(!v)return;const{height:A}=Ie(v),B=r.cachePositions[g+r.start].height-A;B&&(r.cachePositions[g+r.start].bottom-=B,r.cachePositions[g+r.start].height=A,r.cachePositions[g+r.start].dValue=B)});let d=0;k&&(d=r.start);const C=r.cachePositions.length;let N=r.cachePositions[d].dValue;r.cachePositions[d].dValue=0;for(let v=d+1;v<C;++v){const g=r.cachePositions[v];r.cachePositions[v].top=r.cachePositions[v-1].bottom,r.cachePositions[v].bottom=r.cachePositions[v].bottom-N,g.dValue!==0&&(N+=g.dValue,g.dValue=0)}r.phantomHeight=r.cachePositions[C-1].bottom},w=(f=0)=>{let k=$S(r.cachePositions,f,(d,C)=>{const N=d.bottom;return N===C?yt.eq:N<C?yt.lt:yt.gt});return r.cachePositions[k].bottom<f&&(k+=1),k},S=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,o.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},b=()=>{const f=o.value?.scrollTop,{originStartIndex:k}=r,d=w(f);d!==k&&(r.originStartIndex=d,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)h(),y();else{S();return}}),(0,t.watch)(()=>r.start,()=>{a.value&&r.list.length>0&&y()}),{...(0,t.toRefs)(r),list:o,phantom:l,actualContent:a,getTransform:c,visibleData:p,classes:m,getContainerHeight:s,handleScrollEvent:b}}});function qS(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[(0,t.createElementVNode)("div",{class:"fox-list-phantom",style:(0,t.normalizeStyle)({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),(0,t.createElementVNode)("div",{class:"fox-list-container",style:(0,t.normalizeStyle)({transform:e.getTransform()}),ref:"actualContent"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.visibleData,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-list-item",key:s},[(0,t.renderSlot)(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}var wa=oe(IS,[["render",qS]]),{componentName:PS,create:MS}=J("circleprogress"),zS=MS({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const o=!!(0,t.useSlots)().default,l=Math.random().toString(36).slice(-8),a=(0,t.computed)(()=>({[PS]:!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)(()=>Ee(e.color)?`url(#${l})`:e.color);return{classes:a,hoverStyle:(0,t.computed)(()=>{let i=283,u=i*Number(e.progress)/100;return{stroke:Ee(e.color)?`url(#${l})`:e.color,strokeDasharray:`${u}px ${i}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:r,hoverColor:s,stop:(0,t.computed)(()=>{if(!Ee(e.color))return;let i=e.color;const u=Object.keys(i).sort((p,c)=>parseFloat(p)-parseFloat(c));let m=[];return u.map((p,c)=>{let h={key:"",value:""};h.key=p,h.value=i[p],m.push(h)}),m}),slotDefault:o,refRandomId:l}}}),LS={viewBox:"0 0 100 100"},OS=["id"],RS=["offset","stop-color"],FS=["d","stroke-width"],KS=["d","stroke","stroke-linecap","stroke-width"],US={class:"fox-circleprogress-text"},HS={key:0};function _S(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:e.radius*2+"px",width:e.radius*2+"px"})},[((0,t.openBlock)(),(0,t.createElementBlock)("svg",LS,[(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,RS))),128))],8,OS)]),(0,t.createElementVNode)("path",{class:"fox-circleprogress-path",style:(0,t.normalizeStyle)(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,FS),(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,KS)])),(0,t.createElementVNode)("div",US,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",HS,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var Ca=oe(zS,[["render",_S]]),{componentName:jS,create:WS}=J("noticebar"),YS=WS({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:le.Notice,CircleClose:le.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null),a=(0,t.ref)(null),r=(0,t.reactive)({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=(0,t.computed)(()=>({[jS]:!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})),m=(0,t.computed)(()=>{let g={};return e.color&&(g.color=e.color),e.background&&(g.background=e.background),e.direction=="vertical"&&(g.height=`${e.height}px`),g}),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 g={};if(e.complexAm)g={transform:`translateY(${r.distance}px)`};else if(r.animate){let A=~~(e.height/e.speed/4);g={transition:`all ${A==0?~~(e.height/e.speed):A}s`,"margin-top":`-${e.height}px`}}return g});(0,t.watch)(()=>e.text,g=>{h(g)}),(0,t.watch)(()=>e.list,g=>{r.scrollList=[...g]});const h=g=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!l.value||!a.value)return;const A=l.value.getBoundingClientRect().width,B=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?B>A:e.scrollable,r.isCanScroll?(r.wrapWidth=A,r.offsetWidth=B,r.duration=B/e.speed,r.animationClass="play"):r.animationClass=""},0)},y=g=>{n("click",g)},w=g=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",g)},S=g=>{r.firstRound=!1,n("across-end",g),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},b=()=>{f(),r.timer=setInterval(f,~~(e.height/e.speed/4*1e3)+e.standTime)},f=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},k=()=>{r.timer=setInterval(()=>{let g=100;for(let A=0;A<g;A++)d(A,!(A<g-1))},e.standTime+100*e.speed)},d=(g,A)=>{setTimeout(()=>{r.distance-=e.height/100,A&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},g*e.speed)},C=g=>{n("click",g)},N=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(o.default?v(o.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?k():b()},e.standTime)):h(e.text)}),(0,t.watch)(()=>o.default?o.default():[],g=>{e.direction==="vertical"&&o.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),v(g))});const v=g=>{g&&g.length>0&&(r.scrollList=g[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:m,contentStyle:p,horseLampStyle:c,wrap:l,content:a,handleClick:y,onClickIcon:w,onAnimationEnd:S,go:C,handleClickIcon:N,slots:o,toPxString:de,wrapContentClass:u}}}),XS={key:0,class:"fox-noticebar__page-lefticon"},QS={ref:"wrap",class:"fox-noticebar__page-wrap"},GS={class:"showNotica"},ZS=["onClick"];function JS(e,n,o,l,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]=(...m)=>e.handleClick&&e.handleClick(...m))},[e.showLeftIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",XS,[(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",QS,[(0,t.createElementVNode)("view",{ref:"content",class:(0,t.normalizeClass)(e.wrapContentClass),style:(0,t.normalizeStyle)(e.contentStyle),onAnimationend:n[0]||(n[0]=(...m)=>e.onAnimationEnd&&e.onAnimationEnd(...m)),"on:webkitAnimationEnd":n[1]||(n[1]=(...m)=>e.onAnimationEnd&&e.onAnimationEnd(...m))},[(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)((...m)=>e.onClickIcon&&e.onClickIcon(...m),["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",GS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(m,p)=>((0,t.openBlock)(),(0,t.createBlock)(u,{key:p,style:(0,t.normalizeStyle)({height:e.height+"px","line-height":e.height+"px"}),item:m},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,(m,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(m)},[(0,t.renderSlot)(e.$slots,"item",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(m),1)])],12,ZS))),128))],4)),(0,t.createElementVNode)("view",{class:"go",onClick:n[4]||(n[4]=m=>!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 Na=oe(YS,[["render",JS]]),ek="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/y9UkJSWAgYHj5OT/ytTY2NheXWDs7e7r7Ozv8PDs7u55eYH09fXMzMzY2NgyMD3/y9UzMzP8s8GwsLDm5+eKiorv8PDLy8s6Ojrl5ubZ2trPz88UFBTh4uLV1dXc3Ny5ubnu7u7T09O1tbXf39+zsrLx8vLR0dHJycm8vLzj5OQ3NUHq6+vo6ek2NjbGxsbCwsK3t7f9x9K+vr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l2UgpO+og/il1+l33E87H98i51kAJxjvZ0Cp08lT074JcKKB8eUJMWwH+8K3v77/7N4LkfNLAGA28qgSl1xInpquROEseRhxSkAWPOM8wxRODSIt7GNHQanCpeQAtQURq4KR80AWOsNlmIK5vCpg0ZuVoNTqS9KpaTGbVp3aKSLlVOaZPCgOIjqKc7L6ojRAlRZxs8VoK5WMy6lTjT/gRak1QKlFFxO9FKsBZzZZZSWQBY3nNKllAOdG70CtDcP9/s4DHtSzEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:p2,create:lk,scope:ok}=J("empty"),ak={empty:ek,error:tk,network:nk},rk=lk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,me.useFoxI18n)(ok),o=n(e,["description"]),{image:l,imageSize:a}=(0,t.toRefs)(e),r=(0,t.computed)(()=>a.value?typeof a.value=="number"?`width:${a.value}px;height:${a.value}px`:`width:${a.value};height:${a.value}`:""),s=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:ak[l.value];return{...o,imageUrl:s,imgStyle:r}}}),ik={class:"fox-empty"},sk=["src"],uk={key:1,class:"fox-empty-description"};function ck(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",ik,[(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,sk)):(0,t.createCommentVNode)("",!0)],64))],4),e.$slots.description?(0,t.renderSlot)(e.$slots,"description",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",uk,(0,t.toDisplayString)(e.description),1)),e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:2}):(0,t.createCommentVNode)("",!0)])}var Aa=oe(rk,[["render",ck]]),{create:dk,scope:fk}=J("video"),mk=dk({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:o}=(0,me.useFoxI18n)(fk),l=(0,t.reactive)({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),a=(0,t.ref)(null),r=(0,t.computed)(()=>e.options.disabled);(0,t.watch)(()=>e.source,v=>{v.src&&(0,t.nextTick)(()=>{l.videoElm.load()})},{immediate:!0,deep:!0}),(0,t.watch)(()=>e.options,v=>{l.state.isMuted=v?v.muted:!1},{immediate:!0});const s=()=>{l.videoElm=a.value,e.options.autoplay&&setTimeout(()=>{l.videoElm.play()},200),e.options.touchPlay&&(l.showTouchMask=!0),e.options.playsinline&&(l.videoElm.setAttribute("playsinline",e.options.playsinline),l.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),l.videoElm.setAttribute("x5-video-player-type","h5-page"),l.videoElm.setAttribute("x5-video-player-fullscreen",!1)),w(),l.showToolbox?i():(l.videoElm.addEventListener("play",()=>{l.state.playing=!0,n("play",l.videoElm)}),l.videoElm.addEventListener("pause",()=>{l.state.playing=!1,n("pause",l.videoElm)}),l.videoElm.addEventListener("ended",h),l.videoElm.addEventListener("timeupdate",yn(c,1e3)))},i=()=>{const v=a.value,g=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];l.player.$player=v,l.progressBar.progressElm=g,l.progressBar.pos=g.getBoundingClientRect(),l.videoSet.progress.width=Math.round(g.getBoundingClientRect().width)},u=()=>{if(e.options.autoplay&&e.options.disabled)return l.state.playing=!0,!1;if(l.state.playing=!l.state.playing,l.videoElm)if(l.state.playing)try{setTimeout(()=>{l.videoElm.play()},200),l.videoElm.addEventListener("progress",()=>{p()}),l.videoElm.addEventListener("timeupdate",yn(c,1e3)),l.videoElm.addEventListener("ended",h),n("play",l.videoElm)}catch{y()}else l.videoElm.pause(),n("pause",l.videoElm)},m=v=>{let g=[];const A=Math.floor(v/3600);A>0&&(A<10?g.push(`0${A}`):g.push(`${A}`));const B=Math.floor(v%3600/60);B<10?g.push(`0${B}`):g.push(`${B}`);const V=Math.round(v%3600%60);return V<10?g.push(`0${V}`):g.push(`${V}`),g.join(":")},p=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},c=()=>{const v=l.videoElm.currentTime/l.videoElm.duration;l.videoSet.progress.current=Math.round(l.videoSet.progress.width*v),l.videoSet.totalTime=m(l.videoElm.duration),l.videoSet.displayTime=m(l.videoElm.currentTime),n("time",l.videoSet.displayTime,l.videoSet.totalTime)},h=()=>{l.state.playing=!1,l.state.isEnd=!0,l.videoSet.displayTime="00:00",l.videoSet.progress.current=0,l.videoElm.currentTime=0,n("playend",l.videoElm)},y=()=>{l.state.isError=!0},w=()=>{l.state.vol=e.options.volume},S=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},b=()=>{},f=v=>{let g=v.targetTouches[0].pageX-l.progressBar.pos.left;g<=0&&(g=0),g>=l.videoSet.progress.width&&(g=l.videoSet.progress.width),l.videoSet.progress.current=g;let A=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&d(A,l.videoElm.duration)},k=v=>{let g=v.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=g;let A=g/l.videoSet.progress.width;l.videoElm.duration&&d(A,l.videoElm.duration)},d=(v,g)=>{l.videoElm.currentTime=Math.floor(v*g)},C=()=>{l.state.isError=!1,s()},N=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{s()}),{root:a,...(0,t.toRefs)(e),...(0,t.toRefs)(l),handleError:y,isDisabled:r,play:u,handleMuted:S,touchSlidSrart:b,touchSlidMove:f,touchSlidEnd:k,retry:C,fullScreen:N,t:o}}}),pk={class:"fox-video",ref:"videocon"},hk=["muted","autoplay","loop","poster","controls","preload"],vk=["src","type"],gk={class:"fox-video-controller__now"},yk={class:"fox-video-controller__progress"},bk={class:"fox-video-controller__progress-value",ref:"progressBar"},Sk={class:"fox-video-controller__played",ref:"playedBar"},kk={class:"fox-video-controller__total"},wk={class:"fox-video-error"},Ck={class:"fox-video-error-tip"};function Nk(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",pk,[(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,vk)],40,hk),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",gk,(0,t.toDisplayString)(e.videoSet.displayTime),1),(0,t.createElementVNode)("div",yk,[(0,t.createElementVNode)("div",bk,[(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",Sk,null,512)],512)]),(0,t.createElementVNode)("div",kk,(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",wk,[(0,t.createElementVNode)("p",Ck,(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 At=oe(mk,[["render",Nk]]),{create:Ak,componentName:Bk}=J("steps"),Tk=Ak({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:o}){const l=(0,t.reactive)({children:[]}),a=(0,t.computed)(()=>{const i=Bk;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&l.children.push(i)},s=i=>{n("click-step",i)};return(0,t.provide)("parent",{relation:r,state:l,props:e,onEmit:s}),()=>(0,t.h)("view",{class:a.value},o.default?.())}}),Ba=Tk,{create:Vk,componentName:xk}=J("step"),$k=Vk({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=(0,t.getCurrentInstance)(),n=(0,t.inject)("parent");n.relation(e);const o=(0,t.reactive)({dot:n.props.progressDot}),l=(0,t.computed)(()=>n.state.children.indexOf(e)+1),a=()=>{const u=l.value;return u<+n.props.current?"finish":u===+n.props.current?"process":"wait"},r=(0,t.computed)(()=>a()),s=(0,t.computed)(()=>{const u=xk;return{[u]:!0,[`${u}-${r.value}`]:!0}}),i=()=>{n.onEmit(l.value)};return{...(0,t.toRefs)(o),index:l,classes:s,handleClickStep:i}}}),Ek={class:"fox-step-head"},Dk={class:"fox-step-icon-inner"},Ik={key:1,class:"fox-step-inner"},qk={class:"fox-step-main"},Pk={class:"fox-step-title"},Mk={key:0},zk={key:0,class:"fox-step-content"},Lk=["innerHTML"];function Ok(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[(0,t.createElementVNode)("view",Ek,[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",Dk,[(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",Ik,(0,t.toDisplayString)(e.index),1))])])],2)]),(0,t.createElementVNode)("view",qk,[(0,t.createElementVNode)("view",Pk,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",Mk,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",zk,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,Lk)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var Ta=oe($k,[["render",Ok]]),{create:Rk,componentName:wl}=J("swiper"),Fk=Rk({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(),a=(0,t.reactive)({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=et(),s=(0,t.computed)(()=>({[wl]:!0})),i=(0,t.computed)(()=>e.direction==="vertical"),u=(0,t.computed)(()=>{const P=wl;return{[`${P}-inner`]:!0,[`${P}-vertical`]:i.value}}),m=(0,t.computed)(()=>{const P=wl;return{[`${P}-pagination`]:!0,[`${P}-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),h=(0,t.computed)(()=>a.children.length),y=(0,t.computed)(()=>a[i.value?"height":"width"]),w=(0,t.computed)(()=>h.value*y.value),S=(0,t.computed)(()=>a.rect?(i.value?a.rect.height:a.rect.width)-y.value*h.value:0),b=(0,t.computed)(()=>(a.active+h.value)%h.value),f=()=>{let P=0;P=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${P}px)`,[i.value?"height":"width"]:`${y.value*h.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},k=P=>{let O=[];const F=a.childrenVNode.length;let D=o?.default?.();if(D=D.filter(X=>X.children&&Array.isArray(X.children)),D.forEach(X=>{O=O.concat(X.children)}),!F)a.childrenVNode=O.slice(),P.proxy&&a.children.push(P.proxy);else if(F>O.length)a.children=a.children.filter(X=>P.proxy!==X);else if(F<O.length){for(let X=0;X<F;X++)if(O[X].key!==a.childrenVNode[X].key){P.proxy&&a.children.splice(X,0,P.proxy),P.vnode&&a.childrenVNode.splice(X,0,P.vnode);break}F!==O.length&&(P.proxy&&a.children.push(P.proxy),P.vnode&&a.childrenVNode.push(P.vnode))}else a.childrenVNode=O.slice(),P.proxy&&a.children.push(P.proxy)},d=(P,O=0)=>{let F=P*y.value;e.loop||(F=Math.min(F,-S.value));let D=O-F;return e.loop||(D=Ke(D,S.value,0)),D},C=P=>{const{active:O}=a;return P?e.loop?Ke(O+P,-1,h.value):Ke(O+P,0,h.value-1):O},N=({pace:P=0,offset:O=0,isEmit:F=!1})=>{if(h.value<=1)return;const{active:D}=a,X=C(P),te=d(X,O);if(e.loop){if(a.children[0]&&te!==S.value){const L=te<S.value;a.children[0].setOffset(L?w.value:0)}if(a.children[h.value-1]&&te!==0){const L=te>0;a.children[h.value-1].setOffset(L?-w.value:0)}}a.active=X,a.offset=te,F&&D!==a.active&&n("change",b.value),f()},v=()=>{a.moving=!0,a.active<=-1&&N({pace:h.value}),a.active>=h.value&&N({pace:-h.value})},g=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},A=P=>{v(),r.reset(),We(()=>{We(()=>{a.moving=!1,N({pace:P,isEmit:!0})})})},B=()=>{A(-1)},V=()=>{A(1)},T=P=>{v(),r.reset(),We(()=>{a.moving=!1;let O;e.loop&&h.value===P?O=a.active===0?0:P:O=P%h.value,N({pace:O-a.active,isEmit:!0})})},_=()=>{const P=fe(e.autoPlay);P<=0||h.value<=1||(g(),a.autoplayTimer=setTimeout(()=>{V(),_()},P))},G=(P=+e.initPage)=>{g(),a.rect=l.value.getBoundingClientRect(),P=Math.min(h.value-1,P),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=P,a.offset=d(a.active),a.moving=!0,f(),_()},x=P=>{e.isPreventDefault&&P.preventDefault(),e.isStopPropagation&&P.stopPropagation(),e.touchable&&(r.start(P),a.touchTime=Date.now(),g(),v())},$=P=>{e.touchable&&a.moving&&(r.move(P),c.value&&N({offset:p.value}))},z=P=>{if(!e.touchable||!a.moving)return;const O=p.value/(Date.now()-a.touchTime);if((Math.abs(O)>.3||Math.abs(p.value)>+(y.value/2).toFixed(2))&&c.value){let F=0;const D=i.value?r.offsetY.value:r.offsetX.value;e.loop?F=D>0?p.value>0?-1:1:0:F=-Math[p.value>0?"ceil":"floor"](p.value/y.value),N({pace:F,isEmit:!0})}else p.value&&N({pace:0});a.moving=!1,f(),_()};return(0,t.provide)("parent",{props:e,size:y,relation:k}),Be({prev:B,next:V,to:T}),(0,t.onDeactivated)(()=>{g()}),(0,t.onBeforeUnmount)(()=>{g()}),(0,t.watch)(()=>e.initPage,P=>{(0,t.nextTick)(()=>{G(Number(P))})}),(0,t.watch)(()=>a.children.length,()=>{(0,t.nextTick)(()=>{G()})}),(0,t.watch)(()=>e.autoPlay,P=>{fe(P)>0?_():g()}),{state:a,classes:s,classesInner:u,classesPagination:m,container:l,activePagination:b,onTouchStart:x,onTouchMove:$,onTouchEnd:z}}});function Kk(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{ref:"container",class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classesInner),style:(0,t.normalizeStyle)(e.state.style)},[(0,t.renderSlot)(e.$slots,"default")],6),(0,t.renderSlot)(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classesPagination)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.state.children.length,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("i",{style:(0,t.normalizeStyle)({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:(0,t.normalizeClass)({active:e.activePagination===i}),key:i},null,6))),128))],2)):(0,t.createCommentVNode)("",!0)],34)}var Bt=oe(Fk,[["render",Kk]]),{create:Uk,componentName:Hk}=J("swiper-item"),_k=Uk({setup(e,{slots:n}){const o=(0,t.inject)("parent");o.relation((0,t.getCurrentInstance)());const l=(0,t.reactive)({offset:0}),a=(0,t.computed)(()=>({[Hk]:!0})),r=(0,t.computed)(()=>{const i={},u=o?.props.direction;return o?.size.value&&(i[u==="horizontal"?"width":"height"]=`${o?.size.value}px`),l.offset&&(i.transform=`translate${u==="horizontal"?"X":"Y"}(${l.offset}px)`),i}),s=i=>{l.offset=i};return(0,t.onUnmounted)(()=>{o.relation((0,t.getCurrentInstance)(),"unmount")}),Be({setOffset:s}),{style:r,classes:a}}});function jk(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Tt=oe(_k,[["render",jk]]),Mi={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:Wk}=J("image-preview-item"),Yk=Wk({props:{...Mi,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 o=(0,t.reactive)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),l=et(),a=(0,t.computed)(()=>{const{rootWidth:B,rootHeight:V}=e,T=V/B;return o.imageRatio>T}),r=(0,t.computed)(()=>{const B=e.image;if(B&&B.src){const{scale:V,moveX:T,moveY:_,moving:G,zooming:x}=o,$={transitionDuration:x||G?"0s":".3s"};return V!==1&&($.transform=`scale(${V}, ${V}) translate(${T/V}px, ${_/V}px)`),$}return{}}),s=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:B,rootHeight:V}=e,T=a.value?V/o.imageRatio:B;return Math.max(0,(o.scale*T-B)/2)}return 0}),i=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:B,rootHeight:V}=e,T=a.value?V:B*o.imageRatio;return Math.max(0,(o.scale*T-V)/2)}return 0}),u=B=>{const{naturalWidth:V,naturalHeight:T}=B.target;o.imageRatio=T/V},m=()=>{p(1),o.moveX=0,o.moveY=0},p=B=>{B=Ke(B,+e.minZoom,+e.maxZoom+1),B!==o.scale&&(o.scale=B,n("scale",{scale:B,index:e.initNo}))},c=()=>{p(o.scale>1?1:2),o.moveX=0,o.moveY=0},h=B=>Math.sqrt((B[0].clientX-B[1].clientX)**2+(B[0].clientY-B[1].clientY)**2);let y,w,S,b,f,k,d;const C=B=>{const{touches:V}=B,{offsetX:T}=l;l.start(B),d=V.length,y=o.moveX,w=o.moveY,k=Date.now(),o.moving=d===1&&o.scale!==1,o.zooming=d===2&&!T.value,o.zooming&&(S=o.scale,b=h(B.touches))},N=B=>{const{touches:V}=B;if(l.move(B),(o.moving||o.zooming)&&$l(B,!0),o.moving){const{deltaX:T,deltaY:_}=l,G=T.value+y,x=_.value+w;o.moveX=Ke(G,-s.value,s.value),o.moveY=Ke(x,-i.value,i.value)}if(o.zooming&&V.length===2){const T=h(V);p(S*T/b)}},v=()=>{if(d==1&&e.video&&e.video.source||d>1)return;const{offsetX:B,offsetY:V}=l,T=Date.now()-k,_=250,G=5;B.value<G&&V.value<G&&T<_&&(f?(clearTimeout(f),f=null,c()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},_))},g=B=>{let V=!1;(o.moving||o.zooming)&&(V=!0,o.moving&&y===o.moveX&&w===o.moveY&&(V=!1),B.touches.length||(o.zooming&&(o.moveX=Ke(o.moveX,-s.value,s.value),o.moveY=Ke(o.moveY,-i.value,i.value),o.zooming=!1),o.moving=!1,y=0,w=0,S=1,o.scale<1&&m(),o.scale>e.maxZoom&&(o.scale=+e.maxZoom))),$l(B,V),v(),l.reset()},A=()=>{n("close")};return(0,t.watch)(()=>e.initNo,m),(0,t.watch)(()=>e.show,B=>{B||m()}),{...(0,t.toRefs)(o),onTouchStart:C,onTouchMove:N,onTouchEnd:g,getDistance:h,imageStyle:r,imageLoad:u,closeSwiper:A}}}),Xk=["src"];function Qk(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-video"),i=(0,t.resolveComponent)("fox-swiper-item");return(0,t.openBlock)(),(0,t.createBlock)(i,{onClick:e.closeSwiper},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{style:(0,t.normalizeStyle)(e.imageStyle),class:"fox-image-preview-box",onTouchstart:n[1]||(n[1]=(...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,Xk)):(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 Gk=oe(Yk,[["render",Qk]]),{create:Zk}=J("image-preview"),Jk=Zk({props:{...Mi,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:Gk,CircleClose:le.CircleClose,[ge.name]:ge,[Bt.name]:Bt},setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.reactive)({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),a=(0,t.computed)(()=>{const p="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${p}-right`:`${p}-left`}`}),r=(0,t.computed)(()=>An(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=p=>{p!==l.active&&(l.active=p,n("change",l.active))},i=()=>{Di(e.beforeClose,{args:[l.active],done:()=>u()})},u=()=>{l.showPop=!1,n("close")},m=()=>{if(o.value){const p=Ie(o.value);l.rootHeight=p.height,l.rootWidth=p.width}};return(0,t.watch)(()=>e.show,p=>{l.showPop=p,p&&(s(e.initNo),m())}),(0,t.watch)(()=>e.initNo,p=>{p!=l.active&&s(p)}),(0,t.onMounted)(()=>{s(e.initNo)}),{swipeRef:o,...(0,t.toRefs)(l),onClose:i,mergeImages:r,setActive:s,iconClasses:a}}}),ew={class:"fox-image-preview",ref:"swipeRef"},tw={key:0,class:"fox-image-preview-index"};function nw(e,n,o,l,a,r){const s=(0,t.resolveComponent)("image-preview-item"),i=(0,t.resolveComponent)("fox-swiper"),u=(0,t.resolveComponent)("CircleClose"),m=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(m,{"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",ew,[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",tw,(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 zi=oe(Jk,[["render",nw]]),lw=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"},ow=class{options=new lw;constructor(e){const n=Object.assign(this.options,e),{unmount:o}=xs(n,{name:"image-preview",components:[ge,At,Bt,Tt,it],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{o()})},(0,t.h)(zi,n))}})})}},cl=e=>new ow(e);cl.install=e=>{e.use(zi)};function aw(e){const n=(0,t.getCurrentInstance)();if(n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}var{componentName:h2,create:rw}=J("countup"),iw=rw({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:n}){const o=(0,t.ref)(null),l=(0,t.ref)([]),a=A=>{A&&l.value.push(A)},r=(0,t.reactive)({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:u,type:m}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,(A,B)=>{c(),b(0)}),(0,t.watch)(()=>e.machinePrizeLevel,(A,B)=>{r.prizeLevelTrun=A}),(0,t.watch)(()=>e.initNum,(A,B)=>{r.current=A,r.valFlag=!1,p()}),(0,t.watch)(()=>e.endNum,(A,B)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;s&&(i||u?m!="machine"&&b():(S(),setTimeout(()=>{r.valFlag=!0},300)))},c=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(A,B,V)=>{const T=(A.toString().split(".")[1]||"").length,_=(B.toString().split(".")[1]||"").length,G=Math.pow(10,Math.max(T,_));return V=="-"?Number((A*G-B*G).toFixed(0))/G:Number((A*G+B*G).toFixed(0))/G},y=A=>{let{num_total_len:B,pointNum:V,initDigit1:T,initDigit2:_,sortFlag:G}=r,x=G=="add"||G=="equal"?String(_)[A-(B-V)]:10-Number(String(_)[A-(B-V)]),$=G=="add"||G=="equal"?String(T)[A]:10-Number(String(T)[A]),z=A>B-V-1?-x*100+"%":A<=String(T).length-1?-$*100+"%":0;return z=="-1000%"&&(z=0),z},w=A=>{let{num_total_len:B,pointNum:V,initDigit1:T,initDigit2:_,sortFlag:G}=r,x=String(_)[A-(B-V)];return A>B-V-1?x||0:A<=String(T).length-1?String(T)[A]:0},S=()=>{let{endNum:A,initNum:B,speed:V,toFixed:T}=e,_=setInterval(()=>{if(B>A)if(r.current<=A||r.current<=V)r.current=Number(A.toFixed(T)),clearInterval(_),n("scroll-end"),r.valFlag=!1;else{let G=parseFloat(String(r.current))-parseFloat(String(V));r.current=Number(G.toFixed(T))}else if(r.current>=A)r.current=Number(A.toFixed(T)),clearInterval(_),n("scroll-end"),r.valFlag=!1;else{let G=parseFloat(String(r.current))+parseFloat(String(V));r.current=Number(G.toFixed(T))}},e.during)},b=A=>{let{initNum:B,endNum:V,toFixed:T,customBgImg:_}=e;_&&(B=e.customChangeNum);let G,x,$,z;B!=0?(T!=0&&(B=Number(B.toFixed(T))),String(B).indexOf(".")>-1?(G=String(B).split(".")[0].length,x=String(B).split(".")[1].length):(G=String(B).length,x=0)):(G=1,x=0),V!=0?(T!=0&&(V=Number(V.toFixed(T))),String(V).indexOf(".")>-1?($=String(V).split(".")[0].length,z=String(V).split(".")[1].length):($=String(V).length,z=0)):($=1,z=0);let P=G>=$?G:$,O=x>=z?x:z;r.num_total_len=P+O,r.pointNum=O,B>V?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(B,V,"-"),r.numberVal=Number(String(B))):B<V?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(V,B,"-"),r.numberVal=Number(String(V))):r.sortFlag="equal";var F=1;for(let X=0;X<r.pointNum;X++)F*=10;var D=r.numberVal*F;if(r.relNum=D,T!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(D).length),String(B).indexOf(".")>-1){let X=String(B).split(".");r.initDigit1=Number(X[0]),r.initDigit2=Number(X[1])}else r.initDigit1=B,r.initDigit2=0;i&&!_?(0,t.nextTick)(()=>{if(r.sortFlag=="equal")return!1;let X=l.value[r.num_total_len-1];f(X)}):A!==0&&C()},f=A=>{c();var B=1;r.pointNum!=0&&(B=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{k(A),r.totalCount=h(r.totalCount,B,"-"),r.totalCount<=0&&(c(),n("scroll-end"),r.valFlag=!1)},e.during)},k=A=>{let B=A.getAttribute("turn-number"),V;if(r.sortFlag=="add"?V=parseInt(String(B))+1:V=parseInt(String(B))-1>=0?parseInt(String(B))-1:9,A.setAttribute("turn-number",String(V)),(A.style.transition=="none 0s ease 0s"||V==1||!A.style.transition)&&(A.style.transition=`all linear ${e.during}ms`),V==10||r.sortFlag=="reduce"&&V==0){var T=null;A.style.top=`-${r.sortFlag=="add"?V*100:(10-V)*100}%`,A.setAttribute("turn-number","0"),T=setTimeout(()=>{T&&clearTimeout(T),A.style.transition="none",A.style.top="0",d(A,V)},.975*e.during)}else A.style.top=`-${r.sortFlag=="add"?V*100:(10-V)*100}%`;A.style.top=="-100%"&&r.sortFlag=="reduce"&&k(A.previousSibling)},d=(A,B)=>{setTimeout(()=>{B==10&&A.previousSibling&&k(A.previousSibling)},200)},C=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),(0,t.nextTick)(()=>{o.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},N=()=>{for(r.notPrize=[];r.notPrize.length<3;){var A=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(A)==-1&&r.notPrize.push(A)}};aw({machineLuck:()=>{const A=e.machineTurnMore<0?0:e.machineTurnMore;let B=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&N();for(let V=0;V<e.machineNum;V++)setTimeout(()=>{let T=B*(V+1+parseFloat(String(A)));r.prizeYPrev.length!=0&&(r.prizeY[V]=r.prizeYPrev[V]);let _=r.prizeYPrev[V]?r.prizeYPrev[V]:0,G=T+_+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(B-_);r.prizeLevelTrun<0&&(G+=e.numHeight*r.notPrize[V]),g(V,G,_)},500*V)}});const g=(A,B,V)=>{let T=setInterval(()=>{if(V<=B)V+=10,r.prizeY[A]=parseFloat(String(V));else if(clearInterval(T),T=null,r.finshMachine+=1,r.prizeY[A]=B,r.finshMachine==e.machineNum){let _=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(G=>{let x=G;for(;x>_;)x-=_;r.prizeYPrev.push(x)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return(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:o,setRef:a,topNumber:y,turnNumber:w}}}),sw={class:"fox-countup"},uw=["turn-number"];function cw(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",sw,[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*(Number(i)>e.num_total_len-e.pointNum-1?Number(i)==e.num_total_len-e.pointNum?Number(i)*1.5:Number(i)*1.3:Number(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*(Number(i)>e.num_total_len-e.pointNum-1?Number(i)*1.1:Number(i))+"px"}),"turn-number":e.turnNumber(i)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.to0_10,(u,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-countup__number-item__span",key:"dote"+m,style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},(0,t.toDisplayString)(u),5))),128))],12,uw))),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 Va=oe(iw,[["render",cw]]),dw=e=>{if(!e)return Date.now();let n=Number(e),o=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(o).getTime()},{componentName:fw,create:mw}=J("countdown"),pw=mw({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:o}){const l=(0,t.reactive)({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),a=(0,t.computed)(()=>({[fw]:!0})),r=(0,t.computed)(()=>u(l.restTime)),s=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-dw(e.startTime),l.counting||(l.counting=!0),i()},i=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const y=Date.now()-l.diffTime,w=Math.max(l.handleEndTime-y,0);l.restTime=w,w||(l.counting=!1,c(),n("on-end")),w>0&&i()}}))},u=(y,w)=>{const S=y;let b={d:0,h:0,m:0,s:0,ms:0};const f=1e3,k=60*f,d=60*k,C=24*d;return S>0&&(b.d=S>=f?Math.floor(S/C):0,b.h=Math.floor(S%C/d),b.m=Math.floor(S%d/k),b.s=Math.floor(S%k/f),b.ms=Math.floor(S%f)),w=="custom"?b:m({...b})},m=y=>{let{d:w,h:S,m:b,s:f,ms:k}=y,d=e.format;if(d.includes("DD")?d=d.replace("DD",nt(w)):S+=Number(w)*24,d.includes("HH")?d=d.replace("HH",nt(S)):b+=Number(S)*60,d.includes("mm")?d=d.replace("mm",nt(b)):f+=Number(b)*60,d.includes("ss")?d=d.replace("ss",nt(f)):k+=Number(f)*1e3,d.includes("S")){const C=nt(k,3).toString();d.includes("SSS")?d=d.replace("SSS",C):d.includes("SS")?d=d.replace("SS",C.slice(0,2)):d.includes("S")&&(d=d.replace("SS",C.slice(0,1)))}return d},p=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),i(),n("on-restart",l.restTime))},c=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},h=()=>{e.autoStart||(c(),l.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?s():l.restTime=e.time}),(0,t.watch)(()=>l.restTime,y=>{let w=u(y,"custom");n("update:modelValue",w),n("input",w)}),(0,t.watch)(()=>e.paused,(y,w)=>{w?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),i()),n("on-restart",l.restTime)):l.counting&&c()}),(0,t.watch)(()=>e.endTime,y=>{s()}),(0,t.watch)(()=>e.startTime,y=>{s()}),{...(0,t.toRefs)(e),slots:o,classes:a,start:p,pause:c,renderTime:r,reset:h}}}),hw=["innerHTML"];function vw(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,hw))],2)}var xa=oe(pw,[["render",vw]]),{create:gw}=J("badge"),yw=gw({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){return{state:(0,t.reactive)({}),stl:(0,t.computed)(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),content:(0,t.computed)(()=>{if(e.dot)return;const n=e.value,o=e.max;return typeof n=="number"&&typeof o=="number"&&o<n?`${o}+`:n})}}}),bw={class:"fox-badge"},Sw=["textContent"];function kw(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",bw,[(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,Sw),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var $a=oe(yw,[["render",kw]]),{componentName:ww,create:Cw}=J("tag"),Nw=Cw({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:(0,t.computed)(()=>{const s=ww;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 Aw(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle()),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i))},[(0,t.renderSlot)(e.$slots,"default"),e.closeable?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],6)}var Ea=oe(Nw,[["render",Aw]]),{create:Bw}=J("popover"),Tw=Bw({components:{FoxPopup:ge},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.ref)(),a=(0,t.ref)(e.visible);let r=(0,t.ref)(),s=(0,t.ref)();const i=(0,t.computed)(()=>{const k="fox-popover-arrow",d=e.location;return`${k} ${k}-${d.split("-")[0]} ${k}--${d}`}),u=(0,t.computed)(()=>{const k={},{bgColor:d,arrowOffset:C,location:N}=e,v=N.split("-")[0],g=N.split("-")[1],A=16;return d&&(k[`border${m(v)}Color`]=d),e.arrowOffset!=0&&(["bottom","top"].includes(v)&&(g||(k.left=`calc(50% + ${C}px)`),g=="start"&&(k.left=`${A+C}px`),g=="end"&&(k.right=`${A-C}px`)),["left","right"].includes(v)&&(g||(k.top=`calc(50% - ${C}px)`),g=="start"&&(k.top=`${A-C}px`),g=="end"&&(k.bottom=`${A+C}px`))),k}),m=k=>(k=k.toLowerCase(),k=k.replace(/\b\w+\b/g,d=>d.substring(0,1).toUpperCase()+d.substring(1)),k),p=(0,t.computed)(()=>{let k={};if(!r.value||!s.value)return{};const d=s.value.width,C=s.value.height,{width:N,height:v,left:g,top:A}=r.value,{location:B,offset:V}=e,T=B.split("-")[0],_=B.split("-")[1];let G=0,x=0;return An(V)&&V.length==2&&(G+=Number(V[1]),x+=Number(V[0])),N&&(["bottom","top"].includes(T)&&(k.top=`${A+(T=="bottom"?v+G:-(C+G))}px`,_||(k.left=`${-(d-N)/2+g+x}px`),_=="start"&&(k.left=`${g+x}px`),_=="end"&&(k.left=`${r.value.right+x}px`)),["left","right"].includes(T)&&(k.left=`${g+(T=="left"?-(d+G):N+G)}px`,_||(k.top=`${A-C/2+v/2-4+x}px`),_=="start"&&(k.top=`${A+x}px`),_=="end"&&(k.top=`${A+v+x}px`))),k}),c=(0,t.computed)(()=>{const k={};return e.bgColor&&(k.background=e.bgColor),k}),h=()=>{let k=Ie(o.value);e.targetId&&(k=Ie(document.querySelector(`#${e.targetId}`))),r.value=k,setTimeout(()=>{s.value={height:l.value?.clientHeight,width:l.value?.clientWidth}},0)};(0,t.onMounted)(()=>{setTimeout(()=>{h()},200)}),(0,t.watch)(()=>e.visible,k=>{a.value=k,k?(window.addEventListener("touchstart",f,!0),h()):window.removeEventListener("touchstart",f,!0)});const y=k=>{n("update",k),n("update:visible",k)},w=()=>{y(!e.visible),n("open")},S=()=>{n("update:visible",!1),n("close")},b=(k,d)=>{!k.disabled&&n("choose",k,d),e.closeOnClickAction&&S()},f=k=>{const d=o.value,C=l.value;let N=d&&!d.contains(k.target);if(e.targetId){const v=document.querySelector(`#${e.targetId}`);N=v&&!v.contains(k.target)}N&&C&&!C.contains(k.target)&&e.closeOnClickOutside&&S()};return{showPopup:a,openPopover:w,popoverArrow:i,closePopover:S,chooseItem:b,popoverRef:o,popoverContentRef:l,getRootPosition:p,customStyle:c,popoverArrowStyle:u,renderIcon:si}}}),Vw={ref:"popoverContentRef",class:"fox-popover-content-group"},xw=["onClick"],$w={class:"fox-popover-menu-item-name"};function Ew(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.targetId?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:n[0]||(n[0]=(...i)=>e.openPopover&&e.openPopover(...i))},[(0,t.renderSlot)(e.$slots,"reference")],512)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:(0,t.normalizeStyle)(e.getRootPosition)},[(0,t.createVNode)(s,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.showPopup=i),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:(0,t.normalizeStyle)(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Vw,[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)(m=>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",$w,(0,t.toDisplayString)(i.name),1)],10,xw))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}var Qt=oe(Tw,[["render",Ew]]),Dw=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:o,round:l,avatarSize:a}=(0,t.toRefs)(n),r=(0,t.computed)(()=>{const u="avatarClass";return{[u]:!0,[`${u}--${o.value}`]:o.value}});return{avatarShape:o,avatarClass:r,getBlockClass:u=>({[u]:!0,[`${u}--round`]:l.value}),getStyle:()=>a.value?{width:a.value,height:a.value}:{width:"50px",height:"50px"}}}}),{create:Iw}=J("skeleton"),qw=Iw(Dw({[Xt.name]:Xt})),Pw={key:0},Mw={key:1,class:"fox-skeleton"},zw={key:0,class:"fox-skeleton-animation"},Lw={class:"fox-skeleton-content"};function Ow(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",Mw,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",zw)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Lw,[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",Pw,[(0,t.renderSlot)(e.$slots,"default")]))}var Da=oe(qw,[["render",Ow]]),{create:Rw,componentName:Fw}=J("collapse"),Kw=Rw({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const o=(0,t.ref)(null),l=(0,t.ref)(e.modelValue||(e.accordion?"":[])),a=(0,t.computed)(()=>({[Fw]:!0}));(0,t.watch)(()=>e.modelValue,u=>{l.value=u});const r=(u,m,p=!0)=>{l.value=u,n("update:modelValue",u),n("change",u,m,p)},s=u=>{e.accordion?l.value===u?r("",u,!1):r(u,u,!0):Array.isArray(l.value)?l.value.includes(u)?r(l.value.filter(m=>m!==u),u,!1):r(l.value.concat([u]),u,!0):console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=u=>e.accordion?l.value===u:Array.isArray(l.value)?l.value.includes(u):!1;return(0,t.provide)("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:o,classes:a}}});function Uw(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"collapseDom"},[(0,t.renderSlot)(e.$slots,"default")],2)}var Ia=oe(Kw,[["render",Uw]]),{create:Hw,componentName:_w}=J("collapse-item"),jw=Hw({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=(0,t.ref)(null),o=(0,t.ref)(null),l=(0,t.reactive)((0,t.inject)("collapseParent")),a=(0,t.computed)(()=>{const c=_w;return{[c]:!0,[c+"__border"]:e.border}}),r=(0,t.computed)(()=>l?l.isExpanded(e.name):!1),s=(0,t.ref)(r.value?"auto":"0px"),i=()=>{l.updateVal(e.name)},u=()=>{r.value&&(s.value="auto")},m=()=>{s.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const c=o.value?.offsetHeight;s.value=c?`${c}px`:"auto"})})},p=()=>{const c=o.value?.offsetHeight;s.value=c?`${c}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{s.value="0px"})})};return(0,t.watch)(r,c=>{c?m():p()}),{classes:a,renderIcon:si,wrapperRef:n,contentRef:o,open:m,toggle:i,wrapperHeight:s,expanded:r,onTransitionEnd:u}}}),Ww={class:"fox-collapse-item__title-main"},Yw={class:"fox-collapse-item__title-main-value"},Xw=["innerHTML"],Qw={key:2,class:"fox-collapse-item__title-label"},Gw={key:0,class:"fox-collapse-item__title-sub"},Zw=["innerHTML"],Jw={key:0,class:"fox-collapse__item-extraWrapper"},eC={class:"fox-collapse__item-extraWrapper__extraRender"},tC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function nC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:n[0]||(n[0]=(...s)=>e.toggle&&e.toggle(...s))},[(0,t.createElementVNode)("view",Ww,[(0,t.createElementVNode)("view",Yw,[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,Xw)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",Qw,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",Gw,[(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,Zw)),(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",Jw,[(0,t.createElementVNode)("div",eC,[(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",tC,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var qa=oe(jw,[["render",nC]]),lC=(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:oC,create:aC,scope:rC}=J("table"),iC=aC({components:{RenderColumn:lC,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:o}){const{t:l}=(0,me.useFoxI18n)(rC),a=(0,t.reactive)({curData:e.data}),r=(0,t.computed)(()=>({[oC]:!0})),s=y=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${y.align?y.align:""}`]:!0}),i=y=>y.stylehead?y.stylehead:"",u=y=>y.stylecolumn?y.stylecolumn:"",m=y=>e.columns.filter(w=>w.key===y)[0],p=y=>{const w=e.columns.filter(S=>S.key===y);return w[0].stylecolumn?w[0].stylecolumn:""},c=y=>{y.sorter&&(n("sorter",y),a.curData=typeof y.sorter=="function"?a.curData.sort(y.sorter):y.sorter==="default"?a.curData.sort():a.curData)},h=()=>e.columns.map(y=>[y.key,y.render]);return(0,t.watch)(()=>e.data,y=>{a.curData=y.slice()}),{...(0,t.toRefs)(a),classes:r,cellClasses:s,getColumnItem:m,getColumnItemStyle:p,handleSorterClick:c,sortDataItem:h,t:l,stylehead:i,stylecolumn:u}}}),sC={class:"fox-table__main__head"},uC={class:"fox-table__main__head__tr"},cC=["onClick"],dC={class:"fox-table__main__body"},fC={key:1},mC={key:0,class:"fox-table__nodata"},pC={key:0,class:"fox-table__nodata__text"},hC={key:1,class:"fox-table__summary"},vC=["innerHTML"];function gC(e,n,o,l,a,r){const s=(0,t.resolveComponent)("DownArrow"),i=(0,t.resolveComponent)("RenderColumn");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-table__main",{"fox-table__main--striped":e.striped}])},[(0,t.createElementVNode)("view",sC,[(0,t.createElementVNode)("view",uC,[((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:m=>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,cC))),128))])]),(0,t.createElementVNode)("view",dC,[((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(),([m,p])=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(m))]),key:m,style:(0,t.normalizeStyle)(e.getColumnItemStyle(m))},[typeof u[m]=="function"||typeof p=="function"?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,slots:[p,u[m]],record:u},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",fC,(0,t.toDisplayString)(u[m]),1))],6))),128))]))),128))])],2),e.curData.length?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",mC,[(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",pC,(0,t.toDisplayString)(e.t("noData")),1))],2)])),e.summary?((0,t.openBlock)(),(0,t.createElementBlock)("view",hC,[(0,t.createElementVNode)("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,vC)])):(0,t.createCommentVNode)("",!0)],2)}var Pa=oe(iC,[["render",gC]]),{componentName:yC,create:bC}=J("ellipsis"),SC=bC({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const o=(0,t.ref)(null);let l=null,a=0;const r=(0,t.ref)(),s=(0,t.reactive)({exceeded:!1,expanded:!1}),i=(0,t.computed)(()=>({[yC]:!0}));(0,t.watch)(()=>e.content,(S,b)=>{S!=b&&u()}),(0,t.onMounted)(()=>{u()});const u=()=>{if(!o.value)return;const S=window.getComputedStyle(o.value);l=document.createElement("div"),Array.prototype.slice.apply(S).forEach(f=>{l.style.setProperty(f,S.getPropertyValue(f))}),l.style.position="fixed",l.style.left="999999px",l.style.top="999999px",l.style.zIndex="-1000",l.style.height="auto",l.style.minHeight="auto",l.style.maxHeight="auto",l.style.textOverflow="clip",l.style.whiteSpace="normal",l.style.webkitLineClamp="unset",l.style.display="block";const b=h(S.lineHeight==="normal"?e.lineHeight:S.lineHeight);a=Math.floor(b*(Number(e.rows)+.5)+h(S.paddingTop)+h(S.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),m()},m=()=>{if(l.offsetHeight<=a)s.exceeded=!1,document.body.removeChild(l);else{s.exceeded=!0;const S=e.content.length,b=Math.floor((0+S)/2);r.value=e.direction==="middle"?c([0,b],[b,S]):p(0,S),document.body.removeChild(l)}},p=(S,b)=>{const f=s.expanded?e.collapseText:e.expandText,k=e.content.length;if(b-S<=1)return e.direction==="end"?{leading:e.content.slice(0,S)+e.symbol}:{tailing:e.symbol+e.content.slice(b,k)};const d=Math.round((S+b)/2);return e.direction==="end"?l.innerText=e.content.slice(0,d)+e.symbol+f:l.innerText=f+e.symbol+e.content.slice(d,k),l.offsetHeight<=a?e.direction==="end"?p(d,b):p(S,d):e.direction==="end"?p(S,d):p(d,b)},c=(S,b)=>{const f=s.expanded?e.collapseText:e.expandText,k=e.content.length;if(S[1]-S[0]<=1&&b[1]-b[0]<=1)return{leading:e.content.slice(0,S[0])+e.symbol,tailing:e.symbol+e.content.slice(b[1],k)};const d=Math.floor((S[0]+S[1])/2),C=Math.ceil((b[0]+b[1])/2);return l.innerText=e.content.slice(0,d)+e.symbol+f+e.symbol+e.content.slice(C,k),l.offsetHeight<=a?c([d,S[1]],[b[0],C]):c([S[0],d],[C,b[1]])},h=S=>{if(!S)return 0;const b=S.match(/^\d*(\.\d*)?/);return b?Number(b[0]):0},y=S=>{S==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},w=()=>{n("click")};return{...(0,t.toRefs)(s),root:o,ellipsis:r,classes:i,clickHandle:y,handleClick:w}}}),kC={key:0},wC={key:1},CC={key:2};function NC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[2]||(n[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",kC,(0,t.toDisplayString)(e.content),1)),e.exceeded&&!e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",wC,[(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",CC,[(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 Ma=oe(SC,[["render",NC]]),{componentName:AC,create:BC}=J("animate"),TC=BC({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:o,loop:l,action:a}=(0,t.toRefs)(e),r=(0,t.reactive)({clicked:!1});let s=(0,t.computed)(()=>({"fox-animate__container":!0,[`${AC}-${o.value}`]:a.value==="initial"||r.clicked?o.value:!1,loop:l.value}));const i=u=>{r.clicked=!0,l.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",u)};return{...(0,t.toRefs)(r),classes:s,handleClick:i}}}),VC={class:"fox-animate"};function xC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",VC,[(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 za=oe(TC,[["render",xC]]),{componentName:$C,create:EC}=J("watermark"),DC=EC({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const o=(0,t.reactive)({base64Url:""}),{zIndex:l,gapX:a,gapY:r,width:s,height:i,rotate:u,image:m,imageWidth:p,imageHeight:c,content:h,fontStyle:y,fontWeight:w,fontColor:S,fontSize:b,fontFamily:f}=e,k=()=>{const C=document.createElement("canvas"),N=window.devicePixelRatio,v=C.getContext("2d"),g=`${(a+s)*N}px`,A=`${(r+i)*N}px`,B=s*N,V=i*N;if(C.setAttribute("width",g),C.setAttribute("height",A),v)if(m){v.translate(B/2,V/2),v.rotate(Math.PI/180*Number(u));const T=new Image;T.crossOrigin="anonymous",T.referrerPolicy="no-referrer",T.src=m,T.onload=()=>{v.drawImage(T,-p*N/2,-c*N/2,p*N,c*N),v.restore(),o.base64Url=C.toDataURL()}}else h&&(v.textBaseline="middle",v.textAlign="center",v.translate(B/2,V/2),v.rotate(Math.PI/180*Number(u)),v.font=`${y} normal ${w} ${Number(b)*N}px/${V}px ${f}`,v.fillStyle=S,v.fillText(h,0,0),v.restore(),o.base64Url=C.toDataURL());else throw new Error("当前环境不支持Canvas")};k(),(0,t.watch)(()=>[l,a,r,s,i,u,m,p,c,h,y,w,S,b,f],()=>{k()});const d=(0,t.computed)(()=>{const C=$C;return{[C]:!0,[`${C}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(o),classes:d}}});function IC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}var La=oe(DC,[["render",IC]]);function qC(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:PC,create:MC}=J("trend-arrow"),zC=MC({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=(0,t.reactive)({rateTrend:e.rate>0}),o=(0,t.computed)(()=>({[PC]:!0})),l=(0,t.computed)(()=>{const{rate:r,digits:s,showSign:i,showZero:u}=e;n.rateTrend=r>0;const m=Math.abs(r);return!u&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${qC(Number(m),s)}%`}),a=(0,t.computed)(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:u,rate:m}=e;return{color:m===0?u:i?n.rateTrend?s:r:u}});return{...(0,t.toRefs)(n),classes:o,calcRate:l,calcStyle:a}}});function LC(e,n,o,l,a,r){const s=(0,t.resolveComponent)("TriangleUp"),i=(0,t.resolveComponent)("TriangleDown");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.arrowLeft?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?(0,t.renderSlot)(e.$slots,"up-icon",{key:1},()=>[(0,t.createVNode)(s,{color:e.riseColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),Number(e.rate)!==0&&!e.rateTrend?(0,t.renderSlot)(e.$slots,"down-icon",{key:2},()=>[(0,t.createVNode)(i,{color:e.dropColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.arrowLeft?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)):(0,t.createCommentVNode)("",!0)],2)}var Oa=oe(zC,[["render",LC]]),{create:OC}=J("tour"),RC=OC({components:{[Qt.name]:Qt,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 o=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),l=(0,t.ref)({}),a=(0,t.computed)(()=>"fox-tour"),r=(0,t.computed)(()=>{const{offset:p,maskWidth:c,maskHeight:h}=e,{width:y,height:w,left:S,top:b}=l.value,f=[S+y/2,b+w/2],k=Number(c||y),d=Number(h||w);return{width:`${k+ +p[1]*2}px`,height:`${d+ +p[0]*2}px`,top:`${f[1]-d/2-+p[0]}px`,left:`${f[0]-k/2-+p[1]}px`}}),s=p=>{p=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,(0,t.nextTick)(()=>{o.showPopup=!0,i()}),n("change",o.active)},i=()=>{l.value=Ie(document.querySelector(`#${e.steps[o.active].target}`))},u=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},m=()=>{e.closeOnClickOverlay&&u()};return(0,t.onMounted)(()=>{o.active=0,i()}),(0,t.watch)(()=>e.modelValue,p=>{p&&i(),o.active=0,o.showTour=p,o.showPopup=p}),{...(0,t.toRefs)(o),classes:a,maskStyle:r,changeStep:s,close:u,handleClickMask:m}}}),FC={key:0,class:"fox-tour-content"},KC={key:0,class:"fox-tour-content-top"},UC={class:"fox-tour-content-inner"},HC={class:"fox-tour-content-bottom"},_C={class:"fox-tour-content-bottom-init"},jC={class:"fox-tour-content-bottom-operate"},WC={key:1,class:"fox-tour-content fox-tour-content-tile"},YC={class:"fox-tour-content-inner"};function XC(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Close"),i=(0,t.resolveComponent)("fox-popover");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...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,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:m,style:{height:"0"}},[m==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",FC,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",KC,[(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",UC,(0,t.toDisplayString)(u.content),1),(0,t.createElementVNode)("div",HC,[(0,t.createElementVNode)("div",_C,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",jC,[(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",WC,[(0,t.createElementVNode)("div",YC,(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 Ra=oe(RC,[["render",XC]]),{componentName:QC,create:GC}=J("barrage"),ZC=GC({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const n=new Date().getTime(),o=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[QC]:!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),m=(0,t.ref)(e.top),p=(0,t.ref)(0),c=e.speeds,h=(0,t.ref)(0);(0,t.onMounted)(()=>{y(),o&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(S(),p.value=0,w("hidden")):document.visibilityState==="visible"&&y()})}),(0,t.onUnmounted)(()=>{i.value=[],S()});const y=()=>{h.value=a.value.offsetWidth,o&&w("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${h.value}px`),f()},300)},w=d=>{let C=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const N=[];C&&Array.from(C).forEach(v=>{d=="init"?(v.style.opacity="0",N.push(v)):(v.classList="",v.style={})}),d=="init"&&(i.value=N)},S=()=>{s&&(clearTimeout(s),s=null)};(0,t.watch)(()=>e.danmu,d=>{e.danmu.length>0&&(i.value=[...d])});const b=d=>{const C=p.value%i.value.length;!e.loop&&p.value===i.value.length?i.value.splice(i.value.length,0,d):i.value.splice(C,0,d)},f=()=>{S(),s=setTimeout(()=>{k()},e.frequency)},k=()=>{const d=e.loop?p.value%i.value.length:p.value;let C=document.createElement("view");o&&typeof i.value[d]=="object"?(C=i.value[d],C?.classList?.add("fox-barrage__item")):(C.innerHTML=i.value[d],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=d%u.value*(N+m.value)+20+"px",C.style.opacity="1",!o){const v=C.offsetWidth;C.style.width=v+20+"px"}C.addEventListener("animationend",()=>{o?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:l,danmuList:i,dmBody:a,dmContainer:r,add:b}}});function JC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{ref:"dmBody",class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",{ref:"dmContainer",class:(0,t.normalizeClass)(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["slotBody","slotBody"+e.classTime])},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)],2)],2)}var Fa=oe(ZC,[["render",JC]]),{componentName:e2,create:t2,scope:n2}=J("signature"),l2=t2({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:{[st.name]:st},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:o}=(0,me.useFoxI18n)(n2),l=o(e,["unSupportTpl","reSign","confirmText"]),a=(0,t.ref)(null),r=(0,t.ref)(null),s=(0,t.computed)(()=>({[e2]:!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 k=document.createElement("canvas");return!!(k.getContext&&k.getContext("2d"))},m=()=>{a.value.addEventListener(i.events[0],p,!1)},p=k=>{k.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),a.value.addEventListener(i.events[1],c,!1),a.value.addEventListener(i.events[2],h,!1),a.value.addEventListener(i.events[3],y,!1)},c=k=>{k.preventDefault();let d=i.isSupportTouch?k.touches[0]:k;n("signing",d);let C=a.value.getBoundingClientRect(),N=d.clientX-C.left,v=d.clientY-C.top;i.ctx.lineTo(N,v),i.ctx.stroke()},h=k=>{k.preventDefault(),n("end"),a.value.removeEventListener(i.events[1],c,!1),a.value.removeEventListener(i.events[2],h,!1)},y=k=>{k.preventDefault(),a.value.removeEventListener(i.events[1],c,!1),a.value.removeEventListener(i.events[2],h,!1)},w=()=>{a.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},S=()=>{f(a.value)},b=k=>{if(!k)return!0;var d=document.createElement("canvas");return d.width=k.width,d.height=k.height,k?.toDataURL()==d.toDataURL()},f=k=>{let d;switch(e.type){case"png":d=k.toDataURL("image/png");break;case"jpg":d=k.toDataURL("image/jpeg",.8);break}n("confirm",b(k)?"请绘制签名":k,b(k)?"":d)};return(0,t.onMounted)(()=>{u()&&(i.ctx=a.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,m())}),{...l,...(0,t.toRefs)(i),canvas:a,wrap:r,isCanvasSupported:u,confirm:S,clear:w,classes:s}}}),o2={class:"fox-signature-inner",ref:"wrap"},a2=["height","width"],r2={key:0,class:"fox-signature-unsopport"};function i2(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",o2,[(0,t.withDirectives)((0,t.createElementVNode)("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,a2),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("p",r2,(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 Ka=oe(l2,[["render",i2]]),s2=[lo,ao,ro,io,uo,Ce,Hn,fo,mo,po,ho,vo,Wn,go,yo,So,ko,el,tl,wo,nl,ll,Co,No,xt,Ao,Bo,sl,To,Vo,tn,nn,Qn,xo,$o,Eo,Do,ot,Io,qo,jn,_n,Po,Mo,zo,st,Lo,Oo,Ro,it,ge,Fo,Ko,Uo,Ho,_t,_o,jo,Wo,Yo,Xo,Qo,Go,Zo,Jo,ea,ta,na,la,oa,aa,ra,ia,jt,il,Gn,Jn,Zn,ul,al,en,sa,ua,ca,da,fa,ma,pa,Yt,rl,ha,ga,ol,$t,ba,Sa,Xt,ka,wa,Wt,Ca,Na,Aa,At,Ba,Ta,Bt,Tt,Kn,cl,Va,xa,$a,Ea,Qt,Da,Ia,qa,Pa,Ma,za,La,Oa,Ra,Fa,Ka],u2=new Vs(s2,"4.0.0");exports.AbstractPageScopeKey=no;exports.ActionSheet=fa;exports.FoxActionSheet=fa;exports.ActionsheetItem=To;exports.FoxActionsheetItem=To;exports.ActionsheetPane=sl;exports.FoxActionsheetPane=sl;exports.Animate=za;exports.FoxAnimate=za;exports.Audio=ba;exports.FoxAudio=ba;exports.AudioOperate=Sa;exports.FoxAudioOperate=Sa;exports.Avatar=Xt;exports.FoxAvatar=Xt;exports.AvatarGroup=ka;exports.FoxAvatarGroup=ka;exports.BackTop=ma;exports.FoxBackTop=ma;exports.Badge=$a;exports.FoxBadge=$a;exports.Barrage=Fa;exports.FoxBarrage=Fa;exports.Broadcast=Zl;exports.BroadcastKey=ke;exports.Button=st;exports.FoxButton=st;exports.ButtonsItem=fo;exports.FoxButtonsItem=fo;exports.Calendar=Jn;exports.FoxCalendar=Jn;exports.CalendarItem=ko;exports.FoxCalendarItem=ko;exports.Cascader=Gn;exports.FoxCascader=Gn;exports.CascaderItem=yo;exports.FoxCascaderItem=yo;exports.Cell=Lo;exports.FoxCell=Lo;exports.CellGroup=Ro;exports.FoxCellGroup=Ro;exports.Checkbox=nl;exports.FoxCheckbox=nl;exports.CheckboxGroup=ll;exports.FoxCheckboxGroup=ll;exports.CheckboxItem=Co;exports.FoxCheckboxItem=Co;exports.CircleProgress=Ca;exports.FoxCircleProgress=Ca;exports.Col=Uo;exports.FoxCol=Uo;exports.Collapse=Ia;exports.FoxCollapse=Ia;exports.CollapseItem=qa;exports.FoxCollapseItem=qa;exports.Content=io;exports.FoxContent=io;exports.CountDown=xa;exports.FoxCountDown=xa;exports.CountUp=Va;exports.FoxCountUp=Va;exports.DataItemsKey=ft;exports.DateItem=So;exports.FoxDateItem=So;exports.DatePicker=Zn;exports.FoxDatePicker=Zn;exports.DateUtils=gt;exports.Dialog=Yt;exports.FoxDialog=Yt;exports.Divider=_o;exports.FoxDivider=_o;exports.Domain=$n;exports.DomainKey=$e;exports.DomainProvider=Mo;exports.FoxDomainProvider=Mo;exports.Drag=pa;exports.FoxDrag=pa;exports.Dropdown=qo;exports.FoxDropdown=qo;exports.Elevator=ea;exports.FoxElevator=ea;exports.Ellipsis=Ma;exports.FoxEllipsis=Ma;exports.Empty=Aa;exports.FoxEmpty=Aa;exports.FixedNav=Xo;exports.FoxFixedNav=Xo;exports.FloatingButton=Eo;exports.FoxFloatingButton=Eo;exports.FooterBar=ro;exports.FoxFooterBar=ro;exports.FoxGrid=jo;exports.Grid=jo;exports.FoxGridItem=Wo;exports.GridItem=Wo;exports.FoxGroup=uo;exports.Group=uo;exports.FoxHeaderBar=ao;exports.HeaderBar=ao;exports.FoxHintText=xt;exports.HintText=xt;exports.FoxIcon=Oo;exports.Icon=Oo;exports.FoxImage=Fo;exports.Image=Fo;exports.FoxImagePreview=cl;exports.ImagePreview=cl;exports.FoxIndicator=oa;exports.Indicator=oa;exports.FoxInfiniteLoading=rl;exports.InfiniteLoading=rl;exports.FoxInputItem=po;exports.InputItem=po;exports.FoxInputNumber=ul;exports.InputNumber=ul;exports.FoxInputNumberItem=Vo;exports.InputNumberItem=Vo;exports.FoxItem=Ce;exports.Item=Ce;exports.FoxLayout=Ko;exports.Layout=Ko;exports.FoxLinkItem=Ao;exports.LinkItem=Ao;exports.FoxList=wa;exports.List=wa;exports.FoxMapping=Po;exports.Mapping=Po;exports.FoxMenu=Qo;exports.Menu=Qo;exports.FoxMenuItem=Go;exports.MenuItem=Go;exports.FoxMessageBox=ot;exports.MessageBox=ot;exports.FoxMoneyItem=ho;exports.MoneyItem=ho;exports.FoxMoreButton=Do;exports.MoreButton=Do;exports.FoxNavbar=Yo;exports.Navbar=Yo;exports.FoxNoticeBar=Na;exports.NoticeBar=Na;exports.FoxNotify=ga;exports.Notify=ga;exports.FoxNumberKeyboard=ca;exports.NumberKeyboard=ca;exports.FoxOverLay=it;exports.OverLay=it;exports.FoxPage=lo;exports.Page=lo;exports.FoxPagination=ta;exports.Pagination=ta;exports.FoxPicker=en;exports.Picker=en;exports.FoxPickerItem=go;exports.PickerItem=go;exports.FoxPopover=Qt;exports.Popover=Qt;exports.FoxPopoverDialog=jn;exports.PopoverDialog=jn;exports.FoxPopup=ge;exports.Popup=ge;exports.FoxPopupWrapper=Io;exports.PopupWrapper=Io;exports.FoxPrice=Kn;exports.Price=Kn;exports.FoxProgress=Wt;exports.Progress=Wt;exports.FoxPullRefresh=ha;exports.PullRefresh=ha;exports.FoxRadio=el;exports.Radio=el;exports.FoxRadioGroup=tl;exports.RadioGroup=tl;exports.FoxRadioItem=wo;exports.RadioItem=wo;exports.FoxRange=jt;exports.Range=jt;exports.FoxRate=al;exports.Rate=al;exports.FoxRateItem=Bo;exports.RateItem=Bo;exports.FoxRollingProvider=zo;exports.RollingProvider=zo;exports.FoxRow=Ho;exports.Row=Ho;exports.FoxRowItem=Hn;exports.RowItem=Hn;exports.FoxSearchBar=il;exports.SearchBar=il;exports.FoxShortPassword=sa;exports.ShortPassword=sa;exports.FoxSideNavBar=aa;exports.SideNavBar=aa;exports.FoxSideNavBarItem=ra;exports.SideNavBarItem=ra;exports.FoxSignature=Ka;exports.Signature=Ka;exports.FoxSkeleton=Da;exports.Skeleton=Da;exports.FoxSlotItem=mo;exports.SlotItem=mo;exports.FoxStep=Ta;exports.Step=Ta;exports.FoxSteps=Ba;exports.Steps=Ba;exports.FoxStepsBar=$o;exports.StepsBar=$o;exports.FoxSticky=_t;exports.Sticky=_t;exports.FoxSubSideNavBar=ia;exports.SubSideNavBar=ia;exports.FoxSwipe=da;exports.Swipe=da;exports.FoxSwiper=Bt;exports.Swiper=Bt;exports.FoxSwiperItem=Tt;exports.SwiperItem=Tt;exports.FoxSwitch=ol;exports.Switch=ol;exports.FoxSwitchItem=No;exports.SwitchItem=No;exports.FoxTabPane=la;exports.TabPane=la;exports.FoxTabbar=Zo;exports.Tabbar=Zo;exports.FoxTabbarItem=Jo;exports.TabbarItem=Jo;exports.FoxTable=Pa;exports.Table=Pa;exports.FoxTabs=na;exports.Tabs=na;exports.FoxTabsBar=tn;exports.TabsBar=tn;exports.FoxTabsContainer=nn;exports.TabsContainer=nn;exports.FoxTabsFrame=xo;exports.TabsFrame=xo;exports.FoxTabsPane=Qn;exports.TabsPane=Qn;exports.FoxTag=Ea;exports.Tag=Ea;exports.FoxText=_n;exports.Text=_n;exports.FoxTextarea=Wn;exports.Textarea=Wn;exports.FoxTextareaItem=vo;exports.TextareaItem=vo;exports.FoxToast=$t;exports.Toast=$t;exports.FoxTour=Ra;exports.Tour=Ra;exports.FoxTrendArrow=Oa;exports.TrendArrow=Oa;exports.FoxUploader=ua;exports.Uploader=ua;exports.FoxVideo=At;exports.Video=At;exports.FoxWaterMark=La;exports.WaterMark=La;exports.InnerPageScopeKey=to;exports.PriorityPolicy=at;exports.UniqueID=Un;exports.ValidateSchema=Jr;exports.ValidateSchemaKey=ze;exports.cancelRaf=Pr;exports.clamp=Ke;exports.clearNonNumber=xl;exports.compareTo=Tl;exports.createBroadcast=Vn;exports.createValidateSchema=xn;exports.debounce=qe;exports.debounceRef=vs;exports.decimalLength=Yr;exports.default=u2;exports.defineBroadcast=is;exports.defineConfigDomain=ti;exports.defineDataItem=ni;exports.defineDomain=eo;exports.defineItem=Ae;exports.definePageState=li;exports.defineSimpleItem=Vt;exports.deleteGlobalValidator=fs;exports.disabledProperty=xe;exports.divide=Ql;exports.excludeProps=Ge;exports.extend=St;exports.floatData=rs;exports.getGlobalIcons=Pn;exports.getGlobalValidateCheckEvents=Qr;exports.getGlobalValidateResetEvents=Zr;exports.getPageContentAreaHeight=bn;exports.getPageContentAreaWidth=Sn;exports.getPageFooterAreaHeight=In;exports.getPageHeaderAreaHeight=Dn;exports.getRootDomain=ht;exports.hasSymbol=Kr;exports.includeProps=he;exports.indexOf=os;exports.injectAbstractPageScope=Jt;exports.injectInnerPageScope=Zt;exports.integerLength=Wr;exports.isArray=An;exports.isArrayLike=_r;exports.isBrowser=Qe;exports.isDate=Ue;exports.isDisplayNone=Gl;exports.isESModule=Ji;exports.isEmptyString=ue;exports.isEqual=De;exports.isFunction=vn;exports.isHidden=Ur;exports.isMap=Xi;exports.isNil=Me;exports.isNumberString=Tn;exports.isObject=Ee;exports.isPlainObject=Zi;exports.isPromise=bt;exports.isRegExp=Vl;exports.isSet=Qi;exports.isString=Rr;exports.isSubPage=ks;exports.isSymbol=Gi;exports.isTouch=Yn;exports.isWindow=Hr;exports.lastIndexOf=as;exports.makeArray=ls;exports.merge=jr;exports.multiply=zr;exports.negate=Lr;exports.nextTick=ts;exports.numberFormat=Nn;exports.objectToString=Fr;exports.once=gs;exports.overrideGlobalIcons=Ms;exports.overrideGlobalValidateHandler=cs;exports.padZero=nt;exports.preventDefault=$l;exports.property=Te;exports.provideAbstractPageScope=ai;exports.provideInnerPageScope=oi;exports.px2Number=Ss;exports.raf=Fe;exports.readonlyProperty=Ve;exports.setGlobalValidateCheckEvents=ms;exports.setGlobalValidateHandler=us;exports.setGlobalValidateMessages=hs;exports.setGlobalValidateResetEvents=ps;exports.setGlobalValidator=ds;exports.throttle=yn;exports.toBoolean=ye;exports.toNumber=fe;exports.toPadding=Oe;exports.toPx=se;exports.toPxDesc=bs;exports.toPxString=de;exports.toTypeString=Bn;exports.toValue=Pe;exports.tryTimes=Jl;exports.typeOf=kt;exports.unNumberFormat=Or;exports.updatePageState=El;exports.useBroadcast=Lt;exports.useDomain=Ze;exports.useExpose=Be;exports.useInnerSize=qn;exports.usePageState=En;exports.usePosition=co;exports.useRawTouch=Xn;exports.useRect=Ie;exports.useSize=oo;exports.useSlotChildren=so;exports.useTouch=et;exports.valueLength=be;
|