@fox-js/foxui 4.0.1-92 → 4.0.1-93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var ts=Object.create,Dr=Object.defineProperty,ns=Object.getOwnPropertyDescriptor,ls=Object.getOwnPropertyNames,os=Object.getPrototypeOf,as=Object.prototype.hasOwnProperty,We=(e,n)=>()=>(n||(e((n={exports:{}}).exports,n),e=null),n.exports),rs=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var r=ls(n),i=0,a=r.length,u;i<a;i++)u=r[i],!as.call(e,u)&&u!==o&&Dr(e,u,{get:(s=>n[s]).bind(null,u),enumerable:!(l=ns(n,u))||l.enumerable});return e},Ye=(e,n,o)=>(o=e!=null?ts(os(e)):{},rs(n||!e||!e.__esModule?Dr(o,"default",{value:e,enumerable:!0}):o,e));let t=require("vue"),rt=require("@fox-js/validator"),ae=require("@fox-js/icons-vue"),ve=require("@fox-js/i18n");var cn=window,is=typeof window<"u";function ss(){return typeof cn<"u"?cn.requestAnimationFrame||cn.webkitRequestAnimationFrame||function(e){cn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ir(e){is?cancelAnimationFrame(e):clearTimeout(e)}var Qe=ss();function bn(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]=Ql(Ne(e),Ne(n)),o==1&&(l==1?e=yl(e):n=yl(n));let r=qr(e,n);return o?o==2?"-"+Ne(r):e.length<r.length?Ne(r.substring(1)):"-"+Ne(yl(r)):Ne(r)}function yl(e){let n="",o=e.length,l=e.split(".")[1],r=l?l.length:0;for(let a=0;a<o;a++)e[a]>="0"&&e[a]<="9"?n+=9-parseInt(e[a]):n+=e[a];let i=r>0?"0."+new Array(r).join("0")+"1":"1";return qr(n,i)}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 Ql(e,n){let o=e.split("."),l=n.split("."),r=o[0].length,i=l[0].length;return r>i?l[0]=new Array(Math.abs(r-i)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(r-i)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,i=l[1]?l[1].length:0,(r||i)&&(r>i?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-i)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-i)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function qr(e,n){[e,n]=Ql(e,n);let o="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let i=parseInt(e[r])+parseInt(n[r])+l;o=i%10+o,l=Math.floor(i/10)}return l?l.toString()+o:o}var Ce=(function(e){return e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e})({});function jt(e,n=0,o=Ce.HALF_EVEN){if(o===Ce.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 r=e.split("."),i=r[0],a=r[1];if(n<0){if(n=-n,i.length<=n)return"0";{let s=i.substr(0,i.length-n);return e=s+"."+i.substr(i.length-n)+a,s=jt(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return i.length,Xa(r[1],i,l,o)?(l?"-":"")+bl(i):(l?"-":"")+i;if(r[1]){if(r[1].length<n)return(l?"-":"")+i+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(l?"-":"")+i+"."+new Array(n+1).join("0");a=r[1].substring(0,n);let u=r[1].substring(n);return u&&Xa(u,a,l,o)&&(a=bl(a),a.length>n)?(l?"-":"")+bl(i,parseInt(a[0]))+"."+a.substring(1):(l?"-":"")+i+"."+a}function Xa(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===Ce.DOWN||!o&&l===Ce.FLOOR||o&&l===Ce.CEILING)return!1;if(l===Ce.UP||o&&l===Ce.FLOOR||!o&&l===Ce.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(l){case Ce.HALF_DOWN:return!1;case Ce.HALF_UP:return!0;case Ce.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function bl(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let r=o;r>=0;r--){let i=parseInt(e[r])+n;i==10?(n=1,i=0):n=0,l+=i}return n&&(l+=n),l.split("").reverse().join("")}function El(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=Dt(e),n=Dt(n);let l=0,r=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let i=l+r;if(e=Dt(e.replace(".","")),n=Dt(n.replace(".","")),e.length<n.length){let c=e;e=n,n=c}if(n=="0")return"0";let a=n.length,u=0,s=[],d=a-1,h="";for(let c=0;c<a;c++)s[c]=e.length-1;for(let c=0;c<2*e.length;c++){let p=0;for(let g=n.length-1;g>=d&&g>=0;g--)s[g]>-1&&s[g]<e.length&&(p+=parseInt(e[s[g]--])*parseInt(n[g]));p+=u,u=Math.floor(p/10),h=p%10+h,d--}return h=Dt(us(h,i)),o==1&&(h="-"+h),h}function us(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 $l(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 r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ne(n.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ne(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=Ne(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let h=e.length-d+r;e=Ne(e.substring(0,h)+"."+e.substring(h))}else r==d&&(e=Ne(e.replace(".","")))}let i=0,a=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<a?e.substring(0,a+1):e.substring(0,a);if(e=e.indexOf(".")>-1&&e.indexOf(".")<a?e.substring(a+1):e.substring(a),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),a>s.length&&(d+=a-s.length,s=s+new Array(a-s.length+1).join("0")),i=d,u="0."+new Array(d).join("0")}for(o=o+2;i<=o;){let d=0;for(;parseInt(s)>=parseInt(n);)s=bn(s,"-"+n),d++;u+=d,e?(e[0]=="."&&(u+=".",i++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(i||(u+="."),i++,s=s+"0")}return(l==1?"-":"")+Ne(jt(u,o-2))}function Dl(e,n){return e=e.toString(),n=n.toString(),n=Il(n),bn(e,n)}function Il(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Qa(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Ga(e),Ga(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Dl(e,El(n,jt($l(e,n),0,Ce.FLOOR)));return o+l}function Ga(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Za(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]=Ql(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 Jt=class pe{value;static RoundingModes=Ce;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,l]=n.split(/[eE]/);o=Ne(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=r+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=r+Ne(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=r+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=pe.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=pe.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var i=n.indexOf(".");i=i>0?i:n.length;for(var a="",u=i;u>0;)u<o?(o=u,u=0):u-=o,a=n.substring(u,u+o)+(u<i-o&&u>=0?l:"")+a;return(r?"-":"")+a+n.substring(i)}getPrettyValue(n,o){return pe.getPrettyValue(this.value,n,o)}static round(n,o=0,l=Ce.HALF_EVEN){if(n=pe.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return jt(n,o,l)}round(n=0,o=Ce.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new pe(jt(this.value,n,o))}static floor(n){return n=pe.validate(n),n.indexOf(".")===-1?n:pe.round(n,0,Ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,Ce.FLOOR)}static ceil(n){return n=pe.validate(n),n.indexOf(".")===-1?n:pe.round(n,0,Ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,Ce.CEILING)}static add(n,o){return n=pe.validate(n),o=pe.validate(o),bn(n,o)}add(n){return new pe(bn(this.value,n.getValue()))}static subtract(n,o){return n=pe.validate(n),o=pe.validate(o),Dl(n,o)}subtract(n){return new pe(Dl(this.value,n.getValue()))}static multiply(n,o){return n=pe.validate(n),o=pe.validate(o),El(n,o)}multiply(n){return new pe(El(this.value,n.getValue()))}static divide(n,o,l){return n=pe.validate(n),o=pe.validate(o),$l(n,o,l)}divide(n,o){return new pe($l(this.value,n.getValue(),o))}static modulus(n,o){return n=pe.validate(n),o=pe.validate(o),Qa(n,o)}modulus(n){return new pe(Qa(this.value,n.getValue()))}static compareTo(n,o){return n=pe.validate(n),o=pe.validate(o),Za(n,o)}compareTo(n){return Za(this.value,n.getValue())}static negate(n){return n=pe.validate(n),Il(n)}negate(){return new pe(Il(this.value))}};function Pr(e,n){return Jt.multiply(`${e}`,`${n}`)}function Gl(e,n,o=8){return Jt.divide(`${e}`,`${n}`,o)}var O2=Jt.RoundingModes;function ql(e,n){return e=`${e}`,n=`${n}`,Jt.compareTo(e,n)}function Mr(e){return Jt.negate(e)}function $n(e,n=-1,o=!1,l=3,r=","){let i=`${e}`;if(i.length==0||i==="-")return"";let a=i.charAt(0);a=="-"?i=i.substring(1):a="";let u=i,s="",d=i.indexOf(".");d!=-1&&(u=i.substring(0,d),s=i.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let h;if(l>0){let c="",p=u.split("").reverse();for(let g=0;g<p.length;g++)c+=p[g]+((g+1)%l==0&&g+1!=p.length?r:"");s.length==0?h=`${a}${c.split("").reverse().join("")}`:h=`${a}${c.split("").reverse().join("")}.${s}`}else s.length==0?h=`${a}${u}`:h=`${a}${u}.${s}`;return h}function zr(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}var et=typeof window<"u",He=Qe;function Ve(e){return e==null}var Dn=Array.isArray,cs=e=>In(e)==="[object Map]",ds=e=>In(e)==="[object Set]",je=e=>e instanceof Date,Sn=e=>typeof e=="function",Rr=e=>typeof e=="string",fs=e=>typeof e=="symbol",xe=e=>e!==null&&typeof e=="object",yt=e=>xe(e)&&Sn(e.then)&&Sn(e.catch),Lr=Object.prototype.toString,In=e=>Lr.call(e),ms=e=>In(e)==="[object Object]",Fr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ps(e){return e.__esModule||Fr&&e[Symbol.toStringTag]==="Module"}var hs=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function bt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let i=e[o];for(let a in i){let u=n[a],s=i[a];if(u!==s)if(r===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},n[a]=bt(r,d,s)}else s!==void 0&&(n[a]=s)}}return n}var Sl=hs?Promise.resolve():null;function vs(e,...n){Sl!==null?n&&n.length>0?Sl.then(()=>{e(n)}):Sl.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function Se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function de(e){return typeof e=="number"?e:Number(e)}var gs={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function St(e){let n=Object.prototype.toString.call(e);return e==null?String(e):gs[n]||"object"}function Pl(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 Zl(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 Or(e){return e&&typeof e=="object"&&"setInterval"in e}function Kr(e){let n=!!e&&"length"in e&&e.length,o=St(e);return o==="function"||Or(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Ur(e,n){let o=+n.length,l=0,r=e.length;for(;l<o;l++)e[r++]=n[l];return e.length=r,e}function ys(e,n=[]){let o=n;return e!=null&&(Kr(Object(e))?Ur(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ee(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=St(e);if(o!==St(n))return!1;if(o==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let i=0;i<l.length;i++){let a=l[i],u=e[a],s=n[a];if(!Ee(u,s))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],i=n[l];if(!Ee(r,i))return!1}return!0}return!1}function Ml(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var me=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function qn(e){return me(e)?!1:(e.charAt(0)=="-"&&(e=e.substring(1)),me(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Hr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function _r(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 Ja(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 zl(e,n=!0,o=!0){n?e=Ja(e,".",/\./g):e=e.replace(/\./g,""),o?e=Ja(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function bs(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(Ee(e,o))return!0}):n.indexOf(e)}function Ss(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(Ee(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}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 o={};return n.forEach(l=>{for(const r in l)o[r]=e[r]}),o}function tt(e,...n){const o=[];n.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const l={};for(const r in e)o.includes(r)||(l[r]=e[r]);return l}var ks=(e,n,o)=>{const l=Object.assign({},e),r=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(i=>{r.hasOwnProperty(i)?typeof r[i]=="string"&&(l[i]=n[r[i]]):n[i]&&(l[i]=n[i])}),l):e};function Rl(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var at=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},_e=(e,n,o)=>Math.min(Math.max(e,n),o);function kn(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function ws(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var Me=Symbol.for("BroadcastKey"),jr=class{parent;children=[];callbacks=new Map;exposed=null;name;persistantMessages=new Map;constructor(e,n,o){this.parent=e,this.exposed=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.callbacks=null,this.exposed=null}setPersistantMessage(e,n,o){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,r={matched:e,action:n,args:o};return this.persistantMessages.set(l,r),!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==="+"||Ml(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 r=this.callbacks.get(n);typeof r=="function"&&(l=Reflect.apply(r,null,[...o])),this.exposed&&typeof this.exposed[n]=="function"&&(l=Reflect.apply(this.exposed[n],this.exposed,[...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 i=e.resolve,a=e.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(a),typeof i=="function"&&i(...s)};e.resolve=u}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):Ml(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 r=[];if(l){const i=this.callbacks.get(n);if(typeof i=="function"){const a=Reflect.apply(i,null,[...o]);Ve(a)||r.push(a)}if(this.exposed&&typeof this.exposed[n]=="function"){const a=Reflect.apply(this.exposed[n],this.exposed,[...o]);Ve(a)||r.push(a)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...r),e.messagingPolicy==="Once")return r}return this.children.forEach(i=>{const a=Reflect.apply(i.emit,i,[{...e},n,...o]);Array.isArray(a)&&a.length>0&&Reflect.apply([].push,r,[...a])}),r}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 r=e.resolve,i=e.uniqueId??"",a=(...u)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...u)};e.resolve=a}e.cachePolicy="None"}const l=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...e},n,...o]);Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(e,n){this.callbacks.set(e,n)}};function en(e,n,o,l){const r=new jr(n,e,o);if(l&&typeof l=="object")for(const i in l)r.on(i,l[i]);return r}function Lt(e){let n=e?.[Me];return!n&&(0,t.hasInjectionContext)()&&(n=(0,t.inject)(Me,null)),n}var Cs=class{error(e,n){const o=Lt(n.exposed);o?o.emit({name:"*"},"setErrorTip",e):n.exposed&&typeof n.exposed.setErrorTip=="function"&&n.exposed.setErrorTip(e)}reset(e){const n=Lt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}success(e){const n=Lt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}decorate(e,n,o){Array.isArray(e)||(e=[e]);const l=Lt(o.exposed),r=n.find(a=>a.required===!0||a.type==="required"&&a.required!==!1),i=e.find(a=>a.required===!0||a.type==="required"&&a.required!==!1);!r&&i?l?l.emit({name:"*"},"setRequired",!0):o.exposed&&typeof o.exposed.setRequired=="function"&&o.exposed.setRequired(!0):r&&!i&&(l?l.emit({name:"*"},"setRequired",!1):o.exposed&&typeof o.exposed.setRequired=="function"&&o.exposed.setRequired(!1),this.reset(o))}getValue(e){return e.props.modelValue??e.exposed.modelValue}},Kt=new Cs;function Ns(e){Kt=e}function As(e){Kt?Object.assign(Kt,e):Kt=e}function Bs(e,n){rt.Schema.setValidator(e,n)}function Ts(e){rt.Schema.deleteValidator(e)}var Wr=["blur","clear"];function Vs(e){Wr=e}function Yr(){return Wr}var Xr=["focus","change","setValue"];function xs(e){Xr=e}function Qr(){return Xr}function Es(e){rt.Schema.messages(e)}function It(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const r=n.findIndex(i=>i.type===l.type);r!==-1&&n.splice(r,1),n.push(l)})}),n}function dn(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var Xe=Symbol("ValidateSchemaKey"),Gr=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(){this.descriptor.pureDataValidate!==!0&&this.descriptor.valueName&&this.descriptor.context?.attrs&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const e=dn(It(this.attrRules,this.rules)),n=[],o=this.descriptor.context?.attrs??{};for(let r in o){let i=o[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let u={type:r};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let a=this.getValidator(r);if(a!==null){let u={type:r,validator:a};n.push(u)}}this.attrRules=dn(n);const l=It(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(l,e)})})}))}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=Kt;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.execHandler("getValue",this.proxy)}setValidator(e,n,o=!1){o?rt.Schema.setValidator(e,n):this.validators[e]=n}getValidator(e){let n=this.validators[e]??null;return n||(n=this.parent?.getValidator(e)??null),n}deleteValidator(e,n=!1){n?rt.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return rt.Schema.hasValidator(e);{let o=Reflect.has(this.validators,e);return!o&&this.parent!==null&&(o=this.parent.hasValidator(e,!1)),o}}setRule(e){const n=It(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=dn(e):this.rules=dn([e]);const o=It(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(o,n)})}clear(){this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=It(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const o={[`${n}`]:e},l=this.getValue(),r={[`${n}`]:l},i=new rt.Schema(o),a=this.proxy??r;return i.validate(r,{context:a}).then(u=>{if(u.pass)this.success();else{let s="error";Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors[0].message??s,u.errors=[u.errors[0]],u.errors[0].ref=a),this.error(s)}return u}).catch(u=>{const s=u.message??`${u}`;return this.error(s),u})}}return Promise.resolve({pass:!0})}};function Pn(e,n,o){o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string";const l={exposed:e,get $el(){return o.templateRefProxy?.$el},get props(){return o.props},get attrs(){return o.context?.attrs}};if(!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(i){return i.props?.[r]??i.exposed[r]}}}return new Gr(n,o,l)}var wn=Symbol.for("EventEmitterKey"),Zr=class{register=new Map;emitFn;constructor(e){this.emitFn=e??null}destroy(){this.emitFn=null,this.register.clear()}off(e,n){let o=this.register.get(e);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===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(r){console.error(r.message,r)}}),this.emitFn&&Reflect.apply(this.emitFn,null,[e,...n])}};function Ie(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function Cn(e,n){let o=0;return function(...l){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...l]))}}function $s(e,n){const o=Ie((l,r)=>{e=l,r()},n);return(0,t.customRef)((l,r)=>({get(){return l(),e},set(i){o(i,r)}}))}function Ds(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function Jl(e,n,o,l=0,r=!0){let i=n,a=0;if(r){const s=e();if(a++,s||a>o)return}const u=()=>{const s=e();a++,!(s||a>o)&&(i+=l,setTimeout(u,i))};setTimeout(u,i)}var Ge=Symbol("DomainKey"),Ft=Symbol("DataItemsKey"),Mn=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}componentPublicExposed={};_props=(0,t.reactive)({});_datas={};constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={},this._datas={},this.componentPublicExposed={}}setData(e,n){this._datas[e]=n}getData(e){return this._datas[e]}hasData(e){return Reflect.has(this._datas,e)}deleteData(e){return Reflect.deleteProperty(this._datas,e)}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}},Is=new Mn;function ht(){return Is}function nt(){return(0,t.inject)(Ge,null)}var kl=Symbol("OriginalDateKey");function eo(e,n,o){const l=(0,t.hasInjectionContext)(),r=l?(0,t.getCurrentScope)():null;let i=l?(0,t.inject)(Ge,null):null;i===null&&(i=ht());const a=n;let u=new Mn(a);u.parent=i;const s=b=>{u?.hasData(kl)||c(b),u?.set("modelValue",b)},d=()=>u?.getForSelf("modelValue")??null,h=()=>u?.getData(kl)??null,c=b=>{const f={};bt(!0,f,(0,t.toRaw)(b)),u.setData(kl,f)},p=e.props,g=e.ignorePropKeys;(0,t.isReactive)(p)||typeof p=="function"?(0,t.watch)(p,b=>{u?.merge(b,g),b.modelValue&&c(b.modelValue)},{immediate:!0}):(u.merge(p,g),p.modelValue&&c(p.modelValue));const N=(b,f)=>{u?.set(b,f)},k=b=>u?.getForSelf(b)??null;if(u.componentPublicExposed[Ge]=u,(0,t.provide)(Ge,u),r!==null){const b=(0,t.inject)(Me,null),f=en(u.componentPublicExposed,b,a,o);u.broadcast=f,u.componentPublicExposed[Me]=f,(0,t.provide)(Me,f),u.componentPublicExposed.broadcast=(v,y,...V)=>{if(f)return Reflect.apply(f.emit,f,[v,y,...V])};const m=(0,t.inject)(Xe,null),S=Pn(u.componentPublicExposed,m,{componentName:"",context:e.context});u.validateSchema=S,u.componentPublicExposed[Xe]=S,(0,t.provide)(Xe,S),u.componentPublicExposed[Ft]=new Map,u.componentPublicExposed.validate=async(v=!0)=>{const y=[];let V=null;const T={};let A=!1;if(v===!0)V={name:"*"},A=!0;else if(Array.isArray(v)&&v.length>0){const C=v;V={name:q=>q?C.indexOf(q)!==-1:!1},A=!0}else if(v!=null&&typeof v=="object"){const C=v;if(C.deep!==!1){if(Object.assign(T,C),Array.isArray(C.include)&&C.include.length>0){const q=C.include;V={name:H=>H?q.indexOf(H)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const q=C.exclude;V={name:H=>H?q.indexOf(H)===-1:!1}}else V={name:"*"};A=!0}}if(A&&V){T.deep=!1;const C=f?.emitToChildren(V,"validate",T);C&&Reflect.apply([].push,y,C)}return y.length==1?y[0]:y.length>1?Promise.all(y).then(C=>{let q=[];return C.forEach(H=>{H.pass===!1&&Array.isArray(H.errors)&&(q=[...q,...H.errors])}),q.length>0?{pass:!1,errors:q}:{pass:!0}}):Promise.resolve({pass:!0})};const B=e.context;u.componentPublicExposed.setNameValidateRules=(v,y=!0,V=!1)=>{if(V===!0){Reflect.ownKeys(v).forEach(T=>{let A=String(T);const C={componentName:"",fieldName:A,pureDataValidate:!0,context:B};if(u){const q=ei(u,A,C,f,S);u.componentPublicExposed[Ft].set(A,q);const H=v[A];H&&q.validateSchema.setRule(H)}});return}if(y){const T=Reflect.ownKeys(v);f?.emitToChildren({name:A=>T.includes(A),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",v,!1)}},u.componentPublicExposed.clearValidate=(v=!0)=>{let y=null;const V={};let T=!1;if(v===!0)y={name:"*"},T=!0;else if(Array.isArray(v)&&v.length>0){const A=v;y={name:C=>C?A.indexOf(C)!==-1:!1},T=!0}else if(v!=null&&typeof v=="object"){const A=v;if(A.deep!==!1){if(Array.isArray(A.include)&&A.include.length>0){const C=A.include;y={name:q=>q?C.indexOf(q)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const C=A.exclude;y={name:q=>q?C.indexOf(q)===-1:!1}}else y={name:"*"};Object.assign(V,A),T=!0}}T&&y&&(V.deep=!1,f?.emitToChildren(y,"clearValidate",V))},u.componentPublicExposed.resetFields=v=>{const y=d();if(!y)return;const V={};if(bt(!0,V,h()??{}),Array.isArray(v))v.forEach(T=>{y[T]=V[T]});else if(v&&Array.isArray(v.include))(v.include??[]).forEach(T=>{y[T]=V[T]});else if(v&&Array.isArray(v.exclude)){let T=v.exclude??[];Reflect.ownKeys(V).forEach(A=>{T.includes(A)||(y[A]=V[A])})}else Object.assign(y,V);u?.componentPublicExposed?.clearValidate(v)},u.componentPublicExposed.setModelValue=(v,y)=>{if(!y||y===a)s(v);else{const V={name:y,messagingPolicy:"Once"};f?.emitToChildren(V,"setModelValue",v)}},u.componentPublicExposed.getModelValue=()=>d(),u.componentPublicExposed.setDomainProperty=(v,y)=>{N(v,y)},u.componentPublicExposed.getDomainProperty=v=>k(v),setTimeout(function(){f?.pull()},0)}(0,t.onScopeDispose)(function(){u?.validateSchema&&u.validateSchema.destroy(),u?.broadcast&&u?.broadcast?.destroy(),u.componentPublicExposed[Ft]&&u.componentPublicExposed[Ft].clear(),u?.destroy(),u=null});const w=e.context?.expose;return{domain:u,exposeApi:(b={})=>{Object.assign(u.componentPublicExposed,b),w?.(u.componentPublicExposed)}}}function Jr(e,n){let o=(0,t.inject)(Ge,null);o===null&&(o=ht());let l=new Mn(n);l.parent=o;const r=e.props,i=e.ignorePropKeys;(0,t.isReactive)(r)||typeof r=="function"?(0,t.watch)(r,u=>{l?.merge(u,i)},{immediate:!0}):l.merge(r,i),l.componentPublicExposed[Ge]=l,(0,t.provide)(Ge,l),(0,t.onScopeDispose)(()=>{l?.destroy(),l=null});const a=e.context?.expose;return{domain:l,exposeApi:(u={})=>{Object.assign(l.componentPublicExposed,u),a?.(l.componentPublicExposed)}}}function Be(e,n,o){const l={},r=n??e.componentName??"";let i=en(l,(0,t.inject)(Me,null),r,o);l[Me]=i,(0,t.provide)(Me,i),l.broadcast=(c,p,...g)=>i?Reflect.apply(i.emit,i,[c,p,...g]):null;const a=(0,t.inject)(Xe,null);e.fieldName=e.fieldName??r;let u=Pn(l,a,e);l[Xe]=u,(0,t.provide)(Xe,u),l.validate=async(c=null)=>{if(!u)return Promise.resolve({pass:!0});const p=[];let g=null;const N={};let k=!1,w=!1;if(c===!0)g={name:"*"},w=!0,k=!0;else if(Array.isArray(c)&&c.indexOf(r)!==-1){const b=c;g={name:f=>f?b.indexOf(f)!==-1:!1},w=!0,k=!0}else if(c&&typeof c=="object"){const b=c,f=b.ignoreDisabled??!0,m=b.ignoreReadonly??!0,S=b.ignoreHidden??!0;f===!0&&e.disabled===!0||m===!0&&e.readonly===!0||S===!0&&Pl(e.templateRefProxy?.$el??e.templateRefProxy)?w=!1:(Array.isArray(b.include)&&b.include.indexOf(r)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(r),w=!0),Object.assign(N,b),k=b.deep??!1}if(w){const b=u?.validate();p.push(b)}if(k&&g){N.deep=!1;const b=i?.emitToChildren(g,"validate",N);b&&Reflect.apply([].push,p,b)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(b=>{let f=[];return b.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(f=[...f,...m.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=c=>u?.setRule(c),l.setNameValidateRules=(c,p=!1)=>{const g=c[r];g&&u?.setRule(g),p&&i&&i.emitToChildren({name:N=>Reflect.ownKeys(c).includes(N)},"setNameValidateRules",c,!1)},l.clearValidate=(c=!0)=>{if(!u)return;let p=null;const g={};let N=!1,k=!1;if(c===!0)p={name:"*"},k=!0,N=!0;else if(Array.isArray(c)&&c.indexOf(r)!==-1){const w=c;p={name:b=>b?w.indexOf(b)!==-1:!1},k=!0,N=!0}else if(c&&typeof c=="object"){const w=c;(w.ignoreHidden??!0)===!0&&Pl(e.templateRefProxy?.$el??e.templateRefProxy)?k=!1:(Array.isArray(w.include)&&w.include.indexOf(r)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(r),k=!0),Object.assign(g,w),N=w.deep??!1}k&&u?.clear(),N&&p&&(g.deep=!1,i?.emitToChildren(p,"clearValidate",g))};let s=new Zr(e.context?.emit);l[wn]=s,l.triggerEvent=(c,...p)=>{s.emit(c,...p)};const d=Ie((c="validate")=>{u&&(c==="reset"?u.clear():u.validate())},60);(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Yr()).forEach(c=>{s&&s.on(c,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Qr()).forEach(c=>{s&&s.on(c,p=>{d("reset")})}),setTimeout(function(){i?.pull()},0),(0,t.onScopeDispose)(()=>{i?.destroy(),i=null,u?.destroy(),l[Xe]=null,u=null,s?.destroy(),l[wn]=null,s=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null});const h=e.context?.expose;return{broadcast:i,validateSchema:u,emitEvent:(c,...p)=>{s&&Reflect.apply(s.emit,s,[c,...p])},onEvent:(c,p)=>{s&&Reflect.apply(s.on,s,[p])},offEvent:(c,p)=>{s&&Reflect.apply(s.off,s,[p])},componentPublicExposed:l,exposeApi:(c={})=>{Object.assign(l,c),h?.(l)}}}function ei(e,n,o,l,r){const i={},a=n??"",u={getValue(){const c=e.getForSelf("modelValue");return c?c[a]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,a):!1}};o.fieldName=a,o.validateHandler={getValue(c){return u.getValue()}};let s=Pn({},r,o);i.validate=async(c=null)=>{if(!u.isExist())return console.warn(`validate error: field [${a}] not exist`),Promise.resolve({pass:!0});const p=[];let g=!1,N=!1;if(Array.isArray(c)&&c.indexOf(a)!==-1)N=!0,g=!0;else if(c&&typeof c=="object"){const k=c;Array.isArray(k.include)&&k.include.indexOf(a)!==-1||Array.isArray(k.exclude)&&k.exclude.indexOf(a),N=!0,g=k.deep??!1}else typeof c=="boolean"&&(g=c),N=!0;if(N&&s){const k=s.validate();p.push(k)}if(g){let k=null;const w={};if(c===!0)k={name:"*"};else if(Array.isArray(c)&&c.length>0){const b=c;k={name:f=>f?b.indexOf(f)!==-1:!1}}else if(c!=null&&typeof c=="object"){const b=c;if(Object.assign(w,b),Array.isArray(b.include)&&b.include.length>0){const f=b.include;k={name:m=>m?f.indexOf(m)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const f=b.exclude;k={name:m=>m?f.indexOf(m)===-1:!1}}else k={name:"*"}}if(k&&d){w.deep=!1;const b=d.emitToChildren(k,"validate",w);Reflect.apply([].push,p,b)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(k=>{let w=[];return k.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(w=[...w,...b.errors])}),w.length>0?{pass:!1,errors:w}:{pass:!0}}):Promise.resolve({pass:!0})},i.setValidateRule=c=>s?.setRule(c),i.setNameValidateRules=c=>{const p=c[a];p&&s?.setRule(p)};let d=en(i,l,a);(0,t.onScopeDispose)(()=>{s=null,d=null});const h=o.context?.expose;return{broadcast:d,validateSchema:s,componentPublicExposed:i,exposeApi:(c={})=>{Object.assign(i,c),h?.(i)}}}function Oe(e,n){let o={};if(n){const i=(0,t.inject)(Me,null),a=en(o,i,n,{});o[Me]=a,(0,t.provide)(Me,a)}let l=new Zr(e.context?.emit);o[wn]=l,o.triggerEvent=(i,...a)=>{l.emit(i,...a)},(0,t.onScopeDispose)(()=>{l?.destroy(),Reflect.deleteProperty(o,wn),o=null,l=null});const r=e.context?.expose;return{emitEvent:(i,...a)=>{l&&Reflect.apply(l.emit,l,[i,...a])},onEvent:(i,a)=>{l&&Reflect.apply(l.on,l,[a])},offEvent:(i,a)=>{l&&Reflect.apply(l.off,l,[a])},componentPublicExposed:o,exposeApi:(i={})=>{Object.assign(o,i),r?.(o)}}}var he=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ue(e)}px`:"",qs=he;function ue(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),i=1;if(et){const{fontSize:a}=window.getComputedStyle(document.documentElement,null),u=a.indexOf("px");u>0&&(i=Number(a.substring(0,u)))}return r*=i,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))*n;const l=Number(e);return isNaN(l)?0:l}function Ps(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}var Ze="PageStateKey";function Le(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ue(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ue(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ue(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ue(e.right))),n}function Ll(e,n,o={},l=!0,r=-1,i=-1,a=0,u=0){if(e.headerHeight=ue(o.headerHeight??n.headerHeight??-1),e.headerPadding=Le(o.headerPadding??n.headerPadding),e.footerHeight=ue(o.footerHeight??n.footerHeight??-1),e.footerPadding=Le(o.footerPadding??n.footerPadding),e.contentPadding=Le(o.contentPadding??n.contentPadding),l){const s=o.height??n.height;s?e.height=ue(s,i):e.height=ue(i)-ue(a,i)-ue(u,i),e.width=ue(o.width??n.width??0,r)}}function ti(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},r=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});r&&(l.safeAreaTop=ue(r.top),l.safeAreaBottom=ue(r.bottom),l.safeAreaLeft=ue(r.left),l.safeAreaRight=ue(r.right));const i=e.get("pageLayout");if(!i)return null;Ll(l,i,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const a=(0,t.reactive)(l),u=e.getForParent(Ze);u&&(l.height=Nn(e,u),l.width=An(e,u),(0,t.watch)([()=>Nn(e,u),()=>An(e,u)],([d,h])=>{a.height=d,a.width=h}));const s=!u;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([d,h,c=-1,p=-1,g=0,N=0])=>{Ll(a,h,n,s,c,p,g,N)}),e.set(Ze,a),a}function zn(e){return e.get(Ze)}function Rn(e,n){if(n=n??e.get(Ze),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Ln(e,n){if(n=n??e.get(Ze),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function Nn(e,n){if(n=n??e.get(Ze),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Rn(e,n),l=Ln(e,n),r=ue(n.contentPadding.top??0),i=ue(n.contentPadding.bottom??0);return n.height-o-l-r-i}return 0}function An(e,n){if(n=n??e.get(Ze),n){const o=ue(n.contentPadding.left??0),l=ue(n.contentPadding.right??0);return n.contentInnerWidth??n.width-o-l}return 0}function Ms(e){return!!e.getForParent(Ze)}var to=Symbol.for("InnerPageScopeKey");function ni(e){(0,t.provide)(to,e)}function tn(e=!1){return(0,t.inject)(to,e)}var no=Symbol.for("AbstractPageScopeKey");function li(e){(0,t.provide)(no,e)}function nn(e=!1){return(0,t.inject)(no,e)}function oi(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.headerBar??e:e}function ai(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.footerBar??e:e}function ri(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.content??e:e}var Fl=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function fn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ae(e,n,o=1,l){const r=nt();return r==null?e:o===0?(0,t.computed)(()=>{const i=r.getAll(n);for(let u=i.length-1;u>=0;u--){const s=i[u];if(fn(s,l))return s}const a=e.value;return fn(a,l)?a:null}):(0,t.computed)(()=>{const i=e.value;if(fn(i,l))return i;const a=r.getAll(n);for(let u=0;u<a.length;u++){const s=a[u];if(fn(s,l))return s}return null})}function ii(e){return Ae(e,"readonly",1)}function si(e){return Ae(e,"disabled",1)}function ui(e){return Ae(e,"browse",1)}function Te(e){const n=(0,t.ref)(null),o=(0,t.ref)(null),l=si((0,t.computed)(()=>o.value??e.disabled)),r=(0,t.ref)(null);return{itemTemplateRef:n,innerDisabled:o,disabled:l,innerReadonly:r,readonly:ii((0,t.computed)(()=>r.value??e.readonly)),browse:ui((0,t.computed)(()=>e.browse))}}function qe(e,n="modelValue",o=null,l){const r=(0,t.toRef)(e,n);let i=r.value;typeof o=="function"&&(i=o(r.value));const a=(0,t.ref)(i);return(0,t.watch)(r,u=>{if(typeof o=="function"){const s=o(u);s!==a.value&&(a.value=s,l&&l("setValue",s))}else u!==a.value&&(a.value=u,l&&l("setValue",u))}),a}var ci=new Map,Bn=new Map,lo=null;function zs(e){lo=e}function Rs(){return lo}function ct(){return lo?.()??null}function di(e,n,o){if(o){let l=Bn.get(o);l||(l=new Map,Bn.set(o,l)),l.set(e,n)}else ci.set(e,n)}function lt(e,n){let o=null;if(n){let l=Bn.get(n);l&&(o=l.get(e))}return o||(o=ci.get(e)),o}function Ls(e,n){for(let o in e){const l=e[o];di(o,l,n)}}function Fs(e){Bn.delete(e)}function Os(){return{top:0,left:0,bottom:0,right:0}}function Ks(){return et?{rootWidth:window.innerHeight||document.documentElement.clientWidth||document.body.clientWidth,rootHeight:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Us(e,n){let o=e;if(n.componentPrefix){const l=o.indexOf("-");l!==-1?o=`${n.componentPrefix}${o.slice(l)}`:o=`${n.componentPrefix}-${o}`}return kn(o)}var Hs=class{packages;resizeListener=null;resizeObserver=null;_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,n);else if(l.name){const r=Us(l.name,n);e.component(r,l)}});const o=ht();if(n.autoAdjustPageLayout!==!1){const l={...n},r=this.resizeListener;typeof n.resizeDebounceDelay=="number"?this.resizeListener=Ie(()=>{const i={...l};this.updateLayout(i,o)},n.resizeDebounceDelay):this.resizeListener=()=>{const i={...l};this.updateLayout(i,o)},window.visualViewport?(r&&window.visualViewport.removeEventListener("resize",r),window.visualViewport.addEventListener("resize",this.resizeListener)):window.ResizeObserver&&(this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new window.ResizeObserver(this.resizeListener),this.resizeObserver.observe(window.document.body))}this.updateLayout(n,o)}unInstall(){window.visualViewport?this.resizeListener&&window.visualViewport.removeEventListener("resize",this.resizeListener):window.ResizeObserver&&this.resizeObserver&&this.resizeObserver.disconnect()}updateLayout(e,n){const o=e.headerBarHeight??0,l=e.footerBarHeight??0,r=bt({},Os(),e.safeAreaInset),i=Ks(),a=bt({},i.pageLayout,e.pageLayout);n=n??ht(),n.set("safeAreaInset",r),n.set("headerBarHeight",o),n.set("footerBarHeight",l),n.set("pageLayout",a),n.set("rootWidth",i.rootWidth),n.set("rootHeight",i.rootHeight);const u=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const s in e)u.indexOf(s)===-1&&n.set(s,e[s])}setScopeGetter(e){zs(e)}getScopeGetter(){return Rs()}setAPI(e,n,o){di(e,n,o)}getAPI(e,n){return lt(e,n)}batchSetAPI(e,n){Ls(e,n)}clearScopeAPI(e){Fs(e)}getRootDomain(){return ht()}};function J(e){const n=`fox-${e}`,o=kn(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=(r,i)=>{let a=l.name;i?.componentPrefix&&(a=`${i.componentPrefix}-${l.baseName}`,a=kn(a)),r.component(a,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var _s=(e,n)=>{let o=document.body;const l=e.teleport||"body";l!="body"&&(Rr(l)?o=document.querySelector(l):o=e.teleport);const r=document.createElement("view");r.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let i={};Sn(n.wrapper)?i=n.wrapper(o,r):i=n.wrapper;const a=(0,t.createApp)(i,e),u=n.components;return u&&u.forEach(s=>{a.use(s)}),o.appendChild(r),{instance:a.mount(r),unmount:()=>{a.unmount(),o.removeChild(r)}}},fi=(e,n)=>e?(0,t.h)(e,n):"",ge={browse:{type:[String],required:!1,default:()=>null},disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},be={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},mi={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}},pi={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}},hi=[];for(const e in pi)hi.push(e);var js={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}},Ws=(e,n)=>({inheritAttrs:!0,props:{...ge,...mi,...js},setup(o,l){const r=!!nn(!1),i=tn(!1),{domain:a,exposeApi:u}=eo({props:o,context:l},o.name);if(a){const c=ti(a,o);u({getPageContentHeight:()=>Nn(a,c),getPageContentWidth:()=>An(a,c),getPageHeaderHeight:()=>Rn(a,c),getPageFooterHeight:()=>Ln(a,c)}),c&&i&&(c.contentHeight="100%")}const s=(0,t.computed)(()=>({[e]:!0,"is-inner":i})),d=(0,t.computed)(()=>({})),h=(c,p=!1)=>{a.componentPublicExposed&&typeof a.componentPublicExposed.setNameValidateRules=="function"&&a.componentPublicExposed.setNameValidateRules(c,!0,p)};return(0,t.watch)([()=>o.rules,()=>o.pureDataRules],([c,p],[g,N])=>{if(c&&g){const k=(0,t.toRaw)(g),w=(0,t.toRaw)(c),b=w?Reflect.ownKeys(w):[];(k?Reflect.ownKeys(k):[]).forEach(f=>{b.includes(f)||(w[f]=[])}),h(w)}if(p&&N){const k=(0,t.toRaw)(N),w=(0,t.toRaw)(p),b=w?Reflect.ownKeys(w):[];(k?Reflect.ownKeys(k):[]).forEach(f=>{b.includes(f)||(w[f]=[])}),h(w,!0)}},{deep:!0}),(0,t.onMounted)(()=>{o.rules&&h((0,t.toRaw)(o.rules)),o.pureDataRules&&h((0,t.toRaw)(o.pureDataRules),!0)}),()=>r?l.slots?.default?.():(0,t.h)("div",{class:s.value,style:d.value},[l.slots?.default?.()])}}),{componentName:Ys,create:Xs,scope:Qs}=J("page"),Gs=Xs(Ws(Ys,Qs)),oo=Gs;function ao(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Fn(e){const n=(0,t.unref)(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),i=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-r,height:n.clientHeight-i-a}}var vi={headerbar:{},radio:{},checkbox:{}};function Zs(e){Object.assign(vi,e)}function On(){return vi}var Js=(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(r,i){const a=oi(!1),u=tn(!1),s=a?null:nt(),d=s?zn(s):null,h=On(),c=e,p=(0,t.computed)(()=>{const x={[c]:!0,[`${c}--border`]:r.border,[`${c}--fixed`]:r.fixed};return u||(x[`${c}--safe-area-inset-top`]=r.safeAreaInsetTop),x}),g=(0,t.computed)(()=>({[`${c}__inner`]:!0,[`${c}__inner--${r.align}`]:!0})),N=Ve(r.height)?null:ue(r.height),k=(0,t.computed)(()=>{const x={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(a)return x;if(s&&d){const M=Le(r.padding??d.headerPadding);if(Object.assign(x,M),Ve(N)||(d.headerHeight=N),x.height=d.headerHeight,x.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,x.safeAreaTop>0){const P=ue(M.top??0);x.top=x.safeAreaTop+P,x.height&&x.height>0&&(x.height=x.height+x.safeAreaTop)}return x}if(Ve(N)||(x.height=N),r.padding){const M=Le(r.padding);Object.assign(x,M)}return x}),w=(0,t.ref)(null),b=()=>d&&w.value&&!Zl(w.value)?(l||(d.headerAllHeight=ao(w.value).height),d.headerMounted=!0,!0):!1,f=Ie(b,120);let m=null;(0,t.onMounted)(()=>{a||d&&(Jl(b,50,5,50,!0),window.ResizeObserver&&w.value&&(m=new window.ResizeObserver(f),m.observe(w.value)))}),(0,t.onUnmounted)(()=>{a||d&&(d.headerMounted=!1,m&&(m.disconnect(),m=null))});const S=(0,t.computed)(()=>{const x={};return a||(k.value.height!==null&&k.value.height!==void 0&&(x.height=`${k.value.height}px`),k.value.top!==null&&k.value.top!==void 0&&(x.paddingTop=`${k.value.top}px`),k.value.left!==null&&k.value.left!==void 0&&(x.paddingLeft=`${k.value.left}px`),k.value.right!==null&&k.value.right!==void 0&&(x.paddingRight=`${k.value.right}px`),k.value.bottom!==null&&k.value.bottom!==void 0&&(x.paddingBottom=`${k.value.bottom}px`)),x}),B=(0,t.computed)(()=>{const x=k.value?.height;return Ve(x)||x<0?!0:x>0});function v(){i.emit("back")}function y(){i.emit("click-title")}function V(){i.emit("click-right")}function T(){i.emit("click-right-text")}const A=()=>{if(!r.leftShow)return null;const x=[];if(i.slots.left)x.push(i.slots.left());else{if(i.slots.leftIcon){const M=(0,t.h)("view",{class:"left-icon",onClick:v},[i.slots.leftIcon()]);x.push(M)}else{const M=r.leftIcon??h.headerbar.Left??o,P=(0,t.h)("view",{class:"left-icon",onClick:v},[(0,t.h)(M)]);x.push(P)}if(r.leftText){const M=(0,t.h)("view",{class:"left-text",onClick:v},[r.leftText]);x.push(M)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},x)},C=()=>{if(!r.rightShow)return null;const x=[];if(i.slots.right)x.push(i.slots.right());else{if(r.rightText){const M=(0,t.h)("view",{class:"right-text",onClick:T},[r.rightText]);x.push(M)}if(i.slots.rightIcon){const M=(0,t.h)("view",{class:"right-icon",onClick:V},[i.slots.rightIcon()]);x.push(M)}else if(r.rightIcon){const M=(0,t.h)("view",{class:"right-icon",onClick:V},[(0,t.h)(r.rightIcon)]);x.push(M)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},x)},q=()=>{if(!r.titleShow)return null;const x=[],M=i.slots.default?i.slots.default():null;if(M)x.push(M);else{if(r.title){const P=(0,t.h)("view",{class:"title-text"},[r.title]);x.push(P)}if(i.slots.titleIcon){const P=(0,t.h)("view",{class:"title-icon",onClick:y},[i.slots.titleIcon()]);x.push(P)}else if(r.titleIcon){const P=(0,t.h)("view",{class:"title-icon",onClick:y},[(0,t.h)(r.titleIcon)]);x.push(P)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},x)},H=()=>{const x=[],M=i.slots.bottom?i.slots.bottom():null;return M&&x.push(M),x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},x)};return()=>{if(a||!B.value)return null;const x=[];if(i.slots.all)x.push(i.slots.all());else{const M=[],P=A();P&&M.push(P);const R=q();R&&M.push(R);const z=C();if(z&&M.push(z),M.length>0){const I=(0,t.h)("view",{class:g.value},M);x.push(I)}const W=H();W&&x.push(W)}return x.length===0?null:(0,t.h)("view",{class:p.value,style:S.value,ref:w},x)}}}),{componentName:eu,create:tu,scope:nu}=J("header-bar"),lu=tu(Js(eu,nu,ae.Left,!1)),ro=lu;function ou(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,r){const i=ai(!1),a=tn(!1),u=i?null:nt(),s=u?zn(u):null,d=e,h=(0,t.computed)(()=>{const m={[d]:!0,[`${d}--${l.align}`]:!0,[`${d}--border`]:l.border,[`${d}--fixed`]:l.fixed};return a||(m[`${d}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),m}),c=Ve(l.height)?null:ue(l.height),p=(0,t.computed)(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(i)return m;if(u&&s){const S=Le(l.padding??s.footerPadding);if(Object.assign(m,S),Ve(c)||(s.footerHeight=c),m.height=s.footerHeight,m.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,m.safeAreaBottom>0){const B=ue(S.bottom??0);m.bottom=m.safeAreaBottom+B,m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)}return m}if(Ve(c)||(m.height=c),l.padding){const S=Le(l.padding);Object.assign(m,S)}return m}),g=(0,t.computed)(()=>{const m=p.value?.height;return Ve(m)||m<0?!0:m>0}),N=(0,t.ref)(null),k=()=>s&&N.value&&!Zl(N.value)?(o||(s.footerAllHeight=ao(N.value).height),s.footerMounted=!0,!0):!1,w=Ie(k,120);let b=null;(0,t.onMounted)(()=>{i||s&&(Jl(k,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(w),b.observe(N.value)))}),(0,t.onUnmounted)(()=>{i||s&&(s.footerMounted=!1,b&&(b.disconnect(),b=null))});const f=(0,t.computed)(()=>{const m={};return i||(p.value.height!==null&&p.value.height!==void 0&&(m.height=he(p.value.height)),p.value.top!==null&&p.value.top!==void 0&&(m.paddingTop=he(p.value.top)),p.value.left!==null&&p.value.left!==void 0&&(m.paddingLeft=he(p.value.left)),p.value.right!==null&&p.value.right!==void 0&&(m.paddingRight=he(p.value.right)),p.value.bottom!==null&&p.value.bottom!==void 0&&(m.paddingBottom=he(p.value.bottom))),m});return()=>{if(i||!g.value)return null;const m=r.slots.default?r.slots.default():[];return(0,t.h)("view",{ref:N,class:h.value,style:f.value},m)}}}}var{componentName:au,create:ru,scope:iu}=J("footer-bar"),su=ru(ou(au,iu,!1)),io=su;function uu(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:l,attrs:r}){const i=ri(!1),a=tn(!1),u=i?null:nt(),s=(0,t.computed)(()=>({[e]:!0})),d=u?zn(u):null,h=(0,t.computed)(()=>{const k={};if(i)return k;if(u&&d){if(o.padding){const y=Le(o.padding);Object.assign(d.contentPadding,y)}const w=Rn(u,d),b=Ln(u,d);let f="";d.contentHeight?f=`${d.contentHeight}`:f=`${d.height}px`,console.debug("[content]page height:",f),console.debug("[content]header height:",w),console.debug("[content]footer height:",b),console.debug("[content]padding:",d.contentPadding),k.height=f;let m=ue((d&&d.contentPadding&&d.contentPadding.top)??-1);(m>=0||w>0)&&(m=m<0?0:m,k.paddingTop=`${w+m}px`);let S=ue((d&&d.contentPadding&&d.contentPadding.bottom)??-1);(S>=0||b>0)&&(S=S<0?0:S,k.paddingBottom=`${b+S}px`);const B=ue((d&&d.contentPadding&&d.contentPadding.left)??-1);B>=0&&(k.paddingLeft=`${B}px`);const v=ue((d&&d.contentPadding&&d.contentPadding.right)??-1);return v>=0&&(k.paddingRight=`${v}px`),k}if(o.padding){const w=Le(o.padding);w.left&&(k.paddingLeft=`${w.left}px`),w.top&&(k.paddingTop=`${w.top}px`),w.right&&(k.paddingRight=`${w.right}px`),w.bottom&&(k.paddingBottom=`${w.bottom}px`)}return k}),c=(0,t.ref)(null),p=()=>{if(d&&c.value){const k=Fn(c.value);d.contentInnerHeight=k.height,d.contentInnerWidth=k.width}},g=Ie(p,120);let N=null;return(0,t.onMounted)(()=>{a||i||(requestAnimationFrame(p),window.ResizeObserver&&c.value&&(N=new window.ResizeObserver(g),N.observe(c.value)))}),(0,t.onUnmounted)(()=>{a||i||N&&(N.disconnect(),N=null)}),()=>i?l.default?.():(0,t.h)(o.tag??"view",{...r,ref:c,class:s.value,style:h.value},l)}}}var{componentName:cu,create:du,scope:fu}=J("content"),mu=du(uu(cu,fu)),so=mu,kt="GroupStateKey",gi=Symbol.for("GroupScopeKey");function Kn(){return(0,t.inject)(gi,!1)}function Un(e=!0){(0,t.provide)(gi,e)}function pu(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Ve(l)||(e[o]=l)})}function hu(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};pu(o,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(o),passport:0,order:{index:0}});return e.set(kt,l),l}function wl(e,n,o=-1,l=-1,r=!1,i,a,u){const s=e.get(kt);if(!s)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),l===-1&&(l=d.gutter??0),i||(i=d.minItemWidth??-1),a||(a=d.maxItemWidth??-1);const h=ue(i),c=ue(a);u||(u=d.type??"grid");const p=()=>{const g=n===""||n===-1,N=ue(n);let k=de(o);const w=ue(l);if(!g){let m=(N-(k-1)*w)/k;for(;c!==-1&&m>c;)k++,m=(N-(k-1)*w)/k;for(;h!==-1&&k>1&&m<h;)k--,m=(N-(k-1)*w)/k}let b=!1;const f=s.layout;f.value.width=n,f.value.column!==k&&(f.value.column=k,b=!0),f.value.gutter!==w&&(f.value.gutter=w,b=!0),f.value.type!==u&&(f.value.type=u,b=!0),b&&(0,t.triggerRef)(f)};if(r)p();else{const g=++s.passport;setTimeout(()=>{g===s.passport&&p()},50)}}function Hn(e,n=!1){let o;return n?o=e.getForParent(kt):o=e.get(kt),o.layout}function _n(e,n=!1){let o;return n?o=e.getForParent(kt):o=e.get(kt),o.order}function er(e,n=1){if(n==="stretch")return-1;const o=de(n);return o===-1?100:100*o/e}function jn(e,n,o=1,l=0,r){const i={};let a=0;r?a=ue(r):a=er(n.column,o),a>0&&(i.width=`${a}%`);const u=er(n.column,l);u>0&&(i["margin-left"]=`${u}%`);const s=ue(n.gutter)/2;return s>0&&(i["padding-left"]=`${s}px`,i["padding-right"]=`${s}px`),i}function Wn(e,n,o=1,l=0){if(o==="stretch"){const s=e.index%n.column,d=s+(n.column-s);return e.index=e.index+(d-s),{"grid-column":`${s+1} / -1`}}let r=de(o);if(r===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const i=de(l)%n.column;let a=(e.index+i)%n.column,u=a+r;return u>n.column?(a=0,u=a+r,e.index=e.index+(n.column-a)+r):e.index=e.index+i+r,i>0?{"grid-column":`${a+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}var yi=Symbol("RollingStateKey");function vu(e){(0,t.provide)(yi,e)}function gu(){return(0,t.inject)(yi,null)}function Ol(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(o.getPropertyValue("padding-top")),r=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function yu(e){let n=Ol(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=Ol(o),document.body.removeChild(o)}return n}function bu(e,n,o){const l=typeof e=="number"?e:parseInt(e),r=typeof n=="number"?n:parseInt(n),i=typeof o=="number"?o:parseInt(o);if(l<=0)return"1fr";const a=(l-(r-1)*i)/r;return a>0?`${a}px`:"1fr"}function bi(e){const n=[];return e.forEach(o=>{o.type===t.Fragment&&Array.isArray(o.children)?n.push(...bi(o.children)):n.push(o)}),n}function Su(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Yn(e){function n(){return bi(e?.()??[]).filter(Su)}return{getChildren:n}}var ku={...ge,...mi,...pi};function wu(e,n,o){return{props:ku,emits:["update:collapse","header-click"],setup(l,r){const{domain:i,exposeApi:a}=eo({props:l,ignorePropKeys:hi,context:r},l.prop??l.name),u=hu(i,{type:l.type}),s=Kn();Un(!0);const d=l.rollingDisplay?gu():null,h=(0,t.ref)(null),c=(0,t.computed)(()=>l.rollingDisplay?d&&!d.disabled:!1),p=(0,t.computed)(()=>s&&i?Hn(i,!0).value:null),g=(X,ne=!1)=>{i.componentPublicExposed&&typeof i.componentPublicExposed.setNameValidateRules=="function"&&i.componentPublicExposed.setNameValidateRules(X,!0,ne)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([X,ne],[K,_])=>{if(X&&K){const $=(0,t.toRaw)(K),E=(0,t.toRaw)(X),L=E?Reflect.ownKeys(E):[];($?Reflect.ownKeys($):[]).forEach(Z=>{L.includes(Z)||(E[Z]=[])}),g(E)}if(ne&&_){const $=(0,t.toRaw)(_),E=(0,t.toRaw)(ne),L=E?Reflect.ownKeys(E):[];($?Reflect.ownKeys($):[]).forEach(Z=>{L.includes(Z)||(E[Z]=[])}),g(E,!0)}},{deep:!0});const N=e,k=(0,t.computed)(()=>{const X={};if(X.height=M.value,l.width)l.width!=="auto"&&(X.width=he(l.width));else{const ne=s?_n(i,!0):null;if(p.value&&ne){if(p.value.type==="grid"){const K=Wn(ne,p.value,l.span,l.offset);Object.assign(X,K)}else if(p.value.type==="flow"){const K=jn(ne,p.value,l.span,l.offset,l.width);Object.assign(X,K)}}}return X}),w=(0,t.computed)(()=>{const X=u.layout.value.type;return X==="grid"||X==="flow"?{[`${N}--${X}`]:!0,[`${N}--${X}-justify-${l.justify}`]:!0,[`${N}--${X}-align-${l.align}`]:!0,[`${N}--gutter`]:!0}:{[`${N}--${X}`]:!0,[`${N}--gutter`]:!0}}),b=(0,t.computed)(()=>{if(u.layout.value.type==="grid"){let X="";if(l.columnWidth)X=`repeat(auto-fill, ${l.columnWidth})`;else{const ne=bu(V.value,u.layout.value.column,u.layout.value.gutter);X=`repeat(${u.layout.value.column}, ${ne})`}return{"column-gap":`${u.layout.value.gutter}px`,"grid-template-columns":X}}}),f=(0,t.toRef)(l,"gutter"),m=(0,t.toRef)(l,"column"),S=(0,t.computed)(()=>s||c.value?!0:Se(l.isWrap)),B=[],v=X=>{B.push(X)},y=()=>{let X=B.length;B.splice(0,X)},V=(0,t.ref)(-1),T=X=>{const ne=Fn(X).width;ne>0&&ne!==V.value&&(V.value=ne)};wl(i,V.value,m.value,f.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([V,m,f],([X,ne,K])=>{u.order.index=0,wl(i,X,ne,K,!1,l.minItemWidth,l.maxItemWidth,l.type)});const A=(0,t.computed)(()=>P.value?l.expandText??"":l.collapseText??""),C=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),q=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),H=(0,t.ref)(),x=(0,t.ref)(),M=(0,t.computed)(()=>R.value||he(l.height)||""),P=(0,t.ref)(!1),R=(0,t.ref)(""),z=(0,t.ref)(!1);let W=-1;const I=(X,ne=!0)=>{const K=H.value;if(K&&P.value!==X){if(W=W<=0?yu(K):W,z.value=!0,ne)if(K.style["will-change"]="height",K.ontransitionend=function(){K.ontransitionend=null,this.style["will-change"]="auto",X||(R.value="",z.value=!1)},X){let _=0;l.collapseHeight?_=l.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(_=x.value.offsetHeight),R.value=`${W}px`,(0,t.nextTick)(()=>{R.value=`${_}px`})}else R.value=`${W}px`;else if(X){let _=0;l.collapseHeight?_=l.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(_=x.value.offsetHeight),R.value=`${_}px`}else z.value=!1,R.value=`${W}px`;P.value=X,r.emit("update:collapse",X)}};(0,t.watch)(()=>l.collapse,X=>{I(X)});const Q=X=>{r.emit("header-click",X)},ee=()=>{oe()},oe=X=>{X=X??!P.value,I(X)};a({toggleCollapse:oe,doLayout:()=>{B[0]&&(T(B[0]),wl(i,V.value,m.value,f.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let G=null,F=!0;const te=X=>{if(l.rules&&g((0,t.toRaw)(l.rules)),l.pureDataRules&&g((0,t.toRaw)(l.pureDataRules),!0),!!et&&(X&&I(Se(l.collapse),!1),l.autoLayout&&Array.isArray(B)&&B.length>0)){const ne=B[0];if(T(ne),window.ResizeObserver){const K=Ie(()=>T(ne),120);G=new window.ResizeObserver(K),G.observe(ne)}}},U=()=>{G?.disconnect(),G=null},D=!c.value||d?.acquire();D&&(h.value=c.value?!0:null),(0,t.onMounted)(()=>{if(D&&(te(F),F=!1),c.value&&d){let X=null,ne=d.initialHeight;d.observe(H.value,K=>{if(K!==h.value)if(K)h.value=!0,P.value||(R.value=""),X=setTimeout(()=>{X=null,h.value!==!1&&(te(F),F=!1)},100);else{if(X!==null&&clearTimeout(X),h.value=!1,!P.value)if(F)R.value=d.initialHeight;else{let _=Ol(H.value);_<=0?R.value=ne:(R.value=`${_}px`,ne=R.value)}F||U()}})}}),(0,t.onUnmounted)(()=>{G?.disconnect(),d&&d.unobserve(H.value)});const O=(X="right")=>{const ne=[];if(A.value){const $=(0,t.h)("span",{class:C.value},[A.value]);ne.push($)}const K={class:q.value},_=(0,t.h)(l.collapseIcon??o,K);return ne.push(_),ne.length>0?(0,t.h)("div",{class:{[`${N}__header-collapse`]:!0,[`is-${X}`]:!0},onClick:ee},ne):null},j=(X,ne,K,_)=>{const $={...w.value};if(ne===0&&($[`${N}__first`]=!0),K>=_-1&&($[`${N}__last`]=!0),S.value===!1){const E=r.attrs.class;E&&($[`${E}`]=!0)}return(0,t.h)("div",{ref:v,key:`${ne}`,class:$,style:b.value},X)};return()=>{const X=l.prop??l.name;if(c.value&&h.value!==!0)return(0,t.h)(l.tag||"div",{ref:H,prop:X,class:{[`${N}`]:!0,"is-collapse":z.value},style:k.value},[]);u.order.index=0;const ne=[];let K=0;if(r.slots.header){const L=(0,t.h)("div",{key:`${K++}`,ref:x,class:{[`${N}__header`]:!0,[`${N}__first`]:!0},onClick:Q},[r.slots.header()]);ne.push(L)}else{const L=[],Z=l.collapsePosition==="left";if(Z&&l.showCollapse){const le=O("left");le&&L.push(le)}if(l.title||r.slots.title){if(l.showMark){const le={class:{[`${N}__header-mark`]:!0}};l.markColor&&(le.style={background:l.markColor});const ie=(0,t.h)("div",le);L.push(ie)}if(r.slots.title){const le=(0,t.h)("div",{class:{[`${N}__header-title`]:!0}},[r.slots.title()]);L.push(le)}else if(l.title){const le=(0,t.h)("div",{class:{[`${N}__header-title`]:!0}},[l.title]);L.push(le)}}if(r.slots.toolbar&&L.push(r.slots.toolbar()),!Z&&l.showCollapse){const le=O("right");le&&L.push(le)}if(L.length>0){const le=(0,t.h)("div",{key:`${K++}`,ref:x,class:{[`${N}__header`]:!0,[`${N}__first`]:!0},onClick:Q},L);ne.push(le)}}y();const{getChildren:_}=Yn(r.slots.default),$=_(),E=u.layout.value.type;if(E==="grid"){const L=j($,K++,0,$.length);ne.push(L)}else if(E==="flow"){const L=j($,K++,0,$.length);ne.push(L)}else for(let L=0;L<$.length;L++){const Z=$[L],le=j([Z],K++,L,$.length);ne.push(le)}return S.value?(0,t.h)(l.tag||"div",{ref:H,prop:X,class:{[`${N}`]:!0,"is-collapse":z.value},style:k.value},[ne]):ne}}}}var{componentName:Cu,create:Nu,scope:Au}=J("group"),Bu=Nu(wu(Cu,Au,ae.RectUp)),uo=Bu;function Tu(e){return e===window}var Vu=/matrix\((.+)\)/,co=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(Tu(n))return{x:0,y:0};let o=0,l=0,r=n;for(;r!==null;)o+=r.offsetLeft,l+=r.offsetTop,r=r.offsetParent;let i=0,a=0,u=0,s=0;for(r=n;r!==document;){a+=r.scrollTop,i+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const h=Vu.exec(d);if(h){let c=h[1].split(/\s*,\s*/);c.length==6&&(u+=Number(c[4]),s+=Number(c[5]))}}r=r.parentNode}return o-=i,l-=a,o+=u,l+=s,{x:o,y:l}},xu=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{}})}},Eu=class{monitorRegister=new WeakMap;watch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new xu,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(n),o=o.parentNode}}unwatch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(n),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}},Ut=new Eu,Si={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:$u,create:Du}=J("price"),Iu=Du({props:{...Si},setup(e){const n=(0,t.computed)(()=>({[$u]:!0})),o=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>ke(e.price)==0?"":$n(e.price,e.decimalLength,!0,de(e.digits),e.separator));return{classes:n,showSymbol:o,intText:(0,t.computed)(()=>{let r=l.value;if(r.length==0)return"";let i=r.indexOf(".");return r.substring(0,i)}),decimalText:(0,t.computed)(()=>{let r=l.value;if(r.length==0)return"";let i=r.indexOf(".");return r.substring(i+1)})}}}),re=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o},qu=["innerHTML"],Pu=["innerHTML"];function Mu(e,n,o,l,r,i){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,qu)):(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,Pu)):(0,t.createCommentVNode)("",!0)],2)}var Xn=re(Iu,[["render",Mu]]),{componentName:Cl,create:zu}=J("hint-text"),Ru=zu({components:{Price:Xn},props:{...Si,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}),r=(0,t.ref)(0),i=(0,t.ref)(0),a=(0,t.ref)(e.placement),u=(0,t.ref)(!1),s=(0,t.ref)(null),d=(C,q,H,x,M,P)=>{const R=document.documentElement.clientWidth||document.body.clientWidth,z=document.documentElement.clientHeight||document.body.clientHeight,W=C.split("-");let I=[];W[0]==="top"?I=["top","bottom","right","left"]:W[0]==="bottom"?I=["bottom","top","right","left"]:W[0]==="left"?I=["left","top","bottom","right"]:W[0]==="right"&&(I=["right","top","bottom","left"]);const Q={top:null,right:null,bottom:null,left:null},ee=[];for(let oe=0;oe<I.length;oe++){const Y=I[oe];if(ee[0]=Y,W[1]&&(ee[1]=W[1]),Y==="top"){const G=q.y-P-e.arrowSize-e.offset;if(G>=0){Q.top=G;let F=0;W[1]==="start"?F=q.x:W[1]==="end"?F=q.x+H-M:F=q.x+H/2-M/2;const te=R-F-M;te<0?(F+=te,c.value=-te):c.value=0,Q.left=F<0?0:F;break}}else if(Y==="bottom"){const G=q.y+x+e.arrowSize+e.offset;if(G+P<=z){Q.top=G;let F=0;W[1]==="start"?F=q.x:W[1]==="end"?F=q.x+H-M:F=q.x+H/2-M/2;const te=R-F-M;te<0?(F+=te,c.value=-te):c.value=0,Q.left=F<0?0:F;break}}else if(Y==="left"){const G=q.x-M-e.arrowSize-e.offset;if(G>=0){Q.left=G;let F=0;W[1]==="start"?F=q.y:W[1]==="end"?F=q.y+x-P:F=q.y+x/2-P/2,Q.top=F<0?0:F;break}}else if(Y==="right"){const G=q.x+H+e.arrowSize+e.offset;if(G+M<=R){Q.left=G;let F=0;W[1]==="start"?F=q.y:W[1]==="end"?F=q.y+x-P:F=q.y+x/2-P/2,Q.top=F<0?0:F;break}}}return{bestPlacement:ee.join("-"),bestInsetRect:Q}},h=(C,q,H=10)=>{if(!et||q===!1||!C)return;l.value=co(e.reference),r.value=e.reference.offsetWidth,i.value=e.reference.offsetHeight;const x=s.value.offsetHeight,M=s.value.offsetWidth,{bestPlacement:P,bestInsetRect:R}=d(e.placement,l.value,r.value,i.value,M,x);a.value=P,o.value=R,u.value=!0},c=(0,t.ref)(0),p=Ie(()=>{h(e.message,e.visible)},10),g=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,C=>{g.value=C});const N=(0,t.computed)(()=>g.value&&k.value),k=(0,t.ref)(!0),w=Ie(C=>{const q=C[0];q&&(k.value=q.isIntersecting)},10),b=new IntersectionObserver(w);(0,t.watch)([()=>e.message,()=>e.visible],([C,q])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{h(e.message,e.visible)},0),Ut.watch(e.reference,p),b.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Ut.unwatch(e.reference,p),b.unobserve(e.reference),b.disconnect()});const f=(0,t.computed)(()=>{const C={[Cl]:!0};return a.value.startsWith("top")?C["is-top"]=!0:a.value.startsWith("right")?C["is-right"]=!0:a.value.startsWith("bottom")?C["is-bottom"]=!0:a.value.startsWith("right")&&(C["is-right"]=!0),e.size==="small"?C["is-small"]=!0:e.size==="large"&&(C["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(C[`${e.customClass}`]=!0),C}),m=(0,t.computed)(()=>{const C={};return o.value.top!==null&&(C.top=`${o.value.top}px`),o.value.right!==null&&(C.right=`${o.value.right}px`),o.value.bottom!==null&&(C.bottom=`${o.value.bottom}px`),o.value.left!==null&&(C.left=`${o.value.left}px`),e.autoFit&&(C["min-width"]=`${r.value}px`),C["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,u.value&&(C.opacity="1"),e.transition||(C.transition="none"),e.zIndex&&(C["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(C,e.customStyle),C}),S=(0,t.computed)(()=>{const C=[`${Cl}__content`];return e.customTextClass&&C.push(e.customTextClass),C}),B=(0,t.computed)(()=>{const C={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(C,e.customTextStyle),C}),v=(0,t.computed)(()=>({[`${Cl}__arrow`]:!0})),y=(0,t.computed)(()=>{const C={};return e.showArrow?(C.width=`${e.arrowSize}px`,C.height=`${e.arrowSize}px`,a.value==="top"?(C.left="50%",C.bottom=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):a.value==="top-start"?(C.left=`${e.arrowOffset+c.value}px`,C.bottom=`-${e.arrowSize}px`):a.value==="top-end"?(C.right=`${e.arrowOffset-c.value}px`,C.bottom=`-${e.arrowSize}px`):a.value==="right"?(C.left=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):a.value==="right-start"?(C.left=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):a.value==="right-end"?(C.left=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`):a.value==="bottom"?(C.left="50%",C.top=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):a.value==="bottom-start"?(C.left=`${e.arrowOffset+c.value}px`,C.top=`-${e.arrowSize}px`):a.value==="bottom-end"?(C.right=`${e.arrowOffset-c.value}px`,C.top=`-${e.arrowSize}px`):a.value==="left"?(C.right=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):a.value==="left-start"?(C.right=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):a.value==="left-end"&&(C.right=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`),C):{display:"none"}}),V=(0,t.computed)(()=>N.value&&e.closeOnClick),T=(0,t.computed)(()=>{const C={};return e.zIndex&&(C["z-index"]=`${e.zIndex}`),C});return{show:N,tipRef:s,classes:f,styles:m,textClasses:S,textStyles:B,arrowClasses:v,arrowStyles:y,overlayShow:V,overlayStyle:T,onClickOverlay:()=>{g.value=!1,n.emit("update:visible",!1)}}}}),Lu=["innerHTML"];function Fu(e,n,o,l,r,i){const a=(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]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},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)(a,{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,Lu))],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 ki=re(Ru,[["render",Fu]]),Qn=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},Kl={},Ou=new Qn,vt=new Map,Tn=e=>{if(e){const n=document.getElementById(e);vt.delete(e),n&&((0,t.render)(null,n),n.parentNode?.removeChild(n))}else{for(const n of vt.keys()){const o=document.getElementById(n);o&&((0,t.render)(null,o),o.parentNode?.removeChild(o))}vt.clear()}},Ku=e=>{e.unmount=Tn;const n=document.getElementById(e.id);if(n){const o=vt.get(e.id);o?e={...Kl,...o,...e}:e={...Kl,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(ki,e),n)}return e.id},Uu=e=>{e.unmount=Tn;let n=e.id??`hinttext_${Ou.get()}`;e={...Kl,...e},e.id=n,vt.set(n,e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(ki,e),o),document.body.appendChild(o),n},Hu=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),Vt={show(e,n,o={},l=!0){if(!Hu(n))return;const r=o.id;return r&&vt.has(r)?Ku({...o,message:n,reference:e}):(l&&Tn(),Uu({...o,message:n,reference:e}))},hide(e){Tn(e)},install(e){e.config.globalProperties.$hintText=Vt}};function _u(e,n,o,l=!1){return{inheritAttrs:!0,props:{...ge,...be},emits:["appear","disappear"],setup(r,i){const a=r.prop??i.attrs.name,u=(0,t.ref)(),{exposeApi:s}=Be({componentName:e,validate:!1,get props(){return r},context:i,get templateRefProxy(){return u.value}},a),d=nt(),h=Kn();Un(!1);const c=(0,t.computed)(()=>h&&d?Hn(d,!1).value:null),p=e,g=(0,t.ref)(null),N=(0,t.computed)(()=>{const E={[p]:!0,[`${p}__gutter`]:c.value&&c.value.type!=="flow",[`${p}__stretch`]:r.span==="stretch",[`${p}__input--border`]:Se(r.hasBorder)};if(E[r.errorMarkClass]=!!z.value,E[r.warnMarkClass]=!!P.value,E[r.infoMarkClass]=!!x.value,typeof g.value=="function"){const L=g.value(a);E[L]=!0}else if(typeof g.value=="string"){const L=g.value;E[L]=!0}return E}),k=(0,t.ref)(null),w=(0,t.computed)(()=>{const E={};if(r.width)r.width!=="auto"&&(E.width=he(r.width));else{const L=h&&d?_n(d,!1):null;if(c.value&&L){if(c.value.type==="grid"){const Z=Wn(L,c.value,r.span,r.offset);Object.assign(E,Z)}else if(c.value.type==="flow"){const Z=jn(L,c.value,r.span,r.offset,r.width);Object.assign(E,Z)}}}if(typeof k.value=="function"){const L=k.value(a);L&&Object.assign(E,L)}else if(k.value&&typeof k.value=="object"){const L=k.value;Object.assign(E,L)}return E}),b=(0,t.ref)(null),f=(0,t.computed)({get:()=>b.value??Se(r.isRequired),set:E=>{b.value=E}}),m=()=>typeof r.label=="string"&&r.label.length>0||typeof i.slots.label=="function",S=Ae((0,t.toRef)(r,"labelPosition"),"labelPosition",Fl.Near),B=(0,t.computed)(()=>S&&S.value==="top"?"top":S&&S.value==="right"?"right":"left"),v=(0,t.computed)(()=>({[`${p}__main`]:!0,[`${p}__main--${B.value}`]:!0})),y=(0,t.computed)(()=>({label:!0,[`label--${B.value}`]:!0})),V=Ae((0,t.toRef)(r,"labelWidth"),"labelWidth",Fl.Near),T=(0,t.computed)(()=>V&&V.value?{width:he(V.value)}:{}),A=(0,t.computed)(()=>({"label--string":!0,"label--required":f.value})),C=(0,t.computed)(()=>({content:!0,[r.contentClass]:!0})),q=(0,t.computed)(()=>({...r.contentStyle})),H=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});s({setRequired(E){f.value=E},setErrorTip(E){H.errorTip=E},setErrorIcon(E){H.errorIcon=E},setWarnTip(E){H.warnTip=E},setWarnIcon(E){H.warnIcon=E},setInfoTip(E){H.infoTip=E},setInfoIcon(E){H.infoIcon=E},setCustomClassName(E){g.value=E},setCustomStyle(E){k.value=E}});const x=(0,t.computed)(()=>r.infoTip||H.infoTip),M=(0,t.computed)(()=>r.infoIcon||H.infoIcon),P=(0,t.computed)(()=>r.warnTip||H.warnTip),R=(0,t.computed)(()=>r.warnIcon||H.warnIcon),z=(0,t.computed)(()=>r.errorTip||H.errorTip),W=(0,t.computed)(()=>r.errorIcon||H.errorIcon),I=(0,t.computed)(()=>z.value?"error":P.value?"warn":x.value?"info":""),Q=()=>I.value.length>0,ee=(0,t.computed)(()=>I.value==="error"?z.value:I.value==="warn"?P.value:I.value==="info"?x.value:""),oe=(0,t.computed)(()=>I.value==="error"?W.value:I.value==="warn"?R.value:I.value==="info"?M.value:null),Y=(0,t.computed)(()=>{const E={[`${p}__tip`]:!0,[`${p}__tip--${I.value}`]:!0,[`${p}--animate`]:!0};return I.value==="error"&&r.errorClass?E[`${r.errorClass}`]=!0:I.value==="warn"&&r.warnClass?E[`${r.warnClass}`]=!0:I.value==="info"&&r.infoClass&&(E[`${r.infoClass}`]=!0),E}),G=(0,t.computed)(()=>{const E={};return S&&S.value==="top"||!m()?E["padding-left"]="0px":V&&V.value&&(E["padding-left"]=he(V.value)),E}),F=(0,t.ref)();let te="";(0,t.watch)([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([E,L,Z,le])=>{F.value&&(E&&!me(L)?te?o.show(F.value,L,{...le,id:te,type:Z},!0):te=o.show(F.value,L,{...le,type:Z},!0):o.hide(te))});let U=null;const D=()=>{U||!F.value||(U=new IntersectionObserver(E=>{let L=!1;for(let Z of E)if(Z.intersectionRatio>0){L=!0,L&&i.emit("appear",Z);break}L||i.emit("disappear")}),U.observe(F.value))},O=()=>{!U||!F.value||(U.unobserve(F.value),U=null)};(0,t.watch)(()=>Se(r.appearListen),E=>{E?D():O()}),(0,t.onMounted)(()=>{Se(r.appearListen)&&D()}),(0,t.onUnmounted)(O);const j=()=>{if(!m())return null;const E=[],L=i.slots?.label?.()??r.label,Z=(0,t.h)("div",{class:A.value},[L]);if(E.push(Z),i.slots.fixedPreTip){const le=i.slots.fixedPreTip();E.push(le)}return(0,t.h)("div",{class:y.value,style:T.value},E)},X=()=>{const E=[];if(i.slots.prepend){const L=i.slots.prepend();E.push(L)}if(i.slots.default){const L=i.slots.default();E.push(L)}if(i.slots.append){const L=i.slots.append();E.push(L)}if(i.slots.fixedTip){const L=(0,t.h)("div",{class:[`${p}__fixed-tip`]},[i.slots.fixedTip()]);E.push(L)}return(0,t.h)("div",{ref:F,class:C.value,style:q.value},E)},ne=()=>{const E=oe.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},K=()=>{const E=ee.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},_=()=>{if(!Q())return null;const E=[],L=ne();L&&E.push(L);const Z=K();return Z&&E.push(Z),(0,t.h)("div",{class:Y.value,style:G.value},E)},$=()=>i.slots?.hide?.()??null;return()=>{const E=[],L=[],Z=j();Z&&L.push(Z);const le=X();le&&L.push(le);const ie=(0,t.h)("div",{class:v.value},L);E.push(ie);const ce=_();ce&&E.push(ce);const fe=$();return fe&&E.push(fe),(0,t.h)("div",{class:N.value,style:w.value,prop:r.prop,ref:u},E)}}}}var{componentName:ju,create:Wu,scope:Yu}=J("item"),Xu=Wu(_u(ju,Yu,Vt,!1)),ln=Xu,wi={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},wrap:{type:[String],required:!1,default:"nowrap"}};function Qu(e,n){return{props:wi,setup(o,l){const r=e,i=(0,t.computed)(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),a=nt(),u=Kn();Un(!1);const s=(0,t.computed)(()=>{const d={};if(o.width)o.width!=="auto"&&(d.width=he(o.width));else if(u&&a){const h=Hn(a,!1),c=_n(a,!1);if(h.value&&c){if(h.value.type==="grid"){const p=Wn(c,h.value,o.span,o.offset);Object.assign(d,p)}else if(h.value.type==="flow"){const p=jn(c,h.value,o.span,o.offset,o.width);Object.assign(d,p)}}}return o.gutter&&(d.gap=he(o.gutter)),o.wrap&&(d["flex-wrap"]=o.wrap),d});return()=>{const d=[];if(l.slots.default){const h=l.slots.default();if(o.divide)for(let c=0;c<h.length;c++){if(c>0){const p=(0,t.h)("div",{class:{[`${r}__divide`]:!0}});d.push(p)}d.push(h[c])}else Reflect.apply([].push,d,h)}return(0,t.h)("div",{class:i.value,style:s.value},d)}}}}var{componentName:Gu,create:Zu,scope:Ju}=J("row-item"),ec=Zu(Qu(Gu,Ju)),Gn=ec,tc=(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 nc(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 r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(r)},500)}var lc={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 oc(e,n,o,l=!1){return{props:{...lc},emits:["click"],setup(r,i){const a=(0,t.ref)(null),u=(0,t.computed)(()=>{const m={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(m[`${e}--${r.type??"default"}`]=!0),r.size&&(m[`${e}--${r.size}`]=!0),m}),s=(0,t.computed)(()=>{const m={},S=r.textColor??r.color;return S&&(m.color=S),m}),d=(m,S)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const v=r.highlightFilter;m.indexOf(v)!==-1&&(S.innerHTML=m.replace(new RegExp(v,"g"),`<span>${v}</span>`),S.class["is-highlight"]=!0,B=(0,t.h)(r.tag,S))}else if(typeof r.highlightFilter=="function"){const v=r.highlightFilter(m);v&&(S.innerHTML=v,S.class["is-highlight"]=!0,B=(0,t.h)(r.tag,S))}return B},h=m=>{i.emit("click",m)};let c="";const p=()=>{const m=a.value;if(!m)return;const S=m.clientWidth;nc(m,B=>{const v=m.innerHTML??"";me(v)||B<S||(c?o?.show(m,v,{type:"text",id:c,showArrow:r.showArrow},!0):c=o?.show(m,v,{type:"text",showArrow:r.showArrow},!0)??"")})},g=()=>{c&&o?.hide(c)};let N=null;const k=m=>{N||(N=setTimeout(()=>{p(),N=null},r.showAfter??0))},w=m=>{N&&(clearTimeout(N),N=null),setTimeout(()=>{g()},r.hideAfter??0)},b=()=>{const m=a.value;m&&(m.addEventListener("mouseover",k),m.addEventListener("mouseleave",w))},f=()=>{const m=a.value;m&&(m.removeEventListener("mouseover",k),m.removeEventListener("mouseleave",w))};return(0,t.onMounted)(()=>{!Se(r.showOverflowTooltip)||!o||b()}),(0,t.onBeforeUnmount)(()=>{!Se(r.showOverflowTooltip)||!o||f()}),()=>{const m={onClick:h,class:u.value,style:s.value,ref:a};let S=null;if(Se(r.numberFormat)&&typeof i.slots.default=="function"){const v=i.slots.default();if(Array.isArray(v)&&v.length===1){const y=v[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const V=de(r.digits),T=de(r.decimalLength),A=Se(r.autoPadding);let C=`${v[0].children}`,q=C.split("").reverse().join("");q=$n(q,T,A,V,r.separator),C=q.split("").reverse().join(""),r.highlightFilter!==void 0&&(S=d(C,m)),S||(m.innerHTML=C,S=(0,t.h)(r.tag,m))}}}else{if(r.highlightFilter!==void 0&&typeof i.slots.default=="function"){const v=i.slots.default();if(Array.isArray(v)&&v.length===1){const y=v[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const V=`${v[0].children}`;S=d(V,m),S||(m.innerHTML=V,S=(0,t.h)(r.tag,m))}}}S||(S=(0,t.h)(r.tag,m,{default:i.slots.default}))}if(!r.mark&&!r.icon&&!i.slots.mark)return S;const B=[];if(i.slots.mark){const v={[`${e}__mark-wrap`]:!0};r.type&&(v[`${e}__mark-wrap--${r.type}`]=!0);const y={},V=r.color;V&&(y.color=V);const T=(0,t.h)("view",{class:v,style:y},{default:i.slots.mark});B.push(T)}else{const v={[`${e}__mark`]:!0};r.type&&(v[`${e}__mark--${r.type??"default"}`]=!0);const y={},V=r.color;V&&(y["background-color"]=V);const T=(0,t.h)("view",{class:v,style:y});B.push(T)}if(r.divide){const v=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});B.push(v)}return B.push(S),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}},B)}}}}var{componentName:ac,create:rc,scope:ic}=J("text"),sc=rc(oc(ac,ic,Vt,!1)),wt=sc,uc={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 cc(e,n,o=!1){return{props:{...uc},emits:["update:visible"],setup(l,{emit:r,slots:i,expose:a}){const u=(0,t.ref)({top:null,right:null,bottom:null,left:null}),s=(0,t.ref)(0),d=(0,t.ref)(0),h=(0,t.ref)(0),c=(0,t.ref)(0),p=(0,t.ref)(l.placement),g=(0,t.ref)(!1),N=(0,t.ref)(!1),k=(0,t.ref)(null),w=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,b=(I,Q,ee,oe,Y,G,F,te=!0)=>{const U=document.documentElement.clientWidth||document.body.clientWidth,D=document.documentElement.clientHeight||document.body.clientHeight,O=I.split("-");let j=[];te?O[0]==="top"?j=["top","bottom","right","left"]:O[0]==="bottom"?j=["bottom","top","right","left"]:O[0]==="left"?j=["left","top","bottom","right"]:O[0]==="right"&&(j=["right","top","bottom","left"]):j=[I[0]];const X={top:null,right:null,bottom:null,left:null},ne=[];for(let K=0;K<j.length;K++){const _=j[K];if(ne[0]=_,O[1]&&(ne[1]=O[1]),_==="top"){const $=ee-F-l.arrowSize/2-l.offset;if($>=0){X.top=$;let E=0;O[1]==="start"?E=Q:O[1]==="end"?E=Q+oe-G:E=Q+oe/2-G/2;const L=U-E-G;L<0?(E+=L,m.value=-L):m.value=0,X.left=E<0?0:E;break}}else if(_==="bottom"){const $=ee+Y+l.arrowSize/2+l.offset;if($+F<=D){X.top=$;let E=0;O[1]==="start"?E=Q:O[1]==="end"?E=Q+oe-G:E=Q+oe/2-G/2;const L=U-E-G;L<0?(E+=L,m.value=-L):m.value=0,X.left=E<0?0:E;break}}else if(_==="left"){const $=Q-G-l.arrowSize/2-l.offset;if($>=0){X.left=$;let E=0;O[1]==="start"?E=ee:O[1]==="end"?E=ee+Y-F:E=ee+Y/2-F/2,X.top=E<0?0:E;break}}else if(_==="right"){const $=Q+oe+l.arrowSize/2+l.offset;if($+G<=U){X.left=$;let E=0;O[1]==="start"?E=ee:O[1]==="end"?E=ee+Y-F:E=ee+Y/2-F/2,X.top=E<0?0:E;break}}}return{bestPlacement:ne.join("-"),bestInsetRect:X}},f=()=>{const I=l.visible,Q=l.autoFit;if(!et||I===!1)return;if(l.reference){const F=w(),te=co(F);s.value=te.x,d.value=te.y,h.value=F.offsetWidth,c.value=F.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,d.value=l.referenceInset.top,h.value=l.referenceInset.right-l.referenceInset.left,c.value=l.referenceInset.bottom-l.referenceInset.top);const ee=k.value.offsetWidth,oe=k.value.offsetHeight,{bestPlacement:Y,bestInsetRect:G}=b(l.placement,s.value,d.value,h.value,c.value,ee,oe,Q);p.value=Y,u.value=G},m=(0,t.ref)(0),S=Ie(()=>{f()},10),B=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([I])=>{B.value=I,I?(g.value=I,setTimeout(()=>{f(),N.value=!0},0)):N.value=!1});const v=(0,t.computed)(()=>B.value&&y.value),y=(0,t.ref)(!0),V=Ie(I=>{const Q=I[0];Q&&(y.value=Q.isIntersecting)},10),T=new IntersectionObserver(V);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([I,Q],[ee,oe])=>{!I&&!Q||(setTimeout(()=>{f()},0),l.autoFit&&(ee&&(Ut.unwatch(ee,S),T.unobserve(ee)),I&&(Ut.watch(I,S),T.observe(I))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Ut.unwatch(l.reference,S),T.unobserve(l.reference),T.disconnect())});const A=(0,t.computed)(()=>{const I={[e]:!0};return p.value.startsWith("top")?I["is-top"]=!0:p.value.startsWith("right")?I["is-right"]=!0:p.value.startsWith("bottom")?I["is-bottom"]=!0:p.value.startsWith("left")&&(I["is-left"]=!0),I[`is-${l.effect}`]=!0,!N.value&&v.value&&(I["is-opacity"]=!0),N.value&&v.value&&(I["is-show"]=!0),v.value||(I["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(I[`${l.customClass}`]=!0),I}),C=(0,t.computed)(()=>{const I={};return u.value.top!==null&&(I.top=`${u.value.top}px`),u.value.right!==null&&(I.right=`${u.value.right}px`),u.value.bottom!==null&&(I.bottom=`${u.value.bottom}px`),u.value.left!==null&&(I.left=`${u.value.left}px`),l.width&&(I.width=l.width),l.zIndex&&(I["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(I,l.customStyle),I}),q=()=>{B.value=!1,r("update:visible",!1)},H=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:q}):null,x=()=>{let I=null;return i.title?I=(0,t.h)("div",{class:`${e}__title`},{default:i.title}):l.title&&(I=(0,t.h)("div",{class:`${e}__title`},[l.title])),I},M=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),P=(0,t.computed)(()=>{const I={};return l.showArrow?(I.width=`${l.arrowSize}px`,I.height=`${l.arrowSize}px`,p.value==="top"?(I.left="50%",I.bottom="0",I.transform="translate(-50%, 50%)"):p.value==="top-start"?(I.left=`${l.arrowOffset+m.value}px`,I.bottom="0",I.transform="translate(-50%, 50%)"):p.value==="top-end"?(I.right=`${l.arrowOffset-m.value}px`,I.bottom="0",I.transform="translate(-50%, 50%)"):p.value==="right"?(I.left="0",I.top="50%",I.transform="translate(-50%, -50%)"):p.value==="right-start"?(I.left="0",I.top=`${l.arrowOffset}px`,I.transform="translate(-50%, 50%)"):p.value==="right-end"?(I.left="0",I.bottom=`-${l.arrowOffset}px`,I.transform="translate(-50%, 50%)"):p.value==="bottom"?(I.left="50%",I.top="0",I.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(I.left=`${l.arrowOffset+m.value}px`,I.top="0",I.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(I.right=`${l.arrowOffset-m.value}px`,I.top="0",I.transform="translate(-50%, -50%)"):p.value==="left"?(I.right="0",I.top="50%",I.transform="translate(50%, -50%)"):p.value==="left-start"?(I.right="0",I.top=`${l.arrowOffset}px`,I.transform="translate(50%, -50%)"):p.value==="left-end"&&(I.right="0",I.bottom=`-${l.arrowOffset}px`,I.transform="translate(50%, -50%)"),I):{display:"none"}}),R=()=>(0,t.h)("div",{class:M.value,style:P.value}),z=()=>{B.value===!1&&(g.value=!1)},W=I=>{if(!k.value||B.value===!1)return;const{relatedTarget:Q}=I;k.value.contains(Q)||(B.value=!1,r("update:visible",!1))};return a({doLayout:f}),()=>{if(!g.value)return null;const I=[],Q=H();Q&&I.push(Q);const ee=[],oe=x();if(oe&&ee.push(oe),i.default){const te=i.default();ee.push(te)}const Y=R();Y&&ee.push(Y);const G={ref:k,class:A.value,style:C.value,onAnimationend:z};l.leaveHide&&(G.onMouseleave=W);const F=(0,t.h)("div",G,{default:()=>ee});return I.push(F),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>I})}}}}var{componentName:dc,create:fc,scope:mc}=J("popover-dialog"),pc=fc(cc(dc,mc,!1)),Zn=pc,hc={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 vc(e,n,o){return{props:{...wi,...hc},emits:["click"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:a}=(0,ve.useFoxI18n)(n),u=a(l,["moreText"]),s=e,d=(0,t.computed)(()=>({[s]:!0}));function h(B){return B.props||{}}function c(B){return!!h(B).disabled}function p(B){return B.children??[]}const g=(0,t.ref)(),N=(0,t.computed)(()=>g.value?.$el??null),k=(0,t.ref)(!1),w=B=>{k.value=B},b=()=>{k.value=!k.value};function f(B,v){return()=>{v||(k.value=!1,h(B)?.onClick?.())}}function m(B,v){const y=p(B),V=c(B),T=f(B,V),A=[`${s}__dropdown-item`];return V&&A.push("is-disabled"),(0,t.h)("span",{class:A,onClick:T},y)}const S=B=>{const v=l.maxDisplayCount??B.length;if(v>=B.length)return B;const y=[],V=v-1;for(let H=0;H<V;H++)y.push(B[H]);const T=(i.moreIcon&&i.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(o),A=(0,t.h)(wt,{ref:H=>g.value=H,class:`${s}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:b},{default:()=>u.moreText.value,mark:()=>T});y.push(A);const C=[];for(let H=V;H<B.length;H++){const x=m(B[H],H);C.push(x)}const q=(0,t.h)(Zn,{placement:l.dropdownPlacement,"onUpdate:visible":w,visible:k.value,reference:N.value,"custom-class":`${s}__popover`},{default:()=>C});return y.push(q),y};return()=>{const{getChildren:B}=Yn(i?.default),v=S(B());return(0,t.h)(Gn,{class:d.value},{default:()=>v})}}}}var{componentName:gc,create:yc,scope:bc}=J("buttons-item"),Sc=yc(vc(gc,bc,tc)),fo=Sc,kc={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function wc(e,n){return{props:kc,setup(o,l){const r=nt(),i=Kn();Un(!1);const a=(0,t.computed)(()=>i&&r?Hn(r,!1).value:null),u=e,s=(0,t.computed)(()=>({[u]:!0,[`${u}__gutter`]:a.value&&a.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),d=(0,t.computed)(()=>{const h={};if(o.width)o.width!=="auto"&&(h.width=he(o.width));else{const c=i&&r?_n(r,!1):null;if(a.value&&c){if(a.value.type==="grid"){const p=Wn(c,a.value,o.span,o.offset);Object.assign(h,p)}else if(a.value.type==="flow"){const p=jn(c,a.value,o.span,o.offset,o.width);Object.assign(h,p)}}}return h});return()=>{const h={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?(0,t.h)("div",h,l.slots.default()):(0,t.h)("div",h)}}}}var{componentName:Cc,create:Nc,scope:Ac}=J("slot-item"),Bc=Nc(wc(Cc,Ac)),mo=Bc;function De(e,n={}){return(0,t.h)(ln,e,n)}function Tc(e,n,o,l,r){let i=[];Array.isArray(e)?i=e:i=[e];const a=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=n;for(let d=0;s&&d<i.length;d++){let h=i[d],c=s.find(p=>p[l]===h);if(!c)break;a.push(c[o])}return a}if(Array.isArray(u))for(let s=0;s<n.length&&s<i.length;s++){let d=n[s],h=i[s];const c=d.find(p=>p[l]===h);if(!c)break;a.push(c[o])}else{let s=n;for(let d=0;s&&d<i.length;d++){let h=i[d],c=s.find(p=>p[l]===h);if(!c)break;a.push(c[o]),s=c[r]}}return a}var Vc=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=lt(e,this.scope);return l===null?(console.error(`${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function xc(){return new Vc(ct())}var Ec={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],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 $c(e,n,o=!1){return{props:Ec,setup(l,{attrs:r,slots:i}){const a=xc(),u=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([d,h])=>{u.value=await a.load(l.sourceType,d,h)},{immediate:!0});const s=(0,t.computed)(()=>{if(!Array.isArray(u.value)||u.value.length===0)return l.emptyText;let d=Tc(l.modelValue,u.value,l.textKey,l.valueKey,l.childrenKey);return d.length==0?l.emptyText??"":d.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${d[0]}`:d[0]:d.join(l.separator)});return()=>{const d={...r};if(i.default)return i.default({text:s.value,value:l.modelValue});const h=l.tag??"span";return typeof h=="object"?(0,t.h)(h,d,{default:()=>s.value}):(0,t.h)(h,d,[s.value])}}}}var{componentName:Dc,create:Ic,scope:qc}=J("mapping"),Pc=Ic($c(Dc,qc,!1)),Jn=Pc;function Pe(e,n,o,l){const r="fox-browse-item";let i=null;o?i=(0,t.h)(Jn,{class:[`${r}__mapping`],source:o,modelValue:e,separator:l},{default:u=>(0,t.h)(wt,{class:[`${r}__text`]},{default:()=>u.text})}):i=(0,t.h)(wt,{class:[`${r}__text`]},{default:()=>e});const a={label:n.default,default:()=>i};return(0,t.h)(ln,{class:[r]},a)}var Ci={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}},Mc={...ge,...be,...Ci};function zc(e,n,o,l,r){return{props:Mc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g,exposeApi:N}=Be({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),{toLocaleRefs:k}=(0,ve.useFoxI18n)(n),w=k(i,["placeholder"]),b=(0,t.ref)(!1),f=qe(i,"modelValue",null,g),m=e,S=(0,t.computed)(()=>({[m]:!0,"is-disabled":d.value,"is-readonly":c.value})),B=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),v=(0,t.computed)(()=>{const Q={};return B.value&&(Q["text-align"]=B.value),Q}),y=Q=>{let ee=Q.target.value;i.type==="digit"&&(ee=zl(ee,!0)),i.type==="number"&&(ee=zl(ee,!1)),i.maxLength&&ee.length>Number(i.maxLength)&&(ee=ee.slice(0,Number(i.maxLength))),f.value=ee,g("update:modelValue",ee,Q),g("change",ee,Q)};let V=qe(i,"hintText"),T=(0,t.ref)(!1);const A=Q=>{let ee=Q.target.value;b.value=!0,me(V.value)||(T.value=!0),g("focus",ee,Q)},C=Q=>{setTimeout(()=>{T.value&&(T.value=!1),b.value=!1},0);let ee=Q.target.value;i.maxLength&&ee.length>Number(i.maxLength)&&(ee=ee.slice(0,Number(i.maxLength))),g("blur",ee,Q)},q=(0,t.computed)(()=>({[`${m}__append`]:!0,"is-disabled":d.value,"is-readonly":c.value})),H=(0,t.computed)(()=>{const Q={};return a.slots.append&&!x.value&&!W.value&&(Q.display="none"),Q}),x=(0,t.computed)(()=>ke(i.unit)>0),M=(0,t.computed)(()=>!W.value),P=(0,t.computed)(()=>({[`${m}__unit`]:!0,hidden:!M.value})),R=Q=>{f.value="",g("update:modelValue","",Q),g("change","",Q),g("clear","")},z=(0,t.computed)(()=>Se(i.clearable)&&!d.value&&!c.value),W=(0,t.computed)(()=>{let Q=ke(f.value)>0;return Se(i.clearable)&&Q&&b.value}),I=(0,t.computed)(()=>({action:!0,hidden:!W.value}));return N({setDisabled:Q=>{s.value=Q},setReadonly:Q=>{h.value=Q}}),()=>{if(p.value==="on"&&(c.value||d.value))return l(f.value,a.slots);const Q={class:S.value,style:v.value,type:i.type,maxlength:i.maxLength,placeholder:w.placeholder.value,disabled:d.value,readonly:c.value,value:f.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:y,onFocus:A,onBlur:C},ee=[],oe=(0,t.h)("input",Q);ee.push(oe);const Y=[];if(z.value){const U=(0,t.h)(r,{class:["action-icon"]}),D=(0,t.h)("view",{class:I.value,onClick:R},{default:()=>[U]});Y.push(D)}if(x.value){const U=(0,t.h)("view",{class:P.value},[i.unit]);Y.push(U)}const G=(0,t.h)("view",{class:q.value,style:H.value},{default:()=>Y});ee.push(G);const F={default:()=>ee};F.label=a.slots.default,F.prepend=a.slots.prepend,F.append=a.slots.append,F.fixedPreTip=a.slots.fixedPreTip,F.fixedTip=a.slots.fixedTip;const te={...tt(i,Ci),ref:u,hintText:V.value,hintVisible:T.value};return i.prop&&(te.prop=`${i.prop}_item`),o(te,F)}}}}var{componentName:Rc,create:Lc,scope:Fc}=J("input-item"),Oc=Lc(zc(Rc,Fc,De,Pe,ae.CircleClose)),po=Oc;function tr(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let r=l;for(let i=o.length-1;i>=l;i--)if(o.charAt(i)!="0"){r=i;break}return r-l<n?r=l+n+1:r!=l&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function nr(e,n,o=20){return typeof n=="string"&&(n=de(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?tr(Pr(`${e}`,`${n}`)):tr(Gl(`${e}`,Mr(`${n}`),20))}function Kc(e,n=-1,o=!1,l=3,r=","){return $n(e,de(n),o,l,r)}function lr(e,n,o,l,r=!0){if(e==="")return"";if(e=zr(e),n=de(n),n==1)return e;if(l)e=nr(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(de(o)+2,"0"):e=Gl(e,1,de(o)));else{let i=-1*n;e=nr(e,i)}return e}function or(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=Se(n.minInclude),r=ql(e,n.min);(l&&r==-1||!l&&(r==0||r==-1))&&(o.message="请输入不小于 {0} 的数值".replace("{0}",n.min),o.minValid=!1)}if(n.max!=null){let l=Se(n.maxInclude),r=ql(e,n.max);(l&&r==1||!l&&(r==0||r==1))&&(o.maxValid=!1)}return o}var Ni={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean],default:!0},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},maxLength:{type:[String,Number]}},Uc={...ge,...be,...Ni};function Hc(e,n,o,l,r){return{props:Uc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g,exposeApi:N}=Be({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),k=(0,t.ref)(!1),w=qe(i,"modelValue",null,g),b=(0,t.ref)("");(0,t.watch)([()=>w.value,()=>i.rates,()=>i.precision],([F,te,U])=>{if(me(F)){b.value="";return}const D=lr(F,te,U,!1);b.value!==D&&(b.value=D)},{immediate:!0});const f=(0,t.computed)(()=>{let F="";return k.value&&(F=b.value),F}),{t:m}=(0,ve.useFoxI18n)(n),S=(0,t.computed)(()=>{let F=i.placeholder??"";return!k.value&&!me(b.value)?F=Kc(b.value,i.decimalLength,i.autoPadding,i.digits,i.separator):F=me(F)?m(["placeholder"]):F,F}),B=e,v=(0,t.computed)(()=>({[B]:!0,[`${B}__placeholder`]:b.value.length>0,"is-disabled":d.value,"is-readonly":c.value})),y=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),V=(0,t.computed)(()=>{const F={};return y.value&&(F["text-align"]=y.value),F}),T=(0,t.ref)(""),A=(0,t.computed)(()=>{let F=T.value;return me(F)&&(F=i.errorTip??""),F}),C=(0,t.ref)(""),q=(0,t.ref)(!1),H=F=>{let te=F.target.value;if(me(te)){b.value="",w.value="",g("update:modelValue","",F),g("change","",F),Se(i.showTip)&&q.value&&(q.value=!1);return}if(te.length>=2){let U=te;if(U.charAt(0)=="-"&&(U=U.substring(1)),U.length>=2&&U.charAt(0)=="0"&&U.charAt(1)!="."){(0,t.triggerRef)(b);return}}if(te!="-"){if(!qn(te)){(0,t.triggerRef)(b);return}if(i.integerLength!=-1&&Hr(te)>Number(i.integerLength)){(0,t.triggerRef)(b);return}if(i.decimalLength&&i.decimalLength!=-1&&_r(te)>Number(i.decimalLength)){(0,t.triggerRef)(b);return}let U=or(te,i);if(U.maxValid===!1){T.value=U.message,(0,t.triggerRef)(b);return}}else if(i.min!=null&&de(i.min)>=0){(0,t.triggerRef)(b);return}C.value=te,Se(i.showTip)&&(q.value=te.length>0),b.value=te,w.value=lr(te,i.rates,i.precision,!0),g("update:modelValue",w.value,F),g("change",w.value,F)},x=F=>{if(k.value=!0,Se(i.showTip)){let te=b.value;me(te)&&(te=i.hintText),me(te)||(C.value=te,q.value=!0)}T.value="",g("focus",w.value,F)},M=F=>{if(setTimeout(()=>{k.value=!1,Se(i.showTip)&&q.value===!0&&(q.value=!1)},0),!me(b.value)){let te=or(b.value,i);if(te.minValid===!1||te.maxValid===!1){T.value=te.message;return}}g("update:modelValue",w.value,F),g("blur",w.value,F)},P=(0,t.computed)(()=>({[`${B}__append`]:!0,"is-disabled":d.value,"is-readonly":c.value})),R=(0,t.computed)(()=>{const F={};return a.slots.append&&!z.value&&!oe.value&&(F.display="none"),F}),z=(0,t.computed)(()=>ke(i.unit)>0),W=(0,t.computed)(()=>!oe.value),I=(0,t.computed)(()=>({[`${B}__unit`]:!0,hidden:!W.value})),Q=F=>{w.value="",g("update:modelValue","",F),g("change","",F),g("clear","")},ee=(0,t.computed)(()=>Se(i.clearable)&&!d.value&&!c.value),oe=(0,t.computed)(()=>{let F=ke(w.value)>0;return Se(i.clearable)&&F&&k.value}),Y=(0,t.computed)(()=>({action:!0,hidden:!oe.value}));N({setDisabled:F=>{s.value=F},setReadonly:F=>{h.value=F}});const G=()=>w.value?S.value:w.value;return()=>{if(p.value==="on"&&(c.value||d.value))return l(G(),a.slots);let F={class:v.value,style:V.value,type:"digit",maxlength:i.maxLength,placeholder:S.value,disabled:d.value,readonly:c.value,value:f.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:H,onFocus:x,onBlur:M},te=[],U=(0,t.h)("input",F);te.push(U);let D=[];if(ee.value){const ne=(0,t.h)(r,{class:["action-icon"]}),K=(0,t.h)("view",{class:Y.value,onClick:Q},{default:()=>[ne]});D.push(K)}if(z.value){const ne=(0,t.h)("view",{class:I.value},[i.unit]);D.push(ne)}const O=(0,t.h)("view",{class:P.value,style:R.value},{default:()=>D});te.push(O);const j={default:()=>te};j.label=a.slots.default,j.prepend=a.slots.prepend,j.append=a.slots.append,j.fixedPreTip=a.slots.fixedPreTip,j.fixedTip=a.slots.fixedTip;const X={...tt(i,Ni),ref:u,errorTip:A.value,hintText:C.value,hintVisible:q.value,hintType:"number"};return i.prop&&(X.prop=`${i.prop}_item`),o(X,j)}}}}var{componentName:_c,create:jc,scope:Wc}=J("money-item"),Yc=jc(Hc(_c,Wc,De,Pe,ae.CircleClose)),ho=Yc,Ul={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:Xc,create:Qc,scope:Gc}=J("textarea"),Zc=Qc({props:{...Ul},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:o}=(0,ve.useFoxI18n)(Gc);const l=o(e,["placeholder"]),r=(0,t.ref)(),i=(0,t.computed)(()=>{const p=Xc;return{[p]:!0,[`${p}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&s(String(e.modelValue)),e.autosize&&(0,t.nextTick)(u)});const a=(0,t.computed)(()=>({textAlign:e.textAlign})),u=()=>{let p=r.value;p.style.height="auto";let g=p.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:N,minHeight:k}=e.autosize;N!==void 0&&(g=Math.min(g,N)),k!==void 0&&(g=Math.max(g,k))}g&&(console.info("----------- height",g),p.style.height=g+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(u)});const s=(p,g)=>{e.maxLength&&p.length>Number(e.maxLength)&&(p=p.substring(0,Number(e.maxLength))),n("update:modelValue",p,g),n("change",p,g)};return{...l,textareaRef:r,classes:i,styles:a,change:p=>{const g=p.target;s(g.value,p)},focus:p=>{e.disabled||e.readonly||n("focus",p)},blur:p=>{if(e.disabled||e.readonly)return;let g=p.target.value;s(g,p),n("blur",{value:g,event:p})}}}}),Jc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],ed={key:0,class:"fox-textarea__limit"};function td(e,n,o,l,r,i){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]=(...a)=>e.change&&e.change(...a)),onBlur:n[1]||(n[1]=(...a)=>e.blur&&e.blur(...a)),onFocus:n[2]||(n[2]=(...a)=>e.focus&&e.focus(...a)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Jc),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",ed,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var el=re(Zc,[["render",td]]);function nd(e,n,o,l,r){return{props:{...ge,...be,...Ul},emits:["update:modelValue","change","blur","focus","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g}=Be({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),N=qe(i,"modelValue",null,g),k=S=>{N.value=S,g("update:modelValue",S,{}),g("change",S,{})};let w=qe(i,"hintText"),b=(0,t.ref)(!1);const f=S=>{me(w.value)||(b.value=!0),g("focus",N.value,S)},m=S=>{setTimeout(()=>{b.value&&(b.value=!1)},0),g("blur",N.value,S)};return()=>{if(p.value==="on"&&(c.value||d.value))return l(N.value,a.slots);const S={...ye(i,Ul),disabled:d.value,readonly:c.value,value:N.value,"onUpdate:modelValue":k,onFocus:f,onBlur:m},B=[],v=(0,t.h)(r,S);B.push(v);const y={default:()=>B};y.label=a.slots.default,y.prepend=a.slots.prepend,y.append=a.slots.append,y.fixedPreTip=a.slots.fixedPreTip,y.fixedTip=a.slots.fixedTip;const V={...ye(i,be,ge),ref:u};return i.prop&&(V.prop=`${i.prop}_item`),o(V,y)}}}}var{componentName:ld,create:od,scope:ad}=J("textarea-item"),rd=od(nd(ld,ad,De,Pe,el)),vo=rd;function id(e){return e===window}var $e=e=>{const n=(0,t.unref)(e);if(id(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}},ar=10;function Ai(e,n){return e>n&&e>ar?"horizontal":n>e&&n>ar?"vertical":""}function tl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function nl(){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:(a=>{if(a.touches){const u=a.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const u=a;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Ai(e.offsetX,e.offsetY))}),start:(a=>{if(l(),a.touches){const u=a.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const u=a;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:o,state:e}}function ot(){const e=(0,t.ref)(0),n=(0,t.ref)(0),o=(0,t.ref)(0),l=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(0),a=(0,t.ref)(0),u=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(0),h=(0,t.ref)(""),c=()=>h.value==="vertical",p=()=>h.value==="horizontal",g=()=>{a.value=0,u.value=0,s.value=0,d.value=0,h.value="",o.value=0};return{move:(w=>{if(w.touches){const b=w.touches[0];a.value=b.clientX-e.value,u.value=b.clientY-n.value,r.value=b.clientX,i.value=b.clientY}else{const b=w;a.value=b.clientX-e.value,u.value=b.clientY-n.value,r.value=b.clientX,i.value=b.clientY}s.value=Math.abs(a.value),d.value=Math.abs(u.value),l.value=Date.now()-o.value,h.value||(h.value=Ai(s.value,d.value))}),start:(w=>{if(g(),w.touches){const b=w.touches[0];e.value=b.clientX,n.value=b.clientY}else{const b=w;e.value=b.clientX,n.value=b.clientY}o.value=Date.now()}),reset:g,startX:e,startY:n,startTime:o,duration:l,moveX:r,moveY:i,deltaX:a,deltaY:u,offsetX:s,offsetY:d,direction:h,isVertical:c,isHorizontal:p}}var sd=2e3,rr=()=>sd++,Je={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:{}}},ud=(e,n)=>({components:n,props:{...Je},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const r=(0,t.reactive)({zIndex:0,showSlot:!0,closed:o.closeable});o.visible&&(r.zIndex=rr());const i=(0,t.computed)(()=>{const k=e,w=[k,`${k}--${o.position}`];return o.round&&w.push("round"),o.position==="bottom"&&o.safeAreaInsetBottom&&w.push(`${k}--${o.position}--safebottom`),typeof o.popClass=="string"?w.push(o.popClass):Array.isArray(o.popClass)&&o.popClass.forEach(b=>{w.push(b)}),w}),a=(0,t.computed)(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=(0,t.computed)(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{l("update:visible",!0),o.zIndex?r.zIndex=o.zIndex:r.zIndex=rr(),o.destroyOnClose&&(r.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},h=k=>{l("click-pop",k)},c=k=>{k.stopPropagation(),l("click-close-icon",k),l("update:visible",!1)},p=k=>{l("click-overlay",k),o.closeOnClickOverlay&&l("update:visible",!1)},g=k=>{l("opend",k)},N=k=>{l("closed",k)};return(0,t.watch)(()=>o.visible,k=>{o.visible?s():d()}),(0,t.watch)(()=>o.closeable,k=>{r.closed=k}),{...(0,t.toRefs)(r),popStyle:a,transitionName:u,classes:i,onClick:h,onClickCloseIcon:c,onClickOverlay:p,onOpened:g,onClosed:N}}}),Bi={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}},go={...Je,...Bi,modelValue:{type:[String,Number,Boolean,Object,Array],default:()=>""},text:{type:[Array],default:()=>[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:()=>[]},sourceFilter:{type:[Function]},params:{type:Object},valueType:{type:String,required:!1,default:()=>"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String},isAutoBackFill:{type:[Boolean],default:()=>!0},poppable:{type:[Boolean],default:()=>!0}},Ti=36;function cd(){return Ti}function dd(e){Ti=e}function Re(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Hl(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function fd(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function st(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ir(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var md=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function pd(){return new md(ct())}function sr(e,n,o){return!(Re(e,n)!==Re(e,o)||st(e,n)!==st(e,o))}function hd(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const r=[],i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const u=n[a];let s=o[a].findIndex(d=>{if(i==="text")return Re(e,d)===u;if(i==="value"){let h=st(e,d);return h==null&&(h=Re(e,d)),h===u}else if(i==="item")return sr(e,d,u)});if(s==-1)break;r.push(s)}else{let a=o[0];for(let u=0;u<n.length;u++){const s=n[u];let d=a.findIndex(c=>{if(i==="text")return Re(e,c)===s;if(i==="value"){let p=st(e,c);return p==null&&(p=Re(e,c)),p===s}else if(i==="item")return sr(e,c,s)});if(d==-1)break;r.push(d);const h=Hl(e,a[d]);if(!Array.isArray(h))break;a=h}}return r}function ur(e,n,o,l){if(o.length==0)return null;const r={texts:[],values:[],items:[]},i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const u=o[a];let s=n[a];s<0&&s>=u.length&&(s=0);const d=u[s],h=Re(e,d);if(r.texts.push(h),r.items.push(d),i==="text")r.values.push(h);else if(i==="value"){let c=st(e,d);c==null&&(c=h),r.values.push(c)}else r.values.push(d)}else{let a=o[0];for(let u=0;u<n.length;u++){let s=n[u];s<0&&s>=a.length&&(s=0);const d=a[s],h=Object.assign({},d);h.children=null;const c=Re(e,d);if(r.texts.push(c),r.items.push(h),i==="text")r.values.push(c);else if(i==="value"){let p=st(e,d);p==null&&(p=c),r.values.push(p)}else r.values.push(h);if(!Array.isArray(d.children))break;a=d.children}}return r}function cr(e){return{text:e,value:e}}var vd=15,gd=300,yd=200,{create:bd}=J("picker-column");function Sd(e){e.stopPropagation()}function kd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Sd(e)}var wd={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},...Bi},Cd=bd({props:wd,emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=(0,t.computed)(()=>({"fox-picker__list":!0})),l=(0,t.computed)(()=>({height:`${de(e.visibleItemCount)*+e.itemHeight}px`})),r=(0,t.computed)(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),i=(0,t.computed)(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),a=y=>{const V=y+1;return V>=c.currIndex+8||V<=c.currIndex-8},u=(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:`${i.value}px`})),s=y=>{const V=y+1;return`transform: rotate3d(1, 0, 0, ${-c.rotation*V}deg) translate3d(0px, 0px, 104px)`},d=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+i.value}px, 0)`})),h=(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}),p=y=>Re(e,y),g=y=>st(e,y),N=ot(),k=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},w=(y,V=!1,T=!1)=>{if(c.currIndex=y,V){const A=()=>{c.moving=!1,n("update:modelValue",y),n("change",y)};T?c.transitionEndTrigger=A:A()}},b=(y,V,T)=>{let A=y+c.startDistance;if(V==="end"){const C=-(e.source.length-1)*e.itemHeight;A<C&&(A=C),A>0&&(A=0);let q=Math.abs(Math.round(-A/e.itemHeight));const H=-q*e.itemHeight,x=`${(q+1)*c.rotation}deg`;w(q,!0,T?T>0:!1),f(H,V,T,x)}else{let C=(-A/e.itemHeight+1)*c.rotation;const q=(e.source.length+1)*c.rotation,H=0;if(C=Math.min(Math.max(C,H),q),e.threeDimensional&&(C<H||C>q))return;f(A,null,void 0,`${C}deg`)}},f=(y=0,V,T=yd,A)=>{V==="end"?c.scrollTime=T:c.scrollTime=0,c.deg=A,c.scrollDistance=y},m=(y,V)=>(y=Math.abs(y/V)/.003*(y<0?-1:1),y),S=y=>{e.readonly||(c.startDistance=c.scrollDistance,N.start(y),c.transitionEndTrigger=null)},B=y=>{e.readonly||(c.moving=!0,N.move(y),N.isVertical()&&(c.moving=!0,kd(y,!0)),b(N.deltaY.value,"",0))},v=()=>{if(e.readonly)return;const y=N.deltaY.value,V=N.duration.value;V<gd&&Math.abs(y)>vd?b(m(y,V),"end",de(e.swipeDuration)):b(y,"end",0)};return(0,t.watch)(()=>e.modelValue,y=>{const V=c.currIndex-y;V!==0&&(c.currIndex=y,c.startDistance=c.scrollDistance,b(V*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,y=>{if(c.currIndex>=y.length){const V=(y.length-1-c.currIndex)*e.itemHeight;c.startDistance=c.scrollDistance,b(V,"end",0)}}),(0,t.watch)(()=>e.visible,y=>{y===!1&&k()}),(0,t.onMounted)(()=>{b(-e.modelValue*e.itemHeight)}),{classes:o,styles:l,contentClasses:r,itemText:p,itemValue:g,...(0,t.toRefs)(c),roller:h,getItemText:Re,onTouchStart:S,onTouchMove:B,onTouchEnd:v,isHidden:a,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:d,stopMomentum:k}}}),Nd={key:1,class:"fox-picker__item-tile"};function Ad(e,n,o,l,r,i){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]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTransitionend:n[4]||(n[4]=(...a)=>e.stopMomentum&&e.stopMomentum(...a))},[(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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(u))},(0,t.toDisplayString)(e.itemText(a)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",Nd,(0,t.toDisplayString)(e.itemText(a)),1))],64))),128))],6)],38)}var Bd=re(Cd,[["render",Ad]]),qt=0,dr="fox-overflow-hidden",fr=()=>et?document.body:{classList:[]},Td=e=>[()=>{if(e())try{!qt&&fr().classList.add(dr),qt++}catch{}},()=>{if(e()&&qt)try{qt--,!qt&&fr().classList.remove(dr)}catch{}}],Vd={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:xd,create:Ed}=J("overlay"),$d=Ed({props:{...Vd},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=Td(()=>e.lockScroll),r=(0,t.computed)(()=>({[xd]:!0,[e.overlayClass]:!0})),i=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,u=>{u?o():l()}),{classes:r,style:i,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Dd(e,n,o,l,r,i){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)((...a)=>e.onClick&&e.onClick(...a),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var ut=re($d,[["render",Dd]]),{componentName:Id,create:qd}=J("popup"),Pd=qd(ud(Id,{FoxOverLay:ut,Close:ae.Close}));function Md(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxOverLay"),u=(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)(a,(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]=(...s)=>e.onClick&&e.onClick(...s))},[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]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:(0,t.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(u)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var we=re(Pd,[["render",Md]]),zd=(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)(we,tt({...e},{poppable:!1}),n):n?.default?.()??null}}),Rd=zd,{create:Ld,componentName:mr,scope:Fd}=J("picker"),Od=Ld({components:{Column:Bd,Wrapper:Rd},props:go,emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=(0,ve.useFoxI18n)(Fd),r=o(e,["title","cancelText","clearText","confirmText"]),i=(0,t.ref)(null),a=(0,t.ref)(cd());(0,t.watch)(()=>e.visible,P=>{P&&a.value<=0&&setTimeout(()=>{i.value&&(a.value=$e(i.value).height,dd(a.value))},50)});const u=(0,t.computed)(()=>({[mr]:!0})),s=(0,t.computed)(()=>{const P=[];return Array.isArray(e.popClass)?P.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&P.push(e.popClass),P.push(`${mr}__popup`),P.join(" ")}),d=pd(),h=(0,t.ref)("singleColumn");let c=(0,t.ref)([]);const p=(0,t.computed)(()=>{if(typeof e.sourceFilter=="function"){const P=[];for(let R=0;R<c.value.length;R++){const z=c.value[R];if(Array.isArray(z)){const W=z.filter(e.sourceFilter);P.push(W)}}return P}return c.value});(0,t.watch)([()=>e.source,()=>e.params],async([P,R])=>{if(P){let z=await d.load("picker",P,R);if(z.length>0){let W=z[0];if(Array.isArray(W)){if(typeof W[0]=="string"){let I=z,Q=[];I.forEach(ee=>{let oe=ee.map(Y=>cr(Y));Q.push(oe)}),c.value=Q}else c.value=z;h.value="multipleColumn"}else if(typeof W=="string"){let I=z,Q=[],ee=I.map(oe=>cr(oe));Q.push(ee),c.value=Q,h.value="singleColumn"}else{const I=Hl(e,W);Array.isArray(I)?(h.value="cascade",c.value=[z]):(h.value="singleColumn",c.value=[z])}}else c.value=[]}},{immediate:!0});const g=(0,t.ref)([]),N=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),k=(0,t.ref)([]);let w=null;const b=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>p.value],([P,R])=>{let z=hd(e,P,R,h.value);if(!Ee(z,b.value)){b.value=z,w||(w=z?[...z]:[]);let W=ur(e,z,R,h.value);W&&(g.value=W.texts,Ee(N.value,W.values)||(N.value=W.values),Ee(k.value,W.items)||(k.value=W.items),n("update:text",g.value))}});let f="";const m=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,P=>{m.value=P,P&&(f="active",b.value.length>0&&(w=[...b.value]))});const S=P=>{let R=ir(e,P);return xe(R)?R.defaultIndex??0:0},B=P=>{if(e.readonly===!0)return!0;let R=ir(e,P);return xe(R)?R.readonly??!1:!1},v=(P,R)=>{let z=b.value;z[P]=R;for(let I=0;I<P;I++)z[I]==null&&(z[I]=S(I));if(h.value==="cascade")for(let I=P+1;I<V.value.length;I++){let Q=S(I);I<z.length?z[I]=Q:z.push(Q)}else for(let I=z.length;I<V.value.length;I++){let Q=S(I);z.push(Q)}b.value=z;let W=ur(e,z,p.value,h.value);W&&(g.value=W.texts,N.value=W.values,k.value=W.items)},y=P=>P<b.value.length?b.value[P]:S(P),V=(0,t.computed)(()=>{if(p.value.length==0)return[];if(h.value=="singleColumn"||h.value=="multipleColumn")return p.value;let P=[],R=0,z=p.value[0],W=0;for(;;){let I=z.map(oe=>{let Y=Object.assign({},oe);return fd(e,Y,null),Y});P.push(I),R>=b.value.length?W=0:W=b.value[R],(W<0||W>=z.length)&&(W=0);let Q=z[W];const ee=Hl(e,Q);if(!Array.isArray(ee))break;z=ee,R++}return P}),T=(0,t.computed)(()=>de(+e.visibleItemCount-1)/2*a.value),A=(P=!1)=>{if(e.readonly===!0){P&&n("update:visible",!1);return}let R=p.value.length-1;for(;R>=0&&!(b.value[R]===null||b.value[R]===void 0);R--);if(R>=0&&v(R,0),h.value==="singleColumn"){let z=N.value.length>0?N.value[0]:"",W=k.value.length>0?k.value[0]:null;n("update:modelValue",z),n("update:text",g.value),n("change",z,W),P&&(n("confirm",z),n("update:visible",!1))}else n("update:modelValue",N.value),n("update:text",g.value),n("change",N.value,k.value),P&&(n("confirm",N.value),n("update:visible",!1))},C=(P,R)=>{f!=="close"&&(v(P,R),e.isAutoBackFill&&A(!m.value))},q=()=>{f==="active"&&(f="confirm",w=Array.isArray(b.value)?[...b.value]:[],A(!0))},H=()=>{h.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),b.value=[],w=null};return{...r,pickerLineRef:i,classes:u,popClasses:s,columns:V,dataType:h,show:m,itemHeight:a,top:T,isReadonly:B,getIndex:y,change:C,close:()=>{if(f==="active"){if(f="close",w===null||w.length===0)H();else{if(Array.isArray(w))for(let P=0;P<w.length;P++)v(P,w[P]);A(!1)}n("close"),n("update:visible",!1)}},confirm:q,clear:()=>{if(f==="active"){if(f="clear",e.readonly===!0){n("update:visible",!1);return}H(),w=null,n("clear",""),n("update:visible",!1)}}}}}),Kd={key:0,class:"fox-picker__bar"},Ud={class:"fox-picker__title"},Hd={class:"fox-picker__bar__action"},_d={class:"fox-picker__column"};function jd(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Column"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(u,{position:"bottom","pop-class":e.popClasses,visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),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",Kd,[(0,t.createElementVNode)("view",Ud,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Hd,[(0,t.createElementVNode)("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...s)=>e.close&&e.close(...s))},(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]=(...s)=>e.confirm&&e.confirm(...s))},(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]=(...s)=>e.clear&&e.clear(...s))},(0,t.toDisplayString)(e.clearText),1)):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"top"),(0,t.createElementVNode)("view",_d,[(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,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:"fox-picker__columnitem"},[(0,t.createVNode)(a,{visible:e.show,source:s,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":h=>e.change(d,h),"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 on=re(Od,[["render",jd]]),Wd={...ge,...be,...go,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:" "}};function Yd(e,n,o,l,r,i,a,u=!0){return{props:Wd,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:c,disabled:p,innerReadonly:g,readonly:N,browse:k}=Te(s),{emitEvent:w,exposeApi:b}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return N.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:f}=(0,ve.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),B=qe(s,"modelValue",null,w),v=(0,t.ref)([]),y=(0,t.computed)(()=>Array.isArray(v.value)?v.value.join(s.separator):v.value),V="fox-input-item",T=(0,t.computed)(()=>({[V]:!0,"is-disabled":p.value,"is-readonly":N.value})),A=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),C=(0,t.computed)(()=>{const O={};return A.value&&(O["text-align"]=A.value),O}),q=(0,t.ref)(!1),H=()=>{q.value=!0},x=O=>{q.value=O},M=O=>{B.value=O,w("update:modelValue",O)},P=(O,j)=>{w("change",O,j)},R=O=>{let j=O.target.value;S.value=!0,w("focus",j,O)},z=O=>{setTimeout(()=>{S.value=!1},0);let j=O.target.value;s.maxLength&&j.length>Number(s.maxLength)&&(j=j.slice(0,Number(s.maxLength))),w("blur",j,O)},W=O=>{v.value=O,Array.isArray(O)&&O.length===0?w("update:text",O[0]):w("update:text",O)},I=(0,t.computed)(()=>({[`${V}__append`]:!0,"is-disabled":p.value,"is-readonly":N.value})),Q=(0,t.computed)(()=>ke(s.unit)>0),ee=(0,t.computed)(()=>ke(s.unit)>0&&!S.value),oe=(0,t.computed)(()=>({hidden:!ee.value})),Y=O=>{B.value="",w("update:modelValue","",O),w("change","",O),w("clear","")},G=(0,t.computed)(()=>s.clearable&&!p.value&&!N.value),F=(0,t.computed)(()=>ke(B.value)>0&&S.value),te=O=>{F.value?Y(O):H()},U=(0,t.computed)(()=>F.value&&G.value?r:i),D=(0,t.computed)(()=>({action:!0}));return b({setDisabled:O=>{c.value=O},setReadonly:O=>{g.value=O}}),()=>{if(k.value==="on"&&(N.value||p.value))return l(y.value,d.slots);const O={class:T.value,style:C.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:y.value,onClick:H,onFocus:R,onBlur:z};u&&(O.disabled=!0);const j=[],X=(0,t.h)("input",O);j.push(X);const ne=[],K=(0,t.h)(U.value,{class:["action-icon"]}),_=(0,t.h)("view",{class:D.value,onClick:te},{default:()=>[K]});if(ne.push(_),Q.value){const ie=(0,t.h)("view",{class:oe.value},[s.unit]);ne.push(ie)}const $=(0,t.h)("view",{class:I.value},{default:()=>ne});j.push($);const E={default:()=>j};E.label=d.slots.default,E.prepend=d.slots.prepend,E.append=d.slots.append,E.fixedPreTip=d.slots.fixedPreTip,E.fixedTip=d.slots.fixedTip;const L=ye(s,go);L.disabled=!1,L.readonly=p.value||N.value,L.visible=q.value,L["onUpdate:visible"]=x,L.modelValue=B.value,L["onUpdate:modelValue"]=M,L.text=v.value,L["onUpdate:text"]=W,L.onChange=P;const Z=(0,t.h)(a,L);E.hide=()=>[Z];const le=ye(s,be,ge);return s.prop&&(le.prop=`${s.prop}_item`),le.ref=h,o(le,E)}}}}var{componentName:Xd,create:Qd,scope:Gd}=J("picker-item"),Zd=Qd(Yd(Xd,Gd,De,Pe,ae.CircleClose,ae.ArrowRight,on,!1)),yo=Zd,Jd=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:o}){return()=>e.poppable?(0,t.h)(we,{...o},n):n?.default?.()??null}}),ef=Jd,hn=(e,n,o)=>e.map(l=>{const{value:r="value",text:i="text",children:a="children"}=o??{},{[r]:u,[i]:s,[a]:d,...h}=l,c={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:d,_parent:n};return c.children&&c.children.length&&(c.children=hn(c.children,c,o)),c}),Vi=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&Vi(l.children,n)},tf={topId:null,idKey:"id",pidKey:"pid",sortKey:""},nf=(e,n)=>{const{topId:o,idKey:l,pidKey:r,sortKey:i}={...tf,...n||{}};let a=[],u={};return e.forEach(s=>{s={...s};const{[l]:d,[r]:h}=s,c=u[h]=u[h]||[];!a.length&&h===o&&(a=c),c.push(s),s.children=u[d]||(u[d]=[])}),i&&Object.keys(u).forEach(s=>{u[s].length>1&&u[s].sort((d,h)=>d[i]-h[i])}),u=null,a},bo={prop:{type:[String]},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}},pr=(e,n)=>n[e.textKey],Pt=(e,n)=>n[e.valueKey],lf=(e,n)=>n[e.visibleKey],hr=(e,n)=>n[e.disabledKey],of=(e,n)=>{const o=n[e.doitKey];return Se(o)},af=(e,n)=>{const o=n[e.numKey];return o==null?null:de(n[o])},vr=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function rf(e,n,o,l,r,i=!1){return{props:bo,emits:["update:modelValue","change","click"],setup(a,u){const{emitEvent:s,exposeApi:d}=Oe({context:u},a.prop),{slots:h}=u,c=(0,t.computed)(()=>{const $={};return $[`${e}`]=!0,$}),p=(0,t.computed)(()=>{const $={};return $[`${e}__titles`]=!0,$[`${a.direction}`]=!0,a.align&&($[`${a.align}`]=!0),a.scroll===!0&&($.scrollable=!0),a.shape&&($[`${a.shape}`]=!0),a.showScrollArrow?(U.value===!0&&($["has-left-scroll-arrow "]=!0),D.value===!0&&($["has-right-scroll-arrow "]=!0)):a.showQuickNavigation&&($["has-navigation"]=!0),$}),g=(0,t.computed)(()=>({})),N=(0,t.computed)(()=>{if(!a.gutter)return 0;const $=ue(a.gutter);return $<=0?0:$}),k=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,$=>{k.value!==$&&(k.value=$,Q(!1))});const w=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),b=(0,t.computed)(()=>{const $={};return m.value||($.display="none"),$}),f=(0,t.ref)(),m=(0,t.ref)(!1),S=()=>{B(!m.value)},B=$=>{const E=$;E?(m.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,f.value?f.value.addEventListener("transitionend",()=>{m.value=!1},{once:!0}):setTimeout(()=>{m.value=!1},0))},v=(0,t.ref)(),y=(0,t.ref)([]),V=($,E)=>{y.value[E]=$},T=$=>E=>{V(E,$)},A=($,E)=>{const L=v.value,Z=y.value;if(!L||!Z||!Z[$])return;const le=Z[$];let ie=0;a.direction==="vertical"?ie=le.offsetTop-(L.offsetHeight-le.offsetHeight)/2:ie=le.offsetLeft-(L.offsetWidth-le.offsetWidth)/2,C(L,ie,E?0:.3,a.direction)},C=($,E,L,Z)=>{let le=0;const ie=Z==="horizontal"?$.scrollLeft:$.scrollTop,ce=L===0?1:Math.round(L*1e3/16);function fe(){Z==="horizontal"?$.scrollLeft+=(E-ie)/ce:$.scrollTop+=(E-ie)/ce,++le<ce&&He(fe)}fe()},q=($,E)=>{const L=Pt(a,$),Z={};return Z[`${e}__titles-item`]=!0,Z.disabled=hr(a,$),Z.active=L===k.value,a.shape&&(Z[`${a.shape}`]=!0),a.ellipsis&&(Z.ellipsis=!0),E&&(E.class&&(Z[`${E.class}`]=!0),E.disabled===!0&&(Z.disabled=E.disabled)),Z},H=($,E)=>{const L={};if(N.value>0){const Z=Math.abs(N.value/2);a.direction==="vertical"?(L["margin-top"]=`${Z}px`,L["margin-bottom"]=`${Z}px`):(L["margin-left"]=`${Z}px`,L["margin-right"]=`${Z}px`)}return E&&E.style&&Object.assign(L,E.style),L},x=($,E)=>`${Pt(a,$)??E}`,M=($,E)=>{const L=Pt(a,$),Z={};Z[`${e}__popup-item`]=!0,Z.disabled=hr(a,$),Z.active=L===k.value,a.shape&&(Z[`${a.shape}`]=!0);const le=vr(a,$,E);return le&&le.disabled===!0&&(Z.disabled=le.disabled),Z},P=(0,t.computed)(()=>(a.data??[]).filter($=>lf(a,$)!==!1)),R=($,E)=>{const L=Pt(a,$);if(s("click",$,E),k.value==L)return;const Z=()=>{k.value=L,a.scroll&&A(E,!1),s("update:modelValue",L),s("change",$,E)};if(typeof a.beforeChange=="function"){const le=a.beforeChange($,E);yt(le)?le.then(ie=>{ie!==!1&&Z()}).catch(()=>{Z()}):le!==!1&&Z()}else Z()},z=($,E)=>function(){R($,E)},W=($,E)=>{R($,E),B(!1)},I=($,E)=>function(){W($,E)},Q=$=>{if(!Array.isArray(a.data)||!a.scroll)return;te()&&ne();const E=a.data.findIndex(L=>Pt(a,L)===k.value);E!==-1&&A(E,$)},ee=()=>{te()||K()};(0,t.watch)(()=>a.data,()=>{setTimeout(Q,0)}),(0,t.onMounted)(()=>{Q(!0)}),(0,t.onBeforeUnmount)(()=>{ee()}),d({});const oe=($,E)=>{if(h.item)return h.item({item:$,index:E});const L=vr(a,$,E),Z=[];if(h.text){const ie=h.text({item:$,index:E});Z.push(ie)}else{const ie=[];if(L?.doit===!0||of(a,$)){const Ue=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ie.push(Ue)}const ce=L?.num??af(a,$);if(ce){let Ue="";const ze=de(ce);ze>=100?Ue="99+":Ue=`${ze}`;const $t=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[Ue]);ie.push($t)}const fe={class:`${e}__titles-item-text`};ie.push(pr(a,$));const Ke=(0,t.h)("view",fe,ie);Z.push(Ke)}const le=(0,t.h)("view",{class:`${e}__titles-item-line`});return Z.push(le),(0,t.h)("view",{ref:T(E),class:q($,L),style:H($,L),key:x($,E),onClick:z($,E)},Z)},Y=()=>{const $=h.default?h.default():[];if($.length===0)for(let E=0;E<P.value.length;E++){const L=P.value[E],Z=oe(L,E);$.push(Z)}return(0,t.h)("view",{ref:v,class:p.value,style:g.value},$)},G=()=>{let $=null;return h.navigation?$=h.navigation():$=(0,t.h)(o),(0,t.h)("view",{class:`${e}__navigation`,onClick:S},[$])},F=()=>{const $=[];for(let E=0;E<P.value.length;E++){const L=P.value[E];let Z=null;h.popupItem?Z=h.popupItem({item:L,index:E}):Z=pr(a,L);const le=(0,t.h)("view",{class:M(L,E),key:x(L,E),onClick:I(L,E)},[Z]);$.push(le)}return(0,t.h)("view",{class:w.value,style:b.value},$)},te=()=>a.showScrollArrow&&a.direction=="horizontal",U=(0,t.ref)(!1),D=(0,t.ref)(!1),O=$=>{const E=v.value,L=y.value;if(!(!E||!L))if($==="left"){const Z=E.scrollLeft;let le=Z;for(let ie=0;ie<L.length;ie++){const ce=L[ie].offsetLeft;if(Z-ce<0)break;le=ce}C(E,le,.3,"horizontal")}else{const Z=E.scrollLeft;let le=Z,ie=E.offsetWidth;for(let ce=L.length-1;ce>=0;ce--){const fe=L[ce].offsetLeft+L[ce].offsetWidth;if(fe-Z<E.offsetWidth){le+=ie-fe;break}ie=fe}C(E,le,.3,"horizontal")}},j=Ie(()=>{const $=v.value;if(!$)return;let E=$.scrollLeft>0;E!==U.value&&(U.value=E);let L=$.scrollWidth-$.scrollLeft>$.offsetWidth;L!==D.value&&(D.value=L)},50),X=$=>{j()},ne=()=>{const $=v.value;$&&(j(),$.addEventListener("scroll",X))},K=()=>{const $=v.value;$&&$.removeEventListener("scroll",X)},_=$=>{if($==="left"&&U.value!==!0||$==="right"&&D.value!==!0)return null;let E=null;return $==="left"?h.leftArrow?E=h.leftArrow():E=(0,t.h)(l):h.rightArrow?E=h.rightArrow():E=(0,t.h)(r),(0,t.h)("view",{class:[`${e}__scroll-arrow`,$],onClick:()=>{O($)}},[E])};return()=>{const $=[],E=Y();if($.push(E),te()){const L=_("left");L&&$.push(L);const Z=_("right");Z&&$.push(Z)}else if(a.showQuickNavigation){const L=G();$.push(L);const Z=F();$.push(Z)}return(0,t.h)("view",{class:c.value},$)}}}}var{create:sf,componentName:uf,scope:cf}=J("tabs-bar"),df=sf(rf(uf,cf,ae.MoreH,ae.Left,ae.Right,!1)),an=df,xi=Symbol("TabsStatesKey"),So={prop:{type:[String]},modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},transition:{type:[Boolean],default:()=>!0},height:{type:[String,Number]},width:{type:[String,Number]}},ff=15,mf=300,pf=200;function hf(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function gr(e,n=0,o,l,r=pf){o==="end"?e.style.transition=`transform ${r}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 vf=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,r){this.onStart=e,this.onMove=n,this.onEnd=o,this.momentumReduceRatio=l,this.isTouch=r??tl()}open(e){this.el=e;const n=nl(),o=(l,r,i)=>{const a={delta:l,direction:r,type:i};this.onMove(a)};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 r={delta:0,type:"start",direction:this.direction};this.onStart(r)},this.touchmove=l=>{if(!this.moving)return;n.move(l);let r=0;if(this.direction==="horizontal"){if(n.isVertical())return;r=n.state.deltaX}else{if(n.isHorizontal())return;r=n.state.deltaY}o(r,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 r=n.state.duration;r<mf&&Math.abs(l)>ff?(l=hf(l,r,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 gf(e,n,o,l=1,r){return new vf(e,n,o,l,r)}function yf(e,n,o=!1){return{props:So,emits:["update:modelValue","change"],setup(l,r){const{emitEvent:i,exposeApi:a}=Oe({context:r},l.prop),{slots:u}=r,s=(0,t.shallowRef)([]),d={current:(0,t.ref)(l.modelValue??""),direction:(0,t.ref)(l.direction),transition:l.transition,tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:T=>{const A={name:T};d.current.value===T&&(A.loaded=!0),s.value.push(A),(0,t.triggerRef)(s)},remove:T=>{const A=s.value.findIndex(C=>C.name===T);A!==-1&&s.value.splice(A,1)},isLoaded:T=>{if(!l.lazy)return!0;const A=s.value.findIndex(C=>C.name===T);return A!==-1?d.current.value?s.value[A].loaded??!1:A===0:!1}};(0,t.provide)(xi,d);const h=T=>{const A=s.value.findIndex(C=>C.name===T);A!==-1&&(s.value[A].loaded=!0,(0,t.triggerRef)(s))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([T,A])=>{d.current.value!==T&&(d.current.value=T??"",h(T??"")),d.direction.value!==A&&(d.direction.value=A)});const c=(0,t.ref)(null),p=(0,t.ref)(null),g=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),N=(0,t.computed)(()=>{const T={};if(l.width){const A=he(l.width);A&&(T.width=A)}if(l.height){const A=he(l.height);A&&(T.height=A)}return T});let k=!0;const w=(0,t.computed)(()=>{const T={};if(l.transition===!1)return T;const A=s.value.length;if(A<=0)return T;const C=s.value.findIndex(q=>q.name===d.current.value);return d.direction.value==="vertical"?d.tabHeight.value>0&&(T.height=`${A*d.tabHeight.value}px`,C!==-1&&(T.transform=`translate(0, -${C*d.tabHeight.value}px)`)):d.tabWidth.value>0&&(T.width=`${A*d.tabWidth.value}px`,C!==-1&&(T.transform=`translate(-${C*d.tabWidth.value}px, 0)`)),k&&(k=!1,T.transition="transform 0s ease"),T}),b={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},f=T=>{const A=s.value.length,C=s.value.findIndex(q=>q.name===d.current.value);b.moved=0,T.direction==="vertical"?(b.min=-1*(d.tabHeight.value*(A-1)+d.tabHeight.value/4),b.max=d.tabHeight.value/4,b.start=-C*d.tabHeight.value,b.itemDistance=d.tabHeight.value):(b.min=-1*(d.tabWidth.value*(A-1)+d.tabWidth.value/4),b.max=d.tabWidth.value/4,b.start=-C*d.tabWidth.value,b.itemDistance=d.tabWidth.value)},m=T=>{const A=p.value;if(!A)return;let C=b.start+T.delta;if(C>b.max?C=b.max:C<b.min&&(C=b.min),T.type==="move")gr(A,C,"move",T.direction,300);else if(T.type==="end"){let q=Math.floor(Math.abs(C)*1/b.itemDistance);const H=Math.abs(C)%b.itemDistance;b.start>C?H>=b.itemDistance*b.triggerAutoMoveRatio&&(q+=1):H>b.itemDistance-b.itemDistance*b.triggerAutoMoveRatio&&(q+=1),C=-1*q*b.itemDistance,gr(A,C,"end",T.direction,300),b.moved=C;const x=s.value[q].name;d.current.value=x??"",h(x??""),i("update:modelValue",x)}},S=()=>{},B=()=>{if(!c.value)return;const T=Fn(c.value);d.tabWidth.value=T.width,d.tabHeight.value=T.height},v=Cn(B,250);let y=null,V=null;return(0,t.onMounted)(()=>{l.transition!==!1&&c.value&&(B(),window.ResizeObserver&&(V=new window.ResizeObserver(v),V.observe(c.value)),l.draggle&&(y=gf(f,m,S),y.open(p.value)))}),(0,t.onBeforeUnmount)(()=>{V&&(V.disconnect(),V=null),y&&y.close()}),a({doLayout(){B()}}),()=>{const T=(0,t.h)("view",{class:`${e}__panes`,style:w.value,ref:p},[u?.default?.()]);return(0,t.h)("view",{class:g.value,style:N.value,ref:c},[T])}}}}var{create:bf,componentName:Sf,scope:kf}=J("tabs-container"),wf=bf(yf(Sf,kf,!1)),rn=wf,Cf={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 Nf(e,n,o){return{props:Cf,setup(l,{emit:r,slots:i}){const a=(0,t.inject)(xi);(0,t.onMounted)(()=>{a.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{a.remove(l.paneKey)});const u=(0,t.computed)(()=>{const h=[e];return a.direction.value==="vertical"?h.push("is-vertical"):h.push("is-horizontal"),a.transition===!1?h.push("is-no-transition"):h.push("is-transition"),h}),s=(0,t.computed)(()=>{const h={};return a.transition===!1?(a.current.value!==l.paneKey&&(h.display="none"),h):(a.direction.value==="vertical"&&a.tabHeight.value>0?h.height=`${a.tabHeight.value}px`:a.tabWidth.value>0&&(h.width=`${a.tabWidth.value}px`),h)}),d=(0,t.computed)(()=>l.loaded!=null?Se(l.loaded):a.isLoaded(l.paneKey));return()=>{let h=[];if(d.value)h=i?.default?.()??[];else if(i.empty)h=i.empty();else{const c={class:`${e}__empty-icon`},p=(0,t.h)(l.emptyIcon??o,c),g=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),N=(0,t.h)("view",{class:`${e}__empty`},[p,g]);h.push(N)}return(0,t.h)("view",{class:u.value,style:s.value,prop:l.paneKey},h)}}}}var{create:Af,componentName:Bf,scope:Tf}=J("tabs-pane"),Vf=Af(Nf(Bf,Tf,ae.Loading)),ll=Vf,yr=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=hn(e,null,this.config)}updateChildren(e,n){n?n.children=hn(e,n,this.config):this.nodes=hn(e,null,this.config)}getNodeByValue(e){let n;return Vi(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(r=>r.value===e[r.level]);if(!l)break;n.push(l),o=l.children}return n}isLeaf(e,n){const{leaf:o,children:l}=e,r=Array.isArray(l)&&!!l.length;return o||!r&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:o}=e;return Array.isArray(o)&&!!o.length}},{create:xf,scope:Ef}=J("cascader-pane"),$f=xf({components:{Loading:ae.Loading,Checklist:ae.Checklist,TabsBar:an,TabsContainer:rn,TabsPane:ll},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,ve.useFoxI18n)(Ef),l=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),r=(0,t.ref)(0),i=(0,t.ref)(),a=(0,t.ref)(!1),u=(0,t.ref)(e.modelValue),s=(0,t.ref)(new yr([],{})),d=(0,t.ref)([]),h=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),c=(0,t.computed)(()=>a.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((m,S)=>({text:m.selectedNode?m.selectedNode.text:o("select"),value:S}))),p=new Map;let g;const N=async()=>{p.clear(),d.value=[],r.value=0,a.value=!1,g=null;let{options:m}=e;l.value.convertConfig&&(m=nf(m,l.value.convertConfig)),s.value=new yr(m,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),h.value&&!s.value.nodes.length&&await w({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:s.value.nodes,selectedNode:null}],k(!h.value)},k=async(m=!0)=>{const S=u.value;if(S===void 0||!s.value.nodes.length)return;if(S.length===0){r.value=0,d.value=[{nodes:s.value.nodes,selectedNode:null}];return}let B=S;if(h.value&&Array.isArray(S)&&S.length){B=[];let v=s.value.nodes.find(y=>y.value===S[0]);v&&(B=[v.value],a.value=!0,await w(await S.slice(1).reduce(async(y,V)=>{const T=await y;await w(T);const A=T&&T?.children?.find(C=>C.value===V);return A&&B.push(V),Promise.resolve(A)},Promise.resolve(v))),a.value=!1)}B.length&&S===e.modelValue&&s.value.getPathNodesByValue(B).map((v,y)=>{r.value=y,f.handleNode(v,m)})},w=async m=>{if(!m)return;if(!l.value.lazyLoad){m.leaf=!0;return}if(s.value.isLeaf(m,h.value)||s.value.hasChildren(m,h.value))return;m.loading=!0;const S=m.root?null:m;let B=p.get(m);B||(B=new Promise(y=>{l.value.lazyLoad?.(m,y)}),p.set(m,B));const v=await B;Array.isArray(v)&&v.length>0?s.value.updateChildren(v,S):m.leaf=!0,m.loading=!1,p.delete(m)},b=m=>{const S=m.map(B=>B.value);u.value=S,n("change",S,m),n("pathChange",m),n("update:modelValue",S)},f={async handleNode(m,S){const{disabled:B,loading:v}=m;if(!(!S&&B||!d.value[r.value])){if(s.value.isLeaf(m,h.value)){if(m.leaf=!0,d.value[r.value].selectedNode=m,d.value=d.value.slice(0,m.level+1),!S){const y=d.value.map(V=>V.selectedNode);b(y),n("pathChange",y)}return}if(s.value.hasChildren(m,h.value)){const y=m.level+1;d.value[r.value].selectedNode=m,d.value=d.value.slice(0,y),d.value.push({nodes:m.children||[],selectedNode:null}),r.value=y,S||n("pathChange",d.value.map(V=>V.selectedNode));return}g=m,!v&&(await w(m),g===m&&(d.value[r.value].selectedNode=m,f.handleNode(m,S)))}},handleTabChange(m,S){g=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:o("select")},isSelected(m,S){return m.selectedNode&&m.selectedNode.value===S.value}};return(0,t.watch)([l,()=>e.options],()=>{N()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,m=>{Ee(m,u.value)||(u.value=m,k(!h.value))}),(0,t.watch)(()=>e.visible,m=>{m&&Array.isArray(u.value)&&u.value.length>0&&k(),m&&i.value&&setTimeout(()=>{i.value.doLayout()},0)}),{panes:d,panesTitles:c,initLoading:a,tabsCursor:r,tabsContainerRef:i,...f}}}),Df={class:"fox-cascader"},If={role:"menu",class:"fox-cascader__pane"},qf=["aria-checked","aria-disabled","onClick"],Pf={class:"fox-cascader__item__title"};function Mf(e,n,o,l,r,i){const a=(0,t.resolveComponent)("TabsBar"),u=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Checklist"),d=(0,t.resolveComponent)("TabsPane"),h=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",Df,[(0,t.createVNode)(a,{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)(h,{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,p)=>((0,t.openBlock)(),(0,t.createBlock)(d,{"pane-key":p,key:p},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",If,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.nodes,g=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:g.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(c,g),disabled:g.disabled}]),"aria-checked":e.isSelected(c,g),"aria-disabled":g.disabled||void 0,role:"menuitemradio",onClick:N=>e.handleNode(g,!1)},[(0,t.createElementVNode)("view",Pf,(0,t.toDisplayString)(g.text),1),g.loading?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,qf))),128))])]),_:2},1032,["pane-key"]))),128)):((0,t.openBlock)(),(0,t.createBlock)(d,{key:1,"pane-key":0},{default:(0,t.withCtx)(()=>[...n[2]||(n[2]=[(0,t.createElementVNode)("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}var zf=re($f,[["render",Mf]]),{create:Rf}=J("cascader"),Lf=Rf({components:{CascaderPane:zf,Wrapper:ef},props:{...Je,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(a){n("update:visible",a)}}),r=(a,u)=>{o.value=a,l.value=!1,n("change",a,u),n("update:modelValue",a)},i=a=>{n("pathChange",a)};return(0,t.watch)(()=>e.modelValue,a=>{a!==o.value&&(o.value=a)}),{onChange:r,onPathChange:i,innerValue:o,innerVisible:l}}}),Ff=["innerHTML"];function Of(e,n,o,l,r,i){const a=(0,t.resolveComponent)("CascaderPane"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(u,{poppable:e.poppable,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),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,Ff)):(0,t.createCommentVNode)("",!0)]),(0,t.createVNode)(a,{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 ol=re(Lf,[["render",Of]]);function Ct(e,n){return n[e.textKey??"text"]??""}function Nt(e,n){return n[e.valueKey??"value"]}function Ei(e,n){return n[e.childrenKey??"children"]}function mn(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const r=n[l],i=Ct(e,r),a=Nt(e,r);o.texts.push(i),o.values.push(a??"")}return o}function $i(e,n,o,l,r=[]){if(!o)return;const i=o[l];for(let a=0;a<n.length;a++)if(Ct(e,n[a])===i){const u=Nt(e,n[a])??"",s={[e.textKey]:i,[e.valueKey]:u};r.push(s);const d=Ei(e,n[a]);Array.isArray(d)&&$i(e,d,o,l+1,r);return}}function Di(e,n,o,l,r=[]){if(!o)return;const i=o[l];for(let a=0;a<n.length;a++)if(Nt(e,n[a])===i){const u=Ct(e,n[a])??"",s={[e.textKey]:u,[e.valueKey]:i};r.push(s);const d=Ei(e,n[a]);Array.isArray(d)&&Di(e,d,o,l+1,r);return}}function Nl(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 Kf=class{scope;constructor(e){this.scope=e}async load(e,n,o){const l="cascader";if(!e)return[];if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,o);const r=lt(l,this.scope);return r===null?(console.error(`${l} component not found api function`),[]):(xe(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await r(e,n,o))}};function Uf(){return new Kf(ct())}var Ii={modelValue:{type:[String,Array]},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:"/"},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}},Hf={...ge,...be,...Ii};function _f(e,n,o,l,r,i,a,u=!1){return{props:Hf,emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:c,disabled:p,innerReadonly:g,readonly:N,browse:k}=Te(s),{emitEvent:w,exposeApi:b}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return N.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:f}=(0,ve.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),B=Uf(),v=(0,t.ref)([]),y=(0,t.ref)([]),V=(0,t.computed)(()=>{if(Array.isArray(y.value)){if(s.showAllLevels===!1){const _=y.value.length-1;return y.value[_]}return y.value.join(s.separator)}else return y.value}),T=(0,t.ref)([]),A=(0,t.ref)([]);(0,t.watch)([()=>s.modelValue,()=>v.value],async([_,$])=>{if(w("setValue",_),s.lazy===!0){A.value.length==0&&(y.value=Array.isArray(_)?_:[],T.value=Array.isArray(_)?_:[]);return}if(s.valueType==="item"){let E=_;if(!Nl(s,E,A.value)){A.value=E;let L=mn(s,E);y.value=L.texts,T.value=L.values}}else if(s.valueType==="text"){let E=_,L=[];if($i(s,$,E,0,L),!Nl(s,L,A.value)){A.value=L;let Z=mn(s,L);y.value=Z.texts,T.value=Z.values}}else{let E=_,L=[];if(Di(s,$,E,0,L),!Nl(s,L,A.value)){A.value=L;let Z=mn(s,L);y.value=Z.texts,T.value=Z.values}}}),s.lazy===!0&&(T.value=Array.isArray(s.modelValue)?s.modelValue:[]),(0,t.watch)([()=>s.source,()=>s.params],async([_,$])=>{s.lazy||_&&(v.value=await B.load(_,$))},{immediate:!0});const C="fox-input-item",q=(0,t.computed)(()=>({[C]:!0,"is-disabled":p.value,"is-readonly":N.value})),H=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),x=(0,t.computed)(()=>{const _={};return H.value&&(_["text-align"]=H.value),_}),M=(0,t.ref)(!1),P=()=>{p.value===!0||N.value===!0||(M.value=!0)},R=_=>{M.value=_},z=(_,$)=>{let E=$.map(Z=>{if(Z==null)return Z;let le={...Z};return Reflect.deleteProperty(le,"text"),le[s.textKey]=Z.text??"",Reflect.deleteProperty(le,"value"),le[s.valueKey]=Z.value??"",le});A.value=E;let L=mn(s,E);y.value=L.texts,T.value=L.values,s.valueType==="text"?(w("change",y.value,E),w("update:modelValue",y.value)):s.valueType==="item"?(w("change",E,E),w("update:modelValue",E)):(w("change",T.value,E),w("update:modelValue",T.value)),w("update:pathNodes",E)},W=_=>{w("pathChange",_.map($=>{if($==null)return $;let E={...$};return Reflect.deleteProperty(E,"text"),E[s.textKey]=$.text??"",Reflect.deleteProperty(E,"value"),E[s.valueKey]=$.value??"",E}))},I=_=>{S.value=!0,w("focus",T.value,_)},Q=_=>{setTimeout(()=>{S.value=!1},0),w("blur",T.value,_)},ee=(0,t.computed)(()=>({[`${C}__append`]:!0,"is-disabled":p.value,"is-readonly":N.value})),oe=(0,t.computed)(()=>ke(s.unit)>0),Y=(0,t.computed)(()=>ke(s.unit)>0&&!S.value),G=(0,t.computed)(()=>({hidden:!Y.value})),F=_=>{A.value=[],y.value=[],T.value=[],w("update:modelValue",[]),w("change",[],_),w("clear",[]),w("update:pathNodes",[])},te=(0,t.computed)(()=>s.clearable&&!p.value&&!N.value),U=(0,t.computed)(()=>{let _=T.value&&T.value.length>0;return s.clearable&&_&&S.value}),D=_=>{U.value?F(_):P()},O=(0,t.computed)(()=>U.value&&te.value?r:i),j=(0,t.computed)(()=>({action:!0}));let X=null;const ne=()=>typeof X=="function"?X:typeof s.lazyLoad=="function"?s.lazyLoad:(X=async(_,$)=>{const E=[],L=[];let Z=0;if(!_.root){let le=_;for(;le;){const ie=Ct(s,le),ce=Nt(s,le);L.splice(0,0,ie),E.splice(0,0,ce),le=le._parent}Z=E.length}$(await B.load(s.source,{..._,level:Z,pathLabels:L,pathValues:E},!0))},X),K=(0,t.ref)();return b({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},select:()=>{K?.value.select()},setDisabled:_=>{c.value=_},setReadonly:_=>{g.value=_}}),()=>{if(k.value==="on"&&(N.value||p.value))return l(V.value,d.slots);const _={class:q.value,style:x.value,ref:K,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:V.value,onClick:P,onFocus:I,onBlur:Q};u&&(_.disabled=!0);const $=[],E=(0,t.h)("input",_);$.push(E);const L=[],Z=(0,t.h)(O.value,{class:["action-icon"]}),le=(0,t.h)("view",{class:j.value,onClick:D},{default:()=>[Z]});if(L.push(le),oe.value){const $t=(0,t.h)("view",{class:G.value},[s.unit]);L.push($t)}const ie=(0,t.h)("view",{class:ee.value},{default:()=>L});$.push(ie);const ce={default:()=>$};ce.label=d.slots.default,ce.prepend=d.slots.prepend,ce.append=d.slots.append,ce.fixedPreTip=d.slots.fixedPreTip,ce.fixedTip=d.slots.fixedTip;const fe={};fe.visible=M.value,fe["onUpdate:visible"]=R,fe.modelValue=T.value,fe.onChange=z,fe.onPathChange=W,fe.title=s.title,fe.valueKey=s.valueKey,fe.textKey=s.textKey,fe.childrenKey=s.childrenKey,fe.convertConfig=s.convertConfig,s.lazy?(fe.lazy=!0,fe.lazyLoad=ne()):fe.options=v.value;const Ke={};Ke.header=d.slots.header;const Ue=(0,t.h)(a,fe,Ke);ce.hide=()=>[Ue];const ze={...tt(s,Ii),ref:h};return s.prop&&(ze.prop=`${s.prop}_item`),o(ze,ce)}}}}var{componentName:jf,create:Wf,scope:Yf}=J("cascader-item"),Xf=Wf(_f(jf,Yf,De,Pe,ae.CircleClose,ae.ArrowRight,ol,!1)),ko=Xf,Qf=We(((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,r=36e5,i="millisecond",a="second",u="minute",s="hour",d="day",h="week",c="month",p="quarter",g="year",N="date",k="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,f={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 M=["th","st","nd","rd"],P=x%100;return"["+x+(M[(P-20)%10]||M[P]||M[0])+"]"}},m=function(x,M,P){var R=String(x);return!R||R.length>=M?x:""+Array(M+1-R.length).join(P)+x},S={s:m,z:function(x){var M=-x.utcOffset(),P=Math.abs(M),R=Math.floor(P/60),z=P%60;return(M<=0?"+":"-")+m(R,2,"0")+":"+m(z,2,"0")},m:function x(M,P){if(M.date()<P.date())return-x(P,M);var R=12*(P.year()-M.year())+(P.month()-M.month()),z=M.clone().add(R,c),W=P-z<0,I=M.clone().add(R+(W?-1:1),c);return+(-(R+(P-z)/(W?z-I:I-z))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:c,y:g,w:h,d,D:N,h:s,m:u,s:a,ms:i,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},B="en",v={};v[B]=f;var y="$isDayjsObject",V=function(x){return x instanceof q||!(!x||!x[y])},T=function x(M,P,R){var z;if(!M)return B;if(typeof M=="string"){var W=M.toLowerCase();v[W]&&(z=W),P&&(v[W]=P,z=W);var I=M.split("-");if(!z&&I.length>1)return x(I[0])}else{var Q=M.name;v[Q]=M,z=Q}return!R&&z&&(B=z),z||!R&&B},A=function(x,M){if(V(x))return x.clone();var P=typeof M=="object"?M:{};return P.date=x,P.args=arguments,new q(P)},C=S;C.l=T,C.i=V,C.w=function(x,M){return A(x,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var q=(function(){function x(P){this.$L=T(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[y]=!0}var M=x.prototype;return M.parse=function(P){this.$d=(function(R){var z=R.date,W=R.utc;if(z===null)return new Date(NaN);if(C.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var I=z.match(w);if(I){var Q=I[2]-1||0,ee=(I[7]||"0").substring(0,3);return W?new Date(Date.UTC(I[1],Q,I[3]||1,I[4]||0,I[5]||0,I[6]||0,ee)):new Date(I[1],Q,I[3]||1,I[4]||0,I[5]||0,I[6]||0,ee)}}return new Date(z)})(P),this.init()},M.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},M.$utils=function(){return C},M.isValid=function(){return this.$d.toString()!==k},M.isSame=function(P,R){var z=A(P);return this.startOf(R)<=z&&z<=this.endOf(R)},M.isAfter=function(P,R){return A(P)<this.startOf(R)},M.isBefore=function(P,R){return this.endOf(R)<A(P)},M.$g=function(P,R,z){return C.u(P)?this[R]:this.set(z,P)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(P,R){var z=this,W=!!C.u(R)||R,I=C.p(P),Q=function(D,O){var j=C.w(z.$u?Date.UTC(z.$y,O,D):new Date(z.$y,O,D),z);return W?j:j.endOf(d)},ee=function(D,O){return C.w(z.toDate()[D].apply(z.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(O)),z)},oe=this.$W,Y=this.$M,G=this.$D,F="set"+(this.$u?"UTC":"");switch(I){case g:return W?Q(1,0):Q(31,11);case c:return W?Q(1,Y):Q(0,Y+1);case h:var te=this.$locale().weekStart||0,U=(oe<te?oe+7:oe)-te;return Q(W?G-U:G+(6-U),Y);case d:case N:return ee(F+"Hours",0);case s:return ee(F+"Minutes",1);case u:return ee(F+"Seconds",2);case a:return ee(F+"Milliseconds",3);default:return this.clone()}},M.endOf=function(P){return this.startOf(P,!1)},M.$set=function(P,R){var z,W=C.p(P),I="set"+(this.$u?"UTC":""),Q=(z={},z[d]=I+"Date",z[N]=I+"Date",z[c]=I+"Month",z[g]=I+"FullYear",z[s]=I+"Hours",z[u]=I+"Minutes",z[a]=I+"Seconds",z[i]=I+"Milliseconds",z)[W],ee=W===d?this.$D+(R-this.$W):R;if(W===c||W===g){var oe=this.clone().set(N,1);oe.$d[Q](ee),oe.init(),this.$d=oe.set(N,Math.min(this.$D,oe.daysInMonth())).$d}else Q&&this.$d[Q](ee);return this.init(),this},M.set=function(P,R){return this.clone().$set(P,R)},M.get=function(P){return this[C.p(P)]()},M.add=function(P,R){var z,W=this;P=Number(P);var I=C.p(R),Q=function(Y){var G=A(W);return C.w(G.date(G.date()+Math.round(Y*P)),W)};if(I===c)return this.set(c,this.$M+P);if(I===g)return this.set(g,this.$y+P);if(I===d)return Q(1);if(I===h)return Q(7);var ee=(z={},z[u]=l,z[s]=r,z[a]=o,z)[I]||1,oe=this.$d.getTime()+P*ee;return C.w(oe,this)},M.subtract=function(P,R){return this.add(-1*P,R)},M.format=function(P){var R=this,z=this.$locale();if(!this.isValid())return z.invalidDate||k;var W=P||"YYYY-MM-DDTHH:mm:ssZ",I=C.z(this),Q=this.$H,ee=this.$m,oe=this.$M,Y=z.weekdays,G=z.months,F=z.meridiem,te=function(O,j,X,ne){return O&&(O[j]||O(R,W))||X[j].slice(0,ne)},U=function(O){return C.s(Q%12||12,O,"0")},D=F||function(O,j,X){var ne=O<12?"AM":"PM";return X?ne.toLowerCase():ne};return W.replace(b,(function(O,j){return j||(function(X){switch(X){case"YY":return String(R.$y).slice(-2);case"YYYY":return C.s(R.$y,4,"0");case"M":return oe+1;case"MM":return C.s(oe+1,2,"0");case"MMM":return te(z.monthsShort,oe,G,3);case"MMMM":return te(G,oe);case"D":return R.$D;case"DD":return C.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return te(z.weekdaysMin,R.$W,Y,2);case"ddd":return te(z.weekdaysShort,R.$W,Y,3);case"dddd":return Y[R.$W];case"H":return String(Q);case"HH":return C.s(Q,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return D(Q,ee,!0);case"A":return D(Q,ee,!1);case"m":return String(ee);case"mm":return C.s(ee,2,"0");case"s":return String(R.$s);case"ss":return C.s(R.$s,2,"0");case"SSS":return C.s(R.$ms,3,"0");case"Z":return I}return null})(O)||I.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(P,R,z){var W,I=this,Q=C.p(R),ee=A(P),oe=(ee.utcOffset()-this.utcOffset())*l,Y=this-ee,G=function(){return C.m(I,ee)};switch(Q){case g:W=G()/12;break;case c:W=G();break;case p:W=G()/3;break;case h:W=(Y-oe)/6048e5;break;case d:W=(Y-oe)/864e5;break;case s:W=Y/r;break;case u:W=Y/l;break;case a:W=Y/o;break;default:W=Y}return z?W:C.a(W)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return v[this.$L]},M.locale=function(P,R){if(!P)return this.$L;var z=this.clone(),W=T(P,R,!0);return W&&(z.$L=W),z},M.clone=function(){return C.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},x})(),H=q.prototype;return A.prototype=H,[["$ms",i],["$s",a],["$m",u],["$H",s],["$W",d],["$M",c],["$y",g],["$D",N]].forEach((function(x){H[x[1]]=function(M){return this.$g(M,x[0],x[1])}})),A.extend=function(x,M){return x.$i||(x(M,q,A),x.$i=!0),A},A.locale=T,A.isDayjs=V,A.unix=function(x){return A(1e3*x)},A.en=v[B],A.Ls=v,A.p={},A}))})),Gf=We(((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,r=/\d/,i=/\d\d/,a=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},d=function(w){return(w=+w)+(w>68?1900:2e3)},h=function(w){return function(b){this[w]=+b}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(w){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var f=b.match(/([+-]|\d\d)/g),m=60*f[1]+(+f[2]||0);return m===0?0:f[0]==="+"?-m:m})(w)}],p=function(w){var b=s[w];return b&&(b.indexOf?b:b.s.concat(b.f))},g=function(w,b){var f,m=s.meridiem;if(m){for(var S=1;S<=24;S+=1)if(w.indexOf(m(S,0,b))>-1){f=S>12;break}}else f=w===(b?"pm":"PM");return f},N={A:[u,function(w){this.afternoon=g(w,!1)}],a:[u,function(w){this.afternoon=g(w,!0)}],Q:[r,function(w){this.month=3*(w-1)+1}],S:[r,function(w){this.milliseconds=100*+w}],SS:[i,function(w){this.milliseconds=10*+w}],SSS:[/\d{3}/,function(w){this.milliseconds=+w}],s:[a,h("seconds")],ss:[a,h("seconds")],m:[a,h("minutes")],mm:[a,h("minutes")],H:[a,h("hours")],h:[a,h("hours")],HH:[a,h("hours")],hh:[a,h("hours")],D:[a,h("day")],DD:[i,h("day")],Do:[u,function(w){var b=s.ordinal,f=w.match(/\d+/);if(this.day=f[0],b)for(var m=1;m<=31;m+=1)b(m).replace(/\[|\]/g,"")===w&&(this.day=m)}],w:[a,h("week")],ww:[i,h("week")],M:[a,h("month")],MM:[i,h("month")],MMM:[u,function(w){var b=p("months"),f=(p("monthsShort")||b.map((function(m){return m.slice(0,3)}))).indexOf(w)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[u,function(w){var b=p("months").indexOf(w)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,h("year")],YY:[i,function(w){this.year=d(w)}],YYYY:[/\d{4}/,h("year")],Z:c,ZZ:c};function k(w){for(var b=w,f=s&&s.formats,m=(w=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(A,C,q){var H=q&&q.toUpperCase();return C||f[q]||o[q]||f[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,M,P){return M||P.slice(1)}))}))).match(l),S=m.length,B=0;B<S;B+=1){var v=m[B],y=N[v],V=y&&y[0],T=y&&y[1];m[B]=T?{regex:V,parser:T}:v.replace(/^\[|\]$/g,"")}return function(A){for(var C={},q=0,H=0;q<S;q+=1){var x=m[q];if(typeof x=="string")H+=x.length;else{var M=x.regex,P=x.parser,R=A.slice(H),z=M.exec(R)[0];P.call(C,z),A=A.replace(z,"")}}return(function(W){var I=W.afternoon;if(I!==void 0){var Q=W.hours;I?Q<12&&(W.hours+=12):Q===12&&(W.hours=0),delete W.afternoon}})(C),C}}return function(w,b,f){f.p.customParseFormat=!0,w&&w.parseTwoDigitYear&&(d=w.parseTwoDigitYear);var m=b.prototype,S=m.parse;m.parse=function(B){var v=B.date,y=B.utc,V=B.args;this.$u=y;var T=V[1];if(typeof T=="string"){var A=V[2]===!0,C=V[3]===!0,q=A||C,H=V[2];C&&(H=V[2]),s=this.$locale(),!A&&H&&(s=f.Ls[H]),this.$d=(function(R,z,W,I){try{if(["x","X"].indexOf(z)>-1)return new Date((z==="X"?1e3:1)*R);var Q=k(z)(R),ee=Q.year,oe=Q.month,Y=Q.day,G=Q.hours,F=Q.minutes,te=Q.seconds,U=Q.milliseconds,D=Q.zone,O=Q.week,j=new Date,X=Y||(ee||oe?1:j.getDate()),ne=ee||j.getFullYear(),K=0;ee&&!oe||(K=oe>0?oe-1:j.getMonth());var _,$=G||0,E=F||0,L=te||0,Z=U||0;return D?new Date(Date.UTC(ne,K,X,$,E,L,Z+60*D.offset*1e3)):W?new Date(Date.UTC(ne,K,X,$,E,L,Z)):(_=new Date(ne,K,X,$,E,L,Z),O&&(_=I(_).week(O).toDate()),_)}catch{return new Date("")}})(v,T,y,f),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),q&&v!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var x=T.length,M=1;M<=x;M+=1){V[1]=T[M-1];var P=f.apply(this,V);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}M===x&&(this.$d=new Date(""))}else S.call(this,B)}}}))})),Zf=We(((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 r=l.prototype,i=r.format;r.format=function(a){var u=this,s=this.$locale();if(!this.isValid())return i.bind(this)(a);var d=this.$utils(),h=(a||"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((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),c==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),c==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return c}}));return i.bind(this)(h)}}}))})),Jf=We(((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,r){var i=l.prototype,a=function(c){return c&&(c.indexOf?c:c.s)},u=function(c,p,g,N,k){var w=c.name?c:c.$locale(),b=a(w[p]),f=a(w[g]),m=b||f.map((function(B){return B.slice(0,N)}));if(!k)return m;var S=w.weekStart;return m.map((function(B,v){return m[(v+(S||0))%7]}))},s=function(){return r.Ls[r.locale()]},d=function(c,p){return c.formats[p]||(function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(N,k,w){return k||w.slice(1)}))})(c.formats[p.toUpperCase()])},h=function(){var c=this;return{months:function(p){return p?p.format("MMMM"):u(c,"months")},monthsShort:function(p){return p?p.format("MMM"):u(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(c,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(c,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return d(c.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return h.bind(this)()},r.localeData=function(){var c=s();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(p){return d(c,p)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(c){return u(s(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return u(s(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return u(s(),"weekdaysMin","weekdays",2,c)}}}))})),em=We(((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(r,i,a){var u=i.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=a(this).startOf(l).add(1,l).date(d),c=a(this).endOf(o);if(h.isBefore(c))return 1}var p=a(this).startOf(l).date(d).startOf(o).subtract(1,"millisecond"),g=this.diff(p,o,!0);return g<0?a(this).startOf("week").week():Math.ceil(g)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})),tm=We(((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 r=this.month(),i=this.week(),a=this.year();return i===1&&r===11?a+1:r===0&&i>=52?a-1:a}}}))})),nm=We(((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,r){l.prototype.dayOfYear=function(i){var a=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return i==null?a:this.add(i-a,"day")}}}))})),lm=We(((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(r,i){return this.isSame(r,i)||this.isAfter(r,i)}}}))})),om=We(((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(r,i){return this.isSame(r,i)||this.isBefore(r,i)}}}))})),Fe=Ye(Qf(),1),am=Ye(Gf(),1),rm=Ye(Zf(),1),im=Ye(Jf(),1),sm=Ye(em(),1),um=Ye(tm(),1),cm=Ye(nm(),1),dm=Ye(lm(),1),fm=Ye(om(),1);Fe.default.extend(im.default);Fe.default.extend(rm.default);Fe.default.extend(am.default);Fe.default.extend(sm.default);Fe.default.extend(um.default);Fe.default.extend(cm.default);Fe.default.extend(dm.default);Fe.default.extend(fm.default);var gt={format(e,n="YYYY-MM-DD"){return(0,Fe.default)(e).format(n)},parser(e,n){return(0,Fe.default)(e,n).toDate()},getDay(e,n,o){let l=n??new Date;const r=e*(1e3*60*60*24);return l=new Date(l.getTime()+r),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,r=typeof n=="string"?this.parser(n,o):n,i=l.getTime(),a=r.getTime();return i==a?0:i>a?1:-1},between(e,n,o,l){let r;l==="year"?r=new Date(new Date(n).setFullYear(n.getFullYear()+o)):l==="month"?r=new Date(new Date(n).setMonth(n.getMonth()+o)):r=new Date(new Date(n).setDate(n.getDate()+o));const i=e.getTime(),a=r.getTime(),u=n.getTime();return a>u?i>=u&&i<=a:i>=a&&i<=u},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")}},br=new Date().getFullYear(),wo={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"},Vn=(e,n,o)=>{let l;if(je(n)?l=n:typeof n=="string"&&ke(n)>0?l=gt.parser(n,o):l=new Date,l.toString()==="Invalid Date")return null;let r=Math.max(l.getTime(),e.minDate.getTime());return r=Math.min(r,e.maxDate.getTime()),new Date(r)},_l=(e,n,o)=>{je(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),gt.format(new Date(l),o)},Co={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(br-10,0,1),validator:je},maxDate:{type:Date,default:()=>new Date(br+10,11,31),validator:je},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:mm,scope:pm}=J("date-picker"),hm=mm({components:{Picker:on},props:{...Co},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=(0,ve.useFoxI18n)(pm),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"))},r=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,m=>{r.value=m});function i(m,S){return new Date(m,S,0).getDate()}const a=(m,S)=>{const B=e[`${m}Date`],v=B.getFullYear();let y=1,V=1,T=0,A=0;m==="max"&&(y=12,V=i(S.getFullYear(),S.getMonth()+1),T=23,A=59);const C=A;return S.getFullYear()===v&&(y=B.getMonth()+1,S.getMonth()+1===y&&(V=B.getDate(),S.getDate()===V&&(T=B.getHours(),S.getHours()===T&&(A=B.getMinutes())))),{[`${m}Year`]:v,[`${m}Month`]:y,[`${m}Date`]:V,[`${m}Hour`]:T,[`${m}Minute`]:A,[`${m}Seconds`]:C}},u=(0,t.computed)(()=>{if(!p.value)return[];const{maxYear:m,maxDate:S,maxMonth:B,maxHour:v,maxMinute:y,maxSeconds:V}=a("max",p.value),{minYear:T,minDate:A,minMonth:C,minHour:q,minMinute:H,minSeconds:x}=a("min",p.value);let M=[{type:"year",range:[T,m]},{type:"month",range:[C,B]},{type:"day",range:[A,S]},{type:"hour",range:[q,v]},{type:"minute",range:[H,y]},{type:"seconds",range:[x,V]}];switch(e.type){case"date":M=M.slice(0,3);break;case"datetime":M=M.slice(0,5);break;case"time":M=M.slice(3,6);break;case"year-month":M=M.slice(0,2);break;case"month-day":M=M.slice(1,3);break;case"datehour":M=M.slice(0,4);break;case"hour-minute":M=M.slice(3,5);break}return M}),s=(m,S,B,v,y)=>{const V=[];for(;m<=S;){let T=!0;if(typeof e.itemFilter=="function"){const A={text:`${m}`,value:m,type:B,currentYearMonth:v};T=e.itemFilter(A)}if(T)if(typeof e.itemFormatter=="function"){const A={text:`${m}`,value:m,type:B,currentYearMonth:v};e.itemFormatter(A),V.push({text:A.text,value:A.value})}else if(e.isShowChinese){let A=`${m}${l[B]}`;if(B==="day"){if(v[0]===y[0]&&v[1]===y[1]&&m===y[2])A=l.today;else{const C=new Date(v[0],v[1],m).getDay();A=`${A} ${l.fullWeekdays[C]}`}V.push({text:A,value:m})}else V.push({text:m+l[B],value:m})}else V.push({text:`${m}`,value:m});B==="minute"?m+=e.minuteStep:m++}return V},d=(0,t.computed)(()=>{const m=new Date,S=[m.getFullYear(),m.getMonth(),m.getDate()],B=[];p.value&&(B[0]=p.value.getFullYear(),B[1]=p.value.getMonth());let v=[];return u.value.forEach(y=>{let V=s(y.range[0],y.range[1],y.type,B,S);V&&v.push(V)}),v}),h=(m,S)=>m==="year"?S.getFullYear():m==="month"?S.getMonth()+1:m==="day"?S.getDate():m==="hour"?S.getHours():m==="minute"?S.getMinutes():m==="seconds"?S.getSeconds():0,c=(0,t.ref)(),p=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,m=>{let S;if(typeof m=="string"?m.length==0||m==="Invalid Date"?S=new Date:e.valueFormat?S=Vn(e,e.modelValue,e.valueFormat):S=Vn(e,m,wo[e.type]):je(m)?S=m:S=new Date,!!S&&(!p.value||S.getTime()!==p.value.getTime())){p.value=S;let B=[];u.value.forEach(v=>{let y=h(v.type,S);B.push(y)}),c.value=B}},{immediate:!0});const g=m=>{if(!m||m.length===0){p.value=new Date;let S=[];u.value.forEach(B=>{let v=h(B.type,p.value);S.push(v)}),c.value=S;return}if(e.type==="date"){const S=m[0],B=m[1]-1,v=Math.min(m[2],i(S,B+1));v!==m[2]&&(m[2]=v),p.value=new Date(S,B,v)}else if(e.type==="datetime"){const S=m[0],B=m[1]-1,v=Math.min(m[2],i(S,B+1)),y=m[3],V=m[4];v!==m[2]&&(m[2]=v),p.value=new Date(S,B,v,y,V)}else if(e.type==="time"){const S=m[0],B=m[1],v=m[2],y=p.value??new Date;p.value=new Date(y.getFullYear(),y.getMonth(),y.getDate(),S,B,v)}else if(e.type==="year-month"){const S=m[0],B=m[1]-1;p.value=new Date(S,B)}else if(e.type==="month-day"){const S=(p.value??new Date).getFullYear(),B=m[0]-1,v=Math.min(m[1],i(S,B+1));v!==m[1]&&(m[1]=v),p.value=new Date(S,B,v)}else if(e.type==="datehour"){const S=m[0],B=m[1]-1,v=Math.min(m[2],i(S,B+1)),y=m[3];v!==m[2]&&(m[2]=v),p.value=new Date(S,B,v,y)}else if(e.type==="hour-minute"){const S=m[0],B=m[1],v=p.value??new Date;p.value=new Date(v.getFullYear(),v.getMonth(),v.getDate(),S,B)}c.value=m};return{columns:d,dateIndexs:c,show:r,onChange:m=>{g(m)},onClose:()=>{n("update:close",!1)},onConfirm:m=>{g(m);const S=p.value??new Date;e.valueFormat?n("update:modelValue",_l(e,S,e.valueFormat)):n("update:modelValue",S),n("confirm",m)},onClear:()=>{n("clear")},onUpdateVisible:m=>{r.value=m,n("update:visible",m)}}}});function vm(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(a,{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 al=re(hm,[["render",vm]]),gm={format:{type:[String]},placeholder:{type:[String]},textAlign:{type:[String]},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}};function ym(e){let n=e.format;return n||(n=wo[e.type??"date"]),n}var bm={...ge,...be,...Co,...gm};function Sm(e,n,o,l,r,i,a,u=!1){return{props:bm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:c,disabled:p,innerReadonly:g,readonly:N,browse:k}=Te(s),{emitEvent:w,exposeApi:b}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return N.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:f}=(0,ve.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),v=qe(s,"modelValue",D=>D==null?null:typeof D=="string"?D.length==0?null:s.valueFormat?Vn(s,D,s.valueFormat)??D:Vn(s,D,wo[s.type])??D:je(D)?D:null,w),y=(0,t.computed)(()=>{if(!v.value)return"";const D=ym(s);return _l(s,v.value,D)}),V="fox-input-item",T=(0,t.computed)(()=>({[V]:!0,"is-disabled":p.value,"is-readonly":N.value})),A=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),C=(0,t.computed)(()=>{const D={};return A.value&&(D["text-align"]=A.value),D}),q=(0,t.ref)(!1),H=()=>{q.value=!0},x=()=>{q.value=!1};d.expose({showPicker:H,hidePicker:x});const M=D=>{q.value=D},P=D=>{if(v.value=D,s.valueFormat){let O=_l(s,D,s.valueFormat);w("update:modelValue",O,{}),w("change",O,{})}else w("update:modelValue",D,{}),w("change",D,{})},R=D=>{let O=D.target.value;S.value=!0,w("focus",O,D)},z=D=>{setTimeout(()=>{S.value=!1},0);let O=D.target.value;s.maxLength&&O.length>Number(s.maxLength)&&(O=O.slice(0,Number(s.maxLength))),w("blur",O,D)},W=(0,t.computed)(()=>({[`${V}__append`]:!0,"is-disabled":p.value,"is-readonly":N.value})),I=(0,t.computed)(()=>ke(s.unit)>0),Q=(0,t.computed)(()=>ke(s.unit)>0&&!S.value),ee=(0,t.computed)(()=>({hidden:!Q.value})),oe=D=>{v.value="",w("update:modelValue","",D),w("change","",D),w("clear",""),x()},Y=(0,t.computed)(()=>s.clearable&&!p.value&&!N.value),G=(0,t.computed)(()=>{let D=ke(v.value)>0;return s.clearable&&D&&S.value}),F=D=>{G.value?oe(D):H()},te=(0,t.computed)(()=>G.value&&Y.value?r:i),U=(0,t.computed)(()=>({action:!0}));return b({setDisabled:D=>{c.value=D},setReadonly:D=>{g.value=D}}),()=>{if(k.value==="on"&&(N.value||p.value))return l(y.value,d.slots);const D={class:T.value,style:C.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:y.value,onClick:H,onFocus:R,onBlur:z};u&&(D.disabled=!0);const O=[],j=(0,t.h)("input",D);O.push(j);const X=[],ne=(0,t.h)(te.value,{class:["action-icon"]}),K=(0,t.h)("view",{class:U.value,onClick:F},{default:()=>[ne]});if(X.push(K),I.value){const ie=(0,t.h)("view",{class:ee.value},[s.unit]);X.push(ie)}const _=(0,t.h)("view",{class:W.value},{default:()=>X});O.push(_);const $={default:()=>O};$.label=d.slots.default,$.prepend=d.slots.prepend,$.append=d.slots.append,$.fixedPreTip=d.slots.fixedPreTip,$.fixedTip=d.slots.fixedTip;const E=ye(s,Co);E.valueFormat=null,E.disabled=!1,E.readonly=p.value||N.value,E.visible=q.value,E["onUpdate:visible"]=M,E.modelValue=v.value,E["onUpdate:modelValue"]=P,E.onClear=oe;const L={};if(d.slots.top){const ie=d.slots.top();L.top=()=>ie}if(d.slots.bottom){const ie=d.slots.bottom();L.default=()=>ie}const Z=(0,t.h)(a,E,L);$.hide=()=>[Z];const le={...ye(s,be,ge),ref:h};return s.prop&&(le.prop=`${s.prop}_item`),o(le,$)}}}}var{create:km,componentName:wm,scope:Cm}=J("date-item"),Nm=km(Sm(wm,Cm,De,Pe,ae.CircleClose,ae.Date,al,!1)),No=Nm,se={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 r=new Date(Number(e),parseInt(n)-1,Number(o));let i=r.getDay();const a=r.getDate();let u=6-i;return l!==0&&(i=i==0?7:i,u=7-i),Math.ceil((a+u)/7)},getYearWeek:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),i=new Date(Number(e),0,1),a=Math.round((r.valueOf()-i.valueOf())/864e5);return Math.ceil((a+(i.getDay()+1-1))/7)},getWeekDate:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),i=r.getTime();let a=r.getDay();if(l===0){const s=i-a*864e5,d=i+(6-a)*864e5;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}else{a=a==0?7:a;const u=1440*60*1e3,s=i-(a-1)*u,d=i+(7-a)*u;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}},formatResultDate:function(e){const 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}},{create:Am,scope:Bm}=J("calendar-pane"),Tm=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},confirmText:{type:String},startText:{type:String},endText:{type:String},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:o,expose:l}){const{toLocaleRefs:r,t:i}=(0,ve.useFoxI18n)(Bm),a=r(e,["title","confirmText","startText","endText","today"]),u=JSON.parse(i("weekdays")),s=(0,t.ref)([...u.slice(e.firstDayOfWeek,7),...u.slice(0,e.firstDayOfWeek)]),d=(0,t.ref)(null),h=(0,t.ref)(null),c=(0,t.ref)(null),p=(0,t.ref)(null),g=(0,t.ref)(0),N=(0,t.computed)(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),k=(0,t.computed)(()=>o.btn),w=(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}),m=U=>U.split("-"),S=U=>se.isEqual(f.currDate[0],U),B=U=>se.isEqual(f.currDate[1],U),v=U=>f.currDate?.length>0?f.currDate?.some(D=>se.isEqual(D,U)):!1,y=(U,D)=>D.curData[0]+"-"+D.curData[1]+"-"+se.getNumTwoBit(+U.day),V=(U,D)=>{const O=y(U,D),{type:j}=e;return U.type=="curr"?se.isEqual(f.currDate,O)||(j=="range"||j=="week")&&(S(O)||B(O))||j=="multiple"&&v(O)?`${f.dayPrefix}--active`:f.propStartDate&&se.compareDate(O,f.propStartDate)||f.propEndDate&&se.compareDate(f.propEndDate,O)?`${f.dayPrefix}--disabled`:(j=="range"||j=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&se.compareDate(f.currDate[0],O)&&se.compareDate(O,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},T=()=>{const{type:U}=e;if(U=="range"&&f.chooseData.length==2||U!="range"){let D=f.chooseData.slice(0);U=="week"&&(D={weekDate:[C(f.chooseData[0]),C(f.chooseData[1])]}),n("choose",D),e.poppable&&n("update")}},A=(U,D,O=!1)=>{if(V(U,D)!=`${f.dayPrefix}--disabled`){const{type:j}=e;let[X,ne]=D.curData,K=[...D.curData];if(K[2]=se.getNumTwoBit(Number(U.day)),K[3]=`${K[0]}-${K[1]}-${K[2]}`,K[4]=se.getWhatDay(+K[0],+K[1],+K[2]),j=="multiple")if(f.currDate?.length>0){let _;f.currDate?.forEach(($,E)=>{$==K[3]&&(_=E)}),O?f.chooseData.push([...K]):_!==void 0?(f.currDate.splice(_,1),f.chooseData.splice(_,1)):(f.currDate.push(K[3]),f.chooseData.push([...K]))}else f.currDate=[K[3]],f.chooseData=[[...K]];else if(j=="range"){let _=Object.values(f.currDate).length;_==2||_==0?f.currDate=[K[3]]:se.compareDate(f.currDate[0],K[3])?Array.isArray(f.currDate)&&f.currDate.push(K[3]):Array.isArray(f.currDate)&&f.currDate.unshift(K[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...K]]:se.compareDate(f.chooseData[0][3],K[3])?f.chooseData=[...f.chooseData,[...K]]:f.chooseData=[[...K],...f.chooseData]}else if(j=="week"){let _=se.getWeekDate(X,ne,U.day,e.firstDayOfWeek);f.propStartDate&&se.compareDate(_[0],f.propStartDate)&&_.splice(0,1,f.propStartDate),f.propEndDate&&se.compareDate(f.propEndDate,_[1])&&_.splice(1,1,f.propEndDate),f.currDate=_,f.chooseData=[se.formatResultDate(_[0]),se.formatResultDate(_[1])]}else f.currDate=K[3],f.chooseData=[...K];if(!O){let _=f.chooseData;j=="week"&&(_={weekDate:[C(f.chooseData[0]),C(f.chooseData[1])]}),n("select",_),(e.isAutoBackFill||!e.poppable)&&T()}}},C=U=>{let[D,O,j]=U;return{date:U,monthWeekNum:se.getMonthWeek(D,O,j,e.firstDayOfWeek),yearWeekNum:se.getYearWeek(D,O,j,e.firstDayOfWeek)}},q=U=>{const D=U=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let O=parseInt(D.curData[0]),j=parseInt(D.curData[1].toString().replace(/^0/,""));switch(U){case"prev":j==1&&(O-=1),j=j==1?12:--j;break;case"next":j==12&&(O+=1),j=j==12?1:++j;break}return[O+"",se.getNumTwoBit(j),se.getMonthDays(String(O),String(j))+""]},H=(U,D,O)=>{let{year:j,month:X}=O;return D=="prev"&&U>=7&&(U-=7),Array.from(Array(U),(ne,K)=>({day:String(K+1),type:D,year:j,month:X}))},x=(U,D,O,j)=>{U=U-e.firstDayOfWeek;let{year:X,month:ne}=O;return D=="prev"&&U>=7&&(U-=7),Array.from(Array(j),(K,_)=>({day:String(_+1),type:D,year:X,month:ne})).slice(j-U)},M=(U,D)=>{const O=se.getMonthPreDay(+U[0],+U[1]);let j=Number(U[1])-1,X=Number(U[0]);j<=0&&(j=12,X+=1);const ne=se.getMonthDays(String(U[0]),String(U[1])),K=se.getMonthDays(X+"",j+""),_={year:U[0],month:U[1]},$={curData:U,title:i("monthTitle",{year:_.year,month:_.month}),monthData:[...x(O,"prev",{month:String(j),year:String(X)},K),...H(ne,"curr",_)],cssHeight:0,cssScrollHeight:0};$.cssHeight=39+64*($.monthData.length>35?6:5);let E=0;f.monthsData.length>0&&(E=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),$.cssScrollHeight=E,D=="next"?(!f.endData||!se.compareDate(`${f.endData[0]}-${f.endData[1]}-${se.getMonthDays(f.endData[0],f.endData[1])}`,`${U[0]}-${U[1]}-${U[2]}`))&&f.monthsData.push($):!f.startData||!se.compareDate(`${U[0]}-${U[1]}-${U[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift($):f.unLoadPrev=!0},P=()=>{let U=e.startDate?e.startDate:se.getDay(0),D=e.endDate?e.endDate:se.getDay(365);f.propStartDate=U,f.propEndDate=D,f.startData=m(U),f.endData=m(D),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const O={year:Number(f.startData[0]),month:Number(f.startData[1])},j={year:Number(f.endData[0]),month:Number(f.endData[1])};let X=j.month-O.month;j.year-O.year>0&&(X=X+12*(j.year-O.year)),X<=0&&(X=1),M(f.startData,"next");let ne=1;do M(q("next"),"next");while(ne++<X);if(f.monthsNum=X,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(U&&se.compareDate(f.currDate[0],U)&&f.currDate.splice(0,1,U),D&&se.compareDate(D,f.currDate[1])&&f.currDate.splice(1,1,D),f.defaultData=[...m(f.currDate[0]),...m(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let K=[],_={};f.currDate.forEach($=>{U&&!se.compareDate($,U)&&D&&!se.compareDate(D,$)&&(Object.hasOwnProperty.call(_,$)||(K.push($),_[$]=$))}),f.currDate=[...K],f.defaultData=[...m(K[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[K,_,$]=m(f.currDate[0]);f.currDate=se.getWeekDate(K,_,$,e.firstDayOfWeek),U&&se.compareDate(f.currDate[0],U)&&f.currDate.splice(0,1,U),D&&se.compareDate(D,f.currDate[1])&&f.currDate.splice(1,1,D),f.defaultData=[...m(f.currDate[0]),...m(f.currDate[1])]}}else f.currDate&&(U&&se.compareDate(f.currDate,U)?f.currDate=U:D&&!se.compareDate(f.currDate,D)&&(f.currDate=D),f.defaultData=[...m(f.currDate)])};l({scrollToDate:U=>{se.compareDate(U,f.propStartDate)?U=f.propStartDate:se.compareDate(U,f.propEndDate)||(U=f.propEndDate);let D=m(U);f.monthsData.forEach((O,j)=>{if(O.title==i("monthTitle",{year:D[0],month:D[1]})&&d.value){let X=f.monthsData[j].cssScrollHeight-d.value.scrollTop;if(e.toDateAnimation){let ne=0,K=setInterval(()=>{if(ne++,d.value){let _=X/10;d.value.scrollTop=d.value.scrollTop+_}ne>=10&&(clearInterval(K),d.value&&(d.value.scrollTop=f.monthsData[j].cssScrollHeight))},40)}else d.value.scrollTop=f.monthsData[j].cssScrollHeight}})},initPosition:()=>{d?.value&&(d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let U=0,D=0;f.defaultData.length>0&&f.monthsData.forEach((X,ne)=>{X.title==i("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(U=ne),(e.type=="range"||e.type=="week")&&X.title==i("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(D=ne)}),I(f.monthsNum,U),f.currentIndex=U,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),A({day:f.defaultData[5],type:"curr"},f.monthsData[D],!0)):e.type=="week"?A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(X=>{let ne=m(X),K=f.currentIndex;f.monthsData.forEach((_,$)=>{_.title==i("monthTitle",{year:ne[0],month:ne[1]})&&(K=$)}),A({day:ne[2],type:"curr"},f.monthsData[K],!0)}):A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let O=f.monthsData[f.monthsData.length-1],j=O.cssHeight+O.cssScrollHeight;Qe(()=>{d?.value&&h?.value&&p?.value&&(g.value=d.value.clientHeight,h.value.style.height=`${j}px`,d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(j/(f.monthsNum+1))}});const I=(U,D)=>{U>=3?D>0&&D<U?f.defaultRange=[D-1,D+3]:D==0?f.defaultRange=[D,D+4]:D==U&&(f.defaultRange=[D-2,D+2]):f.defaultRange=[0,U+2],f.translateY=f.monthsData[f.defaultRange[0]].cssScrollHeight},Q=(U,D)=>(e.type=="range"||e.type=="week")&&U.type=="curr"&&V(U,D)=="fox-calendar__day--active",ee=(U,D)=>Q(U,D)&&S(y(U,D)),oe=(U,D)=>f.currDate.length>=2&&B(y(U,D))?Q(U,D):!1,Y=()=>{if(f.currDate.length>=2)return se.isEqual(f.currDate[0],f.currDate[1])},G=U=>{const D=`${U.year}-${U.month}-${Number(U.day)<10?"0"+U.day:U.day}`;return se.isEqual(D,se.date2Str(new Date))},F=U=>{if(f.monthsData.length<=1)return;const D=U.target.scrollTop;let O=Math.floor(D/f.avgHeight);if(O==0)D>=f.monthsData[O+1].cssScrollHeight&&(O+=1);else if(O>0&&O<f.monthsNum-1)D>=f.monthsData[O+1].cssScrollHeight&&(O+=1),D<f.monthsData[O].cssScrollHeight&&(O-=1);else{const j=Math.round(D+g.value);j<f.monthsData[O].cssScrollHeight+f.monthsData[O].cssHeight&&D>f.monthsData[O-1].cssScrollHeight&&(O-=1),O+1<=f.monthsNum&&j>=f.monthsData[O+1].cssScrollHeight+f.monthsData[O+1].cssHeight&&(O+=1),O>=1&&D<f.monthsData[O-1].cssScrollHeight&&(O-=1)}f.currentIndex!==O&&(f.currentIndex=O,I(f.monthsNum,O)),f.yearMonthTitle=f.monthsData[O].title},te=()=>{f.chooseData.splice(0),f.monthsData.splice(0),P()};return P(),(0,t.watch)(()=>e.defaultValue,U=>{U&&e.poppable&&te()}),{weeks:s,compConthsData:N,showTopBtn:k,topInfo:w,bottomInfo:b,rangeTip:Y,mothsViewScroll:F,getClass:V,isStartTip:ee,isEndTip:oe,chooseDay:A,isCurrDay:G,confirm:T,months:d,...(0,t.toRefs)(f),...(0,t.toRefs)(e),...a,monthsPanel:h,weeksPanel:c,viewArea:p}}}),Vm={class:"fox-calendar__header"},xm={key:0,class:"fox-calendar__header-title"},Em={key:1,class:"fox-calendar__header-slot"},$m={key:2,class:"fox-calendar__header-subtitle"},Dm={class:"fox-calendar__weekdays",ref:"weeksPanel"},Im={class:"fox-calendar__panel",ref:"monthsPanel"},qm={class:"fox-calendar__month-title"},Pm={class:"fox-calendar__days"},Mm=["onClick"],zm={class:"fox-calendar__day-value"},Rm={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Lm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Fm={key:2,class:"fox-calendar__day-tips--curr"},Om={key:4,class:"fox-calendar__day-tip"},Km={key:0,class:"fox-calendar__footer"};function Um(e,n,o,l,r,i){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",Vm,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",xm,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",Em,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",$m,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Dm,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.weeks,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:u},(0,t.toDisplayString)(a),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...a)=>e.mothsViewScroll&&e.mothsViewScroll(...a))},[(0,t.createElementVNode)("view",Im,[(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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:u},[(0,t.createElementVNode)("view",qm,(0,t.toDisplayString)(a.title),1),(0,t.createElementVNode)("view",Pm,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.monthData,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(s,a)]),onClick:h=>e.chooseDay(s,a)},[(0,t.createElementVNode)("view",zm,[(0,t.renderSlot)(e.$slots,"day",{date:s.type=="curr"?s:""},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.type=="curr"?s.day:""),1)])]),e.topInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",Rm,[(0,t.renderSlot)(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):(0,t.createCommentVNode)("",!0),e.bottomInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",Lm,[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.type=="curr"?s:""})])):(0,t.createCommentVNode)("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fm,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(s,a)?((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(s,a)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Om,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,Mm))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",Km,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...a)=>e.confirm&&e.confirm(...a))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var Hm=re(Tm,[["render",Um]]),_m=(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)(we,tt({...e},{poppable:!1}),n):n?.default?.()??null}}),jm=_m,Wm=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),xn={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:Ym}=J("calendar"),Xm=Ym({components:{Wrapper:jm,CalendarPane:Hm},props:{...xn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o,expose:l}){const r=(0,t.computed)(()=>o.btn),i=(0,t.computed)(()=>o["top-info"]),a=(0,t.computed)(()=>o.day),u=(0,t.computed)(()=>o["bottom-info"]),s=(0,t.ref)(null),d=w=>{s.value?.scrollToDate(w)},h=()=>{s.value?.initPosition()};(0,t.watch)(()=>e.visible,w=>{w&&(0,t.nextTick)(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),l({scrollToDate:d,initPosition:h});const c=()=>{n("update:visible",!1)},p=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{p()},update:c,close:p,select:w=>{n("select",w)},choose:w=>{p(),n("choose",w)},calendarRef:s,showTopBtn:r,topInfo:i,dayInfo:a,bottomInfo:u}}});function Qm(e,n,o,l,r,i){const a=(0,t.resolveComponent)("CalendarPane"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(u,(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)(a,{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)(s=>[(0,t.renderSlot)(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.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 rl=re(Xm,[["render",Qm]]),qi={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},maxLength:{type:[String,Number]},unit:{type:[String]}},Al=(e,n)=>{let o;return je(e)?o=e:typeof e=="string"&&ke(e)>0?o=se.parser(e,n):o=new Date,o},dt=(e,n,o)=>(je(n)||(n=new Date),se.format(n,o)),ft=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,se.date2Str(e),se.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],Gm={...ge,...be,...xn,...qi};function Zm(e,n,o,l,r,{CloseIcon:i,MarkIcon:a},u=!1){return{props:Gm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:h,disabled:c,readonly:p,browse:g}=Te(s),{emitEvent:N,exposeApi:k}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return c.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:w}=(0,ve.useFoxI18n)(n),b=w(s,["placeholder"]),f=(0,t.ref)(!1),m=(0,t.computed)(()=>s.type==="range"),S=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),B=()=>{S.startDate!==null&&(S.startDate=null,S.endDate=null,S.startArray=[],S.endArray=[])},v=(D,O="one",j="YYYY-MM-DD")=>{if(Wm(D)){B();return}if(m.value&&Array.isArray(D)&&D.length==2){let X,ne;typeof D[0]=="string"?(X=Al(D[0],j),ne=Al(D[1],j)):(X=D[0],ne=D[1]);let K=ft(X),_=ft(ne);(S.startDate===null||S.startDate.getTime()!==X.getTime()||S.endDate?.getTime()!==ne.getTime())&&(S.startDate=X,S.startArray=K,S.endDate=ne,S.endArray=_)}else{let X;typeof D=="string"?X=Al(D,j):X=D;let ne=ft(X);(S.startDate===null||S.startDate.getTime()!==X.getTime())&&(S.startDate=X,S.startArray=ne)}};v(s.modelValue,s.type,s.valueFormat),(0,t.watch)(()=>s.modelValue,D=>{v(D,s.type,s.valueFormat),N("setValue",D)});const y=(0,t.computed)(()=>{if(S.startDate===null)return"";if(m.value){let D=dt(s,S.startDate,s.format),O=dt(s,S.endDate,s.format);return`${D} ${s.rangeSeparator} ${O}`}else{let D=dt(s,S.startDate,s.format);return s.showWeek&&(D=`${D} ${S.startArray[4]}`),D}}),V=(0,t.computed)(()=>S.startDate===null?null:m.value?[se.date2Str(S.startDate),se.date2Str(S.endDate??new Date)]:se.date2Str(S.startDate)),T="fox-input-item",A=(0,t.computed)(()=>({[T]:!0,"is-disabled":c.value,"is-readonly":p.value})),C=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),q=(0,t.computed)(()=>{const D={};return C.value&&(D["text-align"]=C.value),D}),H=(0,t.ref)(!1),x=()=>{p.value||c.value||(H.value=!0)},M=D=>{H.value=D},P=D=>{if(D){if(m.value&&Array.isArray(D)){let O=D[0],j=de(O[0]),X=de(O[1]),ne=de(O[2]),K=new Date(j,X-1,ne),_=D[1];j=de(_[0]),X=de(_[1]),ne=de(_[2]);let $=new Date(j,X-1,ne);S.startDate=K,S.startArray=ft(K),S.endDate=$,S.endArray=ft($),s.valueFormat?N("update:modelValue",[dt(s,K,s.valueFormat),dt(s,$,s.valueFormat)],{}):N("update:modelValue",[K,$],{})}else{let O=D,j=de(O[0]),X=de(O[1]),ne=de(O[2]),K=new Date(j,X-1,ne);S.startDate=K,S.startArray=ft(K),s.valueFormat?N("update:modelValue",dt(s,K,s.valueFormat),{}):N("update:modelValue",K,{})}N("change",D,{})}},R=D=>{let O=D.target.value;f.value=!0,N("focus",O,D)},z=D=>{setTimeout(()=>{f.value=!1},0);let O=D.target.value;s.maxLength&&O.length>Number(s.maxLength)&&(O=O.slice(0,Number(s.maxLength))),N("blur",O,D)},W=(0,t.computed)(()=>({[`${T}__append`]:!0,"is-disabled":c.value,"is-readonly":p.value})),I=(0,t.computed)(()=>ke(s.unit)>0),Q=(0,t.computed)(()=>ke(s.unit)>0&&!f.value),ee=(0,t.computed)(()=>({hidden:!Q.value})),oe=D=>{B(),N("update:modelValue",null,D),N("change","",D),N("clear","")},Y=(0,t.computed)(()=>s.clearable&&!c.value&&!p.value),G=(0,t.computed)(()=>{let D=ke(y.value)>0;return s.clearable&&D&&f.value}),F=D=>{G.value?oe(D):x()},te=(0,t.computed)(()=>G.value&&Y.value?i:a),U=(0,t.computed)(()=>({action:!0}));return k(),()=>{if(g.value==="on"&&(p.value||c.value))return r(y.value,d.slots);const D={class:A.value,style:q.value,type:"text",maxlength:s.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:y.value,onClick:x,onFocus:R,onBlur:z};u&&(D.disabled=!0);const O=[],j=(0,t.h)("input",D);O.push(j);const X=[],ne=(0,t.h)(te.value,{class:["action-icon"]}),K=(0,t.h)("view",{class:U.value,onClick:F},{default:()=>[ne]});if(X.push(K),I.value){const ie=(0,t.h)("view",{class:ee.value},[s.unit]);X.push(ie)}const _=(0,t.h)("view",{class:W.value},{default:()=>X});O.push(_);const $={default:()=>O};$.label=d.slots.default,$.prepend=d.slots.prepend,$.append=d.slots.append,$.fixedPreTip=d.slots.fixedPreTip,$.fixedTip=d.slots.fixedTip;const E=ye(s,xn);E.visible=H.value,E["onUpdate:visible"]=M,E["default-value"]=V.value,E.onChoose=P;const L={};if(d.slots.btn){const ie=d.slots.btn();L.btn=()=>ie}d.slots.day&&(L.day=d.slots.day),d.slots.topInfo&&(L.topInfo=d.slots.topInfo),d.slots.bottomInfo&&(L.bottomInfo=d.slots.bottomInfo);const Z=(0,t.h)(o,E,L);$.hide=()=>[Z];const le={...tt(s,xn,qi),ref:h};return s.prop&&(le.prop=`${s.prop}_item`),l(le,$)}}}}var{componentName:Jm,create:e0,scope:t0}=J("calendar-item"),n0=e0(Zm(Jm,t0,rl,De,Pe,{CloseIcon:ae.CircleClose,MarkIcon:ae.Date},!1)),Ao=n0,l0={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 o0(e,{CheckNormal:n,Checked:o}){return{props:{...l0},setup(l,{emit:r,slots:i}){const a=(0,t.inject)("parent",null),u=On(),s=(0,t.computed)(()=>a.label.value===l.label),d=(0,t.computed)(()=>a.position),h=()=>{const k=[];if(s.value){if(i.checkedIcon)return i.checkedIcon();{const w=ue(l.iconSize),b=l.checkedIcon??u.radio.Checked??o;return k.push("fox-radio__icon"),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)(b,{width:w,height:w,class:k})}}else{if(i.icon)return i.icon();{const w=ue(l.iconSize),b=l.icon??u.radio.CheckNormal??n;return k.push("fox-radio__icon--unchecked"),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)(b,{width:w,height:w,class:k})}}},c=()=>{const k=[`${e}__label`];return l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)("view",{class:k},i.default?.())},p=()=>{const k=[`${e}__button`];return s.value&&k.push(`${e}__button--active`),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)("view",{class:k},i.default?.())},g=()=>{s.value||l.disabled||l.readonly||a.updateValue(l.label)},N=d.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${N?`${e}--reverse`:""}`,onClick:g},[l.shape=="button"?p():N?[c(),h()]:[h(),c()]])}}}var{componentName:a0,create:r0}=J("radio"),i0=r0(o0(a0,{CheckNormal:ae.CheckNormal,Checked:ae.CheckChecked})),il=i0,{componentName:Sr,create:s0}=J("radio-group"),u0=s0({props:{prop:{type:[String]},modelValue:{type:[String,Number,Boolean],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,n){const{emitEvent:o,exposeApi:l}=Oe({context:n},e.prop),{slots:r}=n,i=a=>o("update:modelValue",a);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:i}),(0,t.watch)(()=>e.modelValue,a=>o("change",a)),l(),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Sr} ${Sr}--${e.direction}`,style:a},r.default?.())}}}),sl=u0;function kr(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(vn(e,i)===o)return r}else if(l==="item"){if(Ee(o,i))return r}else if(Ot(e,i)===o)return r}return-1}function vn(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 c0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function d0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var f0=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function m0(){return new f0(ct())}function p0(e){return{text:e,value:e}}var Pi={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},h0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},v0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function],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:""}},g0={...ge,...be,...Pi,...h0,...v0};function y0(e,n,o,l,r,i){return{props:g0,emits:["change","update:modelValue","setValue"],setup(a,u){const{itemTemplateRef:s,innerDisabled:d,disabled:h,innerReadonly:c,readonly:p,browse:g}=Te(a),{emitEvent:N,exposeApi:k}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return h.value},get props(){return a},context:u,get templateRefProxy(){return s.value}},a.prop??u.attrs.name),w=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),b=m0(),f=(0,t.ref)([]),m=(0,t.computed)(()=>typeof a.sourceFilter=="function"&&Array.isArray(f.value)?f.value.filter(a.sourceFilter):f.value);(0,t.watch)([()=>a.source,()=>a.params],async([V,T])=>{if(V){const A=await b.load("radio",V,T);A.length>0?typeof A[0]=="string"?f.value=A.map(C=>p0(C)):f.value=A:f.value=[]}},{immediate:!0});let S=(0,t.ref)(-1);(0,t.watch)([()=>a.modelValue,()=>m.value],async([V,T])=>{S.value=kr(a,T,V,a.valueType),N("setValue",V)},{deep:!0});const B=(0,t.computed)(()=>{if(!a.source)return a.modelValue;if(S.value===-1)return null;const V=m.value[S.value];return Ot(a,V)}),v=V=>{let T=null,A=null;if(m.value.length>0){let C=kr(a,m.value,V,"value");S.value=C,C>=0&&(A=m.value[C],a.valueType==="text"?T=vn(a,A):a.valueType==="item"?T=A:T=Ot(a,A))}else T=V;N("update:modelValue",T),N("change",T,A)},y=()=>{let V=null,T=null;if(m.value.length>0&&S.value!==-1){let A=m.value[S.value];a.valueType==="text"?V=vn(a,A):a.valueType==="item"?V=A:V=Ot(a,A)}N("update:modelValue",V),N("change",V,T)};if(k({clear(){S.value!==-1&&(S.value=-1,y())},setDisabled:V=>{d.value=V},setReadonly:V=>{c.value=V}}),a.source){const V=()=>{const T=[],A=ye(a,Pi);return m.value.forEach((C,q)=>{const H=Ot(a,C),x=c0(a,C);let M={...A,label:H,disabled:x};const P=d0(a,C,q);M={...M,...P},h.value&&(M.disabled=!0),p.value&&(M.readonly=!0);const R={};if(u.slots.icon&&(R.icon=u.slots.icon),u.slots.checkedIcon&&(R.checkedIcon=u.slots.checkedIcon),typeof u.slots.text=="function"){const W=u.slots.text(C);R.default=()=>[W]}else{const W=vn(a,C);R.default=()=>W}let z=(0,t.h)(i,M,R);T.push(z)}),T};return()=>{if(g.value==="on"&&(p.value||h.value))return l(B.value,u.slots,m.value);const T=V(),A=(0,t.h)(r,{class:`${e}`,direction:a.direction,textPosition:a.textPosition,textAlign:w.value,modelValue:B.value,"onUpdate:modelValue":v},{default:()=>T}),C={default:()=>A};C.label=u.slots.default,C.prepend=u.slots.prepend,C.append=u.slots.append,C.fixedPreTip=u.slots.fixedPreTip,C.fixedTip=u.slots.fixedTip;const q={...ye(a,be,ge),ref:s};return a.prop&&(q.prop=`${a.prop}_item`),o(q,C)}}else return()=>{const V=u.slots.options?.()??[];return(0,t.h)(r,{class:`${e}`,direction:a.direction,textPosition:a.textPosition,textAlign:w.value,modelValue:B,"update:modelValue":v},{default:()=>V})}}}}var{componentName:b0,create:S0,scope:k0}=J("radio-item"),w0=S0(y0(b0,k0,De,Pe,sl,il)),Bo=w0,C0={prop:{type:[String]},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"}},N0=(e,{CheckNormal:n,Checked:o,Indeterminate:l})=>({props:C0,emits:["change","update:modelValue"],setup(r,i){const{emitEvent:a,exposeApi:u}=Oe({context:i},r.prop),s=On(),{slots:d}=i,h=(0,t.inject)("parent",null),c=(0,t.reactive)({partialSelect:r.indeterminate});(0,t.watch)(()=>r.indeterminate,B=>{c.partialSelect=B});const p=(0,t.computed)(()=>!!h),g=(0,t.computed)(()=>p.value?h.value.value.includes(r.label):!!r.modelValue),N=(0,t.computed)(()=>p.value?h.position:r.textPosition);let k="";const w=(B,v)=>{k="click",a("update:modelValue",B),a("change",B,v)};(0,t.watch)(()=>r.modelValue,B=>{k=="click"?k="":a("change",B)});const b=()=>{const B=[];if(c.partialSelect){if(d.indeterminateIcon)return d.indeterminateIcon();{const v=ue(r.iconSize),y=r.indeterminateIcon??s.checkbox.Indeterminate??l;return B.push("fox-checkbox__icon--indeterminate"),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)(y,{width:v,height:v,class:B})}}else if(g.value){if(d.checkedIcon)return d.checkedIcon();{const v=ue(r.iconSize),y=r.checkedIcon??s.checkbox.Checked??o;return B.push("fox-checkbox__icon"),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)(y,{width:v,height:v,class:B})}}else{if(d.icon)return d.icon();{const v=ue(r.iconSize),y=r.icon??s.checkbox.CheckNormal??n;return B.push("fox-checkbox__icon--unchecked"),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)(y,{width:v,height:v,class:B})}}},f=()=>{const B=[`${e}__label`];return r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)("view",{class:B},d.default?.())},m=()=>{const B=[`${e}__button`];return g.value&&B.push(`${e}__button--active`),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)("view",{class:B},d.default?.())},S=B=>{if(!(r.disabled||r.readonly)){if(g.value&&c.partialSelect){c.partialSelect=!1,w(g.value,d.default?.()[0].children);return}if(w(!g.value,d.default?.()[0].children),p.value){const v=h.value.value,y=h.max.value,{label:V}=r,T=v.indexOf(V);T>-1?v.splice(T,1):T<=-1&&(v.length<y||!y)&&v.push(V),h.updateValue(v)}}};return(0,t.onMounted)(()=>{p.value&&h.link(r)}),(0,t.onBeforeUnmount)(()=>{p.value&&h.unlink(r)}),u(),()=>(0,t.h)("view",{class:`${e} ${e}--${r.shape} ${N.value==="left"?`${e}--reverse`:""}`,onClick:S},[r.shape=="button"?m():[b(),f()]])}}),{componentName:A0,create:B0}=J("checkbox"),T0=B0(N0(A0,{CheckNormal:ae.CheckNormal,Checked:ae.Checked,Indeterminate:ae.CheckDisabled})),ul=T0,{create:V0,componentName:wr}=J("checkbox-group"),x0={prop:{type:String},modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},E0=V0({props:x0,emits:["change","update:modelValue"],setup(e,n){const{emitEvent:o,exposeApi:l}=Oe({context:n},e.prop),{slots:r}=n,i=(0,t.reactive)({children:[]}),a=c=>{i.children.push(c)},u=c=>{const p=i.children.findIndex(g=>g===c);p!==-1&&i.children.splice(p,1)},s=c=>{o("update:modelValue",c),o("change",c)},d=c=>{const p=[];c&&i.children.forEach(g=>{g?.disabled||p.push(g?.label)}),o("update:modelValue",p)},h=()=>{o("update:modelValue",i.children.filter(c=>c?.disabled?!1:!e.modelValue.includes(c.label)).map(c=>c.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:u}),(0,t.watch)(()=>e.modelValue,c=>{o("change",c)}),l({toggleAll:d,toggleReverse:h}),()=>{const c={};return e.textAlign&&(c["text-align"]=e.textAlign),(0,t.h)("view",{class:`${wr} ${wr}--${e.direction}`,style:c},r.default?.())}}}),cl=E0;function Cr(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(jl(e,i)===o)return r}else if(l==="item"){if(Ee(o,i))return r}else if(gn(e,i)===o)return r}return-1}function jl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function gn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function $0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function D0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var I0=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function q0(){return new I0(ct())}function P0(e){return{text:e,value:e}}var M0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Mi={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},z0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function]},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:[]},separator:{type:[String],required:!1,default:", "}},R0={...ge,...be,...M0,...Mi,...z0};function L0(e,n,o,l,r,i){return{props:R0,emits:["change","update:modelValue","setValue"],setup(a,u){const{itemTemplateRef:s,innerDisabled:d,disabled:h,innerReadonly:c,readonly:p,browse:g}=Te(a),N=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),{emitEvent:k,exposeApi:w}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return h.value},get props(){return a},context:u,get templateRefProxy(){return s.value}},a.prop??u.attrs.name),b=q0(),f=(0,t.ref)([]),m=(0,t.computed)(()=>typeof a.sourceFilter=="function"&&Array.isArray(f.value)?f.value.filter(a.sourceFilter):f.value);(0,t.watch)([()=>a.source,()=>a.params],async([V,T])=>{if(V){const A=await b.load("checkbox",V,T);A.length>0?typeof A[0]=="string"?f.value=A.map(C=>P0(C)):f.value=A:f.value=[]}},{immediate:!0});const S=(0,t.ref)([]);(0,t.watch)([()=>a.modelValue,()=>m.value],async([V,T])=>{const A=[];Array.isArray(V)&&V.forEach(C=>{let q=Cr(a,T,C,a.valueType);q!==-1&&A.push(q)}),!Ee(A,S.value)&&(S.value=A,k("setValue",A))},{deep:!0});const B=(0,t.computed)(()=>{if(!a.source)return a.modelValue;let V=[];return S.value.forEach(T=>{let A=m.value[T];V.push(gn(a,A))}),V}),v=V=>{let T=[],A=[];if(m.value.length>0){const C=[];Array.isArray(V)&&V.forEach(q=>{let H=Cr(a,m.value,q,"value");H!==-1&&C.push(H);const x=m.value[H];A.push(x),a.valueType==="text"?T.push(jl(a,x)):a.valueType==="item"?T.push(x):T.push(gn(a,x))}),S.value=C}else T=V;k("update:modelValue",T),k("change",T,A)},y=(0,t.ref)();if(w({toggleAll:V=>{y.value.toggleAll(V)},toggleReverse:()=>{y.value.toggleReverse()},setDisabled:V=>{d.value=V},setReadonly:V=>{c.value=V}}),a.source){const V=()=>{const T=[],A=ye(a,Mi);return m.value.forEach((C,q)=>{const H=gn(a,C),x=$0(a,C);let M={...A,label:H,disabled:x};const P=D0(a,C,q);M={...M,...P},h.value&&(M.disabled=!0),p.value&&(M.readonly=!0);const R={};if(u.slots.icon&&(R.icon=u.slots.icon),u.slots.checkedIcon&&(R.checkedIcon=u.slots.checkedIcon),u.slots.indeterminateIcon&&(R.indeterminateIcon=u.slots.indeterminateIcon),typeof u.slots.text=="function"){const W=u.slots.text(C);R.default=()=>[W]}else{const W=jl(a,C);R.default=()=>W}let z=(0,t.h)(i,M,R);T.push(z)}),T};return()=>{if(g.value==="on"&&(p.value||h.value))return l(B.value,u.slots,m.value,a.separator);const T=V(),A=(0,t.h)(r,{class:`${e}`,ref:y,direction:a.direction,max:a.max,textPosition:a.textPosition,modelValue:B.value,"onUpdate:modelValue":v},{default:()=>T}),C={default:()=>A};C.label=u.slots.default,C.prepend=u.slots.prepend,C.append=u.slots.append,C.fixedPreTip=u.slots.fixedPreTip,C.fixedTip=u.slots.fixedTip;const q={...ye(a,be,ge),ref:s};return a.prop&&(q.prop=`${a.prop}_item`),o(q,C)}}else return()=>{const V=u.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:y,direction:a.direction,max:a.max,textPosition:a.textPosition,textAlign:N.value,modelValue:B,"onUpdate:modelValue":v},{default:()=>V})}}}}var{componentName:F0,create:O0,scope:K0}=J("checkbox-item"),U0=O0(L0(F0,K0,De,Pe,cl,ul)),To=U0,Vo={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:H0,create:_0}=J("switch"),j0=_0({components:{Loading1:ae.Loading1},props:{...Vo},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const o=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const u=H0;return{[u]:!0,[o.value?"fox-switch-open":"fox-switch-close"]:!0,[`${u}-base`]:!0,"is-disabled":e.disabled}}),r=(0,t.computed)(()=>({backgroundColor:o.value?e.activeColor:e.inactiveColor}));let i="";const a=u=>{if(e.disabled||e.loading)return;i="click";const s=o.value?e.inactiveValue:e.activeValue;n("update:modelValue",s),n("change",s,u)};return(0,t.watch)(()=>e.modelValue,u=>{i=="click"?i="":n("change",u)}),{classes:l,style:r,isActive:o,onClick:a}}}),W0={class:"fox-switch-button"};function Y0(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...u)=>e.onClick&&e.onClick(...u)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",W0,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(a,{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 dl=re(j0,[["render",Y0]]),X0={...ge,...be,...Vo};function Q0(e,n,o,l,r){return{props:X0,emits:["change","update:modelValue","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g,exposeApi:N}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),k=e,w=qe(i,"modelValue",null,g),b=f=>{w.value=f,g("update:modelValue",f,{}),g("change",f,{})};return N({setDisabled:f=>{s.value=f},setReadonly:f=>{h.value=f}}),()=>{if(p.value==="on"&&(c.value||d.value))return l(w.value,a.slots);const f={...ye(i,Vo),disabled:d.value||c.value,value:w.value,"onUpdate:modelValue":b},m=[],S=(0,t.h)(r,f);m.push(S);const B={default:()=>m};B.label=a.slots.default,B.fixedPreTip=a.slots.fixedPreTip,B.fixedTip=a.slots.fixedTip;const v={...ye(i,be,ge),ref:u};return i.prop&&(v.prop=`${i.prop}_item`),v["content-class"]=k,o(v,B)}}}}var{componentName:G0,create:Z0,scope:J0}=J("switch-item"),ep=Z0(Q0(G0,J0,De,Pe,dl)),xo=ep,tp={...ge,...be,placeholder:{type:[String]},textAlign:{type:[String]},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1},unit:{type:[String],required:!1}};function np(e,n,o,l){return{props:tp,emits:["click","focus","blur","change"],setup(r,i){const{itemTemplateRef:a,disabled:u,readonly:s}=Te(r),{emitEvent:d,exposeApi:h}=Be({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return s.value},get disabled(){return u.value},get props(){return r},context:i,get templateRefProxy(){return a.value}},r.prop??i.attrs.name),{toLocaleRefs:c}=(0,ve.useFoxI18n)(n),p=c(r,["placeholder"]),g=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,x=>{g.value=x,d("change",x)});const N=(0,t.computed)(()=>({[`${e}`]:!0})),k=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!u.value&&me(g.value),"is-disabled":u.value,"is-readonly":s.value})),w=Ae((0,t.computed)(()=>r.textAlign),"textAlign"),b=(0,t.computed)(()=>{const x={};return w.value&&(x["text-align"]=w.value),x}),f=(0,t.computed)(()=>!me(r.modelValue)||i.slots.main?!0:!!me(r.desc)),m=(0,t.computed)(()=>me(g.value)?p.placeholder.value:g.value),S=(0,t.computed)(()=>!me(r.desc)||i.slots.sub),B=(0,t.computed)(()=>({[`${e}__sub`]:!0})),v=(0,t.computed)(()=>{const x={};return w.value&&(x["text-align"]=w.value),x}),y=()=>{d("focus",g.value)},V=()=>{d("blur",g.value)},T=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":u.value,"is-readonly":s.value})),A=(0,t.computed)(()=>ke(r.unit)>0),C=x=>{u.value==!0||s.value==!0||d("click")},q=(0,t.computed)(()=>r.icon??o),H=(0,t.computed)(()=>({action:!0}));return h(),()=>{const x=[];if(typeof i.slots.content=="function"){const ee=i.slots.content();x.push(ee)}else{const ee=[];if(f.value){const Y={tabIndex:0,class:k.value,style:b.value,onFocus:y,onBlur:V};let G=null;i.slots.main?G=(0,t.h)("view",Y,[i.slots.main(m.value)]):G=(0,t.h)("view",Y,[m.value]),ee.push(G)}if(S.value){const Y={tabIndex:0,class:B.value,style:v.value,onFocus:y,onBlur:V};let G=null;i.slots.sub?G=(0,t.h)("view",Y,[i.slots.sub(r.desc)]):G=(0,t.h)("view",Y,[r.desc]),ee.push(G)}const oe=(0,t.h)("view",{class:N.value,onClick:C},ee);x.push(oe)}const M=[],P=ue(r.iconSize);let R=i.slots.icon;if(!R){const ee={width:P,height:P,class:["action-icon"]};R=(0,t.h)(q.value,ee)}const z=(0,t.h)("view",{class:H.value,onClick:C},{default:()=>[R]});if(M.push(z),A.value){const ee=(0,t.h)("view",{},[r.unit]);M.push(ee)}const W=(0,t.h)("view",{class:T.value},{default:()=>M});x.push(W);const I={default:()=>x};I.label=i.slots.default,I.prepend=i.slots.prepend,I.append=i.slots.append,I.fixedPreTip=i.slots.fixedPreTip,I.fixedTip=i.slots.fixedTip;const Q={...ye(r,be,ge),ref:a};return r.prop&&(Q.prop=`${r.prop}_item`),l(Q,I)}}}}var{componentName:lp,create:op,scope:ap}=J("link-item"),rp=op(np(lp,ap,ae.ArrowRight,De)),Eo=rp,$o={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:ip,componentName:sp}=J("rate"),up=ip({props:{...$o},emits:["update:modelValue","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)([]),r=(0,t.computed)(()=>({[sp]:!0})),i=g=>{n("update:modelValue",g),n("change",g)},a=(g,N)=>{if(e.disabled||e.readonly)return;let k=0;N===1&&e.modelValue===N||(k=N,e.allowHalf&&g==2&&(k-=.5)),i(k)},u=(g,N,k)=>{let w=0;for(let b=N.value.length-1;b>=0;b--){const f=N.value[b];if(g>f.offsetLeft){k?w=b+(g>f.offsetLeft+f.clientWidth/2?1:.5):w=b+1;break}}return w},s=ot(),d={onTouchStart(g){!e.touchable||e.readonly||s.start(g)},onTouchMove(g){e.touchable&&(s.move(g),s.isHorizontal()&&l.value&&(g.preventDefault(),i(u(s.moveX.value,l,e.allowHalf))))}},h=Math.random().toString(36).slice(-8),c=(0,t.computed)(()=>e.customIcon??ae.StarFillN);return{classes:r,...d,onClick:a,toPxString:he,renderIcon:(g,N)=>(0,t.h)(g,N),rateRefs:l,refRandomId:h,slots:o,customIcon:c}}}),cp=["id"],dp={class:"fox-rate-item__icon--full"},fp={key:0,class:"fox-rate-item__icon--half"},mp={key:1,class:"fox-rate-item__icon--half"};function pp(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),a=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:a,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+a,style:(0,t.normalizeStyle)(a<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("view",dp,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:a<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,t.normalizeClass)(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||a>e.modelValue}]),onClick:u=>e.onClick(1,a)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>a?((0,t.openBlock)(),(0,t.createElementBlock)("view",fp,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:a<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:u=>e.onClick(2,a)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<a?((0,t.openBlock)(),(0,t.createElementBlock)("view",mp,[((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:u=>e.onClick(2,a)},null,8,["onClick"]))])):(0,t.createCommentVNode)("",!0)],12,cp))),128))],34)}var fl=re(up,[["render",pp]]),hp={...ge,...be,...$o};function vp(e,n,o,l,r){return{props:hp,emits:["change","update:modelValue","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g,exposeApi:N}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),k=e,w=qe(i,"modelValue",null,g),b=f=>{w.value=f,g("update:modelValue",f,{}),g("change",f,{})};return N({setDisabled:f=>{s.value=f},setReadonly:f=>{h.value=f}}),()=>{if(p.value==="on"&&(c.value||d.value))return l(w.value,a.slots);const f={...ye(i,$o),disabled:d.value,readonly:c.value,value:w.value,"onUpdate:modelValue":b},m=[],S=(0,t.h)(r,f);m.push(S);const B={default:()=>m};if(a.slots.default){const y=a.slots.default();B.label=()=>y}const v=ye(i,be,ge);return i.prop&&(v.prop=`${i.prop}_item`),v["content-class"]=k,v.ref=u,o(v,B)}}}}var{componentName:gp,create:yp,scope:bp}=J("rate-item"),Sp=yp(vp(gp,bp,De,Pe,fl)),Do=Sp,kp=/scroll|auto|overlay/i,zi=window;function wp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Wl(e,n=zi){let o=e;for(;o&&o!==n&&wp(o);){const{overflowY:l}=window.getComputedStyle(o);if(kp.test(l))return o;o=o.parentNode}return n}function Ri(e,n=zi){const o=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(o.value=Wl(e.value,n))}),o}var Li=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Cp={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 Np(e,n,o){return{props:{...Cp},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:a}=(0,ve.useFoxI18n)(n),u=a(l,["pullText","loadText","noMoreText"]),s=(0,t.ref)(),d=Ri(s),h=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=(0,t.computed)(()=>({[e]:!0})),p=f=>f?f.offsetTop+p(f.offsetParent):0,g=()=>{let f=0,m=0,S="down";if(d.value==window){const B=Li();s.value&&(f=p(s.value)+s.value.offsetHeight-B-window.innerHeight),m=B}else{const{scrollHeight:B,clientHeight:v,scrollTop:y}=d.value;f=B-v-y,m=y}return h.beforeScrollTop>m?S="up":S="down",h.beforeScrollTop=m,r("scroll-change",m),f<=l.threshold&&S=="down"},N=()=>{Qe(()=>{if(!g()||!l.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,r("update:modelValue",!0),(0,t.nextTick)(()=>r("load-more"))})},k=()=>{d.value&&d.value.addEventListener("scroll",N,l.useCapture)},w=()=>{d.value&&d.value.removeEventListener("scroll",N,l.useCapture)};(0,t.onMounted)(()=>{k(),l.immediate&&N()}),(0,t.onUnmounted)(()=>{w()});const b=(0,t.ref)(!1);return(0,t.onActivated)(()=>{b.value&&(b.value=!1,k())}),(0,t.onDeactivated)(()=>{b.value=!0,w()}),(0,t.watch)(()=>l.modelValue,f=>{f||(h.isInfiniting=!1)}),()=>{const f=(0,t.h)("view",{class:"fox-infinite__container"},[i?.default?.()]),m=[];if(h.isInfiniting){let B=i?.loading?.()??null;if(!B){let y=i?.loadingIcon?.()??null;y||(y=(0,t.h)(o,{class:["fox-infinite__bottom-box__img"]}));const V=(0,t.h)("view",{class:"fox-infinite__bottom-box__text"},[u.loadText.value]);B=[y,V]}const v=(0,t.h)("view",{class:"fox-infinite__bottom-box"},B);m.push(v)}else if(!l.hasMore){let B=i?.finished?.()??null;B||(B=(0,t.h)("view",{class:"fox-infinite__bottom-tips"},[u.noMoreText.value]),m.push(B))}const S=(0,t.h)("view",{class:"fox-infinite__bottom"},m);return(0,t.h)("view",{class:c.value,ref:s},[f,S])}}}}var{componentName:Ap,create:Bp,scope:Tp}=J("infinite-loading"),Vp=Bp(Np(Ap,Tp,ae.Loading)),ml=Vp,{componentName:xp,create:Ep}=J("button"),$p=Ep({components:{Loading:ae.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:o}){const{type:l,size:r,shape:i,disabled:a,loading:u,color:s,plain:d,block:h}=(0,t.toRefs)(e);return{handleClick:p=>{!u.value&&!a.value&&n("click",p)},classes:(0,t.computed)(()=>{const p=xp;return{[p]:!0,[`${p}--${l.value}`]:l.value,[`${p}--${r.value}`]:r.value,[`${p}--${i.value}`]:i.value,[`${p}--plain`]:d.value,[`${p}--block`]:h.value,[`${p}--disabled`]:a.value,[`${p}--loading`]:u.value}}),getStyle:(0,t.computed)(()=>{const p={};return s?.value&&(d.value?(p.color=s.value,p.background="#fff",s.value?.includes("gradient")||(p.borderColor=s.value)):(p.color="#fff",p.background=s.value)),p})}}}),Dp={class:"fox-button__wrap"};function Ip(e,n,o,l,r,i){const a=(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]=(...u)=>e.handleClick&&e.handleClick(...u))},[(0,t.createElementVNode)("view",Dp,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(a,{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 xt=re($p,[["render",Ip]]),qp={prop:{type:[String]},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"}},Pp=(e,n,o)=>({props:qp,emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,r){const{emitEvent:i}=Oe({context:r},l.prop),{toLocaleRefs:a}=(0,ve.useFoxI18n)(n),u=a(l,["placeholder"]),{slots:s}=r,d=(0,t.reactive)({active:!1}),h=(0,t.computed)(()=>({background:l.background})),c=(0,t.computed)(()=>({background:l.inputBackground})),p=A=>{let C=A.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),i("update:modelValue",C,A),i("change",C,A)},g=(0,t.ref)({}),N=A=>{let C=A.target.value;d.active=!0,g.value=l.focusStyle,i("focus",C,A)},k=A=>{setTimeout(()=>{d.active=!1},0);let C=A.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),g.value={},i("blur",C,A)},w=A=>{i("update:modelValue","",A),i("change","",A),i("clear","")},b=(0,t.computed)(()=>String(l.modelValue).length>0),f=(0,t.computed)(()=>{const A={};return b.value||(A.display="none"),A}),m=A=>{l.autoblur&&V.value?.blur(),(typeof A.cancelable!="boolean"||A.cancelable)&&A.preventDefault(),i("search",l.modelValue)},S=A=>{i("keyup-input",A)},B=A=>{i("click-input",A)},v=A=>{i("click-left-icon",l.modelValue,A)},y=(0,t.computed)(()=>({textAlign:l.inputAlign})),V=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&V.value.focus()});const T=()=>{const A=[];if(s.leftin){const x=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:v},[s.leftin()]);A.push(x)}const C=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:V,style:y.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:B,onInput:p,onFocus:N,onBlur:k,onkeyup:S}),q=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:m},[C]);A.push(q);const H=[];if(l.clearable){const x=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:w},[(0,t.h)(s?.clear?.()??l.clearIcon??o)]);H.push(x)}if(s.rightin){const x=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[s.rightin()]);H.push(x)}if(H.length>0){const x=(0,t.h)("view",{class:`${e}__input-inner-right`},H);A.push(x)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...c.value,...g.value}},A)};return()=>{const A=[];if(l.label){const q=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);A.push(q)}if(s.leftout){const q=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[s.leftout()]);A.push(q)}const C=T();if(A.push(C),s.rightout){const q=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[s.rightout()]);A.push(q)}return(0,t.h)("view",{class:`${e}`,style:h.value},A)}}}),{componentName:Mp,create:zp,scope:Rp}=J("searchbar"),Lp=zp(Pp(Mp,Rp,ae.CircleClose)),pl=Lp,En={prop:{type:[String]},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 Fp(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(yn(e,i)===o)return r}else if(l==="item"){if(Ee(o,i))return r}else if(Fi(e,i)===o)return r}return-1}function yn(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 Fi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Op(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Kp(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var Up=class{scope;constructor(e){this.scope=e}async load(e,n,o,l,r,i,a){if(!n)return{totalSize:0,page:[]};if(Array.isArray(n)){let s=n;typeof a=="function"&&(s=s.filter(a));let d=(o-1)*l,h=d+l;h>s.length&&(h=s.length);const c=s.slice(d,h);return{totalSize:s.length,page:c}}if(typeof n=="function")return await Reflect.apply(n,null,[o,l,r,i]);const u=lt(e,this.scope);return u===null?(console.error(`[FoxUI]${e} component not found api function`),{totalSize:0,page:[]}):(xe(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await Reflect.apply(u,null,[n,o,l,r]))}};function Hp(){return new Up(ct())}function _p(e,n,o,l,r,i,a,u,s,d,h){return{props:En,emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,p){const{emitEvent:g,exposeApi:N}=Oe({context:p},c.prop),{slots:k}=p,{toLocaleRefs:w}=(0,ve.useFoxI18n)(n),b=w(c,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),f=Hp(),m=(0,t.ref)([]),S=(0,t.ref)(0),B=(0,t.ref)(""),v=(0,t.shallowRef)(null),y=(0,t.computed)(()=>{const K={};return c.params&&Object.assign(K,c.params),me(B.value)||(K[`${c.searchKey}`]=B.value),v.value&&Object.assign(K,v.value),K});let V=!0;const T=async(K,_,$)=>{try{if(C.value===!1)return;let E=null;me(B.value)||(E=Z=>{const le=yn(c,Z);if(typeof le=="string"&&le.includes(B.value))return!0;const ie=Nr(c,Z);return!!(typeof ie=="string"&&ie.includes(B.value))});const L=await f.load("actionsheet",K,_,$,y.value,V,E??void 0);V=!1,Array.isArray(L)?(m.value=L,S.value=1,C.value=!1):!Array.isArray(L.page)||L.page.length===0?(console.warn("[FoxUI] can not load more data"),C.value=!1):(Reflect.apply([].push,m.value,L.page),S.value=Math.ceil(m.value.length/c.pageSize),(L.totalSize&&m.value.length>=L.totalSize||$<L.page.length)&&(C.value=!1)),A.value=!1}catch(E){console.error("[FoxUI] ActionSheet load more data fail",E),C.value=!0,S.value=0,m.value=[]}setTimeout(()=>{g("loaded-data")},250)},A=(0,t.ref)(!1),C=(0,t.ref)(!0),q=async()=>{if(!c.source){A.value=!1;return}await T(c.source,S.value+1,c.pageSize)};let H=null;(0,t.watch)(B,(K,_)=>{H&&(clearTimeout(H),H=null),me(K)&&!me(_)&&(H=setTimeout(()=>{M()},c.searchDelayTriggerClear))});const x=()=>{C.value=!0,S.value=0,m.value=[],c.source&&q()},M=()=>{x()};(0,t.watch)([()=>c.source,()=>c.pageSize,()=>c.params],async([K,_,$])=>{c.source&&x()},{immediate:!0});const P=(0,t.computed)(()=>!c.multiple&&c.isAutoBackFill),R=(0,t.ref)([]);let z=null;const W=(0,t.ref)(c.visible);(0,t.watch)(()=>c.visible,K=>{W.value!==K&&(W.value=K),K?z=[...R.value]:z=null});const I=(K,_)=>{const $=[];return Array.isArray(K)||(K=[K]),K.forEach(E=>{let L=Fp(c,_,E,c.valueType);L!==-1&&$.push(L)}),Ee($,R.value)?!1:(R.value=$,!0)};(0,t.watch)([()=>c.modelValue,()=>m.value],([K,_],[$,E])=>{I(K,_)&&ee(Q())},{deep:!0});const Q=()=>{const K=[],_=[],$=[];for(let le of R.value){const ie=m.value[le];_.push(ie);const ce=yn(c,ie);if($.push(ce),c.valueType==="item")K.push(ie);else if(c.valueType==="text")K.push(ce);else{const fe=Fi(c,ie);K.push(fe)}}let E=null,L=null,Z=null;return c.multiple?(E=K,L=$,Z=_):(E=K[0]??null,L=$[0]??null,Z=_[0]??null),{value:E,text:L,item:Z}},ee=K=>{g("update:modelValue",K.value),g("update:text",K.text),g("change",K.value,K.item,K.text)},oe=()=>{z&&(R.value=z)},Y=K=>{const _=R.value.indexOf(K);c.multiple?_===-1?R.value.push(K):R.value.splice(_,1):_===-1?R.value=[K]:R.value=[],(P.value||!c.poppable&&!c.showFooter)&&te()},G=K=>{W.value=K,g("update:visible",K)},F=()=>{const K=()=>{oe(),G(!1)},_=c.beforeMethod??c.beforeClose;if(typeof _=="function"){const $=_("close");yt($)?$.then(E=>{E!==!1&&K()}).catch(()=>{K()}):$!==!1&&K()}else K()},te=()=>{const K=Q(),_=()=>{ee(K),G(!1)},$=c.beforeMethod??c.beforeClose;if(typeof $=="function"){const E=$("confirm",K.value,K.item,K.text);yt(E)?E.then(L=>{L!==!1&&_()}).catch(()=>{_()}):E!==!1&&_()}else _()},U=()=>{let K=b.title.value??"";return k.title&&(K=k.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[K]),(0,t.h)(s,{class:["fox-actionsheet__header-icon"],onClick:F})])},D=()=>{let K=null;return k.search?K=k.search():K=(0,t.h)(i,{onSearch:x,placeholder:b.seachPlaceholder.value,disabled:c.disabled,modelValue:B.value,"onUpdate:modelValue":_=>{B.value=_}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[K])},O=(K,_,$,E,L)=>{if(k.optionLabel)return k.optionLabel({text:K,checked:_,disabled:$,subText:E,item:L});const Z=[],le=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[K]);if(Z.push(le),E){const ie=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[E]);Z.push(ie)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},Z)},j=(K,_,$,E)=>k.optionIcon?k.optionIcon({checked:K,disabled:_,iconSize:$,item:E}):K?k.checkedIcon?k.checkedIcon({disabled:_,item:E}):(0,t.h)(c.checkedIcon??u,{width:$,height:$,class:["fox-actionsheet__list-item-icon"]}):k.icon?k.icon({disabled:_,item:E}):(0,t.h)(c.icon??a,{width:$,height:$,class:["fox-actionsheet__list-item-icon"]}),X=()=>{const K=[];for(let _=0;_<m.value.length;_++){const $=m.value[_],E=yn(c,$),L=Nr(c,$),Z=["fox-actionsheet__list-item"],le={};let ie=Op(c,$),ce=c.iconSize?ue(c.iconSize):null;const fe=Kp(c,$,_);fe&&(ie=ie||fe.disabled,fe.class&&Z.push(fe.class),fe.style&&Object.assign(le,fe.style)),ie=!!(c.disabled||ie);const Ke=R.value.includes(_);ie&&Z.push("is-disabled"),Ke&&Z.push("is-checked");const Ue={class:Z,style:le,key:`${_}`,onClick:()=>{ie||Y(_)}};let ze=[];if(k.option)ze.push(k.option({item:$,checked:Ke,disabled:ie}));else{const Ji=O(E,Ke,ie,L,$);ze.push(Ji);const es=j(Ke,ie,ce,$);ze.push(es),c.textPosition==="right"&&ze.reverse()}const $t=(0,t.h)("view",Ue,ze);K.push($t)}return K},ne=()=>{let K=[];if(k.buttons)K=k.buttons();else{const _=(0,t.h)(r,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:te,disabled:c.disabled},{default:()=>b.confirmText.value});K.push(_)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[K])};return N({search:async(K=null,_=!0)=>{v.value=K&&(0,t.toRaw)(K),(0,t.triggerRef)(v),_&&(C.value=!0,S.value=0,m.value=[]),(0,t.nextTick)(()=>{q()})},clear:()=>{C.value=!0,S.value=0,m.value=[]},confirm:()=>{te()},cancel:()=>{F()}}),()=>{const K=[];if(c.showHeader){const ie=U();K.push(ie)}if(c.showSearchbar){const ie=D();K.push(ie)}let _=null;if(k.content)_=k.content();else{const ie=X();_=(0,t.h)(l,{hasMore:C.value,loadText:b.loadText.value,noMoreText:b.noMoreText.value,modelValue:A.value,"onUpdate:modelValue":ce=>{A.value=ce},onLoadMore:q},{default:()=>ie})}const $={};c.optionsHeight&&($.height=c.optionsHeight);const E={"fox-actionsheet__list":!0};c.poppable||(E["fox-actionsheet__list--inner"]=!0);const L=(0,t.h)("view",{class:E,style:$},[_]);if(K.push(L),c.showFooter&&!P.value){const ie=ne();K.push(ie)}const Z=(0,t.h)("view",{class:"fox-actionsheet"},K);if(!c.poppable)return Z;const le=["fox-actionsheet__popup"];return c.popClass&&le.push(c.popClass),(0,t.h)(o,{popClass:le.join(" "),visible:W.value,closeable:!1,"onUpdate:visible":G,position:c.position,round:"round",onClickOverlay:F,closeOnClickOverlay:c.closeOnClickOverlay},{default:()=>Z})}}}}var{componentName:jp,create:Wp,scope:Yp}=J("actionsheet-pane"),Xp=Wp(_p(jp,Yp,we,ml,xt,pl,ae.CheckNormal,ae.Checked,ae.Close,ae.Search2,!1)),hl=Xp,Oi={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:" "}},Qp={...ge,...be,...Oi,...En};function Gp(e,n,o,l,r,i,a,u){return{props:Qp,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:c,disabled:p,innerReadonly:g,readonly:N,browse:k}=Te(s),{emitEvent:w,exposeApi:b}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return N.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:f}=(0,ve.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),B=qe(s,"modelValue",null,w),v=(0,t.ref)(""),y=(0,t.computed)(()=>Array.isArray(v.value)?v.value.join(s.separator):v.value),V="fox-input-item",T=(0,t.computed)(()=>({[V]:!0,"is-disabled":p.value,"is-readonly":N.value})),A=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),C=(0,t.computed)(()=>{const j={};return A.value&&(j["text-align"]=A.value),j}),q=(0,t.ref)(!1),H=()=>{q.value=!0},x=j=>{q.value=j},M=j=>{B.value=j,w("update:modelValue",j)},P=(j,X)=>{w("change",j,X)},R=j=>{let X=j.target.value;S.value=!0,w("focus",X,j)},z=j=>{setTimeout(()=>{S.value=!1},0);let X=j.target.value;s.maxLength&&X.length>Number(s.maxLength)&&(X=X.slice(0,Number(s.maxLength))),w("blur",X,j)},W=j=>{v.value=j,w("update:text",j)},I=(0,t.computed)(()=>({[`${V}__append`]:!0,"is-disabled":p.value,"is-readonly":N.value})),Q=(0,t.computed)(()=>ke(s.unit)>0),ee=(0,t.computed)(()=>ke(s.unit)>0&&!S.value),oe=(0,t.computed)(()=>({hidden:!ee.value})),Y=j=>{B.value="",w("update:modelValue","",j),w("change","",j),w("clear","")},G=(0,t.computed)(()=>s.clearable&&!p.value&&!N.value),F=(0,t.computed)(()=>ke(B.value)>0&&S.value),te=j=>{F.value?Y(j):H()},U=(0,t.computed)(()=>F.value&&G.value?r:i),D=(0,t.computed)(()=>({action:!0})),O=(0,t.ref)(null);return b({search:j=>{O.value&&O.value.search(j)},clear:()=>{O.value&&O.value.clear},confirm:j=>{O.value&&O.value.confirm()},cancel:()=>{O.value&&O.value.cancel()},setDisabled:j=>{c.value=j},setReadonly:j=>{g.value=j}}),()=>{if(k.value==="on"&&(N.value||p.value))return l(y.value,d.slots);const j={class:T.value,style:C.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:y.value,onClick:H,onFocus:R,onBlur:z};u&&(j.disabled=!0);const X=[],ne=(0,t.h)("input",j);X.push(ne);const K=[],_=(0,t.h)(U.value,{class:["action-icon"]}),$=(0,t.h)("view",{class:D.value,onClick:te},{default:()=>[_]});if(K.push($),Q.value){const ce=(0,t.h)("view",{class:oe.value},[s.unit]);K.push(ce)}const E=(0,t.h)("view",{class:I.value},{default:()=>K});X.push(E);const L={default:()=>X};L.label=d.slots.default,L.prepend=d.slots.prepend,L.append=d.slots.append,L.fixedPreTip=d.slots.fixedPreTip,L.fixedTip=d.slots.fixedTip;const Z=ye(s,En);Z.ref=O,Z.class=s.actionSheetClass,Z.disabled=p.value||N.value,Z.visible=q.value,Z["onUpdate:visible"]=x,Z.modelValue=B.value,Z["onUpdate:modelValue"]=M,Z.text=v.value,Z["onUpdate:text"]=W,Z.onChange=P,Z.poppable=!0,Z["text-position"]=s.textPosition;const le=(0,t.h)(a,Z,{title:d.slots.title,search:d.slots.search,option:d.slots.option,optionLabel:d.slots.optionLabel,optionIcon:d.slots.optionIcon,buttons:d.slots.buttons});L.hide=()=>[le];const ie={...tt(s,Oi,En),ref:h};return s.prop&&(ie.prop=`${s.prop}_item`),o(ie,L)}}}}var{componentName:Zp,create:Jp,scope:eh}=J("actionsheet-item"),th=Jp(Gp(Zp,eh,De,Pe,ae.CircleClose,ae.ArrowRight,hl)),Io=th,qo={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:nh,create:lh}=J("input-number"),oh=lh({components:{Minus:ae.Minus,Plus:ae.Plus},props:{...qo},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const g=nh;return{[g]:!0,[`${g}--disabled`]:e.disabled}}),l=g=>Number(g).toFixed(Number(e.decimalPlaces)),r=g=>{const N=g.target;n("update:modelValue",N.valueAsNumber,g)},i=(g,N)=>{let k=l(g);n("update:modelValue",k,N),n("change",k,N)},a=(g=Number(e.modelValue))=>g<Number(e.max)&&!e.disabled,u=(g=Number(e.modelValue))=>g>Number(e.min)&&!e.disabled,s=g=>{n("reduce",g),u()?i(Number(e.modelValue)-Number(e.step),g):n("overlimit",g,"reduce")},d=g=>{n("add",g),a()?i(Number(e.modelValue)+Number(e.step),g):n("overlimit",g,"add")},h=g=>{e.disabled||e.readonly||n("focus",g)},c=g=>{if(e.disabled||e.readonly)return;let N=g.target.valueAsNumber;N<Number(e.min)?N=Number(e.min):N>Number(e.max)&&(N=Number(e.max)),i(N,g),n("blur",g)},p=g=>{let N=Number(g);return N<Number(e.min)?N=Number(e.min):N>Number(e.max)&&(N=Number(e.max)),N};return(0,t.watch)(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const g=p(e.modelValue);g!==Number(e.modelValue)&&i(g,{})}),{classes:o,change:r,blur:c,focus:h,add:d,addAllow:a,reduce:s,reduceAllow:u,toPxString:he}}}),ah=["min","max","disabled","readonly","value"];function rh(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Minus"),u=(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]=(...s)=>e.reduce&&e.reduce(...s))},[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[(0,t.createVNode)(a,{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]=(...s)=>e.change&&e.change(...s)),onBlur:n[2]||(n[2]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[3]||(n[3]=(...s)=>e.focus&&e.focus(...s))},null,44,ah),(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]=(...s)=>e.add&&e.add(...s))},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[(0,t.createVNode)(u,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var vl=re(oh,[["render",rh]]),ih={...ge,...be,...qo};function sh(e,n,o,l,r){return{props:ih,emits:["change","update:modelValue","setValue","add","reduce"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g,exposeApi:N}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!d.value&&!c.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),k=(0,t.computed)(()=>{const S=[`${e}`];return i.textAlign==="left"?S.push("is-left"):i.textAlign==="center"?S.push("is-center"):i.textAlign==="right"&&S.push("is-right"),S.join(" ")}),w=qe(i,"modelValue",null,g),b=S=>{w.value=S,g("update:modelValue",S,{}),g("change",S,{})},f=S=>{g("add",S)},m=S=>{g("reduce",S)};return N({setDisabled:S=>{s.value=S},setReadonly:S=>{h.value=S}}),()=>{if(p.value==="on"&&(c.value||d.value))return l(w.value,a.slots);const S={"left-icon":a.slots["left-icon"],"right-icon":a.slots["right-icon"]},B=ye(i,qo),v=(0,t.h)(r,{...a.attrs,...B,disabled:d.value,readonly:c.value,value:w.value,"onUpdate:modelValue":b,onAdd:f,onReduce:m},S),y=[];y.push(v);const V={default:()=>y};V.label=a.slots.default,V.fixedPreTip=a.slots.fixedPreTip,V.fixedTip=a.slots.fixedTip;const T={...ye(i,be,ge),ref:u};return i.prop&&(T.prop=`${i.prop}_item`),T["content-class"]=k.value,o(T,V)}}}}var{componentName:uh,create:ch,scope:dh}=J("input-number-item"),fh=ch(sh(uh,dh,De,Pe,vl)),Po=fh,mh={...bo,...So,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function ph(e,n,o,l){return{props:mh,emits:["update:modelValue","change"],setup(r,i){const{emitEvent:a,exposeApi:u}=Oe({context:i},r.prop),{slots:s}=i,d=e,h=(0,t.computed)(()=>{const b=[`${d}`];return r.direction==="vertical"?b.push("vertical-tabbar"):b.push("horizontal-tabbar"),b}),c=(0,t.computed)(()=>{const b={};if(r.width){const f=he(r.width);f&&(b.width=f)}if(r.height){const f=he(r.height);f&&(b.height=f)}return b}),p=(0,t.computed)(()=>[`${d}__bar`]),g=(0,t.computed)(()=>[`${d}__container`]),N=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,b=>{N.value!==b&&(N.value=b)});const k=b=>{a("change",b)},w=b=>{N.value!==b&&(N.value=b,a("update:modelValue",b))};return u({}),()=>{const{getChildren:b}=Yn(s.default),f=b(),m=[];if(Array.isArray(r.data))m.push(...r.data);else for(let A=0;A<f.length;A++){const C=f[A].props??{},q={text:C.label??"",value:C["pane-key"]??C.paneKey??""};m.push(q)}const S={};for(let A in s)A!=="default"&&(S[A]=s[A]);const B=ye(r,bo);Object.assign(B,{prop:null,data:m,class:p.value,modelValue:N.value,direction:r.direction,onChange:k,"onUpdate:modelValue":w});const v=(0,t.h)(o,B,S),y={default:()=>f},V=ye(r,So);Object.assign(V,{prop:null,class:g.value,modelValue:N.value,onChange:k,"onUpdate:modelValue":w});const T=(0,t.h)(l,V,y);return(0,t.h)("view",{class:h.value,style:c.value},[v,T])}}}}var{create:hh,componentName:vh,scope:gh}=J("tabs-frame"),yh=hh(ph(vh,gh,an,rn)),Mo=yh,bh={prop:{type:[String]},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 Sh(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ar(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Br(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function kh(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Bl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Tr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Vr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Tl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var wh=class{scope;constructor(e){this.scope=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=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await Reflect.apply(l,null,[n,o]))}};function Ch(){return new wh(ct())}function Nh(e,n,o,l){return{props:bh,emits:["update:modelValue","change","loaded-data","click"],setup(r,i){const{emitEvent:a,exposeApi:u}=Oe({context:i},r.prop),s=e,d=Ch(),h=(0,t.ref)([]),c=(0,t.computed)(()=>h.value.filter(Y=>kh(r,Y)!==!1)),p=(0,t.ref)(-1),g=()=>{const Y=r.modelValue,G=c.value.findIndex(F=>Ar(r,F)===Y);p.value!==G&&(p.value=G,r.scroll&&ee(G,!1))};(0,t.watch)([()=>r.modelValue,c],()=>{g()});const N=Y=>p.value===Y,k=Y=>{if(Y<0&&Y>=c.value.length)return!1;const G=c.value[Y],F=(Tl(r,G,Y)??{}).status??Bl(r,G);return N(Y)||F},w=(0,t.computed)(()=>{const Y={[s]:!0};return r.mode?Y[`is-${r.mode}`]=!0:r.direction&&(Y[`is-${r.direction}`]=!0),r.scroll&&(Y["is-scroll"]=!0),Y}),b=(0,t.computed)(()=>({})),f=(Y,G,F,te,U)=>{const D={[`${s}__step`]:!0};return U&&(D[`${U}`]=!0),D[`${m.value}`]=!0,te&&(D["is-doit"]=!0),Y===p.value?D["is-active"]=!0:G==="done"?D["is-done"]=!0:G==="error"?D["is-error"]=!0:G==="half"?D["is-half"]=!0:F?D["is-disabled"]=!0:D["is-normal"]=!0,D},m=(0,t.computed)(()=>{let Y=r.align;if(!Y){if(r.mode==="simple")return"start";r.direction==="vertical"?Y="start":Y="center"}return Y}),S=(Y,G={})=>{const F={...G};if(m.value==="start"&&Y===c.value.length-1)F.flex="0 0 auto";else if(r.step){const te=typeof r.step=="number"||qn(r.step)?he(r.step):r.step;r.direction==="vertical"?F.height=te:F.width=te}else F.flex="1 1 100%";return F},B=(Y,G)=>{let F={};if(G<c.value.length-1){const te=G+1;k(G)&&k(te)?r.direction==="vertical"?F.height="100%":F.width="100%":F.opacity="0"}return F},v=Y=>c.value.length-1===Y,y=(Y,G)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&G>p.value||p.value===G)return;const F=p.value,te=G;p.value=G,r.scroll&&ee(G,!1);const U=Ar(r,Y);a("update:modelValue",U),a("change",U,{fromIndex:F,currentIndex:te,item:Y,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy})},V=(0,t.ref)(!0),T=async(Y,G)=>{try{const F=await d.load("stesbar",Y,G);Array.isArray(F)&&(h.value=F),V.value=!1}catch(F){console.error("[FoxUI] Load StepsBar Data Fail",F),h.value=[]}setTimeout(()=>{a("loaded-data")},250)};(0,t.watch)([()=>r.data,()=>r.params],async([Y,G])=>{Y&&T(Y,G)},{immediate:!0}),u({});const A=(Y,G,F,te,U,D)=>{const O=[];let j=null;if(!D)if(i.slots.icon)j=i.slots.icon({item:Y,index:G,status:te});else if(te==="done"){const X={};r.iconSize&&(X.width=r.iconSize,X.height=r.iconSize),j=(0,t.h)(r.icon??o,X)}else j=(0,t.h)("span",{},[F??`${G+1}`]);return j&&O.push(j),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{a("click",{item:Y,index:G}),!U&&y(Y,G)}},O)},C=(Y,G,F)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:B(Y,G)})]),q=()=>{let Y=null;if(i.slots.markIcon)Y=i.slots.markIcon();else{const G={};r.iconSize&&(G.width=r.markIconSize,G.height=r.markIconSize),Y=(0,t.h)(r.markIcon??l,G)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[Y])},H=(Y,G,F,te,U,D)=>{const O=[];if(!v(G)){const X=C(Y,G,te);O.push(X)}const j=A(Y,G,F,te,U,D);return O.push(j),(0,t.h)("view",{class:"fox-steps-bar__head"},O)},x=(Y,G,F,te)=>{let U=null;return i.slots.main?U=i.slots.main({item:Y,index:G,status:F}):U=Sh(r,Y),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{a("click",{item:Y,index:G}),!te&&y(Y,G)}},[U])},M=(Y,G,F)=>{let te=null;return i.slots.sub?(te=i.slots.sub({item:Y,index:G,status:F}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[te])):null},P=(Y,G)=>{const F=Tl(r,Y,G)??{},te=F.status??Bl(r,Y);let U=Br(r,Y);F.disabled===!0&&(U=!0),r.disabled===!0&&(U=!0);let D=Tr(r,Y);F.doit===!0&&(D=!0);const O=F.label??Vr(r,Y),j=[],X=A(Y,G,O,te,U,D);X&&j.push(X);const ne=x(Y,G,te,U);if(ne&&j.push(ne),!v(G)){const Z=C(Y,G,te);Z&&j.push(Z)}const K=[],_=(0,t.h)("view",{class:"fox-steps-bar__head"},j);K.push(_);const $=M(Y,G,te);$&&K.push($);const E=F.class,L=F.style??{};return(0,t.h)("view",{ref:Q(G),class:f(G,te,U,D,E),style:S(G,L)},K)},R=(Y,G)=>{const F=Tl(r,Y,G)??{},te=F.status??Bl(r,Y);let U=Br(r,Y);F.disabled===!0&&(U=!0),r.disabled===!0&&(U=!0);let D=Tr(r,Y);F.doit===!0&&(D=!0);const O=F.label??Vr(r,Y),j=[],X=r.layout;for(let _ of X)if(_==="head"){const $=H(Y,G,O,te,U,D);j.push($)}else if(_==="main"){const $=x(Y,G,te,U);j.push($)}else if(_==="sub"){const $=M(Y,G,te);j.push($)}else if(_==="mark"){const $=q();j.push($)}const ne=F.class,K=F.style??{};return(0,t.h)("view",{ref:Q(G),class:f(G,te,U,D,ne),style:S(G,K)},j)},z=(0,t.ref)(),W=(0,t.ref)([]),I=(Y,G)=>{W.value[G]=Y},Q=Y=>G=>{I(G,Y)},ee=(Y,G)=>{const F=z.value,te=W.value;if(!F||!te||!te[Y])return;const U=te[Y];let D=0;r.direction==="vertical"?D=U.offsetTop-(F.offsetHeight-U.offsetHeight)/2:D=U.offsetLeft-(F.offsetWidth-U.offsetWidth)/2,oe(F,D,G?0:.3,r.direction)},oe=(Y,G,F,te)=>{let U=0;const D=te==="horizontal"?Y.scrollLeft:Y.scrollTop,O=F===0?1:Math.round(F*1e3/16);function j(){te==="horizontal"?Y.scrollLeft+=(G-D)/O:Y.scrollTop+=(G-D)/O,++U<O&&He(j)}j()};return()=>{let Y=[];if(r.mode==="simple")for(let F=0;F<c.value.length;F++){const te=c.value[F],U=P(te,F);Y.push(U)}else for(let F=0;F<c.value.length;F++){const te=c.value[F],U=R(te,F);Y.push(U)}const G={ref:z,class:w.value,style:b.value};return Y.length===0&&typeof i.slots.default=="function"&&(Y=i.slots.default()),(0,t.h)("view",G,Y)}}}}var{componentName:Ah,create:Bh,scope:Th}=J("steps-bar"),Vh=Bh(Nh(Ah,Th,ae.Checklist,ae.ArrowRight)),zo=Vh;function xh(e){e.stopPropagation()}var Eh=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=tl()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=nl(),o=(l,r,i,a)=>{this.updateMove({x:l,y:r})};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),xh(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 $h(e,n){return new Eh(e,n)}var Dh={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]}},Ih=(e,n,o,l=!1)=>({props:{...Dh},emits:["click"],setup(r,{slots:i,emit:a}){let u=-1,s=-1;const d=(0,t.reactive)({top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:0,height:0}),h=(0,t.computed)(()=>{const B=[`${e}`];return r.customClass&&B.push(r.customClass),B}),c=B=>typeof B=="string"&&!qn(B)?B:`${B}px`,p=(0,t.computed)(()=>{const B={};return me(d.top)||(B.top=c(d.top)),me(d.right)||(B.right=c(d.right)),me(d.bottom)||(B.bottom=c(d.bottom)),me(d.left)||(B.left=c(d.left)),me(r.width)||(B.width=c(r.width)),me(r.height)||(B.height=c(r.height)),me(r.color)||(B.color=r.color),me(r.background)||(B.background=r.background),me(r.borderRadius)||(B["border-radius"]=r.borderRadius),me(r.zIndex)||(B["z-index"]=r.zIndex),B}),g=(0,t.computed)(()=>({[`${e}__icon`]:!0})),N=()=>{a("click")},k=(0,t.ref)(null),w=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},b={x:0,y:0},S=$h(B=>{if(!k.value)return;const v=k.value;w(),d.left=v.offsetLeft,d.top=v.offsetTop,v.style.left=`${d.left}px`,v.style.top=`${d.top}px`,v.style.right=null,v.style.bottom=null,b.x=d.left,b.y=d.top,d.width=v.offsetWidth,d.height=v.offsetHeight,u=document.documentElement.clientWidth||document.body.clientWidth,s=document.documentElement.clientHeight||document.body.clientHeight},B=>{if(!k.value)return;const v=k.value;w();let y=b.x+B.x;y<0&&(y=0),y>u-d.width&&(y=u-d.width);let V=b.y+B.y;V<0&&(V=0),V>s-d.height&&(V=s-d.height),d.left=y,d.top=V,v.style.left=`${y}px`,v.style.top=`${V}px`});return(0,t.onMounted)(()=>{if(r.draggable&&k.value){const B=[k.value];S.open(B)}}),(0,t.onBeforeUnmount)(()=>{r.draggable&&k.value&&S.close()}),()=>{let B=[];const v=typeof i.default=="function"?i.default():[];if(v&&v.length>0)B=v;else{const y=(0,t.h)(o,{class:g.value});B.push(y)}return(0,t.h)("view",{ref:y=>{k.value=y},class:h.value,style:p.value,onClick:N},B)}}}),{componentName:qh,create:Ph,scope:Mh}=J("floating-button"),zh=Ph(Ih(qh,Mh,ae.Uploader,!1)),Ro=zh,Rh={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 Lh(e,n,o){return{props:{...Rh},emits:["click","update:modelValue"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:a}=(0,ve.useFoxI18n)(n),u=a(l,["collapseText","expandText"]),s=(0,t.computed)(()=>{const N={[`${e}`]:!0};return l.disabled?N[`${e}--disabled`]=!0:N[`${e}--${l.type}`]=!0,N}),d=qe(l,"modelValue"),h=(0,t.computed)(()=>d.value?u.expandText.value??"":u.collapseText.value??""),c=(0,t.computed)(()=>({[`${e}__text`]:!0})),p=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),g=()=>{r("update:modelValue",!d.value)};return()=>{const N=[];if(h.value){const b=(0,t.h)("span",{class:c.value},[h.value]);N.push(b)}const k={class:p.value},w=(i.icon&&i.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(o);if(w){const b=(0,t.h)("view",k,[w]);N.push(b)}return l.textPosition==="right"&&N.reverse(),(0,t.h)("view",{class:s.value,onClick:g},N)}}}}var{componentName:Fh,create:Oh,scope:Kh}=J("more-button"),Uh=Oh(Lh(Fh,Kh,ae.RectUp)),Lo=Uh,Hh={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}},_h=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function jh(e,n,o){return{props:{...Hh},emits:["update:visible"],setup(l,{attrs:r,slots:i,emit:a}){const{toLocaleRefs:u}=(0,ve.useFoxI18n)(n),s=u(l,["confirmText","cancelText"]),d=e,h=(0,t.ref)(l.visible),c=B=>{h.value=B,a("update:visible",B)};(0,t.watch)(()=>l.visible,B=>{h.value!==B&&(h.value=B)});const p=B=>{if(typeof l.unmount=="function")try{l.unmount()}catch(v){console.error(v)}if(typeof l.callback=="function")try{l.callback(B)}catch(v){console.error(v)}},g=()=>{p("confirm")},N=()=>{p("cancel")},k=()=>{l.closeOnClickOverlay!==!1&&p("close")},w=(B,v)=>_h(B)?(v.src=B,(0,t.h)("img",v)):typeof B=="string"?(Array.isArray(v.class)?v.class.push(B):v.class&&typeof v.class=="object"?v[`${B}`]=!0:typeof v.class=="string"?v.class=`${v.class}, ${B}`:v.class=B,(0,t.h)(l.tag,v)):(0,t.h)(B,v),b=()=>{const B=[];if(l.icon){const v={class:[`${d}__header-icon`]},y=w(l.icon,v);B.push(y)}if(l.title){const v=(0,t.h)("view",{class:`${d}__header-title`},[l.title]);B.push(v)}if(l.showClose&&l.closeIcon){const v={class:[`${d}__header-close-icon`],onClick:k},y=w(l.closeIcon,v);B.push(y)}return(0,t.h)("view",{class:[`${d}__header`]},B)},f=(B,v)=>{const y=[];if(v){const V=(0,t.h)("view",{class:`${d}__group-title`},[v]);y.push(V)}if(B){const V=[];Array.isArray(B)||(B=[B]);for(let T of B){const A=(0,t.h)("view",{class:`${d}__group-row`,innerHTML:T});V.push(A)}if(V.length>0){const T=(0,t.h)("view",{class:`${d}__group-rows`},V);y.push(T)}}return y.length===0?null:(0,t.h)("view",{class:`${d}__group`},y)},m=()=>{const B=[];if(typeof l.message=="string")B.push(l.message);else if(Array.isArray(l.message))for(let v of l.message)if(typeof v=="string"){const y=f(v);B.push(y)}else{const y=f(v.content,v.title);B.push(y)}else if(typeof l.message=="function"){const v=l.message();B.push(v)}else{const v=l.message;B.push(v)}return(0,t.h)("view",{class:`${d}__body`},B)},S=()=>{const B=[];if(l.showCancelButton){const v={class:[`${d}__footer-button`],style:{},onClick:N};l.cancelButtonClass&&v.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(v.style,l.cancleButtonStyle);const y=(0,t.h)("button",v,[l.cancelButtonText??s.cancelText.value]);B.push(y)}if(l.showConfirmButton){const v={class:[`${d}__footer-button`],style:{},onClick:g};l.confirmButtonClass&&v.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(v.style,l.confirmButtonStyle);const y=(0,t.h)("button",v,[l.confirmButtonText??s.confirmText.value]);B.push(y)}return B.length===0?null:(0,t.h)("view",{class:`${d}__footer`},B)};return()=>{const B=[],v=b();v&&B.push(v);const y=m();y&&B.push(y);const V=S();V&&B.push(V);const T=(0,t.h)("view",{class:{[`${d}`]:!0,[`${d}--${l.type||"info"}`]:!0}},B),A=[`${d}__popup`];l.popClass&&A.push(l.popClass);const C={};return l.width&&(C.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(C.height=typeof l.height=="number"?`${l.height}px`:l.height),(0,t.h)(o,{popClass:A.join(" "),style:C,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":c,position:l.position,round:"round",onClickOverlay:k,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>T})}}}}var{componentName:Wh,create:Yh,scope:Xh}=J("messagebox"),Qh=Yh(jh(Wh,Xh,we)),Gh=Qh,Zh="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",Jh="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",ev="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",tv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='101'%20height='110'%20viewBox='0%200%20101%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M81.512%201.93968L80.7498%206.07825C80.6498%206.6214%2080.1284%206.98064%2079.5852%206.8806C79.4326%206.85251%2079.2886%206.78925%2079.1645%206.69578L76.1585%204.43061C75.7175%204.09823%2075.6293%203.47123%2075.9617%203.03016C76.0552%202.90617%2076.1761%202.80562%2076.3152%202.73655L80.0833%200.863097C80.5779%200.617235%2081.1781%200.818843%2081.424%201.31339C81.5203%201.50712%2081.5512%201.72688%2081.512%201.93968Z'%20fill='%23FEFAE0'%20%3e%3c/path%3e%3cpath%20d='M2.08224%20102.2L5.5346%2094.2358C5.75425%2093.7291%206.34257%2093.4968%206.84931%2093.7164C6.99222%2093.7778%207.11822%2093.872%207.21798%2093.9909L12.2086%2099.9384C12.5636%20100.361%2012.5082%20100.992%2012.0853%20101.347C11.9666%20101.447%2011.8261%20101.518%2011.675%20101.554L3.23209%20103.571C2.6949%20103.699%202.15544%20103.367%202.02705%20102.83C1.97681%20102.62%201.99613%20102.399%202.08224%20102.2Z'%20fill='%23FEE789'%20%3e%3c/path%3e%3ccircle%20cx='50'%20cy='59'%20r='28'%20fill='%23FAB007'%20%3e%3c/circle%3e%3crect%20x='46.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%23FEE789'%20%3e%3c/rect%3e%3crect%20x='46.5'%20y='66'%20width='7'%20height='7'%20rx='3.5'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='84.5'%20cy='106.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='94'%20cy='30'%20r='7'%20fill='%23FEE789'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L101%20110L101%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",nv=new Qn,lv={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},ov=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"),r=`messagebox-${nv.get()}`;l.id=r,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const a=document.querySelector(`#${r}`);a&&a.parentNode?.removeChild(a)};const i=(0,t.createVNode)(Gh,e);n.appendChild(l),(0,t.render)(i,l)},it={show:(e,n,o,l)=>{const r={...lv};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(r,n):(n&&(r.message=n),o&&typeof o=="object"?Object.assign(r,o):(typeof o=="string"&&(r.title=o),l&&typeof l=="object"?Object.assign(r,l):typeof l=="string"&&(r.type=l)));const i=r.type??"info";return r.icon||(i==="success"?r.icon=ev:i==="warning"?r.icon=tv:i==="error"?r.icon=Zh:r.icon=Jh),e==="alert"?(r.showCancelButton=!1,r.showConfirmButton=!0):e==="confirm"&&(r.showCancelButton=!0,r.showConfirmButton=!0),r.showClose&&!r.closeIcon&&(r.closeIcon=ae.Close),new Promise((a,u)=>{const s=r.callback;r.callback=d=>{if(typeof s=="function")try{s(d)}catch(h){console.error(h)}a({action:d})},ov(r)})},alert:(e,n,o)=>it.show("alert",e,n,o),confirm:(e,n,o)=>it.show("confirm",e,n,o),install(e){e.config.globalProperties.$alert=it.alert,e.config.globalProperties.$confirm=it.confirm}},av=(e,n,o)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let r=!0,i=!0;for(let a in n)a==="bubbles"?r=!!n[a]:a==="cancelable"?i=!!n[a]:l[a]=n[a];l.initEvent(e,r,i),(o??document).dispatchEvent(l)},rv=new Qn,iv=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),sv=e=>`${e}-${rv.get()}`,uv=Symbol.for("InnerPageScopeKey"),cv=Symbol.for("PageWrapperKey"),dv="FoxLeave",fv="FoxLeaveEnd",mv={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 pv(e,n,o,l){return{props:{...Je,...mv},emits:["update:visible"],setup(r,{attrs:i,slots:a,emit:u}){(0,t.provide)(uv,!0);const s={};(0,t.provide)(cv,s);const d=v=>(typeof s.beforeClose=="function"&&s.beforeClose(),!1),h=()=>{d("close")},c=e,p=v=>{g.value=v,u("update:visible",v)},g=(0,t.ref)(!1),N=(v,y)=>iv(v)?(y.src=v,(0,t.h)("img",y)):typeof v=="string"?(Array.isArray(y.class)?y.class.push(v):y.class&&typeof y.class=="object"?y[`${v}`]=!0:typeof y.class=="string"?y.class=`${y.class}, ${v}`:y.class=v,(0,t.h)(r.tag,y)):(0,t.h)(v,y),k=()=>{if(!r.showHeader)return null;const v=[];if(a.header){const y=a.header();v.push(y)}else if(r.title){const y=(0,t.h)("view",{class:`${c}__header-title`},[r.title]);v.push(y)}return v.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},v)},w=()=>{if(!r.showClose)return null;const v={class:[`${c}__close-icon`],onClick:h};return N(r.closeIcon??l,v)};let b=null;const f=v=>{av(fv,{},b)},m=sv(e),S=()=>{p(!0)},B=()=>{if(!b)return;const v=b.querySelector(".fox-overlay");v&&(v.classList.add("overlay-fade-leave-active"),v.classList.add("overlay-fade-leave-to"));const y=b.querySelector(".fox-popup");y&&(y.classList.add(`fox-popup-slide-${r.position}-leave-active`),y.classList.add(`fox-popup-slide-${r.position}-leave-to`),y.addEventListener("animationend",f,{once:!0}),y.addEventListener("transitionend",f,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{b=document.querySelector(`.${m}`),b?.addEventListener(dv,B,{once:!0}),S()}),()=>{const v=[],y=k();y&&v.push(y);const V=w();V&&v.push(V);const T=a.default?a.default():[];Reflect.apply([].push,v,T);const A={[`${c}`]:!0};r.mode&&(A[`${c}--${r.mode}`]=!0);const C=(0,t.h)("view",{class:A},v),q=[`${c}__popup`,m];r.popClass&&q.push(r.popClass),r.position&&q.push(`${c}__popup--${r.position}`);const H={};r.width&&(H.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(H.height=typeof r.height=="number"?`${r.height}px`:r.height);const x=(0,t.h)(o,{...ye(r,Je),popClass:q.join(" "),style:H,visible:g.value,teleportDisable:!0,closeable:!1,position:r.position,closeOnClickOverlay:r.closeOnClickOverlay,onClickOverlay:h,"onUpdate:visible":p},{default:()=>C});return(0,t.h)("div",{class:[`${c}__root`,m]},[x])}}}}var{componentName:hv,create:vv,scope:gv}=J("popup-wrapper"),yv=vv(pv(hv,gv,we,ae.Close)),Fo=yv,bv={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function Sv(e,n,o,l){return{props:{...bv},emits:["update:visible"],setup(r,{emit:i,slots:a}){const u=s=>{i("update:visible",s)};return()=>{const s=[`${e}__popup`];r.popClass&&s.push(r.popClass);const d=(0,t.h)(o,{popClass:s,style:r.popStyle??{},position:"top",zIndex:r.zIndex,closeOnClickOverlay:r.closeOnClickOverlay,teleportDisable:!0,visible:r.visible,"onUpdate:visible":u},a);return(0,t.h)("view",{class:`${e}`},[d])}}}}var{componentName:kv,create:wv,scope:Cv}=J("dropdown"),Nv=wv(Sv(kv,Cv,we,!1)),Oo=Nv,Av={name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean,Object],required:!1}};function Bv(e,n){return{inheritAttrs:!1,props:Av,setup(o,l){const{exposeApi:r}=Jr({context:l,props:()=>o.config},o.name);return Ve(o.innerPageScope)||ni(o.innerPageScope),Ve(o.abstractPageScope)||li(o.abstractPageScope),r(),()=>typeof l.slots.default=="function"?l.slots.default():null}}}var{componentName:Tv,create:Vv,scope:xv}=J("domain-provider"),Ev=Vv(Bv(Tv,xv)),Ko=Ev,$v={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 Dv(e,n){return{inheritAttrs:!1,props:$v,emits:["change"],setup(o,{slots:l,emit:r}){if(et&&window.IntersectionObserver){const i=new WeakMap;let a=new Map;const u=(p,g)=>{if(h===null){a.set(p,{visible:null,callback:g});return}i.has(p)&&h.unobserve(p),i.set(p,{visible:null,callback:g}),h.observe(p)},s=p=>{if(h===null){a.delete(p);return}i.has(p)&&(i.delete(p),h.unobserve(p))};let d=o.initialVisibleObserverSize;vu({acquire:()=>{if(o.loadPolicy==="always")return!0;const p=d>0;return d--,p},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:u,unobserve:s});let h=null;const c=(p,g,N)=>{h=new IntersectionObserver(k=>{if(r("change",k),o.loadPolicy!=="always")for(let w of k){let b=!1;w.intersectionRatio>0&&(b=!0);const f=i.get(w.target);if(f)try{if(o.loadPolicy==="lazy"&&!b&&f.visible!==null)return;f.visible=b,f.callback(b)}catch(m){console.error(m)}}},{root:p,rootMargin:g,threshold:N}),a.forEach((k,w)=>{i.set(w,k),h?.observe(w)}),a.clear()};(0,t.watch)([()=>o.root,()=>o.disabled],([p,g])=>{if(g||!p||h)return;let N=null;typeof p=="string"?N=document.querySelector(p):N=p,N&&c(N,o.rootMargin,o.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:Iv,create:qv,scope:Pv}=J("rolling-provider"),Mv=qv(Dv(Iv,Pv)),Uo=Mv,{componentName:zv,create:Rv}=J("cell"),Lv=Rv({components:{Right:ae.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const i=zv;return{[i]:!0,[`${i}--clickable`]:e.isLink,[`${i}--center`]:e.center,[`${i}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:he(e.roundRadius)}));return{handleClick:i=>{n("click",i)},classes:o,baseStyle:l}}}),Fv={key:0,class:"fox-cell__icon"},Ov={key:1,class:"fox-cell__title"},Kv={class:"title"},Uv={class:"fox-cell__title-desc"};function Hv(e,n,o,l,r,i){const a=(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]=(...u)=>e.handleClick&&e.handleClick(...u))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fv,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ov,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",Kv,(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)(a,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var Ho=re(Lv,[["render",Hv]]),_v={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function jv(e,n){return{props:{..._v},setup(o,{attrs:l,slots:r}){const i=(0,t.computed)(()=>{const a={};return o.color&&(a.color=o.color),o.size&&(a.fontSize=he(o.size)),a});return()=>{const a={style:i.value,class:`${e}-wrap`,...l};return(0,t.h)(o.tag??"li",a,r)}}}}var{componentName:Wv,create:Yv,scope:Xv}=J("icon"),Qv=Yv(jv(Wv,Xv)),_o=Qv,{componentName:Gv,create:Zv}=J("cell-group"),Jv=Zv({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[Gv]:!0}))}}}),eg={key:1,class:"fox-cell-group__title"},tg={key:3,class:"fox-cell-group__desc"},ng={class:"fox-cell-group__wrap"};function lg(e,n,o,l,r,i){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",eg,(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",tg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",ng,[(0,t.renderSlot)(e.$slots,"default")])],2)}var jo=re(Jv,[["render",lg]]),{componentName:og,create:ag}=J("image"),rg=ag({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:ae.Image,ImageError:ae.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const o=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const g=og;return{[g]:!0,[`${g}-round`]:e.round}}),r=(0,t.ref)(null),i=(0,t.ref)(!1),a=(0,t.ref)(null),u=()=>{r.value=new IntersectionObserver(g=>{g.forEach(N=>{N.isIntersecting&&(i.value=!0,r.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),a.value&&r.value.observe(a.value)};(0,t.onMounted)(()=>{e.lazyLoad&&u()}),(0,t.onBeforeUnmount)(()=>{r.value&&r.value.disconnect()});const s=(0,t.computed)(()=>{let g={};return e.width&&(g.width=he(e.width)),e.height&&(g.height=he(e.height)),e.radius!==void 0&&e.radius!==null&&(g.overflow="hidden",g.borderRadius=he(e.radius)),g}),d=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,g=>{o.isError=!1,o.loading=!0});const h=()=>{o.loading=!1,n("load")},c=()=>{o.isError=!0,o.loading=!1,n("error")},p=g=>{n("click",g)};return{...(0,t.toRefs)(o),imageClick:p,classes:l,styles:d,stylebox:s,error:c,load:h,show:i,imgRef:a}}}),ig=["src","date-src","alt"],sg={key:0,class:"fox-img-loading"},ug={key:1,class:"fox-img-error"};function cg(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Image"),u=(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]=(...s)=>e.imageClick&&e.imageClick(...s))},[(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]=(...s)=>e.load&&e.load(...s)),onError:n[1]||(n[1]=(...s)=>e.error&&e.error(...s)),style:(0,t.normalizeStyle)(e.styles)},null,44,ig),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",sg,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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",ug,[e.slotError?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,width:"16px",height:"20px",name:"imageError"})),(0,t.renderSlot)(e.$slots,"error")])):(0,t.createCommentVNode)("",!0)],6)}var Wo=re(rg,[["render",cg]]),{create:dg}=J("layout"),fg=dg({}),Yo=fg,{componentName:mg,create:pg}=J("col"),hg=pg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=mg,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 vg(e,n,o,l,r,i){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 Xo=re(hg,[["render",vg]]),{componentName:gg,create:yg}=J("row"),bg=yg({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=gg;(0,t.provide)("gutter",e.gutter);const o=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var ts=Object.create,Dr=Object.defineProperty,ns=Object.getOwnPropertyDescriptor,ls=Object.getOwnPropertyNames,os=Object.getPrototypeOf,as=Object.prototype.hasOwnProperty,We=(e,n)=>()=>(n||(e((n={exports:{}}).exports,n),e=null),n.exports),rs=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var r=ls(n),i=0,a=r.length,u;i<a;i++)u=r[i],!as.call(e,u)&&u!==o&&Dr(e,u,{get:(s=>n[s]).bind(null,u),enumerable:!(l=ns(n,u))||l.enumerable});return e},Ye=(e,n,o)=>(o=e!=null?ts(os(e)):{},rs(n||!e||!e.__esModule?Dr(o,"default",{value:e,enumerable:!0}):o,e));let t=require("vue"),rt=require("@fox-js/validator"),ae=require("@fox-js/icons-vue"),ve=require("@fox-js/i18n");var cn=window,is=typeof window<"u";function ss(){return typeof cn<"u"?cn.requestAnimationFrame||cn.webkitRequestAnimationFrame||function(e){cn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ir(e){is?cancelAnimationFrame(e):clearTimeout(e)}var Qe=ss();function bn(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]=Ql(Ne(e),Ne(n)),o==1&&(l==1?e=yl(e):n=yl(n));let r=qr(e,n);return o?o==2?"-"+Ne(r):e.length<r.length?Ne(r.substring(1)):"-"+Ne(yl(r)):Ne(r)}function yl(e){let n="",o=e.length,l=e.split(".")[1],r=l?l.length:0;for(let a=0;a<o;a++)e[a]>="0"&&e[a]<="9"?n+=9-parseInt(e[a]):n+=e[a];let i=r>0?"0."+new Array(r).join("0")+"1":"1";return qr(n,i)}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 Ql(e,n){let o=e.split("."),l=n.split("."),r=o[0].length,i=l[0].length;return r>i?l[0]=new Array(Math.abs(r-i)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(r-i)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,i=l[1]?l[1].length:0,(r||i)&&(r>i?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-i)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-i)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function qr(e,n){[e,n]=Ql(e,n);let o="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let i=parseInt(e[r])+parseInt(n[r])+l;o=i%10+o,l=Math.floor(i/10)}return l?l.toString()+o:o}var Ce=(function(e){return e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e})({});function jt(e,n=0,o=Ce.HALF_EVEN){if(o===Ce.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 r=e.split("."),i=r[0],a=r[1];if(n<0){if(n=-n,i.length<=n)return"0";{let s=i.substr(0,i.length-n);return e=s+"."+i.substr(i.length-n)+a,s=jt(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return i.length,Xa(r[1],i,l,o)?(l?"-":"")+bl(i):(l?"-":"")+i;if(r[1]){if(r[1].length<n)return(l?"-":"")+i+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(l?"-":"")+i+"."+new Array(n+1).join("0");a=r[1].substring(0,n);let u=r[1].substring(n);return u&&Xa(u,a,l,o)&&(a=bl(a),a.length>n)?(l?"-":"")+bl(i,parseInt(a[0]))+"."+a.substring(1):(l?"-":"")+i+"."+a}function Xa(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===Ce.DOWN||!o&&l===Ce.FLOOR||o&&l===Ce.CEILING)return!1;if(l===Ce.UP||o&&l===Ce.FLOOR||!o&&l===Ce.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(l){case Ce.HALF_DOWN:return!1;case Ce.HALF_UP:return!0;case Ce.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function bl(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let r=o;r>=0;r--){let i=parseInt(e[r])+n;i==10?(n=1,i=0):n=0,l+=i}return n&&(l+=n),l.split("").reverse().join("")}function El(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=Dt(e),n=Dt(n);let l=0,r=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let i=l+r;if(e=Dt(e.replace(".","")),n=Dt(n.replace(".","")),e.length<n.length){let c=e;e=n,n=c}if(n=="0")return"0";let a=n.length,u=0,s=[],d=a-1,h="";for(let c=0;c<a;c++)s[c]=e.length-1;for(let c=0;c<2*e.length;c++){let p=0;for(let g=n.length-1;g>=d&&g>=0;g--)s[g]>-1&&s[g]<e.length&&(p+=parseInt(e[s[g]--])*parseInt(n[g]));p+=u,u=Math.floor(p/10),h=p%10+h,d--}return h=Dt(us(h,i)),o==1&&(h="-"+h),h}function us(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 $l(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 r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ne(n.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ne(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=Ne(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let h=e.length-d+r;e=Ne(e.substring(0,h)+"."+e.substring(h))}else r==d&&(e=Ne(e.replace(".","")))}let i=0,a=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<a?e.substring(0,a+1):e.substring(0,a);if(e=e.indexOf(".")>-1&&e.indexOf(".")<a?e.substring(a+1):e.substring(a),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),a>s.length&&(d+=a-s.length,s=s+new Array(a-s.length+1).join("0")),i=d,u="0."+new Array(d).join("0")}for(o=o+2;i<=o;){let d=0;for(;parseInt(s)>=parseInt(n);)s=bn(s,"-"+n),d++;u+=d,e?(e[0]=="."&&(u+=".",i++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(i||(u+="."),i++,s=s+"0")}return(l==1?"-":"")+Ne(jt(u,o-2))}function Dl(e,n){return e=e.toString(),n=n.toString(),n=Il(n),bn(e,n)}function Il(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Qa(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Ga(e),Ga(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Dl(e,El(n,jt($l(e,n),0,Ce.FLOOR)));return o+l}function Ga(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Za(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]=Ql(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 Jt=class pe{value;static RoundingModes=Ce;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,l]=n.split(/[eE]/);o=Ne(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=r+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=r+Ne(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=r+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=pe.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=pe.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var i=n.indexOf(".");i=i>0?i:n.length;for(var a="",u=i;u>0;)u<o?(o=u,u=0):u-=o,a=n.substring(u,u+o)+(u<i-o&&u>=0?l:"")+a;return(r?"-":"")+a+n.substring(i)}getPrettyValue(n,o){return pe.getPrettyValue(this.value,n,o)}static round(n,o=0,l=Ce.HALF_EVEN){if(n=pe.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return jt(n,o,l)}round(n=0,o=Ce.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new pe(jt(this.value,n,o))}static floor(n){return n=pe.validate(n),n.indexOf(".")===-1?n:pe.round(n,0,Ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,Ce.FLOOR)}static ceil(n){return n=pe.validate(n),n.indexOf(".")===-1?n:pe.round(n,0,Ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,Ce.CEILING)}static add(n,o){return n=pe.validate(n),o=pe.validate(o),bn(n,o)}add(n){return new pe(bn(this.value,n.getValue()))}static subtract(n,o){return n=pe.validate(n),o=pe.validate(o),Dl(n,o)}subtract(n){return new pe(Dl(this.value,n.getValue()))}static multiply(n,o){return n=pe.validate(n),o=pe.validate(o),El(n,o)}multiply(n){return new pe(El(this.value,n.getValue()))}static divide(n,o,l){return n=pe.validate(n),o=pe.validate(o),$l(n,o,l)}divide(n,o){return new pe($l(this.value,n.getValue(),o))}static modulus(n,o){return n=pe.validate(n),o=pe.validate(o),Qa(n,o)}modulus(n){return new pe(Qa(this.value,n.getValue()))}static compareTo(n,o){return n=pe.validate(n),o=pe.validate(o),Za(n,o)}compareTo(n){return Za(this.value,n.getValue())}static negate(n){return n=pe.validate(n),Il(n)}negate(){return new pe(Il(this.value))}};function Pr(e,n){return Jt.multiply(`${e}`,`${n}`)}function Gl(e,n,o=8){return Jt.divide(`${e}`,`${n}`,o)}var O2=Jt.RoundingModes;function ql(e,n){return e=`${e}`,n=`${n}`,Jt.compareTo(e,n)}function Mr(e){return Jt.negate(e)}function $n(e,n=-1,o=!1,l=3,r=","){let i=`${e}`;if(i.length==0||i==="-")return"";let a=i.charAt(0);a=="-"?i=i.substring(1):a="";let u=i,s="",d=i.indexOf(".");d!=-1&&(u=i.substring(0,d),s=i.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let h;if(l>0){let c="",p=u.split("").reverse();for(let g=0;g<p.length;g++)c+=p[g]+((g+1)%l==0&&g+1!=p.length?r:"");s.length==0?h=`${a}${c.split("").reverse().join("")}`:h=`${a}${c.split("").reverse().join("")}.${s}`}else s.length==0?h=`${a}${u}`:h=`${a}${u}.${s}`;return h}function zr(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}var et=typeof window<"u",He=Qe;function Ve(e){return e==null}var Dn=Array.isArray,cs=e=>In(e)==="[object Map]",ds=e=>In(e)==="[object Set]",je=e=>e instanceof Date,Sn=e=>typeof e=="function",Rr=e=>typeof e=="string",fs=e=>typeof e=="symbol",xe=e=>e!==null&&typeof e=="object",yt=e=>xe(e)&&Sn(e.then)&&Sn(e.catch),Lr=Object.prototype.toString,In=e=>Lr.call(e),ms=e=>In(e)==="[object Object]",Fr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ps(e){return e.__esModule||Fr&&e[Symbol.toStringTag]==="Module"}var hs=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function bt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let i=e[o];for(let a in i){let u=n[a],s=i[a];if(u!==s)if(r===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},n[a]=bt(r,d,s)}else s!==void 0&&(n[a]=s)}}return n}var Sl=hs?Promise.resolve():null;function vs(e,...n){Sl!==null?n&&n.length>0?Sl.then(()=>{e(n)}):Sl.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function Se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function de(e){return typeof e=="number"?e:Number(e)}var gs={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function St(e){let n=Object.prototype.toString.call(e);return e==null?String(e):gs[n]||"object"}function Pl(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 Zl(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 Or(e){return e&&typeof e=="object"&&"setInterval"in e}function Kr(e){let n=!!e&&"length"in e&&e.length,o=St(e);return o==="function"||Or(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Ur(e,n){let o=+n.length,l=0,r=e.length;for(;l<o;l++)e[r++]=n[l];return e.length=r,e}function ys(e,n=[]){let o=n;return e!=null&&(Kr(Object(e))?Ur(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ee(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=St(e);if(o!==St(n))return!1;if(o==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let i=0;i<l.length;i++){let a=l[i],u=e[a],s=n[a];if(!Ee(u,s))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],i=n[l];if(!Ee(r,i))return!1}return!0}return!1}function Ml(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var me=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function qn(e){return me(e)?!1:(e.charAt(0)=="-"&&(e=e.substring(1)),me(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Hr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function _r(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 Ja(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 zl(e,n=!0,o=!0){n?e=Ja(e,".",/\./g):e=e.replace(/\./g,""),o?e=Ja(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function bs(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(Ee(e,o))return!0}):n.indexOf(e)}function Ss(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(Ee(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}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 o={};return n.forEach(l=>{for(const r in l)o[r]=e[r]}),o}function tt(e,...n){const o=[];n.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const l={};for(const r in e)o.includes(r)||(l[r]=e[r]);return l}var ks=(e,n,o)=>{const l=Object.assign({},e),r=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(i=>{r.hasOwnProperty(i)?typeof r[i]=="string"&&(l[i]=n[r[i]]):n[i]&&(l[i]=n[i])}),l):e};function Rl(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var at=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},_e=(e,n,o)=>Math.min(Math.max(e,n),o);function kn(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function ws(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var Me=Symbol.for("BroadcastKey"),jr=class{parent;children=[];callbacks=new Map;exposed=null;name;persistantMessages=new Map;constructor(e,n,o){this.parent=e,this.exposed=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.callbacks=null,this.exposed=null}setPersistantMessage(e,n,o){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,r={matched:e,action:n,args:o};return this.persistantMessages.set(l,r),!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==="+"||Ml(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 r=this.callbacks.get(n);typeof r=="function"&&(l=Reflect.apply(r,null,[...o])),this.exposed&&typeof this.exposed[n]=="function"&&(l=Reflect.apply(this.exposed[n],this.exposed,[...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 i=e.resolve,a=e.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(a),typeof i=="function"&&i(...s)};e.resolve=u}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):Ml(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 r=[];if(l){const i=this.callbacks.get(n);if(typeof i=="function"){const a=Reflect.apply(i,null,[...o]);Ve(a)||r.push(a)}if(this.exposed&&typeof this.exposed[n]=="function"){const a=Reflect.apply(this.exposed[n],this.exposed,[...o]);Ve(a)||r.push(a)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...r),e.messagingPolicy==="Once")return r}return this.children.forEach(i=>{const a=Reflect.apply(i.emit,i,[{...e},n,...o]);Array.isArray(a)&&a.length>0&&Reflect.apply([].push,r,[...a])}),r}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 r=e.resolve,i=e.uniqueId??"",a=(...u)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...u)};e.resolve=a}e.cachePolicy="None"}const l=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...e},n,...o]);Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(e,n){this.callbacks.set(e,n)}};function en(e,n,o,l){const r=new jr(n,e,o);if(l&&typeof l=="object")for(const i in l)r.on(i,l[i]);return r}function Lt(e){let n=e?.[Me];return!n&&(0,t.hasInjectionContext)()&&(n=(0,t.inject)(Me,null)),n}var Cs=class{error(e,n){const o=Lt(n.exposed);o?o.emit({name:"*"},"setErrorTip",e):n.exposed&&typeof n.exposed.setErrorTip=="function"&&n.exposed.setErrorTip(e)}reset(e){const n=Lt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}success(e){const n=Lt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}decorate(e,n,o){Array.isArray(e)||(e=[e]);const l=Lt(o.exposed),r=n.find(a=>a.required===!0||a.type==="required"&&a.required!==!1),i=e.find(a=>a.required===!0||a.type==="required"&&a.required!==!1);!r&&i?l?l.emit({name:"*"},"setRequired",!0):o.exposed&&typeof o.exposed.setRequired=="function"&&o.exposed.setRequired(!0):r&&!i&&(l?l.emit({name:"*"},"setRequired",!1):o.exposed&&typeof o.exposed.setRequired=="function"&&o.exposed.setRequired(!1),this.reset(o))}getValue(e){return e.props.modelValue??e.exposed.modelValue}},Kt=new Cs;function Ns(e){Kt=e}function As(e){Kt?Object.assign(Kt,e):Kt=e}function Bs(e,n){rt.Schema.setValidator(e,n)}function Ts(e){rt.Schema.deleteValidator(e)}var Wr=["blur","clear"];function Vs(e){Wr=e}function Yr(){return Wr}var Xr=["focus","change","setValue"];function xs(e){Xr=e}function Qr(){return Xr}function Es(e){rt.Schema.messages(e)}function It(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const r=n.findIndex(i=>i.type===l.type);r!==-1&&n.splice(r,1),n.push(l)})}),n}function dn(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var Xe=Symbol("ValidateSchemaKey"),Gr=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(){this.descriptor.pureDataValidate!==!0&&this.descriptor.valueName&&this.descriptor.context?.attrs&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const e=dn(It(this.attrRules,this.rules)),n=[],o=this.descriptor.context?.attrs??{};for(let r in o){let i=o[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let u={type:r};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let a=this.getValidator(r);if(a!==null){let u={type:r,validator:a};n.push(u)}}this.attrRules=dn(n);const l=It(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(l,e)})})}))}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=Kt;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.execHandler("getValue",this.proxy)}setValidator(e,n,o=!1){o?rt.Schema.setValidator(e,n):this.validators[e]=n}getValidator(e){let n=this.validators[e]??null;return n||(n=this.parent?.getValidator(e)??null),n}deleteValidator(e,n=!1){n?rt.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return rt.Schema.hasValidator(e);{let o=Reflect.has(this.validators,e);return!o&&this.parent!==null&&(o=this.parent.hasValidator(e,!1)),o}}setRule(e){const n=It(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=dn(e):this.rules=dn([e]);const o=It(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(o,n)})}clear(){this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=It(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const o={[`${n}`]:e},l=this.getValue(),r={[`${n}`]:l},i=new rt.Schema(o),a=this.proxy??r;return i.validate(r,{context:a}).then(u=>{if(u.pass)this.success();else{let s="error";Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors[0].message??s,u.errors=[u.errors[0]],u.errors[0].ref=a),this.error(s)}return u}).catch(u=>{const s=u.message??`${u}`;return this.error(s),u})}}return Promise.resolve({pass:!0})}};function Pn(e,n,o){o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string";const l={exposed:e,get $el(){return o.templateRefProxy?.$el},get props(){return o.props},get attrs(){return o.context?.attrs}};if(!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(i){return i.props?.[r]??i.exposed[r]}}}return new Gr(n,o,l)}var wn=Symbol.for("EventEmitterKey"),Zr=class{register=new Map;emitFn;constructor(e){this.emitFn=e??null}destroy(){this.emitFn=null,this.register.clear()}off(e,n){let o=this.register.get(e);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===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(r){console.error(r.message,r)}}),this.emitFn&&Reflect.apply(this.emitFn,null,[e,...n])}};function Ie(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function Cn(e,n){let o=0;return function(...l){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...l]))}}function $s(e,n){const o=Ie((l,r)=>{e=l,r()},n);return(0,t.customRef)((l,r)=>({get(){return l(),e},set(i){o(i,r)}}))}function Ds(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function Jl(e,n,o,l=0,r=!0){let i=n,a=0;if(r){const s=e();if(a++,s||a>o)return}const u=()=>{const s=e();a++,!(s||a>o)&&(i+=l,setTimeout(u,i))};setTimeout(u,i)}var Ge=Symbol("DomainKey"),Ft=Symbol("DataItemsKey"),Mn=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}componentPublicExposed={};_props=(0,t.reactive)({});_datas={};constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={},this._datas={},this.componentPublicExposed={}}setData(e,n){this._datas[e]=n}getData(e){return this._datas[e]}hasData(e){return Reflect.has(this._datas,e)}deleteData(e){return Reflect.deleteProperty(this._datas,e)}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}},Is=new Mn;function ht(){return Is}function nt(){return(0,t.inject)(Ge,null)}var kl=Symbol("OriginalDateKey");function eo(e,n,o){const l=(0,t.hasInjectionContext)(),r=l?(0,t.getCurrentScope)():null;let i=l?(0,t.inject)(Ge,null):null;i===null&&(i=ht());const a=n;let u=new Mn(a);u.parent=i;const s=b=>{u?.hasData(kl)||c(b),u?.set("modelValue",b)},d=()=>u?.getForSelf("modelValue")??null,h=()=>u?.getData(kl)??null,c=b=>{const f={};bt(!0,f,(0,t.toRaw)(b)),u.setData(kl,f)},p=e.props,g=e.ignorePropKeys;(0,t.isReactive)(p)||typeof p=="function"?(0,t.watch)(p,b=>{u?.merge(b,g),b.modelValue&&c(b.modelValue)},{immediate:!0}):(u.merge(p,g),p.modelValue&&c(p.modelValue));const N=(b,f)=>{u?.set(b,f)},k=b=>u?.getForSelf(b)??null;if(u.componentPublicExposed[Ge]=u,(0,t.provide)(Ge,u),r!==null){const b=(0,t.inject)(Me,null),f=en(u.componentPublicExposed,b,a,o);u.broadcast=f,u.componentPublicExposed[Me]=f,(0,t.provide)(Me,f),u.componentPublicExposed.broadcast=(v,y,...V)=>{if(f)return Reflect.apply(f.emit,f,[v,y,...V])};const m=(0,t.inject)(Xe,null),S=Pn(u.componentPublicExposed,m,{componentName:"",context:e.context});u.validateSchema=S,u.componentPublicExposed[Xe]=S,(0,t.provide)(Xe,S),u.componentPublicExposed[Ft]=new Map,u.componentPublicExposed.validate=async(v=!0)=>{const y=[];let V=null;const T={};let A=!1;if(v===!0)V={name:"*"},A=!0;else if(Array.isArray(v)&&v.length>0){const C=v;V={name:q=>q?C.indexOf(q)!==-1:!1},A=!0}else if(v!=null&&typeof v=="object"){const C=v;if(C.deep!==!1){if(Object.assign(T,C),Array.isArray(C.include)&&C.include.length>0){const q=C.include;V={name:H=>H?q.indexOf(H)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const q=C.exclude;V={name:H=>H?q.indexOf(H)===-1:!1}}else V={name:"*"};A=!0}}if(A&&V){T.deep=!1;const C=f?.emitToChildren(V,"validate",T);C&&Reflect.apply([].push,y,C)}return y.length==1?y[0]:y.length>1?Promise.all(y).then(C=>{let q=[];return C.forEach(H=>{H.pass===!1&&Array.isArray(H.errors)&&(q=[...q,...H.errors])}),q.length>0?{pass:!1,errors:q}:{pass:!0}}):Promise.resolve({pass:!0})};const B=e.context;u.componentPublicExposed.setNameValidateRules=(v,y=!0,V=!1)=>{if(V===!0){Reflect.ownKeys(v).forEach(T=>{let A=String(T);const C={componentName:"",fieldName:A,pureDataValidate:!0,context:B};if(u){const q=ei(u,A,C,f,S);u.componentPublicExposed[Ft].set(A,q);const H=v[A];H&&q.validateSchema.setRule(H)}});return}if(y){const T=Reflect.ownKeys(v);f?.emitToChildren({name:A=>T.includes(A),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",v,!1)}},u.componentPublicExposed.clearValidate=(v=!0)=>{let y=null;const V={};let T=!1;if(v===!0)y={name:"*"},T=!0;else if(Array.isArray(v)&&v.length>0){const A=v;y={name:C=>C?A.indexOf(C)!==-1:!1},T=!0}else if(v!=null&&typeof v=="object"){const A=v;if(A.deep!==!1){if(Array.isArray(A.include)&&A.include.length>0){const C=A.include;y={name:q=>q?C.indexOf(q)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const C=A.exclude;y={name:q=>q?C.indexOf(q)===-1:!1}}else y={name:"*"};Object.assign(V,A),T=!0}}T&&y&&(V.deep=!1,f?.emitToChildren(y,"clearValidate",V))},u.componentPublicExposed.resetFields=v=>{const y=d();if(!y)return;const V={};if(bt(!0,V,h()??{}),Array.isArray(v))v.forEach(T=>{y[T]=V[T]});else if(v&&Array.isArray(v.include))(v.include??[]).forEach(T=>{y[T]=V[T]});else if(v&&Array.isArray(v.exclude)){let T=v.exclude??[];Reflect.ownKeys(V).forEach(A=>{T.includes(A)||(y[A]=V[A])})}else Object.assign(y,V);u?.componentPublicExposed?.clearValidate(v)},u.componentPublicExposed.setModelValue=(v,y)=>{if(!y||y===a)s(v);else{const V={name:y,messagingPolicy:"Once"};f?.emitToChildren(V,"setModelValue",v)}},u.componentPublicExposed.getModelValue=()=>d(),u.componentPublicExposed.setDomainProperty=(v,y)=>{N(v,y)},u.componentPublicExposed.getDomainProperty=v=>k(v),setTimeout(function(){f?.pull()},0)}(0,t.onScopeDispose)(function(){u?.validateSchema&&u.validateSchema.destroy(),u?.broadcast&&u?.broadcast?.destroy(),u.componentPublicExposed[Ft]&&u.componentPublicExposed[Ft].clear(),u?.destroy(),u=null});const w=e.context?.expose;return{domain:u,exposeApi:(b={})=>{Object.assign(u.componentPublicExposed,b),w?.(u.componentPublicExposed)}}}function Jr(e,n){let o=(0,t.inject)(Ge,null);o===null&&(o=ht());let l=new Mn(n);l.parent=o;const r=e.props,i=e.ignorePropKeys;(0,t.isReactive)(r)||typeof r=="function"?(0,t.watch)(r,u=>{l?.merge(u,i)},{immediate:!0}):l.merge(r,i),l.componentPublicExposed[Ge]=l,(0,t.provide)(Ge,l),(0,t.onScopeDispose)(()=>{l?.destroy(),l=null});const a=e.context?.expose;return{domain:l,exposeApi:(u={})=>{Object.assign(l.componentPublicExposed,u),a?.(l.componentPublicExposed)}}}function Be(e,n,o){const l={},r=n??e.componentName??"";let i=en(l,(0,t.inject)(Me,null),r,o);l[Me]=i,(0,t.provide)(Me,i),l.broadcast=(c,p,...g)=>i?Reflect.apply(i.emit,i,[c,p,...g]):null;const a=(0,t.inject)(Xe,null);e.fieldName=e.fieldName??r;let u=Pn(l,a,e);l[Xe]=u,(0,t.provide)(Xe,u),l.validate=async(c=null)=>{if(!u)return Promise.resolve({pass:!0});const p=[];let g=null;const N={};let k=!1,w=!1;if(c===!0)g={name:"*"},w=!0,k=!0;else if(Array.isArray(c)&&c.indexOf(r)!==-1){const b=c;g={name:f=>f?b.indexOf(f)!==-1:!1},w=!0,k=!0}else if(c&&typeof c=="object"){const b=c,f=b.ignoreDisabled??!0,m=b.ignoreReadonly??!0,S=b.ignoreHidden??!0;f===!0&&e.disabled===!0||m===!0&&e.readonly===!0||S===!0&&Pl(e.templateRefProxy?.$el??e.templateRefProxy)?w=!1:(Array.isArray(b.include)&&b.include.indexOf(r)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(r),w=!0),Object.assign(N,b),k=b.deep??!1}if(w){const b=u?.validate();p.push(b)}if(k&&g){N.deep=!1;const b=i?.emitToChildren(g,"validate",N);b&&Reflect.apply([].push,p,b)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(b=>{let f=[];return b.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(f=[...f,...m.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=c=>u?.setRule(c),l.setNameValidateRules=(c,p=!1)=>{const g=c[r];g&&u?.setRule(g),p&&i&&i.emitToChildren({name:N=>Reflect.ownKeys(c).includes(N)},"setNameValidateRules",c,!1)},l.clearValidate=(c=!0)=>{if(!u)return;let p=null;const g={};let N=!1,k=!1;if(c===!0)p={name:"*"},k=!0,N=!0;else if(Array.isArray(c)&&c.indexOf(r)!==-1){const w=c;p={name:b=>b?w.indexOf(b)!==-1:!1},k=!0,N=!0}else if(c&&typeof c=="object"){const w=c;(w.ignoreHidden??!0)===!0&&Pl(e.templateRefProxy?.$el??e.templateRefProxy)?k=!1:(Array.isArray(w.include)&&w.include.indexOf(r)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(r),k=!0),Object.assign(g,w),N=w.deep??!1}k&&u?.clear(),N&&p&&(g.deep=!1,i?.emitToChildren(p,"clearValidate",g))};let s=new Zr(e.context?.emit);l[wn]=s,l.triggerEvent=(c,...p)=>{s.emit(c,...p)};const d=Ie((c="validate")=>{u&&(c==="reset"?u.clear():u.validate())},60);(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Yr()).forEach(c=>{s&&s.on(c,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Qr()).forEach(c=>{s&&s.on(c,p=>{d("reset")})}),setTimeout(function(){i?.pull()},0),(0,t.onScopeDispose)(()=>{i?.destroy(),i=null,u?.destroy(),l[Xe]=null,u=null,s?.destroy(),l[wn]=null,s=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null});const h=e.context?.expose;return{broadcast:i,validateSchema:u,emitEvent:(c,...p)=>{s&&Reflect.apply(s.emit,s,[c,...p])},onEvent:(c,p)=>{s&&Reflect.apply(s.on,s,[p])},offEvent:(c,p)=>{s&&Reflect.apply(s.off,s,[p])},componentPublicExposed:l,exposeApi:(c={})=>{Object.assign(l,c),h?.(l)}}}function ei(e,n,o,l,r){const i={},a=n??"",u={getValue(){const c=e.getForSelf("modelValue");return c?c[a]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,a):!1}};o.fieldName=a,o.validateHandler={getValue(c){return u.getValue()}};let s=Pn({},r,o);i.validate=async(c=null)=>{if(!u.isExist())return console.warn(`validate error: field [${a}] not exist`),Promise.resolve({pass:!0});const p=[];let g=!1,N=!1;if(Array.isArray(c)&&c.indexOf(a)!==-1)N=!0,g=!0;else if(c&&typeof c=="object"){const k=c;Array.isArray(k.include)&&k.include.indexOf(a)!==-1||Array.isArray(k.exclude)&&k.exclude.indexOf(a),N=!0,g=k.deep??!1}else typeof c=="boolean"&&(g=c),N=!0;if(N&&s){const k=s.validate();p.push(k)}if(g){let k=null;const w={};if(c===!0)k={name:"*"};else if(Array.isArray(c)&&c.length>0){const b=c;k={name:f=>f?b.indexOf(f)!==-1:!1}}else if(c!=null&&typeof c=="object"){const b=c;if(Object.assign(w,b),Array.isArray(b.include)&&b.include.length>0){const f=b.include;k={name:m=>m?f.indexOf(m)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const f=b.exclude;k={name:m=>m?f.indexOf(m)===-1:!1}}else k={name:"*"}}if(k&&d){w.deep=!1;const b=d.emitToChildren(k,"validate",w);Reflect.apply([].push,p,b)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(k=>{let w=[];return k.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(w=[...w,...b.errors])}),w.length>0?{pass:!1,errors:w}:{pass:!0}}):Promise.resolve({pass:!0})},i.setValidateRule=c=>s?.setRule(c),i.setNameValidateRules=c=>{const p=c[a];p&&s?.setRule(p)};let d=en(i,l,a);(0,t.onScopeDispose)(()=>{s=null,d=null});const h=o.context?.expose;return{broadcast:d,validateSchema:s,componentPublicExposed:i,exposeApi:(c={})=>{Object.assign(i,c),h?.(i)}}}function Oe(e,n){let o={};if(n){const i=(0,t.inject)(Me,null),a=en(o,i,n,{});o[Me]=a,(0,t.provide)(Me,a)}let l=new Zr(e.context?.emit);o[wn]=l,o.triggerEvent=(i,...a)=>{l.emit(i,...a)},(0,t.onScopeDispose)(()=>{l?.destroy(),Reflect.deleteProperty(o,wn),o=null,l=null});const r=e.context?.expose;return{emitEvent:(i,...a)=>{l&&Reflect.apply(l.emit,l,[i,...a])},onEvent:(i,a)=>{l&&Reflect.apply(l.on,l,[a])},offEvent:(i,a)=>{l&&Reflect.apply(l.off,l,[a])},componentPublicExposed:o,exposeApi:(i={})=>{Object.assign(o,i),r?.(o)}}}var he=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ue(e)}px`:"",qs=he;function ue(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),i=1;if(et){const{fontSize:a}=window.getComputedStyle(document.documentElement,null),u=a.indexOf("px");u>0&&(i=Number(a.substring(0,u)))}return r*=i,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))*n;const l=Number(e);return isNaN(l)?0:l}function Ps(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}var Ze="PageStateKey";function Le(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ue(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ue(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ue(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ue(e.right))),n}function Ll(e,n,o={},l=!0,r=-1,i=-1,a=0,u=0){if(e.headerHeight=ue(o.headerHeight??n.headerHeight??-1),e.headerPadding=Le(o.headerPadding??n.headerPadding),e.footerHeight=ue(o.footerHeight??n.footerHeight??-1),e.footerPadding=Le(o.footerPadding??n.footerPadding),e.contentPadding=Le(o.contentPadding??n.contentPadding),l){const s=o.height??n.height;s?e.height=ue(s,i):e.height=ue(i)-ue(a,i)-ue(u,i),e.width=ue(o.width??n.width??0,r)}}function ti(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},r=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});r&&(l.safeAreaTop=ue(r.top),l.safeAreaBottom=ue(r.bottom),l.safeAreaLeft=ue(r.left),l.safeAreaRight=ue(r.right));const i=e.get("pageLayout");if(!i)return null;Ll(l,i,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const a=(0,t.reactive)(l),u=e.getForParent(Ze);u&&(l.height=Nn(e,u),l.width=An(e,u),(0,t.watch)([()=>Nn(e,u),()=>An(e,u)],([d,h])=>{a.height=d,a.width=h}));const s=!u;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([d,h,c=-1,p=-1,g=0,N=0])=>{Ll(a,h,n,s,c,p,g,N)}),e.set(Ze,a),a}function zn(e){return e.get(Ze)}function Rn(e,n){if(n=n??e.get(Ze),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Ln(e,n){if(n=n??e.get(Ze),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function Nn(e,n){if(n=n??e.get(Ze),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Rn(e,n),l=Ln(e,n),r=ue(n.contentPadding.top??0),i=ue(n.contentPadding.bottom??0);return n.height-o-l-r-i}return 0}function An(e,n){if(n=n??e.get(Ze),n){const o=ue(n.contentPadding.left??0),l=ue(n.contentPadding.right??0);return n.contentInnerWidth??n.width-o-l}return 0}function Ms(e){return!!e.getForParent(Ze)}var to=Symbol.for("InnerPageScopeKey");function ni(e){(0,t.provide)(to,e)}function tn(e=!1){return(0,t.inject)(to,e)}var no=Symbol.for("AbstractPageScopeKey");function li(e){(0,t.provide)(no,e)}function nn(e=!1){return(0,t.inject)(no,e)}function oi(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.headerBar??e:e}function ai(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.footerBar??e:e}function ri(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.content??e:e}var Fl=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function fn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ae(e,n,o=1,l){const r=nt();return r==null?e:o===0?(0,t.computed)(()=>{const i=r.getAll(n);for(let u=i.length-1;u>=0;u--){const s=i[u];if(fn(s,l))return s}const a=e.value;return fn(a,l)?a:null}):(0,t.computed)(()=>{const i=e.value;if(fn(i,l))return i;const a=r.getAll(n);for(let u=0;u<a.length;u++){const s=a[u];if(fn(s,l))return s}return null})}function ii(e){return Ae(e,"readonly",1)}function si(e){return Ae(e,"disabled",1)}function ui(e){return Ae(e,"browse",1)}function Te(e){const n=(0,t.ref)(null),o=(0,t.ref)(null),l=si((0,t.computed)(()=>o.value??e.disabled)),r=(0,t.ref)(null);return{itemTemplateRef:n,innerDisabled:o,disabled:l,innerReadonly:r,readonly:ii((0,t.computed)(()=>r.value??e.readonly)),browse:ui((0,t.computed)(()=>e.browse))}}function qe(e,n="modelValue",o=null,l){const r=(0,t.toRef)(e,n);let i=r.value;typeof o=="function"&&(i=o(r.value));const a=(0,t.ref)(i);return(0,t.watch)(r,u=>{if(typeof o=="function"){const s=o(u);s!==a.value&&(a.value=s,l&&l("setValue",s))}else u!==a.value&&(a.value=u,l&&l("setValue",u))}),a}var ci=new Map,Bn=new Map,lo=null;function zs(e){lo=e}function Rs(){return lo}function ct(){return lo?.()??null}function di(e,n,o){if(o){let l=Bn.get(o);l||(l=new Map,Bn.set(o,l)),l.set(e,n)}else ci.set(e,n)}function lt(e,n){let o=null;if(n){let l=Bn.get(n);l&&(o=l.get(e))}return o||(o=ci.get(e)),o}function Ls(e,n){for(let o in e){const l=e[o];di(o,l,n)}}function Fs(e){Bn.delete(e)}function Os(){return{top:0,left:0,bottom:0,right:0}}function Ks(){return et?{rootWidth:window.innerHeight||document.documentElement.clientWidth||document.body.clientWidth,rootHeight:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Us(e,n){let o=e;if(n.componentPrefix){const l=o.indexOf("-");l!==-1?o=`${n.componentPrefix}${o.slice(l)}`:o=`${n.componentPrefix}-${o}`}return kn(o)}var Hs=class{packages;resizeListener=null;resizeObserver=null;_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,n);else if(l.name){const r=Us(l.name,n);e.component(r,l)}});const o=ht();if(n.autoAdjustPageLayout!==!1){const l={...n},r=this.resizeListener;typeof n.resizeDebounceDelay=="number"?this.resizeListener=Ie(()=>{const i={...l};this.updateLayout(i,o)},n.resizeDebounceDelay):this.resizeListener=()=>{const i={...l};this.updateLayout(i,o)},window.visualViewport?(r&&window.visualViewport.removeEventListener("resize",r),window.visualViewport.addEventListener("resize",this.resizeListener)):window.ResizeObserver&&(this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new window.ResizeObserver(this.resizeListener),this.resizeObserver.observe(window.document.body))}this.updateLayout(n,o)}unInstall(){window.visualViewport?this.resizeListener&&window.visualViewport.removeEventListener("resize",this.resizeListener):window.ResizeObserver&&this.resizeObserver&&this.resizeObserver.disconnect()}updateLayout(e,n){const o=e.headerBarHeight??0,l=e.footerBarHeight??0,r=bt({},Os(),e.safeAreaInset),i=Ks(),a=bt({},i.pageLayout,e.pageLayout);n=n??ht(),n.set("safeAreaInset",r),n.set("headerBarHeight",o),n.set("footerBarHeight",l),n.set("pageLayout",a),n.set("rootWidth",i.rootWidth),n.set("rootHeight",i.rootHeight);const u=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const s in e)u.indexOf(s)===-1&&n.set(s,e[s])}setScopeGetter(e){zs(e)}getScopeGetter(){return Rs()}setAPI(e,n,o){di(e,n,o)}getAPI(e,n){return lt(e,n)}batchSetAPI(e,n){Ls(e,n)}clearScopeAPI(e){Fs(e)}getRootDomain(){return ht()}};function J(e){const n=`fox-${e}`,o=kn(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=(r,i)=>{let a=l.name;i?.componentPrefix&&(a=`${i.componentPrefix}-${l.baseName}`,a=kn(a)),r.component(a,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var _s=(e,n)=>{let o=document.body;const l=e.teleport||"body";l!="body"&&(Rr(l)?o=document.querySelector(l):o=e.teleport);const r=document.createElement("view");r.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let i={};Sn(n.wrapper)?i=n.wrapper(o,r):i=n.wrapper;const a=(0,t.createApp)(i,e),u=n.components;return u&&u.forEach(s=>{a.use(s)}),o.appendChild(r),{instance:a.mount(r),unmount:()=>{a.unmount(),o.removeChild(r)}}},fi=(e,n)=>e?(0,t.h)(e,n):"",ge={browse:{type:[String],required:!1,default:()=>null},disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},be={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},mi={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}},pi={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}},hi=[];for(const e in pi)hi.push(e);var js={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}},Ws=(e,n)=>({inheritAttrs:!0,props:{...ge,...mi,...js},setup(o,l){const r=!!nn(!1),i=tn(!1),{domain:a,exposeApi:u}=eo({props:o,context:l},o.name);if(a){const c=ti(a,o);u({getPageContentHeight:()=>Nn(a,c),getPageContentWidth:()=>An(a,c),getPageHeaderHeight:()=>Rn(a,c),getPageFooterHeight:()=>Ln(a,c)}),c&&i&&(c.contentHeight="100%")}const s=(0,t.computed)(()=>({[e]:!0,"is-inner":i})),d=(0,t.computed)(()=>({})),h=(c,p=!1)=>{a.componentPublicExposed&&typeof a.componentPublicExposed.setNameValidateRules=="function"&&a.componentPublicExposed.setNameValidateRules(c,!0,p)};return(0,t.watch)([()=>o.rules,()=>o.pureDataRules],([c,p],[g,N])=>{if(c&&g){const k=(0,t.toRaw)(g),w=(0,t.toRaw)(c),b=w?Reflect.ownKeys(w):[];(k?Reflect.ownKeys(k):[]).forEach(f=>{b.includes(f)||(w[f]=[])}),h(w)}if(p&&N){const k=(0,t.toRaw)(N),w=(0,t.toRaw)(p),b=w?Reflect.ownKeys(w):[];(k?Reflect.ownKeys(k):[]).forEach(f=>{b.includes(f)||(w[f]=[])}),h(w,!0)}},{deep:!0}),(0,t.onMounted)(()=>{o.rules&&h((0,t.toRaw)(o.rules)),o.pureDataRules&&h((0,t.toRaw)(o.pureDataRules),!0)}),()=>r?l.slots?.default?.():(0,t.h)("div",{class:s.value,style:d.value},[l.slots?.default?.()])}}),{componentName:Ys,create:Xs,scope:Qs}=J("page"),Gs=Xs(Ws(Ys,Qs)),oo=Gs;function ao(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Fn(e){const n=(0,t.unref)(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),i=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-r,height:n.clientHeight-i-a}}var vi={headerbar:{},radio:{},checkbox:{}};function Zs(e){Object.assign(vi,e)}function On(){return vi}var Js=(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(r,i){const a=oi(!1),u=tn(!1),s=a?null:nt(),d=s?zn(s):null,h=On(),c=e,p=(0,t.computed)(()=>{const x={[c]:!0,[`${c}--border`]:r.border,[`${c}--fixed`]:r.fixed};return u||(x[`${c}--safe-area-inset-top`]=r.safeAreaInsetTop),x}),g=(0,t.computed)(()=>({[`${c}__inner`]:!0,[`${c}__inner--${r.align}`]:!0})),N=Ve(r.height)?null:ue(r.height),k=(0,t.computed)(()=>{const x={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(a)return x;if(s&&d){const M=Le(r.padding??d.headerPadding);if(Object.assign(x,M),Ve(N)||(d.headerHeight=N),x.height=d.headerHeight,x.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,x.safeAreaTop>0){const P=ue(M.top??0);x.top=x.safeAreaTop+P,x.height&&x.height>0&&(x.height=x.height+x.safeAreaTop)}return x}if(Ve(N)||(x.height=N),r.padding){const M=Le(r.padding);Object.assign(x,M)}return x}),w=(0,t.ref)(null),b=()=>d&&w.value&&!Zl(w.value)?(l||(d.headerAllHeight=ao(w.value).height),d.headerMounted=!0,!0):!1,f=Ie(b,120);let m=null;(0,t.onMounted)(()=>{a||d&&(Jl(b,50,5,50,!0),window.ResizeObserver&&w.value&&(m=new window.ResizeObserver(f),m.observe(w.value)))}),(0,t.onUnmounted)(()=>{a||d&&(d.headerMounted=!1,m&&(m.disconnect(),m=null))});const S=(0,t.computed)(()=>{const x={};return a||(k.value.height!==null&&k.value.height!==void 0&&(x.height=`${k.value.height}px`),k.value.top!==null&&k.value.top!==void 0&&(x.paddingTop=`${k.value.top}px`),k.value.left!==null&&k.value.left!==void 0&&(x.paddingLeft=`${k.value.left}px`),k.value.right!==null&&k.value.right!==void 0&&(x.paddingRight=`${k.value.right}px`),k.value.bottom!==null&&k.value.bottom!==void 0&&(x.paddingBottom=`${k.value.bottom}px`)),x}),B=(0,t.computed)(()=>{const x=k.value?.height;return Ve(x)||x<0?!0:x>0});function v(){i.emit("back")}function y(){i.emit("click-title")}function V(){i.emit("click-right")}function T(){i.emit("click-right-text")}const A=()=>{if(!r.leftShow)return null;const x=[];if(i.slots.left)x.push(i.slots.left());else{if(i.slots.leftIcon){const M=(0,t.h)("view",{class:"left-icon",onClick:v},[i.slots.leftIcon()]);x.push(M)}else{const M=r.leftIcon??h.headerbar.Left??o,P=(0,t.h)("view",{class:"left-icon",onClick:v},[(0,t.h)(M)]);x.push(P)}if(r.leftText){const M=(0,t.h)("view",{class:"left-text",onClick:v},[r.leftText]);x.push(M)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},x)},C=()=>{if(!r.rightShow)return null;const x=[];if(i.slots.right)x.push(i.slots.right());else{if(r.rightText){const M=(0,t.h)("view",{class:"right-text",onClick:T},[r.rightText]);x.push(M)}if(i.slots.rightIcon){const M=(0,t.h)("view",{class:"right-icon",onClick:V},[i.slots.rightIcon()]);x.push(M)}else if(r.rightIcon){const M=(0,t.h)("view",{class:"right-icon",onClick:V},[(0,t.h)(r.rightIcon)]);x.push(M)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},x)},q=()=>{if(!r.titleShow)return null;const x=[],M=i.slots.default?i.slots.default():null;if(M)x.push(M);else{if(r.title){const P=(0,t.h)("view",{class:"title-text"},[r.title]);x.push(P)}if(i.slots.titleIcon){const P=(0,t.h)("view",{class:"title-icon",onClick:y},[i.slots.titleIcon()]);x.push(P)}else if(r.titleIcon){const P=(0,t.h)("view",{class:"title-icon",onClick:y},[(0,t.h)(r.titleIcon)]);x.push(P)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},x)},H=()=>{const x=[],M=i.slots.bottom?i.slots.bottom():null;return M&&x.push(M),x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},x)};return()=>{if(a||!B.value)return null;const x=[];if(i.slots.all)x.push(i.slots.all());else{const M=[],P=A();P&&M.push(P);const R=q();R&&M.push(R);const z=C();if(z&&M.push(z),M.length>0){const I=(0,t.h)("view",{class:g.value},M);x.push(I)}const W=H();W&&x.push(W)}return x.length===0?null:(0,t.h)("view",{class:p.value,style:S.value,ref:w},x)}}}),{componentName:eu,create:tu,scope:nu}=J("header-bar"),lu=tu(Js(eu,nu,ae.Left,!1)),ro=lu;function ou(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,r){const i=ai(!1),a=tn(!1),u=i?null:nt(),s=u?zn(u):null,d=e,h=(0,t.computed)(()=>{const m={[d]:!0,[`${d}--${l.align}`]:!0,[`${d}--border`]:l.border,[`${d}--fixed`]:l.fixed};return a||(m[`${d}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),m}),c=Ve(l.height)?null:ue(l.height),p=(0,t.computed)(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(i)return m;if(u&&s){const S=Le(l.padding??s.footerPadding);if(Object.assign(m,S),Ve(c)||(s.footerHeight=c),m.height=s.footerHeight,m.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,m.safeAreaBottom>0){const B=ue(S.bottom??0);m.bottom=m.safeAreaBottom+B,m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)}return m}if(Ve(c)||(m.height=c),l.padding){const S=Le(l.padding);Object.assign(m,S)}return m}),g=(0,t.computed)(()=>{const m=p.value?.height;return Ve(m)||m<0?!0:m>0}),N=(0,t.ref)(null),k=()=>s&&N.value&&!Zl(N.value)?(o||(s.footerAllHeight=ao(N.value).height),s.footerMounted=!0,!0):!1,w=Ie(k,120);let b=null;(0,t.onMounted)(()=>{i||s&&(Jl(k,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(w),b.observe(N.value)))}),(0,t.onUnmounted)(()=>{i||s&&(s.footerMounted=!1,b&&(b.disconnect(),b=null))});const f=(0,t.computed)(()=>{const m={};return i||(p.value.height!==null&&p.value.height!==void 0&&(m.height=he(p.value.height)),p.value.top!==null&&p.value.top!==void 0&&(m.paddingTop=he(p.value.top)),p.value.left!==null&&p.value.left!==void 0&&(m.paddingLeft=he(p.value.left)),p.value.right!==null&&p.value.right!==void 0&&(m.paddingRight=he(p.value.right)),p.value.bottom!==null&&p.value.bottom!==void 0&&(m.paddingBottom=he(p.value.bottom))),m});return()=>{if(i||!g.value)return null;const m=r.slots.default?r.slots.default():[];return(0,t.h)("view",{ref:N,class:h.value,style:f.value},m)}}}}var{componentName:au,create:ru,scope:iu}=J("footer-bar"),su=ru(ou(au,iu,!1)),io=su;function uu(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:l,attrs:r}){const i=ri(!1),a=tn(!1),u=i?null:nt(),s=(0,t.computed)(()=>({[e]:!0})),d=u?zn(u):null,h=(0,t.computed)(()=>{const k={};if(i)return k;if(u&&d){if(o.padding){const y=Le(o.padding);Object.assign(d.contentPadding,y)}const w=Rn(u,d),b=Ln(u,d);let f="";d.contentHeight?f=`${d.contentHeight}`:f=`${d.height}px`,console.debug("[content]page height:",f),console.debug("[content]header height:",w),console.debug("[content]footer height:",b),console.debug("[content]padding:",d.contentPadding),k.height=f;let m=ue((d&&d.contentPadding&&d.contentPadding.top)??-1);(m>=0||w>0)&&(m=m<0?0:m,k.paddingTop=`${w+m}px`);let S=ue((d&&d.contentPadding&&d.contentPadding.bottom)??-1);(S>=0||b>0)&&(S=S<0?0:S,k.paddingBottom=`${b+S}px`);const B=ue((d&&d.contentPadding&&d.contentPadding.left)??-1);B>=0&&(k.paddingLeft=`${B}px`);const v=ue((d&&d.contentPadding&&d.contentPadding.right)??-1);return v>=0&&(k.paddingRight=`${v}px`),k}if(o.padding){const w=Le(o.padding);w.left&&(k.paddingLeft=`${w.left}px`),w.top&&(k.paddingTop=`${w.top}px`),w.right&&(k.paddingRight=`${w.right}px`),w.bottom&&(k.paddingBottom=`${w.bottom}px`)}return k}),c=(0,t.ref)(null),p=()=>{if(d&&c.value){const k=Fn(c.value);d.contentInnerHeight=k.height,d.contentInnerWidth=k.width}},g=Ie(p,120);let N=null;return(0,t.onMounted)(()=>{a||i||(requestAnimationFrame(p),window.ResizeObserver&&c.value&&(N=new window.ResizeObserver(g),N.observe(c.value)))}),(0,t.onUnmounted)(()=>{a||i||N&&(N.disconnect(),N=null)}),()=>i?l.default?.():(0,t.h)(o.tag??"view",{...r,ref:c,class:s.value,style:h.value},l)}}}var{componentName:cu,create:du,scope:fu}=J("content"),mu=du(uu(cu,fu)),so=mu,kt="GroupStateKey",gi=Symbol.for("GroupScopeKey");function Kn(){return(0,t.inject)(gi,!1)}function Un(e=!0){(0,t.provide)(gi,e)}function pu(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Ve(l)||(e[o]=l)})}function hu(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};pu(o,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(o),passport:0,order:{index:0}});return e.set(kt,l),l}function wl(e,n,o=-1,l=-1,r=!1,i,a,u){const s=e.get(kt);if(!s)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),l===-1&&(l=d.gutter??0),i||(i=d.minItemWidth??-1),a||(a=d.maxItemWidth??-1);const h=ue(i),c=ue(a);u||(u=d.type??"grid");const p=()=>{const g=n===""||n===-1,N=ue(n);let k=de(o);const w=ue(l);if(!g){let m=(N-(k-1)*w)/k;for(;c!==-1&&m>c;)k++,m=(N-(k-1)*w)/k;for(;h!==-1&&k>1&&m<h;)k--,m=(N-(k-1)*w)/k}let b=!1;const f=s.layout;f.value.width=n,f.value.column!==k&&(f.value.column=k,b=!0),f.value.gutter!==w&&(f.value.gutter=w,b=!0),f.value.type!==u&&(f.value.type=u,b=!0),b&&(0,t.triggerRef)(f)};if(r)p();else{const g=++s.passport;setTimeout(()=>{g===s.passport&&p()},50)}}function Hn(e,n=!1){let o;return n?o=e.getForParent(kt):o=e.get(kt),o.layout}function _n(e,n=!1){let o;return n?o=e.getForParent(kt):o=e.get(kt),o.order}function er(e,n=1){if(n==="stretch")return-1;const o=de(n);return o===-1?100:100*o/e}function jn(e,n,o=1,l=0,r){const i={};let a=0;r?a=ue(r):a=er(n.column,o),a>0&&(i.width=`${a}%`);const u=er(n.column,l);u>0&&(i["margin-left"]=`${u}%`);const s=ue(n.gutter)/2;return s>0&&(i["padding-left"]=`${s}px`,i["padding-right"]=`${s}px`),i}function Wn(e,n,o=1,l=0){if(o==="stretch"){const s=e.index%n.column,d=s+(n.column-s);return e.index=e.index+(d-s),{"grid-column":`${s+1} / -1`}}let r=de(o);if(r===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const i=de(l)%n.column;let a=(e.index+i)%n.column,u=a+r;return u>n.column?(a=0,u=a+r,e.index=e.index+(n.column-a)+r):e.index=e.index+i+r,i>0?{"grid-column":`${a+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}var yi=Symbol("RollingStateKey");function vu(e){(0,t.provide)(yi,e)}function gu(){return(0,t.inject)(yi,null)}function Ol(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(o.getPropertyValue("padding-top")),r=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function yu(e){let n=Ol(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=Ol(o),document.body.removeChild(o)}return n}function bu(e,n,o){const l=typeof e=="number"?e:parseInt(e),r=typeof n=="number"?n:parseInt(n),i=typeof o=="number"?o:parseInt(o);if(l<=0)return"1fr";const a=(l-(r-1)*i)/r;return a>0?`${a}px`:"1fr"}function bi(e){const n=[];return e.forEach(o=>{o.type===t.Fragment&&Array.isArray(o.children)?n.push(...bi(o.children)):n.push(o)}),n}function Su(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Yn(e){function n(){return bi(e?.()??[]).filter(Su)}return{getChildren:n}}var ku={...ge,...mi,...pi};function wu(e,n,o){return{props:ku,emits:["update:collapse","header-click"],setup(l,r){const{domain:i,exposeApi:a}=eo({props:l,ignorePropKeys:hi,context:r},l.prop??l.name),u=hu(i,{type:l.type}),s=Kn();Un(!0);const d=l.rollingDisplay?gu():null,h=(0,t.ref)(null),c=(0,t.computed)(()=>l.rollingDisplay?d&&!d.disabled:!1),p=(0,t.computed)(()=>s&&i?Hn(i,!0).value:null),g=(X,ne=!1)=>{i.componentPublicExposed&&typeof i.componentPublicExposed.setNameValidateRules=="function"&&i.componentPublicExposed.setNameValidateRules(X,!0,ne)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([X,ne],[K,_])=>{if(X&&K){const $=(0,t.toRaw)(K),E=(0,t.toRaw)(X),L=E?Reflect.ownKeys(E):[];($?Reflect.ownKeys($):[]).forEach(Z=>{L.includes(Z)||(E[Z]=[])}),g(E)}if(ne&&_){const $=(0,t.toRaw)(_),E=(0,t.toRaw)(ne),L=E?Reflect.ownKeys(E):[];($?Reflect.ownKeys($):[]).forEach(Z=>{L.includes(Z)||(E[Z]=[])}),g(E,!0)}},{deep:!0});const N=e,k=(0,t.computed)(()=>{const X={};if(X.height=M.value,l.width)l.width!=="auto"&&(X.width=he(l.width));else{const ne=s?_n(i,!0):null;if(p.value&&ne){if(p.value.type==="grid"){const K=Wn(ne,p.value,l.span,l.offset);Object.assign(X,K)}else if(p.value.type==="flow"){const K=jn(ne,p.value,l.span,l.offset,l.width);Object.assign(X,K)}}}return X}),w=(0,t.computed)(()=>{const X=u.layout.value.type;return X==="grid"||X==="flow"?{[`${N}--${X}`]:!0,[`${N}--${X}-justify-${l.justify}`]:!0,[`${N}--${X}-align-${l.align}`]:!0,[`${N}--gutter`]:!0}:{[`${N}--${X}`]:!0,[`${N}--gutter`]:!0}}),b=(0,t.computed)(()=>{if(u.layout.value.type==="grid"){let X="";if(l.columnWidth)X=`repeat(auto-fill, ${l.columnWidth})`;else{const ne=bu(V.value,u.layout.value.column,u.layout.value.gutter);X=`repeat(${u.layout.value.column}, ${ne})`}return{"column-gap":`${u.layout.value.gutter}px`,"grid-template-columns":X}}}),f=(0,t.toRef)(l,"gutter"),m=(0,t.toRef)(l,"column"),S=(0,t.computed)(()=>s||c.value?!0:Se(l.isWrap)),B=[],v=X=>{B.push(X)},y=()=>{let X=B.length;B.splice(0,X)},V=(0,t.ref)(-1),T=X=>{const ne=Fn(X).width;ne>0&&ne!==V.value&&(V.value=ne)};wl(i,V.value,m.value,f.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([V,m,f],([X,ne,K])=>{u.order.index=0,wl(i,X,ne,K,!1,l.minItemWidth,l.maxItemWidth,l.type)});const A=(0,t.computed)(()=>P.value?l.expandText??"":l.collapseText??""),C=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),q=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),H=(0,t.ref)(),x=(0,t.ref)(),M=(0,t.computed)(()=>R.value||he(l.height)||""),P=(0,t.ref)(!1),R=(0,t.ref)(""),z=(0,t.ref)(!1);let W=-1;const I=(X,ne=!0)=>{const K=H.value;if(K&&P.value!==X){if(W=W<=0?yu(K):W,z.value=!0,ne)if(K.style["will-change"]="height",K.ontransitionend=function(){K.ontransitionend=null,this.style["will-change"]="auto",X||(R.value="",z.value=!1)},X){let _=0;l.collapseHeight?_=l.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(_=x.value.offsetHeight),R.value=`${W}px`,(0,t.nextTick)(()=>{R.value=`${_}px`})}else R.value=`${W}px`;else if(X){let _=0;l.collapseHeight?_=l.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(_=x.value.offsetHeight),R.value=`${_}px`}else z.value=!1,R.value=`${W}px`;P.value=X,r.emit("update:collapse",X)}};(0,t.watch)(()=>l.collapse,X=>{I(X)});const Q=X=>{r.emit("header-click",X)},ee=()=>{oe()},oe=X=>{X=X??!P.value,I(X)};a({toggleCollapse:oe,doLayout:()=>{B[0]&&(T(B[0]),wl(i,V.value,m.value,f.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let G=null,F=!0;const te=X=>{if(l.rules&&g((0,t.toRaw)(l.rules)),l.pureDataRules&&g((0,t.toRaw)(l.pureDataRules),!0),!!et&&(X&&I(Se(l.collapse),!1),l.autoLayout&&Array.isArray(B)&&B.length>0)){const ne=B[0];if(T(ne),window.ResizeObserver){const K=Ie(()=>T(ne),120);G=new window.ResizeObserver(K),G.observe(ne)}}},U=()=>{G?.disconnect(),G=null},D=!c.value||d?.acquire();D&&(h.value=c.value?!0:null),(0,t.onMounted)(()=>{if(D&&(te(F),F=!1),c.value&&d){let X=null,ne=d.initialHeight;d.observe(H.value,K=>{if(K!==h.value)if(K)h.value=!0,P.value||(R.value=""),X=setTimeout(()=>{X=null,h.value!==!1&&(te(F),F=!1)},100);else{if(X!==null&&clearTimeout(X),h.value=!1,!P.value)if(F)R.value=d.initialHeight;else{let _=Ol(H.value);_<=0?R.value=ne:(R.value=`${_}px`,ne=R.value)}F||U()}})}}),(0,t.onUnmounted)(()=>{G?.disconnect(),d&&d.unobserve(H.value)});const O=(X="right")=>{const ne=[];if(A.value){const $=(0,t.h)("span",{class:C.value},[A.value]);ne.push($)}const K={class:q.value},_=(0,t.h)(l.collapseIcon??o,K);return ne.push(_),ne.length>0?(0,t.h)("div",{class:{[`${N}__header-collapse`]:!0,[`is-${X}`]:!0},onClick:ee},ne):null},j=(X,ne,K,_)=>{const $={...w.value};if(ne===0&&($[`${N}__first`]=!0),K>=_-1&&($[`${N}__last`]=!0),S.value===!1){const E=r.attrs.class;E&&($[`${E}`]=!0)}return(0,t.h)("div",{ref:v,key:`${ne}`,class:$,style:b.value},X)};return()=>{const X=l.prop??l.name;if(c.value&&h.value!==!0)return(0,t.h)(l.tag||"div",{ref:H,prop:X,class:{[`${N}`]:!0,"is-collapse":z.value},style:k.value},[]);u.order.index=0;const ne=[];let K=0;if(r.slots.header){const L=(0,t.h)("div",{key:`${K++}`,ref:x,class:{[`${N}__header`]:!0,[`${N}__first`]:!0},onClick:Q},[r.slots.header()]);ne.push(L)}else{const L=[],Z=l.collapsePosition==="left";if(Z&&l.showCollapse){const le=O("left");le&&L.push(le)}if(l.title||r.slots.title){if(l.showMark){const le={class:{[`${N}__header-mark`]:!0}};l.markColor&&(le.style={background:l.markColor});const ie=(0,t.h)("div",le);L.push(ie)}if(r.slots.title){const le=(0,t.h)("div",{class:{[`${N}__header-title`]:!0}},[r.slots.title()]);L.push(le)}else if(l.title){const le=(0,t.h)("div",{class:{[`${N}__header-title`]:!0}},[l.title]);L.push(le)}}if(r.slots.toolbar&&L.push(r.slots.toolbar()),!Z&&l.showCollapse){const le=O("right");le&&L.push(le)}if(L.length>0){const le=(0,t.h)("div",{key:`${K++}`,ref:x,class:{[`${N}__header`]:!0,[`${N}__first`]:!0},onClick:Q},L);ne.push(le)}}y();const{getChildren:_}=Yn(r.slots.default),$=_(),E=u.layout.value.type;if(E==="grid"){const L=j($,K++,0,$.length);ne.push(L)}else if(E==="flow"){const L=j($,K++,0,$.length);ne.push(L)}else for(let L=0;L<$.length;L++){const Z=$[L],le=j([Z],K++,L,$.length);ne.push(le)}return S.value?(0,t.h)(l.tag||"div",{ref:H,prop:X,class:{[`${N}`]:!0,"is-collapse":z.value},style:k.value},[ne]):ne}}}}var{componentName:Cu,create:Nu,scope:Au}=J("group"),Bu=Nu(wu(Cu,Au,ae.RectUp)),uo=Bu;function Tu(e){return e===window}var Vu=/matrix\((.+)\)/,co=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(Tu(n))return{x:0,y:0};let o=0,l=0,r=n;for(;r!==null;)o+=r.offsetLeft,l+=r.offsetTop,r=r.offsetParent;let i=0,a=0,u=0,s=0;for(r=n;r!==document;){a+=r.scrollTop,i+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const h=Vu.exec(d);if(h){let c=h[1].split(/\s*,\s*/);c.length==6&&(u+=Number(c[4]),s+=Number(c[5]))}}r=r.parentNode}return o-=i,l-=a,o+=u,l+=s,{x:o,y:l}},xu=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{}})}},Eu=class{monitorRegister=new WeakMap;watch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new xu,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(n),o=o.parentNode}}unwatch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(n),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}},Ut=new Eu,Si={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:$u,create:Du}=J("price"),Iu=Du({props:{...Si},setup(e){const n=(0,t.computed)(()=>({[$u]:!0})),o=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>ke(e.price)==0?"":$n(e.price,e.decimalLength,!0,de(e.digits),e.separator));return{classes:n,showSymbol:o,intText:(0,t.computed)(()=>{let r=l.value;if(r.length==0)return"";let i=r.indexOf(".");return r.substring(0,i)}),decimalText:(0,t.computed)(()=>{let r=l.value;if(r.length==0)return"";let i=r.indexOf(".");return r.substring(i+1)})}}}),re=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o},qu=["innerHTML"],Pu=["innerHTML"];function Mu(e,n,o,l,r,i){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,qu)):(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,Pu)):(0,t.createCommentVNode)("",!0)],2)}var Xn=re(Iu,[["render",Mu]]),{componentName:Cl,create:zu}=J("hint-text"),Ru=zu({components:{Price:Xn},props:{...Si,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}),r=(0,t.ref)(0),i=(0,t.ref)(0),a=(0,t.ref)(e.placement),u=(0,t.ref)(!1),s=(0,t.ref)(null),d=(C,q,H,x,M,P)=>{const R=document.documentElement.clientWidth||document.body.clientWidth,z=document.documentElement.clientHeight||document.body.clientHeight,W=C.split("-");let I=[];W[0]==="top"?I=["top","bottom","right","left"]:W[0]==="bottom"?I=["bottom","top","right","left"]:W[0]==="left"?I=["left","top","bottom","right"]:W[0]==="right"&&(I=["right","top","bottom","left"]);const Q={top:null,right:null,bottom:null,left:null},ee=[];for(let oe=0;oe<I.length;oe++){const Y=I[oe];if(ee[0]=Y,W[1]&&(ee[1]=W[1]),Y==="top"){const G=q.y-P-e.arrowSize-e.offset;if(G>=0){Q.top=G;let F=0;W[1]==="start"?F=q.x:W[1]==="end"?F=q.x+H-M:F=q.x+H/2-M/2;const te=R-F-M;te<0?(F+=te,c.value=-te):c.value=0,Q.left=F<0?0:F;break}}else if(Y==="bottom"){const G=q.y+x+e.arrowSize+e.offset;if(G+P<=z){Q.top=G;let F=0;W[1]==="start"?F=q.x:W[1]==="end"?F=q.x+H-M:F=q.x+H/2-M/2;const te=R-F-M;te<0?(F+=te,c.value=-te):c.value=0,Q.left=F<0?0:F;break}}else if(Y==="left"){const G=q.x-M-e.arrowSize-e.offset;if(G>=0){Q.left=G;let F=0;W[1]==="start"?F=q.y:W[1]==="end"?F=q.y+x-P:F=q.y+x/2-P/2,Q.top=F<0?0:F;break}}else if(Y==="right"){const G=q.x+H+e.arrowSize+e.offset;if(G+M<=R){Q.left=G;let F=0;W[1]==="start"?F=q.y:W[1]==="end"?F=q.y+x-P:F=q.y+x/2-P/2,Q.top=F<0?0:F;break}}}return{bestPlacement:ee.join("-"),bestInsetRect:Q}},h=(C,q,H=10)=>{if(!et||q===!1||!C)return;l.value=co(e.reference),r.value=e.reference.offsetWidth,i.value=e.reference.offsetHeight;const x=s.value.offsetHeight,M=s.value.offsetWidth,{bestPlacement:P,bestInsetRect:R}=d(e.placement,l.value,r.value,i.value,M,x);a.value=P,o.value=R,u.value=!0},c=(0,t.ref)(0),p=Ie(()=>{h(e.message,e.visible)},10),g=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,C=>{g.value=C});const N=(0,t.computed)(()=>g.value&&k.value),k=(0,t.ref)(!0),w=Ie(C=>{const q=C[0];q&&(k.value=q.isIntersecting)},10),b=new IntersectionObserver(w);(0,t.watch)([()=>e.message,()=>e.visible],([C,q])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{h(e.message,e.visible)},0),Ut.watch(e.reference,p),b.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Ut.unwatch(e.reference,p),b.unobserve(e.reference),b.disconnect()});const f=(0,t.computed)(()=>{const C={[Cl]:!0};return a.value.startsWith("top")?C["is-top"]=!0:a.value.startsWith("right")?C["is-right"]=!0:a.value.startsWith("bottom")?C["is-bottom"]=!0:a.value.startsWith("right")&&(C["is-right"]=!0),e.size==="small"?C["is-small"]=!0:e.size==="large"&&(C["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(C[`${e.customClass}`]=!0),C}),m=(0,t.computed)(()=>{const C={};return o.value.top!==null&&(C.top=`${o.value.top}px`),o.value.right!==null&&(C.right=`${o.value.right}px`),o.value.bottom!==null&&(C.bottom=`${o.value.bottom}px`),o.value.left!==null&&(C.left=`${o.value.left}px`),e.autoFit&&(C["min-width"]=`${r.value}px`),C["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,u.value&&(C.opacity="1"),e.transition||(C.transition="none"),e.zIndex&&(C["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(C,e.customStyle),C}),S=(0,t.computed)(()=>{const C=[`${Cl}__content`];return e.customTextClass&&C.push(e.customTextClass),C}),B=(0,t.computed)(()=>{const C={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(C,e.customTextStyle),C}),v=(0,t.computed)(()=>({[`${Cl}__arrow`]:!0})),y=(0,t.computed)(()=>{const C={};return e.showArrow?(C.width=`${e.arrowSize}px`,C.height=`${e.arrowSize}px`,a.value==="top"?(C.left="50%",C.bottom=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):a.value==="top-start"?(C.left=`${e.arrowOffset+c.value}px`,C.bottom=`-${e.arrowSize}px`):a.value==="top-end"?(C.right=`${e.arrowOffset-c.value}px`,C.bottom=`-${e.arrowSize}px`):a.value==="right"?(C.left=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):a.value==="right-start"?(C.left=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):a.value==="right-end"?(C.left=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`):a.value==="bottom"?(C.left="50%",C.top=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):a.value==="bottom-start"?(C.left=`${e.arrowOffset+c.value}px`,C.top=`-${e.arrowSize}px`):a.value==="bottom-end"?(C.right=`${e.arrowOffset-c.value}px`,C.top=`-${e.arrowSize}px`):a.value==="left"?(C.right=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):a.value==="left-start"?(C.right=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):a.value==="left-end"&&(C.right=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`),C):{display:"none"}}),V=(0,t.computed)(()=>N.value&&e.closeOnClick),T=(0,t.computed)(()=>{const C={};return e.zIndex&&(C["z-index"]=`${e.zIndex}`),C});return{show:N,tipRef:s,classes:f,styles:m,textClasses:S,textStyles:B,arrowClasses:v,arrowStyles:y,overlayShow:V,overlayStyle:T,onClickOverlay:()=>{g.value=!1,n.emit("update:visible",!1)}}}}),Lu=["innerHTML"];function Fu(e,n,o,l,r,i){const a=(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]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},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)(a,{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,Lu))],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 ki=re(Ru,[["render",Fu]]),Qn=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},Kl={},Ou=new Qn,vt=new Map,Tn=e=>{if(e){const n=document.getElementById(e);vt.delete(e),n&&((0,t.render)(null,n),n.parentNode?.removeChild(n))}else{for(const n of vt.keys()){const o=document.getElementById(n);o&&((0,t.render)(null,o),o.parentNode?.removeChild(o))}vt.clear()}},Ku=e=>{e.unmount=Tn;const n=document.getElementById(e.id);if(n){const o=vt.get(e.id);o?e={...Kl,...o,...e}:e={...Kl,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(ki,e),n)}return e.id},Uu=e=>{e.unmount=Tn;let n=e.id??`hinttext_${Ou.get()}`;e={...Kl,...e},e.id=n,vt.set(n,e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(ki,e),o),document.body.appendChild(o),n},Hu=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),Vt={show(e,n,o={},l=!0){if(!Hu(n))return;const r=o.id;return r&&vt.has(r)?Ku({...o,message:n,reference:e}):(l&&Tn(),Uu({...o,message:n,reference:e}))},hide(e){Tn(e)},install(e){e.config.globalProperties.$hintText=Vt}};function _u(e,n,o,l=!1){return{inheritAttrs:!0,props:{...ge,...be},emits:["appear","disappear"],setup(r,i){const a=r.prop??i.attrs.name,u=(0,t.ref)(),{exposeApi:s}=Be({componentName:e,validate:!1,get props(){return r},context:i,get templateRefProxy(){return u.value}},a),d=nt(),h=Kn();Un(!1);const c=(0,t.computed)(()=>h&&d?Hn(d,!1).value:null),p=e,g=(0,t.ref)(null),N=(0,t.computed)(()=>{const E={[p]:!0,[`${p}__gutter`]:c.value&&c.value.type!=="flow",[`${p}__stretch`]:r.span==="stretch",[`${p}__input--border`]:Se(r.hasBorder)};if(E[r.errorMarkClass]=!!z.value,E[r.warnMarkClass]=!!P.value,E[r.infoMarkClass]=!!x.value,typeof g.value=="function"){const L=g.value(a);E[L]=!0}else if(typeof g.value=="string"){const L=g.value;E[L]=!0}return E}),k=(0,t.ref)(null),w=(0,t.computed)(()=>{const E={};if(r.width)r.width!=="auto"&&(E.width=he(r.width));else{const L=h&&d?_n(d,!1):null;if(c.value&&L){if(c.value.type==="grid"){const Z=Wn(L,c.value,r.span,r.offset);Object.assign(E,Z)}else if(c.value.type==="flow"){const Z=jn(L,c.value,r.span,r.offset,r.width);Object.assign(E,Z)}}}if(typeof k.value=="function"){const L=k.value(a);L&&Object.assign(E,L)}else if(k.value&&typeof k.value=="object"){const L=k.value;Object.assign(E,L)}return E}),b=(0,t.ref)(null),f=(0,t.computed)({get:()=>b.value??Se(r.isRequired),set:E=>{b.value=E}}),m=()=>typeof r.label=="string"&&r.label.length>0||typeof i.slots.label=="function",S=Ae((0,t.toRef)(r,"labelPosition"),"labelPosition",Fl.Near),B=(0,t.computed)(()=>S&&S.value==="top"?"top":S&&S.value==="right"?"right":"left"),v=(0,t.computed)(()=>({[`${p}__main`]:!0,[`${p}__main--${B.value}`]:!0})),y=(0,t.computed)(()=>({label:!0,[`label--${B.value}`]:!0})),V=Ae((0,t.toRef)(r,"labelWidth"),"labelWidth",Fl.Near),T=(0,t.computed)(()=>V&&V.value?{width:he(V.value)}:{}),A=(0,t.computed)(()=>({"label--string":!0,"label--required":f.value})),C=(0,t.computed)(()=>({content:!0,[r.contentClass]:!0})),q=(0,t.computed)(()=>({...r.contentStyle})),H=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});s({setRequired(E){f.value=E},setErrorTip(E){H.errorTip=E},setErrorIcon(E){H.errorIcon=E},setWarnTip(E){H.warnTip=E},setWarnIcon(E){H.warnIcon=E},setInfoTip(E){H.infoTip=E},setInfoIcon(E){H.infoIcon=E},setCustomClassName(E){g.value=E},setCustomStyle(E){k.value=E}});const x=(0,t.computed)(()=>r.infoTip||H.infoTip),M=(0,t.computed)(()=>r.infoIcon||H.infoIcon),P=(0,t.computed)(()=>r.warnTip||H.warnTip),R=(0,t.computed)(()=>r.warnIcon||H.warnIcon),z=(0,t.computed)(()=>r.errorTip||H.errorTip),W=(0,t.computed)(()=>r.errorIcon||H.errorIcon),I=(0,t.computed)(()=>z.value?"error":P.value?"warn":x.value?"info":""),Q=()=>I.value.length>0,ee=(0,t.computed)(()=>I.value==="error"?z.value:I.value==="warn"?P.value:I.value==="info"?x.value:""),oe=(0,t.computed)(()=>I.value==="error"?W.value:I.value==="warn"?R.value:I.value==="info"?M.value:null),Y=(0,t.computed)(()=>{const E={[`${p}__tip`]:!0,[`${p}__tip--${I.value}`]:!0,[`${p}--animate`]:!0};return I.value==="error"&&r.errorClass?E[`${r.errorClass}`]=!0:I.value==="warn"&&r.warnClass?E[`${r.warnClass}`]=!0:I.value==="info"&&r.infoClass&&(E[`${r.infoClass}`]=!0),E}),G=(0,t.computed)(()=>{const E={};return S&&S.value==="top"||!m()?E["padding-left"]="0px":V&&V.value&&(E["padding-left"]=he(V.value)),E}),F=(0,t.ref)();let te="";(0,t.watch)([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([E,L,Z,le])=>{F.value&&(E&&!me(L)?te?o.show(F.value,L,{...le,id:te,type:Z},!0):te=o.show(F.value,L,{...le,type:Z},!0):o.hide(te))});let U=null;const D=()=>{U||!F.value||(U=new IntersectionObserver(E=>{let L=!1;for(let Z of E)if(Z.intersectionRatio>0){L=!0,L&&i.emit("appear",Z);break}L||i.emit("disappear")}),U.observe(F.value))},O=()=>{!U||!F.value||(U.unobserve(F.value),U=null)};(0,t.watch)(()=>Se(r.appearListen),E=>{E?D():O()}),(0,t.onMounted)(()=>{Se(r.appearListen)&&D()}),(0,t.onUnmounted)(O);const j=()=>{if(!m())return null;const E=[],L=i.slots?.label?.()??r.label,Z=(0,t.h)("div",{class:A.value},[L]);if(E.push(Z),i.slots.fixedPreTip){const le=i.slots.fixedPreTip();E.push(le)}return(0,t.h)("div",{class:y.value,style:T.value},E)},X=()=>{const E=[];if(i.slots.prepend){const L=i.slots.prepend();E.push(L)}if(i.slots.default){const L=i.slots.default();E.push(L)}if(i.slots.append){const L=i.slots.append();E.push(L)}if(i.slots.fixedTip){const L=(0,t.h)("div",{class:[`${p}__fixed-tip`]},[i.slots.fixedTip()]);E.push(L)}return(0,t.h)("div",{ref:F,class:C.value,style:q.value},E)},ne=()=>{const E=oe.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},K=()=>{const E=ee.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},_=()=>{if(!Q())return null;const E=[],L=ne();L&&E.push(L);const Z=K();return Z&&E.push(Z),(0,t.h)("div",{class:Y.value,style:G.value},E)},$=()=>i.slots?.hide?.()??null;return()=>{const E=[],L=[],Z=j();Z&&L.push(Z);const le=X();le&&L.push(le);const ie=(0,t.h)("div",{class:v.value},L);E.push(ie);const ce=_();ce&&E.push(ce);const fe=$();return fe&&E.push(fe),(0,t.h)("div",{class:N.value,style:w.value,prop:r.prop,ref:u},E)}}}}var{componentName:ju,create:Wu,scope:Yu}=J("item"),Xu=Wu(_u(ju,Yu,Vt,!1)),ln=Xu,wi={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},wrap:{type:[String],required:!1,default:"nowrap"}};function Qu(e,n){return{props:wi,setup(o,l){const r=e,i=(0,t.computed)(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),a=nt(),u=Kn();Un(!1);const s=(0,t.computed)(()=>{const d={};if(o.width)o.width!=="auto"&&(d.width=he(o.width));else if(u&&a){const h=Hn(a,!1),c=_n(a,!1);if(h.value&&c){if(h.value.type==="grid"){const p=Wn(c,h.value,o.span,o.offset);Object.assign(d,p)}else if(h.value.type==="flow"){const p=jn(c,h.value,o.span,o.offset,o.width);Object.assign(d,p)}}}return o.gutter&&(d.gap=he(o.gutter)),o.wrap&&(d["flex-wrap"]=o.wrap),d});return()=>{const d=[];if(l.slots.default){const h=l.slots.default();if(o.divide)for(let c=0;c<h.length;c++){if(c>0){const p=(0,t.h)("div",{class:{[`${r}__divide`]:!0}});d.push(p)}d.push(h[c])}else Reflect.apply([].push,d,h)}return(0,t.h)("div",{class:i.value,style:s.value},d)}}}}var{componentName:Gu,create:Zu,scope:Ju}=J("row-item"),ec=Zu(Qu(Gu,Ju)),Gn=ec,tc=(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 nc(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 r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(r)},500)}var lc={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 oc(e,n,o,l=!1){return{props:{...lc},emits:["click"],setup(r,i){const a=(0,t.ref)(null),u=(0,t.computed)(()=>{const m={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(m[`${e}--${r.type??"default"}`]=!0),r.size&&(m[`${e}--${r.size}`]=!0),m}),s=(0,t.computed)(()=>{const m={},S=r.textColor??r.color;return S&&(m.color=S),m}),d=(m,S)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const v=r.highlightFilter;m.indexOf(v)!==-1&&(S.innerHTML=m.replace(new RegExp(v,"g"),`<span>${v}</span>`),S.class["is-highlight"]=!0,B=(0,t.h)(r.tag,S))}else if(typeof r.highlightFilter=="function"){const v=r.highlightFilter(m);v&&(S.innerHTML=v,S.class["is-highlight"]=!0,B=(0,t.h)(r.tag,S))}return B},h=m=>{i.emit("click",m)};let c="";const p=()=>{const m=a.value;if(!m)return;const S=m.clientWidth;nc(m,B=>{const v=m.innerHTML??"";me(v)||B<S||(c?o?.show(m,v,{type:"text",id:c,showArrow:r.showArrow},!0):c=o?.show(m,v,{type:"text",showArrow:r.showArrow},!0)??"")})},g=()=>{c&&o?.hide(c)};let N=null;const k=m=>{N||(N=setTimeout(()=>{p(),N=null},r.showAfter??0))},w=m=>{N&&(clearTimeout(N),N=null),setTimeout(()=>{g()},r.hideAfter??0)},b=()=>{const m=a.value;m&&(m.addEventListener("mouseover",k),m.addEventListener("mouseleave",w))},f=()=>{const m=a.value;m&&(m.removeEventListener("mouseover",k),m.removeEventListener("mouseleave",w))};return(0,t.onMounted)(()=>{!Se(r.showOverflowTooltip)||!o||b()}),(0,t.onBeforeUnmount)(()=>{!Se(r.showOverflowTooltip)||!o||f()}),()=>{const m={onClick:h,class:u.value,style:s.value,ref:a};let S=null;if(Se(r.numberFormat)&&typeof i.slots.default=="function"){const v=i.slots.default();if(Array.isArray(v)&&v.length===1){const y=v[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const V=de(r.digits),T=de(r.decimalLength),A=Se(r.autoPadding);let C=`${v[0].children}`,q=C.split("").reverse().join("");q=$n(q,T,A,V,r.separator),C=q.split("").reverse().join(""),r.highlightFilter!==void 0&&(S=d(C,m)),S||(m.innerHTML=C,S=(0,t.h)(r.tag,m))}}}else{if(r.highlightFilter!==void 0&&typeof i.slots.default=="function"){const v=i.slots.default();if(Array.isArray(v)&&v.length===1){const y=v[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const V=`${v[0].children}`;S=d(V,m),S||(m.innerHTML=V,S=(0,t.h)(r.tag,m))}}}S||(S=(0,t.h)(r.tag,m,{default:i.slots.default}))}if(!r.mark&&!r.icon&&!i.slots.mark)return S;const B=[];if(i.slots.mark){const v={[`${e}__mark-wrap`]:!0};r.type&&(v[`${e}__mark-wrap--${r.type}`]=!0);const y={},V=r.color;V&&(y.color=V);const T=(0,t.h)("view",{class:v,style:y},{default:i.slots.mark});B.push(T)}else{const v={[`${e}__mark`]:!0};r.type&&(v[`${e}__mark--${r.type??"default"}`]=!0);const y={},V=r.color;V&&(y["background-color"]=V);const T=(0,t.h)("view",{class:v,style:y});B.push(T)}if(r.divide){const v=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});B.push(v)}return B.push(S),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}},B)}}}}var{componentName:ac,create:rc,scope:ic}=J("text"),sc=rc(oc(ac,ic,Vt,!1)),wt=sc,uc={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 cc(e,n,o=!1){return{props:{...uc},emits:["update:visible"],setup(l,{emit:r,slots:i,expose:a}){const u=(0,t.ref)({top:null,right:null,bottom:null,left:null}),s=(0,t.ref)(0),d=(0,t.ref)(0),h=(0,t.ref)(0),c=(0,t.ref)(0),p=(0,t.ref)(l.placement),g=(0,t.ref)(!1),N=(0,t.ref)(!1),k=(0,t.ref)(null),w=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,b=(I,Q,ee,oe,Y,G,F,te=!0)=>{const U=document.documentElement.clientWidth||document.body.clientWidth,D=document.documentElement.clientHeight||document.body.clientHeight,O=I.split("-");let j=[];te?O[0]==="top"?j=["top","bottom","right","left"]:O[0]==="bottom"?j=["bottom","top","right","left"]:O[0]==="left"?j=["left","top","bottom","right"]:O[0]==="right"&&(j=["right","top","bottom","left"]):j=[I[0]];const X={top:null,right:null,bottom:null,left:null},ne=[];for(let K=0;K<j.length;K++){const _=j[K];if(ne[0]=_,O[1]&&(ne[1]=O[1]),_==="top"){const $=ee-F-l.arrowSize/2-l.offset;if($>=0){X.top=$;let E=0;O[1]==="start"?E=Q:O[1]==="end"?E=Q+oe-G:E=Q+oe/2-G/2;const L=U-E-G;L<0?(E+=L,m.value=-L):m.value=0,X.left=E<0?0:E;break}}else if(_==="bottom"){const $=ee+Y+l.arrowSize/2+l.offset;if($+F<=D){X.top=$;let E=0;O[1]==="start"?E=Q:O[1]==="end"?E=Q+oe-G:E=Q+oe/2-G/2;const L=U-E-G;L<0?(E+=L,m.value=-L):m.value=0,X.left=E<0?0:E;break}}else if(_==="left"){const $=Q-G-l.arrowSize/2-l.offset;if($>=0){X.left=$;let E=0;O[1]==="start"?E=ee:O[1]==="end"?E=ee+Y-F:E=ee+Y/2-F/2,X.top=E<0?0:E;break}}else if(_==="right"){const $=Q+oe+l.arrowSize/2+l.offset;if($+G<=U){X.left=$;let E=0;O[1]==="start"?E=ee:O[1]==="end"?E=ee+Y-F:E=ee+Y/2-F/2,X.top=E<0?0:E;break}}}return{bestPlacement:ne.join("-"),bestInsetRect:X}},f=()=>{const I=l.visible,Q=l.autoFit;if(!et||I===!1)return;if(l.reference){const F=w(),te=co(F);s.value=te.x,d.value=te.y,h.value=F.offsetWidth,c.value=F.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,d.value=l.referenceInset.top,h.value=l.referenceInset.right-l.referenceInset.left,c.value=l.referenceInset.bottom-l.referenceInset.top);const ee=k.value.offsetWidth,oe=k.value.offsetHeight,{bestPlacement:Y,bestInsetRect:G}=b(l.placement,s.value,d.value,h.value,c.value,ee,oe,Q);p.value=Y,u.value=G},m=(0,t.ref)(0),S=Ie(()=>{f()},10),B=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([I])=>{B.value=I,I?(g.value=I,setTimeout(()=>{f(),N.value=!0},0)):N.value=!1});const v=(0,t.computed)(()=>B.value&&y.value),y=(0,t.ref)(!0),V=Ie(I=>{const Q=I[0];Q&&(y.value=Q.isIntersecting)},10),T=new IntersectionObserver(V);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([I,Q],[ee,oe])=>{!I&&!Q||(setTimeout(()=>{f()},0),l.autoFit&&(ee&&(Ut.unwatch(ee,S),T.unobserve(ee)),I&&(Ut.watch(I,S),T.observe(I))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Ut.unwatch(l.reference,S),T.unobserve(l.reference),T.disconnect())});const A=(0,t.computed)(()=>{const I={[e]:!0};return p.value.startsWith("top")?I["is-top"]=!0:p.value.startsWith("right")?I["is-right"]=!0:p.value.startsWith("bottom")?I["is-bottom"]=!0:p.value.startsWith("left")&&(I["is-left"]=!0),I[`is-${l.effect}`]=!0,!N.value&&v.value&&(I["is-opacity"]=!0),N.value&&v.value&&(I["is-show"]=!0),v.value||(I["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(I[`${l.customClass}`]=!0),I}),C=(0,t.computed)(()=>{const I={};return u.value.top!==null&&(I.top=`${u.value.top}px`),u.value.right!==null&&(I.right=`${u.value.right}px`),u.value.bottom!==null&&(I.bottom=`${u.value.bottom}px`),u.value.left!==null&&(I.left=`${u.value.left}px`),l.width&&(I.width=l.width),l.zIndex&&(I["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(I,l.customStyle),I}),q=()=>{B.value=!1,r("update:visible",!1)},H=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:q}):null,x=()=>{let I=null;return i.title?I=(0,t.h)("div",{class:`${e}__title`},{default:i.title}):l.title&&(I=(0,t.h)("div",{class:`${e}__title`},[l.title])),I},M=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),P=(0,t.computed)(()=>{const I={};return l.showArrow?(I.width=`${l.arrowSize}px`,I.height=`${l.arrowSize}px`,p.value==="top"?(I.left="50%",I.bottom="0",I.transform="translate(-50%, 50%)"):p.value==="top-start"?(I.left=`${l.arrowOffset+m.value}px`,I.bottom="0",I.transform="translate(-50%, 50%)"):p.value==="top-end"?(I.right=`${l.arrowOffset-m.value}px`,I.bottom="0",I.transform="translate(-50%, 50%)"):p.value==="right"?(I.left="0",I.top="50%",I.transform="translate(-50%, -50%)"):p.value==="right-start"?(I.left="0",I.top=`${l.arrowOffset}px`,I.transform="translate(-50%, 50%)"):p.value==="right-end"?(I.left="0",I.bottom=`-${l.arrowOffset}px`,I.transform="translate(-50%, 50%)"):p.value==="bottom"?(I.left="50%",I.top="0",I.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(I.left=`${l.arrowOffset+m.value}px`,I.top="0",I.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(I.right=`${l.arrowOffset-m.value}px`,I.top="0",I.transform="translate(-50%, -50%)"):p.value==="left"?(I.right="0",I.top="50%",I.transform="translate(50%, -50%)"):p.value==="left-start"?(I.right="0",I.top=`${l.arrowOffset}px`,I.transform="translate(50%, -50%)"):p.value==="left-end"&&(I.right="0",I.bottom=`-${l.arrowOffset}px`,I.transform="translate(50%, -50%)"),I):{display:"none"}}),R=()=>(0,t.h)("div",{class:M.value,style:P.value}),z=()=>{B.value===!1&&(g.value=!1)},W=I=>{if(!k.value||B.value===!1)return;const{relatedTarget:Q}=I;k.value.contains(Q)||(B.value=!1,r("update:visible",!1))};return a({doLayout:f}),()=>{if(!g.value)return null;const I=[],Q=H();Q&&I.push(Q);const ee=[],oe=x();if(oe&&ee.push(oe),i.default){const te=i.default();ee.push(te)}const Y=R();Y&&ee.push(Y);const G={ref:k,class:A.value,style:C.value,onAnimationend:z};l.leaveHide&&(G.onMouseleave=W);const F=(0,t.h)("div",G,{default:()=>ee});return I.push(F),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>I})}}}}var{componentName:dc,create:fc,scope:mc}=J("popover-dialog"),pc=fc(cc(dc,mc,!1)),Zn=pc,hc={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 vc(e,n,o){return{props:{...wi,...hc},emits:["click"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:a}=(0,ve.useFoxI18n)(n),u=a(l,["moreText"]),s=e,d=(0,t.computed)(()=>({[s]:!0}));function h(B){return B.props||{}}function c(B){return!!h(B).disabled}function p(B){return B.children??[]}const g=(0,t.ref)(),N=(0,t.computed)(()=>g.value?.$el??null),k=(0,t.ref)(!1),w=B=>{k.value=B},b=()=>{k.value=!k.value};function f(B,v){return()=>{v||(k.value=!1,h(B)?.onClick?.())}}function m(B,v){const y=p(B),V=c(B),T=f(B,V),A=[`${s}__dropdown-item`];return V&&A.push("is-disabled"),(0,t.h)("span",{class:A,onClick:T},y)}const S=B=>{const v=l.maxDisplayCount??B.length;if(v>=B.length)return B;const y=[],V=v-1;for(let H=0;H<V;H++)y.push(B[H]);const T=(i.moreIcon&&i.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(o),A=(0,t.h)(wt,{ref:H=>g.value=H,class:`${s}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:b},{default:()=>u.moreText.value,mark:()=>T});y.push(A);const C=[];for(let H=V;H<B.length;H++){const x=m(B[H],H);C.push(x)}const q=(0,t.h)(Zn,{placement:l.dropdownPlacement,"onUpdate:visible":w,visible:k.value,reference:N.value,"custom-class":`${s}__popover`},{default:()=>C});return y.push(q),y};return()=>{const{getChildren:B}=Yn(i?.default),v=S(B());return(0,t.h)(Gn,{class:d.value},{default:()=>v})}}}}var{componentName:gc,create:yc,scope:bc}=J("buttons-item"),Sc=yc(vc(gc,bc,tc)),fo=Sc,kc={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function wc(e,n){return{props:kc,setup(o,l){const r=nt(),i=Kn();Un(!1);const a=(0,t.computed)(()=>i&&r?Hn(r,!1).value:null),u=e,s=(0,t.computed)(()=>({[u]:!0,[`${u}__gutter`]:a.value&&a.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),d=(0,t.computed)(()=>{const h={};if(o.width)o.width!=="auto"&&(h.width=he(o.width));else{const c=i&&r?_n(r,!1):null;if(a.value&&c){if(a.value.type==="grid"){const p=Wn(c,a.value,o.span,o.offset);Object.assign(h,p)}else if(a.value.type==="flow"){const p=jn(c,a.value,o.span,o.offset,o.width);Object.assign(h,p)}}}return h});return()=>{const h={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?(0,t.h)("div",h,l.slots.default()):(0,t.h)("div",h)}}}}var{componentName:Cc,create:Nc,scope:Ac}=J("slot-item"),Bc=Nc(wc(Cc,Ac)),mo=Bc;function De(e,n={}){return(0,t.h)(ln,e,n)}function Tc(e,n,o,l,r){let i=[];Array.isArray(e)?i=e:i=[e];const a=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=n;for(let d=0;s&&d<i.length;d++){let h=i[d],c=s.find(p=>p[l]===h);if(!c)break;a.push(c[o])}return a}if(Array.isArray(u))for(let s=0;s<n.length&&s<i.length;s++){let d=n[s],h=i[s];const c=d.find(p=>p[l]===h);if(!c)break;a.push(c[o])}else{let s=n;for(let d=0;s&&d<i.length;d++){let h=i[d],c=s.find(p=>p[l]===h);if(!c)break;a.push(c[o]),s=c[r]}}return a}var Vc=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=lt(e,this.scope);return l===null?(console.error(`${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function xc(){return new Vc(ct())}var Ec={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],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 $c(e,n,o=!1){return{props:Ec,setup(l,{attrs:r,slots:i}){const a=xc(),u=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([d,h])=>{u.value=await a.load(l.sourceType,d,h)},{immediate:!0});const s=(0,t.computed)(()=>{if(!Array.isArray(u.value)||u.value.length===0)return l.emptyText;let d=Tc(l.modelValue,u.value,l.textKey,l.valueKey,l.childrenKey);return d.length==0?l.emptyText??"":d.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${d[0]}`:d[0]:d.join(l.separator)});return()=>{const d={...r};if(i.default)return i.default({text:s.value,value:l.modelValue});const h=l.tag??"span";return typeof h=="object"?(0,t.h)(h,d,{default:()=>s.value}):(0,t.h)(h,d,[s.value])}}}}var{componentName:Dc,create:Ic,scope:qc}=J("mapping"),Pc=Ic($c(Dc,qc,!1)),Jn=Pc;function Pe(e,n,o,l,r){const i="fox-browse-item";let a=null;o?a=(0,t.h)(Jn,{class:[`${i}__mapping`],source:o,modelValue:e,separator:l,emptyText:r},{default:s=>(0,t.h)(wt,{class:[`${i}__text`]},{default:()=>s.text})}):a=(0,t.h)(wt,{class:[`${i}__text`]},{default:()=>e});const u={label:n.default,default:()=>a};return(0,t.h)(ln,{class:[i]},u)}var Ci={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}},Mc={...ge,...be,...Ci};function zc(e,n,o,l,r){return{props:Mc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g,exposeApi:N}=Be({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),{toLocaleRefs:k}=(0,ve.useFoxI18n)(n),w=k(i,["placeholder"]),b=(0,t.ref)(!1),f=qe(i,"modelValue",null,g),m=e,S=(0,t.computed)(()=>({[m]:!0,"is-disabled":d.value,"is-readonly":c.value})),B=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),v=(0,t.computed)(()=>{const Q={};return B.value&&(Q["text-align"]=B.value),Q}),y=Q=>{let ee=Q.target.value;i.type==="digit"&&(ee=zl(ee,!0)),i.type==="number"&&(ee=zl(ee,!1)),i.maxLength&&ee.length>Number(i.maxLength)&&(ee=ee.slice(0,Number(i.maxLength))),f.value=ee,g("update:modelValue",ee,Q),g("change",ee,Q)};let V=qe(i,"hintText"),T=(0,t.ref)(!1);const A=Q=>{let ee=Q.target.value;b.value=!0,me(V.value)||(T.value=!0),g("focus",ee,Q)},C=Q=>{setTimeout(()=>{T.value&&(T.value=!1),b.value=!1},0);let ee=Q.target.value;i.maxLength&&ee.length>Number(i.maxLength)&&(ee=ee.slice(0,Number(i.maxLength))),g("blur",ee,Q)},q=(0,t.computed)(()=>({[`${m}__append`]:!0,"is-disabled":d.value,"is-readonly":c.value})),H=(0,t.computed)(()=>{const Q={};return a.slots.append&&!x.value&&!W.value&&(Q.display="none"),Q}),x=(0,t.computed)(()=>ke(i.unit)>0),M=(0,t.computed)(()=>!W.value),P=(0,t.computed)(()=>({[`${m}__unit`]:!0,hidden:!M.value})),R=Q=>{f.value="",g("update:modelValue","",Q),g("change","",Q),g("clear","")},z=(0,t.computed)(()=>Se(i.clearable)&&!d.value&&!c.value),W=(0,t.computed)(()=>{let Q=ke(f.value)>0;return Se(i.clearable)&&Q&&b.value}),I=(0,t.computed)(()=>({action:!0,hidden:!W.value}));return N({setDisabled:Q=>{s.value=Q},setReadonly:Q=>{h.value=Q}}),()=>{if(p.value==="on"&&(c.value||d.value))return l(f.value,a.slots);const Q={class:S.value,style:v.value,type:i.type,maxlength:i.maxLength,placeholder:w.placeholder.value,disabled:d.value,readonly:c.value,value:f.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:y,onFocus:A,onBlur:C},ee=[],oe=(0,t.h)("input",Q);ee.push(oe);const Y=[];if(z.value){const U=(0,t.h)(r,{class:["action-icon"]}),D=(0,t.h)("view",{class:I.value,onClick:R},{default:()=>[U]});Y.push(D)}if(x.value){const U=(0,t.h)("view",{class:P.value},[i.unit]);Y.push(U)}const G=(0,t.h)("view",{class:q.value,style:H.value},{default:()=>Y});ee.push(G);const F={default:()=>ee};F.label=a.slots.default,F.prepend=a.slots.prepend,F.append=a.slots.append,F.fixedPreTip=a.slots.fixedPreTip,F.fixedTip=a.slots.fixedTip;const te={...tt(i,Ci),ref:u,hintText:V.value,hintVisible:T.value};return i.prop&&(te.prop=`${i.prop}_item`),o(te,F)}}}}var{componentName:Rc,create:Lc,scope:Fc}=J("input-item"),Oc=Lc(zc(Rc,Fc,De,Pe,ae.CircleClose)),po=Oc;function tr(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let r=l;for(let i=o.length-1;i>=l;i--)if(o.charAt(i)!="0"){r=i;break}return r-l<n?r=l+n+1:r!=l&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function nr(e,n,o=20){return typeof n=="string"&&(n=de(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?tr(Pr(`${e}`,`${n}`)):tr(Gl(`${e}`,Mr(`${n}`),20))}function Kc(e,n=-1,o=!1,l=3,r=","){return $n(e,de(n),o,l,r)}function lr(e,n,o,l,r=!0){if(e==="")return"";if(e=zr(e),n=de(n),n==1)return e;if(l)e=nr(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(de(o)+2,"0"):e=Gl(e,1,de(o)));else{let i=-1*n;e=nr(e,i)}return e}function or(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=Se(n.minInclude),r=ql(e,n.min);(l&&r==-1||!l&&(r==0||r==-1))&&(o.message="请输入不小于 {0} 的数值".replace("{0}",n.min),o.minValid=!1)}if(n.max!=null){let l=Se(n.maxInclude),r=ql(e,n.max);(l&&r==1||!l&&(r==0||r==1))&&(o.maxValid=!1)}return o}var Ni={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean],default:!0},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},maxLength:{type:[String,Number]}},Uc={...ge,...be,...Ni};function Hc(e,n,o,l,r){return{props:Uc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g,exposeApi:N}=Be({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),k=(0,t.ref)(!1),w=qe(i,"modelValue",null,g),b=(0,t.ref)("");(0,t.watch)([()=>w.value,()=>i.rates,()=>i.precision],([F,te,U])=>{if(me(F)){b.value="";return}const D=lr(F,te,U,!1);b.value!==D&&(b.value=D)},{immediate:!0});const f=(0,t.computed)(()=>{let F="";return k.value&&(F=b.value),F}),{t:m}=(0,ve.useFoxI18n)(n),S=(0,t.computed)(()=>{let F=i.placeholder??"";return!k.value&&!me(b.value)?F=Kc(b.value,i.decimalLength,i.autoPadding,i.digits,i.separator):F=me(F)?m(["placeholder"]):F,F}),B=e,v=(0,t.computed)(()=>({[B]:!0,[`${B}__placeholder`]:b.value.length>0,"is-disabled":d.value,"is-readonly":c.value})),y=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),V=(0,t.computed)(()=>{const F={};return y.value&&(F["text-align"]=y.value),F}),T=(0,t.ref)(""),A=(0,t.computed)(()=>{let F=T.value;return me(F)&&(F=i.errorTip??""),F}),C=(0,t.ref)(""),q=(0,t.ref)(!1),H=F=>{let te=F.target.value;if(me(te)){b.value="",w.value="",g("update:modelValue","",F),g("change","",F),Se(i.showTip)&&q.value&&(q.value=!1);return}if(te.length>=2){let U=te;if(U.charAt(0)=="-"&&(U=U.substring(1)),U.length>=2&&U.charAt(0)=="0"&&U.charAt(1)!="."){(0,t.triggerRef)(b);return}}if(te!="-"){if(!qn(te)){(0,t.triggerRef)(b);return}if(i.integerLength!=-1&&Hr(te)>Number(i.integerLength)){(0,t.triggerRef)(b);return}if(i.decimalLength&&i.decimalLength!=-1&&_r(te)>Number(i.decimalLength)){(0,t.triggerRef)(b);return}let U=or(te,i);if(U.maxValid===!1){T.value=U.message,(0,t.triggerRef)(b);return}}else if(i.min!=null&&de(i.min)>=0){(0,t.triggerRef)(b);return}C.value=te,Se(i.showTip)&&(q.value=te.length>0),b.value=te,w.value=lr(te,i.rates,i.precision,!0),g("update:modelValue",w.value,F),g("change",w.value,F)},x=F=>{if(k.value=!0,Se(i.showTip)){let te=b.value;me(te)&&(te=i.hintText),me(te)||(C.value=te,q.value=!0)}T.value="",g("focus",w.value,F)},M=F=>{if(setTimeout(()=>{k.value=!1,Se(i.showTip)&&q.value===!0&&(q.value=!1)},0),!me(b.value)){let te=or(b.value,i);if(te.minValid===!1||te.maxValid===!1){T.value=te.message;return}}g("update:modelValue",w.value,F),g("blur",w.value,F)},P=(0,t.computed)(()=>({[`${B}__append`]:!0,"is-disabled":d.value,"is-readonly":c.value})),R=(0,t.computed)(()=>{const F={};return a.slots.append&&!z.value&&!oe.value&&(F.display="none"),F}),z=(0,t.computed)(()=>ke(i.unit)>0),W=(0,t.computed)(()=>!oe.value),I=(0,t.computed)(()=>({[`${B}__unit`]:!0,hidden:!W.value})),Q=F=>{w.value="",g("update:modelValue","",F),g("change","",F),g("clear","")},ee=(0,t.computed)(()=>Se(i.clearable)&&!d.value&&!c.value),oe=(0,t.computed)(()=>{let F=ke(w.value)>0;return Se(i.clearable)&&F&&k.value}),Y=(0,t.computed)(()=>({action:!0,hidden:!oe.value}));N({setDisabled:F=>{s.value=F},setReadonly:F=>{h.value=F}});const G=()=>w.value?S.value:w.value;return()=>{if(p.value==="on"&&(c.value||d.value))return l(G(),a.slots);let F={class:v.value,style:V.value,type:"digit",maxlength:i.maxLength,placeholder:S.value,disabled:d.value,readonly:c.value,value:f.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:H,onFocus:x,onBlur:M},te=[],U=(0,t.h)("input",F);te.push(U);let D=[];if(ee.value){const ne=(0,t.h)(r,{class:["action-icon"]}),K=(0,t.h)("view",{class:Y.value,onClick:Q},{default:()=>[ne]});D.push(K)}if(z.value){const ne=(0,t.h)("view",{class:I.value},[i.unit]);D.push(ne)}const O=(0,t.h)("view",{class:P.value,style:R.value},{default:()=>D});te.push(O);const j={default:()=>te};j.label=a.slots.default,j.prepend=a.slots.prepend,j.append=a.slots.append,j.fixedPreTip=a.slots.fixedPreTip,j.fixedTip=a.slots.fixedTip;const X={...tt(i,Ni),ref:u,errorTip:A.value,hintText:C.value,hintVisible:q.value,hintType:"number"};return i.prop&&(X.prop=`${i.prop}_item`),o(X,j)}}}}var{componentName:_c,create:jc,scope:Wc}=J("money-item"),Yc=jc(Hc(_c,Wc,De,Pe,ae.CircleClose)),ho=Yc,Ul={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:Xc,create:Qc,scope:Gc}=J("textarea"),Zc=Qc({props:{...Ul},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:o}=(0,ve.useFoxI18n)(Gc);const l=o(e,["placeholder"]),r=(0,t.ref)(),i=(0,t.computed)(()=>{const p=Xc;return{[p]:!0,[`${p}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&s(String(e.modelValue)),e.autosize&&(0,t.nextTick)(u)});const a=(0,t.computed)(()=>({textAlign:e.textAlign})),u=()=>{let p=r.value;p.style.height="auto";let g=p.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:N,minHeight:k}=e.autosize;N!==void 0&&(g=Math.min(g,N)),k!==void 0&&(g=Math.max(g,k))}g&&(console.info("----------- height",g),p.style.height=g+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(u)});const s=(p,g)=>{e.maxLength&&p.length>Number(e.maxLength)&&(p=p.substring(0,Number(e.maxLength))),n("update:modelValue",p,g),n("change",p,g)};return{...l,textareaRef:r,classes:i,styles:a,change:p=>{const g=p.target;s(g.value,p)},focus:p=>{e.disabled||e.readonly||n("focus",p)},blur:p=>{if(e.disabled||e.readonly)return;let g=p.target.value;s(g,p),n("blur",{value:g,event:p})}}}}),Jc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],ed={key:0,class:"fox-textarea__limit"};function td(e,n,o,l,r,i){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]=(...a)=>e.change&&e.change(...a)),onBlur:n[1]||(n[1]=(...a)=>e.blur&&e.blur(...a)),onFocus:n[2]||(n[2]=(...a)=>e.focus&&e.focus(...a)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Jc),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",ed,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var el=re(Zc,[["render",td]]);function nd(e,n,o,l,r){return{props:{...ge,...be,...Ul},emits:["update:modelValue","change","blur","focus","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g}=Be({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),N=qe(i,"modelValue",null,g),k=S=>{N.value=S,g("update:modelValue",S,{}),g("change",S,{})};let w=qe(i,"hintText"),b=(0,t.ref)(!1);const f=S=>{me(w.value)||(b.value=!0),g("focus",N.value,S)},m=S=>{setTimeout(()=>{b.value&&(b.value=!1)},0),g("blur",N.value,S)};return()=>{if(p.value==="on"&&(c.value||d.value))return l(N.value,a.slots);const S={...ye(i,Ul),disabled:d.value,readonly:c.value,value:N.value,"onUpdate:modelValue":k,onFocus:f,onBlur:m},B=[],v=(0,t.h)(r,S);B.push(v);const y={default:()=>B};y.label=a.slots.default,y.prepend=a.slots.prepend,y.append=a.slots.append,y.fixedPreTip=a.slots.fixedPreTip,y.fixedTip=a.slots.fixedTip;const V={...ye(i,be,ge),ref:u};return i.prop&&(V.prop=`${i.prop}_item`),o(V,y)}}}}var{componentName:ld,create:od,scope:ad}=J("textarea-item"),rd=od(nd(ld,ad,De,Pe,el)),vo=rd;function id(e){return e===window}var $e=e=>{const n=(0,t.unref)(e);if(id(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}},ar=10;function Ai(e,n){return e>n&&e>ar?"horizontal":n>e&&n>ar?"vertical":""}function tl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function nl(){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:(a=>{if(a.touches){const u=a.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const u=a;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Ai(e.offsetX,e.offsetY))}),start:(a=>{if(l(),a.touches){const u=a.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const u=a;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:o,state:e}}function ot(){const e=(0,t.ref)(0),n=(0,t.ref)(0),o=(0,t.ref)(0),l=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(0),a=(0,t.ref)(0),u=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(0),h=(0,t.ref)(""),c=()=>h.value==="vertical",p=()=>h.value==="horizontal",g=()=>{a.value=0,u.value=0,s.value=0,d.value=0,h.value="",o.value=0};return{move:(w=>{if(w.touches){const b=w.touches[0];a.value=b.clientX-e.value,u.value=b.clientY-n.value,r.value=b.clientX,i.value=b.clientY}else{const b=w;a.value=b.clientX-e.value,u.value=b.clientY-n.value,r.value=b.clientX,i.value=b.clientY}s.value=Math.abs(a.value),d.value=Math.abs(u.value),l.value=Date.now()-o.value,h.value||(h.value=Ai(s.value,d.value))}),start:(w=>{if(g(),w.touches){const b=w.touches[0];e.value=b.clientX,n.value=b.clientY}else{const b=w;e.value=b.clientX,n.value=b.clientY}o.value=Date.now()}),reset:g,startX:e,startY:n,startTime:o,duration:l,moveX:r,moveY:i,deltaX:a,deltaY:u,offsetX:s,offsetY:d,direction:h,isVertical:c,isHorizontal:p}}var sd=2e3,rr=()=>sd++,Je={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:{}}},ud=(e,n)=>({components:n,props:{...Je},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const r=(0,t.reactive)({zIndex:0,showSlot:!0,closed:o.closeable});o.visible&&(r.zIndex=rr());const i=(0,t.computed)(()=>{const k=e,w=[k,`${k}--${o.position}`];return o.round&&w.push("round"),o.position==="bottom"&&o.safeAreaInsetBottom&&w.push(`${k}--${o.position}--safebottom`),typeof o.popClass=="string"?w.push(o.popClass):Array.isArray(o.popClass)&&o.popClass.forEach(b=>{w.push(b)}),w}),a=(0,t.computed)(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=(0,t.computed)(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{l("update:visible",!0),o.zIndex?r.zIndex=o.zIndex:r.zIndex=rr(),o.destroyOnClose&&(r.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},h=k=>{l("click-pop",k)},c=k=>{k.stopPropagation(),l("click-close-icon",k),l("update:visible",!1)},p=k=>{l("click-overlay",k),o.closeOnClickOverlay&&l("update:visible",!1)},g=k=>{l("opend",k)},N=k=>{l("closed",k)};return(0,t.watch)(()=>o.visible,k=>{o.visible?s():d()}),(0,t.watch)(()=>o.closeable,k=>{r.closed=k}),{...(0,t.toRefs)(r),popStyle:a,transitionName:u,classes:i,onClick:h,onClickCloseIcon:c,onClickOverlay:p,onOpened:g,onClosed:N}}}),Bi={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}},go={...Je,...Bi,modelValue:{type:[String,Number,Boolean,Object,Array],default:()=>""},text:{type:[Array],default:()=>[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:()=>[]},sourceFilter:{type:[Function]},params:{type:Object},valueType:{type:String,required:!1,default:()=>"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String},isAutoBackFill:{type:[Boolean],default:()=>!0},poppable:{type:[Boolean],default:()=>!0}},Ti=36;function cd(){return Ti}function dd(e){Ti=e}function Re(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Hl(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function fd(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function st(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ir(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var md=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function pd(){return new md(ct())}function sr(e,n,o){return!(Re(e,n)!==Re(e,o)||st(e,n)!==st(e,o))}function hd(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const r=[],i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const u=n[a];let s=o[a].findIndex(d=>{if(i==="text")return Re(e,d)===u;if(i==="value"){let h=st(e,d);return h==null&&(h=Re(e,d)),h===u}else if(i==="item")return sr(e,d,u)});if(s==-1)break;r.push(s)}else{let a=o[0];for(let u=0;u<n.length;u++){const s=n[u];let d=a.findIndex(c=>{if(i==="text")return Re(e,c)===s;if(i==="value"){let p=st(e,c);return p==null&&(p=Re(e,c)),p===s}else if(i==="item")return sr(e,c,s)});if(d==-1)break;r.push(d);const h=Hl(e,a[d]);if(!Array.isArray(h))break;a=h}}return r}function ur(e,n,o,l){if(o.length==0)return null;const r={texts:[],values:[],items:[]},i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const u=o[a];let s=n[a];s<0&&s>=u.length&&(s=0);const d=u[s],h=Re(e,d);if(r.texts.push(h),r.items.push(d),i==="text")r.values.push(h);else if(i==="value"){let c=st(e,d);c==null&&(c=h),r.values.push(c)}else r.values.push(d)}else{let a=o[0];for(let u=0;u<n.length;u++){let s=n[u];s<0&&s>=a.length&&(s=0);const d=a[s],h=Object.assign({},d);h.children=null;const c=Re(e,d);if(r.texts.push(c),r.items.push(h),i==="text")r.values.push(c);else if(i==="value"){let p=st(e,d);p==null&&(p=c),r.values.push(p)}else r.values.push(h);if(!Array.isArray(d.children))break;a=d.children}}return r}function cr(e){return{text:e,value:e}}var vd=15,gd=300,yd=200,{create:bd}=J("picker-column");function Sd(e){e.stopPropagation()}function kd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Sd(e)}var wd={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},...Bi},Cd=bd({props:wd,emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=(0,t.computed)(()=>({"fox-picker__list":!0})),l=(0,t.computed)(()=>({height:`${de(e.visibleItemCount)*+e.itemHeight}px`})),r=(0,t.computed)(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),i=(0,t.computed)(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),a=y=>{const V=y+1;return V>=c.currIndex+8||V<=c.currIndex-8},u=(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:`${i.value}px`})),s=y=>{const V=y+1;return`transform: rotate3d(1, 0, 0, ${-c.rotation*V}deg) translate3d(0px, 0px, 104px)`},d=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+i.value}px, 0)`})),h=(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}),p=y=>Re(e,y),g=y=>st(e,y),N=ot(),k=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},w=(y,V=!1,T=!1)=>{if(c.currIndex=y,V){const A=()=>{c.moving=!1,n("update:modelValue",y),n("change",y)};T?c.transitionEndTrigger=A:A()}},b=(y,V,T)=>{let A=y+c.startDistance;if(V==="end"){const C=-(e.source.length-1)*e.itemHeight;A<C&&(A=C),A>0&&(A=0);let q=Math.abs(Math.round(-A/e.itemHeight));const H=-q*e.itemHeight,x=`${(q+1)*c.rotation}deg`;w(q,!0,T?T>0:!1),f(H,V,T,x)}else{let C=(-A/e.itemHeight+1)*c.rotation;const q=(e.source.length+1)*c.rotation,H=0;if(C=Math.min(Math.max(C,H),q),e.threeDimensional&&(C<H||C>q))return;f(A,null,void 0,`${C}deg`)}},f=(y=0,V,T=yd,A)=>{V==="end"?c.scrollTime=T:c.scrollTime=0,c.deg=A,c.scrollDistance=y},m=(y,V)=>(y=Math.abs(y/V)/.003*(y<0?-1:1),y),S=y=>{e.readonly||(c.startDistance=c.scrollDistance,N.start(y),c.transitionEndTrigger=null)},B=y=>{e.readonly||(c.moving=!0,N.move(y),N.isVertical()&&(c.moving=!0,kd(y,!0)),b(N.deltaY.value,"",0))},v=()=>{if(e.readonly)return;const y=N.deltaY.value,V=N.duration.value;V<gd&&Math.abs(y)>vd?b(m(y,V),"end",de(e.swipeDuration)):b(y,"end",0)};return(0,t.watch)(()=>e.modelValue,y=>{const V=c.currIndex-y;V!==0&&(c.currIndex=y,c.startDistance=c.scrollDistance,b(V*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,y=>{if(c.currIndex>=y.length){const V=(y.length-1-c.currIndex)*e.itemHeight;c.startDistance=c.scrollDistance,b(V,"end",0)}}),(0,t.watch)(()=>e.visible,y=>{y===!1&&k()}),(0,t.onMounted)(()=>{b(-e.modelValue*e.itemHeight)}),{classes:o,styles:l,contentClasses:r,itemText:p,itemValue:g,...(0,t.toRefs)(c),roller:h,getItemText:Re,onTouchStart:S,onTouchMove:B,onTouchEnd:v,isHidden:a,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:d,stopMomentum:k}}}),Nd={key:1,class:"fox-picker__item-tile"};function Ad(e,n,o,l,r,i){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]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTransitionend:n[4]||(n[4]=(...a)=>e.stopMomentum&&e.stopMomentum(...a))},[(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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(u))},(0,t.toDisplayString)(e.itemText(a)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",Nd,(0,t.toDisplayString)(e.itemText(a)),1))],64))),128))],6)],38)}var Bd=re(Cd,[["render",Ad]]),qt=0,dr="fox-overflow-hidden",fr=()=>et?document.body:{classList:[]},Td=e=>[()=>{if(e())try{!qt&&fr().classList.add(dr),qt++}catch{}},()=>{if(e()&&qt)try{qt--,!qt&&fr().classList.remove(dr)}catch{}}],Vd={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:xd,create:Ed}=J("overlay"),$d=Ed({props:{...Vd},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=Td(()=>e.lockScroll),r=(0,t.computed)(()=>({[xd]:!0,[e.overlayClass]:!0})),i=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,u=>{u?o():l()}),{classes:r,style:i,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Dd(e,n,o,l,r,i){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)((...a)=>e.onClick&&e.onClick(...a),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var ut=re($d,[["render",Dd]]),{componentName:Id,create:qd}=J("popup"),Pd=qd(ud(Id,{FoxOverLay:ut,Close:ae.Close}));function Md(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxOverLay"),u=(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)(a,(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]=(...s)=>e.onClick&&e.onClick(...s))},[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]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:(0,t.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(u)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var we=re(Pd,[["render",Md]]),zd=(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)(we,tt({...e},{poppable:!1}),n):n?.default?.()??null}}),Rd=zd,{create:Ld,componentName:mr,scope:Fd}=J("picker"),Od=Ld({components:{Column:Bd,Wrapper:Rd},props:go,emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=(0,ve.useFoxI18n)(Fd),r=o(e,["title","cancelText","clearText","confirmText"]),i=(0,t.ref)(null),a=(0,t.ref)(cd());(0,t.watch)(()=>e.visible,P=>{P&&a.value<=0&&setTimeout(()=>{i.value&&(a.value=$e(i.value).height,dd(a.value))},50)});const u=(0,t.computed)(()=>({[mr]:!0})),s=(0,t.computed)(()=>{const P=[];return Array.isArray(e.popClass)?P.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&P.push(e.popClass),P.push(`${mr}__popup`),P.join(" ")}),d=pd(),h=(0,t.ref)("singleColumn");let c=(0,t.ref)([]);const p=(0,t.computed)(()=>{if(typeof e.sourceFilter=="function"){const P=[];for(let R=0;R<c.value.length;R++){const z=c.value[R];if(Array.isArray(z)){const W=z.filter(e.sourceFilter);P.push(W)}}return P}return c.value});(0,t.watch)([()=>e.source,()=>e.params],async([P,R])=>{if(P){let z=await d.load("picker",P,R);if(z.length>0){let W=z[0];if(Array.isArray(W)){if(typeof W[0]=="string"){let I=z,Q=[];I.forEach(ee=>{let oe=ee.map(Y=>cr(Y));Q.push(oe)}),c.value=Q}else c.value=z;h.value="multipleColumn"}else if(typeof W=="string"){let I=z,Q=[],ee=I.map(oe=>cr(oe));Q.push(ee),c.value=Q,h.value="singleColumn"}else{const I=Hl(e,W);Array.isArray(I)?(h.value="cascade",c.value=[z]):(h.value="singleColumn",c.value=[z])}}else c.value=[]}},{immediate:!0});const g=(0,t.ref)([]),N=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),k=(0,t.ref)([]);let w=null;const b=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>p.value],([P,R])=>{let z=hd(e,P,R,h.value);if(!Ee(z,b.value)){b.value=z,w||(w=z?[...z]:[]);let W=ur(e,z,R,h.value);W&&(g.value=W.texts,Ee(N.value,W.values)||(N.value=W.values),Ee(k.value,W.items)||(k.value=W.items),n("update:text",g.value))}});let f="";const m=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,P=>{m.value=P,P&&(f="active",b.value.length>0&&(w=[...b.value]))});const S=P=>{let R=ir(e,P);return xe(R)?R.defaultIndex??0:0},B=P=>{if(e.readonly===!0)return!0;let R=ir(e,P);return xe(R)?R.readonly??!1:!1},v=(P,R)=>{let z=b.value;z[P]=R;for(let I=0;I<P;I++)z[I]==null&&(z[I]=S(I));if(h.value==="cascade")for(let I=P+1;I<V.value.length;I++){let Q=S(I);I<z.length?z[I]=Q:z.push(Q)}else for(let I=z.length;I<V.value.length;I++){let Q=S(I);z.push(Q)}b.value=z;let W=ur(e,z,p.value,h.value);W&&(g.value=W.texts,N.value=W.values,k.value=W.items)},y=P=>P<b.value.length?b.value[P]:S(P),V=(0,t.computed)(()=>{if(p.value.length==0)return[];if(h.value=="singleColumn"||h.value=="multipleColumn")return p.value;let P=[],R=0,z=p.value[0],W=0;for(;;){let I=z.map(oe=>{let Y=Object.assign({},oe);return fd(e,Y,null),Y});P.push(I),R>=b.value.length?W=0:W=b.value[R],(W<0||W>=z.length)&&(W=0);let Q=z[W];const ee=Hl(e,Q);if(!Array.isArray(ee))break;z=ee,R++}return P}),T=(0,t.computed)(()=>de(+e.visibleItemCount-1)/2*a.value),A=(P=!1)=>{if(e.readonly===!0){P&&n("update:visible",!1);return}let R=p.value.length-1;for(;R>=0&&!(b.value[R]===null||b.value[R]===void 0);R--);if(R>=0&&v(R,0),h.value==="singleColumn"){let z=N.value.length>0?N.value[0]:"",W=k.value.length>0?k.value[0]:null;n("update:modelValue",z),n("update:text",g.value),n("change",z,W),P&&(n("confirm",z),n("update:visible",!1))}else n("update:modelValue",N.value),n("update:text",g.value),n("change",N.value,k.value),P&&(n("confirm",N.value),n("update:visible",!1))},C=(P,R)=>{f!=="close"&&(v(P,R),e.isAutoBackFill&&A(!m.value))},q=()=>{f==="active"&&(f="confirm",w=Array.isArray(b.value)?[...b.value]:[],A(!0))},H=()=>{h.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),b.value=[],w=null};return{...r,pickerLineRef:i,classes:u,popClasses:s,columns:V,dataType:h,show:m,itemHeight:a,top:T,isReadonly:B,getIndex:y,change:C,close:()=>{if(f==="active"){if(f="close",w===null||w.length===0)H();else{if(Array.isArray(w))for(let P=0;P<w.length;P++)v(P,w[P]);A(!1)}n("close"),n("update:visible",!1)}},confirm:q,clear:()=>{if(f==="active"){if(f="clear",e.readonly===!0){n("update:visible",!1);return}H(),w=null,n("clear",""),n("update:visible",!1)}}}}}),Kd={key:0,class:"fox-picker__bar"},Ud={class:"fox-picker__title"},Hd={class:"fox-picker__bar__action"},_d={class:"fox-picker__column"};function jd(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Column"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(u,{position:"bottom","pop-class":e.popClasses,visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),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",Kd,[(0,t.createElementVNode)("view",Ud,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Hd,[(0,t.createElementVNode)("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...s)=>e.close&&e.close(...s))},(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]=(...s)=>e.confirm&&e.confirm(...s))},(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]=(...s)=>e.clear&&e.clear(...s))},(0,t.toDisplayString)(e.clearText),1)):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"top"),(0,t.createElementVNode)("view",_d,[(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,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:"fox-picker__columnitem"},[(0,t.createVNode)(a,{visible:e.show,source:s,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":h=>e.change(d,h),"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 on=re(Od,[["render",jd]]),Wd={...ge,...be,...go,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:" "}};function Yd(e,n,o,l,r,i,a,u=!0){return{props:Wd,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:c,disabled:p,innerReadonly:g,readonly:N,browse:k}=Te(s),{emitEvent:w,exposeApi:b}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return N.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:f}=(0,ve.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),B=qe(s,"modelValue",null,w),v=(0,t.ref)([]),y=(0,t.computed)(()=>Array.isArray(v.value)?v.value.join(s.separator):v.value),V="fox-input-item",T=(0,t.computed)(()=>({[V]:!0,"is-disabled":p.value,"is-readonly":N.value})),A=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),C=(0,t.computed)(()=>{const O={};return A.value&&(O["text-align"]=A.value),O}),q=(0,t.ref)(!1),H=()=>{q.value=!0},x=O=>{q.value=O},M=O=>{B.value=O,w("update:modelValue",O)},P=(O,j)=>{w("change",O,j)},R=O=>{let j=O.target.value;S.value=!0,w("focus",j,O)},z=O=>{setTimeout(()=>{S.value=!1},0);let j=O.target.value;s.maxLength&&j.length>Number(s.maxLength)&&(j=j.slice(0,Number(s.maxLength))),w("blur",j,O)},W=O=>{v.value=O,Array.isArray(O)&&O.length===0?w("update:text",O[0]):w("update:text",O)},I=(0,t.computed)(()=>({[`${V}__append`]:!0,"is-disabled":p.value,"is-readonly":N.value})),Q=(0,t.computed)(()=>ke(s.unit)>0),ee=(0,t.computed)(()=>ke(s.unit)>0&&!S.value),oe=(0,t.computed)(()=>({hidden:!ee.value})),Y=O=>{B.value="",w("update:modelValue","",O),w("change","",O),w("clear","")},G=(0,t.computed)(()=>s.clearable&&!p.value&&!N.value),F=(0,t.computed)(()=>ke(B.value)>0&&S.value),te=O=>{F.value?Y(O):H()},U=(0,t.computed)(()=>F.value&&G.value?r:i),D=(0,t.computed)(()=>({action:!0}));return b({setDisabled:O=>{c.value=O},setReadonly:O=>{g.value=O}}),()=>{if(k.value==="on"&&(N.value||p.value))return l(y.value,d.slots);const O={class:T.value,style:C.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:y.value,onClick:H,onFocus:R,onBlur:z};u&&(O.disabled=!0);const j=[],X=(0,t.h)("input",O);j.push(X);const ne=[],K=(0,t.h)(U.value,{class:["action-icon"]}),_=(0,t.h)("view",{class:D.value,onClick:te},{default:()=>[K]});if(ne.push(_),Q.value){const ie=(0,t.h)("view",{class:oe.value},[s.unit]);ne.push(ie)}const $=(0,t.h)("view",{class:I.value},{default:()=>ne});j.push($);const E={default:()=>j};E.label=d.slots.default,E.prepend=d.slots.prepend,E.append=d.slots.append,E.fixedPreTip=d.slots.fixedPreTip,E.fixedTip=d.slots.fixedTip;const L=ye(s,go);L.disabled=!1,L.readonly=p.value||N.value,L.visible=q.value,L["onUpdate:visible"]=x,L.modelValue=B.value,L["onUpdate:modelValue"]=M,L.text=v.value,L["onUpdate:text"]=W,L.onChange=P;const Z=(0,t.h)(a,L);E.hide=()=>[Z];const le=ye(s,be,ge);return s.prop&&(le.prop=`${s.prop}_item`),le.ref=h,o(le,E)}}}}var{componentName:Xd,create:Qd,scope:Gd}=J("picker-item"),Zd=Qd(Yd(Xd,Gd,De,Pe,ae.CircleClose,ae.ArrowRight,on,!1)),yo=Zd,Jd=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:o}){return()=>e.poppable?(0,t.h)(we,{...o},n):n?.default?.()??null}}),ef=Jd,hn=(e,n,o)=>e.map(l=>{const{value:r="value",text:i="text",children:a="children"}=o??{},{[r]:u,[i]:s,[a]:d,...h}=l,c={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:d,_parent:n};return c.children&&c.children.length&&(c.children=hn(c.children,c,o)),c}),Vi=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&Vi(l.children,n)},tf={topId:null,idKey:"id",pidKey:"pid",sortKey:""},nf=(e,n)=>{const{topId:o,idKey:l,pidKey:r,sortKey:i}={...tf,...n||{}};let a=[],u={};return e.forEach(s=>{s={...s};const{[l]:d,[r]:h}=s,c=u[h]=u[h]||[];!a.length&&h===o&&(a=c),c.push(s),s.children=u[d]||(u[d]=[])}),i&&Object.keys(u).forEach(s=>{u[s].length>1&&u[s].sort((d,h)=>d[i]-h[i])}),u=null,a},bo={prop:{type:[String]},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}},pr=(e,n)=>n[e.textKey],Pt=(e,n)=>n[e.valueKey],lf=(e,n)=>n[e.visibleKey],hr=(e,n)=>n[e.disabledKey],of=(e,n)=>{const o=n[e.doitKey];return Se(o)},af=(e,n)=>{const o=n[e.numKey];return o==null?null:de(n[o])},vr=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function rf(e,n,o,l,r,i=!1){return{props:bo,emits:["update:modelValue","change","click"],setup(a,u){const{emitEvent:s,exposeApi:d}=Oe({context:u},a.prop),{slots:h}=u,c=(0,t.computed)(()=>{const $={};return $[`${e}`]=!0,$}),p=(0,t.computed)(()=>{const $={};return $[`${e}__titles`]=!0,$[`${a.direction}`]=!0,a.align&&($[`${a.align}`]=!0),a.scroll===!0&&($.scrollable=!0),a.shape&&($[`${a.shape}`]=!0),a.showScrollArrow?(U.value===!0&&($["has-left-scroll-arrow "]=!0),D.value===!0&&($["has-right-scroll-arrow "]=!0)):a.showQuickNavigation&&($["has-navigation"]=!0),$}),g=(0,t.computed)(()=>({})),N=(0,t.computed)(()=>{if(!a.gutter)return 0;const $=ue(a.gutter);return $<=0?0:$}),k=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,$=>{k.value!==$&&(k.value=$,Q(!1))});const w=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),b=(0,t.computed)(()=>{const $={};return m.value||($.display="none"),$}),f=(0,t.ref)(),m=(0,t.ref)(!1),S=()=>{B(!m.value)},B=$=>{const E=$;E?(m.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,f.value?f.value.addEventListener("transitionend",()=>{m.value=!1},{once:!0}):setTimeout(()=>{m.value=!1},0))},v=(0,t.ref)(),y=(0,t.ref)([]),V=($,E)=>{y.value[E]=$},T=$=>E=>{V(E,$)},A=($,E)=>{const L=v.value,Z=y.value;if(!L||!Z||!Z[$])return;const le=Z[$];let ie=0;a.direction==="vertical"?ie=le.offsetTop-(L.offsetHeight-le.offsetHeight)/2:ie=le.offsetLeft-(L.offsetWidth-le.offsetWidth)/2,C(L,ie,E?0:.3,a.direction)},C=($,E,L,Z)=>{let le=0;const ie=Z==="horizontal"?$.scrollLeft:$.scrollTop,ce=L===0?1:Math.round(L*1e3/16);function fe(){Z==="horizontal"?$.scrollLeft+=(E-ie)/ce:$.scrollTop+=(E-ie)/ce,++le<ce&&He(fe)}fe()},q=($,E)=>{const L=Pt(a,$),Z={};return Z[`${e}__titles-item`]=!0,Z.disabled=hr(a,$),Z.active=L===k.value,a.shape&&(Z[`${a.shape}`]=!0),a.ellipsis&&(Z.ellipsis=!0),E&&(E.class&&(Z[`${E.class}`]=!0),E.disabled===!0&&(Z.disabled=E.disabled)),Z},H=($,E)=>{const L={};if(N.value>0){const Z=Math.abs(N.value/2);a.direction==="vertical"?(L["margin-top"]=`${Z}px`,L["margin-bottom"]=`${Z}px`):(L["margin-left"]=`${Z}px`,L["margin-right"]=`${Z}px`)}return E&&E.style&&Object.assign(L,E.style),L},x=($,E)=>`${Pt(a,$)??E}`,M=($,E)=>{const L=Pt(a,$),Z={};Z[`${e}__popup-item`]=!0,Z.disabled=hr(a,$),Z.active=L===k.value,a.shape&&(Z[`${a.shape}`]=!0);const le=vr(a,$,E);return le&&le.disabled===!0&&(Z.disabled=le.disabled),Z},P=(0,t.computed)(()=>(a.data??[]).filter($=>lf(a,$)!==!1)),R=($,E)=>{const L=Pt(a,$);if(s("click",$,E),k.value==L)return;const Z=()=>{k.value=L,a.scroll&&A(E,!1),s("update:modelValue",L),s("change",$,E)};if(typeof a.beforeChange=="function"){const le=a.beforeChange($,E);yt(le)?le.then(ie=>{ie!==!1&&Z()}).catch(()=>{Z()}):le!==!1&&Z()}else Z()},z=($,E)=>function(){R($,E)},W=($,E)=>{R($,E),B(!1)},I=($,E)=>function(){W($,E)},Q=$=>{if(!Array.isArray(a.data)||!a.scroll)return;te()&&ne();const E=a.data.findIndex(L=>Pt(a,L)===k.value);E!==-1&&A(E,$)},ee=()=>{te()||K()};(0,t.watch)(()=>a.data,()=>{setTimeout(Q,0)}),(0,t.onMounted)(()=>{Q(!0)}),(0,t.onBeforeUnmount)(()=>{ee()}),d({});const oe=($,E)=>{if(h.item)return h.item({item:$,index:E});const L=vr(a,$,E),Z=[];if(h.text){const ie=h.text({item:$,index:E});Z.push(ie)}else{const ie=[];if(L?.doit===!0||of(a,$)){const Ue=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ie.push(Ue)}const ce=L?.num??af(a,$);if(ce){let Ue="";const ze=de(ce);ze>=100?Ue="99+":Ue=`${ze}`;const $t=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[Ue]);ie.push($t)}const fe={class:`${e}__titles-item-text`};ie.push(pr(a,$));const Ke=(0,t.h)("view",fe,ie);Z.push(Ke)}const le=(0,t.h)("view",{class:`${e}__titles-item-line`});return Z.push(le),(0,t.h)("view",{ref:T(E),class:q($,L),style:H($,L),key:x($,E),onClick:z($,E)},Z)},Y=()=>{const $=h.default?h.default():[];if($.length===0)for(let E=0;E<P.value.length;E++){const L=P.value[E],Z=oe(L,E);$.push(Z)}return(0,t.h)("view",{ref:v,class:p.value,style:g.value},$)},G=()=>{let $=null;return h.navigation?$=h.navigation():$=(0,t.h)(o),(0,t.h)("view",{class:`${e}__navigation`,onClick:S},[$])},F=()=>{const $=[];for(let E=0;E<P.value.length;E++){const L=P.value[E];let Z=null;h.popupItem?Z=h.popupItem({item:L,index:E}):Z=pr(a,L);const le=(0,t.h)("view",{class:M(L,E),key:x(L,E),onClick:I(L,E)},[Z]);$.push(le)}return(0,t.h)("view",{class:w.value,style:b.value},$)},te=()=>a.showScrollArrow&&a.direction=="horizontal",U=(0,t.ref)(!1),D=(0,t.ref)(!1),O=$=>{const E=v.value,L=y.value;if(!(!E||!L))if($==="left"){const Z=E.scrollLeft;let le=Z;for(let ie=0;ie<L.length;ie++){const ce=L[ie].offsetLeft;if(Z-ce<0)break;le=ce}C(E,le,.3,"horizontal")}else{const Z=E.scrollLeft;let le=Z,ie=E.offsetWidth;for(let ce=L.length-1;ce>=0;ce--){const fe=L[ce].offsetLeft+L[ce].offsetWidth;if(fe-Z<E.offsetWidth){le+=ie-fe;break}ie=fe}C(E,le,.3,"horizontal")}},j=Ie(()=>{const $=v.value;if(!$)return;let E=$.scrollLeft>0;E!==U.value&&(U.value=E);let L=$.scrollWidth-$.scrollLeft>$.offsetWidth;L!==D.value&&(D.value=L)},50),X=$=>{j()},ne=()=>{const $=v.value;$&&(j(),$.addEventListener("scroll",X))},K=()=>{const $=v.value;$&&$.removeEventListener("scroll",X)},_=$=>{if($==="left"&&U.value!==!0||$==="right"&&D.value!==!0)return null;let E=null;return $==="left"?h.leftArrow?E=h.leftArrow():E=(0,t.h)(l):h.rightArrow?E=h.rightArrow():E=(0,t.h)(r),(0,t.h)("view",{class:[`${e}__scroll-arrow`,$],onClick:()=>{O($)}},[E])};return()=>{const $=[],E=Y();if($.push(E),te()){const L=_("left");L&&$.push(L);const Z=_("right");Z&&$.push(Z)}else if(a.showQuickNavigation){const L=G();$.push(L);const Z=F();$.push(Z)}return(0,t.h)("view",{class:c.value},$)}}}}var{create:sf,componentName:uf,scope:cf}=J("tabs-bar"),df=sf(rf(uf,cf,ae.MoreH,ae.Left,ae.Right,!1)),an=df,xi=Symbol("TabsStatesKey"),So={prop:{type:[String]},modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},transition:{type:[Boolean],default:()=>!0},height:{type:[String,Number]},width:{type:[String,Number]}},ff=15,mf=300,pf=200;function hf(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function gr(e,n=0,o,l,r=pf){o==="end"?e.style.transition=`transform ${r}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 vf=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,r){this.onStart=e,this.onMove=n,this.onEnd=o,this.momentumReduceRatio=l,this.isTouch=r??tl()}open(e){this.el=e;const n=nl(),o=(l,r,i)=>{const a={delta:l,direction:r,type:i};this.onMove(a)};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 r={delta:0,type:"start",direction:this.direction};this.onStart(r)},this.touchmove=l=>{if(!this.moving)return;n.move(l);let r=0;if(this.direction==="horizontal"){if(n.isVertical())return;r=n.state.deltaX}else{if(n.isHorizontal())return;r=n.state.deltaY}o(r,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 r=n.state.duration;r<mf&&Math.abs(l)>ff?(l=hf(l,r,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 gf(e,n,o,l=1,r){return new vf(e,n,o,l,r)}function yf(e,n,o=!1){return{props:So,emits:["update:modelValue","change"],setup(l,r){const{emitEvent:i,exposeApi:a}=Oe({context:r},l.prop),{slots:u}=r,s=(0,t.shallowRef)([]),d={current:(0,t.ref)(l.modelValue??""),direction:(0,t.ref)(l.direction),transition:l.transition,tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:T=>{const A={name:T};d.current.value===T&&(A.loaded=!0),s.value.push(A),(0,t.triggerRef)(s)},remove:T=>{const A=s.value.findIndex(C=>C.name===T);A!==-1&&s.value.splice(A,1)},isLoaded:T=>{if(!l.lazy)return!0;const A=s.value.findIndex(C=>C.name===T);return A!==-1?d.current.value?s.value[A].loaded??!1:A===0:!1}};(0,t.provide)(xi,d);const h=T=>{const A=s.value.findIndex(C=>C.name===T);A!==-1&&(s.value[A].loaded=!0,(0,t.triggerRef)(s))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([T,A])=>{d.current.value!==T&&(d.current.value=T??"",h(T??"")),d.direction.value!==A&&(d.direction.value=A)});const c=(0,t.ref)(null),p=(0,t.ref)(null),g=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),N=(0,t.computed)(()=>{const T={};if(l.width){const A=he(l.width);A&&(T.width=A)}if(l.height){const A=he(l.height);A&&(T.height=A)}return T});let k=!0;const w=(0,t.computed)(()=>{const T={};if(l.transition===!1)return T;const A=s.value.length;if(A<=0)return T;const C=s.value.findIndex(q=>q.name===d.current.value);return d.direction.value==="vertical"?d.tabHeight.value>0&&(T.height=`${A*d.tabHeight.value}px`,C!==-1&&(T.transform=`translate(0, -${C*d.tabHeight.value}px)`)):d.tabWidth.value>0&&(T.width=`${A*d.tabWidth.value}px`,C!==-1&&(T.transform=`translate(-${C*d.tabWidth.value}px, 0)`)),k&&(k=!1,T.transition="transform 0s ease"),T}),b={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},f=T=>{const A=s.value.length,C=s.value.findIndex(q=>q.name===d.current.value);b.moved=0,T.direction==="vertical"?(b.min=-1*(d.tabHeight.value*(A-1)+d.tabHeight.value/4),b.max=d.tabHeight.value/4,b.start=-C*d.tabHeight.value,b.itemDistance=d.tabHeight.value):(b.min=-1*(d.tabWidth.value*(A-1)+d.tabWidth.value/4),b.max=d.tabWidth.value/4,b.start=-C*d.tabWidth.value,b.itemDistance=d.tabWidth.value)},m=T=>{const A=p.value;if(!A)return;let C=b.start+T.delta;if(C>b.max?C=b.max:C<b.min&&(C=b.min),T.type==="move")gr(A,C,"move",T.direction,300);else if(T.type==="end"){let q=Math.floor(Math.abs(C)*1/b.itemDistance);const H=Math.abs(C)%b.itemDistance;b.start>C?H>=b.itemDistance*b.triggerAutoMoveRatio&&(q+=1):H>b.itemDistance-b.itemDistance*b.triggerAutoMoveRatio&&(q+=1),C=-1*q*b.itemDistance,gr(A,C,"end",T.direction,300),b.moved=C;const x=s.value[q].name;d.current.value=x??"",h(x??""),i("update:modelValue",x)}},S=()=>{},B=()=>{if(!c.value)return;const T=Fn(c.value);d.tabWidth.value=T.width,d.tabHeight.value=T.height},v=Cn(B,250);let y=null,V=null;return(0,t.onMounted)(()=>{l.transition!==!1&&c.value&&(B(),window.ResizeObserver&&(V=new window.ResizeObserver(v),V.observe(c.value)),l.draggle&&(y=gf(f,m,S),y.open(p.value)))}),(0,t.onBeforeUnmount)(()=>{V&&(V.disconnect(),V=null),y&&y.close()}),a({doLayout(){B()}}),()=>{const T=(0,t.h)("view",{class:`${e}__panes`,style:w.value,ref:p},[u?.default?.()]);return(0,t.h)("view",{class:g.value,style:N.value,ref:c},[T])}}}}var{create:bf,componentName:Sf,scope:kf}=J("tabs-container"),wf=bf(yf(Sf,kf,!1)),rn=wf,Cf={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 Nf(e,n,o){return{props:Cf,setup(l,{emit:r,slots:i}){const a=(0,t.inject)(xi);(0,t.onMounted)(()=>{a.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{a.remove(l.paneKey)});const u=(0,t.computed)(()=>{const h=[e];return a.direction.value==="vertical"?h.push("is-vertical"):h.push("is-horizontal"),a.transition===!1?h.push("is-no-transition"):h.push("is-transition"),h}),s=(0,t.computed)(()=>{const h={};return a.transition===!1?(a.current.value!==l.paneKey&&(h.display="none"),h):(a.direction.value==="vertical"&&a.tabHeight.value>0?h.height=`${a.tabHeight.value}px`:a.tabWidth.value>0&&(h.width=`${a.tabWidth.value}px`),h)}),d=(0,t.computed)(()=>l.loaded!=null?Se(l.loaded):a.isLoaded(l.paneKey));return()=>{let h=[];if(d.value)h=i?.default?.()??[];else if(i.empty)h=i.empty();else{const c={class:`${e}__empty-icon`},p=(0,t.h)(l.emptyIcon??o,c),g=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),N=(0,t.h)("view",{class:`${e}__empty`},[p,g]);h.push(N)}return(0,t.h)("view",{class:u.value,style:s.value,prop:l.paneKey},h)}}}}var{create:Af,componentName:Bf,scope:Tf}=J("tabs-pane"),Vf=Af(Nf(Bf,Tf,ae.Loading)),ll=Vf,yr=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=hn(e,null,this.config)}updateChildren(e,n){n?n.children=hn(e,n,this.config):this.nodes=hn(e,null,this.config)}getNodeByValue(e){let n;return Vi(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(r=>r.value===e[r.level]);if(!l)break;n.push(l),o=l.children}return n}isLeaf(e,n){const{leaf:o,children:l}=e,r=Array.isArray(l)&&!!l.length;return o||!r&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:o}=e;return Array.isArray(o)&&!!o.length}},{create:xf,scope:Ef}=J("cascader-pane"),$f=xf({components:{Loading:ae.Loading,Checklist:ae.Checklist,TabsBar:an,TabsContainer:rn,TabsPane:ll},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,ve.useFoxI18n)(Ef),l=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),r=(0,t.ref)(0),i=(0,t.ref)(),a=(0,t.ref)(!1),u=(0,t.ref)(e.modelValue),s=(0,t.ref)(new yr([],{})),d=(0,t.ref)([]),h=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),c=(0,t.computed)(()=>a.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((m,S)=>({text:m.selectedNode?m.selectedNode.text:o("select"),value:S}))),p=new Map;let g;const N=async()=>{p.clear(),d.value=[],r.value=0,a.value=!1,g=null;let{options:m}=e;l.value.convertConfig&&(m=nf(m,l.value.convertConfig)),s.value=new yr(m,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),h.value&&!s.value.nodes.length&&await w({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:s.value.nodes,selectedNode:null}],k(!h.value)},k=async(m=!0)=>{const S=u.value;if(S===void 0||!s.value.nodes.length)return;if(S.length===0){r.value=0,d.value=[{nodes:s.value.nodes,selectedNode:null}];return}let B=S;if(h.value&&Array.isArray(S)&&S.length){B=[];let v=s.value.nodes.find(y=>y.value===S[0]);v&&(B=[v.value],a.value=!0,await w(await S.slice(1).reduce(async(y,V)=>{const T=await y;await w(T);const A=T&&T?.children?.find(C=>C.value===V);return A&&B.push(V),Promise.resolve(A)},Promise.resolve(v))),a.value=!1)}B.length&&S===e.modelValue&&s.value.getPathNodesByValue(B).map((v,y)=>{r.value=y,f.handleNode(v,m)})},w=async m=>{if(!m)return;if(!l.value.lazyLoad){m.leaf=!0;return}if(s.value.isLeaf(m,h.value)||s.value.hasChildren(m,h.value))return;m.loading=!0;const S=m.root?null:m;let B=p.get(m);B||(B=new Promise(y=>{l.value.lazyLoad?.(m,y)}),p.set(m,B));const v=await B;Array.isArray(v)&&v.length>0?s.value.updateChildren(v,S):m.leaf=!0,m.loading=!1,p.delete(m)},b=m=>{const S=m.map(B=>B.value);u.value=S,n("change",S,m),n("pathChange",m),n("update:modelValue",S)},f={async handleNode(m,S){const{disabled:B,loading:v}=m;if(!(!S&&B||!d.value[r.value])){if(s.value.isLeaf(m,h.value)){if(m.leaf=!0,d.value[r.value].selectedNode=m,d.value=d.value.slice(0,m.level+1),!S){const y=d.value.map(V=>V.selectedNode);b(y),n("pathChange",y)}return}if(s.value.hasChildren(m,h.value)){const y=m.level+1;d.value[r.value].selectedNode=m,d.value=d.value.slice(0,y),d.value.push({nodes:m.children||[],selectedNode:null}),r.value=y,S||n("pathChange",d.value.map(V=>V.selectedNode));return}g=m,!v&&(await w(m),g===m&&(d.value[r.value].selectedNode=m,f.handleNode(m,S)))}},handleTabChange(m,S){g=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:o("select")},isSelected(m,S){return m.selectedNode&&m.selectedNode.value===S.value}};return(0,t.watch)([l,()=>e.options],()=>{N()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,m=>{Ee(m,u.value)||(u.value=m,k(!h.value))}),(0,t.watch)(()=>e.visible,m=>{m&&Array.isArray(u.value)&&u.value.length>0&&k(),m&&i.value&&setTimeout(()=>{i.value.doLayout()},0)}),{panes:d,panesTitles:c,initLoading:a,tabsCursor:r,tabsContainerRef:i,...f}}}),Df={class:"fox-cascader"},If={role:"menu",class:"fox-cascader__pane"},qf=["aria-checked","aria-disabled","onClick"],Pf={class:"fox-cascader__item__title"};function Mf(e,n,o,l,r,i){const a=(0,t.resolveComponent)("TabsBar"),u=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Checklist"),d=(0,t.resolveComponent)("TabsPane"),h=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",Df,[(0,t.createVNode)(a,{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)(h,{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,p)=>((0,t.openBlock)(),(0,t.createBlock)(d,{"pane-key":p,key:p},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",If,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.nodes,g=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:g.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(c,g),disabled:g.disabled}]),"aria-checked":e.isSelected(c,g),"aria-disabled":g.disabled||void 0,role:"menuitemradio",onClick:N=>e.handleNode(g,!1)},[(0,t.createElementVNode)("view",Pf,(0,t.toDisplayString)(g.text),1),g.loading?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,qf))),128))])]),_:2},1032,["pane-key"]))),128)):((0,t.openBlock)(),(0,t.createBlock)(d,{key:1,"pane-key":0},{default:(0,t.withCtx)(()=>[...n[2]||(n[2]=[(0,t.createElementVNode)("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}var zf=re($f,[["render",Mf]]),{create:Rf}=J("cascader"),Lf=Rf({components:{CascaderPane:zf,Wrapper:ef},props:{...Je,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(a){n("update:visible",a)}}),r=(a,u)=>{o.value=a,l.value=!1,n("change",a,u),n("update:modelValue",a)},i=a=>{n("pathChange",a)};return(0,t.watch)(()=>e.modelValue,a=>{a!==o.value&&(o.value=a)}),{onChange:r,onPathChange:i,innerValue:o,innerVisible:l}}}),Ff=["innerHTML"];function Of(e,n,o,l,r,i){const a=(0,t.resolveComponent)("CascaderPane"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(u,{poppable:e.poppable,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),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,Ff)):(0,t.createCommentVNode)("",!0)]),(0,t.createVNode)(a,{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 ol=re(Lf,[["render",Of]]);function Ct(e,n){return n[e.textKey??"text"]??""}function Nt(e,n){return n[e.valueKey??"value"]}function Ei(e,n){return n[e.childrenKey??"children"]}function mn(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const r=n[l],i=Ct(e,r),a=Nt(e,r);o.texts.push(i),o.values.push(a??"")}return o}function $i(e,n,o,l,r=[]){if(!o)return;const i=o[l];for(let a=0;a<n.length;a++)if(Ct(e,n[a])===i){const u=Nt(e,n[a])??"",s={[e.textKey]:i,[e.valueKey]:u};r.push(s);const d=Ei(e,n[a]);Array.isArray(d)&&$i(e,d,o,l+1,r);return}}function Di(e,n,o,l,r=[]){if(!o)return;const i=o[l];for(let a=0;a<n.length;a++)if(Nt(e,n[a])===i){const u=Ct(e,n[a])??"",s={[e.textKey]:u,[e.valueKey]:i};r.push(s);const d=Ei(e,n[a]);Array.isArray(d)&&Di(e,d,o,l+1,r);return}}function Nl(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 Kf=class{scope;constructor(e){this.scope=e}async load(e,n,o){const l="cascader";if(!e)return[];if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,o);const r=lt(l,this.scope);return r===null?(console.error(`${l} component not found api function`),[]):(xe(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await r(e,n,o))}};function Uf(){return new Kf(ct())}var Ii={modelValue:{type:[String,Array]},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:"/"},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]},emptyText:{type:[String]}},Hf={...ge,...be,...Ii};function _f(e,n,o,l,r,i,a,u=!1){return{props:Hf,emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:c,disabled:p,innerReadonly:g,readonly:N,browse:k}=Te(s),{emitEvent:w,exposeApi:b}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return N.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:f}=(0,ve.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),B=Uf(),v=(0,t.ref)([]),y=(0,t.ref)([]),V=(0,t.computed)(()=>{if(Array.isArray(y.value)){if(y.value.length===0&&s.emptyText)return s.emptyText;if(s.showAllLevels===!1){const _=y.value.length-1;return y.value[_]}return y.value.join(s.separator)}else return y.value??s.emptyText}),T=(0,t.ref)([]),A=(0,t.ref)([]);(0,t.watch)([()=>s.modelValue,()=>v.value],async([_,$])=>{if(w("setValue",_),s.lazy===!0){A.value.length==0&&(s.emptyText?y.value=[s.emptyText]:y.value=Array.isArray(_)?_:[],T.value=Array.isArray(_)?_:[]);return}if(s.valueType==="item"){let E=_;if(!Nl(s,E,A.value)){A.value=E;let L=mn(s,E);y.value=L.texts,T.value=L.values}}else if(s.valueType==="text"){let E=_,L=[];if($i(s,$,E,0,L),!Nl(s,L,A.value)){A.value=L;let Z=mn(s,L);y.value=Z.texts,T.value=Z.values}}else{let E=_,L=[];if(Di(s,$,E,0,L),!Nl(s,L,A.value)){A.value=L;let Z=mn(s,L);y.value=Z.texts,T.value=Z.values}}}),s.lazy===!0&&(T.value=Array.isArray(s.modelValue)?s.modelValue:[]),(0,t.watch)([()=>s.source,()=>s.params],async([_,$])=>{s.lazy||_&&(v.value=await B.load(_,$))},{immediate:!0});const C="fox-input-item",q=(0,t.computed)(()=>({[C]:!0,"is-disabled":p.value,"is-readonly":N.value})),H=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),x=(0,t.computed)(()=>{const _={};return H.value&&(_["text-align"]=H.value),_}),M=(0,t.ref)(!1),P=()=>{p.value===!0||N.value===!0||(M.value=!0)},R=_=>{M.value=_},z=(_,$)=>{let E=$.map(Z=>{if(Z==null)return Z;let le={...Z};return Reflect.deleteProperty(le,"text"),le[s.textKey]=Z.text??"",Reflect.deleteProperty(le,"value"),le[s.valueKey]=Z.value??"",le});A.value=E;let L=mn(s,E);y.value=L.texts,T.value=L.values,s.valueType==="text"?(w("change",y.value,E),w("update:modelValue",y.value)):s.valueType==="item"?(w("change",E,E),w("update:modelValue",E)):(w("change",T.value,E),w("update:modelValue",T.value)),w("update:pathNodes",E)},W=_=>{w("pathChange",_.map($=>{if($==null)return $;let E={...$};return Reflect.deleteProperty(E,"text"),E[s.textKey]=$.text??"",Reflect.deleteProperty(E,"value"),E[s.valueKey]=$.value??"",E}))},I=_=>{S.value=!0,w("focus",T.value,_)},Q=_=>{setTimeout(()=>{S.value=!1},0),w("blur",T.value,_)},ee=(0,t.computed)(()=>({[`${C}__append`]:!0,"is-disabled":p.value,"is-readonly":N.value})),oe=(0,t.computed)(()=>ke(s.unit)>0),Y=(0,t.computed)(()=>ke(s.unit)>0&&!S.value),G=(0,t.computed)(()=>({hidden:!Y.value})),F=_=>{A.value=[],y.value=[],T.value=[],w("update:modelValue",[]),w("change",[],_),w("clear",[]),w("update:pathNodes",[])},te=(0,t.computed)(()=>s.clearable&&!p.value&&!N.value),U=(0,t.computed)(()=>{let _=T.value&&T.value.length>0;return s.clearable&&_&&S.value}),D=_=>{U.value?F(_):P()},O=(0,t.computed)(()=>U.value&&te.value?r:i),j=(0,t.computed)(()=>({action:!0}));let X=null;const ne=()=>typeof X=="function"?X:typeof s.lazyLoad=="function"?s.lazyLoad:(X=async(_,$)=>{const E=[],L=[];let Z=0;if(!_.root){let le=_;for(;le;){const ie=Ct(s,le),ce=Nt(s,le);L.splice(0,0,ie),E.splice(0,0,ce),le=le._parent}Z=E.length}$(await B.load(s.source,{..._,level:Z,pathLabels:L,pathValues:E},!0))},X),K=(0,t.ref)();return b({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},select:()=>{K?.value.select()},setDisabled:_=>{c.value=_},setReadonly:_=>{g.value=_}}),()=>{if(k.value==="on"&&(N.value||p.value))return l(V.value,d.slots,s.emptyText);const _={class:q.value,style:x.value,ref:K,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:V.value,onClick:P,onFocus:I,onBlur:Q};u&&(_.disabled=!0);const $=[],E=(0,t.h)("input",_);$.push(E);const L=[],Z=(0,t.h)(O.value,{class:["action-icon"]}),le=(0,t.h)("view",{class:j.value,onClick:D},{default:()=>[Z]});if(L.push(le),oe.value){const $t=(0,t.h)("view",{class:G.value},[s.unit]);L.push($t)}const ie=(0,t.h)("view",{class:ee.value},{default:()=>L});$.push(ie);const ce={default:()=>$};ce.label=d.slots.default,ce.prepend=d.slots.prepend,ce.append=d.slots.append,ce.fixedPreTip=d.slots.fixedPreTip,ce.fixedTip=d.slots.fixedTip;const fe={};fe.visible=M.value,fe["onUpdate:visible"]=R,fe.modelValue=T.value,fe.onChange=z,fe.onPathChange=W,fe.title=s.title,fe.valueKey=s.valueKey,fe.textKey=s.textKey,fe.childrenKey=s.childrenKey,fe.convertConfig=s.convertConfig,s.lazy?(fe.lazy=!0,fe.lazyLoad=ne()):fe.options=v.value;const Ke={};Ke.header=d.slots.header;const Ue=(0,t.h)(a,fe,Ke);ce.hide=()=>[Ue];const ze={...tt(s,Ii),ref:h};return s.prop&&(ze.prop=`${s.prop}_item`),o(ze,ce)}}}}var{componentName:jf,create:Wf,scope:Yf}=J("cascader-item"),Xf=Wf(_f(jf,Yf,De,Pe,ae.CircleClose,ae.ArrowRight,ol,!1)),ko=Xf,Qf=We(((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,r=36e5,i="millisecond",a="second",u="minute",s="hour",d="day",h="week",c="month",p="quarter",g="year",N="date",k="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,f={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 M=["th","st","nd","rd"],P=x%100;return"["+x+(M[(P-20)%10]||M[P]||M[0])+"]"}},m=function(x,M,P){var R=String(x);return!R||R.length>=M?x:""+Array(M+1-R.length).join(P)+x},S={s:m,z:function(x){var M=-x.utcOffset(),P=Math.abs(M),R=Math.floor(P/60),z=P%60;return(M<=0?"+":"-")+m(R,2,"0")+":"+m(z,2,"0")},m:function x(M,P){if(M.date()<P.date())return-x(P,M);var R=12*(P.year()-M.year())+(P.month()-M.month()),z=M.clone().add(R,c),W=P-z<0,I=M.clone().add(R+(W?-1:1),c);return+(-(R+(P-z)/(W?z-I:I-z))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:c,y:g,w:h,d,D:N,h:s,m:u,s:a,ms:i,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},B="en",v={};v[B]=f;var y="$isDayjsObject",V=function(x){return x instanceof q||!(!x||!x[y])},T=function x(M,P,R){var z;if(!M)return B;if(typeof M=="string"){var W=M.toLowerCase();v[W]&&(z=W),P&&(v[W]=P,z=W);var I=M.split("-");if(!z&&I.length>1)return x(I[0])}else{var Q=M.name;v[Q]=M,z=Q}return!R&&z&&(B=z),z||!R&&B},A=function(x,M){if(V(x))return x.clone();var P=typeof M=="object"?M:{};return P.date=x,P.args=arguments,new q(P)},C=S;C.l=T,C.i=V,C.w=function(x,M){return A(x,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var q=(function(){function x(P){this.$L=T(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[y]=!0}var M=x.prototype;return M.parse=function(P){this.$d=(function(R){var z=R.date,W=R.utc;if(z===null)return new Date(NaN);if(C.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var I=z.match(w);if(I){var Q=I[2]-1||0,ee=(I[7]||"0").substring(0,3);return W?new Date(Date.UTC(I[1],Q,I[3]||1,I[4]||0,I[5]||0,I[6]||0,ee)):new Date(I[1],Q,I[3]||1,I[4]||0,I[5]||0,I[6]||0,ee)}}return new Date(z)})(P),this.init()},M.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},M.$utils=function(){return C},M.isValid=function(){return this.$d.toString()!==k},M.isSame=function(P,R){var z=A(P);return this.startOf(R)<=z&&z<=this.endOf(R)},M.isAfter=function(P,R){return A(P)<this.startOf(R)},M.isBefore=function(P,R){return this.endOf(R)<A(P)},M.$g=function(P,R,z){return C.u(P)?this[R]:this.set(z,P)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(P,R){var z=this,W=!!C.u(R)||R,I=C.p(P),Q=function(D,O){var j=C.w(z.$u?Date.UTC(z.$y,O,D):new Date(z.$y,O,D),z);return W?j:j.endOf(d)},ee=function(D,O){return C.w(z.toDate()[D].apply(z.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(O)),z)},oe=this.$W,Y=this.$M,G=this.$D,F="set"+(this.$u?"UTC":"");switch(I){case g:return W?Q(1,0):Q(31,11);case c:return W?Q(1,Y):Q(0,Y+1);case h:var te=this.$locale().weekStart||0,U=(oe<te?oe+7:oe)-te;return Q(W?G-U:G+(6-U),Y);case d:case N:return ee(F+"Hours",0);case s:return ee(F+"Minutes",1);case u:return ee(F+"Seconds",2);case a:return ee(F+"Milliseconds",3);default:return this.clone()}},M.endOf=function(P){return this.startOf(P,!1)},M.$set=function(P,R){var z,W=C.p(P),I="set"+(this.$u?"UTC":""),Q=(z={},z[d]=I+"Date",z[N]=I+"Date",z[c]=I+"Month",z[g]=I+"FullYear",z[s]=I+"Hours",z[u]=I+"Minutes",z[a]=I+"Seconds",z[i]=I+"Milliseconds",z)[W],ee=W===d?this.$D+(R-this.$W):R;if(W===c||W===g){var oe=this.clone().set(N,1);oe.$d[Q](ee),oe.init(),this.$d=oe.set(N,Math.min(this.$D,oe.daysInMonth())).$d}else Q&&this.$d[Q](ee);return this.init(),this},M.set=function(P,R){return this.clone().$set(P,R)},M.get=function(P){return this[C.p(P)]()},M.add=function(P,R){var z,W=this;P=Number(P);var I=C.p(R),Q=function(Y){var G=A(W);return C.w(G.date(G.date()+Math.round(Y*P)),W)};if(I===c)return this.set(c,this.$M+P);if(I===g)return this.set(g,this.$y+P);if(I===d)return Q(1);if(I===h)return Q(7);var ee=(z={},z[u]=l,z[s]=r,z[a]=o,z)[I]||1,oe=this.$d.getTime()+P*ee;return C.w(oe,this)},M.subtract=function(P,R){return this.add(-1*P,R)},M.format=function(P){var R=this,z=this.$locale();if(!this.isValid())return z.invalidDate||k;var W=P||"YYYY-MM-DDTHH:mm:ssZ",I=C.z(this),Q=this.$H,ee=this.$m,oe=this.$M,Y=z.weekdays,G=z.months,F=z.meridiem,te=function(O,j,X,ne){return O&&(O[j]||O(R,W))||X[j].slice(0,ne)},U=function(O){return C.s(Q%12||12,O,"0")},D=F||function(O,j,X){var ne=O<12?"AM":"PM";return X?ne.toLowerCase():ne};return W.replace(b,(function(O,j){return j||(function(X){switch(X){case"YY":return String(R.$y).slice(-2);case"YYYY":return C.s(R.$y,4,"0");case"M":return oe+1;case"MM":return C.s(oe+1,2,"0");case"MMM":return te(z.monthsShort,oe,G,3);case"MMMM":return te(G,oe);case"D":return R.$D;case"DD":return C.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return te(z.weekdaysMin,R.$W,Y,2);case"ddd":return te(z.weekdaysShort,R.$W,Y,3);case"dddd":return Y[R.$W];case"H":return String(Q);case"HH":return C.s(Q,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return D(Q,ee,!0);case"A":return D(Q,ee,!1);case"m":return String(ee);case"mm":return C.s(ee,2,"0");case"s":return String(R.$s);case"ss":return C.s(R.$s,2,"0");case"SSS":return C.s(R.$ms,3,"0");case"Z":return I}return null})(O)||I.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(P,R,z){var W,I=this,Q=C.p(R),ee=A(P),oe=(ee.utcOffset()-this.utcOffset())*l,Y=this-ee,G=function(){return C.m(I,ee)};switch(Q){case g:W=G()/12;break;case c:W=G();break;case p:W=G()/3;break;case h:W=(Y-oe)/6048e5;break;case d:W=(Y-oe)/864e5;break;case s:W=Y/r;break;case u:W=Y/l;break;case a:W=Y/o;break;default:W=Y}return z?W:C.a(W)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return v[this.$L]},M.locale=function(P,R){if(!P)return this.$L;var z=this.clone(),W=T(P,R,!0);return W&&(z.$L=W),z},M.clone=function(){return C.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},x})(),H=q.prototype;return A.prototype=H,[["$ms",i],["$s",a],["$m",u],["$H",s],["$W",d],["$M",c],["$y",g],["$D",N]].forEach((function(x){H[x[1]]=function(M){return this.$g(M,x[0],x[1])}})),A.extend=function(x,M){return x.$i||(x(M,q,A),x.$i=!0),A},A.locale=T,A.isDayjs=V,A.unix=function(x){return A(1e3*x)},A.en=v[B],A.Ls=v,A.p={},A}))})),Gf=We(((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,r=/\d/,i=/\d\d/,a=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},d=function(w){return(w=+w)+(w>68?1900:2e3)},h=function(w){return function(b){this[w]=+b}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(w){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var f=b.match(/([+-]|\d\d)/g),m=60*f[1]+(+f[2]||0);return m===0?0:f[0]==="+"?-m:m})(w)}],p=function(w){var b=s[w];return b&&(b.indexOf?b:b.s.concat(b.f))},g=function(w,b){var f,m=s.meridiem;if(m){for(var S=1;S<=24;S+=1)if(w.indexOf(m(S,0,b))>-1){f=S>12;break}}else f=w===(b?"pm":"PM");return f},N={A:[u,function(w){this.afternoon=g(w,!1)}],a:[u,function(w){this.afternoon=g(w,!0)}],Q:[r,function(w){this.month=3*(w-1)+1}],S:[r,function(w){this.milliseconds=100*+w}],SS:[i,function(w){this.milliseconds=10*+w}],SSS:[/\d{3}/,function(w){this.milliseconds=+w}],s:[a,h("seconds")],ss:[a,h("seconds")],m:[a,h("minutes")],mm:[a,h("minutes")],H:[a,h("hours")],h:[a,h("hours")],HH:[a,h("hours")],hh:[a,h("hours")],D:[a,h("day")],DD:[i,h("day")],Do:[u,function(w){var b=s.ordinal,f=w.match(/\d+/);if(this.day=f[0],b)for(var m=1;m<=31;m+=1)b(m).replace(/\[|\]/g,"")===w&&(this.day=m)}],w:[a,h("week")],ww:[i,h("week")],M:[a,h("month")],MM:[i,h("month")],MMM:[u,function(w){var b=p("months"),f=(p("monthsShort")||b.map((function(m){return m.slice(0,3)}))).indexOf(w)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[u,function(w){var b=p("months").indexOf(w)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,h("year")],YY:[i,function(w){this.year=d(w)}],YYYY:[/\d{4}/,h("year")],Z:c,ZZ:c};function k(w){for(var b=w,f=s&&s.formats,m=(w=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(A,C,q){var H=q&&q.toUpperCase();return C||f[q]||o[q]||f[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,M,P){return M||P.slice(1)}))}))).match(l),S=m.length,B=0;B<S;B+=1){var v=m[B],y=N[v],V=y&&y[0],T=y&&y[1];m[B]=T?{regex:V,parser:T}:v.replace(/^\[|\]$/g,"")}return function(A){for(var C={},q=0,H=0;q<S;q+=1){var x=m[q];if(typeof x=="string")H+=x.length;else{var M=x.regex,P=x.parser,R=A.slice(H),z=M.exec(R)[0];P.call(C,z),A=A.replace(z,"")}}return(function(W){var I=W.afternoon;if(I!==void 0){var Q=W.hours;I?Q<12&&(W.hours+=12):Q===12&&(W.hours=0),delete W.afternoon}})(C),C}}return function(w,b,f){f.p.customParseFormat=!0,w&&w.parseTwoDigitYear&&(d=w.parseTwoDigitYear);var m=b.prototype,S=m.parse;m.parse=function(B){var v=B.date,y=B.utc,V=B.args;this.$u=y;var T=V[1];if(typeof T=="string"){var A=V[2]===!0,C=V[3]===!0,q=A||C,H=V[2];C&&(H=V[2]),s=this.$locale(),!A&&H&&(s=f.Ls[H]),this.$d=(function(R,z,W,I){try{if(["x","X"].indexOf(z)>-1)return new Date((z==="X"?1e3:1)*R);var Q=k(z)(R),ee=Q.year,oe=Q.month,Y=Q.day,G=Q.hours,F=Q.minutes,te=Q.seconds,U=Q.milliseconds,D=Q.zone,O=Q.week,j=new Date,X=Y||(ee||oe?1:j.getDate()),ne=ee||j.getFullYear(),K=0;ee&&!oe||(K=oe>0?oe-1:j.getMonth());var _,$=G||0,E=F||0,L=te||0,Z=U||0;return D?new Date(Date.UTC(ne,K,X,$,E,L,Z+60*D.offset*1e3)):W?new Date(Date.UTC(ne,K,X,$,E,L,Z)):(_=new Date(ne,K,X,$,E,L,Z),O&&(_=I(_).week(O).toDate()),_)}catch{return new Date("")}})(v,T,y,f),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),q&&v!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var x=T.length,M=1;M<=x;M+=1){V[1]=T[M-1];var P=f.apply(this,V);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}M===x&&(this.$d=new Date(""))}else S.call(this,B)}}}))})),Zf=We(((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 r=l.prototype,i=r.format;r.format=function(a){var u=this,s=this.$locale();if(!this.isValid())return i.bind(this)(a);var d=this.$utils(),h=(a||"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((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),c==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),c==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return c}}));return i.bind(this)(h)}}}))})),Jf=We(((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,r){var i=l.prototype,a=function(c){return c&&(c.indexOf?c:c.s)},u=function(c,p,g,N,k){var w=c.name?c:c.$locale(),b=a(w[p]),f=a(w[g]),m=b||f.map((function(B){return B.slice(0,N)}));if(!k)return m;var S=w.weekStart;return m.map((function(B,v){return m[(v+(S||0))%7]}))},s=function(){return r.Ls[r.locale()]},d=function(c,p){return c.formats[p]||(function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(N,k,w){return k||w.slice(1)}))})(c.formats[p.toUpperCase()])},h=function(){var c=this;return{months:function(p){return p?p.format("MMMM"):u(c,"months")},monthsShort:function(p){return p?p.format("MMM"):u(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(c,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(c,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return d(c.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return h.bind(this)()},r.localeData=function(){var c=s();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(p){return d(c,p)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(c){return u(s(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return u(s(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return u(s(),"weekdaysMin","weekdays",2,c)}}}))})),em=We(((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(r,i,a){var u=i.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=a(this).startOf(l).add(1,l).date(d),c=a(this).endOf(o);if(h.isBefore(c))return 1}var p=a(this).startOf(l).date(d).startOf(o).subtract(1,"millisecond"),g=this.diff(p,o,!0);return g<0?a(this).startOf("week").week():Math.ceil(g)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})),tm=We(((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 r=this.month(),i=this.week(),a=this.year();return i===1&&r===11?a+1:r===0&&i>=52?a-1:a}}}))})),nm=We(((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,r){l.prototype.dayOfYear=function(i){var a=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return i==null?a:this.add(i-a,"day")}}}))})),lm=We(((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(r,i){return this.isSame(r,i)||this.isAfter(r,i)}}}))})),om=We(((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(r,i){return this.isSame(r,i)||this.isBefore(r,i)}}}))})),Fe=Ye(Qf(),1),am=Ye(Gf(),1),rm=Ye(Zf(),1),im=Ye(Jf(),1),sm=Ye(em(),1),um=Ye(tm(),1),cm=Ye(nm(),1),dm=Ye(lm(),1),fm=Ye(om(),1);Fe.default.extend(im.default);Fe.default.extend(rm.default);Fe.default.extend(am.default);Fe.default.extend(sm.default);Fe.default.extend(um.default);Fe.default.extend(cm.default);Fe.default.extend(dm.default);Fe.default.extend(fm.default);var gt={format(e,n="YYYY-MM-DD"){return(0,Fe.default)(e).format(n)},parser(e,n){return(0,Fe.default)(e,n).toDate()},getDay(e,n,o){let l=n??new Date;const r=e*(1e3*60*60*24);return l=new Date(l.getTime()+r),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,r=typeof n=="string"?this.parser(n,o):n,i=l.getTime(),a=r.getTime();return i==a?0:i>a?1:-1},between(e,n,o,l){let r;l==="year"?r=new Date(new Date(n).setFullYear(n.getFullYear()+o)):l==="month"?r=new Date(new Date(n).setMonth(n.getMonth()+o)):r=new Date(new Date(n).setDate(n.getDate()+o));const i=e.getTime(),a=r.getTime(),u=n.getTime();return a>u?i>=u&&i<=a:i>=a&&i<=u},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")}},br=new Date().getFullYear(),wo={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"},Vn=(e,n,o)=>{let l;if(je(n)?l=n:typeof n=="string"&&ke(n)>0?l=gt.parser(n,o):l=new Date,l.toString()==="Invalid Date")return null;let r=Math.max(l.getTime(),e.minDate.getTime());return r=Math.min(r,e.maxDate.getTime()),new Date(r)},_l=(e,n,o)=>{je(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),gt.format(new Date(l),o)},Co={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(br-10,0,1),validator:je},maxDate:{type:Date,default:()=>new Date(br+10,11,31),validator:je},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:mm,scope:pm}=J("date-picker"),hm=mm({components:{Picker:on},props:{...Co},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=(0,ve.useFoxI18n)(pm),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"))},r=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,m=>{r.value=m});function i(m,S){return new Date(m,S,0).getDate()}const a=(m,S)=>{const B=e[`${m}Date`],v=B.getFullYear();let y=1,V=1,T=0,A=0;m==="max"&&(y=12,V=i(S.getFullYear(),S.getMonth()+1),T=23,A=59);const C=A;return S.getFullYear()===v&&(y=B.getMonth()+1,S.getMonth()+1===y&&(V=B.getDate(),S.getDate()===V&&(T=B.getHours(),S.getHours()===T&&(A=B.getMinutes())))),{[`${m}Year`]:v,[`${m}Month`]:y,[`${m}Date`]:V,[`${m}Hour`]:T,[`${m}Minute`]:A,[`${m}Seconds`]:C}},u=(0,t.computed)(()=>{if(!p.value)return[];const{maxYear:m,maxDate:S,maxMonth:B,maxHour:v,maxMinute:y,maxSeconds:V}=a("max",p.value),{minYear:T,minDate:A,minMonth:C,minHour:q,minMinute:H,minSeconds:x}=a("min",p.value);let M=[{type:"year",range:[T,m]},{type:"month",range:[C,B]},{type:"day",range:[A,S]},{type:"hour",range:[q,v]},{type:"minute",range:[H,y]},{type:"seconds",range:[x,V]}];switch(e.type){case"date":M=M.slice(0,3);break;case"datetime":M=M.slice(0,5);break;case"time":M=M.slice(3,6);break;case"year-month":M=M.slice(0,2);break;case"month-day":M=M.slice(1,3);break;case"datehour":M=M.slice(0,4);break;case"hour-minute":M=M.slice(3,5);break}return M}),s=(m,S,B,v,y)=>{const V=[];for(;m<=S;){let T=!0;if(typeof e.itemFilter=="function"){const A={text:`${m}`,value:m,type:B,currentYearMonth:v};T=e.itemFilter(A)}if(T)if(typeof e.itemFormatter=="function"){const A={text:`${m}`,value:m,type:B,currentYearMonth:v};e.itemFormatter(A),V.push({text:A.text,value:A.value})}else if(e.isShowChinese){let A=`${m}${l[B]}`;if(B==="day"){if(v[0]===y[0]&&v[1]===y[1]&&m===y[2])A=l.today;else{const C=new Date(v[0],v[1],m).getDay();A=`${A} ${l.fullWeekdays[C]}`}V.push({text:A,value:m})}else V.push({text:m+l[B],value:m})}else V.push({text:`${m}`,value:m});B==="minute"?m+=e.minuteStep:m++}return V},d=(0,t.computed)(()=>{const m=new Date,S=[m.getFullYear(),m.getMonth(),m.getDate()],B=[];p.value&&(B[0]=p.value.getFullYear(),B[1]=p.value.getMonth());let v=[];return u.value.forEach(y=>{let V=s(y.range[0],y.range[1],y.type,B,S);V&&v.push(V)}),v}),h=(m,S)=>m==="year"?S.getFullYear():m==="month"?S.getMonth()+1:m==="day"?S.getDate():m==="hour"?S.getHours():m==="minute"?S.getMinutes():m==="seconds"?S.getSeconds():0,c=(0,t.ref)(),p=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,m=>{let S;if(typeof m=="string"?m.length==0||m==="Invalid Date"?S=new Date:e.valueFormat?S=Vn(e,e.modelValue,e.valueFormat):S=Vn(e,m,wo[e.type]):je(m)?S=m:S=new Date,!!S&&(!p.value||S.getTime()!==p.value.getTime())){p.value=S;let B=[];u.value.forEach(v=>{let y=h(v.type,S);B.push(y)}),c.value=B}},{immediate:!0});const g=m=>{if(!m||m.length===0){p.value=new Date;let S=[];u.value.forEach(B=>{let v=h(B.type,p.value);S.push(v)}),c.value=S;return}if(e.type==="date"){const S=m[0],B=m[1]-1,v=Math.min(m[2],i(S,B+1));v!==m[2]&&(m[2]=v),p.value=new Date(S,B,v)}else if(e.type==="datetime"){const S=m[0],B=m[1]-1,v=Math.min(m[2],i(S,B+1)),y=m[3],V=m[4];v!==m[2]&&(m[2]=v),p.value=new Date(S,B,v,y,V)}else if(e.type==="time"){const S=m[0],B=m[1],v=m[2],y=p.value??new Date;p.value=new Date(y.getFullYear(),y.getMonth(),y.getDate(),S,B,v)}else if(e.type==="year-month"){const S=m[0],B=m[1]-1;p.value=new Date(S,B)}else if(e.type==="month-day"){const S=(p.value??new Date).getFullYear(),B=m[0]-1,v=Math.min(m[1],i(S,B+1));v!==m[1]&&(m[1]=v),p.value=new Date(S,B,v)}else if(e.type==="datehour"){const S=m[0],B=m[1]-1,v=Math.min(m[2],i(S,B+1)),y=m[3];v!==m[2]&&(m[2]=v),p.value=new Date(S,B,v,y)}else if(e.type==="hour-minute"){const S=m[0],B=m[1],v=p.value??new Date;p.value=new Date(v.getFullYear(),v.getMonth(),v.getDate(),S,B)}c.value=m};return{columns:d,dateIndexs:c,show:r,onChange:m=>{g(m)},onClose:()=>{n("update:close",!1)},onConfirm:m=>{g(m);const S=p.value??new Date;e.valueFormat?n("update:modelValue",_l(e,S,e.valueFormat)):n("update:modelValue",S),n("confirm",m)},onClear:()=>{n("clear")},onUpdateVisible:m=>{r.value=m,n("update:visible",m)}}}});function vm(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(a,{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 al=re(hm,[["render",vm]]),gm={format:{type:[String]},placeholder:{type:[String]},textAlign:{type:[String]},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}};function ym(e){let n=e.format;return n||(n=wo[e.type??"date"]),n}var bm={...ge,...be,...Co,...gm};function Sm(e,n,o,l,r,i,a,u=!1){return{props:bm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:c,disabled:p,innerReadonly:g,readonly:N,browse:k}=Te(s),{emitEvent:w,exposeApi:b}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return N.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:f}=(0,ve.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),v=qe(s,"modelValue",D=>D==null?null:typeof D=="string"?D.length==0?null:s.valueFormat?Vn(s,D,s.valueFormat)??D:Vn(s,D,wo[s.type])??D:je(D)?D:null,w),y=(0,t.computed)(()=>{if(!v.value)return"";const D=ym(s);return _l(s,v.value,D)}),V="fox-input-item",T=(0,t.computed)(()=>({[V]:!0,"is-disabled":p.value,"is-readonly":N.value})),A=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),C=(0,t.computed)(()=>{const D={};return A.value&&(D["text-align"]=A.value),D}),q=(0,t.ref)(!1),H=()=>{q.value=!0},x=()=>{q.value=!1};d.expose({showPicker:H,hidePicker:x});const M=D=>{q.value=D},P=D=>{if(v.value=D,s.valueFormat){let O=_l(s,D,s.valueFormat);w("update:modelValue",O,{}),w("change",O,{})}else w("update:modelValue",D,{}),w("change",D,{})},R=D=>{let O=D.target.value;S.value=!0,w("focus",O,D)},z=D=>{setTimeout(()=>{S.value=!1},0);let O=D.target.value;s.maxLength&&O.length>Number(s.maxLength)&&(O=O.slice(0,Number(s.maxLength))),w("blur",O,D)},W=(0,t.computed)(()=>({[`${V}__append`]:!0,"is-disabled":p.value,"is-readonly":N.value})),I=(0,t.computed)(()=>ke(s.unit)>0),Q=(0,t.computed)(()=>ke(s.unit)>0&&!S.value),ee=(0,t.computed)(()=>({hidden:!Q.value})),oe=D=>{v.value="",w("update:modelValue","",D),w("change","",D),w("clear",""),x()},Y=(0,t.computed)(()=>s.clearable&&!p.value&&!N.value),G=(0,t.computed)(()=>{let D=ke(v.value)>0;return s.clearable&&D&&S.value}),F=D=>{G.value?oe(D):H()},te=(0,t.computed)(()=>G.value&&Y.value?r:i),U=(0,t.computed)(()=>({action:!0}));return b({setDisabled:D=>{c.value=D},setReadonly:D=>{g.value=D}}),()=>{if(k.value==="on"&&(N.value||p.value))return l(y.value,d.slots);const D={class:T.value,style:C.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:y.value,onClick:H,onFocus:R,onBlur:z};u&&(D.disabled=!0);const O=[],j=(0,t.h)("input",D);O.push(j);const X=[],ne=(0,t.h)(te.value,{class:["action-icon"]}),K=(0,t.h)("view",{class:U.value,onClick:F},{default:()=>[ne]});if(X.push(K),I.value){const ie=(0,t.h)("view",{class:ee.value},[s.unit]);X.push(ie)}const _=(0,t.h)("view",{class:W.value},{default:()=>X});O.push(_);const $={default:()=>O};$.label=d.slots.default,$.prepend=d.slots.prepend,$.append=d.slots.append,$.fixedPreTip=d.slots.fixedPreTip,$.fixedTip=d.slots.fixedTip;const E=ye(s,Co);E.valueFormat=null,E.disabled=!1,E.readonly=p.value||N.value,E.visible=q.value,E["onUpdate:visible"]=M,E.modelValue=v.value,E["onUpdate:modelValue"]=P,E.onClear=oe;const L={};if(d.slots.top){const ie=d.slots.top();L.top=()=>ie}if(d.slots.bottom){const ie=d.slots.bottom();L.default=()=>ie}const Z=(0,t.h)(a,E,L);$.hide=()=>[Z];const le={...ye(s,be,ge),ref:h};return s.prop&&(le.prop=`${s.prop}_item`),o(le,$)}}}}var{create:km,componentName:wm,scope:Cm}=J("date-item"),Nm=km(Sm(wm,Cm,De,Pe,ae.CircleClose,ae.Date,al,!1)),No=Nm,se={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 r=new Date(Number(e),parseInt(n)-1,Number(o));let i=r.getDay();const a=r.getDate();let u=6-i;return l!==0&&(i=i==0?7:i,u=7-i),Math.ceil((a+u)/7)},getYearWeek:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),i=new Date(Number(e),0,1),a=Math.round((r.valueOf()-i.valueOf())/864e5);return Math.ceil((a+(i.getDay()+1-1))/7)},getWeekDate:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),i=r.getTime();let a=r.getDay();if(l===0){const s=i-a*864e5,d=i+(6-a)*864e5;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}else{a=a==0?7:a;const u=1440*60*1e3,s=i-(a-1)*u,d=i+(7-a)*u;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}},formatResultDate:function(e){const 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}},{create:Am,scope:Bm}=J("calendar-pane"),Tm=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},confirmText:{type:String},startText:{type:String},endText:{type:String},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:o,expose:l}){const{toLocaleRefs:r,t:i}=(0,ve.useFoxI18n)(Bm),a=r(e,["title","confirmText","startText","endText","today"]),u=JSON.parse(i("weekdays")),s=(0,t.ref)([...u.slice(e.firstDayOfWeek,7),...u.slice(0,e.firstDayOfWeek)]),d=(0,t.ref)(null),h=(0,t.ref)(null),c=(0,t.ref)(null),p=(0,t.ref)(null),g=(0,t.ref)(0),N=(0,t.computed)(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),k=(0,t.computed)(()=>o.btn),w=(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}),m=U=>U.split("-"),S=U=>se.isEqual(f.currDate[0],U),B=U=>se.isEqual(f.currDate[1],U),v=U=>f.currDate?.length>0?f.currDate?.some(D=>se.isEqual(D,U)):!1,y=(U,D)=>D.curData[0]+"-"+D.curData[1]+"-"+se.getNumTwoBit(+U.day),V=(U,D)=>{const O=y(U,D),{type:j}=e;return U.type=="curr"?se.isEqual(f.currDate,O)||(j=="range"||j=="week")&&(S(O)||B(O))||j=="multiple"&&v(O)?`${f.dayPrefix}--active`:f.propStartDate&&se.compareDate(O,f.propStartDate)||f.propEndDate&&se.compareDate(f.propEndDate,O)?`${f.dayPrefix}--disabled`:(j=="range"||j=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&se.compareDate(f.currDate[0],O)&&se.compareDate(O,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},T=()=>{const{type:U}=e;if(U=="range"&&f.chooseData.length==2||U!="range"){let D=f.chooseData.slice(0);U=="week"&&(D={weekDate:[C(f.chooseData[0]),C(f.chooseData[1])]}),n("choose",D),e.poppable&&n("update")}},A=(U,D,O=!1)=>{if(V(U,D)!=`${f.dayPrefix}--disabled`){const{type:j}=e;let[X,ne]=D.curData,K=[...D.curData];if(K[2]=se.getNumTwoBit(Number(U.day)),K[3]=`${K[0]}-${K[1]}-${K[2]}`,K[4]=se.getWhatDay(+K[0],+K[1],+K[2]),j=="multiple")if(f.currDate?.length>0){let _;f.currDate?.forEach(($,E)=>{$==K[3]&&(_=E)}),O?f.chooseData.push([...K]):_!==void 0?(f.currDate.splice(_,1),f.chooseData.splice(_,1)):(f.currDate.push(K[3]),f.chooseData.push([...K]))}else f.currDate=[K[3]],f.chooseData=[[...K]];else if(j=="range"){let _=Object.values(f.currDate).length;_==2||_==0?f.currDate=[K[3]]:se.compareDate(f.currDate[0],K[3])?Array.isArray(f.currDate)&&f.currDate.push(K[3]):Array.isArray(f.currDate)&&f.currDate.unshift(K[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...K]]:se.compareDate(f.chooseData[0][3],K[3])?f.chooseData=[...f.chooseData,[...K]]:f.chooseData=[[...K],...f.chooseData]}else if(j=="week"){let _=se.getWeekDate(X,ne,U.day,e.firstDayOfWeek);f.propStartDate&&se.compareDate(_[0],f.propStartDate)&&_.splice(0,1,f.propStartDate),f.propEndDate&&se.compareDate(f.propEndDate,_[1])&&_.splice(1,1,f.propEndDate),f.currDate=_,f.chooseData=[se.formatResultDate(_[0]),se.formatResultDate(_[1])]}else f.currDate=K[3],f.chooseData=[...K];if(!O){let _=f.chooseData;j=="week"&&(_={weekDate:[C(f.chooseData[0]),C(f.chooseData[1])]}),n("select",_),(e.isAutoBackFill||!e.poppable)&&T()}}},C=U=>{let[D,O,j]=U;return{date:U,monthWeekNum:se.getMonthWeek(D,O,j,e.firstDayOfWeek),yearWeekNum:se.getYearWeek(D,O,j,e.firstDayOfWeek)}},q=U=>{const D=U=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let O=parseInt(D.curData[0]),j=parseInt(D.curData[1].toString().replace(/^0/,""));switch(U){case"prev":j==1&&(O-=1),j=j==1?12:--j;break;case"next":j==12&&(O+=1),j=j==12?1:++j;break}return[O+"",se.getNumTwoBit(j),se.getMonthDays(String(O),String(j))+""]},H=(U,D,O)=>{let{year:j,month:X}=O;return D=="prev"&&U>=7&&(U-=7),Array.from(Array(U),(ne,K)=>({day:String(K+1),type:D,year:j,month:X}))},x=(U,D,O,j)=>{U=U-e.firstDayOfWeek;let{year:X,month:ne}=O;return D=="prev"&&U>=7&&(U-=7),Array.from(Array(j),(K,_)=>({day:String(_+1),type:D,year:X,month:ne})).slice(j-U)},M=(U,D)=>{const O=se.getMonthPreDay(+U[0],+U[1]);let j=Number(U[1])-1,X=Number(U[0]);j<=0&&(j=12,X+=1);const ne=se.getMonthDays(String(U[0]),String(U[1])),K=se.getMonthDays(X+"",j+""),_={year:U[0],month:U[1]},$={curData:U,title:i("monthTitle",{year:_.year,month:_.month}),monthData:[...x(O,"prev",{month:String(j),year:String(X)},K),...H(ne,"curr",_)],cssHeight:0,cssScrollHeight:0};$.cssHeight=39+64*($.monthData.length>35?6:5);let E=0;f.monthsData.length>0&&(E=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),$.cssScrollHeight=E,D=="next"?(!f.endData||!se.compareDate(`${f.endData[0]}-${f.endData[1]}-${se.getMonthDays(f.endData[0],f.endData[1])}`,`${U[0]}-${U[1]}-${U[2]}`))&&f.monthsData.push($):!f.startData||!se.compareDate(`${U[0]}-${U[1]}-${U[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift($):f.unLoadPrev=!0},P=()=>{let U=e.startDate?e.startDate:se.getDay(0),D=e.endDate?e.endDate:se.getDay(365);f.propStartDate=U,f.propEndDate=D,f.startData=m(U),f.endData=m(D),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const O={year:Number(f.startData[0]),month:Number(f.startData[1])},j={year:Number(f.endData[0]),month:Number(f.endData[1])};let X=j.month-O.month;j.year-O.year>0&&(X=X+12*(j.year-O.year)),X<=0&&(X=1),M(f.startData,"next");let ne=1;do M(q("next"),"next");while(ne++<X);if(f.monthsNum=X,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(U&&se.compareDate(f.currDate[0],U)&&f.currDate.splice(0,1,U),D&&se.compareDate(D,f.currDate[1])&&f.currDate.splice(1,1,D),f.defaultData=[...m(f.currDate[0]),...m(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let K=[],_={};f.currDate.forEach($=>{U&&!se.compareDate($,U)&&D&&!se.compareDate(D,$)&&(Object.hasOwnProperty.call(_,$)||(K.push($),_[$]=$))}),f.currDate=[...K],f.defaultData=[...m(K[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[K,_,$]=m(f.currDate[0]);f.currDate=se.getWeekDate(K,_,$,e.firstDayOfWeek),U&&se.compareDate(f.currDate[0],U)&&f.currDate.splice(0,1,U),D&&se.compareDate(D,f.currDate[1])&&f.currDate.splice(1,1,D),f.defaultData=[...m(f.currDate[0]),...m(f.currDate[1])]}}else f.currDate&&(U&&se.compareDate(f.currDate,U)?f.currDate=U:D&&!se.compareDate(f.currDate,D)&&(f.currDate=D),f.defaultData=[...m(f.currDate)])};l({scrollToDate:U=>{se.compareDate(U,f.propStartDate)?U=f.propStartDate:se.compareDate(U,f.propEndDate)||(U=f.propEndDate);let D=m(U);f.monthsData.forEach((O,j)=>{if(O.title==i("monthTitle",{year:D[0],month:D[1]})&&d.value){let X=f.monthsData[j].cssScrollHeight-d.value.scrollTop;if(e.toDateAnimation){let ne=0,K=setInterval(()=>{if(ne++,d.value){let _=X/10;d.value.scrollTop=d.value.scrollTop+_}ne>=10&&(clearInterval(K),d.value&&(d.value.scrollTop=f.monthsData[j].cssScrollHeight))},40)}else d.value.scrollTop=f.monthsData[j].cssScrollHeight}})},initPosition:()=>{d?.value&&(d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let U=0,D=0;f.defaultData.length>0&&f.monthsData.forEach((X,ne)=>{X.title==i("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(U=ne),(e.type=="range"||e.type=="week")&&X.title==i("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(D=ne)}),I(f.monthsNum,U),f.currentIndex=U,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),A({day:f.defaultData[5],type:"curr"},f.monthsData[D],!0)):e.type=="week"?A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(X=>{let ne=m(X),K=f.currentIndex;f.monthsData.forEach((_,$)=>{_.title==i("monthTitle",{year:ne[0],month:ne[1]})&&(K=$)}),A({day:ne[2],type:"curr"},f.monthsData[K],!0)}):A({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let O=f.monthsData[f.monthsData.length-1],j=O.cssHeight+O.cssScrollHeight;Qe(()=>{d?.value&&h?.value&&p?.value&&(g.value=d.value.clientHeight,h.value.style.height=`${j}px`,d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(j/(f.monthsNum+1))}});const I=(U,D)=>{U>=3?D>0&&D<U?f.defaultRange=[D-1,D+3]:D==0?f.defaultRange=[D,D+4]:D==U&&(f.defaultRange=[D-2,D+2]):f.defaultRange=[0,U+2],f.translateY=f.monthsData[f.defaultRange[0]].cssScrollHeight},Q=(U,D)=>(e.type=="range"||e.type=="week")&&U.type=="curr"&&V(U,D)=="fox-calendar__day--active",ee=(U,D)=>Q(U,D)&&S(y(U,D)),oe=(U,D)=>f.currDate.length>=2&&B(y(U,D))?Q(U,D):!1,Y=()=>{if(f.currDate.length>=2)return se.isEqual(f.currDate[0],f.currDate[1])},G=U=>{const D=`${U.year}-${U.month}-${Number(U.day)<10?"0"+U.day:U.day}`;return se.isEqual(D,se.date2Str(new Date))},F=U=>{if(f.monthsData.length<=1)return;const D=U.target.scrollTop;let O=Math.floor(D/f.avgHeight);if(O==0)D>=f.monthsData[O+1].cssScrollHeight&&(O+=1);else if(O>0&&O<f.monthsNum-1)D>=f.monthsData[O+1].cssScrollHeight&&(O+=1),D<f.monthsData[O].cssScrollHeight&&(O-=1);else{const j=Math.round(D+g.value);j<f.monthsData[O].cssScrollHeight+f.monthsData[O].cssHeight&&D>f.monthsData[O-1].cssScrollHeight&&(O-=1),O+1<=f.monthsNum&&j>=f.monthsData[O+1].cssScrollHeight+f.monthsData[O+1].cssHeight&&(O+=1),O>=1&&D<f.monthsData[O-1].cssScrollHeight&&(O-=1)}f.currentIndex!==O&&(f.currentIndex=O,I(f.monthsNum,O)),f.yearMonthTitle=f.monthsData[O].title},te=()=>{f.chooseData.splice(0),f.monthsData.splice(0),P()};return P(),(0,t.watch)(()=>e.defaultValue,U=>{U&&e.poppable&&te()}),{weeks:s,compConthsData:N,showTopBtn:k,topInfo:w,bottomInfo:b,rangeTip:Y,mothsViewScroll:F,getClass:V,isStartTip:ee,isEndTip:oe,chooseDay:A,isCurrDay:G,confirm:T,months:d,...(0,t.toRefs)(f),...(0,t.toRefs)(e),...a,monthsPanel:h,weeksPanel:c,viewArea:p}}}),Vm={class:"fox-calendar__header"},xm={key:0,class:"fox-calendar__header-title"},Em={key:1,class:"fox-calendar__header-slot"},$m={key:2,class:"fox-calendar__header-subtitle"},Dm={class:"fox-calendar__weekdays",ref:"weeksPanel"},Im={class:"fox-calendar__panel",ref:"monthsPanel"},qm={class:"fox-calendar__month-title"},Pm={class:"fox-calendar__days"},Mm=["onClick"],zm={class:"fox-calendar__day-value"},Rm={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Lm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Fm={key:2,class:"fox-calendar__day-tips--curr"},Om={key:4,class:"fox-calendar__day-tip"},Km={key:0,class:"fox-calendar__footer"};function Um(e,n,o,l,r,i){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",Vm,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",xm,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",Em,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",$m,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Dm,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.weeks,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:u},(0,t.toDisplayString)(a),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...a)=>e.mothsViewScroll&&e.mothsViewScroll(...a))},[(0,t.createElementVNode)("view",Im,[(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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:u},[(0,t.createElementVNode)("view",qm,(0,t.toDisplayString)(a.title),1),(0,t.createElementVNode)("view",Pm,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.monthData,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(s,a)]),onClick:h=>e.chooseDay(s,a)},[(0,t.createElementVNode)("view",zm,[(0,t.renderSlot)(e.$slots,"day",{date:s.type=="curr"?s:""},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.type=="curr"?s.day:""),1)])]),e.topInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",Rm,[(0,t.renderSlot)(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):(0,t.createCommentVNode)("",!0),e.bottomInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",Lm,[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.type=="curr"?s:""})])):(0,t.createCommentVNode)("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fm,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(s,a)?((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(s,a)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Om,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,Mm))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",Km,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...a)=>e.confirm&&e.confirm(...a))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var Hm=re(Tm,[["render",Um]]),_m=(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)(we,tt({...e},{poppable:!1}),n):n?.default?.()??null}}),jm=_m,Wm=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),xn={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:Ym}=J("calendar"),Xm=Ym({components:{Wrapper:jm,CalendarPane:Hm},props:{...xn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o,expose:l}){const r=(0,t.computed)(()=>o.btn),i=(0,t.computed)(()=>o["top-info"]),a=(0,t.computed)(()=>o.day),u=(0,t.computed)(()=>o["bottom-info"]),s=(0,t.ref)(null),d=w=>{s.value?.scrollToDate(w)},h=()=>{s.value?.initPosition()};(0,t.watch)(()=>e.visible,w=>{w&&(0,t.nextTick)(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),l({scrollToDate:d,initPosition:h});const c=()=>{n("update:visible",!1)},p=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{p()},update:c,close:p,select:w=>{n("select",w)},choose:w=>{p(),n("choose",w)},calendarRef:s,showTopBtn:r,topInfo:i,dayInfo:a,bottomInfo:u}}});function Qm(e,n,o,l,r,i){const a=(0,t.resolveComponent)("CalendarPane"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(u,(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)(a,{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)(s=>[(0,t.renderSlot)(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.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 rl=re(Xm,[["render",Qm]]),qi={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},maxLength:{type:[String,Number]},unit:{type:[String]}},Al=(e,n)=>{let o;return je(e)?o=e:typeof e=="string"&&ke(e)>0?o=se.parser(e,n):o=new Date,o},dt=(e,n,o)=>(je(n)||(n=new Date),se.format(n,o)),ft=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,se.date2Str(e),se.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],Gm={...ge,...be,...xn,...qi};function Zm(e,n,o,l,r,{CloseIcon:i,MarkIcon:a},u=!1){return{props:Gm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:h,disabled:c,readonly:p,browse:g}=Te(s),{emitEvent:N,exposeApi:k}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return c.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:w}=(0,ve.useFoxI18n)(n),b=w(s,["placeholder"]),f=(0,t.ref)(!1),m=(0,t.computed)(()=>s.type==="range"),S=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),B=()=>{S.startDate!==null&&(S.startDate=null,S.endDate=null,S.startArray=[],S.endArray=[])},v=(D,O="one",j="YYYY-MM-DD")=>{if(Wm(D)){B();return}if(m.value&&Array.isArray(D)&&D.length==2){let X,ne;typeof D[0]=="string"?(X=Al(D[0],j),ne=Al(D[1],j)):(X=D[0],ne=D[1]);let K=ft(X),_=ft(ne);(S.startDate===null||S.startDate.getTime()!==X.getTime()||S.endDate?.getTime()!==ne.getTime())&&(S.startDate=X,S.startArray=K,S.endDate=ne,S.endArray=_)}else{let X;typeof D=="string"?X=Al(D,j):X=D;let ne=ft(X);(S.startDate===null||S.startDate.getTime()!==X.getTime())&&(S.startDate=X,S.startArray=ne)}};v(s.modelValue,s.type,s.valueFormat),(0,t.watch)(()=>s.modelValue,D=>{v(D,s.type,s.valueFormat),N("setValue",D)});const y=(0,t.computed)(()=>{if(S.startDate===null)return"";if(m.value){let D=dt(s,S.startDate,s.format),O=dt(s,S.endDate,s.format);return`${D} ${s.rangeSeparator} ${O}`}else{let D=dt(s,S.startDate,s.format);return s.showWeek&&(D=`${D} ${S.startArray[4]}`),D}}),V=(0,t.computed)(()=>S.startDate===null?null:m.value?[se.date2Str(S.startDate),se.date2Str(S.endDate??new Date)]:se.date2Str(S.startDate)),T="fox-input-item",A=(0,t.computed)(()=>({[T]:!0,"is-disabled":c.value,"is-readonly":p.value})),C=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),q=(0,t.computed)(()=>{const D={};return C.value&&(D["text-align"]=C.value),D}),H=(0,t.ref)(!1),x=()=>{p.value||c.value||(H.value=!0)},M=D=>{H.value=D},P=D=>{if(D){if(m.value&&Array.isArray(D)){let O=D[0],j=de(O[0]),X=de(O[1]),ne=de(O[2]),K=new Date(j,X-1,ne),_=D[1];j=de(_[0]),X=de(_[1]),ne=de(_[2]);let $=new Date(j,X-1,ne);S.startDate=K,S.startArray=ft(K),S.endDate=$,S.endArray=ft($),s.valueFormat?N("update:modelValue",[dt(s,K,s.valueFormat),dt(s,$,s.valueFormat)],{}):N("update:modelValue",[K,$],{})}else{let O=D,j=de(O[0]),X=de(O[1]),ne=de(O[2]),K=new Date(j,X-1,ne);S.startDate=K,S.startArray=ft(K),s.valueFormat?N("update:modelValue",dt(s,K,s.valueFormat),{}):N("update:modelValue",K,{})}N("change",D,{})}},R=D=>{let O=D.target.value;f.value=!0,N("focus",O,D)},z=D=>{setTimeout(()=>{f.value=!1},0);let O=D.target.value;s.maxLength&&O.length>Number(s.maxLength)&&(O=O.slice(0,Number(s.maxLength))),N("blur",O,D)},W=(0,t.computed)(()=>({[`${T}__append`]:!0,"is-disabled":c.value,"is-readonly":p.value})),I=(0,t.computed)(()=>ke(s.unit)>0),Q=(0,t.computed)(()=>ke(s.unit)>0&&!f.value),ee=(0,t.computed)(()=>({hidden:!Q.value})),oe=D=>{B(),N("update:modelValue",null,D),N("change","",D),N("clear","")},Y=(0,t.computed)(()=>s.clearable&&!c.value&&!p.value),G=(0,t.computed)(()=>{let D=ke(y.value)>0;return s.clearable&&D&&f.value}),F=D=>{G.value?oe(D):x()},te=(0,t.computed)(()=>G.value&&Y.value?i:a),U=(0,t.computed)(()=>({action:!0}));return k(),()=>{if(g.value==="on"&&(p.value||c.value))return r(y.value,d.slots);const D={class:A.value,style:q.value,type:"text",maxlength:s.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:y.value,onClick:x,onFocus:R,onBlur:z};u&&(D.disabled=!0);const O=[],j=(0,t.h)("input",D);O.push(j);const X=[],ne=(0,t.h)(te.value,{class:["action-icon"]}),K=(0,t.h)("view",{class:U.value,onClick:F},{default:()=>[ne]});if(X.push(K),I.value){const ie=(0,t.h)("view",{class:ee.value},[s.unit]);X.push(ie)}const _=(0,t.h)("view",{class:W.value},{default:()=>X});O.push(_);const $={default:()=>O};$.label=d.slots.default,$.prepend=d.slots.prepend,$.append=d.slots.append,$.fixedPreTip=d.slots.fixedPreTip,$.fixedTip=d.slots.fixedTip;const E=ye(s,xn);E.visible=H.value,E["onUpdate:visible"]=M,E["default-value"]=V.value,E.onChoose=P;const L={};if(d.slots.btn){const ie=d.slots.btn();L.btn=()=>ie}d.slots.day&&(L.day=d.slots.day),d.slots.topInfo&&(L.topInfo=d.slots.topInfo),d.slots.bottomInfo&&(L.bottomInfo=d.slots.bottomInfo);const Z=(0,t.h)(o,E,L);$.hide=()=>[Z];const le={...tt(s,xn,qi),ref:h};return s.prop&&(le.prop=`${s.prop}_item`),l(le,$)}}}}var{componentName:Jm,create:e0,scope:t0}=J("calendar-item"),n0=e0(Zm(Jm,t0,rl,De,Pe,{CloseIcon:ae.CircleClose,MarkIcon:ae.Date},!1)),Ao=n0,l0={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 o0(e,{CheckNormal:n,Checked:o}){return{props:{...l0},setup(l,{emit:r,slots:i}){const a=(0,t.inject)("parent",null),u=On(),s=(0,t.computed)(()=>a.label.value===l.label),d=(0,t.computed)(()=>a.position),h=()=>{const k=[];if(s.value){if(i.checkedIcon)return i.checkedIcon();{const w=ue(l.iconSize),b=l.checkedIcon??u.radio.Checked??o;return k.push("fox-radio__icon"),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)(b,{width:w,height:w,class:k})}}else{if(i.icon)return i.icon();{const w=ue(l.iconSize),b=l.icon??u.radio.CheckNormal??n;return k.push("fox-radio__icon--unchecked"),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)(b,{width:w,height:w,class:k})}}},c=()=>{const k=[`${e}__label`];return l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)("view",{class:k},i.default?.())},p=()=>{const k=[`${e}__button`];return s.value&&k.push(`${e}__button--active`),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)("view",{class:k},i.default?.())},g=()=>{s.value||l.disabled||l.readonly||a.updateValue(l.label)},N=d.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${N?`${e}--reverse`:""}`,onClick:g},[l.shape=="button"?p():N?[c(),h()]:[h(),c()]])}}}var{componentName:a0,create:r0}=J("radio"),i0=r0(o0(a0,{CheckNormal:ae.CheckNormal,Checked:ae.CheckChecked})),il=i0,{componentName:Sr,create:s0}=J("radio-group"),u0=s0({props:{prop:{type:[String]},modelValue:{type:[String,Number,Boolean],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,n){const{emitEvent:o,exposeApi:l}=Oe({context:n},e.prop),{slots:r}=n,i=a=>o("update:modelValue",a);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:i}),(0,t.watch)(()=>e.modelValue,a=>o("change",a)),l(),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Sr} ${Sr}--${e.direction}`,style:a},r.default?.())}}}),sl=u0;function kr(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(vn(e,i)===o)return r}else if(l==="item"){if(Ee(o,i))return r}else if(Ot(e,i)===o)return r}return-1}function vn(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 c0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function d0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var f0=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function m0(){return new f0(ct())}function p0(e){return{text:e,value:e}}var Pi={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},h0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},v0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function],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:""}},g0={...ge,...be,...Pi,...h0,...v0};function y0(e,n,o,l,r,i){return{props:g0,emits:["change","update:modelValue","setValue"],setup(a,u){const{itemTemplateRef:s,innerDisabled:d,disabled:h,innerReadonly:c,readonly:p,browse:g}=Te(a),{emitEvent:N,exposeApi:k}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return h.value},get props(){return a},context:u,get templateRefProxy(){return s.value}},a.prop??u.attrs.name),w=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),b=m0(),f=(0,t.ref)([]),m=(0,t.computed)(()=>typeof a.sourceFilter=="function"&&Array.isArray(f.value)?f.value.filter(a.sourceFilter):f.value);(0,t.watch)([()=>a.source,()=>a.params],async([V,T])=>{if(V){const A=await b.load("radio",V,T);A.length>0?typeof A[0]=="string"?f.value=A.map(C=>p0(C)):f.value=A:f.value=[]}},{immediate:!0});let S=(0,t.ref)(-1);(0,t.watch)([()=>a.modelValue,()=>m.value],async([V,T])=>{S.value=kr(a,T,V,a.valueType),N("setValue",V)},{deep:!0});const B=(0,t.computed)(()=>{if(!a.source)return a.modelValue;if(S.value===-1)return null;const V=m.value[S.value];return Ot(a,V)}),v=V=>{let T=null,A=null;if(m.value.length>0){let C=kr(a,m.value,V,"value");S.value=C,C>=0&&(A=m.value[C],a.valueType==="text"?T=vn(a,A):a.valueType==="item"?T=A:T=Ot(a,A))}else T=V;N("update:modelValue",T),N("change",T,A)},y=()=>{let V=null,T=null;if(m.value.length>0&&S.value!==-1){let A=m.value[S.value];a.valueType==="text"?V=vn(a,A):a.valueType==="item"?V=A:V=Ot(a,A)}N("update:modelValue",V),N("change",V,T)};if(k({clear(){S.value!==-1&&(S.value=-1,y())},setDisabled:V=>{d.value=V},setReadonly:V=>{c.value=V}}),a.source){const V=()=>{const T=[],A=ye(a,Pi);return m.value.forEach((C,q)=>{const H=Ot(a,C),x=c0(a,C);let M={...A,label:H,disabled:x};const P=d0(a,C,q);M={...M,...P},h.value&&(M.disabled=!0),p.value&&(M.readonly=!0);const R={};if(u.slots.icon&&(R.icon=u.slots.icon),u.slots.checkedIcon&&(R.checkedIcon=u.slots.checkedIcon),typeof u.slots.text=="function"){const W=u.slots.text(C);R.default=()=>[W]}else{const W=vn(a,C);R.default=()=>W}let z=(0,t.h)(i,M,R);T.push(z)}),T};return()=>{if(g.value==="on"&&(p.value||h.value))return l(B.value,u.slots,m.value);const T=V(),A=(0,t.h)(r,{class:`${e}`,direction:a.direction,textPosition:a.textPosition,textAlign:w.value,modelValue:B.value,"onUpdate:modelValue":v},{default:()=>T}),C={default:()=>A};C.label=u.slots.default,C.prepend=u.slots.prepend,C.append=u.slots.append,C.fixedPreTip=u.slots.fixedPreTip,C.fixedTip=u.slots.fixedTip;const q={...ye(a,be,ge),ref:s};return a.prop&&(q.prop=`${a.prop}_item`),o(q,C)}}else return()=>{const V=u.slots.options?.()??[];return(0,t.h)(r,{class:`${e}`,direction:a.direction,textPosition:a.textPosition,textAlign:w.value,modelValue:B,"update:modelValue":v},{default:()=>V})}}}}var{componentName:b0,create:S0,scope:k0}=J("radio-item"),w0=S0(y0(b0,k0,De,Pe,sl,il)),Bo=w0,C0={prop:{type:[String]},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"}},N0=(e,{CheckNormal:n,Checked:o,Indeterminate:l})=>({props:C0,emits:["change","update:modelValue"],setup(r,i){const{emitEvent:a,exposeApi:u}=Oe({context:i},r.prop),s=On(),{slots:d}=i,h=(0,t.inject)("parent",null),c=(0,t.reactive)({partialSelect:r.indeterminate});(0,t.watch)(()=>r.indeterminate,B=>{c.partialSelect=B});const p=(0,t.computed)(()=>!!h),g=(0,t.computed)(()=>p.value?h.value.value.includes(r.label):!!r.modelValue),N=(0,t.computed)(()=>p.value?h.position:r.textPosition);let k="";const w=(B,v)=>{k="click",a("update:modelValue",B),a("change",B,v)};(0,t.watch)(()=>r.modelValue,B=>{k=="click"?k="":a("change",B)});const b=()=>{const B=[];if(c.partialSelect){if(d.indeterminateIcon)return d.indeterminateIcon();{const v=ue(r.iconSize),y=r.indeterminateIcon??s.checkbox.Indeterminate??l;return B.push("fox-checkbox__icon--indeterminate"),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)(y,{width:v,height:v,class:B})}}else if(g.value){if(d.checkedIcon)return d.checkedIcon();{const v=ue(r.iconSize),y=r.checkedIcon??s.checkbox.Checked??o;return B.push("fox-checkbox__icon"),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)(y,{width:v,height:v,class:B})}}else{if(d.icon)return d.icon();{const v=ue(r.iconSize),y=r.icon??s.checkbox.CheckNormal??n;return B.push("fox-checkbox__icon--unchecked"),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)(y,{width:v,height:v,class:B})}}},f=()=>{const B=[`${e}__label`];return r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)("view",{class:B},d.default?.())},m=()=>{const B=[`${e}__button`];return g.value&&B.push(`${e}__button--active`),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)("view",{class:B},d.default?.())},S=B=>{if(!(r.disabled||r.readonly)){if(g.value&&c.partialSelect){c.partialSelect=!1,w(g.value,d.default?.()[0].children);return}if(w(!g.value,d.default?.()[0].children),p.value){const v=h.value.value,y=h.max.value,{label:V}=r,T=v.indexOf(V);T>-1?v.splice(T,1):T<=-1&&(v.length<y||!y)&&v.push(V),h.updateValue(v)}}};return(0,t.onMounted)(()=>{p.value&&h.link(r)}),(0,t.onBeforeUnmount)(()=>{p.value&&h.unlink(r)}),u(),()=>(0,t.h)("view",{class:`${e} ${e}--${r.shape} ${N.value==="left"?`${e}--reverse`:""}`,onClick:S},[r.shape=="button"?m():[b(),f()]])}}),{componentName:A0,create:B0}=J("checkbox"),T0=B0(N0(A0,{CheckNormal:ae.CheckNormal,Checked:ae.Checked,Indeterminate:ae.CheckDisabled})),ul=T0,{create:V0,componentName:wr}=J("checkbox-group"),x0={prop:{type:String},modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},E0=V0({props:x0,emits:["change","update:modelValue"],setup(e,n){const{emitEvent:o,exposeApi:l}=Oe({context:n},e.prop),{slots:r}=n,i=(0,t.reactive)({children:[]}),a=c=>{i.children.push(c)},u=c=>{const p=i.children.findIndex(g=>g===c);p!==-1&&i.children.splice(p,1)},s=c=>{o("update:modelValue",c),o("change",c)},d=c=>{const p=[];c&&i.children.forEach(g=>{g?.disabled||p.push(g?.label)}),o("update:modelValue",p)},h=()=>{o("update:modelValue",i.children.filter(c=>c?.disabled?!1:!e.modelValue.includes(c.label)).map(c=>c.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:u}),(0,t.watch)(()=>e.modelValue,c=>{o("change",c)}),l({toggleAll:d,toggleReverse:h}),()=>{const c={};return e.textAlign&&(c["text-align"]=e.textAlign),(0,t.h)("view",{class:`${wr} ${wr}--${e.direction}`,style:c},r.default?.())}}}),cl=E0;function Cr(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(jl(e,i)===o)return r}else if(l==="item"){if(Ee(o,i))return r}else if(gn(e,i)===o)return r}return-1}function jl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function gn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function $0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function D0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var I0=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function q0(){return new I0(ct())}function P0(e){return{text:e,value:e}}var M0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Mi={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},z0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function]},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:[]},separator:{type:[String],required:!1,default:", "}},R0={...ge,...be,...M0,...Mi,...z0};function L0(e,n,o,l,r,i){return{props:R0,emits:["change","update:modelValue","setValue"],setup(a,u){const{itemTemplateRef:s,innerDisabled:d,disabled:h,innerReadonly:c,readonly:p,browse:g}=Te(a),N=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),{emitEvent:k,exposeApi:w}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return h.value},get props(){return a},context:u,get templateRefProxy(){return s.value}},a.prop??u.attrs.name),b=q0(),f=(0,t.ref)([]),m=(0,t.computed)(()=>typeof a.sourceFilter=="function"&&Array.isArray(f.value)?f.value.filter(a.sourceFilter):f.value);(0,t.watch)([()=>a.source,()=>a.params],async([V,T])=>{if(V){const A=await b.load("checkbox",V,T);A.length>0?typeof A[0]=="string"?f.value=A.map(C=>P0(C)):f.value=A:f.value=[]}},{immediate:!0});const S=(0,t.ref)([]);(0,t.watch)([()=>a.modelValue,()=>m.value],async([V,T])=>{const A=[];Array.isArray(V)&&V.forEach(C=>{let q=Cr(a,T,C,a.valueType);q!==-1&&A.push(q)}),!Ee(A,S.value)&&(S.value=A,k("setValue",A))},{deep:!0});const B=(0,t.computed)(()=>{if(!a.source)return a.modelValue;let V=[];return S.value.forEach(T=>{let A=m.value[T];V.push(gn(a,A))}),V}),v=V=>{let T=[],A=[];if(m.value.length>0){const C=[];Array.isArray(V)&&V.forEach(q=>{let H=Cr(a,m.value,q,"value");H!==-1&&C.push(H);const x=m.value[H];A.push(x),a.valueType==="text"?T.push(jl(a,x)):a.valueType==="item"?T.push(x):T.push(gn(a,x))}),S.value=C}else T=V;k("update:modelValue",T),k("change",T,A)},y=(0,t.ref)();if(w({toggleAll:V=>{y.value.toggleAll(V)},toggleReverse:()=>{y.value.toggleReverse()},setDisabled:V=>{d.value=V},setReadonly:V=>{c.value=V}}),a.source){const V=()=>{const T=[],A=ye(a,Mi);return m.value.forEach((C,q)=>{const H=gn(a,C),x=$0(a,C);let M={...A,label:H,disabled:x};const P=D0(a,C,q);M={...M,...P},h.value&&(M.disabled=!0),p.value&&(M.readonly=!0);const R={};if(u.slots.icon&&(R.icon=u.slots.icon),u.slots.checkedIcon&&(R.checkedIcon=u.slots.checkedIcon),u.slots.indeterminateIcon&&(R.indeterminateIcon=u.slots.indeterminateIcon),typeof u.slots.text=="function"){const W=u.slots.text(C);R.default=()=>[W]}else{const W=jl(a,C);R.default=()=>W}let z=(0,t.h)(i,M,R);T.push(z)}),T};return()=>{if(g.value==="on"&&(p.value||h.value))return l(B.value,u.slots,m.value,a.separator);const T=V(),A=(0,t.h)(r,{class:`${e}`,ref:y,direction:a.direction,max:a.max,textPosition:a.textPosition,modelValue:B.value,"onUpdate:modelValue":v},{default:()=>T}),C={default:()=>A};C.label=u.slots.default,C.prepend=u.slots.prepend,C.append=u.slots.append,C.fixedPreTip=u.slots.fixedPreTip,C.fixedTip=u.slots.fixedTip;const q={...ye(a,be,ge),ref:s};return a.prop&&(q.prop=`${a.prop}_item`),o(q,C)}}else return()=>{const V=u.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:y,direction:a.direction,max:a.max,textPosition:a.textPosition,textAlign:N.value,modelValue:B,"onUpdate:modelValue":v},{default:()=>V})}}}}var{componentName:F0,create:O0,scope:K0}=J("checkbox-item"),U0=O0(L0(F0,K0,De,Pe,cl,ul)),To=U0,Vo={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:H0,create:_0}=J("switch"),j0=_0({components:{Loading1:ae.Loading1},props:{...Vo},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const o=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const u=H0;return{[u]:!0,[o.value?"fox-switch-open":"fox-switch-close"]:!0,[`${u}-base`]:!0,"is-disabled":e.disabled}}),r=(0,t.computed)(()=>({backgroundColor:o.value?e.activeColor:e.inactiveColor}));let i="";const a=u=>{if(e.disabled||e.loading)return;i="click";const s=o.value?e.inactiveValue:e.activeValue;n("update:modelValue",s),n("change",s,u)};return(0,t.watch)(()=>e.modelValue,u=>{i=="click"?i="":n("change",u)}),{classes:l,style:r,isActive:o,onClick:a}}}),W0={class:"fox-switch-button"};function Y0(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...u)=>e.onClick&&e.onClick(...u)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",W0,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(a,{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 dl=re(j0,[["render",Y0]]),X0={...ge,...be,...Vo};function Q0(e,n,o,l,r){return{props:X0,emits:["change","update:modelValue","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g,exposeApi:N}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),k=e,w=qe(i,"modelValue",null,g),b=f=>{w.value=f,g("update:modelValue",f,{}),g("change",f,{})};return N({setDisabled:f=>{s.value=f},setReadonly:f=>{h.value=f}}),()=>{if(p.value==="on"&&(c.value||d.value))return l(w.value,a.slots);const f={...ye(i,Vo),disabled:d.value||c.value,value:w.value,"onUpdate:modelValue":b},m=[],S=(0,t.h)(r,f);m.push(S);const B={default:()=>m};B.label=a.slots.default,B.fixedPreTip=a.slots.fixedPreTip,B.fixedTip=a.slots.fixedTip;const v={...ye(i,be,ge),ref:u};return i.prop&&(v.prop=`${i.prop}_item`),v["content-class"]=k,o(v,B)}}}}var{componentName:G0,create:Z0,scope:J0}=J("switch-item"),ep=Z0(Q0(G0,J0,De,Pe,dl)),xo=ep,tp={...ge,...be,placeholder:{type:[String]},textAlign:{type:[String]},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1},unit:{type:[String],required:!1}};function np(e,n,o,l){return{props:tp,emits:["click","focus","blur","change"],setup(r,i){const{itemTemplateRef:a,disabled:u,readonly:s}=Te(r),{emitEvent:d,exposeApi:h}=Be({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return s.value},get disabled(){return u.value},get props(){return r},context:i,get templateRefProxy(){return a.value}},r.prop??i.attrs.name),{toLocaleRefs:c}=(0,ve.useFoxI18n)(n),p=c(r,["placeholder"]),g=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,x=>{g.value=x,d("change",x)});const N=(0,t.computed)(()=>({[`${e}`]:!0})),k=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!u.value&&me(g.value),"is-disabled":u.value,"is-readonly":s.value})),w=Ae((0,t.computed)(()=>r.textAlign),"textAlign"),b=(0,t.computed)(()=>{const x={};return w.value&&(x["text-align"]=w.value),x}),f=(0,t.computed)(()=>!me(r.modelValue)||i.slots.main?!0:!!me(r.desc)),m=(0,t.computed)(()=>me(g.value)?p.placeholder.value:g.value),S=(0,t.computed)(()=>!me(r.desc)||i.slots.sub),B=(0,t.computed)(()=>({[`${e}__sub`]:!0})),v=(0,t.computed)(()=>{const x={};return w.value&&(x["text-align"]=w.value),x}),y=()=>{d("focus",g.value)},V=()=>{d("blur",g.value)},T=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":u.value,"is-readonly":s.value})),A=(0,t.computed)(()=>ke(r.unit)>0),C=x=>{u.value==!0||s.value==!0||d("click")},q=(0,t.computed)(()=>r.icon??o),H=(0,t.computed)(()=>({action:!0}));return h(),()=>{const x=[];if(typeof i.slots.content=="function"){const ee=i.slots.content();x.push(ee)}else{const ee=[];if(f.value){const Y={tabIndex:0,class:k.value,style:b.value,onFocus:y,onBlur:V};let G=null;i.slots.main?G=(0,t.h)("view",Y,[i.slots.main(m.value)]):G=(0,t.h)("view",Y,[m.value]),ee.push(G)}if(S.value){const Y={tabIndex:0,class:B.value,style:v.value,onFocus:y,onBlur:V};let G=null;i.slots.sub?G=(0,t.h)("view",Y,[i.slots.sub(r.desc)]):G=(0,t.h)("view",Y,[r.desc]),ee.push(G)}const oe=(0,t.h)("view",{class:N.value,onClick:C},ee);x.push(oe)}const M=[],P=ue(r.iconSize);let R=i.slots.icon;if(!R){const ee={width:P,height:P,class:["action-icon"]};R=(0,t.h)(q.value,ee)}const z=(0,t.h)("view",{class:H.value,onClick:C},{default:()=>[R]});if(M.push(z),A.value){const ee=(0,t.h)("view",{},[r.unit]);M.push(ee)}const W=(0,t.h)("view",{class:T.value},{default:()=>M});x.push(W);const I={default:()=>x};I.label=i.slots.default,I.prepend=i.slots.prepend,I.append=i.slots.append,I.fixedPreTip=i.slots.fixedPreTip,I.fixedTip=i.slots.fixedTip;const Q={...ye(r,be,ge),ref:a};return r.prop&&(Q.prop=`${r.prop}_item`),l(Q,I)}}}}var{componentName:lp,create:op,scope:ap}=J("link-item"),rp=op(np(lp,ap,ae.ArrowRight,De)),Eo=rp,$o={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:ip,componentName:sp}=J("rate"),up=ip({props:{...$o},emits:["update:modelValue","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)([]),r=(0,t.computed)(()=>({[sp]:!0})),i=g=>{n("update:modelValue",g),n("change",g)},a=(g,N)=>{if(e.disabled||e.readonly)return;let k=0;N===1&&e.modelValue===N||(k=N,e.allowHalf&&g==2&&(k-=.5)),i(k)},u=(g,N,k)=>{let w=0;for(let b=N.value.length-1;b>=0;b--){const f=N.value[b];if(g>f.offsetLeft){k?w=b+(g>f.offsetLeft+f.clientWidth/2?1:.5):w=b+1;break}}return w},s=ot(),d={onTouchStart(g){!e.touchable||e.readonly||s.start(g)},onTouchMove(g){e.touchable&&(s.move(g),s.isHorizontal()&&l.value&&(g.preventDefault(),i(u(s.moveX.value,l,e.allowHalf))))}},h=Math.random().toString(36).slice(-8),c=(0,t.computed)(()=>e.customIcon??ae.StarFillN);return{classes:r,...d,onClick:a,toPxString:he,renderIcon:(g,N)=>(0,t.h)(g,N),rateRefs:l,refRandomId:h,slots:o,customIcon:c}}}),cp=["id"],dp={class:"fox-rate-item__icon--full"},fp={key:0,class:"fox-rate-item__icon--half"},mp={key:1,class:"fox-rate-item__icon--half"};function pp(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),a=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:a,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+a,style:(0,t.normalizeStyle)(a<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("view",dp,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:a<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,t.normalizeClass)(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||a>e.modelValue}]),onClick:u=>e.onClick(1,a)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>a?((0,t.openBlock)(),(0,t.createElementBlock)("view",fp,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:a<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:u=>e.onClick(2,a)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<a?((0,t.openBlock)(),(0,t.createElementBlock)("view",mp,[((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:u=>e.onClick(2,a)},null,8,["onClick"]))])):(0,t.createCommentVNode)("",!0)],12,cp))),128))],34)}var fl=re(up,[["render",pp]]),hp={...ge,...be,...$o};function vp(e,n,o,l,r){return{props:hp,emits:["change","update:modelValue","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g,exposeApi:N}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),k=e,w=qe(i,"modelValue",null,g),b=f=>{w.value=f,g("update:modelValue",f,{}),g("change",f,{})};return N({setDisabled:f=>{s.value=f},setReadonly:f=>{h.value=f}}),()=>{if(p.value==="on"&&(c.value||d.value))return l(w.value,a.slots);const f={...ye(i,$o),disabled:d.value,readonly:c.value,value:w.value,"onUpdate:modelValue":b},m=[],S=(0,t.h)(r,f);m.push(S);const B={default:()=>m};if(a.slots.default){const y=a.slots.default();B.label=()=>y}const v=ye(i,be,ge);return i.prop&&(v.prop=`${i.prop}_item`),v["content-class"]=k,v.ref=u,o(v,B)}}}}var{componentName:gp,create:yp,scope:bp}=J("rate-item"),Sp=yp(vp(gp,bp,De,Pe,fl)),Do=Sp,kp=/scroll|auto|overlay/i,zi=window;function wp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Wl(e,n=zi){let o=e;for(;o&&o!==n&&wp(o);){const{overflowY:l}=window.getComputedStyle(o);if(kp.test(l))return o;o=o.parentNode}return n}function Ri(e,n=zi){const o=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(o.value=Wl(e.value,n))}),o}var Li=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Cp={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 Np(e,n,o){return{props:{...Cp},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:a}=(0,ve.useFoxI18n)(n),u=a(l,["pullText","loadText","noMoreText"]),s=(0,t.ref)(),d=Ri(s),h=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=(0,t.computed)(()=>({[e]:!0})),p=f=>f?f.offsetTop+p(f.offsetParent):0,g=()=>{let f=0,m=0,S="down";if(d.value==window){const B=Li();s.value&&(f=p(s.value)+s.value.offsetHeight-B-window.innerHeight),m=B}else{const{scrollHeight:B,clientHeight:v,scrollTop:y}=d.value;f=B-v-y,m=y}return h.beforeScrollTop>m?S="up":S="down",h.beforeScrollTop=m,r("scroll-change",m),f<=l.threshold&&S=="down"},N=()=>{Qe(()=>{if(!g()||!l.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,r("update:modelValue",!0),(0,t.nextTick)(()=>r("load-more"))})},k=()=>{d.value&&d.value.addEventListener("scroll",N,l.useCapture)},w=()=>{d.value&&d.value.removeEventListener("scroll",N,l.useCapture)};(0,t.onMounted)(()=>{k(),l.immediate&&N()}),(0,t.onUnmounted)(()=>{w()});const b=(0,t.ref)(!1);return(0,t.onActivated)(()=>{b.value&&(b.value=!1,k())}),(0,t.onDeactivated)(()=>{b.value=!0,w()}),(0,t.watch)(()=>l.modelValue,f=>{f||(h.isInfiniting=!1)}),()=>{const f=(0,t.h)("view",{class:"fox-infinite__container"},[i?.default?.()]),m=[];if(h.isInfiniting){let B=i?.loading?.()??null;if(!B){let y=i?.loadingIcon?.()??null;y||(y=(0,t.h)(o,{class:["fox-infinite__bottom-box__img"]}));const V=(0,t.h)("view",{class:"fox-infinite__bottom-box__text"},[u.loadText.value]);B=[y,V]}const v=(0,t.h)("view",{class:"fox-infinite__bottom-box"},B);m.push(v)}else if(!l.hasMore){let B=i?.finished?.()??null;B||(B=(0,t.h)("view",{class:"fox-infinite__bottom-tips"},[u.noMoreText.value]),m.push(B))}const S=(0,t.h)("view",{class:"fox-infinite__bottom"},m);return(0,t.h)("view",{class:c.value,ref:s},[f,S])}}}}var{componentName:Ap,create:Bp,scope:Tp}=J("infinite-loading"),Vp=Bp(Np(Ap,Tp,ae.Loading)),ml=Vp,{componentName:xp,create:Ep}=J("button"),$p=Ep({components:{Loading:ae.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:o}){const{type:l,size:r,shape:i,disabled:a,loading:u,color:s,plain:d,block:h}=(0,t.toRefs)(e);return{handleClick:p=>{!u.value&&!a.value&&n("click",p)},classes:(0,t.computed)(()=>{const p=xp;return{[p]:!0,[`${p}--${l.value}`]:l.value,[`${p}--${r.value}`]:r.value,[`${p}--${i.value}`]:i.value,[`${p}--plain`]:d.value,[`${p}--block`]:h.value,[`${p}--disabled`]:a.value,[`${p}--loading`]:u.value}}),getStyle:(0,t.computed)(()=>{const p={};return s?.value&&(d.value?(p.color=s.value,p.background="#fff",s.value?.includes("gradient")||(p.borderColor=s.value)):(p.color="#fff",p.background=s.value)),p})}}}),Dp={class:"fox-button__wrap"};function Ip(e,n,o,l,r,i){const a=(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]=(...u)=>e.handleClick&&e.handleClick(...u))},[(0,t.createElementVNode)("view",Dp,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(a,{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 xt=re($p,[["render",Ip]]),qp={prop:{type:[String]},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"}},Pp=(e,n,o)=>({props:qp,emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,r){const{emitEvent:i}=Oe({context:r},l.prop),{toLocaleRefs:a}=(0,ve.useFoxI18n)(n),u=a(l,["placeholder"]),{slots:s}=r,d=(0,t.reactive)({active:!1}),h=(0,t.computed)(()=>({background:l.background})),c=(0,t.computed)(()=>({background:l.inputBackground})),p=A=>{let C=A.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),i("update:modelValue",C,A),i("change",C,A)},g=(0,t.ref)({}),N=A=>{let C=A.target.value;d.active=!0,g.value=l.focusStyle,i("focus",C,A)},k=A=>{setTimeout(()=>{d.active=!1},0);let C=A.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),g.value={},i("blur",C,A)},w=A=>{i("update:modelValue","",A),i("change","",A),i("clear","")},b=(0,t.computed)(()=>String(l.modelValue).length>0),f=(0,t.computed)(()=>{const A={};return b.value||(A.display="none"),A}),m=A=>{l.autoblur&&V.value?.blur(),(typeof A.cancelable!="boolean"||A.cancelable)&&A.preventDefault(),i("search",l.modelValue)},S=A=>{i("keyup-input",A)},B=A=>{i("click-input",A)},v=A=>{i("click-left-icon",l.modelValue,A)},y=(0,t.computed)(()=>({textAlign:l.inputAlign})),V=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&V.value.focus()});const T=()=>{const A=[];if(s.leftin){const x=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:v},[s.leftin()]);A.push(x)}const C=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:V,style:y.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:B,onInput:p,onFocus:N,onBlur:k,onkeyup:S}),q=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:m},[C]);A.push(q);const H=[];if(l.clearable){const x=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:w},[(0,t.h)(s?.clear?.()??l.clearIcon??o)]);H.push(x)}if(s.rightin){const x=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[s.rightin()]);H.push(x)}if(H.length>0){const x=(0,t.h)("view",{class:`${e}__input-inner-right`},H);A.push(x)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...c.value,...g.value}},A)};return()=>{const A=[];if(l.label){const q=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);A.push(q)}if(s.leftout){const q=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[s.leftout()]);A.push(q)}const C=T();if(A.push(C),s.rightout){const q=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[s.rightout()]);A.push(q)}return(0,t.h)("view",{class:`${e}`,style:h.value},A)}}}),{componentName:Mp,create:zp,scope:Rp}=J("searchbar"),Lp=zp(Pp(Mp,Rp,ae.CircleClose)),pl=Lp,En={prop:{type:[String]},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 Fp(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(yn(e,i)===o)return r}else if(l==="item"){if(Ee(o,i))return r}else if(Fi(e,i)===o)return r}return-1}function yn(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 Fi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Op(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Kp(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var Up=class{scope;constructor(e){this.scope=e}async load(e,n,o,l,r,i,a){if(!n)return{totalSize:0,page:[]};if(Array.isArray(n)){let s=n;typeof a=="function"&&(s=s.filter(a));let d=(o-1)*l,h=d+l;h>s.length&&(h=s.length);const c=s.slice(d,h);return{totalSize:s.length,page:c}}if(typeof n=="function")return await Reflect.apply(n,null,[o,l,r,i]);const u=lt(e,this.scope);return u===null?(console.error(`[FoxUI]${e} component not found api function`),{totalSize:0,page:[]}):(xe(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await Reflect.apply(u,null,[n,o,l,r]))}};function Hp(){return new Up(ct())}function _p(e,n,o,l,r,i,a,u,s,d,h){return{props:En,emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,p){const{emitEvent:g,exposeApi:N}=Oe({context:p},c.prop),{slots:k}=p,{toLocaleRefs:w}=(0,ve.useFoxI18n)(n),b=w(c,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),f=Hp(),m=(0,t.ref)([]),S=(0,t.ref)(0),B=(0,t.ref)(""),v=(0,t.shallowRef)(null),y=(0,t.computed)(()=>{const K={};return c.params&&Object.assign(K,c.params),me(B.value)||(K[`${c.searchKey}`]=B.value),v.value&&Object.assign(K,v.value),K});let V=!0;const T=async(K,_,$)=>{try{if(C.value===!1)return;let E=null;me(B.value)||(E=Z=>{const le=yn(c,Z);if(typeof le=="string"&&le.includes(B.value))return!0;const ie=Nr(c,Z);return!!(typeof ie=="string"&&ie.includes(B.value))});const L=await f.load("actionsheet",K,_,$,y.value,V,E??void 0);V=!1,Array.isArray(L)?(m.value=L,S.value=1,C.value=!1):!Array.isArray(L.page)||L.page.length===0?(console.warn("[FoxUI] can not load more data"),C.value=!1):(Reflect.apply([].push,m.value,L.page),S.value=Math.ceil(m.value.length/c.pageSize),(L.totalSize&&m.value.length>=L.totalSize||$<L.page.length)&&(C.value=!1)),A.value=!1}catch(E){console.error("[FoxUI] ActionSheet load more data fail",E),C.value=!0,S.value=0,m.value=[]}setTimeout(()=>{g("loaded-data")},250)},A=(0,t.ref)(!1),C=(0,t.ref)(!0),q=async()=>{if(!c.source){A.value=!1;return}await T(c.source,S.value+1,c.pageSize)};let H=null;(0,t.watch)(B,(K,_)=>{H&&(clearTimeout(H),H=null),me(K)&&!me(_)&&(H=setTimeout(()=>{M()},c.searchDelayTriggerClear))});const x=()=>{C.value=!0,S.value=0,m.value=[],c.source&&q()},M=()=>{x()};(0,t.watch)([()=>c.source,()=>c.pageSize,()=>c.params],async([K,_,$])=>{c.source&&x()},{immediate:!0});const P=(0,t.computed)(()=>!c.multiple&&c.isAutoBackFill),R=(0,t.ref)([]);let z=null;const W=(0,t.ref)(c.visible);(0,t.watch)(()=>c.visible,K=>{W.value!==K&&(W.value=K),K?z=[...R.value]:z=null});const I=(K,_)=>{const $=[];return Array.isArray(K)||(K=[K]),K.forEach(E=>{let L=Fp(c,_,E,c.valueType);L!==-1&&$.push(L)}),Ee($,R.value)?!1:(R.value=$,!0)};(0,t.watch)([()=>c.modelValue,()=>m.value],([K,_],[$,E])=>{I(K,_)&&ee(Q())},{deep:!0});const Q=()=>{const K=[],_=[],$=[];for(let le of R.value){const ie=m.value[le];_.push(ie);const ce=yn(c,ie);if($.push(ce),c.valueType==="item")K.push(ie);else if(c.valueType==="text")K.push(ce);else{const fe=Fi(c,ie);K.push(fe)}}let E=null,L=null,Z=null;return c.multiple?(E=K,L=$,Z=_):(E=K[0]??null,L=$[0]??null,Z=_[0]??null),{value:E,text:L,item:Z}},ee=K=>{g("update:modelValue",K.value),g("update:text",K.text),g("change",K.value,K.item,K.text)},oe=()=>{z&&(R.value=z)},Y=K=>{const _=R.value.indexOf(K);c.multiple?_===-1?R.value.push(K):R.value.splice(_,1):_===-1?R.value=[K]:R.value=[],(P.value||!c.poppable&&!c.showFooter)&&te()},G=K=>{W.value=K,g("update:visible",K)},F=()=>{const K=()=>{oe(),G(!1)},_=c.beforeMethod??c.beforeClose;if(typeof _=="function"){const $=_("close");yt($)?$.then(E=>{E!==!1&&K()}).catch(()=>{K()}):$!==!1&&K()}else K()},te=()=>{const K=Q(),_=()=>{ee(K),G(!1)},$=c.beforeMethod??c.beforeClose;if(typeof $=="function"){const E=$("confirm",K.value,K.item,K.text);yt(E)?E.then(L=>{L!==!1&&_()}).catch(()=>{_()}):E!==!1&&_()}else _()},U=()=>{let K=b.title.value??"";return k.title&&(K=k.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[K]),(0,t.h)(s,{class:["fox-actionsheet__header-icon"],onClick:F})])},D=()=>{let K=null;return k.search?K=k.search():K=(0,t.h)(i,{onSearch:x,placeholder:b.seachPlaceholder.value,disabled:c.disabled,modelValue:B.value,"onUpdate:modelValue":_=>{B.value=_}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[K])},O=(K,_,$,E,L)=>{if(k.optionLabel)return k.optionLabel({text:K,checked:_,disabled:$,subText:E,item:L});const Z=[],le=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[K]);if(Z.push(le),E){const ie=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[E]);Z.push(ie)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},Z)},j=(K,_,$,E)=>k.optionIcon?k.optionIcon({checked:K,disabled:_,iconSize:$,item:E}):K?k.checkedIcon?k.checkedIcon({disabled:_,item:E}):(0,t.h)(c.checkedIcon??u,{width:$,height:$,class:["fox-actionsheet__list-item-icon"]}):k.icon?k.icon({disabled:_,item:E}):(0,t.h)(c.icon??a,{width:$,height:$,class:["fox-actionsheet__list-item-icon"]}),X=()=>{const K=[];for(let _=0;_<m.value.length;_++){const $=m.value[_],E=yn(c,$),L=Nr(c,$),Z=["fox-actionsheet__list-item"],le={};let ie=Op(c,$),ce=c.iconSize?ue(c.iconSize):null;const fe=Kp(c,$,_);fe&&(ie=ie||fe.disabled,fe.class&&Z.push(fe.class),fe.style&&Object.assign(le,fe.style)),ie=!!(c.disabled||ie);const Ke=R.value.includes(_);ie&&Z.push("is-disabled"),Ke&&Z.push("is-checked");const Ue={class:Z,style:le,key:`${_}`,onClick:()=>{ie||Y(_)}};let ze=[];if(k.option)ze.push(k.option({item:$,checked:Ke,disabled:ie}));else{const Ji=O(E,Ke,ie,L,$);ze.push(Ji);const es=j(Ke,ie,ce,$);ze.push(es),c.textPosition==="right"&&ze.reverse()}const $t=(0,t.h)("view",Ue,ze);K.push($t)}return K},ne=()=>{let K=[];if(k.buttons)K=k.buttons();else{const _=(0,t.h)(r,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:te,disabled:c.disabled},{default:()=>b.confirmText.value});K.push(_)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[K])};return N({search:async(K=null,_=!0)=>{v.value=K&&(0,t.toRaw)(K),(0,t.triggerRef)(v),_&&(C.value=!0,S.value=0,m.value=[]),(0,t.nextTick)(()=>{q()})},clear:()=>{C.value=!0,S.value=0,m.value=[]},confirm:()=>{te()},cancel:()=>{F()}}),()=>{const K=[];if(c.showHeader){const ie=U();K.push(ie)}if(c.showSearchbar){const ie=D();K.push(ie)}let _=null;if(k.content)_=k.content();else{const ie=X();_=(0,t.h)(l,{hasMore:C.value,loadText:b.loadText.value,noMoreText:b.noMoreText.value,modelValue:A.value,"onUpdate:modelValue":ce=>{A.value=ce},onLoadMore:q},{default:()=>ie})}const $={};c.optionsHeight&&($.height=c.optionsHeight);const E={"fox-actionsheet__list":!0};c.poppable||(E["fox-actionsheet__list--inner"]=!0);const L=(0,t.h)("view",{class:E,style:$},[_]);if(K.push(L),c.showFooter&&!P.value){const ie=ne();K.push(ie)}const Z=(0,t.h)("view",{class:"fox-actionsheet"},K);if(!c.poppable)return Z;const le=["fox-actionsheet__popup"];return c.popClass&&le.push(c.popClass),(0,t.h)(o,{popClass:le.join(" "),visible:W.value,closeable:!1,"onUpdate:visible":G,position:c.position,round:"round",onClickOverlay:F,closeOnClickOverlay:c.closeOnClickOverlay},{default:()=>Z})}}}}var{componentName:jp,create:Wp,scope:Yp}=J("actionsheet-pane"),Xp=Wp(_p(jp,Yp,we,ml,xt,pl,ae.CheckNormal,ae.Checked,ae.Close,ae.Search2,!1)),hl=Xp,Oi={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:" "}},Qp={...ge,...be,...Oi,...En};function Gp(e,n,o,l,r,i,a,u){return{props:Qp,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:c,disabled:p,innerReadonly:g,readonly:N,browse:k}=Te(s),{emitEvent:w,exposeApi:b}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return N.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:f}=(0,ve.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),B=qe(s,"modelValue",null,w),v=(0,t.ref)(""),y=(0,t.computed)(()=>Array.isArray(v.value)?v.value.join(s.separator):v.value),V="fox-input-item",T=(0,t.computed)(()=>({[V]:!0,"is-disabled":p.value,"is-readonly":N.value})),A=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),C=(0,t.computed)(()=>{const j={};return A.value&&(j["text-align"]=A.value),j}),q=(0,t.ref)(!1),H=()=>{q.value=!0},x=j=>{q.value=j},M=j=>{B.value=j,w("update:modelValue",j)},P=(j,X)=>{w("change",j,X)},R=j=>{let X=j.target.value;S.value=!0,w("focus",X,j)},z=j=>{setTimeout(()=>{S.value=!1},0);let X=j.target.value;s.maxLength&&X.length>Number(s.maxLength)&&(X=X.slice(0,Number(s.maxLength))),w("blur",X,j)},W=j=>{v.value=j,w("update:text",j)},I=(0,t.computed)(()=>({[`${V}__append`]:!0,"is-disabled":p.value,"is-readonly":N.value})),Q=(0,t.computed)(()=>ke(s.unit)>0),ee=(0,t.computed)(()=>ke(s.unit)>0&&!S.value),oe=(0,t.computed)(()=>({hidden:!ee.value})),Y=j=>{B.value="",w("update:modelValue","",j),w("change","",j),w("clear","")},G=(0,t.computed)(()=>s.clearable&&!p.value&&!N.value),F=(0,t.computed)(()=>ke(B.value)>0&&S.value),te=j=>{F.value?Y(j):H()},U=(0,t.computed)(()=>F.value&&G.value?r:i),D=(0,t.computed)(()=>({action:!0})),O=(0,t.ref)(null);return b({search:j=>{O.value&&O.value.search(j)},clear:()=>{O.value&&O.value.clear},confirm:j=>{O.value&&O.value.confirm()},cancel:()=>{O.value&&O.value.cancel()},setDisabled:j=>{c.value=j},setReadonly:j=>{g.value=j}}),()=>{if(k.value==="on"&&(N.value||p.value))return l(y.value,d.slots);const j={class:T.value,style:C.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:y.value,onClick:H,onFocus:R,onBlur:z};u&&(j.disabled=!0);const X=[],ne=(0,t.h)("input",j);X.push(ne);const K=[],_=(0,t.h)(U.value,{class:["action-icon"]}),$=(0,t.h)("view",{class:D.value,onClick:te},{default:()=>[_]});if(K.push($),Q.value){const ce=(0,t.h)("view",{class:oe.value},[s.unit]);K.push(ce)}const E=(0,t.h)("view",{class:I.value},{default:()=>K});X.push(E);const L={default:()=>X};L.label=d.slots.default,L.prepend=d.slots.prepend,L.append=d.slots.append,L.fixedPreTip=d.slots.fixedPreTip,L.fixedTip=d.slots.fixedTip;const Z=ye(s,En);Z.ref=O,Z.class=s.actionSheetClass,Z.disabled=p.value||N.value,Z.visible=q.value,Z["onUpdate:visible"]=x,Z.modelValue=B.value,Z["onUpdate:modelValue"]=M,Z.text=v.value,Z["onUpdate:text"]=W,Z.onChange=P,Z.poppable=!0,Z["text-position"]=s.textPosition;const le=(0,t.h)(a,Z,{title:d.slots.title,search:d.slots.search,option:d.slots.option,optionLabel:d.slots.optionLabel,optionIcon:d.slots.optionIcon,buttons:d.slots.buttons});L.hide=()=>[le];const ie={...tt(s,Oi,En),ref:h};return s.prop&&(ie.prop=`${s.prop}_item`),o(ie,L)}}}}var{componentName:Zp,create:Jp,scope:eh}=J("actionsheet-item"),th=Jp(Gp(Zp,eh,De,Pe,ae.CircleClose,ae.ArrowRight,hl)),Io=th,qo={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:nh,create:lh}=J("input-number"),oh=lh({components:{Minus:ae.Minus,Plus:ae.Plus},props:{...qo},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const g=nh;return{[g]:!0,[`${g}--disabled`]:e.disabled}}),l=g=>Number(g).toFixed(Number(e.decimalPlaces)),r=g=>{const N=g.target;n("update:modelValue",N.valueAsNumber,g)},i=(g,N)=>{let k=l(g);n("update:modelValue",k,N),n("change",k,N)},a=(g=Number(e.modelValue))=>g<Number(e.max)&&!e.disabled,u=(g=Number(e.modelValue))=>g>Number(e.min)&&!e.disabled,s=g=>{n("reduce",g),u()?i(Number(e.modelValue)-Number(e.step),g):n("overlimit",g,"reduce")},d=g=>{n("add",g),a()?i(Number(e.modelValue)+Number(e.step),g):n("overlimit",g,"add")},h=g=>{e.disabled||e.readonly||n("focus",g)},c=g=>{if(e.disabled||e.readonly)return;let N=g.target.valueAsNumber;N<Number(e.min)?N=Number(e.min):N>Number(e.max)&&(N=Number(e.max)),i(N,g),n("blur",g)},p=g=>{let N=Number(g);return N<Number(e.min)?N=Number(e.min):N>Number(e.max)&&(N=Number(e.max)),N};return(0,t.watch)(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const g=p(e.modelValue);g!==Number(e.modelValue)&&i(g,{})}),{classes:o,change:r,blur:c,focus:h,add:d,addAllow:a,reduce:s,reduceAllow:u,toPxString:he}}}),ah=["min","max","disabled","readonly","value"];function rh(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Minus"),u=(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]=(...s)=>e.reduce&&e.reduce(...s))},[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[(0,t.createVNode)(a,{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]=(...s)=>e.change&&e.change(...s)),onBlur:n[2]||(n[2]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[3]||(n[3]=(...s)=>e.focus&&e.focus(...s))},null,44,ah),(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]=(...s)=>e.add&&e.add(...s))},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[(0,t.createVNode)(u,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var vl=re(oh,[["render",rh]]),ih={...ge,...be,...qo};function sh(e,n,o,l,r){return{props:ih,emits:["change","update:modelValue","setValue","add","reduce"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:g,exposeApi:N}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!d.value&&!c.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),k=(0,t.computed)(()=>{const S=[`${e}`];return i.textAlign==="left"?S.push("is-left"):i.textAlign==="center"?S.push("is-center"):i.textAlign==="right"&&S.push("is-right"),S.join(" ")}),w=qe(i,"modelValue",null,g),b=S=>{w.value=S,g("update:modelValue",S,{}),g("change",S,{})},f=S=>{g("add",S)},m=S=>{g("reduce",S)};return N({setDisabled:S=>{s.value=S},setReadonly:S=>{h.value=S}}),()=>{if(p.value==="on"&&(c.value||d.value))return l(w.value,a.slots);const S={"left-icon":a.slots["left-icon"],"right-icon":a.slots["right-icon"]},B=ye(i,qo),v=(0,t.h)(r,{...a.attrs,...B,disabled:d.value,readonly:c.value,value:w.value,"onUpdate:modelValue":b,onAdd:f,onReduce:m},S),y=[];y.push(v);const V={default:()=>y};V.label=a.slots.default,V.fixedPreTip=a.slots.fixedPreTip,V.fixedTip=a.slots.fixedTip;const T={...ye(i,be,ge),ref:u};return i.prop&&(T.prop=`${i.prop}_item`),T["content-class"]=k.value,o(T,V)}}}}var{componentName:uh,create:ch,scope:dh}=J("input-number-item"),fh=ch(sh(uh,dh,De,Pe,vl)),Po=fh,mh={...bo,...So,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function ph(e,n,o,l){return{props:mh,emits:["update:modelValue","change"],setup(r,i){const{emitEvent:a,exposeApi:u}=Oe({context:i},r.prop),{slots:s}=i,d=e,h=(0,t.computed)(()=>{const b=[`${d}`];return r.direction==="vertical"?b.push("vertical-tabbar"):b.push("horizontal-tabbar"),b}),c=(0,t.computed)(()=>{const b={};if(r.width){const f=he(r.width);f&&(b.width=f)}if(r.height){const f=he(r.height);f&&(b.height=f)}return b}),p=(0,t.computed)(()=>[`${d}__bar`]),g=(0,t.computed)(()=>[`${d}__container`]),N=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,b=>{N.value!==b&&(N.value=b)});const k=b=>{a("change",b)},w=b=>{N.value!==b&&(N.value=b,a("update:modelValue",b))};return u({}),()=>{const{getChildren:b}=Yn(s.default),f=b(),m=[];if(Array.isArray(r.data))m.push(...r.data);else for(let A=0;A<f.length;A++){const C=f[A].props??{},q={text:C.label??"",value:C["pane-key"]??C.paneKey??""};m.push(q)}const S={};for(let A in s)A!=="default"&&(S[A]=s[A]);const B=ye(r,bo);Object.assign(B,{prop:null,data:m,class:p.value,modelValue:N.value,direction:r.direction,onChange:k,"onUpdate:modelValue":w});const v=(0,t.h)(o,B,S),y={default:()=>f},V=ye(r,So);Object.assign(V,{prop:null,class:g.value,modelValue:N.value,onChange:k,"onUpdate:modelValue":w});const T=(0,t.h)(l,V,y);return(0,t.h)("view",{class:h.value,style:c.value},[v,T])}}}}var{create:hh,componentName:vh,scope:gh}=J("tabs-frame"),yh=hh(ph(vh,gh,an,rn)),Mo=yh,bh={prop:{type:[String]},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 Sh(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ar(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Br(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function kh(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Bl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Tr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Vr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Tl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var wh=class{scope;constructor(e){this.scope=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=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await Reflect.apply(l,null,[n,o]))}};function Ch(){return new wh(ct())}function Nh(e,n,o,l){return{props:bh,emits:["update:modelValue","change","loaded-data","click"],setup(r,i){const{emitEvent:a,exposeApi:u}=Oe({context:i},r.prop),s=e,d=Ch(),h=(0,t.ref)([]),c=(0,t.computed)(()=>h.value.filter(Y=>kh(r,Y)!==!1)),p=(0,t.ref)(-1),g=()=>{const Y=r.modelValue,G=c.value.findIndex(F=>Ar(r,F)===Y);p.value!==G&&(p.value=G,r.scroll&&ee(G,!1))};(0,t.watch)([()=>r.modelValue,c],()=>{g()});const N=Y=>p.value===Y,k=Y=>{if(Y<0&&Y>=c.value.length)return!1;const G=c.value[Y],F=(Tl(r,G,Y)??{}).status??Bl(r,G);return N(Y)||F},w=(0,t.computed)(()=>{const Y={[s]:!0};return r.mode?Y[`is-${r.mode}`]=!0:r.direction&&(Y[`is-${r.direction}`]=!0),r.scroll&&(Y["is-scroll"]=!0),Y}),b=(0,t.computed)(()=>({})),f=(Y,G,F,te,U)=>{const D={[`${s}__step`]:!0};return U&&(D[`${U}`]=!0),D[`${m.value}`]=!0,te&&(D["is-doit"]=!0),Y===p.value?D["is-active"]=!0:G==="done"?D["is-done"]=!0:G==="error"?D["is-error"]=!0:G==="half"?D["is-half"]=!0:F?D["is-disabled"]=!0:D["is-normal"]=!0,D},m=(0,t.computed)(()=>{let Y=r.align;if(!Y){if(r.mode==="simple")return"start";r.direction==="vertical"?Y="start":Y="center"}return Y}),S=(Y,G={})=>{const F={...G};if(m.value==="start"&&Y===c.value.length-1)F.flex="0 0 auto";else if(r.step){const te=typeof r.step=="number"||qn(r.step)?he(r.step):r.step;r.direction==="vertical"?F.height=te:F.width=te}else F.flex="1 1 100%";return F},B=(Y,G)=>{let F={};if(G<c.value.length-1){const te=G+1;k(G)&&k(te)?r.direction==="vertical"?F.height="100%":F.width="100%":F.opacity="0"}return F},v=Y=>c.value.length-1===Y,y=(Y,G)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&G>p.value||p.value===G)return;const F=p.value,te=G;p.value=G,r.scroll&&ee(G,!1);const U=Ar(r,Y);a("update:modelValue",U),a("change",U,{fromIndex:F,currentIndex:te,item:Y,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy})},V=(0,t.ref)(!0),T=async(Y,G)=>{try{const F=await d.load("stesbar",Y,G);Array.isArray(F)&&(h.value=F),V.value=!1}catch(F){console.error("[FoxUI] Load StepsBar Data Fail",F),h.value=[]}setTimeout(()=>{a("loaded-data")},250)};(0,t.watch)([()=>r.data,()=>r.params],async([Y,G])=>{Y&&T(Y,G)},{immediate:!0}),u({});const A=(Y,G,F,te,U,D)=>{const O=[];let j=null;if(!D)if(i.slots.icon)j=i.slots.icon({item:Y,index:G,status:te});else if(te==="done"){const X={};r.iconSize&&(X.width=r.iconSize,X.height=r.iconSize),j=(0,t.h)(r.icon??o,X)}else j=(0,t.h)("span",{},[F??`${G+1}`]);return j&&O.push(j),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{a("click",{item:Y,index:G}),!U&&y(Y,G)}},O)},C=(Y,G,F)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:B(Y,G)})]),q=()=>{let Y=null;if(i.slots.markIcon)Y=i.slots.markIcon();else{const G={};r.iconSize&&(G.width=r.markIconSize,G.height=r.markIconSize),Y=(0,t.h)(r.markIcon??l,G)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[Y])},H=(Y,G,F,te,U,D)=>{const O=[];if(!v(G)){const X=C(Y,G,te);O.push(X)}const j=A(Y,G,F,te,U,D);return O.push(j),(0,t.h)("view",{class:"fox-steps-bar__head"},O)},x=(Y,G,F,te)=>{let U=null;return i.slots.main?U=i.slots.main({item:Y,index:G,status:F}):U=Sh(r,Y),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{a("click",{item:Y,index:G}),!te&&y(Y,G)}},[U])},M=(Y,G,F)=>{let te=null;return i.slots.sub?(te=i.slots.sub({item:Y,index:G,status:F}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[te])):null},P=(Y,G)=>{const F=Tl(r,Y,G)??{},te=F.status??Bl(r,Y);let U=Br(r,Y);F.disabled===!0&&(U=!0),r.disabled===!0&&(U=!0);let D=Tr(r,Y);F.doit===!0&&(D=!0);const O=F.label??Vr(r,Y),j=[],X=A(Y,G,O,te,U,D);X&&j.push(X);const ne=x(Y,G,te,U);if(ne&&j.push(ne),!v(G)){const Z=C(Y,G,te);Z&&j.push(Z)}const K=[],_=(0,t.h)("view",{class:"fox-steps-bar__head"},j);K.push(_);const $=M(Y,G,te);$&&K.push($);const E=F.class,L=F.style??{};return(0,t.h)("view",{ref:Q(G),class:f(G,te,U,D,E),style:S(G,L)},K)},R=(Y,G)=>{const F=Tl(r,Y,G)??{},te=F.status??Bl(r,Y);let U=Br(r,Y);F.disabled===!0&&(U=!0),r.disabled===!0&&(U=!0);let D=Tr(r,Y);F.doit===!0&&(D=!0);const O=F.label??Vr(r,Y),j=[],X=r.layout;for(let _ of X)if(_==="head"){const $=H(Y,G,O,te,U,D);j.push($)}else if(_==="main"){const $=x(Y,G,te,U);j.push($)}else if(_==="sub"){const $=M(Y,G,te);j.push($)}else if(_==="mark"){const $=q();j.push($)}const ne=F.class,K=F.style??{};return(0,t.h)("view",{ref:Q(G),class:f(G,te,U,D,ne),style:S(G,K)},j)},z=(0,t.ref)(),W=(0,t.ref)([]),I=(Y,G)=>{W.value[G]=Y},Q=Y=>G=>{I(G,Y)},ee=(Y,G)=>{const F=z.value,te=W.value;if(!F||!te||!te[Y])return;const U=te[Y];let D=0;r.direction==="vertical"?D=U.offsetTop-(F.offsetHeight-U.offsetHeight)/2:D=U.offsetLeft-(F.offsetWidth-U.offsetWidth)/2,oe(F,D,G?0:.3,r.direction)},oe=(Y,G,F,te)=>{let U=0;const D=te==="horizontal"?Y.scrollLeft:Y.scrollTop,O=F===0?1:Math.round(F*1e3/16);function j(){te==="horizontal"?Y.scrollLeft+=(G-D)/O:Y.scrollTop+=(G-D)/O,++U<O&&He(j)}j()};return()=>{let Y=[];if(r.mode==="simple")for(let F=0;F<c.value.length;F++){const te=c.value[F],U=P(te,F);Y.push(U)}else for(let F=0;F<c.value.length;F++){const te=c.value[F],U=R(te,F);Y.push(U)}const G={ref:z,class:w.value,style:b.value};return Y.length===0&&typeof i.slots.default=="function"&&(Y=i.slots.default()),(0,t.h)("view",G,Y)}}}}var{componentName:Ah,create:Bh,scope:Th}=J("steps-bar"),Vh=Bh(Nh(Ah,Th,ae.Checklist,ae.ArrowRight)),zo=Vh;function xh(e){e.stopPropagation()}var Eh=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=tl()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=nl(),o=(l,r,i,a)=>{this.updateMove({x:l,y:r})};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),xh(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 $h(e,n){return new Eh(e,n)}var Dh={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]}},Ih=(e,n,o,l=!1)=>({props:{...Dh},emits:["click"],setup(r,{slots:i,emit:a}){let u=-1,s=-1;const d=(0,t.reactive)({top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:0,height:0}),h=(0,t.computed)(()=>{const B=[`${e}`];return r.customClass&&B.push(r.customClass),B}),c=B=>typeof B=="string"&&!qn(B)?B:`${B}px`,p=(0,t.computed)(()=>{const B={};return me(d.top)||(B.top=c(d.top)),me(d.right)||(B.right=c(d.right)),me(d.bottom)||(B.bottom=c(d.bottom)),me(d.left)||(B.left=c(d.left)),me(r.width)||(B.width=c(r.width)),me(r.height)||(B.height=c(r.height)),me(r.color)||(B.color=r.color),me(r.background)||(B.background=r.background),me(r.borderRadius)||(B["border-radius"]=r.borderRadius),me(r.zIndex)||(B["z-index"]=r.zIndex),B}),g=(0,t.computed)(()=>({[`${e}__icon`]:!0})),N=()=>{a("click")},k=(0,t.ref)(null),w=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},b={x:0,y:0},S=$h(B=>{if(!k.value)return;const v=k.value;w(),d.left=v.offsetLeft,d.top=v.offsetTop,v.style.left=`${d.left}px`,v.style.top=`${d.top}px`,v.style.right=null,v.style.bottom=null,b.x=d.left,b.y=d.top,d.width=v.offsetWidth,d.height=v.offsetHeight,u=document.documentElement.clientWidth||document.body.clientWidth,s=document.documentElement.clientHeight||document.body.clientHeight},B=>{if(!k.value)return;const v=k.value;w();let y=b.x+B.x;y<0&&(y=0),y>u-d.width&&(y=u-d.width);let V=b.y+B.y;V<0&&(V=0),V>s-d.height&&(V=s-d.height),d.left=y,d.top=V,v.style.left=`${y}px`,v.style.top=`${V}px`});return(0,t.onMounted)(()=>{if(r.draggable&&k.value){const B=[k.value];S.open(B)}}),(0,t.onBeforeUnmount)(()=>{r.draggable&&k.value&&S.close()}),()=>{let B=[];const v=typeof i.default=="function"?i.default():[];if(v&&v.length>0)B=v;else{const y=(0,t.h)(o,{class:g.value});B.push(y)}return(0,t.h)("view",{ref:y=>{k.value=y},class:h.value,style:p.value,onClick:N},B)}}}),{componentName:qh,create:Ph,scope:Mh}=J("floating-button"),zh=Ph(Ih(qh,Mh,ae.Uploader,!1)),Ro=zh,Rh={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 Lh(e,n,o){return{props:{...Rh},emits:["click","update:modelValue"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:a}=(0,ve.useFoxI18n)(n),u=a(l,["collapseText","expandText"]),s=(0,t.computed)(()=>{const N={[`${e}`]:!0};return l.disabled?N[`${e}--disabled`]=!0:N[`${e}--${l.type}`]=!0,N}),d=qe(l,"modelValue"),h=(0,t.computed)(()=>d.value?u.expandText.value??"":u.collapseText.value??""),c=(0,t.computed)(()=>({[`${e}__text`]:!0})),p=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),g=()=>{r("update:modelValue",!d.value)};return()=>{const N=[];if(h.value){const b=(0,t.h)("span",{class:c.value},[h.value]);N.push(b)}const k={class:p.value},w=(i.icon&&i.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(o);if(w){const b=(0,t.h)("view",k,[w]);N.push(b)}return l.textPosition==="right"&&N.reverse(),(0,t.h)("view",{class:s.value,onClick:g},N)}}}}var{componentName:Fh,create:Oh,scope:Kh}=J("more-button"),Uh=Oh(Lh(Fh,Kh,ae.RectUp)),Lo=Uh,Hh={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}},_h=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function jh(e,n,o){return{props:{...Hh},emits:["update:visible"],setup(l,{attrs:r,slots:i,emit:a}){const{toLocaleRefs:u}=(0,ve.useFoxI18n)(n),s=u(l,["confirmText","cancelText"]),d=e,h=(0,t.ref)(l.visible),c=B=>{h.value=B,a("update:visible",B)};(0,t.watch)(()=>l.visible,B=>{h.value!==B&&(h.value=B)});const p=B=>{if(typeof l.unmount=="function")try{l.unmount()}catch(v){console.error(v)}if(typeof l.callback=="function")try{l.callback(B)}catch(v){console.error(v)}},g=()=>{p("confirm")},N=()=>{p("cancel")},k=()=>{l.closeOnClickOverlay!==!1&&p("close")},w=(B,v)=>_h(B)?(v.src=B,(0,t.h)("img",v)):typeof B=="string"?(Array.isArray(v.class)?v.class.push(B):v.class&&typeof v.class=="object"?v[`${B}`]=!0:typeof v.class=="string"?v.class=`${v.class}, ${B}`:v.class=B,(0,t.h)(l.tag,v)):(0,t.h)(B,v),b=()=>{const B=[];if(l.icon){const v={class:[`${d}__header-icon`]},y=w(l.icon,v);B.push(y)}if(l.title){const v=(0,t.h)("view",{class:`${d}__header-title`},[l.title]);B.push(v)}if(l.showClose&&l.closeIcon){const v={class:[`${d}__header-close-icon`],onClick:k},y=w(l.closeIcon,v);B.push(y)}return(0,t.h)("view",{class:[`${d}__header`]},B)},f=(B,v)=>{const y=[];if(v){const V=(0,t.h)("view",{class:`${d}__group-title`},[v]);y.push(V)}if(B){const V=[];Array.isArray(B)||(B=[B]);for(let T of B){const A=(0,t.h)("view",{class:`${d}__group-row`,innerHTML:T});V.push(A)}if(V.length>0){const T=(0,t.h)("view",{class:`${d}__group-rows`},V);y.push(T)}}return y.length===0?null:(0,t.h)("view",{class:`${d}__group`},y)},m=()=>{const B=[];if(typeof l.message=="string")B.push(l.message);else if(Array.isArray(l.message))for(let v of l.message)if(typeof v=="string"){const y=f(v);B.push(y)}else{const y=f(v.content,v.title);B.push(y)}else if(typeof l.message=="function"){const v=l.message();B.push(v)}else{const v=l.message;B.push(v)}return(0,t.h)("view",{class:`${d}__body`},B)},S=()=>{const B=[];if(l.showCancelButton){const v={class:[`${d}__footer-button`],style:{},onClick:N};l.cancelButtonClass&&v.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(v.style,l.cancleButtonStyle);const y=(0,t.h)("button",v,[l.cancelButtonText??s.cancelText.value]);B.push(y)}if(l.showConfirmButton){const v={class:[`${d}__footer-button`],style:{},onClick:g};l.confirmButtonClass&&v.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(v.style,l.confirmButtonStyle);const y=(0,t.h)("button",v,[l.confirmButtonText??s.confirmText.value]);B.push(y)}return B.length===0?null:(0,t.h)("view",{class:`${d}__footer`},B)};return()=>{const B=[],v=b();v&&B.push(v);const y=m();y&&B.push(y);const V=S();V&&B.push(V);const T=(0,t.h)("view",{class:{[`${d}`]:!0,[`${d}--${l.type||"info"}`]:!0}},B),A=[`${d}__popup`];l.popClass&&A.push(l.popClass);const C={};return l.width&&(C.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(C.height=typeof l.height=="number"?`${l.height}px`:l.height),(0,t.h)(o,{popClass:A.join(" "),style:C,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":c,position:l.position,round:"round",onClickOverlay:k,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>T})}}}}var{componentName:Wh,create:Yh,scope:Xh}=J("messagebox"),Qh=Yh(jh(Wh,Xh,we)),Gh=Qh,Zh="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",Jh="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",ev="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",tv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='101'%20height='110'%20viewBox='0%200%20101%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M81.512%201.93968L80.7498%206.07825C80.6498%206.6214%2080.1284%206.98064%2079.5852%206.8806C79.4326%206.85251%2079.2886%206.78925%2079.1645%206.69578L76.1585%204.43061C75.7175%204.09823%2075.6293%203.47123%2075.9617%203.03016C76.0552%202.90617%2076.1761%202.80562%2076.3152%202.73655L80.0833%200.863097C80.5779%200.617235%2081.1781%200.818843%2081.424%201.31339C81.5203%201.50712%2081.5512%201.72688%2081.512%201.93968Z'%20fill='%23FEFAE0'%20%3e%3c/path%3e%3cpath%20d='M2.08224%20102.2L5.5346%2094.2358C5.75425%2093.7291%206.34257%2093.4968%206.84931%2093.7164C6.99222%2093.7778%207.11822%2093.872%207.21798%2093.9909L12.2086%2099.9384C12.5636%20100.361%2012.5082%20100.992%2012.0853%20101.347C11.9666%20101.447%2011.8261%20101.518%2011.675%20101.554L3.23209%20103.571C2.6949%20103.699%202.15544%20103.367%202.02705%20102.83C1.97681%20102.62%201.99613%20102.399%202.08224%20102.2Z'%20fill='%23FEE789'%20%3e%3c/path%3e%3ccircle%20cx='50'%20cy='59'%20r='28'%20fill='%23FAB007'%20%3e%3c/circle%3e%3crect%20x='46.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%23FEE789'%20%3e%3c/rect%3e%3crect%20x='46.5'%20y='66'%20width='7'%20height='7'%20rx='3.5'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='84.5'%20cy='106.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='94'%20cy='30'%20r='7'%20fill='%23FEE789'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L101%20110L101%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",nv=new Qn,lv={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},ov=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"),r=`messagebox-${nv.get()}`;l.id=r,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const a=document.querySelector(`#${r}`);a&&a.parentNode?.removeChild(a)};const i=(0,t.createVNode)(Gh,e);n.appendChild(l),(0,t.render)(i,l)},it={show:(e,n,o,l)=>{const r={...lv};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(r,n):(n&&(r.message=n),o&&typeof o=="object"?Object.assign(r,o):(typeof o=="string"&&(r.title=o),l&&typeof l=="object"?Object.assign(r,l):typeof l=="string"&&(r.type=l)));const i=r.type??"info";return r.icon||(i==="success"?r.icon=ev:i==="warning"?r.icon=tv:i==="error"?r.icon=Zh:r.icon=Jh),e==="alert"?(r.showCancelButton=!1,r.showConfirmButton=!0):e==="confirm"&&(r.showCancelButton=!0,r.showConfirmButton=!0),r.showClose&&!r.closeIcon&&(r.closeIcon=ae.Close),new Promise((a,u)=>{const s=r.callback;r.callback=d=>{if(typeof s=="function")try{s(d)}catch(h){console.error(h)}a({action:d})},ov(r)})},alert:(e,n,o)=>it.show("alert",e,n,o),confirm:(e,n,o)=>it.show("confirm",e,n,o),install(e){e.config.globalProperties.$alert=it.alert,e.config.globalProperties.$confirm=it.confirm}},av=(e,n,o)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let r=!0,i=!0;for(let a in n)a==="bubbles"?r=!!n[a]:a==="cancelable"?i=!!n[a]:l[a]=n[a];l.initEvent(e,r,i),(o??document).dispatchEvent(l)},rv=new Qn,iv=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),sv=e=>`${e}-${rv.get()}`,uv=Symbol.for("InnerPageScopeKey"),cv=Symbol.for("PageWrapperKey"),dv="FoxLeave",fv="FoxLeaveEnd",mv={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 pv(e,n,o,l){return{props:{...Je,...mv},emits:["update:visible"],setup(r,{attrs:i,slots:a,emit:u}){(0,t.provide)(uv,!0);const s={};(0,t.provide)(cv,s);const d=v=>(typeof s.beforeClose=="function"&&s.beforeClose(),!1),h=()=>{d("close")},c=e,p=v=>{g.value=v,u("update:visible",v)},g=(0,t.ref)(!1),N=(v,y)=>iv(v)?(y.src=v,(0,t.h)("img",y)):typeof v=="string"?(Array.isArray(y.class)?y.class.push(v):y.class&&typeof y.class=="object"?y[`${v}`]=!0:typeof y.class=="string"?y.class=`${y.class}, ${v}`:y.class=v,(0,t.h)(r.tag,y)):(0,t.h)(v,y),k=()=>{if(!r.showHeader)return null;const v=[];if(a.header){const y=a.header();v.push(y)}else if(r.title){const y=(0,t.h)("view",{class:`${c}__header-title`},[r.title]);v.push(y)}return v.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},v)},w=()=>{if(!r.showClose)return null;const v={class:[`${c}__close-icon`],onClick:h};return N(r.closeIcon??l,v)};let b=null;const f=v=>{av(fv,{},b)},m=sv(e),S=()=>{p(!0)},B=()=>{if(!b)return;const v=b.querySelector(".fox-overlay");v&&(v.classList.add("overlay-fade-leave-active"),v.classList.add("overlay-fade-leave-to"));const y=b.querySelector(".fox-popup");y&&(y.classList.add(`fox-popup-slide-${r.position}-leave-active`),y.classList.add(`fox-popup-slide-${r.position}-leave-to`),y.addEventListener("animationend",f,{once:!0}),y.addEventListener("transitionend",f,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{b=document.querySelector(`.${m}`),b?.addEventListener(dv,B,{once:!0}),S()}),()=>{const v=[],y=k();y&&v.push(y);const V=w();V&&v.push(V);const T=a.default?a.default():[];Reflect.apply([].push,v,T);const A={[`${c}`]:!0};r.mode&&(A[`${c}--${r.mode}`]=!0);const C=(0,t.h)("view",{class:A},v),q=[`${c}__popup`,m];r.popClass&&q.push(r.popClass),r.position&&q.push(`${c}__popup--${r.position}`);const H={};r.width&&(H.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(H.height=typeof r.height=="number"?`${r.height}px`:r.height);const x=(0,t.h)(o,{...ye(r,Je),popClass:q.join(" "),style:H,visible:g.value,teleportDisable:!0,closeable:!1,position:r.position,closeOnClickOverlay:r.closeOnClickOverlay,onClickOverlay:h,"onUpdate:visible":p},{default:()=>C});return(0,t.h)("div",{class:[`${c}__root`,m]},[x])}}}}var{componentName:hv,create:vv,scope:gv}=J("popup-wrapper"),yv=vv(pv(hv,gv,we,ae.Close)),Fo=yv,bv={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function Sv(e,n,o,l){return{props:{...bv},emits:["update:visible"],setup(r,{emit:i,slots:a}){const u=s=>{i("update:visible",s)};return()=>{const s=[`${e}__popup`];r.popClass&&s.push(r.popClass);const d=(0,t.h)(o,{popClass:s,style:r.popStyle??{},position:"top",zIndex:r.zIndex,closeOnClickOverlay:r.closeOnClickOverlay,teleportDisable:!0,visible:r.visible,"onUpdate:visible":u},a);return(0,t.h)("view",{class:`${e}`},[d])}}}}var{componentName:kv,create:wv,scope:Cv}=J("dropdown"),Nv=wv(Sv(kv,Cv,we,!1)),Oo=Nv,Av={name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean,Object],required:!1}};function Bv(e,n){return{inheritAttrs:!1,props:Av,setup(o,l){const{exposeApi:r}=Jr({context:l,props:()=>o.config},o.name);return Ve(o.innerPageScope)||ni(o.innerPageScope),Ve(o.abstractPageScope)||li(o.abstractPageScope),r(),()=>typeof l.slots.default=="function"?l.slots.default():null}}}var{componentName:Tv,create:Vv,scope:xv}=J("domain-provider"),Ev=Vv(Bv(Tv,xv)),Ko=Ev,$v={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 Dv(e,n){return{inheritAttrs:!1,props:$v,emits:["change"],setup(o,{slots:l,emit:r}){if(et&&window.IntersectionObserver){const i=new WeakMap;let a=new Map;const u=(p,g)=>{if(h===null){a.set(p,{visible:null,callback:g});return}i.has(p)&&h.unobserve(p),i.set(p,{visible:null,callback:g}),h.observe(p)},s=p=>{if(h===null){a.delete(p);return}i.has(p)&&(i.delete(p),h.unobserve(p))};let d=o.initialVisibleObserverSize;vu({acquire:()=>{if(o.loadPolicy==="always")return!0;const p=d>0;return d--,p},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:u,unobserve:s});let h=null;const c=(p,g,N)=>{h=new IntersectionObserver(k=>{if(r("change",k),o.loadPolicy!=="always")for(let w of k){let b=!1;w.intersectionRatio>0&&(b=!0);const f=i.get(w.target);if(f)try{if(o.loadPolicy==="lazy"&&!b&&f.visible!==null)return;f.visible=b,f.callback(b)}catch(m){console.error(m)}}},{root:p,rootMargin:g,threshold:N}),a.forEach((k,w)=>{i.set(w,k),h?.observe(w)}),a.clear()};(0,t.watch)([()=>o.root,()=>o.disabled],([p,g])=>{if(g||!p||h)return;let N=null;typeof p=="string"?N=document.querySelector(p):N=p,N&&c(N,o.rootMargin,o.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:Iv,create:qv,scope:Pv}=J("rolling-provider"),Mv=qv(Dv(Iv,Pv)),Uo=Mv,{componentName:zv,create:Rv}=J("cell"),Lv=Rv({components:{Right:ae.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const i=zv;return{[i]:!0,[`${i}--clickable`]:e.isLink,[`${i}--center`]:e.center,[`${i}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:he(e.roundRadius)}));return{handleClick:i=>{n("click",i)},classes:o,baseStyle:l}}}),Fv={key:0,class:"fox-cell__icon"},Ov={key:1,class:"fox-cell__title"},Kv={class:"title"},Uv={class:"fox-cell__title-desc"};function Hv(e,n,o,l,r,i){const a=(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]=(...u)=>e.handleClick&&e.handleClick(...u))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fv,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ov,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",Kv,(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)(a,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var Ho=re(Lv,[["render",Hv]]),_v={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function jv(e,n){return{props:{..._v},setup(o,{attrs:l,slots:r}){const i=(0,t.computed)(()=>{const a={};return o.color&&(a.color=o.color),o.size&&(a.fontSize=he(o.size)),a});return()=>{const a={style:i.value,class:`${e}-wrap`,...l};return(0,t.h)(o.tag??"li",a,r)}}}}var{componentName:Wv,create:Yv,scope:Xv}=J("icon"),Qv=Yv(jv(Wv,Xv)),_o=Qv,{componentName:Gv,create:Zv}=J("cell-group"),Jv=Zv({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[Gv]:!0}))}}}),eg={key:1,class:"fox-cell-group__title"},tg={key:3,class:"fox-cell-group__desc"},ng={class:"fox-cell-group__wrap"};function lg(e,n,o,l,r,i){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",eg,(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",tg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",ng,[(0,t.renderSlot)(e.$slots,"default")])],2)}var jo=re(Jv,[["render",lg]]),{componentName:og,create:ag}=J("image"),rg=ag({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:ae.Image,ImageError:ae.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const o=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const g=og;return{[g]:!0,[`${g}-round`]:e.round}}),r=(0,t.ref)(null),i=(0,t.ref)(!1),a=(0,t.ref)(null),u=()=>{r.value=new IntersectionObserver(g=>{g.forEach(N=>{N.isIntersecting&&(i.value=!0,r.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),a.value&&r.value.observe(a.value)};(0,t.onMounted)(()=>{e.lazyLoad&&u()}),(0,t.onBeforeUnmount)(()=>{r.value&&r.value.disconnect()});const s=(0,t.computed)(()=>{let g={};return e.width&&(g.width=he(e.width)),e.height&&(g.height=he(e.height)),e.radius!==void 0&&e.radius!==null&&(g.overflow="hidden",g.borderRadius=he(e.radius)),g}),d=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,g=>{o.isError=!1,o.loading=!0});const h=()=>{o.loading=!1,n("load")},c=()=>{o.isError=!0,o.loading=!1,n("error")},p=g=>{n("click",g)};return{...(0,t.toRefs)(o),imageClick:p,classes:l,styles:d,stylebox:s,error:c,load:h,show:i,imgRef:a}}}),ig=["src","date-src","alt"],sg={key:0,class:"fox-img-loading"},ug={key:1,class:"fox-img-error"};function cg(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Image"),u=(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]=(...s)=>e.imageClick&&e.imageClick(...s))},[(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]=(...s)=>e.load&&e.load(...s)),onError:n[1]||(n[1]=(...s)=>e.error&&e.error(...s)),style:(0,t.normalizeStyle)(e.styles)},null,44,ig),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",sg,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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",ug,[e.slotError?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,width:"16px",height:"20px",name:"imageError"})),(0,t.renderSlot)(e.$slots,"error")])):(0,t.createCommentVNode)("",!0)],6)}var Wo=re(rg,[["render",cg]]),{create:dg}=J("layout"),fg=dg({}),Yo=fg,{componentName:mg,create:pg}=J("col"),hg=pg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=mg,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 vg(e,n,o,l,r,i){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 Xo=re(hg,[["render",vg]]),{componentName:gg,create:yg}=J("row"),bg=yg({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=gg;(0,t.provide)("gutter",e.gutter);const o=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
2
2
  ${o("",e.type)}
3
3
  ${o("justify",e.justify)}
4
4
  ${o("align",e.align)}
@@ -6,4 +6,4 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
6
6
  ${n}
7
7
  `:`
8
8
  ${n}
9
- `)}}});function Sg(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)}var Qo=re(bg,[["render",Sg]]),{create:kg}=J("sticky"),wg=kg({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)(),r=(0,t.reactive)({fixed:!1,height:0,transform:0}),i=(0,t.computed)(()=>e.position==="top"?Number(e.top):Number(e.bottom)),a=(0,t.computed)(()=>r.fixed?{height:`${r.height}px`}:{}),u=(0,t.computed)(()=>r.fixed?{[e.position]:`${i.value}px`,transform:r.transform?`translate3d(0, ${r.transform}px, 0)`:void 0,position:r.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),s=()=>{const d=e.container;if(!o.value&&!d)return;const h=$e(o),c=l.value,p=$e(c),g=$e(d);r.height=h.height;const N=()=>{let w=!1;if(e.position==="top")w=d?i.value>h.top&&g.bottom>0:i.value>h.top;else{const b=document.documentElement.clientHeight;w=d?g.bottom>0&&b-i.value-p.height>g.top:b-i.value<h.bottom}return w},k=()=>{if(d)if(e.position==="top"){const w=g.bottom-i.value-p.height;return w<0?w:0}else{const w=document.documentElement.clientHeight,b=g.bottom-(w-i.value);return b<0?b:0}return 0};r.transform=k(),r.fixed=N()};return(0,t.watch)(()=>r.fixed,d=>{n("change",d)}),(0,t.onMounted)(()=>{s(),Wl(o.value).addEventListener("scroll",s,!0)}),(0,t.onUnmounted)(()=>{Wl(o.value).removeEventListener("scroll",s)}),{rootRef:o,rootStyle:a,stickyRef:l,stickyStyle:u}}});function Cg(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-sticky",ref:"rootRef",style:(0,t.normalizeStyle)(e.rootStyle)},[(0,t.createElementVNode)("div",{class:"fox-sticky__box",ref:"stickyRef",style:(0,t.normalizeStyle)(e.stickyStyle)},[(0,t.renderSlot)(e.$slots,"default")],4)],4)}var Wt=re(wg,[["render",Cg]]),{componentName:Ng,create:Ag}=J("divider"),Bg=Ag({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=Ng;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 Tg(e,n,o,l,r,i){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 Go=re(Bg,[["render",Tg]]),sn=(e,n={})=>{const o=(0,t.shallowRef)([]),l=i=>{o.value.push(i),(0,t.triggerRef)(o)},r=i=>{const a=o.value.findIndex(u=>u===i);a!=-1&&(o.value.splice(a,1),(0,t.triggerRef)(o))};return(0,t.onUnmounted)(()=>{const i=o.value.length;o.value.splice(0,i)}),(0,t.provide)(e,{unlink:r,link:l,children:o,...n}),{children:o}};function un(e,n){const o=(0,t.inject)(e,null);if(o){const{link:l,unlink:r,children:i}=o;return l(n),(0,t.onUnmounted)(()=>{r(n)}),{parent:o,index:(0,t.computed)(()=>i.value.indexOf(n))}}return{parent:o,index:(0,t.computed)(()=>-1)}}var{componentName:Vg}=J("grid"),Ki=Symbol("grid"),xg={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}},Eg={props:xg,setup(e,{slots:n}){sn(Ki,{props:e});const o=(0,t.computed)(()=>{const r=Vg;return{[r]:!0,[`${r}--border`]:e.border&&!e.gutter}}),l=(0,t.computed)(()=>{const r={};return e.gutter&&(r.paddingLeft=he(e.gutter)),r});return()=>(0,t.h)("view",{class:o.value,style:l.value},n.default?.())}},{create:$g}=J("grid"),Dg=$g(Eg),Zo=Dg,{create:Ig,componentName:xr}=J("grid-item"),qg=Ig({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const{parent:o,index:l}=un(Ki,{props:e}),r=(0,t.computed)(()=>({[xr]:!0})),i=(0,t.computed)(()=>{const s={flexBasis:`${100/+o.props.columnNum}%`};return o.props.square?s.paddingTop=`${100/+o.props.columnNum}%`:o.props.gutter&&(s.paddingRight=he(o.props.gutter),l.value>=o.props.columnNum&&(s.marginTop=he(o.props.gutter))),s}),a=(0,t.computed)(()=>{const s=`${xr}__content`;return{[`${s}`]:!0,[`${s}--border`]:o.props.border,[`${s}--surround`]:o.props.border&&o.props.gutter,[`${s}--center`]:o.props.center,[`${s}--square`]:o.props.square,[`${s}--reverse`]:o.props.reverse,[`${s}--${o.props.direction}`]:!!o.props.direction,[`${s}--clickable`]:o.props.clickable}});return{rootClass:r,rootStyle:i,contentClass:a,handleClick:s=>{n("click",s)}}}}),Pg={class:"fox-grid-item__text"};function Mg(e,n,o,l,r,i){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]=(...a)=>e.handleClick&&e.handleClick(...a))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.contentClass)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("view",Pg,[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.renderSlot)(e.$slots,"text",{key:1})])],2)],6)}var Jo=re(qg,[["render",Mg]]),{componentName:zg,create:Rg}=J("navbar"),Lg=Rg({components:{Left:ae.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:o,fixed:l,safeAreaInsetTop:r,placeholder:i,zIndex:a}=(0,t.toRefs)(e),u=(0,t.ref)(null),s=(0,t.ref)(null);let d=(0,t.ref)();const h=(0,t.computed)(()=>{const w=zg;return{[w]:!0,[`${w}--border`]:o.value,[`${w}--fixed`]:l.value,[`${w}--safe-area-inset-top`]:r.value}}),c=(0,t.computed)(()=>({zIndex:a.value}));(0,t.onMounted)(()=>{l.value&&i.value&&(0,t.nextTick)(()=>{d.value=s?.value?.getBoundingClientRect().height,u.value.style.height=d.value+"px"})});function p(){n("on-click-back")}function g(){n("on-click-title")}function N(){n("on-click-icon")}function k(){n("on-click-right")}return{navBarWrap:u,navBarHtml:s,classes:h,styles:c,handleLeft:p,handleCenter:g,handleCenterIcon:N,handleRight:k}}}),Fg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Og={key:1,class:"fox-navbar__text"},Kg={class:"fox-navbar__title"},Ug={key:0,class:"fox-navbar__text"},Hg={key:1,class:"fox-navbar__text"},_g={class:"fox-navbar__title"},jg={key:0,class:"fox-navbar__text"};function Wg(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fg,[(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]=(...u)=>e.handleLeft&&e.handleLeft(...u))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(a,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Og,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Kg,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...u)=>e.handleCenter&&e.handleCenter(...u))},(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]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...u)=>e.handleRight&&e.handleRight(...u))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ug,(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]=(...u)=>e.handleLeft&&e.handleLeft(...u))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(a,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hg,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",_g,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...u)=>e.handleCenter&&e.handleCenter(...u))},(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]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...u)=>e.handleRight&&e.handleRight(...u))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",jg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var ea=re(Lg,[["render",Wg]]),Yg=(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:r}){const{toLocaleRefs:i}=(0,ve.useFoxI18n)(n),a=i(l,["activeText","unActiveText"]),u=(0,t.computed)(()=>({[e]:!0,active:l.visible,[l.type]:!0})),s=(0,t.ref)(-1);return{...a,classes:u,updateValue:(c=!l.visible)=>{r("update:visible",c)},selected:(c,p)=>{r("selected",{item:c,event:p}),s.value=c.id},current:s}}}),{componentName:Xg,create:Qg,scope:Gg}=J("fixednav"),Zg=Qg(Yg(Xg,Gg,{[ut.name]:ut,Left:ae.Left})),Jg={class:"fox-fixednav__list"},ey=["onClick"],ty=["src"],ny={class:"span"},ly={key:0,class:"b"},oy={class:"text"};function ay(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-overlay"),u=(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)(a,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=s=>e.updateValue(!1))},null,8,["visible"])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"list",{},()=>[(0,t.createElementVNode)("view",Jg,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.navList,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-fixednav__list-item",{active:s.id==e.current}]),onClick:h=>e.selected(s,h),key:s.id||d},[(0,t.createElementVNode)("img",{src:s.icon},null,8,ty),(0,t.createElementVNode)("view",ny,(0,t.toDisplayString)(s.text),1),s.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",ly,(0,t.toDisplayString)(s.num),1)):(0,t.createCommentVNode)("",!0)],10,ey))),128))])]),(0,t.createElementVNode)("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=s=>e.updateValue())},[(0,t.renderSlot)(e.$slots,"btn",{},()=>[(0,t.createVNode)(u,{color:"#fff"}),(0,t.createElementVNode)("view",oy,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var ta=re(Zg,[["render",ay]]),Ui=Symbol("fox-menu"),{componentName:ry,create:iy}=J("menu"),sy=iy({components:{RectUp:ae.RectUp,RectDown:ae.RectDown},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:{type:String,default:""}},setup(e){const n=(0,t.ref)(),o=(0,t.ref)(0),l=(0,t.ref)(!1),{children:r}=sn(Ui,{props:e,offset:o}),i=(0,t.computed)(()=>r.value.some(p=>p.state.showWrapper)),a=(0,t.computed)(()=>({[ry]:!0,"scroll-fixed":l.value})),u=()=>{if(n.value){const p=$e(n);e.direction==="down"?o.value=p.bottom:o.value=window.innerHeight-p.top}},s=p=>{r.value.forEach((g,N)=>{N===p?(u(),g.toggle()):g.state.showPopup&&g.toggle(!1,{immediate:!0})})},d=p=>Math.max(0,"scrollTop"in p?p.scrollTop:p.pageYOffset),h=()=>{const{scrollFixed:p}=e;l.value=d(window)>(typeof p=="boolean"?30:Number(p))},c=p=>{let g="";const{titleClass:N}=e;return p&&(g+="active"),N&&(g+=` ${N}`),g};return(0,t.onMounted)(()=>{const{scrollFixed:p}=e;p&&window.addEventListener("scroll",h)}),(0,t.onUnmounted)(()=>{const{scrollFixed:p}=e;p&&window.removeEventListener("scroll",h)}),{toggleItem:s,children:r,opened:i,classes:a,barRef:n,getClasses:c}}}),uy=["onClick"],cy={class:"fox-menu__title-text"},dy={class:"fox-menu__title-icon"};function fy(e,n,o,l,r,i){const a=(0,t.resolveComponent)("RectUp"),u=(0,t.resolveComponent)("RectDown");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{ref:"barRef",class:(0,t.normalizeClass)(["fox-menu__bar",{opened:e.opened}])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.children,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu__item",{disabled:s.props.disabled,active:s.state.showPopup}]),style:(0,t.normalizeStyle)({color:s.state.showPopup?e.activeColor:""}),onClick:h=>!s.props.disabled&&e.toggleItem(d)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__title",e.getClasses(s.state.showPopup)])},[(0,t.createElementVNode)("view",cy,(0,t.toDisplayString)(s.renderTitle()),1),(0,t.createElementVNode)("span",dy,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.direction==="up"?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1}))])])],2)],14,uy))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var na=re(sy,[["render",fy]]),{create:my}=J("menu-item"),py=my({props:{title:[String],options:{type:Array,default:[]},disabled:{type:[Boolean],default:!1},modelValue:{type:[String,Number,Boolean]},cols:{type:Number,default:1},activeTitleClass:{type:[String]},inactiveTitleClass:{type:[String]}},components:{FoxPopup:we,Check:ae.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n}){const o=(0,t.reactive)({showPopup:!1,showWrapper:!1}),l=(0,t.computed)(()=>h.props.direction==="down"?{top:h.offset.value+"px"}:{bottom:h.offset.value+"px"}),r=(0,t.computed)(()=>{const c={height:h.offset.value+"px"};return h.props.direction==="down"?{...c,top:"0px"}:{...c,bottom:"0px"}}),i=(c=!o.showPopup)=>{c!==o.showPopup&&(o.showPopup=c,c&&(o.showWrapper=!0,n("open")))},a=()=>{if(e.title)return e.title;const c=e.options?.find(p=>p.value===e.modelValue);return c?c.text:""},u=c=>{o.showPopup=!1,c.value!==e.modelValue&&(n("update:modelValue",c.value),n("change",c.value))},s=()=>{n("close"),o.showWrapper=!1},d=()=>{o.showPopup=!1,n("close")},{parent:h}=un(Ui,{props:e,state:o,toggle:i,renderTitle:a});return{style:l,placeholderElementStyle:r,renderTitle:a,state:o,parent:h,toggle:i,onClick:u,handleClose:s,handleClickOutside:d}}}),hy={class:"fox-menu-item"},vy={class:"fox-menu-item__content fox-menu-item__overflow"},gy=["onClick"];function yy(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Check"),u=(0,t.resolveComponent)("FoxPopup");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",hy,[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-menu-item-placeholder-element",style:(0,t.normalizeStyle)(e.placeholderElementStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClickOutside&&e.handleClickOutside(...s))},null,4),[[t.vShow,e.state.showPopup]]),(0,t.createVNode)(u,(0,t.mergeProps)(e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.state.showPopup=s),style:{position:"absolute"},"overlay-style":{position:"absolute"},position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"destroy-on-close":!1,overlay:e.parent.props.overlay,"lock-scroll":e.parent.props.lockScroll,"teleport-disable":!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay,onClosed:e.handleClose}),{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",vy,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu-item__option",[{active:s.value===e.modelValue}]]),style:(0,t.normalizeStyle)({"flex-basis":100/e.cols+"%"}),onClick:h=>e.onClick(s)},[s.value===e.modelValue?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:(0,t.normalizeClass)(["fox-menu-item__span",[s.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[(0,t.renderSlot)(e.$slots,"icon",{},()=>[(0,t.createVNode)(a,(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)([s.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:(0,t.normalizeStyle)({color:s.value===e.modelValue?e.parent.props.activeColor:""})},(0,t.toDisplayString)(s.text),7)],14,gy))),128)),(0,t.renderSlot)(e.$slots,"default")])]),_:3},16,["visible","position","duration","overlay","lock-scroll","close-on-click-overlay","onClosed"])],512)),[[t.vShow,e.state.showWrapper]])}var la=re(py,[["render",yy]]),Hi=Symbol("fox-tabbar"),{create:by}=J("tabbar"),Sy=by({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,{emit:n}){function o(i){l.value!==i&&(l.value=i,n("update:modelValue",i),n("change",i,r.value[i]))}const l=(0,t.reactive)({size:e.size,value:de(e.modelValue),inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:o}),{children:r}=sn(Hi,{state:l});return(0,t.watch)(()=>e.modelValue,i=>{l.value=de(i)}),{changeIndex:o}}});function ky(e,n,o,l,r,i){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 oa=re(Sy,[["render",ky]]),{create:wy}=J("tabbar-item"),Cy=wy({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{parent:o,index:l}=un(Hi,{props:e}),r=(0,t.computed)(()=>l.value===o.state.value);function i(a){o&&typeof o.state.changeIndex=="function"&&o.state.changeIndex(a)}return{state:o.state,index:l,active:r,change:i}}}),Ny={class:"fox-tabbar-item_icon-box"},Ay={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},By={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Ty={key:1,class:"fox-tabbar-item_icon-box_dot"},Vy={key:2},xy={key:0};function Ey(e,n,o,l,r,i){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]=a=>e.change(e.index))},[(0,t.createElementVNode)("view",Ny,[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",Ay,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",By,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",Ty)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Vy,[((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",xy,(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 aa=re(Cy,[["render",Ey]]),{componentName:$y,create:Dy}=J("elevator"),Iy=Dy({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const 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}),r=(0,t.computed)(()=>({[$y]:!0})),i=(0,t.computed)(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),a=(0,t.computed)(()=>o.value.clientHeight),u=(b,f)=>b.getAttribute("data-"+f),s=b=>{(0,t.nextTick)(()=>{!l.listGroup.includes(b)&&b!=null&&l.listGroup.push(b)})},d=()=>{let b=0;l.listHeight.push(b);for(let f=0;f<l.listGroup.length;f++){let m=l.listGroup[f];b+=Math.floor(m.clientHeight),l.listHeight.push(b)}},h=b=>{!b&&b!==0||(b<0&&(b=0),b>l.listHeight.length-2&&(b=l.listHeight.length-2),l.codeIndex=b,o.value.scrollTo(0,l.listHeight[b]))},c=b=>{l.scrollStart=!0;let f=u(b.target,"index"),m=b.touches[0];l.touchState.y1=m.pageY,l.anchorIndex=+f,l.codeIndex=+f,h(+f)},p=b=>{let f=b.touches[0];l.touchState.y2=f.pageY;let m=(l.touchState.y2-l.touchState.y1)/e.spaceHeight|0;l.codeIndex=l.anchorIndex+m,h(l.codeIndex)},g=()=>{l.scrollStart=!1},N=(b,f)=>{n.emit("click-item",b,f),l.currentData=f,l.currentKey=b},k=b=>{n.emit("click-index",b)},w=b=>{let f=b.target.scrollTop;const m=l.listHeight;l.scrollY=f;for(let S=0;S<m.length-1;S++){let B=m[S],v=m[S+1];if(l.scrollY>=B&&l.scrollY<v){l.currentIndex=S,l.diff=v-l.scrollY;return}}l.currentIndex=m.length-2};return(0,t.onMounted)(()=>{o.value.addEventListener("scroll",w)}),n.expose({scrollTo:h}),(0,t.watch)(()=>l.listGroup.length,()=>{l.listHeight=[],(0,t.nextTick)(d)}),(0,t.watch)(()=>l.diff,b=>{const f=l.listHeight;let m=b>0&&b<e.titleHeight?b-e.titleHeight:0;l.scrollY+a.value===f[f.length-1]&&m!==0&&(m=0),l.fixedTop!==m&&(l.fixedTop=m)}),(0,t.watch)(()=>l.currentIndex,b=>{n.emit("change",b)}),{classes:r,...(0,t.toRefs)(l),fixedStyle:i,clientHeight:a,setListGroup:s,listview:o,touchStart:c,touchMove:p,touchEnd:g,handleClickItem:N,handleClickIndex:k}}}),qy={class:"fox-elevator__list__item__code"},Py=["onClick"],My=["innerHTML"],zy={class:"fox-elevator__fixed-title"},Ry={class:"fox-elevator__bars__inner"},Ly=["data-index","onClick"];function Fy(e,n,o,l,r,i){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,a=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-elevator__list__item",key:a[e.acceptKey],ref_for:!0,ref:e.setListGroup},[(0,t.createElementVNode)("view",qy,(0,t.toDisplayString)(a[e.acceptKey]),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.list,u=>((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===u.id&&e.currentKey===a[e.acceptKey]}]),key:u.id,onClick:s=>e.handleClickItem(a[e.acceptKey],u)},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:1,item:u}):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:u.name},null,8,My))],10,Py))),128))]))),128)),e.isSticky?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-elevator__list__fixed",style:(0,t.normalizeStyle)(e.fixedStyle)},[(0,t.createElementVNode)("span",zy,(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]=(...a)=>e.touchStart&&e.touchStart(...a)),onTouchmove:n[1]||(n[1]=(0,t.withModifiers)((...a)=>e.touchMove&&e.touchMove(...a),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...a)=>e.touchEnd&&e.touchEnd(...a))},[(0,t.createElementVNode)("view",Ry,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__bars__inner__item",{active:a[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":u,key:a[e.acceptKey],onClick:s=>e.handleClickIndex(a[e.acceptKey])},(0,t.toDisplayString)(a[e.acceptKey]),11,Ly))),128))])],32)],2)}var ra=re(Iy,[["render",Fy]]),{componentName:K2,create:Oy,scope:Ky}=J("pagination"),Uy=Oy({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,ve.useFoxI18n)(Ky),l=o(e,["prevText","nextText"]),{modelValue:r,mode:i,showPageSize:a,forceEllipses:u}=(0,t.toRefs)(e),s=(0,t.computed)(()=>{const{pageCount:p,totalItems:g,itemsPerPage:N}=(0,t.toRefs)(e),k=+p.value||Math.ceil(+g.value/+N.value);return Math.max(1,k)}),d=(p,g)=>{p>s.value||p<1||(p!=r.value&&n("update:modelValue",p),g&&n("change",p))},h=(p,g,N=!1)=>({number:p,text:g,active:N}),c=(0,t.computed)(()=>{if(i.value=="simple")return;let p=[];const g=s.value,N=+a.value;let k=1,w=g;const b=g>N;b&&(k=Math.max(r.value-Math.floor(N/2),1),w=k+N-1,w>g&&(w=g,k=w-N+1));for(var f=k;f<=w;f++){const m=h(f,f,r.value==f);p.push(m)}if(b&&N>0&&u.value){if(k>1){const m=h(k-1,"...");p.unshift(m)}if(w<g){const m=h(w+1,"...");p.push(m)}}return p});return(0,t.watchEffect)(()=>{d(r.value,!1)}),{...l,modelValue:r,select:d,countRef:s,mode:i,pages:c,forceEllipses:u}}}),Hy={class:"fox-pagination"},_y={key:0,class:"fox-pagination-contain"},jy=["onClick"],Wy={key:1,class:"fox-pagination-contain"},Yy={class:"fox-pagination-simple"};function Xy(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Hy,[(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]=a=>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",_y,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pages,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u+"pagination",class:(0,t.normalizeClass)(["fox-pagination-item",a.active?"active":""]),onClick:s=>e.select(a.number,!0)},[(0,t.renderSlot)(e.$slots,"page",{item:a},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(a.text),1)])],10,jy))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wy,[(0,t.createElementVNode)("view",Yy,(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]=a=>e.select(e.modelValue+1,!0))},[(0,t.renderSlot)(e.$slots,"next-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextText),1)])],2)])}var ia=re(Uy,[["render",Xy]]),Qy=(e,n,o,l)=>{const r=(0,t.ref)(),i=(0,t.ref)({width:0,height:0}),a=async()=>{if(o&&o.getEnv()!==o.ENV_TYPE.WEB){let c=await l(r,o);i.value.width=c.width||0,i.value.height=c.height||0}else i.value.width=r.value?.clientWidth||0,i.value.height=r.value?.clientHeight||0};(0,t.onMounted)(()=>{setTimeout(()=>{a()},100)});const u=(0,t.reactive)({offset:0,moving:!1}),s=ot();let d="";const h=(c,p)=>{let g=c;switch(e.direction=="horizontal"?(d=c>0?"right":"left",g=Math.abs(g)/i.value.width*100):(d=p>0?"bottom":"top",g=p,g=Math.abs(g)/i.value?.height*100),g>85&&(g=85),d){case"left":case"top":n.isEnd()&&(g=0,u.moving=!1);break;case"right":case"bottom":g=-g,n.isBegin()&&(g=0,u.moving=!1);break}u.offset=g};return{touchMethods:{onTouchStart(c){e.swipeable&&s.start(c)},onTouchMove(c){e.swipeable&&(s.move(c),u.moving=!0,h(s.deltaX.value,s.deltaY.value),e.direction=="horizontal"&&s.isHorizontal()&&(c.preventDefault(),c.stopPropagation()),e.direction=="vertical"&&s.isVertical()&&(c.preventDefault(),c.stopPropagation()))},onTouchEnd(){if(u.moving)switch(u.moving=!1,d){case"left":case"top":u.offset>35&&n.next();break;case"right":case"bottom":u.offset<-35&&n.prev();break}}},touchState:u,tabsContentRef:r}},Gy=class{title="";titleSlot;paneKey="";disabled=!1;constructor(){}},{create:Zy}=J("tabs"),Jy=Zy({components:{[Wt.name]:Wt,JoySmile:ae.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null);let r;(0,t.provide)("tabsOpiton",{activeKey:(0,t.computed)(()=>e.modelValue||"0"),autoHeight:(0,t.computed)(()=>e.autoHeight),animatedTime:(0,t.computed)(()=>e.animatedTime)});const i=(0,t.ref)([]),a=A=>{A.forEach((C,q)=>{let H=C.type;if(H=H.name||H,H=="fox-tab-pane"){let x=new Gy;if(C.props?.title||C.props?.["pane-key"]||C.props?.paneKey){let M=St(C.props?.["pane-key"]),P=M=="number"||M=="string"?String(C.props?.["pane-key"]):null,R=St(C.props?.paneKey),z=R=="number"||R=="string"?String(C.props?.paneKey):null;x.title=C.props?.title,x.paneKey=P||z||String(q),x.disabled=C.props?.disabled}i.value.push(x)}else{if(C.children==" ")return;Array.isArray(C.children)&&a(C.children)}})},u=(0,t.ref)(e.modelValue||0),s=A=>{let C=i.value.findIndex(q=>q.paneKey==A);i.value.length==0||C==-1||(u.value=C)},d=(0,t.computed)(()=>e.titleScroll&&e.direction==="vertical"),h=(0,t.ref)(),c=(0,t.ref)([]),p=A=>{const C=h.value,q=c.value;if(!C||!q||!q[u.value])return;const H=q[u.value];let x=0;e.direction==="vertical"?x=H.offsetTop-C.offsetTop+10-(C.offsetHeight-H.offsetHeight)/2:x=H.offsetLeft-(C.offsetWidth-H.offsetWidth)/2,g(C,x,A?0:.3,e.direction)},g=(A,C,q,H)=>{let x=0;const M=H==="horizontal"?A.scrollLeft:A.scrollTop,P=q===0?1:Math.round(q*1e3/16);function R(){H==="horizontal"?A.scrollLeft+=(C-M)/P:A.scrollTop+=(C-M)/P,++x<P&&He(R)}R()},N=(A=o.default?.())=>{i.value=[],A=A?.filter(C=>typeof C.children!="string"),A&&A.length&&a(A),s(e.modelValue),(0,t.nextTick)(()=>{p()})},k=A=>{r=A.fixed};(0,t.watch)(()=>o.default?.(),A=>{N(A)});const w=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;(0,t.watch)(()=>e.modelValue,A=>{if(s(A),p(),r){let C=$e(l.value).top+w(),q=Math.ceil(C-e.top);window.scrollTo({top:q,behavior:"smooth"})}}),(0,t.onMounted)(N),(0,t.onActivated)(N);const b={isBegin:()=>u.value==0,isEnd:()=>u.value==i.value.length-1,next:()=>{u.value+=1,b.updateValue(i.value[u.value])},prev:()=>{u.value-=1,b.updateValue(i.value[u.value])},updateValue:A=>{n("update:modelValue",A.paneKey),n("change",A)},tabChange:(A,C)=>{n("click",A),!(A.disabled||u.value==C)&&(u.value=C,b.updateValue(A))},setTabItemRef:(A,C)=>{c.value[C]=A}},{tabsContentRef:f,touchState:m,touchMethods:S}=Qy(e,b),B=(0,t.computed)(()=>{let A=u.value*100;m.moving&&(A+=m.offset);let C={transform:e.direction=="horizontal"?`translate3d(-${A}%, 0, 0)`:`translate3d( 0,-${A}%, 0)`,transitionDuration:m.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(C={}),C}),v=(0,t.computed)(()=>({background:e.background})),y=(0,t.computed)(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),V=(0,t.computed)(()=>{if(!e.titleGutter)return{};const A=he(e.titleGutter);return e.direction==="vertical"?{marginTop:A,marginBottom:A}:{marginLeft:A,marginRight:A}}),T=(0,t.computed)(()=>o.fixedTitle);return{navRef:h,tabsContentRef:f,titles:i,contentStyle:B,tabsNavStyle:v,titleStyle:V,tabsActiveStyle:y,container:l,getScrollY:d,onStickyScroll:k,...b,...S,hasFixedTitle:T}}}),eb=["onClick"],tb={key:0,class:"fox-tabs__titles-fixed-item"},nb=["onClick"],lb={key:0,class:"fox-tabs__titles-fixed-item"};function ob(e,n,o,l,r,i){const a=(0,t.resolveComponent)("JoySmile"),u=(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)(u,{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,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:s.paneKey==e.modelValue,disabled:s.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:h=>e.tabChange(s,d),key:s.paneKey},[(0,t.renderSlot)(e.$slots,"title",{title:s.title,paneKey:s.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)(a,{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)(s.title),3)])],14,eb))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",tb,[(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,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:s.paneKey==e.modelValue,disabled:s.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:h=>e.tabChange(s,d),key:s.paneKey,ref_for:!0,ref:h=>e.setTabItemRef(h,d)},[(0,t.renderSlot)(e.$slots,"title",{title:s.title,paneKey:s.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)(a,{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)(s.title),3)])],14,nb))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",lb,[(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]=(...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.renderSlot)(e.$slots,"default")],36)],2)}var sa=re(Jy,[["render",ob]]),{create:ab}=J("tab-pane"),rb=ab({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 ib(e,n,o,l,r,i){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 ua=re(rb,[["render",ib]]),{componentName:Er,create:sb}=J("indicator"),ub=sb({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=Er;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${o.value}`]:n.value&&o.value}}),componentName:Er,padZero:at}}});function cb(e,n,o,l,r,i){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,a=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:a},[a===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(a)||a),3)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var ca=re(ub,[["render",cb]]),{componentName:db,create:fb}=J("side-navbar"),mb=fb({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)(()=>({[db]:!0})),r=(a,u=1)=>{for(let s=0;s<a.length;s++){let d=a[s];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*u+"px",d.className.includes("fox-side-navbar-item")||r(Array.from(d.children[1].children),++o.count))}o.count--},i=()=>{let a=n.value.childNodes;a.length&&(a=Array.from(a).filter(u=>u.nodeType!==3).map(u=>u),r(a))};return(0,t.onMounted)(()=>{i(),o.observer=new MutationObserver(function(){o.count=1,i()}),o.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(o),list:n,classes:l}}}),pb={class:"fox-side-navbar__content"},hb={class:"fox-side-navbar__content__list",ref:"list"};function vb(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",pb,[(0,t.createElementVNode)("view",hb,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var da=re(mb,[["render",vb]]),{componentName:gb,create:yb}=J("side-navbar-item"),bb=yb({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[gb]:!0})),handleClick:()=>{n.emit("click")}})}),Sb=["ikey"],kb={class:"fox-side-navbar-item__title"};function wb(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...a)=>e.handleClick&&e.handleClick(...a),["stop"])),ikey:e.ikey},[(0,t.createElementVNode)("span",kb,(0,t.toDisplayString)(e.title),1)],10,Sb)}var fa=re(bb,[["render",wb]]),{componentName:Cb,create:Nb}=J("sub-side-navbar"),Ab=Nb({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:ae.ArrowDown2,ArrowUp2:ae.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const o=(0,t.reactive)({direction:""}),l=(0,t.computed)(()=>({[Cb]:!0})),r=(0,t.computed)(()=>({height:o.direction?"0px":"auto"})),i=()=>{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:r,handleClick:i}}}),Bb=["ikey"],Tb={class:"fox-sub-side-navbar__title__text"},Vb={class:"fox-sub-side-navbar__title__icon"};function xb(e,n,o,l,r,i){const a=(0,t.resolveComponent)("ArrowDown2"),u=(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)((...s)=>e.handleClick&&e.handleClick(...s),["stop"]))},[(0,t.createElementVNode)("span",Tb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",Vb,[e.direction?((0,t.openBlock)(),(0,t.createBlock)(u,{key:1})):((0,t.openBlock)(),(0,t.createBlock)(a,{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,Bb)}var ma=re(Ab,[["render",xb]]),{componentName:Eb,create:$b}=J("range"),Db=$b({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,r;const i=(0,t.ref)(),a=(0,t.ref)(),u=ot(),s=(0,t.computed)(()=>{const{marks:x,max:M,min:P}=e;return Object.keys(x).map(parseFloat).sort((R,z)=>R-z).filter(R=>{const z=de(R);return z>=de(P)&&z<=de(M)})}),d=(0,t.computed)(()=>Number(e.max)-Number(e.min)),h=(0,t.computed)(()=>{const x=Eb;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}}),p=(0,t.computed)(()=>({background:e.inactiveColor})),g=(0,t.computed)(()=>({borderColor:e.buttonColor})),N=x=>!!e.range&&Array.isArray(x),k=()=>{const{modelValue:x,min:M}=e;return N(x)?`${(x[1]-x[0])*100/d.value}%`:`${(x-Number(M))*100/d.value}%`},w=()=>{const{modelValue:x,min:M}=e;return N(x)?`${(x[0]-Number(M))*100/d.value}%`:"0%"},b=(0,t.computed)(()=>e.vertical?{height:k(),top:w(),background:e.activeColor,transition:a.value?"none":void 0}:{width:k(),left:w(),background:e.activeColor,transition:a.value?"none":void 0}),f=x=>{const M="fox-range-mark",{modelValue:P,max:R,min:z}=e;let W=Number(z),I=Number(R);if(e.range){const[ee,oe]=P;W=ee,I=oe}else I=P;let Q=x<=I&&x>=W;return{[`${M}-text`]:!0,[`${M}-text-active`]:Q}},m=x=>{const{min:M,vertical:P}=e;let R={left:`${(x-Number(M))/d.value*100}%`};return P&&(R={top:`${(x-Number(M))/d.value*100}%`}),R},S=x=>{const{modelValue:M,max:P,min:R}=e;let z=Number(R),W=Number(P);if(e.range){const[I,Q]=M;z=I,W=Q}return{background:x<=W&&x>=z?e.activeColor:e.inactiveColor}},B=x=>{const{min:M,max:P,step:R}=e;return x=Math.max(+M,Math.min(x,+P)),Math.round(x/+R)*+R},v=(x,M)=>JSON.stringify(x)===JSON.stringify(M),y=x=>x[0]>x[1]?x.slice(0).reverse():x,V=(x,M)=>{N(x)?x=y(x).map(B):x=B(x),v(x,e.modelValue)||n("update:modelValue",x),M&&!v(x,l)&&n("change",x)},T=x=>{if(e.disabled)return;const{min:M,modelValue:P}=e,R=$e(i);let z=x.clientX-R.left,W=R.width;e.vertical&&(z=x.clientY-R.top,W=R.height);const I=Number(M)+z/W*d.value;if(N(P)){const[Q,ee]=P;I<=(Q+ee)/2?V([I,ee],!0):V([Q,I],!0)}else V(I,!0)},A=x=>{e.disabled||(u.start(x),r=e.modelValue,N(r)?l=r.map(B):l=B(r),a.value="start")},C=x=>{if(e.disabled)return;a.value==="start"&&n("drag-start"),u.move(x),a.value="draging";const M=$e(i);let P=u.deltaX.value,R=M.width,z=P/R*d.value;e.vertical&&(P=u.deltaY.value,R=M.height,z=P/R*d.value),N(l)?r[o.value]=l[o.value]+z:r=l+z,V(r),x.stopPropagation(),x.preventDefault()},q=()=>{e.disabled||(a.value==="draging"&&(V(r,!0),n("drag-end")),a.value="")},H=x=>Dn(e.modelValue)&&typeof x=="number"?e.modelValue[x]:Number(e.modelValue);return{root:i,classes:h,wrapperStyle:p,buttonStyle:g,onClick:T,onTouchStart:A,onTouchMove:C,onTouchEnd:q,...(0,t.toRefs)(e),barStyle:b,curValue:H,buttonIndex:o,containerClasses:c,markClassName:f,marksStyle:m,marksList:s,tickStyle:S}}}),Ib={key:0,class:"fox-range-min"},qb={key:0,class:"fox-range-mark"},Pb=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Mb={key:0,class:"number"},zb=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Rb={key:0,class:"number"},Lb={key:1,class:"fox-range-max"};function Fb(e,n,o,l,r,i){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",Ib,(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)((...a)=>e.onClick&&e.onClick(...a),["stop"]))},[e.marksList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",qb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.marksList,a=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:a,class:(0,t.normalizeClass)(e.markClassName(a)),style:(0,t.normalizeStyle)(e.marksStyle(a))},[(0,t.createTextVNode)((0,t.toDisplayString)(a)+" ",1),(0,t.createElementVNode)("span",{class:"fox-range-tick",style:(0,t.normalizeStyle)(e.tickStyle(a))},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],a=>(0,t.createElementVNode)("view",{key:a,role:"slider",class:(0,t.normalizeClass)({"fox-range-button-wrapper-left":a==0,"fox-range-button-wrapper-right":a==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(a),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:(0,t.withModifiers)(u=>{typeof a=="number"&&(e.buttonIndex=a),e.onTouchStart(u)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=(0,t.withModifiers)((...u)=>e.onTouchMove&&e.onTouchMove(...u),["stop","prevent"])),onTouchend:n[1]||(n[1]=(0,t.withModifiers)((...u)=>e.onTouchEnd&&e.onTouchEnd(...u),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=(0,t.withModifiers)((...u)=>e.onTouchEnd&&e.onTouchEnd(...u),["stop","prevent"])),onClick:n[3]||(n[3]=u=>u.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",Mb,(0,t.toDisplayString)(e.curValue(a)),1))],4))],42,Pb)),64)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=(0,t.withModifiers)(a=>{e.onTouchStart(a)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=(0,t.withModifiers)((...a)=>e.onTouchMove&&e.onTouchMove(...a),["stop","prevent"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=(0,t.withModifiers)((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onClick:n[8]||(n[8]=a=>a.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",Rb,(0,t.toDisplayString)(e.curValue()),1))],4))],40,zb))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Lb,(0,t.toDisplayString)(+e.max),1))],2)}var Yt=re(Db,[["render",Fb]]),{create:Ob,scope:Kb}=J("short-password"),Ub=Ob({components:{FoxPopup:we,Tips:ae.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,ve.useFoxI18n)(Kb),l=o(e,["title","desc","tips"]),r=(0,t.ref)(e.modelValue),i=(0,t.computed)(()=>d(Number(e.length))),a=(0,t.ref)(e.visible),u=c=>{c.stopPropagation(),n("focus")};(0,t.watch)(()=>e.visible,c=>{a.value=c}),(0,t.watch)(()=>e.modelValue,c=>{r.value=c,String(c).length===i.value&&n("complete",c)});const s=()=>{n("update:visible",!1),n("close")},d=c=>Math.min(Math.max(4,c),6);return{comLen:i,realInput:r,onTouchStart:u,range:d,close:s,onTips:()=>{n("tips")},show:a,...l}}}),Hb={class:"fox-short-password-title"},_b={class:"fox-short-password-subtitle"},jb={class:"fox-short-password-wrapper"},Wb={key:0,class:"fox-short-password__item-icon"},Yb={class:"fox-short-password__message"},Xb={class:"fox-short-password--error"},Qb={key:0,class:"fox-short-password--forget"};function Gb(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Tips"),u=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",null,[(0,t.createVNode)(u,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":n[2]||(n[2]=s=>e.show=s),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Hb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",_b,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",jb,[(0,t.createElementVNode)("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(new Array(e.comLen),(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wb)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",Yb,[(0,t.createElementVNode)("view",Xb,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",Qb,[(0,t.createVNode)(a,{class:"icon",width:"11px",height:"11px"}),(0,t.createElementVNode)("view",{onClick:n[1]||(n[1]=(...s)=>e.onTips&&e.onTips(...s))},(0,t.toDisplayString)(e.tips),1)])):(0,t.createCommentVNode)("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}var pa=re(Ub,[["render",Gb]]),Zb=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},Jb=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")}},eS=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},_i=(e,{args:n=[],done:o,canceled:l})=>{if(e){const r=e.apply(null,n);yt(r)?r.then(i=>{i?o(i):l&&l()}).catch(()=>{}):r?o():l&&l()}else o()},{create:tS}=J("progress"),nS=tS({components:{Checked:ae.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!(0,t.useSlots)().default,o=(0,t.ref)(e.strokeWidth+"px"),l=(0,t.ref)(),r=(0,t.ref)(),i=(0,t.computed)(()=>{const s=de(e.percentage);return s>=100?100:s}),a=(0,t.computed)(()=>({width:i.value+"%",background:e.strokeColor||""})),u=(0,t.computed)(()=>({color:e.textColor||""}));return(0,t.onMounted)(()=>{}),{height:o,percentage:i,bgStyle:a,textStyle:u,progressOuter:l,insideText:r,slotDefault:n}}}),lS={class:"fox-progress"},oS={key:0,class:"fox-progress-text"};function aS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",lS,[(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",oS,[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)(a,{width:"15px",height:"15px",color:"#439422"})]):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)])}var Xt=re(nS,[["render",aS]]),{componentName:rS,create:iS,scope:sS}=J("uploader"),uS=iS({components:{[Xt.name]:Xt,Photograph:ae.Photograph,Failure:ae.Failure,Loading:ae.Loading,Del:ae.Del,Link:ae.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:o}=(0,ve.useFoxI18n)(sS),l=(0,t.reactive)(e.fileList);let r=[];const i=(0,t.computed)(()=>({[rS]:!0})),a=()=>{let f={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(f.capture="camera"),(0,t.h)("input",f)},u=f=>{f.value=""},s=f=>{n("file-item-click",{fileItem:f})},d=(f,m)=>{const S=new Zb;S.url=e.url,S.formData=f.formData,S.timeout=e.timeout*1,S.method=e.method,S.xhrState=e.xhrState,S.headers=e.headers,S.withCredentials=e.withCredentials,S.beforeXhrUpload=e.beforeXhrUpload;try{S.sourceFile=f.formData.get(e.name)}catch{}S.onStart=v=>{f.status="ready",f.message=o("readyUpload"),h(m),n("start",v)},S.onProgress=(v,y)=>{f.status="uploading",f.message=o("uploading"),f.percentage=(v.loaded/v.total*100).toFixed(0),n("progress",{event:v,option:y,percentage:f.percentage})},S.onSuccess=(v,y)=>{f.status="success",f.message=o("success"),n("success",{responseText:v,option:y,fileItem:f}),n("update:fileList",l)},S.onFailure=(v,y)=>{f.status="error",f.message=o("error"),n("failure",{responseText:v,option:y,fileItem:f})};let B=new Jb(S);e.autoUpload?B.upload():r.push(new Promise((v,y)=>{v(B)}))},h=(f=-1)=>{f>-1?r.splice(f,1):(r=[],l.splice(0,l.length))},c=()=>{Promise.all(r).then(f=>{f.forEach(m=>m.upload())})},p=f=>{f.forEach((m,S)=>{const B=new FormData;for(const[y,V]of Object.entries(e.data))B.append(y,V);B.append(e.name,m);const v=(0,t.reactive)(new eS);if(v.name=m.name,v.status="ready",v.type=m.type,v.formData=B,v.message=o("waitingUpload"),d(v,S),e.isPreview&&m.type.includes("image")){const y=new FileReader;y.onload=V=>{v.url=V.target.result,l.push(v)},y.readAsDataURL(m)}else l.push(v)})},g=f=>{const m=e.maximum*1,S=e.maximize*1,B=new Array;f=f.filter(y=>y.size>S?(B.push(y),!1):!0),B.length&&n("oversize",B);let v=f.length+l.length;return v>m&&f.splice(f.length-(v-m)),f},N=(f,m)=>{l.splice(m,1),n("delete",{file:f,fileList:l,index:m})},k=(f,m)=>{h(m),_i(e.beforeDelete,{args:[f,l],done:()=>N(f,m)})},w=f=>{if(e.disabled)return;const m=f.target;let{files:S}=m;e.beforeUpload?e.beforeUpload(S).then(B=>b(B)):b(S),n("change",{fileList:l,event:f}),e.clearInput&&u(m)},b=f=>{p(g(new Array().slice.call(f)))};return{onChange:w,onDelete:k,fileList:l,classes:i,fileItemClick:s,clearUploadQueue:h,submit:c,renderInput:a}}}),cS={key:0,class:"fox-uploader__slot"},dS={key:0,class:"fox-uploader__preview-img"},fS={key:0,class:"fox-uploader__preview__progress"},mS={class:"fox-uploader__preview__progress__msg"},pS=["onClick"],hS=["onClick","src"],vS={key:3,class:"fox-uploader__preview-img__file"},gS=["onClick"],yS={class:"file__name_tips"},bS={class:"tips"},SS={key:1,class:"fox-uploader__preview-list"},kS=["onClick"],wS={class:"file__name_tips"};function CS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Failure"),u=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Link"),d=(0,t.resolveComponent)("Del"),h=(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",cS,[(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,(p,g)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-uploader__preview",[e.listType]]),key:p.uid},[e.listType=="picture"&&!e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",dS,[p.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",fS,[p.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[p.status=="error"?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,color:"#fff"})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1,name:"loading",color:"#fff"}))],64)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",mS,(0,t.toDisplayString)(p.message),1)])):(0,t.createCommentVNode)("",!0),e.isDeletable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"close",onClick:N=>e.onDelete(p,g)},[(0,t.renderSlot)(e.$slots,"delete-icon",{},()=>[(0,t.createVNode)(a)])],8,pS)):(0,t.createCommentVNode)("",!0),p?.type?.includes("image")&&p.url?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,class:"fox-uploader__preview-img__c",onClick:N=>e.fileItemClick(p),src:p.url},null,8,hS)):((0,t.openBlock)(),(0,t.createElementBlock)("view",vS,[(0,t.createElementVNode)("view",{onClick:N=>e.fileItemClick(p),class:"fox-uploader__preview-img__file__name"},[(0,t.createElementVNode)("view",yS,(0,t.toDisplayString)(p.name),1)],8,gS)])),(0,t.createElementVNode)("view",bS,(0,t.toDisplayString)(p.name),1)])):e.listType=="list"?((0,t.openBlock)(),(0,t.createElementBlock)("view",SS,[(0,t.createElementVNode)("view",{onClick:N=>e.fileItemClick(p),class:(0,t.normalizeClass)(["fox-uploader__preview-img__file__name",[p.status]])},[(0,t.createVNode)(s,{class:"fox-uploader__preview-img__file__link"}),(0,t.createElementVNode)("view",wS,(0,t.toDisplayString)(p.name),1),e.isDeletable?((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:N=>e.onDelete(p,g)},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],10,kS),p.status=="uploading"?((0,t.openBlock)(),(0,t.createBlock)(h,{key:0,size:"small",percentage:p.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 ha=re(uS,[["render",CS]]),NS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4On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5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:BS,scope:TS}=J("number-keyboard"),VS=BS({components:{FoxPopup:we},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,ve.useFoxI18n)(TS),l=o(e,["confirmText"]),r=(0,t.computed)(()=>{const f=["fox-number-keyboard-popup"];return e.popClass&&f.push(e.popClass),f}),i=(0,t.ref)(void 0),a=(0,t.ref)(e.visible),u=(0,t.ref)();function s(){const{customKey:f}=e;let m={id:"lock",type:"lock"},S=Array.isArray(f)?f:[f];return S.length===1&&(m={id:S[0],type:"custom"}),[...d(),m,{id:0,type:"number"},{id:"delete",type:"delete"}]}function d(){const f=[];for(let m=1;m<=9;m++)f.push({id:m,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function h(){const f=d(),{customKey:m}=e;let S=Array.isArray(m)?m:[m];return S.length>2&&(S=[S[0],S[1]]),S.length==2&&e.title&&e.type!="rightColumn"&&(S=[S[0]]),S.length===1?e.title&&e.type!="rightColumn"?f.push({id:S[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:S[0],type:"custom"}):S.length===2&&f.push({id:S[0],type:"custom"},{id:0,type:"number"},{id:S[1],type:"custom"}),f}const c=(0,t.computed)(()=>e.type=="rightColumn"||e.title!=""?h():s()),p=()=>{e.visible&&n("blur")},g=f=>{const m=u.value;m&&!m.contains(f.target)&&p()};(0,t.watch)(()=>e.visible,f=>{a.value=f,f?window.addEventListener("touchstart",g,!1):window.removeEventListener("touchstart",g,!1)});function N(f,m){m.stopPropagation(),i.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 k(f){f.stopPropagation()}function w(f){f.preventDefault(),i.value=void 0}function b(){n("update:visible",!1),n("close")}return{...l,allPopClass:r,delImg:NS,lockImg:AS,clickKeyIndex:i,defaultKey:s,closeBoard:b,onTouchEnd:w,onTouchMove:k,onTouchstart:N,keysList:c,genCustomKeys:h,getBasicKeys:d,root:u,show:a}}}),xS={ref:"root"},ES={class:"fox-number-keyboard"},$S={key:0,class:"fox-number-keyboard__header"},DS={class:"fox-number-keyboard__title"},IS={class:"fox-number-keyboard__body"},qS={class:"fox-number-keyboard__keys"},PS=["onTouchstart"],MS=["src"],zS=["src"],RS={key:0,class:"fox-number-keyboard__sidebar"},LS={class:"fox-key__wrapper"},FS=["src"];function OS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",xS,[(0,t.createVNode)(a,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=u=>e.show=u),position:"bottom",popClass:e.allPopClass,overlay:!1,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",ES,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",$S,[(0,t.createElementVNode)("h3",DS,(0,t.toDisplayString)(e.title),1),e.type=="default"?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-number-keyboard__close",onClick:n[0]||(n[0]=u=>e.closeBoard())},(0,t.toDisplayString)(e.confirmText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",IS,[(0,t.createElementVNode)("div",qS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.keysList,u=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:"key"+u.id,class:(0,t.normalizeClass)(["fox-key__wrapper",{"fox-key__wrapper--wider":u.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":u.id==e.clickKeyIndex},{"fox-key--lock":u.type=="lock"},{"fox-key--delete":u.type=="delete"}]),onTouchstart:s=>e.onTouchstart(u,s),onTouchmove:n[1]||(n[1]=s=>e.onTouchMove(s)),onTouchend:n[2]||(n[2]=s=>e.onTouchEnd(s))},[u.type=="number"||u.type=="custom"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(u.id),1)],64)):(0,t.createCommentVNode)("",!0),u.type=="lock"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:1,src:e.lockImg},null,8,MS)):(0,t.createCommentVNode)("",!0),u.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,zS)):(0,t.createCommentVNode)("",!0)],42,PS)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",RS,[(0,t.createElementVNode)("div",LS,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=u=>e.onTouchstart({id:"delete",type:"delete"},u)),onTouchmove:n[4]||(n[4]=u=>e.onTouchMove(u)),onTouchend:n[5]||(n[5]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u))},[(0,t.createElementVNode)("img",{src:e.delImg},null,8,FS)],34)]),(0,t.createElementVNode)("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=u=>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 va=re(VS,[["render",OS]]),{componentName:KS,create:US}=J("swipe"),HS=US({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,expose:o}){const l=(0,t.computed)(()=>({[KS]:!0})),r=m=>m.value?.clientWidth||0,i=(0,t.ref)(),a=(0,t.computed)(()=>r(i)),u=(0,t.ref)(),s=(0,t.computed)(()=>r(u));let d=!1,h="",c="";const p=(0,t.reactive)({offset:0,moving:!1}),g=(m="")=>{d=!0,m&&(p.offset=m==="left"?-s.value:a.value),n("open",{name:e.name,position:h||m})},N=()=>{p.offset=0,d=!1,n("close",{name:e.name,position:h})},k=(0,t.computed)(()=>({transform:`translate3d(${p.offset}px, 0, 0)`})),w=m=>{h=m>0?"right":"left";let S=m;switch(h){case"left":d&&c===h?S=-s.value:S=Math.abs(m)>s.value?-s.value:m;break;case"right":d&&c===h?S=a.value:S=Math.abs(m)>a.value?a.value:m;break}p.offset=S},b=ot(),f={onTouchStart(m){e.disabled||b.start(m)},onTouchMove(m){e.disabled||(b.move(m),b.isHorizontal()&&(p.moving=!0,w(b.deltaX.value),e.touchMovePreventDefault&&m.preventDefault(),e.touchMoveStopPropagation&&m.stopPropagation()))},onTouchEnd(){if(p.moving)switch(p.moving=!1,c=h,h){case"left":Math.abs(p.offset)<=s.value/2?N():(p.offset=-s.value,g());break;case"right":Math.abs(p.offset)<=a.value/2?N():(p.offset=a.value,g());break}}};return o({open:g,close:N}),{classes:l,touchStyle:k,...f,leftRef:i,rightRef:u,open:g,close:N}}}),_S={class:"fox-swipe__left",ref:"leftRef"},jS={class:"fox-swipe__content"},WS={class:"fox-swipe__right",ref:"rightRef"};function YS(e,n,o,l,r,i){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]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[(0,t.createElementVNode)("view",_S,[(0,t.renderSlot)(e.$slots,"left")],512),(0,t.createElementVNode)("view",jS,[(0,t.renderSlot)(e.$slots,"default")]),(0,t.createElementVNode)("view",WS,[(0,t.renderSlot)(e.$slots,"right")],512)],38)}var ga=re(HS,[["render",YS]]),{componentName:XS,create:QS}=J("action-sheet"),GS=QS({components:{Popup:we,Loading:ae.Loading},props:{...Je,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)(()=>({[XS]:!0}));return{slotDefault:o,isHighlight:s=>e.chooseTagValue&&e.chooseTagValue===s[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(s,d)=>{!s.disable&&!s.loading&&(n("choose",s,d),n("update:visible",!1))},close:s=>{n("close",s),n("update:visible",!1)},classes:l}}}),ZS={key:0,class:"fox-action-sheet__title"},JS={key:1},e1={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},t1={key:1,class:"fox-action-sheet__menu"},n1=["onClick"],l1={key:1},o1={class:"fox-action-sheet__subdesc"};function a1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Loading"),u=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createBlock)(u,{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",ZS,(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",JS,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",e1,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",t1,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.menuItems,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":s.disable,"fox-action-sheet__item--loading":s.loading}]),style:(0,t.normalizeStyle)({color:e.isHighlight(s)||s.color}),key:d,onClick:h=>e.chooseItem(s,d)},[s.loading?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",l1,(0,t.toDisplayString)(s[e.optionTag]),1)),(0,t.createElementVNode)("view",o1,(0,t.toDisplayString)(s[e.optionSubTag]),1)],14,n1))),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]=(...s)=>e.cancelActionSheet&&e.cancelActionSheet(...s))},(0,t.toDisplayString)(e.cancelTxt),1)):(0,t.createCommentVNode)("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}var ya=re(GS,[["render",a1]]),{componentName:r1,create:i1}=J("backtop"),s1=i1({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}),r=(0,t.computed)(()=>({[r1]:!0,show:l.backTop})),i=(0,t.computed)(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function a(){l.scrollEl instanceof Window?l.scrollTop=l.scrollEl.pageYOffset:l.scrollTop=l.scrollEl.scrollTop,l.backTop=l.scrollTop>=e.distance}function u(N=0){l.scrollEl instanceof Window?window.scrollTo(0,N):l.scrollEl.scrollTop=N}function s(){let N=Qe(function k(){var w=e.duration-Math.max(0,l.startTime-+new Date+e.duration),b=w*-l.scrollTop/e.duration+l.scrollTop;u(b),N=Qe(k),(w==e.duration||b==0)&&Ir(N)})}function d(){l.scrollEl.addEventListener("scroll",a,!1),l.scrollEl.addEventListener("resize",a,!1)}function h(){l.scrollEl.removeEventListener("scroll",a,!1),l.scrollEl.removeEventListener("resize",a,!1)}function c(N){l.startTime=+new Date,e.isAnimation&&e.duration>0?s():u(),n("click",N)}function p(){g.value?l.scrollEl=g.value.el:e.elId&&document.getElementById(e.elId)&&(l.scrollEl=document.getElementById(e.elId)),d()}(0,t.onMounted)(()=>{e.distance==0&&(l.backTop=!0),p()}),(0,t.onUnmounted)(()=>{h()}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1,p())}),(0,t.onDeactivated)(()=>{l.keepAlive=!0,h()});const g=(0,t.computed)(()=>{if(typeof o.content=="function"){const N=o.content();return Array.isArray(N)?N[0]:N}return null});return()=>{const N=[];g.value&&N.push(g.value);const k=[];if(typeof o.default=="function")k.push(o.default());else{const b=(0,t.h)(ae.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});k.push(b)}const w=(0,t.h)("div",{class:r.value,style:i.value,onClick:c},k);return N.push(w),N}}}),ba=s1,{componentName:u1,create:c1}=J("drag"),d1=c1({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}}),r=(0,t.computed)(()=>({[u1]:!0}));function i(){const c=document.documentElement;l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight,l.screenWidth=c.clientWidth,l.screenHeight=c.clientHeight}function a(c){l.boundary.left?+c.style.left.split("px")[0]>l.boundary.left?(c.style.left=+c.style.left.split("px")[0]-10+"px",He(()=>{a(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",He(()=>{a(c)})):c.style.left="0px"}function u(c,p){p-parseInt(c.style.left.split("px")[0])>10?(c.style.left=parseInt(c.style.left.split("px")[0])+10+"px",He(()=>{u(c,p)})):c.style.left=p+"px"}function s(c){c.preventDefault();const p=c.currentTarget;if(c.targetTouches.length===1){const g=c.targetTouches[0];l.nx=g.clientX-l.position.x,l.ny=g.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const N=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>N?l.xPum=N: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"&&(p.style.left=l.xPum+"px"),e.direction!="x"&&(p.style.top=l.yPum+"px")}}function d(c){const p=c.currentTarget;let g=c.changedTouches[0].clientX;const N=l.screenWidth-l.elWidth-l.boundary.right;g>N?g=N:g<l.boundary.left?g=l.boundary.left:g=g<l.screenWidth/2?l.boundary.left:N,e.direction!="y"&&e.attract&&(g<l.screenWidth/2?He(()=>{a(p)}):He(()=>{u(p,N)})),e.direction!="x"&&(p.style.top=l.yPum+"px")}function h(c){const p=c.currentTarget,g=c.touches[0],N=c.targetTouches[0];l.startTop=p.offsetTop,l.startLeft=p.offsetLeft,l.position.x=g.clientX,l.position.y=g.clientY,l.nx=N.clientX-l.position.x,l.ny=N.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return(0,t.onMounted)(()=>{i(),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",h),c.value.removeEventListener("touchmove",s),c.value.removeEventListener("touchend",d)}),{classes:r,myDrag:o,touchStart:h,touchMove:s,touchEnd:d}}});function f1(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=a=>e.touchStart(a)),onTouchmove:n[1]||(n[1]=a=>e.touchMove(a)),onTouchend:n[2]||(n[2]=a=>e.touchEnd(a))},[(0,t.renderSlot)(e.$slots,"default")],34)}var Sa=re(d1,[["render",f1]]),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}},p1=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function h1(e,n,o,l,r){return{props:{...Je,...m1},setup(i,{attrs:a,slots:u,emit:s}){const{toLocaleRefs:d}=(0,ve.useFoxI18n)(n),h=d(i,["confirmText","cancelText"]),c=e,p=(0,t.ref)(i.visible);(0,t.watch)(()=>i.visible,v=>{p.value!==v&&(p.value=v,v&&s("opened"))});const g=v=>{p.value=v,s("update:visible",v),s("update",v)},N=v=>{if(s(v),!(v==="cancel"&&!i.cancelAutoClose))if(typeof i.beforeClose=="function"){const y=i.beforeClose(v);yt(y)?y.then(V=>{V&&(g(!1),s("closed",v))}):y===!0&&(g(!1),s("closed",v))}else g(!1),s("closed",v)},k=()=>{N("confirm")},w=()=>{N("cancel")},b=()=>{N("close")},f=(v,y)=>p1(v)?(y.src=v,(0,t.h)("img",y)):typeof v=="string"?(Array.isArray(y.class)?y.class.push(v):y.class&&typeof y.class=="object"?y[`${v}`]=!0:typeof y.class=="string"?y.class=`${y.class}, ${v}`:y.class=v,(0,t.h)(i.tag,y)):(0,t.h)(v,y),m=()=>{const v=[];if(u.header){const y=u.header();v.push(y)}else{if(i.title){const y=(0,t.h)("view",{class:`${c}__header-title`},[i.title]);v.push(y)}if(i.showClose){const y={class:[`${c}__header-close-icon`],onClick:b},V=f(i.closeIcon??r,y);v.push(V)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},v)},S=()=>{const v=[];if(u.default)v.push(u.default());else{const y={class:[`${c}__content`]};if(i.textAlign&&y.class.push(i.textAlign),typeof i.content=="string"){y.innerHTML=i.content;const V=(0,t.h)("view",y);v.push(V)}else if(typeof i.content=="function"){const V=(0,t.h)("view",y,[i.content()]);v.push(V)}else{const V=(0,t.h)("view",y,[i.content]);v.push(V)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__body`]},v)},B=()=>{if(!i.showFooter)return null;const v=[];if(u.footer)v.push(u.footer());else if(i.plain){if(i.showCancelButton){const y={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},onClick:w};i.cancelButtonClass&&y.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(y.style,i.cancleButtonStyle);const V=(0,t.h)("view",y,[i.cancelButtonText??h.cancelText.value]);v.push(V)}if(i.showConfirmButton){const y={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},onClick:k};i.confirmButtonClass&&y.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(y.style,i.confirmButtonStyle);const V=(0,t.h)("view",y,[i.confirmButtonText??h.confirmText.value]);v.push(V)}}else{if(i.showCancelButton){const y={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:w};i.cancelButtonClass&&y.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(y.style,i.cancleButtonStyle);const V=(0,t.h)(l,y,{default:()=>[i.cancelButtonText??h.cancelText.value]});v.push(V)}if(i.showConfirmButton){const y={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:k};i.confirmButtonClass&&y.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(y.style,i.confirmButtonStyle);const V=(0,t.h)(l,y,{default:()=>[i.confirmButtonText??h.confirmText.value]});v.push(V)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__footer`,`${c}__footer--${i.footerDirection}`]},v)};return()=>{const v=[],y=m();y&&v.push(y);const V=S();V&&v.push(V);const T=B();T&&v.push(T);const A=(0,t.h)("view",{class:{[`${c}`]:!0,[`${c}--plain`]:i.plain}},v),C=[`${c}__popup`];i.popClass&&C.push(i.popClass);const q={};return i.width&&(q.width=typeof i.width=="number"?`${i.width}px`:i.width),i.height&&(q.height=typeof i.height=="number"?`${i.height}px`:i.height),(0,t.h)(o,{...ye(i,Je),popClass:C.join(" "),style:q,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":g,position:i.position,onClickOverlay:b,closeOnClickOverlay:i.closeOnClickOverlay},{default:()=>A})}}}}var{componentName:v1,create:g1,scope:y1}=J("dialog"),b1=g1(h1(v1,y1,we,xt,ae.Close)),ji=b1,S1=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},k1=class{options=new S1;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 r=document.createElement("view"),i=`dialog-${n.id}`;r.id=i;const a=(0,t.createVNode)({setup(){return n.onUpdate=u=>{if(u===!1){const s=document.querySelector(`#${i}`);s&&s.parentNode?.removeChild(s)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(ji,n)}});o.appendChild(r),(0,t.render)(a,r)}},Qt=function(e){return new k1(e)};Qt.install=e=>{e.use(ji),e.config.globalProperties.$dialog=Qt};var w1={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}},C1=(e,n,o)=>({props:{...w1},emits:["change","refresh","update:modelValue"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:a}=(0,ve.useFoxI18n)(n),u=a(l,["pullingText","loosingText","loadingText"]),s=nl(),d=(0,t.ref)(),h=Ri(d),c=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),p=(0,t.computed)(()=>({[e]:!0})),g=(0,t.computed)(()=>{switch(c.status){case"pulling":return i.pulling?"":u.pullingText.value;case"loosing":return i.loosing?"":u.loosingText.value;case"loading":return i.loading?"":u.loadingText.value;default:return""}}),N=(0,t.computed)(()=>({transitionDuration:`${l.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),k=(0,t.computed)(()=>{const y={};return l.headHeight!=50&&(y.height=he(l.headHeight)),y}),w=y=>{const V=+(l.pullDistance||l.headHeight);let T=y;return y>V&&(y<V*2?T=(y+V)/2:T=V+y/4),Math.round(T)},b=(y,V)=>{const T=+(l.pullDistance||l.headHeight);c.distance=y,V?c.status="loading":y===0?c.status="normal":y<T?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:y})},f=()=>c.status!=="loading"&&c.status!=="complete",m=()=>h.value==window?Li()==0:h.value&&h.value.scrollTop==0,S=y=>{f()&&(m()?(s.start(y),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},B=y=>{f()&&c.moving&&(s.move(y),s.isVertical()&&s.state.deltaY>0&&c.isPullRefresh&&(y.cancelable&&y.preventDefault(),b(w(s.state.deltaY))))},v=()=>{c.moving=!1,c.isPullRefresh&&f()&&s.state.deltaY&&(c.status==="loosing"?(b(+l.headHeight,!0),r("update:modelValue",!0),(0,t.nextTick)(()=>r("refresh"))):b(0)),setTimeout(()=>{s.reset()},0)};return(0,t.watch)(()=>l.modelValue,y=>{y?b(+l.headHeight,!0):b(0)}),()=>{const y=[];let V=null;c.status==="loading"?(V=i?.loading?.()??null,V||(V=(0,t.h)(o,{class:["fox-pull-refresh-container-topbox-icon"]}))):c.status==="pulling"?V=i?.pulling?.()??null:c.status==="loosing"&&(V=i?.loosing?.()??null),V&&y.push(V);const T=(0,t.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[g.value]);y.push(T);const A=(0,t.h)("div",{class:["fox-pull-refresh-container-topbox"],style:k.value},y),C=(0,t.h)("div",{class:"fox-pull-refresh-container",style:N.value},[A,i?.default?.()]),q={ref:d,class:p.value};return tl()?Object.assign(q,{onTouchstart:S,onTouchmove:B,onTouchend:v}):Object.assign(q,{onMousedown:S,onMousemove:B,onMouseup:v}),(0,t.h)("div",q,[C])}}}),{componentName:N1,create:A1,scope:B1}=J("pull-refresh"),T1=A1(C1(N1,B1,ae.Loading)),ka=T1,{create:V1}=J("notify"),x1=V1({components:{[we.name]:we},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 r=()=>{l&&clearTimeout(l),l=null},i=()=>{n("update:visible",!1)},a=(0,t.ref)(!1),u=(0,t.watch)(()=>e.visible,d=>{a.value=e.visible;const h=e.duration;d&&h&&(l=setTimeout(()=>{i()},h))},{immediate:!0});return{onAfterLeave:()=>{r(),u&&u(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:o,isShowPopup:a}}});function E1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(a,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=u=>e.isShowPopup=u),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]=(...u)=>e.clickCover&&e.clickCover(...u))},[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 wa=re(x1,[["render",E1]]),Yl={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function},mt=[],Ht=[],Wi=e=>{if(e){const n=document.getElementById(e);Ht=Ht.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)}),Ht=[],mt=[]},$1=e=>{const n=document.getElementById(e.id);if(n){const o=Ht.find(r=>r.id===e.id);o?e={...Yl,...o,...e}:e={...Yl,...e};const l=(0,t.createVNode)(wa,e);return(0,t.render)(l,n),l.component.data}},Mt=e=>{e.unmount=Wi;let n;if(e.id){if(n=e.id,mt.find(r=>r===e.id))return $1(e)}else n=new Date().getTime()+"";e={...Yl,...e},e.id=n,mt.push(e.id),Ht.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)(wa,e)}});document.body.appendChild(o),(0,t.render)(l,o)},zt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Ca={text(e,n={}){return zt(e),Mt({...n,msg:e})},primary(e,n={}){return zt(e),Mt({...n,msg:e,type:"primary"})},success(e,n={}){return zt(e),Mt({...n,msg:e,type:"success"})},danger(e,n={}){return zt(e),Mt({...n,msg:e,type:"danger"})},warn(e,n={}){return zt(e),Mt({...n,msg:e,type:"warning"})},hide(){Wi()},install(e){e.use(wa)}},{create:D1}=J("toast"),I1=D1({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},i=()=>{l.mounted=!1},a=()=>{r(),e.duration&&(o=setTimeout(()=>{i()},e.duration))},u=()=>{e.closeOnClickOverlay&&(i(),n("close"))};e.duration&&a(),(0,t.watch)(()=>e.duration,g=>{g&&a()});const s=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const g=ue(e.iconSize);return(0,t.h)(e.icon,{width:g,height:g,color:e.iconColor})},h=(0,t.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.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:i,clickCover:u,renderIcon:d,hasIcon:s,toastBodyClass:h,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),q1={key:1,class:"fox-toast-title"},P1=["innerHTML"];function M1(e,n,o,l,r,i){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]=(...a)=>e.clickCover&&e.clickCover(...a))},[(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",q1,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,P1)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var Na=re(I1,[["render",M1]]),Xl={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=[],_t=[],Yi=e=>{if(e){const n=document.getElementById(e);_t=_t.filter(o=>o.id!==e),pt=pt.filter(o=>o!==e),n&&((0,t.render)(null,n),document.body.removeChild(n))}else pt.forEach(n=>{const o=document.getElementById(n);o&&((0,t.render)(null,o),document.body.removeChild(o))}),_t=[],pt=[]},z1=e=>{const n=document.getElementById(e.id);if(n){const o=_t.find(r=>r.id===e.id);o?e={...Xl,...o,...e}:e={...Xl,...e};const l=(0,t.createVNode)(Na,e);return(0,t.render)(null,n),(0,t.render)(l,n),Et}},Rt=e=>{e.unmount=Yi;let n;if(e.id){if(n=e.id,pt.find(l=>l===e.id))return z1(e)}else n=new Date().getTime()+"";e={...Xl,...e},e.id=n,pt.push(e.id),_t.push(e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(Na,e),o),document.body.appendChild(o),Et},pn=e=>e?!0:(console.warn("[FoxUI Toast]: msg不能为空"),!1),Et={text(e,n={}){if(pn(e))return Rt({...n,type:"text",msg:e})},success(e,n={}){if(pn(e))return Rt({icon:ae.Success,...n,msg:e,type:"success"})},fail(e,n={}){if(pn(e))return Rt({icon:ae.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){if(pn(e))return Rt({icon:ae.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Rt({icon:ae.Loading,...n,msg:e,type:"loading"})},hide(e){Yi(e)},install(e){e.use(Na),e.config.globalProperties.$toast=Et}},{componentName:U2,create:R1}=J("audio"),L1=R1({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:ae.Service,[Yt.name]:Yt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null),r=(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 k=["webkitVisibilityState","visibilitychange"];try{for(let w=0;w<k.length;w++)document.addEventListener(k[w],()=>{document.hidden?l.value.pause():r.playing&&setTimeout(()=>{l.value.play()},200)})}catch(w){w.message}});const i=k=>{const w=l.value;e.autoplay&&w&&w.paused&&w.play(),r.second=w.duration,r.duration=N(w.duration),n("can-play",k)},a=k=>{r.currentTime=parseInt(k.target.currentTime)},u=()=>{r.currentTime>0&&r.currentTime--,l.value.currentTime=r.currentTime,n("fastBack",r.currentTime)},s=()=>{const k=l.value;r.playing?(k.pause(),r.handPlaying=!1):(k.play(),r.handPlaying=!0),r.playing=!r.playing,n("play",r.playing)},d=()=>{r.currentTime++,l.value.currentTime=r.currentTime,n("forward",r.currentTime)},h=k=>{r.currentDuration=N(k),r.percent=k/r.second*100},c=()=>{r.playing=!1,n("ended")},p=k=>{const w=l.value;w.currentTime=r.second*k/100,n("changeProgress",w.currentTime)},g=()=>{r.hanMuted=!r.hanMuted,n("mute",r.hanMuted)},N=k=>{if(!k)return"00:00:00";let w=parseInt(k),b=Math.floor(w/3600),f=Math.floor((w-b*3600)/60),m=w-b*3600-f*60,S="";return S+=("0"+b.toString()).slice(-2)+":",S+=("0"+f.toString()).slice(-2)+":",S+=("0"+m.toString()).slice(-2),S};return(0,t.watch)(()=>r.currentTime,k=>{h(k)}),(0,t.provide)("audioParent",{children:[],props:e,audioData:r,handleMute:g,forward:d,fastBack:u,changeStatus:s}),{...(0,t.toRefs)(e),...(0,t.toRefs)(r),audioRef:l,fastBack:u,forward:d,changeStatus:s,progressChange:p,audioEnd:c,onTimeupdate:a,handleMute:g,onCanplay:i,slots:o}}}),F1={class:"fox-audio"},O1={key:0,class:"fox-audio__progress"},K1={class:"fox-audio__time"},U1={class:"fox-audio__bar"},H1={class:"fox-audio__time"},_1={key:1,class:"fox-audio__icon"},j1=["controls","src","preload","autoplay","loop","muted"];function W1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-range"),u=(0,t.resolveComponent)("Service");return(0,t.openBlock)(),(0,t.createElementBlock)("div",F1,[e.type=="progress"?((0,t.openBlock)(),(0,t.createElementBlock)("div",O1,[(0,t.createElementVNode)("div",K1,(0,t.toDisplayString)(e.currentDuration),1),(0,t.createElementVNode)("div",U1,[(0,t.createVNode)(a,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=s=>e.percent=s),"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",H1,(0,t.toDisplayString)(e.duration),1)])):(0,t.createCommentVNode)("",!0),e.type=="icon"?((0,t.openBlock)(),(0,t.createElementBlock)("div",_1,[(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]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[e.playing?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1}))],2)])):(0,t.createCommentVNode)("",!0),e.type=="none"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,onClick:n[2]||(n[2]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[(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]=(...s)=>e.onTimeupdate&&e.onTimeupdate(...s)),onCanplay:n[4]||(n[4]=(...s)=>e.onCanplay&&e.onCanplay(...s)),onEnded:n[5]||(n[5]=(...s)=>e.audioEnd&&e.audioEnd(...s)),muted:e.hanMuted},null,40,j1)])}var Aa=re(L1,[["render",W1]]),{componentName:H2,create:Y1,scope:X1}=J("audio-operate"),Q1=Y1({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:o}=(0,ve.useFoxI18n)(X1),l=(0,t.reactive)((0,t.inject)("audioParent")),r=(0,t.ref)((0,t.useSlots)().default);return{...(0,t.toRefs)(e),...(0,t.toRefs)(l),customSlot:r,t:o}}}),G1={class:"fox-audio-operate"};function Z1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",G1,[e.type=="back"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...u)=>e.fastBack&&e.fastBack(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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]=(...u)=>e.changeStatus&&e.changeStatus(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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]=(...u)=>e.forward&&e.forward(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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]=(...u)=>e.handleMute&&e.handleMute(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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 Ba=re(Q1,[["render",Z1]]),{componentName:J1,create:ek}=J("avatar"),tk=ek({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:r}=(0,t.toRefs)(e),i=["large","normal","small"],a=(0,t.inject)("avatarGroup",null),u=(0,t.ref)(null),s=(0,t.reactive)({lightTheme:!1}),d=(0,t.reactive)({index:1,showMax:!1,maxIndex:0});(0,t.onMounted)(()=>{const N=a?.avatarGroupRef?.value?.children;N&&g(N)});const h=(0,t.computed)(()=>({[J1]:!0,[`fox-avatar-${n.value||a?.props?.size||"normal"}`]:!0,[`fox-avatar-${o.value||a?.props?.shape||"normal"}`]:!0})),c=(0,t.computed)(()=>({width:i.indexOf(n.value)>-1?"":`${n.value}px`,height:i.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${l.value}`,color:`${r.value}`,marginLeft:d.index!=1&&(a?.props?.span?`${a?.props?.span}px`:""),zIndex:a?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),p=(0,t.computed)(()=>({backgroundColor:`${a?.props?.maxBgColor}`,color:`${a?.props?.maxColor}`})),g=N=>{d.maxIndex=N.length;for(let k=0;k<N.length;k++)N[k]&&N[k].classList&&N[k].classList[0]=="fox-avatar"&&N[k].setAttribute("data-index",k+1);d.index=u?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=a?.props?.maxCount&&(d.showMax=!0)};return{classes:h,styles:c,maxStyles:p,avatarGroup:a,visible:s,avatarRef:u,...(0,t.toRefs)(d)}}});function nk(e,n,o,l,r,i){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 Gt=re(tk,[["render",nk]]),{componentName:lk,create:ok}=J("avatar-group"),ak=ok({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),r=(0,t.ref)(null),i=(0,t.ref)(0),a=(0,t.computed)(()=>({[lk]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:r,index:i}),{classes:a,avatarGroupRef:r}}});function rk(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"avatarGroupRef"},[(0,t.renderSlot)(e.$slots,"default")],2)}var Ta=re(ak,[["render",rk]]),Vl=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function ik(e,n,o){let l=0,r=e.length-1,i=null;for(;l<=r;){i=Math.floor((l+r)/2);const a=e[i],u=o(a,n);if(u===1)return i;u===2?l=i+1:u===3&&(r=i-1)}return i}var{componentName:sk,create:uk}=J("list"),$r=document.documentElement.clientHeight||document.body.clientHeight||667,ck=uk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:$r},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),r=(0,t.ref)(null),i=(0,t.reactive)({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),a=(0,t.computed)(()=>Math.min(e.containerHeight,$r)),u=(0,t.computed)(()=>Math.ceil(a.value/e.height)),s=(0,t.computed)(()=>Math.min(i.originStartIndex+u.value+e.bufferSize,i.list.length)),d=(0,t.computed)(()=>({[sk]:!0})),h=(0,t.computed)(()=>i.list.slice(i.start,s.value)),c=()=>{if(r.value)return`translate3d(0, ${i.start>=1?i.cachePositions[i.start-1].bottom:0}px, 0)`},p=()=>{i.cachePositions=[];for(let b=0;b<i.list.length;++b)i.cachePositions[b]={index:b,height:e.height,top:b*e.height,bottom:(b+1)*(e.height+e.margin),dValue:0}},g=()=>{let b=r.value.childNodes;b=Array.from(b).filter(v=>v.nodeType===1);const f=b[0];b.forEach((v,y)=>{if(!v)return;const{height:V}=$e(v),T=i.cachePositions[y+i.start].height-V;T&&(i.cachePositions[y+i.start].bottom-=T,i.cachePositions[y+i.start].height=V,i.cachePositions[y+i.start].dValue=T)});let m=0;f&&(m=i.start);const S=i.cachePositions.length;let B=i.cachePositions[m].dValue;i.cachePositions[m].dValue=0;for(let v=m+1;v<S;++v){const y=i.cachePositions[v];i.cachePositions[v].top=i.cachePositions[v-1].bottom,i.cachePositions[v].bottom=i.cachePositions[v].bottom-B,y.dValue!==0&&(B+=y.dValue,y.dValue=0)}i.phantomHeight=i.cachePositions[S-1].bottom},N=(b=0)=>{let f=ik(i.cachePositions,b,(m,S)=>{const B=m.bottom;return B===S?Vl.eq:B<S?Vl.lt:Vl.gt});return i.cachePositions[f].bottom<b&&(f+=1),f},k=()=>{i.originStartIndex=0,i.start=0,i.scrollTop=0,o.value.scrollTop=0,p(),i.phantomHeight=e.height*i.list.length},w=()=>{const b=o.value?.scrollTop,{originStartIndex:f}=i,m=N(b);m!==f&&(i.originStartIndex=m,i.start=Math.max(i.originStartIndex-e.bufferSize,0),s.value>=i.list.length-1&&n("scroll-bottom")),n(b>i.scrollTop?"scroll-up":"scroll-down",b),i.scrollTop=b};return(0,t.watch)(()=>e.listData,b=>{if(i.list=b.slice(),i.list.length===b.length)p(),g();else{k();return}}),(0,t.watch)(()=>i.start,()=>{r.value&&i.list.length>0&&g()}),{...(0,t.toRefs)(i),list:o,phantom:l,actualContent:r,getTransform:c,visibleData:h,classes:d,getContainerHeight:a,handleScrollEvent:w}}});function dk(e,n,o,l,r,i){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]=(...a)=>e.handleScrollEvent&&e.handleScrollEvent(...a)),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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-list-item",key:a},[(0,t.renderSlot)(e.$slots,"default",{item:a,index:u+e.start})]))),128))],4)],38)}var Va=re(ck,[["render",dk]]),{componentName:fk,create:mk}=J("circleprogress"),pk=mk({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),r=(0,t.computed)(()=>({[fk]:!0})),i=(0,t.computed)(()=>{const u=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${u} 0 90 a 45 45 0 1, ${u} 0 -90`}),a=(0,t.computed)(()=>xe(e.color)?`url(#${l})`:e.color);return{classes:r,hoverStyle:(0,t.computed)(()=>{let u=283,s=u*Number(e.progress)/100;return{stroke:xe(e.color)?`url(#${l})`:e.color,strokeDasharray:`${s}px ${u}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:i,hoverColor:a,stop:(0,t.computed)(()=>{if(!xe(e.color))return;let u=e.color;const s=Object.keys(u).sort((h,c)=>parseFloat(h)-parseFloat(c));let d=[];return s.map((h,c)=>{let p={key:"",value:""};p.key=h,p.value=u[h],d.push(p)}),d}),slotDefault:o,refRandomId:l}}}),hk={viewBox:"0 0 100 100"},vk=["id"],gk=["offset","stop-color"],yk=["d","stroke-width"],bk=["d","stroke","stroke-linecap","stroke-width"],Sk={class:"fox-circleprogress-text"},kk={key:0};function wk(e,n,o,l,r,i){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",hk,[(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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("stop",{key:u,offset:a.key,"stop-color":a.value},null,8,gk))),128))],8,vk)]),(0,t.createElementVNode)("path",{class:"fox-circleprogress-path",style:(0,t.normalizeStyle)(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,yk),(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,bk)])),(0,t.createElementVNode)("div",Sk,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",kk,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var xa=re(pk,[["render",wk]]),{componentName:Ck,create:Nk}=J("noticebar"),Ak=Nk({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:ae.Notice,CircleClose:ae.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null),r=(0,t.ref)(null),i=(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}),a=(0,t.computed)(()=>({[Ck]:!0})),u=(0,t.computed)(()=>i.isCanScroll==null?e.wrapable:!i.isCanScroll&&!e.wrapable),s=(0,t.computed)(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":u.value,[i.animationClass]:!0})),d=(0,t.computed)(()=>{let y={};return e.color&&(y.color=e.color),e.background&&(y.background=e.background),e.direction=="vertical"&&(y.height=`${e.height}px`),y}),h=(0,t.computed)(()=>({animationDelay:(i.firstRound?e.delay:0)+"s",animationDuration:i.duration+"s",transform:`translateX(${i.firstRound?0:i.wrapWidth+"px"})`})),c=(0,t.computed)(()=>{let y={};if(e.complexAm)y={transform:`translateY(${i.distance}px)`};else if(i.animate){let V=~~(e.height/e.speed/4);y={transition:`all ${V==0?~~(e.height/e.speed):V}s`,"margin-top":`-${e.height}px`}}return y});(0,t.watch)(()=>e.text,y=>{p(y)}),(0,t.watch)(()=>e.list,y=>{i.scrollList=[...y]});const p=y=>{i.showNoticebar!=!1&&setTimeout(()=>{if(!l.value||!r.value)return;const V=l.value.getBoundingClientRect().width,T=r.value.getBoundingClientRect().width;i.isCanScroll=e.scrollable==null?T>V:e.scrollable,i.isCanScroll?(i.wrapWidth=V,i.offsetWidth=T,i.duration=T/e.speed,i.animationClass="play"):i.animationClass=""},0)},g=y=>{n("click",y)},N=y=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",y)},k=y=>{i.firstRound=!1,n("across-end",y),setTimeout(()=>{i.duration=(i.offsetWidth+i.wrapWidth)/e.speed,i.animationClass="play-infinite"},0)},w=()=>{b(),i.timer=setInterval(b,~~(e.height/e.speed/4*1e3)+e.standTime)},b=()=>{i.animate=!0,setTimeout(()=>{i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.animate=!1},~~(e.height/e.speed/4*1e3))},f=()=>{i.timer=setInterval(()=>{let y=100;for(let V=0;V<y;V++)m(V,!(V<y-1))},e.standTime+100*e.speed)},m=(y,V)=>{setTimeout(()=>{i.distance-=e.height/100,V&&(i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.distance=0)},y*e.speed)},S=y=>{n("click",y)},B=()=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",i.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(o.default?v(o.default()):i.scrollList=[...e.list],setTimeout(()=>{e.complexAm?f():w()},e.standTime)):p(e.text)}),(0,t.watch)(()=>o.default?o.default():[],y=>{e.direction==="vertical"&&o.default&&(i.showNotica=!1,setTimeout(()=>{i.showNotica=!0}),v(y))});const v=y=>{y&&y.length>0&&(i.scrollList=y[0].children)};return(0,t.onActivated)(()=>{i.keepAlive&&(i.keepAlive=!1)}),(0,t.onDeactivated)(()=>{i.keepAlive=!0,clearInterval(i.timer)}),(0,t.onUnmounted)(()=>{clearInterval(i.timer)}),{...(0,t.toRefs)(e),...(0,t.toRefs)(i),isEllipsis:u,classes:a,barStyle:d,contentStyle:h,horseLampStyle:c,wrap:l,content:r,handleClick:g,onClickIcon:N,onAnimationEnd:k,go:S,handleClickIcon:B,slots:o,toPxString:he,wrapContentClass:s}}}),Bk={key:0,class:"fox-noticebar__page-lefticon"},Tk={ref:"wrap",class:"fox-noticebar__page-wrap"},Vk={class:"showNotica"},xk=["onClick"];function Ek(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Notice"),u=(0,t.resolveComponent)("CircleClose"),s=(0,t.resolveComponent)("ScrollItem");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.direction=="across"?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:(0,t.normalizeStyle)(e.barStyle),onClick:n[3]||(n[3]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.showLeftIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Bk,[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,size:"16px"})):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Tk,[(0,t.createElementVNode)("view",{ref:"content",class:(0,t.normalizeClass)(e.wrapContentClass),style:(0,t.normalizeStyle)(e.contentStyle),onAnimationend:n[0]||(n[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":n[1]||(n[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=(0,t.withModifiers)((...d)=>e.onClickIcon&&e.onClickIcon(...d),["stop"]))},[e.$slots["right-icon"]?(0,t.renderSlot)(e.$slots,"right-icon",{key:0}):((0,t.openBlock)(),(0,t.createBlock)(u,{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",Vk,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,h)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:h,style:(0,t.normalizeStyle)({height:e.height+"px","line-height":e.height+"px"}),item:d},null,8,["style","item"]))),128))])],4)):((0,t.openBlock)(),(0,t.createElementBlock)("ul",{key:1,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,h)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{class:"fox-noticebar__vertical-item",key:h,style:(0,t.normalizeStyle)({height:e.toPxString(e.height),lineHeight:e.toPxString(e.height)}),onClick:c=>e.go(d)},[(0,t.renderSlot)(e.$slots,"item",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(d),1)])],12,xk))),128))],4)),(0,t.createElementVNode)("view",{class:"go",onClick:n[4]||(n[4]=d=>!e.slots.rightIcon&&e.handleClickIcon())},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[e.closeMode?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,color:e.color,size:"11px"},null,8,["color"])):(0,t.createCommentVNode)("",!0)])])],4)):(0,t.createCommentVNode)("",!0)],2)}var Ea=re(Ak,[["render",Ek]]),$k="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+vr79t8Q4ODjs7e0+O0X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87H98i51kAJxjvZ0Cp08lT074JcKKB8eUJMWwH+8K3v77/7N4LkfNLAGA28qgSl1xInpquROEseRhxSkAWPOM8wxRODSIt7GNHQanCpeQAtQURq4KR80AWOsNlmIK5vCpg0ZuVoNTqS9KpaTGbVp3aKSLlVOaZPCgOIjqKc7L6ojRAlRZxs8VoK5WMy6lTjT/gRak1QKlFFxO9FKsBZzZZZSWQBY3nNKllAOdG70CtDcP9/s4DHtSzEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:_2,create:qk,scope:Pk}=J("empty"),Mk={empty:$k,error:Dk,network:Ik},zk=qk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,ve.useFoxI18n)(Pk),o=n(e,["description"]),{image:l,imageSize:r}=(0,t.toRefs)(e),i=(0,t.computed)(()=>r.value?typeof r.value=="number"?`width:${r.value}px;height:${r.value}px`:`width:${r.value};height:${r.value}`:""),a=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:Mk[l.value];return{...o,imageUrl:a,imgStyle:i}}}),Rk={class:"fox-empty"},Lk=["src"],Fk={key:1,class:"fox-empty-description"};function Ok(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Rk,[(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,Lk)):(0,t.createCommentVNode)("",!0)],64))],4),e.$slots.description?(0,t.renderSlot)(e.$slots,"description",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",Fk,(0,t.toDisplayString)(e.description),1)),e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:2}):(0,t.createCommentVNode)("",!0)])}var $a=re(zk,[["render",Ok]]),{create:Kk,scope:Uk}=J("video"),Hk=Kk({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,ve.useFoxI18n)(Uk),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}),r=(0,t.ref)(null),i=(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 a=()=>{l.videoElm=r.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)),N(),l.showToolbox?u():(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",p),l.videoElm.addEventListener("timeupdate",Cn(c,1e3)))},u=()=>{const v=r.value,y=r.value.getElementsByClassName("fox-video-controller__progress-value")[0];l.player.$player=v,l.progressBar.progressElm=y,l.progressBar.pos=y.getBoundingClientRect(),l.videoSet.progress.width=Math.round(y.getBoundingClientRect().width)},s=()=>{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",()=>{h()}),l.videoElm.addEventListener("timeupdate",Cn(c,1e3)),l.videoElm.addEventListener("ended",p),n("play",l.videoElm)}catch{g()}else l.videoElm.pause(),n("pause",l.videoElm)},d=v=>{let y=[];const V=Math.floor(v/3600);V>0&&(V<10?y.push(`0${V}`):y.push(`${V}`));const T=Math.floor(v%3600/60);T<10?y.push(`0${T}`):y.push(`${T}`);const A=Math.round(v%3600%60);return A<10?y.push(`0${A}`):y.push(`${A}`),y.join(":")},h=()=>{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=d(l.videoElm.duration),l.videoSet.displayTime=d(l.videoElm.currentTime),n("time",l.videoSet.displayTime,l.videoSet.totalTime)},p=()=>{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)},g=()=>{l.state.isError=!0},N=()=>{l.state.vol=e.options.volume},k=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},w=()=>{},b=v=>{let y=v.targetTouches[0].pageX-l.progressBar.pos.left;y<=0&&(y=0),y>=l.videoSet.progress.width&&(y=l.videoSet.progress.width),l.videoSet.progress.current=y;let V=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&m(V,l.videoElm.duration)},f=v=>{let y=v.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=y;let V=y/l.videoSet.progress.width;l.videoElm.duration&&m(V,l.videoElm.duration)},m=(v,y)=>{l.videoElm.currentTime=Math.floor(v*y)},S=()=>{l.state.isError=!1,a()},B=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{a()}),{root:r,...(0,t.toRefs)(e),...(0,t.toRefs)(l),handleError:g,isDisabled:i,play:s,handleMuted:k,touchSlidSrart:w,touchSlidMove:b,touchSlidEnd:f,retry:S,fullScreen:B,t:o}}}),_k={class:"fox-video",ref:"videocon"},jk=["muted","autoplay","loop","poster","controls","preload"],Wk=["src","type"],Yk={class:"fox-video-controller__now"},Xk={class:"fox-video-controller__progress"},Qk={class:"fox-video-controller__progress-value",ref:"progressBar"},Gk={class:"fox-video-controller__played",ref:"playedBar"},Zk={class:"fox-video-controller__total"},Jk={class:"fox-video-error"},ew={class:"fox-video-error-tip"};function tw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",_k,[(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]=(...a)=>e.handleError&&e.handleError(...a))},[(0,t.createElementVNode)("source",{src:e.source.src,type:e.source.type},null,8,Wk)],40,jk),e.showToolbox&&!e.isDisabled?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...a)=>e.play&&e.play(...a))},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]=(...a)=>e.play&&e.play(...a))},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]=(...a)=>e.play&&e.play(...a))}),(0,t.createElementVNode)("div",Yk,(0,t.toDisplayString)(e.videoSet.displayTime),1),(0,t.createElementVNode)("div",Xk,[(0,t.createElementVNode)("div",Qk,[(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)(a=>e.touchSlidMove(a),["stop","prevent"])),onTouchstart:n[5]||(n[5]=(0,t.withModifiers)(a=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)(a=>e.touchSlidEnd(a),["stop"]))},[...n[10]||(n[10]=[(0,t.createElementVNode)("div",{class:"fox-video-controller__ball-move"},null,-1)])],36),(0,t.createElementVNode)("div",Gk,null,512)],512)]),(0,t.createElementVNode)("div",Zk,(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]=(...a)=>e.handleMuted&&e.handleMuted(...a))},null,2),(0,t.createElementVNode)("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...a)=>e.fullScreen&&e.fullScreen(...a))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),(0,t.withDirectives)((0,t.createElementVNode)("div",Jk,[(0,t.createElementVNode)("p",ew,(0,t.toDisplayString)(e.t("errorTip")),1),(0,t.createElementVNode)("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...a)=>e.retry&&e.retry(...a))},(0,t.toDisplayString)(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var At=re(Hk,[["render",tw]]),Xi=Symbol("fox-steps"),{create:nw,componentName:lw}=J("steps"),ow=nw({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.computed)(()=>{const i=lw;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}});return sn(Xi,{props:e,onEmit:i=>{n("click-step",i)}}),()=>(0,t.h)("view",{class:l.value},o.default?.())}}),Da=ow,{create:aw,componentName:rw}=J("step"),iw=aw({props:{title:{type:[String],default:""},content:{type:[String],default:""}},emits:["click-step"],setup(e){const{parent:n,index:o}=un(Xi,{props:e}),l=(0,t.reactive)({dot:n.props.progressDot}),r=()=>{const s=o.value+1;return s<+n.props.current?"finish":s===+n.props.current?"process":"wait"},i=(0,t.computed)(()=>r()),a=(0,t.computed)(()=>{const s=rw;return{[s]:!0,[`${s}-${i.value}`]:!0}}),u=()=>{n.onEmit(o.value)};return{...(0,t.toRefs)(l),index:o,classes:a,handleClickStep:u}}}),sw={class:"fox-step-head"},uw={class:"fox-step-icon-inner"},cw={key:1,class:"fox-step-inner"},dw={class:"fox-step-main"},fw={class:"fox-step-title"},mw={key:0},pw={key:0,class:"fox-step-content"},hw=["innerHTML"];function vw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClickStep&&e.handleClickStep(...a))},[(0,t.createElementVNode)("view",sw,[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",uw,[(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",cw,(0,t.toDisplayString)(e.index+1),1))])])],2)]),(0,t.createElementVNode)("view",dw,[(0,t.createElementVNode)("view",fw,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",mw,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",pw,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,hw)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var Ia=re(iw,[["render",vw]]),Qi=Symbol("fox-swiper"),{create:gw,componentName:xl}=J("swiper"),yw=gw({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,expose:l}){const r=(0,t.ref)(),i=(0,t.reactive)({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,style:{}}),a=(0,t.computed)(()=>i[h.value?"height":"width"]),{children:u}=sn(Qi,{props:e,size:a}),s=ot(),d=(0,t.computed)(()=>({[xl]:!0})),h=(0,t.computed)(()=>e.direction==="vertical"),c=(0,t.computed)(()=>{const z=xl;return{[`${z}-inner`]:!0,[`${z}-vertical`]:h.value}}),p=(0,t.computed)(()=>{const z=xl;return{[`${z}-pagination`]:!0,[`${z}-pagination-vertical`]:h.value}}),g=(0,t.computed)(()=>h.value?s.deltaY.value:s.deltaX.value),N=(0,t.computed)(()=>s.direction.value===e.direction),k=(0,t.computed)(()=>u.value.length),w=(0,t.computed)(()=>k.value*a.value),b=(0,t.computed)(()=>i.rect?(h.value?i.rect.height:i.rect.width)-a.value*k.value:0),f=(0,t.computed)(()=>(i.active+k.value)%k.value),m=()=>{let z=0;z=i.offset,i.style={transitionDuration:`${i.moving?0:e.duration}ms`,transform:`translate${h.value?"Y":"X"}(${z}px)`,[h.value?"height":"width"]:`${a.value*k.value}px`,[h.value?"width":"height"]:`${h.value?i.width:i.height}px`}},S=(z,W=0)=>{let I=z*a.value;e.loop||(I=Math.min(I,-b.value));let Q=W-I;return e.loop||(Q=_e(Q,b.value,0)),Q},B=z=>{const{active:W}=i;return z?e.loop?_e(W+z,-1,k.value):_e(W+z,0,k.value-1):W},v=({pace:z=0,offset:W=0,isEmit:I=!1})=>{if(k.value<=1)return;const{active:Q}=i,ee=B(z),oe=S(ee,W);if(e.loop){if(u.value[0]&&oe!==b.value){const Y=oe<b.value;u.value[0].setOffset(Y?w.value:0)}if(u.value[k.value-1]&&oe!==0){const Y=oe>0;u.value[k.value-1].setOffset(Y?-w.value:0)}}i.active=ee,i.offset=oe,I&&Q!==i.active&&n("change",f.value),m()},y=()=>{i.moving=!0,i.active<=-1&&v({pace:k.value}),i.active>=k.value&&v({pace:-k.value})},V=()=>{i.autoplayTimer&&clearTimeout(i.autoplayTimer)},T=z=>{y(),s.reset(),Qe(()=>{Qe(()=>{i.moving=!1,v({pace:z,isEmit:!0})})})},A=()=>{T(-1)},C=()=>{T(1)},q=z=>{y(),s.reset(),Qe(()=>{i.moving=!1;let W=0;e.loop&&k.value===z?W=i.active===0?0:z:W=z%k.value,v({pace:W-i.active,isEmit:!0})})},H=()=>{const z=de(e.autoPlay);z<=0||k.value<=1||(V(),i.autoplayTimer=setTimeout(()=>{C(),H()},z))},x=(z=+e.initPage)=>{V(),i.rect=r.value.getBoundingClientRect(),z=Math.min(k.value-1,z),i.width=e.width?+e.width:i.rect.width,i.height=e.height?+e.height:i.rect.height,i.active=z,i.offset=S(i.active),i.moving=!0,m(),H()},M=z=>{e.isPreventDefault&&z.preventDefault(),e.isStopPropagation&&z.stopPropagation(),e.touchable&&(s.start(z),i.touchTime=Date.now(),V(),y())},P=z=>{e.touchable&&i.moving&&(s.move(z),N.value&&v({offset:g.value}))},R=z=>{if(!e.touchable||!i.moving)return;const W=g.value/(Date.now()-i.touchTime);if((Math.abs(W)>.3||Math.abs(g.value)>+(a.value/2).toFixed(2))&&N.value){let I=0;const Q=h.value?s.offsetY.value:s.offsetX.value;e.loop?I=Q>0?g.value>0?-1:1:0:I=-Math[g.value>0?"ceil":"floor"](g.value/a.value),v({pace:I,isEmit:!0})}else g.value&&v({pace:0});i.moving=!1,m(),H()};return l({prev:A,next:C,to:q}),(0,t.onDeactivated)(()=>{V()}),(0,t.onBeforeUnmount)(()=>{V()}),(0,t.watch)(()=>e.initPage,z=>{(0,t.nextTick)(()=>{x(Number(z))})}),(0,t.watch)(()=>u.value.length,()=>{(0,t.nextTick)(()=>{x()})}),(0,t.watch)(()=>e.autoPlay,z=>{de(z)>0?H():V()}),{state:i,children:u,classes:d,classesInner:c,classesPagination:p,container:r,activePagination:f,onTouchStart:M,onTouchMove:P,onTouchEnd:R}}});function bw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{ref:"container",class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[(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.children.length,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("i",{style:(0,t.normalizeStyle)({backgroundColor:e.activePagination===u?e.paginationColor:"#ddd"}),class:(0,t.normalizeClass)({active:e.activePagination===u}),key:u},null,6))),128))],2)):(0,t.createCommentVNode)("",!0)],34)}var Bt=re(yw,[["render",bw]]),{create:Sw,componentName:kw}=J("swiper-item"),ww=Sw({setup(e,{slots:n,expose:o}){const l=(0,t.reactive)({offset:0}),r=(0,t.computed)(()=>({[kw]:!0})),i=s=>{l.offset=s},{parent:a}=un(Qi,{setOffset:i}),u=(0,t.computed)(()=>{const s={},d=a?.props.direction;return a?.size.value&&(s[d==="horizontal"?"width":"height"]=`${a?.size.value}px`),l.offset&&(s.transform=`translate${d==="horizontal"?"X":"Y"}(${l.offset}px)`),s});return o({setOffset:i}),{style:u,classes:r}}});function Cw(e,n,o,l,r,i){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=re(ww,[["render",Cw]]),Gi={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:Nw}=J("image-preview-item"),Aw=Nw({props:{...Gi,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=ot(),r=(0,t.computed)(()=>{const{rootWidth:T,rootHeight:A}=e,C=A/T;return o.imageRatio>C}),i=(0,t.computed)(()=>{const T=e.image;if(T&&T.src){const{scale:A,moveX:C,moveY:q,moving:H,zooming:x}=o,M={transitionDuration:x||H?"0s":".3s"};return A!==1&&(M.transform=`scale(${A}, ${A}) translate(${C/A}px, ${q/A}px)`),M}return{}}),a=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:T,rootHeight:A}=e,C=r.value?A/o.imageRatio:T;return Math.max(0,(o.scale*C-T)/2)}return 0}),u=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:T,rootHeight:A}=e,C=r.value?A:T*o.imageRatio;return Math.max(0,(o.scale*C-A)/2)}return 0}),s=T=>{const{naturalWidth:A,naturalHeight:C}=T.target;o.imageRatio=C/A},d=()=>{h(1),o.moveX=0,o.moveY=0},h=T=>{T=_e(T,+e.minZoom,+e.maxZoom+1),T!==o.scale&&(o.scale=T,n("scale",{scale:T,index:e.initNo}))},c=()=>{h(o.scale>1?1:2),o.moveX=0,o.moveY=0},p=T=>Math.sqrt((T[0].clientX-T[1].clientX)**2+(T[0].clientY-T[1].clientY)**2);let g,N,k,w,b,f,m;const S=T=>{const{touches:A}=T,{offsetX:C}=l;l.start(T),m=A.length,g=o.moveX,N=o.moveY,f=Date.now(),o.moving=m===1&&o.scale!==1,o.zooming=m===2&&!C.value,o.zooming&&(k=o.scale,w=p(T.touches))},B=T=>{const{touches:A}=T;if(l.move(T),(o.moving||o.zooming)&&Rl(T,!0),o.moving){const{deltaX:C,deltaY:q}=l,H=C.value+g,x=q.value+N;o.moveX=_e(H,-a.value,a.value),o.moveY=_e(x,-u.value,u.value)}if(o.zooming&&A.length===2){const C=p(A);h(k*C/w)}},v=()=>{if(m==1&&e.video&&e.video.source||m>1)return;const{offsetX:T,offsetY:A}=l,C=Date.now()-f,q=250,H=5;T.value<H&&A.value<H&&C<q&&(b?(clearTimeout(b),b=null,c()):b=setTimeout(()=>{e.contentClose&&n("close"),b=null},q))},y=T=>{let A=!1;(o.moving||o.zooming)&&(A=!0,o.moving&&g===o.moveX&&N===o.moveY&&(A=!1),T.touches.length||(o.zooming&&(o.moveX=_e(o.moveX,-a.value,a.value),o.moveY=_e(o.moveY,-u.value,u.value),o.zooming=!1),o.moving=!1,g=0,N=0,k=1,o.scale<1&&d(),o.scale>e.maxZoom&&(o.scale=+e.maxZoom))),Rl(T,A),v(),l.reset()},V=()=>{n("close")};return(0,t.watch)(()=>e.initNo,d),(0,t.watch)(()=>e.show,T=>{T||d()}),{...(0,t.toRefs)(o),onTouchStart:S,onTouchMove:B,onTouchEnd:y,getDistance:p,imageStyle:i,imageLoad:s,closeSwiper:V}}}),Bw=["src"];function Tw(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-video"),u=(0,t.resolveComponent)("fox-swiper-item");return(0,t.openBlock)(),(0,t.createBlock)(u,{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]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[2]||(n[2]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[4]||(n[4]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[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]=(...s)=>e.imageLoad&&e.imageLoad(...s))},null,40,Bw)):(0,t.createCommentVNode)("",!0),e.video&&e.video.source?((0,t.openBlock)(),(0,t.createBlock)(a,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):(0,t.createCommentVNode)("",!0)],36)]),_:1},8,["onClick"])}var Vw=re(Aw,[["render",Tw]]),{create:xw}=J("image-preview"),Ew=xw({props:{...Gi,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:Vw,CircleClose:ae.CircleClose,[we.name]:we,[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}),r=(0,t.computed)(()=>{const h="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${h}-right`:`${h}-left`}`}),i=(0,t.computed)(()=>Dn(e.videos)?[].concat(e.videos).concat(e.images):e.images),a=h=>{h!==l.active&&(l.active=h,n("change",l.active))},u=()=>{_i(e.beforeClose,{args:[l.active],done:()=>s()})},s=()=>{l.showPop=!1,n("close")},d=()=>{if(o.value){const h=$e(o.value);l.rootHeight=h.height,l.rootWidth=h.width}};return(0,t.watch)(()=>e.show,h=>{l.showPop=h,h&&(a(e.initNo),d())}),(0,t.watch)(()=>e.initNo,h=>{h!=l.active&&a(h)}),(0,t.onMounted)(()=>{a(e.initNo)}),{swipeRef:o,...(0,t.toRefs)(l),onClose:u,mergeImages:i,setActive:a,iconClasses:r}}}),$w={class:"fox-image-preview",ref:"swipeRef"},Dw={key:0,class:"fox-image-preview-index"};function Iw(e,n,o,l,r,i){const a=(0,t.resolveComponent)("image-preview-item"),u=(0,t.resolveComponent)("fox-swiper"),s=(0,t.resolveComponent)("CircleClose"),d=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=h=>e.showPop=h),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",$w,[e.showPop?((0,t.openBlock)(),(0,t.createBlock)(u,{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,(h,c)=>((0,t.openBlock)(),(0,t.createBlock)(a,{key:c,video:c<e.videos.length?h:{},image:c>=e.videos.length?h:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):(0,t.createCommentVNode)("",!0)],512),e.showIndex?((0,t.openBlock)(),(0,t.createElementBlock)("view",Dw,(0,t.toDisplayString)(e.active+1)+" / "+(0,t.toDisplayString)(e.mergeImages.length),1)):(0,t.createCommentVNode)("",!0),e.closeable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.iconClasses),onClick:n[0]||(n[0]=(...h)=>e.onClose&&e.onClose(...h))},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(s,{color:"#ffffff"})])],2)):(0,t.createCommentVNode)("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}var Zi=re(Ew,[["render",Iw]]),qw=class{show=!1;images=[];videos=[];contentClose=!0;initNo=0;paginationVisible=!1;paginationColor="";autoplay=0;isWrapTeleport=!1;showIndex=!0;closeable=!1;closeIconPosition="top-right";beforeClose;maxZoom=3;minZoom=1/3;isLoop=!0;teleport="body"},Pw=class{options=new qw;constructor(e){const n=Object.assign(this.options,e),{unmount:o}=_s(n,{name:"image-preview",components:[we,At,Bt,Tt,ut],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{o()})},(0,t.h)(Zi,n))}})})}},gl=e=>new Pw(e);gl.install=e=>{e.use(Zi)};var{create:Mw}=J("countup"),zw=Mw({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","scrollEnd"],setup(e,{emit:n,expose:o}){const l=(0,t.ref)(null),r=(0,t.ref)([]),i=T=>{T&&r.value.push(T)},a=(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:u,scrolling:s,customBgImg:d,type:h}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,()=>{p(),b(0)}),(0,t.watch)(()=>e.machinePrizeLevel,T=>{a.prizeLevelTrun=T}),(0,t.watch)(()=>e.initNum,T=>{a.current=T,a.valFlag=!1,c()}),(0,t.watch)(()=>e.endNum,()=>{a.current=e.initNum,a.valFlag=!1,c()});const c=()=>{if(a.valFlag)return!1;u&&(s||d?h!="machine"&&b():(w(),setTimeout(()=>{a.valFlag=!0},300)))},p=()=>{clearInterval(Number(a.timer)),a.timer=null},g=(T,A,C)=>{const q=(T.toString().split(".")[1]||"").length,H=(A.toString().split(".")[1]||"").length,x=Math.pow(10,Math.max(q,H));return C=="-"?Number((T*x-A*x).toFixed(0))/x:Number((T*x+A*x).toFixed(0))/x},N=T=>{let{num_total_len:A,pointNum:C,initDigit1:q,initDigit2:H,sortFlag:x}=a,M=x=="add"||x=="equal"?String(H)[T-(A-C)]:10-Number(String(H)[T-(A-C)]),P=x=="add"||x=="equal"?String(q)[T]:10-Number(String(q)[T]),R=T>A-C-1?-M*100+"%":T<=String(q).length-1?-P*100+"%":0;return R=="-1000%"&&(R=0),R},k=T=>{let{num_total_len:A,pointNum:C,initDigit1:q,initDigit2:H}=a,x=String(H)[T-(A-C)];return T>A-C-1?x||0:T<=String(q).length-1?String(q)[T]:0},w=()=>{let{endNum:T,initNum:A,speed:C,toFixed:q}=e,H=setInterval(()=>{A>T?Number(a.current)<=T||Number(a.current)<=C?(a.current=T.toFixed(q),clearInterval(H),n("scrollEnd"),a.valFlag=!1):a.current=(parseFloat(String(a.current))-parseFloat(String(C))).toFixed(q):Number(a.current)>=T?(a.current=T.toFixed(q),clearInterval(H),n("scrollEnd"),a.valFlag=!1):a.current=(parseFloat(String(a.current))+parseFloat(String(C))).toFixed(q)},e.during)},b=T=>{let{initNum:A,endNum:C,toFixed:q,customBgImg:H}=e;H&&(A=e.customChangeNum);let x,M,P,R;A!=0?(q!=0&&(A=Number(A.toFixed(q))),String(A).indexOf(".")>-1?(x=String(A).split(".")[0].length,M=String(A).split(".")[1].length):(x=String(A).length,M=0)):(x=1,M=0),C!=0?(q!=0&&(C=Number(C.toFixed(q))),String(C).indexOf(".")>-1?(P=String(C).split(".")[0].length,R=String(C).split(".")[1].length):(P=String(C).length,R=0)):(P=1,R=0);let z=x>=P?x:P,W=M>=R?M:R;a.num_total_len=z+W,a.pointNum=W,A>C?(a.sortFlag="reduce",a.to0_10=[0,9,8,7,6,5,4,3,2,1,0],a.totalCount=g(A,C,"-"),a.numberVal=Number(String(A))):A<C?(a.sortFlag="add",a.to0_10=[0,1,2,3,4,5,6,7,8,9,0],a.totalCount=g(C,A,"-"),a.numberVal=Number(String(C))):a.sortFlag="equal";var I=1;for(let ee=0;ee<a.pointNum;ee++)I*=10;var Q=a.numberVal*I;if(a.relNum=Q,q!=0&&(a.pointNum=String(a.numberVal).split(".")[1]?String(a.numberVal).split(".")[1].length:0,a.num_total_len=String(Q).length),String(A).indexOf(".")>-1){let ee=String(A).split(".");a.initDigit1=Number(ee[0]),a.initDigit2=Number(ee[1])}else a.initDigit1=A,a.initDigit2=0;s&&!H?(0,t.nextTick)(()=>{if(a.sortFlag=="equal")return!1;let ee=r.value[a.num_total_len-1];f(ee)}):T!==0&&B()},f=T=>{p();var A=1;a.pointNum!=0&&(A=1/Math.pow(10,a.pointNum)),a.timer=setInterval(()=>{m(T),a.totalCount=g(a.totalCount,A,"-"),a.totalCount<=0&&(p(),n("scrollEnd"),a.valFlag=!1)},e.during)},m=T=>{let A=T.getAttribute("turn-number"),C;if(a.sortFlag=="add"?C=parseInt(String(A))+1:C=parseInt(String(A))-1>=0?parseInt(String(A))-1:9,T.setAttribute("turn-number",String(C)),(T.style.transition=="none 0s ease 0s"||C==1||!T.style.transition)&&(T.style.transition=`all linear ${e.during}ms`),C==10||a.sortFlag=="reduce"&&C==0){var q=null;T.style.top=`-${a.sortFlag=="add"?C*100:(10-C)*100}%`,T.setAttribute("turn-number","0"),q=setTimeout(()=>{q&&clearTimeout(q),T.style.transition="none",T.style.top="0",S(T,C)},.975*e.during)}else T.style.top=`-${a.sortFlag=="add"?C*100:(10-C)*100}%`;T.style.top=="-100%"&&a.sortFlag=="reduce"&&m(T.previousSibling)},S=(T,A)=>{setTimeout(()=>{A==10&&T.previousSibling&&m(T.previousSibling)},200)},B=()=>{(0,t.nextTick)(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{n("scrollEnd"),a.valFlag=!1})})},v=()=>{for(a.notPrize=[];a.notPrize.length<3;){var T=Math.floor(Math.random()*e.machinePrizeNum+1);a.notPrize.indexOf(T)==-1&&a.notPrize.push(T)}};o({machineLuck:()=>{const T=e.machineTurnMore<0?0:e.machineTurnMore;let A=e.numHeight*e.machinePrizeNum;a.prizeLevelTrun<0&&v();for(let C=0;C<e.machineNum;C++)setTimeout(()=>{let q=A*(C+1+parseFloat(String(T)));a.prizeYPrev.length!=0&&(a.prizeY[C]=a.prizeYPrev[C]);let H=a.prizeYPrev[C]?a.prizeYPrev[C]:0,x=q+H+(e.machinePrizeNum-a.prizeLevelTrun+1)*e.numHeight+(A-H);a.prizeLevelTrun<0&&(x+=e.numHeight*a.notPrize[C]),V(C,x,H)},500*C)}});const V=(T,A,C)=>{let q=setInterval(()=>{if(C<=A)C+=10,a.prizeY[T]=parseFloat(String(C));else if(clearInterval(q),q=null,a.finshMachine+=1,a.prizeY[T]=A,a.finshMachine==e.machineNum){let H=e.numHeight*e.machinePrizeNum;a.prizeYPrev=[],JSON.parse(JSON.stringify(a.prizeY)).forEach(x=>{let M=x;for(;M>H;)M-=H;a.prizeYPrev.push(M)}),setTimeout(()=>{a.finshMachine=0,a.prizeLevelTrun<0?(n("scrollEnd",!1),a.valFlag=!1):(n("scrollEnd",!0),a.valFlag=!1)},130)}},30)};return(0,t.onMounted)(()=>{a.current=e.initNum,(0,t.nextTick)(()=>{c()})}),(0,t.onUnmounted)(()=>{p(),a.timer=null}),{...(0,t.toRefs)(a),...(0,t.toRefs)((0,t.reactive)(e)),runNumberImg:l,setRef:i,topNumber:N,turnNumber:k}}}),Rw={class:"fox-countup"},Lw=["turn-number"];function Fw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Rw,[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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"mImg"+u,class:"fox-countup__machine-item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[u]+"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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"cImg"+u,class:"fox-countup__numberimg__item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(Number(u)>e.num_total_len-e.pointNum-1?Number(u)==e.num_total_len-e.pointNum?Number(u)*1.5:Number(u)*1.3:Number(u))+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[u]*e.numHeight+e.customSpacNum*+String(e.relNum)[u])+"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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{ref_for:!0,ref:s=>e.setRef(s),key:a,class:"fox-countup__number-item",style:(0,t.normalizeStyle)({top:e.topNumber(u),left:e.numWidth*(Number(u)>e.num_total_len-e.pointNum-1?Number(u)*1.1:Number(u))+"px"}),"turn-number":e.turnNumber(u)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.to0_10,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"dote"+d,class:"fox-countup__number-item__span",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},(0,t.toDisplayString)(s),5))),128))],12,Lw))),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 qa=re(zw,[["render",Fw]]),Ow=e=>{if(!e)return Date.now();let n=Number(e),o=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(o).getTime()},{componentName:Kw,create:Uw}=J("countdown"),Hw=Uw({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}),r=(0,t.computed)(()=>({[Kw]:!0})),i=(0,t.computed)(()=>s(l.restTime)),a=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-Ow(e.startTime),l.counting||(l.counting=!0),u()},u=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const g=Date.now()-l.diffTime,N=Math.max(l.handleEndTime-g,0);l.restTime=N,N||(l.counting=!1,c(),n("on-end")),N>0&&u()}}))},s=(g,N)=>{const k=g;let w={d:0,h:0,m:0,s:0,ms:0};const b=1e3,f=60*b,m=60*f,S=24*m;return k>0&&(w.d=k>=b?Math.floor(k/S):0,w.h=Math.floor(k%S/m),w.m=Math.floor(k%m/f),w.s=Math.floor(k%f/b),w.ms=Math.floor(k%b)),N=="custom"?w:d({...w})},d=g=>{let{d:N,h:k,m:w,s:b,ms:f}=g,m=e.format;if(m.includes("DD")?m=m.replace("DD",at(N)):k+=Number(N)*24,m.includes("HH")?m=m.replace("HH",at(k)):w+=Number(k)*60,m.includes("mm")?m=m.replace("mm",at(w)):b+=Number(w)*60,m.includes("ss")?m=m.replace("ss",at(b)):f+=Number(b)*1e3,m.includes("S")){const S=at(f,3).toString();m.includes("SSS")?m=m.replace("SSS",S):m.includes("SS")?m=m.replace("SS",S.slice(0,2)):m.includes("S")&&(m=m.replace("SS",S.slice(0,1)))}return m},h=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),u(),n("on-restart",l.restTime))},c=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},p=()=>{e.autoStart||(c(),l.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?a():l.restTime=e.time}),(0,t.watch)(()=>l.restTime,g=>{let N=s(g,"custom");n("update:modelValue",N),n("input",N)}),(0,t.watch)(()=>e.paused,(g,N)=>{N?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),u()),n("on-restart",l.restTime)):l.counting&&c()}),(0,t.watch)(()=>e.endTime,g=>{a()}),(0,t.watch)(()=>e.startTime,g=>{a()}),{...(0,t.toRefs)(e),slots:o,classes:r,start:h,pause:c,renderTime:i,reset:p}}}),_w=["innerHTML"];function jw(e,n,o,l,r,i){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,_w))],2)}var Pa=re(Hw,[["render",jw]]),{create:Ww}=J("badge"),Yw=Ww({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})}}}),Xw={class:"fox-badge"},Qw=["textContent"];function Gw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Xw,[(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,Qw),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var Ma=re(Yw,[["render",Gw]]),{componentName:Zw,create:Jw}=J("tag"),eC=Jw({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:ae.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:(0,t.computed)(()=>{const a=Zw;return{[a]:!0,[`${a}--${e.type}`]:!0,[`${a}--plain`]:e.plain,[`${a}--round`]:e.round,[`${a}--mark`]:e.mark,[`${a}--symbol`]:e.symbol,[`${a}--text`]:e.text,[`${a}--light`]:e.light}}),getStyle:()=>{const a={};return e.textColor?a.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(a.color=e.color),e.plain?(a.background="#fff",a["border-color"]=e.color):!e.text&&e.color&&(a.background=e.color),a},onClose:a=>{a.stopPropagation(),n("close",a)},onClick:a=>{n("click",a)}}}});function tC(e,n,o,l,r,i){const a=(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]=(...u)=>e.onClick&&e.onClick(...u))},[(0,t.renderSlot)(e.$slots,"default"),e.closeable?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],6)}var za=re(eC,[["render",tC]]),{create:nC}=J("popover"),lC=nC({components:{FoxPopup:we},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)(),r=(0,t.ref)(e.visible);let i=(0,t.ref)(),a=(0,t.ref)();const u=(0,t.computed)(()=>{const f="fox-popover-arrow",m=e.location;return`${f} ${f}-${m.split("-")[0]} ${f}--${m}`}),s=(0,t.computed)(()=>{const f={},{bgColor:m,arrowOffset:S,location:B}=e,v=B.split("-")[0],y=B.split("-")[1],V=16;return m&&(f[`border${d(v)}Color`]=m),e.arrowOffset!=0&&(["bottom","top"].includes(v)&&(y||(f.left=`calc(50% + ${S}px)`),y=="start"&&(f.left=`${V+S}px`),y=="end"&&(f.right=`${V-S}px`)),["left","right"].includes(v)&&(y||(f.top=`calc(50% - ${S}px)`),y=="start"&&(f.top=`${V-S}px`),y=="end"&&(f.bottom=`${V+S}px`))),f}),d=f=>(f=f.toLowerCase(),f=f.replace(/\b\w+\b/g,m=>m.substring(0,1).toUpperCase()+m.substring(1)),f),h=(0,t.computed)(()=>{let f={};if(!i.value||!a.value)return{};const m=a.value.width,S=a.value.height,{width:B,height:v,left:y,top:V}=i.value,{location:T,offset:A}=e,C=T.split("-")[0],q=T.split("-")[1];let H=0,x=0;return Dn(A)&&A.length==2&&(H+=Number(A[1]),x+=Number(A[0])),B&&(["bottom","top"].includes(C)&&(f.top=`${V+(C=="bottom"?v+H:-(S+H))}px`,q||(f.left=`${-(m-B)/2+y+x}px`),q=="start"&&(f.left=`${y+x}px`),q=="end"&&(f.left=`${i.value.right+x}px`)),["left","right"].includes(C)&&(f.left=`${y+(C=="left"?-(m+H):B+H)}px`,q||(f.top=`${V-S/2+v/2-4+x}px`),q=="start"&&(f.top=`${V+x}px`),q=="end"&&(f.top=`${V+v+x}px`))),f}),c=(0,t.computed)(()=>{const f={};return e.bgColor&&(f.background=e.bgColor),f}),p=()=>{let f=$e(o.value);e.targetId&&(f=$e(document.querySelector(`#${e.targetId}`))),i.value=f,setTimeout(()=>{a.value={height:l.value?.clientHeight,width:l.value?.clientWidth}},0)};(0,t.onMounted)(()=>{setTimeout(()=>{p()},200)}),(0,t.watch)(()=>e.visible,f=>{r.value=f,f?(window.addEventListener("touchstart",b,!0),p()):window.removeEventListener("touchstart",b,!0)});const g=f=>{n("update",f),n("update:visible",f)},N=()=>{g(!e.visible),n("open")},k=()=>{n("update:visible",!1),n("close")},w=(f,m)=>{!f.disabled&&n("choose",f,m),e.closeOnClickAction&&k()},b=f=>{const m=o.value,S=l.value;let B=m&&!m.contains(f.target);if(e.targetId){const v=document.querySelector(`#${e.targetId}`);B=v&&!v.contains(f.target)}B&&S&&!S.contains(f.target)&&e.closeOnClickOutside&&k()};return{showPopup:r,openPopover:N,popoverArrow:u,closePopover:k,chooseItem:w,popoverRef:o,popoverContentRef:l,getRootPosition:h,customStyle:c,popoverArrowStyle:s,renderIcon:fi}}}),oC={ref:"popoverContentRef",class:"fox-popover-content-group"},aC=["onClick"],rC={class:"fox-popover-menu-item-name"};function iC(e,n,o,l,r,i){const a=(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]=(...u)=>e.openPopover&&e.openPopover(...u))},[(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)(a,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=u=>e.showPopup=u),"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",oC,[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,(u,s)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:s,class:(0,t.normalizeClass)([u.className,u.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:(0,t.withModifiers)(d=>e.chooseItem(u,s),["stop"])},[u.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(u.icon)),{key:0,class:"fox-popover-item-img"})):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",rC,(0,t.toDisplayString)(u.name),1)],10,aC))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}var Zt=re(lC,[["render",iC]]),sC=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:r}=(0,t.toRefs)(n),i=(0,t.computed)(()=>{const s="avatarClass";return{[s]:!0,[`${s}--${o.value}`]:o.value}});return{avatarShape:o,avatarClass:i,getBlockClass:s=>({[s]:!0,[`${s}--round`]:l.value}),getStyle:()=>r.value?{width:r.value,height:r.value}:{width:"50px",height:"50px"}}}}),{create:uC}=J("skeleton"),cC=uC(sC({[Gt.name]:Gt})),dC={key:0},fC={key:1,class:"fox-skeleton"},mC={key:0,class:"fox-skeleton-animation"},pC={class:"fox-skeleton-content"};function hC(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",fC,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",mC)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",pC,[e.avatar?((0,t.openBlock)(),(0,t.createBlock)(a,{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),u=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u,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",dC,[(0,t.renderSlot)(e.$slots,"default")]))}var Ra=re(cC,[["render",hC]]),{create:vC,componentName:gC}=J("collapse"),yC=vC({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?"":[])),r=(0,t.computed)(()=>({[gC]:!0}));(0,t.watch)(()=>e.modelValue,s=>{l.value=s});const i=(s,d,h=!0)=>{l.value=s,n("update:modelValue",s),n("change",s,d,h)},a=s=>{e.accordion?l.value===s?i("",s,!1):i(s,s,!0):Array.isArray(l.value)?l.value.includes(s)?i(l.value.filter(d=>d!==s),s,!1):i(l.value.concat([s]),s,!0):console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},u=s=>e.accordion?l.value===s:Array.isArray(l.value)?l.value.includes(s):!1;return(0,t.provide)("collapseParent",{updateVal:a,isExpanded:u}),{collapseDom:o,classes:r}}});function bC(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"collapseDom"},[(0,t.renderSlot)(e.$slots,"default")],2)}var La=re(yC,[["render",bC]]),{create:SC,componentName:kC}=J("collapse-item"),wC=SC({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:ae.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")),r=(0,t.computed)(()=>{const c=kC;return{[c]:!0,[c+"__border"]:e.border}}),i=(0,t.computed)(()=>l?l.isExpanded(e.name):!1),a=(0,t.ref)(i.value?"auto":"0px"),u=()=>{l.updateVal(e.name)},s=()=>{i.value&&(a.value="auto")},d=()=>{a.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const c=o.value?.offsetHeight;a.value=c?`${c}px`:"auto"})})},h=()=>{const c=o.value?.offsetHeight;a.value=c?`${c}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{a.value="0px"})})};return(0,t.watch)(i,c=>{c?d():h()}),{classes:r,renderIcon:fi,wrapperRef:n,contentRef:o,open:d,toggle:u,wrapperHeight:a,expanded:i,onTransitionEnd:s}}}),CC={class:"fox-collapse-item__title-main"},NC={class:"fox-collapse-item__title-main-value"},AC=["innerHTML"],BC={key:2,class:"fox-collapse-item__title-label"},TC={key:0,class:"fox-collapse-item__title-sub"},VC=["innerHTML"],xC={key:0,class:"fox-collapse__item-extraWrapper"},EC={class:"fox-collapse__item-extraWrapper__extraRender"},$C={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function DC(e,n,o,l,r,i){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]=(...a)=>e.toggle&&e.toggle(...a))},[(0,t.createElementVNode)("view",CC,[(0,t.createElementVNode)("view",NC,[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,innerHTML:e.title,class:"fox-collapse-item__title-mtitle"},null,8,AC)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",BC,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",TC,[(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,VC)),(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",xC,[(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]=(...a)=>e.onTransitionEnd&&e.onTransitionEnd(...a))},[(0,t.createElementVNode)("view",$C,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var Fa=re(wC,[["render",DC]]),IC=(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:qC,create:PC,scope:MC}=J("table"),zC=PC({components:{RenderColumn:IC,DownArrow:ae.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:o}){const{t:l}=(0,ve.useFoxI18n)(MC),r=(0,t.reactive)({curData:e.data}),i=(0,t.computed)(()=>({[qC]:!0})),a=g=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${g.align?g.align:""}`]:!0}),u=g=>g.stylehead?g.stylehead:"",s=g=>g.stylecolumn?g.stylecolumn:"",d=g=>e.columns.filter(N=>N.key===g)[0],h=g=>{const N=e.columns.filter(k=>k.key===g);return N[0].stylecolumn?N[0].stylecolumn:""},c=g=>{g.sorter&&(n("sorter",g),r.curData=typeof g.sorter=="function"?r.curData.sort(g.sorter):g.sorter==="default"?r.curData.sort():r.curData)},p=()=>e.columns.map(g=>[g.key,g.render]);return(0,t.watch)(()=>e.data,g=>{r.curData=g.slice()}),{...(0,t.toRefs)(r),classes:i,cellClasses:a,getColumnItem:d,getColumnItemStyle:h,handleSorterClick:c,sortDataItem:p,t:l,stylehead:u,stylecolumn:s}}}),RC={class:"fox-table__main__head"},LC={class:"fox-table__main__head__tr"},FC=["onClick"],OC={class:"fox-table__main__body"},KC={key:1},UC={key:0,class:"fox-table__nodata"},HC={key:0,class:"fox-table__nodata__text"},_C={key:1,class:"fox-table__summary"},jC=["innerHTML"];function WC(e,n,o,l,r,i){const a=(0,t.resolveComponent)("DownArrow"),u=(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",RC,[(0,t.createElementVNode)("view",LC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,s=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__head__tr__th",e.cellClasses(s)]),key:s.key,onClick:d=>e.handleSorterClick(s),style:(0,t.normalizeStyle)(s.stylehead)},[(0,t.createTextVNode)((0,t.toDisplayString)(s.title)+" ",1),(0,t.renderSlot)(e.$slots,"icon"),!e.$slots.icon&&s.sorter?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,width:"12px",height:"12px"})):(0,t.createCommentVNode)("",!0)],14,FC))),128))])]),(0,t.createElementVNode)("view",OC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.curData,s=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-table__main__body__tr",key:s},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.sortDataItem(),([d,h])=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:(0,t.normalizeStyle)(e.getColumnItemStyle(d))},[typeof s[d]=="function"||typeof h=="function"?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,slots:[h,s[d]],record:s},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",KC,(0,t.toDisplayString)(s[d]),1))],6))),128))]))),128))])],2),e.curData.length?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",UC,[(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",HC,(0,t.toDisplayString)(e.t("noData")),1))],2)])),e.summary?((0,t.openBlock)(),(0,t.createElementBlock)("view",_C,[(0,t.createElementVNode)("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,jC)])):(0,t.createCommentVNode)("",!0)],2)}var Oa=re(zC,[["render",WC]]),{componentName:YC,create:XC}=J("ellipsis"),QC=XC({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,r=0;const i=(0,t.ref)(),a=(0,t.reactive)({exceeded:!1,expanded:!1}),u=(0,t.computed)(()=>({[YC]:!0}));(0,t.watch)(()=>e.content,(k,w)=>{k!=w&&s()}),(0,t.onMounted)(()=>{s()});const s=()=>{if(!o.value)return;const k=window.getComputedStyle(o.value);l=document.createElement("div"),Array.prototype.slice.apply(k).forEach(b=>{l.style.setProperty(b,k.getPropertyValue(b))}),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 w=p(k.lineHeight==="normal"?e.lineHeight:k.lineHeight);r=Math.floor(w*(Number(e.rows)+.5)+p(k.paddingTop)+p(k.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),d()},d=()=>{if(l.offsetHeight<=r)a.exceeded=!1,document.body.removeChild(l);else{a.exceeded=!0;const k=e.content.length,w=Math.floor((0+k)/2);i.value=e.direction==="middle"?c([0,w],[w,k]):h(0,k),document.body.removeChild(l)}},h=(k,w)=>{const b=a.expanded?e.collapseText:e.expandText,f=e.content.length;if(w-k<=1)return e.direction==="end"?{leading:e.content.slice(0,k)+e.symbol}:{tailing:e.symbol+e.content.slice(w,f)};const m=Math.round((k+w)/2);return e.direction==="end"?l.innerText=e.content.slice(0,m)+e.symbol+b:l.innerText=b+e.symbol+e.content.slice(m,f),l.offsetHeight<=r?e.direction==="end"?h(m,w):h(k,m):e.direction==="end"?h(k,m):h(m,w)},c=(k,w)=>{const b=a.expanded?e.collapseText:e.expandText,f=e.content.length;if(k[1]-k[0]<=1&&w[1]-w[0]<=1)return{leading:e.content.slice(0,k[0])+e.symbol,tailing:e.symbol+e.content.slice(w[1],f)};const m=Math.floor((k[0]+k[1])/2),S=Math.ceil((w[0]+w[1])/2);return l.innerText=e.content.slice(0,m)+e.symbol+b+e.symbol+e.content.slice(S,f),l.offsetHeight<=r?c([m,k[1]],[w[0],S]):c([k[0],m],[S,w[1]])},p=k=>{if(!k)return 0;const w=k.match(/^\d*(\.\d*)?/);return w?Number(w[0]):0},g=k=>{k==1?(a.expanded=!0,n("change","expand")):(a.expanded=!1,n("change","collapse"))},N=()=>{n("click")};return{...(0,t.toRefs)(a),root:o,ellipsis:i,classes:u,clickHandle:g,handleClick:N}}}),GC={key:0},ZC={key:1},JC={key:2};function e2(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[2]||(n[2]=(...a)=>e.handleClick&&e.handleClick(...a)),ref:"root"},[e.exceeded?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",GC,(0,t.toDisplayString)(e.content),1)),e.exceeded&&!e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",ZC,[(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)(a=>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",JC,[(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)(a=>e.clickHandle(2),["stop"]))},(0,t.toDisplayString)(e.collapseText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2)}var Ka=re(QC,[["render",e2]]),{componentName:t2,create:n2}=J("animate"),l2=n2({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:r}=(0,t.toRefs)(e),i=(0,t.reactive)({clicked:!1});let a=(0,t.computed)(()=>({"fox-animate__container":!0,[`${t2}-${o.value}`]:r.value==="initial"||i.clicked?o.value:!1,loop:l.value}));const u=s=>{i.clicked=!0,l.value||setTimeout(()=>{i.clicked=!1},1e3),n("click",s)};return{...(0,t.toRefs)(i),classes:a,handleClick:u}}}),o2={class:"fox-animate"};function a2(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",o2,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClick&&e.handleClick(...a)),style:(0,t.normalizeStyle)({animationDuration:e.duration?`${e.duration}ms`:void 0})},[(0,t.renderSlot)(e.$slots,"default")],6)])}var Ua=re(l2,[["render",a2]]),{componentName:r2,create:i2}=J("watermark"),s2=i2({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:r,gapY:i,width:a,height:u,rotate:s,image:d,imageWidth:h,imageHeight:c,content:p,fontStyle:g,fontWeight:N,fontColor:k,fontSize:w,fontFamily:b}=e,f=()=>{const S=document.createElement("canvas"),B=window.devicePixelRatio,v=S.getContext("2d"),y=`${(r+a)*B}px`,V=`${(i+u)*B}px`,T=a*B,A=u*B;if(S.setAttribute("width",y),S.setAttribute("height",V),v)if(d){v.translate(T/2,A/2),v.rotate(Math.PI/180*Number(s));const C=new Image;C.crossOrigin="anonymous",C.referrerPolicy="no-referrer",C.src=d,C.onload=()=>{v.drawImage(C,-h*B/2,-c*B/2,h*B,c*B),v.restore(),o.base64Url=S.toDataURL()}}else p&&(v.textBaseline="middle",v.textAlign="center",v.translate(T/2,A/2),v.rotate(Math.PI/180*Number(s)),v.font=`${g} normal ${N} ${Number(w)*B}px/${A}px ${b}`,v.fillStyle=k,v.fillText(p,0,0),v.restore(),o.base64Url=S.toDataURL());else throw new Error("当前环境不支持Canvas")};f(),(0,t.watch)(()=>[l,r,i,a,u,s,d,h,c,p,g,N,k,w,b],()=>{f()});const m=(0,t.computed)(()=>{const S=r2;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(o),classes:m}}});function u2(e,n,o,l,r,i){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 Ha=re(s2,[["render",u2]]);function c2(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:d2,create:f2}=J("trend-arrow"),m2=f2({components:{TriangleUp:ae.TriangleUp,TriangleDown:ae.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=(0,t.reactive)({rateTrend:e.rate>0}),o=(0,t.computed)(()=>({[d2]:!0})),l=(0,t.computed)(()=>{const{rate:i,digits:a,showSign:u,showZero:s}=e;n.rateTrend=i>0;const d=Math.abs(i);return!s&&i===0?"--":`${u&&i!==0?n.rateTrend?"+":"-":""}${c2(Number(d),a)}%`}),r=(0,t.computed)(()=>{const{dropColor:i,riseColor:a,syncTextColor:u,textColor:s,rate:d}=e;return{color:d===0?s:u?n.rateTrend?a:i:s}});return{...(0,t.toRefs)(n),classes:o,calcRate:l,calcStyle:r}}});function p2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("TriangleUp"),u=(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)(a,{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)(u,{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 _a=re(m2,[["render",p2]]),{create:h2}=J("tour"),v2=h2({components:{[Zt.name]:Zt,Close:ae.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const o=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),l=(0,t.ref)({}),r=(0,t.computed)(()=>"fox-tour"),i=(0,t.computed)(()=>{const{offset:h,maskWidth:c,maskHeight:p}=e,{width:g,height:N,left:k,top:w}=l.value,b=[k+g/2,w+N/2],f=Number(c||g),m=Number(p||N);return{width:`${f+ +h[1]*2}px`,height:`${m+ +h[0]*2}px`,top:`${b[1]-m/2-+h[0]}px`,left:`${b[0]-f/2-+h[1]}px`}}),a=h=>{h=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,(0,t.nextTick)(()=>{o.showPopup=!0,u()}),n("change",o.active)},u=()=>{l.value=$e(document.querySelector(`#${e.steps[o.active].target}`))},s=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&s()};return(0,t.onMounted)(()=>{o.active=0,u()}),(0,t.watch)(()=>e.modelValue,h=>{h&&u(),o.active=0,o.showTour=h,o.showPopup=h}),{...(0,t.toRefs)(o),classes:r,maskStyle:i,changeStep:a,close:s,handleClickMask:d}}}),g2={key:0,class:"fox-tour-content"},y2={key:0,class:"fox-tour-content-top"},b2={class:"fox-tour-content-inner"},S2={class:"fox-tour-content-bottom"},k2={class:"fox-tour-content-bottom-init"},w2={class:"fox-tour-content-bottom-operate"},C2={key:1,class:"fox-tour-content fox-tour-content-tile"},N2={class:"fox-tour-content-inner"};function A2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Close"),u=(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]=(...s)=>e.handleClickMask&&e.handleClickMask(...s))},null,512),[[t.vShow,e.showTour]]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.steps,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:d,style:{height:"0"}},[d==e.active?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.showTour?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:(0,t.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(u,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=h=>e.showPopup=h),location:s.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:s.popoverOffset||[0,12],arrowOffset:s.arrowOffset||0},{content:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,t.openBlock)(),(0,t.createElementBlock)("div",g2,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",y2,[(0,t.createElementVNode)("div",{onClick:n[1]||(n[1]=(...h)=>e.close&&e.close(...h))},[(0,t.createVNode)(a,{class:"fox-tour-content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",b2,(0,t.toDisplayString)(s.content),1),(0,t.createElementVNode)("div",S2,[(0,t.createElementVNode)("div",k2,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",w2,[(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]=h=>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]=(...h)=>e.close&&e.close(...h))},(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]=h=>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",C2,[(0,t.createElementVNode)("div",N2,(0,t.toDisplayString)(s.content),1)])):(0,t.createCommentVNode)("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):(0,t.createCommentVNode)("",!0)]))),128))],2)}var ja=re(v2,[["render",A2]]),{componentName:B2,create:T2}=J("barrage"),V2=T2({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)(()=>({[B2]:!0}));let r=(0,t.ref)(document.createElement("div")),i=(0,t.ref)(document.createElement("div")),a=null;const u=(0,t.ref)(e.danmu),s=(0,t.ref)(e.rows),d=(0,t.ref)(e.top),h=(0,t.ref)(0),c=e.speeds,p=(0,t.ref)(0);(0,t.onMounted)(()=>{g(),o&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(k(),h.value=0,N("hidden")):document.visibilityState==="visible"&&g()})}),(0,t.onUnmounted)(()=>{u.value=[],k()});const g=()=>{p.value=r.value.offsetWidth,o&&N("init"),setTimeout(()=>{r.value?.style.setProperty("--move-distance",`-${p.value}px`),b()},300)},N=m=>{let S=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const B=[];S&&Array.from(S).forEach(v=>{m=="init"?(v.style.opacity="0",B.push(v)):(v.classList="",v.style={})}),m=="init"&&(u.value=B)},k=()=>{a&&(clearTimeout(a),a=null)};(0,t.watch)(()=>e.danmu,m=>{e.danmu.length>0&&(u.value=[...m])});const w=m=>{const S=h.value%u.value.length;!e.loop&&h.value===u.value.length?u.value.splice(u.value.length,0,m):u.value.splice(S,0,m)},b=()=>{k(),a=setTimeout(()=>{f()},e.frequency)},f=()=>{const m=e.loop?h.value%u.value.length:h.value;let S=document.createElement("view");o&&typeof u.value[m]=="object"?(S=u.value[m],S?.classList?.add("fox-barrage__item")):(S.innerHTML=u.value[m],S.classList.add("fox-barrage__item"),i.value.appendChild(S)),(0,t.nextTick)(()=>{const B=S.offsetHeight;if(S?.classList?.add("move"),S.style.animationDuration=`${c}ms`,S.style.top=m%s.value*(B+d.value)+20+"px",S.style.opacity="1",!o){const v=S.offsetWidth;S.style.width=v+20+"px"}S.addEventListener("animationend",()=>{o?S.classList.remove("move"):i.value.removeChild(S)}),!(!e.loop&&h.value>=u.value.length-1)&&(h.value++,h.value>=u.value.length&&(h.value=0),S.removeEventListener("animationend",()=>{}),b())})};return{classTime:n,classes:l,danmuList:u,dmBody:r,dmContainer:i,add:w}}});function x2(e,n,o,l,r,i){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 Wa=re(V2,[["render",x2]]),{componentName:E2,create:$2,scope:D2}=J("signature"),I2=$2({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:{FoxButton:xt},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n,expose:o}){const{toLocaleRefs:l}=(0,ve.useFoxI18n)(D2),r=l(e,["unSupportTpl","reSign","confirmText"]),i=(0,t.ref)(null),a=(0,t.ref)(null),u=(0,t.computed)(()=>({[E2]:!0,[`${e.customClass}`]:e.customClass})),s=(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"]}),d=()=>{let m=document.createElement("canvas");return!!(m.getContext&&m.getContext("2d"))},h=()=>{i.value.addEventListener(s.events[0],c,!1)},c=m=>{m.preventDefault(),s.ctx.beginPath(),s.ctx.lineWidth=e.lineWidth,s.ctx.strokeStyle=e.strokeStyle,n("start"),i.value.addEventListener(s.events[1],p,!1),i.value.addEventListener(s.events[2],g,!1),i.value.addEventListener(s.events[3],N,!1)},p=m=>{m.preventDefault();let S=s.isSupportTouch?m.touches[0]:m;n("signing",S);let B=i.value.getBoundingClientRect(),v=S.clientX-B.left,y=S.clientY-B.top;s.ctx.lineTo(v,y),s.ctx.stroke()},g=m=>{m.preventDefault(),n("end"),i.value.removeEventListener(s.events[1],p,!1),i.value.removeEventListener(s.events[2],g,!1)},N=m=>{m.preventDefault(),i.value.removeEventListener(s.events[1],p,!1),i.value.removeEventListener(s.events[2],g,!1)},k=()=>{i.value.addEventListener(s.events[2],g,!1),s.ctx.clearRect(0,0,s.canvasWidth,s.canvasHeight),s.ctx.closePath(),n("clear")},w=()=>{f(i.value)},b=m=>{if(!m)return!0;var S=document.createElement("canvas");return S.width=m.width,S.height=m.height,m?.toDataURL()==S.toDataURL()},f=m=>{let S;switch(e.type){case"png":S=m.toDataURL("image/png");break;case"jpg":S=m.toDataURL("image/jpeg",.8);break}n("confirm",b(m)?"请绘制签名":m,b(m)?"":S)};return(0,t.onMounted)(()=>{d()&&(s.ctx=i.value.getContext("2d"),s.canvasWidth=a.value.offsetWidth,s.canvasHeight=a.value.offsetHeight,h())}),o({confirm:w,clear:k}),{...r,...(0,t.toRefs)(s),canvas:i,wrap:a,isCanvasSupported:d,confirm:w,clear:k,classes:u}}}),q2={class:"fox-signature__inner",ref:"wrap"},P2=["height","width"],M2={key:0,class:"fox-signature-unsopport"},z2={class:"fox-signature__toolbar"};function R2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxButton");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",q2,[(0,t.withDirectives)((0,t.createElementVNode)("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,P2),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("p",M2,(0,t.toDisplayString)(e.unSupportTpl),1))],512),(0,t.createElementVNode)("div",z2,[(0,t.renderSlot)(e.$slots,"toolbar",{},()=>[(0,t.createVNode)(a,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=u=>e.clear())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.reSign),1)]),_:1}),(0,t.createVNode)(a,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=u=>e.confirm())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.confirmText),1)]),_:1})])])],2)}var Ya=re(I2,[["render",R2]]),L2=[oo,ro,io,so,uo,ln,Gn,fo,mo,po,ho,vo,el,yo,ko,No,Ao,il,sl,Bo,ul,cl,To,xo,Vt,Eo,Do,hl,Io,Po,an,rn,ll,Mo,zo,Ro,Lo,it,Fo,Oo,Zn,wt,Jn,Ko,Uo,xt,Ho,_o,jo,ut,we,Wo,Yo,Xo,Qo,Wt,Go,Zo,Jo,ea,ta,na,la,oa,aa,ra,ia,sa,ua,ca,da,fa,ma,Yt,pl,ol,rl,al,vl,fl,on,pa,ha,va,ga,ya,ba,Sa,Qt,ml,ka,Ca,dl,Et,Aa,Ba,Gt,Ta,Va,Xt,xa,Ea,$a,At,Da,Ia,Bt,Tt,Xn,gl,qa,Pa,Ma,za,Zt,Ra,La,Fa,Oa,Ka,Ua,Ha,_a,ja,Wa,Ya],F2=new Hs(L2,"4.0.0");exports.AbstractPageScopeKey=no;exports.ActionSheet=ya;exports.FoxActionSheet=ya;exports.ActionsheetItem=Io;exports.FoxActionsheetItem=Io;exports.ActionsheetPane=hl;exports.FoxActionsheetPane=hl;exports.Animate=Ua;exports.FoxAnimate=Ua;exports.Audio=Aa;exports.FoxAudio=Aa;exports.AudioOperate=Ba;exports.FoxAudioOperate=Ba;exports.Avatar=Gt;exports.FoxAvatar=Gt;exports.AvatarGroup=Ta;exports.FoxAvatarGroup=Ta;exports.BackTop=ba;exports.FoxBackTop=ba;exports.Badge=Ma;exports.FoxBadge=Ma;exports.Barrage=Wa;exports.FoxBarrage=Wa;exports.Broadcast=jr;exports.BroadcastKey=Me;exports.Button=xt;exports.FoxButton=xt;exports.ButtonsItem=fo;exports.FoxButtonsItem=fo;exports.Calendar=rl;exports.FoxCalendar=rl;exports.CalendarItem=Ao;exports.FoxCalendarItem=Ao;exports.Cascader=ol;exports.FoxCascader=ol;exports.CascaderItem=ko;exports.FoxCascaderItem=ko;exports.Cell=Ho;exports.FoxCell=Ho;exports.CellGroup=jo;exports.FoxCellGroup=jo;exports.Checkbox=ul;exports.FoxCheckbox=ul;exports.CheckboxGroup=cl;exports.FoxCheckboxGroup=cl;exports.CheckboxItem=To;exports.FoxCheckboxItem=To;exports.CircleProgress=xa;exports.FoxCircleProgress=xa;exports.Col=Xo;exports.FoxCol=Xo;exports.Collapse=La;exports.FoxCollapse=La;exports.CollapseItem=Fa;exports.FoxCollapseItem=Fa;exports.Content=so;exports.FoxContent=so;exports.CountDown=Pa;exports.FoxCountDown=Pa;exports.CountUp=qa;exports.FoxCountUp=qa;exports.DataItemsKey=Ft;exports.DateItem=No;exports.FoxDateItem=No;exports.DatePicker=al;exports.FoxDatePicker=al;exports.DateUtils=gt;exports.Dialog=Qt;exports.FoxDialog=Qt;exports.Divider=Go;exports.FoxDivider=Go;exports.Domain=Mn;exports.DomainKey=Ge;exports.DomainProvider=Ko;exports.FoxDomainProvider=Ko;exports.Drag=Sa;exports.FoxDrag=Sa;exports.Dropdown=Oo;exports.FoxDropdown=Oo;exports.Elevator=ra;exports.FoxElevator=ra;exports.Ellipsis=Ka;exports.FoxEllipsis=Ka;exports.Empty=$a;exports.FoxEmpty=$a;exports.FixedNav=ta;exports.FoxFixedNav=ta;exports.FloatingButton=Ro;exports.FoxFloatingButton=Ro;exports.FooterBar=io;exports.FoxFooterBar=io;exports.FoxGrid=Zo;exports.Grid=Zo;exports.FoxGridItem=Jo;exports.GridItem=Jo;exports.FoxGroup=uo;exports.Group=uo;exports.FoxHeaderBar=ro;exports.HeaderBar=ro;exports.FoxHintText=Vt;exports.HintText=Vt;exports.FoxIcon=_o;exports.Icon=_o;exports.FoxImage=Wo;exports.Image=Wo;exports.FoxImagePreview=gl;exports.ImagePreview=gl;exports.FoxIndicator=ca;exports.Indicator=ca;exports.FoxInfiniteLoading=ml;exports.InfiniteLoading=ml;exports.FoxInputItem=po;exports.InputItem=po;exports.FoxInputNumber=vl;exports.InputNumber=vl;exports.FoxInputNumberItem=Po;exports.InputNumberItem=Po;exports.FoxItem=ln;exports.Item=ln;exports.FoxLayout=Yo;exports.Layout=Yo;exports.FoxLinkItem=Eo;exports.LinkItem=Eo;exports.FoxList=Va;exports.List=Va;exports.FoxMapping=Jn;exports.Mapping=Jn;exports.FoxMenu=na;exports.Menu=na;exports.FoxMenuItem=la;exports.MenuItem=la;exports.FoxMessageBox=it;exports.MessageBox=it;exports.FoxMoneyItem=ho;exports.MoneyItem=ho;exports.FoxMoreButton=Lo;exports.MoreButton=Lo;exports.FoxNavbar=ea;exports.Navbar=ea;exports.FoxNoticeBar=Ea;exports.NoticeBar=Ea;exports.FoxNotify=Ca;exports.Notify=Ca;exports.FoxNumberKeyboard=va;exports.NumberKeyboard=va;exports.FoxOverLay=ut;exports.OverLay=ut;exports.FoxPage=oo;exports.Page=oo;exports.FoxPagination=ia;exports.Pagination=ia;exports.FoxPicker=on;exports.Picker=on;exports.FoxPickerItem=yo;exports.PickerItem=yo;exports.FoxPopover=Zt;exports.Popover=Zt;exports.FoxPopoverDialog=Zn;exports.PopoverDialog=Zn;exports.FoxPopup=we;exports.Popup=we;exports.FoxPopupWrapper=Fo;exports.PopupWrapper=Fo;exports.FoxPrice=Xn;exports.Price=Xn;exports.FoxProgress=Xt;exports.Progress=Xt;exports.FoxPullRefresh=ka;exports.PullRefresh=ka;exports.FoxRadio=il;exports.Radio=il;exports.FoxRadioGroup=sl;exports.RadioGroup=sl;exports.FoxRadioItem=Bo;exports.RadioItem=Bo;exports.FoxRange=Yt;exports.Range=Yt;exports.FoxRate=fl;exports.Rate=fl;exports.FoxRateItem=Do;exports.RateItem=Do;exports.FoxRollingProvider=Uo;exports.RollingProvider=Uo;exports.FoxRow=Qo;exports.Row=Qo;exports.FoxRowItem=Gn;exports.RowItem=Gn;exports.FoxSearchBar=pl;exports.SearchBar=pl;exports.FoxShortPassword=pa;exports.ShortPassword=pa;exports.FoxSideNavBar=da;exports.SideNavBar=da;exports.FoxSideNavBarItem=fa;exports.SideNavBarItem=fa;exports.FoxSignature=Ya;exports.Signature=Ya;exports.FoxSkeleton=Ra;exports.Skeleton=Ra;exports.FoxSlotItem=mo;exports.SlotItem=mo;exports.FoxStep=Ia;exports.Step=Ia;exports.FoxSteps=Da;exports.Steps=Da;exports.FoxStepsBar=zo;exports.StepsBar=zo;exports.FoxSticky=Wt;exports.Sticky=Wt;exports.FoxSubSideNavBar=ma;exports.SubSideNavBar=ma;exports.FoxSwipe=ga;exports.Swipe=ga;exports.FoxSwiper=Bt;exports.Swiper=Bt;exports.FoxSwiperItem=Tt;exports.SwiperItem=Tt;exports.FoxSwitch=dl;exports.Switch=dl;exports.FoxSwitchItem=xo;exports.SwitchItem=xo;exports.FoxTabPane=ua;exports.TabPane=ua;exports.FoxTabbar=oa;exports.Tabbar=oa;exports.FoxTabbarItem=aa;exports.TabbarItem=aa;exports.FoxTable=Oa;exports.Table=Oa;exports.FoxTabs=sa;exports.Tabs=sa;exports.FoxTabsBar=an;exports.TabsBar=an;exports.FoxTabsContainer=rn;exports.TabsContainer=rn;exports.FoxTabsFrame=Mo;exports.TabsFrame=Mo;exports.FoxTabsPane=ll;exports.TabsPane=ll;exports.FoxTag=za;exports.Tag=za;exports.FoxText=wt;exports.Text=wt;exports.FoxTextarea=el;exports.Textarea=el;exports.FoxTextareaItem=vo;exports.TextareaItem=vo;exports.FoxToast=Et;exports.Toast=Et;exports.FoxTour=ja;exports.Tour=ja;exports.FoxTrendArrow=_a;exports.TrendArrow=_a;exports.FoxUploader=ha;exports.Uploader=ha;exports.FoxVideo=At;exports.Video=At;exports.FoxWaterMark=Ha;exports.WaterMark=Ha;exports.InnerPageScopeKey=to;exports.PriorityPolicy=Fl;exports.UniqueID=Qn;exports.ValidateSchema=Gr;exports.ValidateSchemaKey=Xe;exports.browseProperty=ui;exports.cancelRaf=Ir;exports.clamp=_e;exports.clearNonNumber=zl;exports.compareTo=ql;exports.createBroadcast=en;exports.createValidateSchema=Pn;exports.debounce=Ie;exports.debounceRef=$s;exports.decimalLength=_r;exports.default=F2;exports.defineConfigDomain=Jr;exports.defineDataItem=ei;exports.defineDomain=eo;exports.defineDomainItemProperty=Te;exports.defineItem=Be;exports.definePageState=ti;exports.defineSimpleItem=Oe;exports.deleteGlobalValidator=Ts;exports.disabledProperty=si;exports.divide=Gl;exports.excludeProps=tt;exports.extend=bt;exports.floatData=ks;exports.getGlobalIcons=On;exports.getGlobalValidateCheckEvents=Yr;exports.getGlobalValidateResetEvents=Qr;exports.getPageContentAreaHeight=Nn;exports.getPageContentAreaWidth=An;exports.getPageFooterAreaHeight=Ln;exports.getPageHeaderAreaHeight=Rn;exports.getRootDomain=ht;exports.hasSymbol=Fr;exports.includeProps=ye;exports.indexOf=bs;exports.injectAbstractPageScope=nn;exports.injectAbstractPageScopeForContent=ri;exports.injectAbstractPageScopeForFooterBar=ai;exports.injectAbstractPageScopeForHeaderBar=oi;exports.injectInnerPageScope=tn;exports.integerLength=Hr;exports.isArray=Dn;exports.isArrayLike=Kr;exports.isBrowser=et;exports.isDate=je;exports.isDisplayNone=Zl;exports.isESModule=ps;exports.isEmptyString=me;exports.isEqual=Ee;exports.isFunction=Sn;exports.isHidden=Pl;exports.isMap=cs;exports.isNil=Ve;exports.isNumberString=qn;exports.isObject=xe;exports.isPlainObject=ms;exports.isPromise=yt;exports.isRegExp=Ml;exports.isSet=ds;exports.isString=Rr;exports.isSubPage=Ms;exports.isSymbol=fs;exports.isTouch=tl;exports.isWindow=Or;exports.kebabToPascal=kn;exports.lastIndexOf=Ss;exports.makeArray=ys;exports.merge=Ur;exports.multiply=Pr;exports.negate=Mr;exports.nextTick=vs;exports.numberFormat=$n;exports.objectToString=Lr;exports.once=Ds;exports.overrideGlobalIcons=Zs;exports.overrideGlobalValidateHandler=As;exports.padZero=at;exports.pascalToKebab=ws;exports.preventDefault=Rl;exports.property=Ae;exports.provideAbstractPageScope=li;exports.provideInnerPageScope=ni;exports.px2Number=Ps;exports.raf=He;exports.readonlyProperty=ii;exports.setGlobalValidateCheckEvents=Vs;exports.setGlobalValidateHandler=Ns;exports.setGlobalValidateMessages=Es;exports.setGlobalValidateResetEvents=xs;exports.setGlobalValidator=Bs;exports.throttle=Cn;exports.toBoolean=Se;exports.toNumber=de;exports.toPadding=Le;exports.toPx=ue;exports.toPxDesc=qs;exports.toPxString=he;exports.toTypeString=In;exports.toValue=qe;exports.tryTimes=Jl;exports.typeOf=St;exports.unNumberFormat=zr;exports.updatePageState=Ll;exports.useBroadcast=Lt;exports.useDomain=nt;exports.useInnerSize=Fn;exports.usePageState=zn;exports.usePosition=co;exports.useRawTouch=nl;exports.useRect=$e;exports.useSize=ao;exports.useSlotChildren=Yn;exports.useTouch=ot;exports.valueLength=ke;
9
+ `)}}});function Sg(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)}var Qo=re(bg,[["render",Sg]]),{create:kg}=J("sticky"),wg=kg({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)(),r=(0,t.reactive)({fixed:!1,height:0,transform:0}),i=(0,t.computed)(()=>e.position==="top"?Number(e.top):Number(e.bottom)),a=(0,t.computed)(()=>r.fixed?{height:`${r.height}px`}:{}),u=(0,t.computed)(()=>r.fixed?{[e.position]:`${i.value}px`,transform:r.transform?`translate3d(0, ${r.transform}px, 0)`:void 0,position:r.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),s=()=>{const d=e.container;if(!o.value&&!d)return;const h=$e(o),c=l.value,p=$e(c),g=$e(d);r.height=h.height;const N=()=>{let w=!1;if(e.position==="top")w=d?i.value>h.top&&g.bottom>0:i.value>h.top;else{const b=document.documentElement.clientHeight;w=d?g.bottom>0&&b-i.value-p.height>g.top:b-i.value<h.bottom}return w},k=()=>{if(d)if(e.position==="top"){const w=g.bottom-i.value-p.height;return w<0?w:0}else{const w=document.documentElement.clientHeight,b=g.bottom-(w-i.value);return b<0?b:0}return 0};r.transform=k(),r.fixed=N()};return(0,t.watch)(()=>r.fixed,d=>{n("change",d)}),(0,t.onMounted)(()=>{s(),Wl(o.value).addEventListener("scroll",s,!0)}),(0,t.onUnmounted)(()=>{Wl(o.value).removeEventListener("scroll",s)}),{rootRef:o,rootStyle:a,stickyRef:l,stickyStyle:u}}});function Cg(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-sticky",ref:"rootRef",style:(0,t.normalizeStyle)(e.rootStyle)},[(0,t.createElementVNode)("div",{class:"fox-sticky__box",ref:"stickyRef",style:(0,t.normalizeStyle)(e.stickyStyle)},[(0,t.renderSlot)(e.$slots,"default")],4)],4)}var Wt=re(wg,[["render",Cg]]),{componentName:Ng,create:Ag}=J("divider"),Bg=Ag({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=Ng;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 Tg(e,n,o,l,r,i){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 Go=re(Bg,[["render",Tg]]),sn=(e,n={})=>{const o=(0,t.shallowRef)([]),l=i=>{o.value.push(i),(0,t.triggerRef)(o)},r=i=>{const a=o.value.findIndex(u=>u===i);a!=-1&&(o.value.splice(a,1),(0,t.triggerRef)(o))};return(0,t.onUnmounted)(()=>{const i=o.value.length;o.value.splice(0,i)}),(0,t.provide)(e,{unlink:r,link:l,children:o,...n}),{children:o}};function un(e,n){const o=(0,t.inject)(e,null);if(o){const{link:l,unlink:r,children:i}=o;return l(n),(0,t.onUnmounted)(()=>{r(n)}),{parent:o,index:(0,t.computed)(()=>i.value.indexOf(n))}}return{parent:o,index:(0,t.computed)(()=>-1)}}var{componentName:Vg}=J("grid"),Ki=Symbol("grid"),xg={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}},Eg={props:xg,setup(e,{slots:n}){sn(Ki,{props:e});const o=(0,t.computed)(()=>{const r=Vg;return{[r]:!0,[`${r}--border`]:e.border&&!e.gutter}}),l=(0,t.computed)(()=>{const r={};return e.gutter&&(r.paddingLeft=he(e.gutter)),r});return()=>(0,t.h)("view",{class:o.value,style:l.value},n.default?.())}},{create:$g}=J("grid"),Dg=$g(Eg),Zo=Dg,{create:Ig,componentName:xr}=J("grid-item"),qg=Ig({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const{parent:o,index:l}=un(Ki,{props:e}),r=(0,t.computed)(()=>({[xr]:!0})),i=(0,t.computed)(()=>{const s={flexBasis:`${100/+o.props.columnNum}%`};return o.props.square?s.paddingTop=`${100/+o.props.columnNum}%`:o.props.gutter&&(s.paddingRight=he(o.props.gutter),l.value>=o.props.columnNum&&(s.marginTop=he(o.props.gutter))),s}),a=(0,t.computed)(()=>{const s=`${xr}__content`;return{[`${s}`]:!0,[`${s}--border`]:o.props.border,[`${s}--surround`]:o.props.border&&o.props.gutter,[`${s}--center`]:o.props.center,[`${s}--square`]:o.props.square,[`${s}--reverse`]:o.props.reverse,[`${s}--${o.props.direction}`]:!!o.props.direction,[`${s}--clickable`]:o.props.clickable}});return{rootClass:r,rootStyle:i,contentClass:a,handleClick:s=>{n("click",s)}}}}),Pg={class:"fox-grid-item__text"};function Mg(e,n,o,l,r,i){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]=(...a)=>e.handleClick&&e.handleClick(...a))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.contentClass)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("view",Pg,[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.renderSlot)(e.$slots,"text",{key:1})])],2)],6)}var Jo=re(qg,[["render",Mg]]),{componentName:zg,create:Rg}=J("navbar"),Lg=Rg({components:{Left:ae.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:o,fixed:l,safeAreaInsetTop:r,placeholder:i,zIndex:a}=(0,t.toRefs)(e),u=(0,t.ref)(null),s=(0,t.ref)(null);let d=(0,t.ref)();const h=(0,t.computed)(()=>{const w=zg;return{[w]:!0,[`${w}--border`]:o.value,[`${w}--fixed`]:l.value,[`${w}--safe-area-inset-top`]:r.value}}),c=(0,t.computed)(()=>({zIndex:a.value}));(0,t.onMounted)(()=>{l.value&&i.value&&(0,t.nextTick)(()=>{d.value=s?.value?.getBoundingClientRect().height,u.value.style.height=d.value+"px"})});function p(){n("on-click-back")}function g(){n("on-click-title")}function N(){n("on-click-icon")}function k(){n("on-click-right")}return{navBarWrap:u,navBarHtml:s,classes:h,styles:c,handleLeft:p,handleCenter:g,handleCenterIcon:N,handleRight:k}}}),Fg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Og={key:1,class:"fox-navbar__text"},Kg={class:"fox-navbar__title"},Ug={key:0,class:"fox-navbar__text"},Hg={key:1,class:"fox-navbar__text"},_g={class:"fox-navbar__title"},jg={key:0,class:"fox-navbar__text"};function Wg(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fg,[(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]=(...u)=>e.handleLeft&&e.handleLeft(...u))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(a,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Og,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Kg,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...u)=>e.handleCenter&&e.handleCenter(...u))},(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]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...u)=>e.handleRight&&e.handleRight(...u))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ug,(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]=(...u)=>e.handleLeft&&e.handleLeft(...u))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(a,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hg,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",_g,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...u)=>e.handleCenter&&e.handleCenter(...u))},(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]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...u)=>e.handleRight&&e.handleRight(...u))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",jg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var ea=re(Lg,[["render",Wg]]),Yg=(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:r}){const{toLocaleRefs:i}=(0,ve.useFoxI18n)(n),a=i(l,["activeText","unActiveText"]),u=(0,t.computed)(()=>({[e]:!0,active:l.visible,[l.type]:!0})),s=(0,t.ref)(-1);return{...a,classes:u,updateValue:(c=!l.visible)=>{r("update:visible",c)},selected:(c,p)=>{r("selected",{item:c,event:p}),s.value=c.id},current:s}}}),{componentName:Xg,create:Qg,scope:Gg}=J("fixednav"),Zg=Qg(Yg(Xg,Gg,{[ut.name]:ut,Left:ae.Left})),Jg={class:"fox-fixednav__list"},ey=["onClick"],ty=["src"],ny={class:"span"},ly={key:0,class:"b"},oy={class:"text"};function ay(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-overlay"),u=(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)(a,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=s=>e.updateValue(!1))},null,8,["visible"])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"list",{},()=>[(0,t.createElementVNode)("view",Jg,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.navList,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-fixednav__list-item",{active:s.id==e.current}]),onClick:h=>e.selected(s,h),key:s.id||d},[(0,t.createElementVNode)("img",{src:s.icon},null,8,ty),(0,t.createElementVNode)("view",ny,(0,t.toDisplayString)(s.text),1),s.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",ly,(0,t.toDisplayString)(s.num),1)):(0,t.createCommentVNode)("",!0)],10,ey))),128))])]),(0,t.createElementVNode)("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=s=>e.updateValue())},[(0,t.renderSlot)(e.$slots,"btn",{},()=>[(0,t.createVNode)(u,{color:"#fff"}),(0,t.createElementVNode)("view",oy,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var ta=re(Zg,[["render",ay]]),Ui=Symbol("fox-menu"),{componentName:ry,create:iy}=J("menu"),sy=iy({components:{RectUp:ae.RectUp,RectDown:ae.RectDown},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:{type:String,default:""}},setup(e){const n=(0,t.ref)(),o=(0,t.ref)(0),l=(0,t.ref)(!1),{children:r}=sn(Ui,{props:e,offset:o}),i=(0,t.computed)(()=>r.value.some(p=>p.state.showWrapper)),a=(0,t.computed)(()=>({[ry]:!0,"scroll-fixed":l.value})),u=()=>{if(n.value){const p=$e(n);e.direction==="down"?o.value=p.bottom:o.value=window.innerHeight-p.top}},s=p=>{r.value.forEach((g,N)=>{N===p?(u(),g.toggle()):g.state.showPopup&&g.toggle(!1,{immediate:!0})})},d=p=>Math.max(0,"scrollTop"in p?p.scrollTop:p.pageYOffset),h=()=>{const{scrollFixed:p}=e;l.value=d(window)>(typeof p=="boolean"?30:Number(p))},c=p=>{let g="";const{titleClass:N}=e;return p&&(g+="active"),N&&(g+=` ${N}`),g};return(0,t.onMounted)(()=>{const{scrollFixed:p}=e;p&&window.addEventListener("scroll",h)}),(0,t.onUnmounted)(()=>{const{scrollFixed:p}=e;p&&window.removeEventListener("scroll",h)}),{toggleItem:s,children:r,opened:i,classes:a,barRef:n,getClasses:c}}}),uy=["onClick"],cy={class:"fox-menu__title-text"},dy={class:"fox-menu__title-icon"};function fy(e,n,o,l,r,i){const a=(0,t.resolveComponent)("RectUp"),u=(0,t.resolveComponent)("RectDown");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{ref:"barRef",class:(0,t.normalizeClass)(["fox-menu__bar",{opened:e.opened}])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.children,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu__item",{disabled:s.props.disabled,active:s.state.showPopup}]),style:(0,t.normalizeStyle)({color:s.state.showPopup?e.activeColor:""}),onClick:h=>!s.props.disabled&&e.toggleItem(d)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__title",e.getClasses(s.state.showPopup)])},[(0,t.createElementVNode)("view",cy,(0,t.toDisplayString)(s.renderTitle()),1),(0,t.createElementVNode)("span",dy,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.direction==="up"?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1}))])])],2)],14,uy))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var na=re(sy,[["render",fy]]),{create:my}=J("menu-item"),py=my({props:{title:[String],options:{type:Array,default:[]},disabled:{type:[Boolean],default:!1},modelValue:{type:[String,Number,Boolean]},cols:{type:Number,default:1},activeTitleClass:{type:[String]},inactiveTitleClass:{type:[String]}},components:{FoxPopup:we,Check:ae.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n}){const o=(0,t.reactive)({showPopup:!1,showWrapper:!1}),l=(0,t.computed)(()=>h.props.direction==="down"?{top:h.offset.value+"px"}:{bottom:h.offset.value+"px"}),r=(0,t.computed)(()=>{const c={height:h.offset.value+"px"};return h.props.direction==="down"?{...c,top:"0px"}:{...c,bottom:"0px"}}),i=(c=!o.showPopup)=>{c!==o.showPopup&&(o.showPopup=c,c&&(o.showWrapper=!0,n("open")))},a=()=>{if(e.title)return e.title;const c=e.options?.find(p=>p.value===e.modelValue);return c?c.text:""},u=c=>{o.showPopup=!1,c.value!==e.modelValue&&(n("update:modelValue",c.value),n("change",c.value))},s=()=>{n("close"),o.showWrapper=!1},d=()=>{o.showPopup=!1,n("close")},{parent:h}=un(Ui,{props:e,state:o,toggle:i,renderTitle:a});return{style:l,placeholderElementStyle:r,renderTitle:a,state:o,parent:h,toggle:i,onClick:u,handleClose:s,handleClickOutside:d}}}),hy={class:"fox-menu-item"},vy={class:"fox-menu-item__content fox-menu-item__overflow"},gy=["onClick"];function yy(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Check"),u=(0,t.resolveComponent)("FoxPopup");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",hy,[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-menu-item-placeholder-element",style:(0,t.normalizeStyle)(e.placeholderElementStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClickOutside&&e.handleClickOutside(...s))},null,4),[[t.vShow,e.state.showPopup]]),(0,t.createVNode)(u,(0,t.mergeProps)(e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.state.showPopup=s),style:{position:"absolute"},"overlay-style":{position:"absolute"},position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"destroy-on-close":!1,overlay:e.parent.props.overlay,"lock-scroll":e.parent.props.lockScroll,"teleport-disable":!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay,onClosed:e.handleClose}),{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",vy,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu-item__option",[{active:s.value===e.modelValue}]]),style:(0,t.normalizeStyle)({"flex-basis":100/e.cols+"%"}),onClick:h=>e.onClick(s)},[s.value===e.modelValue?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:(0,t.normalizeClass)(["fox-menu-item__span",[s.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[(0,t.renderSlot)(e.$slots,"icon",{},()=>[(0,t.createVNode)(a,(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)([s.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:(0,t.normalizeStyle)({color:s.value===e.modelValue?e.parent.props.activeColor:""})},(0,t.toDisplayString)(s.text),7)],14,gy))),128)),(0,t.renderSlot)(e.$slots,"default")])]),_:3},16,["visible","position","duration","overlay","lock-scroll","close-on-click-overlay","onClosed"])],512)),[[t.vShow,e.state.showWrapper]])}var la=re(py,[["render",yy]]),Hi=Symbol("fox-tabbar"),{create:by}=J("tabbar"),Sy=by({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,{emit:n}){function o(i){l.value!==i&&(l.value=i,n("update:modelValue",i),n("change",i,r.value[i]))}const l=(0,t.reactive)({size:e.size,value:de(e.modelValue),inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:o}),{children:r}=sn(Hi,{state:l});return(0,t.watch)(()=>e.modelValue,i=>{l.value=de(i)}),{changeIndex:o}}});function ky(e,n,o,l,r,i){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 oa=re(Sy,[["render",ky]]),{create:wy}=J("tabbar-item"),Cy=wy({props:{title:{type:[String],default:""},icon:{type:Object},activeIcon:{type:Object},num:{type:[String],default:""},activeImg:{type:[String],default:""},img:{type:[String],default:""},dot:{type:[Boolean],default:!1}},setup(e,n){const{parent:o,index:l}=un(Hi,{props:e}),r=(0,t.computed)(()=>l.value===o.state.value);function i(u){o&&typeof o.state.changeIndex=="function"&&o.state.changeIndex(u)}const a=(0,t.computed)(()=>r.value?e.activeIcon??e.icon:e.icon);return{state:o.state,index:l,active:r,change:i,currentIcon:a}}}),Ny={class:"fox-tabbar-item_icon-box"},Ay={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},By={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Ty={key:1,class:"fox-tabbar-item_icon-box_dot"},Vy={key:2},xy={key:0};function Ey(e,n,o,l,r,i){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]=a=>e.change(e.index))},[(0,t.createElementVNode)("view",Ny,[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",Ay,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",By,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",Ty)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Vy,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.currentIcon),{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",xy,(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 aa=re(Cy,[["render",Ey]]),{componentName:$y,create:Dy}=J("elevator"),Iy=Dy({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const 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}),r=(0,t.computed)(()=>({[$y]:!0})),i=(0,t.computed)(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),a=(0,t.computed)(()=>o.value.clientHeight),u=(b,f)=>b.getAttribute("data-"+f),s=b=>{(0,t.nextTick)(()=>{!l.listGroup.includes(b)&&b!=null&&l.listGroup.push(b)})},d=()=>{let b=0;l.listHeight.push(b);for(let f=0;f<l.listGroup.length;f++){let m=l.listGroup[f];b+=Math.floor(m.clientHeight),l.listHeight.push(b)}},h=b=>{!b&&b!==0||(b<0&&(b=0),b>l.listHeight.length-2&&(b=l.listHeight.length-2),l.codeIndex=b,o.value.scrollTo(0,l.listHeight[b]))},c=b=>{l.scrollStart=!0;let f=u(b.target,"index"),m=b.touches[0];l.touchState.y1=m.pageY,l.anchorIndex=+f,l.codeIndex=+f,h(+f)},p=b=>{let f=b.touches[0];l.touchState.y2=f.pageY;let m=(l.touchState.y2-l.touchState.y1)/e.spaceHeight|0;l.codeIndex=l.anchorIndex+m,h(l.codeIndex)},g=()=>{l.scrollStart=!1},N=(b,f)=>{n.emit("click-item",b,f),l.currentData=f,l.currentKey=b},k=b=>{n.emit("click-index",b)},w=b=>{let f=b.target.scrollTop;const m=l.listHeight;l.scrollY=f;for(let S=0;S<m.length-1;S++){let B=m[S],v=m[S+1];if(l.scrollY>=B&&l.scrollY<v){l.currentIndex=S,l.diff=v-l.scrollY;return}}l.currentIndex=m.length-2};return(0,t.onMounted)(()=>{o.value.addEventListener("scroll",w)}),n.expose({scrollTo:h}),(0,t.watch)(()=>l.listGroup.length,()=>{l.listHeight=[],(0,t.nextTick)(d)}),(0,t.watch)(()=>l.diff,b=>{const f=l.listHeight;let m=b>0&&b<e.titleHeight?b-e.titleHeight:0;l.scrollY+a.value===f[f.length-1]&&m!==0&&(m=0),l.fixedTop!==m&&(l.fixedTop=m)}),(0,t.watch)(()=>l.currentIndex,b=>{n.emit("change",b)}),{classes:r,...(0,t.toRefs)(l),fixedStyle:i,clientHeight:a,setListGroup:s,listview:o,touchStart:c,touchMove:p,touchEnd:g,handleClickItem:N,handleClickIndex:k}}}),qy={class:"fox-elevator__list__item__code"},Py=["onClick"],My=["innerHTML"],zy={class:"fox-elevator__fixed-title"},Ry={class:"fox-elevator__bars__inner"},Ly=["data-index","onClick"];function Fy(e,n,o,l,r,i){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,a=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-elevator__list__item",key:a[e.acceptKey],ref_for:!0,ref:e.setListGroup},[(0,t.createElementVNode)("view",qy,(0,t.toDisplayString)(a[e.acceptKey]),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.list,u=>((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===u.id&&e.currentKey===a[e.acceptKey]}]),key:u.id,onClick:s=>e.handleClickItem(a[e.acceptKey],u)},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:1,item:u}):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:u.name},null,8,My))],10,Py))),128))]))),128)),e.isSticky?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-elevator__list__fixed",style:(0,t.normalizeStyle)(e.fixedStyle)},[(0,t.createElementVNode)("span",zy,(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]=(...a)=>e.touchStart&&e.touchStart(...a)),onTouchmove:n[1]||(n[1]=(0,t.withModifiers)((...a)=>e.touchMove&&e.touchMove(...a),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...a)=>e.touchEnd&&e.touchEnd(...a))},[(0,t.createElementVNode)("view",Ry,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__bars__inner__item",{active:a[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":u,key:a[e.acceptKey],onClick:s=>e.handleClickIndex(a[e.acceptKey])},(0,t.toDisplayString)(a[e.acceptKey]),11,Ly))),128))])],32)],2)}var ra=re(Iy,[["render",Fy]]),{componentName:K2,create:Oy,scope:Ky}=J("pagination"),Uy=Oy({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,ve.useFoxI18n)(Ky),l=o(e,["prevText","nextText"]),{modelValue:r,mode:i,showPageSize:a,forceEllipses:u}=(0,t.toRefs)(e),s=(0,t.computed)(()=>{const{pageCount:p,totalItems:g,itemsPerPage:N}=(0,t.toRefs)(e),k=+p.value||Math.ceil(+g.value/+N.value);return Math.max(1,k)}),d=(p,g)=>{p>s.value||p<1||(p!=r.value&&n("update:modelValue",p),g&&n("change",p))},h=(p,g,N=!1)=>({number:p,text:g,active:N}),c=(0,t.computed)(()=>{if(i.value=="simple")return;let p=[];const g=s.value,N=+a.value;let k=1,w=g;const b=g>N;b&&(k=Math.max(r.value-Math.floor(N/2),1),w=k+N-1,w>g&&(w=g,k=w-N+1));for(var f=k;f<=w;f++){const m=h(f,f,r.value==f);p.push(m)}if(b&&N>0&&u.value){if(k>1){const m=h(k-1,"...");p.unshift(m)}if(w<g){const m=h(w+1,"...");p.push(m)}}return p});return(0,t.watchEffect)(()=>{d(r.value,!1)}),{...l,modelValue:r,select:d,countRef:s,mode:i,pages:c,forceEllipses:u}}}),Hy={class:"fox-pagination"},_y={key:0,class:"fox-pagination-contain"},jy=["onClick"],Wy={key:1,class:"fox-pagination-contain"},Yy={class:"fox-pagination-simple"};function Xy(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Hy,[(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]=a=>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",_y,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pages,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u+"pagination",class:(0,t.normalizeClass)(["fox-pagination-item",a.active?"active":""]),onClick:s=>e.select(a.number,!0)},[(0,t.renderSlot)(e.$slots,"page",{item:a},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(a.text),1)])],10,jy))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wy,[(0,t.createElementVNode)("view",Yy,(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]=a=>e.select(e.modelValue+1,!0))},[(0,t.renderSlot)(e.$slots,"next-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextText),1)])],2)])}var ia=re(Uy,[["render",Xy]]),Qy=(e,n,o,l)=>{const r=(0,t.ref)(),i=(0,t.ref)({width:0,height:0}),a=async()=>{if(o&&o.getEnv()!==o.ENV_TYPE.WEB){let c=await l(r,o);i.value.width=c.width||0,i.value.height=c.height||0}else i.value.width=r.value?.clientWidth||0,i.value.height=r.value?.clientHeight||0};(0,t.onMounted)(()=>{setTimeout(()=>{a()},100)});const u=(0,t.reactive)({offset:0,moving:!1}),s=ot();let d="";const h=(c,p)=>{let g=c;switch(e.direction=="horizontal"?(d=c>0?"right":"left",g=Math.abs(g)/i.value.width*100):(d=p>0?"bottom":"top",g=p,g=Math.abs(g)/i.value?.height*100),g>85&&(g=85),d){case"left":case"top":n.isEnd()&&(g=0,u.moving=!1);break;case"right":case"bottom":g=-g,n.isBegin()&&(g=0,u.moving=!1);break}u.offset=g};return{touchMethods:{onTouchStart(c){e.swipeable&&s.start(c)},onTouchMove(c){e.swipeable&&(s.move(c),u.moving=!0,h(s.deltaX.value,s.deltaY.value),e.direction=="horizontal"&&s.isHorizontal()&&(c.preventDefault(),c.stopPropagation()),e.direction=="vertical"&&s.isVertical()&&(c.preventDefault(),c.stopPropagation()))},onTouchEnd(){if(u.moving)switch(u.moving=!1,d){case"left":case"top":u.offset>35&&n.next();break;case"right":case"bottom":u.offset<-35&&n.prev();break}}},touchState:u,tabsContentRef:r}},Gy=class{title="";titleSlot;paneKey="";disabled=!1;constructor(){}},{create:Zy}=J("tabs"),Jy=Zy({components:{[Wt.name]:Wt,JoySmile:ae.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null);let r;(0,t.provide)("tabsOpiton",{activeKey:(0,t.computed)(()=>e.modelValue||"0"),autoHeight:(0,t.computed)(()=>e.autoHeight),animatedTime:(0,t.computed)(()=>e.animatedTime)});const i=(0,t.ref)([]),a=A=>{A.forEach((C,q)=>{let H=C.type;if(H=H.name||H,H=="fox-tab-pane"){let x=new Gy;if(C.props?.title||C.props?.["pane-key"]||C.props?.paneKey){let M=St(C.props?.["pane-key"]),P=M=="number"||M=="string"?String(C.props?.["pane-key"]):null,R=St(C.props?.paneKey),z=R=="number"||R=="string"?String(C.props?.paneKey):null;x.title=C.props?.title,x.paneKey=P||z||String(q),x.disabled=C.props?.disabled}i.value.push(x)}else{if(C.children==" ")return;Array.isArray(C.children)&&a(C.children)}})},u=(0,t.ref)(e.modelValue||0),s=A=>{let C=i.value.findIndex(q=>q.paneKey==A);i.value.length==0||C==-1||(u.value=C)},d=(0,t.computed)(()=>e.titleScroll&&e.direction==="vertical"),h=(0,t.ref)(),c=(0,t.ref)([]),p=A=>{const C=h.value,q=c.value;if(!C||!q||!q[u.value])return;const H=q[u.value];let x=0;e.direction==="vertical"?x=H.offsetTop-C.offsetTop+10-(C.offsetHeight-H.offsetHeight)/2:x=H.offsetLeft-(C.offsetWidth-H.offsetWidth)/2,g(C,x,A?0:.3,e.direction)},g=(A,C,q,H)=>{let x=0;const M=H==="horizontal"?A.scrollLeft:A.scrollTop,P=q===0?1:Math.round(q*1e3/16);function R(){H==="horizontal"?A.scrollLeft+=(C-M)/P:A.scrollTop+=(C-M)/P,++x<P&&He(R)}R()},N=(A=o.default?.())=>{i.value=[],A=A?.filter(C=>typeof C.children!="string"),A&&A.length&&a(A),s(e.modelValue),(0,t.nextTick)(()=>{p()})},k=A=>{r=A.fixed};(0,t.watch)(()=>o.default?.(),A=>{N(A)});const w=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;(0,t.watch)(()=>e.modelValue,A=>{if(s(A),p(),r){let C=$e(l.value).top+w(),q=Math.ceil(C-e.top);window.scrollTo({top:q,behavior:"smooth"})}}),(0,t.onMounted)(N),(0,t.onActivated)(N);const b={isBegin:()=>u.value==0,isEnd:()=>u.value==i.value.length-1,next:()=>{u.value+=1,b.updateValue(i.value[u.value])},prev:()=>{u.value-=1,b.updateValue(i.value[u.value])},updateValue:A=>{n("update:modelValue",A.paneKey),n("change",A)},tabChange:(A,C)=>{n("click",A),!(A.disabled||u.value==C)&&(u.value=C,b.updateValue(A))},setTabItemRef:(A,C)=>{c.value[C]=A}},{tabsContentRef:f,touchState:m,touchMethods:S}=Qy(e,b),B=(0,t.computed)(()=>{let A=u.value*100;m.moving&&(A+=m.offset);let C={transform:e.direction=="horizontal"?`translate3d(-${A}%, 0, 0)`:`translate3d( 0,-${A}%, 0)`,transitionDuration:m.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(C={}),C}),v=(0,t.computed)(()=>({background:e.background})),y=(0,t.computed)(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),V=(0,t.computed)(()=>{if(!e.titleGutter)return{};const A=he(e.titleGutter);return e.direction==="vertical"?{marginTop:A,marginBottom:A}:{marginLeft:A,marginRight:A}}),T=(0,t.computed)(()=>o.fixedTitle);return{navRef:h,tabsContentRef:f,titles:i,contentStyle:B,tabsNavStyle:v,titleStyle:V,tabsActiveStyle:y,container:l,getScrollY:d,onStickyScroll:k,...b,...S,hasFixedTitle:T}}}),eb=["onClick"],tb={key:0,class:"fox-tabs__titles-fixed-item"},nb=["onClick"],lb={key:0,class:"fox-tabs__titles-fixed-item"};function ob(e,n,o,l,r,i){const a=(0,t.resolveComponent)("JoySmile"),u=(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)(u,{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,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:s.paneKey==e.modelValue,disabled:s.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:h=>e.tabChange(s,d),key:s.paneKey},[(0,t.renderSlot)(e.$slots,"title",{title:s.title,paneKey:s.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)(a,{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)(s.title),3)])],14,eb))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",tb,[(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,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:s.paneKey==e.modelValue,disabled:s.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:h=>e.tabChange(s,d),key:s.paneKey,ref_for:!0,ref:h=>e.setTabItemRef(h,d)},[(0,t.renderSlot)(e.$slots,"title",{title:s.title,paneKey:s.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)(a,{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)(s.title),3)])],14,nb))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",lb,[(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]=(...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.renderSlot)(e.$slots,"default")],36)],2)}var sa=re(Jy,[["render",ob]]),{create:ab}=J("tab-pane"),rb=ab({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 ib(e,n,o,l,r,i){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 ua=re(rb,[["render",ib]]),{componentName:Er,create:sb}=J("indicator"),ub=sb({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=Er;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${o.value}`]:n.value&&o.value}}),componentName:Er,padZero:at}}});function cb(e,n,o,l,r,i){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,a=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:a},[a===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(a)||a),3)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var ca=re(ub,[["render",cb]]),{componentName:db,create:fb}=J("side-navbar"),mb=fb({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)(()=>({[db]:!0})),r=(a,u=1)=>{for(let s=0;s<a.length;s++){let d=a[s];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*u+"px",d.className.includes("fox-side-navbar-item")||r(Array.from(d.children[1].children),++o.count))}o.count--},i=()=>{let a=n.value.childNodes;a.length&&(a=Array.from(a).filter(u=>u.nodeType!==3).map(u=>u),r(a))};return(0,t.onMounted)(()=>{i(),o.observer=new MutationObserver(function(){o.count=1,i()}),o.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(o),list:n,classes:l}}}),pb={class:"fox-side-navbar__content"},hb={class:"fox-side-navbar__content__list",ref:"list"};function vb(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",pb,[(0,t.createElementVNode)("view",hb,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var da=re(mb,[["render",vb]]),{componentName:gb,create:yb}=J("side-navbar-item"),bb=yb({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[gb]:!0})),handleClick:()=>{n.emit("click")}})}),Sb=["ikey"],kb={class:"fox-side-navbar-item__title"};function wb(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...a)=>e.handleClick&&e.handleClick(...a),["stop"])),ikey:e.ikey},[(0,t.createElementVNode)("span",kb,(0,t.toDisplayString)(e.title),1)],10,Sb)}var fa=re(bb,[["render",wb]]),{componentName:Cb,create:Nb}=J("sub-side-navbar"),Ab=Nb({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:ae.ArrowDown2,ArrowUp2:ae.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const o=(0,t.reactive)({direction:""}),l=(0,t.computed)(()=>({[Cb]:!0})),r=(0,t.computed)(()=>({height:o.direction?"0px":"auto"})),i=()=>{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:r,handleClick:i}}}),Bb=["ikey"],Tb={class:"fox-sub-side-navbar__title__text"},Vb={class:"fox-sub-side-navbar__title__icon"};function xb(e,n,o,l,r,i){const a=(0,t.resolveComponent)("ArrowDown2"),u=(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)((...s)=>e.handleClick&&e.handleClick(...s),["stop"]))},[(0,t.createElementVNode)("span",Tb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",Vb,[e.direction?((0,t.openBlock)(),(0,t.createBlock)(u,{key:1})):((0,t.openBlock)(),(0,t.createBlock)(a,{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,Bb)}var ma=re(Ab,[["render",xb]]),{componentName:Eb,create:$b}=J("range"),Db=$b({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,r;const i=(0,t.ref)(),a=(0,t.ref)(),u=ot(),s=(0,t.computed)(()=>{const{marks:x,max:M,min:P}=e;return Object.keys(x).map(parseFloat).sort((R,z)=>R-z).filter(R=>{const z=de(R);return z>=de(P)&&z<=de(M)})}),d=(0,t.computed)(()=>Number(e.max)-Number(e.min)),h=(0,t.computed)(()=>{const x=Eb;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}}),p=(0,t.computed)(()=>({background:e.inactiveColor})),g=(0,t.computed)(()=>({borderColor:e.buttonColor})),N=x=>!!e.range&&Array.isArray(x),k=()=>{const{modelValue:x,min:M}=e;return N(x)?`${(x[1]-x[0])*100/d.value}%`:`${(x-Number(M))*100/d.value}%`},w=()=>{const{modelValue:x,min:M}=e;return N(x)?`${(x[0]-Number(M))*100/d.value}%`:"0%"},b=(0,t.computed)(()=>e.vertical?{height:k(),top:w(),background:e.activeColor,transition:a.value?"none":void 0}:{width:k(),left:w(),background:e.activeColor,transition:a.value?"none":void 0}),f=x=>{const M="fox-range-mark",{modelValue:P,max:R,min:z}=e;let W=Number(z),I=Number(R);if(e.range){const[ee,oe]=P;W=ee,I=oe}else I=P;let Q=x<=I&&x>=W;return{[`${M}-text`]:!0,[`${M}-text-active`]:Q}},m=x=>{const{min:M,vertical:P}=e;let R={left:`${(x-Number(M))/d.value*100}%`};return P&&(R={top:`${(x-Number(M))/d.value*100}%`}),R},S=x=>{const{modelValue:M,max:P,min:R}=e;let z=Number(R),W=Number(P);if(e.range){const[I,Q]=M;z=I,W=Q}return{background:x<=W&&x>=z?e.activeColor:e.inactiveColor}},B=x=>{const{min:M,max:P,step:R}=e;return x=Math.max(+M,Math.min(x,+P)),Math.round(x/+R)*+R},v=(x,M)=>JSON.stringify(x)===JSON.stringify(M),y=x=>x[0]>x[1]?x.slice(0).reverse():x,V=(x,M)=>{N(x)?x=y(x).map(B):x=B(x),v(x,e.modelValue)||n("update:modelValue",x),M&&!v(x,l)&&n("change",x)},T=x=>{if(e.disabled)return;const{min:M,modelValue:P}=e,R=$e(i);let z=x.clientX-R.left,W=R.width;e.vertical&&(z=x.clientY-R.top,W=R.height);const I=Number(M)+z/W*d.value;if(N(P)){const[Q,ee]=P;I<=(Q+ee)/2?V([I,ee],!0):V([Q,I],!0)}else V(I,!0)},A=x=>{e.disabled||(u.start(x),r=e.modelValue,N(r)?l=r.map(B):l=B(r),a.value="start")},C=x=>{if(e.disabled)return;a.value==="start"&&n("drag-start"),u.move(x),a.value="draging";const M=$e(i);let P=u.deltaX.value,R=M.width,z=P/R*d.value;e.vertical&&(P=u.deltaY.value,R=M.height,z=P/R*d.value),N(l)?r[o.value]=l[o.value]+z:r=l+z,V(r),x.stopPropagation(),x.preventDefault()},q=()=>{e.disabled||(a.value==="draging"&&(V(r,!0),n("drag-end")),a.value="")},H=x=>Dn(e.modelValue)&&typeof x=="number"?e.modelValue[x]:Number(e.modelValue);return{root:i,classes:h,wrapperStyle:p,buttonStyle:g,onClick:T,onTouchStart:A,onTouchMove:C,onTouchEnd:q,...(0,t.toRefs)(e),barStyle:b,curValue:H,buttonIndex:o,containerClasses:c,markClassName:f,marksStyle:m,marksList:s,tickStyle:S}}}),Ib={key:0,class:"fox-range-min"},qb={key:0,class:"fox-range-mark"},Pb=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Mb={key:0,class:"number"},zb=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Rb={key:0,class:"number"},Lb={key:1,class:"fox-range-max"};function Fb(e,n,o,l,r,i){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",Ib,(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)((...a)=>e.onClick&&e.onClick(...a),["stop"]))},[e.marksList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",qb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.marksList,a=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:a,class:(0,t.normalizeClass)(e.markClassName(a)),style:(0,t.normalizeStyle)(e.marksStyle(a))},[(0,t.createTextVNode)((0,t.toDisplayString)(a)+" ",1),(0,t.createElementVNode)("span",{class:"fox-range-tick",style:(0,t.normalizeStyle)(e.tickStyle(a))},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],a=>(0,t.createElementVNode)("view",{key:a,role:"slider",class:(0,t.normalizeClass)({"fox-range-button-wrapper-left":a==0,"fox-range-button-wrapper-right":a==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(a),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:(0,t.withModifiers)(u=>{typeof a=="number"&&(e.buttonIndex=a),e.onTouchStart(u)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=(0,t.withModifiers)((...u)=>e.onTouchMove&&e.onTouchMove(...u),["stop","prevent"])),onTouchend:n[1]||(n[1]=(0,t.withModifiers)((...u)=>e.onTouchEnd&&e.onTouchEnd(...u),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=(0,t.withModifiers)((...u)=>e.onTouchEnd&&e.onTouchEnd(...u),["stop","prevent"])),onClick:n[3]||(n[3]=u=>u.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",Mb,(0,t.toDisplayString)(e.curValue(a)),1))],4))],42,Pb)),64)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=(0,t.withModifiers)(a=>{e.onTouchStart(a)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=(0,t.withModifiers)((...a)=>e.onTouchMove&&e.onTouchMove(...a),["stop","prevent"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=(0,t.withModifiers)((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onClick:n[8]||(n[8]=a=>a.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",Rb,(0,t.toDisplayString)(e.curValue()),1))],4))],40,zb))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Lb,(0,t.toDisplayString)(+e.max),1))],2)}var Yt=re(Db,[["render",Fb]]),{create:Ob,scope:Kb}=J("short-password"),Ub=Ob({components:{FoxPopup:we,Tips:ae.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,ve.useFoxI18n)(Kb),l=o(e,["title","desc","tips"]),r=(0,t.ref)(e.modelValue),i=(0,t.computed)(()=>d(Number(e.length))),a=(0,t.ref)(e.visible),u=c=>{c.stopPropagation(),n("focus")};(0,t.watch)(()=>e.visible,c=>{a.value=c}),(0,t.watch)(()=>e.modelValue,c=>{r.value=c,String(c).length===i.value&&n("complete",c)});const s=()=>{n("update:visible",!1),n("close")},d=c=>Math.min(Math.max(4,c),6);return{comLen:i,realInput:r,onTouchStart:u,range:d,close:s,onTips:()=>{n("tips")},show:a,...l}}}),Hb={class:"fox-short-password-title"},_b={class:"fox-short-password-subtitle"},jb={class:"fox-short-password-wrapper"},Wb={key:0,class:"fox-short-password__item-icon"},Yb={class:"fox-short-password__message"},Xb={class:"fox-short-password--error"},Qb={key:0,class:"fox-short-password--forget"};function Gb(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Tips"),u=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",null,[(0,t.createVNode)(u,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":n[2]||(n[2]=s=>e.show=s),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Hb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",_b,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",jb,[(0,t.createElementVNode)("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(new Array(e.comLen),(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wb)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",Yb,[(0,t.createElementVNode)("view",Xb,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",Qb,[(0,t.createVNode)(a,{class:"icon",width:"11px",height:"11px"}),(0,t.createElementVNode)("view",{onClick:n[1]||(n[1]=(...s)=>e.onTips&&e.onTips(...s))},(0,t.toDisplayString)(e.tips),1)])):(0,t.createCommentVNode)("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}var pa=re(Ub,[["render",Gb]]),Zb=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},Jb=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")}},eS=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},_i=(e,{args:n=[],done:o,canceled:l})=>{if(e){const r=e.apply(null,n);yt(r)?r.then(i=>{i?o(i):l&&l()}).catch(()=>{}):r?o():l&&l()}else o()},{create:tS}=J("progress"),nS=tS({components:{Checked:ae.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!(0,t.useSlots)().default,o=(0,t.ref)(e.strokeWidth+"px"),l=(0,t.ref)(),r=(0,t.ref)(),i=(0,t.computed)(()=>{const s=de(e.percentage);return s>=100?100:s}),a=(0,t.computed)(()=>({width:i.value+"%",background:e.strokeColor||""})),u=(0,t.computed)(()=>({color:e.textColor||""}));return(0,t.onMounted)(()=>{}),{height:o,percentage:i,bgStyle:a,textStyle:u,progressOuter:l,insideText:r,slotDefault:n}}}),lS={class:"fox-progress"},oS={key:0,class:"fox-progress-text"};function aS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",lS,[(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",oS,[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)(a,{width:"15px",height:"15px",color:"#439422"})]):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)])}var Xt=re(nS,[["render",aS]]),{componentName:rS,create:iS,scope:sS}=J("uploader"),uS=iS({components:{[Xt.name]:Xt,Photograph:ae.Photograph,Failure:ae.Failure,Loading:ae.Loading,Del:ae.Del,Link:ae.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:o}=(0,ve.useFoxI18n)(sS),l=(0,t.reactive)(e.fileList);let r=[];const i=(0,t.computed)(()=>({[rS]:!0})),a=()=>{let f={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(f.capture="camera"),(0,t.h)("input",f)},u=f=>{f.value=""},s=f=>{n("file-item-click",{fileItem:f})},d=(f,m)=>{const S=new Zb;S.url=e.url,S.formData=f.formData,S.timeout=e.timeout*1,S.method=e.method,S.xhrState=e.xhrState,S.headers=e.headers,S.withCredentials=e.withCredentials,S.beforeXhrUpload=e.beforeXhrUpload;try{S.sourceFile=f.formData.get(e.name)}catch{}S.onStart=v=>{f.status="ready",f.message=o("readyUpload"),h(m),n("start",v)},S.onProgress=(v,y)=>{f.status="uploading",f.message=o("uploading"),f.percentage=(v.loaded/v.total*100).toFixed(0),n("progress",{event:v,option:y,percentage:f.percentage})},S.onSuccess=(v,y)=>{f.status="success",f.message=o("success"),n("success",{responseText:v,option:y,fileItem:f}),n("update:fileList",l)},S.onFailure=(v,y)=>{f.status="error",f.message=o("error"),n("failure",{responseText:v,option:y,fileItem:f})};let B=new Jb(S);e.autoUpload?B.upload():r.push(new Promise((v,y)=>{v(B)}))},h=(f=-1)=>{f>-1?r.splice(f,1):(r=[],l.splice(0,l.length))},c=()=>{Promise.all(r).then(f=>{f.forEach(m=>m.upload())})},p=f=>{f.forEach((m,S)=>{const B=new FormData;for(const[y,V]of Object.entries(e.data))B.append(y,V);B.append(e.name,m);const v=(0,t.reactive)(new eS);if(v.name=m.name,v.status="ready",v.type=m.type,v.formData=B,v.message=o("waitingUpload"),d(v,S),e.isPreview&&m.type.includes("image")){const y=new FileReader;y.onload=V=>{v.url=V.target.result,l.push(v)},y.readAsDataURL(m)}else l.push(v)})},g=f=>{const m=e.maximum*1,S=e.maximize*1,B=new Array;f=f.filter(y=>y.size>S?(B.push(y),!1):!0),B.length&&n("oversize",B);let v=f.length+l.length;return v>m&&f.splice(f.length-(v-m)),f},N=(f,m)=>{l.splice(m,1),n("delete",{file:f,fileList:l,index:m})},k=(f,m)=>{h(m),_i(e.beforeDelete,{args:[f,l],done:()=>N(f,m)})},w=f=>{if(e.disabled)return;const m=f.target;let{files:S}=m;e.beforeUpload?e.beforeUpload(S).then(B=>b(B)):b(S),n("change",{fileList:l,event:f}),e.clearInput&&u(m)},b=f=>{p(g(new Array().slice.call(f)))};return{onChange:w,onDelete:k,fileList:l,classes:i,fileItemClick:s,clearUploadQueue:h,submit:c,renderInput:a}}}),cS={key:0,class:"fox-uploader__slot"},dS={key:0,class:"fox-uploader__preview-img"},fS={key:0,class:"fox-uploader__preview__progress"},mS={class:"fox-uploader__preview__progress__msg"},pS=["onClick"],hS=["onClick","src"],vS={key:3,class:"fox-uploader__preview-img__file"},gS=["onClick"],yS={class:"file__name_tips"},bS={class:"tips"},SS={key:1,class:"fox-uploader__preview-list"},kS=["onClick"],wS={class:"file__name_tips"};function CS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Failure"),u=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Link"),d=(0,t.resolveComponent)("Del"),h=(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",cS,[(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,(p,g)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-uploader__preview",[e.listType]]),key:p.uid},[e.listType=="picture"&&!e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",dS,[p.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",fS,[p.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[p.status=="error"?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,color:"#fff"})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1,name:"loading",color:"#fff"}))],64)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",mS,(0,t.toDisplayString)(p.message),1)])):(0,t.createCommentVNode)("",!0),e.isDeletable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"close",onClick:N=>e.onDelete(p,g)},[(0,t.renderSlot)(e.$slots,"delete-icon",{},()=>[(0,t.createVNode)(a)])],8,pS)):(0,t.createCommentVNode)("",!0),p?.type?.includes("image")&&p.url?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,class:"fox-uploader__preview-img__c",onClick:N=>e.fileItemClick(p),src:p.url},null,8,hS)):((0,t.openBlock)(),(0,t.createElementBlock)("view",vS,[(0,t.createElementVNode)("view",{onClick:N=>e.fileItemClick(p),class:"fox-uploader__preview-img__file__name"},[(0,t.createElementVNode)("view",yS,(0,t.toDisplayString)(p.name),1)],8,gS)])),(0,t.createElementVNode)("view",bS,(0,t.toDisplayString)(p.name),1)])):e.listType=="list"?((0,t.openBlock)(),(0,t.createElementBlock)("view",SS,[(0,t.createElementVNode)("view",{onClick:N=>e.fileItemClick(p),class:(0,t.normalizeClass)(["fox-uploader__preview-img__file__name",[p.status]])},[(0,t.createVNode)(s,{class:"fox-uploader__preview-img__file__link"}),(0,t.createElementVNode)("view",wS,(0,t.toDisplayString)(p.name),1),e.isDeletable?((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:N=>e.onDelete(p,g)},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],10,kS),p.status=="uploading"?((0,t.openBlock)(),(0,t.createBlock)(h,{key:0,size:"small",percentage:p.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 ha=re(uS,[["render",CS]]),NS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBB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pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:BS,scope:TS}=J("number-keyboard"),VS=BS({components:{FoxPopup:we},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,ve.useFoxI18n)(TS),l=o(e,["confirmText"]),r=(0,t.computed)(()=>{const f=["fox-number-keyboard-popup"];return e.popClass&&f.push(e.popClass),f}),i=(0,t.ref)(void 0),a=(0,t.ref)(e.visible),u=(0,t.ref)();function s(){const{customKey:f}=e;let m={id:"lock",type:"lock"},S=Array.isArray(f)?f:[f];return S.length===1&&(m={id:S[0],type:"custom"}),[...d(),m,{id:0,type:"number"},{id:"delete",type:"delete"}]}function d(){const f=[];for(let m=1;m<=9;m++)f.push({id:m,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function h(){const f=d(),{customKey:m}=e;let S=Array.isArray(m)?m:[m];return S.length>2&&(S=[S[0],S[1]]),S.length==2&&e.title&&e.type!="rightColumn"&&(S=[S[0]]),S.length===1?e.title&&e.type!="rightColumn"?f.push({id:S[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:S[0],type:"custom"}):S.length===2&&f.push({id:S[0],type:"custom"},{id:0,type:"number"},{id:S[1],type:"custom"}),f}const c=(0,t.computed)(()=>e.type=="rightColumn"||e.title!=""?h():s()),p=()=>{e.visible&&n("blur")},g=f=>{const m=u.value;m&&!m.contains(f.target)&&p()};(0,t.watch)(()=>e.visible,f=>{a.value=f,f?window.addEventListener("touchstart",g,!1):window.removeEventListener("touchstart",g,!1)});function N(f,m){m.stopPropagation(),i.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 k(f){f.stopPropagation()}function w(f){f.preventDefault(),i.value=void 0}function b(){n("update:visible",!1),n("close")}return{...l,allPopClass:r,delImg:NS,lockImg:AS,clickKeyIndex:i,defaultKey:s,closeBoard:b,onTouchEnd:w,onTouchMove:k,onTouchstart:N,keysList:c,genCustomKeys:h,getBasicKeys:d,root:u,show:a}}}),xS={ref:"root"},ES={class:"fox-number-keyboard"},$S={key:0,class:"fox-number-keyboard__header"},DS={class:"fox-number-keyboard__title"},IS={class:"fox-number-keyboard__body"},qS={class:"fox-number-keyboard__keys"},PS=["onTouchstart"],MS=["src"],zS=["src"],RS={key:0,class:"fox-number-keyboard__sidebar"},LS={class:"fox-key__wrapper"},FS=["src"];function OS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",xS,[(0,t.createVNode)(a,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=u=>e.show=u),position:"bottom",popClass:e.allPopClass,overlay:!1,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",ES,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",$S,[(0,t.createElementVNode)("h3",DS,(0,t.toDisplayString)(e.title),1),e.type=="default"?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-number-keyboard__close",onClick:n[0]||(n[0]=u=>e.closeBoard())},(0,t.toDisplayString)(e.confirmText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",IS,[(0,t.createElementVNode)("div",qS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.keysList,u=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:"key"+u.id,class:(0,t.normalizeClass)(["fox-key__wrapper",{"fox-key__wrapper--wider":u.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":u.id==e.clickKeyIndex},{"fox-key--lock":u.type=="lock"},{"fox-key--delete":u.type=="delete"}]),onTouchstart:s=>e.onTouchstart(u,s),onTouchmove:n[1]||(n[1]=s=>e.onTouchMove(s)),onTouchend:n[2]||(n[2]=s=>e.onTouchEnd(s))},[u.type=="number"||u.type=="custom"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(u.id),1)],64)):(0,t.createCommentVNode)("",!0),u.type=="lock"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:1,src:e.lockImg},null,8,MS)):(0,t.createCommentVNode)("",!0),u.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,zS)):(0,t.createCommentVNode)("",!0)],42,PS)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",RS,[(0,t.createElementVNode)("div",LS,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=u=>e.onTouchstart({id:"delete",type:"delete"},u)),onTouchmove:n[4]||(n[4]=u=>e.onTouchMove(u)),onTouchend:n[5]||(n[5]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u))},[(0,t.createElementVNode)("img",{src:e.delImg},null,8,FS)],34)]),(0,t.createElementVNode)("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=u=>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 va=re(VS,[["render",OS]]),{componentName:KS,create:US}=J("swipe"),HS=US({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,expose:o}){const l=(0,t.computed)(()=>({[KS]:!0})),r=m=>m.value?.clientWidth||0,i=(0,t.ref)(),a=(0,t.computed)(()=>r(i)),u=(0,t.ref)(),s=(0,t.computed)(()=>r(u));let d=!1,h="",c="";const p=(0,t.reactive)({offset:0,moving:!1}),g=(m="")=>{d=!0,m&&(p.offset=m==="left"?-s.value:a.value),n("open",{name:e.name,position:h||m})},N=()=>{p.offset=0,d=!1,n("close",{name:e.name,position:h})},k=(0,t.computed)(()=>({transform:`translate3d(${p.offset}px, 0, 0)`})),w=m=>{h=m>0?"right":"left";let S=m;switch(h){case"left":d&&c===h?S=-s.value:S=Math.abs(m)>s.value?-s.value:m;break;case"right":d&&c===h?S=a.value:S=Math.abs(m)>a.value?a.value:m;break}p.offset=S},b=ot(),f={onTouchStart(m){e.disabled||b.start(m)},onTouchMove(m){e.disabled||(b.move(m),b.isHorizontal()&&(p.moving=!0,w(b.deltaX.value),e.touchMovePreventDefault&&m.preventDefault(),e.touchMoveStopPropagation&&m.stopPropagation()))},onTouchEnd(){if(p.moving)switch(p.moving=!1,c=h,h){case"left":Math.abs(p.offset)<=s.value/2?N():(p.offset=-s.value,g());break;case"right":Math.abs(p.offset)<=a.value/2?N():(p.offset=a.value,g());break}}};return o({open:g,close:N}),{classes:l,touchStyle:k,...f,leftRef:i,rightRef:u,open:g,close:N}}}),_S={class:"fox-swipe__left",ref:"leftRef"},jS={class:"fox-swipe__content"},WS={class:"fox-swipe__right",ref:"rightRef"};function YS(e,n,o,l,r,i){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]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[(0,t.createElementVNode)("view",_S,[(0,t.renderSlot)(e.$slots,"left")],512),(0,t.createElementVNode)("view",jS,[(0,t.renderSlot)(e.$slots,"default")]),(0,t.createElementVNode)("view",WS,[(0,t.renderSlot)(e.$slots,"right")],512)],38)}var ga=re(HS,[["render",YS]]),{componentName:XS,create:QS}=J("action-sheet"),GS=QS({components:{Popup:we,Loading:ae.Loading},props:{...Je,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)(()=>({[XS]:!0}));return{slotDefault:o,isHighlight:s=>e.chooseTagValue&&e.chooseTagValue===s[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(s,d)=>{!s.disable&&!s.loading&&(n("choose",s,d),n("update:visible",!1))},close:s=>{n("close",s),n("update:visible",!1)},classes:l}}}),ZS={key:0,class:"fox-action-sheet__title"},JS={key:1},e1={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},t1={key:1,class:"fox-action-sheet__menu"},n1=["onClick"],l1={key:1},o1={class:"fox-action-sheet__subdesc"};function a1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Loading"),u=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createBlock)(u,{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",ZS,(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",JS,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",e1,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",t1,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.menuItems,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":s.disable,"fox-action-sheet__item--loading":s.loading}]),style:(0,t.normalizeStyle)({color:e.isHighlight(s)||s.color}),key:d,onClick:h=>e.chooseItem(s,d)},[s.loading?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",l1,(0,t.toDisplayString)(s[e.optionTag]),1)),(0,t.createElementVNode)("view",o1,(0,t.toDisplayString)(s[e.optionSubTag]),1)],14,n1))),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]=(...s)=>e.cancelActionSheet&&e.cancelActionSheet(...s))},(0,t.toDisplayString)(e.cancelTxt),1)):(0,t.createCommentVNode)("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}var ya=re(GS,[["render",a1]]),{componentName:r1,create:i1}=J("backtop"),s1=i1({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}),r=(0,t.computed)(()=>({[r1]:!0,show:l.backTop})),i=(0,t.computed)(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function a(){l.scrollEl instanceof Window?l.scrollTop=l.scrollEl.pageYOffset:l.scrollTop=l.scrollEl.scrollTop,l.backTop=l.scrollTop>=e.distance}function u(N=0){l.scrollEl instanceof Window?window.scrollTo(0,N):l.scrollEl.scrollTop=N}function s(){let N=Qe(function k(){var w=e.duration-Math.max(0,l.startTime-+new Date+e.duration),b=w*-l.scrollTop/e.duration+l.scrollTop;u(b),N=Qe(k),(w==e.duration||b==0)&&Ir(N)})}function d(){l.scrollEl.addEventListener("scroll",a,!1),l.scrollEl.addEventListener("resize",a,!1)}function h(){l.scrollEl.removeEventListener("scroll",a,!1),l.scrollEl.removeEventListener("resize",a,!1)}function c(N){l.startTime=+new Date,e.isAnimation&&e.duration>0?s():u(),n("click",N)}function p(){g.value?l.scrollEl=g.value.el:e.elId&&document.getElementById(e.elId)&&(l.scrollEl=document.getElementById(e.elId)),d()}(0,t.onMounted)(()=>{e.distance==0&&(l.backTop=!0),p()}),(0,t.onUnmounted)(()=>{h()}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1,p())}),(0,t.onDeactivated)(()=>{l.keepAlive=!0,h()});const g=(0,t.computed)(()=>{if(typeof o.content=="function"){const N=o.content();return Array.isArray(N)?N[0]:N}return null});return()=>{const N=[];g.value&&N.push(g.value);const k=[];if(typeof o.default=="function")k.push(o.default());else{const b=(0,t.h)(ae.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});k.push(b)}const w=(0,t.h)("div",{class:r.value,style:i.value,onClick:c},k);return N.push(w),N}}}),ba=s1,{componentName:u1,create:c1}=J("drag"),d1=c1({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}}),r=(0,t.computed)(()=>({[u1]:!0}));function i(){const c=document.documentElement;l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight,l.screenWidth=c.clientWidth,l.screenHeight=c.clientHeight}function a(c){l.boundary.left?+c.style.left.split("px")[0]>l.boundary.left?(c.style.left=+c.style.left.split("px")[0]-10+"px",He(()=>{a(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",He(()=>{a(c)})):c.style.left="0px"}function u(c,p){p-parseInt(c.style.left.split("px")[0])>10?(c.style.left=parseInt(c.style.left.split("px")[0])+10+"px",He(()=>{u(c,p)})):c.style.left=p+"px"}function s(c){c.preventDefault();const p=c.currentTarget;if(c.targetTouches.length===1){const g=c.targetTouches[0];l.nx=g.clientX-l.position.x,l.ny=g.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const N=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>N?l.xPum=N: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"&&(p.style.left=l.xPum+"px"),e.direction!="x"&&(p.style.top=l.yPum+"px")}}function d(c){const p=c.currentTarget;let g=c.changedTouches[0].clientX;const N=l.screenWidth-l.elWidth-l.boundary.right;g>N?g=N:g<l.boundary.left?g=l.boundary.left:g=g<l.screenWidth/2?l.boundary.left:N,e.direction!="y"&&e.attract&&(g<l.screenWidth/2?He(()=>{a(p)}):He(()=>{u(p,N)})),e.direction!="x"&&(p.style.top=l.yPum+"px")}function h(c){const p=c.currentTarget,g=c.touches[0],N=c.targetTouches[0];l.startTop=p.offsetTop,l.startLeft=p.offsetLeft,l.position.x=g.clientX,l.position.y=g.clientY,l.nx=N.clientX-l.position.x,l.ny=N.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return(0,t.onMounted)(()=>{i(),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",h),c.value.removeEventListener("touchmove",s),c.value.removeEventListener("touchend",d)}),{classes:r,myDrag:o,touchStart:h,touchMove:s,touchEnd:d}}});function f1(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=a=>e.touchStart(a)),onTouchmove:n[1]||(n[1]=a=>e.touchMove(a)),onTouchend:n[2]||(n[2]=a=>e.touchEnd(a))},[(0,t.renderSlot)(e.$slots,"default")],34)}var Sa=re(d1,[["render",f1]]),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}},p1=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function h1(e,n,o,l,r){return{props:{...Je,...m1},setup(i,{attrs:a,slots:u,emit:s}){const{toLocaleRefs:d}=(0,ve.useFoxI18n)(n),h=d(i,["confirmText","cancelText"]),c=e,p=(0,t.ref)(i.visible);(0,t.watch)(()=>i.visible,v=>{p.value!==v&&(p.value=v,v&&s("opened"))});const g=v=>{p.value=v,s("update:visible",v),s("update",v)},N=v=>{if(s(v),!(v==="cancel"&&!i.cancelAutoClose))if(typeof i.beforeClose=="function"){const y=i.beforeClose(v);yt(y)?y.then(V=>{V&&(g(!1),s("closed",v))}):y===!0&&(g(!1),s("closed",v))}else g(!1),s("closed",v)},k=()=>{N("confirm")},w=()=>{N("cancel")},b=()=>{N("close")},f=(v,y)=>p1(v)?(y.src=v,(0,t.h)("img",y)):typeof v=="string"?(Array.isArray(y.class)?y.class.push(v):y.class&&typeof y.class=="object"?y[`${v}`]=!0:typeof y.class=="string"?y.class=`${y.class}, ${v}`:y.class=v,(0,t.h)(i.tag,y)):(0,t.h)(v,y),m=()=>{const v=[];if(u.header){const y=u.header();v.push(y)}else{if(i.title){const y=(0,t.h)("view",{class:`${c}__header-title`},[i.title]);v.push(y)}if(i.showClose){const y={class:[`${c}__header-close-icon`],onClick:b},V=f(i.closeIcon??r,y);v.push(V)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},v)},S=()=>{const v=[];if(u.default)v.push(u.default());else{const y={class:[`${c}__content`]};if(i.textAlign&&y.class.push(i.textAlign),typeof i.content=="string"){y.innerHTML=i.content;const V=(0,t.h)("view",y);v.push(V)}else if(typeof i.content=="function"){const V=(0,t.h)("view",y,[i.content()]);v.push(V)}else{const V=(0,t.h)("view",y,[i.content]);v.push(V)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__body`]},v)},B=()=>{if(!i.showFooter)return null;const v=[];if(u.footer)v.push(u.footer());else if(i.plain){if(i.showCancelButton){const y={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},onClick:w};i.cancelButtonClass&&y.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(y.style,i.cancleButtonStyle);const V=(0,t.h)("view",y,[i.cancelButtonText??h.cancelText.value]);v.push(V)}if(i.showConfirmButton){const y={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},onClick:k};i.confirmButtonClass&&y.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(y.style,i.confirmButtonStyle);const V=(0,t.h)("view",y,[i.confirmButtonText??h.confirmText.value]);v.push(V)}}else{if(i.showCancelButton){const y={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:w};i.cancelButtonClass&&y.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(y.style,i.cancleButtonStyle);const V=(0,t.h)(l,y,{default:()=>[i.cancelButtonText??h.cancelText.value]});v.push(V)}if(i.showConfirmButton){const y={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:k};i.confirmButtonClass&&y.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(y.style,i.confirmButtonStyle);const V=(0,t.h)(l,y,{default:()=>[i.confirmButtonText??h.confirmText.value]});v.push(V)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__footer`,`${c}__footer--${i.footerDirection}`]},v)};return()=>{const v=[],y=m();y&&v.push(y);const V=S();V&&v.push(V);const T=B();T&&v.push(T);const A=(0,t.h)("view",{class:{[`${c}`]:!0,[`${c}--plain`]:i.plain}},v),C=[`${c}__popup`];i.popClass&&C.push(i.popClass);const q={};return i.width&&(q.width=typeof i.width=="number"?`${i.width}px`:i.width),i.height&&(q.height=typeof i.height=="number"?`${i.height}px`:i.height),(0,t.h)(o,{...ye(i,Je),popClass:C.join(" "),style:q,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":g,position:i.position,onClickOverlay:b,closeOnClickOverlay:i.closeOnClickOverlay},{default:()=>A})}}}}var{componentName:v1,create:g1,scope:y1}=J("dialog"),b1=g1(h1(v1,y1,we,xt,ae.Close)),ji=b1,S1=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},k1=class{options=new S1;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 r=document.createElement("view"),i=`dialog-${n.id}`;r.id=i;const a=(0,t.createVNode)({setup(){return n.onUpdate=u=>{if(u===!1){const s=document.querySelector(`#${i}`);s&&s.parentNode?.removeChild(s)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(ji,n)}});o.appendChild(r),(0,t.render)(a,r)}},Qt=function(e){return new k1(e)};Qt.install=e=>{e.use(ji),e.config.globalProperties.$dialog=Qt};var w1={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}},C1=(e,n,o)=>({props:{...w1},emits:["change","refresh","update:modelValue"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:a}=(0,ve.useFoxI18n)(n),u=a(l,["pullingText","loosingText","loadingText"]),s=nl(),d=(0,t.ref)(),h=Ri(d),c=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),p=(0,t.computed)(()=>({[e]:!0})),g=(0,t.computed)(()=>{switch(c.status){case"pulling":return i.pulling?"":u.pullingText.value;case"loosing":return i.loosing?"":u.loosingText.value;case"loading":return i.loading?"":u.loadingText.value;default:return""}}),N=(0,t.computed)(()=>({transitionDuration:`${l.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),k=(0,t.computed)(()=>{const y={};return l.headHeight!=50&&(y.height=he(l.headHeight)),y}),w=y=>{const V=+(l.pullDistance||l.headHeight);let T=y;return y>V&&(y<V*2?T=(y+V)/2:T=V+y/4),Math.round(T)},b=(y,V)=>{const T=+(l.pullDistance||l.headHeight);c.distance=y,V?c.status="loading":y===0?c.status="normal":y<T?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:y})},f=()=>c.status!=="loading"&&c.status!=="complete",m=()=>h.value==window?Li()==0:h.value&&h.value.scrollTop==0,S=y=>{f()&&(m()?(s.start(y),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},B=y=>{f()&&c.moving&&(s.move(y),s.isVertical()&&s.state.deltaY>0&&c.isPullRefresh&&(y.cancelable&&y.preventDefault(),b(w(s.state.deltaY))))},v=()=>{c.moving=!1,c.isPullRefresh&&f()&&s.state.deltaY&&(c.status==="loosing"?(b(+l.headHeight,!0),r("update:modelValue",!0),(0,t.nextTick)(()=>r("refresh"))):b(0)),setTimeout(()=>{s.reset()},0)};return(0,t.watch)(()=>l.modelValue,y=>{y?b(+l.headHeight,!0):b(0)}),()=>{const y=[];let V=null;c.status==="loading"?(V=i?.loading?.()??null,V||(V=(0,t.h)(o,{class:["fox-pull-refresh-container-topbox-icon"]}))):c.status==="pulling"?V=i?.pulling?.()??null:c.status==="loosing"&&(V=i?.loosing?.()??null),V&&y.push(V);const T=(0,t.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[g.value]);y.push(T);const A=(0,t.h)("div",{class:["fox-pull-refresh-container-topbox"],style:k.value},y),C=(0,t.h)("div",{class:"fox-pull-refresh-container",style:N.value},[A,i?.default?.()]),q={ref:d,class:p.value};return tl()?Object.assign(q,{onTouchstart:S,onTouchmove:B,onTouchend:v}):Object.assign(q,{onMousedown:S,onMousemove:B,onMouseup:v}),(0,t.h)("div",q,[C])}}}),{componentName:N1,create:A1,scope:B1}=J("pull-refresh"),T1=A1(C1(N1,B1,ae.Loading)),ka=T1,{create:V1}=J("notify"),x1=V1({components:{[we.name]:we},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 r=()=>{l&&clearTimeout(l),l=null},i=()=>{n("update:visible",!1)},a=(0,t.ref)(!1),u=(0,t.watch)(()=>e.visible,d=>{a.value=e.visible;const h=e.duration;d&&h&&(l=setTimeout(()=>{i()},h))},{immediate:!0});return{onAfterLeave:()=>{r(),u&&u(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:o,isShowPopup:a}}});function E1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(a,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=u=>e.isShowPopup=u),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]=(...u)=>e.clickCover&&e.clickCover(...u))},[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 wa=re(x1,[["render",E1]]),Yl={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function},mt=[],Ht=[],Wi=e=>{if(e){const n=document.getElementById(e);Ht=Ht.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)}),Ht=[],mt=[]},$1=e=>{const n=document.getElementById(e.id);if(n){const o=Ht.find(r=>r.id===e.id);o?e={...Yl,...o,...e}:e={...Yl,...e};const l=(0,t.createVNode)(wa,e);return(0,t.render)(l,n),l.component.data}},Mt=e=>{e.unmount=Wi;let n;if(e.id){if(n=e.id,mt.find(r=>r===e.id))return $1(e)}else n=new Date().getTime()+"";e={...Yl,...e},e.id=n,mt.push(e.id),Ht.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)(wa,e)}});document.body.appendChild(o),(0,t.render)(l,o)},zt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Ca={text(e,n={}){return zt(e),Mt({...n,msg:e})},primary(e,n={}){return zt(e),Mt({...n,msg:e,type:"primary"})},success(e,n={}){return zt(e),Mt({...n,msg:e,type:"success"})},danger(e,n={}){return zt(e),Mt({...n,msg:e,type:"danger"})},warn(e,n={}){return zt(e),Mt({...n,msg:e,type:"warning"})},hide(){Wi()},install(e){e.use(wa)}},{create:D1}=J("toast"),I1=D1({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},i=()=>{l.mounted=!1},a=()=>{r(),e.duration&&(o=setTimeout(()=>{i()},e.duration))},u=()=>{e.closeOnClickOverlay&&(i(),n("close"))};e.duration&&a(),(0,t.watch)(()=>e.duration,g=>{g&&a()});const s=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const g=ue(e.iconSize);return(0,t.h)(e.icon,{width:g,height:g,color:e.iconColor})},h=(0,t.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.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:i,clickCover:u,renderIcon:d,hasIcon:s,toastBodyClass:h,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),q1={key:1,class:"fox-toast-title"},P1=["innerHTML"];function M1(e,n,o,l,r,i){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]=(...a)=>e.clickCover&&e.clickCover(...a))},[(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",q1,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,P1)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var Na=re(I1,[["render",M1]]),Xl={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=[],_t=[],Yi=e=>{if(e){const n=document.getElementById(e);_t=_t.filter(o=>o.id!==e),pt=pt.filter(o=>o!==e),n&&((0,t.render)(null,n),document.body.removeChild(n))}else pt.forEach(n=>{const o=document.getElementById(n);o&&((0,t.render)(null,o),document.body.removeChild(o))}),_t=[],pt=[]},z1=e=>{const n=document.getElementById(e.id);if(n){const o=_t.find(r=>r.id===e.id);o?e={...Xl,...o,...e}:e={...Xl,...e};const l=(0,t.createVNode)(Na,e);return(0,t.render)(null,n),(0,t.render)(l,n),Et}},Rt=e=>{e.unmount=Yi;let n;if(e.id){if(n=e.id,pt.find(l=>l===e.id))return z1(e)}else n=new Date().getTime()+"";e={...Xl,...e},e.id=n,pt.push(e.id),_t.push(e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(Na,e),o),document.body.appendChild(o),Et},pn=e=>e?!0:(console.warn("[FoxUI Toast]: msg不能为空"),!1),Et={text(e,n={}){if(pn(e))return Rt({...n,type:"text",msg:e})},success(e,n={}){if(pn(e))return Rt({icon:ae.Success,...n,msg:e,type:"success"})},fail(e,n={}){if(pn(e))return Rt({icon:ae.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){if(pn(e))return Rt({icon:ae.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Rt({icon:ae.Loading,...n,msg:e,type:"loading"})},hide(e){Yi(e)},install(e){e.use(Na),e.config.globalProperties.$toast=Et}},{componentName:U2,create:R1}=J("audio"),L1=R1({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:ae.Service,[Yt.name]:Yt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null),r=(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 k=["webkitVisibilityState","visibilitychange"];try{for(let w=0;w<k.length;w++)document.addEventListener(k[w],()=>{document.hidden?l.value.pause():r.playing&&setTimeout(()=>{l.value.play()},200)})}catch(w){w.message}});const i=k=>{const w=l.value;e.autoplay&&w&&w.paused&&w.play(),r.second=w.duration,r.duration=N(w.duration),n("can-play",k)},a=k=>{r.currentTime=parseInt(k.target.currentTime)},u=()=>{r.currentTime>0&&r.currentTime--,l.value.currentTime=r.currentTime,n("fastBack",r.currentTime)},s=()=>{const k=l.value;r.playing?(k.pause(),r.handPlaying=!1):(k.play(),r.handPlaying=!0),r.playing=!r.playing,n("play",r.playing)},d=()=>{r.currentTime++,l.value.currentTime=r.currentTime,n("forward",r.currentTime)},h=k=>{r.currentDuration=N(k),r.percent=k/r.second*100},c=()=>{r.playing=!1,n("ended")},p=k=>{const w=l.value;w.currentTime=r.second*k/100,n("changeProgress",w.currentTime)},g=()=>{r.hanMuted=!r.hanMuted,n("mute",r.hanMuted)},N=k=>{if(!k)return"00:00:00";let w=parseInt(k),b=Math.floor(w/3600),f=Math.floor((w-b*3600)/60),m=w-b*3600-f*60,S="";return S+=("0"+b.toString()).slice(-2)+":",S+=("0"+f.toString()).slice(-2)+":",S+=("0"+m.toString()).slice(-2),S};return(0,t.watch)(()=>r.currentTime,k=>{h(k)}),(0,t.provide)("audioParent",{children:[],props:e,audioData:r,handleMute:g,forward:d,fastBack:u,changeStatus:s}),{...(0,t.toRefs)(e),...(0,t.toRefs)(r),audioRef:l,fastBack:u,forward:d,changeStatus:s,progressChange:p,audioEnd:c,onTimeupdate:a,handleMute:g,onCanplay:i,slots:o}}}),F1={class:"fox-audio"},O1={key:0,class:"fox-audio__progress"},K1={class:"fox-audio__time"},U1={class:"fox-audio__bar"},H1={class:"fox-audio__time"},_1={key:1,class:"fox-audio__icon"},j1=["controls","src","preload","autoplay","loop","muted"];function W1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-range"),u=(0,t.resolveComponent)("Service");return(0,t.openBlock)(),(0,t.createElementBlock)("div",F1,[e.type=="progress"?((0,t.openBlock)(),(0,t.createElementBlock)("div",O1,[(0,t.createElementVNode)("div",K1,(0,t.toDisplayString)(e.currentDuration),1),(0,t.createElementVNode)("div",U1,[(0,t.createVNode)(a,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=s=>e.percent=s),"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",H1,(0,t.toDisplayString)(e.duration),1)])):(0,t.createCommentVNode)("",!0),e.type=="icon"?((0,t.openBlock)(),(0,t.createElementBlock)("div",_1,[(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]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[e.playing?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1}))],2)])):(0,t.createCommentVNode)("",!0),e.type=="none"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,onClick:n[2]||(n[2]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[(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]=(...s)=>e.onTimeupdate&&e.onTimeupdate(...s)),onCanplay:n[4]||(n[4]=(...s)=>e.onCanplay&&e.onCanplay(...s)),onEnded:n[5]||(n[5]=(...s)=>e.audioEnd&&e.audioEnd(...s)),muted:e.hanMuted},null,40,j1)])}var Aa=re(L1,[["render",W1]]),{componentName:H2,create:Y1,scope:X1}=J("audio-operate"),Q1=Y1({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:o}=(0,ve.useFoxI18n)(X1),l=(0,t.reactive)((0,t.inject)("audioParent")),r=(0,t.ref)((0,t.useSlots)().default);return{...(0,t.toRefs)(e),...(0,t.toRefs)(l),customSlot:r,t:o}}}),G1={class:"fox-audio-operate"};function Z1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",G1,[e.type=="back"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...u)=>e.fastBack&&e.fastBack(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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]=(...u)=>e.changeStatus&&e.changeStatus(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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]=(...u)=>e.forward&&e.forward(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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]=(...u)=>e.handleMute&&e.handleMute(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{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 Ba=re(Q1,[["render",Z1]]),{componentName:J1,create:ek}=J("avatar"),tk=ek({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:r}=(0,t.toRefs)(e),i=["large","normal","small"],a=(0,t.inject)("avatarGroup",null),u=(0,t.ref)(null),s=(0,t.reactive)({lightTheme:!1}),d=(0,t.reactive)({index:1,showMax:!1,maxIndex:0});(0,t.onMounted)(()=>{const N=a?.avatarGroupRef?.value?.children;N&&g(N)});const h=(0,t.computed)(()=>({[J1]:!0,[`fox-avatar-${n.value||a?.props?.size||"normal"}`]:!0,[`fox-avatar-${o.value||a?.props?.shape||"normal"}`]:!0})),c=(0,t.computed)(()=>({width:i.indexOf(n.value)>-1?"":`${n.value}px`,height:i.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${l.value}`,color:`${r.value}`,marginLeft:d.index!=1&&(a?.props?.span?`${a?.props?.span}px`:""),zIndex:a?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),p=(0,t.computed)(()=>({backgroundColor:`${a?.props?.maxBgColor}`,color:`${a?.props?.maxColor}`})),g=N=>{d.maxIndex=N.length;for(let k=0;k<N.length;k++)N[k]&&N[k].classList&&N[k].classList[0]=="fox-avatar"&&N[k].setAttribute("data-index",k+1);d.index=u?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=a?.props?.maxCount&&(d.showMax=!0)};return{classes:h,styles:c,maxStyles:p,avatarGroup:a,visible:s,avatarRef:u,...(0,t.toRefs)(d)}}});function nk(e,n,o,l,r,i){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 Gt=re(tk,[["render",nk]]),{componentName:lk,create:ok}=J("avatar-group"),ak=ok({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),r=(0,t.ref)(null),i=(0,t.ref)(0),a=(0,t.computed)(()=>({[lk]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:r,index:i}),{classes:a,avatarGroupRef:r}}});function rk(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"avatarGroupRef"},[(0,t.renderSlot)(e.$slots,"default")],2)}var Ta=re(ak,[["render",rk]]),Vl=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function ik(e,n,o){let l=0,r=e.length-1,i=null;for(;l<=r;){i=Math.floor((l+r)/2);const a=e[i],u=o(a,n);if(u===1)return i;u===2?l=i+1:u===3&&(r=i-1)}return i}var{componentName:sk,create:uk}=J("list"),$r=document.documentElement.clientHeight||document.body.clientHeight||667,ck=uk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:$r},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),r=(0,t.ref)(null),i=(0,t.reactive)({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),a=(0,t.computed)(()=>Math.min(e.containerHeight,$r)),u=(0,t.computed)(()=>Math.ceil(a.value/e.height)),s=(0,t.computed)(()=>Math.min(i.originStartIndex+u.value+e.bufferSize,i.list.length)),d=(0,t.computed)(()=>({[sk]:!0})),h=(0,t.computed)(()=>i.list.slice(i.start,s.value)),c=()=>{if(r.value)return`translate3d(0, ${i.start>=1?i.cachePositions[i.start-1].bottom:0}px, 0)`},p=()=>{i.cachePositions=[];for(let b=0;b<i.list.length;++b)i.cachePositions[b]={index:b,height:e.height,top:b*e.height,bottom:(b+1)*(e.height+e.margin),dValue:0}},g=()=>{let b=r.value.childNodes;b=Array.from(b).filter(v=>v.nodeType===1);const f=b[0];b.forEach((v,y)=>{if(!v)return;const{height:V}=$e(v),T=i.cachePositions[y+i.start].height-V;T&&(i.cachePositions[y+i.start].bottom-=T,i.cachePositions[y+i.start].height=V,i.cachePositions[y+i.start].dValue=T)});let m=0;f&&(m=i.start);const S=i.cachePositions.length;let B=i.cachePositions[m].dValue;i.cachePositions[m].dValue=0;for(let v=m+1;v<S;++v){const y=i.cachePositions[v];i.cachePositions[v].top=i.cachePositions[v-1].bottom,i.cachePositions[v].bottom=i.cachePositions[v].bottom-B,y.dValue!==0&&(B+=y.dValue,y.dValue=0)}i.phantomHeight=i.cachePositions[S-1].bottom},N=(b=0)=>{let f=ik(i.cachePositions,b,(m,S)=>{const B=m.bottom;return B===S?Vl.eq:B<S?Vl.lt:Vl.gt});return i.cachePositions[f].bottom<b&&(f+=1),f},k=()=>{i.originStartIndex=0,i.start=0,i.scrollTop=0,o.value.scrollTop=0,p(),i.phantomHeight=e.height*i.list.length},w=()=>{const b=o.value?.scrollTop,{originStartIndex:f}=i,m=N(b);m!==f&&(i.originStartIndex=m,i.start=Math.max(i.originStartIndex-e.bufferSize,0),s.value>=i.list.length-1&&n("scroll-bottom")),n(b>i.scrollTop?"scroll-up":"scroll-down",b),i.scrollTop=b};return(0,t.watch)(()=>e.listData,b=>{if(i.list=b.slice(),i.list.length===b.length)p(),g();else{k();return}}),(0,t.watch)(()=>i.start,()=>{r.value&&i.list.length>0&&g()}),{...(0,t.toRefs)(i),list:o,phantom:l,actualContent:r,getTransform:c,visibleData:h,classes:d,getContainerHeight:a,handleScrollEvent:w}}});function dk(e,n,o,l,r,i){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]=(...a)=>e.handleScrollEvent&&e.handleScrollEvent(...a)),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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-list-item",key:a},[(0,t.renderSlot)(e.$slots,"default",{item:a,index:u+e.start})]))),128))],4)],38)}var Va=re(ck,[["render",dk]]),{componentName:fk,create:mk}=J("circleprogress"),pk=mk({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),r=(0,t.computed)(()=>({[fk]:!0})),i=(0,t.computed)(()=>{const u=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${u} 0 90 a 45 45 0 1, ${u} 0 -90`}),a=(0,t.computed)(()=>xe(e.color)?`url(#${l})`:e.color);return{classes:r,hoverStyle:(0,t.computed)(()=>{let u=283,s=u*Number(e.progress)/100;return{stroke:xe(e.color)?`url(#${l})`:e.color,strokeDasharray:`${s}px ${u}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:i,hoverColor:a,stop:(0,t.computed)(()=>{if(!xe(e.color))return;let u=e.color;const s=Object.keys(u).sort((h,c)=>parseFloat(h)-parseFloat(c));let d=[];return s.map((h,c)=>{let p={key:"",value:""};p.key=h,p.value=u[h],d.push(p)}),d}),slotDefault:o,refRandomId:l}}}),hk={viewBox:"0 0 100 100"},vk=["id"],gk=["offset","stop-color"],yk=["d","stroke-width"],bk=["d","stroke","stroke-linecap","stroke-width"],Sk={class:"fox-circleprogress-text"},kk={key:0};function wk(e,n,o,l,r,i){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",hk,[(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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("stop",{key:u,offset:a.key,"stop-color":a.value},null,8,gk))),128))],8,vk)]),(0,t.createElementVNode)("path",{class:"fox-circleprogress-path",style:(0,t.normalizeStyle)(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,yk),(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,bk)])),(0,t.createElementVNode)("div",Sk,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",kk,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var xa=re(pk,[["render",wk]]),{componentName:Ck,create:Nk}=J("noticebar"),Ak=Nk({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:ae.Notice,CircleClose:ae.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null),r=(0,t.ref)(null),i=(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}),a=(0,t.computed)(()=>({[Ck]:!0})),u=(0,t.computed)(()=>i.isCanScroll==null?e.wrapable:!i.isCanScroll&&!e.wrapable),s=(0,t.computed)(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":u.value,[i.animationClass]:!0})),d=(0,t.computed)(()=>{let y={};return e.color&&(y.color=e.color),e.background&&(y.background=e.background),e.direction=="vertical"&&(y.height=`${e.height}px`),y}),h=(0,t.computed)(()=>({animationDelay:(i.firstRound?e.delay:0)+"s",animationDuration:i.duration+"s",transform:`translateX(${i.firstRound?0:i.wrapWidth+"px"})`})),c=(0,t.computed)(()=>{let y={};if(e.complexAm)y={transform:`translateY(${i.distance}px)`};else if(i.animate){let V=~~(e.height/e.speed/4);y={transition:`all ${V==0?~~(e.height/e.speed):V}s`,"margin-top":`-${e.height}px`}}return y});(0,t.watch)(()=>e.text,y=>{p(y)}),(0,t.watch)(()=>e.list,y=>{i.scrollList=[...y]});const p=y=>{i.showNoticebar!=!1&&setTimeout(()=>{if(!l.value||!r.value)return;const V=l.value.getBoundingClientRect().width,T=r.value.getBoundingClientRect().width;i.isCanScroll=e.scrollable==null?T>V:e.scrollable,i.isCanScroll?(i.wrapWidth=V,i.offsetWidth=T,i.duration=T/e.speed,i.animationClass="play"):i.animationClass=""},0)},g=y=>{n("click",y)},N=y=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",y)},k=y=>{i.firstRound=!1,n("across-end",y),setTimeout(()=>{i.duration=(i.offsetWidth+i.wrapWidth)/e.speed,i.animationClass="play-infinite"},0)},w=()=>{b(),i.timer=setInterval(b,~~(e.height/e.speed/4*1e3)+e.standTime)},b=()=>{i.animate=!0,setTimeout(()=>{i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.animate=!1},~~(e.height/e.speed/4*1e3))},f=()=>{i.timer=setInterval(()=>{let y=100;for(let V=0;V<y;V++)m(V,!(V<y-1))},e.standTime+100*e.speed)},m=(y,V)=>{setTimeout(()=>{i.distance-=e.height/100,V&&(i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.distance=0)},y*e.speed)},S=y=>{n("click",y)},B=()=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",i.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(o.default?v(o.default()):i.scrollList=[...e.list],setTimeout(()=>{e.complexAm?f():w()},e.standTime)):p(e.text)}),(0,t.watch)(()=>o.default?o.default():[],y=>{e.direction==="vertical"&&o.default&&(i.showNotica=!1,setTimeout(()=>{i.showNotica=!0}),v(y))});const v=y=>{y&&y.length>0&&(i.scrollList=y[0].children)};return(0,t.onActivated)(()=>{i.keepAlive&&(i.keepAlive=!1)}),(0,t.onDeactivated)(()=>{i.keepAlive=!0,clearInterval(i.timer)}),(0,t.onUnmounted)(()=>{clearInterval(i.timer)}),{...(0,t.toRefs)(e),...(0,t.toRefs)(i),isEllipsis:u,classes:a,barStyle:d,contentStyle:h,horseLampStyle:c,wrap:l,content:r,handleClick:g,onClickIcon:N,onAnimationEnd:k,go:S,handleClickIcon:B,slots:o,toPxString:he,wrapContentClass:s}}}),Bk={key:0,class:"fox-noticebar__page-lefticon"},Tk={ref:"wrap",class:"fox-noticebar__page-wrap"},Vk={class:"showNotica"},xk=["onClick"];function Ek(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Notice"),u=(0,t.resolveComponent)("CircleClose"),s=(0,t.resolveComponent)("ScrollItem");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.direction=="across"?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:(0,t.normalizeStyle)(e.barStyle),onClick:n[3]||(n[3]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.showLeftIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Bk,[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,size:"16px"})):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Tk,[(0,t.createElementVNode)("view",{ref:"content",class:(0,t.normalizeClass)(e.wrapContentClass),style:(0,t.normalizeStyle)(e.contentStyle),onAnimationend:n[0]||(n[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":n[1]||(n[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=(0,t.withModifiers)((...d)=>e.onClickIcon&&e.onClickIcon(...d),["stop"]))},[e.$slots["right-icon"]?(0,t.renderSlot)(e.$slots,"right-icon",{key:0}):((0,t.openBlock)(),(0,t.createBlock)(u,{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",Vk,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,h)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:h,style:(0,t.normalizeStyle)({height:e.height+"px","line-height":e.height+"px"}),item:d},null,8,["style","item"]))),128))])],4)):((0,t.openBlock)(),(0,t.createElementBlock)("ul",{key:1,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,h)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{class:"fox-noticebar__vertical-item",key:h,style:(0,t.normalizeStyle)({height:e.toPxString(e.height),lineHeight:e.toPxString(e.height)}),onClick:c=>e.go(d)},[(0,t.renderSlot)(e.$slots,"item",{item:d,index:h},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(d),1)])],12,xk))),128))],4)),(0,t.createElementVNode)("view",{class:"go",onClick:n[4]||(n[4]=d=>!e.slots.rightIcon&&e.handleClickIcon())},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[e.closeMode?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,color:e.color,size:"11px"},null,8,["color"])):(0,t.createCommentVNode)("",!0)])])],4)):(0,t.createCommentVNode)("",!0)],2)}var Ea=re(Ak,[["render",Ek]]),$k="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/y9UzMzP8s8GwsLD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k({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,ve.useFoxI18n)(Pk),o=n(e,["description"]),{image:l,imageSize:r}=(0,t.toRefs)(e),i=(0,t.computed)(()=>r.value?typeof r.value=="number"?`width:${r.value}px;height:${r.value}px`:`width:${r.value};height:${r.value}`:""),a=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:Mk[l.value];return{...o,imageUrl:a,imgStyle:i}}}),Rk={class:"fox-empty"},Lk=["src"],Fk={key:1,class:"fox-empty-description"};function Ok(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Rk,[(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,Lk)):(0,t.createCommentVNode)("",!0)],64))],4),e.$slots.description?(0,t.renderSlot)(e.$slots,"description",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",Fk,(0,t.toDisplayString)(e.description),1)),e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:2}):(0,t.createCommentVNode)("",!0)])}var $a=re(zk,[["render",Ok]]),{create:Kk,scope:Uk}=J("video"),Hk=Kk({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,ve.useFoxI18n)(Uk),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}),r=(0,t.ref)(null),i=(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 a=()=>{l.videoElm=r.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)),N(),l.showToolbox?u():(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",p),l.videoElm.addEventListener("timeupdate",Cn(c,1e3)))},u=()=>{const v=r.value,y=r.value.getElementsByClassName("fox-video-controller__progress-value")[0];l.player.$player=v,l.progressBar.progressElm=y,l.progressBar.pos=y.getBoundingClientRect(),l.videoSet.progress.width=Math.round(y.getBoundingClientRect().width)},s=()=>{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",()=>{h()}),l.videoElm.addEventListener("timeupdate",Cn(c,1e3)),l.videoElm.addEventListener("ended",p),n("play",l.videoElm)}catch{g()}else l.videoElm.pause(),n("pause",l.videoElm)},d=v=>{let y=[];const V=Math.floor(v/3600);V>0&&(V<10?y.push(`0${V}`):y.push(`${V}`));const T=Math.floor(v%3600/60);T<10?y.push(`0${T}`):y.push(`${T}`);const A=Math.round(v%3600%60);return A<10?y.push(`0${A}`):y.push(`${A}`),y.join(":")},h=()=>{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=d(l.videoElm.duration),l.videoSet.displayTime=d(l.videoElm.currentTime),n("time",l.videoSet.displayTime,l.videoSet.totalTime)},p=()=>{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)},g=()=>{l.state.isError=!0},N=()=>{l.state.vol=e.options.volume},k=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},w=()=>{},b=v=>{let y=v.targetTouches[0].pageX-l.progressBar.pos.left;y<=0&&(y=0),y>=l.videoSet.progress.width&&(y=l.videoSet.progress.width),l.videoSet.progress.current=y;let V=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&m(V,l.videoElm.duration)},f=v=>{let y=v.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=y;let V=y/l.videoSet.progress.width;l.videoElm.duration&&m(V,l.videoElm.duration)},m=(v,y)=>{l.videoElm.currentTime=Math.floor(v*y)},S=()=>{l.state.isError=!1,a()},B=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{a()}),{root:r,...(0,t.toRefs)(e),...(0,t.toRefs)(l),handleError:g,isDisabled:i,play:s,handleMuted:k,touchSlidSrart:w,touchSlidMove:b,touchSlidEnd:f,retry:S,fullScreen:B,t:o}}}),_k={class:"fox-video",ref:"videocon"},jk=["muted","autoplay","loop","poster","controls","preload"],Wk=["src","type"],Yk={class:"fox-video-controller__now"},Xk={class:"fox-video-controller__progress"},Qk={class:"fox-video-controller__progress-value",ref:"progressBar"},Gk={class:"fox-video-controller__played",ref:"playedBar"},Zk={class:"fox-video-controller__total"},Jk={class:"fox-video-error"},ew={class:"fox-video-error-tip"};function tw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",_k,[(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]=(...a)=>e.handleError&&e.handleError(...a))},[(0,t.createElementVNode)("source",{src:e.source.src,type:e.source.type},null,8,Wk)],40,jk),e.showToolbox&&!e.isDisabled?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...a)=>e.play&&e.play(...a))},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]=(...a)=>e.play&&e.play(...a))},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]=(...a)=>e.play&&e.play(...a))}),(0,t.createElementVNode)("div",Yk,(0,t.toDisplayString)(e.videoSet.displayTime),1),(0,t.createElementVNode)("div",Xk,[(0,t.createElementVNode)("div",Qk,[(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)(a=>e.touchSlidMove(a),["stop","prevent"])),onTouchstart:n[5]||(n[5]=(0,t.withModifiers)(a=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)(a=>e.touchSlidEnd(a),["stop"]))},[...n[10]||(n[10]=[(0,t.createElementVNode)("div",{class:"fox-video-controller__ball-move"},null,-1)])],36),(0,t.createElementVNode)("div",Gk,null,512)],512)]),(0,t.createElementVNode)("div",Zk,(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]=(...a)=>e.handleMuted&&e.handleMuted(...a))},null,2),(0,t.createElementVNode)("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...a)=>e.fullScreen&&e.fullScreen(...a))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),(0,t.withDirectives)((0,t.createElementVNode)("div",Jk,[(0,t.createElementVNode)("p",ew,(0,t.toDisplayString)(e.t("errorTip")),1),(0,t.createElementVNode)("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...a)=>e.retry&&e.retry(...a))},(0,t.toDisplayString)(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var At=re(Hk,[["render",tw]]),Xi=Symbol("fox-steps"),{create:nw,componentName:lw}=J("steps"),ow=nw({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.computed)(()=>{const i=lw;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}});return sn(Xi,{props:e,onEmit:i=>{n("click-step",i)}}),()=>(0,t.h)("view",{class:l.value},o.default?.())}}),Da=ow,{create:aw,componentName:rw}=J("step"),iw=aw({props:{title:{type:[String],default:""},content:{type:[String],default:""}},emits:["click-step"],setup(e){const{parent:n,index:o}=un(Xi,{props:e}),l=(0,t.reactive)({dot:n.props.progressDot}),r=()=>{const s=o.value+1;return s<+n.props.current?"finish":s===+n.props.current?"process":"wait"},i=(0,t.computed)(()=>r()),a=(0,t.computed)(()=>{const s=rw;return{[s]:!0,[`${s}-${i.value}`]:!0}}),u=()=>{n.onEmit(o.value)};return{...(0,t.toRefs)(l),index:o,classes:a,handleClickStep:u}}}),sw={class:"fox-step-head"},uw={class:"fox-step-icon-inner"},cw={key:1,class:"fox-step-inner"},dw={class:"fox-step-main"},fw={class:"fox-step-title"},mw={key:0},pw={key:0,class:"fox-step-content"},hw=["innerHTML"];function vw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClickStep&&e.handleClickStep(...a))},[(0,t.createElementVNode)("view",sw,[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",uw,[(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",cw,(0,t.toDisplayString)(e.index+1),1))])])],2)]),(0,t.createElementVNode)("view",dw,[(0,t.createElementVNode)("view",fw,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",mw,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",pw,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,hw)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var Ia=re(iw,[["render",vw]]),Qi=Symbol("fox-swiper"),{create:gw,componentName:xl}=J("swiper"),yw=gw({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,expose:l}){const r=(0,t.ref)(),i=(0,t.reactive)({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,style:{}}),a=(0,t.computed)(()=>i[h.value?"height":"width"]),{children:u}=sn(Qi,{props:e,size:a}),s=ot(),d=(0,t.computed)(()=>({[xl]:!0})),h=(0,t.computed)(()=>e.direction==="vertical"),c=(0,t.computed)(()=>{const z=xl;return{[`${z}-inner`]:!0,[`${z}-vertical`]:h.value}}),p=(0,t.computed)(()=>{const z=xl;return{[`${z}-pagination`]:!0,[`${z}-pagination-vertical`]:h.value}}),g=(0,t.computed)(()=>h.value?s.deltaY.value:s.deltaX.value),N=(0,t.computed)(()=>s.direction.value===e.direction),k=(0,t.computed)(()=>u.value.length),w=(0,t.computed)(()=>k.value*a.value),b=(0,t.computed)(()=>i.rect?(h.value?i.rect.height:i.rect.width)-a.value*k.value:0),f=(0,t.computed)(()=>(i.active+k.value)%k.value),m=()=>{let z=0;z=i.offset,i.style={transitionDuration:`${i.moving?0:e.duration}ms`,transform:`translate${h.value?"Y":"X"}(${z}px)`,[h.value?"height":"width"]:`${a.value*k.value}px`,[h.value?"width":"height"]:`${h.value?i.width:i.height}px`}},S=(z,W=0)=>{let I=z*a.value;e.loop||(I=Math.min(I,-b.value));let Q=W-I;return e.loop||(Q=_e(Q,b.value,0)),Q},B=z=>{const{active:W}=i;return z?e.loop?_e(W+z,-1,k.value):_e(W+z,0,k.value-1):W},v=({pace:z=0,offset:W=0,isEmit:I=!1})=>{if(k.value<=1)return;const{active:Q}=i,ee=B(z),oe=S(ee,W);if(e.loop){if(u.value[0]&&oe!==b.value){const Y=oe<b.value;u.value[0].setOffset(Y?w.value:0)}if(u.value[k.value-1]&&oe!==0){const Y=oe>0;u.value[k.value-1].setOffset(Y?-w.value:0)}}i.active=ee,i.offset=oe,I&&Q!==i.active&&n("change",f.value),m()},y=()=>{i.moving=!0,i.active<=-1&&v({pace:k.value}),i.active>=k.value&&v({pace:-k.value})},V=()=>{i.autoplayTimer&&clearTimeout(i.autoplayTimer)},T=z=>{y(),s.reset(),Qe(()=>{Qe(()=>{i.moving=!1,v({pace:z,isEmit:!0})})})},A=()=>{T(-1)},C=()=>{T(1)},q=z=>{y(),s.reset(),Qe(()=>{i.moving=!1;let W=0;e.loop&&k.value===z?W=i.active===0?0:z:W=z%k.value,v({pace:W-i.active,isEmit:!0})})},H=()=>{const z=de(e.autoPlay);z<=0||k.value<=1||(V(),i.autoplayTimer=setTimeout(()=>{C(),H()},z))},x=(z=+e.initPage)=>{V(),i.rect=r.value.getBoundingClientRect(),z=Math.min(k.value-1,z),i.width=e.width?+e.width:i.rect.width,i.height=e.height?+e.height:i.rect.height,i.active=z,i.offset=S(i.active),i.moving=!0,m(),H()},M=z=>{e.isPreventDefault&&z.preventDefault(),e.isStopPropagation&&z.stopPropagation(),e.touchable&&(s.start(z),i.touchTime=Date.now(),V(),y())},P=z=>{e.touchable&&i.moving&&(s.move(z),N.value&&v({offset:g.value}))},R=z=>{if(!e.touchable||!i.moving)return;const W=g.value/(Date.now()-i.touchTime);if((Math.abs(W)>.3||Math.abs(g.value)>+(a.value/2).toFixed(2))&&N.value){let I=0;const Q=h.value?s.offsetY.value:s.offsetX.value;e.loop?I=Q>0?g.value>0?-1:1:0:I=-Math[g.value>0?"ceil":"floor"](g.value/a.value),v({pace:I,isEmit:!0})}else g.value&&v({pace:0});i.moving=!1,m(),H()};return l({prev:A,next:C,to:q}),(0,t.onDeactivated)(()=>{V()}),(0,t.onBeforeUnmount)(()=>{V()}),(0,t.watch)(()=>e.initPage,z=>{(0,t.nextTick)(()=>{x(Number(z))})}),(0,t.watch)(()=>u.value.length,()=>{(0,t.nextTick)(()=>{x()})}),(0,t.watch)(()=>e.autoPlay,z=>{de(z)>0?H():V()}),{state:i,children:u,classes:d,classesInner:c,classesPagination:p,container:r,activePagination:f,onTouchStart:M,onTouchMove:P,onTouchEnd:R}}});function bw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{ref:"container",class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[(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.children.length,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("i",{style:(0,t.normalizeStyle)({backgroundColor:e.activePagination===u?e.paginationColor:"#ddd"}),class:(0,t.normalizeClass)({active:e.activePagination===u}),key:u},null,6))),128))],2)):(0,t.createCommentVNode)("",!0)],34)}var Bt=re(yw,[["render",bw]]),{create:Sw,componentName:kw}=J("swiper-item"),ww=Sw({setup(e,{slots:n,expose:o}){const l=(0,t.reactive)({offset:0}),r=(0,t.computed)(()=>({[kw]:!0})),i=s=>{l.offset=s},{parent:a}=un(Qi,{setOffset:i}),u=(0,t.computed)(()=>{const s={},d=a?.props.direction;return a?.size.value&&(s[d==="horizontal"?"width":"height"]=`${a?.size.value}px`),l.offset&&(s.transform=`translate${d==="horizontal"?"X":"Y"}(${l.offset}px)`),s});return o({setOffset:i}),{style:u,classes:r}}});function Cw(e,n,o,l,r,i){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=re(ww,[["render",Cw]]),Gi={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:Nw}=J("image-preview-item"),Aw=Nw({props:{...Gi,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=ot(),r=(0,t.computed)(()=>{const{rootWidth:T,rootHeight:A}=e,C=A/T;return o.imageRatio>C}),i=(0,t.computed)(()=>{const T=e.image;if(T&&T.src){const{scale:A,moveX:C,moveY:q,moving:H,zooming:x}=o,M={transitionDuration:x||H?"0s":".3s"};return A!==1&&(M.transform=`scale(${A}, ${A}) translate(${C/A}px, ${q/A}px)`),M}return{}}),a=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:T,rootHeight:A}=e,C=r.value?A/o.imageRatio:T;return Math.max(0,(o.scale*C-T)/2)}return 0}),u=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:T,rootHeight:A}=e,C=r.value?A:T*o.imageRatio;return Math.max(0,(o.scale*C-A)/2)}return 0}),s=T=>{const{naturalWidth:A,naturalHeight:C}=T.target;o.imageRatio=C/A},d=()=>{h(1),o.moveX=0,o.moveY=0},h=T=>{T=_e(T,+e.minZoom,+e.maxZoom+1),T!==o.scale&&(o.scale=T,n("scale",{scale:T,index:e.initNo}))},c=()=>{h(o.scale>1?1:2),o.moveX=0,o.moveY=0},p=T=>Math.sqrt((T[0].clientX-T[1].clientX)**2+(T[0].clientY-T[1].clientY)**2);let g,N,k,w,b,f,m;const S=T=>{const{touches:A}=T,{offsetX:C}=l;l.start(T),m=A.length,g=o.moveX,N=o.moveY,f=Date.now(),o.moving=m===1&&o.scale!==1,o.zooming=m===2&&!C.value,o.zooming&&(k=o.scale,w=p(T.touches))},B=T=>{const{touches:A}=T;if(l.move(T),(o.moving||o.zooming)&&Rl(T,!0),o.moving){const{deltaX:C,deltaY:q}=l,H=C.value+g,x=q.value+N;o.moveX=_e(H,-a.value,a.value),o.moveY=_e(x,-u.value,u.value)}if(o.zooming&&A.length===2){const C=p(A);h(k*C/w)}},v=()=>{if(m==1&&e.video&&e.video.source||m>1)return;const{offsetX:T,offsetY:A}=l,C=Date.now()-f,q=250,H=5;T.value<H&&A.value<H&&C<q&&(b?(clearTimeout(b),b=null,c()):b=setTimeout(()=>{e.contentClose&&n("close"),b=null},q))},y=T=>{let A=!1;(o.moving||o.zooming)&&(A=!0,o.moving&&g===o.moveX&&N===o.moveY&&(A=!1),T.touches.length||(o.zooming&&(o.moveX=_e(o.moveX,-a.value,a.value),o.moveY=_e(o.moveY,-u.value,u.value),o.zooming=!1),o.moving=!1,g=0,N=0,k=1,o.scale<1&&d(),o.scale>e.maxZoom&&(o.scale=+e.maxZoom))),Rl(T,A),v(),l.reset()},V=()=>{n("close")};return(0,t.watch)(()=>e.initNo,d),(0,t.watch)(()=>e.show,T=>{T||d()}),{...(0,t.toRefs)(o),onTouchStart:S,onTouchMove:B,onTouchEnd:y,getDistance:p,imageStyle:i,imageLoad:s,closeSwiper:V}}}),Bw=["src"];function Tw(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-video"),u=(0,t.resolveComponent)("fox-swiper-item");return(0,t.openBlock)(),(0,t.createBlock)(u,{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]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[2]||(n[2]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[4]||(n[4]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[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]=(...s)=>e.imageLoad&&e.imageLoad(...s))},null,40,Bw)):(0,t.createCommentVNode)("",!0),e.video&&e.video.source?((0,t.openBlock)(),(0,t.createBlock)(a,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):(0,t.createCommentVNode)("",!0)],36)]),_:1},8,["onClick"])}var Vw=re(Aw,[["render",Tw]]),{create:xw}=J("image-preview"),Ew=xw({props:{...Gi,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:Vw,CircleClose:ae.CircleClose,[we.name]:we,[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}),r=(0,t.computed)(()=>{const h="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${h}-right`:`${h}-left`}`}),i=(0,t.computed)(()=>Dn(e.videos)?[].concat(e.videos).concat(e.images):e.images),a=h=>{h!==l.active&&(l.active=h,n("change",l.active))},u=()=>{_i(e.beforeClose,{args:[l.active],done:()=>s()})},s=()=>{l.showPop=!1,n("close")},d=()=>{if(o.value){const h=$e(o.value);l.rootHeight=h.height,l.rootWidth=h.width}};return(0,t.watch)(()=>e.show,h=>{l.showPop=h,h&&(a(e.initNo),d())}),(0,t.watch)(()=>e.initNo,h=>{h!=l.active&&a(h)}),(0,t.onMounted)(()=>{a(e.initNo)}),{swipeRef:o,...(0,t.toRefs)(l),onClose:u,mergeImages:i,setActive:a,iconClasses:r}}}),$w={class:"fox-image-preview",ref:"swipeRef"},Dw={key:0,class:"fox-image-preview-index"};function Iw(e,n,o,l,r,i){const a=(0,t.resolveComponent)("image-preview-item"),u=(0,t.resolveComponent)("fox-swiper"),s=(0,t.resolveComponent)("CircleClose"),d=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=h=>e.showPop=h),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",$w,[e.showPop?((0,t.openBlock)(),(0,t.createBlock)(u,{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,(h,c)=>((0,t.openBlock)(),(0,t.createBlock)(a,{key:c,video:c<e.videos.length?h:{},image:c>=e.videos.length?h:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):(0,t.createCommentVNode)("",!0)],512),e.showIndex?((0,t.openBlock)(),(0,t.createElementBlock)("view",Dw,(0,t.toDisplayString)(e.active+1)+" / "+(0,t.toDisplayString)(e.mergeImages.length),1)):(0,t.createCommentVNode)("",!0),e.closeable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.iconClasses),onClick:n[0]||(n[0]=(...h)=>e.onClose&&e.onClose(...h))},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(s,{color:"#ffffff"})])],2)):(0,t.createCommentVNode)("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}var Zi=re(Ew,[["render",Iw]]),qw=class{show=!1;images=[];videos=[];contentClose=!0;initNo=0;paginationVisible=!1;paginationColor="";autoplay=0;isWrapTeleport=!1;showIndex=!0;closeable=!1;closeIconPosition="top-right";beforeClose;maxZoom=3;minZoom=1/3;isLoop=!0;teleport="body"},Pw=class{options=new qw;constructor(e){const n=Object.assign(this.options,e),{unmount:o}=_s(n,{name:"image-preview",components:[we,At,Bt,Tt,ut],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{o()})},(0,t.h)(Zi,n))}})})}},gl=e=>new Pw(e);gl.install=e=>{e.use(Zi)};var{create:Mw}=J("countup"),zw=Mw({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","scrollEnd"],setup(e,{emit:n,expose:o}){const l=(0,t.ref)(null),r=(0,t.ref)([]),i=T=>{T&&r.value.push(T)},a=(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:u,scrolling:s,customBgImg:d,type:h}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,()=>{p(),b(0)}),(0,t.watch)(()=>e.machinePrizeLevel,T=>{a.prizeLevelTrun=T}),(0,t.watch)(()=>e.initNum,T=>{a.current=T,a.valFlag=!1,c()}),(0,t.watch)(()=>e.endNum,()=>{a.current=e.initNum,a.valFlag=!1,c()});const c=()=>{if(a.valFlag)return!1;u&&(s||d?h!="machine"&&b():(w(),setTimeout(()=>{a.valFlag=!0},300)))},p=()=>{clearInterval(Number(a.timer)),a.timer=null},g=(T,A,C)=>{const q=(T.toString().split(".")[1]||"").length,H=(A.toString().split(".")[1]||"").length,x=Math.pow(10,Math.max(q,H));return C=="-"?Number((T*x-A*x).toFixed(0))/x:Number((T*x+A*x).toFixed(0))/x},N=T=>{let{num_total_len:A,pointNum:C,initDigit1:q,initDigit2:H,sortFlag:x}=a,M=x=="add"||x=="equal"?String(H)[T-(A-C)]:10-Number(String(H)[T-(A-C)]),P=x=="add"||x=="equal"?String(q)[T]:10-Number(String(q)[T]),R=T>A-C-1?-M*100+"%":T<=String(q).length-1?-P*100+"%":0;return R=="-1000%"&&(R=0),R},k=T=>{let{num_total_len:A,pointNum:C,initDigit1:q,initDigit2:H}=a,x=String(H)[T-(A-C)];return T>A-C-1?x||0:T<=String(q).length-1?String(q)[T]:0},w=()=>{let{endNum:T,initNum:A,speed:C,toFixed:q}=e,H=setInterval(()=>{A>T?Number(a.current)<=T||Number(a.current)<=C?(a.current=T.toFixed(q),clearInterval(H),n("scrollEnd"),a.valFlag=!1):a.current=(parseFloat(String(a.current))-parseFloat(String(C))).toFixed(q):Number(a.current)>=T?(a.current=T.toFixed(q),clearInterval(H),n("scrollEnd"),a.valFlag=!1):a.current=(parseFloat(String(a.current))+parseFloat(String(C))).toFixed(q)},e.during)},b=T=>{let{initNum:A,endNum:C,toFixed:q,customBgImg:H}=e;H&&(A=e.customChangeNum);let x,M,P,R;A!=0?(q!=0&&(A=Number(A.toFixed(q))),String(A).indexOf(".")>-1?(x=String(A).split(".")[0].length,M=String(A).split(".")[1].length):(x=String(A).length,M=0)):(x=1,M=0),C!=0?(q!=0&&(C=Number(C.toFixed(q))),String(C).indexOf(".")>-1?(P=String(C).split(".")[0].length,R=String(C).split(".")[1].length):(P=String(C).length,R=0)):(P=1,R=0);let z=x>=P?x:P,W=M>=R?M:R;a.num_total_len=z+W,a.pointNum=W,A>C?(a.sortFlag="reduce",a.to0_10=[0,9,8,7,6,5,4,3,2,1,0],a.totalCount=g(A,C,"-"),a.numberVal=Number(String(A))):A<C?(a.sortFlag="add",a.to0_10=[0,1,2,3,4,5,6,7,8,9,0],a.totalCount=g(C,A,"-"),a.numberVal=Number(String(C))):a.sortFlag="equal";var I=1;for(let ee=0;ee<a.pointNum;ee++)I*=10;var Q=a.numberVal*I;if(a.relNum=Q,q!=0&&(a.pointNum=String(a.numberVal).split(".")[1]?String(a.numberVal).split(".")[1].length:0,a.num_total_len=String(Q).length),String(A).indexOf(".")>-1){let ee=String(A).split(".");a.initDigit1=Number(ee[0]),a.initDigit2=Number(ee[1])}else a.initDigit1=A,a.initDigit2=0;s&&!H?(0,t.nextTick)(()=>{if(a.sortFlag=="equal")return!1;let ee=r.value[a.num_total_len-1];f(ee)}):T!==0&&B()},f=T=>{p();var A=1;a.pointNum!=0&&(A=1/Math.pow(10,a.pointNum)),a.timer=setInterval(()=>{m(T),a.totalCount=g(a.totalCount,A,"-"),a.totalCount<=0&&(p(),n("scrollEnd"),a.valFlag=!1)},e.during)},m=T=>{let A=T.getAttribute("turn-number"),C;if(a.sortFlag=="add"?C=parseInt(String(A))+1:C=parseInt(String(A))-1>=0?parseInt(String(A))-1:9,T.setAttribute("turn-number",String(C)),(T.style.transition=="none 0s ease 0s"||C==1||!T.style.transition)&&(T.style.transition=`all linear ${e.during}ms`),C==10||a.sortFlag=="reduce"&&C==0){var q=null;T.style.top=`-${a.sortFlag=="add"?C*100:(10-C)*100}%`,T.setAttribute("turn-number","0"),q=setTimeout(()=>{q&&clearTimeout(q),T.style.transition="none",T.style.top="0",S(T,C)},.975*e.during)}else T.style.top=`-${a.sortFlag=="add"?C*100:(10-C)*100}%`;T.style.top=="-100%"&&a.sortFlag=="reduce"&&m(T.previousSibling)},S=(T,A)=>{setTimeout(()=>{A==10&&T.previousSibling&&m(T.previousSibling)},200)},B=()=>{(0,t.nextTick)(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{n("scrollEnd"),a.valFlag=!1})})},v=()=>{for(a.notPrize=[];a.notPrize.length<3;){var T=Math.floor(Math.random()*e.machinePrizeNum+1);a.notPrize.indexOf(T)==-1&&a.notPrize.push(T)}};o({machineLuck:()=>{const T=e.machineTurnMore<0?0:e.machineTurnMore;let A=e.numHeight*e.machinePrizeNum;a.prizeLevelTrun<0&&v();for(let C=0;C<e.machineNum;C++)setTimeout(()=>{let q=A*(C+1+parseFloat(String(T)));a.prizeYPrev.length!=0&&(a.prizeY[C]=a.prizeYPrev[C]);let H=a.prizeYPrev[C]?a.prizeYPrev[C]:0,x=q+H+(e.machinePrizeNum-a.prizeLevelTrun+1)*e.numHeight+(A-H);a.prizeLevelTrun<0&&(x+=e.numHeight*a.notPrize[C]),V(C,x,H)},500*C)}});const V=(T,A,C)=>{let q=setInterval(()=>{if(C<=A)C+=10,a.prizeY[T]=parseFloat(String(C));else if(clearInterval(q),q=null,a.finshMachine+=1,a.prizeY[T]=A,a.finshMachine==e.machineNum){let H=e.numHeight*e.machinePrizeNum;a.prizeYPrev=[],JSON.parse(JSON.stringify(a.prizeY)).forEach(x=>{let M=x;for(;M>H;)M-=H;a.prizeYPrev.push(M)}),setTimeout(()=>{a.finshMachine=0,a.prizeLevelTrun<0?(n("scrollEnd",!1),a.valFlag=!1):(n("scrollEnd",!0),a.valFlag=!1)},130)}},30)};return(0,t.onMounted)(()=>{a.current=e.initNum,(0,t.nextTick)(()=>{c()})}),(0,t.onUnmounted)(()=>{p(),a.timer=null}),{...(0,t.toRefs)(a),...(0,t.toRefs)((0,t.reactive)(e)),runNumberImg:l,setRef:i,topNumber:N,turnNumber:k}}}),Rw={class:"fox-countup"},Lw=["turn-number"];function Fw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Rw,[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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"mImg"+u,class:"fox-countup__machine-item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[u]+"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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"cImg"+u,class:"fox-countup__numberimg__item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(Number(u)>e.num_total_len-e.pointNum-1?Number(u)==e.num_total_len-e.pointNum?Number(u)*1.5:Number(u)*1.3:Number(u))+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[u]*e.numHeight+e.customSpacNum*+String(e.relNum)[u])+"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,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{ref_for:!0,ref:s=>e.setRef(s),key:a,class:"fox-countup__number-item",style:(0,t.normalizeStyle)({top:e.topNumber(u),left:e.numWidth*(Number(u)>e.num_total_len-e.pointNum-1?Number(u)*1.1:Number(u))+"px"}),"turn-number":e.turnNumber(u)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.to0_10,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"dote"+d,class:"fox-countup__number-item__span",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},(0,t.toDisplayString)(s),5))),128))],12,Lw))),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 qa=re(zw,[["render",Fw]]),Ow=e=>{if(!e)return Date.now();let n=Number(e),o=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(o).getTime()},{componentName:Kw,create:Uw}=J("countdown"),Hw=Uw({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}),r=(0,t.computed)(()=>({[Kw]:!0})),i=(0,t.computed)(()=>s(l.restTime)),a=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-Ow(e.startTime),l.counting||(l.counting=!0),u()},u=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const g=Date.now()-l.diffTime,N=Math.max(l.handleEndTime-g,0);l.restTime=N,N||(l.counting=!1,c(),n("on-end")),N>0&&u()}}))},s=(g,N)=>{const k=g;let w={d:0,h:0,m:0,s:0,ms:0};const b=1e3,f=60*b,m=60*f,S=24*m;return k>0&&(w.d=k>=b?Math.floor(k/S):0,w.h=Math.floor(k%S/m),w.m=Math.floor(k%m/f),w.s=Math.floor(k%f/b),w.ms=Math.floor(k%b)),N=="custom"?w:d({...w})},d=g=>{let{d:N,h:k,m:w,s:b,ms:f}=g,m=e.format;if(m.includes("DD")?m=m.replace("DD",at(N)):k+=Number(N)*24,m.includes("HH")?m=m.replace("HH",at(k)):w+=Number(k)*60,m.includes("mm")?m=m.replace("mm",at(w)):b+=Number(w)*60,m.includes("ss")?m=m.replace("ss",at(b)):f+=Number(b)*1e3,m.includes("S")){const S=at(f,3).toString();m.includes("SSS")?m=m.replace("SSS",S):m.includes("SS")?m=m.replace("SS",S.slice(0,2)):m.includes("S")&&(m=m.replace("SS",S.slice(0,1)))}return m},h=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),u(),n("on-restart",l.restTime))},c=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},p=()=>{e.autoStart||(c(),l.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?a():l.restTime=e.time}),(0,t.watch)(()=>l.restTime,g=>{let N=s(g,"custom");n("update:modelValue",N),n("input",N)}),(0,t.watch)(()=>e.paused,(g,N)=>{N?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),u()),n("on-restart",l.restTime)):l.counting&&c()}),(0,t.watch)(()=>e.endTime,g=>{a()}),(0,t.watch)(()=>e.startTime,g=>{a()}),{...(0,t.toRefs)(e),slots:o,classes:r,start:h,pause:c,renderTime:i,reset:p}}}),_w=["innerHTML"];function jw(e,n,o,l,r,i){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,_w))],2)}var Pa=re(Hw,[["render",jw]]),{create:Ww}=J("badge"),Yw=Ww({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})}}}),Xw={class:"fox-badge"},Qw=["textContent"];function Gw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Xw,[(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,Qw),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var Ma=re(Yw,[["render",Gw]]),{componentName:Zw,create:Jw}=J("tag"),eC=Jw({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:ae.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:(0,t.computed)(()=>{const a=Zw;return{[a]:!0,[`${a}--${e.type}`]:!0,[`${a}--plain`]:e.plain,[`${a}--round`]:e.round,[`${a}--mark`]:e.mark,[`${a}--symbol`]:e.symbol,[`${a}--text`]:e.text,[`${a}--light`]:e.light}}),getStyle:()=>{const a={};return e.textColor?a.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(a.color=e.color),e.plain?(a.background="#fff",a["border-color"]=e.color):!e.text&&e.color&&(a.background=e.color),a},onClose:a=>{a.stopPropagation(),n("close",a)},onClick:a=>{n("click",a)}}}});function tC(e,n,o,l,r,i){const a=(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]=(...u)=>e.onClick&&e.onClick(...u))},[(0,t.renderSlot)(e.$slots,"default"),e.closeable?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],6)}var za=re(eC,[["render",tC]]),{create:nC}=J("popover"),lC=nC({components:{FoxPopup:we},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)(),r=(0,t.ref)(e.visible);let i=(0,t.ref)(),a=(0,t.ref)();const u=(0,t.computed)(()=>{const f="fox-popover-arrow",m=e.location;return`${f} ${f}-${m.split("-")[0]} ${f}--${m}`}),s=(0,t.computed)(()=>{const f={},{bgColor:m,arrowOffset:S,location:B}=e,v=B.split("-")[0],y=B.split("-")[1],V=16;return m&&(f[`border${d(v)}Color`]=m),e.arrowOffset!=0&&(["bottom","top"].includes(v)&&(y||(f.left=`calc(50% + ${S}px)`),y=="start"&&(f.left=`${V+S}px`),y=="end"&&(f.right=`${V-S}px`)),["left","right"].includes(v)&&(y||(f.top=`calc(50% - ${S}px)`),y=="start"&&(f.top=`${V-S}px`),y=="end"&&(f.bottom=`${V+S}px`))),f}),d=f=>(f=f.toLowerCase(),f=f.replace(/\b\w+\b/g,m=>m.substring(0,1).toUpperCase()+m.substring(1)),f),h=(0,t.computed)(()=>{let f={};if(!i.value||!a.value)return{};const m=a.value.width,S=a.value.height,{width:B,height:v,left:y,top:V}=i.value,{location:T,offset:A}=e,C=T.split("-")[0],q=T.split("-")[1];let H=0,x=0;return Dn(A)&&A.length==2&&(H+=Number(A[1]),x+=Number(A[0])),B&&(["bottom","top"].includes(C)&&(f.top=`${V+(C=="bottom"?v+H:-(S+H))}px`,q||(f.left=`${-(m-B)/2+y+x}px`),q=="start"&&(f.left=`${y+x}px`),q=="end"&&(f.left=`${i.value.right+x}px`)),["left","right"].includes(C)&&(f.left=`${y+(C=="left"?-(m+H):B+H)}px`,q||(f.top=`${V-S/2+v/2-4+x}px`),q=="start"&&(f.top=`${V+x}px`),q=="end"&&(f.top=`${V+v+x}px`))),f}),c=(0,t.computed)(()=>{const f={};return e.bgColor&&(f.background=e.bgColor),f}),p=()=>{let f=$e(o.value);e.targetId&&(f=$e(document.querySelector(`#${e.targetId}`))),i.value=f,setTimeout(()=>{a.value={height:l.value?.clientHeight,width:l.value?.clientWidth}},0)};(0,t.onMounted)(()=>{setTimeout(()=>{p()},200)}),(0,t.watch)(()=>e.visible,f=>{r.value=f,f?(window.addEventListener("touchstart",b,!0),p()):window.removeEventListener("touchstart",b,!0)});const g=f=>{n("update",f),n("update:visible",f)},N=()=>{g(!e.visible),n("open")},k=()=>{n("update:visible",!1),n("close")},w=(f,m)=>{!f.disabled&&n("choose",f,m),e.closeOnClickAction&&k()},b=f=>{const m=o.value,S=l.value;let B=m&&!m.contains(f.target);if(e.targetId){const v=document.querySelector(`#${e.targetId}`);B=v&&!v.contains(f.target)}B&&S&&!S.contains(f.target)&&e.closeOnClickOutside&&k()};return{showPopup:r,openPopover:N,popoverArrow:u,closePopover:k,chooseItem:w,popoverRef:o,popoverContentRef:l,getRootPosition:h,customStyle:c,popoverArrowStyle:s,renderIcon:fi}}}),oC={ref:"popoverContentRef",class:"fox-popover-content-group"},aC=["onClick"],rC={class:"fox-popover-menu-item-name"};function iC(e,n,o,l,r,i){const a=(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]=(...u)=>e.openPopover&&e.openPopover(...u))},[(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)(a,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=u=>e.showPopup=u),"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",oC,[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,(u,s)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:s,class:(0,t.normalizeClass)([u.className,u.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:(0,t.withModifiers)(d=>e.chooseItem(u,s),["stop"])},[u.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(u.icon)),{key:0,class:"fox-popover-item-img"})):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",rC,(0,t.toDisplayString)(u.name),1)],10,aC))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}var Zt=re(lC,[["render",iC]]),sC=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:r}=(0,t.toRefs)(n),i=(0,t.computed)(()=>{const s="avatarClass";return{[s]:!0,[`${s}--${o.value}`]:o.value}});return{avatarShape:o,avatarClass:i,getBlockClass:s=>({[s]:!0,[`${s}--round`]:l.value}),getStyle:()=>r.value?{width:r.value,height:r.value}:{width:"50px",height:"50px"}}}}),{create:uC}=J("skeleton"),cC=uC(sC({[Gt.name]:Gt})),dC={key:0},fC={key:1,class:"fox-skeleton"},mC={key:0,class:"fox-skeleton-animation"},pC={class:"fox-skeleton-content"};function hC(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",fC,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",mC)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",pC,[e.avatar?((0,t.openBlock)(),(0,t.createBlock)(a,{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),u=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u,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",dC,[(0,t.renderSlot)(e.$slots,"default")]))}var Ra=re(cC,[["render",hC]]),{create:vC,componentName:gC}=J("collapse"),yC=vC({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?"":[])),r=(0,t.computed)(()=>({[gC]:!0}));(0,t.watch)(()=>e.modelValue,s=>{l.value=s});const i=(s,d,h=!0)=>{l.value=s,n("update:modelValue",s),n("change",s,d,h)},a=s=>{e.accordion?l.value===s?i("",s,!1):i(s,s,!0):Array.isArray(l.value)?l.value.includes(s)?i(l.value.filter(d=>d!==s),s,!1):i(l.value.concat([s]),s,!0):console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},u=s=>e.accordion?l.value===s:Array.isArray(l.value)?l.value.includes(s):!1;return(0,t.provide)("collapseParent",{updateVal:a,isExpanded:u}),{collapseDom:o,classes:r}}});function bC(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"collapseDom"},[(0,t.renderSlot)(e.$slots,"default")],2)}var La=re(yC,[["render",bC]]),{create:SC,componentName:kC}=J("collapse-item"),wC=SC({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:ae.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")),r=(0,t.computed)(()=>{const c=kC;return{[c]:!0,[c+"__border"]:e.border}}),i=(0,t.computed)(()=>l?l.isExpanded(e.name):!1),a=(0,t.ref)(i.value?"auto":"0px"),u=()=>{l.updateVal(e.name)},s=()=>{i.value&&(a.value="auto")},d=()=>{a.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const c=o.value?.offsetHeight;a.value=c?`${c}px`:"auto"})})},h=()=>{const c=o.value?.offsetHeight;a.value=c?`${c}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{a.value="0px"})})};return(0,t.watch)(i,c=>{c?d():h()}),{classes:r,renderIcon:fi,wrapperRef:n,contentRef:o,open:d,toggle:u,wrapperHeight:a,expanded:i,onTransitionEnd:s}}}),CC={class:"fox-collapse-item__title-main"},NC={class:"fox-collapse-item__title-main-value"},AC=["innerHTML"],BC={key:2,class:"fox-collapse-item__title-label"},TC={key:0,class:"fox-collapse-item__title-sub"},VC=["innerHTML"],xC={key:0,class:"fox-collapse__item-extraWrapper"},EC={class:"fox-collapse__item-extraWrapper__extraRender"},$C={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function DC(e,n,o,l,r,i){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]=(...a)=>e.toggle&&e.toggle(...a))},[(0,t.createElementVNode)("view",CC,[(0,t.createElementVNode)("view",NC,[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,innerHTML:e.title,class:"fox-collapse-item__title-mtitle"},null,8,AC)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",BC,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",TC,[(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,VC)),(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",xC,[(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]=(...a)=>e.onTransitionEnd&&e.onTransitionEnd(...a))},[(0,t.createElementVNode)("view",$C,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var Fa=re(wC,[["render",DC]]),IC=(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:qC,create:PC,scope:MC}=J("table"),zC=PC({components:{RenderColumn:IC,DownArrow:ae.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:o}){const{t:l}=(0,ve.useFoxI18n)(MC),r=(0,t.reactive)({curData:e.data}),i=(0,t.computed)(()=>({[qC]:!0})),a=g=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${g.align?g.align:""}`]:!0}),u=g=>g.stylehead?g.stylehead:"",s=g=>g.stylecolumn?g.stylecolumn:"",d=g=>e.columns.filter(N=>N.key===g)[0],h=g=>{const N=e.columns.filter(k=>k.key===g);return N[0].stylecolumn?N[0].stylecolumn:""},c=g=>{g.sorter&&(n("sorter",g),r.curData=typeof g.sorter=="function"?r.curData.sort(g.sorter):g.sorter==="default"?r.curData.sort():r.curData)},p=()=>e.columns.map(g=>[g.key,g.render]);return(0,t.watch)(()=>e.data,g=>{r.curData=g.slice()}),{...(0,t.toRefs)(r),classes:i,cellClasses:a,getColumnItem:d,getColumnItemStyle:h,handleSorterClick:c,sortDataItem:p,t:l,stylehead:u,stylecolumn:s}}}),RC={class:"fox-table__main__head"},LC={class:"fox-table__main__head__tr"},FC=["onClick"],OC={class:"fox-table__main__body"},KC={key:1},UC={key:0,class:"fox-table__nodata"},HC={key:0,class:"fox-table__nodata__text"},_C={key:1,class:"fox-table__summary"},jC=["innerHTML"];function WC(e,n,o,l,r,i){const a=(0,t.resolveComponent)("DownArrow"),u=(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",RC,[(0,t.createElementVNode)("view",LC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,s=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__head__tr__th",e.cellClasses(s)]),key:s.key,onClick:d=>e.handleSorterClick(s),style:(0,t.normalizeStyle)(s.stylehead)},[(0,t.createTextVNode)((0,t.toDisplayString)(s.title)+" ",1),(0,t.renderSlot)(e.$slots,"icon"),!e.$slots.icon&&s.sorter?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,width:"12px",height:"12px"})):(0,t.createCommentVNode)("",!0)],14,FC))),128))])]),(0,t.createElementVNode)("view",OC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.curData,s=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-table__main__body__tr",key:s},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.sortDataItem(),([d,h])=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:(0,t.normalizeStyle)(e.getColumnItemStyle(d))},[typeof s[d]=="function"||typeof h=="function"?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,slots:[h,s[d]],record:s},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",KC,(0,t.toDisplayString)(s[d]),1))],6))),128))]))),128))])],2),e.curData.length?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",UC,[(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",HC,(0,t.toDisplayString)(e.t("noData")),1))],2)])),e.summary?((0,t.openBlock)(),(0,t.createElementBlock)("view",_C,[(0,t.createElementVNode)("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,jC)])):(0,t.createCommentVNode)("",!0)],2)}var Oa=re(zC,[["render",WC]]),{componentName:YC,create:XC}=J("ellipsis"),QC=XC({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,r=0;const i=(0,t.ref)(),a=(0,t.reactive)({exceeded:!1,expanded:!1}),u=(0,t.computed)(()=>({[YC]:!0}));(0,t.watch)(()=>e.content,(k,w)=>{k!=w&&s()}),(0,t.onMounted)(()=>{s()});const s=()=>{if(!o.value)return;const k=window.getComputedStyle(o.value);l=document.createElement("div"),Array.prototype.slice.apply(k).forEach(b=>{l.style.setProperty(b,k.getPropertyValue(b))}),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 w=p(k.lineHeight==="normal"?e.lineHeight:k.lineHeight);r=Math.floor(w*(Number(e.rows)+.5)+p(k.paddingTop)+p(k.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),d()},d=()=>{if(l.offsetHeight<=r)a.exceeded=!1,document.body.removeChild(l);else{a.exceeded=!0;const k=e.content.length,w=Math.floor((0+k)/2);i.value=e.direction==="middle"?c([0,w],[w,k]):h(0,k),document.body.removeChild(l)}},h=(k,w)=>{const b=a.expanded?e.collapseText:e.expandText,f=e.content.length;if(w-k<=1)return e.direction==="end"?{leading:e.content.slice(0,k)+e.symbol}:{tailing:e.symbol+e.content.slice(w,f)};const m=Math.round((k+w)/2);return e.direction==="end"?l.innerText=e.content.slice(0,m)+e.symbol+b:l.innerText=b+e.symbol+e.content.slice(m,f),l.offsetHeight<=r?e.direction==="end"?h(m,w):h(k,m):e.direction==="end"?h(k,m):h(m,w)},c=(k,w)=>{const b=a.expanded?e.collapseText:e.expandText,f=e.content.length;if(k[1]-k[0]<=1&&w[1]-w[0]<=1)return{leading:e.content.slice(0,k[0])+e.symbol,tailing:e.symbol+e.content.slice(w[1],f)};const m=Math.floor((k[0]+k[1])/2),S=Math.ceil((w[0]+w[1])/2);return l.innerText=e.content.slice(0,m)+e.symbol+b+e.symbol+e.content.slice(S,f),l.offsetHeight<=r?c([m,k[1]],[w[0],S]):c([k[0],m],[S,w[1]])},p=k=>{if(!k)return 0;const w=k.match(/^\d*(\.\d*)?/);return w?Number(w[0]):0},g=k=>{k==1?(a.expanded=!0,n("change","expand")):(a.expanded=!1,n("change","collapse"))},N=()=>{n("click")};return{...(0,t.toRefs)(a),root:o,ellipsis:i,classes:u,clickHandle:g,handleClick:N}}}),GC={key:0},ZC={key:1},JC={key:2};function e2(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[2]||(n[2]=(...a)=>e.handleClick&&e.handleClick(...a)),ref:"root"},[e.exceeded?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",GC,(0,t.toDisplayString)(e.content),1)),e.exceeded&&!e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",ZC,[(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)(a=>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",JC,[(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)(a=>e.clickHandle(2),["stop"]))},(0,t.toDisplayString)(e.collapseText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2)}var Ka=re(QC,[["render",e2]]),{componentName:t2,create:n2}=J("animate"),l2=n2({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:r}=(0,t.toRefs)(e),i=(0,t.reactive)({clicked:!1});let a=(0,t.computed)(()=>({"fox-animate__container":!0,[`${t2}-${o.value}`]:r.value==="initial"||i.clicked?o.value:!1,loop:l.value}));const u=s=>{i.clicked=!0,l.value||setTimeout(()=>{i.clicked=!1},1e3),n("click",s)};return{...(0,t.toRefs)(i),classes:a,handleClick:u}}}),o2={class:"fox-animate"};function a2(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",o2,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClick&&e.handleClick(...a)),style:(0,t.normalizeStyle)({animationDuration:e.duration?`${e.duration}ms`:void 0})},[(0,t.renderSlot)(e.$slots,"default")],6)])}var Ua=re(l2,[["render",a2]]),{componentName:r2,create:i2}=J("watermark"),s2=i2({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:r,gapY:i,width:a,height:u,rotate:s,image:d,imageWidth:h,imageHeight:c,content:p,fontStyle:g,fontWeight:N,fontColor:k,fontSize:w,fontFamily:b}=e,f=()=>{const S=document.createElement("canvas"),B=window.devicePixelRatio,v=S.getContext("2d"),y=`${(r+a)*B}px`,V=`${(i+u)*B}px`,T=a*B,A=u*B;if(S.setAttribute("width",y),S.setAttribute("height",V),v)if(d){v.translate(T/2,A/2),v.rotate(Math.PI/180*Number(s));const C=new Image;C.crossOrigin="anonymous",C.referrerPolicy="no-referrer",C.src=d,C.onload=()=>{v.drawImage(C,-h*B/2,-c*B/2,h*B,c*B),v.restore(),o.base64Url=S.toDataURL()}}else p&&(v.textBaseline="middle",v.textAlign="center",v.translate(T/2,A/2),v.rotate(Math.PI/180*Number(s)),v.font=`${g} normal ${N} ${Number(w)*B}px/${A}px ${b}`,v.fillStyle=k,v.fillText(p,0,0),v.restore(),o.base64Url=S.toDataURL());else throw new Error("当前环境不支持Canvas")};f(),(0,t.watch)(()=>[l,r,i,a,u,s,d,h,c,p,g,N,k,w,b],()=>{f()});const m=(0,t.computed)(()=>{const S=r2;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(o),classes:m}}});function u2(e,n,o,l,r,i){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 Ha=re(s2,[["render",u2]]);function c2(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:d2,create:f2}=J("trend-arrow"),m2=f2({components:{TriangleUp:ae.TriangleUp,TriangleDown:ae.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=(0,t.reactive)({rateTrend:e.rate>0}),o=(0,t.computed)(()=>({[d2]:!0})),l=(0,t.computed)(()=>{const{rate:i,digits:a,showSign:u,showZero:s}=e;n.rateTrend=i>0;const d=Math.abs(i);return!s&&i===0?"--":`${u&&i!==0?n.rateTrend?"+":"-":""}${c2(Number(d),a)}%`}),r=(0,t.computed)(()=>{const{dropColor:i,riseColor:a,syncTextColor:u,textColor:s,rate:d}=e;return{color:d===0?s:u?n.rateTrend?a:i:s}});return{...(0,t.toRefs)(n),classes:o,calcRate:l,calcStyle:r}}});function p2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("TriangleUp"),u=(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)(a,{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)(u,{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 _a=re(m2,[["render",p2]]),{create:h2}=J("tour"),v2=h2({components:{[Zt.name]:Zt,Close:ae.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const o=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),l=(0,t.ref)({}),r=(0,t.computed)(()=>"fox-tour"),i=(0,t.computed)(()=>{const{offset:h,maskWidth:c,maskHeight:p}=e,{width:g,height:N,left:k,top:w}=l.value,b=[k+g/2,w+N/2],f=Number(c||g),m=Number(p||N);return{width:`${f+ +h[1]*2}px`,height:`${m+ +h[0]*2}px`,top:`${b[1]-m/2-+h[0]}px`,left:`${b[0]-f/2-+h[1]}px`}}),a=h=>{h=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,(0,t.nextTick)(()=>{o.showPopup=!0,u()}),n("change",o.active)},u=()=>{l.value=$e(document.querySelector(`#${e.steps[o.active].target}`))},s=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&s()};return(0,t.onMounted)(()=>{o.active=0,u()}),(0,t.watch)(()=>e.modelValue,h=>{h&&u(),o.active=0,o.showTour=h,o.showPopup=h}),{...(0,t.toRefs)(o),classes:r,maskStyle:i,changeStep:a,close:s,handleClickMask:d}}}),g2={key:0,class:"fox-tour-content"},y2={key:0,class:"fox-tour-content-top"},b2={class:"fox-tour-content-inner"},S2={class:"fox-tour-content-bottom"},k2={class:"fox-tour-content-bottom-init"},w2={class:"fox-tour-content-bottom-operate"},C2={key:1,class:"fox-tour-content fox-tour-content-tile"},N2={class:"fox-tour-content-inner"};function A2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Close"),u=(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]=(...s)=>e.handleClickMask&&e.handleClickMask(...s))},null,512),[[t.vShow,e.showTour]]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.steps,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:d,style:{height:"0"}},[d==e.active?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.showTour?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:(0,t.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(u,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=h=>e.showPopup=h),location:s.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:s.popoverOffset||[0,12],arrowOffset:s.arrowOffset||0},{content:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,t.openBlock)(),(0,t.createElementBlock)("div",g2,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",y2,[(0,t.createElementVNode)("div",{onClick:n[1]||(n[1]=(...h)=>e.close&&e.close(...h))},[(0,t.createVNode)(a,{class:"fox-tour-content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",b2,(0,t.toDisplayString)(s.content),1),(0,t.createElementVNode)("div",S2,[(0,t.createElementVNode)("div",k2,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",w2,[(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]=h=>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]=(...h)=>e.close&&e.close(...h))},(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]=h=>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",C2,[(0,t.createElementVNode)("div",N2,(0,t.toDisplayString)(s.content),1)])):(0,t.createCommentVNode)("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):(0,t.createCommentVNode)("",!0)]))),128))],2)}var ja=re(v2,[["render",A2]]),{componentName:B2,create:T2}=J("barrage"),V2=T2({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)(()=>({[B2]:!0}));let r=(0,t.ref)(document.createElement("div")),i=(0,t.ref)(document.createElement("div")),a=null;const u=(0,t.ref)(e.danmu),s=(0,t.ref)(e.rows),d=(0,t.ref)(e.top),h=(0,t.ref)(0),c=e.speeds,p=(0,t.ref)(0);(0,t.onMounted)(()=>{g(),o&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(k(),h.value=0,N("hidden")):document.visibilityState==="visible"&&g()})}),(0,t.onUnmounted)(()=>{u.value=[],k()});const g=()=>{p.value=r.value.offsetWidth,o&&N("init"),setTimeout(()=>{r.value?.style.setProperty("--move-distance",`-${p.value}px`),b()},300)},N=m=>{let S=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const B=[];S&&Array.from(S).forEach(v=>{m=="init"?(v.style.opacity="0",B.push(v)):(v.classList="",v.style={})}),m=="init"&&(u.value=B)},k=()=>{a&&(clearTimeout(a),a=null)};(0,t.watch)(()=>e.danmu,m=>{e.danmu.length>0&&(u.value=[...m])});const w=m=>{const S=h.value%u.value.length;!e.loop&&h.value===u.value.length?u.value.splice(u.value.length,0,m):u.value.splice(S,0,m)},b=()=>{k(),a=setTimeout(()=>{f()},e.frequency)},f=()=>{const m=e.loop?h.value%u.value.length:h.value;let S=document.createElement("view");o&&typeof u.value[m]=="object"?(S=u.value[m],S?.classList?.add("fox-barrage__item")):(S.innerHTML=u.value[m],S.classList.add("fox-barrage__item"),i.value.appendChild(S)),(0,t.nextTick)(()=>{const B=S.offsetHeight;if(S?.classList?.add("move"),S.style.animationDuration=`${c}ms`,S.style.top=m%s.value*(B+d.value)+20+"px",S.style.opacity="1",!o){const v=S.offsetWidth;S.style.width=v+20+"px"}S.addEventListener("animationend",()=>{o?S.classList.remove("move"):i.value.removeChild(S)}),!(!e.loop&&h.value>=u.value.length-1)&&(h.value++,h.value>=u.value.length&&(h.value=0),S.removeEventListener("animationend",()=>{}),b())})};return{classTime:n,classes:l,danmuList:u,dmBody:r,dmContainer:i,add:w}}});function x2(e,n,o,l,r,i){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 Wa=re(V2,[["render",x2]]),{componentName:E2,create:$2,scope:D2}=J("signature"),I2=$2({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:{FoxButton:xt},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n,expose:o}){const{toLocaleRefs:l}=(0,ve.useFoxI18n)(D2),r=l(e,["unSupportTpl","reSign","confirmText"]),i=(0,t.ref)(null),a=(0,t.ref)(null),u=(0,t.computed)(()=>({[E2]:!0,[`${e.customClass}`]:e.customClass})),s=(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"]}),d=()=>{let m=document.createElement("canvas");return!!(m.getContext&&m.getContext("2d"))},h=()=>{i.value.addEventListener(s.events[0],c,!1)},c=m=>{m.preventDefault(),s.ctx.beginPath(),s.ctx.lineWidth=e.lineWidth,s.ctx.strokeStyle=e.strokeStyle,n("start"),i.value.addEventListener(s.events[1],p,!1),i.value.addEventListener(s.events[2],g,!1),i.value.addEventListener(s.events[3],N,!1)},p=m=>{m.preventDefault();let S=s.isSupportTouch?m.touches[0]:m;n("signing",S);let B=i.value.getBoundingClientRect(),v=S.clientX-B.left,y=S.clientY-B.top;s.ctx.lineTo(v,y),s.ctx.stroke()},g=m=>{m.preventDefault(),n("end"),i.value.removeEventListener(s.events[1],p,!1),i.value.removeEventListener(s.events[2],g,!1)},N=m=>{m.preventDefault(),i.value.removeEventListener(s.events[1],p,!1),i.value.removeEventListener(s.events[2],g,!1)},k=()=>{i.value.addEventListener(s.events[2],g,!1),s.ctx.clearRect(0,0,s.canvasWidth,s.canvasHeight),s.ctx.closePath(),n("clear")},w=()=>{f(i.value)},b=m=>{if(!m)return!0;var S=document.createElement("canvas");return S.width=m.width,S.height=m.height,m?.toDataURL()==S.toDataURL()},f=m=>{let S;switch(e.type){case"png":S=m.toDataURL("image/png");break;case"jpg":S=m.toDataURL("image/jpeg",.8);break}n("confirm",b(m)?"请绘制签名":m,b(m)?"":S)};return(0,t.onMounted)(()=>{d()&&(s.ctx=i.value.getContext("2d"),s.canvasWidth=a.value.offsetWidth,s.canvasHeight=a.value.offsetHeight,h())}),o({confirm:w,clear:k}),{...r,...(0,t.toRefs)(s),canvas:i,wrap:a,isCanvasSupported:d,confirm:w,clear:k,classes:u}}}),q2={class:"fox-signature__inner",ref:"wrap"},P2=["height","width"],M2={key:0,class:"fox-signature-unsopport"},z2={class:"fox-signature__toolbar"};function R2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxButton");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",q2,[(0,t.withDirectives)((0,t.createElementVNode)("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,P2),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("p",M2,(0,t.toDisplayString)(e.unSupportTpl),1))],512),(0,t.createElementVNode)("div",z2,[(0,t.renderSlot)(e.$slots,"toolbar",{},()=>[(0,t.createVNode)(a,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=u=>e.clear())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.reSign),1)]),_:1}),(0,t.createVNode)(a,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=u=>e.confirm())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.confirmText),1)]),_:1})])])],2)}var Ya=re(I2,[["render",R2]]),L2=[oo,ro,io,so,uo,ln,Gn,fo,mo,po,ho,vo,el,yo,ko,No,Ao,il,sl,Bo,ul,cl,To,xo,Vt,Eo,Do,hl,Io,Po,an,rn,ll,Mo,zo,Ro,Lo,it,Fo,Oo,Zn,wt,Jn,Ko,Uo,xt,Ho,_o,jo,ut,we,Wo,Yo,Xo,Qo,Wt,Go,Zo,Jo,ea,ta,na,la,oa,aa,ra,ia,sa,ua,ca,da,fa,ma,Yt,pl,ol,rl,al,vl,fl,on,pa,ha,va,ga,ya,ba,Sa,Qt,ml,ka,Ca,dl,Et,Aa,Ba,Gt,Ta,Va,Xt,xa,Ea,$a,At,Da,Ia,Bt,Tt,Xn,gl,qa,Pa,Ma,za,Zt,Ra,La,Fa,Oa,Ka,Ua,Ha,_a,ja,Wa,Ya],F2=new Hs(L2,"4.0.0");exports.AbstractPageScopeKey=no;exports.ActionSheet=ya;exports.FoxActionSheet=ya;exports.ActionsheetItem=Io;exports.FoxActionsheetItem=Io;exports.ActionsheetPane=hl;exports.FoxActionsheetPane=hl;exports.Animate=Ua;exports.FoxAnimate=Ua;exports.Audio=Aa;exports.FoxAudio=Aa;exports.AudioOperate=Ba;exports.FoxAudioOperate=Ba;exports.Avatar=Gt;exports.FoxAvatar=Gt;exports.AvatarGroup=Ta;exports.FoxAvatarGroup=Ta;exports.BackTop=ba;exports.FoxBackTop=ba;exports.Badge=Ma;exports.FoxBadge=Ma;exports.Barrage=Wa;exports.FoxBarrage=Wa;exports.Broadcast=jr;exports.BroadcastKey=Me;exports.Button=xt;exports.FoxButton=xt;exports.ButtonsItem=fo;exports.FoxButtonsItem=fo;exports.Calendar=rl;exports.FoxCalendar=rl;exports.CalendarItem=Ao;exports.FoxCalendarItem=Ao;exports.Cascader=ol;exports.FoxCascader=ol;exports.CascaderItem=ko;exports.FoxCascaderItem=ko;exports.Cell=Ho;exports.FoxCell=Ho;exports.CellGroup=jo;exports.FoxCellGroup=jo;exports.Checkbox=ul;exports.FoxCheckbox=ul;exports.CheckboxGroup=cl;exports.FoxCheckboxGroup=cl;exports.CheckboxItem=To;exports.FoxCheckboxItem=To;exports.CircleProgress=xa;exports.FoxCircleProgress=xa;exports.Col=Xo;exports.FoxCol=Xo;exports.Collapse=La;exports.FoxCollapse=La;exports.CollapseItem=Fa;exports.FoxCollapseItem=Fa;exports.Content=so;exports.FoxContent=so;exports.CountDown=Pa;exports.FoxCountDown=Pa;exports.CountUp=qa;exports.FoxCountUp=qa;exports.DataItemsKey=Ft;exports.DateItem=No;exports.FoxDateItem=No;exports.DatePicker=al;exports.FoxDatePicker=al;exports.DateUtils=gt;exports.Dialog=Qt;exports.FoxDialog=Qt;exports.Divider=Go;exports.FoxDivider=Go;exports.Domain=Mn;exports.DomainKey=Ge;exports.DomainProvider=Ko;exports.FoxDomainProvider=Ko;exports.Drag=Sa;exports.FoxDrag=Sa;exports.Dropdown=Oo;exports.FoxDropdown=Oo;exports.Elevator=ra;exports.FoxElevator=ra;exports.Ellipsis=Ka;exports.FoxEllipsis=Ka;exports.Empty=$a;exports.FoxEmpty=$a;exports.FixedNav=ta;exports.FoxFixedNav=ta;exports.FloatingButton=Ro;exports.FoxFloatingButton=Ro;exports.FooterBar=io;exports.FoxFooterBar=io;exports.FoxGrid=Zo;exports.Grid=Zo;exports.FoxGridItem=Jo;exports.GridItem=Jo;exports.FoxGroup=uo;exports.Group=uo;exports.FoxHeaderBar=ro;exports.HeaderBar=ro;exports.FoxHintText=Vt;exports.HintText=Vt;exports.FoxIcon=_o;exports.Icon=_o;exports.FoxImage=Wo;exports.Image=Wo;exports.FoxImagePreview=gl;exports.ImagePreview=gl;exports.FoxIndicator=ca;exports.Indicator=ca;exports.FoxInfiniteLoading=ml;exports.InfiniteLoading=ml;exports.FoxInputItem=po;exports.InputItem=po;exports.FoxInputNumber=vl;exports.InputNumber=vl;exports.FoxInputNumberItem=Po;exports.InputNumberItem=Po;exports.FoxItem=ln;exports.Item=ln;exports.FoxLayout=Yo;exports.Layout=Yo;exports.FoxLinkItem=Eo;exports.LinkItem=Eo;exports.FoxList=Va;exports.List=Va;exports.FoxMapping=Jn;exports.Mapping=Jn;exports.FoxMenu=na;exports.Menu=na;exports.FoxMenuItem=la;exports.MenuItem=la;exports.FoxMessageBox=it;exports.MessageBox=it;exports.FoxMoneyItem=ho;exports.MoneyItem=ho;exports.FoxMoreButton=Lo;exports.MoreButton=Lo;exports.FoxNavbar=ea;exports.Navbar=ea;exports.FoxNoticeBar=Ea;exports.NoticeBar=Ea;exports.FoxNotify=Ca;exports.Notify=Ca;exports.FoxNumberKeyboard=va;exports.NumberKeyboard=va;exports.FoxOverLay=ut;exports.OverLay=ut;exports.FoxPage=oo;exports.Page=oo;exports.FoxPagination=ia;exports.Pagination=ia;exports.FoxPicker=on;exports.Picker=on;exports.FoxPickerItem=yo;exports.PickerItem=yo;exports.FoxPopover=Zt;exports.Popover=Zt;exports.FoxPopoverDialog=Zn;exports.PopoverDialog=Zn;exports.FoxPopup=we;exports.Popup=we;exports.FoxPopupWrapper=Fo;exports.PopupWrapper=Fo;exports.FoxPrice=Xn;exports.Price=Xn;exports.FoxProgress=Xt;exports.Progress=Xt;exports.FoxPullRefresh=ka;exports.PullRefresh=ka;exports.FoxRadio=il;exports.Radio=il;exports.FoxRadioGroup=sl;exports.RadioGroup=sl;exports.FoxRadioItem=Bo;exports.RadioItem=Bo;exports.FoxRange=Yt;exports.Range=Yt;exports.FoxRate=fl;exports.Rate=fl;exports.FoxRateItem=Do;exports.RateItem=Do;exports.FoxRollingProvider=Uo;exports.RollingProvider=Uo;exports.FoxRow=Qo;exports.Row=Qo;exports.FoxRowItem=Gn;exports.RowItem=Gn;exports.FoxSearchBar=pl;exports.SearchBar=pl;exports.FoxShortPassword=pa;exports.ShortPassword=pa;exports.FoxSideNavBar=da;exports.SideNavBar=da;exports.FoxSideNavBarItem=fa;exports.SideNavBarItem=fa;exports.FoxSignature=Ya;exports.Signature=Ya;exports.FoxSkeleton=Ra;exports.Skeleton=Ra;exports.FoxSlotItem=mo;exports.SlotItem=mo;exports.FoxStep=Ia;exports.Step=Ia;exports.FoxSteps=Da;exports.Steps=Da;exports.FoxStepsBar=zo;exports.StepsBar=zo;exports.FoxSticky=Wt;exports.Sticky=Wt;exports.FoxSubSideNavBar=ma;exports.SubSideNavBar=ma;exports.FoxSwipe=ga;exports.Swipe=ga;exports.FoxSwiper=Bt;exports.Swiper=Bt;exports.FoxSwiperItem=Tt;exports.SwiperItem=Tt;exports.FoxSwitch=dl;exports.Switch=dl;exports.FoxSwitchItem=xo;exports.SwitchItem=xo;exports.FoxTabPane=ua;exports.TabPane=ua;exports.FoxTabbar=oa;exports.Tabbar=oa;exports.FoxTabbarItem=aa;exports.TabbarItem=aa;exports.FoxTable=Oa;exports.Table=Oa;exports.FoxTabs=sa;exports.Tabs=sa;exports.FoxTabsBar=an;exports.TabsBar=an;exports.FoxTabsContainer=rn;exports.TabsContainer=rn;exports.FoxTabsFrame=Mo;exports.TabsFrame=Mo;exports.FoxTabsPane=ll;exports.TabsPane=ll;exports.FoxTag=za;exports.Tag=za;exports.FoxText=wt;exports.Text=wt;exports.FoxTextarea=el;exports.Textarea=el;exports.FoxTextareaItem=vo;exports.TextareaItem=vo;exports.FoxToast=Et;exports.Toast=Et;exports.FoxTour=ja;exports.Tour=ja;exports.FoxTrendArrow=_a;exports.TrendArrow=_a;exports.FoxUploader=ha;exports.Uploader=ha;exports.FoxVideo=At;exports.Video=At;exports.FoxWaterMark=Ha;exports.WaterMark=Ha;exports.InnerPageScopeKey=to;exports.PriorityPolicy=Fl;exports.UniqueID=Qn;exports.ValidateSchema=Gr;exports.ValidateSchemaKey=Xe;exports.browseProperty=ui;exports.cancelRaf=Ir;exports.clamp=_e;exports.clearNonNumber=zl;exports.compareTo=ql;exports.createBroadcast=en;exports.createValidateSchema=Pn;exports.debounce=Ie;exports.debounceRef=$s;exports.decimalLength=_r;exports.default=F2;exports.defineConfigDomain=Jr;exports.defineDataItem=ei;exports.defineDomain=eo;exports.defineDomainItemProperty=Te;exports.defineItem=Be;exports.definePageState=ti;exports.defineSimpleItem=Oe;exports.deleteGlobalValidator=Ts;exports.disabledProperty=si;exports.divide=Gl;exports.excludeProps=tt;exports.extend=bt;exports.floatData=ks;exports.getGlobalIcons=On;exports.getGlobalValidateCheckEvents=Yr;exports.getGlobalValidateResetEvents=Qr;exports.getPageContentAreaHeight=Nn;exports.getPageContentAreaWidth=An;exports.getPageFooterAreaHeight=Ln;exports.getPageHeaderAreaHeight=Rn;exports.getRootDomain=ht;exports.hasSymbol=Fr;exports.includeProps=ye;exports.indexOf=bs;exports.injectAbstractPageScope=nn;exports.injectAbstractPageScopeForContent=ri;exports.injectAbstractPageScopeForFooterBar=ai;exports.injectAbstractPageScopeForHeaderBar=oi;exports.injectInnerPageScope=tn;exports.integerLength=Hr;exports.isArray=Dn;exports.isArrayLike=Kr;exports.isBrowser=et;exports.isDate=je;exports.isDisplayNone=Zl;exports.isESModule=ps;exports.isEmptyString=me;exports.isEqual=Ee;exports.isFunction=Sn;exports.isHidden=Pl;exports.isMap=cs;exports.isNil=Ve;exports.isNumberString=qn;exports.isObject=xe;exports.isPlainObject=ms;exports.isPromise=yt;exports.isRegExp=Ml;exports.isSet=ds;exports.isString=Rr;exports.isSubPage=Ms;exports.isSymbol=fs;exports.isTouch=tl;exports.isWindow=Or;exports.kebabToPascal=kn;exports.lastIndexOf=Ss;exports.makeArray=ys;exports.merge=Ur;exports.multiply=Pr;exports.negate=Mr;exports.nextTick=vs;exports.numberFormat=$n;exports.objectToString=Lr;exports.once=Ds;exports.overrideGlobalIcons=Zs;exports.overrideGlobalValidateHandler=As;exports.padZero=at;exports.pascalToKebab=ws;exports.preventDefault=Rl;exports.property=Ae;exports.provideAbstractPageScope=li;exports.provideInnerPageScope=ni;exports.px2Number=Ps;exports.raf=He;exports.readonlyProperty=ii;exports.setGlobalValidateCheckEvents=Vs;exports.setGlobalValidateHandler=Ns;exports.setGlobalValidateMessages=Es;exports.setGlobalValidateResetEvents=xs;exports.setGlobalValidator=Bs;exports.throttle=Cn;exports.toBoolean=Se;exports.toNumber=de;exports.toPadding=Le;exports.toPx=ue;exports.toPxDesc=qs;exports.toPxString=he;exports.toTypeString=In;exports.toValue=qe;exports.tryTimes=Jl;exports.typeOf=St;exports.unNumberFormat=zr;exports.updatePageState=Ll;exports.useBroadcast=Lt;exports.useDomain=nt;exports.useInnerSize=Fn;exports.usePageState=zn;exports.usePosition=co;exports.useRawTouch=nl;exports.useRect=$e;exports.useSize=ao;exports.useSlotChildren=Yn;exports.useTouch=ot;exports.valueLength=ke;