@fox-js/foxui 4.0.1-88 → 4.0.1-89
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 +2 -2
- package/dist/index.esm.js +3113 -3110
- package/dist/index.umd.js +2 -2
- package/dist/style.css +9 -5
- package/dist/style.js +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(V,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("@fox-js/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","@fox-js/icons-vue","@fox-js/i18n"],t):(V=typeof globalThis<"u"?globalThis:V||self,t(V.FoxUI={},V.Vue,V.FoxValidator,V.FoxIconsVue,V.FoxI18n))})(this,function(V,t,ot,oe,ge){Object.defineProperties(V,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var es=Object.create,Go=Object.defineProperty,ts=Object.getOwnPropertyDescriptor,ns=Object.getOwnPropertyNames,ls=Object.getPrototypeOf,as=Object.prototype.hasOwnProperty,Oe=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),os=(e,n,a,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var o=ns(n),i=0,r=o.length,c;i<r;i++)c=o[i],!as.call(e,c)&&c!==a&&Go(e,c,{get:(s=>n[s]).bind(null,c),enumerable:!(l=ts(n,c))||l.enumerable});return e},Ke=(e,n,a)=>(a=e!=null?es(ls(e)):{},os(n||!e||!e.__esModule?Go(a,"default",{value:e,enumerable:!0}):a,e)),dn=window,rs=typeof window<"u";function is(){return typeof dn<"u"?dn.requestAnimationFrame||dn.webkitRequestAnimationFrame||function(e){dn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function _o(e){rs?cancelAnimationFrame(e):clearTimeout(e)}var Ye=is();function fn(e,n="0"){let a=0,l=-1;e[0]=="-"&&(a++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,l=2,n=n.substring(1),n.length),e=Ae(e),n=Ae(n),[e,n]=kl(Ae(e),Ae(n)),a==1&&(l==1?e=Sl(e):n=Sl(n));let o=Zo(e,n);return a?a==2?"-"+Ae(o):e.length<o.length?Ae(o.substring(1)):"-"+Ae(Sl(o)):Ae(o)}function Sl(e){let n="",a=e.length,l=e.split(".")[1],o=l?l.length:0;for(let r=0;r<a;r++)e[r]>="0"&&e[r]<="9"?n+=9-parseInt(e[r]):n+=e[r];let i=o>0?"0."+new Array(o).join("0")+"1":"1";return Zo(n,i)}function Ae(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 kl(e,n){let a=e.split("."),l=n.split("."),o=a[0].length,i=l[0].length;return o>i?l[0]=new Array(Math.abs(o-i)+1).join("0")+(l[0]?l[0]:""):a[0]=new Array(Math.abs(o-i)+1).join("0")+(a[0]?a[0]:""),o=a[1]?a[1].length:0,i=l[1]?l[1].length:0,(o||i)&&(o>i?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(o-i)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(o-i)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Zo(e,n){[e,n]=kl(e,n);let a="",l=0;for(let o=e.length-1;o>=0;o--){if(e[o]==="."){a="."+a;continue}let i=parseInt(e[o])+parseInt(n[o])+l;a=i%10+a,l=Math.floor(i/10)}return l?l.toString()+a:a}var Ne=(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 qt(e,n=0,a=Ne.HALF_EVEN){if(a===Ne.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 o=e.split("."),i=o[0],r=o[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)+r,s=qt(e,0,a),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return i.length,Jo(o[1],i,l,a)?(l?"-":"")+wl(i):(l?"-":"")+i;if(o[1]){if(o[1].length<n)return(l?"-":"")+i+"."+o[1]+new Array(n-o[1].length+1).join("0")}else return(l?"-":"")+i+"."+new Array(n+1).join("0");r=o[1].substring(0,n);let c=o[1].substring(n);return c&&Jo(c,r,l,a)&&(r=wl(r),r.length>n)?(l?"-":"")+wl(i,parseInt(r[0]))+"."+r.substring(1):(l?"-":"")+i+"."+r}function Jo(e,n,a,l){if(!e||e===new Array(e.length+1).join("0")||l===Ne.DOWN||!a&&l===Ne.FLOOR||a&&l===Ne.CEILING)return!1;if(l===Ne.UP||a&&l===Ne.FLOOR||!a&&l===Ne.CEILING)return!0;let o="5"+new Array(e.length).join("0");if(e>o)return!0;if(e<o)return!1;switch(l){case Ne.HALF_DOWN:return!1;case Ne.HALF_UP:return!0;case Ne.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function wl(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,l="";for(let o=a;o>=0;o--){let i=parseInt(e[o])+n;i==10?(n=1,i=0):n=0,l+=i}return n&&(l+=n),l.split("").reverse().join("")}function Cl(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=Pt(e),n=Pt(n);let l=0,o=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(o=n.length-n.indexOf(".")-1);let i=l+o;if(e=Pt(e.replace(".","")),n=Pt(n.replace(".","")),e.length<n.length){let u=e;e=n,n=u}if(n=="0")return"0";let r=n.length,c=0,s=[],d=r-1,h="";for(let u=0;u<r;u++)s[u]=e.length-1;for(let u=0;u<2*e.length;u++){let p=0;for(let y=n.length-1;y>=d&&y>=0;y--)s[y]>-1&&s[y]<e.length&&(p+=parseInt(e[s[y]--])*parseInt(n[y]));p+=c,c=Math.floor(p/10),h=p%10+h,d--}return h=Pt(ss(h,i)),a==1&&(h="-"+h),h}function ss(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 Pt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Nl(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var o=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ae(n.replace(".","")),o>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ae(e+new Array(o+1).join("0"));else if(o>d)e=e.replace(".",""),e=Ae(e+new Array(o-d+1).join("0"));else if(o<d){e=e.replace(".","");let h=e.length-d+o;e=Ae(e.substring(0,h)+"."+e.substring(h))}else o==d&&(e=Ae(e.replace(".","")))}let i=0,r=n.length,c="",s=e.indexOf(".")>-1&&e.indexOf(".")<r?e.substring(0,r+1):e.substring(0,r);if(e=e.indexOf(".")>-1&&e.indexOf(".")<r?e.substring(r+1):e.substring(r),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),r>s.length&&(d+=r-s.length,s=s+new Array(r-s.length+1).join("0")),i=d,c="0."+new Array(d).join("0")}for(a=a+2;i<=a;){let d=0;for(;parseInt(s)>=parseInt(n);)s=fn(s,"-"+n),d++;c+=d,e?(e[0]=="."&&(c+=".",i++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(i||(c+="."),i++,s=s+"0")}return(l==1?"-":"")+Ae(qt(c,a-2))}function Al(e,n){return e=e.toString(),n=n.toString(),n=Bl(n),fn(e,n)}function Bl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function er(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),tr(e),tr(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Al(e,Cl(n,qt(Nl(e,n),0,Ne.FLOOR)));return a+l}function tr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function nr(e,n){let a=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),a=!0),[e,n]=kl(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]?a?-1:1:a?1:-1;return 0}var xt=class pe{value;static RoundingModes=Ne;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,l]=n.split(/[eE]/);a=Ae(a);let o="";a[0]=="-"&&(o="-",a=a.substring(1)),a.indexOf(".")>=0?(l=parseInt(l)+a.indexOf("."),a=a.replace(".","")):l=parseInt(l)+a.length,a.length<l?n=o+a+new Array(l-a.length+1).join("0"):a.length>=l&&l>0?n=o+Ae(a.substring(0,l))+(a.length>l?"."+a.substring(l):""):n=o+"0."+new Array(-l+1).join("0")+a}return n}constructor(n="0"){this.value=pe.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,l){if(!(a||l))a=3,l=",";else if(!(a&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=pe.validate(n);let o=n.charAt(0)=="-";o&&(n=n.substring(1));var i=n.indexOf(".");i=i>0?i:n.length;for(var r="",c=i;c>0;)c<a?(a=c,c=0):c-=a,r=n.substring(c,c+a)+(c<i-a&&c>=0?l:"")+r;return(o?"-":"")+r+n.substring(i)}getPrettyValue(n,a){return pe.getPrettyValue(this.value,n,a)}static round(n,a=0,l=Ne.HALF_EVEN){if(n=pe.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return qt(n,a,l)}round(n=0,a=Ne.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new pe(qt(this.value,n,a))}static floor(n){return n=pe.validate(n),n.indexOf(".")===-1?n:pe.round(n,0,Ne.FLOOR)}floor(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,Ne.FLOOR)}static ceil(n){return n=pe.validate(n),n.indexOf(".")===-1?n:pe.round(n,0,Ne.CEILING)}ceil(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,Ne.CEILING)}static add(n,a){return n=pe.validate(n),a=pe.validate(a),fn(n,a)}add(n){return new pe(fn(this.value,n.getValue()))}static subtract(n,a){return n=pe.validate(n),a=pe.validate(a),Al(n,a)}subtract(n){return new pe(Al(this.value,n.getValue()))}static multiply(n,a){return n=pe.validate(n),a=pe.validate(a),Cl(n,a)}multiply(n){return new pe(Cl(this.value,n.getValue()))}static divide(n,a,l){return n=pe.validate(n),a=pe.validate(a),Nl(n,a,l)}divide(n,a){return new pe(Nl(this.value,n.getValue(),a))}static modulus(n,a){return n=pe.validate(n),a=pe.validate(a),er(n,a)}modulus(n){return new pe(er(this.value,n.getValue()))}static compareTo(n,a){return n=pe.validate(n),a=pe.validate(a),nr(n,a)}compareTo(n){return nr(this.value,n.getValue())}static negate(n){return n=pe.validate(n),Bl(n)}negate(){return new pe(Bl(this.value))}};function lr(e,n){return xt.multiply(`${e}`,`${n}`)}function Tl(e,n,a=8){return xt.divide(`${e}`,`${n}`,a)}var F2=xt.RoundingModes;function Vl(e,n){return e=`${e}`,n=`${n}`,xt.compareTo(e,n)}function ar(e){return xt.negate(e)}function mn(e,n=-1,a=!1,l=3,o=","){let i=`${e}`;if(i.length==0||i==="-")return"";let r=i.charAt(0);r=="-"?i=i.substring(1):r="";let c=i,s="",d=i.indexOf(".");d!=-1&&(c=i.substring(0,d),s=i.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):a&&n>s.length&&(s=s.padEnd(n,"0")));let h;if(l>0){let u="",p=c.split("").reverse();for(let y=0;y<p.length;y++)u+=p[y]+((y+1)%l==0&&y+1!=p.length?o:"");s.length==0?h=`${r}${u.split("").reverse().join("")}`:h=`${r}${u.split("").reverse().join("")}.${s}`}else s.length==0?h=`${r}${c}`:h=`${r}${c}.${s}`;return h}function or(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let l=n.replace(/[^\d\.-]/g,"");return`${a}${l}`}var Xe=typeof window<"u",Ue=Ye;function Ee(e){return e==null}var pn=Array.isArray,cs=e=>gn(e)==="[object Map]",us=e=>gn(e)==="[object Set]",He=e=>e instanceof Date,hn=e=>typeof e=="function",rr=e=>typeof e=="string",ds=e=>typeof e=="symbol",$e=e=>e!==null&&typeof e=="object",ft=e=>$e(e)&&hn(e.then)&&hn(e.catch),ir=Object.prototype.toString,gn=e=>ir.call(e),fs=e=>gn(e)==="[object Object]",sr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ms(e){return e.__esModule||sr&&e[Symbol.toStringTag]==="Module"}var ps=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function mt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,l=e.length,o=!1;for(typeof n=="boolean"&&(o=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<l;a++)if(e[a]!==null&&e[a]!==void 0){let i=e[a];for(let r in i){let c=n[r],s=i[r];if(c!==s)if(o===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=c&&Array.isArray(c)?c:[]:d=c&&typeof c=="object"?c:{},n[r]=mt(o,d,s)}else s!==void 0&&(n[r]=s)}}return n}var El=ps?Promise.resolve():null;function hs(e,...n){El!==null?n&&n.length>0?El.then(()=>{e(n)}):El.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 pt(e){let n=Object.prototype.toString.call(e);return e==null?String(e):gs[n]||"object"}function $l(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const a=window.getComputedStyle(n);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!0;n=n.parentElement}return!1}function Dl(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 cr(e){return e&&typeof e=="object"&&"setInterval"in e}function ur(e){let n=!!e&&"length"in e&&e.length,a=pt(e);return a==="function"||cr(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function dr(e,n){let a=+n.length,l=0,o=e.length;for(;l<a;l++)e[o++]=n[l];return e.length=o,e}function ys(e,n=[]){let a=n;return e!=null&&(ur(Object(e))?dr(a,typeof e=="string"?[e]:e):a.push(e)),a}function De(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=pt(e);if(a!==pt(n))return!1;if(a==="object"){let l=Object.keys(e),o=Object.keys(n);if(l.length!==o.length)return!1;for(let i=0;i<l.length;i++){let r=l[i],c=e[r],s=n[r];if(!De(c,s))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let o=e[l],i=n[l];if(!De(o,i))return!1}return!0}return!1}function Il(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var fe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function yn(e){return fe(e)?!1:(e.charAt(0)=="-"&&(e=e.substring(1)),fe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function fr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function mr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function pr(e,n,a){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(a,"")}function ql(e,n=!0,a=!0){n?e=pr(e,".",/\./g):e=e.replace(/\./g,""),a?e=pr(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(a=>{if(De(e,a))return!0}):n.indexOf(e)}function vs(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(l=>{if(De(e,l))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function ke(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function be(e,...n){const a={};return n.forEach(l=>{for(const o in l)a[o]=e[o]}),a}function Qe(e,...n){const a=[];n.forEach(o=>{Reflect.apply([].push,a,Reflect.ownKeys(o))});const l={};for(const o in e)a.includes(o)||(l[o]=e[o]);return l}var Ss=(e,n,a)=>{const l=Object.assign({},e),o=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(l).forEach(i=>{o.hasOwnProperty(i)?typeof o[i]=="string"&&(l[i]=n[o[i]]):n[i]&&(l[i]=n[i])}),l):e};function Pl(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var rt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},je=(e,n,a)=>Math.min(Math.max(e,n),a);function bn(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function ks(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var We=Symbol.for("BroadcastKey"),hr=class{parent;children=[];callbacks=new Map;exposed=null;name;persistantMessages=new Map;constructor(e,n,a){this.parent=e,this.exposed=n,this.name=a,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(a=>e===a);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,a){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,o={matched:e,action:n,args:a};return this.persistantMessages.set(l,o),!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 a=!1;return!n.name||n.name==="*"||n.name==="+"||Il(n.name)&&e&&n.name.test(e)?a=!0:typeof n.name=="function"?a=Reflect.apply(n.name,null,[e]):n.name===e&&(a=!0),a}trigger(e,n,a){let l=null;const o=this.callbacks.get(n);typeof o=="function"&&(l=Reflect.apply(o,null,[...a])),this.exposed&&typeof this.exposed[n]=="function"&&(l=Reflect.apply(this.exposed[n],this.exposed,[...a])),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(a=>{if(this.isMatched(this.name,a.matched))try{this.trigger(a.matched,a.action,a.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...a){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,a)){const i=e.resolve,r=e.uniqueId??"",c=(...s)=>{this.deletePersistantMessage(r),typeof i=="function"&&i(...s)};e.resolve=c}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):Il(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 o=[];if(l){const i=this.callbacks.get(n);if(typeof i=="function"){const r=Reflect.apply(i,null,[...a]);Ee(r)||o.push(r)}if(this.exposed&&typeof this.exposed[n]=="function"){const r=Reflect.apply(this.exposed[n],this.exposed,[...a]);Ee(r)||o.push(r)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...o),e.messagingPolicy==="Once")return o}return this.children.forEach(i=>{const r=Reflect.apply(i.emit,i,[{...e},n,...a]);Array.isArray(r)&&r.length>0&&Reflect.apply([].push,o,[...r])}),o}emitToChildren(e,n,...a){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,a)){const o=e.resolve,i=e.uniqueId??"",r=(...c)=>{this.deletePersistantMessage(i),typeof o=="function"&&o(...c)};e.resolve=r}e.cachePolicy="None"}const l=[];return this.children.forEach(o=>{const i=Reflect.apply(o.emit,o,[{...e},n,...a]);Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(e,n){this.callbacks.set(e,n)}};function vn(e,n,a,l){const o=new hr(n,e,a);if(l&&typeof l=="object")for(const i in l)o.on(i,l[i]);return o}function Mt(e){let n=e?.[We];return!n&&(0,t.hasInjectionContext)()&&(n=(0,t.inject)(We,null)),n}var ws=class{error(e,n){const a=Mt(n.exposed);a?a.emit({name:"*"},"setErrorTip",e):n.exposed&&typeof n.exposed.setErrorTip=="function"&&n.exposed.setErrorTip(e)}reset(e){const n=Mt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}success(e){const n=Mt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}decorate(e,n,a){Array.isArray(e)||(e=[e]);const l=Mt(a.exposed),o=n.find(r=>r.required===!0||r.type==="required"&&r.required!==!1),i=e.find(r=>r.required===!0||r.type==="required"&&r.required!==!1);!o&&i?l?l.emit({name:"*"},"setRequired",!0):a.exposed&&typeof a.exposed.setRequired=="function"&&a.exposed.setRequired(!0):o&&!i&&(l?l.emit({name:"*"},"setRequired",!1):a.exposed&&typeof a.exposed.setRequired=="function"&&a.exposed.setRequired(!1),this.reset(a))}getValue(e){return e.props.modelValue??e.exposed.modelValue}},Rt=new ws;function Cs(e){Rt=e}function Ns(e){Rt?Object.assign(Rt,e):Rt=e}function As(e,n){ot.Schema.setValidator(e,n)}function Bs(e){ot.Schema.deleteValidator(e)}var gr=["blur","clear"];function Ts(e){gr=e}function yr(){return gr}var br=["focus","change","setValue"];function Vs(e){br=e}function vr(){return br}function Es(e){ot.Schema.messages(e)}function zt(...e){const n=[];return e.forEach(a=>{a.forEach(l=>{const o=n.findIndex(i=>i.type===l.type);o!==-1&&n.splice(o,1),n.push(l)})}),n}function Sn(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var Ge=Symbol("ValidateSchemaKey"),Sr=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,a){this.parent=e,this.descriptor=n,this.proxy=a,(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=Sn(zt(this.attrRules,this.rules)),n=[],a=this.descriptor.context?.attrs??{};for(let o in a){let i=a[o];if(this.hasValidator(o,!0)){if(i===!1)continue;let c={type:o};i!==null&&typeof i=="object"&&Object.assign(c,i),n.push(c);continue}let r=this.getValidator(o);if(r!==null){let c={type:o,validator:r};n.push(c)}}this.attrRules=Sn(n);const l=zt(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 a=this.descriptor.validateHandler;if(a&&typeof a[e]=="function")return Reflect.apply(a[e],a,[...n]);const l=Rt;return l&&typeof l[e]=="function"?Reflect.apply(l[e],l,[...n]):null}decorate(e,n){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,n,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.execHandler("getValue",this.proxy)}setValidator(e,n,a=!1){a?ot.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?ot.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return ot.Schema.hasValidator(e);{let a=Reflect.has(this.validators,e);return!a&&this.parent!==null&&(a=this.parent.hasValidator(e,!1)),a}}setRule(e){const n=zt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=Sn(e):this.rules=Sn([e]);const a=zt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(a,n)})}clear(){this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=zt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const a={[`${n}`]:e},l=this.getValue(),o={[`${n}`]:l},i=new ot.Schema(a),r=this.proxy??o;return i.validate(o,{context:r}).then(c=>{if(c.pass)this.success();else{let s="error";Array.isArray(c.errors)&&c.errors.length>0&&(s=c.errors[0].message??s,c.errors=[c.errors[0]],c.errors[0].ref=r),this.error(s)}return c}).catch(c=>{const s=c.message??`${c}`;return this.error(s),c})}}return Promise.resolve({pass:!0})}};function kn(e,n,a){a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string";const l={exposed:e,get $el(){return a.templateRefProxy?.$el},get props(){return a.props},get attrs(){return a.context?.attrs}};if(!a.validateHandler&&a.valueName!=="modelValue"){const o=a.valueName;a.validateHandler={getValue(i){return i.props?.[o]??i.exposed[o]}}}return new Sr(n,a,l)}var wn=Symbol.for("EventEmitterKey"),kr=class{register=new Map;emitFn;constructor(e){this.emitFn=e??null}destroy(){this.emitFn=null,this.register.clear()}off(e,n){let a=this.register.get(e);if(a&&Array.isArray(a)){let l=a.findIndex(o=>o===n);l!==-1&&a.splice(l,1)}}on(e,n){let a=this.register.get(e);a||(a=new Array,this.register.set(e,a)),a.push(n)}emit(e,...n){const a=this.register.get(e);a&&a.forEach(l=>{try{Reflect.apply(l,null,[e,...n])}catch(o){console.error(o.message,o)}}),this.emitFn&&Reflect.apply(this.emitFn,null,[e,...n])}};function Pe(e,n){let a=null;return function(...l){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...l])},n)}}function Cn(e,n){let a=0;return function(...l){const o=new Date().getTime();o-a<n||(a=o,Reflect.apply(e,null,[...l]))}}function $s(e,n){const a=Pe((l,o)=>{e=l,o()},n);return(0,t.customRef)((l,o)=>({get(){return l(),e},set(i){a(i,o)}}))}function Ds(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function xl(e,n,a,l=0,o=!0){let i=n,r=0;if(o){const s=e();if(r++,s||r>a)return}const c=()=>{const s=e();r++,!(s||r>a)&&(i+=l,setTimeout(c,i))};setTimeout(c,i)}var _e=Symbol("DomainKey"),Ft=Symbol("DataItemsKey"),Nn=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 a in e){const l=e[a];n.length>0&&n.indexOf(l)!==-1||(this._props[a]=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 a=this._props[e];if(a!=null)return a}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 a=this;for(;a!=null;){if(Reflect.has(a._props,e)){const l=a._props[e];n.push(l)}a=a._parent}return n}},Is=new Nn;function ht(){return Is}function Ze(){return(0,t.inject)(_e,null)}var Ml=Symbol("OriginalDateKey");function Rl(e,n,a){const l=(0,t.hasInjectionContext)(),o=l?(0,t.getCurrentScope)():null;let i=l?(0,t.inject)(_e,null):null;i===null&&(i=ht());const r=n;let c=new Nn(r);c.parent=i;const s=S=>{c?.hasData(Ml)||u(S),c?.set("modelValue",S)},d=()=>c?.getForSelf("modelValue")??null,h=()=>c?.getData(Ml)??null,u=S=>{const f={};mt(!0,f,(0,t.toRaw)(S)),c.setData(Ml,f)},p=e.props,y=e.ignorePropKeys;(0,t.isReactive)(p)||typeof p=="function"?(0,t.watch)(p,S=>{c?.merge(S,y),S.modelValue&&u(S.modelValue)},{immediate:!0}):(c.merge(p,y),p.modelValue&&u(p.modelValue));const C=(S,f)=>{c?.set(S,f)},k=S=>c?.getForSelf(S)??null;if(c.componentPublicExposed[_e]=c,(0,t.provide)(_e,c),o!==null){const S=(0,t.inject)(We,null),f=vn(c.componentPublicExposed,S,r,a);c.broadcast=f,c.componentPublicExposed[We]=f,(0,t.provide)(We,f),c.componentPublicExposed.broadcast=(g,b,...T)=>{if(f)return Reflect.apply(f.emit,f,[g,b,...T])};const m=(0,t.inject)(Ge,null),w=kn(c.componentPublicExposed,m,{componentName:"",context:e.context});c.validateSchema=w,c.componentPublicExposed[Ge]=w,(0,t.provide)(Ge,w),c.componentPublicExposed[Ft]=new Map,c.componentPublicExposed.validate=async(g=!0)=>{const b=[];let T=null;const E={};let B=!1;if(g===!0)T={name:"*"},B=!0;else if(Array.isArray(g)&&g.length>0){const N=g;T={name:R=>R?N.indexOf(R)!==-1:!1},B=!0}else if(g!=null&&typeof g=="object"){const N=g;if(N.deep!==!1){if(Object.assign(E,N),Array.isArray(N.include)&&N.include.length>0){const R=N.include;T={name:U=>U?R.indexOf(U)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const R=N.exclude;T={name:U=>U?R.indexOf(U)===-1:!1}}else T={name:"*"};B=!0}}if(B&&T){E.deep=!1;const N=f?.emitToChildren(T,"validate",E);N&&Reflect.apply([].push,b,N)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(N=>{let R=[];return N.forEach(U=>{U.pass===!1&&Array.isArray(U.errors)&&(R=[...R,...U.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})};const A=e.context;c.componentPublicExposed.setNameValidateRules=(g,b=!0,T=!1)=>{if(T===!0){Reflect.ownKeys(g).forEach(E=>{let B=String(E);const N={componentName:"",fieldName:B,pureDataValidate:!0,context:A};if(c){const R=Cr(c,B,N,f,w);c.componentPublicExposed[Ft].set(B,R);const U=g[B];U&&R.validateSchema.setRule(U)}});return}if(b){const E=Reflect.ownKeys(g);f?.emitToChildren({name:B=>E.includes(B),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",g,!1)}},c.componentPublicExposed.clearValidate=(g=!0)=>{let b=null;const T={};let E=!1;if(g===!0)b={name:"*"},E=!0;else if(Array.isArray(g)&&g.length>0){const B=g;b={name:N=>N?B.indexOf(N)!==-1:!1},E=!0}else if(g!=null&&typeof g=="object"){const B=g;if(B.deep!==!1){if(Array.isArray(B.include)&&B.include.length>0){const N=B.include;b={name:R=>R?N.indexOf(R)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const N=B.exclude;b={name:R=>R?N.indexOf(R)===-1:!1}}else b={name:"*"};Object.assign(T,B),E=!0}}E&&b&&(T.deep=!1,f?.emitToChildren(b,"clearValidate",T))},c.componentPublicExposed.resetFields=g=>{const b=d();if(!b)return;const T={};if(mt(!0,T,h()??{}),Array.isArray(g))g.forEach(E=>{b[E]=T[E]});else if(g&&Array.isArray(g.include))(g.include??[]).forEach(E=>{b[E]=T[E]});else if(g&&Array.isArray(g.exclude)){let E=g.exclude??[];Reflect.ownKeys(T).forEach(B=>{E.includes(B)||(b[B]=T[B])})}else Object.assign(b,T);c?.componentPublicExposed?.clearValidate(g)},c.componentPublicExposed.setModelValue=(g,b)=>{if(!b||b===r)s(g);else{const T={name:b,messagingPolicy:"Once"};f?.emitToChildren(T,"setModelValue",g)}},c.componentPublicExposed.getModelValue=()=>d(),c.componentPublicExposed.setDomainProperty=(g,b)=>{C(g,b)},c.componentPublicExposed.getDomainProperty=g=>k(g),setTimeout(function(){f?.pull()},0)}(0,t.onScopeDispose)(function(){c?.validateSchema&&c.validateSchema.destroy(),c?.broadcast&&c?.broadcast?.destroy(),c.componentPublicExposed[Ft]&&c.componentPublicExposed[Ft].clear(),c?.destroy(),c=null});const v=e.context?.expose;return{domain:c,exposeApi:(S={})=>{Object.assign(c.componentPublicExposed,S),v?.(c.componentPublicExposed)}}}function wr(e,n){let a=(0,t.inject)(_e,null);a===null&&(a=ht());let l=new Nn(n);l.parent=a;const o=e.props,i=e.ignorePropKeys;(0,t.isReactive)(o)||typeof o=="function"?(0,t.watch)(o,c=>{l?.merge(c,i)},{immediate:!0}):l.merge(o,i),l.componentPublicExposed[_e]=l,(0,t.provide)(_e,l),(0,t.onScopeDispose)(()=>{l?.destroy(),l=null});const r=e.context?.expose;return{domain:l,exposeApi:(c={})=>{Object.assign(l.componentPublicExposed,c),r?.(l.componentPublicExposed)}}}function Be(e,n,a){const l={},o=n??e.componentName??"";let i=vn(l,(0,t.inject)(We,null),o,a);l[We]=i,(0,t.provide)(We,i),l.broadcast=(u,p,...y)=>i?Reflect.apply(i.emit,i,[u,p,...y]):null;const r=(0,t.inject)(Ge,null);e.fieldName=e.fieldName??o;let c=kn(l,r,e);l[Ge]=c,(0,t.provide)(Ge,c),l.validate=async(u=null)=>{if(!c)return Promise.resolve({pass:!0});const p=[];let y=null;const C={};let k=!1,v=!1;if(u===!0)y={name:"*"},v=!0,k=!0;else if(Array.isArray(u)&&u.indexOf(o)!==-1){const S=u;y={name:f=>f?S.indexOf(f)!==-1:!1},v=!0,k=!0}else if(u&&typeof u=="object"){const S=u,f=S.ignoreDisabled??!0,m=S.ignoreReadonly??!0,w=S.ignoreHidden??!0;f===!0&&e.disabled===!0||m===!0&&e.readonly===!0||w===!0&&$l(e.templateRefProxy?.$el??e.templateRefProxy)?v=!1:(Array.isArray(S.include)&&S.include.indexOf(o)!==-1||Array.isArray(S.exclude)&&S.exclude.indexOf(o),v=!0),Object.assign(C,S),k=S.deep??!1}if(v){const S=c?.validate();p.push(S)}if(k&&y){C.deep=!1;const S=i?.emitToChildren(y,"validate",C);S&&Reflect.apply([].push,p,S)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(S=>{let f=[];return S.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=u=>c?.setRule(u),l.setNameValidateRules=(u,p=!1)=>{const y=u[o];y&&c?.setRule(y),p&&i&&i.emitToChildren({name:C=>Reflect.ownKeys(u).includes(C)},"setNameValidateRules",u,!1)},l.clearValidate=(u=!0)=>{if(!c)return;let p=null;const y={};let C=!1,k=!1;if(u===!0)p={name:"*"},k=!0,C=!0;else if(Array.isArray(u)&&u.indexOf(o)!==-1){const v=u;p={name:S=>S?v.indexOf(S)!==-1:!1},k=!0,C=!0}else if(u&&typeof u=="object"){const v=u;(v.ignoreHidden??!0)===!0&&$l(e.templateRefProxy?.$el??e.templateRefProxy)?k=!1:(Array.isArray(v.include)&&v.include.indexOf(o)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(o),k=!0),Object.assign(y,v),C=v.deep??!1}k&&c?.clear(),C&&p&&(y.deep=!1,i?.emitToChildren(p,"clearValidate",y))};let s=new kr(e.context?.emit);l[wn]=s;const d=Pe((u="validate")=>{c&&(u==="reset"?c.clear():c.validate())},60);(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:yr()).forEach(u=>{s&&s.on(u,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:vr()).forEach(u=>{s&&s.on(u,p=>{d("reset")})}),setTimeout(function(){i?.pull()},0),(0,t.onScopeDispose)(()=>{i?.destroy(),i=null,c?.destroy(),l[Ge]=null,c=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:c,emitEvent:(u,...p)=>{s&&Reflect.apply(s.emit,s,[u,...p])},onEvent:(u,p)=>{s&&Reflect.apply(s.on,s,[p])},offEvent:(u,p)=>{s&&Reflect.apply(s.off,s,[p])},componentPublicExposed:l,exposeApi:(u={})=>{Object.assign(l,u),h?.(l)}}}function Cr(e,n,a,l,o){const i={},r=n??"",c={getValue(){const u=e.getForSelf("modelValue");return u?u[r]:null},isExist(){const u=e.getForSelf("modelValue");return u?Reflect.has(u,r):!1}};a.fieldName=r,a.validateHandler={getValue(u){return c.getValue()}};let s=kn({},o,a);i.validate=async(u=null)=>{if(!c.isExist())return console.warn(`validate error: field [${r}] not exist`),Promise.resolve({pass:!0});const p=[];let y=!1,C=!1;if(Array.isArray(u)&&u.indexOf(r)!==-1)C=!0,y=!0;else if(u&&typeof u=="object"){const k=u;Array.isArray(k.include)&&k.include.indexOf(r)!==-1||Array.isArray(k.exclude)&&k.exclude.indexOf(r),C=!0,y=k.deep??!1}else typeof u=="boolean"&&(y=u),C=!0;if(C&&s){const k=s.validate();p.push(k)}if(y){let k=null;const v={};if(u===!0)k={name:"*"};else if(Array.isArray(u)&&u.length>0){const S=u;k={name:f=>f?S.indexOf(f)!==-1:!1}}else if(u!=null&&typeof u=="object"){const S=u;if(Object.assign(v,S),Array.isArray(S.include)&&S.include.length>0){const f=S.include;k={name:m=>m?f.indexOf(m)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const f=S.exclude;k={name:m=>m?f.indexOf(m)===-1:!1}}else k={name:"*"}}if(k&&d){v.deep=!1;const S=d.emitToChildren(k,"validate",v);Reflect.apply([].push,p,S)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(k=>{let v=[];return k.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(v=[...v,...S.errors])}),v.length>0?{pass:!1,errors:v}:{pass:!0}}):Promise.resolve({pass:!0})},i.setValidateRule=u=>s?.setRule(u),i.setNameValidateRules=u=>{const p=u[r];p&&s?.setRule(p)};let d=vn(i,l,r);(0,t.onScopeDispose)(()=>{s=null,d=null});const h=a.context?.expose;return{broadcast:d,validateSchema:s,componentPublicExposed:i,exposeApi:(u={})=>{Object.assign(i,u),h?.(i)}}}function gt(e){let n={},a=new kr(e.context?.emit);n[wn]=a,(0,t.onScopeDispose)(()=>{a?.destroy(),Reflect.deleteProperty(n,wn),n=null,a=null});const l=e.context?.expose;return{emitEvent:(o,...i)=>{a&&Reflect.apply(a.emit,a,[o,...i])},onEvent:(o,i)=>{a&&Reflect.apply(a.on,a,[i])},offEvent:(o,i)=>{a&&Reflect.apply(a.off,a,[i])},componentPublicExposed:n,exposeApi:(o={})=>{Object.assign(n,o),l?.(n)}}}var me=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ue(e)}px`:"",qs=me;function ue(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let o=Number(e.substring(0,a)),i=1;if(Xe){const{fontSize:r}=window.getComputedStyle(document.documentElement,null),c=r.indexOf("px");c>0&&(i=Number(r.substring(0,c)))}return o*=i,o}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))*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 Je="PageStateKey";function Re(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=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 zl(e,n,a={},l=!0,o=-1,i=-1,r=0,c=0){if(e.headerHeight=ue(a.headerHeight??n.headerHeight??-1),e.headerPadding=Re(a.headerPadding??n.headerPadding),e.footerHeight=ue(a.footerHeight??n.footerHeight??-1),e.footerPadding=Re(a.footerPadding??n.footerPadding),e.contentPadding=Re(a.contentPadding??n.contentPadding),l){const s=a.height??n.height;s?e.height=ue(s,i):e.height=ue(i)-ue(r,i)-ue(c,i),e.width=ue(a.width??n.width??0,o)}}function Nr(e,n={}){const a={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},o=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});o&&(l.safeAreaTop=ue(o.top),l.safeAreaBottom=ue(o.bottom),l.safeAreaLeft=ue(o.left),l.safeAreaRight=ue(o.right));const i=e.get("pageLayout");if(!i)return null;zl(l,i,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const r=(0,t.reactive)(l),c=e.getForParent(Je);c&&(l.height=Vn(e,c),l.width=En(e,c),(0,t.watch)([()=>Vn(e,c),()=>En(e,c)],([d,h])=>{r.height=d,r.width=h}));const s=!c;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([d,h,u=-1,p=-1,y=0,C=0])=>{zl(r,h,n,s,u,p,y,C)}),e.set(Je,r),r}function An(e){return e.get(Je)}function Bn(e,n){if(n=n??e.get(Je),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function Tn(e,n){if(n=n??e.get(Je),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function Vn(e,n){if(n=n??e.get(Je),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=Bn(e,n),l=Tn(e,n),o=ue(n.contentPadding.top??0),i=ue(n.contentPadding.bottom??0);return n.height-a-l-o-i}return 0}function En(e,n){if(n=n??e.get(Je),n){const a=ue(n.contentPadding.left??0),l=ue(n.contentPadding.right??0);return n.contentInnerWidth??n.width-a-l}return 0}function xs(e){return!!e.getForParent(Je)}var Fl=Symbol.for("InnerPageScopeKey");function Ar(e){(0,t.provide)(Fl,e)}function Lt(e=!1){return(0,t.inject)(Fl,e)}var Ll=Symbol.for("AbstractPageScopeKey");function Br(e){(0,t.provide)(Ll,e)}function Ot(e=!1){return(0,t.inject)(Ll,e)}function Tr(e=!1){const n=Ot(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.headerBar??e:e}function Vr(e=!1){const n=Ot(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.footerBar??e:e}function Er(e=!1){const n=Ot(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.content??e:e}var et=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function $n(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Te(e,n,a=et.Near,l){const o=Ze();return o==null?e:a===et.Parent?(0,t.computed)(()=>{const i=o.getAll(n);for(let c=i.length-1;c>=0;c--){const s=i[c];if($n(s,l))return s}const r=e.value;return $n(r,l)?r:null}):(0,t.computed)(()=>{const i=e.value;if($n(i,l))return i;const r=o.getAll(n);for(let c=0;c<r.length;c++){const s=r[c];if($n(s,l))return s}return null})}function $r(e){return Te(e,"readonly",et.Near)}function Dr(e){return Te(e,"disabled",et.Near)}function Ir(e){return Te(e,"browse",et.Near)}function Ve(e){const n=(0,t.ref)(null),a=(0,t.ref)(null),l=Dr((0,t.computed)(()=>a.value??e.disabled)),o=(0,t.ref)(null);return{itemTemplateRef:n,innerDisabled:a,disabled:l,innerReadonly:o,readonly:$r((0,t.computed)(()=>o.value??e.readonly)),browse:Ir((0,t.computed)(()=>e.browse))}}function xe(e,n="modelValue",a=null,l){const o=(0,t.toRef)(e,n);let i=o.value;typeof a=="function"&&(i=a(o.value));const r=(0,t.ref)(i);return(0,t.watch)(o,c=>{if(typeof a=="function"){const s=a(c);s!==r.value&&(r.value=s,l&&l("setValue",s))}else c!==r.value&&(r.value=c,l&&l("setValue",c))}),r}var qr=new Map,Dn=new Map,Ol=null;function Ms(e){Ol=e}function Rs(){return Ol}function it(){return Ol?.()??null}function Pr(e,n,a){if(a){let l=Dn.get(a);l||(l=new Map,Dn.set(a,l)),l.set(e,n)}else qr.set(e,n)}function tt(e,n){let a=null;if(n){let l=Dn.get(n);l&&(a=l.get(e))}return a||(a=qr.get(e)),a}function zs(e,n){for(let a in e){const l=e[a];Pr(a,l,n)}}function Fs(e){Dn.delete(e)}function Ls(){return{top:0,left:0,bottom:0,right:0}}function Os(){return Xe?{rootWidth:document.documentElement.clientWidth||document.body.clientWidth,rootHeight:document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{headerHeight:-1,footerHeight:-1}}}function Ks(e,n){let a=e;if(n.componentPrefix){const l=a.indexOf("-");l!==-1?a=`${n.componentPrefix}${a.slice(l)}`:a=`${n.componentPrefix}-${a}`}return bn(a)}var Us=class{packages;_version;get version(){return this._version}constructor(e,n){this.packages=e,this._version=n}install(e,n){n?.install!==!1&&this.packages.forEach(l=>{if(l.install)e.use(l,n);else if(l.name){const o=Ks(l.name,n);e.component(o,l)}});const a=ht();if(n.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l={...n},o=Pe(()=>{const i={...l};this.updateLayout(i,a)},120);new window.ResizeObserver(o).observe(window.document.body)}this.updateLayout(n,a)}updateLayout(e,n){const a=e.headerBarHeight??0,l=e.footerBarHeight??0,o=mt({},Ls(),e.safeAreaInset),i=Os(),r=mt({},i.pageLayout,e.pageLayout);n=n??ht(),n.set("safeAreaInset",o),n.set("headerBarHeight",a),n.set("footerBarHeight",l),n.set("pageLayout",r),n.set("rootWidth",i.rootWidth),n.set("rootHeight",i.rootHeight);const c=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const s in e)c.indexOf(s)===-1&&n.set(s,e[s])}setScopeGetter(e){Ms(e)}getScopeGetter(){return Rs()}setAPI(e,n,a){Pr(e,n,a)}getAPI(e,n){return tt(e,n)}batchSetAPI(e,n){zs(e,n)}clearScopeAPI(e){Fs(e)}getRootDomain(){return ht()}};function ee(e){const n=`fox-${e}`,a=bn(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=a,l.install=(o,i)=>{let r=l.name;i?.componentPrefix&&(r=`${i.componentPrefix}-${l.baseName}`,r=bn(r)),o.component(r,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var Hs=(e,n)=>{let a=document.body;const l=e.teleport||"body";l!="body"&&(rr(l)?a=document.querySelector(l):a=e.teleport);const o=document.createElement("view");o.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let i={};hn(n.wrapper)?i=n.wrapper(a,o):i=n.wrapper;const r=(0,t.createApp)(i,e),c=n.components;return c&&c.forEach(s=>{r.use(s)}),a.appendChild(o),{instance:r.mount(o),unmount:()=>{r.unmount(),a.removeChild(o)}}},xr=(e,n)=>e?(0,t.h)(e,n):"",ye={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}},ve={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Mr={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}},Rr={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}},zr=[];for(const e in Rr)zr.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:{...ye,...Mr,...js},setup(a,l){const o=!!Ot(!1),i=Lt(!1),{domain:r,exposeApi:c}=Rl({props:a,context:l},a.name);if(r){const u=Nr(r,a);c({getPageContentHeight:()=>Vn(r,u),getPageContentWidth:()=>En(r,u),getPageHeaderHeight:()=>Bn(r,u),getPageFooterHeight:()=>Tn(r,u)}),u&&i&&(u.contentHeight="100%")}const s=(0,t.computed)(()=>({[e]:!0,"is-inner":i})),d=(0,t.computed)(()=>({})),h=(u,p=!1)=>{r.componentPublicExposed&&typeof r.componentPublicExposed.setNameValidateRules=="function"&&r.componentPublicExposed.setNameValidateRules(u,!0,p)};return(0,t.watch)([()=>a.rules,()=>a.pureDataRules],([u,p],[y,C])=>{if(u&&y){const k=(0,t.toRaw)(y),v=(0,t.toRaw)(u),S=v?Reflect.ownKeys(v):[];(k?Reflect.ownKeys(k):[]).forEach(f=>{S.includes(f)||(v[f]=[])}),h(v)}if(p&&C){const k=(0,t.toRaw)(C),v=(0,t.toRaw)(p),S=v?Reflect.ownKeys(v):[];(k?Reflect.ownKeys(k):[]).forEach(f=>{S.includes(f)||(v[f]=[])}),h(v,!0)}},{deep:!0}),(0,t.onMounted)(()=>{a.rules&&h((0,t.toRaw)(a.rules)),a.pureDataRules&&h((0,t.toRaw)(a.pureDataRules),!0)}),()=>o?l.slots?.default?.():(0,t.h)("div",{class:s.value,style:d.value},[l.slots?.default?.()])}}),{componentName:Ys,create:Xs,scope:Qs}=ee("page"),Gs=Xs(Ws(Ys,Qs)),Kl=Gs;function Ul(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function In(e){const n=(0,t.unref)(e),a=window.getComputedStyle(n,null),l=parseFloat(a.getPropertyValue("padding-left")),o=parseFloat(a.getPropertyValue("padding-right")),i=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-o,height:n.clientHeight-i-r}}var Fr={headerbar:{},radio:{},checkbox:{}};function _s(e){Object.assign(Fr,e)}function qn(){return Fr}var Zs=(e,n,a,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(o,i){const r=Tr(!1),c=Lt(!1),s=r?null:Ze(),d=s?An(s):null,h=qn(),u=e,p=(0,t.computed)(()=>{const $={[u]:!0,[`${u}--border`]:o.border,[`${u}--fixed`]:o.fixed};return c||($[`${u}--safe-area-inset-top`]=o.safeAreaInsetTop),$}),y=(0,t.computed)(()=>({[`${u}__inner`]:!0,[`${u}__inner--${o.align}`]:!0})),C=Ee(o.height)?null:ue(o.height),k=(0,t.computed)(()=>{const $={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(r)return $;if(s&&d){const x=Re(o.padding??d.headerPadding);if(Object.assign($,x),Ee(C)||(d.headerHeight=C),$.height=d.headerHeight,$.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,$.safeAreaTop>0){const M=ue(x.top??0);$.top=$.safeAreaTop+M,$.height&&$.height>0&&($.height=$.height+$.safeAreaTop)}return $}if(Ee(C)||($.height=C),o.padding){const x=Re(o.padding);Object.assign($,x)}return $}),v=(0,t.ref)(null),S=()=>d&&v.value&&!Dl(v.value)?(l||(d.headerAllHeight=Ul(v.value).height),d.headerMounted=!0,!0):!1,f=Pe(S,120);let m=null;(0,t.onMounted)(()=>{r||d&&(xl(S,50,5,50,!0),window.ResizeObserver&&v.value&&(m=new window.ResizeObserver(f),m.observe(v.value)))}),(0,t.onUnmounted)(()=>{r||d&&(d.headerMounted=!1,m&&(m.disconnect(),m=null))});const w=(0,t.computed)(()=>{const $={};return r||(k.value.height!==null&&k.value.height!==void 0&&($.height=`${k.value.height}px`),k.value.top!==null&&k.value.top!==void 0&&($.paddingTop=`${k.value.top}px`),k.value.left!==null&&k.value.left!==void 0&&($.paddingLeft=`${k.value.left}px`),k.value.right!==null&&k.value.right!==void 0&&($.paddingRight=`${k.value.right}px`),k.value.bottom!==null&&k.value.bottom!==void 0&&($.paddingBottom=`${k.value.bottom}px`)),$}),A=(0,t.computed)(()=>{const $=k.value?.height;return Ee($)||$<0?!0:$>0});function g(){i.emit("back")}function b(){i.emit("click-title")}function T(){i.emit("click-right")}function E(){i.emit("click-right-text")}const B=()=>{if(!o.leftShow)return null;const $=[];if(i.slots.left)$.push(i.slots.left());else{if(i.slots.leftIcon){const x=(0,t.h)("view",{class:"left-icon",onClick:g},[i.slots.leftIcon()]);$.push(x)}else{const x=o.leftIcon??h.headerbar.Left??a,M=(0,t.h)("view",{class:"left-icon",onClick:g},[(0,t.h)(x)]);$.push(M)}if(o.leftText){const x=(0,t.h)("view",{class:"left-text",onClick:g},[o.leftText]);$.push(x)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},$)},N=()=>{if(!o.rightShow)return null;const $=[];if(i.slots.right)$.push(i.slots.right());else{if(o.rightText){const x=(0,t.h)("view",{class:"right-text",onClick:E},[o.rightText]);$.push(x)}if(i.slots.rightIcon){const x=(0,t.h)("view",{class:"right-icon",onClick:T},[i.slots.rightIcon()]);$.push(x)}else if(o.rightIcon){const x=(0,t.h)("view",{class:"right-icon",onClick:T},[(0,t.h)(o.rightIcon)]);$.push(x)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},$)},R=()=>{if(!o.titleShow)return null;const $=[],x=i.slots.default?i.slots.default():null;if(x)$.push(x);else{if(o.title){const M=(0,t.h)("view",{class:"title-text"},[o.title]);$.push(M)}if(i.slots.titleIcon){const M=(0,t.h)("view",{class:"title-icon",onClick:b},[i.slots.titleIcon()]);$.push(M)}else if(o.titleIcon){const M=(0,t.h)("view",{class:"title-icon",onClick:b},[(0,t.h)(o.titleIcon)]);$.push(M)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},$)},U=()=>{const $=[],x=i.slots.bottom?i.slots.bottom():null;return x&&$.push(x),$.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},$)};return()=>{if(r||!A.value)return null;const $=[];if(i.slots.all)$.push(i.slots.all());else{const x=[],M=B();M&&x.push(M);const O=R();O&&x.push(O);const z=N();if(z&&x.push(z),x.length>0){const P=(0,t.h)("view",{class:y.value},x);$.push(P)}const X=U();X&&$.push(X)}return $.length===0?null:(0,t.h)("view",{class:p.value,style:w.value,ref:v},$)}}}),{componentName:Js,create:ec,scope:tc}=ee("header-bar"),nc=ec(Zs(Js,tc,oe.Left,!1)),Hl=nc;function lc(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,o){const i=Vr(!1),r=Lt(!1),c=i?null:Ze(),s=c?An(c):null,d=e,h=(0,t.computed)(()=>{const m={[d]:!0,[`${d}--${l.align}`]:!0,[`${d}--border`]:l.border,[`${d}--fixed`]:l.fixed};return r||(m[`${d}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),m}),u=Ee(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(c&&s){const w=Re(l.padding??s.footerPadding);if(Object.assign(m,w),Ee(u)||(s.footerHeight=u),m.height=s.footerHeight,m.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,m.safeAreaBottom>0){const A=ue(w.bottom??0);m.bottom=m.safeAreaBottom+A,m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)}return m}if(Ee(u)||(m.height=u),l.padding){const w=Re(l.padding);Object.assign(m,w)}return m}),y=(0,t.computed)(()=>{const m=p.value?.height;return Ee(m)||m<0?!0:m>0}),C=(0,t.ref)(null),k=()=>s&&C.value&&!Dl(C.value)?(a||(s.footerAllHeight=Ul(C.value).height),s.footerMounted=!0,!0):!1,v=Pe(k,120);let S=null;(0,t.onMounted)(()=>{i||s&&(xl(k,50,5,50,!0),window.ResizeObserver&&(S=new window.ResizeObserver(v),S.observe(C.value)))}),(0,t.onUnmounted)(()=>{i||s&&(s.footerMounted=!1,S&&(S.disconnect(),S=null))});const f=(0,t.computed)(()=>{const m={};return i||(p.value.height!==null&&p.value.height!==void 0&&(m.height=me(p.value.height)),p.value.top!==null&&p.value.top!==void 0&&(m.paddingTop=me(p.value.top)),p.value.left!==null&&p.value.left!==void 0&&(m.paddingLeft=me(p.value.left)),p.value.right!==null&&p.value.right!==void 0&&(m.paddingRight=me(p.value.right)),p.value.bottom!==null&&p.value.bottom!==void 0&&(m.paddingBottom=me(p.value.bottom))),m});return()=>{if(i||!y.value)return null;const m=o.slots.default?o.slots.default():[];return(0,t.h)("view",{ref:C,class:h.value,style:f.value},m)}}}}var{componentName:ac,create:oc,scope:rc}=ee("footer-bar"),ic=oc(lc(ac,rc,!1)),jl=ic;function sc(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:l,attrs:o}){const i=Er(!1),r=Lt(!1),c=i?null:Ze(),s=(0,t.computed)(()=>({[e]:!0})),d=c?An(c):null,h=(0,t.computed)(()=>{const k={};if(i)return k;if(c&&d){if(a.padding){const b=Re(a.padding);Object.assign(d.contentPadding,b)}const v=Bn(c,d),S=Tn(c,d);let f="";d.contentHeight?f=`${d.contentHeight}`:f=`${d.height}px`,console.debug("[content]page height:",f),console.debug("[content]header height:",v),console.debug("[content]footer height:",S),console.debug("[content]padding:",d.contentPadding),k.height=f;let m=ue((d&&d.contentPadding&&d.contentPadding.top)??-1);(m>=0||v>0)&&(m=m<0?0:m,k.paddingTop=`${v+m}px`);let w=ue((d&&d.contentPadding&&d.contentPadding.bottom)??-1);(w>=0||S>0)&&(w=w<0?0:w,k.paddingBottom=`${S+w}px`);const A=ue((d&&d.contentPadding&&d.contentPadding.left)??-1);A>=0&&(k.paddingLeft=`${A}px`);const g=ue((d&&d.contentPadding&&d.contentPadding.right)??-1);return g>=0&&(k.paddingRight=`${g}px`),k}if(a.padding){const v=Re(a.padding);v.left&&(k.paddingLeft=`${v.left}px`),v.top&&(k.paddingTop=`${v.top}px`),v.right&&(k.paddingRight=`${v.right}px`),v.bottom&&(k.paddingBottom=`${v.bottom}px`)}return k}),u=(0,t.ref)(null),p=()=>{if(d&&u.value){const k=In(u.value);d.contentInnerHeight=k.height,d.contentInnerWidth=k.width}},y=Pe(p,120);let C=null;return(0,t.onMounted)(()=>{r||i||(requestAnimationFrame(p),window.ResizeObserver&&u.value&&(C=new window.ResizeObserver(y),C.observe(u.value)))}),(0,t.onUnmounted)(()=>{r||i||C&&(C.disconnect(),C=null)}),()=>i?l.default?.():(0,t.h)(a.tag??"view",{...o,ref:u,class:s.value,style:h.value},l)}}}var{componentName:cc,create:uc,scope:dc}=ee("content"),fc=uc(sc(cc,dc)),Wl=fc,yt="GroupStateKey",Lr=Symbol.for("GroupScopeKey");function Pn(){return(0,t.inject)(Lr,!1)}function xn(e=!0){(0,t.provide)(Lr,e)}function mc(e,n={}){Reflect.ownKeys(n).forEach(a=>{if(typeof a!="string")return;const l=n[a];Ee(l)||(e[a]=l)})}function pc(e,n={}){const a={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};mc(a,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(a),passport:0,order:{index:0}});return e.set(yt,l),l}function Yl(e,n,a=-1,l=-1,o=!1,i,r,c){const s=e.get(yt);if(!s)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),l===-1&&(l=d.gutter??0),i||(i=d.minItemWidth??-1),r||(r=d.maxItemWidth??-1);const h=ue(i),u=ue(r);c||(c=d.type??"grid");const p=()=>{const y=n===""||n===-1,C=ue(n);let k=de(a);const v=ue(l);if(!y){let m=(C-(k-1)*v)/k;for(;u!==-1&&m>u;)k++,m=(C-(k-1)*v)/k;for(;h!==-1&&k>1&&m<h;)k--,m=(C-(k-1)*v)/k}let S=!1;const f=s.layout;f.value.width=n,f.value.column!==k&&(f.value.column=k,S=!0),f.value.gutter!==v&&(f.value.gutter=v,S=!0),f.value.type!==c&&(f.value.type=c,S=!0),S&&(0,t.triggerRef)(f)};if(o)p();else{const y=++s.passport;setTimeout(()=>{y===s.passport&&p()},50)}}function Mn(e,n=!1){let a;return n?a=e.getForParent(yt):a=e.get(yt),a.layout}function Rn(e,n=!1){let a;return n?a=e.getForParent(yt):a=e.get(yt),a.order}function Or(e,n=1){if(n==="stretch")return-1;const a=de(n);return a===-1?100:100*a/e}function zn(e,n,a=1,l=0,o){const i={};let r=0;o?r=ue(o):r=Or(n.column,a),r>0&&(i.width=`${r}%`);const c=Or(n.column,l);c>0&&(i["margin-left"]=`${c}%`);const s=ue(n.gutter)/2;return s>0&&(i["padding-left"]=`${s}px`,i["padding-right"]=`${s}px`),i}function Fn(e,n,a=1,l=0){if(a==="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 o=de(a);if(o===-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(o>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 r=(e.index+i)%n.column,c=r+o;return c>n.column?(r=0,c=r+o,e.index=e.index+(n.column-r)+o):e.index=e.index+i+o,i>0?{"grid-column":`${r+1} / span ${o}`}:{"grid-column-start":`span ${o}`}}var Kr=Symbol("RollingStateKey");function hc(e){(0,t.provide)(Kr,e)}function gc(){return(0,t.inject)(Kr,null)}function Xl(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),o=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-o}else n=e.offsetHeight;return n}function yc(e){let n=Xl(e);if(n<=0){const a=e.cloneNode(!0);a.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=Xl(a),document.body.removeChild(a)}return n}function bc(e,n,a){const l=typeof e=="number"?e:parseInt(e),o=typeof n=="number"?n:parseInt(n),i=typeof a=="number"?a:parseInt(a);if(l<=0)return"1fr";const r=(l-(o-1)*i)/o;return r>0?`${r}px`:"1fr"}function Ur(e){const n=[];return e.forEach(a=>{a.type===t.Fragment&&Array.isArray(a.children)?n.push(...Ur(a.children)):n.push(a)}),n}function vc(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Ln(e){function n(){return Ur(e?.()??[]).filter(vc)}return{getChildren:n}}var Sc={...ye,...Mr,...Rr};function kc(e,n,a){return{props:Sc,emits:["update:collapse","header-click"],setup(l,o){const{domain:i,exposeApi:r}=Rl({props:l,ignorePropKeys:zr,context:o},l.prop??l.name),c=pc(i,{type:l.type}),s=Pn();xn(!0);const d=l.rollingDisplay?gc():null,h=(0,t.ref)(null),u=(0,t.computed)(()=>l.rollingDisplay?d&&!d.disabled:!1),p=(0,t.computed)(()=>s&&i?Mn(i,!0).value:null),y=(Q,le=!1)=>{i.componentPublicExposed&&typeof i.componentPublicExposed.setNameValidateRules=="function"&&i.componentPublicExposed.setNameValidateRules(Q,!0,le)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([Q,le],[D,q])=>{if(Q&&D){const K=(0,t.toRaw)(D),I=(0,t.toRaw)(Q),Y=I?Reflect.ownKeys(I):[];(K?Reflect.ownKeys(K):[]).forEach(ae=>{Y.includes(ae)||(I[ae]=[])}),y(I)}if(le&&q){const K=(0,t.toRaw)(q),I=(0,t.toRaw)(le),Y=I?Reflect.ownKeys(I):[];(K?Reflect.ownKeys(K):[]).forEach(ae=>{Y.includes(ae)||(I[ae]=[])}),y(I,!0)}},{deep:!0});const C=e,k=(0,t.computed)(()=>{const Q={};if(Q.height=x.value,l.width)l.width!=="auto"&&(Q.width=me(l.width));else{const le=s?Rn(i,!0):null;if(p.value&&le){if(p.value.type==="grid"){const D=Fn(le,p.value,l.span,l.offset);Object.assign(Q,D)}else if(p.value.type==="flow"){const D=zn(le,p.value,l.span,l.offset,l.width);Object.assign(Q,D)}}}return Q}),v=(0,t.computed)(()=>{const Q=c.layout.value.type;return Q==="grid"||Q==="flow"?{[`${C}--${Q}`]:!0,[`${C}--${Q}-justify-${l.justify}`]:!0,[`${C}--${Q}-align-${l.align}`]:!0,[`${C}--gutter`]:!0}:{[`${C}--${Q}`]:!0,[`${C}--gutter`]:!0}}),S=(0,t.computed)(()=>{if(c.layout.value.type==="grid"){let Q="";if(l.columnWidth)Q=`repeat(auto-fill, ${l.columnWidth})`;else{const le=bc(T.value,c.layout.value.column,c.layout.value.gutter);Q=`repeat(${c.layout.value.column}, ${le})`}return{"column-gap":`${c.layout.value.gutter}px`,"grid-template-columns":Q}}}),f=(0,t.toRef)(l,"gutter"),m=(0,t.toRef)(l,"column"),w=(0,t.computed)(()=>s||u.value?!0:Se(l.isWrap)),A=[],g=Q=>{A.push(Q)},b=()=>{let Q=A.length;A.splice(0,Q)},T=(0,t.ref)(-1),E=Q=>{const le=In(Q).width;le>0&&le!==T.value&&(T.value=le)};Yl(i,T.value,m.value,f.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([T,m,f],([Q,le,D])=>{c.order.index=0,Yl(i,Q,le,D,!1,l.minItemWidth,l.maxItemWidth,l.type)});const B=(0,t.computed)(()=>M.value?l.expandText??"":l.collapseText??""),N=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),R=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),U=(0,t.ref)(),$=(0,t.ref)(),x=(0,t.computed)(()=>O.value||me(l.height)||""),M=(0,t.ref)(!1),O=(0,t.ref)(""),z=(0,t.ref)(!1);let X=-1;const P=(Q,le=!0)=>{const D=U.value;if(D&&M.value!==Q){if(X=X<=0?yc(D):X,z.value=!0,le)if(D.style["will-change"]="height",D.ontransitionend=function(){D.ontransitionend=null,this.style["will-change"]="auto",Q||(O.value="",z.value=!1)},Q){let q=0;l.collapseHeight?q=l.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(q=$.value.offsetHeight),O.value=`${X}px`,(0,t.nextTick)(()=>{O.value=`${q}px`})}else O.value=`${X}px`;else if(Q){let q=0;l.collapseHeight?q=l.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(q=$.value.offsetHeight),O.value=`${q}px`}else z.value=!1,O.value=`${X}px`;M.value=Q,o.emit("update:collapse",Q)}};(0,t.watch)(()=>l.collapse,Q=>{P(Q)});const _=Q=>{o.emit("header-click",Q)},te=()=>{W()},W=Q=>{Q=Q??!M.value,P(Q)};r({toggleCollapse:W,doLayout:()=>{A[0]&&(E(A[0]),Yl(i,T.value,m.value,f.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let J=null,j=!0;const ne=Q=>{if(l.rules&&y((0,t.toRaw)(l.rules)),l.pureDataRules&&y((0,t.toRaw)(l.pureDataRules),!0),!!Xe&&(Q&&P(Se(l.collapse),!1),l.autoLayout&&Array.isArray(A)&&A.length>0)){const le=A[0];if(E(le),window.ResizeObserver){const D=Pe(()=>E(le),120);J=new window.ResizeObserver(D),J.observe(le)}}},H=()=>{J?.disconnect(),J=null},F=!u.value||d?.acquire();F&&(h.value=u.value?!0:null),(0,t.onMounted)(()=>{if(F&&(ne(j),j=!1),u.value&&d){let Q=null,le=d.initialHeight;d.observe(U.value,D=>{if(D!==h.value)if(D)h.value=!0,M.value||(O.value=""),Q=setTimeout(()=>{Q=null,h.value!==!1&&(ne(j),j=!1)},100);else{if(Q!==null&&clearTimeout(Q),h.value=!1,!M.value)if(j)O.value=d.initialHeight;else{let q=Xl(U.value);q<=0?O.value=le:(O.value=`${q}px`,le=O.value)}j||H()}})}}),(0,t.onUnmounted)(()=>{J?.disconnect(),d&&d.unobserve(U.value)});const L=(Q="right")=>{const le=[];if(B.value){const K=(0,t.h)("span",{class:N.value},[B.value]);le.push(K)}const D={class:R.value},q=(0,t.h)(l.collapseIcon??a,D);return le.push(q),le.length>0?(0,t.h)("div",{class:{[`${C}__header-collapse`]:!0,[`is-${Q}`]:!0},onClick:te},le):null},G=(Q,le,D,q)=>{const K={...v.value};if(le===0&&(K[`${C}__first`]=!0),D>=q-1&&(K[`${C}__last`]=!0),w.value===!1){const I=o.attrs.class;I&&(K[`${I}`]=!0)}return(0,t.h)("div",{ref:g,key:`${le}`,class:K,style:S.value},Q)};return()=>{const Q=l.prop??l.name;if(u.value&&h.value!==!0)return(0,t.h)(l.tag||"div",{ref:U,prop:Q,class:{[`${C}`]:!0,"is-collapse":z.value},style:k.value},[]);c.order.index=0;const le=[];let D=0;if(o.slots.header){const Y=(0,t.h)("div",{key:`${D++}`,ref:$,class:{[`${C}__header`]:!0,[`${C}__first`]:!0},onClick:_},[o.slots.header()]);le.push(Y)}else{const Y=[],ae=l.collapsePosition==="left";if(ae&&l.showCollapse){const re=L("left");re&&Y.push(re)}if(l.title||o.slots.title){if(l.showMark){const re={class:{[`${C}__header-mark`]:!0}};l.markColor&&(re.style={background:l.markColor});const se=(0,t.h)("div",re);Y.push(se)}if(o.slots.title){const re=(0,t.h)("div",{class:{[`${C}__header-title`]:!0}},[o.slots.title()]);Y.push(re)}else if(l.title){const re=(0,t.h)("div",{class:{[`${C}__header-title`]:!0}},[l.title]);Y.push(re)}}if(o.slots.toolbar&&Y.push(o.slots.toolbar()),!ae&&l.showCollapse){const re=L("right");re&&Y.push(re)}if(Y.length>0){const re=(0,t.h)("div",{key:`${D++}`,ref:$,class:{[`${C}__header`]:!0,[`${C}__first`]:!0},onClick:_},Y);le.push(re)}}b();const{getChildren:q}=Ln(o.slots.default),K=q(),I=c.layout.value.type;if(I==="grid"){const Y=G(K,D++,0,K.length);le.push(Y)}else if(I==="flow"){const Y=G(K,D++,0,K.length);le.push(Y)}else for(let Y=0;Y<K.length;Y++){const ae=K[Y],re=G([ae],D++,Y,K.length);le.push(re)}return w.value?(0,t.h)(l.tag||"div",{ref:U,prop:Q,class:{[`${C}`]:!0,"is-collapse":z.value},style:k.value},[le]):le}}}}var{componentName:wc,create:Cc,scope:Nc}=ee("group"),Ac=Cc(kc(wc,Nc,oe.RectUp)),Ql=Ac;function Bc(e){return e===window}var Tc=/matrix\((.+)\)/,Gl=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(Bc(n))return{x:0,y:0};let a=0,l=0,o=n;for(;o!==null;)a+=o.offsetLeft,l+=o.offsetTop,o=o.offsetParent;let i=0,r=0,c=0,s=0;for(o=n;o!==document;){r+=o.scrollTop,i+=o.scrollLeft;const{transform:d}=window.getComputedStyle(o);if(d){const h=Tc.exec(d);if(h){let u=h[1].split(/\s*,\s*/);u.length==6&&(c+=Number(u[4]),s+=Number(u[5]))}}o=o.parentNode}return a-=i,l-=r,a+=c,l+=s,{x:a,y:l}},Vc=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{}})}},Ec=class{monitorRegister=new WeakMap;watch(e,n){let a=e.parentNode;const l=document.body.parentNode;for(;a&&a!==l;){let o=this.monitorRegister.get(a);o||(o=new Vc,a.addEventListener("scroll",o.listen),a===document.body&&a.addEventListener("resize",o.listen),this.monitorRegister.set(a,o)),o.add(n),a=a.parentNode}}unwatch(e,n){let a=e.parentNode;const l=document.body.parentNode;for(;a&&a!==l;){let o=this.monitorRegister.get(a);o&&(o.remove(n),o.size()===0&&(this.monitorRegister.delete(a),a.removeEventListener("scroll",o.listen),a===document.body&&a.removeEventListener("resize",o.listen))),a=a.parentNode}}},Kt=new Ec,Hr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:$c,create:Dc}=ee("price"),Ic=Dc({props:{...Hr},setup(e){const n=(0,t.computed)(()=>({[$c]:!0})),a=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>ke(e.price)==0?"":mn(e.price,e.decimalLength,!0,de(e.digits),e.separator));return{classes:n,showSymbol:a,intText:(0,t.computed)(()=>{let o=l.value;if(o.length==0)return"";let i=o.indexOf(".");return o.substring(0,i)}),decimalText:(0,t.computed)(()=>{let o=l.value;if(o.length==0)return"";let i=o.indexOf(".");return o.substring(i+1)})}}}),ie=(e,n)=>{const a=e.__vccOpts||e;for(const[l,o]of n)a[l]=o;return a},qc=["innerHTML"],Pc=["innerHTML"];function xc(e,n,a,l,o,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,qc)):(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,Pc)):(0,t.createCommentVNode)("",!0)],2)}var On=ie(Ic,[["render",xc]]),{componentName:_l,create:Mc}=ee("hint-text"),Rc=Mc({components:{Price:On},props:{...Hr,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:()=>6},showArrow:{type:Boolean,default:()=>!0},arrowOffset:{type:Number,default:()=>20},offset:{type:Number,default:()=>12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const a=(0,t.ref)({top:null,right:null,bottom:null,left:null}),l=(0,t.ref)({x:0,y:0}),o=(0,t.ref)(0),i=(0,t.ref)(0),r=(0,t.ref)(e.placement),c=(0,t.ref)(!1),s=(0,t.ref)(null),d=(N,R,U,$,x,M)=>{const O=document.documentElement.clientWidth||document.body.clientWidth,z=document.documentElement.clientHeight||document.body.clientHeight,X=N.split("-");let P=[];X[0]==="top"?P=["top","bottom","right","left"]:X[0]==="bottom"?P=["bottom","top","right","left"]:X[0]==="left"?P=["left","top","bottom","right"]:X[0]==="right"&&(P=["right","top","bottom","left"]);const _={top:null,right:null,bottom:null,left:null},te=[];for(let W=0;W<P.length;W++){const Z=P[W];if(te[0]=Z,X[1]&&(te[1]=X[1]),Z==="top"){const J=R.y-M-e.arrowSize-e.offset;if(J>=0){_.top=J;let j=0;X[1]==="start"?j=R.x:X[1]==="end"?j=R.x+U-x:j=R.x+U/2-x/2;const ne=O-j-x;ne<0?(j+=ne,u.value=-ne):u.value=0,_.left=j<0?0:j;break}}else if(Z==="bottom"){const J=R.y+$+e.arrowSize+e.offset;if(J+M<=z){_.top=J;let j=0;X[1]==="start"?j=R.x:X[1]==="end"?j=R.x+U-x:j=R.x+U/2-x/2;const ne=O-j-x;ne<0?(j+=ne,u.value=-ne):u.value=0,_.left=j<0?0:j;break}}else if(Z==="left"){const J=R.x-x-e.arrowSize-e.offset;if(J>=0){_.left=J;let j=0;X[1]==="start"?j=R.y:X[1]==="end"?j=R.y+$-M:j=R.y+$/2-M/2,_.top=j<0?0:j;break}}else if(Z==="right"){const J=R.x+U+e.arrowSize+e.offset;if(J+x<=O){_.left=J;let j=0;X[1]==="start"?j=R.y:X[1]==="end"?j=R.y+$-M:j=R.y+$/2-M/2,_.top=j<0?0:j;break}}}return{bestPlacement:te.join("-"),bestInsetRect:_}},h=(N,R,U=10)=>{if(!Xe||R===!1||!N)return;l.value=Gl(e.reference),o.value=e.reference.offsetWidth,i.value=e.reference.offsetHeight;const $=s.value.offsetHeight,x=s.value.offsetWidth,{bestPlacement:M,bestInsetRect:O}=d(e.placement,l.value,o.value,i.value,x,$);r.value=M,a.value=O,c.value=!0},u=(0,t.ref)(0),p=Pe(()=>{h(e.message,e.visible)},10),y=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,N=>{y.value=N});const C=(0,t.computed)(()=>y.value&&k.value),k=(0,t.ref)(!0),v=Pe(N=>{const R=N[0];R&&(k.value=R.isIntersecting)},10),S=new IntersectionObserver(v);(0,t.watch)([()=>e.message,()=>e.visible],([N,R])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{h(e.message,e.visible)},0),Kt.watch(e.reference,p),S.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Kt.unwatch(e.reference,p),S.unobserve(e.reference),S.disconnect()});const f=(0,t.computed)(()=>{const N={[_l]:!0};return r.value.startsWith("top")?N["is-top"]=!0:r.value.startsWith("right")?N["is-right"]=!0:r.value.startsWith("bottom")?N["is-bottom"]=!0:r.value.startsWith("right")&&(N["is-right"]=!0),e.size==="small"?N["is-small"]=!0:e.size==="large"&&(N["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(N[`${e.customClass}`]=!0),N}),m=(0,t.computed)(()=>{const N={};return a.value.top!==null&&(N.top=`${a.value.top}px`),a.value.right!==null&&(N.right=`${a.value.right}px`),a.value.bottom!==null&&(N.bottom=`${a.value.bottom}px`),a.value.left!==null&&(N.left=`${a.value.left}px`),e.autoFit&&(N["min-width"]=`${o.value}px`),N["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,c.value&&(N.opacity="1"),e.transition||(N.transition="none"),e.zIndex&&(N["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(N,e.customStyle),N}),w=(0,t.computed)(()=>{const N=[`${_l}__content`];return e.customTextClass&&N.push(e.customTextClass),N}),A=(0,t.computed)(()=>{const N={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(N,e.customTextStyle),N}),g=(0,t.computed)(()=>({[`${_l}__arrow`]:!0})),b=(0,t.computed)(()=>{const N={};return e.showArrow?(N.width=`${e.arrowSize}px`,N.height=`${e.arrowSize}px`,r.value==="top"?(N.left="50%",N.bottom=`-${e.arrowSize}px`,N.transform=" translate(-50%, 0%)"):r.value==="top-start"?(N.left=`${e.arrowOffset+u.value}px`,N.bottom=`-${e.arrowSize}px`):r.value==="top-end"?(N.right=`${e.arrowOffset-u.value}px`,N.bottom=`-${e.arrowSize}px`):r.value==="right"?(N.left=`-${e.arrowSize}px`,N.top="50%",N.transform=" translate(0%, -50%)"):r.value==="right-start"?(N.left=`-${e.arrowSize}px`,N.top=`${e.arrowOffset}px`):r.value==="right-end"?(N.left=`-${e.arrowSize}px`,N.bottom=`-${e.arrowOffset}px`):r.value==="bottom"?(N.left="50%",N.top=`-${e.arrowSize}px`,N.transform=" translate(-50%, 0%)"):r.value==="bottom-start"?(N.left=`${e.arrowOffset+u.value}px`,N.top=`-${e.arrowSize}px`):r.value==="bottom-end"?(N.right=`${e.arrowOffset-u.value}px`,N.top=`-${e.arrowSize}px`):r.value==="left"?(N.right=`-${e.arrowSize}px`,N.top="50%",N.transform=" translate(0%, -50%)"):r.value==="left-start"?(N.right=`-${e.arrowSize}px`,N.top=`${e.arrowOffset}px`):r.value==="left-end"&&(N.right=`-${e.arrowSize}px`,N.bottom=`-${e.arrowOffset}px`),N):{display:"none"}}),T=(0,t.computed)(()=>C.value&&e.closeOnClick),E=(0,t.computed)(()=>{const N={};return e.zIndex&&(N["z-index"]=`${e.zIndex}`),N});return{show:C,tipRef:s,classes:f,styles:m,textClasses:w,textStyles:A,arrowClasses:g,arrowStyles:b,overlayShow:T,overlayStyle:E,onClickOverlay:()=>{y.value=!1,n.emit("update:visible",!1)}}}}),zc=["innerHTML"];function Fc(e,n,a,l,o,i){const r=(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]=(...c)=>e.onClickOverlay&&e.onClickOverlay(...c))},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)(r,{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,zc))],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 jr=ie(Rc,[["render",Fc]]),Kn=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},Zl={},Lc=new Kn,bt=new Map,Un=e=>{if(e){const n=document.getElementById(e);bt.delete(e),n&&((0,t.render)(null,n),n.parentNode?.removeChild(n))}else{for(const n of bt.keys()){const a=document.getElementById(n);a&&((0,t.render)(null,a),a.parentNode?.removeChild(a))}bt.clear()}},Oc=e=>{e.unmount=Un;const n=document.getElementById(e.id);if(n){const a=bt.get(e.id);a?e={...Zl,...a,...e}:e={...Zl,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(jr,e),n)}return e.id},Kc=e=>{e.unmount=Un;let n=e.id??`hinttext_${Lc.get()}`;e={...Zl,...e},e.id=n,bt.set(n,e);const a=document.createElement("div");return a.id=e.id,(0,t.render)((0,t.createVNode)(jr,e),a),document.body.appendChild(a),n},Uc=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),vt={show(e,n,a={},l=!0){if(!Uc(n))return;const o=a.id;return o&&bt.has(o)?Oc({...a,message:n,reference:e}):(l&&Un(),Kc({...a,message:n,reference:e}))},hide(e){Un(e)},install(e){e.config.globalProperties.$hintText=vt}};function Hc(e,n,a,l=!1){return{inheritAttrs:!0,props:{...ye,...ve},emits:["appear","disappear"],setup(o,i){const r=o.prop??i.attrs.name,c=(0,t.ref)(),{exposeApi:s}=Be({componentName:e,validate:!1,get props(){return o},context:i,get templateRefProxy(){return c.value}},r),d=Ze(),h=Pn();xn(!1);const u=(0,t.computed)(()=>h&&d?Mn(d,!1).value:null),p=e,y=(0,t.ref)(null),C=(0,t.computed)(()=>{const I={[p]:!0,[`${p}__gutter`]:u.value&&u.value.type!=="flow",[`${p}__stretch`]:o.span==="stretch",[`${p}__input--border`]:Se(o.hasBorder)};if(I[o.errorMarkClass]=!!z.value,I[o.warnMarkClass]=!!M.value,I[o.infoMarkClass]=!!$.value,typeof y.value=="function"){const Y=y.value(r);I[Y]=!0}else if(typeof y.value=="string"){const Y=y.value;I[Y]=!0}return I}),k=(0,t.ref)(null),v=(0,t.computed)(()=>{const I={};if(o.width)o.width!=="auto"&&(I.width=me(o.width));else{const Y=h&&d?Rn(d,!1):null;if(u.value&&Y){if(u.value.type==="grid"){const ae=Fn(Y,u.value,o.span,o.offset);Object.assign(I,ae)}else if(u.value.type==="flow"){const ae=zn(Y,u.value,o.span,o.offset,o.width);Object.assign(I,ae)}}}if(typeof k.value=="function"){const Y=k.value(r);Y&&Object.assign(I,Y)}else if(k.value&&typeof k.value=="object"){const Y=k.value;Object.assign(I,Y)}return I}),S=(0,t.ref)(null),f=(0,t.computed)({get:()=>S.value??Se(o.isRequired),set:I=>{S.value=I}}),m=()=>typeof o.label=="string"&&o.label.length>0||typeof i.slots.label=="function",w=Te((0,t.toRef)(o,"labelPosition"),"labelPosition",et.Near),A=(0,t.computed)(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),g=(0,t.computed)(()=>({[`${p}__main`]:!0,[`${p}__main--${A.value}`]:!0})),b=(0,t.computed)(()=>({label:!0,[`label--${A.value}`]:!0})),T=Te((0,t.toRef)(o,"labelWidth"),"labelWidth",et.Near),E=(0,t.computed)(()=>T&&T.value?{width:me(T.value)}:{}),B=(0,t.computed)(()=>({"label--string":!0,"label--required":f.value})),N=(0,t.computed)(()=>({content:!0,[o.contentClass]:!0})),R=(0,t.computed)(()=>({...o.contentStyle})),U=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});s({setRequired(I){f.value=I},setErrorTip(I){U.errorTip=I},setErrorIcon(I){U.errorIcon=I},setWarnTip(I){U.warnTip=I},setWarnIcon(I){U.warnIcon=I},setInfoTip(I){U.infoTip=I},setInfoIcon(I){U.infoIcon=I},setCustomClassName(I){y.value=I},setCustomStyle(I){k.value=I}});const $=(0,t.computed)(()=>o.infoTip||U.infoTip),x=(0,t.computed)(()=>o.infoIcon||U.infoIcon),M=(0,t.computed)(()=>o.warnTip||U.warnTip),O=(0,t.computed)(()=>o.warnIcon||U.warnIcon),z=(0,t.computed)(()=>o.errorTip||U.errorTip),X=(0,t.computed)(()=>o.errorIcon||U.errorIcon),P=(0,t.computed)(()=>z.value?"error":M.value?"warn":$.value?"info":""),_=()=>P.value.length>0,te=(0,t.computed)(()=>P.value==="error"?z.value:P.value==="warn"?M.value:P.value==="info"?$.value:""),W=(0,t.computed)(()=>P.value==="error"?X.value:P.value==="warn"?O.value:P.value==="info"?x.value:null),Z=(0,t.computed)(()=>{const I={[`${p}__tip`]:!0,[`${p}__tip--${P.value}`]:!0,[`${p}--animate`]:!0};return P.value==="error"&&o.errorClass?I[`${o.errorClass}`]=!0:P.value==="warn"&&o.warnClass?I[`${o.warnClass}`]=!0:P.value==="info"&&o.infoClass&&(I[`${o.infoClass}`]=!0),I}),J=(0,t.computed)(()=>{const I={};return w&&w.value==="top"||!m()?I["padding-left"]="0px":T&&T.value&&(I["padding-left"]=me(T.value)),I}),j=(0,t.ref)();let ne="";(0,t.watch)([()=>o.hintVisible,()=>o.hintText,()=>o.hintType,()=>o.hintProps],([I,Y,ae,re])=>{j.value&&(I&&!fe(Y)?ne?a.show(j.value,Y,{...re,id:ne,type:ae},!0):ne=a.show(j.value,Y,{...re,type:ae},!0):a.hide(ne))});let H=null;const F=()=>{H||!j.value||(H=new IntersectionObserver(I=>{let Y=!1;for(let ae of I)if(ae.intersectionRatio>0){Y=!0,Y&&i.emit("appear",ae);break}Y||i.emit("disappear")}),H.observe(j.value))},L=()=>{!H||!j.value||(H.unobserve(j.value),H=null)};(0,t.watch)(()=>Se(o.appearListen),I=>{I?F():L()}),(0,t.onMounted)(()=>{Se(o.appearListen)&&F()}),(0,t.onUnmounted)(L);const G=()=>{if(!m())return null;const I=[],Y=i.slots?.label?.()??o.label,ae=(0,t.h)("div",{class:B.value},[Y]);if(I.push(ae),i.slots.fixedPreTip){const re=i.slots.fixedPreTip();I.push(re)}return(0,t.h)("div",{class:b.value,style:E.value},I)},Q=()=>{const I=[];if(i.slots.prepend){const Y=i.slots.prepend();I.push(Y)}if(i.slots.default){const Y=i.slots.default();I.push(Y)}if(i.slots.append){const Y=i.slots.append();I.push(Y)}if(i.slots.fixedTip){const Y=(0,t.h)("div",{class:[`${p}__fixed-tip`]},[i.slots.fixedTip()]);I.push(Y)}return(0,t.h)("div",{ref:j,class:N.value,style:R.value},I)},le=()=>{const I=W.value;return I?typeof I=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[I()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(I)]):null},D=()=>{const I=te.value;return I?typeof I=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[I()]):(0,t.h)("div",{class:"fox-item__tip--text"},[I]):null},q=()=>{if(!_())return null;const I=[],Y=le();Y&&I.push(Y);const ae=D();return ae&&I.push(ae),(0,t.h)("div",{class:Z.value,style:J.value},I)},K=()=>i.slots?.hide?.()??null;return()=>{const I=[],Y=[],ae=G();ae&&Y.push(ae);const re=Q();re&&Y.push(re);const se=(0,t.h)("div",{class:g.value},Y);I.push(se);const Ce=q();Ce&&I.push(Ce);const he=K();return he&&I.push(he),(0,t.h)("div",{class:C.value,style:v.value,prop:o.prop,ref:c},I)}}}}var{componentName:jc,create:Wc,scope:Yc}=ee("item"),Xc=Wc(Hc(jc,Yc,vt,!1)),Ut=Xc,Wr={span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function Qc(e,n){return{props:Wr,setup(a,l){const o=e,i=(0,t.computed)(()=>({[o]:!0,[`${o}__stretch`]:a.span==="stretch",[`${o}__${a.align}`]:!0})),r=Ze(),c=Pn();xn(!1);const s=(0,t.computed)(()=>{const d={};if(a.width)a.width!=="auto"&&(d.width=me(a.width));else if(c&&r){const h=Mn(r,!1),u=Rn(r,!1);if(h.value&&u){if(h.value.type==="grid"){const p=Fn(u,h.value,a.span,a.offset);Object.assign(d,p)}else if(h.value.type==="flow"){const p=zn(u,h.value,a.span,a.offset,a.width);Object.assign(d,p)}}}return a.gutter&&(d.gap=me(a.gutter)),d});return()=>{const d=[];if(l.slots.default){const h=l.slots.default();if(a.divide)for(let u=0;u<h.length;u++){if(u>0){const p=(0,t.h)("div",{class:{[`${o}__divide`]:!0}});d.push(p)}d.push(h[u])}else Reflect.apply([].push,d,h)}return(0,t.h)("div",{class:i.value,style:s.value},d)}}}}var{componentName:Gc,create:_c,scope:Zc}=ee("row-item"),Jc=_c(Qc(Gc,Zc)),Hn=Jc,eu=(0,t.defineComponent)({name:"ArrowDown",__name:"arrow-down",setup(e){return(n,a)=>((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 tu(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(o)},500)}var nu={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 lu(e,n,a,l=!1){return{props:{...nu},emits:["click"],setup(o,i){const r=(0,t.ref)(null),c=(0,t.computed)(()=>{const m={[`${e}`]:!0,"is-truncated":o.truncated};return o.type&&(m[`${e}--${o.type??"default"}`]=!0),o.size&&(m[`${e}--${o.size}`]=!0),m}),s=(0,t.computed)(()=>{const m={},w=o.textColor??o.color;return w&&(m.color=w),m}),d=(m,w)=>{let A=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const g=o.highlightFilter;m.indexOf(g)!==-1&&(w.innerHTML=m.replace(new RegExp(g,"g"),`<span>${g}</span>`),w.class["is-highlight"]=!0,A=(0,t.h)(o.tag,w))}else if(typeof o.highlightFilter=="function"){const g=o.highlightFilter(m);g&&(w.innerHTML=g,w.class["is-highlight"]=!0,A=(0,t.h)(o.tag,w))}return A},h=m=>{i.emit("click",m)};let u="";const p=()=>{const m=r.value;if(!m)return;const w=m.clientWidth;tu(m,A=>{const g=m.innerHTML??"";fe(g)||A<w||(u?a?.show(m,g,{type:"text",id:u,showArrow:o.showArrow},!0):u=a?.show(m,g,{type:"text",showArrow:o.showArrow},!0)??"")})},y=()=>{u&&a?.hide(u)};let C=null;const k=m=>{C||(C=setTimeout(()=>{p(),C=null},o.showAfter??0))},v=m=>{C&&(clearTimeout(C),C=null),setTimeout(()=>{y()},o.hideAfter??0)},S=()=>{const m=r.value;m&&(m.addEventListener("mouseover",k),m.addEventListener("mouseleave",v))},f=()=>{const m=r.value;m&&(m.removeEventListener("mouseover",k),m.removeEventListener("mouseleave",v))};return(0,t.onMounted)(()=>{!Se(o.showOverflowTooltip)||!a||S()}),(0,t.onBeforeUnmount)(()=>{!Se(o.showOverflowTooltip)||!a||f()}),()=>{const m={onClick:h,class:c.value,style:s.value,ref:r};let w=null;if(Se(o.numberFormat)&&typeof i.slots.default=="function"){const g=i.slots.default();if(Array.isArray(g)&&g.length===1){const b=g[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const T=de(o.digits),E=de(o.decimalLength),B=Se(o.autoPadding);let N=`${g[0].children}`,R=N.split("").reverse().join("");R=mn(R,E,B,T,o.separator),N=R.split("").reverse().join(""),o.highlightFilter!==void 0&&(w=d(N,m)),w||(m.innerHTML=N,w=(0,t.h)(o.tag,m))}}}else{if(o.highlightFilter!==void 0&&typeof i.slots.default=="function"){const g=i.slots.default();if(Array.isArray(g)&&g.length===1){const b=g[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const T=`${g[0].children}`;w=d(T,m),w||(m.innerHTML=T,w=(0,t.h)(o.tag,m))}}}w||(w=(0,t.h)(o.tag,m,{default:i.slots.default}))}if(!o.mark&&!o.icon&&!i.slots.mark)return w;const A=[];if(i.slots.mark){const g={[`${e}__mark-wrap`]:!0};o.type&&(g[`${e}__mark-wrap--${o.type}`]=!0);const b={},T=o.color;T&&(b.color=T);const E=(0,t.h)("view",{class:g,style:b},{default:i.slots.mark});A.push(E)}else{const g={[`${e}__mark`]:!0};o.type&&(g[`${e}__mark--${o.type??"default"}`]=!0);const b={},T=o.color;T&&(b["background-color"]=T);const E=(0,t.h)("view",{class:g,style:b});A.push(E)}if(o.divide){const g=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});A.push(g)}return A.push(w),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}},A)}}}}var{componentName:au,create:ou,scope:ru}=ee("text"),iu=ou(lu(au,ru,vt,!1)),St=iu,su={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 cu(e,n,a=!1){return{props:{...su},emits:["update:visible"],setup(l,{emit:o,slots:i,expose:r}){const c=(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),u=(0,t.ref)(0),p=(0,t.ref)(l.placement),y=(0,t.ref)(!1),C=(0,t.ref)(!1),k=(0,t.ref)(null),v=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,S=(P,_,te,W,Z,J,j,ne=!0)=>{const H=document.documentElement.clientWidth||document.body.clientWidth,F=document.documentElement.clientHeight||document.body.clientHeight,L=P.split("-");let G=[];ne?L[0]==="top"?G=["top","bottom","right","left"]:L[0]==="bottom"?G=["bottom","top","right","left"]:L[0]==="left"?G=["left","top","bottom","right"]:L[0]==="right"&&(G=["right","top","bottom","left"]):G=[P[0]];const Q={top:null,right:null,bottom:null,left:null},le=[];for(let D=0;D<G.length;D++){const q=G[D];if(le[0]=q,L[1]&&(le[1]=L[1]),q==="top"){const K=te-j-l.arrowSize/2-l.offset;if(K>=0){Q.top=K;let I=0;L[1]==="start"?I=_:L[1]==="end"?I=_+W-J:I=_+W/2-J/2;const Y=H-I-J;Y<0?(I+=Y,m.value=-Y):m.value=0,Q.left=I<0?0:I;break}}else if(q==="bottom"){const K=te+Z+l.arrowSize/2+l.offset;if(K+j<=F){Q.top=K;let I=0;L[1]==="start"?I=_:L[1]==="end"?I=_+W-J:I=_+W/2-J/2;const Y=H-I-J;Y<0?(I+=Y,m.value=-Y):m.value=0,Q.left=I<0?0:I;break}}else if(q==="left"){const K=_-J-l.arrowSize/2-l.offset;if(K>=0){Q.left=K;let I=0;L[1]==="start"?I=te:L[1]==="end"?I=te+Z-j:I=te+Z/2-j/2,Q.top=I<0?0:I;break}}else if(q==="right"){const K=_+W+l.arrowSize/2+l.offset;if(K+J<=H){Q.left=K;let I=0;L[1]==="start"?I=te:L[1]==="end"?I=te+Z-j:I=te+Z/2-j/2,Q.top=I<0?0:I;break}}}return{bestPlacement:le.join("-"),bestInsetRect:Q}},f=()=>{const P=l.visible,_=l.autoFit;if(!Xe||P===!1)return;if(l.reference){const j=v(),ne=Gl(j);s.value=ne.x,d.value=ne.y,h.value=j.offsetWidth,u.value=j.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,d.value=l.referenceInset.top,h.value=l.referenceInset.right-l.referenceInset.left,u.value=l.referenceInset.bottom-l.referenceInset.top);const te=k.value.offsetWidth,W=k.value.offsetHeight,{bestPlacement:Z,bestInsetRect:J}=S(l.placement,s.value,d.value,h.value,u.value,te,W,_);p.value=Z,c.value=J},m=(0,t.ref)(0),w=Pe(()=>{f()},10),A=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([P])=>{A.value=P,P?(y.value=P,setTimeout(()=>{f(),C.value=!0},0)):C.value=!1});const g=(0,t.computed)(()=>A.value&&b.value),b=(0,t.ref)(!0),T=Pe(P=>{const _=P[0];_&&(b.value=_.isIntersecting)},10),E=new IntersectionObserver(T);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([P,_],[te,W])=>{!P&&!_||(setTimeout(()=>{f()},0),l.autoFit&&(te&&(Kt.unwatch(te,w),E.unobserve(te)),P&&(Kt.watch(P,w),E.observe(P))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Kt.unwatch(l.reference,w),E.unobserve(l.reference),E.disconnect())});const B=(0,t.computed)(()=>{const P={[e]:!0};return p.value.startsWith("top")?P["is-top"]=!0:p.value.startsWith("right")?P["is-right"]=!0:p.value.startsWith("bottom")?P["is-bottom"]=!0:p.value.startsWith("left")&&(P["is-left"]=!0),P[`is-${l.effect}`]=!0,!C.value&&g.value&&(P["is-opacity"]=!0),C.value&&g.value&&(P["is-show"]=!0),g.value||(P["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(P[`${l.customClass}`]=!0),P}),N=(0,t.computed)(()=>{const P={};return c.value.top!==null&&(P.top=`${c.value.top}px`),c.value.right!==null&&(P.right=`${c.value.right}px`),c.value.bottom!==null&&(P.bottom=`${c.value.bottom}px`),c.value.left!==null&&(P.left=`${c.value.left}px`),l.width&&(P.width=l.width),l.zIndex&&(P["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(P,l.customStyle),P}),R=()=>{A.value=!1,o("update:visible",!1)},U=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:R}):null,$=()=>{let P=null;return i.title?P=(0,t.h)("div",{class:`${e}__title`},{default:i.title}):l.title&&(P=(0,t.h)("div",{class:`${e}__title`},[l.title])),P},x=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),M=(0,t.computed)(()=>{const P={};return l.showArrow?(P.width=`${l.arrowSize}px`,P.height=`${l.arrowSize}px`,p.value==="top"?(P.left="50%",P.bottom="0",P.transform="translate(-50%, 50%)"):p.value==="top-start"?(P.left=`${l.arrowOffset+m.value}px`,P.bottom="0",P.transform="translate(-50%, 50%)"):p.value==="top-end"?(P.right=`${l.arrowOffset-m.value}px`,P.bottom="0",P.transform="translate(-50%, 50%)"):p.value==="right"?(P.left="0",P.top="50%",P.transform="translate(-50%, -50%)"):p.value==="right-start"?(P.left="0",P.top=`${l.arrowOffset}px`,P.transform="translate(-50%, 50%)"):p.value==="right-end"?(P.left="0",P.bottom=`-${l.arrowOffset}px`,P.transform="translate(-50%, 50%)"):p.value==="bottom"?(P.left="50%",P.top="0",P.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(P.left=`${l.arrowOffset+m.value}px`,P.top="0",P.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(P.right=`${l.arrowOffset-m.value}px`,P.top="0",P.transform="translate(-50%, -50%)"):p.value==="left"?(P.right="0",P.top="50%",P.transform="translate(50%, -50%)"):p.value==="left-start"?(P.right="0",P.top=`${l.arrowOffset}px`,P.transform="translate(50%, -50%)"):p.value==="left-end"&&(P.right="0",P.bottom=`-${l.arrowOffset}px`,P.transform="translate(50%, -50%)"),P):{display:"none"}}),O=()=>(0,t.h)("div",{class:x.value,style:M.value}),z=()=>{A.value===!1&&(y.value=!1)},X=P=>{if(!k.value||A.value===!1)return;const{relatedTarget:_}=P;k.value.contains(_)||(A.value=!1,o("update:visible",!1))};return r({doLayout:f}),()=>{if(!y.value)return null;const P=[],_=U();_&&P.push(_);const te=[],W=$();if(W&&te.push(W),i.default){const ne=i.default();te.push(ne)}const Z=O();Z&&te.push(Z);const J={ref:k,class:B.value,style:N.value,onAnimationend:z};l.leaveHide&&(J.onMouseleave=X);const j=(0,t.h)("div",J,{default:()=>te});return P.push(j),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>P})}}}}var{componentName:uu,create:du,scope:fu}=ee("popover-dialog"),mu=du(cu(uu,fu,!1)),jn=mu,pu={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 hu(e,n,a){return{props:{...Wr,...pu},emits:["click"],setup(l,{emit:o,slots:i}){const{toLocaleRefs:r}=(0,ge.useFoxI18n)(n),c=r(l,["moreText"]),s=e,d=(0,t.computed)(()=>({[s]:!0}));function h(A){return A.props||{}}function u(A){return!!h(A).disabled}function p(A){return A.children??[]}const y=(0,t.ref)(),C=(0,t.computed)(()=>y.value?.$el??null),k=(0,t.ref)(!1),v=A=>{k.value=A},S=()=>{k.value=!k.value};function f(A,g){return()=>{g||(k.value=!1,h(A)?.onClick?.())}}function m(A,g){const b=p(A),T=u(A),E=f(A,T),B=[`${s}__dropdown-item`];return T&&B.push("is-disabled"),(0,t.h)("span",{class:B,onClick:E},b)}const w=A=>{const g=l.maxDisplayCount??A.length;if(g>=A.length)return A;const b=[],T=g-1;for(let U=0;U<T;U++)b.push(A[U]);const E=(i.moreIcon&&i.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(a),B=(0,t.h)(St,{ref:U=>y.value=U,class:`${s}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:S},{default:()=>c.moreText.value,mark:()=>E});b.push(B);const N=[];for(let U=T;U<A.length;U++){const $=m(A[U],U);N.push($)}const R=(0,t.h)(jn,{placement:l.dropdownPlacement,"onUpdate:visible":v,visible:k.value,reference:C.value,"custom-class":`${s}__popover`},{default:()=>N});return b.push(R),b};return()=>{const{getChildren:A}=Ln(i?.default),g=w(A());return(0,t.h)(Hn,{class:d.value},{default:()=>g})}}}}var{componentName:gu,create:yu,scope:bu}=ee("buttons-item"),vu=yu(hu(gu,bu,eu)),Jl=vu,Su={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function ku(e,n){return{props:Su,setup(a,l){const o=Ze(),i=Pn();xn(!1);const r=(0,t.computed)(()=>i&&o?Mn(o,!1).value:null),c=e,s=(0,t.computed)(()=>({[c]:!0,[`${c}__gutter`]:r.value&&r.value.type!=="flow",[`${c}__stretch`]:a.span==="stretch"})),d=(0,t.computed)(()=>{const h={};if(a.width)a.width!=="auto"&&(h.width=me(a.width));else{const u=i&&o?Rn(o,!1):null;if(r.value&&u){if(r.value.type==="grid"){const p=Fn(u,r.value,a.span,a.offset);Object.assign(h,p)}else if(r.value.type==="flow"){const p=zn(u,r.value,a.span,a.offset,a.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:wu,create:Cu,scope:Nu}=ee("slot-item"),Au=Cu(ku(wu,Nu)),ea=Au;function Ie(e,n={}){return(0,t.h)(Ut,e,n)}function Bu(e,n,a,l,o){let i=[];Array.isArray(e)?i=e:i=[e];const r=[],c=n[0];if(Array.isArray(e)&&!Array.isArray(c)&&!c[o]){let s=n;for(let d=0;s&&d<i.length;d++){let h=i[d],u=s.find(p=>p[l]===h);if(!u)break;r.push(u[a])}return r}if(Array.isArray(c))for(let s=0;s<n.length&&s<i.length;s++){let d=n[s],h=i[s];const u=d.find(p=>p[l]===h);if(!u)break;r.push(u[a])}else{let s=n;for(let d=0;s&&d<i.length;d++){let h=i[d],u=s.find(p=>p[l]===h);if(!u)break;r.push(u[a]),s=u[o]}}return r}var Tu=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=tt(e,this.scope);return l===null?(console.error(`${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function Vu(){return new Tu(it())}var Eu={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 $u(e,n,a=!1){return{props:Eu,setup(l,{attrs:o,slots:i}){const r=Vu(),c=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([d,h])=>{c.value=await r.load(l.sourceType,d,h)},{immediate:!0});const s=(0,t.computed)(()=>{if(!Array.isArray(c.value)||c.value.length===0)return l.emptyText;let d=Bu(l.modelValue,c.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={...o};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:Du,create:Iu,scope:qu}=ee("mapping"),Pu=Iu($u(Du,qu,!1)),Wn=Pu;function Me(e,n,a,l){const o="fox-browse-item";let i=null;a?i=(0,t.h)(Wn,{class:[`${o}__mapping`],source:a,modelValue:e,separator:l},{default:c=>(0,t.h)(St,{class:[`${o}__text`]},{default:()=>c.text})}):i=(0,t.h)(St,{class:[`${o}__text`]},{default:()=>e});const r={label:n.default,default:()=>i};return(0,t.h)(Ut,{class:[o]},r)}var Yr={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}},xu={...ye,...ve,...Yr};function Mu(e,n,a,l,o){return{props:xu,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,r){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y,exposeApi:C}=Be({componentName:e,get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:r,get templateRefProxy(){return c.value}},i.prop??r.attrs.name),{toLocaleRefs:k}=(0,ge.useFoxI18n)(n),v=k(i,["placeholder"]),S=(0,t.ref)(!1),f=xe(i,"modelValue",null,y),m=e,w=(0,t.computed)(()=>({[m]:!0,"is-disabled":d.value,"is-readonly":u.value})),A=Te((0,t.computed)(()=>i.textAlign),"textAlign"),g=(0,t.computed)(()=>{const _={};return A.value&&(_["text-align"]=A.value),_}),b=_=>{let te=_.target.value;i.type==="digit"&&(te=ql(te,!0)),i.type==="number"&&(te=ql(te,!1)),i.maxLength&&te.length>Number(i.maxLength)&&(te=te.slice(0,Number(i.maxLength))),f.value=te,y("update:modelValue",te,_),y("change",te,_)};let T=xe(i,"hintText"),E=(0,t.ref)(!1);const B=_=>{let te=_.target.value;S.value=!0,fe(T.value)||(E.value=!0),y("focus",te,_)},N=_=>{setTimeout(()=>{E.value&&(E.value=!1),S.value=!1},0);let te=_.target.value;i.maxLength&&te.length>Number(i.maxLength)&&(te=te.slice(0,Number(i.maxLength))),y("blur",te,_)},R=(0,t.computed)(()=>({[`${m}__append`]:!0,"is-disabled":d.value,"is-readonly":u.value})),U=(0,t.computed)(()=>{const _={};return r.slots.append&&!$.value&&!X.value&&(_.display="none"),_}),$=(0,t.computed)(()=>ke(i.unit)>0),x=(0,t.computed)(()=>!X.value),M=(0,t.computed)(()=>({[`${m}__unit`]:!0,hidden:!x.value})),O=_=>{f.value="",y("update:modelValue","",_),y("change","",_),y("clear","")},z=(0,t.computed)(()=>Se(i.clearable)&&!d.value&&!u.value),X=(0,t.computed)(()=>{let _=ke(f.value)>0;return Se(i.clearable)&&_&&S.value}),P=(0,t.computed)(()=>({action:!0,hidden:!X.value}));return C({setDisabled:_=>{s.value=_},setReadonly:_=>{h.value=_}}),()=>{if(p.value==="on"&&(u.value||d.value))return l(f.value,r.slots);const _={class:w.value,style:g.value,type:i.type,maxlength:i.maxLength,placeholder:v.placeholder.value,disabled:d.value,readonly:u.value,value:f.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:b,onFocus:B,onBlur:N},te=[],W=(0,t.h)("input",_);te.push(W);const Z=[];if(z.value){const H=(0,t.h)(o,{class:["action-icon"]}),F=(0,t.h)("view",{class:P.value,onClick:O},{default:()=>[H]});Z.push(F)}if($.value){const H=(0,t.h)("view",{class:M.value},[i.unit]);Z.push(H)}const J=(0,t.h)("view",{class:R.value,style:U.value},{default:()=>Z});te.push(J);const j={default:()=>te};j.label=r.slots.default,j.prepend=r.slots.prepend,j.append=r.slots.append,j.fixedPreTip=r.slots.fixedPreTip,j.fixedTip=r.slots.fixedTip;const ne={...Qe(i,Yr),ref:c,hintText:T.value,hintVisible:E.value};return i.prop&&(ne.prop=`${i.prop}_item`),a(ne,j)}}}}var{componentName:Ru,create:zu,scope:Fu}=ee("input-item"),Lu=zu(Mu(Ru,Fu,Ie,Me,oe.CircleClose)),ta=Lu;function Xr(e,n=0){let a=`${e}`,l=a.indexOf(".");if(l==-1)return a;let o=l;for(let i=a.length-1;i>=l;i--)if(a.charAt(i)!="0"){o=i;break}return o-l<n?o=l+n+1:o!=l&&(o+=1),o>a.length?a=a.padEnd(o,"0"):a=a.substring(0,o),a}function Qr(e,n,a=20){return typeof n=="string"&&(n=de(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?Xr(lr(`${e}`,`${n}`)):Xr(Tl(`${e}`,ar(`${n}`),20))}function Ou(e,n=-1,a=!1,l=3,o=","){return mn(e,de(n),a,l,o)}function Gr(e,n,a,l,o=!0){if(e==="")return"";if(e=or(e),n=de(n),n==1)return e;if(l)e=Qr(e,n),a&&(e=="0"&&o?e=`${e}.`.padEnd(de(a)+2,"0"):e=Tl(e,1,de(a)));else{let i=-1*n;e=Qr(e,i)}return e}function _r(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=Se(n.minInclude),o=Vl(e,n.min);(l&&o==-1||!l&&(o==0||o==-1))&&(a.message="请输入不小于 {0} 的数值".replace("{0}",n.min),a.minValid=!1)}if(n.max!=null){let l=Se(n.maxInclude),o=Vl(e,n.max);(l&&o==1||!l&&(o==0||o==1))&&(a.maxValid=!1)}return a}var Zr={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]}},Ku={...ye,...ve,...Zr};function Uu(e,n,a,l,o){return{props:Ku,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,r){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y,exposeApi:C}=Be({componentName:e,get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:r,get templateRefProxy(){return c.value}},i.prop??r.attrs.name),k=(0,t.ref)(!1),v=xe(i,"modelValue",null,y),S=(0,t.ref)("");(0,t.watch)([()=>v.value,()=>i.rates,()=>i.precision],([j,ne,H])=>{if(fe(j)){S.value="";return}const F=Gr(j,ne,H,!1);S.value!==F&&(S.value=F)},{immediate:!0});const f=(0,t.computed)(()=>{let j="";return k.value&&(j=S.value),j}),{t:m}=(0,ge.useFoxI18n)(n),w=(0,t.computed)(()=>{let j=i.placeholder??"";return!k.value&&!fe(S.value)?j=Ou(S.value,i.decimalLength,i.autoPadding,i.digits,i.separator):j=fe(j)?m(["placeholder"]):j,j}),A=e,g=(0,t.computed)(()=>({[A]:!0,[`${A}__placeholder`]:S.value.length>0,"is-disabled":d.value,"is-readonly":u.value})),b=Te((0,t.computed)(()=>i.textAlign),"textAlign"),T=(0,t.computed)(()=>{const j={};return b.value&&(j["text-align"]=b.value),j}),E=(0,t.ref)(""),B=(0,t.computed)(()=>{let j=E.value;return fe(j)&&(j=i.errorTip??""),j}),N=(0,t.ref)(""),R=(0,t.ref)(!1),U=j=>{let ne=j.target.value;if(fe(ne)){S.value="",v.value="",y("update:modelValue","",j),y("change","",j),Se(i.showTip)&&R.value&&(R.value=!1);return}if(ne.length>=2){let H=ne;if(H.charAt(0)=="-"&&(H=H.substring(1)),H.length>=2&&H.charAt(0)=="0"&&H.charAt(1)!="."){(0,t.triggerRef)(S);return}}if(ne!="-"){if(!yn(ne)){(0,t.triggerRef)(S);return}if(i.integerLength!=-1&&fr(ne)>Number(i.integerLength)){(0,t.triggerRef)(S);return}if(i.decimalLength&&i.decimalLength!=-1&&mr(ne)>Number(i.decimalLength)){(0,t.triggerRef)(S);return}let H=_r(ne,i);if(H.maxValid===!1){E.value=H.message,(0,t.triggerRef)(S);return}}else if(i.min!=null&&de(i.min)>=0){(0,t.triggerRef)(S);return}N.value=ne,Se(i.showTip)&&(R.value=ne.length>0),S.value=ne,v.value=Gr(ne,i.rates,i.precision,!0),y("update:modelValue",v.value,j),y("change",v.value,j)},$=j=>{if(k.value=!0,Se(i.showTip)){let ne=S.value;fe(ne)&&(ne=i.hintText),fe(ne)||(N.value=ne,R.value=!0)}E.value="",y("focus",v.value,j)},x=j=>{if(setTimeout(()=>{k.value=!1,Se(i.showTip)&&R.value===!0&&(R.value=!1)},0),!fe(S.value)){let ne=_r(S.value,i);if(ne.minValid===!1||ne.maxValid===!1){E.value=ne.message;return}}y("update:modelValue",v.value,j),y("blur",v.value,j)},M=(0,t.computed)(()=>({[`${A}__append`]:!0,"is-disabled":d.value,"is-readonly":u.value})),O=(0,t.computed)(()=>{const j={};return r.slots.append&&!z.value&&!W.value&&(j.display="none"),j}),z=(0,t.computed)(()=>ke(i.unit)>0),X=(0,t.computed)(()=>!W.value),P=(0,t.computed)(()=>({[`${A}__unit`]:!0,hidden:!X.value})),_=j=>{v.value="",y("update:modelValue","",j),y("change","",j),y("clear","")},te=(0,t.computed)(()=>Se(i.clearable)&&!d.value&&!u.value),W=(0,t.computed)(()=>{let j=ke(v.value)>0;return Se(i.clearable)&&j&&k.value}),Z=(0,t.computed)(()=>({action:!0,hidden:!W.value}));C({setDisabled:j=>{s.value=j},setReadonly:j=>{h.value=j}});const J=()=>v.value?w.value:v.value;return()=>{if(p.value==="on"&&(u.value||d.value))return l(J(),r.slots);let j={class:g.value,style:T.value,type:"digit",maxlength:i.maxLength,placeholder:w.value,disabled:d.value,readonly:u.value,value:f.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:U,onFocus:$,onBlur:x},ne=[],H=(0,t.h)("input",j);ne.push(H);let F=[];if(te.value){const le=(0,t.h)(o,{class:["action-icon"]}),D=(0,t.h)("view",{class:Z.value,onClick:_},{default:()=>[le]});F.push(D)}if(z.value){const le=(0,t.h)("view",{class:P.value},[i.unit]);F.push(le)}const L=(0,t.h)("view",{class:M.value,style:O.value},{default:()=>F});ne.push(L);const G={default:()=>ne};G.label=r.slots.default,G.prepend=r.slots.prepend,G.append=r.slots.append,G.fixedPreTip=r.slots.fixedPreTip,G.fixedTip=r.slots.fixedTip;const Q={...Qe(i,Zr),ref:c,errorTip:B.value,hintText:N.value,hintVisible:R.value,hintType:"number"};return i.prop&&(Q.prop=`${i.prop}_item`),a(Q,G)}}}}var{componentName:Hu,create:ju,scope:Wu}=ee("money-item"),Yu=ju(Uu(Hu,Wu,Ie,Me,oe.CircleClose)),na=Yu,la={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:Xu,create:Qu,scope:Gu}=ee("textarea"),_u=Qu({props:{...la},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=(0,ge.useFoxI18n)(Gu);const l=a(e,["placeholder"]),o=(0,t.ref)(),i=(0,t.computed)(()=>{const p=Xu;return{[p]:!0,[`${p}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&s(String(e.modelValue)),e.autosize&&(0,t.nextTick)(c)});const r=(0,t.computed)(()=>({textAlign:e.textAlign})),c=()=>{let p=o.value;p.style.height="auto";let y=p.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:C,minHeight:k}=e.autosize;C!==void 0&&(y=Math.min(y,C)),k!==void 0&&(y=Math.max(y,k))}y&&(console.info("----------- height",y),p.style.height=y+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(c)});const s=(p,y)=>{e.maxLength&&p.length>Number(e.maxLength)&&(p=p.substring(0,Number(e.maxLength))),n("update:modelValue",p,y),n("change",p,y)};return{...l,textareaRef:o,classes:i,styles:r,change:p=>{const y=p.target;s(y.value,p)},focus:p=>{e.disabled||e.readonly||n("focus",p)},blur:p=>{if(e.disabled||e.readonly)return;let y=p.target.value;s(y,p),n("blur",{value:y,event:p})}}}}),Zu=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Ju={key:0,class:"fox-textarea__limit"};function ed(e,n,a,l,o,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]=(...r)=>e.change&&e.change(...r)),onBlur:n[1]||(n[1]=(...r)=>e.blur&&e.blur(...r)),onFocus:n[2]||(n[2]=(...r)=>e.focus&&e.focus(...r)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Zu),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ju,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var Yn=ie(_u,[["render",ed]]);function td(e,n,a,l,o){return{props:{...ye,...ve,...la},emits:["update:modelValue","change","blur","focus","setValue"],setup(i,r){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y}=Be({componentName:e,get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:r,get templateRefProxy(){return c.value}},i.prop??r.attrs.name),C=xe(i,"modelValue",null,y),k=w=>{C.value=w,y("update:modelValue",w,{}),y("change",w,{})};let v=xe(i,"hintText"),S=(0,t.ref)(!1);const f=w=>{fe(v.value)||(S.value=!0),y("focus",C.value,w)},m=w=>{setTimeout(()=>{S.value&&(S.value=!1)},0),y("blur",C.value,w)};return()=>{if(p.value==="on"&&(u.value||d.value))return l(C.value,r.slots);const w={...be(i,la),disabled:d.value,readonly:u.value,value:C.value,"onUpdate:modelValue":k,onFocus:f,onBlur:m},A=[],g=(0,t.h)(o,w);A.push(g);const b={default:()=>A};b.label=r.slots.default,b.prepend=r.slots.prepend,b.append=r.slots.append,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const T={...be(i,ve,ye),ref:c};return i.prop&&(T.prop=`${i.prop}_item`),a(T,b)}}}}var{componentName:nd,create:ld,scope:ad}=ee("textarea-item"),od=ld(td(nd,ad,Ie,Me,Yn)),aa=od;function rd(e){return e===window}var qe=e=>{const n=(0,t.unref)(e);if(rd(n)){const a=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:a,bottom:l,width:a,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Jr=10;function ei(e,n){return e>n&&e>Jr?"horizontal":n>e&&n>Jr?"vertical":""}function Xn(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Qn(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(r=>{if(r.touches){const c=r.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const c=r;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=ei(e.offsetX,e.offsetY))}),start:(r=>{if(l(),r.touches){const c=r.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const c=r;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:a,state:e}}function nt(){const e=(0,t.ref)(0),n=(0,t.ref)(0),a=(0,t.ref)(0),l=(0,t.ref)(0),o=(0,t.ref)(0),i=(0,t.ref)(0),r=(0,t.ref)(0),c=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(0),h=(0,t.ref)(""),u=()=>h.value==="vertical",p=()=>h.value==="horizontal",y=()=>{r.value=0,c.value=0,s.value=0,d.value=0,h.value="",a.value=0};return{move:(v=>{if(v.touches){const S=v.touches[0];r.value=S.clientX-e.value,c.value=S.clientY-n.value,o.value=S.clientX,i.value=S.clientY}else{const S=v;r.value=S.clientX-e.value,c.value=S.clientY-n.value,o.value=S.clientX,i.value=S.clientY}s.value=Math.abs(r.value),d.value=Math.abs(c.value),l.value=Date.now()-a.value,h.value||(h.value=ei(s.value,d.value))}),start:(v=>{if(y(),v.touches){const S=v.touches[0];e.value=S.clientX,n.value=S.clientY}else{const S=v;e.value=S.clientX,n.value=S.clientY}a.value=Date.now()}),reset:y,startX:e,startY:n,startTime:a,duration:l,moveX:o,moveY:i,deltaX:r,deltaY:c,offsetX:s,offsetY:d,direction:h,isVertical:u,isHorizontal:p}}var id=2e3,ti=()=>id++,lt={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:{}}},sd=(e,n)=>({components:n,props:{...lt},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:l}){const o=(0,t.reactive)({zIndex:0,showSlot:!0,closed:a.closeable});a.visible&&(o.zIndex=ti());const i=(0,t.computed)(()=>{const k=e,v=[k,`${k}--${a.position}`];return a.round&&v.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&v.push(`${k}--${a.position}--safebottom`),typeof a.popClass=="string"?v.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(S=>{v.push(S)}),v}),r=(0,t.computed)(()=>({zIndex:o.zIndex,transitionDuration:`${a.duration}s`,...a.style})),c=(0,t.computed)(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),s=()=>{l("update:visible",!0),a.zIndex?o.zIndex=a.zIndex:o.zIndex=ti(),a.destroyOnClose&&(o.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),a.destroyOnClose&&setTimeout(()=>{o.showSlot=!1},+a.duration*1e3)},h=k=>{l("click-pop",k)},u=k=>{k.stopPropagation(),l("click-close-icon",k),l("update:visible",!1)},p=k=>{l("click-overlay",k),a.closeOnClickOverlay&&l("update:visible",!1)},y=k=>{l("opend",k)},C=k=>{l("closed",k)};return(0,t.watch)(()=>a.visible,k=>{a.visible?s():d()}),(0,t.watch)(()=>a.closeable,k=>{o.closed=k}),{...(0,t.toRefs)(o),popStyle:r,transitionName:c,classes:i,onClick:h,onClickCloseIcon:u,onClickOverlay:p,onOpened:y,onClosed:C}}}),ni={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}},oa={...lt,...ni,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}},li=36;function cd(){return li}function ud(e){li=e}function ze(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ra(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function dd(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function st(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ai(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var fd=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=tt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function md(){return new fd(it())}function oi(e,n,a){return!(ze(e,n)!==ze(e,a)||st(e,n)!==st(e,a))}function pd(e,n,a,l){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const o=[],i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let r=0;r<n.length&&r<a.length;r++){const c=n[r];let s=a[r].findIndex(d=>{if(i==="text")return ze(e,d)===c;if(i==="value"){let h=st(e,d);return h==null&&(h=ze(e,d)),h===c}else if(i==="item")return oi(e,d,c)});if(s==-1)break;o.push(s)}else{let r=a[0];for(let c=0;c<n.length;c++){const s=n[c];let d=r.findIndex(u=>{if(i==="text")return ze(e,u)===s;if(i==="value"){let p=st(e,u);return p==null&&(p=ze(e,u)),p===s}else if(i==="item")return oi(e,u,s)});if(d==-1)break;o.push(d);const h=ra(e,r[d]);if(!Array.isArray(h))break;r=h}}return o}function ri(e,n,a,l){if(a.length==0)return null;const o={texts:[],values:[],items:[]},i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let r=0;r<n.length&&r<a.length;r++){const c=a[r];let s=n[r];s<0&&s>=c.length&&(s=0);const d=c[s],h=ze(e,d);if(o.texts.push(h),o.items.push(d),i==="text")o.values.push(h);else if(i==="value"){let u=st(e,d);u==null&&(u=h),o.values.push(u)}else o.values.push(d)}else{let r=a[0];for(let c=0;c<n.length;c++){let s=n[c];s<0&&s>=r.length&&(s=0);const d=r[s],h=Object.assign({},d);h.children=null;const u=ze(e,d);if(o.texts.push(u),o.items.push(h),i==="text")o.values.push(u);else if(i==="value"){let p=st(e,d);p==null&&(p=u),o.values.push(p)}else o.values.push(h);if(!Array.isArray(d.children))break;r=d.children}}return o}function ii(e){return{text:e,value:e}}var hd=15,gd=300,yd=200,{create:bd}=ee("picker-column");function vd(e){e.stopPropagation()}function Sd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&vd(e)}var kd={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},...ni},wd=bd({props:kd,emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=(0,t.computed)(()=>({"fox-picker__list":!0})),l=(0,t.computed)(()=>({height:`${de(e.visibleItemCount)*+e.itemHeight}px`})),o=(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)),r=b=>{const T=b+1;return T>=u.currIndex+8||T<=u.currIndex-8},c=(0,t.computed)(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${u.deg})`,top:`${i.value}px`})),s=b=>{const T=b+1;return`transform: rotate3d(1, 0, 0, ${-u.rotation*T}deg) translate3d(0px, 0px, 104px)`},d=(0,t.computed)(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${u.scrollDistance+i.value}px, 0)`})),h=(0,t.ref)(null),u=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),p=b=>ze(e,b),y=b=>st(e,b),C=nt(),k=()=>{u.transitionEndTrigger&&(u.transitionEndTrigger(),u.transitionEndTrigger=null)},v=(b,T=!1,E=!1)=>{if(u.currIndex=b,T){const B=()=>{u.moving=!1,n("update:modelValue",b),n("change",b)};E?u.transitionEndTrigger=B:B()}},S=(b,T,E)=>{let B=b+u.startDistance;if(T==="end"){const N=-(e.source.length-1)*e.itemHeight;B<N&&(B=N),B>0&&(B=0);let R=Math.abs(Math.round(-B/e.itemHeight));const U=-R*e.itemHeight,$=`${(R+1)*u.rotation}deg`;v(R,!0,E?E>0:!1),f(U,T,E,$)}else{let N=(-B/e.itemHeight+1)*u.rotation;const R=(e.source.length+1)*u.rotation,U=0;if(N=Math.min(Math.max(N,U),R),e.threeDimensional&&(N<U||N>R))return;f(B,null,void 0,`${N}deg`)}},f=(b=0,T,E=yd,B)=>{T==="end"?u.scrollTime=E:u.scrollTime=0,u.deg=B,u.scrollDistance=b},m=(b,T)=>(b=Math.abs(b/T)/.003*(b<0?-1:1),b),w=b=>{e.readonly||(u.startDistance=u.scrollDistance,C.start(b),u.transitionEndTrigger=null)},A=b=>{e.readonly||(u.moving=!0,C.move(b),C.isVertical()&&(u.moving=!0,Sd(b,!0)),S(C.deltaY.value,"",0))},g=()=>{if(e.readonly)return;const b=C.deltaY.value,T=C.duration.value;T<gd&&Math.abs(b)>hd?S(m(b,T),"end",de(e.swipeDuration)):S(b,"end",0)};return(0,t.watch)(()=>e.modelValue,b=>{const T=u.currIndex-b;T!==0&&(u.currIndex=b,u.startDistance=u.scrollDistance,S(T*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,b=>{if(u.currIndex>=b.length){const T=(b.length-1-u.currIndex)*e.itemHeight;u.startDistance=u.scrollDistance,S(T,"end",0)}}),(0,t.watch)(()=>e.visible,b=>{b===!1&&k()}),(0,t.onMounted)(()=>{S(-e.modelValue*e.itemHeight)}),{classes:a,styles:l,contentClasses:o,itemText:p,itemValue:y,...(0,t.toRefs)(u),roller:h,getItemText:ze,onTouchStart:w,onTouchMove:A,onTouchEnd:g,isHidden:r,setRollerStyle:s,touchRollerStyle:c,touchTileStyle:d,stopMomentum:k}}}),Cd={key:1,class:"fox-picker__item-tile"};function Nd(e,n,a,l,o,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]=(...r)=>e.onTouchStart&&e.onTouchStart(...r)),onTouchmove:n[1]||(n[1]=(...r)=>e.onTouchMove&&e.onTouchMove(...r)),onTouchend:n[2]||(n[2]=(...r)=>e.onTouchEnd&&e.onTouchEnd(...r)),onTouchcancel:n[3]||(n[3]=(...r)=>e.onTouchEnd&&e.onTouchEnd(...r)),onTransitionend:n[4]||(n[4]=(...r)=>e.stopMomentum&&e.stopMomentum(...r))},[(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,(r,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${c}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(c)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(c))},(0,t.toDisplayString)(e.itemText(r)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",Cd,(0,t.toDisplayString)(e.itemText(r)),1))],64))),128))],6)],38)}var Ad=ie(wd,[["render",Nd]]),Ht=0,si="fox-overflow-hidden",ci=()=>Xe?document.body:{classList:[]},Bd=e=>[()=>{if(e())try{!Ht&&ci().classList.add(si),Ht++}catch{}},()=>{if(e()&&Ht)try{Ht--,!Ht&&ci().classList.remove(si)}catch{}}],Td={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:Vd,create:Ed}=ee("overlay"),$d=Ed({props:{...Td},emits:["click","update:visible"],setup(e,{emit:n}){const[a,l]=Bd(()=>e.lockScroll),o=(0,t.computed)(()=>({[Vd]:!0,[e.overlayClass]:!0})),i=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,c=>{c?a():l()}),{classes:o,style:i,onClick:c=>{n("click",c),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Dd(e,n,a,l,o,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)((...r)=>e.onClick&&e.onClick(...r),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var ct=ie($d,[["render",Dd]]),{componentName:Id,create:qd}=ee("popup"),Pd=qd(sd(Id,{FoxOverLay:ct,Close:oe.Close}));function xd(e,n,a,l,o,i){const r=(0,t.resolveComponent)("FoxOverLay"),c=(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)(r,(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)(c)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var we=ie(Pd,[["render",xd]]),Md=(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,Qe({...e},{poppable:!1}),n):n?.default?.()??null}}),Rd=Md,{create:zd,componentName:ui,scope:Fd}=ee("picker"),Ld=zd({components:{Column:Ad,Wrapper:Rd},props:oa,emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:l}=(0,ge.useFoxI18n)(Fd),o=a(e,["title","cancelText","clearText","confirmText"]),i=(0,t.ref)(null),r=(0,t.ref)(cd());(0,t.watch)(()=>e.visible,M=>{M&&r.value<=0&&setTimeout(()=>{i.value&&(r.value=qe(i.value).height,ud(r.value))},50)});const c=(0,t.computed)(()=>({[ui]:!0})),s=(0,t.computed)(()=>{const M=[];return Array.isArray(e.popClass)?M.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&M.push(e.popClass),M.push(`${ui}__popup`),M.join(" ")}),d=md(),h=(0,t.ref)("singleColumn");let u=(0,t.ref)([]);const p=(0,t.computed)(()=>{if(typeof e.sourceFilter=="function"){const M=[];for(let O=0;O<u.value.length;O++){const z=u.value[O];if(Array.isArray(z)){const X=z.filter(e.sourceFilter);M.push(X)}}return M}return u.value});(0,t.watch)([()=>e.source,()=>e.params],async([M,O])=>{if(M){let z=await d.load("picker",M,O);if(z.length>0){let X=z[0];if(Array.isArray(X)){if(typeof X[0]=="string"){let P=z,_=[];P.forEach(te=>{let W=te.map(Z=>ii(Z));_.push(W)}),u.value=_}else u.value=z;h.value="multipleColumn"}else if(typeof X=="string"){let P=z,_=[],te=P.map(W=>ii(W));_.push(te),u.value=_,h.value="singleColumn"}else{const P=ra(e,X);Array.isArray(P)?(h.value="cascade",u.value=[z]):(h.value="singleColumn",u.value=[z])}}else u.value=[]}},{immediate:!0});const y=(0,t.ref)([]),C=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),k=(0,t.ref)([]);let v=null;const S=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>p.value],([M,O])=>{let z=pd(e,M,O,h.value);if(!De(z,S.value)){S.value=z,v||(v=z?[...z]:[]);let X=ri(e,z,O,h.value);X&&(y.value=X.texts,De(C.value,X.values)||(C.value=X.values),De(k.value,X.items)||(k.value=X.items),n("update:text",y.value))}});let f="";const m=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,M=>{m.value=M,M&&(f="active",S.value.length>0&&(v=[...S.value]))});const w=M=>{let O=ai(e,M);return $e(O)?O.defaultIndex??0:0},A=M=>{if(e.readonly===!0)return!0;let O=ai(e,M);return $e(O)?O.readonly??!1:!1},g=(M,O)=>{let z=S.value;z[M]=O;for(let P=0;P<M;P++)z[P]==null&&(z[P]=w(P));if(h.value==="cascade")for(let P=M+1;P<T.value.length;P++){let _=w(P);P<z.length?z[P]=_:z.push(_)}else for(let P=z.length;P<T.value.length;P++){let _=w(P);z.push(_)}S.value=z;let X=ri(e,z,p.value,h.value);X&&(y.value=X.texts,C.value=X.values,k.value=X.items)},b=M=>M<S.value.length?S.value[M]:w(M),T=(0,t.computed)(()=>{if(p.value.length==0)return[];if(h.value=="singleColumn"||h.value=="multipleColumn")return p.value;let M=[],O=0,z=p.value[0],X=0;for(;;){let P=z.map(W=>{let Z=Object.assign({},W);return dd(e,Z,null),Z});M.push(P),O>=S.value.length?X=0:X=S.value[O],(X<0||X>=z.length)&&(X=0);let _=z[X];const te=ra(e,_);if(!Array.isArray(te))break;z=te,O++}return M}),E=(0,t.computed)(()=>de(+e.visibleItemCount-1)/2*r.value),B=(M=!1)=>{if(e.readonly===!0){M&&n("update:visible",!1);return}let O=p.value.length-1;for(;O>=0&&!(S.value[O]===null||S.value[O]===void 0);O--);if(O>=0&&g(O,0),h.value==="singleColumn"){let z=C.value.length>0?C.value[0]:"",X=k.value.length>0?k.value[0]:null;n("update:modelValue",z),n("update:text",y.value),n("change",z,X),M&&(n("confirm",z),n("update:visible",!1))}else n("update:modelValue",C.value),n("update:text",y.value),n("change",C.value,k.value),M&&(n("confirm",C.value),n("update:visible",!1))},N=(M,O)=>{f!=="close"&&(g(M,O),e.isAutoBackFill&&B(!m.value))},R=()=>{f==="active"&&(f="confirm",v=Array.isArray(S.value)?[...S.value]:[],B(!0))},U=()=>{h.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),S.value=[],v=null};return{...o,pickerLineRef:i,classes:c,popClasses:s,columns:T,dataType:h,show:m,itemHeight:r,top:E,isReadonly:A,getIndex:b,change:N,close:()=>{if(f==="active"){if(f="close",v===null||v.length===0)U();else{if(Array.isArray(v))for(let M=0;M<v.length;M++)g(M,v[M]);B(!1)}n("close"),n("update:visible",!1)}},confirm:R,clear:()=>{if(f==="active"){if(f="clear",e.readonly===!0){n("update:visible",!1);return}U(),v=null,n("clear",""),n("update:visible",!1)}}}}}),Od={key:0,class:"fox-picker__bar"},Kd={class:"fox-picker__title"},Ud={class:"fox-picker__bar__action"},Hd={class:"fox-picker__column"};function jd(e,n,a,l,o,i){const r=(0,t.resolveComponent)("Column"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(c,{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",Od,[(0,t.createElementVNode)("view",Kd,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Ud,[(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",Hd,[(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)(r,{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 jt=ie(Ld,[["render",jd]]),Wd={...ye,...ve,...oa,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,a,l,o,i,r,c=!0){return{props:Wd,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:u,disabled:p,innerReadonly:y,readonly:C,browse:k}=Ve(s),{emitEvent:v,exposeApi:S}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return C.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,ge.useFoxI18n)(n),m=f(s,["placeholder"]),w=(0,t.ref)(!1),A=xe(s,"modelValue",null,v),g=(0,t.ref)([]),b=(0,t.computed)(()=>Array.isArray(g.value)?g.value.join(s.separator):g.value),T="fox-input-item",E=(0,t.computed)(()=>({[T]:!0,"is-disabled":p.value,"is-readonly":C.value})),B=Te((0,t.computed)(()=>s.textAlign),"textAlign"),N=(0,t.computed)(()=>{const L={};return B.value&&(L["text-align"]=B.value),L}),R=(0,t.ref)(!1),U=()=>{R.value=!0},$=L=>{R.value=L},x=L=>{A.value=L,v("update:modelValue",L)},M=(L,G)=>{v("change",L,G)},O=L=>{let G=L.target.value;w.value=!0,v("focus",G,L)},z=L=>{setTimeout(()=>{w.value=!1},0);let G=L.target.value;s.maxLength&&G.length>Number(s.maxLength)&&(G=G.slice(0,Number(s.maxLength))),v("blur",G,L)},X=L=>{g.value=L,Array.isArray(L)&&L.length===0?v("update:text",L[0]):v("update:text",L)},P=(0,t.computed)(()=>({[`${T}__append`]:!0,"is-disabled":p.value,"is-readonly":C.value})),_=(0,t.computed)(()=>ke(s.unit)>0),te=(0,t.computed)(()=>ke(s.unit)>0&&!w.value),W=(0,t.computed)(()=>({hidden:!te.value})),Z=L=>{A.value="",v("update:modelValue","",L),v("change","",L),v("clear","")},J=(0,t.computed)(()=>s.clearable&&!p.value&&!C.value),j=(0,t.computed)(()=>ke(A.value)>0&&w.value),ne=L=>{j.value?Z(L):U()},H=(0,t.computed)(()=>j.value&&J.value?o:i),F=(0,t.computed)(()=>({action:!0}));return S({setDisabled:L=>{u.value=L},setReadonly:L=>{y.value=L}}),()=>{if(k.value==="on"&&(C.value||p.value))return l(b.value,d.slots);const L={class:E.value,style:N.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:U,onFocus:O,onBlur:z};c&&(L.disabled=!0);const G=[],Q=(0,t.h)("input",L);G.push(Q);const le=[],D=(0,t.h)(H.value,{class:["action-icon"]}),q=(0,t.h)("view",{class:F.value,onClick:ne},{default:()=>[D]});if(le.push(q),_.value){const se=(0,t.h)("view",{class:W.value},[s.unit]);le.push(se)}const K=(0,t.h)("view",{class:P.value},{default:()=>le});G.push(K);const I={default:()=>G};I.label=d.slots.default,I.prepend=d.slots.prepend,I.append=d.slots.append,I.fixedPreTip=d.slots.fixedPreTip,I.fixedTip=d.slots.fixedTip;const Y=be(s,oa);Y.disabled=!1,Y.readonly=p.value||C.value,Y.visible=R.value,Y["onUpdate:visible"]=$,Y.modelValue=A.value,Y["onUpdate:modelValue"]=x,Y.text=g.value,Y["onUpdate:text"]=X,Y.onChange=M;const ae=(0,t.h)(r,Y);I.hide=()=>[ae];const re=be(s,ve,ye);return s.prop&&(re.prop=`${s.prop}_item`),re.ref=h,a(re,I)}}}}var{componentName:Xd,create:Qd,scope:Gd}=ee("picker-item"),_d=Qd(Yd(Xd,Gd,Ie,Me,oe.CircleClose,oe.ArrowRight,jt,!1)),ia=_d,Zd=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:a}){return()=>e.poppable?(0,t.h)(we,{...a},n):n?.default?.()??null}}),Jd=Zd,Gn=(e,n,a)=>e.map(l=>{const{value:o="value",text:i="text",children:r="children"}=a??{},{[o]:c,[i]:s,[r]:d,...h}=l,u={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:c,text:s,children:d,_parent:n};return u.children&&u.children.length&&(u.children=Gn(u.children,u,a)),u}),di=(e,n)=>{let a=0,l;for(;(l=e[a++])&&n(l)!==!0;)l.children&&l.children.length&&di(l.children,n)},ef={topId:null,idKey:"id",pidKey:"pid",sortKey:""},tf=(e,n)=>{const{topId:a,idKey:l,pidKey:o,sortKey:i}={...ef,...n||{}};let r=[],c={};return e.forEach(s=>{s={...s};const{[l]:d,[o]:h}=s,u=c[h]=c[h]||[];!r.length&&h===a&&(r=u),u.push(s),s.children=c[d]||(c[d]=[])}),i&&Object.keys(c).forEach(s=>{c[s].length>1&&c[s].sort((d,h)=>d[i]-h[i])}),c=null,r},sa={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}},fi=(e,n)=>n[e.textKey],Wt=(e,n)=>n[e.valueKey],nf=(e,n)=>n[e.visibleKey],mi=(e,n)=>n[e.disabledKey],lf=(e,n)=>{const a=n[e.doitKey];return Se(a)},af=(e,n)=>{const a=n[e.numKey];return a==null?null:de(n[a])},pi=(e,n,a)=>{const l=e.itemOptions;return typeof l=="function"?l(n,a):l||null};function of(e,n,a,l,o,i=!1){return{props:sa,emits:["update:modelValue","change","click"],setup(r,{slots:c,emit:s}){const d=(0,t.computed)(()=>{const D={};return D[`${e}`]=!0,D}),h=(0,t.computed)(()=>{const D={};return D[`${e}__titles`]=!0,D[`${r.direction}`]=!0,r.align&&(D[`${r.align}`]=!0),r.scroll===!0&&(D.scrollable=!0),r.shape&&(D[`${r.shape}`]=!0),r.showScrollArrow?(j.value===!0&&(D["has-left-scroll-arrow "]=!0),ne.value===!0&&(D["has-right-scroll-arrow "]=!0)):r.showQuickNavigation&&(D["has-navigation"]=!0),D}),u=(0,t.computed)(()=>({})),p=(0,t.computed)(()=>{if(!r.gutter)return 0;const D=ue(r.gutter);return D<=0?0:D}),y=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,D=>{y.value!==D&&(y.value=D,X(!1))});const C=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),k=(0,t.computed)(()=>{const D={};return S.value||(D.display="none"),D}),v=(0,t.ref)(),S=(0,t.ref)(!1),f=()=>{m(!S.value)},m=D=>{const q=D;q?(S.value=q,setTimeout(()=>{C.value["fox-tabs-bar__popup--show"]=!0,C.value["fox-tabs-bar__popup--hide"]=!1},0)):(C.value["fox-tabs-bar__popup--show"]=!1,C.value["fox-tabs-bar__popup--hide"]=!0,v.value?v.value.addEventListener("transitionend",()=>{S.value=!1},{once:!0}):setTimeout(()=>{S.value=!1},0))},w=(0,t.ref)(),A=(0,t.ref)([]),g=(D,q)=>{A.value[q]=D},b=D=>q=>{g(q,D)},T=(D,q)=>{const K=w.value,I=A.value;if(!K||!I||!I[D])return;const Y=I[D];let ae=0;r.direction==="vertical"?ae=Y.offsetTop-(K.offsetHeight-Y.offsetHeight)/2:ae=Y.offsetLeft-(K.offsetWidth-Y.offsetWidth)/2,E(K,ae,q?0:.3,r.direction)},E=(D,q,K,I)=>{let Y=0;const ae=I==="horizontal"?D.scrollLeft:D.scrollTop,re=K===0?1:Math.round(K*1e3/16);function se(){I==="horizontal"?D.scrollLeft+=(q-ae)/re:D.scrollTop+=(q-ae)/re,++Y<re&&Ue(se)}se()},B=(D,q)=>{const K=Wt(r,D),I={};return I[`${e}__titles-item`]=!0,I.disabled=mi(r,D),I.active=K===y.value,r.shape&&(I[`${r.shape}`]=!0),r.ellipsis&&(I.ellipsis=!0),q&&(q.class&&(I[`${q.class}`]=!0),q.disabled===!0&&(I.disabled=q.disabled)),I},N=(D,q)=>{const K={};if(p.value>0){const I=Math.abs(p.value/2);r.direction==="vertical"?(K["margin-top"]=`${I}px`,K["margin-bottom"]=`${I}px`):(K["margin-left"]=`${I}px`,K["margin-right"]=`${I}px`)}return q&&q.style&&Object.assign(K,q.style),K},R=(D,q)=>`${Wt(r,D)??q}`,U=(D,q)=>{const K=Wt(r,D),I={};I[`${e}__popup-item`]=!0,I.disabled=mi(r,D),I.active=K===y.value,r.shape&&(I[`${r.shape}`]=!0);const Y=pi(r,D,q);return Y&&Y.disabled===!0&&(I.disabled=Y.disabled),I},$=(0,t.computed)(()=>(r.data??[]).filter(D=>nf(r,D)!==!1)),x=(D,q)=>{const K=Wt(r,D);if(s("click",D,q),y.value==K)return;const I=()=>{y.value=K,r.scroll&&T(q,!1),s("update:modelValue",K),s("change",D,q)};if(typeof r.beforeChange=="function"){const Y=r.beforeChange(D,q);ft(Y)?Y.then(ae=>{ae!==!1&&I()}).catch(()=>{I()}):Y!==!1&&I()}else I()},M=(D,q)=>function(){x(D,q)},O=(D,q)=>{x(D,q),m(!1)},z=(D,q)=>function(){O(D,q)},X=D=>{if(!Array.isArray(r.data)||!r.scroll)return;J()&&G();const q=r.data.findIndex(K=>Wt(r,K)===y.value);q!==-1&&T(q,D)},P=()=>{J()||Q()};(0,t.watch)(()=>r.data,()=>{setTimeout(X,0)}),(0,t.onMounted)(()=>{X(!0)}),(0,t.onBeforeUnmount)(()=>{P()});const _=(D,q)=>{if(c.item)return c.item({item:D,index:q});const K=pi(r,D,q),I=[];if(c.text){const ae=c.text({item:D,index:q});I.push(ae)}else{const ae=[];if(K?.doit===!0||lf(r,D)){const he=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ae.push(he)}const re=K?.num??af(r,D);if(re){let he="";const Le=de(re);Le>=100?he="99+":he=`${Le}`;const un=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[he]);ae.push(un)}const se={class:`${e}__titles-item-text`};ae.push(fi(r,D));const Ce=(0,t.h)("view",se,ae);I.push(Ce)}const Y=(0,t.h)("view",{class:`${e}__titles-item-line`});return I.push(Y),(0,t.h)("view",{ref:b(q),class:B(D,K),style:N(D,K),key:R(D,q),onClick:M(D,q)},I)},te=()=>{const D=c.default?c.default():[];if(D.length===0)for(let q=0;q<$.value.length;q++){const K=$.value[q],I=_(K,q);D.push(I)}return(0,t.h)("view",{ref:w,class:h.value,style:u.value},D)},W=()=>{let D=null;return c.navigation?D=c.navigation():D=(0,t.h)(a),(0,t.h)("view",{class:`${e}__navigation`,onClick:f},[D])},Z=()=>{const D=[];for(let q=0;q<$.value.length;q++){const K=$.value[q];let I=null;c.popupItem?I=c.popupItem({item:K,index:q}):I=fi(r,K);const Y=(0,t.h)("view",{class:U(K,q),key:R(K,q),onClick:z(K,q)},[I]);D.push(Y)}return(0,t.h)("view",{class:C.value,style:k.value},D)},J=()=>r.showScrollArrow&&r.direction=="horizontal",j=(0,t.ref)(!1),ne=(0,t.ref)(!1),H=D=>{const q=w.value,K=A.value;if(!(!q||!K))if(D==="left"){const I=q.scrollLeft;let Y=I;for(let ae=0;ae<K.length;ae++){const re=K[ae].offsetLeft;if(I-re<0)break;Y=re}E(q,Y,.3,"horizontal")}else{const I=q.scrollLeft;let Y=I,ae=q.offsetWidth;for(let re=K.length-1;re>=0;re--){const se=K[re].offsetLeft+K[re].offsetWidth;if(se-I<q.offsetWidth){Y+=ae-se;break}ae=se}E(q,Y,.3,"horizontal")}},F=Pe(()=>{const D=w.value;if(!D)return;let q=D.scrollLeft>0;q!==j.value&&(j.value=q);let K=D.scrollWidth-D.scrollLeft>D.offsetWidth;K!==ne.value&&(ne.value=K)},50),L=D=>{F()},G=()=>{const D=w.value;D&&(F(),D.addEventListener("scroll",L))},Q=()=>{const D=w.value;D&&D.removeEventListener("scroll",L)},le=D=>{if(D==="left"&&j.value!==!0||D==="right"&&ne.value!==!0)return null;let q=null;return D==="left"?c.leftArrow?q=c.leftArrow():q=(0,t.h)(l):c.rightArrow?q=c.rightArrow():q=(0,t.h)(o),(0,t.h)("view",{class:[`${e}__scroll-arrow`,D],onClick:()=>{H(D)}},[q])};return()=>{const D=[],q=te();if(D.push(q),J()){const K=le("left");K&&D.push(K);const I=le("right");I&&D.push(I)}else if(r.showQuickNavigation){const K=W();D.push(K);const I=Z();D.push(I)}return(0,t.h)("view",{class:d.value},D)}}}}var{create:rf,componentName:sf,scope:cf}=ee("tabs-bar"),uf=rf(of(sf,cf,oe.MoreH,oe.Left,oe.Right,!1)),Yt=uf,hi=Symbol("TabsStatesKey"),ca={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]}},df=15,ff=300,mf=200;function pf(e,n,a=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*a}function gi(e,n=0,a,l,o=mf){a==="end"?e.style.transition=`transform ${o}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 hf=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,a,l=1,o){this.onStart=e,this.onMove=n,this.onEnd=a,this.momentumReduceRatio=l,this.isTouch=o??Xn()}open(e){this.el=e;const n=Qn(),a=(l,o,i)=>{const r={delta:l,direction:o,type:i};this.onMove(r)};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 o={delta:0,type:"start",direction:this.direction};this.onStart(o)},this.touchmove=l=>{if(!this.moving)return;n.move(l);let o=0;if(this.direction==="horizontal"){if(n.isVertical())return;o=n.state.deltaX}else{if(n.isHorizontal())return;o=n.state.deltaY}a(o,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 o=n.state.duration;o<ff&&Math.abs(l)>df?(l=pf(l,o,this.momentumReduceRatio),a(l,this.direction,"end")):a(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,a,l=1,o){return new hf(e,n,a,l,o)}function yf(e,n,a=!1){return{props:ca,emits:["update:modelValue","change"],setup(l,{emit:o,slots:i,expose:r}){const c=(0,t.shallowRef)([]),s={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 E={name:T};s.current.value===T&&(E.loaded=!0),c.value.push(E),(0,t.triggerRef)(c)},remove:T=>{const E=c.value.findIndex(B=>B.name===T);E!==-1&&c.value.splice(E,1)},isLoaded:T=>{if(!l.lazy)return!0;const E=c.value.findIndex(B=>B.name===T);return E!==-1?s.current.value?c.value[E].loaded??!1:E===0:!1}};(0,t.provide)(hi,s);const d=T=>{const E=c.value.findIndex(B=>B.name===T);E!==-1&&(c.value[E].loaded=!0,(0,t.triggerRef)(c))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([T,E])=>{s.current.value!==T&&(s.current.value=T??"",d(T??"")),s.direction.value!==E&&(s.direction.value=E)});const h=(0,t.ref)(null),u=(0,t.ref)(null),p=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),y=(0,t.computed)(()=>{const T={};if(l.width){const E=me(l.width);E&&(T.width=E)}if(l.height){const E=me(l.height);E&&(T.height=E)}return T});let C=!0;const k=(0,t.computed)(()=>{const T={};if(l.transition===!1)return T;const E=c.value.length;if(E<=0)return T;const B=c.value.findIndex(N=>N.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(T.height=`${E*s.tabHeight.value}px`,B!==-1&&(T.transform=`translate(0, -${B*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(T.width=`${E*s.tabWidth.value}px`,B!==-1&&(T.transform=`translate(-${B*s.tabWidth.value}px, 0)`)),C&&(C=!1,T.transition="transform 0s ease"),T}),v={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},S=T=>{const E=c.value.length,B=c.value.findIndex(N=>N.name===s.current.value);v.moved=0,T.direction==="vertical"?(v.min=-1*(s.tabHeight.value*(E-1)+s.tabHeight.value/4),v.max=s.tabHeight.value/4,v.start=-B*s.tabHeight.value,v.itemDistance=s.tabHeight.value):(v.min=-1*(s.tabWidth.value*(E-1)+s.tabWidth.value/4),v.max=s.tabWidth.value/4,v.start=-B*s.tabWidth.value,v.itemDistance=s.tabWidth.value)},f=T=>{const E=u.value;if(!E)return;let B=v.start+T.delta;if(B>v.max?B=v.max:B<v.min&&(B=v.min),T.type==="move")gi(E,B,"move",T.direction,300);else if(T.type==="end"){let N=Math.floor(Math.abs(B)*1/v.itemDistance);const R=Math.abs(B)%v.itemDistance;v.start>B?R>=v.itemDistance*v.triggerAutoMoveRatio&&(N+=1):R>v.itemDistance-v.itemDistance*v.triggerAutoMoveRatio&&(N+=1),B=-1*N*v.itemDistance,gi(E,B,"end",T.direction,300),v.moved=B;const U=c.value[N].name;s.current.value=U??"",d(U??""),o("update:modelValue",U)}},m=()=>{},w=()=>{if(!h.value)return;const T=In(h.value);s.tabWidth.value=T.width,s.tabHeight.value=T.height},A=Cn(w,250);let g=null,b=null;return(0,t.onMounted)(()=>{l.transition!==!1&&h.value&&(w(),window.ResizeObserver&&(b=new window.ResizeObserver(A),b.observe(h.value)),l.draggle&&(g=gf(S,f,m),g.open(u.value)))}),(0,t.onBeforeUnmount)(()=>{b&&(b.disconnect(),b=null),g&&g.close()}),r({doLayout(){w()}}),()=>{const T=(0,t.h)("view",{class:`${e}__panes`,style:k.value,ref:u},[i?.default?.()]);return(0,t.h)("view",{class:p.value,style:y.value,ref:h},[T])}}}}var{create:bf,componentName:vf,scope:Sf}=ee("tabs-container"),kf=bf(yf(vf,Sf,!1)),Xt=kf,wf={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 Cf(e,n,a){return{props:wf,setup(l,{emit:o,slots:i}){const r=(0,t.inject)(hi);(0,t.onMounted)(()=>{r.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{r.remove(l.paneKey)});const c=(0,t.computed)(()=>{const h=[e];return r.direction.value==="vertical"?h.push("is-vertical"):h.push("is-horizontal"),r.transition===!1?h.push("is-no-transition"):h.push("is-transition"),h}),s=(0,t.computed)(()=>{const h={};return r.transition===!1?(r.current.value!==l.paneKey&&(h.display="none"),h):(r.direction.value==="vertical"&&r.tabHeight.value>0?h.height=`${r.tabHeight.value}px`:r.tabWidth.value>0&&(h.width=`${r.tabWidth.value}px`),h)}),d=(0,t.computed)(()=>l.loaded!=null?Se(l.loaded):r.isLoaded(l.paneKey));return()=>{let h=[];if(d.value)h=i?.default?.()??[];else if(i.empty)h=i.empty();else{const u={class:`${e}__empty-icon`},p=(0,t.h)(l.emptyIcon??a,u),y=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),C=(0,t.h)("view",{class:`${e}__empty`},[p,y]);h.push(C)}return(0,t.h)("view",{class:c.value,style:s.value,prop:l.paneKey},h)}}}}var{create:Nf,componentName:Af,scope:Bf}=ee("tabs-pane"),Tf=Nf(Cf(Af,Bf,oe.Loading)),_n=Tf,yi=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=Gn(e,null,this.config)}updateChildren(e,n){n?n.children=Gn(e,n,this.config):this.nodes=Gn(e,null,this.config)}getNodeByValue(e){let n;return di(this.nodes,a=>{if(a.value===e)return n=a,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let a=this.nodes;for(;a&&a.length;){const l=a.find(o=>o.value===e[o.level]);if(!l)break;n.push(l),a=l.children}return n}isLeaf(e,n){const{leaf:a,children:l}=e,o=Array.isArray(l)&&!!l.length;return a||!o&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:a}=e;return Array.isArray(a)&&!!a.length}},{create:Vf,scope:Ef}=ee("cascader-pane"),$f=Vf({components:{Loading:oe.Loading,Checklist:oe.Checklist,TabsBar:Yt,TabsContainer:Xt,TabsPane:_n},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:a}=(0,ge.useFoxI18n)(Ef),l=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=(0,t.ref)(0),i=(0,t.ref)(),r=(0,t.ref)(!1),c=(0,t.ref)(e.modelValue),s=(0,t.ref)(new yi([],{})),d=(0,t.ref)([]),h=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),u=(0,t.computed)(()=>r.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((m,w)=>({text:m.selectedNode?m.selectedNode.text:a("select"),value:w}))),p=new Map;let y;const C=async()=>{p.clear(),d.value=[],o.value=0,r.value=!1,y=null;let{options:m}=e;l.value.convertConfig&&(m=tf(m,l.value.convertConfig)),s.value=new yi(m,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),h.value&&!s.value.nodes.length&&await v({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:s.value.nodes,selectedNode:null}],k(!h.value)},k=async(m=!0)=>{const w=c.value;if(w===void 0||!s.value.nodes.length)return;if(w.length===0){o.value=0,d.value=[{nodes:s.value.nodes,selectedNode:null}];return}let A=w;if(h.value&&Array.isArray(w)&&w.length){A=[];let g=s.value.nodes.find(b=>b.value===w[0]);g&&(A=[g.value],r.value=!0,await v(await w.slice(1).reduce(async(b,T)=>{const E=await b;await v(E);const B=E&&E?.children?.find(N=>N.value===T);return B&&A.push(T),Promise.resolve(B)},Promise.resolve(g))),r.value=!1)}A.length&&w===e.modelValue&&s.value.getPathNodesByValue(A).map((g,b)=>{o.value=b,f.handleNode(g,m)})},v=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 w=m.root?null:m;let A=p.get(m);A||(A=new Promise(b=>{l.value.lazyLoad?.(m,b)}),p.set(m,A));const g=await A;Array.isArray(g)&&g.length>0?s.value.updateChildren(g,w):m.leaf=!0,m.loading=!1,p.delete(m)},S=m=>{const w=m.map(A=>A.value);c.value=w,n("change",w,m),n("pathChange",m),n("update:modelValue",w)},f={async handleNode(m,w){const{disabled:A,loading:g}=m;if(!(!w&&A||!d.value[o.value])){if(s.value.isLeaf(m,h.value)){if(m.leaf=!0,d.value[o.value].selectedNode=m,d.value=d.value.slice(0,m.level+1),!w){const b=d.value.map(T=>T.selectedNode);S(b),n("pathChange",b)}return}if(s.value.hasChildren(m,h.value)){const b=m.level+1;d.value[o.value].selectedNode=m,d.value=d.value.slice(0,b),d.value.push({nodes:m.children||[],selectedNode:null}),o.value=b,w||n("pathChange",d.value.map(T=>T.selectedNode));return}y=m,!g&&(await v(m),y===m&&(d.value[o.value].selectedNode=m,f.handleNode(m,w)))}},handleTabChange(m,w){y=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:a("select")},isSelected(m,w){return m.selectedNode&&m.selectedNode.value===w.value}};return(0,t.watch)([l,()=>e.options],()=>{C()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,m=>{De(m,c.value)||(c.value=m,k(!h.value))}),(0,t.watch)(()=>e.visible,m=>{m&&Array.isArray(c.value)&&c.value.length>0&&k(),m&&i.value&&setTimeout(()=>{i.value.doLayout()},0)}),{panes:d,panesTitles:u,initLoading:r,tabsCursor:o,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 xf(e,n,a,l,o,i){const r=(0,t.resolveComponent)("TabsBar"),c=(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)(r,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),(0,t.createVNode)(h,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=u=>e.tabsCursor=u)},{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,(u,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)(u.nodes,y=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:y.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(u,y),disabled:y.disabled}]),"aria-checked":e.isSelected(u,y),"aria-disabled":y.disabled||void 0,role:"menuitemradio",onClick:C=>e.handleNode(y,!1)},[(0,t.createElementVNode)("view",Pf,(0,t.toDisplayString)(y.text),1),y.loading?((0,t.openBlock)(),(0,t.createBlock)(c,{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 Mf=ie($f,[["render",xf]]),{create:Rf}=ee("cascader"),zf=Rf({components:{CascaderPane:Mf,Wrapper:Jd},props:{...lt,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},poppable:{type:Boolean,default:()=>!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=(0,t.ref)(e.modelValue),l=(0,t.computed)({get(){return e.visible},set(r){n("update:visible",r)}}),o=(r,c)=>{a.value=r,l.value=!1,n("change",r,c),n("update:modelValue",r)},i=r=>{n("pathChange",r)};return(0,t.watch)(()=>e.modelValue,r=>{r!==a.value&&(a.value=r)}),{onChange:o,onPathChange:i,innerValue:a,innerVisible:l}}}),Ff=["innerHTML"];function Lf(e,n,a,l,o,i){const r=(0,t.resolveComponent)("CascaderPane"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(c,{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)(r,{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 Zn=ie(zf,[["render",Lf]]);function kt(e,n){return n[e.textKey??"text"]??""}function wt(e,n){return n[e.valueKey??"value"]}function bi(e,n){return n[e.childrenKey??"children"]}function Jn(e,n=[]){const a={texts:[],values:[]};for(let l=0;l<n.length;l++){const o=n[l],i=kt(e,o),r=wt(e,o);a.texts.push(i),a.values.push(r??"")}return a}function vi(e,n,a,l,o=[]){if(!a)return;const i=a[l];for(let r=0;r<n.length;r++)if(kt(e,n[r])===i){const c=wt(e,n[r])??"",s={[e.textKey]:i,[e.valueKey]:c};o.push(s);const d=bi(e,n[r]);Array.isArray(d)&&vi(e,d,a,l+1,o);return}}function Si(e,n,a,l,o=[]){if(!a)return;const i=a[l];for(let r=0;r<n.length;r++)if(wt(e,n[r])===i){const c=kt(e,n[r])??"",s={[e.textKey]:c,[e.valueKey]:i};o.push(s);const d=bi(e,n[r]);Array.isArray(d)&&Si(e,d,a,l+1,o);return}}function ua(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let l=0;l<n.length;l++)if(kt(e,n[l])!==kt(e,a[l])||wt(e,n[l])!==wt(e,a[l]))return!1;return!0}var Of=class{scope;constructor(e){this.scope=e}async load(e,n,a){const l="cascader";if(!e)return[];if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,a);const o=tt(l,this.scope);return o===null?(console.error(`${l} component not found api function`),[]):($e(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await o(e,n,a))}};function Kf(){return new Of(it())}var ki={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]}},Uf={...ye,...ve,...ki};function Hf(e,n,a,l,o,i,r,c=!1){return{props:Uf,emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:u,disabled:p,innerReadonly:y,readonly:C,browse:k}=Ve(s),{emitEvent:v,exposeApi:S}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return C.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,ge.useFoxI18n)(n),m=f(s,["placeholder"]),w=(0,t.ref)(!1),A=Kf(),g=(0,t.ref)([]),b=(0,t.ref)([]),T=(0,t.computed)(()=>{if(Array.isArray(b.value)){if(s.showAllLevels===!1){const q=b.value.length-1;return b.value[q]}return b.value.join(s.separator)}else return b.value}),E=(0,t.ref)([]),B=(0,t.ref)([]);(0,t.watch)([()=>s.modelValue,()=>g.value],async([q,K])=>{if(v("setValue",q),s.lazy===!0){B.value.length==0&&(b.value=Array.isArray(q)?q:[],E.value=Array.isArray(q)?q:[]);return}if(s.valueType==="item"){let I=q;if(!ua(s,I,B.value)){B.value=I;let Y=Jn(s,I);b.value=Y.texts,E.value=Y.values}}else if(s.valueType==="text"){let I=q,Y=[];if(vi(s,K,I,0,Y),!ua(s,Y,B.value)){B.value=Y;let ae=Jn(s,Y);b.value=ae.texts,E.value=ae.values}}else{let I=q,Y=[];if(Si(s,K,I,0,Y),!ua(s,Y,B.value)){B.value=Y;let ae=Jn(s,Y);b.value=ae.texts,E.value=ae.values}}}),s.lazy===!0&&(E.value=Array.isArray(s.modelValue)?s.modelValue:[]),(0,t.watch)([()=>s.source,()=>s.params],async([q,K])=>{s.lazy||q&&(g.value=await A.load(q,K))},{immediate:!0});const N="fox-input-item",R=(0,t.computed)(()=>({[N]:!0,"is-disabled":p.value,"is-readonly":C.value})),U=Te((0,t.computed)(()=>s.textAlign),"textAlign"),$=(0,t.computed)(()=>{const q={};return U.value&&(q["text-align"]=U.value),q}),x=(0,t.ref)(!1),M=()=>{p.value===!0||C.value===!0||(x.value=!0)},O=q=>{x.value=q},z=(q,K)=>{let I=K.map(ae=>{if(ae==null)return ae;let re={...ae};return Reflect.deleteProperty(re,"text"),re[s.textKey]=ae.text??"",Reflect.deleteProperty(re,"value"),re[s.valueKey]=ae.value??"",re});B.value=I;let Y=Jn(s,I);b.value=Y.texts,E.value=Y.values,s.valueType==="text"?(v("change",b.value,I),v("update:modelValue",b.value)):s.valueType==="item"?(v("change",I,I),v("update:modelValue",I)):(v("change",E.value,I),v("update:modelValue",E.value)),v("update:pathNodes",I)},X=q=>{v("pathChange",q.map(K=>{if(K==null)return K;let I={...K};return Reflect.deleteProperty(I,"text"),I[s.textKey]=K.text??"",Reflect.deleteProperty(I,"value"),I[s.valueKey]=K.value??"",I}))},P=q=>{w.value=!0,v("focus",E.value,q)},_=q=>{setTimeout(()=>{w.value=!1},0),v("blur",E.value,q)},te=(0,t.computed)(()=>({[`${N}__append`]:!0,"is-disabled":p.value,"is-readonly":C.value})),W=(0,t.computed)(()=>ke(s.unit)>0),Z=(0,t.computed)(()=>ke(s.unit)>0&&!w.value),J=(0,t.computed)(()=>({hidden:!Z.value})),j=q=>{B.value=[],b.value=[],E.value=[],v("update:modelValue",[]),v("change",[],q),v("clear",[]),v("update:pathNodes",[])},ne=(0,t.computed)(()=>s.clearable&&!p.value&&!C.value),H=(0,t.computed)(()=>{let q=E.value&&E.value.length>0;return s.clearable&&q&&w.value}),F=q=>{H.value?j(q):M()},L=(0,t.computed)(()=>H.value&&ne.value?o:i),G=(0,t.computed)(()=>({action:!0}));let Q=null;const le=()=>typeof Q=="function"?Q:typeof s.lazyLoad=="function"?s.lazyLoad:(Q=async(q,K)=>{const I=[],Y=[];let ae=0;if(!q.root){let re=q;for(;re;){const se=kt(s,re),Ce=wt(s,re);Y.splice(0,0,se),I.splice(0,0,Ce),re=re._parent}ae=I.length}K(await A.load(s.source,{...q,level:ae,pathLabels:Y,pathValues:I},!0))},Q),D=(0,t.ref)();return S({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()},setDisabled:q=>{u.value=q},setReadonly:q=>{y.value=q}}),()=>{if(k.value==="on"&&(C.value||p.value))return l(T.value,d.slots);const q={class:R.value,style:$.value,ref:D,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:T.value,onClick:M,onFocus:P,onBlur:_};c&&(q.disabled=!0);const K=[],I=(0,t.h)("input",q);K.push(I);const Y=[],ae=(0,t.h)(L.value,{class:["action-icon"]}),re=(0,t.h)("view",{class:G.value,onClick:F},{default:()=>[ae]});if(Y.push(re),W.value){const Qo=(0,t.h)("view",{class:J.value},[s.unit]);Y.push(Qo)}const se=(0,t.h)("view",{class:te.value},{default:()=>Y});K.push(se);const Ce={default:()=>K};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 he={};he.visible=x.value,he["onUpdate:visible"]=O,he.modelValue=E.value,he.onChange=z,he.onPathChange=X,he.title=s.title,he.valueKey=s.valueKey,he.textKey=s.textKey,he.childrenKey=s.childrenKey,he.convertConfig=s.convertConfig,s.lazy?(he.lazy=!0,he.lazyLoad=le()):he.options=g.value;const Le={};Le.header=d.slots.header;const un=(0,t.h)(r,he,Le);Ce.hide=()=>[un];const at={...Qe(s,ki),ref:h};return s.prop&&(at.prop=`${s.prop}_item`),a(at,Ce)}}}}var{componentName:jf,create:Wf,scope:Yf}=ee("cascader-item"),Xf=Wf(Hf(jf,Yf,Ie,Me,oe.CircleClose,oe.ArrowRight,Zn,!1)),da=Xf,Qf=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs=l()})(e,(function(){"use strict";var a=1e3,l=6e4,o=36e5,i="millisecond",r="second",c="minute",s="hour",d="day",h="week",u="month",p="quarter",y="year",C="date",k="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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($){var x=["th","st","nd","rd"],M=$%100;return"["+$+(x[(M-20)%10]||x[M]||x[0])+"]"}},m=function($,x,M){var O=String($);return!O||O.length>=x?$:""+Array(x+1-O.length).join(M)+$},w={s:m,z:function($){var x=-$.utcOffset(),M=Math.abs(x),O=Math.floor(M/60),z=M%60;return(x<=0?"+":"-")+m(O,2,"0")+":"+m(z,2,"0")},m:function $(x,M){if(x.date()<M.date())return-$(M,x);var O=12*(M.year()-x.year())+(M.month()-x.month()),z=x.clone().add(O,u),X=M-z<0,P=x.clone().add(O+(X?-1:1),u);return+(-(O+(M-z)/(X?z-P:P-z))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:u,y,w:h,d,D:C,h:s,m:c,s:r,ms:i,Q:p}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},A="en",g={};g[A]=f;var b="$isDayjsObject",T=function($){return $ instanceof R||!(!$||!$[b])},E=function $(x,M,O){var z;if(!x)return A;if(typeof x=="string"){var X=x.toLowerCase();g[X]&&(z=X),M&&(g[X]=M,z=X);var P=x.split("-");if(!z&&P.length>1)return $(P[0])}else{var _=x.name;g[_]=x,z=_}return!O&&z&&(A=z),z||!O&&A},B=function($,x){if(T($))return $.clone();var M=typeof x=="object"?x:{};return M.date=$,M.args=arguments,new R(M)},N=w;N.l=E,N.i=T,N.w=function($,x){return B($,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var R=(function(){function $(M){this.$L=E(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[b]=!0}var x=$.prototype;return x.parse=function(M){this.$d=(function(O){var z=O.date,X=O.utc;if(z===null)return new Date(NaN);if(N.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var P=z.match(v);if(P){var _=P[2]-1||0,te=(P[7]||"0").substring(0,3);return X?new Date(Date.UTC(P[1],_,P[3]||1,P[4]||0,P[5]||0,P[6]||0,te)):new Date(P[1],_,P[3]||1,P[4]||0,P[5]||0,P[6]||0,te)}}return new Date(z)})(M),this.init()},x.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},x.$utils=function(){return N},x.isValid=function(){return this.$d.toString()!==k},x.isSame=function(M,O){var z=B(M);return this.startOf(O)<=z&&z<=this.endOf(O)},x.isAfter=function(M,O){return B(M)<this.startOf(O)},x.isBefore=function(M,O){return this.endOf(O)<B(M)},x.$g=function(M,O,z){return N.u(M)?this[O]:this.set(z,M)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(M,O){var z=this,X=!!N.u(O)||O,P=N.p(M),_=function(F,L){var G=N.w(z.$u?Date.UTC(z.$y,L,F):new Date(z.$y,L,F),z);return X?G:G.endOf(d)},te=function(F,L){return N.w(z.toDate()[F].apply(z.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(L)),z)},W=this.$W,Z=this.$M,J=this.$D,j="set"+(this.$u?"UTC":"");switch(P){case y:return X?_(1,0):_(31,11);case u:return X?_(1,Z):_(0,Z+1);case h:var ne=this.$locale().weekStart||0,H=(W<ne?W+7:W)-ne;return _(X?J-H:J+(6-H),Z);case d:case C:return te(j+"Hours",0);case s:return te(j+"Minutes",1);case c:return te(j+"Seconds",2);case r:return te(j+"Milliseconds",3);default:return this.clone()}},x.endOf=function(M){return this.startOf(M,!1)},x.$set=function(M,O){var z,X=N.p(M),P="set"+(this.$u?"UTC":""),_=(z={},z[d]=P+"Date",z[C]=P+"Date",z[u]=P+"Month",z[y]=P+"FullYear",z[s]=P+"Hours",z[c]=P+"Minutes",z[r]=P+"Seconds",z[i]=P+"Milliseconds",z)[X],te=X===d?this.$D+(O-this.$W):O;if(X===u||X===y){var W=this.clone().set(C,1);W.$d[_](te),W.init(),this.$d=W.set(C,Math.min(this.$D,W.daysInMonth())).$d}else _&&this.$d[_](te);return this.init(),this},x.set=function(M,O){return this.clone().$set(M,O)},x.get=function(M){return this[N.p(M)]()},x.add=function(M,O){var z,X=this;M=Number(M);var P=N.p(O),_=function(Z){var J=B(X);return N.w(J.date(J.date()+Math.round(Z*M)),X)};if(P===u)return this.set(u,this.$M+M);if(P===y)return this.set(y,this.$y+M);if(P===d)return _(1);if(P===h)return _(7);var te=(z={},z[c]=l,z[s]=o,z[r]=a,z)[P]||1,W=this.$d.getTime()+M*te;return N.w(W,this)},x.subtract=function(M,O){return this.add(-1*M,O)},x.format=function(M){var O=this,z=this.$locale();if(!this.isValid())return z.invalidDate||k;var X=M||"YYYY-MM-DDTHH:mm:ssZ",P=N.z(this),_=this.$H,te=this.$m,W=this.$M,Z=z.weekdays,J=z.months,j=z.meridiem,ne=function(L,G,Q,le){return L&&(L[G]||L(O,X))||Q[G].slice(0,le)},H=function(L){return N.s(_%12||12,L,"0")},F=j||function(L,G,Q){var le=L<12?"AM":"PM";return Q?le.toLowerCase():le};return X.replace(S,(function(L,G){return G||(function(Q){switch(Q){case"YY":return String(O.$y).slice(-2);case"YYYY":return N.s(O.$y,4,"0");case"M":return W+1;case"MM":return N.s(W+1,2,"0");case"MMM":return ne(z.monthsShort,W,J,3);case"MMMM":return ne(J,W);case"D":return O.$D;case"DD":return N.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return ne(z.weekdaysMin,O.$W,Z,2);case"ddd":return ne(z.weekdaysShort,O.$W,Z,3);case"dddd":return Z[O.$W];case"H":return String(_);case"HH":return N.s(_,2,"0");case"h":return H(1);case"hh":return H(2);case"a":return F(_,te,!0);case"A":return F(_,te,!1);case"m":return String(te);case"mm":return N.s(te,2,"0");case"s":return String(O.$s);case"ss":return N.s(O.$s,2,"0");case"SSS":return N.s(O.$ms,3,"0");case"Z":return P}return null})(L)||P.replace(":","")}))},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(M,O,z){var X,P=this,_=N.p(O),te=B(M),W=(te.utcOffset()-this.utcOffset())*l,Z=this-te,J=function(){return N.m(P,te)};switch(_){case y:X=J()/12;break;case u:X=J();break;case p:X=J()/3;break;case h:X=(Z-W)/6048e5;break;case d:X=(Z-W)/864e5;break;case s:X=Z/o;break;case c:X=Z/l;break;case r:X=Z/a;break;default:X=Z}return z?X:N.a(X)},x.daysInMonth=function(){return this.endOf(u).$D},x.$locale=function(){return g[this.$L]},x.locale=function(M,O){if(!M)return this.$L;var z=this.clone(),X=E(M,O,!0);return X&&(z.$L=X),z},x.clone=function(){return N.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},$})(),U=R.prototype;return B.prototype=U,[["$ms",i],["$s",r],["$m",c],["$H",s],["$W",d],["$M",u],["$y",y],["$D",C]].forEach((function($){U[$[1]]=function(x){return this.$g(x,$[0],$[1])}})),B.extend=function($,x){return $.$i||($(x,R,B),$.$i=!0),B},B.locale=E,B.isDayjs=T,B.unix=function($){return B(1e3*$)},B.en=g[A],B.Ls=g,B.p={},B}))})),Gf=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,r=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,s={},d=function(v){return(v=+v)+(v>68?1900:2e3)},h=function(v){return function(S){this[v]=+S}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(S){if(!S||S==="Z")return 0;var f=S.match(/([+-]|\d\d)/g),m=60*f[1]+(+f[2]||0);return m===0?0:f[0]==="+"?-m:m})(v)}],p=function(v){var S=s[v];return S&&(S.indexOf?S:S.s.concat(S.f))},y=function(v,S){var f,m=s.meridiem;if(m){for(var w=1;w<=24;w+=1)if(v.indexOf(m(w,0,S))>-1){f=w>12;break}}else f=v===(S?"pm":"PM");return f},C={A:[c,function(v){this.afternoon=y(v,!1)}],a:[c,function(v){this.afternoon=y(v,!0)}],Q:[o,function(v){this.month=3*(v-1)+1}],S:[o,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[r,h("seconds")],ss:[r,h("seconds")],m:[r,h("minutes")],mm:[r,h("minutes")],H:[r,h("hours")],h:[r,h("hours")],HH:[r,h("hours")],hh:[r,h("hours")],D:[r,h("day")],DD:[i,h("day")],Do:[c,function(v){var S=s.ordinal;if(this.day=v.match(/\d+/)[0],S)for(var f=1;f<=31;f+=1)S(f).replace(/\[|\]/g,"")===v&&(this.day=f)}],w:[r,h("week")],ww:[i,h("week")],M:[r,h("month")],MM:[i,h("month")],MMM:[c,function(v){var S=p("months"),f=(p("monthsShort")||S.map((function(m){return m.slice(0,3)}))).indexOf(v)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[c,function(v){var S=p("months").indexOf(v)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,h("year")],YY:[i,function(v){this.year=d(v)}],YYYY:[/\d{4}/,h("year")],Z:u,ZZ:u};function k(v){for(var S=v,f=s&&s.formats,m=(v=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(B,N,R){var U=R&&R.toUpperCase();return N||f[R]||a[R]||f[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function($,x,M){return x||M.slice(1)}))}))).match(l),w=m.length,A=0;A<w;A+=1){var g=m[A],b=C[g],T=b&&b[0],E=b&&b[1];m[A]=E?{regex:T,parser:E}:g.replace(/^\[|\]$/g,"")}return function(B){for(var N={},R=0,U=0;R<w;R+=1){var $=m[R];if(typeof $=="string")U+=$.length;else{var x=$.regex,M=$.parser,O=B.slice(U),z=x.exec(O)[0];M.call(N,z),B=B.replace(z,"")}}return(function(X){var P=X.afternoon;if(P!==void 0){var _=X.hours;P?_<12&&(X.hours+=12):_===12&&(X.hours=0),delete X.afternoon}})(N),N}}return function(v,S,f){f.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(d=v.parseTwoDigitYear);var m=S.prototype,w=m.parse;m.parse=function(A){var g=A.date,b=A.utc,T=A.args;this.$u=b;var E=T[1];if(typeof E=="string"){var B=T[2]===!0,N=T[3]===!0,R=B||N,U=T[2];N&&(U=T[2]),s=this.$locale(),!B&&U&&(s=f.Ls[U]),this.$d=(function(O,z,X,P){try{if(["x","X"].indexOf(z)>-1)return new Date((z==="X"?1e3:1)*O);var _=k(z)(O),te=_.year,W=_.month,Z=_.day,J=_.hours,j=_.minutes,ne=_.seconds,H=_.milliseconds,F=_.zone,L=_.week,G=new Date,Q=Z||(te||W?1:G.getDate()),le=te||G.getFullYear(),D=0;te&&!W||(D=W>0?W-1:G.getMonth());var q,K=J||0,I=j||0,Y=ne||0,ae=H||0;return F?new Date(Date.UTC(le,D,Q,K,I,Y,ae+60*F.offset*1e3)):X?new Date(Date.UTC(le,D,Q,K,I,Y,ae)):(q=new Date(le,D,Q,K,I,Y,ae),L&&(q=P(q).week(L).toDate()),q)}catch{return new Date("")}})(g,E,b,f),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),R&&g!=this.format(E)&&(this.$d=new Date("")),s={}}else if(E instanceof Array)for(var $=E.length,x=1;x<=$;x+=1){T[1]=E[x-1];var M=f.apply(this,T);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}x===$&&(this.$d=new Date(""))}else w.call(this,A)}}}))})),_f=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(a,l){var o=l.prototype,i=o.format;o.format=function(r){var c=this,s=this.$locale();if(!this.isValid())return i.bind(this)(r);var d=this.$utils(),h=(r||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(u){switch(u){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return s.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return s.ordinal(c.week(),"W");case"w":case"ww":return d.s(c.week(),u==="w"?1:2,"0");case"W":case"WW":return d.s(c.isoWeek(),u==="W"?1:2,"0");case"k":case"kk":return d.s(String(c.$H===0?24:c.$H),u==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return u}}));return i.bind(this)(h)}}}))})),Zf=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(a,l,o){var i=l.prototype,r=function(u){return u&&(u.indexOf?u:u.s)},c=function(u,p,y,C,k){var v=u.name?u:u.$locale(),S=r(v[p]),f=r(v[y]),m=S||f.map((function(A){return A.slice(0,C)}));if(!k)return m;var w=v.weekStart;return m.map((function(A,g){return m[(g+(w||0))%7]}))},s=function(){return o.Ls[o.locale()]},d=function(u,p){return u.formats[p]||(function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,k,v){return k||v.slice(1)}))})(u.formats[p.toUpperCase()])},h=function(){var u=this;return{months:function(p){return p?p.format("MMMM"):c(u,"months")},monthsShort:function(p){return p?p.format("MMM"):c(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):c(u,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):c(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):c(u,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return d(u.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return h.bind(this)()},o.localeData=function(){var u=s();return{firstDayOfWeek:function(){return u.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(p){return d(u,p)},meridiem:u.meridiem,ordinal:u.ordinal}},o.months=function(){return c(s(),"months")},o.monthsShort=function(){return c(s(),"monthsShort","months",3)},o.weekdays=function(u){return c(s(),"weekdays",null,null,u)},o.weekdaysShort=function(u){return c(s(),"weekdaysShort","weekdays",3,u)},o.weekdaysMin=function(u){return c(s(),"weekdaysMin","weekdays",2,u)}}}))})),Jf=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var a="week",l="year";return function(o,i,r){var c=i.prototype;c.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=r(this).startOf(l).add(1,l).date(d),u=r(this).endOf(a);if(h.isBefore(u))return 1}var p=r(this).startOf(l).date(d).startOf(a).subtract(1,"millisecond"),y=this.diff(p,a,!0);return y<0?r(this).startOf("week").week():Math.ceil(y)},c.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})),em=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(a,l){l.prototype.weekYear=function(){var o=this.month(),i=this.week(),r=this.year();return i===1&&o===11?r+1:o===0&&i>=52?r-1:r}}}))})),tm=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(a,l,o){l.prototype.dayOfYear=function(i){var r=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return i==null?r:this.add(i-r,"day")}}}))})),nm=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(a,l){l.prototype.isSameOrAfter=function(o,i){return this.isSame(o,i)||this.isAfter(o,i)}}}))})),lm=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(a,l){l.prototype.isSameOrBefore=function(o,i){return this.isSame(o,i)||this.isBefore(o,i)}}}))})),Fe=Ke(Qf(),1),am=Ke(Gf(),1),om=Ke(_f(),1),rm=Ke(Zf(),1),im=Ke(Jf(),1),sm=Ke(em(),1),cm=Ke(tm(),1),um=Ke(nm(),1),dm=Ke(lm(),1);Fe.default.extend(rm.default),Fe.default.extend(om.default),Fe.default.extend(am.default),Fe.default.extend(im.default),Fe.default.extend(sm.default),Fe.default.extend(cm.default),Fe.default.extend(um.default),Fe.default.extend(dm.default);var Ct={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,a){let l=n??new Date;const o=e*(1e3*60*60*24);return l=new Date(l.getTime()+o),a=a??"YYYY-MM-DD",this.format(l,a)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){let l=new Date(e+"/"+n+"/"+a).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,a){const l=typeof e=="string"?this.parser(e,a):e,o=typeof n=="string"?this.parser(n,a):n,i=l.getTime(),r=o.getTime();return i==r?0:i>r?1:-1},between(e,n,a,l){let o;l==="year"?o=new Date(new Date(n).setFullYear(n.getFullYear()+a)):l==="month"?o=new Date(new Date(n).setMonth(n.getMonth()+a)):o=new Date(new Date(n).setDate(n.getDate()+a));const i=e.getTime(),r=o.getTime(),c=n.getTime();return r>c?i>=c&&i<=r:i>=r&&i<=c},inScope4Day(e,n,a){return this.between(e,n,a,"day")},inScope4Month(e,n,a){return this.between(e,n,a,"month")},inScope4Year(e,n,a){return this.between(e,n,a,"year")}},wi=new Date().getFullYear(),fa={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"},el=(e,n,a)=>{let l;if(He(n)?l=n:typeof n=="string"&&ke(n)>0?l=Ct.parser(n,a):l=new Date,l.toString()==="Invalid Date")return null;let o=Math.max(l.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),new Date(o)},ma=(e,n,a)=>{He(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),Ct.format(new Date(l),a)},pa={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(wi-10,0,1),validator:He},maxDate:{type:Date,default:()=>new Date(wi+10,11,31),validator:He},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:fm,scope:mm}=ee("date-picker"),pm=fm({components:{Picker:jt},props:{...pa},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=(0,ge.useFoxI18n)(mm),l={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds"),today:a("today"),fullWeekdays:JSON.parse(a("fullWeekdays"))},o=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,m=>{o.value=m});function i(m,w){return new Date(m,w,0).getDate()}const r=(m,w)=>{const A=e[`${m}Date`],g=A.getFullYear();let b=1,T=1,E=0,B=0;m==="max"&&(b=12,T=i(w.getFullYear(),w.getMonth()+1),E=23,B=59);const N=B;return w.getFullYear()===g&&(b=A.getMonth()+1,w.getMonth()+1===b&&(T=A.getDate(),w.getDate()===T&&(E=A.getHours(),w.getHours()===E&&(B=A.getMinutes())))),{[`${m}Year`]:g,[`${m}Month`]:b,[`${m}Date`]:T,[`${m}Hour`]:E,[`${m}Minute`]:B,[`${m}Seconds`]:N}},c=(0,t.computed)(()=>{if(!p.value)return[];const{maxYear:m,maxDate:w,maxMonth:A,maxHour:g,maxMinute:b,maxSeconds:T}=r("max",p.value),{minYear:E,minDate:B,minMonth:N,minHour:R,minMinute:U,minSeconds:$}=r("min",p.value);let x=[{type:"year",range:[E,m]},{type:"month",range:[N,A]},{type:"day",range:[B,w]},{type:"hour",range:[R,g]},{type:"minute",range:[U,b]},{type:"seconds",range:[$,T]}];switch(e.type){case"date":x=x.slice(0,3);break;case"datetime":x=x.slice(0,5);break;case"time":x=x.slice(3,6);break;case"year-month":x=x.slice(0,2);break;case"month-day":x=x.slice(1,3);break;case"datehour":x=x.slice(0,4);break;case"hour-minute":x=x.slice(3,5);break}return x}),s=(m,w,A,g,b)=>{const T=[];for(;m<=w;){let E=!0;if(typeof e.itemFilter=="function"){const B={text:`${m}`,value:m,type:A,currentYearMonth:g};E=e.itemFilter(B)}if(E)if(typeof e.itemFormatter=="function"){const B={text:`${m}`,value:m,type:A,currentYearMonth:g};e.itemFormatter(B),T.push({text:B.text,value:B.value})}else if(e.isShowChinese){let B=`${m}${l[A]}`;if(A==="day"){if(g[0]===b[0]&&g[1]===b[1]&&m===b[2])B=l.today;else{const N=new Date(g[0],g[1],m).getDay();B=`${B} ${l.fullWeekdays[N]}`}T.push({text:B,value:m})}else T.push({text:m+l[A],value:m})}else T.push({text:`${m}`,value:m});A==="minute"?m+=e.minuteStep:m++}return T},d=(0,t.computed)(()=>{const m=new Date,w=[m.getFullYear(),m.getMonth(),m.getDate()],A=[];p.value&&(A[0]=p.value.getFullYear(),A[1]=p.value.getMonth());let g=[];return c.value.forEach(b=>{let T=s(b.range[0],b.range[1],b.type,A,w);T&&g.push(T)}),g}),h=(m,w)=>m==="year"?w.getFullYear():m==="month"?w.getMonth()+1:m==="day"?w.getDate():m==="hour"?w.getHours():m==="minute"?w.getMinutes():m==="seconds"?w.getSeconds():0,u=(0,t.ref)(),p=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,m=>{let w;if(typeof m=="string"?m.length==0||m==="Invalid Date"?w=new Date:e.valueFormat?w=el(e,e.modelValue,e.valueFormat):w=el(e,m,fa[e.type]):He(m)?w=m:w=new Date,!!w&&(!p.value||w.getTime()!==p.value.getTime())){p.value=w;let A=[];c.value.forEach(g=>{let b=h(g.type,w);A.push(b)}),u.value=A}},{immediate:!0});const y=m=>{if(!m||m.length===0){p.value=new Date;let w=[];c.value.forEach(A=>{let g=h(A.type,p.value);w.push(g)}),u.value=w;return}if(e.type==="date"){const w=m[0],A=m[1]-1,g=Math.min(m[2],i(w,A+1));g!==m[2]&&(m[2]=g),p.value=new Date(w,A,g)}else if(e.type==="datetime"){const w=m[0],A=m[1]-1,g=Math.min(m[2],i(w,A+1)),b=m[3],T=m[4];g!==m[2]&&(m[2]=g),p.value=new Date(w,A,g,b,T)}else if(e.type==="time"){const w=m[0],A=m[1],g=m[2],b=p.value??new Date;p.value=new Date(b.getFullYear(),b.getMonth(),b.getDate(),w,A,g)}else if(e.type==="year-month"){const w=m[0],A=m[1]-1;p.value=new Date(w,A)}else if(e.type==="month-day"){const w=(p.value??new Date).getFullYear(),A=m[0]-1,g=Math.min(m[1],i(w,A+1));g!==m[1]&&(m[1]=g),p.value=new Date(w,A,g)}else if(e.type==="datehour"){const w=m[0],A=m[1]-1,g=Math.min(m[2],i(w,A+1)),b=m[3];g!==m[2]&&(m[2]=g),p.value=new Date(w,A,g,b)}else if(e.type==="hour-minute"){const w=m[0],A=m[1],g=p.value??new Date;p.value=new Date(g.getFullYear(),g.getMonth(),g.getDate(),w,A)}u.value=m};return{columns:d,dateIndexs:u,show:o,onChange:m=>{y(m)},onClose:()=>{n("update:close",!1)},onConfirm:m=>{y(m);const w=p.value??new Date;e.valueFormat?n("update:modelValue",ma(e,w,e.valueFormat)):n("update:modelValue",w),n("confirm",m)},onClear:()=>{n("clear")},onUpdateVisible:m=>{o.value=m,n("update:visible",m)}}}});function hm(e,n,a,l,o,i){const r=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(r,{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 tl=ie(pm,[["render",hm]]),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=fa[e.type??"date"]),n}var bm={...ye,...ve,...pa,...gm};function vm(e,n,a,l,o,i,r,c=!1){return{props:bm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:u,disabled:p,innerReadonly:y,readonly:C,browse:k}=Ve(s),{emitEvent:v,exposeApi:S}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return C.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,ge.useFoxI18n)(n),m=f(s,["placeholder"]),w=(0,t.ref)(!1),g=xe(s,"modelValue",F=>F==null?null:typeof F=="string"?F.length==0?null:s.valueFormat?el(s,F,s.valueFormat)??F:el(s,F,fa[s.type])??F:He(F)?F:null,v),b=(0,t.computed)(()=>{if(!g.value)return"";const F=ym(s);return ma(s,g.value,F)}),T="fox-input-item",E=(0,t.computed)(()=>({[T]:!0,"is-disabled":p.value,"is-readonly":C.value})),B=Te((0,t.computed)(()=>s.textAlign),"textAlign"),N=(0,t.computed)(()=>{const F={};return B.value&&(F["text-align"]=B.value),F}),R=(0,t.ref)(!1),U=()=>{R.value=!0},$=()=>{R.value=!1};d.expose({showPicker:U,hidePicker:$});const x=F=>{R.value=F},M=F=>{if(g.value=F,s.valueFormat){let L=ma(s,F,s.valueFormat);v("update:modelValue",L,{}),v("change",L,{})}else v("update:modelValue",F,{}),v("change",F,{})},O=F=>{let L=F.target.value;w.value=!0,v("focus",L,F)},z=F=>{setTimeout(()=>{w.value=!1},0);let L=F.target.value;s.maxLength&&L.length>Number(s.maxLength)&&(L=L.slice(0,Number(s.maxLength))),v("blur",L,F)},X=(0,t.computed)(()=>({[`${T}__append`]:!0,"is-disabled":p.value,"is-readonly":C.value})),P=(0,t.computed)(()=>ke(s.unit)>0),_=(0,t.computed)(()=>ke(s.unit)>0&&!w.value),te=(0,t.computed)(()=>({hidden:!_.value})),W=F=>{g.value="",v("update:modelValue","",F),v("change","",F),v("clear",""),$()},Z=(0,t.computed)(()=>s.clearable&&!p.value&&!C.value),J=(0,t.computed)(()=>{let F=ke(g.value)>0;return s.clearable&&F&&w.value}),j=F=>{J.value?W(F):U()},ne=(0,t.computed)(()=>J.value&&Z.value?o:i),H=(0,t.computed)(()=>({action:!0}));return S({setDisabled:F=>{u.value=F},setReadonly:F=>{y.value=F}}),()=>{if(k.value==="on"&&(C.value||p.value))return l(b.value,d.slots);const F={class:E.value,style:N.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:U,onFocus:O,onBlur:z};c&&(F.disabled=!0);const L=[],G=(0,t.h)("input",F);L.push(G);const Q=[],le=(0,t.h)(ne.value,{class:["action-icon"]}),D=(0,t.h)("view",{class:H.value,onClick:j},{default:()=>[le]});if(Q.push(D),P.value){const se=(0,t.h)("view",{class:te.value},[s.unit]);Q.push(se)}const q=(0,t.h)("view",{class:X.value},{default:()=>Q});L.push(q);const K={default:()=>L};K.label=d.slots.default,K.prepend=d.slots.prepend,K.append=d.slots.append,K.fixedPreTip=d.slots.fixedPreTip,K.fixedTip=d.slots.fixedTip;const I=be(s,pa);I.valueFormat=null,I.disabled=!1,I.readonly=p.value||C.value,I.visible=R.value,I["onUpdate:visible"]=x,I.modelValue=g.value,I["onUpdate:modelValue"]=M,I.onClear=W;const Y={};if(d.slots.top){const se=d.slots.top();Y.top=()=>se}if(d.slots.bottom){const se=d.slots.bottom();Y.default=()=>se}const ae=(0,t.h)(r,I,Y);K.hide=()=>[ae];const re={...be(s,ve,ye),ref:h};return s.prop&&(re.prop=`${s.prop}_item`),a(re,K)}}}}var{create:Sm,componentName:km,scope:wm}=ee("date-item"),Cm=Sm(vm(km,wm,Ie,Me,oe.CircleClose,oe.Date,tl,!1)),ha=Cm,ce={format(e,n="YYYY-MM-DD"){return Ct.format(e,n)},parser(e,n){return Ct.parser(e,n)},isLeapYear:function(e){return Ct.isLeapYear(e)},getWhatDay:function(e,n,a){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+a).getDay()]},getMonthPreDay:function(e,n){let a=new Date(e+"/"+n+"/01").getDay();return a==0&&(a=7),a},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 a=e*(1e3*60*60*24);return n=new Date(n.getTime()+a),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,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a));let i=o.getDay();const r=o.getDate();let c=6-i;return l!==0&&(i=i==0?7:i,c=7-i),Math.ceil((r+c)/7)},getYearWeek:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a)),i=new Date(Number(e),0,1),r=Math.round((o.valueOf()-i.valueOf())/864e5);return Math.ceil((r+(i.getDay()+1-1))/7)},getWeekDate:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a)),i=o.getTime();let r=o.getDay();if(l===0){const s=i-r*864e5,d=i+(6-r)*864e5;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}else{r=r==0?7:r;const c=1440*60*1e3,s=i-(r-1)*c,d=i+(7-r)*c;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}},formatResultDate:function(e){const n=[...e.split("-")];return n[2]=ce.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ce.getWhatDay(+n[0],+n[1],+n[2]),n}},{create:Nm,scope:Am}=ee("calendar-pane"),Bm=Nm({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:ce.getDay(0)},endDate:{type:String,default:ce.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a,expose:l}){const{toLocaleRefs:o,t:i}=(0,ge.useFoxI18n)(Am),r=o(e,["title","confirmText","startText","endText","today"]),c=JSON.parse(i("weekdays")),s=(0,t.ref)([...c.slice(e.firstDayOfWeek,7),...c.slice(0,e.firstDayOfWeek)]),d=(0,t.ref)(null),h=(0,t.ref)(null),u=(0,t.ref)(null),p=(0,t.ref)(null),y=(0,t.ref)(0),C=(0,t.computed)(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),k=(0,t.computed)(()=>a.btn),v=(0,t.computed)(()=>a["top-info"]),S=(0,t.computed)(()=>a["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=H=>H.split("-"),w=H=>ce.isEqual(f.currDate[0],H),A=H=>ce.isEqual(f.currDate[1],H),g=H=>f.currDate?.length>0?f.currDate?.some(F=>ce.isEqual(F,H)):!1,b=(H,F)=>F.curData[0]+"-"+F.curData[1]+"-"+ce.getNumTwoBit(+H.day),T=(H,F)=>{const L=b(H,F),{type:G}=e;return H.type=="curr"?ce.isEqual(f.currDate,L)||(G=="range"||G=="week")&&(w(L)||A(L))||G=="multiple"&&g(L)?`${f.dayPrefix}--active`:f.propStartDate&&ce.compareDate(L,f.propStartDate)||f.propEndDate&&ce.compareDate(f.propEndDate,L)?`${f.dayPrefix}--disabled`:(G=="range"||G=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ce.compareDate(f.currDate[0],L)&&ce.compareDate(L,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},E=()=>{const{type:H}=e;if(H=="range"&&f.chooseData.length==2||H!="range"){let F=f.chooseData.slice(0);H=="week"&&(F={weekDate:[N(f.chooseData[0]),N(f.chooseData[1])]}),n("choose",F),e.poppable&&n("update")}},B=(H,F,L=!1)=>{if(T(H,F)!=`${f.dayPrefix}--disabled`){const{type:G}=e;let[Q,le]=F.curData,D=[...F.curData];if(D[2]=ce.getNumTwoBit(Number(H.day)),D[3]=`${D[0]}-${D[1]}-${D[2]}`,D[4]=ce.getWhatDay(+D[0],+D[1],+D[2]),G=="multiple")if(f.currDate?.length>0){let q;f.currDate?.forEach((K,I)=>{K==D[3]&&(q=I)}),L?f.chooseData.push([...D]):q!==void 0?(f.currDate.splice(q,1),f.chooseData.splice(q,1)):(f.currDate.push(D[3]),f.chooseData.push([...D]))}else f.currDate=[D[3]],f.chooseData=[[...D]];else if(G=="range"){let q=Object.values(f.currDate).length;q==2||q==0?f.currDate=[D[3]]:ce.compareDate(f.currDate[0],D[3])?Array.isArray(f.currDate)&&f.currDate.push(D[3]):Array.isArray(f.currDate)&&f.currDate.unshift(D[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...D]]:ce.compareDate(f.chooseData[0][3],D[3])?f.chooseData=[...f.chooseData,[...D]]:f.chooseData=[[...D],...f.chooseData]}else if(G=="week"){let q=ce.getWeekDate(Q,le,H.day,e.firstDayOfWeek);f.propStartDate&&ce.compareDate(q[0],f.propStartDate)&&q.splice(0,1,f.propStartDate),f.propEndDate&&ce.compareDate(f.propEndDate,q[1])&&q.splice(1,1,f.propEndDate),f.currDate=q,f.chooseData=[ce.formatResultDate(q[0]),ce.formatResultDate(q[1])]}else f.currDate=D[3],f.chooseData=[...D];if(!L){let q=f.chooseData;G=="week"&&(q={weekDate:[N(f.chooseData[0]),N(f.chooseData[1])]}),n("select",q),(e.isAutoBackFill||!e.poppable)&&E()}}},N=H=>{let[F,L,G]=H;return{date:H,monthWeekNum:ce.getMonthWeek(F,L,G,e.firstDayOfWeek),yearWeekNum:ce.getYearWeek(F,L,G,e.firstDayOfWeek)}},R=H=>{const F=H=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let L=parseInt(F.curData[0]),G=parseInt(F.curData[1].toString().replace(/^0/,""));switch(H){case"prev":G==1&&(L-=1),G=G==1?12:--G;break;case"next":G==12&&(L+=1),G=G==12?1:++G;break}return[L+"",ce.getNumTwoBit(G),ce.getMonthDays(String(L),String(G))+""]},U=(H,F,L)=>{let{year:G,month:Q}=L;return F=="prev"&&H>=7&&(H-=7),Array.from(Array(H),(le,D)=>({day:String(D+1),type:F,year:G,month:Q}))},$=(H,F,L,G)=>{H=H-e.firstDayOfWeek;let{year:Q,month:le}=L;return F=="prev"&&H>=7&&(H-=7),Array.from(Array(G),(D,q)=>({day:String(q+1),type:F,year:Q,month:le})).slice(G-H)},x=(H,F)=>{const L=ce.getMonthPreDay(+H[0],+H[1]);let G=Number(H[1])-1,Q=Number(H[0]);G<=0&&(G=12,Q+=1);const le=ce.getMonthDays(String(H[0]),String(H[1])),D=ce.getMonthDays(Q+"",G+""),q={year:H[0],month:H[1]},K={curData:H,title:i("monthTitle",{year:q.year,month:q.month}),monthData:[...$(L,"prev",{month:String(G),year:String(Q)},D),...U(le,"curr",q)],cssHeight:0,cssScrollHeight:0};K.cssHeight=39+64*(K.monthData.length>35?6:5);let I=0;f.monthsData.length>0&&(I=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),K.cssScrollHeight=I,F=="next"?(!f.endData||!ce.compareDate(`${f.endData[0]}-${f.endData[1]}-${ce.getMonthDays(f.endData[0],f.endData[1])}`,`${H[0]}-${H[1]}-${H[2]}`))&&f.monthsData.push(K):!f.startData||!ce.compareDate(`${H[0]}-${H[1]}-${H[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(K):f.unLoadPrev=!0},M=()=>{let H=e.startDate?e.startDate:ce.getDay(0),F=e.endDate?e.endDate:ce.getDay(365);f.propStartDate=H,f.propEndDate=F,f.startData=m(H),f.endData=m(F),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const L={year:Number(f.startData[0]),month:Number(f.startData[1])},G={year:Number(f.endData[0]),month:Number(f.endData[1])};let Q=G.month-L.month;G.year-L.year>0&&(Q=Q+12*(G.year-L.year)),Q<=0&&(Q=1),x(f.startData,"next");let le=1;do x(R("next"),"next");while(le++<Q);if(f.monthsNum=Q,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(H&&ce.compareDate(f.currDate[0],H)&&f.currDate.splice(0,1,H),F&&ce.compareDate(F,f.currDate[1])&&f.currDate.splice(1,1,F),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 D=[],q={};f.currDate.forEach(K=>{H&&!ce.compareDate(K,H)&&F&&!ce.compareDate(F,K)&&(Object.hasOwnProperty.call(q,K)||(D.push(K),q[K]=K))}),f.currDate=[...D],f.defaultData=[...m(D[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[D,q,K]=m(f.currDate[0]);f.currDate=ce.getWeekDate(D,q,K,e.firstDayOfWeek),H&&ce.compareDate(f.currDate[0],H)&&f.currDate.splice(0,1,H),F&&ce.compareDate(F,f.currDate[1])&&f.currDate.splice(1,1,F),f.defaultData=[...m(f.currDate[0]),...m(f.currDate[1])]}}else f.currDate&&(H&&ce.compareDate(f.currDate,H)?f.currDate=H:F&&!ce.compareDate(f.currDate,F)&&(f.currDate=F),f.defaultData=[...m(f.currDate)])};l({scrollToDate:H=>{ce.compareDate(H,f.propStartDate)?H=f.propStartDate:ce.compareDate(H,f.propEndDate)||(H=f.propEndDate);let F=m(H);f.monthsData.forEach((L,G)=>{if(L.title==i("monthTitle",{year:F[0],month:F[1]})&&d.value){let Q=f.monthsData[G].cssScrollHeight-d.value.scrollTop;if(e.toDateAnimation){let le=0,D=setInterval(()=>{if(le++,d.value){let q=Q/10;d.value.scrollTop=d.value.scrollTop+q}le>=10&&(clearInterval(D),d.value&&(d.value.scrollTop=f.monthsData[G].cssScrollHeight))},40)}else d.value.scrollTop=f.monthsData[G].cssScrollHeight}})},initPosition:()=>{d?.value&&(d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let H=0,F=0;f.defaultData.length>0&&f.monthsData.forEach((Q,le)=>{Q.title==i("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(H=le),(e.type=="range"||e.type=="week")&&Q.title==i("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(F=le)}),P(f.monthsNum,H),f.currentIndex=H,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),B({day:f.defaultData[5],type:"curr"},f.monthsData[F],!0)):e.type=="week"?B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(Q=>{let le=m(Q),D=f.currentIndex;f.monthsData.forEach((q,K)=>{q.title==i("monthTitle",{year:le[0],month:le[1]})&&(D=K)}),B({day:le[2],type:"curr"},f.monthsData[D],!0)}):B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let L=f.monthsData[f.monthsData.length-1],G=L.cssHeight+L.cssScrollHeight;Ye(()=>{d?.value&&h?.value&&p?.value&&(y.value=d.value.clientHeight,h.value.style.height=`${G}px`,d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(G/(f.monthsNum+1))}});const P=(H,F)=>{H>=3?F>0&&F<H?f.defaultRange=[F-1,F+3]:F==0?f.defaultRange=[F,F+4]:F==H&&(f.defaultRange=[F-2,F+2]):f.defaultRange=[0,H+2],f.translateY=f.monthsData[f.defaultRange[0]].cssScrollHeight},_=(H,F)=>(e.type=="range"||e.type=="week")&&H.type=="curr"&&T(H,F)=="fox-calendar__day--active",te=(H,F)=>_(H,F)&&w(b(H,F)),W=(H,F)=>f.currDate.length>=2&&A(b(H,F))?_(H,F):!1,Z=()=>{if(f.currDate.length>=2)return ce.isEqual(f.currDate[0],f.currDate[1])},J=H=>{const F=`${H.year}-${H.month}-${Number(H.day)<10?"0"+H.day:H.day}`;return ce.isEqual(F,ce.date2Str(new Date))},j=H=>{if(f.monthsData.length<=1)return;const F=H.target.scrollTop;let L=Math.floor(F/f.avgHeight);if(L==0)F>=f.monthsData[L+1].cssScrollHeight&&(L+=1);else if(L>0&&L<f.monthsNum-1)F>=f.monthsData[L+1].cssScrollHeight&&(L+=1),F<f.monthsData[L].cssScrollHeight&&(L-=1);else{const G=Math.round(F+y.value);G<f.monthsData[L].cssScrollHeight+f.monthsData[L].cssHeight&&F>f.monthsData[L-1].cssScrollHeight&&(L-=1),L+1<=f.monthsNum&&G>=f.monthsData[L+1].cssScrollHeight+f.monthsData[L+1].cssHeight&&(L+=1),L>=1&&F<f.monthsData[L-1].cssScrollHeight&&(L-=1)}f.currentIndex!==L&&(f.currentIndex=L,P(f.monthsNum,L)),f.yearMonthTitle=f.monthsData[L].title},ne=()=>{f.chooseData.splice(0),f.monthsData.splice(0),M()};return M(),(0,t.watch)(()=>e.defaultValue,H=>{H&&e.poppable&&ne()}),{weeks:s,compConthsData:C,showTopBtn:k,topInfo:v,bottomInfo:S,rangeTip:Z,mothsViewScroll:j,getClass:T,isStartTip:te,isEndTip:W,chooseDay:B,isCurrDay:J,confirm:E,months:d,...(0,t.toRefs)(f),...(0,t.toRefs)(e),...r,monthsPanel:h,weeksPanel:u,viewArea:p}}}),Tm={class:"fox-calendar__header"},Vm={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"},xm=["onClick"],Mm={class:"fox-calendar__day-value"},Rm={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},zm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Fm={key:2,class:"fox-calendar__day-tips--curr"},Lm={key:4,class:"fox-calendar__day-tip"},Om={key:0,class:"fox-calendar__footer"};function Km(e,n,a,l,o,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",Tm,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Vm,(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,(r,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:c},(0,t.toDisplayString)(r),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...r)=>e.mothsViewScroll&&e.mothsViewScroll(...r))},[(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,(r,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:c},[(0,t.createElementVNode)("view",qm,(0,t.toDisplayString)(r.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)(r.monthData,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(s,r)]),onClick:h=>e.chooseDay(s,r)},[(0,t.createElementVNode)("view",Mm,[(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",zm,[(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,r)?((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,r)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Lm,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,xm))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",Om,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...r)=>e.confirm&&e.confirm(...r))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var Um=ie(Bm,[["render",Km]]),Hm=(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,Qe({...e},{poppable:!1}),n):n?.default?.()??null}}),jm=Hm,Wm=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),nl={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}=ee("calendar"),Xm=Ym({components:{Wrapper:jm,CalendarPane:Um},props:{...nl},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a,expose:l}){const o=(0,t.computed)(()=>a.btn),i=(0,t.computed)(()=>a["top-info"]),r=(0,t.computed)(()=>a.day),c=(0,t.computed)(()=>a["bottom-info"]),s=(0,t.ref)(null),d=v=>{s.value?.scrollToDate(v)},h=()=>{s.value?.initPosition()};(0,t.watch)(()=>e.visible,v=>{v&&(0,t.nextTick)(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),l({scrollToDate:d,initPosition:h});const u=()=>{n("update:visible",!1)},p=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{p()},update:u,close:p,select:v=>{n("select",v)},choose:v=>{p(),n("choose",v)},calendarRef:s,showTopBtn:o,topInfo:i,dayInfo:r,bottomInfo:c}}});function Qm(e,n,a,l,o,i){const r=(0,t.resolveComponent)("CalendarPane"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(c,(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)(r,{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 ll=ie(Xm,[["render",Qm]]),Ci={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]}},ga=(e,n)=>{let a;return He(e)?a=e:typeof e=="string"&&ke(e)>0?a=ce.parser(e,n):a=new Date,a},Nt=(e,n,a)=>(He(n)||(n=new Date),ce.format(n,a)),At=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,ce.date2Str(e),ce.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],Gm={...ye,...ve,...nl,...Ci};function _m(e,n,a,l,o,{CloseIcon:i,MarkIcon:r},c=!1){return{props:Gm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:h,disabled:u,readonly:p,browse:y}=Ve(s),{emitEvent:C,exposeApi:k}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:v}=(0,ge.useFoxI18n)(n),S=v(s,["placeholder"]),f=(0,t.ref)(!1),m=(0,t.computed)(()=>s.type==="range"),w=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),A=()=>{w.startDate!==null&&(w.startDate=null,w.endDate=null,w.startArray=[],w.endArray=[])},g=(F,L="one",G="YYYY-MM-DD")=>{if(Wm(F)){A();return}if(m.value&&Array.isArray(F)&&F.length==2){let Q,le;typeof F[0]=="string"?(Q=ga(F[0],G),le=ga(F[1],G)):(Q=F[0],le=F[1]);let D=At(Q),q=At(le);(w.startDate===null||w.startDate.getTime()!==Q.getTime()||w.endDate?.getTime()!==le.getTime())&&(w.startDate=Q,w.startArray=D,w.endDate=le,w.endArray=q)}else{let Q;typeof F=="string"?Q=ga(F,G):Q=F;let le=At(Q);(w.startDate===null||w.startDate.getTime()!==Q.getTime())&&(w.startDate=Q,w.startArray=le)}};g(s.modelValue,s.type,s.valueFormat),(0,t.watch)(()=>s.modelValue,F=>{g(F,s.type,s.valueFormat),C("setValue",F)});const b=(0,t.computed)(()=>{if(w.startDate===null)return"";if(m.value){let F=Nt(s,w.startDate,s.format),L=Nt(s,w.endDate,s.format);return`${F} ${s.rangeSeparator} ${L}`}else{let F=Nt(s,w.startDate,s.format);return s.showWeek&&(F=`${F} ${w.startArray[4]}`),F}}),T=(0,t.computed)(()=>w.startDate===null?null:m.value?[ce.date2Str(w.startDate),ce.date2Str(w.endDate??new Date)]:ce.date2Str(w.startDate)),E="fox-input-item",B=(0,t.computed)(()=>({[E]:!0,"is-disabled":u.value,"is-readonly":p.value})),N=Te((0,t.computed)(()=>s.textAlign),"textAlign"),R=(0,t.computed)(()=>{const F={};return N.value&&(F["text-align"]=N.value),F}),U=(0,t.ref)(!1),$=()=>{p.value||u.value||(U.value=!0)},x=F=>{U.value=F},M=F=>{if(F){if(m.value&&Array.isArray(F)){let L=F[0],G=de(L[0]),Q=de(L[1]),le=de(L[2]),D=new Date(G,Q-1,le),q=F[1];G=de(q[0]),Q=de(q[1]),le=de(q[2]);let K=new Date(G,Q-1,le);w.startDate=D,w.startArray=At(D),w.endDate=K,w.endArray=At(K),s.valueFormat?C("update:modelValue",[Nt(s,D,s.valueFormat),Nt(s,K,s.valueFormat)],{}):C("update:modelValue",[D,K],{})}else{let L=F,G=de(L[0]),Q=de(L[1]),le=de(L[2]),D=new Date(G,Q-1,le);w.startDate=D,w.startArray=At(D),s.valueFormat?C("update:modelValue",Nt(s,D,s.valueFormat),{}):C("update:modelValue",D,{})}C("change",F,{})}},O=F=>{let L=F.target.value;f.value=!0,C("focus",L,F)},z=F=>{setTimeout(()=>{f.value=!1},0);let L=F.target.value;s.maxLength&&L.length>Number(s.maxLength)&&(L=L.slice(0,Number(s.maxLength))),C("blur",L,F)},X=(0,t.computed)(()=>({[`${E}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),P=(0,t.computed)(()=>ke(s.unit)>0),_=(0,t.computed)(()=>ke(s.unit)>0&&!f.value),te=(0,t.computed)(()=>({hidden:!_.value})),W=F=>{A(),C("update:modelValue",null,F),C("change","",F),C("clear","")},Z=(0,t.computed)(()=>s.clearable&&!u.value&&!p.value),J=(0,t.computed)(()=>{let F=ke(b.value)>0;return s.clearable&&F&&f.value}),j=F=>{J.value?W(F):$()},ne=(0,t.computed)(()=>J.value&&Z.value?i:r),H=(0,t.computed)(()=>({action:!0}));return k(),()=>{if(y.value==="on"&&(p.value||u.value))return o(b.value,d.slots);const F={class:B.value,style:R.value,type:"text",maxlength:s.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:$,onFocus:O,onBlur:z};c&&(F.disabled=!0);const L=[],G=(0,t.h)("input",F);L.push(G);const Q=[],le=(0,t.h)(ne.value,{class:["action-icon"]}),D=(0,t.h)("view",{class:H.value,onClick:j},{default:()=>[le]});if(Q.push(D),P.value){const se=(0,t.h)("view",{class:te.value},[s.unit]);Q.push(se)}const q=(0,t.h)("view",{class:X.value},{default:()=>Q});L.push(q);const K={default:()=>L};K.label=d.slots.default,K.prepend=d.slots.prepend,K.append=d.slots.append,K.fixedPreTip=d.slots.fixedPreTip,K.fixedTip=d.slots.fixedTip;const I=be(s,nl);I.visible=U.value,I["onUpdate:visible"]=x,I["default-value"]=T.value,I.onChoose=M;const Y={};if(d.slots.btn){const se=d.slots.btn();Y.btn=()=>se}d.slots.day&&(Y.day=d.slots.day),d.slots.topInfo&&(Y.topInfo=d.slots.topInfo),d.slots.bottomInfo&&(Y.bottomInfo=d.slots.bottomInfo);const ae=(0,t.h)(a,I,Y);K.hide=()=>[ae];const re={...Qe(s,nl,Ci),ref:h};return s.prop&&(re.prop=`${s.prop}_item`),l(re,K)}}}}var{componentName:Zm,create:Jm,scope:e0}=ee("calendar-item"),t0=Jm(_m(Zm,e0,ll,Ie,Me,{CloseIcon:oe.CircleClose,MarkIcon:oe.Date},!1)),ya=t0,n0={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 l0(e,{CheckNormal:n,Checked:a}){return{props:{...n0},setup(l,{emit:o,slots:i}){const r=(0,t.inject)("parent",null),c=qn(),s=(0,t.computed)(()=>r.label.value===l.label),d=(0,t.computed)(()=>r.position),h=()=>{const k=[];if(s.value){if(i.checkedIcon)return i.checkedIcon();{const v=ue(l.iconSize),S=l.checkedIcon??c.radio.Checked??a;return k.push("fox-radio__icon"),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)(S,{width:v,height:v,class:k})}}else{if(i.icon)return i.icon();{const v=ue(l.iconSize),S=l.icon??c.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)(S,{width:v,height:v,class:k})}}},u=()=>{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?.())},y=()=>{s.value||l.disabled||l.readonly||r.updateValue(l.label)},C=d.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${C?`${e}--reverse`:""}`,onClick:y},[l.shape=="button"?p():C?[u(),h()]:[h(),u()]])}}}var{componentName:a0,create:o0}=ee("radio"),r0=o0(l0(a0,{CheckNormal:oe.CheckNormal,Checked:oe.CheckChecked})),al=r0,{componentName:Ni,create:i0}=ee("radio-group"),s0=i0({props:{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:a,exposeApi:l}=gt({context:n}),{slots:o}=n,i=r=>a("update:modelValue",r);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:i}),(0,t.watch)(()=>e.modelValue,r=>a("change",r)),l(),()=>{const r={};return e.textAlign&&(r["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Ni} ${Ni}--${e.direction}`,style:r},o.default?.())}}}),ol=s0;function Ai(e,n,a,l="value"){for(let o=0;o<n.length;o++){let i=n[o];if(l==="text"){if(rl(e,i)===a)return o}else if(l==="item"){if(De(a,i))return o}else if(Qt(e,i)===a)return o}return-1}function rl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Qt(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 u0(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var d0=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);let l=tt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function f0(){return new d0(it())}function m0(e){return{text:e,value:e}}var Bi={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},p0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},h0={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={...ye,...ve,...Bi,...p0,...h0};function y0(e,n,a,l,o,i){return{props:g0,emits:["change","update:modelValue","setValue"],setup(r,c){const{itemTemplateRef:s,innerDisabled:d,disabled:h,innerReadonly:u,readonly:p,browse:y}=Ve(r),{emitEvent:C,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 r},context:c,get templateRefProxy(){return s.value}},r.prop??c.attrs.name),v=Te((0,t.computed)(()=>r.textAlign),"textAlign"),S=f0(),f=(0,t.ref)([]),m=(0,t.computed)(()=>typeof r.sourceFilter=="function"&&Array.isArray(f.value)?f.value.filter(r.sourceFilter):f.value);(0,t.watch)([()=>r.source,()=>r.params],async([T,E])=>{if(T){const B=await S.load("radio",T,E);B.length>0?typeof B[0]=="string"?f.value=B.map(N=>m0(N)):f.value=B:f.value=[]}},{immediate:!0});let w=(0,t.ref)(-1);(0,t.watch)([()=>r.modelValue,()=>m.value],async([T,E])=>{w.value=Ai(r,E,T,r.valueType),C("setValue",T)},{deep:!0});const A=(0,t.computed)(()=>{if(!r.source)return r.modelValue;if(w.value===-1)return null;const T=m.value[w.value];return Qt(r,T)}),g=T=>{let E=null,B=null;if(m.value.length>0){let N=Ai(r,m.value,T,"value");w.value=N,N>=0&&(B=m.value[N],r.valueType==="text"?E=rl(r,B):r.valueType==="item"?E=B:E=Qt(r,B))}else E=T;C("update:modelValue",E),C("change",E,B)},b=()=>{let T=null,E=null;if(m.value.length>0&&w.value!==-1){let B=m.value[w.value];r.valueType==="text"?T=rl(r,B):r.valueType==="item"?T=B:T=Qt(r,B)}C("update:modelValue",T),C("change",T,E)};if(k({clear(){w.value!==-1&&(w.value=-1,b())},setDisabled:T=>{d.value=T},setReadonly:T=>{u.value=T}}),r.source){const T=()=>{const E=[],B=be(r,Bi);return m.value.forEach((N,R)=>{const U=Qt(r,N),$=c0(r,N);let x={...B,label:U,disabled:$};const M=u0(r,N,R);x={...x,...M},h.value&&(x.disabled=!0),p.value&&(x.readonly=!0);const O={};if(c.slots.icon&&(O.icon=c.slots.icon),c.slots.checkedIcon&&(O.checkedIcon=c.slots.checkedIcon),typeof c.slots.text=="function"){const X=c.slots.text(N);O.default=()=>[X]}else{const X=rl(r,N);O.default=()=>X}let z=(0,t.h)(i,x,O);E.push(z)}),E};return()=>{if(y.value==="on"&&(p.value||h.value))return l(A.value,c.slots,m.value);const E=T(),B=(0,t.h)(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:v.value,modelValue:A.value,"onUpdate:modelValue":g},{default:()=>E}),N={default:()=>B};N.label=c.slots.default,N.prepend=c.slots.prepend,N.append=c.slots.append,N.fixedPreTip=c.slots.fixedPreTip,N.fixedTip=c.slots.fixedTip;const R={...be(r,ve,ye),ref:s};return r.prop&&(R.prop=`${r.prop}_item`),a(R,N)}}else return()=>{const T=c.slots.options?.()??[];return(0,t.h)(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:v.value,modelValue:A,"update:modelValue":g},{default:()=>T})}}}}var{componentName:b0,create:v0,scope:S0}=ee("radio-item"),k0=v0(y0(b0,S0,Ie,Me,ol,al)),ba=k0,w0=(e,{CheckNormal:n,Checked:a,Indeterminate:l})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(o,i){const{emitEvent:r,exposeApi:c}=gt({context:i}),s=qn(),{slots:d}=i,h=(0,t.inject)("parent",null),u=(0,t.reactive)({partialSelect:o.indeterminate});(0,t.watch)(()=>o.indeterminate,A=>{u.partialSelect=A});const p=(0,t.computed)(()=>!!h),y=(0,t.computed)(()=>p.value?h.value.value.includes(o.label):!!o.modelValue),C=(0,t.computed)(()=>p.value?h.position:o.textPosition);let k="";const v=(A,g)=>{k="click",r("update:modelValue",A),r("change",A,g)};(0,t.watch)(()=>o.modelValue,A=>{k=="click"?k="":r("change",A)});const S=()=>{const A=[];if(u.partialSelect){if(d.indeterminateIcon)return d.indeterminateIcon();{const g=ue(o.iconSize),b=o.indeterminateIcon??s.checkbox.Indeterminate??l;return A.push("fox-checkbox__icon--indeterminate"),o.disabled&&A.push("is-disabled"),o.readonly&&A.push("is-readonly"),(0,t.h)(b,{width:g,height:g,class:A})}}else if(y.value){if(d.checkedIcon)return d.checkedIcon();{const g=ue(o.iconSize),b=o.checkedIcon??s.checkbox.Checked??a;return A.push("fox-checkbox__icon"),o.disabled&&A.push("is-disabled"),o.readonly&&A.push("is-readonly"),(0,t.h)(b,{width:g,height:g,class:A})}}else{if(d.icon)return d.icon();{const g=ue(o.iconSize),b=o.icon??s.checkbox.CheckNormal??n;return A.push("fox-checkbox__icon--unchecked"),o.disabled&&A.push("is-disabled"),o.readonly&&A.push("is-readonly"),(0,t.h)(b,{width:g,height:g,class:A})}}},f=()=>{const A=[`${e}__label`];return o.disabled&&A.push("is-disabled"),o.readonly&&A.push("is-readonly"),(0,t.h)("view",{class:A},d.default?.())},m=()=>{const A=[`${e}__button`];return y.value&&A.push(`${e}__button--active`),o.disabled&&A.push("is-disabled"),o.readonly&&A.push("is-readonly"),(0,t.h)("view",{class:A},d.default?.())},w=A=>{if(!(o.disabled||o.readonly)){if(y.value&&u.partialSelect){u.partialSelect=!1,v(y.value,d.default?.()[0].children);return}if(v(!y.value,d.default?.()[0].children),p.value){const g=h.value.value,b=h.max.value,{label:T}=o,E=g.indexOf(T);E>-1?g.splice(E,1):E<=-1&&(g.length<b||!b)&&g.push(T),h.updateValue(g)}}};return(0,t.onMounted)(()=>{p.value&&h.link(o)}),(0,t.onBeforeUnmount)(()=>{p.value&&h.unlink(o)}),c(),()=>(0,t.h)("view",{class:`${e} ${e}--${o.shape} ${C.value==="left"?`${e}--reverse`:""}`,onClick:w},[o.shape=="button"?m():[S(),f()]])}}),{componentName:C0,create:N0}=ee("checkbox"),A0=N0(w0(C0,{CheckNormal:oe.CheckNormal,Checked:oe.Checked,Indeterminate:oe.CheckDisabled})),il=A0,{create:B0,componentName:Ti}=ee("checkbox-group"),T0=B0({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,n){const{emitEvent:a,exposeApi:l}=gt({context:n}),{slots:o}=n,i=(0,t.reactive)({children:[]}),r=u=>{i.children.push(u)},c=u=>{const p=i.children.findIndex(y=>y===u);p!==-1&&i.children.splice(p,1)},s=u=>{a("update:modelValue",u),a("change",u)},d=u=>{const p=[];u&&i.children.forEach(y=>{y?.disabled||p.push(y?.label)}),a("update:modelValue",p)},h=()=>{a("update:modelValue",i.children.filter(u=>u?.disabled?!1:!e.modelValue.includes(u.label)).map(u=>u.label))};return(0,t.provide)("parent",{value:(0,t.computed)(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:(0,t.computed)(()=>e.max),updateValue:s,link:r,unlink:c}),(0,t.watch)(()=>e.modelValue,u=>{a("change",u)}),l({toggleAll:d,toggleReverse:h}),()=>{const u={};return e.textAlign&&(u["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Ti} ${Ti}--${e.direction}`,style:u},o.default?.())}}}),sl=T0;function Vi(e,n,a,l="value"){for(let o=0;o<n.length;o++){let i=n[o];if(l==="text"){if(va(e,i)===a)return o}else if(l==="item"){if(De(a,i))return o}else if(cl(e,i)===a)return o}return-1}function va(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function cl(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function V0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function E0(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var $0=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);let l=tt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function D0(){return new $0(it())}function I0(e){return{text:e,value:e}}var q0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Ei={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},P0={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:", "}},x0={...ye,...ve,...q0,...Ei,...P0};function M0(e,n,a,l,o,i){return{props:x0,emits:["change","update:modelValue","setValue"],setup(r,c){const{itemTemplateRef:s,innerDisabled:d,disabled:h,innerReadonly:u,readonly:p,browse:y}=Ve(r),C=Te((0,t.computed)(()=>r.textAlign),"textAlign"),{emitEvent:k,exposeApi:v}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return h.value},get props(){return r},context:c,get templateRefProxy(){return s.value}},r.prop??c.attrs.name),S=D0(),f=(0,t.ref)([]),m=(0,t.computed)(()=>typeof r.sourceFilter=="function"&&Array.isArray(f.value)?f.value.filter(r.sourceFilter):f.value);(0,t.watch)([()=>r.source,()=>r.params],async([T,E])=>{if(T){const B=await S.load("checkbox",T,E);B.length>0?typeof B[0]=="string"?f.value=B.map(N=>I0(N)):f.value=B:f.value=[]}},{immediate:!0});const w=(0,t.ref)([]);(0,t.watch)([()=>r.modelValue,()=>m.value],async([T,E])=>{const B=[];Array.isArray(T)&&T.forEach(N=>{let R=Vi(r,E,N,r.valueType);R!==-1&&B.push(R)}),!De(B,w.value)&&(w.value=B,k("setValue",B))},{deep:!0});const A=(0,t.computed)(()=>{if(!r.source)return r.modelValue;let T=[];return w.value.forEach(E=>{let B=m.value[E];T.push(cl(r,B))}),T}),g=T=>{let E=[],B=[];if(m.value.length>0){const N=[];Array.isArray(T)&&T.forEach(R=>{let U=Vi(r,m.value,R,"value");U!==-1&&N.push(U);const $=m.value[U];B.push($),r.valueType==="text"?E.push(va(r,$)):r.valueType==="item"?E.push($):E.push(cl(r,$))}),w.value=N}else E=T;k("update:modelValue",E),k("change",E,B)},b=(0,t.ref)();if(v({toggleAll:T=>{b.value.toggleAll(T)},toggleReverse:()=>{b.value.toggleReverse()},setDisabled:T=>{d.value=T},setReadonly:T=>{u.value=T}}),r.source){const T=()=>{const E=[],B=be(r,Ei);return m.value.forEach((N,R)=>{const U=cl(r,N),$=V0(r,N);let x={...B,label:U,disabled:$};const M=E0(r,N,R);x={...x,...M},h.value&&(x.disabled=!0),p.value&&(x.readonly=!0);const O={};if(c.slots.icon&&(O.icon=c.slots.icon),c.slots.checkedIcon&&(O.checkedIcon=c.slots.checkedIcon),c.slots.indeterminateIcon&&(O.indeterminateIcon=c.slots.indeterminateIcon),typeof c.slots.text=="function"){const X=c.slots.text(N);O.default=()=>[X]}else{const X=va(r,N);O.default=()=>X}let z=(0,t.h)(i,x,O);E.push(z)}),E};return()=>{if(y.value==="on"&&(p.value||h.value))return l(A.value,c.slots,m.value,r.separator);const E=T(),B=(0,t.h)(o,{class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:A.value,"onUpdate:modelValue":g},{default:()=>E}),N={default:()=>B};N.label=c.slots.default,N.prepend=c.slots.prepend,N.append=c.slots.append,N.fixedPreTip=c.slots.fixedPreTip,N.fixedTip=c.slots.fixedTip;const R={...be(r,ve,ye),ref:s};return r.prop&&(R.prop=`${r.prop}_item`),a(R,N)}}else return()=>{const T=c.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:C.value,modelValue:A,"onUpdate:modelValue":g},{default:()=>T})}}}}var{componentName:R0,create:z0,scope:F0}=ee("checkbox-item"),L0=z0(M0(R0,F0,Ie,Me,sl,il)),Sa=L0,ka={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:O0,create:K0}=ee("switch"),U0=K0({components:{Loading1:oe.Loading1},props:{...ka},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const c=O0;return{[c]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${c}-base`]:!0,"is-disabled":e.disabled}}),o=(0,t.computed)(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let i="";const r=c=>{if(e.disabled||e.loading)return;i="click";const s=a.value?e.inactiveValue:e.activeValue;n("update:modelValue",s),n("change",s,c)};return(0,t.watch)(()=>e.modelValue,c=>{i=="click"?i="":n("change",c)}),{classes:l,style:o,isActive:a,onClick:r}}}),H0={class:"fox-switch-button"};function j0(e,n,a,l,o,i){const r=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...c)=>e.onClick&&e.onClick(...c)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",H0,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(r,{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 ul=ie(U0,[["render",j0]]),W0={...ye,...ve,...ka};function Y0(e,n,a,l,o){return{props:W0,emits:["change","update:modelValue","setValue"],setup(i,r){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y,exposeApi:C}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:r,get templateRefProxy(){return c.value}},i.prop??r.attrs.name),k=e,v=xe(i,"modelValue",null,y),S=f=>{v.value=f,y("update:modelValue",f,{}),y("change",f,{})};return C({setDisabled:f=>{s.value=f},setReadonly:f=>{h.value=f}}),()=>{if(p.value==="on"&&(u.value||d.value))return l(v.value,r.slots);const f={...be(i,ka),disabled:d.value||u.value,value:v.value,"onUpdate:modelValue":S},m=[],w=(0,t.h)(o,f);m.push(w);const A={default:()=>m};A.label=r.slots.default,A.fixedPreTip=r.slots.fixedPreTip,A.fixedTip=r.slots.fixedTip;const g={...be(i,ve,ye),ref:c};return i.prop&&(g.prop=`${i.prop}_item`),g["content-class"]=k,a(g,A)}}}}var{componentName:X0,create:Q0,scope:G0}=ee("switch-item"),_0=Q0(Y0(X0,G0,Ie,Me,ul)),wa=_0,Z0={...ye,...ve,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 J0(e,n,a,l){return{props:Z0,emits:["click","focus","blur","change"],setup(o,i){const{itemTemplateRef:r,disabled:c,readonly:s}=Ve(o),{emitEvent:d,exposeApi:h}=Be({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return s.value},get disabled(){return c.value},get props(){return o},context:i,get templateRefProxy(){return r.value}},o.prop??i.attrs.name),{toLocaleRefs:u}=(0,ge.useFoxI18n)(n),p=u(o,["placeholder"]),y=(0,t.ref)(o.modelValue);(0,t.watch)(()=>o.modelValue,$=>{y.value=$,d("change",$)});const C=(0,t.computed)(()=>({[`${e}`]:!0})),k=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!c.value&&fe(y.value),"is-disabled":c.value,"is-readonly":s.value})),v=Te((0,t.computed)(()=>o.textAlign),"textAlign"),S=(0,t.computed)(()=>{const $={};return v.value&&($["text-align"]=v.value),$}),f=(0,t.computed)(()=>!fe(o.modelValue)||i.slots.main?!0:!!fe(o.desc)),m=(0,t.computed)(()=>fe(y.value)?p.placeholder.value:y.value),w=(0,t.computed)(()=>!fe(o.desc)||i.slots.sub),A=(0,t.computed)(()=>({[`${e}__sub`]:!0})),g=(0,t.computed)(()=>{const $={};return v.value&&($["text-align"]=v.value),$}),b=()=>{d("focus",y.value)},T=()=>{d("blur",y.value)},E=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":c.value,"is-readonly":s.value})),B=(0,t.computed)(()=>ke(o.unit)>0),N=$=>{c.value==!0||s.value==!0||d("click")},R=(0,t.computed)(()=>o.icon??a),U=(0,t.computed)(()=>({action:!0}));return h(),()=>{const $=[];if(typeof i.slots.content=="function"){const te=i.slots.content();$.push(te)}else{const te=[];if(f.value){const Z={tabIndex:0,class:k.value,style:S.value,onFocus:b,onBlur:T};let J=null;i.slots.main?J=(0,t.h)("view",Z,[i.slots.main(m.value)]):J=(0,t.h)("view",Z,[m.value]),te.push(J)}if(w.value){const Z={tabIndex:0,class:A.value,style:g.value,onFocus:b,onBlur:T};let J=null;i.slots.sub?J=(0,t.h)("view",Z,[i.slots.sub(o.desc)]):J=(0,t.h)("view",Z,[o.desc]),te.push(J)}const W=(0,t.h)("view",{class:C.value,onClick:N},te);$.push(W)}const x=[],M=ue(o.iconSize);let O=i.slots.icon;if(!O){const te={width:M,height:M,class:["action-icon"]};O=(0,t.h)(R.value,te)}const z=(0,t.h)("view",{class:U.value,onClick:N},{default:()=>[O]});if(x.push(z),B.value){const te=(0,t.h)("view",{},[o.unit]);x.push(te)}const X=(0,t.h)("view",{class:E.value},{default:()=>x});$.push(X);const P={default:()=>$};P.label=i.slots.default,P.prepend=i.slots.prepend,P.append=i.slots.append,P.fixedPreTip=i.slots.fixedPreTip,P.fixedTip=i.slots.fixedTip;const _={...be(o,ve,ye),ref:r};return o.prop&&(_.prop=`${o.prop}_item`),l(_,P)}}}}var{componentName:ep,create:tp,scope:np}=ee("link-item"),lp=tp(J0(ep,np,oe.ArrowRight,Ie)),Ca=lp,Na={count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object},size:{type:[String,Number],default:void 0},activeColor:{type:String,default:""},voidColor:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:void 0}},{create:ap,componentName:op}=ee("rate"),rp=ap({props:{...Na},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)([]),o=(0,t.computed)(()=>({[op]:!0})),i=y=>{n("update:modelValue",y),n("change",y)},r=(y,C)=>{if(e.disabled||e.readonly)return;let k=0;C===1&&e.modelValue===C||(k=C,e.allowHalf&&y==2&&(k-=.5)),i(k)},c=(y,C,k)=>{let v=0;for(let S=C.value.length-1;S>=0;S--){const f=C.value[S];if(y>f.offsetLeft){k?v=S+(y>f.offsetLeft+f.clientWidth/2?1:.5):v=S+1;break}}return v},s=nt(),d={onTouchStart(y){!e.touchable||e.readonly||s.start(y)},onTouchMove(y){e.touchable&&(s.move(y),s.isHorizontal()&&l.value&&(y.preventDefault(),i(c(s.moveX.value,l,e.allowHalf))))}},h=Math.random().toString(36).slice(-8),u=(0,t.computed)(()=>e.customIcon??oe.StarFillN);return{classes:o,...d,onClick:r,toPxString:me,renderIcon:(y,C)=>(0,t.h)(y,C),rateRefs:l,refRandomId:h,slots:a,customIcon:u}}}),ip=["id"],sp={class:"fox-rate-item__icon--full"},cp={key:0,class:"fox-rate-item__icon--half"},up={key:1,class:"fox-rate-item__icon--half"};function dp(e,n,a,l,o,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...r)=>e.onTouchStart&&e.onTouchStart(...r)),onTouchmove:n[1]||(n[1]=(...r)=>e.onTouchMove&&e.onTouchMove(...r))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),r=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:r,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+r,style:(0,t.normalizeStyle)(r<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("view",sp,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:r<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,t.normalizeClass)(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||r>e.modelValue}]),onClick:c=>e.onClick(1,r)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>r?((0,t.openBlock)(),(0,t.createElementBlock)("view",cp,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:r<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:c=>e.onClick(2,r)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<r?((0,t.openBlock)(),(0,t.createElementBlock)("view",up,[((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:c=>e.onClick(2,r)},null,8,["onClick"]))])):(0,t.createCommentVNode)("",!0)],12,ip))),128))],34)}var dl=ie(rp,[["render",dp]]),fp={...ye,...ve,...Na};function mp(e,n,a,l,o){return{props:fp,emits:["change","update:modelValue","setValue"],setup(i,r){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y,exposeApi:C}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:r,get templateRefProxy(){return c.value}},i.prop??r.attrs.name),k=e,v=xe(i,"modelValue",null,y),S=f=>{v.value=f,y("update:modelValue",f,{}),y("change",f,{})};return C({setDisabled:f=>{s.value=f},setReadonly:f=>{h.value=f}}),()=>{if(p.value==="on"&&(u.value||d.value))return l(v.value,r.slots);const f={...be(i,Na),disabled:d.value,readonly:u.value,value:v.value,"onUpdate:modelValue":S},m=[],w=(0,t.h)(o,f);m.push(w);const A={default:()=>m};if(r.slots.default){const b=r.slots.default();A.label=()=>b}const g=be(i,ve,ye);return i.prop&&(g.prop=`${i.prop}_item`),g["content-class"]=k,g.ref=c,a(g,A)}}}}var{componentName:pp,create:hp,scope:gp}=ee("rate-item"),yp=hp(mp(pp,gp,Ie,Me,dl)),Aa=yp,bp=/scroll|auto|overlay/i,$i=window;function vp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Ba(e,n=$i){let a=e;for(;a&&a!==n&&vp(a);){const{overflowY:l}=window.getComputedStyle(a);if(bp.test(l))return a;a=a.parentNode}return n}function Di(e,n=$i){const a=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(a.value=Ba(e.value,n))}),a}var Ii=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Sp={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 kp(e,n,a){return{props:{...Sp},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:o,slots:i}){const{toLocaleRefs:r}=(0,ge.useFoxI18n)(n),c=r(l,["pullText","loadText","noMoreText"]),s=(0,t.ref)(),d=Di(s),h=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),u=(0,t.computed)(()=>({[e]:!0})),p=f=>f?f.offsetTop+p(f.offsetParent):0,y=()=>{let f=0,m=0,w="down";if(d.value==window){const A=Ii();s.value&&(f=p(s.value)+s.value.offsetHeight-A-window.innerHeight),m=A}else{const{scrollHeight:A,clientHeight:g,scrollTop:b}=d.value;f=A-g-b,m=b}return h.beforeScrollTop>m?w="up":w="down",h.beforeScrollTop=m,o("scroll-change",m),f<=l.threshold&&w=="down"},C=()=>{Ye(()=>{if(!y()||!l.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,o("update:modelValue",!0),(0,t.nextTick)(()=>o("load-more"))})},k=()=>{d.value&&d.value.addEventListener("scroll",C,l.useCapture)},v=()=>{d.value&&d.value.removeEventListener("scroll",C,l.useCapture)};(0,t.onMounted)(()=>{k(),l.immediate&&C()}),(0,t.onUnmounted)(()=>{v()});const S=(0,t.ref)(!1);return(0,t.onActivated)(()=>{S.value&&(S.value=!1,k())}),(0,t.onDeactivated)(()=>{S.value=!0,v()}),(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 A=i?.loading?.()??null;if(!A){let b=i?.loadingIcon?.()??null;b||(b=(0,t.h)(a,{class:["fox-infinite__bottom-box__img"]}));const T=(0,t.h)("view",{class:"fox-infinite__bottom-box__text"},[c.loadText.value]);A=[b,T]}const g=(0,t.h)("view",{class:"fox-infinite__bottom-box"},A);m.push(g)}else if(!l.hasMore){let A=i?.finished?.()??null;A||(A=(0,t.h)("view",{class:"fox-infinite__bottom-tips"},[c.noMoreText.value]),m.push(A))}const w=(0,t.h)("view",{class:"fox-infinite__bottom"},m);return(0,t.h)("view",{class:u.value,ref:s},[f,w])}}}}var{componentName:wp,create:Cp,scope:Np}=ee("infinite-loading"),Ap=Cp(kp(wp,Np,oe.Loading)),fl=Ap,{componentName:Bp,create:Tp}=ee("button"),Vp=Tp({components:{Loading:oe.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:l,size:o,shape:i,disabled:r,loading:c,color:s,plain:d,block:h}=(0,t.toRefs)(e);return{handleClick:p=>{!c.value&&!r.value&&n("click",p)},classes:(0,t.computed)(()=>{const p=Bp;return{[p]:!0,[`${p}--${l.value}`]:l.value,[`${p}--${o.value}`]:o.value,[`${p}--${i.value}`]:i.value,[`${p}--plain`]:d.value,[`${p}--block`]:h.value,[`${p}--disabled`]:r.value,[`${p}--loading`]:c.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})}}}),Ep={class:"fox-button__wrap"};function $p(e,n,a,l,o,i){const r=(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]=(...c)=>e.handleClick&&e.handleClick(...c))},[(0,t.createElementVNode)("view",Ep,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(r,{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 ut=ie(Vp,[["render",$p]]),Dp={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"}},Ip=(e,n,a)=>({props:{...Dp},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,o){const{emitEvent:i}=gt({context:o}),{toLocaleRefs:r}=(0,ge.useFoxI18n)(n),c=r(l,["placeholder"]),{slots:s}=o,d=(0,t.reactive)({active:!1}),h=(0,t.computed)(()=>({background:l.background})),u=(0,t.computed)(()=>({background:l.inputBackground})),p=B=>{let N=B.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),i("update:modelValue",N,B),i("change",N,B)},y=(0,t.ref)({}),C=B=>{let N=B.target.value;d.active=!0,y.value=l.focusStyle,i("focus",N,B)},k=B=>{setTimeout(()=>{d.active=!1},0);let N=B.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),y.value={},i("blur",N,B)},v=B=>{i("update:modelValue","",B),i("change","",B),i("clear","")},S=(0,t.computed)(()=>String(l.modelValue).length>0),f=(0,t.computed)(()=>{const B={};return S.value||(B.display="none"),B}),m=B=>{l.autoblur&&T.value?.blur(),(typeof B.cancelable!="boolean"||B.cancelable)&&B.preventDefault(),i("search",l.modelValue)},w=B=>{i("keyup-input",B)},A=B=>{i("click-input",B)},g=B=>{i("click-left-icon",l.modelValue,B)},b=(0,t.computed)(()=>({textAlign:l.inputAlign})),T=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&T.value.focus()});const E=()=>{const B=[];if(s.leftin){const $=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:g},[s.leftin()]);B.push($)}const N=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:T,style:b.value,type:l.inputType,maxlengt:l.maxLength,placeholder:c.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:A,onInput:p,onFocus:C,onBlur:k,onkeyup:w}),R=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:m},[N]);B.push(R);const U=[];if(l.clearable){const $=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:v},[(0,t.h)(s?.clear?.()??l.clearIcon??a)]);U.push($)}if(s.rightin){const $=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[s.rightin()]);U.push($)}if(U.length>0){const $=(0,t.h)("view",{class:`${e}__input-inner-right`},U);B.push($)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...u.value,...y.value}},B)};return()=>{const B=[];if(l.label){const R=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);B.push(R)}if(s.leftout){const R=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[s.leftout()]);B.push(R)}const N=E();if(B.push(N),s.rightout){const R=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[s.rightout()]);B.push(R)}return(0,t.h)("view",{class:`${e}`,style:h.value},B)}}}),{componentName:qp,create:Pp,scope:xp}=ee("searchbar"),Mp=Pp(Ip(qp,xp,oe.CircleClose)),ml=Mp,pl={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 Rp(e,n,a,l="value"){for(let o=0;o<n.length;o++){let i=n[o];if(l==="text"){if(hl(e,i)===a)return o}else if(l==="item"){if(De(a,i))return o}else if(Pi(e,i)===a)return o}return-1}function hl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function qi(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Pi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function zp(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Fp(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var Lp=class{scope;constructor(e){this.scope=e}async load(e,n,a,l,o,i,r){if(!n)return{totalSize:0,page:[]};if(Array.isArray(n)){let s=n;typeof r=="function"&&(s=s.filter(r));let d=(a-1)*l,h=d+l;h>s.length&&(h=s.length);const u=s.slice(d,h);return{totalSize:s.length,page:u}}if(typeof n=="function")return await Reflect.apply(n,null,[a,l,o,i]);const c=tt(e,this.scope);return c===null?(console.error(`[FoxUI]${e} component not found api function`),{totalSize:0,page:[]}):($e(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await Reflect.apply(c,null,[n,a,l,o]))}};function Op(){return new Lp(it())}function Kp(e,n,a,l,o,i,r,c,s,d,h){return{props:pl,emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(u,p){const{emitEvent:y,exposeApi:C}=gt({context:p}),{slots:k}=p,{toLocaleRefs:v}=(0,ge.useFoxI18n)(n),S=v(u,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),f=Op(),m=(0,t.ref)([]),w=(0,t.ref)(0),A=(0,t.ref)(""),g=(0,t.shallowRef)(null),b=(0,t.computed)(()=>{const D={};return u.params&&Object.assign(D,u.params),fe(A.value)||(D[`${u.searchKey}`]=A.value),g.value&&Object.assign(D,g.value),D});let T=!0;const E=async(D,q,K)=>{try{if(N.value===!1)return;let I=null;fe(A.value)||(I=ae=>{const re=hl(u,ae);if(typeof re=="string"&&re.includes(A.value))return!0;const se=qi(u,ae);return!!(typeof se=="string"&&se.includes(A.value))});const Y=await f.load("actionsheet",D,q,K,b.value,T,I??void 0);T=!1,Array.isArray(Y)?(m.value=Y,w.value=1,N.value=!1):!Array.isArray(Y.page)||Y.page.length===0?(console.warn("[FoxUI] can not load more data"),N.value=!1):(Reflect.apply([].push,m.value,Y.page),w.value=Math.ceil(m.value.length/u.pageSize),(Y.totalSize&&m.value.length>=Y.totalSize||K<Y.page.length)&&(N.value=!1)),B.value=!1}catch(I){console.error("[FoxUI] ActionSheet load more data fail",I),N.value=!0,w.value=0,m.value=[]}setTimeout(()=>{y("loaded-data")},250)},B=(0,t.ref)(!1),N=(0,t.ref)(!0),R=async()=>{if(!u.source){B.value=!1;return}await E(u.source,w.value+1,u.pageSize)};let U=null;(0,t.watch)(A,(D,q)=>{U&&(clearTimeout(U),U=null),fe(D)&&!fe(q)&&(U=setTimeout(()=>{x()},u.searchDelayTriggerClear))});const $=()=>{N.value=!0,w.value=0,m.value=[],u.source&&R()},x=()=>{$()};(0,t.watch)([()=>u.source,()=>u.pageSize,()=>u.params],async([D,q,K])=>{u.source&&$()},{immediate:!0});const M=(0,t.computed)(()=>!u.multiple&&u.isAutoBackFill),O=(0,t.ref)([]);let z=null;const X=(0,t.ref)(u.visible);(0,t.watch)(()=>u.visible,D=>{X.value!==D&&(X.value=D),D?z=[...O.value]:z=null});const P=(D,q)=>{const K=[];return Array.isArray(D)||(D=[D]),D.forEach(I=>{let Y=Rp(u,q,I,u.valueType);Y!==-1&&K.push(Y)}),De(K,O.value)?!1:(O.value=K,!0)};(0,t.watch)([()=>u.modelValue,()=>m.value],([D,q],[K,I])=>{P(D,q)&&te(_())},{deep:!0});const _=()=>{const D=[],q=[],K=[];for(let re of O.value){const se=m.value[re];q.push(se);const Ce=hl(u,se);if(K.push(Ce),u.valueType==="item")D.push(se);else if(u.valueType==="text")D.push(Ce);else{const he=Pi(u,se);D.push(he)}}let I=null,Y=null,ae=null;return u.multiple?(I=D,Y=K,ae=q):(I=D[0]??null,Y=K[0]??null,ae=q[0]??null),{value:I,text:Y,item:ae}},te=D=>{y("update:modelValue",D.value),y("update:text",D.text),y("change",D.value,D.item,D.text)},W=()=>{z&&(O.value=z)},Z=D=>{const q=O.value.indexOf(D);u.multiple?q===-1?O.value.push(D):O.value.splice(q,1):q===-1?O.value=[D]:O.value=[],(M.value||!u.poppable&&!u.showFooter)&&ne()},J=D=>{X.value=D,y("update:visible",D)},j=()=>{const D=()=>{W(),J(!1)},q=u.beforeMethod??u.beforeClose;if(typeof q=="function"){const K=q("close");ft(K)?K.then(I=>{I!==!1&&D()}).catch(()=>{D()}):K!==!1&&D()}else D()},ne=()=>{const D=_(),q=()=>{te(D),J(!1)},K=u.beforeMethod??u.beforeClose;if(typeof K=="function"){const I=K("confirm",D.value,D.item,D.text);ft(I)?I.then(Y=>{Y!==!1&&q()}).catch(()=>{q()}):I!==!1&&q()}else q()},H=()=>{let D=S.title.value??"";return k.title&&(D=k.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[D]),(0,t.h)(s,{class:["fox-actionsheet__header-icon"],onClick:j})])},F=()=>{let D=null;return k.search?D=k.search():D=(0,t.h)(i,{onSearch:$,placeholder:S.seachPlaceholder.value,disabled:u.disabled,modelValue:A.value,"onUpdate:modelValue":q=>{A.value=q}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[D])},L=(D,q,K,I,Y)=>{if(k.optionLabel)return k.optionLabel({text:D,checked:q,disabled:K,subText:I,item:Y});const ae=[],re=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[D]);if(ae.push(re),I){const se=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[I]);ae.push(se)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},ae)},G=(D,q,K,I)=>k.optionIcon?k.optionIcon({checked:D,disabled:q,iconSize:K,item:I}):D?k.checkedIcon?k.checkedIcon({disabled:q,item:I}):(0,t.h)(u.checkedIcon??c,{width:K,height:K,class:["fox-actionsheet__list-item-icon"]}):k.icon?k.icon({disabled:q,item:I}):(0,t.h)(u.icon??r,{width:K,height:K,class:["fox-actionsheet__list-item-icon"]}),Q=()=>{const D=[];for(let q=0;q<m.value.length;q++){const K=m.value[q],I=hl(u,K),Y=qi(u,K),ae=["fox-actionsheet__list-item"],re={};let se=zp(u,K),Ce=u.iconSize?ue(u.iconSize):null;const he=Fp(u,K,q);he&&(se=se||he.disabled,he.class&&ae.push(he.class),he.style&&Object.assign(re,he.style)),se=!!(u.disabled||se);const Le=O.value.includes(q);se&&ae.push("is-disabled"),Le&&ae.push("is-checked");const un={class:ae,style:re,key:`${q}`,onClick:()=>{se||Z(q)}};let at=[];if(k.option)at.push(k.option({item:K,checked:Le,disabled:se}));else{const R2=L(I,Le,se,Y,K);at.push(R2);const z2=G(Le,se,Ce,K);at.push(z2),u.textPosition==="right"&&at.reverse()}const Qo=(0,t.h)("view",un,at);D.push(Qo)}return D},le=()=>{let D=[];if(k.buttons)D=k.buttons();else{const q=(0,t.h)(o,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:ne,disabled:u.disabled},{default:()=>S.confirmText.value});D.push(q)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[D])};return C({search:async(D=null,q=!0)=>{g.value=D&&(0,t.toRaw)(D),(0,t.triggerRef)(g),q&&(N.value=!0,w.value=0,m.value=[]),(0,t.nextTick)(()=>{R()})},clear:()=>{N.value=!0,w.value=0,m.value=[]},confirm:()=>{ne()},cancel:()=>{j()}}),()=>{const D=[];if(u.showHeader){const se=H();D.push(se)}if(u.showSearchbar){const se=F();D.push(se)}let q=null;if(k.content)q=k.content();else{const se=Q();q=(0,t.h)(l,{hasMore:N.value,loadText:S.loadText.value,noMoreText:S.noMoreText.value,modelValue:B.value,"onUpdate:modelValue":Ce=>{B.value=Ce},onLoadMore:R},{default:()=>se})}const K={};u.optionsHeight&&(K.height=u.optionsHeight);const I={"fox-actionsheet__list":!0};u.poppable||(I["fox-actionsheet__list--inner"]=!0);const Y=(0,t.h)("view",{class:I,style:K},[q]);if(D.push(Y),u.showFooter&&!M.value){const se=le();D.push(se)}const ae=(0,t.h)("view",{class:"fox-actionsheet"},D);if(!u.poppable)return ae;const re=["fox-actionsheet__popup"];return u.popClass&&re.push(u.popClass),(0,t.h)(a,{popClass:re.join(" "),visible:X.value,closeable:!1,"onUpdate:visible":J,position:u.position,round:"round",onClickOverlay:j,closeOnClickOverlay:u.closeOnClickOverlay},{default:()=>ae})}}}}var{componentName:Up,create:Hp,scope:jp}=ee("actionsheet-pane"),Wp=Hp(Kp(Up,jp,we,fl,ut,ml,oe.CheckNormal,oe.Checked,oe.Close,oe.Search2,!1)),gl=Wp,xi={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:" "}},Yp={...ye,...ve,...xi,...pl};function Xp(e,n,a,l,o,i,r,c){return{props:Yp,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:u,disabled:p,innerReadonly:y,readonly:C,browse:k}=Ve(s),{emitEvent:v,exposeApi:S}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return C.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,ge.useFoxI18n)(n),m=f(s,["placeholder"]),w=(0,t.ref)(!1),A=xe(s,"modelValue",null,v),g=(0,t.ref)(""),b=(0,t.computed)(()=>Array.isArray(g.value)?g.value.join(s.separator):g.value),T="fox-input-item",E=(0,t.computed)(()=>({[T]:!0,"is-disabled":p.value,"is-readonly":C.value})),B=Te((0,t.computed)(()=>s.textAlign),"textAlign"),N=(0,t.computed)(()=>{const G={};return B.value&&(G["text-align"]=B.value),G}),R=(0,t.ref)(!1),U=()=>{R.value=!0},$=G=>{R.value=G},x=G=>{A.value=G,v("update:modelValue",G)},M=(G,Q)=>{v("change",G,Q)},O=G=>{let Q=G.target.value;w.value=!0,v("focus",Q,G)},z=G=>{setTimeout(()=>{w.value=!1},0);let Q=G.target.value;s.maxLength&&Q.length>Number(s.maxLength)&&(Q=Q.slice(0,Number(s.maxLength))),v("blur",Q,G)},X=G=>{g.value=G,v("update:text",G)},P=(0,t.computed)(()=>({[`${T}__append`]:!0,"is-disabled":p.value,"is-readonly":C.value})),_=(0,t.computed)(()=>ke(s.unit)>0),te=(0,t.computed)(()=>ke(s.unit)>0&&!w.value),W=(0,t.computed)(()=>({hidden:!te.value})),Z=G=>{A.value="",v("update:modelValue","",G),v("change","",G),v("clear","")},J=(0,t.computed)(()=>s.clearable&&!p.value&&!C.value),j=(0,t.computed)(()=>ke(A.value)>0&&w.value),ne=G=>{j.value?Z(G):U()},H=(0,t.computed)(()=>j.value&&J.value?o:i),F=(0,t.computed)(()=>({action:!0})),L=(0,t.ref)(null);return S({search:G=>{L.value&&L.value.search(G)},clear:()=>{L.value&&L.value.clear},confirm:G=>{L.value&&L.value.confirm()},cancel:()=>{L.value&&L.value.cancel()},setDisabled:G=>{u.value=G},setReadonly:G=>{y.value=G}}),()=>{if(k.value==="on"&&(C.value||p.value))return l(b.value,d.slots);const G={class:E.value,style:N.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:U,onFocus:O,onBlur:z};c&&(G.disabled=!0);const Q=[],le=(0,t.h)("input",G);Q.push(le);const D=[],q=(0,t.h)(H.value,{class:["action-icon"]}),K=(0,t.h)("view",{class:F.value,onClick:ne},{default:()=>[q]});if(D.push(K),_.value){const Ce=(0,t.h)("view",{class:W.value},[s.unit]);D.push(Ce)}const I=(0,t.h)("view",{class:P.value},{default:()=>D});Q.push(I);const Y={default:()=>Q};Y.label=d.slots.default,Y.prepend=d.slots.prepend,Y.append=d.slots.append,Y.fixedPreTip=d.slots.fixedPreTip,Y.fixedTip=d.slots.fixedTip;const ae=be(s,pl);ae.ref=L,ae.class=s.actionSheetClass,ae.disabled=p.value||C.value,ae.visible=R.value,ae["onUpdate:visible"]=$,ae.modelValue=A.value,ae["onUpdate:modelValue"]=x,ae.text=g.value,ae["onUpdate:text"]=X,ae.onChange=M,ae.poppable=!0,ae["text-position"]=s.textPosition;const re=(0,t.h)(r,ae,{title:d.slots.title,search:d.slots.search,option:d.slots.option,optionLabel:d.slots.optionLabel,optionIcon:d.slots.optionIcon,buttons:d.slots.buttons});Y.hide=()=>[re];const se={...Qe(s,xi,pl),ref:h};return s.prop&&(se.prop=`${s.prop}_item`),a(se,Y)}}}}var{componentName:Qp,create:Gp,scope:_p}=ee("actionsheet-item"),Zp=Gp(Xp(Qp,_p,Ie,Me,oe.CircleClose,oe.ArrowRight,gl)),Ta=Zp,Va={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:Jp,create:eh}=ee("input-number"),th=eh({components:{Minus:oe.Minus,Plus:oe.Plus},props:{...Va},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=(0,t.computed)(()=>{const y=Jp;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),l=y=>Number(y).toFixed(Number(e.decimalPlaces)),o=y=>{const C=y.target;n("update:modelValue",C.valueAsNumber,y)},i=(y,C)=>{let k=l(y);n("update:modelValue",k,C),n("change",k,C)},r=(y=Number(e.modelValue))=>y<Number(e.max)&&!e.disabled,c=(y=Number(e.modelValue))=>y>Number(e.min)&&!e.disabled,s=y=>{n("reduce",y),c()?i(Number(e.modelValue)-Number(e.step),y):n("overlimit",y,"reduce")},d=y=>{n("add",y),r()?i(Number(e.modelValue)+Number(e.step),y):n("overlimit",y,"add")},h=y=>{e.disabled||e.readonly||n("focus",y)},u=y=>{if(e.disabled||e.readonly)return;let C=y.target.valueAsNumber;C<Number(e.min)?C=Number(e.min):C>Number(e.max)&&(C=Number(e.max)),i(C,y),n("blur",y)},p=y=>{let C=Number(y);return C<Number(e.min)?C=Number(e.min):C>Number(e.max)&&(C=Number(e.max)),C};return(0,t.watch)(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const y=p(e.modelValue);y!==Number(e.modelValue)&&i(y,{})}),{classes:a,change:o,blur:u,focus:h,add:d,addAllow:r,reduce:s,reduceAllow:c,toPxString:me}}}),nh=["min","max","disabled","readonly","value"];function lh(e,n,a,l,o,i){const r=(0,t.resolveComponent)("Minus"),c=(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)(r,{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,nh),(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)(c,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var yl=ie(th,[["render",lh]]),ah={...ye,...ve,...Va};function oh(e,n,a,l,o){return{props:ah,emits:["change","update:modelValue","setValue","add","reduce"],setup(i,r){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y,exposeApi:C}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!d.value&&!u.value},get props(){return i},context:r,get templateRefProxy(){return c.value}},i.prop??r.attrs.name),k=(0,t.computed)(()=>{const w=[`${e}`];return i.textAlign==="left"?w.push("is-left"):i.textAlign==="center"?w.push("is-center"):i.textAlign==="right"&&w.push("is-right"),w.join(" ")}),v=xe(i,"modelValue",null,y),S=w=>{v.value=w,y("update:modelValue",w,{}),y("change",w,{})},f=w=>{y("add",w)},m=w=>{y("reduce",w)};return C({setDisabled:w=>{s.value=w},setReadonly:w=>{h.value=w}}),()=>{if(p.value==="on"&&(u.value||d.value))return l(v.value,r.slots);const w={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},A=be(i,Va),g=(0,t.h)(o,{...r.attrs,...A,disabled:d.value,readonly:u.value,value:v.value,"onUpdate:modelValue":S,onAdd:f,onReduce:m},w),b=[];b.push(g);const T={default:()=>b};T.label=r.slots.default,T.fixedPreTip=r.slots.fixedPreTip,T.fixedTip=r.slots.fixedTip;const E={...be(i,ve,ye),ref:c};return i.prop&&(E.prop=`${i.prop}_item`),E["content-class"]=k.value,a(E,T)}}}}var{componentName:rh,create:ih,scope:sh}=ee("input-number-item"),ch=ih(oh(rh,sh,Ie,Me,yl)),Ea=ch,uh={...sa,...ca,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function dh(e,n,a,l){return{props:uh,emits:["update:modelValue","change"],setup(o,{emit:i,slots:r}){const c=e,s=(0,t.computed)(()=>{const k=[`${c}`];return o.direction==="vertical"?k.push("vertical-tabbar"):k.push("horizontal-tabbar"),k}),d=(0,t.computed)(()=>{const k={};if(o.width){const v=me(o.width);v&&(k.width=v)}if(o.height){const v=me(o.height);v&&(k.height=v)}return k}),h=(0,t.computed)(()=>[`${c}__bar`]),u=(0,t.computed)(()=>[`${c}__container`]),p=(0,t.ref)(o.modelValue);(0,t.watch)(()=>o.modelValue,k=>{p.value!==k&&(p.value=k)});const y=k=>{i("change",k)},C=k=>{p.value!==k&&(p.value=k,i("update:modelValue",k))};return()=>{const{getChildren:k}=Ln(r.default),v=k(),S=[];if(Array.isArray(o.data))S.push(...o.data);else for(let T=0;T<v.length;T++){const E=v[T].props??{},B={text:E.label??"",value:E["pane-key"]??E.paneKey??""};S.push(B)}const f={};for(let T in r)T!=="default"&&(f[T]=r[T]);const m=be(o,sa);Object.assign(m,{data:S,class:h.value,modelValue:p.value,direction:o.direction,onChange:y,"onUpdate:modelValue":C});const w=(0,t.h)(a,m,f),A={default:()=>v},g=be(o,ca);Object.assign(g,{class:u.value,modelValue:p.value,onChange:y,"onUpdate:modelValue":C});const b=(0,t.h)(l,g,A);return(0,t.h)("view",{class:s.value,style:d.value},[w,b])}}}}var{create:fh,componentName:mh,scope:ph}=ee("tabs-frame"),hh=fh(dh(mh,ph,Yt,Xt)),$a=hh,gh={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 yh(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Mi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ri(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function bh(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Da(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function zi(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Fi(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Ia(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var vh=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[a]);const l=tt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await Reflect.apply(l,null,[n,a]))}};function Sh(){return new vh(it())}function kh(e,n,a,l){return{props:{...gh},emits:["update:modelValue","change","loaded-data","click"],setup(o,{slots:i,emit:r}){const c=e,s=Sh(),d=(0,t.ref)([]),h=(0,t.computed)(()=>d.value.filter(W=>bh(o,W)!==!1)),u=(0,t.ref)(-1),p=()=>{const W=o.modelValue,Z=h.value.findIndex(J=>Mi(o,J)===W);u.value!==Z&&(u.value=Z,o.scroll&&_(Z,!1))};(0,t.watch)([()=>o.modelValue,h],()=>{p()});const y=W=>u.value===W,C=W=>{if(W<0&&W>=h.value.length)return!1;const Z=h.value[W],J=(Ia(o,Z,W)??{}).status??Da(o,Z);return y(W)||J},k=(0,t.computed)(()=>{const W={[c]:!0};return o.mode?W[`is-${o.mode}`]=!0:o.direction&&(W[`is-${o.direction}`]=!0),o.scroll&&(W["is-scroll"]=!0),W}),v=(0,t.computed)(()=>({})),S=(W,Z,J,j,ne)=>{const H={[`${c}__step`]:!0};return ne&&(H[`${ne}`]=!0),H[`${f.value}`]=!0,j&&(H["is-doit"]=!0),W===u.value?H["is-active"]=!0:Z==="done"?H["is-done"]=!0:Z==="error"?H["is-error"]=!0:Z==="half"?H["is-half"]=!0:J?H["is-disabled"]=!0:H["is-normal"]=!0,H},f=(0,t.computed)(()=>{let W=o.align;if(!W){if(o.mode==="simple")return"start";o.direction==="vertical"?W="start":W="center"}return W}),m=(W,Z={})=>{const J={...Z};if(f.value==="start"&&W===h.value.length-1)J.flex="0 0 auto";else if(o.step){const j=typeof o.step=="number"||yn(o.step)?me(o.step):o.step;o.direction==="vertical"?J.height=j:J.width=j}else J.flex="1 1 100%";return J},w=(W,Z)=>{let J={};if(Z<h.value.length-1){const j=Z+1;C(Z)&&C(j)?o.direction==="vertical"?J.height="100%":J.width="100%":J.opacity="0"}return J},A=W=>h.value.length-1===W,g=(W,Z)=>{if(o.clickNavigatePolicy==="disabled"||(o.clickNavigatePolicy==="only-back"||o.clickNavigatePolicy==="only-back-reset")&&Z>u.value||u.value===Z)return;const J=u.value,j=Z;u.value=Z,o.scroll&&_(Z,!1);const ne=Mi(o,W);r("update:modelValue",ne),r("change",ne,{fromIndex:J,currentIndex:j,item:W,items:h.value,clickNavigatePolicy:o.clickNavigatePolicy})},b=(0,t.ref)(!0),T=async(W,Z)=>{try{const J=await s.load("stesbar",W,Z);Array.isArray(J)&&(d.value=J),b.value=!1}catch(J){console.error("[FoxUI] Load StepsBar Data Fail",J),d.value=[]}setTimeout(()=>{r("loaded-data")},250)};(0,t.watch)([()=>o.data,()=>o.params],async([W,Z])=>{W&&T(W,Z)},{immediate:!0});const E=(W,Z,J,j,ne,H)=>{const F=[];let L=null;if(!H)if(i.icon)L=i.icon({item:W,index:Z,status:j});else if(j==="done"){const G={};o.iconSize&&(G.width=o.iconSize,G.height=o.iconSize),L=(0,t.h)(o.icon??a,G)}else L=(0,t.h)("span",{},[J??`${Z+1}`]);return L&&F.push(L),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{r("click",{item:W,index:Z}),!ne&&g(W,Z)}},F)},B=(W,Z,J)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:w(W,Z)})]),N=()=>{let W=null;if(i.markIcon)W=i.markIcon();else{const Z={};o.iconSize&&(Z.width=o.markIconSize,Z.height=o.markIconSize),W=(0,t.h)(o.markIcon??l,Z)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[W])},R=(W,Z,J,j,ne,H)=>{const F=[];if(!A(Z)){const G=B(W,Z,j);F.push(G)}const L=E(W,Z,J,j,ne,H);return F.push(L),(0,t.h)("view",{class:"fox-steps-bar__head"},F)},U=(W,Z,J,j)=>{let ne=null;return i.main?ne=i.main({item:W,index:Z,status:J}):ne=yh(o,W),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{r("click",{item:W,index:Z}),!j&&g(W,Z)}},[ne])},$=(W,Z,J)=>{let j=null;return i.sub?(j=i.sub({item:W,index:Z,status:J}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[j])):null},x=(W,Z)=>{const J=Ia(o,W,Z)??{},j=J.status??Da(o,W);let ne=Ri(o,W);J.disabled===!0&&(ne=!0),o.disabled===!0&&(ne=!0);let H=zi(o,W);J.doit===!0&&(H=!0);const F=J.label??Fi(o,W),L=[],G=E(W,Z,F,j,ne,H);G&&L.push(G);const Q=U(W,Z,j,ne);if(Q&&L.push(Q),!A(Z)){const K=B(W,Z,j);K&&L.push(K)}const le=(0,t.h)("view",{class:"fox-steps-bar__head"},L),D=J.class,q=J.style??{};return(0,t.h)("view",{ref:P(Z),class:S(Z,j,ne,H,D),style:m(Z,q)},[le])},M=(W,Z)=>{const J=Ia(o,W,Z)??{},j=J.status??Da(o,W);let ne=Ri(o,W);J.disabled===!0&&(ne=!0),o.disabled===!0&&(ne=!0);let H=zi(o,W);J.doit===!0&&(H=!0);const F=J.label??Fi(o,W),L=[],G=o.layout;for(let D of G)if(D==="head"){const q=R(W,Z,F,j,ne,H);L.push(q)}else if(D==="main"){const q=U(W,Z,j,ne);L.push(q)}else if(D==="sub"){const q=$(W,Z,j);L.push(q)}else if(D==="mark"){const q=N();L.push(q)}const Q=J.class,le=J.style??{};return(0,t.h)("view",{ref:P(Z),class:S(Z,j,ne,H,Q),style:m(Z,le)},L)},O=(0,t.ref)(),z=(0,t.ref)([]),X=(W,Z)=>{z.value[Z]=W},P=W=>Z=>{X(Z,W)},_=(W,Z)=>{const J=O.value,j=z.value;if(!J||!j||!j[W])return;const ne=j[W];let H=0;o.direction==="vertical"?H=ne.offsetTop-(J.offsetHeight-ne.offsetHeight)/2:H=ne.offsetLeft-(J.offsetWidth-ne.offsetWidth)/2,te(J,H,Z?0:.3,o.direction)},te=(W,Z,J,j)=>{let ne=0;const H=j==="horizontal"?W.scrollLeft:W.scrollTop,F=J===0?1:Math.round(J*1e3/16);function L(){j==="horizontal"?W.scrollLeft+=(Z-H)/F:W.scrollTop+=(Z-H)/F,++ne<F&&Ue(L)}L()};return()=>{let W=[];if(o.mode==="simple")for(let J=0;J<h.value.length;J++){const j=h.value[J],ne=x(j,J);W.push(ne)}else for(let J=0;J<h.value.length;J++){const j=h.value[J],ne=M(j,J);W.push(ne)}const Z={ref:O,class:k.value,style:v.value};return W.length===0&&typeof i.default=="function"&&(W=i.default()),(0,t.h)("view",Z,W)}}}}var{componentName:wh,create:Ch,scope:Nh}=ee("steps-bar"),Ah=Ch(kh(wh,Nh,oe.Checklist,oe.ArrowRight)),qa=Ah;function Bh(e){e.stopPropagation()}var Th=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=Xn()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=Qn(),a=(l,o,i,r)=>{this.updateMove({x:l,y:o})};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),Bh(l),a(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{a(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 Vh(e,n){return new Th(e,n)}var Eh={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]}},$h=(e,n,a,l=!1)=>({props:{...Eh},emits:["click"],setup(o,{slots:i,emit:r}){let c=-1,s=-1;const d=(0,t.reactive)({top:o.top,right:o.right,bottom:o.bottom,left:o.left,width:0,height:0}),h=(0,t.computed)(()=>{const A=[`${e}`];return o.customClass&&A.push(o.customClass),A}),u=A=>typeof A=="string"&&!yn(A)?A:`${A}px`,p=(0,t.computed)(()=>{const A={};return fe(d.top)||(A.top=u(d.top)),fe(d.right)||(A.right=u(d.right)),fe(d.bottom)||(A.bottom=u(d.bottom)),fe(d.left)||(A.left=u(d.left)),fe(o.width)||(A.width=u(o.width)),fe(o.height)||(A.height=u(o.height)),fe(o.color)||(A.color=o.color),fe(o.background)||(A.background=o.background),fe(o.borderRadius)||(A["border-radius"]=o.borderRadius),fe(o.zIndex)||(A["z-index"]=o.zIndex),A}),y=(0,t.computed)(()=>({[`${e}__icon`]:!0})),C=()=>{r("click")},k=(0,t.ref)(null),v=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},S={x:0,y:0},w=Vh(A=>{if(!k.value)return;const g=k.value;v(),d.left=g.offsetLeft,d.top=g.offsetTop,g.style.left=`${d.left}px`,g.style.top=`${d.top}px`,g.style.right=null,g.style.bottom=null,S.x=d.left,S.y=d.top,d.width=g.offsetWidth,d.height=g.offsetHeight,c=document.documentElement.clientWidth||document.body.clientWidth,s=document.documentElement.clientHeight||document.body.clientHeight},A=>{if(!k.value)return;const g=k.value;v();let b=S.x+A.x;b<0&&(b=0),b>c-d.width&&(b=c-d.width);let T=S.y+A.y;T<0&&(T=0),T>s-d.height&&(T=s-d.height),d.left=b,d.top=T,g.style.left=`${b}px`,g.style.top=`${T}px`});return(0,t.onMounted)(()=>{if(o.draggable&&k.value){const A=[k.value];w.open(A)}}),(0,t.onBeforeUnmount)(()=>{o.draggable&&k.value&&w.close()}),()=>{let A=[];const g=typeof i.default=="function"?i.default():[];if(g&&g.length>0)A=g;else{const b=(0,t.h)(a,{class:y.value});A.push(b)}return(0,t.h)("view",{ref:b=>{k.value=b},class:h.value,style:p.value,onClick:C},A)}}}),{componentName:Dh,create:Ih,scope:qh}=ee("floating-button"),Ph=Ih($h(Dh,qh,oe.Uploader,!1)),Pa=Ph,xh={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 Mh(e,n,a){return{props:{...xh},emits:["click","update:modelValue"],setup(l,{emit:o,slots:i}){const{toLocaleRefs:r}=(0,ge.useFoxI18n)(n),c=r(l,["collapseText","expandText"]),s=(0,t.computed)(()=>{const C={[`${e}`]:!0};return l.disabled?C[`${e}--disabled`]=!0:C[`${e}--${l.type}`]=!0,C}),d=xe(l,"modelValue"),h=(0,t.computed)(()=>d.value?c.expandText.value??"":c.collapseText.value??""),u=(0,t.computed)(()=>({[`${e}__text`]:!0})),p=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),y=()=>{o("update:modelValue",!d.value)};return()=>{const C=[];if(h.value){const S=(0,t.h)("span",{class:u.value},[h.value]);C.push(S)}const k={class:p.value},v=(i.icon&&i.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(a);if(v){const S=(0,t.h)("view",k,[v]);C.push(S)}return l.textPosition==="right"&&C.reverse(),(0,t.h)("view",{class:s.value,onClick:y},C)}}}}var{componentName:Rh,create:zh,scope:Fh}=ee("more-button"),Lh=zh(Mh(Rh,Fh,oe.RectUp)),xa=Lh,Oh={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}},Kh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Uh(e,n,a){return{props:{...Oh},emits:["update:visible"],setup(l,{attrs:o,slots:i,emit:r}){const{toLocaleRefs:c}=(0,ge.useFoxI18n)(n),s=c(l,["confirmText","cancelText"]),d=e,h=(0,t.ref)(l.visible),u=A=>{h.value=A,r("update:visible",A)};(0,t.watch)(()=>l.visible,A=>{h.value!==A&&(h.value=A)});const p=A=>{if(typeof l.unmount=="function")try{l.unmount()}catch(g){console.error(g)}if(typeof l.callback=="function")try{l.callback(A)}catch(g){console.error(g)}},y=()=>{p("confirm")},C=()=>{p("cancel")},k=()=>{l.closeOnClickOverlay!==!1&&p("close")},v=(A,g)=>Kh(A)?(g.src=A,(0,t.h)("img",g)):typeof A=="string"?(Array.isArray(g.class)?g.class.push(A):g.class&&typeof g.class=="object"?g[`${A}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${A}`:g.class=A,(0,t.h)(l.tag,g)):(0,t.h)(A,g),S=()=>{const A=[];if(l.icon){const g={class:[`${d}__header-icon`]},b=v(l.icon,g);A.push(b)}if(l.title){const g=(0,t.h)("view",{class:`${d}__header-title`},[l.title]);A.push(g)}if(l.showClose&&l.closeIcon){const g={class:[`${d}__header-close-icon`],onClick:k},b=v(l.closeIcon,g);A.push(b)}return(0,t.h)("view",{class:[`${d}__header`]},A)},f=(A,g)=>{const b=[];if(g){const T=(0,t.h)("view",{class:`${d}__group-title`},[g]);b.push(T)}if(A){const T=[];Array.isArray(A)||(A=[A]);for(let E of A){const B=(0,t.h)("view",{class:`${d}__group-row`,innerHTML:E});T.push(B)}if(T.length>0){const E=(0,t.h)("view",{class:`${d}__group-rows`},T);b.push(E)}}return b.length===0?null:(0,t.h)("view",{class:`${d}__group`},b)},m=()=>{const A=[];if(typeof l.message=="string")A.push(l.message);else if(Array.isArray(l.message))for(let g of l.message)if(typeof g=="string"){const b=f(g);A.push(b)}else{const b=f(g.content,g.title);A.push(b)}else if(typeof l.message=="function"){const g=l.message();A.push(g)}else{const g=l.message;A.push(g)}return(0,t.h)("view",{class:`${d}__body`},A)},w=()=>{const A=[];if(l.showCancelButton){const g={class:[`${d}__footer-button`],style:{},onClick:C};l.cancelButtonClass&&g.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(g.style,l.cancleButtonStyle);const b=(0,t.h)("button",g,[l.cancelButtonText??s.cancelText.value]);A.push(b)}if(l.showConfirmButton){const g={class:[`${d}__footer-button`],style:{},onClick:y};l.confirmButtonClass&&g.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(g.style,l.confirmButtonStyle);const b=(0,t.h)("button",g,[l.confirmButtonText??s.confirmText.value]);A.push(b)}return A.length===0?null:(0,t.h)("view",{class:`${d}__footer`},A)};return()=>{const A=[],g=S();g&&A.push(g);const b=m();b&&A.push(b);const T=w();T&&A.push(T);const E=(0,t.h)("view",{class:{[`${d}`]:!0,[`${d}--${l.type||"info"}`]:!0}},A),B=[`${d}__popup`];l.popClass&&B.push(l.popClass);const N={};return l.width&&(N.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(N.height=typeof l.height=="number"?`${l.height}px`:l.height),(0,t.h)(a,{popClass:B.join(" "),style:N,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":u,position:l.position,round:"round",onClickOverlay:k,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>E})}}}}var{componentName:Hh,create:jh,scope:Wh}=ee("messagebox"),Yh=jh(Uh(Hh,Wh,we)),Xh=Yh,Qh="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",Gh="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",_h="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",Zh="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",Jh=new Kn,eg={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},tg=e=>{let n=document.body,a=e.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):a&&(n=e.teleport));const l=document.createElement("view"),o=`messagebox-${Jh.get()}`;l.id=o,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const r=document.querySelector(`#${o}`);r&&r.parentNode?.removeChild(r)};const i=(0,t.createVNode)(Xh,e);n.appendChild(l),(0,t.render)(i,l)},dt={show:(e,n,a,l)=>{const o={...eg};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(o,n):(n&&(o.message=n),a&&typeof a=="object"?Object.assign(o,a):(typeof a=="string"&&(o.title=a),l&&typeof l=="object"?Object.assign(o,l):typeof l=="string"&&(o.type=l)));const i=o.type??"info";return o.icon||(i==="success"?o.icon=_h:i==="warning"?o.icon=Zh:i==="error"?o.icon=Qh:o.icon=Gh),e==="alert"?(o.showCancelButton=!1,o.showConfirmButton=!0):e==="confirm"&&(o.showCancelButton=!0,o.showConfirmButton=!0),o.showClose&&!o.closeIcon&&(o.closeIcon=oe.Close),new Promise((r,c)=>{const s=o.callback;o.callback=d=>{if(typeof s=="function")try{s(d)}catch(h){console.error(h)}r({action:d})},tg(o)})},alert:(e,n,a)=>dt.show("alert",e,n,a),confirm:(e,n,a)=>dt.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=dt.alert,e.config.globalProperties.$confirm=dt.confirm}},ng=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let o=!0,i=!0;for(let r in n)r==="bubbles"?o=!!n[r]:r==="cancelable"?i=!!n[r]:l[r]=n[r];l.initEvent(e,o,i),(a??document).dispatchEvent(l)},lg=new Kn,ag=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),og=e=>`${e}-${lg.get()}`,rg=Symbol.for("InnerPageScopeKey"),ig=Symbol.for("PageWrapperKey"),sg="FoxLeave",cg="FoxLeaveEnd",ug={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 dg(e,n,a,l){return{props:{...lt,...ug},emits:["update:visible"],setup(o,{attrs:i,slots:r,emit:c}){(0,t.provide)(rg,!0);const s={};(0,t.provide)(ig,s);const d=g=>(typeof s.beforeClose=="function"&&s.beforeClose(),!1),h=()=>{d("close")},u=e,p=g=>{y.value=g,c("update:visible",g)},y=(0,t.ref)(!1),C=(g,b)=>ag(g)?(b.src=g,(0,t.h)("img",b)):typeof g=="string"?(Array.isArray(b.class)?b.class.push(g):b.class&&typeof b.class=="object"?b[`${g}`]=!0:typeof b.class=="string"?b.class=`${b.class}, ${g}`:b.class=g,(0,t.h)(o.tag,b)):(0,t.h)(g,b),k=()=>{if(!o.showHeader)return null;const g=[];if(r.header){const b=r.header();g.push(b)}else if(o.title){const b=(0,t.h)("view",{class:`${u}__header-title`},[o.title]);g.push(b)}return g.length===0?null:(0,t.h)("view",{class:[`${u}__header`]},g)},v=()=>{if(!o.showClose)return null;const g={class:[`${u}__close-icon`],onClick:h};return C(o.closeIcon??l,g)};let S=null;const f=g=>{ng(cg,{},S)},m=og(e),w=()=>{p(!0)},A=()=>{if(!S)return;const g=S.querySelector(".fox-overlay");g&&(g.classList.add("overlay-fade-leave-active"),g.classList.add("overlay-fade-leave-to"));const b=S.querySelector(".fox-popup");b&&(b.classList.add(`fox-popup-slide-${o.position}-leave-active`),b.classList.add(`fox-popup-slide-${o.position}-leave-to`),b.addEventListener("animationend",f,{once:!0}),b.addEventListener("transitionend",f,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{S=document.querySelector(`.${m}`),S?.addEventListener(sg,A,{once:!0}),w()}),()=>{const g=[],b=k();b&&g.push(b);const T=v();T&&g.push(T);const E=r.default?r.default():[];Reflect.apply([].push,g,E);const B={[`${u}`]:!0};o.mode&&(B[`${u}--${o.mode}`]=!0);const N=(0,t.h)("view",{class:B},g),R=[`${u}__popup`,m];o.popClass&&R.push(o.popClass),o.position&&R.push(`${u}__popup--${o.position}`);const U={};o.width&&(U.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(U.height=typeof o.height=="number"?`${o.height}px`:o.height);const $=(0,t.h)(a,{...be(o,lt),popClass:R.join(" "),style:U,visible:y.value,teleportDisable:!0,closeable:!1,position:o.position,closeOnClickOverlay:o.closeOnClickOverlay,onClickOverlay:h,"onUpdate:visible":p},{default:()=>N});return(0,t.h)("div",{class:[`${u}__root`,m]},[$])}}}}var{componentName:fg,create:mg,scope:pg}=ee("popup-wrapper"),hg=mg(dg(fg,pg,we,oe.Close)),Ma=hg,gg={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function yg(e,n,a,l){return{props:{...gg},emits:["update:visible"],setup(o,{emit:i,slots:r}){const c=s=>{i("update:visible",s)};return()=>{const s=[`${e}__popup`];o.popClass&&s.push(o.popClass);const d=(0,t.h)(a,{popClass:s,style:o.popStyle??{},position:"top",zIndex:o.zIndex,closeOnClickOverlay:o.closeOnClickOverlay,teleportDisable:!0,visible:o.visible,"onUpdate:visible":c},r);return(0,t.h)("view",{class:`${e}`},[d])}}}}var{componentName:bg,create:vg,scope:Sg}=ee("dropdown"),kg=vg(yg(bg,Sg,we,!1)),Ra=kg,wg={name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean,Object],required:!1}};function Cg(e,n){return{inheritAttrs:!1,props:wg,setup(a,l){const{exposeApi:o}=wr({context:l,props:()=>a.config},a.name);return Ee(a.innerPageScope)||Ar(a.innerPageScope),Ee(a.abstractPageScope)||Br(a.abstractPageScope),o(),()=>typeof l.slots.default=="function"?l.slots.default():null}}}var{componentName:Ng,create:Ag,scope:Bg}=ee("domain-provider"),Tg=Ag(Cg(Ng,Bg)),za=Tg,Vg={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 Eg(e,n){return{inheritAttrs:!1,props:Vg,emits:["change"],setup(a,{slots:l,emit:o}){if(Xe&&window.IntersectionObserver){const i=new WeakMap;let r=new Map;const c=(p,y)=>{if(h===null){r.set(p,{visible:null,callback:y});return}i.has(p)&&h.unobserve(p),i.set(p,{visible:null,callback:y}),h.observe(p)},s=p=>{if(h===null){r.delete(p);return}i.has(p)&&(i.delete(p),h.unobserve(p))};let d=a.initialVisibleObserverSize;hc({acquire:()=>{if(a.loadPolicy==="always")return!0;const p=d>0;return d--,p},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:c,unobserve:s});let h=null;const u=(p,y,C)=>{h=new IntersectionObserver(k=>{if(o("change",k),a.loadPolicy!=="always")for(let v of k){let S=!1;v.intersectionRatio>0&&(S=!0);const f=i.get(v.target);if(f)try{if(a.loadPolicy==="lazy"&&!S&&f.visible!==null)return;f.visible=S,f.callback(S)}catch(m){console.error(m)}}},{root:p,rootMargin:y,threshold:C}),r.forEach((k,v)=>{i.set(v,k),h?.observe(v)}),r.clear()};(0,t.watch)([()=>a.root,()=>a.disabled],([p,y])=>{if(y||!p||h)return;let C=null;typeof p=="string"?C=document.querySelector(p):C=p,C&&u(C,a.rootMargin,a.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:$g,create:Dg,scope:Ig}=ee("rolling-provider"),qg=Dg(Eg($g,Ig)),Fa=qg,{componentName:Pg,create:xg}=ee("cell"),Mg=xg({components:{Right:oe.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=(0,t.computed)(()=>{const i=Pg;return{[i]:!0,[`${i}--clickable`]:e.isLink,[`${i}--center`]:e.center,[`${i}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:me(e.roundRadius)}));return{handleClick:i=>{n("click",i)},classes:a,baseStyle:l}}}),Rg={key:0,class:"fox-cell__icon"},zg={key:1,class:"fox-cell__title"},Fg={class:"title"},Lg={class:"fox-cell__title-desc"};function Og(e,n,a,l,o,i){const r=(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]=(...c)=>e.handleClick&&e.handleClick(...c))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Rg,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",zg,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",Fg,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",Lg,(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)(r,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var La=ie(Mg,[["render",Og]]),Kg={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function Ug(e,n){return{props:{...Kg},setup(a,{attrs:l,slots:o}){const i=(0,t.computed)(()=>{const r={};return a.color&&(r.color=a.color),a.size&&(r.fontSize=me(a.size)),r});return()=>{const r={style:i.value,class:`${e}-wrap`,...l};return(0,t.h)(a.tag??"li",r,o)}}}}var{componentName:Hg,create:jg,scope:Wg}=ee("icon"),Yg=jg(Ug(Hg,Wg)),Oa=Yg,{componentName:Xg,create:Qg}=ee("cell-group"),Gg=Qg({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[Xg]:!0}))}}}),_g={key:1,class:"fox-cell-group__title"},Zg={key:3,class:"fox-cell-group__desc"},Jg={class:"fox-cell-group__wrap"};function ey(e,n,a,l,o,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",_g,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.$slots.desc?(0,t.renderSlot)(e.$slots,"desc",{key:2}):e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Zg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Jg,[(0,t.renderSlot)(e.$slots,"default")])],2)}var Ka=ie(Gg,[["render",ey]]),{componentName:ty,create:ny}=ee("image"),ly=ny({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:oe.Image,ImageError:oe.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const y=ty;return{[y]:!0,[`${y}-round`]:e.round}}),o=(0,t.ref)(null),i=(0,t.ref)(!1),r=(0,t.ref)(null),c=()=>{o.value=new IntersectionObserver(y=>{y.forEach(C=>{C.isIntersecting&&(i.value=!0,o.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),r.value&&o.value.observe(r.value)};(0,t.onMounted)(()=>{e.lazyLoad&&c()}),(0,t.onBeforeUnmount)(()=>{o.value&&o.value.disconnect()});const s=(0,t.computed)(()=>{let y={};return e.width&&(y.width=me(e.width)),e.height&&(y.height=me(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=me(e.radius)),y}),d=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,y=>{a.isError=!1,a.loading=!0});const h=()=>{a.loading=!1,n("load")},u=()=>{a.isError=!0,a.loading=!1,n("error")},p=y=>{n("click",y)};return{...(0,t.toRefs)(a),imageClick:p,classes:l,styles:d,stylebox:s,error:u,load:h,show:i,imgRef:r}}}),ay=["src","date-src","alt"],oy={key:0,class:"fox-img-loading"},ry={key:1,class:"fox-img-error"};function iy(e,n,a,l,o,i){const r=(0,t.resolveComponent)("Image"),c=(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,ay),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",oy,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(r,{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",ry,[e.slotError?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,width:"16px",height:"20px",name:"imageError"})),(0,t.renderSlot)(e.$slots,"error")])):(0,t.createCommentVNode)("",!0)],6)}var Ua=ie(ly,[["render",iy]]),{create:sy}=ee("layout"),cy=sy({}),Ha=cy,{componentName:uy,create:dy}=ee("col"),fy=dy({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=uy,a=(0,t.inject)("gutter");return{classes:(0,t.computed)(()=>({[n]:!0,[`${n}-gutter`]:a,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),style:(0,t.computed)(()=>({paddingLeft:a/2+"px",paddingRight:a/2+"px"}))}}});function my(e,n,a,l,o,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 ja=ie(fy,[["render",my]]),{componentName:py,create:hy}=ee("row"),gy=hy({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=py;(0,t.provide)("gutter",e.gutter);const a=(l,o)=>l?o?`fox-row-${l}-${o}`:"":`fox-row-${o}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
|
|
1
|
+
(function(V,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("@fox-js/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","@fox-js/icons-vue","@fox-js/i18n"],t):(V=typeof globalThis<"u"?globalThis:V||self,t(V.FoxUI={},V.Vue,V.FoxValidator,V.FoxIconsVue,V.FoxI18n))})(this,function(V,t,ot,oe,ge){Object.defineProperties(V,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var es=Object.create,Go=Object.defineProperty,ts=Object.getOwnPropertyDescriptor,ns=Object.getOwnPropertyNames,ls=Object.getPrototypeOf,as=Object.prototype.hasOwnProperty,Oe=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),os=(e,n,a,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var r=ns(n),i=0,o=r.length,c;i<o;i++)c=r[i],!as.call(e,c)&&c!==a&&Go(e,c,{get:(s=>n[s]).bind(null,c),enumerable:!(l=ts(n,c))||l.enumerable});return e},Ke=(e,n,a)=>(a=e!=null?es(ls(e)):{},os(n||!e||!e.__esModule?Go(a,"default",{value:e,enumerable:!0}):a,e)),dn=window,rs=typeof window<"u";function is(){return typeof dn<"u"?dn.requestAnimationFrame||dn.webkitRequestAnimationFrame||function(e){dn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function _o(e){rs?cancelAnimationFrame(e):clearTimeout(e)}var Ye=is();function fn(e,n="0"){let a=0,l=-1;e[0]=="-"&&(a++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,l=2,n=n.substring(1),n.length),e=Ae(e),n=Ae(n),[e,n]=kl(Ae(e),Ae(n)),a==1&&(l==1?e=Sl(e):n=Sl(n));let r=Zo(e,n);return a?a==2?"-"+Ae(r):e.length<r.length?Ae(r.substring(1)):"-"+Ae(Sl(r)):Ae(r)}function Sl(e){let n="",a=e.length,l=e.split(".")[1],r=l?l.length:0;for(let o=0;o<a;o++)e[o]>="0"&&e[o]<="9"?n+=9-parseInt(e[o]):n+=e[o];let i=r>0?"0."+new Array(r).join("0")+"1":"1";return Zo(n,i)}function Ae(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 kl(e,n){let a=e.split("."),l=n.split("."),r=a[0].length,i=l[0].length;return r>i?l[0]=new Array(Math.abs(r-i)+1).join("0")+(l[0]?l[0]:""):a[0]=new Array(Math.abs(r-i)+1).join("0")+(a[0]?a[0]:""),r=a[1]?a[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"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(r-i)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Zo(e,n){[e,n]=kl(e,n);let a="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){a="."+a;continue}let i=parseInt(e[r])+parseInt(n[r])+l;a=i%10+a,l=Math.floor(i/10)}return l?l.toString()+a:a}var Ne=(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 qt(e,n=0,a=Ne.HALF_EVEN){if(a===Ne.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],o=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)+o,s=qt(e,0,a),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return i.length,Jo(r[1],i,l,a)?(l?"-":"")+wl(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");o=r[1].substring(0,n);let c=r[1].substring(n);return c&&Jo(c,o,l,a)&&(o=wl(o),o.length>n)?(l?"-":"")+wl(i,parseInt(o[0]))+"."+o.substring(1):(l?"-":"")+i+"."+o}function Jo(e,n,a,l){if(!e||e===new Array(e.length+1).join("0")||l===Ne.DOWN||!a&&l===Ne.FLOOR||a&&l===Ne.CEILING)return!1;if(l===Ne.UP||a&&l===Ne.FLOOR||!a&&l===Ne.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 Ne.HALF_DOWN:return!1;case Ne.HALF_UP:return!0;case Ne.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function wl(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,l="";for(let r=a;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 Cl(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=Pt(e),n=Pt(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=Pt(e.replace(".","")),n=Pt(n.replace(".","")),e.length<n.length){let u=e;e=n,n=u}if(n=="0")return"0";let o=n.length,c=0,s=[],d=o-1,h="";for(let u=0;u<o;u++)s[u]=e.length-1;for(let u=0;u<2*e.length;u++){let p=0;for(let y=n.length-1;y>=d&&y>=0;y--)s[y]>-1&&s[y]<e.length&&(p+=parseInt(e[s[y]--])*parseInt(n[y]));p+=c,c=Math.floor(p/10),h=p%10+h,d--}return h=Pt(ss(h,i)),a==1&&(h="-"+h),h}function ss(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 Pt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Nl(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let 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=Ae(n.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ae(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=Ae(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let h=e.length-d+r;e=Ae(e.substring(0,h)+"."+e.substring(h))}else r==d&&(e=Ae(e.replace(".","")))}let i=0,o=n.length,c="",s=e.indexOf(".")>-1&&e.indexOf(".")<o?e.substring(0,o+1):e.substring(0,o);if(e=e.indexOf(".")>-1&&e.indexOf(".")<o?e.substring(o+1):e.substring(o),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),o>s.length&&(d+=o-s.length,s=s+new Array(o-s.length+1).join("0")),i=d,c="0."+new Array(d).join("0")}for(a=a+2;i<=a;){let d=0;for(;parseInt(s)>=parseInt(n);)s=fn(s,"-"+n),d++;c+=d,e?(e[0]=="."&&(c+=".",i++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(i||(c+="."),i++,s=s+"0")}return(l==1?"-":"")+Ae(qt(c,a-2))}function Al(e,n){return e=e.toString(),n=n.toString(),n=Bl(n),fn(e,n)}function Bl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function er(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),tr(e),tr(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Al(e,Cl(n,qt(Nl(e,n),0,Ne.FLOOR)));return a+l}function tr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function nr(e,n){let a=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),a=!0),[e,n]=kl(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]?a?-1:1:a?1:-1;return 0}var xt=class pe{value;static RoundingModes=Ne;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,l]=n.split(/[eE]/);a=Ae(a);let r="";a[0]=="-"&&(r="-",a=a.substring(1)),a.indexOf(".")>=0?(l=parseInt(l)+a.indexOf("."),a=a.replace(".","")):l=parseInt(l)+a.length,a.length<l?n=r+a+new Array(l-a.length+1).join("0"):a.length>=l&&l>0?n=r+Ae(a.substring(0,l))+(a.length>l?"."+a.substring(l):""):n=r+"0."+new Array(-l+1).join("0")+a}return n}constructor(n="0"){this.value=pe.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,l){if(!(a||l))a=3,l=",";else if(!(a&&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 o="",c=i;c>0;)c<a?(a=c,c=0):c-=a,o=n.substring(c,c+a)+(c<i-a&&c>=0?l:"")+o;return(r?"-":"")+o+n.substring(i)}getPrettyValue(n,a){return pe.getPrettyValue(this.value,n,a)}static round(n,a=0,l=Ne.HALF_EVEN){if(n=pe.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return qt(n,a,l)}round(n=0,a=Ne.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new pe(qt(this.value,n,a))}static floor(n){return n=pe.validate(n),n.indexOf(".")===-1?n:pe.round(n,0,Ne.FLOOR)}floor(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,Ne.FLOOR)}static ceil(n){return n=pe.validate(n),n.indexOf(".")===-1?n:pe.round(n,0,Ne.CEILING)}ceil(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,Ne.CEILING)}static add(n,a){return n=pe.validate(n),a=pe.validate(a),fn(n,a)}add(n){return new pe(fn(this.value,n.getValue()))}static subtract(n,a){return n=pe.validate(n),a=pe.validate(a),Al(n,a)}subtract(n){return new pe(Al(this.value,n.getValue()))}static multiply(n,a){return n=pe.validate(n),a=pe.validate(a),Cl(n,a)}multiply(n){return new pe(Cl(this.value,n.getValue()))}static divide(n,a,l){return n=pe.validate(n),a=pe.validate(a),Nl(n,a,l)}divide(n,a){return new pe(Nl(this.value,n.getValue(),a))}static modulus(n,a){return n=pe.validate(n),a=pe.validate(a),er(n,a)}modulus(n){return new pe(er(this.value,n.getValue()))}static compareTo(n,a){return n=pe.validate(n),a=pe.validate(a),nr(n,a)}compareTo(n){return nr(this.value,n.getValue())}static negate(n){return n=pe.validate(n),Bl(n)}negate(){return new pe(Bl(this.value))}};function lr(e,n){return xt.multiply(`${e}`,`${n}`)}function Tl(e,n,a=8){return xt.divide(`${e}`,`${n}`,a)}var L2=xt.RoundingModes;function Vl(e,n){return e=`${e}`,n=`${n}`,xt.compareTo(e,n)}function ar(e){return xt.negate(e)}function mn(e,n=-1,a=!1,l=3,r=","){let i=`${e}`;if(i.length==0||i==="-")return"";let o=i.charAt(0);o=="-"?i=i.substring(1):o="";let c=i,s="",d=i.indexOf(".");d!=-1&&(c=i.substring(0,d),s=i.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):a&&n>s.length&&(s=s.padEnd(n,"0")));let h;if(l>0){let u="",p=c.split("").reverse();for(let y=0;y<p.length;y++)u+=p[y]+((y+1)%l==0&&y+1!=p.length?r:"");s.length==0?h=`${o}${u.split("").reverse().join("")}`:h=`${o}${u.split("").reverse().join("")}.${s}`}else s.length==0?h=`${o}${c}`:h=`${o}${c}.${s}`;return h}function or(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let l=n.replace(/[^\d\.-]/g,"");return`${a}${l}`}var Xe=typeof window<"u",Ue=Ye;function Ee(e){return e==null}var pn=Array.isArray,cs=e=>gn(e)==="[object Map]",us=e=>gn(e)==="[object Set]",He=e=>e instanceof Date,hn=e=>typeof e=="function",rr=e=>typeof e=="string",ds=e=>typeof e=="symbol",$e=e=>e!==null&&typeof e=="object",dt=e=>$e(e)&&hn(e.then)&&hn(e.catch),ir=Object.prototype.toString,gn=e=>ir.call(e),fs=e=>gn(e)==="[object Object]",sr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ms(e){return e.__esModule||sr&&e[Symbol.toStringTag]==="Module"}var ps=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ft(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,l=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<l;a++)if(e[a]!==null&&e[a]!==void 0){let i=e[a];for(let o in i){let c=n[o],s=i[o];if(c!==s)if(r===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=c&&Array.isArray(c)?c:[]:d=c&&typeof c=="object"?c:{},n[o]=ft(r,d,s)}else s!==void 0&&(n[o]=s)}}return n}var El=ps?Promise.resolve():null;function hs(e,...n){El!==null?n&&n.length>0?El.then(()=>{e(n)}):El.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 mt(e){let n=Object.prototype.toString.call(e);return e==null?String(e):gs[n]||"object"}function $l(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const a=window.getComputedStyle(n);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!0;n=n.parentElement}return!1}function Dl(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 cr(e){return e&&typeof e=="object"&&"setInterval"in e}function ur(e){let n=!!e&&"length"in e&&e.length,a=mt(e);return a==="function"||cr(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function dr(e,n){let a=+n.length,l=0,r=e.length;for(;l<a;l++)e[r++]=n[l];return e.length=r,e}function ys(e,n=[]){let a=n;return e!=null&&(ur(Object(e))?dr(a,typeof e=="string"?[e]:e):a.push(e)),a}function De(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=mt(e);if(a!==mt(n))return!1;if(a==="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 o=l[i],c=e[o],s=n[o];if(!De(c,s))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],i=n[l];if(!De(r,i))return!1}return!0}return!1}function Il(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var fe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function yn(e){return fe(e)?!1:(e.charAt(0)=="-"&&(e=e.substring(1)),fe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function fr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function mr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function pr(e,n,a){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(a,"")}function ql(e,n=!0,a=!0){n?e=pr(e,".",/\./g):e=e.replace(/\./g,""),a?e=pr(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(a=>{if(De(e,a))return!0}):n.indexOf(e)}function vs(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(l=>{if(De(e,l))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function ke(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function be(e,...n){const a={};return n.forEach(l=>{for(const r in l)a[r]=e[r]}),a}function Qe(e,...n){const a=[];n.forEach(r=>{Reflect.apply([].push,a,Reflect.ownKeys(r))});const l={};for(const r in e)a.includes(r)||(l[r]=e[r]);return l}var Ss=(e,n,a)=>{const l=Object.assign({},e),r=Object.assign({},a);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 Pl(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var rt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},je=(e,n,a)=>Math.min(Math.max(e,n),a);function bn(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function ks(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var We=Symbol.for("BroadcastKey"),hr=class{parent;children=[];callbacks=new Map;exposed=null;name;persistantMessages=new Map;constructor(e,n,a){this.parent=e,this.exposed=n,this.name=a,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(a=>e===a);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,a){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,r={matched:e,action:n,args:a};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 a=!1;return!n.name||n.name==="*"||n.name==="+"||Il(n.name)&&e&&n.name.test(e)?a=!0:typeof n.name=="function"?a=Reflect.apply(n.name,null,[e]):n.name===e&&(a=!0),a}trigger(e,n,a){let l=null;const r=this.callbacks.get(n);typeof r=="function"&&(l=Reflect.apply(r,null,[...a])),this.exposed&&typeof this.exposed[n]=="function"&&(l=Reflect.apply(this.exposed[n],this.exposed,[...a])),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(a=>{if(this.isMatched(this.name,a.matched))try{this.trigger(a.matched,a.action,a.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...a){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,a)){const i=e.resolve,o=e.uniqueId??"",c=(...s)=>{this.deletePersistantMessage(o),typeof i=="function"&&i(...s)};e.resolve=c}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):Il(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 o=Reflect.apply(i,null,[...a]);Ee(o)||r.push(o)}if(this.exposed&&typeof this.exposed[n]=="function"){const o=Reflect.apply(this.exposed[n],this.exposed,[...a]);Ee(o)||r.push(o)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...r),e.messagingPolicy==="Once")return r}return this.children.forEach(i=>{const o=Reflect.apply(i.emit,i,[{...e},n,...a]);Array.isArray(o)&&o.length>0&&Reflect.apply([].push,r,[...o])}),r}emitToChildren(e,n,...a){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,a)){const r=e.resolve,i=e.uniqueId??"",o=(...c)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...c)};e.resolve=o}e.cachePolicy="None"}const l=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...e},n,...a]);Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(e,n){this.callbacks.set(e,n)}};function vn(e,n,a,l){const r=new hr(n,e,a);if(l&&typeof l=="object")for(const i in l)r.on(i,l[i]);return r}function Mt(e){let n=e?.[We];return!n&&(0,t.hasInjectionContext)()&&(n=(0,t.inject)(We,null)),n}var ws=class{error(e,n){const a=Mt(n.exposed);a?a.emit({name:"*"},"setErrorTip",e):n.exposed&&typeof n.exposed.setErrorTip=="function"&&n.exposed.setErrorTip(e)}reset(e){const n=Mt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}success(e){const n=Mt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}decorate(e,n,a){Array.isArray(e)||(e=[e]);const l=Mt(a.exposed),r=n.find(o=>o.required===!0||o.type==="required"&&o.required!==!1),i=e.find(o=>o.required===!0||o.type==="required"&&o.required!==!1);!r&&i?l?l.emit({name:"*"},"setRequired",!0):a.exposed&&typeof a.exposed.setRequired=="function"&&a.exposed.setRequired(!0):r&&!i&&(l?l.emit({name:"*"},"setRequired",!1):a.exposed&&typeof a.exposed.setRequired=="function"&&a.exposed.setRequired(!1),this.reset(a))}getValue(e){return e.props.modelValue??e.exposed.modelValue}},Rt=new ws;function Cs(e){Rt=e}function Ns(e){Rt?Object.assign(Rt,e):Rt=e}function As(e,n){ot.Schema.setValidator(e,n)}function Bs(e){ot.Schema.deleteValidator(e)}var gr=["blur","clear"];function Ts(e){gr=e}function yr(){return gr}var br=["focus","change","setValue"];function Vs(e){br=e}function vr(){return br}function Es(e){ot.Schema.messages(e)}function zt(...e){const n=[];return e.forEach(a=>{a.forEach(l=>{const r=n.findIndex(i=>i.type===l.type);r!==-1&&n.splice(r,1),n.push(l)})}),n}function Sn(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var Ge=Symbol("ValidateSchemaKey"),Sr=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,a){this.parent=e,this.descriptor=n,this.proxy=a,(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=Sn(zt(this.attrRules,this.rules)),n=[],a=this.descriptor.context?.attrs??{};for(let r in a){let i=a[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let c={type:r};i!==null&&typeof i=="object"&&Object.assign(c,i),n.push(c);continue}let o=this.getValidator(r);if(o!==null){let c={type:r,validator:o};n.push(c)}}this.attrRules=Sn(n);const l=zt(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 a=this.descriptor.validateHandler;if(a&&typeof a[e]=="function")return Reflect.apply(a[e],a,[...n]);const l=Rt;return l&&typeof l[e]=="function"?Reflect.apply(l[e],l,[...n]):null}decorate(e,n){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,n,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.execHandler("getValue",this.proxy)}setValidator(e,n,a=!1){a?ot.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?ot.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return ot.Schema.hasValidator(e);{let a=Reflect.has(this.validators,e);return!a&&this.parent!==null&&(a=this.parent.hasValidator(e,!1)),a}}setRule(e){const n=zt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=Sn(e):this.rules=Sn([e]);const a=zt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(a,n)})}clear(){this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=zt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const a={[`${n}`]:e},l=this.getValue(),r={[`${n}`]:l},i=new ot.Schema(a),o=this.proxy??r;return i.validate(r,{context:o}).then(c=>{if(c.pass)this.success();else{let s="error";Array.isArray(c.errors)&&c.errors.length>0&&(s=c.errors[0].message??s,c.errors=[c.errors[0]],c.errors[0].ref=o),this.error(s)}return c}).catch(c=>{const s=c.message??`${c}`;return this.error(s),c})}}return Promise.resolve({pass:!0})}};function kn(e,n,a){a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string";const l={exposed:e,get $el(){return a.templateRefProxy?.$el},get props(){return a.props},get attrs(){return a.context?.attrs}};if(!a.validateHandler&&a.valueName!=="modelValue"){const r=a.valueName;a.validateHandler={getValue(i){return i.props?.[r]??i.exposed[r]}}}return new Sr(n,a,l)}var wn=Symbol.for("EventEmitterKey"),kr=class{register=new Map;emitFn;constructor(e){this.emitFn=e??null}destroy(){this.emitFn=null,this.register.clear()}off(e,n){let a=this.register.get(e);if(a&&Array.isArray(a)){let l=a.findIndex(r=>r===n);l!==-1&&a.splice(l,1)}}on(e,n){let a=this.register.get(e);a||(a=new Array,this.register.set(e,a)),a.push(n)}emit(e,...n){const a=this.register.get(e);a&&a.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 Pe(e,n){let a=null;return function(...l){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...l])},n)}}function Cn(e,n){let a=0;return function(...l){const r=new Date().getTime();r-a<n||(a=r,Reflect.apply(e,null,[...l]))}}function $s(e,n){const a=Pe((l,r)=>{e=l,r()},n);return(0,t.customRef)((l,r)=>({get(){return l(),e},set(i){a(i,r)}}))}function Ds(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function xl(e,n,a,l=0,r=!0){let i=n,o=0;if(r){const s=e();if(o++,s||o>a)return}const c=()=>{const s=e();o++,!(s||o>a)&&(i+=l,setTimeout(c,i))};setTimeout(c,i)}var _e=Symbol("DomainKey"),Ft=Symbol("DataItemsKey"),Nn=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 a in e){const l=e[a];n.length>0&&n.indexOf(l)!==-1||(this._props[a]=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 a=this._props[e];if(a!=null)return a}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 a=this;for(;a!=null;){if(Reflect.has(a._props,e)){const l=a._props[e];n.push(l)}a=a._parent}return n}},Is=new Nn;function pt(){return Is}function Ze(){return(0,t.inject)(_e,null)}var Ml=Symbol("OriginalDateKey");function Rl(e,n,a){const l=(0,t.hasInjectionContext)(),r=l?(0,t.getCurrentScope)():null;let i=l?(0,t.inject)(_e,null):null;i===null&&(i=pt());const o=n;let c=new Nn(o);c.parent=i;const s=w=>{c?.hasData(Ml)||u(w),c?.set("modelValue",w)},d=()=>c?.getForSelf("modelValue")??null,h=()=>c?.getData(Ml)??null,u=w=>{const f={};ft(!0,f,(0,t.toRaw)(w)),c.setData(Ml,f)},p=e.props,y=e.ignorePropKeys;(0,t.isReactive)(p)||typeof p=="function"?(0,t.watch)(p,w=>{c?.merge(w,y),w.modelValue&&u(w.modelValue)},{immediate:!0}):(c.merge(p,y),p.modelValue&&u(p.modelValue));const C=(w,f)=>{c?.set(w,f)},k=w=>c?.getForSelf(w)??null;if(c.componentPublicExposed[_e]=c,(0,t.provide)(_e,c),r!==null){const w=(0,t.inject)(We,null),f=vn(c.componentPublicExposed,w,o,a);c.broadcast=f,c.componentPublicExposed[We]=f,(0,t.provide)(We,f),c.componentPublicExposed.broadcast=(g,b,...T)=>{if(f)return Reflect.apply(f.emit,f,[g,b,...T])};const m=(0,t.inject)(Ge,null),S=kn(c.componentPublicExposed,m,{componentName:"",context:e.context});c.validateSchema=S,c.componentPublicExposed[Ge]=S,(0,t.provide)(Ge,S),c.componentPublicExposed[Ft]=new Map,c.componentPublicExposed.validate=async(g=!0)=>{const b=[];let T=null;const E={};let B=!1;if(g===!0)T={name:"*"},B=!0;else if(Array.isArray(g)&&g.length>0){const N=g;T={name:R=>R?N.indexOf(R)!==-1:!1},B=!0}else if(g!=null&&typeof g=="object"){const N=g;if(N.deep!==!1){if(Object.assign(E,N),Array.isArray(N.include)&&N.include.length>0){const R=N.include;T={name:U=>U?R.indexOf(U)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const R=N.exclude;T={name:U=>U?R.indexOf(U)===-1:!1}}else T={name:"*"};B=!0}}if(B&&T){E.deep=!1;const N=f?.emitToChildren(T,"validate",E);N&&Reflect.apply([].push,b,N)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(N=>{let R=[];return N.forEach(U=>{U.pass===!1&&Array.isArray(U.errors)&&(R=[...R,...U.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})};const A=e.context;c.componentPublicExposed.setNameValidateRules=(g,b=!0,T=!1)=>{if(T===!0){Reflect.ownKeys(g).forEach(E=>{let B=String(E);const N={componentName:"",fieldName:B,pureDataValidate:!0,context:A};if(c){const R=Cr(c,B,N,f,S);c.componentPublicExposed[Ft].set(B,R);const U=g[B];U&&R.validateSchema.setRule(U)}});return}if(b){const E=Reflect.ownKeys(g);f?.emitToChildren({name:B=>E.includes(B),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",g,!1)}},c.componentPublicExposed.clearValidate=(g=!0)=>{let b=null;const T={};let E=!1;if(g===!0)b={name:"*"},E=!0;else if(Array.isArray(g)&&g.length>0){const B=g;b={name:N=>N?B.indexOf(N)!==-1:!1},E=!0}else if(g!=null&&typeof g=="object"){const B=g;if(B.deep!==!1){if(Array.isArray(B.include)&&B.include.length>0){const N=B.include;b={name:R=>R?N.indexOf(R)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const N=B.exclude;b={name:R=>R?N.indexOf(R)===-1:!1}}else b={name:"*"};Object.assign(T,B),E=!0}}E&&b&&(T.deep=!1,f?.emitToChildren(b,"clearValidate",T))},c.componentPublicExposed.resetFields=g=>{const b=d();if(!b)return;const T={};if(ft(!0,T,h()??{}),Array.isArray(g))g.forEach(E=>{b[E]=T[E]});else if(g&&Array.isArray(g.include))(g.include??[]).forEach(E=>{b[E]=T[E]});else if(g&&Array.isArray(g.exclude)){let E=g.exclude??[];Reflect.ownKeys(T).forEach(B=>{E.includes(B)||(b[B]=T[B])})}else Object.assign(b,T);c?.componentPublicExposed?.clearValidate(g)},c.componentPublicExposed.setModelValue=(g,b)=>{if(!b||b===o)s(g);else{const T={name:b,messagingPolicy:"Once"};f?.emitToChildren(T,"setModelValue",g)}},c.componentPublicExposed.getModelValue=()=>d(),c.componentPublicExposed.setDomainProperty=(g,b)=>{C(g,b)},c.componentPublicExposed.getDomainProperty=g=>k(g),setTimeout(function(){f?.pull()},0)}(0,t.onScopeDispose)(function(){c?.validateSchema&&c.validateSchema.destroy(),c?.broadcast&&c?.broadcast?.destroy(),c.componentPublicExposed[Ft]&&c.componentPublicExposed[Ft].clear(),c?.destroy(),c=null});const v=e.context?.expose;return{domain:c,exposeApi:(w={})=>{Object.assign(c.componentPublicExposed,w),v?.(c.componentPublicExposed)}}}function wr(e,n){let a=(0,t.inject)(_e,null);a===null&&(a=pt());let l=new Nn(n);l.parent=a;const r=e.props,i=e.ignorePropKeys;(0,t.isReactive)(r)||typeof r=="function"?(0,t.watch)(r,c=>{l?.merge(c,i)},{immediate:!0}):l.merge(r,i),l.componentPublicExposed[_e]=l,(0,t.provide)(_e,l),(0,t.onScopeDispose)(()=>{l?.destroy(),l=null});const o=e.context?.expose;return{domain:l,exposeApi:(c={})=>{Object.assign(l.componentPublicExposed,c),o?.(l.componentPublicExposed)}}}function Be(e,n,a){const l={},r=n??e.componentName??"";let i=vn(l,(0,t.inject)(We,null),r,a);l[We]=i,(0,t.provide)(We,i),l.broadcast=(u,p,...y)=>i?Reflect.apply(i.emit,i,[u,p,...y]):null;const o=(0,t.inject)(Ge,null);e.fieldName=e.fieldName??r;let c=kn(l,o,e);l[Ge]=c,(0,t.provide)(Ge,c),l.validate=async(u=null)=>{if(!c)return Promise.resolve({pass:!0});const p=[];let y=null;const C={};let k=!1,v=!1;if(u===!0)y={name:"*"},v=!0,k=!0;else if(Array.isArray(u)&&u.indexOf(r)!==-1){const w=u;y={name:f=>f?w.indexOf(f)!==-1:!1},v=!0,k=!0}else if(u&&typeof u=="object"){const w=u,f=w.ignoreDisabled??!0,m=w.ignoreReadonly??!0,S=w.ignoreHidden??!0;f===!0&&e.disabled===!0||m===!0&&e.readonly===!0||S===!0&&$l(e.templateRefProxy?.$el??e.templateRefProxy)?v=!1:(Array.isArray(w.include)&&w.include.indexOf(r)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(r),v=!0),Object.assign(C,w),k=w.deep??!1}if(v){const w=c?.validate();p.push(w)}if(k&&y){C.deep=!1;const w=i?.emitToChildren(y,"validate",C);w&&Reflect.apply([].push,p,w)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(w=>{let f=[];return w.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=u=>c?.setRule(u),l.setNameValidateRules=(u,p=!1)=>{const y=u[r];y&&c?.setRule(y),p&&i&&i.emitToChildren({name:C=>Reflect.ownKeys(u).includes(C)},"setNameValidateRules",u,!1)},l.clearValidate=(u=!0)=>{if(!c)return;let p=null;const y={};let C=!1,k=!1;if(u===!0)p={name:"*"},k=!0,C=!0;else if(Array.isArray(u)&&u.indexOf(r)!==-1){const v=u;p={name:w=>w?v.indexOf(w)!==-1:!1},k=!0,C=!0}else if(u&&typeof u=="object"){const v=u;(v.ignoreHidden??!0)===!0&&$l(e.templateRefProxy?.$el??e.templateRefProxy)?k=!1:(Array.isArray(v.include)&&v.include.indexOf(r)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(r),k=!0),Object.assign(y,v),C=v.deep??!1}k&&c?.clear(),C&&p&&(y.deep=!1,i?.emitToChildren(p,"clearValidate",y))};let s=new kr(e.context?.emit);l[wn]=s;const d=Pe((u="validate")=>{c&&(u==="reset"?c.clear():c.validate())},60);(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:yr()).forEach(u=>{s&&s.on(u,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:vr()).forEach(u=>{s&&s.on(u,p=>{d("reset")})}),setTimeout(function(){i?.pull()},0),(0,t.onScopeDispose)(()=>{i?.destroy(),i=null,c?.destroy(),l[Ge]=null,c=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:c,emitEvent:(u,...p)=>{s&&Reflect.apply(s.emit,s,[u,...p])},onEvent:(u,p)=>{s&&Reflect.apply(s.on,s,[p])},offEvent:(u,p)=>{s&&Reflect.apply(s.off,s,[p])},componentPublicExposed:l,exposeApi:(u={})=>{Object.assign(l,u),h?.(l)}}}function Cr(e,n,a,l,r){const i={},o=n??"",c={getValue(){const u=e.getForSelf("modelValue");return u?u[o]:null},isExist(){const u=e.getForSelf("modelValue");return u?Reflect.has(u,o):!1}};a.fieldName=o,a.validateHandler={getValue(u){return c.getValue()}};let s=kn({},r,a);i.validate=async(u=null)=>{if(!c.isExist())return console.warn(`validate error: field [${o}] not exist`),Promise.resolve({pass:!0});const p=[];let y=!1,C=!1;if(Array.isArray(u)&&u.indexOf(o)!==-1)C=!0,y=!0;else if(u&&typeof u=="object"){const k=u;Array.isArray(k.include)&&k.include.indexOf(o)!==-1||Array.isArray(k.exclude)&&k.exclude.indexOf(o),C=!0,y=k.deep??!1}else typeof u=="boolean"&&(y=u),C=!0;if(C&&s){const k=s.validate();p.push(k)}if(y){let k=null;const v={};if(u===!0)k={name:"*"};else if(Array.isArray(u)&&u.length>0){const w=u;k={name:f=>f?w.indexOf(f)!==-1:!1}}else if(u!=null&&typeof u=="object"){const w=u;if(Object.assign(v,w),Array.isArray(w.include)&&w.include.length>0){const f=w.include;k={name:m=>m?f.indexOf(m)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const f=w.exclude;k={name:m=>m?f.indexOf(m)===-1:!1}}else k={name:"*"}}if(k&&d){v.deep=!1;const w=d.emitToChildren(k,"validate",v);Reflect.apply([].push,p,w)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(k=>{let v=[];return k.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(v=[...v,...w.errors])}),v.length>0?{pass:!1,errors:v}:{pass:!0}}):Promise.resolve({pass:!0})},i.setValidateRule=u=>s?.setRule(u),i.setNameValidateRules=u=>{const p=u[o];p&&s?.setRule(p)};let d=vn(i,l,o);(0,t.onScopeDispose)(()=>{s=null,d=null});const h=a.context?.expose;return{broadcast:d,validateSchema:s,componentPublicExposed:i,exposeApi:(u={})=>{Object.assign(i,u),h?.(i)}}}function ht(e){let n={},a=new kr(e.context?.emit);n[wn]=a,(0,t.onScopeDispose)(()=>{a?.destroy(),Reflect.deleteProperty(n,wn),n=null,a=null});const l=e.context?.expose;return{emitEvent:(r,...i)=>{a&&Reflect.apply(a.emit,a,[r,...i])},onEvent:(r,i)=>{a&&Reflect.apply(a.on,a,[i])},offEvent:(r,i)=>{a&&Reflect.apply(a.off,a,[i])},componentPublicExposed:n,exposeApi:(r={})=>{Object.assign(n,r),l?.(n)}}}var me=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ue(e)}px`:"",qs=me;function ue(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let r=Number(e.substring(0,a)),i=1;if(Xe){const{fontSize:o}=window.getComputedStyle(document.documentElement,null),c=o.indexOf("px");c>0&&(i=Number(o.substring(0,c)))}return r*=i,r}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))*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 Je="PageStateKey";function Re(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=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 zl(e,n,a={},l=!0,r=-1,i=-1,o=0,c=0){if(e.headerHeight=ue(a.headerHeight??n.headerHeight??-1),e.headerPadding=Re(a.headerPadding??n.headerPadding),e.footerHeight=ue(a.footerHeight??n.footerHeight??-1),e.footerPadding=Re(a.footerPadding??n.footerPadding),e.contentPadding=Re(a.contentPadding??n.contentPadding),l){const s=a.height??n.height;s?e.height=ue(s,i):e.height=ue(i)-ue(o,i)-ue(c,i),e.width=ue(a.width??n.width??0,r)}}function Nr(e,n={}){const a={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},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;zl(l,i,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const o=(0,t.reactive)(l),c=e.getForParent(Je);c&&(l.height=Vn(e,c),l.width=En(e,c),(0,t.watch)([()=>Vn(e,c),()=>En(e,c)],([d,h])=>{o.height=d,o.width=h}));const s=!c;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([d,h,u=-1,p=-1,y=0,C=0])=>{zl(o,h,n,s,u,p,y,C)}),e.set(Je,o),o}function An(e){return e.get(Je)}function Bn(e,n){if(n=n??e.get(Je),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function Tn(e,n){if(n=n??e.get(Je),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function Vn(e,n){if(n=n??e.get(Je),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=Bn(e,n),l=Tn(e,n),r=ue(n.contentPadding.top??0),i=ue(n.contentPadding.bottom??0);return n.height-a-l-r-i}return 0}function En(e,n){if(n=n??e.get(Je),n){const a=ue(n.contentPadding.left??0),l=ue(n.contentPadding.right??0);return n.contentInnerWidth??n.width-a-l}return 0}function xs(e){return!!e.getForParent(Je)}var Fl=Symbol.for("InnerPageScopeKey");function Ar(e){(0,t.provide)(Fl,e)}function Lt(e=!1){return(0,t.inject)(Fl,e)}var Ll=Symbol.for("AbstractPageScopeKey");function Br(e){(0,t.provide)(Ll,e)}function Ot(e=!1){return(0,t.inject)(Ll,e)}function Tr(e=!1){const n=Ot(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.headerBar??e:e}function Vr(e=!1){const n=Ot(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.footerBar??e:e}function Er(e=!1){const n=Ot(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.content??e:e}var et=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function $n(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Te(e,n,a=et.Near,l){const r=Ze();return r==null?e:a===et.Parent?(0,t.computed)(()=>{const i=r.getAll(n);for(let c=i.length-1;c>=0;c--){const s=i[c];if($n(s,l))return s}const o=e.value;return $n(o,l)?o:null}):(0,t.computed)(()=>{const i=e.value;if($n(i,l))return i;const o=r.getAll(n);for(let c=0;c<o.length;c++){const s=o[c];if($n(s,l))return s}return null})}function $r(e){return Te(e,"readonly",et.Near)}function Dr(e){return Te(e,"disabled",et.Near)}function Ir(e){return Te(e,"browse",et.Near)}function Ve(e){const n=(0,t.ref)(null),a=(0,t.ref)(null),l=Dr((0,t.computed)(()=>a.value??e.disabled)),r=(0,t.ref)(null);return{itemTemplateRef:n,innerDisabled:a,disabled:l,innerReadonly:r,readonly:$r((0,t.computed)(()=>r.value??e.readonly)),browse:Ir((0,t.computed)(()=>e.browse))}}function xe(e,n="modelValue",a=null,l){const r=(0,t.toRef)(e,n);let i=r.value;typeof a=="function"&&(i=a(r.value));const o=(0,t.ref)(i);return(0,t.watch)(r,c=>{if(typeof a=="function"){const s=a(c);s!==o.value&&(o.value=s,l&&l("setValue",s))}else c!==o.value&&(o.value=c,l&&l("setValue",c))}),o}var qr=new Map,Dn=new Map,Ol=null;function Ms(e){Ol=e}function Rs(){return Ol}function it(){return Ol?.()??null}function Pr(e,n,a){if(a){let l=Dn.get(a);l||(l=new Map,Dn.set(a,l)),l.set(e,n)}else qr.set(e,n)}function tt(e,n){let a=null;if(n){let l=Dn.get(n);l&&(a=l.get(e))}return a||(a=qr.get(e)),a}function zs(e,n){for(let a in e){const l=e[a];Pr(a,l,n)}}function Fs(e){Dn.delete(e)}function Ls(){return{top:0,left:0,bottom:0,right:0}}function Os(){return Xe?{rootWidth:document.documentElement.clientWidth||document.body.clientWidth,rootHeight:document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{headerHeight:-1,footerHeight:-1}}}function Ks(e,n){let a=e;if(n.componentPrefix){const l=a.indexOf("-");l!==-1?a=`${n.componentPrefix}${a.slice(l)}`:a=`${n.componentPrefix}-${a}`}return bn(a)}var Us=class{packages;_version;get version(){return this._version}constructor(e,n){this.packages=e,this._version=n}install(e,n){n?.install!==!1&&this.packages.forEach(l=>{if(l.install)e.use(l,n);else if(l.name){const r=Ks(l.name,n);e.component(r,l)}});const a=pt();if(n.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l={...n},r=Pe(()=>{const i={...l};this.updateLayout(i,a)},120);new window.ResizeObserver(r).observe(window.document.body)}this.updateLayout(n,a)}updateLayout(e,n){const a=e.headerBarHeight??0,l=e.footerBarHeight??0,r=ft({},Ls(),e.safeAreaInset),i=Os(),o=ft({},i.pageLayout,e.pageLayout);n=n??pt(),n.set("safeAreaInset",r),n.set("headerBarHeight",a),n.set("footerBarHeight",l),n.set("pageLayout",o),n.set("rootWidth",i.rootWidth),n.set("rootHeight",i.rootHeight);const c=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const s in e)c.indexOf(s)===-1&&n.set(s,e[s])}setScopeGetter(e){Ms(e)}getScopeGetter(){return Rs()}setAPI(e,n,a){Pr(e,n,a)}getAPI(e,n){return tt(e,n)}batchSetAPI(e,n){zs(e,n)}clearScopeAPI(e){Fs(e)}getRootDomain(){return pt()}};function ee(e){const n=`fox-${e}`,a=bn(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=a,l.install=(r,i)=>{let o=l.name;i?.componentPrefix&&(o=`${i.componentPrefix}-${l.baseName}`,o=bn(o)),r.component(o,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var Hs=(e,n)=>{let a=document.body;const l=e.teleport||"body";l!="body"&&(rr(l)?a=document.querySelector(l):a=e.teleport);const r=document.createElement("view");r.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let i={};hn(n.wrapper)?i=n.wrapper(a,r):i=n.wrapper;const o=(0,t.createApp)(i,e),c=n.components;return c&&c.forEach(s=>{o.use(s)}),a.appendChild(r),{instance:o.mount(r),unmount:()=>{o.unmount(),a.removeChild(r)}}},xr=(e,n)=>e?(0,t.h)(e,n):"",ye={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}},ve={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Mr={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}},Rr={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}},zr=[];for(const e in Rr)zr.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:{...ye,...Mr,...js},setup(a,l){const r=!!Ot(!1),i=Lt(!1),{domain:o,exposeApi:c}=Rl({props:a,context:l},a.name);if(o){const u=Nr(o,a);c({getPageContentHeight:()=>Vn(o,u),getPageContentWidth:()=>En(o,u),getPageHeaderHeight:()=>Bn(o,u),getPageFooterHeight:()=>Tn(o,u)}),u&&i&&(u.contentHeight="100%")}const s=(0,t.computed)(()=>({[e]:!0,"is-inner":i})),d=(0,t.computed)(()=>({})),h=(u,p=!1)=>{o.componentPublicExposed&&typeof o.componentPublicExposed.setNameValidateRules=="function"&&o.componentPublicExposed.setNameValidateRules(u,!0,p)};return(0,t.watch)([()=>a.rules,()=>a.pureDataRules],([u,p],[y,C])=>{if(u&&y){const k=(0,t.toRaw)(y),v=(0,t.toRaw)(u),w=v?Reflect.ownKeys(v):[];(k?Reflect.ownKeys(k):[]).forEach(f=>{w.includes(f)||(v[f]=[])}),h(v)}if(p&&C){const k=(0,t.toRaw)(C),v=(0,t.toRaw)(p),w=v?Reflect.ownKeys(v):[];(k?Reflect.ownKeys(k):[]).forEach(f=>{w.includes(f)||(v[f]=[])}),h(v,!0)}},{deep:!0}),(0,t.onMounted)(()=>{a.rules&&h((0,t.toRaw)(a.rules)),a.pureDataRules&&h((0,t.toRaw)(a.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}=ee("page"),Gs=Xs(Ws(Ys,Qs)),Kl=Gs;function Ul(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function In(e){const n=(0,t.unref)(e),a=window.getComputedStyle(n,null),l=parseFloat(a.getPropertyValue("padding-left")),r=parseFloat(a.getPropertyValue("padding-right")),i=parseFloat(a.getPropertyValue("padding-top")),o=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-r,height:n.clientHeight-i-o}}var Fr={headerbar:{},radio:{},checkbox:{}};function _s(e){Object.assign(Fr,e)}function qn(){return Fr}var Zs=(e,n,a,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 o=Tr(!1),c=Lt(!1),s=o?null:Ze(),d=s?An(s):null,h=qn(),u=e,p=(0,t.computed)(()=>{const $={[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed};return c||($[`${u}--safe-area-inset-top`]=r.safeAreaInsetTop),$}),y=(0,t.computed)(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),C=Ee(r.height)?null:ue(r.height),k=(0,t.computed)(()=>{const $={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(o)return $;if(s&&d){const x=Re(r.padding??d.headerPadding);if(Object.assign($,x),Ee(C)||(d.headerHeight=C),$.height=d.headerHeight,$.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,$.safeAreaTop>0){const M=ue(x.top??0);$.top=$.safeAreaTop+M,$.height&&$.height>0&&($.height=$.height+$.safeAreaTop)}return $}if(Ee(C)||($.height=C),r.padding){const x=Re(r.padding);Object.assign($,x)}return $}),v=(0,t.ref)(null),w=()=>d&&v.value&&!Dl(v.value)?(l||(d.headerAllHeight=Ul(v.value).height),d.headerMounted=!0,!0):!1,f=Pe(w,120);let m=null;(0,t.onMounted)(()=>{o||d&&(xl(w,50,5,50,!0),window.ResizeObserver&&v.value&&(m=new window.ResizeObserver(f),m.observe(v.value)))}),(0,t.onUnmounted)(()=>{o||d&&(d.headerMounted=!1,m&&(m.disconnect(),m=null))});const S=(0,t.computed)(()=>{const $={};return o||(k.value.height!==null&&k.value.height!==void 0&&($.height=`${k.value.height}px`),k.value.top!==null&&k.value.top!==void 0&&($.paddingTop=`${k.value.top}px`),k.value.left!==null&&k.value.left!==void 0&&($.paddingLeft=`${k.value.left}px`),k.value.right!==null&&k.value.right!==void 0&&($.paddingRight=`${k.value.right}px`),k.value.bottom!==null&&k.value.bottom!==void 0&&($.paddingBottom=`${k.value.bottom}px`)),$}),A=(0,t.computed)(()=>{const $=k.value?.height;return Ee($)||$<0?!0:$>0});function g(){i.emit("back")}function b(){i.emit("click-title")}function T(){i.emit("click-right")}function E(){i.emit("click-right-text")}const B=()=>{if(!r.leftShow)return null;const $=[];if(i.slots.left)$.push(i.slots.left());else{if(i.slots.leftIcon){const x=(0,t.h)("view",{class:"left-icon",onClick:g},[i.slots.leftIcon()]);$.push(x)}else{const x=r.leftIcon??h.headerbar.Left??a,M=(0,t.h)("view",{class:"left-icon",onClick:g},[(0,t.h)(x)]);$.push(M)}if(r.leftText){const x=(0,t.h)("view",{class:"left-text",onClick:g},[r.leftText]);$.push(x)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},$)},N=()=>{if(!r.rightShow)return null;const $=[];if(i.slots.right)$.push(i.slots.right());else{if(r.rightText){const x=(0,t.h)("view",{class:"right-text",onClick:E},[r.rightText]);$.push(x)}if(i.slots.rightIcon){const x=(0,t.h)("view",{class:"right-icon",onClick:T},[i.slots.rightIcon()]);$.push(x)}else if(r.rightIcon){const x=(0,t.h)("view",{class:"right-icon",onClick:T},[(0,t.h)(r.rightIcon)]);$.push(x)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},$)},R=()=>{if(!r.titleShow)return null;const $=[],x=i.slots.default?i.slots.default():null;if(x)$.push(x);else{if(r.title){const M=(0,t.h)("view",{class:"title-text"},[r.title]);$.push(M)}if(i.slots.titleIcon){const M=(0,t.h)("view",{class:"title-icon",onClick:b},[i.slots.titleIcon()]);$.push(M)}else if(r.titleIcon){const M=(0,t.h)("view",{class:"title-icon",onClick:b},[(0,t.h)(r.titleIcon)]);$.push(M)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},$)},U=()=>{const $=[],x=i.slots.bottom?i.slots.bottom():null;return x&&$.push(x),$.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},$)};return()=>{if(o||!A.value)return null;const $=[];if(i.slots.all)$.push(i.slots.all());else{const x=[],M=B();M&&x.push(M);const O=R();O&&x.push(O);const z=N();if(z&&x.push(z),x.length>0){const P=(0,t.h)("view",{class:y.value},x);$.push(P)}const X=U();X&&$.push(X)}return $.length===0?null:(0,t.h)("view",{class:p.value,style:S.value,ref:v},$)}}}),{componentName:Js,create:ec,scope:tc}=ee("header-bar"),nc=ec(Zs(Js,tc,oe.Left,!1)),Hl=nc;function lc(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,r){const i=Vr(!1),o=Lt(!1),c=i?null:Ze(),s=c?An(c):null,d=e,h=(0,t.computed)(()=>{const m={[d]:!0,[`${d}--${l.align}`]:!0,[`${d}--border`]:l.border,[`${d}--fixed`]:l.fixed};return o||(m[`${d}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),m}),u=Ee(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(c&&s){const S=Re(l.padding??s.footerPadding);if(Object.assign(m,S),Ee(u)||(s.footerHeight=u),m.height=s.footerHeight,m.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,m.safeAreaBottom>0){const A=ue(S.bottom??0);m.bottom=m.safeAreaBottom+A,m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)}return m}if(Ee(u)||(m.height=u),l.padding){const S=Re(l.padding);Object.assign(m,S)}return m}),y=(0,t.computed)(()=>{const m=p.value?.height;return Ee(m)||m<0?!0:m>0}),C=(0,t.ref)(null),k=()=>s&&C.value&&!Dl(C.value)?(a||(s.footerAllHeight=Ul(C.value).height),s.footerMounted=!0,!0):!1,v=Pe(k,120);let w=null;(0,t.onMounted)(()=>{i||s&&(xl(k,50,5,50,!0),window.ResizeObserver&&(w=new window.ResizeObserver(v),w.observe(C.value)))}),(0,t.onUnmounted)(()=>{i||s&&(s.footerMounted=!1,w&&(w.disconnect(),w=null))});const f=(0,t.computed)(()=>{const m={};return i||(p.value.height!==null&&p.value.height!==void 0&&(m.height=me(p.value.height)),p.value.top!==null&&p.value.top!==void 0&&(m.paddingTop=me(p.value.top)),p.value.left!==null&&p.value.left!==void 0&&(m.paddingLeft=me(p.value.left)),p.value.right!==null&&p.value.right!==void 0&&(m.paddingRight=me(p.value.right)),p.value.bottom!==null&&p.value.bottom!==void 0&&(m.paddingBottom=me(p.value.bottom))),m});return()=>{if(i||!y.value)return null;const m=r.slots.default?r.slots.default():[];return(0,t.h)("view",{ref:C,class:h.value,style:f.value},m)}}}}var{componentName:ac,create:oc,scope:rc}=ee("footer-bar"),ic=oc(lc(ac,rc,!1)),jl=ic;function sc(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:l,attrs:r}){const i=Er(!1),o=Lt(!1),c=i?null:Ze(),s=(0,t.computed)(()=>({[e]:!0})),d=c?An(c):null,h=(0,t.computed)(()=>{const k={};if(i)return k;if(c&&d){if(a.padding){const b=Re(a.padding);Object.assign(d.contentPadding,b)}const v=Bn(c,d),w=Tn(c,d);let f="";d.contentHeight?f=`${d.contentHeight}`:f=`${d.height}px`,console.debug("[content]page height:",f),console.debug("[content]header height:",v),console.debug("[content]footer height:",w),console.debug("[content]padding:",d.contentPadding),k.height=f;let m=ue((d&&d.contentPadding&&d.contentPadding.top)??-1);(m>=0||v>0)&&(m=m<0?0:m,k.paddingTop=`${v+m}px`);let S=ue((d&&d.contentPadding&&d.contentPadding.bottom)??-1);(S>=0||w>0)&&(S=S<0?0:S,k.paddingBottom=`${w+S}px`);const A=ue((d&&d.contentPadding&&d.contentPadding.left)??-1);A>=0&&(k.paddingLeft=`${A}px`);const g=ue((d&&d.contentPadding&&d.contentPadding.right)??-1);return g>=0&&(k.paddingRight=`${g}px`),k}if(a.padding){const v=Re(a.padding);v.left&&(k.paddingLeft=`${v.left}px`),v.top&&(k.paddingTop=`${v.top}px`),v.right&&(k.paddingRight=`${v.right}px`),v.bottom&&(k.paddingBottom=`${v.bottom}px`)}return k}),u=(0,t.ref)(null),p=()=>{if(d&&u.value){const k=In(u.value);d.contentInnerHeight=k.height,d.contentInnerWidth=k.width}},y=Pe(p,120);let C=null;return(0,t.onMounted)(()=>{o||i||(requestAnimationFrame(p),window.ResizeObserver&&u.value&&(C=new window.ResizeObserver(y),C.observe(u.value)))}),(0,t.onUnmounted)(()=>{o||i||C&&(C.disconnect(),C=null)}),()=>i?l.default?.():(0,t.h)(a.tag??"view",{...r,ref:u,class:s.value,style:h.value},l)}}}var{componentName:cc,create:uc,scope:dc}=ee("content"),fc=uc(sc(cc,dc)),Wl=fc,gt="GroupStateKey",Lr=Symbol.for("GroupScopeKey");function Pn(){return(0,t.inject)(Lr,!1)}function xn(e=!0){(0,t.provide)(Lr,e)}function mc(e,n={}){Reflect.ownKeys(n).forEach(a=>{if(typeof a!="string")return;const l=n[a];Ee(l)||(e[a]=l)})}function pc(e,n={}){const a={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};mc(a,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(a),passport:0,order:{index:0}});return e.set(gt,l),l}function Yl(e,n,a=-1,l=-1,r=!1,i,o,c){const s=e.get(gt);if(!s)return;const d=e.get("groupLayout")??{};a===-1&&(a=d.column??1),l===-1&&(l=d.gutter??0),i||(i=d.minItemWidth??-1),o||(o=d.maxItemWidth??-1);const h=ue(i),u=ue(o);c||(c=d.type??"grid");const p=()=>{const y=n===""||n===-1,C=ue(n);let k=de(a);const v=ue(l);if(!y){let m=(C-(k-1)*v)/k;for(;u!==-1&&m>u;)k++,m=(C-(k-1)*v)/k;for(;h!==-1&&k>1&&m<h;)k--,m=(C-(k-1)*v)/k}let w=!1;const f=s.layout;f.value.width=n,f.value.column!==k&&(f.value.column=k,w=!0),f.value.gutter!==v&&(f.value.gutter=v,w=!0),f.value.type!==c&&(f.value.type=c,w=!0),w&&(0,t.triggerRef)(f)};if(r)p();else{const y=++s.passport;setTimeout(()=>{y===s.passport&&p()},50)}}function Mn(e,n=!1){let a;return n?a=e.getForParent(gt):a=e.get(gt),a.layout}function Rn(e,n=!1){let a;return n?a=e.getForParent(gt):a=e.get(gt),a.order}function Or(e,n=1){if(n==="stretch")return-1;const a=de(n);return a===-1?100:100*a/e}function zn(e,n,a=1,l=0,r){const i={};let o=0;r?o=ue(r):o=Or(n.column,a),o>0&&(i.width=`${o}%`);const c=Or(n.column,l);c>0&&(i["margin-left"]=`${c}%`);const s=ue(n.gutter)/2;return s>0&&(i["padding-left"]=`${s}px`,i["padding-right"]=`${s}px`),i}function Fn(e,n,a=1,l=0){if(a==="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(a);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 o=(e.index+i)%n.column,c=o+r;return c>n.column?(o=0,c=o+r,e.index=e.index+(n.column-o)+r):e.index=e.index+i+r,i>0?{"grid-column":`${o+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}var Kr=Symbol("RollingStateKey");function hc(e){(0,t.provide)(Kr,e)}function gc(){return(0,t.inject)(Kr,null)}function Xl(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function yc(e){let n=Xl(e);if(n<=0){const a=e.cloneNode(!0);a.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=Xl(a),document.body.removeChild(a)}return n}function bc(e,n,a){const l=typeof e=="number"?e:parseInt(e),r=typeof n=="number"?n:parseInt(n),i=typeof a=="number"?a:parseInt(a);if(l<=0)return"1fr";const o=(l-(r-1)*i)/r;return o>0?`${o}px`:"1fr"}function Ur(e){const n=[];return e.forEach(a=>{a.type===t.Fragment&&Array.isArray(a.children)?n.push(...Ur(a.children)):n.push(a)}),n}function vc(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Ln(e){function n(){return Ur(e?.()??[]).filter(vc)}return{getChildren:n}}var Sc={...ye,...Mr,...Rr};function kc(e,n,a){return{props:Sc,emits:["update:collapse","header-click"],setup(l,r){const{domain:i,exposeApi:o}=Rl({props:l,ignorePropKeys:zr,context:r},l.prop??l.name),c=pc(i,{type:l.type}),s=Pn();xn(!0);const d=l.rollingDisplay?gc():null,h=(0,t.ref)(null),u=(0,t.computed)(()=>l.rollingDisplay?d&&!d.disabled:!1),p=(0,t.computed)(()=>s&&i?Mn(i,!0).value:null),y=(Q,le=!1)=>{i.componentPublicExposed&&typeof i.componentPublicExposed.setNameValidateRules=="function"&&i.componentPublicExposed.setNameValidateRules(Q,!0,le)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([Q,le],[D,q])=>{if(Q&&D){const K=(0,t.toRaw)(D),I=(0,t.toRaw)(Q),Y=I?Reflect.ownKeys(I):[];(K?Reflect.ownKeys(K):[]).forEach(ae=>{Y.includes(ae)||(I[ae]=[])}),y(I)}if(le&&q){const K=(0,t.toRaw)(q),I=(0,t.toRaw)(le),Y=I?Reflect.ownKeys(I):[];(K?Reflect.ownKeys(K):[]).forEach(ae=>{Y.includes(ae)||(I[ae]=[])}),y(I,!0)}},{deep:!0});const C=e,k=(0,t.computed)(()=>{const Q={};if(Q.height=x.value,l.width)l.width!=="auto"&&(Q.width=me(l.width));else{const le=s?Rn(i,!0):null;if(p.value&&le){if(p.value.type==="grid"){const D=Fn(le,p.value,l.span,l.offset);Object.assign(Q,D)}else if(p.value.type==="flow"){const D=zn(le,p.value,l.span,l.offset,l.width);Object.assign(Q,D)}}}return Q}),v=(0,t.computed)(()=>{const Q=c.layout.value.type;return Q==="grid"||Q==="flow"?{[`${C}--${Q}`]:!0,[`${C}--${Q}-justify-${l.justify}`]:!0,[`${C}--${Q}-align-${l.align}`]:!0,[`${C}--gutter`]:!0}:{[`${C}--${Q}`]:!0,[`${C}--gutter`]:!0}}),w=(0,t.computed)(()=>{if(c.layout.value.type==="grid"){let Q="";if(l.columnWidth)Q=`repeat(auto-fill, ${l.columnWidth})`;else{const le=bc(T.value,c.layout.value.column,c.layout.value.gutter);Q=`repeat(${c.layout.value.column}, ${le})`}return{"column-gap":`${c.layout.value.gutter}px`,"grid-template-columns":Q}}}),f=(0,t.toRef)(l,"gutter"),m=(0,t.toRef)(l,"column"),S=(0,t.computed)(()=>s||u.value?!0:Se(l.isWrap)),A=[],g=Q=>{A.push(Q)},b=()=>{let Q=A.length;A.splice(0,Q)},T=(0,t.ref)(-1),E=Q=>{const le=In(Q).width;le>0&&le!==T.value&&(T.value=le)};Yl(i,T.value,m.value,f.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([T,m,f],([Q,le,D])=>{c.order.index=0,Yl(i,Q,le,D,!1,l.minItemWidth,l.maxItemWidth,l.type)});const B=(0,t.computed)(()=>M.value?l.expandText??"":l.collapseText??""),N=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),R=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),U=(0,t.ref)(),$=(0,t.ref)(),x=(0,t.computed)(()=>O.value||me(l.height)||""),M=(0,t.ref)(!1),O=(0,t.ref)(""),z=(0,t.ref)(!1);let X=-1;const P=(Q,le=!0)=>{const D=U.value;if(D&&M.value!==Q){if(X=X<=0?yc(D):X,z.value=!0,le)if(D.style["will-change"]="height",D.ontransitionend=function(){D.ontransitionend=null,this.style["will-change"]="auto",Q||(O.value="",z.value=!1)},Q){let q=0;l.collapseHeight?q=l.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(q=$.value.offsetHeight),O.value=`${X}px`,(0,t.nextTick)(()=>{O.value=`${q}px`})}else O.value=`${X}px`;else if(Q){let q=0;l.collapseHeight?q=l.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(q=$.value.offsetHeight),O.value=`${q}px`}else z.value=!1,O.value=`${X}px`;M.value=Q,r.emit("update:collapse",Q)}};(0,t.watch)(()=>l.collapse,Q=>{P(Q)});const _=Q=>{r.emit("header-click",Q)},te=()=>{W()},W=Q=>{Q=Q??!M.value,P(Q)};o({toggleCollapse:W,doLayout:()=>{A[0]&&(E(A[0]),Yl(i,T.value,m.value,f.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let J=null,j=!0;const ne=Q=>{if(l.rules&&y((0,t.toRaw)(l.rules)),l.pureDataRules&&y((0,t.toRaw)(l.pureDataRules),!0),!!Xe&&(Q&&P(Se(l.collapse),!1),l.autoLayout&&Array.isArray(A)&&A.length>0)){const le=A[0];if(E(le),window.ResizeObserver){const D=Pe(()=>E(le),120);J=new window.ResizeObserver(D),J.observe(le)}}},H=()=>{J?.disconnect(),J=null},F=!u.value||d?.acquire();F&&(h.value=u.value?!0:null),(0,t.onMounted)(()=>{if(F&&(ne(j),j=!1),u.value&&d){let Q=null,le=d.initialHeight;d.observe(U.value,D=>{if(D!==h.value)if(D)h.value=!0,M.value||(O.value=""),Q=setTimeout(()=>{Q=null,h.value!==!1&&(ne(j),j=!1)},100);else{if(Q!==null&&clearTimeout(Q),h.value=!1,!M.value)if(j)O.value=d.initialHeight;else{let q=Xl(U.value);q<=0?O.value=le:(O.value=`${q}px`,le=O.value)}j||H()}})}}),(0,t.onUnmounted)(()=>{J?.disconnect(),d&&d.unobserve(U.value)});const L=(Q="right")=>{const le=[];if(B.value){const K=(0,t.h)("span",{class:N.value},[B.value]);le.push(K)}const D={class:R.value},q=(0,t.h)(l.collapseIcon??a,D);return le.push(q),le.length>0?(0,t.h)("div",{class:{[`${C}__header-collapse`]:!0,[`is-${Q}`]:!0},onClick:te},le):null},G=(Q,le,D,q)=>{const K={...v.value};if(le===0&&(K[`${C}__first`]=!0),D>=q-1&&(K[`${C}__last`]=!0),S.value===!1){const I=r.attrs.class;I&&(K[`${I}`]=!0)}return(0,t.h)("div",{ref:g,key:`${le}`,class:K,style:w.value},Q)};return()=>{const Q=l.prop??l.name;if(u.value&&h.value!==!0)return(0,t.h)(l.tag||"div",{ref:U,prop:Q,class:{[`${C}`]:!0,"is-collapse":z.value},style:k.value},[]);c.order.index=0;const le=[];let D=0;if(r.slots.header){const Y=(0,t.h)("div",{key:`${D++}`,ref:$,class:{[`${C}__header`]:!0,[`${C}__first`]:!0},onClick:_},[r.slots.header()]);le.push(Y)}else{const Y=[],ae=l.collapsePosition==="left";if(ae&&l.showCollapse){const re=L("left");re&&Y.push(re)}if(l.title||r.slots.title){if(l.showMark){const re={class:{[`${C}__header-mark`]:!0}};l.markColor&&(re.style={background:l.markColor});const se=(0,t.h)("div",re);Y.push(se)}if(r.slots.title){const re=(0,t.h)("div",{class:{[`${C}__header-title`]:!0}},[r.slots.title()]);Y.push(re)}else if(l.title){const re=(0,t.h)("div",{class:{[`${C}__header-title`]:!0}},[l.title]);Y.push(re)}}if(r.slots.toolbar&&Y.push(r.slots.toolbar()),!ae&&l.showCollapse){const re=L("right");re&&Y.push(re)}if(Y.length>0){const re=(0,t.h)("div",{key:`${D++}`,ref:$,class:{[`${C}__header`]:!0,[`${C}__first`]:!0},onClick:_},Y);le.push(re)}}b();const{getChildren:q}=Ln(r.slots.default),K=q(),I=c.layout.value.type;if(I==="grid"){const Y=G(K,D++,0,K.length);le.push(Y)}else if(I==="flow"){const Y=G(K,D++,0,K.length);le.push(Y)}else for(let Y=0;Y<K.length;Y++){const ae=K[Y],re=G([ae],D++,Y,K.length);le.push(re)}return S.value?(0,t.h)(l.tag||"div",{ref:U,prop:Q,class:{[`${C}`]:!0,"is-collapse":z.value},style:k.value},[le]):le}}}}var{componentName:wc,create:Cc,scope:Nc}=ee("group"),Ac=Cc(kc(wc,Nc,oe.RectUp)),Ql=Ac;function Bc(e){return e===window}var Tc=/matrix\((.+)\)/,Gl=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(Bc(n))return{x:0,y:0};let a=0,l=0,r=n;for(;r!==null;)a+=r.offsetLeft,l+=r.offsetTop,r=r.offsetParent;let i=0,o=0,c=0,s=0;for(r=n;r!==document;){o+=r.scrollTop,i+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const h=Tc.exec(d);if(h){let u=h[1].split(/\s*,\s*/);u.length==6&&(c+=Number(u[4]),s+=Number(u[5]))}}r=r.parentNode}return a-=i,l-=o,a+=c,l+=s,{x:a,y:l}},Vc=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{}})}},Ec=class{monitorRegister=new WeakMap;watch(e,n){let a=e.parentNode;const l=document.body.parentNode;for(;a&&a!==l;){let r=this.monitorRegister.get(a);r||(r=new Vc,a.addEventListener("scroll",r.listen),a===document.body&&a.addEventListener("resize",r.listen),this.monitorRegister.set(a,r)),r.add(n),a=a.parentNode}}unwatch(e,n){let a=e.parentNode;const l=document.body.parentNode;for(;a&&a!==l;){let r=this.monitorRegister.get(a);r&&(r.remove(n),r.size()===0&&(this.monitorRegister.delete(a),a.removeEventListener("scroll",r.listen),a===document.body&&a.removeEventListener("resize",r.listen))),a=a.parentNode}}},Kt=new Ec,Hr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:$c,create:Dc}=ee("price"),Ic=Dc({props:{...Hr},setup(e){const n=(0,t.computed)(()=>({[$c]:!0})),a=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>ke(e.price)==0?"":mn(e.price,e.decimalLength,!0,de(e.digits),e.separator));return{classes:n,showSymbol:a,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)})}}}),ie=(e,n)=>{const a=e.__vccOpts||e;for(const[l,r]of n)a[l]=r;return a},qc=["innerHTML"],Pc=["innerHTML"];function xc(e,n,a,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,qc)):(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,Pc)):(0,t.createCommentVNode)("",!0)],2)}var On=ie(Ic,[["render",xc]]),{componentName:_l,create:Mc}=ee("hint-text"),Rc=Mc({components:{Price:On},props:{...Hr,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:()=>6},showArrow:{type:Boolean,default:()=>!0},arrowOffset:{type:Number,default:()=>20},offset:{type:Number,default:()=>12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const a=(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),o=(0,t.ref)(e.placement),c=(0,t.ref)(!1),s=(0,t.ref)(null),d=(N,R,U,$,x,M)=>{const O=document.documentElement.clientWidth||document.body.clientWidth,z=document.documentElement.clientHeight||document.body.clientHeight,X=N.split("-");let P=[];X[0]==="top"?P=["top","bottom","right","left"]:X[0]==="bottom"?P=["bottom","top","right","left"]:X[0]==="left"?P=["left","top","bottom","right"]:X[0]==="right"&&(P=["right","top","bottom","left"]);const _={top:null,right:null,bottom:null,left:null},te=[];for(let W=0;W<P.length;W++){const Z=P[W];if(te[0]=Z,X[1]&&(te[1]=X[1]),Z==="top"){const J=R.y-M-e.arrowSize-e.offset;if(J>=0){_.top=J;let j=0;X[1]==="start"?j=R.x:X[1]==="end"?j=R.x+U-x:j=R.x+U/2-x/2;const ne=O-j-x;ne<0?(j+=ne,u.value=-ne):u.value=0,_.left=j<0?0:j;break}}else if(Z==="bottom"){const J=R.y+$+e.arrowSize+e.offset;if(J+M<=z){_.top=J;let j=0;X[1]==="start"?j=R.x:X[1]==="end"?j=R.x+U-x:j=R.x+U/2-x/2;const ne=O-j-x;ne<0?(j+=ne,u.value=-ne):u.value=0,_.left=j<0?0:j;break}}else if(Z==="left"){const J=R.x-x-e.arrowSize-e.offset;if(J>=0){_.left=J;let j=0;X[1]==="start"?j=R.y:X[1]==="end"?j=R.y+$-M:j=R.y+$/2-M/2,_.top=j<0?0:j;break}}else if(Z==="right"){const J=R.x+U+e.arrowSize+e.offset;if(J+x<=O){_.left=J;let j=0;X[1]==="start"?j=R.y:X[1]==="end"?j=R.y+$-M:j=R.y+$/2-M/2,_.top=j<0?0:j;break}}}return{bestPlacement:te.join("-"),bestInsetRect:_}},h=(N,R,U=10)=>{if(!Xe||R===!1||!N)return;l.value=Gl(e.reference),r.value=e.reference.offsetWidth,i.value=e.reference.offsetHeight;const $=s.value.offsetHeight,x=s.value.offsetWidth,{bestPlacement:M,bestInsetRect:O}=d(e.placement,l.value,r.value,i.value,x,$);o.value=M,a.value=O,c.value=!0},u=(0,t.ref)(0),p=Pe(()=>{h(e.message,e.visible)},10),y=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,N=>{y.value=N});const C=(0,t.computed)(()=>y.value&&k.value),k=(0,t.ref)(!0),v=Pe(N=>{const R=N[0];R&&(k.value=R.isIntersecting)},10),w=new IntersectionObserver(v);(0,t.watch)([()=>e.message,()=>e.visible],([N,R])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{h(e.message,e.visible)},0),Kt.watch(e.reference,p),w.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Kt.unwatch(e.reference,p),w.unobserve(e.reference),w.disconnect()});const f=(0,t.computed)(()=>{const N={[_l]:!0};return o.value.startsWith("top")?N["is-top"]=!0:o.value.startsWith("right")?N["is-right"]=!0:o.value.startsWith("bottom")?N["is-bottom"]=!0:o.value.startsWith("right")&&(N["is-right"]=!0),e.size==="small"?N["is-small"]=!0:e.size==="large"&&(N["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(N[`${e.customClass}`]=!0),N}),m=(0,t.computed)(()=>{const N={};return a.value.top!==null&&(N.top=`${a.value.top}px`),a.value.right!==null&&(N.right=`${a.value.right}px`),a.value.bottom!==null&&(N.bottom=`${a.value.bottom}px`),a.value.left!==null&&(N.left=`${a.value.left}px`),e.autoFit&&(N["min-width"]=`${r.value}px`),N["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,c.value&&(N.opacity="1"),e.transition||(N.transition="none"),e.zIndex&&(N["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(N,e.customStyle),N}),S=(0,t.computed)(()=>{const N=[`${_l}__content`];return e.customTextClass&&N.push(e.customTextClass),N}),A=(0,t.computed)(()=>{const N={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(N,e.customTextStyle),N}),g=(0,t.computed)(()=>({[`${_l}__arrow`]:!0})),b=(0,t.computed)(()=>{const N={};return e.showArrow?(N.width=`${e.arrowSize}px`,N.height=`${e.arrowSize}px`,o.value==="top"?(N.left="50%",N.bottom=`-${e.arrowSize}px`,N.transform=" translate(-50%, 0%)"):o.value==="top-start"?(N.left=`${e.arrowOffset+u.value}px`,N.bottom=`-${e.arrowSize}px`):o.value==="top-end"?(N.right=`${e.arrowOffset-u.value}px`,N.bottom=`-${e.arrowSize}px`):o.value==="right"?(N.left=`-${e.arrowSize}px`,N.top="50%",N.transform=" translate(0%, -50%)"):o.value==="right-start"?(N.left=`-${e.arrowSize}px`,N.top=`${e.arrowOffset}px`):o.value==="right-end"?(N.left=`-${e.arrowSize}px`,N.bottom=`-${e.arrowOffset}px`):o.value==="bottom"?(N.left="50%",N.top=`-${e.arrowSize}px`,N.transform=" translate(-50%, 0%)"):o.value==="bottom-start"?(N.left=`${e.arrowOffset+u.value}px`,N.top=`-${e.arrowSize}px`):o.value==="bottom-end"?(N.right=`${e.arrowOffset-u.value}px`,N.top=`-${e.arrowSize}px`):o.value==="left"?(N.right=`-${e.arrowSize}px`,N.top="50%",N.transform=" translate(0%, -50%)"):o.value==="left-start"?(N.right=`-${e.arrowSize}px`,N.top=`${e.arrowOffset}px`):o.value==="left-end"&&(N.right=`-${e.arrowSize}px`,N.bottom=`-${e.arrowOffset}px`),N):{display:"none"}}),T=(0,t.computed)(()=>C.value&&e.closeOnClick),E=(0,t.computed)(()=>{const N={};return e.zIndex&&(N["z-index"]=`${e.zIndex}`),N});return{show:C,tipRef:s,classes:f,styles:m,textClasses:S,textStyles:A,arrowClasses:g,arrowStyles:b,overlayShow:T,overlayStyle:E,onClickOverlay:()=>{y.value=!1,n.emit("update:visible",!1)}}}}),zc=["innerHTML"];function Fc(e,n,a,l,r,i){const o=(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]=(...c)=>e.onClickOverlay&&e.onClickOverlay(...c))},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)(o,{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,zc))],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 jr=ie(Rc,[["render",Fc]]),Kn=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},Zl={},Lc=new Kn,yt=new Map,Un=e=>{if(e){const n=document.getElementById(e);yt.delete(e),n&&((0,t.render)(null,n),n.parentNode?.removeChild(n))}else{for(const n of yt.keys()){const a=document.getElementById(n);a&&((0,t.render)(null,a),a.parentNode?.removeChild(a))}yt.clear()}},Oc=e=>{e.unmount=Un;const n=document.getElementById(e.id);if(n){const a=yt.get(e.id);a?e={...Zl,...a,...e}:e={...Zl,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(jr,e),n)}return e.id},Kc=e=>{e.unmount=Un;let n=e.id??`hinttext_${Lc.get()}`;e={...Zl,...e},e.id=n,yt.set(n,e);const a=document.createElement("div");return a.id=e.id,(0,t.render)((0,t.createVNode)(jr,e),a),document.body.appendChild(a),n},Uc=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),bt={show(e,n,a={},l=!0){if(!Uc(n))return;const r=a.id;return r&&yt.has(r)?Oc({...a,message:n,reference:e}):(l&&Un(),Kc({...a,message:n,reference:e}))},hide(e){Un(e)},install(e){e.config.globalProperties.$hintText=bt}};function Hc(e,n,a,l=!1){return{inheritAttrs:!0,props:{...ye,...ve},emits:["appear","disappear"],setup(r,i){const o=r.prop??i.attrs.name,c=(0,t.ref)(),{exposeApi:s}=Be({componentName:e,validate:!1,get props(){return r},context:i,get templateRefProxy(){return c.value}},o),d=Ze(),h=Pn();xn(!1);const u=(0,t.computed)(()=>h&&d?Mn(d,!1).value:null),p=e,y=(0,t.ref)(null),C=(0,t.computed)(()=>{const I={[p]:!0,[`${p}__gutter`]:u.value&&u.value.type!=="flow",[`${p}__stretch`]:r.span==="stretch",[`${p}__input--border`]:Se(r.hasBorder)};if(I[r.errorMarkClass]=!!z.value,I[r.warnMarkClass]=!!M.value,I[r.infoMarkClass]=!!$.value,typeof y.value=="function"){const Y=y.value(o);I[Y]=!0}else if(typeof y.value=="string"){const Y=y.value;I[Y]=!0}return I}),k=(0,t.ref)(null),v=(0,t.computed)(()=>{const I={};if(r.width)r.width!=="auto"&&(I.width=me(r.width));else{const Y=h&&d?Rn(d,!1):null;if(u.value&&Y){if(u.value.type==="grid"){const ae=Fn(Y,u.value,r.span,r.offset);Object.assign(I,ae)}else if(u.value.type==="flow"){const ae=zn(Y,u.value,r.span,r.offset,r.width);Object.assign(I,ae)}}}if(typeof k.value=="function"){const Y=k.value(o);Y&&Object.assign(I,Y)}else if(k.value&&typeof k.value=="object"){const Y=k.value;Object.assign(I,Y)}return I}),w=(0,t.ref)(null),f=(0,t.computed)({get:()=>w.value??Se(r.isRequired),set:I=>{w.value=I}}),m=()=>typeof r.label=="string"&&r.label.length>0||typeof i.slots.label=="function",S=Te((0,t.toRef)(r,"labelPosition"),"labelPosition",et.Near),A=(0,t.computed)(()=>S&&S.value==="top"?"top":S&&S.value==="right"?"right":"left"),g=(0,t.computed)(()=>({[`${p}__main`]:!0,[`${p}__main--${A.value}`]:!0})),b=(0,t.computed)(()=>({label:!0,[`label--${A.value}`]:!0})),T=Te((0,t.toRef)(r,"labelWidth"),"labelWidth",et.Near),E=(0,t.computed)(()=>T&&T.value?{width:me(T.value)}:{}),B=(0,t.computed)(()=>({"label--string":!0,"label--required":f.value})),N=(0,t.computed)(()=>({content:!0,[r.contentClass]:!0})),R=(0,t.computed)(()=>({...r.contentStyle})),U=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});s({setRequired(I){f.value=I},setErrorTip(I){U.errorTip=I},setErrorIcon(I){U.errorIcon=I},setWarnTip(I){U.warnTip=I},setWarnIcon(I){U.warnIcon=I},setInfoTip(I){U.infoTip=I},setInfoIcon(I){U.infoIcon=I},setCustomClassName(I){y.value=I},setCustomStyle(I){k.value=I}});const $=(0,t.computed)(()=>r.infoTip||U.infoTip),x=(0,t.computed)(()=>r.infoIcon||U.infoIcon),M=(0,t.computed)(()=>r.warnTip||U.warnTip),O=(0,t.computed)(()=>r.warnIcon||U.warnIcon),z=(0,t.computed)(()=>r.errorTip||U.errorTip),X=(0,t.computed)(()=>r.errorIcon||U.errorIcon),P=(0,t.computed)(()=>z.value?"error":M.value?"warn":$.value?"info":""),_=()=>P.value.length>0,te=(0,t.computed)(()=>P.value==="error"?z.value:P.value==="warn"?M.value:P.value==="info"?$.value:""),W=(0,t.computed)(()=>P.value==="error"?X.value:P.value==="warn"?O.value:P.value==="info"?x.value:null),Z=(0,t.computed)(()=>{const I={[`${p}__tip`]:!0,[`${p}__tip--${P.value}`]:!0,[`${p}--animate`]:!0};return P.value==="error"&&r.errorClass?I[`${r.errorClass}`]=!0:P.value==="warn"&&r.warnClass?I[`${r.warnClass}`]=!0:P.value==="info"&&r.infoClass&&(I[`${r.infoClass}`]=!0),I}),J=(0,t.computed)(()=>{const I={};return S&&S.value==="top"||!m()?I["padding-left"]="0px":T&&T.value&&(I["padding-left"]=me(T.value)),I}),j=(0,t.ref)();let ne="";(0,t.watch)([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([I,Y,ae,re])=>{j.value&&(I&&!fe(Y)?ne?a.show(j.value,Y,{...re,id:ne,type:ae},!0):ne=a.show(j.value,Y,{...re,type:ae},!0):a.hide(ne))});let H=null;const F=()=>{H||!j.value||(H=new IntersectionObserver(I=>{let Y=!1;for(let ae of I)if(ae.intersectionRatio>0){Y=!0,Y&&i.emit("appear",ae);break}Y||i.emit("disappear")}),H.observe(j.value))},L=()=>{!H||!j.value||(H.unobserve(j.value),H=null)};(0,t.watch)(()=>Se(r.appearListen),I=>{I?F():L()}),(0,t.onMounted)(()=>{Se(r.appearListen)&&F()}),(0,t.onUnmounted)(L);const G=()=>{if(!m())return null;const I=[],Y=i.slots?.label?.()??r.label,ae=(0,t.h)("div",{class:B.value},[Y]);if(I.push(ae),i.slots.fixedPreTip){const re=i.slots.fixedPreTip();I.push(re)}return(0,t.h)("div",{class:b.value,style:E.value},I)},Q=()=>{const I=[];if(i.slots.prepend){const Y=i.slots.prepend();I.push(Y)}if(i.slots.default){const Y=i.slots.default();I.push(Y)}if(i.slots.append){const Y=i.slots.append();I.push(Y)}if(i.slots.fixedTip){const Y=(0,t.h)("div",{class:[`${p}__fixed-tip`]},[i.slots.fixedTip()]);I.push(Y)}return(0,t.h)("div",{ref:j,class:N.value,style:R.value},I)},le=()=>{const I=W.value;return I?typeof I=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[I()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(I)]):null},D=()=>{const I=te.value;return I?typeof I=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[I()]):(0,t.h)("div",{class:"fox-item__tip--text"},[I]):null},q=()=>{if(!_())return null;const I=[],Y=le();Y&&I.push(Y);const ae=D();return ae&&I.push(ae),(0,t.h)("div",{class:Z.value,style:J.value},I)},K=()=>i.slots?.hide?.()??null;return()=>{const I=[],Y=[],ae=G();ae&&Y.push(ae);const re=Q();re&&Y.push(re);const se=(0,t.h)("div",{class:g.value},Y);I.push(se);const we=q();we&&I.push(we);const he=K();return he&&I.push(he),(0,t.h)("div",{class:C.value,style:v.value,prop:r.prop,ref:c},I)}}}}var{componentName:jc,create:Wc,scope:Yc}=ee("item"),Xc=Wc(Hc(jc,Yc,bt,!1)),Ut=Xc,Wr={span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function Qc(e,n){return{props:Wr,setup(a,l){const r=e,i=(0,t.computed)(()=>({[r]:!0,[`${r}__stretch`]:a.span==="stretch",[`${r}__${a.align}`]:!0})),o=Ze(),c=Pn();xn(!1);const s=(0,t.computed)(()=>{const d={};if(a.width)a.width!=="auto"&&(d.width=me(a.width));else if(c&&o){const h=Mn(o,!1),u=Rn(o,!1);if(h.value&&u){if(h.value.type==="grid"){const p=Fn(u,h.value,a.span,a.offset);Object.assign(d,p)}else if(h.value.type==="flow"){const p=zn(u,h.value,a.span,a.offset,a.width);Object.assign(d,p)}}}return a.gutter&&(d.gap=me(a.gutter)),d});return()=>{const d=[];if(l.slots.default){const h=l.slots.default();if(a.divide)for(let u=0;u<h.length;u++){if(u>0){const p=(0,t.h)("div",{class:{[`${r}__divide`]:!0}});d.push(p)}d.push(h[u])}else Reflect.apply([].push,d,h)}return(0,t.h)("div",{class:i.value,style:s.value},d)}}}}var{componentName:Gc,create:_c,scope:Zc}=ee("row-item"),Jc=_c(Qc(Gc,Zc)),Hn=Jc,eu=(0,t.defineComponent)({name:"ArrowDown",__name:"arrow-down",setup(e){return(n,a)=>((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 tu(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const r=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(r)},500)}var nu={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 lu(e,n,a,l=!1){return{props:{...nu},emits:["click"],setup(r,i){const o=(0,t.ref)(null),c=(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 A=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const g=r.highlightFilter;m.indexOf(g)!==-1&&(S.innerHTML=m.replace(new RegExp(g,"g"),`<span>${g}</span>`),S.class["is-highlight"]=!0,A=(0,t.h)(r.tag,S))}else if(typeof r.highlightFilter=="function"){const g=r.highlightFilter(m);g&&(S.innerHTML=g,S.class["is-highlight"]=!0,A=(0,t.h)(r.tag,S))}return A},h=m=>{i.emit("click",m)};let u="";const p=()=>{const m=o.value;if(!m)return;const S=m.clientWidth;tu(m,A=>{const g=m.innerHTML??"";fe(g)||A<S||(u?a?.show(m,g,{type:"text",id:u,showArrow:r.showArrow},!0):u=a?.show(m,g,{type:"text",showArrow:r.showArrow},!0)??"")})},y=()=>{u&&a?.hide(u)};let C=null;const k=m=>{C||(C=setTimeout(()=>{p(),C=null},r.showAfter??0))},v=m=>{C&&(clearTimeout(C),C=null),setTimeout(()=>{y()},r.hideAfter??0)},w=()=>{const m=o.value;m&&(m.addEventListener("mouseover",k),m.addEventListener("mouseleave",v))},f=()=>{const m=o.value;m&&(m.removeEventListener("mouseover",k),m.removeEventListener("mouseleave",v))};return(0,t.onMounted)(()=>{!Se(r.showOverflowTooltip)||!a||w()}),(0,t.onBeforeUnmount)(()=>{!Se(r.showOverflowTooltip)||!a||f()}),()=>{const m={onClick:h,class:c.value,style:s.value,ref:o};let S=null;if(Se(r.numberFormat)&&typeof i.slots.default=="function"){const g=i.slots.default();if(Array.isArray(g)&&g.length===1){const b=g[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const T=de(r.digits),E=de(r.decimalLength),B=Se(r.autoPadding);let N=`${g[0].children}`,R=N.split("").reverse().join("");R=mn(R,E,B,T,r.separator),N=R.split("").reverse().join(""),r.highlightFilter!==void 0&&(S=d(N,m)),S||(m.innerHTML=N,S=(0,t.h)(r.tag,m))}}}else{if(r.highlightFilter!==void 0&&typeof i.slots.default=="function"){const g=i.slots.default();if(Array.isArray(g)&&g.length===1){const b=g[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const T=`${g[0].children}`;S=d(T,m),S||(m.innerHTML=T,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 A=[];if(i.slots.mark){const g={[`${e}__mark-wrap`]:!0};r.type&&(g[`${e}__mark-wrap--${r.type}`]=!0);const b={},T=r.color;T&&(b.color=T);const E=(0,t.h)("view",{class:g,style:b},{default:i.slots.mark});A.push(E)}else{const g={[`${e}__mark`]:!0};r.type&&(g[`${e}__mark--${r.type??"default"}`]=!0);const b={},T=r.color;T&&(b["background-color"]=T);const E=(0,t.h)("view",{class:g,style:b});A.push(E)}if(r.divide){const g=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});A.push(g)}return A.push(S),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}},A)}}}}var{componentName:au,create:ou,scope:ru}=ee("text"),iu=ou(lu(au,ru,bt,!1)),vt=iu,su={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 cu(e,n,a=!1){return{props:{...su},emits:["update:visible"],setup(l,{emit:r,slots:i,expose:o}){const c=(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),u=(0,t.ref)(0),p=(0,t.ref)(l.placement),y=(0,t.ref)(!1),C=(0,t.ref)(!1),k=(0,t.ref)(null),v=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,w=(P,_,te,W,Z,J,j,ne=!0)=>{const H=document.documentElement.clientWidth||document.body.clientWidth,F=document.documentElement.clientHeight||document.body.clientHeight,L=P.split("-");let G=[];ne?L[0]==="top"?G=["top","bottom","right","left"]:L[0]==="bottom"?G=["bottom","top","right","left"]:L[0]==="left"?G=["left","top","bottom","right"]:L[0]==="right"&&(G=["right","top","bottom","left"]):G=[P[0]];const Q={top:null,right:null,bottom:null,left:null},le=[];for(let D=0;D<G.length;D++){const q=G[D];if(le[0]=q,L[1]&&(le[1]=L[1]),q==="top"){const K=te-j-l.arrowSize/2-l.offset;if(K>=0){Q.top=K;let I=0;L[1]==="start"?I=_:L[1]==="end"?I=_+W-J:I=_+W/2-J/2;const Y=H-I-J;Y<0?(I+=Y,m.value=-Y):m.value=0,Q.left=I<0?0:I;break}}else if(q==="bottom"){const K=te+Z+l.arrowSize/2+l.offset;if(K+j<=F){Q.top=K;let I=0;L[1]==="start"?I=_:L[1]==="end"?I=_+W-J:I=_+W/2-J/2;const Y=H-I-J;Y<0?(I+=Y,m.value=-Y):m.value=0,Q.left=I<0?0:I;break}}else if(q==="left"){const K=_-J-l.arrowSize/2-l.offset;if(K>=0){Q.left=K;let I=0;L[1]==="start"?I=te:L[1]==="end"?I=te+Z-j:I=te+Z/2-j/2,Q.top=I<0?0:I;break}}else if(q==="right"){const K=_+W+l.arrowSize/2+l.offset;if(K+J<=H){Q.left=K;let I=0;L[1]==="start"?I=te:L[1]==="end"?I=te+Z-j:I=te+Z/2-j/2,Q.top=I<0?0:I;break}}}return{bestPlacement:le.join("-"),bestInsetRect:Q}},f=()=>{const P=l.visible,_=l.autoFit;if(!Xe||P===!1)return;if(l.reference){const j=v(),ne=Gl(j);s.value=ne.x,d.value=ne.y,h.value=j.offsetWidth,u.value=j.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,d.value=l.referenceInset.top,h.value=l.referenceInset.right-l.referenceInset.left,u.value=l.referenceInset.bottom-l.referenceInset.top);const te=k.value.offsetWidth,W=k.value.offsetHeight,{bestPlacement:Z,bestInsetRect:J}=w(l.placement,s.value,d.value,h.value,u.value,te,W,_);p.value=Z,c.value=J},m=(0,t.ref)(0),S=Pe(()=>{f()},10),A=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([P])=>{A.value=P,P?(y.value=P,setTimeout(()=>{f(),C.value=!0},0)):C.value=!1});const g=(0,t.computed)(()=>A.value&&b.value),b=(0,t.ref)(!0),T=Pe(P=>{const _=P[0];_&&(b.value=_.isIntersecting)},10),E=new IntersectionObserver(T);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([P,_],[te,W])=>{!P&&!_||(setTimeout(()=>{f()},0),l.autoFit&&(te&&(Kt.unwatch(te,S),E.unobserve(te)),P&&(Kt.watch(P,S),E.observe(P))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Kt.unwatch(l.reference,S),E.unobserve(l.reference),E.disconnect())});const B=(0,t.computed)(()=>{const P={[e]:!0};return p.value.startsWith("top")?P["is-top"]=!0:p.value.startsWith("right")?P["is-right"]=!0:p.value.startsWith("bottom")?P["is-bottom"]=!0:p.value.startsWith("left")&&(P["is-left"]=!0),P[`is-${l.effect}`]=!0,!C.value&&g.value&&(P["is-opacity"]=!0),C.value&&g.value&&(P["is-show"]=!0),g.value||(P["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(P[`${l.customClass}`]=!0),P}),N=(0,t.computed)(()=>{const P={};return c.value.top!==null&&(P.top=`${c.value.top}px`),c.value.right!==null&&(P.right=`${c.value.right}px`),c.value.bottom!==null&&(P.bottom=`${c.value.bottom}px`),c.value.left!==null&&(P.left=`${c.value.left}px`),l.width&&(P.width=l.width),l.zIndex&&(P["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(P,l.customStyle),P}),R=()=>{A.value=!1,r("update:visible",!1)},U=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:R}):null,$=()=>{let P=null;return i.title?P=(0,t.h)("div",{class:`${e}__title`},{default:i.title}):l.title&&(P=(0,t.h)("div",{class:`${e}__title`},[l.title])),P},x=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),M=(0,t.computed)(()=>{const P={};return l.showArrow?(P.width=`${l.arrowSize}px`,P.height=`${l.arrowSize}px`,p.value==="top"?(P.left="50%",P.bottom="0",P.transform="translate(-50%, 50%)"):p.value==="top-start"?(P.left=`${l.arrowOffset+m.value}px`,P.bottom="0",P.transform="translate(-50%, 50%)"):p.value==="top-end"?(P.right=`${l.arrowOffset-m.value}px`,P.bottom="0",P.transform="translate(-50%, 50%)"):p.value==="right"?(P.left="0",P.top="50%",P.transform="translate(-50%, -50%)"):p.value==="right-start"?(P.left="0",P.top=`${l.arrowOffset}px`,P.transform="translate(-50%, 50%)"):p.value==="right-end"?(P.left="0",P.bottom=`-${l.arrowOffset}px`,P.transform="translate(-50%, 50%)"):p.value==="bottom"?(P.left="50%",P.top="0",P.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(P.left=`${l.arrowOffset+m.value}px`,P.top="0",P.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(P.right=`${l.arrowOffset-m.value}px`,P.top="0",P.transform="translate(-50%, -50%)"):p.value==="left"?(P.right="0",P.top="50%",P.transform="translate(50%, -50%)"):p.value==="left-start"?(P.right="0",P.top=`${l.arrowOffset}px`,P.transform="translate(50%, -50%)"):p.value==="left-end"&&(P.right="0",P.bottom=`-${l.arrowOffset}px`,P.transform="translate(50%, -50%)"),P):{display:"none"}}),O=()=>(0,t.h)("div",{class:x.value,style:M.value}),z=()=>{A.value===!1&&(y.value=!1)},X=P=>{if(!k.value||A.value===!1)return;const{relatedTarget:_}=P;k.value.contains(_)||(A.value=!1,r("update:visible",!1))};return o({doLayout:f}),()=>{if(!y.value)return null;const P=[],_=U();_&&P.push(_);const te=[],W=$();if(W&&te.push(W),i.default){const ne=i.default();te.push(ne)}const Z=O();Z&&te.push(Z);const J={ref:k,class:B.value,style:N.value,onAnimationend:z};l.leaveHide&&(J.onMouseleave=X);const j=(0,t.h)("div",J,{default:()=>te});return P.push(j),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>P})}}}}var{componentName:uu,create:du,scope:fu}=ee("popover-dialog"),mu=du(cu(uu,fu,!1)),jn=mu,pu={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 hu(e,n,a){return{props:{...Wr,...pu},emits:["click"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:o}=(0,ge.useFoxI18n)(n),c=o(l,["moreText"]),s=e,d=(0,t.computed)(()=>({[s]:!0}));function h(A){return A.props||{}}function u(A){return!!h(A).disabled}function p(A){return A.children??[]}const y=(0,t.ref)(),C=(0,t.computed)(()=>y.value?.$el??null),k=(0,t.ref)(!1),v=A=>{k.value=A},w=()=>{k.value=!k.value};function f(A,g){return()=>{g||(k.value=!1,h(A)?.onClick?.())}}function m(A,g){const b=p(A),T=u(A),E=f(A,T),B=[`${s}__dropdown-item`];return T&&B.push("is-disabled"),(0,t.h)("span",{class:B,onClick:E},b)}const S=A=>{const g=l.maxDisplayCount??A.length;if(g>=A.length)return A;const b=[],T=g-1;for(let U=0;U<T;U++)b.push(A[U]);const E=(i.moreIcon&&i.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(a),B=(0,t.h)(vt,{ref:U=>y.value=U,class:`${s}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:w},{default:()=>c.moreText.value,mark:()=>E});b.push(B);const N=[];for(let U=T;U<A.length;U++){const $=m(A[U],U);N.push($)}const R=(0,t.h)(jn,{placement:l.dropdownPlacement,"onUpdate:visible":v,visible:k.value,reference:C.value,"custom-class":`${s}__popover`},{default:()=>N});return b.push(R),b};return()=>{const{getChildren:A}=Ln(i?.default),g=S(A());return(0,t.h)(Hn,{class:d.value},{default:()=>g})}}}}var{componentName:gu,create:yu,scope:bu}=ee("buttons-item"),vu=yu(hu(gu,bu,eu)),Jl=vu,Su={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function ku(e,n){return{props:Su,setup(a,l){const r=Ze(),i=Pn();xn(!1);const o=(0,t.computed)(()=>i&&r?Mn(r,!1).value:null),c=e,s=(0,t.computed)(()=>({[c]:!0,[`${c}__gutter`]:o.value&&o.value.type!=="flow",[`${c}__stretch`]:a.span==="stretch"})),d=(0,t.computed)(()=>{const h={};if(a.width)a.width!=="auto"&&(h.width=me(a.width));else{const u=i&&r?Rn(r,!1):null;if(o.value&&u){if(o.value.type==="grid"){const p=Fn(u,o.value,a.span,a.offset);Object.assign(h,p)}else if(o.value.type==="flow"){const p=zn(u,o.value,a.span,a.offset,a.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:wu,create:Cu,scope:Nu}=ee("slot-item"),Au=Cu(ku(wu,Nu)),ea=Au;function Ie(e,n={}){return(0,t.h)(Ut,e,n)}function Bu(e,n,a,l,r){let i=[];Array.isArray(e)?i=e:i=[e];const o=[],c=n[0];if(Array.isArray(e)&&!Array.isArray(c)&&!c[r]){let s=n;for(let d=0;s&&d<i.length;d++){let h=i[d],u=s.find(p=>p[l]===h);if(!u)break;o.push(u[a])}return o}if(Array.isArray(c))for(let s=0;s<n.length&&s<i.length;s++){let d=n[s],h=i[s];const u=d.find(p=>p[l]===h);if(!u)break;o.push(u[a])}else{let s=n;for(let d=0;s&&d<i.length;d++){let h=i[d],u=s.find(p=>p[l]===h);if(!u)break;o.push(u[a]),s=u[r]}}return o}var Tu=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=tt(e,this.scope);return l===null?(console.error(`${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function Vu(){return new Tu(it())}var Eu={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 $u(e,n,a=!1){return{props:Eu,setup(l,{attrs:r,slots:i}){const o=Vu(),c=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([d,h])=>{c.value=await o.load(l.sourceType,d,h)},{immediate:!0});const s=(0,t.computed)(()=>{if(!Array.isArray(c.value)||c.value.length===0)return l.emptyText;let d=Bu(l.modelValue,c.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:Du,create:Iu,scope:qu}=ee("mapping"),Pu=Iu($u(Du,qu,!1)),Wn=Pu;function Me(e,n,a,l){const r="fox-browse-item";let i=null;a?i=(0,t.h)(Wn,{class:[`${r}__mapping`],source:a,modelValue:e,separator:l},{default:c=>(0,t.h)(vt,{class:[`${r}__text`]},{default:()=>c.text})}):i=(0,t.h)(vt,{class:[`${r}__text`]},{default:()=>e});const o={label:n.default,default:()=>i};return(0,t.h)(Ut,{class:[r]},o)}var Yr={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}},xu={...ye,...ve,...Yr};function Mu(e,n,a,l,r){return{props:xu,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y,exposeApi:C}=Be({componentName:e,get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),{toLocaleRefs:k}=(0,ge.useFoxI18n)(n),v=k(i,["placeholder"]),w=(0,t.ref)(!1),f=xe(i,"modelValue",null,y),m=e,S=(0,t.computed)(()=>({[m]:!0,"is-disabled":d.value,"is-readonly":u.value})),A=Te((0,t.computed)(()=>i.textAlign),"textAlign"),g=(0,t.computed)(()=>{const _={};return A.value&&(_["text-align"]=A.value),_}),b=_=>{let te=_.target.value;i.type==="digit"&&(te=ql(te,!0)),i.type==="number"&&(te=ql(te,!1)),i.maxLength&&te.length>Number(i.maxLength)&&(te=te.slice(0,Number(i.maxLength))),f.value=te,y("update:modelValue",te,_),y("change",te,_)};let T=xe(i,"hintText"),E=(0,t.ref)(!1);const B=_=>{let te=_.target.value;w.value=!0,fe(T.value)||(E.value=!0),y("focus",te,_)},N=_=>{setTimeout(()=>{E.value&&(E.value=!1),w.value=!1},0);let te=_.target.value;i.maxLength&&te.length>Number(i.maxLength)&&(te=te.slice(0,Number(i.maxLength))),y("blur",te,_)},R=(0,t.computed)(()=>({[`${m}__append`]:!0,"is-disabled":d.value,"is-readonly":u.value})),U=(0,t.computed)(()=>{const _={};return o.slots.append&&!$.value&&!X.value&&(_.display="none"),_}),$=(0,t.computed)(()=>ke(i.unit)>0),x=(0,t.computed)(()=>!X.value),M=(0,t.computed)(()=>({[`${m}__unit`]:!0,hidden:!x.value})),O=_=>{f.value="",y("update:modelValue","",_),y("change","",_),y("clear","")},z=(0,t.computed)(()=>Se(i.clearable)&&!d.value&&!u.value),X=(0,t.computed)(()=>{let _=ke(f.value)>0;return Se(i.clearable)&&_&&w.value}),P=(0,t.computed)(()=>({action:!0,hidden:!X.value}));return C({setDisabled:_=>{s.value=_},setReadonly:_=>{h.value=_}}),()=>{if(p.value==="on"&&(u.value||d.value))return l(f.value,o.slots);const _={class:S.value,style:g.value,type:i.type,maxlength:i.maxLength,placeholder:v.placeholder.value,disabled:d.value,readonly:u.value,value:f.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:b,onFocus:B,onBlur:N},te=[],W=(0,t.h)("input",_);te.push(W);const Z=[];if(z.value){const H=(0,t.h)(r,{class:["action-icon"]}),F=(0,t.h)("view",{class:P.value,onClick:O},{default:()=>[H]});Z.push(F)}if($.value){const H=(0,t.h)("view",{class:M.value},[i.unit]);Z.push(H)}const J=(0,t.h)("view",{class:R.value,style:U.value},{default:()=>Z});te.push(J);const j={default:()=>te};j.label=o.slots.default,j.prepend=o.slots.prepend,j.append=o.slots.append,j.fixedPreTip=o.slots.fixedPreTip,j.fixedTip=o.slots.fixedTip;const ne={...Qe(i,Yr),ref:c,hintText:T.value,hintVisible:E.value};return i.prop&&(ne.prop=`${i.prop}_item`),a(ne,j)}}}}var{componentName:Ru,create:zu,scope:Fu}=ee("input-item"),Lu=zu(Mu(Ru,Fu,Ie,Me,oe.CircleClose)),ta=Lu;function Xr(e,n=0){let a=`${e}`,l=a.indexOf(".");if(l==-1)return a;let r=l;for(let i=a.length-1;i>=l;i--)if(a.charAt(i)!="0"){r=i;break}return r-l<n?r=l+n+1:r!=l&&(r+=1),r>a.length?a=a.padEnd(r,"0"):a=a.substring(0,r),a}function Qr(e,n,a=20){return typeof n=="string"&&(n=de(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?Xr(lr(`${e}`,`${n}`)):Xr(Tl(`${e}`,ar(`${n}`),20))}function Ou(e,n=-1,a=!1,l=3,r=","){return mn(e,de(n),a,l,r)}function Gr(e,n,a,l,r=!0){if(e==="")return"";if(e=or(e),n=de(n),n==1)return e;if(l)e=Qr(e,n),a&&(e=="0"&&r?e=`${e}.`.padEnd(de(a)+2,"0"):e=Tl(e,1,de(a)));else{let i=-1*n;e=Qr(e,i)}return e}function _r(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=Se(n.minInclude),r=Vl(e,n.min);(l&&r==-1||!l&&(r==0||r==-1))&&(a.message="请输入不小于 {0} 的数值".replace("{0}",n.min),a.minValid=!1)}if(n.max!=null){let l=Se(n.maxInclude),r=Vl(e,n.max);(l&&r==1||!l&&(r==0||r==1))&&(a.maxValid=!1)}return a}var Zr={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]}},Ku={...ye,...ve,...Zr};function Uu(e,n,a,l,r){return{props:Ku,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y,exposeApi:C}=Be({componentName:e,get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),k=(0,t.ref)(!1),v=xe(i,"modelValue",null,y),w=(0,t.ref)("");(0,t.watch)([()=>v.value,()=>i.rates,()=>i.precision],([j,ne,H])=>{if(fe(j)){w.value="";return}const F=Gr(j,ne,H,!1);w.value!==F&&(w.value=F)},{immediate:!0});const f=(0,t.computed)(()=>{let j="";return k.value&&(j=w.value),j}),{t:m}=(0,ge.useFoxI18n)(n),S=(0,t.computed)(()=>{let j=i.placeholder??"";return!k.value&&!fe(w.value)?j=Ou(w.value,i.decimalLength,i.autoPadding,i.digits,i.separator):j=fe(j)?m(["placeholder"]):j,j}),A=e,g=(0,t.computed)(()=>({[A]:!0,[`${A}__placeholder`]:w.value.length>0,"is-disabled":d.value,"is-readonly":u.value})),b=Te((0,t.computed)(()=>i.textAlign),"textAlign"),T=(0,t.computed)(()=>{const j={};return b.value&&(j["text-align"]=b.value),j}),E=(0,t.ref)(""),B=(0,t.computed)(()=>{let j=E.value;return fe(j)&&(j=i.errorTip??""),j}),N=(0,t.ref)(""),R=(0,t.ref)(!1),U=j=>{let ne=j.target.value;if(fe(ne)){w.value="",v.value="",y("update:modelValue","",j),y("change","",j),Se(i.showTip)&&R.value&&(R.value=!1);return}if(ne.length>=2){let H=ne;if(H.charAt(0)=="-"&&(H=H.substring(1)),H.length>=2&&H.charAt(0)=="0"&&H.charAt(1)!="."){(0,t.triggerRef)(w);return}}if(ne!="-"){if(!yn(ne)){(0,t.triggerRef)(w);return}if(i.integerLength!=-1&&fr(ne)>Number(i.integerLength)){(0,t.triggerRef)(w);return}if(i.decimalLength&&i.decimalLength!=-1&&mr(ne)>Number(i.decimalLength)){(0,t.triggerRef)(w);return}let H=_r(ne,i);if(H.maxValid===!1){E.value=H.message,(0,t.triggerRef)(w);return}}else if(i.min!=null&&de(i.min)>=0){(0,t.triggerRef)(w);return}N.value=ne,Se(i.showTip)&&(R.value=ne.length>0),w.value=ne,v.value=Gr(ne,i.rates,i.precision,!0),y("update:modelValue",v.value,j),y("change",v.value,j)},$=j=>{if(k.value=!0,Se(i.showTip)){let ne=w.value;fe(ne)&&(ne=i.hintText),fe(ne)||(N.value=ne,R.value=!0)}E.value="",y("focus",v.value,j)},x=j=>{if(setTimeout(()=>{k.value=!1,Se(i.showTip)&&R.value===!0&&(R.value=!1)},0),!fe(w.value)){let ne=_r(w.value,i);if(ne.minValid===!1||ne.maxValid===!1){E.value=ne.message;return}}y("update:modelValue",v.value,j),y("blur",v.value,j)},M=(0,t.computed)(()=>({[`${A}__append`]:!0,"is-disabled":d.value,"is-readonly":u.value})),O=(0,t.computed)(()=>{const j={};return o.slots.append&&!z.value&&!W.value&&(j.display="none"),j}),z=(0,t.computed)(()=>ke(i.unit)>0),X=(0,t.computed)(()=>!W.value),P=(0,t.computed)(()=>({[`${A}__unit`]:!0,hidden:!X.value})),_=j=>{v.value="",y("update:modelValue","",j),y("change","",j),y("clear","")},te=(0,t.computed)(()=>Se(i.clearable)&&!d.value&&!u.value),W=(0,t.computed)(()=>{let j=ke(v.value)>0;return Se(i.clearable)&&j&&k.value}),Z=(0,t.computed)(()=>({action:!0,hidden:!W.value}));C({setDisabled:j=>{s.value=j},setReadonly:j=>{h.value=j}});const J=()=>v.value?S.value:v.value;return()=>{if(p.value==="on"&&(u.value||d.value))return l(J(),o.slots);let j={class:g.value,style:T.value,type:"digit",maxlength:i.maxLength,placeholder:S.value,disabled:d.value,readonly:u.value,value:f.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:U,onFocus:$,onBlur:x},ne=[],H=(0,t.h)("input",j);ne.push(H);let F=[];if(te.value){const le=(0,t.h)(r,{class:["action-icon"]}),D=(0,t.h)("view",{class:Z.value,onClick:_},{default:()=>[le]});F.push(D)}if(z.value){const le=(0,t.h)("view",{class:P.value},[i.unit]);F.push(le)}const L=(0,t.h)("view",{class:M.value,style:O.value},{default:()=>F});ne.push(L);const G={default:()=>ne};G.label=o.slots.default,G.prepend=o.slots.prepend,G.append=o.slots.append,G.fixedPreTip=o.slots.fixedPreTip,G.fixedTip=o.slots.fixedTip;const Q={...Qe(i,Zr),ref:c,errorTip:B.value,hintText:N.value,hintVisible:R.value,hintType:"number"};return i.prop&&(Q.prop=`${i.prop}_item`),a(Q,G)}}}}var{componentName:Hu,create:ju,scope:Wu}=ee("money-item"),Yu=ju(Uu(Hu,Wu,Ie,Me,oe.CircleClose)),na=Yu,la={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:Xu,create:Qu,scope:Gu}=ee("textarea"),_u=Qu({props:{...la},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=(0,ge.useFoxI18n)(Gu);const l=a(e,["placeholder"]),r=(0,t.ref)(),i=(0,t.computed)(()=>{const p=Xu;return{[p]:!0,[`${p}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&s(String(e.modelValue)),e.autosize&&(0,t.nextTick)(c)});const o=(0,t.computed)(()=>({textAlign:e.textAlign})),c=()=>{let p=r.value;p.style.height="auto";let y=p.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:C,minHeight:k}=e.autosize;C!==void 0&&(y=Math.min(y,C)),k!==void 0&&(y=Math.max(y,k))}y&&(console.info("----------- height",y),p.style.height=y+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(c)});const s=(p,y)=>{e.maxLength&&p.length>Number(e.maxLength)&&(p=p.substring(0,Number(e.maxLength))),n("update:modelValue",p,y),n("change",p,y)};return{...l,textareaRef:r,classes:i,styles:o,change:p=>{const y=p.target;s(y.value,p)},focus:p=>{e.disabled||e.readonly||n("focus",p)},blur:p=>{if(e.disabled||e.readonly)return;let y=p.target.value;s(y,p),n("blur",{value:y,event:p})}}}}),Zu=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Ju={key:0,class:"fox-textarea__limit"};function ed(e,n,a,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]=(...o)=>e.change&&e.change(...o)),onBlur:n[1]||(n[1]=(...o)=>e.blur&&e.blur(...o)),onFocus:n[2]||(n[2]=(...o)=>e.focus&&e.focus(...o)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Zu),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ju,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var Yn=ie(_u,[["render",ed]]);function td(e,n,a,l,r){return{props:{...ye,...ve,...la},emits:["update:modelValue","change","blur","focus","setValue"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y}=Be({componentName:e,get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),C=xe(i,"modelValue",null,y),k=S=>{C.value=S,y("update:modelValue",S,{}),y("change",S,{})};let v=xe(i,"hintText"),w=(0,t.ref)(!1);const f=S=>{fe(v.value)||(w.value=!0),y("focus",C.value,S)},m=S=>{setTimeout(()=>{w.value&&(w.value=!1)},0),y("blur",C.value,S)};return()=>{if(p.value==="on"&&(u.value||d.value))return l(C.value,o.slots);const S={...be(i,la),disabled:d.value,readonly:u.value,value:C.value,"onUpdate:modelValue":k,onFocus:f,onBlur:m},A=[],g=(0,t.h)(r,S);A.push(g);const b={default:()=>A};b.label=o.slots.default,b.prepend=o.slots.prepend,b.append=o.slots.append,b.fixedPreTip=o.slots.fixedPreTip,b.fixedTip=o.slots.fixedTip;const T={...be(i,ve,ye),ref:c};return i.prop&&(T.prop=`${i.prop}_item`),a(T,b)}}}}var{componentName:nd,create:ld,scope:ad}=ee("textarea-item"),od=ld(td(nd,ad,Ie,Me,Yn)),aa=od;function rd(e){return e===window}var qe=e=>{const n=(0,t.unref)(e);if(rd(n)){const a=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:a,bottom:l,width:a,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Jr=10;function ei(e,n){return e>n&&e>Jr?"horizontal":n>e&&n>Jr?"vertical":""}function Xn(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Qn(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(o=>{if(o.touches){const c=o.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const c=o;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=ei(e.offsetX,e.offsetY))}),start:(o=>{if(l(),o.touches){const c=o.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const c=o;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:a,state:e}}function nt(){const e=(0,t.ref)(0),n=(0,t.ref)(0),a=(0,t.ref)(0),l=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(0),o=(0,t.ref)(0),c=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(0),h=(0,t.ref)(""),u=()=>h.value==="vertical",p=()=>h.value==="horizontal",y=()=>{o.value=0,c.value=0,s.value=0,d.value=0,h.value="",a.value=0};return{move:(v=>{if(v.touches){const w=v.touches[0];o.value=w.clientX-e.value,c.value=w.clientY-n.value,r.value=w.clientX,i.value=w.clientY}else{const w=v;o.value=w.clientX-e.value,c.value=w.clientY-n.value,r.value=w.clientX,i.value=w.clientY}s.value=Math.abs(o.value),d.value=Math.abs(c.value),l.value=Date.now()-a.value,h.value||(h.value=ei(s.value,d.value))}),start:(v=>{if(y(),v.touches){const w=v.touches[0];e.value=w.clientX,n.value=w.clientY}else{const w=v;e.value=w.clientX,n.value=w.clientY}a.value=Date.now()}),reset:y,startX:e,startY:n,startTime:a,duration:l,moveX:r,moveY:i,deltaX:o,deltaY:c,offsetX:s,offsetY:d,direction:h,isVertical:u,isHorizontal:p}}var id=2e3,ti=()=>id++,lt={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:{}}},sd=(e,n)=>({components:n,props:{...lt},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:l}){const r=(0,t.reactive)({zIndex:0,showSlot:!0,closed:a.closeable});a.visible&&(r.zIndex=ti());const i=(0,t.computed)(()=>{const k=e,v=[k,`${k}--${a.position}`];return a.round&&v.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&v.push(`${k}--${a.position}--safebottom`),typeof a.popClass=="string"?v.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(w=>{v.push(w)}),v}),o=(0,t.computed)(()=>({zIndex:r.zIndex,transitionDuration:`${a.duration}s`,...a.style})),c=(0,t.computed)(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),s=()=>{l("update:visible",!0),a.zIndex?r.zIndex=a.zIndex:r.zIndex=ti(),a.destroyOnClose&&(r.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),a.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+a.duration*1e3)},h=k=>{l("click-pop",k)},u=k=>{k.stopPropagation(),l("click-close-icon",k),l("update:visible",!1)},p=k=>{l("click-overlay",k),a.closeOnClickOverlay&&l("update:visible",!1)},y=k=>{l("opend",k)},C=k=>{l("closed",k)};return(0,t.watch)(()=>a.visible,k=>{a.visible?s():d()}),(0,t.watch)(()=>a.closeable,k=>{r.closed=k}),{...(0,t.toRefs)(r),popStyle:o,transitionName:c,classes:i,onClick:h,onClickCloseIcon:u,onClickOverlay:p,onOpened:y,onClosed:C}}}),ni={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}},oa={...lt,...ni,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}},li=36;function cd(){return li}function ud(e){li=e}function ze(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ra(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function dd(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function st(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function ai(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var fd=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=tt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function md(){return new fd(it())}function oi(e,n,a){return!(ze(e,n)!==ze(e,a)||st(e,n)!==st(e,a))}function pd(e,n,a,l){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const r=[],i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let o=0;o<n.length&&o<a.length;o++){const c=n[o];let s=a[o].findIndex(d=>{if(i==="text")return ze(e,d)===c;if(i==="value"){let h=st(e,d);return h==null&&(h=ze(e,d)),h===c}else if(i==="item")return oi(e,d,c)});if(s==-1)break;r.push(s)}else{let o=a[0];for(let c=0;c<n.length;c++){const s=n[c];let d=o.findIndex(u=>{if(i==="text")return ze(e,u)===s;if(i==="value"){let p=st(e,u);return p==null&&(p=ze(e,u)),p===s}else if(i==="item")return oi(e,u,s)});if(d==-1)break;r.push(d);const h=ra(e,o[d]);if(!Array.isArray(h))break;o=h}}return r}function ri(e,n,a,l){if(a.length==0)return null;const r={texts:[],values:[],items:[]},i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let o=0;o<n.length&&o<a.length;o++){const c=a[o];let s=n[o];s<0&&s>=c.length&&(s=0);const d=c[s],h=ze(e,d);if(r.texts.push(h),r.items.push(d),i==="text")r.values.push(h);else if(i==="value"){let u=st(e,d);u==null&&(u=h),r.values.push(u)}else r.values.push(d)}else{let o=a[0];for(let c=0;c<n.length;c++){let s=n[c];s<0&&s>=o.length&&(s=0);const d=o[s],h=Object.assign({},d);h.children=null;const u=ze(e,d);if(r.texts.push(u),r.items.push(h),i==="text")r.values.push(u);else if(i==="value"){let p=st(e,d);p==null&&(p=u),r.values.push(p)}else r.values.push(h);if(!Array.isArray(d.children))break;o=d.children}}return r}function ii(e){return{text:e,value:e}}var hd=15,gd=300,yd=200,{create:bd}=ee("picker-column");function vd(e){e.stopPropagation()}function Sd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&vd(e)}var kd={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},...ni},wd=bd({props:kd,emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=(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)),o=b=>{const T=b+1;return T>=u.currIndex+8||T<=u.currIndex-8},c=(0,t.computed)(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${u.deg})`,top:`${i.value}px`})),s=b=>{const T=b+1;return`transform: rotate3d(1, 0, 0, ${-u.rotation*T}deg) translate3d(0px, 0px, 104px)`},d=(0,t.computed)(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${u.scrollDistance+i.value}px, 0)`})),h=(0,t.ref)(null),u=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),p=b=>ze(e,b),y=b=>st(e,b),C=nt(),k=()=>{u.transitionEndTrigger&&(u.transitionEndTrigger(),u.transitionEndTrigger=null)},v=(b,T=!1,E=!1)=>{if(u.currIndex=b,T){const B=()=>{u.moving=!1,n("update:modelValue",b),n("change",b)};E?u.transitionEndTrigger=B:B()}},w=(b,T,E)=>{let B=b+u.startDistance;if(T==="end"){const N=-(e.source.length-1)*e.itemHeight;B<N&&(B=N),B>0&&(B=0);let R=Math.abs(Math.round(-B/e.itemHeight));const U=-R*e.itemHeight,$=`${(R+1)*u.rotation}deg`;v(R,!0,E?E>0:!1),f(U,T,E,$)}else{let N=(-B/e.itemHeight+1)*u.rotation;const R=(e.source.length+1)*u.rotation,U=0;if(N=Math.min(Math.max(N,U),R),e.threeDimensional&&(N<U||N>R))return;f(B,null,void 0,`${N}deg`)}},f=(b=0,T,E=yd,B)=>{T==="end"?u.scrollTime=E:u.scrollTime=0,u.deg=B,u.scrollDistance=b},m=(b,T)=>(b=Math.abs(b/T)/.003*(b<0?-1:1),b),S=b=>{e.readonly||(u.startDistance=u.scrollDistance,C.start(b),u.transitionEndTrigger=null)},A=b=>{e.readonly||(u.moving=!0,C.move(b),C.isVertical()&&(u.moving=!0,Sd(b,!0)),w(C.deltaY.value,"",0))},g=()=>{if(e.readonly)return;const b=C.deltaY.value,T=C.duration.value;T<gd&&Math.abs(b)>hd?w(m(b,T),"end",de(e.swipeDuration)):w(b,"end",0)};return(0,t.watch)(()=>e.modelValue,b=>{const T=u.currIndex-b;T!==0&&(u.currIndex=b,u.startDistance=u.scrollDistance,w(T*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,b=>{if(u.currIndex>=b.length){const T=(b.length-1-u.currIndex)*e.itemHeight;u.startDistance=u.scrollDistance,w(T,"end",0)}}),(0,t.watch)(()=>e.visible,b=>{b===!1&&k()}),(0,t.onMounted)(()=>{w(-e.modelValue*e.itemHeight)}),{classes:a,styles:l,contentClasses:r,itemText:p,itemValue:y,...(0,t.toRefs)(u),roller:h,getItemText:ze,onTouchStart:S,onTouchMove:A,onTouchEnd:g,isHidden:o,setRollerStyle:s,touchRollerStyle:c,touchTileStyle:d,stopMomentum:k}}}),Cd={key:1,class:"fox-picker__item-tile"};function Nd(e,n,a,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]=(...o)=>e.onTouchStart&&e.onTouchStart(...o)),onTouchmove:n[1]||(n[1]=(...o)=>e.onTouchMove&&e.onTouchMove(...o)),onTouchend:n[2]||(n[2]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o)),onTouchcancel:n[3]||(n[3]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o)),onTransitionend:n[4]||(n[4]=(...o)=>e.stopMomentum&&e.stopMomentum(...o))},[(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,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${c}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(c)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(c))},(0,t.toDisplayString)(e.itemText(o)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",Cd,(0,t.toDisplayString)(e.itemText(o)),1))],64))),128))],6)],38)}var Ad=ie(wd,[["render",Nd]]),Ht=0,si="fox-overflow-hidden",ci=()=>Xe?document.body:{classList:[]},Bd=e=>[()=>{if(e())try{!Ht&&ci().classList.add(si),Ht++}catch{}},()=>{if(e()&&Ht)try{Ht--,!Ht&&ci().classList.remove(si)}catch{}}],Td={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:Vd,create:Ed}=ee("overlay"),$d=Ed({props:{...Td},emits:["click","update:visible"],setup(e,{emit:n}){const[a,l]=Bd(()=>e.lockScroll),r=(0,t.computed)(()=>({[Vd]:!0,[e.overlayClass]:!0})),i=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,c=>{c?a():l()}),{classes:r,style:i,onClick:c=>{n("click",c),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Dd(e,n,a,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)((...o)=>e.onClick&&e.onClick(...o),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var ct=ie($d,[["render",Dd]]),{componentName:Id,create:qd}=ee("popup"),Pd=qd(sd(Id,{FoxOverLay:ct,Close:oe.Close}));function xd(e,n,a,l,r,i){const o=(0,t.resolveComponent)("FoxOverLay"),c=(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)(o,(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)(c)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var Ce=ie(Pd,[["render",xd]]),Md=(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)(Ce,Qe({...e},{poppable:!1}),n):n?.default?.()??null}}),Rd=Md,{create:zd,componentName:ui,scope:Fd}=ee("picker"),Ld=zd({components:{Column:Ad,Wrapper:Rd},props:oa,emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:l}=(0,ge.useFoxI18n)(Fd),r=a(e,["title","cancelText","clearText","confirmText"]),i=(0,t.ref)(null),o=(0,t.ref)(cd());(0,t.watch)(()=>e.visible,M=>{M&&o.value<=0&&setTimeout(()=>{i.value&&(o.value=qe(i.value).height,ud(o.value))},50)});const c=(0,t.computed)(()=>({[ui]:!0})),s=(0,t.computed)(()=>{const M=[];return Array.isArray(e.popClass)?M.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&M.push(e.popClass),M.push(`${ui}__popup`),M.join(" ")}),d=md(),h=(0,t.ref)("singleColumn");let u=(0,t.ref)([]);const p=(0,t.computed)(()=>{if(typeof e.sourceFilter=="function"){const M=[];for(let O=0;O<u.value.length;O++){const z=u.value[O];if(Array.isArray(z)){const X=z.filter(e.sourceFilter);M.push(X)}}return M}return u.value});(0,t.watch)([()=>e.source,()=>e.params],async([M,O])=>{if(M){let z=await d.load("picker",M,O);if(z.length>0){let X=z[0];if(Array.isArray(X)){if(typeof X[0]=="string"){let P=z,_=[];P.forEach(te=>{let W=te.map(Z=>ii(Z));_.push(W)}),u.value=_}else u.value=z;h.value="multipleColumn"}else if(typeof X=="string"){let P=z,_=[],te=P.map(W=>ii(W));_.push(te),u.value=_,h.value="singleColumn"}else{const P=ra(e,X);Array.isArray(P)?(h.value="cascade",u.value=[z]):(h.value="singleColumn",u.value=[z])}}else u.value=[]}},{immediate:!0});const y=(0,t.ref)([]),C=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),k=(0,t.ref)([]);let v=null;const w=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>p.value],([M,O])=>{let z=pd(e,M,O,h.value);if(!De(z,w.value)){w.value=z,v||(v=z?[...z]:[]);let X=ri(e,z,O,h.value);X&&(y.value=X.texts,De(C.value,X.values)||(C.value=X.values),De(k.value,X.items)||(k.value=X.items),n("update:text",y.value))}});let f="";const m=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,M=>{m.value=M,M&&(f="active",w.value.length>0&&(v=[...w.value]))});const S=M=>{let O=ai(e,M);return $e(O)?O.defaultIndex??0:0},A=M=>{if(e.readonly===!0)return!0;let O=ai(e,M);return $e(O)?O.readonly??!1:!1},g=(M,O)=>{let z=w.value;z[M]=O;for(let P=0;P<M;P++)z[P]==null&&(z[P]=S(P));if(h.value==="cascade")for(let P=M+1;P<T.value.length;P++){let _=S(P);P<z.length?z[P]=_:z.push(_)}else for(let P=z.length;P<T.value.length;P++){let _=S(P);z.push(_)}w.value=z;let X=ri(e,z,p.value,h.value);X&&(y.value=X.texts,C.value=X.values,k.value=X.items)},b=M=>M<w.value.length?w.value[M]:S(M),T=(0,t.computed)(()=>{if(p.value.length==0)return[];if(h.value=="singleColumn"||h.value=="multipleColumn")return p.value;let M=[],O=0,z=p.value[0],X=0;for(;;){let P=z.map(W=>{let Z=Object.assign({},W);return dd(e,Z,null),Z});M.push(P),O>=w.value.length?X=0:X=w.value[O],(X<0||X>=z.length)&&(X=0);let _=z[X];const te=ra(e,_);if(!Array.isArray(te))break;z=te,O++}return M}),E=(0,t.computed)(()=>de(+e.visibleItemCount-1)/2*o.value),B=(M=!1)=>{if(e.readonly===!0){M&&n("update:visible",!1);return}let O=p.value.length-1;for(;O>=0&&!(w.value[O]===null||w.value[O]===void 0);O--);if(O>=0&&g(O,0),h.value==="singleColumn"){let z=C.value.length>0?C.value[0]:"",X=k.value.length>0?k.value[0]:null;n("update:modelValue",z),n("update:text",y.value),n("change",z,X),M&&(n("confirm",z),n("update:visible",!1))}else n("update:modelValue",C.value),n("update:text",y.value),n("change",C.value,k.value),M&&(n("confirm",C.value),n("update:visible",!1))},N=(M,O)=>{f!=="close"&&(g(M,O),e.isAutoBackFill&&B(!m.value))},R=()=>{f==="active"&&(f="confirm",v=Array.isArray(w.value)?[...w.value]:[],B(!0))},U=()=>{h.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),w.value=[],v=null};return{...r,pickerLineRef:i,classes:c,popClasses:s,columns:T,dataType:h,show:m,itemHeight:o,top:E,isReadonly:A,getIndex:b,change:N,close:()=>{if(f==="active"){if(f="close",v===null||v.length===0)U();else{if(Array.isArray(v))for(let M=0;M<v.length;M++)g(M,v[M]);B(!1)}n("close"),n("update:visible",!1)}},confirm:R,clear:()=>{if(f==="active"){if(f="clear",e.readonly===!0){n("update:visible",!1);return}U(),v=null,n("clear",""),n("update:visible",!1)}}}}}),Od={key:0,class:"fox-picker__bar"},Kd={class:"fox-picker__title"},Ud={class:"fox-picker__bar__action"},Hd={class:"fox-picker__column"};function jd(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Column"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(c,{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",Od,[(0,t.createElementVNode)("view",Kd,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Ud,[(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",Hd,[(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)(o,{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 jt=ie(Ld,[["render",jd]]),Wd={...ye,...ve,...oa,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,a,l,r,i,o,c=!0){return{props:Wd,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:u,disabled:p,innerReadonly:y,readonly:C,browse:k}=Ve(s),{emitEvent:v,exposeApi:w}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return C.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,ge.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),A=xe(s,"modelValue",null,v),g=(0,t.ref)([]),b=(0,t.computed)(()=>Array.isArray(g.value)?g.value.join(s.separator):g.value),T="fox-input-item",E=(0,t.computed)(()=>({[T]:!0,"is-disabled":p.value,"is-readonly":C.value})),B=Te((0,t.computed)(()=>s.textAlign),"textAlign"),N=(0,t.computed)(()=>{const L={};return B.value&&(L["text-align"]=B.value),L}),R=(0,t.ref)(!1),U=()=>{R.value=!0},$=L=>{R.value=L},x=L=>{A.value=L,v("update:modelValue",L)},M=(L,G)=>{v("change",L,G)},O=L=>{let G=L.target.value;S.value=!0,v("focus",G,L)},z=L=>{setTimeout(()=>{S.value=!1},0);let G=L.target.value;s.maxLength&&G.length>Number(s.maxLength)&&(G=G.slice(0,Number(s.maxLength))),v("blur",G,L)},X=L=>{g.value=L,Array.isArray(L)&&L.length===0?v("update:text",L[0]):v("update:text",L)},P=(0,t.computed)(()=>({[`${T}__append`]:!0,"is-disabled":p.value,"is-readonly":C.value})),_=(0,t.computed)(()=>ke(s.unit)>0),te=(0,t.computed)(()=>ke(s.unit)>0&&!S.value),W=(0,t.computed)(()=>({hidden:!te.value})),Z=L=>{A.value="",v("update:modelValue","",L),v("change","",L),v("clear","")},J=(0,t.computed)(()=>s.clearable&&!p.value&&!C.value),j=(0,t.computed)(()=>ke(A.value)>0&&S.value),ne=L=>{j.value?Z(L):U()},H=(0,t.computed)(()=>j.value&&J.value?r:i),F=(0,t.computed)(()=>({action:!0}));return w({setDisabled:L=>{u.value=L},setReadonly:L=>{y.value=L}}),()=>{if(k.value==="on"&&(C.value||p.value))return l(b.value,d.slots);const L={class:E.value,style:N.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:U,onFocus:O,onBlur:z};c&&(L.disabled=!0);const G=[],Q=(0,t.h)("input",L);G.push(Q);const le=[],D=(0,t.h)(H.value,{class:["action-icon"]}),q=(0,t.h)("view",{class:F.value,onClick:ne},{default:()=>[D]});if(le.push(q),_.value){const se=(0,t.h)("view",{class:W.value},[s.unit]);le.push(se)}const K=(0,t.h)("view",{class:P.value},{default:()=>le});G.push(K);const I={default:()=>G};I.label=d.slots.default,I.prepend=d.slots.prepend,I.append=d.slots.append,I.fixedPreTip=d.slots.fixedPreTip,I.fixedTip=d.slots.fixedTip;const Y=be(s,oa);Y.disabled=!1,Y.readonly=p.value||C.value,Y.visible=R.value,Y["onUpdate:visible"]=$,Y.modelValue=A.value,Y["onUpdate:modelValue"]=x,Y.text=g.value,Y["onUpdate:text"]=X,Y.onChange=M;const ae=(0,t.h)(o,Y);I.hide=()=>[ae];const re=be(s,ve,ye);return s.prop&&(re.prop=`${s.prop}_item`),re.ref=h,a(re,I)}}}}var{componentName:Xd,create:Qd,scope:Gd}=ee("picker-item"),_d=Qd(Yd(Xd,Gd,Ie,Me,oe.CircleClose,oe.ArrowRight,jt,!1)),ia=_d,Zd=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:a}){return()=>e.poppable?(0,t.h)(Ce,{...a},n):n?.default?.()??null}}),Jd=Zd,Gn=(e,n,a)=>e.map(l=>{const{value:r="value",text:i="text",children:o="children"}=a??{},{[r]:c,[i]:s,[o]:d,...h}=l,u={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:c,text:s,children:d,_parent:n};return u.children&&u.children.length&&(u.children=Gn(u.children,u,a)),u}),di=(e,n)=>{let a=0,l;for(;(l=e[a++])&&n(l)!==!0;)l.children&&l.children.length&&di(l.children,n)},ef={topId:null,idKey:"id",pidKey:"pid",sortKey:""},tf=(e,n)=>{const{topId:a,idKey:l,pidKey:r,sortKey:i}={...ef,...n||{}};let o=[],c={};return e.forEach(s=>{s={...s};const{[l]:d,[r]:h}=s,u=c[h]=c[h]||[];!o.length&&h===a&&(o=u),u.push(s),s.children=c[d]||(c[d]=[])}),i&&Object.keys(c).forEach(s=>{c[s].length>1&&c[s].sort((d,h)=>d[i]-h[i])}),c=null,o},sa={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}},fi=(e,n)=>n[e.textKey],Wt=(e,n)=>n[e.valueKey],nf=(e,n)=>n[e.visibleKey],mi=(e,n)=>n[e.disabledKey],lf=(e,n)=>{const a=n[e.doitKey];return Se(a)},af=(e,n)=>{const a=n[e.numKey];return a==null?null:de(n[a])},pi=(e,n,a)=>{const l=e.itemOptions;return typeof l=="function"?l(n,a):l||null};function of(e,n,a,l,r,i=!1){return{props:sa,emits:["update:modelValue","change","click"],setup(o,{slots:c,emit:s}){const d=(0,t.computed)(()=>{const D={};return D[`${e}`]=!0,D}),h=(0,t.computed)(()=>{const D={};return D[`${e}__titles`]=!0,D[`${o.direction}`]=!0,o.align&&(D[`${o.align}`]=!0),o.scroll===!0&&(D.scrollable=!0),o.shape&&(D[`${o.shape}`]=!0),o.showScrollArrow?(j.value===!0&&(D["has-left-scroll-arrow "]=!0),ne.value===!0&&(D["has-right-scroll-arrow "]=!0)):o.showQuickNavigation&&(D["has-navigation"]=!0),D}),u=(0,t.computed)(()=>({})),p=(0,t.computed)(()=>{if(!o.gutter)return 0;const D=ue(o.gutter);return D<=0?0:D}),y=(0,t.ref)(o.modelValue);(0,t.watch)(()=>o.modelValue,D=>{y.value!==D&&(y.value=D,X(!1))});const C=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),k=(0,t.computed)(()=>{const D={};return w.value||(D.display="none"),D}),v=(0,t.ref)(),w=(0,t.ref)(!1),f=()=>{m(!w.value)},m=D=>{const q=D;q?(w.value=q,setTimeout(()=>{C.value["fox-tabs-bar__popup--show"]=!0,C.value["fox-tabs-bar__popup--hide"]=!1},0)):(C.value["fox-tabs-bar__popup--show"]=!1,C.value["fox-tabs-bar__popup--hide"]=!0,v.value?v.value.addEventListener("transitionend",()=>{w.value=!1},{once:!0}):setTimeout(()=>{w.value=!1},0))},S=(0,t.ref)(),A=(0,t.ref)([]),g=(D,q)=>{A.value[q]=D},b=D=>q=>{g(q,D)},T=(D,q)=>{const K=S.value,I=A.value;if(!K||!I||!I[D])return;const Y=I[D];let ae=0;o.direction==="vertical"?ae=Y.offsetTop-(K.offsetHeight-Y.offsetHeight)/2:ae=Y.offsetLeft-(K.offsetWidth-Y.offsetWidth)/2,E(K,ae,q?0:.3,o.direction)},E=(D,q,K,I)=>{let Y=0;const ae=I==="horizontal"?D.scrollLeft:D.scrollTop,re=K===0?1:Math.round(K*1e3/16);function se(){I==="horizontal"?D.scrollLeft+=(q-ae)/re:D.scrollTop+=(q-ae)/re,++Y<re&&Ue(se)}se()},B=(D,q)=>{const K=Wt(o,D),I={};return I[`${e}__titles-item`]=!0,I.disabled=mi(o,D),I.active=K===y.value,o.shape&&(I[`${o.shape}`]=!0),o.ellipsis&&(I.ellipsis=!0),q&&(q.class&&(I[`${q.class}`]=!0),q.disabled===!0&&(I.disabled=q.disabled)),I},N=(D,q)=>{const K={};if(p.value>0){const I=Math.abs(p.value/2);o.direction==="vertical"?(K["margin-top"]=`${I}px`,K["margin-bottom"]=`${I}px`):(K["margin-left"]=`${I}px`,K["margin-right"]=`${I}px`)}return q&&q.style&&Object.assign(K,q.style),K},R=(D,q)=>`${Wt(o,D)??q}`,U=(D,q)=>{const K=Wt(o,D),I={};I[`${e}__popup-item`]=!0,I.disabled=mi(o,D),I.active=K===y.value,o.shape&&(I[`${o.shape}`]=!0);const Y=pi(o,D,q);return Y&&Y.disabled===!0&&(I.disabled=Y.disabled),I},$=(0,t.computed)(()=>(o.data??[]).filter(D=>nf(o,D)!==!1)),x=(D,q)=>{const K=Wt(o,D);if(s("click",D,q),y.value==K)return;const I=()=>{y.value=K,o.scroll&&T(q,!1),s("update:modelValue",K),s("change",D,q)};if(typeof o.beforeChange=="function"){const Y=o.beforeChange(D,q);dt(Y)?Y.then(ae=>{ae!==!1&&I()}).catch(()=>{I()}):Y!==!1&&I()}else I()},M=(D,q)=>function(){x(D,q)},O=(D,q)=>{x(D,q),m(!1)},z=(D,q)=>function(){O(D,q)},X=D=>{if(!Array.isArray(o.data)||!o.scroll)return;J()&&G();const q=o.data.findIndex(K=>Wt(o,K)===y.value);q!==-1&&T(q,D)},P=()=>{J()||Q()};(0,t.watch)(()=>o.data,()=>{setTimeout(X,0)}),(0,t.onMounted)(()=>{X(!0)}),(0,t.onBeforeUnmount)(()=>{P()});const _=(D,q)=>{if(c.item)return c.item({item:D,index:q});const K=pi(o,D,q),I=[];if(c.text){const ae=c.text({item:D,index:q});I.push(ae)}else{const ae=[];if(K?.doit===!0||lf(o,D)){const he=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ae.push(he)}const re=K?.num??af(o,D);if(re){let he="";const Le=de(re);Le>=100?he="99+":he=`${Le}`;const un=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[he]);ae.push(un)}const se={class:`${e}__titles-item-text`};ae.push(fi(o,D));const we=(0,t.h)("view",se,ae);I.push(we)}const Y=(0,t.h)("view",{class:`${e}__titles-item-line`});return I.push(Y),(0,t.h)("view",{ref:b(q),class:B(D,K),style:N(D,K),key:R(D,q),onClick:M(D,q)},I)},te=()=>{const D=c.default?c.default():[];if(D.length===0)for(let q=0;q<$.value.length;q++){const K=$.value[q],I=_(K,q);D.push(I)}return(0,t.h)("view",{ref:S,class:h.value,style:u.value},D)},W=()=>{let D=null;return c.navigation?D=c.navigation():D=(0,t.h)(a),(0,t.h)("view",{class:`${e}__navigation`,onClick:f},[D])},Z=()=>{const D=[];for(let q=0;q<$.value.length;q++){const K=$.value[q];let I=null;c.popupItem?I=c.popupItem({item:K,index:q}):I=fi(o,K);const Y=(0,t.h)("view",{class:U(K,q),key:R(K,q),onClick:z(K,q)},[I]);D.push(Y)}return(0,t.h)("view",{class:C.value,style:k.value},D)},J=()=>o.showScrollArrow&&o.direction=="horizontal",j=(0,t.ref)(!1),ne=(0,t.ref)(!1),H=D=>{const q=S.value,K=A.value;if(!(!q||!K))if(D==="left"){const I=q.scrollLeft;let Y=I;for(let ae=0;ae<K.length;ae++){const re=K[ae].offsetLeft;if(I-re<0)break;Y=re}E(q,Y,.3,"horizontal")}else{const I=q.scrollLeft;let Y=I,ae=q.offsetWidth;for(let re=K.length-1;re>=0;re--){const se=K[re].offsetLeft+K[re].offsetWidth;if(se-I<q.offsetWidth){Y+=ae-se;break}ae=se}E(q,Y,.3,"horizontal")}},F=Pe(()=>{const D=S.value;if(!D)return;let q=D.scrollLeft>0;q!==j.value&&(j.value=q);let K=D.scrollWidth-D.scrollLeft>D.offsetWidth;K!==ne.value&&(ne.value=K)},50),L=D=>{F()},G=()=>{const D=S.value;D&&(F(),D.addEventListener("scroll",L))},Q=()=>{const D=S.value;D&&D.removeEventListener("scroll",L)},le=D=>{if(D==="left"&&j.value!==!0||D==="right"&&ne.value!==!0)return null;let q=null;return D==="left"?c.leftArrow?q=c.leftArrow():q=(0,t.h)(l):c.rightArrow?q=c.rightArrow():q=(0,t.h)(r),(0,t.h)("view",{class:[`${e}__scroll-arrow`,D],onClick:()=>{H(D)}},[q])};return()=>{const D=[],q=te();if(D.push(q),J()){const K=le("left");K&&D.push(K);const I=le("right");I&&D.push(I)}else if(o.showQuickNavigation){const K=W();D.push(K);const I=Z();D.push(I)}return(0,t.h)("view",{class:d.value},D)}}}}var{create:rf,componentName:sf,scope:cf}=ee("tabs-bar"),uf=rf(of(sf,cf,oe.MoreH,oe.Left,oe.Right,!1)),Yt=uf,hi=Symbol("TabsStatesKey"),ca={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]}},df=15,ff=300,mf=200;function pf(e,n,a=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*a}function gi(e,n=0,a,l,r=mf){a==="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 hf=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,a,l=1,r){this.onStart=e,this.onMove=n,this.onEnd=a,this.momentumReduceRatio=l,this.isTouch=r??Xn()}open(e){this.el=e;const n=Qn(),a=(l,r,i)=>{const o={delta:l,direction:r,type:i};this.onMove(o)};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}a(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<ff&&Math.abs(l)>df?(l=pf(l,r,this.momentumReduceRatio),a(l,this.direction,"end")):a(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,a,l=1,r){return new hf(e,n,a,l,r)}function yf(e,n,a=!1){return{props:ca,emits:["update:modelValue","change"],setup(l,{emit:r,slots:i,expose:o}){const c=(0,t.shallowRef)([]),s={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 E={name:T};s.current.value===T&&(E.loaded=!0),c.value.push(E),(0,t.triggerRef)(c)},remove:T=>{const E=c.value.findIndex(B=>B.name===T);E!==-1&&c.value.splice(E,1)},isLoaded:T=>{if(!l.lazy)return!0;const E=c.value.findIndex(B=>B.name===T);return E!==-1?s.current.value?c.value[E].loaded??!1:E===0:!1}};(0,t.provide)(hi,s);const d=T=>{const E=c.value.findIndex(B=>B.name===T);E!==-1&&(c.value[E].loaded=!0,(0,t.triggerRef)(c))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([T,E])=>{s.current.value!==T&&(s.current.value=T??"",d(T??"")),s.direction.value!==E&&(s.direction.value=E)});const h=(0,t.ref)(null),u=(0,t.ref)(null),p=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),y=(0,t.computed)(()=>{const T={};if(l.width){const E=me(l.width);E&&(T.width=E)}if(l.height){const E=me(l.height);E&&(T.height=E)}return T});let C=!0;const k=(0,t.computed)(()=>{const T={};if(l.transition===!1)return T;const E=c.value.length;if(E<=0)return T;const B=c.value.findIndex(N=>N.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(T.height=`${E*s.tabHeight.value}px`,B!==-1&&(T.transform=`translate(0, -${B*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(T.width=`${E*s.tabWidth.value}px`,B!==-1&&(T.transform=`translate(-${B*s.tabWidth.value}px, 0)`)),C&&(C=!1,T.transition="transform 0s ease"),T}),v={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},w=T=>{const E=c.value.length,B=c.value.findIndex(N=>N.name===s.current.value);v.moved=0,T.direction==="vertical"?(v.min=-1*(s.tabHeight.value*(E-1)+s.tabHeight.value/4),v.max=s.tabHeight.value/4,v.start=-B*s.tabHeight.value,v.itemDistance=s.tabHeight.value):(v.min=-1*(s.tabWidth.value*(E-1)+s.tabWidth.value/4),v.max=s.tabWidth.value/4,v.start=-B*s.tabWidth.value,v.itemDistance=s.tabWidth.value)},f=T=>{const E=u.value;if(!E)return;let B=v.start+T.delta;if(B>v.max?B=v.max:B<v.min&&(B=v.min),T.type==="move")gi(E,B,"move",T.direction,300);else if(T.type==="end"){let N=Math.floor(Math.abs(B)*1/v.itemDistance);const R=Math.abs(B)%v.itemDistance;v.start>B?R>=v.itemDistance*v.triggerAutoMoveRatio&&(N+=1):R>v.itemDistance-v.itemDistance*v.triggerAutoMoveRatio&&(N+=1),B=-1*N*v.itemDistance,gi(E,B,"end",T.direction,300),v.moved=B;const U=c.value[N].name;s.current.value=U??"",d(U??""),r("update:modelValue",U)}},m=()=>{},S=()=>{if(!h.value)return;const T=In(h.value);s.tabWidth.value=T.width,s.tabHeight.value=T.height},A=Cn(S,250);let g=null,b=null;return(0,t.onMounted)(()=>{l.transition!==!1&&h.value&&(S(),window.ResizeObserver&&(b=new window.ResizeObserver(A),b.observe(h.value)),l.draggle&&(g=gf(w,f,m),g.open(u.value)))}),(0,t.onBeforeUnmount)(()=>{b&&(b.disconnect(),b=null),g&&g.close()}),o({doLayout(){S()}}),()=>{const T=(0,t.h)("view",{class:`${e}__panes`,style:k.value,ref:u},[i?.default?.()]);return(0,t.h)("view",{class:p.value,style:y.value,ref:h},[T])}}}}var{create:bf,componentName:vf,scope:Sf}=ee("tabs-container"),kf=bf(yf(vf,Sf,!1)),Xt=kf,wf={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 Cf(e,n,a){return{props:wf,setup(l,{emit:r,slots:i}){const o=(0,t.inject)(hi);(0,t.onMounted)(()=>{o.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{o.remove(l.paneKey)});const c=(0,t.computed)(()=>{const h=[e];return o.direction.value==="vertical"?h.push("is-vertical"):h.push("is-horizontal"),o.transition===!1?h.push("is-no-transition"):h.push("is-transition"),h}),s=(0,t.computed)(()=>{const h={};return o.transition===!1?(o.current.value!==l.paneKey&&(h.display="none"),h):(o.direction.value==="vertical"&&o.tabHeight.value>0?h.height=`${o.tabHeight.value}px`:o.tabWidth.value>0&&(h.width=`${o.tabWidth.value}px`),h)}),d=(0,t.computed)(()=>l.loaded!=null?Se(l.loaded):o.isLoaded(l.paneKey));return()=>{let h=[];if(d.value)h=i?.default?.()??[];else if(i.empty)h=i.empty();else{const u={class:`${e}__empty-icon`},p=(0,t.h)(l.emptyIcon??a,u),y=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),C=(0,t.h)("view",{class:`${e}__empty`},[p,y]);h.push(C)}return(0,t.h)("view",{class:c.value,style:s.value,prop:l.paneKey},h)}}}}var{create:Nf,componentName:Af,scope:Bf}=ee("tabs-pane"),Tf=Nf(Cf(Af,Bf,oe.Loading)),_n=Tf,yi=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=Gn(e,null,this.config)}updateChildren(e,n){n?n.children=Gn(e,n,this.config):this.nodes=Gn(e,null,this.config)}getNodeByValue(e){let n;return di(this.nodes,a=>{if(a.value===e)return n=a,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let a=this.nodes;for(;a&&a.length;){const l=a.find(r=>r.value===e[r.level]);if(!l)break;n.push(l),a=l.children}return n}isLeaf(e,n){const{leaf:a,children:l}=e,r=Array.isArray(l)&&!!l.length;return a||!r&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:a}=e;return Array.isArray(a)&&!!a.length}},{create:Vf,scope:Ef}=ee("cascader-pane"),$f=Vf({components:{Loading:oe.Loading,Checklist:oe.Checklist,TabsBar:Yt,TabsContainer:Xt,TabsPane:_n},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:a}=(0,ge.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)(),o=(0,t.ref)(!1),c=(0,t.ref)(e.modelValue),s=(0,t.ref)(new yi([],{})),d=(0,t.ref)([]),h=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),u=(0,t.computed)(()=>o.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((m,S)=>({text:m.selectedNode?m.selectedNode.text:a("select"),value:S}))),p=new Map;let y;const C=async()=>{p.clear(),d.value=[],r.value=0,o.value=!1,y=null;let{options:m}=e;l.value.convertConfig&&(m=tf(m,l.value.convertConfig)),s.value=new yi(m,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),h.value&&!s.value.nodes.length&&await v({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:s.value.nodes,selectedNode:null}],k(!h.value)},k=async(m=!0)=>{const S=c.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 A=S;if(h.value&&Array.isArray(S)&&S.length){A=[];let g=s.value.nodes.find(b=>b.value===S[0]);g&&(A=[g.value],o.value=!0,await v(await S.slice(1).reduce(async(b,T)=>{const E=await b;await v(E);const B=E&&E?.children?.find(N=>N.value===T);return B&&A.push(T),Promise.resolve(B)},Promise.resolve(g))),o.value=!1)}A.length&&S===e.modelValue&&s.value.getPathNodesByValue(A).map((g,b)=>{r.value=b,f.handleNode(g,m)})},v=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 A=p.get(m);A||(A=new Promise(b=>{l.value.lazyLoad?.(m,b)}),p.set(m,A));const g=await A;Array.isArray(g)&&g.length>0?s.value.updateChildren(g,S):m.leaf=!0,m.loading=!1,p.delete(m)},w=m=>{const S=m.map(A=>A.value);c.value=S,n("change",S,m),n("pathChange",m),n("update:modelValue",S)},f={async handleNode(m,S){const{disabled:A,loading:g}=m;if(!(!S&&A||!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 b=d.value.map(T=>T.selectedNode);w(b),n("pathChange",b)}return}if(s.value.hasChildren(m,h.value)){const b=m.level+1;d.value[r.value].selectedNode=m,d.value=d.value.slice(0,b),d.value.push({nodes:m.children||[],selectedNode:null}),r.value=b,S||n("pathChange",d.value.map(T=>T.selectedNode));return}y=m,!g&&(await v(m),y===m&&(d.value[r.value].selectedNode=m,f.handleNode(m,S)))}},handleTabChange(m,S){y=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:a("select")},isSelected(m,S){return m.selectedNode&&m.selectedNode.value===S.value}};return(0,t.watch)([l,()=>e.options],()=>{C()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,m=>{De(m,c.value)||(c.value=m,k(!h.value))}),(0,t.watch)(()=>e.visible,m=>{m&&Array.isArray(c.value)&&c.value.length>0&&k(),m&&i.value&&setTimeout(()=>{i.value.doLayout()},0)}),{panes:d,panesTitles:u,initLoading:o,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 xf(e,n,a,l,r,i){const o=(0,t.resolveComponent)("TabsBar"),c=(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)(o,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),(0,t.createVNode)(h,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=u=>e.tabsCursor=u)},{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,(u,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)(u.nodes,y=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:y.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(u,y),disabled:y.disabled}]),"aria-checked":e.isSelected(u,y),"aria-disabled":y.disabled||void 0,role:"menuitemradio",onClick:C=>e.handleNode(y,!1)},[(0,t.createElementVNode)("view",Pf,(0,t.toDisplayString)(y.text),1),y.loading?((0,t.openBlock)(),(0,t.createBlock)(c,{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 Mf=ie($f,[["render",xf]]),{create:Rf}=ee("cascader"),zf=Rf({components:{CascaderPane:Mf,Wrapper:Jd},props:{...lt,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},poppable:{type:Boolean,default:()=>!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=(0,t.ref)(e.modelValue),l=(0,t.computed)({get(){return e.visible},set(o){n("update:visible",o)}}),r=(o,c)=>{a.value=o,l.value=!1,n("change",o,c),n("update:modelValue",o)},i=o=>{n("pathChange",o)};return(0,t.watch)(()=>e.modelValue,o=>{o!==a.value&&(a.value=o)}),{onChange:r,onPathChange:i,innerValue:a,innerVisible:l}}}),Ff=["innerHTML"];function Lf(e,n,a,l,r,i){const o=(0,t.resolveComponent)("CascaderPane"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(c,{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)(o,{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 Zn=ie(zf,[["render",Lf]]);function St(e,n){return n[e.textKey??"text"]??""}function kt(e,n){return n[e.valueKey??"value"]}function bi(e,n){return n[e.childrenKey??"children"]}function Jn(e,n=[]){const a={texts:[],values:[]};for(let l=0;l<n.length;l++){const r=n[l],i=St(e,r),o=kt(e,r);a.texts.push(i),a.values.push(o??"")}return a}function vi(e,n,a,l,r=[]){if(!a)return;const i=a[l];for(let o=0;o<n.length;o++)if(St(e,n[o])===i){const c=kt(e,n[o])??"",s={[e.textKey]:i,[e.valueKey]:c};r.push(s);const d=bi(e,n[o]);Array.isArray(d)&&vi(e,d,a,l+1,r);return}}function Si(e,n,a,l,r=[]){if(!a)return;const i=a[l];for(let o=0;o<n.length;o++)if(kt(e,n[o])===i){const c=St(e,n[o])??"",s={[e.textKey]:c,[e.valueKey]:i};r.push(s);const d=bi(e,n[o]);Array.isArray(d)&&Si(e,d,a,l+1,r);return}}function ua(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let l=0;l<n.length;l++)if(St(e,n[l])!==St(e,a[l])||kt(e,n[l])!==kt(e,a[l]))return!1;return!0}var Of=class{scope;constructor(e){this.scope=e}async load(e,n,a){const l="cascader";if(!e)return[];if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,a);const r=tt(l,this.scope);return r===null?(console.error(`${l} component not found api function`),[]):($e(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await r(e,n,a))}};function Kf(){return new Of(it())}var ki={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]}},Uf={...ye,...ve,...ki};function Hf(e,n,a,l,r,i,o,c=!1){return{props:Uf,emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:u,disabled:p,innerReadonly:y,readonly:C,browse:k}=Ve(s),{emitEvent:v,exposeApi:w}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return C.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,ge.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),A=Kf(),g=(0,t.ref)([]),b=(0,t.ref)([]),T=(0,t.computed)(()=>{if(Array.isArray(b.value)){if(s.showAllLevels===!1){const q=b.value.length-1;return b.value[q]}return b.value.join(s.separator)}else return b.value}),E=(0,t.ref)([]),B=(0,t.ref)([]);(0,t.watch)([()=>s.modelValue,()=>g.value],async([q,K])=>{if(v("setValue",q),s.lazy===!0){B.value.length==0&&(b.value=Array.isArray(q)?q:[],E.value=Array.isArray(q)?q:[]);return}if(s.valueType==="item"){let I=q;if(!ua(s,I,B.value)){B.value=I;let Y=Jn(s,I);b.value=Y.texts,E.value=Y.values}}else if(s.valueType==="text"){let I=q,Y=[];if(vi(s,K,I,0,Y),!ua(s,Y,B.value)){B.value=Y;let ae=Jn(s,Y);b.value=ae.texts,E.value=ae.values}}else{let I=q,Y=[];if(Si(s,K,I,0,Y),!ua(s,Y,B.value)){B.value=Y;let ae=Jn(s,Y);b.value=ae.texts,E.value=ae.values}}}),s.lazy===!0&&(E.value=Array.isArray(s.modelValue)?s.modelValue:[]),(0,t.watch)([()=>s.source,()=>s.params],async([q,K])=>{s.lazy||q&&(g.value=await A.load(q,K))},{immediate:!0});const N="fox-input-item",R=(0,t.computed)(()=>({[N]:!0,"is-disabled":p.value,"is-readonly":C.value})),U=Te((0,t.computed)(()=>s.textAlign),"textAlign"),$=(0,t.computed)(()=>{const q={};return U.value&&(q["text-align"]=U.value),q}),x=(0,t.ref)(!1),M=()=>{p.value===!0||C.value===!0||(x.value=!0)},O=q=>{x.value=q},z=(q,K)=>{let I=K.map(ae=>{if(ae==null)return ae;let re={...ae};return Reflect.deleteProperty(re,"text"),re[s.textKey]=ae.text??"",Reflect.deleteProperty(re,"value"),re[s.valueKey]=ae.value??"",re});B.value=I;let Y=Jn(s,I);b.value=Y.texts,E.value=Y.values,s.valueType==="text"?(v("change",b.value,I),v("update:modelValue",b.value)):s.valueType==="item"?(v("change",I,I),v("update:modelValue",I)):(v("change",E.value,I),v("update:modelValue",E.value)),v("update:pathNodes",I)},X=q=>{v("pathChange",q.map(K=>{if(K==null)return K;let I={...K};return Reflect.deleteProperty(I,"text"),I[s.textKey]=K.text??"",Reflect.deleteProperty(I,"value"),I[s.valueKey]=K.value??"",I}))},P=q=>{S.value=!0,v("focus",E.value,q)},_=q=>{setTimeout(()=>{S.value=!1},0),v("blur",E.value,q)},te=(0,t.computed)(()=>({[`${N}__append`]:!0,"is-disabled":p.value,"is-readonly":C.value})),W=(0,t.computed)(()=>ke(s.unit)>0),Z=(0,t.computed)(()=>ke(s.unit)>0&&!S.value),J=(0,t.computed)(()=>({hidden:!Z.value})),j=q=>{B.value=[],b.value=[],E.value=[],v("update:modelValue",[]),v("change",[],q),v("clear",[]),v("update:pathNodes",[])},ne=(0,t.computed)(()=>s.clearable&&!p.value&&!C.value),H=(0,t.computed)(()=>{let q=E.value&&E.value.length>0;return s.clearable&&q&&S.value}),F=q=>{H.value?j(q):M()},L=(0,t.computed)(()=>H.value&&ne.value?r:i),G=(0,t.computed)(()=>({action:!0}));let Q=null;const le=()=>typeof Q=="function"?Q:typeof s.lazyLoad=="function"?s.lazyLoad:(Q=async(q,K)=>{const I=[],Y=[];let ae=0;if(!q.root){let re=q;for(;re;){const se=St(s,re),we=kt(s,re);Y.splice(0,0,se),I.splice(0,0,we),re=re._parent}ae=I.length}K(await A.load(s.source,{...q,level:ae,pathLabels:Y,pathValues:I},!0))},Q),D=(0,t.ref)();return w({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()},setDisabled:q=>{u.value=q},setReadonly:q=>{y.value=q}}),()=>{if(k.value==="on"&&(C.value||p.value))return l(T.value,d.slots);const q={class:R.value,style:$.value,ref:D,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:T.value,onClick:M,onFocus:P,onBlur:_};c&&(q.disabled=!0);const K=[],I=(0,t.h)("input",q);K.push(I);const Y=[],ae=(0,t.h)(L.value,{class:["action-icon"]}),re=(0,t.h)("view",{class:G.value,onClick:F},{default:()=>[ae]});if(Y.push(re),W.value){const Qo=(0,t.h)("view",{class:J.value},[s.unit]);Y.push(Qo)}const se=(0,t.h)("view",{class:te.value},{default:()=>Y});K.push(se);const we={default:()=>K};we.label=d.slots.default,we.prepend=d.slots.prepend,we.append=d.slots.append,we.fixedPreTip=d.slots.fixedPreTip,we.fixedTip=d.slots.fixedTip;const he={};he.visible=x.value,he["onUpdate:visible"]=O,he.modelValue=E.value,he.onChange=z,he.onPathChange=X,he.title=s.title,he.valueKey=s.valueKey,he.textKey=s.textKey,he.childrenKey=s.childrenKey,he.convertConfig=s.convertConfig,s.lazy?(he.lazy=!0,he.lazyLoad=le()):he.options=g.value;const Le={};Le.header=d.slots.header;const un=(0,t.h)(o,he,Le);we.hide=()=>[un];const at={...Qe(s,ki),ref:h};return s.prop&&(at.prop=`${s.prop}_item`),a(at,we)}}}}var{componentName:jf,create:Wf,scope:Yf}=ee("cascader-item"),Xf=Wf(Hf(jf,Yf,Ie,Me,oe.CircleClose,oe.ArrowRight,Zn,!1)),da=Xf,Qf=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs=l()})(e,(function(){"use strict";var a=1e3,l=6e4,r=36e5,i="millisecond",o="second",c="minute",s="hour",d="day",h="week",u="month",p="quarter",y="year",C="date",k="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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($){var x=["th","st","nd","rd"],M=$%100;return"["+$+(x[(M-20)%10]||x[M]||x[0])+"]"}},m=function($,x,M){var O=String($);return!O||O.length>=x?$:""+Array(x+1-O.length).join(M)+$},S={s:m,z:function($){var x=-$.utcOffset(),M=Math.abs(x),O=Math.floor(M/60),z=M%60;return(x<=0?"+":"-")+m(O,2,"0")+":"+m(z,2,"0")},m:function $(x,M){if(x.date()<M.date())return-$(M,x);var O=12*(M.year()-x.year())+(M.month()-x.month()),z=x.clone().add(O,u),X=M-z<0,P=x.clone().add(O+(X?-1:1),u);return+(-(O+(M-z)/(X?z-P:P-z))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:u,y,w:h,d,D:C,h:s,m:c,s:o,ms:i,Q:p}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},A="en",g={};g[A]=f;var b="$isDayjsObject",T=function($){return $ instanceof R||!(!$||!$[b])},E=function $(x,M,O){var z;if(!x)return A;if(typeof x=="string"){var X=x.toLowerCase();g[X]&&(z=X),M&&(g[X]=M,z=X);var P=x.split("-");if(!z&&P.length>1)return $(P[0])}else{var _=x.name;g[_]=x,z=_}return!O&&z&&(A=z),z||!O&&A},B=function($,x){if(T($))return $.clone();var M=typeof x=="object"?x:{};return M.date=$,M.args=arguments,new R(M)},N=S;N.l=E,N.i=T,N.w=function($,x){return B($,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var R=(function(){function $(M){this.$L=E(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[b]=!0}var x=$.prototype;return x.parse=function(M){this.$d=(function(O){var z=O.date,X=O.utc;if(z===null)return new Date(NaN);if(N.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var P=z.match(v);if(P){var _=P[2]-1||0,te=(P[7]||"0").substring(0,3);return X?new Date(Date.UTC(P[1],_,P[3]||1,P[4]||0,P[5]||0,P[6]||0,te)):new Date(P[1],_,P[3]||1,P[4]||0,P[5]||0,P[6]||0,te)}}return new Date(z)})(M),this.init()},x.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},x.$utils=function(){return N},x.isValid=function(){return this.$d.toString()!==k},x.isSame=function(M,O){var z=B(M);return this.startOf(O)<=z&&z<=this.endOf(O)},x.isAfter=function(M,O){return B(M)<this.startOf(O)},x.isBefore=function(M,O){return this.endOf(O)<B(M)},x.$g=function(M,O,z){return N.u(M)?this[O]:this.set(z,M)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(M,O){var z=this,X=!!N.u(O)||O,P=N.p(M),_=function(F,L){var G=N.w(z.$u?Date.UTC(z.$y,L,F):new Date(z.$y,L,F),z);return X?G:G.endOf(d)},te=function(F,L){return N.w(z.toDate()[F].apply(z.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(L)),z)},W=this.$W,Z=this.$M,J=this.$D,j="set"+(this.$u?"UTC":"");switch(P){case y:return X?_(1,0):_(31,11);case u:return X?_(1,Z):_(0,Z+1);case h:var ne=this.$locale().weekStart||0,H=(W<ne?W+7:W)-ne;return _(X?J-H:J+(6-H),Z);case d:case C:return te(j+"Hours",0);case s:return te(j+"Minutes",1);case c:return te(j+"Seconds",2);case o:return te(j+"Milliseconds",3);default:return this.clone()}},x.endOf=function(M){return this.startOf(M,!1)},x.$set=function(M,O){var z,X=N.p(M),P="set"+(this.$u?"UTC":""),_=(z={},z[d]=P+"Date",z[C]=P+"Date",z[u]=P+"Month",z[y]=P+"FullYear",z[s]=P+"Hours",z[c]=P+"Minutes",z[o]=P+"Seconds",z[i]=P+"Milliseconds",z)[X],te=X===d?this.$D+(O-this.$W):O;if(X===u||X===y){var W=this.clone().set(C,1);W.$d[_](te),W.init(),this.$d=W.set(C,Math.min(this.$D,W.daysInMonth())).$d}else _&&this.$d[_](te);return this.init(),this},x.set=function(M,O){return this.clone().$set(M,O)},x.get=function(M){return this[N.p(M)]()},x.add=function(M,O){var z,X=this;M=Number(M);var P=N.p(O),_=function(Z){var J=B(X);return N.w(J.date(J.date()+Math.round(Z*M)),X)};if(P===u)return this.set(u,this.$M+M);if(P===y)return this.set(y,this.$y+M);if(P===d)return _(1);if(P===h)return _(7);var te=(z={},z[c]=l,z[s]=r,z[o]=a,z)[P]||1,W=this.$d.getTime()+M*te;return N.w(W,this)},x.subtract=function(M,O){return this.add(-1*M,O)},x.format=function(M){var O=this,z=this.$locale();if(!this.isValid())return z.invalidDate||k;var X=M||"YYYY-MM-DDTHH:mm:ssZ",P=N.z(this),_=this.$H,te=this.$m,W=this.$M,Z=z.weekdays,J=z.months,j=z.meridiem,ne=function(L,G,Q,le){return L&&(L[G]||L(O,X))||Q[G].slice(0,le)},H=function(L){return N.s(_%12||12,L,"0")},F=j||function(L,G,Q){var le=L<12?"AM":"PM";return Q?le.toLowerCase():le};return X.replace(w,(function(L,G){return G||(function(Q){switch(Q){case"YY":return String(O.$y).slice(-2);case"YYYY":return N.s(O.$y,4,"0");case"M":return W+1;case"MM":return N.s(W+1,2,"0");case"MMM":return ne(z.monthsShort,W,J,3);case"MMMM":return ne(J,W);case"D":return O.$D;case"DD":return N.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return ne(z.weekdaysMin,O.$W,Z,2);case"ddd":return ne(z.weekdaysShort,O.$W,Z,3);case"dddd":return Z[O.$W];case"H":return String(_);case"HH":return N.s(_,2,"0");case"h":return H(1);case"hh":return H(2);case"a":return F(_,te,!0);case"A":return F(_,te,!1);case"m":return String(te);case"mm":return N.s(te,2,"0");case"s":return String(O.$s);case"ss":return N.s(O.$s,2,"0");case"SSS":return N.s(O.$ms,3,"0");case"Z":return P}return null})(L)||P.replace(":","")}))},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(M,O,z){var X,P=this,_=N.p(O),te=B(M),W=(te.utcOffset()-this.utcOffset())*l,Z=this-te,J=function(){return N.m(P,te)};switch(_){case y:X=J()/12;break;case u:X=J();break;case p:X=J()/3;break;case h:X=(Z-W)/6048e5;break;case d:X=(Z-W)/864e5;break;case s:X=Z/r;break;case c:X=Z/l;break;case o:X=Z/a;break;default:X=Z}return z?X:N.a(X)},x.daysInMonth=function(){return this.endOf(u).$D},x.$locale=function(){return g[this.$L]},x.locale=function(M,O){if(!M)return this.$L;var z=this.clone(),X=E(M,O,!0);return X&&(z.$L=X),z},x.clone=function(){return N.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},$})(),U=R.prototype;return B.prototype=U,[["$ms",i],["$s",o],["$m",c],["$H",s],["$W",d],["$M",u],["$y",y],["$D",C]].forEach((function($){U[$[1]]=function(x){return this.$g(x,$[0],$[1])}})),B.extend=function($,x){return $.$i||($(x,R,B),$.$i=!0),B},B.locale=E,B.isDayjs=T,B.unix=function($){return B(1e3*$)},B.en=g[A],B.Ls=g,B.p={},B}))})),Gf=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},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/,o=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,s={},d=function(v){return(v=+v)+(v>68?1900:2e3)},h=function(v){return function(w){this[v]=+w}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(w){if(!w||w==="Z")return 0;var f=w.match(/([+-]|\d\d)/g),m=60*f[1]+(+f[2]||0);return m===0?0:f[0]==="+"?-m:m})(v)}],p=function(v){var w=s[v];return w&&(w.indexOf?w:w.s.concat(w.f))},y=function(v,w){var f,m=s.meridiem;if(m){for(var S=1;S<=24;S+=1)if(v.indexOf(m(S,0,w))>-1){f=S>12;break}}else f=v===(w?"pm":"PM");return f},C={A:[c,function(v){this.afternoon=y(v,!1)}],a:[c,function(v){this.afternoon=y(v,!0)}],Q:[r,function(v){this.month=3*(v-1)+1}],S:[r,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[o,h("seconds")],ss:[o,h("seconds")],m:[o,h("minutes")],mm:[o,h("minutes")],H:[o,h("hours")],h:[o,h("hours")],HH:[o,h("hours")],hh:[o,h("hours")],D:[o,h("day")],DD:[i,h("day")],Do:[c,function(v){var w=s.ordinal;if(this.day=v.match(/\d+/)[0],w)for(var f=1;f<=31;f+=1)w(f).replace(/\[|\]/g,"")===v&&(this.day=f)}],w:[o,h("week")],ww:[i,h("week")],M:[o,h("month")],MM:[i,h("month")],MMM:[c,function(v){var w=p("months"),f=(p("monthsShort")||w.map((function(m){return m.slice(0,3)}))).indexOf(v)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[c,function(v){var w=p("months").indexOf(v)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,h("year")],YY:[i,function(v){this.year=d(v)}],YYYY:[/\d{4}/,h("year")],Z:u,ZZ:u};function k(v){for(var w=v,f=s&&s.formats,m=(v=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(B,N,R){var U=R&&R.toUpperCase();return N||f[R]||a[R]||f[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function($,x,M){return x||M.slice(1)}))}))).match(l),S=m.length,A=0;A<S;A+=1){var g=m[A],b=C[g],T=b&&b[0],E=b&&b[1];m[A]=E?{regex:T,parser:E}:g.replace(/^\[|\]$/g,"")}return function(B){for(var N={},R=0,U=0;R<S;R+=1){var $=m[R];if(typeof $=="string")U+=$.length;else{var x=$.regex,M=$.parser,O=B.slice(U),z=x.exec(O)[0];M.call(N,z),B=B.replace(z,"")}}return(function(X){var P=X.afternoon;if(P!==void 0){var _=X.hours;P?_<12&&(X.hours+=12):_===12&&(X.hours=0),delete X.afternoon}})(N),N}}return function(v,w,f){f.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(d=v.parseTwoDigitYear);var m=w.prototype,S=m.parse;m.parse=function(A){var g=A.date,b=A.utc,T=A.args;this.$u=b;var E=T[1];if(typeof E=="string"){var B=T[2]===!0,N=T[3]===!0,R=B||N,U=T[2];N&&(U=T[2]),s=this.$locale(),!B&&U&&(s=f.Ls[U]),this.$d=(function(O,z,X,P){try{if(["x","X"].indexOf(z)>-1)return new Date((z==="X"?1e3:1)*O);var _=k(z)(O),te=_.year,W=_.month,Z=_.day,J=_.hours,j=_.minutes,ne=_.seconds,H=_.milliseconds,F=_.zone,L=_.week,G=new Date,Q=Z||(te||W?1:G.getDate()),le=te||G.getFullYear(),D=0;te&&!W||(D=W>0?W-1:G.getMonth());var q,K=J||0,I=j||0,Y=ne||0,ae=H||0;return F?new Date(Date.UTC(le,D,Q,K,I,Y,ae+60*F.offset*1e3)):X?new Date(Date.UTC(le,D,Q,K,I,Y,ae)):(q=new Date(le,D,Q,K,I,Y,ae),L&&(q=P(q).week(L).toDate()),q)}catch{return new Date("")}})(g,E,b,f),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),R&&g!=this.format(E)&&(this.$d=new Date("")),s={}}else if(E instanceof Array)for(var $=E.length,x=1;x<=$;x+=1){T[1]=E[x-1];var M=f.apply(this,T);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}x===$&&(this.$d=new Date(""))}else S.call(this,A)}}}))})),_f=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(a,l){var r=l.prototype,i=r.format;r.format=function(o){var c=this,s=this.$locale();if(!this.isValid())return i.bind(this)(o);var d=this.$utils(),h=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(u){switch(u){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return s.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return s.ordinal(c.week(),"W");case"w":case"ww":return d.s(c.week(),u==="w"?1:2,"0");case"W":case"WW":return d.s(c.isoWeek(),u==="W"?1:2,"0");case"k":case"kk":return d.s(String(c.$H===0?24:c.$H),u==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return u}}));return i.bind(this)(h)}}}))})),Zf=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(a,l,r){var i=l.prototype,o=function(u){return u&&(u.indexOf?u:u.s)},c=function(u,p,y,C,k){var v=u.name?u:u.$locale(),w=o(v[p]),f=o(v[y]),m=w||f.map((function(A){return A.slice(0,C)}));if(!k)return m;var S=v.weekStart;return m.map((function(A,g){return m[(g+(S||0))%7]}))},s=function(){return r.Ls[r.locale()]},d=function(u,p){return u.formats[p]||(function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,k,v){return k||v.slice(1)}))})(u.formats[p.toUpperCase()])},h=function(){var u=this;return{months:function(p){return p?p.format("MMMM"):c(u,"months")},monthsShort:function(p){return p?p.format("MMM"):c(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):c(u,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):c(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):c(u,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return d(u.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return h.bind(this)()},r.localeData=function(){var u=s();return{firstDayOfWeek:function(){return u.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(u,p)},meridiem:u.meridiem,ordinal:u.ordinal}},r.months=function(){return c(s(),"months")},r.monthsShort=function(){return c(s(),"monthsShort","months",3)},r.weekdays=function(u){return c(s(),"weekdays",null,null,u)},r.weekdaysShort=function(u){return c(s(),"weekdaysShort","weekdays",3,u)},r.weekdaysMin=function(u){return c(s(),"weekdaysMin","weekdays",2,u)}}}))})),Jf=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var a="week",l="year";return function(r,i,o){var c=i.prototype;c.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=o(this).startOf(l).add(1,l).date(d),u=o(this).endOf(a);if(h.isBefore(u))return 1}var p=o(this).startOf(l).date(d).startOf(a).subtract(1,"millisecond"),y=this.diff(p,a,!0);return y<0?o(this).startOf("week").week():Math.ceil(y)},c.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})),em=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(a,l){l.prototype.weekYear=function(){var r=this.month(),i=this.week(),o=this.year();return i===1&&r===11?o+1:r===0&&i>=52?o-1:o}}}))})),tm=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(a,l,r){l.prototype.dayOfYear=function(i){var o=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return i==null?o:this.add(i-o,"day")}}}))})),nm=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(a,l){l.prototype.isSameOrAfter=function(r,i){return this.isSame(r,i)||this.isAfter(r,i)}}}))})),lm=Oe(((e,n)=>{(function(a,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(a,l){l.prototype.isSameOrBefore=function(r,i){return this.isSame(r,i)||this.isBefore(r,i)}}}))})),Fe=Ke(Qf(),1),am=Ke(Gf(),1),om=Ke(_f(),1),rm=Ke(Zf(),1),im=Ke(Jf(),1),sm=Ke(em(),1),cm=Ke(tm(),1),um=Ke(nm(),1),dm=Ke(lm(),1);Fe.default.extend(rm.default),Fe.default.extend(om.default),Fe.default.extend(am.default),Fe.default.extend(im.default),Fe.default.extend(sm.default),Fe.default.extend(cm.default),Fe.default.extend(um.default),Fe.default.extend(dm.default);var wt={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,a){let l=n??new Date;const r=e*(1e3*60*60*24);return l=new Date(l.getTime()+r),a=a??"YYYY-MM-DD",this.format(l,a)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){let l=new Date(e+"/"+n+"/"+a).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,a){const l=typeof e=="string"?this.parser(e,a):e,r=typeof n=="string"?this.parser(n,a):n,i=l.getTime(),o=r.getTime();return i==o?0:i>o?1:-1},between(e,n,a,l){let r;l==="year"?r=new Date(new Date(n).setFullYear(n.getFullYear()+a)):l==="month"?r=new Date(new Date(n).setMonth(n.getMonth()+a)):r=new Date(new Date(n).setDate(n.getDate()+a));const i=e.getTime(),o=r.getTime(),c=n.getTime();return o>c?i>=c&&i<=o:i>=o&&i<=c},inScope4Day(e,n,a){return this.between(e,n,a,"day")},inScope4Month(e,n,a){return this.between(e,n,a,"month")},inScope4Year(e,n,a){return this.between(e,n,a,"year")}},wi=new Date().getFullYear(),fa={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"},el=(e,n,a)=>{let l;if(He(n)?l=n:typeof n=="string"&&ke(n)>0?l=wt.parser(n,a):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)},ma=(e,n,a)=>{He(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),wt.format(new Date(l),a)},pa={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(wi-10,0,1),validator:He},maxDate:{type:Date,default:()=>new Date(wi+10,11,31),validator:He},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:fm,scope:mm}=ee("date-picker"),pm=fm({components:{Picker:jt},props:{...pa},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=(0,ge.useFoxI18n)(mm),l={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds"),today:a("today"),fullWeekdays:JSON.parse(a("fullWeekdays"))},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 o=(m,S)=>{const A=e[`${m}Date`],g=A.getFullYear();let b=1,T=1,E=0,B=0;m==="max"&&(b=12,T=i(S.getFullYear(),S.getMonth()+1),E=23,B=59);const N=B;return S.getFullYear()===g&&(b=A.getMonth()+1,S.getMonth()+1===b&&(T=A.getDate(),S.getDate()===T&&(E=A.getHours(),S.getHours()===E&&(B=A.getMinutes())))),{[`${m}Year`]:g,[`${m}Month`]:b,[`${m}Date`]:T,[`${m}Hour`]:E,[`${m}Minute`]:B,[`${m}Seconds`]:N}},c=(0,t.computed)(()=>{if(!p.value)return[];const{maxYear:m,maxDate:S,maxMonth:A,maxHour:g,maxMinute:b,maxSeconds:T}=o("max",p.value),{minYear:E,minDate:B,minMonth:N,minHour:R,minMinute:U,minSeconds:$}=o("min",p.value);let x=[{type:"year",range:[E,m]},{type:"month",range:[N,A]},{type:"day",range:[B,S]},{type:"hour",range:[R,g]},{type:"minute",range:[U,b]},{type:"seconds",range:[$,T]}];switch(e.type){case"date":x=x.slice(0,3);break;case"datetime":x=x.slice(0,5);break;case"time":x=x.slice(3,6);break;case"year-month":x=x.slice(0,2);break;case"month-day":x=x.slice(1,3);break;case"datehour":x=x.slice(0,4);break;case"hour-minute":x=x.slice(3,5);break}return x}),s=(m,S,A,g,b)=>{const T=[];for(;m<=S;){let E=!0;if(typeof e.itemFilter=="function"){const B={text:`${m}`,value:m,type:A,currentYearMonth:g};E=e.itemFilter(B)}if(E)if(typeof e.itemFormatter=="function"){const B={text:`${m}`,value:m,type:A,currentYearMonth:g};e.itemFormatter(B),T.push({text:B.text,value:B.value})}else if(e.isShowChinese){let B=`${m}${l[A]}`;if(A==="day"){if(g[0]===b[0]&&g[1]===b[1]&&m===b[2])B=l.today;else{const N=new Date(g[0],g[1],m).getDay();B=`${B} ${l.fullWeekdays[N]}`}T.push({text:B,value:m})}else T.push({text:m+l[A],value:m})}else T.push({text:`${m}`,value:m});A==="minute"?m+=e.minuteStep:m++}return T},d=(0,t.computed)(()=>{const m=new Date,S=[m.getFullYear(),m.getMonth(),m.getDate()],A=[];p.value&&(A[0]=p.value.getFullYear(),A[1]=p.value.getMonth());let g=[];return c.value.forEach(b=>{let T=s(b.range[0],b.range[1],b.type,A,S);T&&g.push(T)}),g}),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,u=(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=el(e,e.modelValue,e.valueFormat):S=el(e,m,fa[e.type]):He(m)?S=m:S=new Date,!!S&&(!p.value||S.getTime()!==p.value.getTime())){p.value=S;let A=[];c.value.forEach(g=>{let b=h(g.type,S);A.push(b)}),u.value=A}},{immediate:!0});const y=m=>{if(!m||m.length===0){p.value=new Date;let S=[];c.value.forEach(A=>{let g=h(A.type,p.value);S.push(g)}),u.value=S;return}if(e.type==="date"){const S=m[0],A=m[1]-1,g=Math.min(m[2],i(S,A+1));g!==m[2]&&(m[2]=g),p.value=new Date(S,A,g)}else if(e.type==="datetime"){const S=m[0],A=m[1]-1,g=Math.min(m[2],i(S,A+1)),b=m[3],T=m[4];g!==m[2]&&(m[2]=g),p.value=new Date(S,A,g,b,T)}else if(e.type==="time"){const S=m[0],A=m[1],g=m[2],b=p.value??new Date;p.value=new Date(b.getFullYear(),b.getMonth(),b.getDate(),S,A,g)}else if(e.type==="year-month"){const S=m[0],A=m[1]-1;p.value=new Date(S,A)}else if(e.type==="month-day"){const S=(p.value??new Date).getFullYear(),A=m[0]-1,g=Math.min(m[1],i(S,A+1));g!==m[1]&&(m[1]=g),p.value=new Date(S,A,g)}else if(e.type==="datehour"){const S=m[0],A=m[1]-1,g=Math.min(m[2],i(S,A+1)),b=m[3];g!==m[2]&&(m[2]=g),p.value=new Date(S,A,g,b)}else if(e.type==="hour-minute"){const S=m[0],A=m[1],g=p.value??new Date;p.value=new Date(g.getFullYear(),g.getMonth(),g.getDate(),S,A)}u.value=m};return{columns:d,dateIndexs:u,show:r,onChange:m=>{y(m)},onClose:()=>{n("update:close",!1)},onConfirm:m=>{y(m);const S=p.value??new Date;e.valueFormat?n("update:modelValue",ma(e,S,e.valueFormat)):n("update:modelValue",S),n("confirm",m)},onClear:()=>{n("clear")},onUpdateVisible:m=>{r.value=m,n("update:visible",m)}}}});function hm(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(o,{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 tl=ie(pm,[["render",hm]]),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=fa[e.type??"date"]),n}var bm={...ye,...ve,...pa,...gm};function vm(e,n,a,l,r,i,o,c=!1){return{props:bm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:u,disabled:p,innerReadonly:y,readonly:C,browse:k}=Ve(s),{emitEvent:v,exposeApi:w}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return C.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,ge.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),g=xe(s,"modelValue",F=>F==null?null:typeof F=="string"?F.length==0?null:s.valueFormat?el(s,F,s.valueFormat)??F:el(s,F,fa[s.type])??F:He(F)?F:null,v),b=(0,t.computed)(()=>{if(!g.value)return"";const F=ym(s);return ma(s,g.value,F)}),T="fox-input-item",E=(0,t.computed)(()=>({[T]:!0,"is-disabled":p.value,"is-readonly":C.value})),B=Te((0,t.computed)(()=>s.textAlign),"textAlign"),N=(0,t.computed)(()=>{const F={};return B.value&&(F["text-align"]=B.value),F}),R=(0,t.ref)(!1),U=()=>{R.value=!0},$=()=>{R.value=!1};d.expose({showPicker:U,hidePicker:$});const x=F=>{R.value=F},M=F=>{if(g.value=F,s.valueFormat){let L=ma(s,F,s.valueFormat);v("update:modelValue",L,{}),v("change",L,{})}else v("update:modelValue",F,{}),v("change",F,{})},O=F=>{let L=F.target.value;S.value=!0,v("focus",L,F)},z=F=>{setTimeout(()=>{S.value=!1},0);let L=F.target.value;s.maxLength&&L.length>Number(s.maxLength)&&(L=L.slice(0,Number(s.maxLength))),v("blur",L,F)},X=(0,t.computed)(()=>({[`${T}__append`]:!0,"is-disabled":p.value,"is-readonly":C.value})),P=(0,t.computed)(()=>ke(s.unit)>0),_=(0,t.computed)(()=>ke(s.unit)>0&&!S.value),te=(0,t.computed)(()=>({hidden:!_.value})),W=F=>{g.value="",v("update:modelValue","",F),v("change","",F),v("clear",""),$()},Z=(0,t.computed)(()=>s.clearable&&!p.value&&!C.value),J=(0,t.computed)(()=>{let F=ke(g.value)>0;return s.clearable&&F&&S.value}),j=F=>{J.value?W(F):U()},ne=(0,t.computed)(()=>J.value&&Z.value?r:i),H=(0,t.computed)(()=>({action:!0}));return w({setDisabled:F=>{u.value=F},setReadonly:F=>{y.value=F}}),()=>{if(k.value==="on"&&(C.value||p.value))return l(b.value,d.slots);const F={class:E.value,style:N.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:U,onFocus:O,onBlur:z};c&&(F.disabled=!0);const L=[],G=(0,t.h)("input",F);L.push(G);const Q=[],le=(0,t.h)(ne.value,{class:["action-icon"]}),D=(0,t.h)("view",{class:H.value,onClick:j},{default:()=>[le]});if(Q.push(D),P.value){const se=(0,t.h)("view",{class:te.value},[s.unit]);Q.push(se)}const q=(0,t.h)("view",{class:X.value},{default:()=>Q});L.push(q);const K={default:()=>L};K.label=d.slots.default,K.prepend=d.slots.prepend,K.append=d.slots.append,K.fixedPreTip=d.slots.fixedPreTip,K.fixedTip=d.slots.fixedTip;const I=be(s,pa);I.valueFormat=null,I.disabled=!1,I.readonly=p.value||C.value,I.visible=R.value,I["onUpdate:visible"]=x,I.modelValue=g.value,I["onUpdate:modelValue"]=M,I.onClear=W;const Y={};if(d.slots.top){const se=d.slots.top();Y.top=()=>se}if(d.slots.bottom){const se=d.slots.bottom();Y.default=()=>se}const ae=(0,t.h)(o,I,Y);K.hide=()=>[ae];const re={...be(s,ve,ye),ref:h};return s.prop&&(re.prop=`${s.prop}_item`),a(re,K)}}}}var{create:Sm,componentName:km,scope:wm}=ee("date-item"),Cm=Sm(vm(km,wm,Ie,Me,oe.CircleClose,oe.Date,tl,!1)),ha=Cm,ce={format(e,n="YYYY-MM-DD"){return wt.format(e,n)},parser(e,n){return wt.parser(e,n)},isLeapYear:function(e){return wt.isLeapYear(e)},getWhatDay:function(e,n,a){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+a).getDay()]},getMonthPreDay:function(e,n){let a=new Date(e+"/"+n+"/01").getDay();return a==0&&(a=7),a},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 a=e*(1e3*60*60*24);return n=new Date(n.getTime()+a),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,a,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(a));let i=r.getDay();const o=r.getDate();let c=6-i;return l!==0&&(i=i==0?7:i,c=7-i),Math.ceil((o+c)/7)},getYearWeek:function(e,n,a,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(a)),i=new Date(Number(e),0,1),o=Math.round((r.valueOf()-i.valueOf())/864e5);return Math.ceil((o+(i.getDay()+1-1))/7)},getWeekDate:function(e,n,a,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(a)),i=r.getTime();let o=r.getDay();if(l===0){const s=i-o*864e5,d=i+(6-o)*864e5;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}else{o=o==0?7:o;const c=1440*60*1e3,s=i-(o-1)*c,d=i+(7-o)*c;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}},formatResultDate:function(e){const n=[...e.split("-")];return n[2]=ce.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ce.getWhatDay(+n[0],+n[1],+n[2]),n}},{create:Nm,scope:Am}=ee("calendar-pane"),Bm=Nm({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:ce.getDay(0)},endDate:{type:String,default:ce.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a,expose:l}){const{toLocaleRefs:r,t:i}=(0,ge.useFoxI18n)(Am),o=r(e,["title","confirmText","startText","endText","today"]),c=JSON.parse(i("weekdays")),s=(0,t.ref)([...c.slice(e.firstDayOfWeek,7),...c.slice(0,e.firstDayOfWeek)]),d=(0,t.ref)(null),h=(0,t.ref)(null),u=(0,t.ref)(null),p=(0,t.ref)(null),y=(0,t.ref)(0),C=(0,t.computed)(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),k=(0,t.computed)(()=>a.btn),v=(0,t.computed)(()=>a["top-info"]),w=(0,t.computed)(()=>a["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=H=>H.split("-"),S=H=>ce.isEqual(f.currDate[0],H),A=H=>ce.isEqual(f.currDate[1],H),g=H=>f.currDate?.length>0?f.currDate?.some(F=>ce.isEqual(F,H)):!1,b=(H,F)=>F.curData[0]+"-"+F.curData[1]+"-"+ce.getNumTwoBit(+H.day),T=(H,F)=>{const L=b(H,F),{type:G}=e;return H.type=="curr"?ce.isEqual(f.currDate,L)||(G=="range"||G=="week")&&(S(L)||A(L))||G=="multiple"&&g(L)?`${f.dayPrefix}--active`:f.propStartDate&&ce.compareDate(L,f.propStartDate)||f.propEndDate&&ce.compareDate(f.propEndDate,L)?`${f.dayPrefix}--disabled`:(G=="range"||G=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ce.compareDate(f.currDate[0],L)&&ce.compareDate(L,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},E=()=>{const{type:H}=e;if(H=="range"&&f.chooseData.length==2||H!="range"){let F=f.chooseData.slice(0);H=="week"&&(F={weekDate:[N(f.chooseData[0]),N(f.chooseData[1])]}),n("choose",F),e.poppable&&n("update")}},B=(H,F,L=!1)=>{if(T(H,F)!=`${f.dayPrefix}--disabled`){const{type:G}=e;let[Q,le]=F.curData,D=[...F.curData];if(D[2]=ce.getNumTwoBit(Number(H.day)),D[3]=`${D[0]}-${D[1]}-${D[2]}`,D[4]=ce.getWhatDay(+D[0],+D[1],+D[2]),G=="multiple")if(f.currDate?.length>0){let q;f.currDate?.forEach((K,I)=>{K==D[3]&&(q=I)}),L?f.chooseData.push([...D]):q!==void 0?(f.currDate.splice(q,1),f.chooseData.splice(q,1)):(f.currDate.push(D[3]),f.chooseData.push([...D]))}else f.currDate=[D[3]],f.chooseData=[[...D]];else if(G=="range"){let q=Object.values(f.currDate).length;q==2||q==0?f.currDate=[D[3]]:ce.compareDate(f.currDate[0],D[3])?Array.isArray(f.currDate)&&f.currDate.push(D[3]):Array.isArray(f.currDate)&&f.currDate.unshift(D[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...D]]:ce.compareDate(f.chooseData[0][3],D[3])?f.chooseData=[...f.chooseData,[...D]]:f.chooseData=[[...D],...f.chooseData]}else if(G=="week"){let q=ce.getWeekDate(Q,le,H.day,e.firstDayOfWeek);f.propStartDate&&ce.compareDate(q[0],f.propStartDate)&&q.splice(0,1,f.propStartDate),f.propEndDate&&ce.compareDate(f.propEndDate,q[1])&&q.splice(1,1,f.propEndDate),f.currDate=q,f.chooseData=[ce.formatResultDate(q[0]),ce.formatResultDate(q[1])]}else f.currDate=D[3],f.chooseData=[...D];if(!L){let q=f.chooseData;G=="week"&&(q={weekDate:[N(f.chooseData[0]),N(f.chooseData[1])]}),n("select",q),(e.isAutoBackFill||!e.poppable)&&E()}}},N=H=>{let[F,L,G]=H;return{date:H,monthWeekNum:ce.getMonthWeek(F,L,G,e.firstDayOfWeek),yearWeekNum:ce.getYearWeek(F,L,G,e.firstDayOfWeek)}},R=H=>{const F=H=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let L=parseInt(F.curData[0]),G=parseInt(F.curData[1].toString().replace(/^0/,""));switch(H){case"prev":G==1&&(L-=1),G=G==1?12:--G;break;case"next":G==12&&(L+=1),G=G==12?1:++G;break}return[L+"",ce.getNumTwoBit(G),ce.getMonthDays(String(L),String(G))+""]},U=(H,F,L)=>{let{year:G,month:Q}=L;return F=="prev"&&H>=7&&(H-=7),Array.from(Array(H),(le,D)=>({day:String(D+1),type:F,year:G,month:Q}))},$=(H,F,L,G)=>{H=H-e.firstDayOfWeek;let{year:Q,month:le}=L;return F=="prev"&&H>=7&&(H-=7),Array.from(Array(G),(D,q)=>({day:String(q+1),type:F,year:Q,month:le})).slice(G-H)},x=(H,F)=>{const L=ce.getMonthPreDay(+H[0],+H[1]);let G=Number(H[1])-1,Q=Number(H[0]);G<=0&&(G=12,Q+=1);const le=ce.getMonthDays(String(H[0]),String(H[1])),D=ce.getMonthDays(Q+"",G+""),q={year:H[0],month:H[1]},K={curData:H,title:i("monthTitle",{year:q.year,month:q.month}),monthData:[...$(L,"prev",{month:String(G),year:String(Q)},D),...U(le,"curr",q)],cssHeight:0,cssScrollHeight:0};K.cssHeight=39+64*(K.monthData.length>35?6:5);let I=0;f.monthsData.length>0&&(I=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),K.cssScrollHeight=I,F=="next"?(!f.endData||!ce.compareDate(`${f.endData[0]}-${f.endData[1]}-${ce.getMonthDays(f.endData[0],f.endData[1])}`,`${H[0]}-${H[1]}-${H[2]}`))&&f.monthsData.push(K):!f.startData||!ce.compareDate(`${H[0]}-${H[1]}-${H[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(K):f.unLoadPrev=!0},M=()=>{let H=e.startDate?e.startDate:ce.getDay(0),F=e.endDate?e.endDate:ce.getDay(365);f.propStartDate=H,f.propEndDate=F,f.startData=m(H),f.endData=m(F),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const L={year:Number(f.startData[0]),month:Number(f.startData[1])},G={year:Number(f.endData[0]),month:Number(f.endData[1])};let Q=G.month-L.month;G.year-L.year>0&&(Q=Q+12*(G.year-L.year)),Q<=0&&(Q=1),x(f.startData,"next");let le=1;do x(R("next"),"next");while(le++<Q);if(f.monthsNum=Q,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(H&&ce.compareDate(f.currDate[0],H)&&f.currDate.splice(0,1,H),F&&ce.compareDate(F,f.currDate[1])&&f.currDate.splice(1,1,F),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 D=[],q={};f.currDate.forEach(K=>{H&&!ce.compareDate(K,H)&&F&&!ce.compareDate(F,K)&&(Object.hasOwnProperty.call(q,K)||(D.push(K),q[K]=K))}),f.currDate=[...D],f.defaultData=[...m(D[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[D,q,K]=m(f.currDate[0]);f.currDate=ce.getWeekDate(D,q,K,e.firstDayOfWeek),H&&ce.compareDate(f.currDate[0],H)&&f.currDate.splice(0,1,H),F&&ce.compareDate(F,f.currDate[1])&&f.currDate.splice(1,1,F),f.defaultData=[...m(f.currDate[0]),...m(f.currDate[1])]}}else f.currDate&&(H&&ce.compareDate(f.currDate,H)?f.currDate=H:F&&!ce.compareDate(f.currDate,F)&&(f.currDate=F),f.defaultData=[...m(f.currDate)])};l({scrollToDate:H=>{ce.compareDate(H,f.propStartDate)?H=f.propStartDate:ce.compareDate(H,f.propEndDate)||(H=f.propEndDate);let F=m(H);f.monthsData.forEach((L,G)=>{if(L.title==i("monthTitle",{year:F[0],month:F[1]})&&d.value){let Q=f.monthsData[G].cssScrollHeight-d.value.scrollTop;if(e.toDateAnimation){let le=0,D=setInterval(()=>{if(le++,d.value){let q=Q/10;d.value.scrollTop=d.value.scrollTop+q}le>=10&&(clearInterval(D),d.value&&(d.value.scrollTop=f.monthsData[G].cssScrollHeight))},40)}else d.value.scrollTop=f.monthsData[G].cssScrollHeight}})},initPosition:()=>{d?.value&&(d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let H=0,F=0;f.defaultData.length>0&&f.monthsData.forEach((Q,le)=>{Q.title==i("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(H=le),(e.type=="range"||e.type=="week")&&Q.title==i("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(F=le)}),P(f.monthsNum,H),f.currentIndex=H,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),B({day:f.defaultData[5],type:"curr"},f.monthsData[F],!0)):e.type=="week"?B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(Q=>{let le=m(Q),D=f.currentIndex;f.monthsData.forEach((q,K)=>{q.title==i("monthTitle",{year:le[0],month:le[1]})&&(D=K)}),B({day:le[2],type:"curr"},f.monthsData[D],!0)}):B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let L=f.monthsData[f.monthsData.length-1],G=L.cssHeight+L.cssScrollHeight;Ye(()=>{d?.value&&h?.value&&p?.value&&(y.value=d.value.clientHeight,h.value.style.height=`${G}px`,d.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(G/(f.monthsNum+1))}});const P=(H,F)=>{H>=3?F>0&&F<H?f.defaultRange=[F-1,F+3]:F==0?f.defaultRange=[F,F+4]:F==H&&(f.defaultRange=[F-2,F+2]):f.defaultRange=[0,H+2],f.translateY=f.monthsData[f.defaultRange[0]].cssScrollHeight},_=(H,F)=>(e.type=="range"||e.type=="week")&&H.type=="curr"&&T(H,F)=="fox-calendar__day--active",te=(H,F)=>_(H,F)&&S(b(H,F)),W=(H,F)=>f.currDate.length>=2&&A(b(H,F))?_(H,F):!1,Z=()=>{if(f.currDate.length>=2)return ce.isEqual(f.currDate[0],f.currDate[1])},J=H=>{const F=`${H.year}-${H.month}-${Number(H.day)<10?"0"+H.day:H.day}`;return ce.isEqual(F,ce.date2Str(new Date))},j=H=>{if(f.monthsData.length<=1)return;const F=H.target.scrollTop;let L=Math.floor(F/f.avgHeight);if(L==0)F>=f.monthsData[L+1].cssScrollHeight&&(L+=1);else if(L>0&&L<f.monthsNum-1)F>=f.monthsData[L+1].cssScrollHeight&&(L+=1),F<f.monthsData[L].cssScrollHeight&&(L-=1);else{const G=Math.round(F+y.value);G<f.monthsData[L].cssScrollHeight+f.monthsData[L].cssHeight&&F>f.monthsData[L-1].cssScrollHeight&&(L-=1),L+1<=f.monthsNum&&G>=f.monthsData[L+1].cssScrollHeight+f.monthsData[L+1].cssHeight&&(L+=1),L>=1&&F<f.monthsData[L-1].cssScrollHeight&&(L-=1)}f.currentIndex!==L&&(f.currentIndex=L,P(f.monthsNum,L)),f.yearMonthTitle=f.monthsData[L].title},ne=()=>{f.chooseData.splice(0),f.monthsData.splice(0),M()};return M(),(0,t.watch)(()=>e.defaultValue,H=>{H&&e.poppable&&ne()}),{weeks:s,compConthsData:C,showTopBtn:k,topInfo:v,bottomInfo:w,rangeTip:Z,mothsViewScroll:j,getClass:T,isStartTip:te,isEndTip:W,chooseDay:B,isCurrDay:J,confirm:E,months:d,...(0,t.toRefs)(f),...(0,t.toRefs)(e),...o,monthsPanel:h,weeksPanel:u,viewArea:p}}}),Tm={class:"fox-calendar__header"},Vm={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"},xm=["onClick"],Mm={class:"fox-calendar__day-value"},Rm={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},zm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Fm={key:2,class:"fox-calendar__day-tips--curr"},Lm={key:4,class:"fox-calendar__day-tip"},Om={key:0,class:"fox-calendar__footer"};function Km(e,n,a,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",Tm,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Vm,(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,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:c},(0,t.toDisplayString)(o),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...o)=>e.mothsViewScroll&&e.mothsViewScroll(...o))},[(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,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:c},[(0,t.createElementVNode)("view",qm,(0,t.toDisplayString)(o.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)(o.monthData,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(s,o)]),onClick:h=>e.chooseDay(s,o)},[(0,t.createElementVNode)("view",Mm,[(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",zm,[(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,o)?((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,o)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Lm,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,xm))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",Om,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...o)=>e.confirm&&e.confirm(...o))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var Um=ie(Bm,[["render",Km]]),Hm=(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)(Ce,Qe({...e},{poppable:!1}),n):n?.default?.()??null}}),jm=Hm,Wm=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),nl={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}=ee("calendar"),Xm=Ym({components:{Wrapper:jm,CalendarPane:Um},props:{...nl},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a,expose:l}){const r=(0,t.computed)(()=>a.btn),i=(0,t.computed)(()=>a["top-info"]),o=(0,t.computed)(()=>a.day),c=(0,t.computed)(()=>a["bottom-info"]),s=(0,t.ref)(null),d=v=>{s.value?.scrollToDate(v)},h=()=>{s.value?.initPosition()};(0,t.watch)(()=>e.visible,v=>{v&&(0,t.nextTick)(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),l({scrollToDate:d,initPosition:h});const u=()=>{n("update:visible",!1)},p=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{p()},update:u,close:p,select:v=>{n("select",v)},choose:v=>{p(),n("choose",v)},calendarRef:s,showTopBtn:r,topInfo:i,dayInfo:o,bottomInfo:c}}});function Qm(e,n,a,l,r,i){const o=(0,t.resolveComponent)("CalendarPane"),c=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(c,(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)(o,{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 ll=ie(Xm,[["render",Qm]]),Ci={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]}},ga=(e,n)=>{let a;return He(e)?a=e:typeof e=="string"&&ke(e)>0?a=ce.parser(e,n):a=new Date,a},Ct=(e,n,a)=>(He(n)||(n=new Date),ce.format(n,a)),Nt=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,ce.date2Str(e),ce.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],Gm={...ye,...ve,...nl,...Ci};function _m(e,n,a,l,r,{CloseIcon:i,MarkIcon:o},c=!1){return{props:Gm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:h,disabled:u,readonly:p,browse:y}=Ve(s),{emitEvent:C,exposeApi:k}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:v}=(0,ge.useFoxI18n)(n),w=v(s,["placeholder"]),f=(0,t.ref)(!1),m=(0,t.computed)(()=>s.type==="range"),S=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),A=()=>{S.startDate!==null&&(S.startDate=null,S.endDate=null,S.startArray=[],S.endArray=[])},g=(F,L="one",G="YYYY-MM-DD")=>{if(Wm(F)){A();return}if(m.value&&Array.isArray(F)&&F.length==2){let Q,le;typeof F[0]=="string"?(Q=ga(F[0],G),le=ga(F[1],G)):(Q=F[0],le=F[1]);let D=Nt(Q),q=Nt(le);(S.startDate===null||S.startDate.getTime()!==Q.getTime()||S.endDate?.getTime()!==le.getTime())&&(S.startDate=Q,S.startArray=D,S.endDate=le,S.endArray=q)}else{let Q;typeof F=="string"?Q=ga(F,G):Q=F;let le=Nt(Q);(S.startDate===null||S.startDate.getTime()!==Q.getTime())&&(S.startDate=Q,S.startArray=le)}};g(s.modelValue,s.type,s.valueFormat),(0,t.watch)(()=>s.modelValue,F=>{g(F,s.type,s.valueFormat),C("setValue",F)});const b=(0,t.computed)(()=>{if(S.startDate===null)return"";if(m.value){let F=Ct(s,S.startDate,s.format),L=Ct(s,S.endDate,s.format);return`${F} ${s.rangeSeparator} ${L}`}else{let F=Ct(s,S.startDate,s.format);return s.showWeek&&(F=`${F} ${S.startArray[4]}`),F}}),T=(0,t.computed)(()=>S.startDate===null?null:m.value?[ce.date2Str(S.startDate),ce.date2Str(S.endDate??new Date)]:ce.date2Str(S.startDate)),E="fox-input-item",B=(0,t.computed)(()=>({[E]:!0,"is-disabled":u.value,"is-readonly":p.value})),N=Te((0,t.computed)(()=>s.textAlign),"textAlign"),R=(0,t.computed)(()=>{const F={};return N.value&&(F["text-align"]=N.value),F}),U=(0,t.ref)(!1),$=()=>{p.value||u.value||(U.value=!0)},x=F=>{U.value=F},M=F=>{if(F){if(m.value&&Array.isArray(F)){let L=F[0],G=de(L[0]),Q=de(L[1]),le=de(L[2]),D=new Date(G,Q-1,le),q=F[1];G=de(q[0]),Q=de(q[1]),le=de(q[2]);let K=new Date(G,Q-1,le);S.startDate=D,S.startArray=Nt(D),S.endDate=K,S.endArray=Nt(K),s.valueFormat?C("update:modelValue",[Ct(s,D,s.valueFormat),Ct(s,K,s.valueFormat)],{}):C("update:modelValue",[D,K],{})}else{let L=F,G=de(L[0]),Q=de(L[1]),le=de(L[2]),D=new Date(G,Q-1,le);S.startDate=D,S.startArray=Nt(D),s.valueFormat?C("update:modelValue",Ct(s,D,s.valueFormat),{}):C("update:modelValue",D,{})}C("change",F,{})}},O=F=>{let L=F.target.value;f.value=!0,C("focus",L,F)},z=F=>{setTimeout(()=>{f.value=!1},0);let L=F.target.value;s.maxLength&&L.length>Number(s.maxLength)&&(L=L.slice(0,Number(s.maxLength))),C("blur",L,F)},X=(0,t.computed)(()=>({[`${E}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),P=(0,t.computed)(()=>ke(s.unit)>0),_=(0,t.computed)(()=>ke(s.unit)>0&&!f.value),te=(0,t.computed)(()=>({hidden:!_.value})),W=F=>{A(),C("update:modelValue",null,F),C("change","",F),C("clear","")},Z=(0,t.computed)(()=>s.clearable&&!u.value&&!p.value),J=(0,t.computed)(()=>{let F=ke(b.value)>0;return s.clearable&&F&&f.value}),j=F=>{J.value?W(F):$()},ne=(0,t.computed)(()=>J.value&&Z.value?i:o),H=(0,t.computed)(()=>({action:!0}));return k(),()=>{if(y.value==="on"&&(p.value||u.value))return r(b.value,d.slots);const F={class:B.value,style:R.value,type:"text",maxlength:s.maxLength,placeholder:w.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:$,onFocus:O,onBlur:z};c&&(F.disabled=!0);const L=[],G=(0,t.h)("input",F);L.push(G);const Q=[],le=(0,t.h)(ne.value,{class:["action-icon"]}),D=(0,t.h)("view",{class:H.value,onClick:j},{default:()=>[le]});if(Q.push(D),P.value){const se=(0,t.h)("view",{class:te.value},[s.unit]);Q.push(se)}const q=(0,t.h)("view",{class:X.value},{default:()=>Q});L.push(q);const K={default:()=>L};K.label=d.slots.default,K.prepend=d.slots.prepend,K.append=d.slots.append,K.fixedPreTip=d.slots.fixedPreTip,K.fixedTip=d.slots.fixedTip;const I=be(s,nl);I.visible=U.value,I["onUpdate:visible"]=x,I["default-value"]=T.value,I.onChoose=M;const Y={};if(d.slots.btn){const se=d.slots.btn();Y.btn=()=>se}d.slots.day&&(Y.day=d.slots.day),d.slots.topInfo&&(Y.topInfo=d.slots.topInfo),d.slots.bottomInfo&&(Y.bottomInfo=d.slots.bottomInfo);const ae=(0,t.h)(a,I,Y);K.hide=()=>[ae];const re={...Qe(s,nl,Ci),ref:h};return s.prop&&(re.prop=`${s.prop}_item`),l(re,K)}}}}var{componentName:Zm,create:Jm,scope:e0}=ee("calendar-item"),t0=Jm(_m(Zm,e0,ll,Ie,Me,{CloseIcon:oe.CircleClose,MarkIcon:oe.Date},!1)),ya=t0,n0={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 l0(e,{CheckNormal:n,Checked:a}){return{props:{...n0},setup(l,{emit:r,slots:i}){const o=(0,t.inject)("parent",null),c=qn(),s=(0,t.computed)(()=>o.label.value===l.label),d=(0,t.computed)(()=>o.position),h=()=>{const k=[];if(s.value){if(i.checkedIcon)return i.checkedIcon();{const v=ue(l.iconSize),w=l.checkedIcon??c.radio.Checked??a;return k.push("fox-radio__icon"),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)(w,{width:v,height:v,class:k})}}else{if(i.icon)return i.icon();{const v=ue(l.iconSize),w=l.icon??c.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)(w,{width:v,height:v,class:k})}}},u=()=>{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?.())},y=()=>{s.value||l.disabled||l.readonly||o.updateValue(l.label)},C=d.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${C?`${e}--reverse`:""}`,onClick:y},[l.shape=="button"?p():C?[u(),h()]:[h(),u()]])}}}var{componentName:a0,create:o0}=ee("radio"),r0=o0(l0(a0,{CheckNormal:oe.CheckNormal,Checked:oe.CheckChecked})),al=r0,{componentName:Ni,create:i0}=ee("radio-group"),s0=i0({props:{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:a,exposeApi:l}=ht({context:n}),{slots:r}=n,i=o=>a("update:modelValue",o);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:i}),(0,t.watch)(()=>e.modelValue,o=>a("change",o)),l(),()=>{const o={};return e.textAlign&&(o["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Ni} ${Ni}--${e.direction}`,style:o},r.default?.())}}}),ol=s0;function Ai(e,n,a,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(rl(e,i)===a)return r}else if(l==="item"){if(De(a,i))return r}else if(Qt(e,i)===a)return r}return-1}function rl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Qt(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 u0(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var d0=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);let l=tt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function f0(){return new d0(it())}function m0(e){return{text:e,value:e}}var Bi={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},p0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},h0={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={...ye,...ve,...Bi,...p0,...h0};function y0(e,n,a,l,r,i){return{props:g0,emits:["change","update:modelValue","setValue"],setup(o,c){const{itemTemplateRef:s,innerDisabled:d,disabled:h,innerReadonly:u,readonly:p,browse:y}=Ve(o),{emitEvent:C,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 o},context:c,get templateRefProxy(){return s.value}},o.prop??c.attrs.name),v=Te((0,t.computed)(()=>o.textAlign),"textAlign"),w=f0(),f=(0,t.ref)([]),m=(0,t.computed)(()=>typeof o.sourceFilter=="function"&&Array.isArray(f.value)?f.value.filter(o.sourceFilter):f.value);(0,t.watch)([()=>o.source,()=>o.params],async([T,E])=>{if(T){const B=await w.load("radio",T,E);B.length>0?typeof B[0]=="string"?f.value=B.map(N=>m0(N)):f.value=B:f.value=[]}},{immediate:!0});let S=(0,t.ref)(-1);(0,t.watch)([()=>o.modelValue,()=>m.value],async([T,E])=>{S.value=Ai(o,E,T,o.valueType),C("setValue",T)},{deep:!0});const A=(0,t.computed)(()=>{if(!o.source)return o.modelValue;if(S.value===-1)return null;const T=m.value[S.value];return Qt(o,T)}),g=T=>{let E=null,B=null;if(m.value.length>0){let N=Ai(o,m.value,T,"value");S.value=N,N>=0&&(B=m.value[N],o.valueType==="text"?E=rl(o,B):o.valueType==="item"?E=B:E=Qt(o,B))}else E=T;C("update:modelValue",E),C("change",E,B)},b=()=>{let T=null,E=null;if(m.value.length>0&&S.value!==-1){let B=m.value[S.value];o.valueType==="text"?T=rl(o,B):o.valueType==="item"?T=B:T=Qt(o,B)}C("update:modelValue",T),C("change",T,E)};if(k({clear(){S.value!==-1&&(S.value=-1,b())},setDisabled:T=>{d.value=T},setReadonly:T=>{u.value=T}}),o.source){const T=()=>{const E=[],B=be(o,Bi);return m.value.forEach((N,R)=>{const U=Qt(o,N),$=c0(o,N);let x={...B,label:U,disabled:$};const M=u0(o,N,R);x={...x,...M},h.value&&(x.disabled=!0),p.value&&(x.readonly=!0);const O={};if(c.slots.icon&&(O.icon=c.slots.icon),c.slots.checkedIcon&&(O.checkedIcon=c.slots.checkedIcon),typeof c.slots.text=="function"){const X=c.slots.text(N);O.default=()=>[X]}else{const X=rl(o,N);O.default=()=>X}let z=(0,t.h)(i,x,O);E.push(z)}),E};return()=>{if(y.value==="on"&&(p.value||h.value))return l(A.value,c.slots,m.value);const E=T(),B=(0,t.h)(r,{class:`${e}`,direction:o.direction,textPosition:o.textPosition,textAlign:v.value,modelValue:A.value,"onUpdate:modelValue":g},{default:()=>E}),N={default:()=>B};N.label=c.slots.default,N.prepend=c.slots.prepend,N.append=c.slots.append,N.fixedPreTip=c.slots.fixedPreTip,N.fixedTip=c.slots.fixedTip;const R={...be(o,ve,ye),ref:s};return o.prop&&(R.prop=`${o.prop}_item`),a(R,N)}}else return()=>{const T=c.slots.options?.()??[];return(0,t.h)(r,{class:`${e}`,direction:o.direction,textPosition:o.textPosition,textAlign:v.value,modelValue:A,"update:modelValue":g},{default:()=>T})}}}}var{componentName:b0,create:v0,scope:S0}=ee("radio-item"),k0=v0(y0(b0,S0,Ie,Me,ol,al)),ba=k0,w0=(e,{CheckNormal:n,Checked:a,Indeterminate:l})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(r,i){const{emitEvent:o,exposeApi:c}=ht({context:i}),s=qn(),{slots:d}=i,h=(0,t.inject)("parent",null),u=(0,t.reactive)({partialSelect:r.indeterminate});(0,t.watch)(()=>r.indeterminate,A=>{u.partialSelect=A});const p=(0,t.computed)(()=>!!h),y=(0,t.computed)(()=>p.value?h.value.value.includes(r.label):!!r.modelValue),C=(0,t.computed)(()=>p.value?h.position:r.textPosition);let k="";const v=(A,g)=>{k="click",o("update:modelValue",A),o("change",A,g)};(0,t.watch)(()=>r.modelValue,A=>{k=="click"?k="":o("change",A)});const w=()=>{const A=[];if(u.partialSelect){if(d.indeterminateIcon)return d.indeterminateIcon();{const g=ue(r.iconSize),b=r.indeterminateIcon??s.checkbox.Indeterminate??l;return A.push("fox-checkbox__icon--indeterminate"),r.disabled&&A.push("is-disabled"),r.readonly&&A.push("is-readonly"),(0,t.h)(b,{width:g,height:g,class:A})}}else if(y.value){if(d.checkedIcon)return d.checkedIcon();{const g=ue(r.iconSize),b=r.checkedIcon??s.checkbox.Checked??a;return A.push("fox-checkbox__icon"),r.disabled&&A.push("is-disabled"),r.readonly&&A.push("is-readonly"),(0,t.h)(b,{width:g,height:g,class:A})}}else{if(d.icon)return d.icon();{const g=ue(r.iconSize),b=r.icon??s.checkbox.CheckNormal??n;return A.push("fox-checkbox__icon--unchecked"),r.disabled&&A.push("is-disabled"),r.readonly&&A.push("is-readonly"),(0,t.h)(b,{width:g,height:g,class:A})}}},f=()=>{const A=[`${e}__label`];return r.disabled&&A.push("is-disabled"),r.readonly&&A.push("is-readonly"),(0,t.h)("view",{class:A},d.default?.())},m=()=>{const A=[`${e}__button`];return y.value&&A.push(`${e}__button--active`),r.disabled&&A.push("is-disabled"),r.readonly&&A.push("is-readonly"),(0,t.h)("view",{class:A},d.default?.())},S=A=>{if(!(r.disabled||r.readonly)){if(y.value&&u.partialSelect){u.partialSelect=!1,v(y.value,d.default?.()[0].children);return}if(v(!y.value,d.default?.()[0].children),p.value){const g=h.value.value,b=h.max.value,{label:T}=r,E=g.indexOf(T);E>-1?g.splice(E,1):E<=-1&&(g.length<b||!b)&&g.push(T),h.updateValue(g)}}};return(0,t.onMounted)(()=>{p.value&&h.link(r)}),(0,t.onBeforeUnmount)(()=>{p.value&&h.unlink(r)}),c(),()=>(0,t.h)("view",{class:`${e} ${e}--${r.shape} ${C.value==="left"?`${e}--reverse`:""}`,onClick:S},[r.shape=="button"?m():[w(),f()]])}}),{componentName:C0,create:N0}=ee("checkbox"),A0=N0(w0(C0,{CheckNormal:oe.CheckNormal,Checked:oe.Checked,Indeterminate:oe.CheckDisabled})),il=A0,{create:B0,componentName:Ti}=ee("checkbox-group"),T0=B0({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,n){const{emitEvent:a,exposeApi:l}=ht({context:n}),{slots:r}=n,i=(0,t.reactive)({children:[]}),o=u=>{i.children.push(u)},c=u=>{const p=i.children.findIndex(y=>y===u);p!==-1&&i.children.splice(p,1)},s=u=>{a("update:modelValue",u),a("change",u)},d=u=>{const p=[];u&&i.children.forEach(y=>{y?.disabled||p.push(y?.label)}),a("update:modelValue",p)},h=()=>{a("update:modelValue",i.children.filter(u=>u?.disabled?!1:!e.modelValue.includes(u.label)).map(u=>u.label))};return(0,t.provide)("parent",{value:(0,t.computed)(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:(0,t.computed)(()=>e.max),updateValue:s,link:o,unlink:c}),(0,t.watch)(()=>e.modelValue,u=>{a("change",u)}),l({toggleAll:d,toggleReverse:h}),()=>{const u={};return e.textAlign&&(u["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Ti} ${Ti}--${e.direction}`,style:u},r.default?.())}}}),sl=T0;function Vi(e,n,a,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(va(e,i)===a)return r}else if(l==="item"){if(De(a,i))return r}else if(cl(e,i)===a)return r}return-1}function va(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function cl(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function V0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function E0(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var $0=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);let l=tt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await l(n,a))}};function D0(){return new $0(it())}function I0(e){return{text:e,value:e}}var q0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Ei={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},P0={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:", "}},x0={...ye,...ve,...q0,...Ei,...P0};function M0(e,n,a,l,r,i){return{props:x0,emits:["change","update:modelValue","setValue"],setup(o,c){const{itemTemplateRef:s,innerDisabled:d,disabled:h,innerReadonly:u,readonly:p,browse:y}=Ve(o),C=Te((0,t.computed)(()=>o.textAlign),"textAlign"),{emitEvent:k,exposeApi:v}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return h.value},get props(){return o},context:c,get templateRefProxy(){return s.value}},o.prop??c.attrs.name),w=D0(),f=(0,t.ref)([]),m=(0,t.computed)(()=>typeof o.sourceFilter=="function"&&Array.isArray(f.value)?f.value.filter(o.sourceFilter):f.value);(0,t.watch)([()=>o.source,()=>o.params],async([T,E])=>{if(T){const B=await w.load("checkbox",T,E);B.length>0?typeof B[0]=="string"?f.value=B.map(N=>I0(N)):f.value=B:f.value=[]}},{immediate:!0});const S=(0,t.ref)([]);(0,t.watch)([()=>o.modelValue,()=>m.value],async([T,E])=>{const B=[];Array.isArray(T)&&T.forEach(N=>{let R=Vi(o,E,N,o.valueType);R!==-1&&B.push(R)}),!De(B,S.value)&&(S.value=B,k("setValue",B))},{deep:!0});const A=(0,t.computed)(()=>{if(!o.source)return o.modelValue;let T=[];return S.value.forEach(E=>{let B=m.value[E];T.push(cl(o,B))}),T}),g=T=>{let E=[],B=[];if(m.value.length>0){const N=[];Array.isArray(T)&&T.forEach(R=>{let U=Vi(o,m.value,R,"value");U!==-1&&N.push(U);const $=m.value[U];B.push($),o.valueType==="text"?E.push(va(o,$)):o.valueType==="item"?E.push($):E.push(cl(o,$))}),S.value=N}else E=T;k("update:modelValue",E),k("change",E,B)},b=(0,t.ref)();if(v({toggleAll:T=>{b.value.toggleAll(T)},toggleReverse:()=>{b.value.toggleReverse()},setDisabled:T=>{d.value=T},setReadonly:T=>{u.value=T}}),o.source){const T=()=>{const E=[],B=be(o,Ei);return m.value.forEach((N,R)=>{const U=cl(o,N),$=V0(o,N);let x={...B,label:U,disabled:$};const M=E0(o,N,R);x={...x,...M},h.value&&(x.disabled=!0),p.value&&(x.readonly=!0);const O={};if(c.slots.icon&&(O.icon=c.slots.icon),c.slots.checkedIcon&&(O.checkedIcon=c.slots.checkedIcon),c.slots.indeterminateIcon&&(O.indeterminateIcon=c.slots.indeterminateIcon),typeof c.slots.text=="function"){const X=c.slots.text(N);O.default=()=>[X]}else{const X=va(o,N);O.default=()=>X}let z=(0,t.h)(i,x,O);E.push(z)}),E};return()=>{if(y.value==="on"&&(p.value||h.value))return l(A.value,c.slots,m.value,o.separator);const E=T(),B=(0,t.h)(r,{class:`${e}`,ref:b,direction:o.direction,max:o.max,textPosition:o.textPosition,modelValue:A.value,"onUpdate:modelValue":g},{default:()=>E}),N={default:()=>B};N.label=c.slots.default,N.prepend=c.slots.prepend,N.append=c.slots.append,N.fixedPreTip=c.slots.fixedPreTip,N.fixedTip=c.slots.fixedTip;const R={...be(o,ve,ye),ref:s};return o.prop&&(R.prop=`${o.prop}_item`),a(R,N)}}else return()=>{const T=c.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:b,direction:o.direction,max:o.max,textPosition:o.textPosition,textAlign:C.value,modelValue:A,"onUpdate:modelValue":g},{default:()=>T})}}}}var{componentName:R0,create:z0,scope:F0}=ee("checkbox-item"),L0=z0(M0(R0,F0,Ie,Me,sl,il)),Sa=L0,ka={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:O0,create:K0}=ee("switch"),U0=K0({components:{Loading1:oe.Loading1},props:{...ka},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const c=O0;return{[c]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${c}-base`]:!0,"is-disabled":e.disabled}}),r=(0,t.computed)(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let i="";const o=c=>{if(e.disabled||e.loading)return;i="click";const s=a.value?e.inactiveValue:e.activeValue;n("update:modelValue",s),n("change",s,c)};return(0,t.watch)(()=>e.modelValue,c=>{i=="click"?i="":n("change",c)}),{classes:l,style:r,isActive:a,onClick:o}}}),H0={class:"fox-switch-button"};function j0(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...c)=>e.onClick&&e.onClick(...c)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",H0,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(o,{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 ul=ie(U0,[["render",j0]]),W0={...ye,...ve,...ka};function Y0(e,n,a,l,r){return{props:W0,emits:["change","update:modelValue","setValue"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y,exposeApi:C}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),k=e,v=xe(i,"modelValue",null,y),w=f=>{v.value=f,y("update:modelValue",f,{}),y("change",f,{})};return C({setDisabled:f=>{s.value=f},setReadonly:f=>{h.value=f}}),()=>{if(p.value==="on"&&(u.value||d.value))return l(v.value,o.slots);const f={...be(i,ka),disabled:d.value||u.value,value:v.value,"onUpdate:modelValue":w},m=[],S=(0,t.h)(r,f);m.push(S);const A={default:()=>m};A.label=o.slots.default,A.fixedPreTip=o.slots.fixedPreTip,A.fixedTip=o.slots.fixedTip;const g={...be(i,ve,ye),ref:c};return i.prop&&(g.prop=`${i.prop}_item`),g["content-class"]=k,a(g,A)}}}}var{componentName:X0,create:Q0,scope:G0}=ee("switch-item"),_0=Q0(Y0(X0,G0,Ie,Me,ul)),wa=_0,Z0={...ye,...ve,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 J0(e,n,a,l){return{props:Z0,emits:["click","focus","blur","change"],setup(r,i){const{itemTemplateRef:o,disabled:c,readonly:s}=Ve(r),{emitEvent:d,exposeApi:h}=Be({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return s.value},get disabled(){return c.value},get props(){return r},context:i,get templateRefProxy(){return o.value}},r.prop??i.attrs.name),{toLocaleRefs:u}=(0,ge.useFoxI18n)(n),p=u(r,["placeholder"]),y=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,$=>{y.value=$,d("change",$)});const C=(0,t.computed)(()=>({[`${e}`]:!0})),k=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!c.value&&fe(y.value),"is-disabled":c.value,"is-readonly":s.value})),v=Te((0,t.computed)(()=>r.textAlign),"textAlign"),w=(0,t.computed)(()=>{const $={};return v.value&&($["text-align"]=v.value),$}),f=(0,t.computed)(()=>!fe(r.modelValue)||i.slots.main?!0:!!fe(r.desc)),m=(0,t.computed)(()=>fe(y.value)?p.placeholder.value:y.value),S=(0,t.computed)(()=>!fe(r.desc)||i.slots.sub),A=(0,t.computed)(()=>({[`${e}__sub`]:!0})),g=(0,t.computed)(()=>{const $={};return v.value&&($["text-align"]=v.value),$}),b=()=>{d("focus",y.value)},T=()=>{d("blur",y.value)},E=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":c.value,"is-readonly":s.value})),B=(0,t.computed)(()=>ke(r.unit)>0),N=$=>{c.value==!0||s.value==!0||d("click")},R=(0,t.computed)(()=>r.icon??a),U=(0,t.computed)(()=>({action:!0}));return h(),()=>{const $=[];if(typeof i.slots.content=="function"){const te=i.slots.content();$.push(te)}else{const te=[];if(f.value){const Z={tabIndex:0,class:k.value,style:w.value,onFocus:b,onBlur:T};let J=null;i.slots.main?J=(0,t.h)("view",Z,[i.slots.main(m.value)]):J=(0,t.h)("view",Z,[m.value]),te.push(J)}if(S.value){const Z={tabIndex:0,class:A.value,style:g.value,onFocus:b,onBlur:T};let J=null;i.slots.sub?J=(0,t.h)("view",Z,[i.slots.sub(r.desc)]):J=(0,t.h)("view",Z,[r.desc]),te.push(J)}const W=(0,t.h)("view",{class:C.value,onClick:N},te);$.push(W)}const x=[],M=ue(r.iconSize);let O=i.slots.icon;if(!O){const te={width:M,height:M,class:["action-icon"]};O=(0,t.h)(R.value,te)}const z=(0,t.h)("view",{class:U.value,onClick:N},{default:()=>[O]});if(x.push(z),B.value){const te=(0,t.h)("view",{},[r.unit]);x.push(te)}const X=(0,t.h)("view",{class:E.value},{default:()=>x});$.push(X);const P={default:()=>$};P.label=i.slots.default,P.prepend=i.slots.prepend,P.append=i.slots.append,P.fixedPreTip=i.slots.fixedPreTip,P.fixedTip=i.slots.fixedTip;const _={...be(r,ve,ye),ref:o};return r.prop&&(_.prop=`${r.prop}_item`),l(_,P)}}}}var{componentName:ep,create:tp,scope:np}=ee("link-item"),lp=tp(J0(ep,np,oe.ArrowRight,Ie)),Ca=lp,Na={count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object},size:{type:[String,Number],default:void 0},activeColor:{type:String,default:""},voidColor:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:void 0}},{create:ap,componentName:op}=ee("rate"),rp=ap({props:{...Na},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)([]),r=(0,t.computed)(()=>({[op]:!0})),i=y=>{n("update:modelValue",y),n("change",y)},o=(y,C)=>{if(e.disabled||e.readonly)return;let k=0;C===1&&e.modelValue===C||(k=C,e.allowHalf&&y==2&&(k-=.5)),i(k)},c=(y,C,k)=>{let v=0;for(let w=C.value.length-1;w>=0;w--){const f=C.value[w];if(y>f.offsetLeft){k?v=w+(y>f.offsetLeft+f.clientWidth/2?1:.5):v=w+1;break}}return v},s=nt(),d={onTouchStart(y){!e.touchable||e.readonly||s.start(y)},onTouchMove(y){e.touchable&&(s.move(y),s.isHorizontal()&&l.value&&(y.preventDefault(),i(c(s.moveX.value,l,e.allowHalf))))}},h=Math.random().toString(36).slice(-8),u=(0,t.computed)(()=>e.customIcon??oe.StarFillN);return{classes:r,...d,onClick:o,toPxString:me,renderIcon:(y,C)=>(0,t.h)(y,C),rateRefs:l,refRandomId:h,slots:a,customIcon:u}}}),ip=["id"],sp={class:"fox-rate-item__icon--full"},cp={key:0,class:"fox-rate-item__icon--half"},up={key:1,class:"fox-rate-item__icon--half"};function dp(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...o)=>e.onTouchStart&&e.onTouchStart(...o)),onTouchmove:n[1]||(n[1]=(...o)=>e.onTouchMove&&e.onTouchMove(...o))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),o=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:o,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+o,style:(0,t.normalizeStyle)(o<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("view",sp,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:o<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,t.normalizeClass)(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||o>e.modelValue}]),onClick:c=>e.onClick(1,o)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>o?((0,t.openBlock)(),(0,t.createElementBlock)("view",cp,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:o<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:c=>e.onClick(2,o)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<o?((0,t.openBlock)(),(0,t.createElementBlock)("view",up,[((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:c=>e.onClick(2,o)},null,8,["onClick"]))])):(0,t.createCommentVNode)("",!0)],12,ip))),128))],34)}var dl=ie(rp,[["render",dp]]),fp={...ye,...ve,...Na};function mp(e,n,a,l,r){return{props:fp,emits:["change","update:modelValue","setValue"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y,exposeApi:C}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return u.value},get disabled(){return d.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.attrs.name),k=e,v=xe(i,"modelValue",null,y),w=f=>{v.value=f,y("update:modelValue",f,{}),y("change",f,{})};return C({setDisabled:f=>{s.value=f},setReadonly:f=>{h.value=f}}),()=>{if(p.value==="on"&&(u.value||d.value))return l(v.value,o.slots);const f={...be(i,Na),disabled:d.value,readonly:u.value,value:v.value,"onUpdate:modelValue":w},m=[],S=(0,t.h)(r,f);m.push(S);const A={default:()=>m};if(o.slots.default){const b=o.slots.default();A.label=()=>b}const g=be(i,ve,ye);return i.prop&&(g.prop=`${i.prop}_item`),g["content-class"]=k,g.ref=c,a(g,A)}}}}var{componentName:pp,create:hp,scope:gp}=ee("rate-item"),yp=hp(mp(pp,gp,Ie,Me,dl)),Aa=yp,bp=/scroll|auto|overlay/i,$i=window;function vp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Ba(e,n=$i){let a=e;for(;a&&a!==n&&vp(a);){const{overflowY:l}=window.getComputedStyle(a);if(bp.test(l))return a;a=a.parentNode}return n}function Di(e,n=$i){const a=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(a.value=Ba(e.value,n))}),a}var Ii=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Sp={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 kp(e,n,a){return{props:{...Sp},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:o}=(0,ge.useFoxI18n)(n),c=o(l,["pullText","loadText","noMoreText"]),s=(0,t.ref)(),d=Di(s),h=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),u=(0,t.computed)(()=>({[e]:!0})),p=f=>f?f.offsetTop+p(f.offsetParent):0,y=()=>{let f=0,m=0,S="down";if(d.value==window){const A=Ii();s.value&&(f=p(s.value)+s.value.offsetHeight-A-window.innerHeight),m=A}else{const{scrollHeight:A,clientHeight:g,scrollTop:b}=d.value;f=A-g-b,m=b}return h.beforeScrollTop>m?S="up":S="down",h.beforeScrollTop=m,r("scroll-change",m),f<=l.threshold&&S=="down"},C=()=>{Ye(()=>{if(!y()||!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",C,l.useCapture)},v=()=>{d.value&&d.value.removeEventListener("scroll",C,l.useCapture)};(0,t.onMounted)(()=>{k(),l.immediate&&C()}),(0,t.onUnmounted)(()=>{v()});const w=(0,t.ref)(!1);return(0,t.onActivated)(()=>{w.value&&(w.value=!1,k())}),(0,t.onDeactivated)(()=>{w.value=!0,v()}),(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 A=i?.loading?.()??null;if(!A){let b=i?.loadingIcon?.()??null;b||(b=(0,t.h)(a,{class:["fox-infinite__bottom-box__img"]}));const T=(0,t.h)("view",{class:"fox-infinite__bottom-box__text"},[c.loadText.value]);A=[b,T]}const g=(0,t.h)("view",{class:"fox-infinite__bottom-box"},A);m.push(g)}else if(!l.hasMore){let A=i?.finished?.()??null;A||(A=(0,t.h)("view",{class:"fox-infinite__bottom-tips"},[c.noMoreText.value]),m.push(A))}const S=(0,t.h)("view",{class:"fox-infinite__bottom"},m);return(0,t.h)("view",{class:u.value,ref:s},[f,S])}}}}var{componentName:wp,create:Cp,scope:Np}=ee("infinite-loading"),Ap=Cp(kp(wp,Np,oe.Loading)),fl=Ap,{componentName:Bp,create:Tp}=ee("button"),Vp=Tp({components:{Loading:oe.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:l,size:r,shape:i,disabled:o,loading:c,color:s,plain:d,block:h}=(0,t.toRefs)(e);return{handleClick:p=>{!c.value&&!o.value&&n("click",p)},classes:(0,t.computed)(()=>{const p=Bp;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`]:o.value,[`${p}--loading`]:c.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})}}}),Ep={class:"fox-button__wrap"};function $p(e,n,a,l,r,i){const o=(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]=(...c)=>e.handleClick&&e.handleClick(...c))},[(0,t.createElementVNode)("view",Ep,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(o,{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 At=ie(Vp,[["render",$p]]),Dp={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"}},Ip=(e,n,a)=>({props:{...Dp},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,r){const{emitEvent:i}=ht({context:r}),{toLocaleRefs:o}=(0,ge.useFoxI18n)(n),c=o(l,["placeholder"]),{slots:s}=r,d=(0,t.reactive)({active:!1}),h=(0,t.computed)(()=>({background:l.background})),u=(0,t.computed)(()=>({background:l.inputBackground})),p=B=>{let N=B.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),i("update:modelValue",N,B),i("change",N,B)},y=(0,t.ref)({}),C=B=>{let N=B.target.value;d.active=!0,y.value=l.focusStyle,i("focus",N,B)},k=B=>{setTimeout(()=>{d.active=!1},0);let N=B.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),y.value={},i("blur",N,B)},v=B=>{i("update:modelValue","",B),i("change","",B),i("clear","")},w=(0,t.computed)(()=>String(l.modelValue).length>0),f=(0,t.computed)(()=>{const B={};return w.value||(B.display="none"),B}),m=B=>{l.autoblur&&T.value?.blur(),(typeof B.cancelable!="boolean"||B.cancelable)&&B.preventDefault(),i("search",l.modelValue)},S=B=>{i("keyup-input",B)},A=B=>{i("click-input",B)},g=B=>{i("click-left-icon",l.modelValue,B)},b=(0,t.computed)(()=>({textAlign:l.inputAlign})),T=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&T.value.focus()});const E=()=>{const B=[];if(s.leftin){const $=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:g},[s.leftin()]);B.push($)}const N=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:T,style:b.value,type:l.inputType,maxlengt:l.maxLength,placeholder:c.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:A,onInput:p,onFocus:C,onBlur:k,onkeyup:S}),R=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:m},[N]);B.push(R);const U=[];if(l.clearable){const $=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:v},[(0,t.h)(s?.clear?.()??l.clearIcon??a)]);U.push($)}if(s.rightin){const $=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[s.rightin()]);U.push($)}if(U.length>0){const $=(0,t.h)("view",{class:`${e}__input-inner-right`},U);B.push($)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...u.value,...y.value}},B)};return()=>{const B=[];if(l.label){const R=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);B.push(R)}if(s.leftout){const R=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[s.leftout()]);B.push(R)}const N=E();if(B.push(N),s.rightout){const R=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[s.rightout()]);B.push(R)}return(0,t.h)("view",{class:`${e}`,style:h.value},B)}}}),{componentName:qp,create:Pp,scope:xp}=ee("searchbar"),Mp=Pp(Ip(qp,xp,oe.CircleClose)),ml=Mp,pl={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 Rp(e,n,a,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(hl(e,i)===a)return r}else if(l==="item"){if(De(a,i))return r}else if(Pi(e,i)===a)return r}return-1}function hl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function qi(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Pi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function zp(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Fp(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var Lp=class{scope;constructor(e){this.scope=e}async load(e,n,a,l,r,i,o){if(!n)return{totalSize:0,page:[]};if(Array.isArray(n)){let s=n;typeof o=="function"&&(s=s.filter(o));let d=(a-1)*l,h=d+l;h>s.length&&(h=s.length);const u=s.slice(d,h);return{totalSize:s.length,page:u}}if(typeof n=="function")return await Reflect.apply(n,null,[a,l,r,i]);const c=tt(e,this.scope);return c===null?(console.error(`[FoxUI]${e} component not found api function`),{totalSize:0,page:[]}):($e(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await Reflect.apply(c,null,[n,a,l,r]))}};function Op(){return new Lp(it())}function Kp(e,n,a,l,r,i,o,c,s,d,h){return{props:pl,emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(u,p){const{emitEvent:y,exposeApi:C}=ht({context:p}),{slots:k}=p,{toLocaleRefs:v}=(0,ge.useFoxI18n)(n),w=v(u,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),f=Op(),m=(0,t.ref)([]),S=(0,t.ref)(0),A=(0,t.ref)(""),g=(0,t.shallowRef)(null),b=(0,t.computed)(()=>{const D={};return u.params&&Object.assign(D,u.params),fe(A.value)||(D[`${u.searchKey}`]=A.value),g.value&&Object.assign(D,g.value),D});let T=!0;const E=async(D,q,K)=>{try{if(N.value===!1)return;let I=null;fe(A.value)||(I=ae=>{const re=hl(u,ae);if(typeof re=="string"&&re.includes(A.value))return!0;const se=qi(u,ae);return!!(typeof se=="string"&&se.includes(A.value))});const Y=await f.load("actionsheet",D,q,K,b.value,T,I??void 0);T=!1,Array.isArray(Y)?(m.value=Y,S.value=1,N.value=!1):!Array.isArray(Y.page)||Y.page.length===0?(console.warn("[FoxUI] can not load more data"),N.value=!1):(Reflect.apply([].push,m.value,Y.page),S.value=Math.ceil(m.value.length/u.pageSize),(Y.totalSize&&m.value.length>=Y.totalSize||K<Y.page.length)&&(N.value=!1)),B.value=!1}catch(I){console.error("[FoxUI] ActionSheet load more data fail",I),N.value=!0,S.value=0,m.value=[]}setTimeout(()=>{y("loaded-data")},250)},B=(0,t.ref)(!1),N=(0,t.ref)(!0),R=async()=>{if(!u.source){B.value=!1;return}await E(u.source,S.value+1,u.pageSize)};let U=null;(0,t.watch)(A,(D,q)=>{U&&(clearTimeout(U),U=null),fe(D)&&!fe(q)&&(U=setTimeout(()=>{x()},u.searchDelayTriggerClear))});const $=()=>{N.value=!0,S.value=0,m.value=[],u.source&&R()},x=()=>{$()};(0,t.watch)([()=>u.source,()=>u.pageSize,()=>u.params],async([D,q,K])=>{u.source&&$()},{immediate:!0});const M=(0,t.computed)(()=>!u.multiple&&u.isAutoBackFill),O=(0,t.ref)([]);let z=null;const X=(0,t.ref)(u.visible);(0,t.watch)(()=>u.visible,D=>{X.value!==D&&(X.value=D),D?z=[...O.value]:z=null});const P=(D,q)=>{const K=[];return Array.isArray(D)||(D=[D]),D.forEach(I=>{let Y=Rp(u,q,I,u.valueType);Y!==-1&&K.push(Y)}),De(K,O.value)?!1:(O.value=K,!0)};(0,t.watch)([()=>u.modelValue,()=>m.value],([D,q],[K,I])=>{P(D,q)&&te(_())},{deep:!0});const _=()=>{const D=[],q=[],K=[];for(let re of O.value){const se=m.value[re];q.push(se);const we=hl(u,se);if(K.push(we),u.valueType==="item")D.push(se);else if(u.valueType==="text")D.push(we);else{const he=Pi(u,se);D.push(he)}}let I=null,Y=null,ae=null;return u.multiple?(I=D,Y=K,ae=q):(I=D[0]??null,Y=K[0]??null,ae=q[0]??null),{value:I,text:Y,item:ae}},te=D=>{y("update:modelValue",D.value),y("update:text",D.text),y("change",D.value,D.item,D.text)},W=()=>{z&&(O.value=z)},Z=D=>{const q=O.value.indexOf(D);u.multiple?q===-1?O.value.push(D):O.value.splice(q,1):q===-1?O.value=[D]:O.value=[],(M.value||!u.poppable&&!u.showFooter)&&ne()},J=D=>{X.value=D,y("update:visible",D)},j=()=>{const D=()=>{W(),J(!1)},q=u.beforeMethod??u.beforeClose;if(typeof q=="function"){const K=q("close");dt(K)?K.then(I=>{I!==!1&&D()}).catch(()=>{D()}):K!==!1&&D()}else D()},ne=()=>{const D=_(),q=()=>{te(D),J(!1)},K=u.beforeMethod??u.beforeClose;if(typeof K=="function"){const I=K("confirm",D.value,D.item,D.text);dt(I)?I.then(Y=>{Y!==!1&&q()}).catch(()=>{q()}):I!==!1&&q()}else q()},H=()=>{let D=w.title.value??"";return k.title&&(D=k.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[D]),(0,t.h)(s,{class:["fox-actionsheet__header-icon"],onClick:j})])},F=()=>{let D=null;return k.search?D=k.search():D=(0,t.h)(i,{onSearch:$,placeholder:w.seachPlaceholder.value,disabled:u.disabled,modelValue:A.value,"onUpdate:modelValue":q=>{A.value=q}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[D])},L=(D,q,K,I,Y)=>{if(k.optionLabel)return k.optionLabel({text:D,checked:q,disabled:K,subText:I,item:Y});const ae=[],re=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[D]);if(ae.push(re),I){const se=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[I]);ae.push(se)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},ae)},G=(D,q,K,I)=>k.optionIcon?k.optionIcon({checked:D,disabled:q,iconSize:K,item:I}):D?k.checkedIcon?k.checkedIcon({disabled:q,item:I}):(0,t.h)(u.checkedIcon??c,{width:K,height:K,class:["fox-actionsheet__list-item-icon"]}):k.icon?k.icon({disabled:q,item:I}):(0,t.h)(u.icon??o,{width:K,height:K,class:["fox-actionsheet__list-item-icon"]}),Q=()=>{const D=[];for(let q=0;q<m.value.length;q++){const K=m.value[q],I=hl(u,K),Y=qi(u,K),ae=["fox-actionsheet__list-item"],re={};let se=zp(u,K),we=u.iconSize?ue(u.iconSize):null;const he=Fp(u,K,q);he&&(se=se||he.disabled,he.class&&ae.push(he.class),he.style&&Object.assign(re,he.style)),se=!!(u.disabled||se);const Le=O.value.includes(q);se&&ae.push("is-disabled"),Le&&ae.push("is-checked");const un={class:ae,style:re,key:`${q}`,onClick:()=>{se||Z(q)}};let at=[];if(k.option)at.push(k.option({item:K,checked:Le,disabled:se}));else{const z2=L(I,Le,se,Y,K);at.push(z2);const F2=G(Le,se,we,K);at.push(F2),u.textPosition==="right"&&at.reverse()}const Qo=(0,t.h)("view",un,at);D.push(Qo)}return D},le=()=>{let D=[];if(k.buttons)D=k.buttons();else{const q=(0,t.h)(r,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:ne,disabled:u.disabled},{default:()=>w.confirmText.value});D.push(q)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[D])};return C({search:async(D=null,q=!0)=>{g.value=D&&(0,t.toRaw)(D),(0,t.triggerRef)(g),q&&(N.value=!0,S.value=0,m.value=[]),(0,t.nextTick)(()=>{R()})},clear:()=>{N.value=!0,S.value=0,m.value=[]},confirm:()=>{ne()},cancel:()=>{j()}}),()=>{const D=[];if(u.showHeader){const se=H();D.push(se)}if(u.showSearchbar){const se=F();D.push(se)}let q=null;if(k.content)q=k.content();else{const se=Q();q=(0,t.h)(l,{hasMore:N.value,loadText:w.loadText.value,noMoreText:w.noMoreText.value,modelValue:B.value,"onUpdate:modelValue":we=>{B.value=we},onLoadMore:R},{default:()=>se})}const K={};u.optionsHeight&&(K.height=u.optionsHeight);const I={"fox-actionsheet__list":!0};u.poppable||(I["fox-actionsheet__list--inner"]=!0);const Y=(0,t.h)("view",{class:I,style:K},[q]);if(D.push(Y),u.showFooter&&!M.value){const se=le();D.push(se)}const ae=(0,t.h)("view",{class:"fox-actionsheet"},D);if(!u.poppable)return ae;const re=["fox-actionsheet__popup"];return u.popClass&&re.push(u.popClass),(0,t.h)(a,{popClass:re.join(" "),visible:X.value,closeable:!1,"onUpdate:visible":J,position:u.position,round:"round",onClickOverlay:j,closeOnClickOverlay:u.closeOnClickOverlay},{default:()=>ae})}}}}var{componentName:Up,create:Hp,scope:jp}=ee("actionsheet-pane"),Wp=Hp(Kp(Up,jp,Ce,fl,At,ml,oe.CheckNormal,oe.Checked,oe.Close,oe.Search2,!1)),gl=Wp,xi={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:" "}},Yp={...ye,...ve,...xi,...pl};function Xp(e,n,a,l,r,i,o,c){return{props:Yp,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:u,disabled:p,innerReadonly:y,readonly:C,browse:k}=Ve(s),{emitEvent:v,exposeApi:w}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return C.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,ge.useFoxI18n)(n),m=f(s,["placeholder"]),S=(0,t.ref)(!1),A=xe(s,"modelValue",null,v),g=(0,t.ref)(""),b=(0,t.computed)(()=>Array.isArray(g.value)?g.value.join(s.separator):g.value),T="fox-input-item",E=(0,t.computed)(()=>({[T]:!0,"is-disabled":p.value,"is-readonly":C.value})),B=Te((0,t.computed)(()=>s.textAlign),"textAlign"),N=(0,t.computed)(()=>{const G={};return B.value&&(G["text-align"]=B.value),G}),R=(0,t.ref)(!1),U=()=>{R.value=!0},$=G=>{R.value=G},x=G=>{A.value=G,v("update:modelValue",G)},M=(G,Q)=>{v("change",G,Q)},O=G=>{let Q=G.target.value;S.value=!0,v("focus",Q,G)},z=G=>{setTimeout(()=>{S.value=!1},0);let Q=G.target.value;s.maxLength&&Q.length>Number(s.maxLength)&&(Q=Q.slice(0,Number(s.maxLength))),v("blur",Q,G)},X=G=>{g.value=G,v("update:text",G)},P=(0,t.computed)(()=>({[`${T}__append`]:!0,"is-disabled":p.value,"is-readonly":C.value})),_=(0,t.computed)(()=>ke(s.unit)>0),te=(0,t.computed)(()=>ke(s.unit)>0&&!S.value),W=(0,t.computed)(()=>({hidden:!te.value})),Z=G=>{A.value="",v("update:modelValue","",G),v("change","",G),v("clear","")},J=(0,t.computed)(()=>s.clearable&&!p.value&&!C.value),j=(0,t.computed)(()=>ke(A.value)>0&&S.value),ne=G=>{j.value?Z(G):U()},H=(0,t.computed)(()=>j.value&&J.value?r:i),F=(0,t.computed)(()=>({action:!0})),L=(0,t.ref)(null);return w({search:G=>{L.value&&L.value.search(G)},clear:()=>{L.value&&L.value.clear},confirm:G=>{L.value&&L.value.confirm()},cancel:()=>{L.value&&L.value.cancel()},setDisabled:G=>{u.value=G},setReadonly:G=>{y.value=G}}),()=>{if(k.value==="on"&&(C.value||p.value))return l(b.value,d.slots);const G={class:E.value,style:N.value,type:"text",maxlength:s.maxLength,placeholder:m.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:U,onFocus:O,onBlur:z};c&&(G.disabled=!0);const Q=[],le=(0,t.h)("input",G);Q.push(le);const D=[],q=(0,t.h)(H.value,{class:["action-icon"]}),K=(0,t.h)("view",{class:F.value,onClick:ne},{default:()=>[q]});if(D.push(K),_.value){const we=(0,t.h)("view",{class:W.value},[s.unit]);D.push(we)}const I=(0,t.h)("view",{class:P.value},{default:()=>D});Q.push(I);const Y={default:()=>Q};Y.label=d.slots.default,Y.prepend=d.slots.prepend,Y.append=d.slots.append,Y.fixedPreTip=d.slots.fixedPreTip,Y.fixedTip=d.slots.fixedTip;const ae=be(s,pl);ae.ref=L,ae.class=s.actionSheetClass,ae.disabled=p.value||C.value,ae.visible=R.value,ae["onUpdate:visible"]=$,ae.modelValue=A.value,ae["onUpdate:modelValue"]=x,ae.text=g.value,ae["onUpdate:text"]=X,ae.onChange=M,ae.poppable=!0,ae["text-position"]=s.textPosition;const re=(0,t.h)(o,ae,{title:d.slots.title,search:d.slots.search,option:d.slots.option,optionLabel:d.slots.optionLabel,optionIcon:d.slots.optionIcon,buttons:d.slots.buttons});Y.hide=()=>[re];const se={...Qe(s,xi,pl),ref:h};return s.prop&&(se.prop=`${s.prop}_item`),a(se,Y)}}}}var{componentName:Qp,create:Gp,scope:_p}=ee("actionsheet-item"),Zp=Gp(Xp(Qp,_p,Ie,Me,oe.CircleClose,oe.ArrowRight,gl)),Ta=Zp,Va={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:Jp,create:eh}=ee("input-number"),th=eh({components:{Minus:oe.Minus,Plus:oe.Plus},props:{...Va},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=(0,t.computed)(()=>{const y=Jp;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),l=y=>Number(y).toFixed(Number(e.decimalPlaces)),r=y=>{const C=y.target;n("update:modelValue",C.valueAsNumber,y)},i=(y,C)=>{let k=l(y);n("update:modelValue",k,C),n("change",k,C)},o=(y=Number(e.modelValue))=>y<Number(e.max)&&!e.disabled,c=(y=Number(e.modelValue))=>y>Number(e.min)&&!e.disabled,s=y=>{n("reduce",y),c()?i(Number(e.modelValue)-Number(e.step),y):n("overlimit",y,"reduce")},d=y=>{n("add",y),o()?i(Number(e.modelValue)+Number(e.step),y):n("overlimit",y,"add")},h=y=>{e.disabled||e.readonly||n("focus",y)},u=y=>{if(e.disabled||e.readonly)return;let C=y.target.valueAsNumber;C<Number(e.min)?C=Number(e.min):C>Number(e.max)&&(C=Number(e.max)),i(C,y),n("blur",y)},p=y=>{let C=Number(y);return C<Number(e.min)?C=Number(e.min):C>Number(e.max)&&(C=Number(e.max)),C};return(0,t.watch)(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const y=p(e.modelValue);y!==Number(e.modelValue)&&i(y,{})}),{classes:a,change:r,blur:u,focus:h,add:d,addAllow:o,reduce:s,reduceAllow:c,toPxString:me}}}),nh=["min","max","disabled","readonly","value"];function lh(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Minus"),c=(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)(o,{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,nh),(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)(c,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var yl=ie(th,[["render",lh]]),ah={...ye,...ve,...Va};function oh(e,n,a,l,r){return{props:ah,emits:["change","update:modelValue","setValue","add","reduce"],setup(i,o){const{itemTemplateRef:c,innerDisabled:s,disabled:d,innerReadonly:h,readonly:u,browse:p}=Ve(i),{emitEvent:y,exposeApi:C}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!d.value&&!u.value},get props(){return i},context:o,get templateRefProxy(){return c.value}},i.prop??o.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(" ")}),v=xe(i,"modelValue",null,y),w=S=>{v.value=S,y("update:modelValue",S,{}),y("change",S,{})},f=S=>{y("add",S)},m=S=>{y("reduce",S)};return C({setDisabled:S=>{s.value=S},setReadonly:S=>{h.value=S}}),()=>{if(p.value==="on"&&(u.value||d.value))return l(v.value,o.slots);const S={"left-icon":o.slots["left-icon"],"right-icon":o.slots["right-icon"]},A=be(i,Va),g=(0,t.h)(r,{...o.attrs,...A,disabled:d.value,readonly:u.value,value:v.value,"onUpdate:modelValue":w,onAdd:f,onReduce:m},S),b=[];b.push(g);const T={default:()=>b};T.label=o.slots.default,T.fixedPreTip=o.slots.fixedPreTip,T.fixedTip=o.slots.fixedTip;const E={...be(i,ve,ye),ref:c};return i.prop&&(E.prop=`${i.prop}_item`),E["content-class"]=k.value,a(E,T)}}}}var{componentName:rh,create:ih,scope:sh}=ee("input-number-item"),ch=ih(oh(rh,sh,Ie,Me,yl)),Ea=ch,uh={...sa,...ca,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function dh(e,n,a,l){return{props:uh,emits:["update:modelValue","change"],setup(r,{emit:i,slots:o}){const c=e,s=(0,t.computed)(()=>{const k=[`${c}`];return r.direction==="vertical"?k.push("vertical-tabbar"):k.push("horizontal-tabbar"),k}),d=(0,t.computed)(()=>{const k={};if(r.width){const v=me(r.width);v&&(k.width=v)}if(r.height){const v=me(r.height);v&&(k.height=v)}return k}),h=(0,t.computed)(()=>[`${c}__bar`]),u=(0,t.computed)(()=>[`${c}__container`]),p=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,k=>{p.value!==k&&(p.value=k)});const y=k=>{i("change",k)},C=k=>{p.value!==k&&(p.value=k,i("update:modelValue",k))};return()=>{const{getChildren:k}=Ln(o.default),v=k(),w=[];if(Array.isArray(r.data))w.push(...r.data);else for(let T=0;T<v.length;T++){const E=v[T].props??{},B={text:E.label??"",value:E["pane-key"]??E.paneKey??""};w.push(B)}const f={};for(let T in o)T!=="default"&&(f[T]=o[T]);const m=be(r,sa);Object.assign(m,{data:w,class:h.value,modelValue:p.value,direction:r.direction,onChange:y,"onUpdate:modelValue":C});const S=(0,t.h)(a,m,f),A={default:()=>v},g=be(r,ca);Object.assign(g,{class:u.value,modelValue:p.value,onChange:y,"onUpdate:modelValue":C});const b=(0,t.h)(l,g,A);return(0,t.h)("view",{class:s.value,style:d.value},[S,b])}}}}var{create:fh,componentName:mh,scope:ph}=ee("tabs-frame"),hh=fh(dh(mh,ph,Yt,Xt)),$a=hh,gh={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 yh(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Mi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ri(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function bh(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Da(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function zi(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Fi(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Ia(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}var vh=class{scope;constructor(e){this.scope=e}async load(e,n,a){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[a]);const l=tt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):($e(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await Reflect.apply(l,null,[n,a]))}};function Sh(){return new vh(it())}function kh(e,n,a,l){return{props:{...gh},emits:["update:modelValue","change","loaded-data","click"],setup(r,{slots:i,emit:o}){const c=e,s=Sh(),d=(0,t.ref)([]),h=(0,t.computed)(()=>d.value.filter(W=>bh(r,W)!==!1)),u=(0,t.ref)(-1),p=()=>{const W=r.modelValue,Z=h.value.findIndex(J=>Mi(r,J)===W);u.value!==Z&&(u.value=Z,r.scroll&&_(Z,!1))};(0,t.watch)([()=>r.modelValue,h],()=>{p()});const y=W=>u.value===W,C=W=>{if(W<0&&W>=h.value.length)return!1;const Z=h.value[W],J=(Ia(r,Z,W)??{}).status??Da(r,Z);return y(W)||J},k=(0,t.computed)(()=>{const W={[c]:!0};return r.mode?W[`is-${r.mode}`]=!0:r.direction&&(W[`is-${r.direction}`]=!0),r.scroll&&(W["is-scroll"]=!0),W}),v=(0,t.computed)(()=>({})),w=(W,Z,J,j,ne)=>{const H={[`${c}__step`]:!0};return ne&&(H[`${ne}`]=!0),H[`${f.value}`]=!0,j&&(H["is-doit"]=!0),W===u.value?H["is-active"]=!0:Z==="done"?H["is-done"]=!0:Z==="error"?H["is-error"]=!0:Z==="half"?H["is-half"]=!0:J?H["is-disabled"]=!0:H["is-normal"]=!0,H},f=(0,t.computed)(()=>{let W=r.align;if(!W){if(r.mode==="simple")return"start";r.direction==="vertical"?W="start":W="center"}return W}),m=(W,Z={})=>{const J={...Z};if(f.value==="start"&&W===h.value.length-1)J.flex="0 0 auto";else if(r.step){const j=typeof r.step=="number"||yn(r.step)?me(r.step):r.step;r.direction==="vertical"?J.height=j:J.width=j}else J.flex="1 1 100%";return J},S=(W,Z)=>{let J={};if(Z<h.value.length-1){const j=Z+1;C(Z)&&C(j)?r.direction==="vertical"?J.height="100%":J.width="100%":J.opacity="0"}return J},A=W=>h.value.length-1===W,g=(W,Z)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&Z>u.value||u.value===Z)return;const J=u.value,j=Z;u.value=Z,r.scroll&&_(Z,!1);const ne=Mi(r,W);o("update:modelValue",ne),o("change",ne,{fromIndex:J,currentIndex:j,item:W,items:h.value,clickNavigatePolicy:r.clickNavigatePolicy})},b=(0,t.ref)(!0),T=async(W,Z)=>{try{const J=await s.load("stesbar",W,Z);Array.isArray(J)&&(d.value=J),b.value=!1}catch(J){console.error("[FoxUI] Load StepsBar Data Fail",J),d.value=[]}setTimeout(()=>{o("loaded-data")},250)};(0,t.watch)([()=>r.data,()=>r.params],async([W,Z])=>{W&&T(W,Z)},{immediate:!0});const E=(W,Z,J,j,ne,H)=>{const F=[];let L=null;if(!H)if(i.icon)L=i.icon({item:W,index:Z,status:j});else if(j==="done"){const G={};r.iconSize&&(G.width=r.iconSize,G.height=r.iconSize),L=(0,t.h)(r.icon??a,G)}else L=(0,t.h)("span",{},[J??`${Z+1}`]);return L&&F.push(L),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{o("click",{item:W,index:Z}),!ne&&g(W,Z)}},F)},B=(W,Z,J)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:S(W,Z)})]),N=()=>{let W=null;if(i.markIcon)W=i.markIcon();else{const Z={};r.iconSize&&(Z.width=r.markIconSize,Z.height=r.markIconSize),W=(0,t.h)(r.markIcon??l,Z)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[W])},R=(W,Z,J,j,ne,H)=>{const F=[];if(!A(Z)){const G=B(W,Z,j);F.push(G)}const L=E(W,Z,J,j,ne,H);return F.push(L),(0,t.h)("view",{class:"fox-steps-bar__head"},F)},U=(W,Z,J,j)=>{let ne=null;return i.main?ne=i.main({item:W,index:Z,status:J}):ne=yh(r,W),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{o("click",{item:W,index:Z}),!j&&g(W,Z)}},[ne])},$=(W,Z,J)=>{let j=null;return i.sub?(j=i.sub({item:W,index:Z,status:J}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[j])):null},x=(W,Z)=>{const J=Ia(r,W,Z)??{},j=J.status??Da(r,W);let ne=Ri(r,W);J.disabled===!0&&(ne=!0),r.disabled===!0&&(ne=!0);let H=zi(r,W);J.doit===!0&&(H=!0);const F=J.label??Fi(r,W),L=[],G=E(W,Z,F,j,ne,H);G&&L.push(G);const Q=U(W,Z,j,ne);if(Q&&L.push(Q),!A(Z)){const K=B(W,Z,j);K&&L.push(K)}const le=(0,t.h)("view",{class:"fox-steps-bar__head"},L),D=J.class,q=J.style??{};return(0,t.h)("view",{ref:P(Z),class:w(Z,j,ne,H,D),style:m(Z,q)},[le])},M=(W,Z)=>{const J=Ia(r,W,Z)??{},j=J.status??Da(r,W);let ne=Ri(r,W);J.disabled===!0&&(ne=!0),r.disabled===!0&&(ne=!0);let H=zi(r,W);J.doit===!0&&(H=!0);const F=J.label??Fi(r,W),L=[],G=r.layout;for(let D of G)if(D==="head"){const q=R(W,Z,F,j,ne,H);L.push(q)}else if(D==="main"){const q=U(W,Z,j,ne);L.push(q)}else if(D==="sub"){const q=$(W,Z,j);L.push(q)}else if(D==="mark"){const q=N();L.push(q)}const Q=J.class,le=J.style??{};return(0,t.h)("view",{ref:P(Z),class:w(Z,j,ne,H,Q),style:m(Z,le)},L)},O=(0,t.ref)(),z=(0,t.ref)([]),X=(W,Z)=>{z.value[Z]=W},P=W=>Z=>{X(Z,W)},_=(W,Z)=>{const J=O.value,j=z.value;if(!J||!j||!j[W])return;const ne=j[W];let H=0;r.direction==="vertical"?H=ne.offsetTop-(J.offsetHeight-ne.offsetHeight)/2:H=ne.offsetLeft-(J.offsetWidth-ne.offsetWidth)/2,te(J,H,Z?0:.3,r.direction)},te=(W,Z,J,j)=>{let ne=0;const H=j==="horizontal"?W.scrollLeft:W.scrollTop,F=J===0?1:Math.round(J*1e3/16);function L(){j==="horizontal"?W.scrollLeft+=(Z-H)/F:W.scrollTop+=(Z-H)/F,++ne<F&&Ue(L)}L()};return()=>{let W=[];if(r.mode==="simple")for(let J=0;J<h.value.length;J++){const j=h.value[J],ne=x(j,J);W.push(ne)}else for(let J=0;J<h.value.length;J++){const j=h.value[J],ne=M(j,J);W.push(ne)}const Z={ref:O,class:k.value,style:v.value};return W.length===0&&typeof i.default=="function"&&(W=i.default()),(0,t.h)("view",Z,W)}}}}var{componentName:wh,create:Ch,scope:Nh}=ee("steps-bar"),Ah=Ch(kh(wh,Nh,oe.Checklist,oe.ArrowRight)),qa=Ah;function Bh(e){e.stopPropagation()}var Th=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=Xn()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=Qn(),a=(l,r,i,o)=>{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),Bh(l),a(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{a(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 Vh(e,n){return new Th(e,n)}var Eh={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]}},$h=(e,n,a,l=!1)=>({props:{...Eh},emits:["click"],setup(r,{slots:i,emit:o}){let c=-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 A=[`${e}`];return r.customClass&&A.push(r.customClass),A}),u=A=>typeof A=="string"&&!yn(A)?A:`${A}px`,p=(0,t.computed)(()=>{const A={};return fe(d.top)||(A.top=u(d.top)),fe(d.right)||(A.right=u(d.right)),fe(d.bottom)||(A.bottom=u(d.bottom)),fe(d.left)||(A.left=u(d.left)),fe(r.width)||(A.width=u(r.width)),fe(r.height)||(A.height=u(r.height)),fe(r.color)||(A.color=r.color),fe(r.background)||(A.background=r.background),fe(r.borderRadius)||(A["border-radius"]=r.borderRadius),fe(r.zIndex)||(A["z-index"]=r.zIndex),A}),y=(0,t.computed)(()=>({[`${e}__icon`]:!0})),C=()=>{o("click")},k=(0,t.ref)(null),v=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},w={x:0,y:0},S=Vh(A=>{if(!k.value)return;const g=k.value;v(),d.left=g.offsetLeft,d.top=g.offsetTop,g.style.left=`${d.left}px`,g.style.top=`${d.top}px`,g.style.right=null,g.style.bottom=null,w.x=d.left,w.y=d.top,d.width=g.offsetWidth,d.height=g.offsetHeight,c=document.documentElement.clientWidth||document.body.clientWidth,s=document.documentElement.clientHeight||document.body.clientHeight},A=>{if(!k.value)return;const g=k.value;v();let b=w.x+A.x;b<0&&(b=0),b>c-d.width&&(b=c-d.width);let T=w.y+A.y;T<0&&(T=0),T>s-d.height&&(T=s-d.height),d.left=b,d.top=T,g.style.left=`${b}px`,g.style.top=`${T}px`});return(0,t.onMounted)(()=>{if(r.draggable&&k.value){const A=[k.value];S.open(A)}}),(0,t.onBeforeUnmount)(()=>{r.draggable&&k.value&&S.close()}),()=>{let A=[];const g=typeof i.default=="function"?i.default():[];if(g&&g.length>0)A=g;else{const b=(0,t.h)(a,{class:y.value});A.push(b)}return(0,t.h)("view",{ref:b=>{k.value=b},class:h.value,style:p.value,onClick:C},A)}}}),{componentName:Dh,create:Ih,scope:qh}=ee("floating-button"),Ph=Ih($h(Dh,qh,oe.Uploader,!1)),Pa=Ph,xh={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 Mh(e,n,a){return{props:{...xh},emits:["click","update:modelValue"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:o}=(0,ge.useFoxI18n)(n),c=o(l,["collapseText","expandText"]),s=(0,t.computed)(()=>{const C={[`${e}`]:!0};return l.disabled?C[`${e}--disabled`]=!0:C[`${e}--${l.type}`]=!0,C}),d=xe(l,"modelValue"),h=(0,t.computed)(()=>d.value?c.expandText.value??"":c.collapseText.value??""),u=(0,t.computed)(()=>({[`${e}__text`]:!0})),p=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),y=()=>{r("update:modelValue",!d.value)};return()=>{const C=[];if(h.value){const w=(0,t.h)("span",{class:u.value},[h.value]);C.push(w)}const k={class:p.value},v=(i.icon&&i.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(a);if(v){const w=(0,t.h)("view",k,[v]);C.push(w)}return l.textPosition==="right"&&C.reverse(),(0,t.h)("view",{class:s.value,onClick:y},C)}}}}var{componentName:Rh,create:zh,scope:Fh}=ee("more-button"),Lh=zh(Mh(Rh,Fh,oe.RectUp)),xa=Lh,Oh={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}},Kh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Uh(e,n,a){return{props:{...Oh},emits:["update:visible"],setup(l,{attrs:r,slots:i,emit:o}){const{toLocaleRefs:c}=(0,ge.useFoxI18n)(n),s=c(l,["confirmText","cancelText"]),d=e,h=(0,t.ref)(l.visible),u=A=>{h.value=A,o("update:visible",A)};(0,t.watch)(()=>l.visible,A=>{h.value!==A&&(h.value=A)});const p=A=>{if(typeof l.unmount=="function")try{l.unmount()}catch(g){console.error(g)}if(typeof l.callback=="function")try{l.callback(A)}catch(g){console.error(g)}},y=()=>{p("confirm")},C=()=>{p("cancel")},k=()=>{l.closeOnClickOverlay!==!1&&p("close")},v=(A,g)=>Kh(A)?(g.src=A,(0,t.h)("img",g)):typeof A=="string"?(Array.isArray(g.class)?g.class.push(A):g.class&&typeof g.class=="object"?g[`${A}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${A}`:g.class=A,(0,t.h)(l.tag,g)):(0,t.h)(A,g),w=()=>{const A=[];if(l.icon){const g={class:[`${d}__header-icon`]},b=v(l.icon,g);A.push(b)}if(l.title){const g=(0,t.h)("view",{class:`${d}__header-title`},[l.title]);A.push(g)}if(l.showClose&&l.closeIcon){const g={class:[`${d}__header-close-icon`],onClick:k},b=v(l.closeIcon,g);A.push(b)}return(0,t.h)("view",{class:[`${d}__header`]},A)},f=(A,g)=>{const b=[];if(g){const T=(0,t.h)("view",{class:`${d}__group-title`},[g]);b.push(T)}if(A){const T=[];Array.isArray(A)||(A=[A]);for(let E of A){const B=(0,t.h)("view",{class:`${d}__group-row`,innerHTML:E});T.push(B)}if(T.length>0){const E=(0,t.h)("view",{class:`${d}__group-rows`},T);b.push(E)}}return b.length===0?null:(0,t.h)("view",{class:`${d}__group`},b)},m=()=>{const A=[];if(typeof l.message=="string")A.push(l.message);else if(Array.isArray(l.message))for(let g of l.message)if(typeof g=="string"){const b=f(g);A.push(b)}else{const b=f(g.content,g.title);A.push(b)}else if(typeof l.message=="function"){const g=l.message();A.push(g)}else{const g=l.message;A.push(g)}return(0,t.h)("view",{class:`${d}__body`},A)},S=()=>{const A=[];if(l.showCancelButton){const g={class:[`${d}__footer-button`],style:{},onClick:C};l.cancelButtonClass&&g.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(g.style,l.cancleButtonStyle);const b=(0,t.h)("button",g,[l.cancelButtonText??s.cancelText.value]);A.push(b)}if(l.showConfirmButton){const g={class:[`${d}__footer-button`],style:{},onClick:y};l.confirmButtonClass&&g.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(g.style,l.confirmButtonStyle);const b=(0,t.h)("button",g,[l.confirmButtonText??s.confirmText.value]);A.push(b)}return A.length===0?null:(0,t.h)("view",{class:`${d}__footer`},A)};return()=>{const A=[],g=w();g&&A.push(g);const b=m();b&&A.push(b);const T=S();T&&A.push(T);const E=(0,t.h)("view",{class:{[`${d}`]:!0,[`${d}--${l.type||"info"}`]:!0}},A),B=[`${d}__popup`];l.popClass&&B.push(l.popClass);const N={};return l.width&&(N.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(N.height=typeof l.height=="number"?`${l.height}px`:l.height),(0,t.h)(a,{popClass:B.join(" "),style:N,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":u,position:l.position,round:"round",onClickOverlay:k,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>E})}}}}var{componentName:Hh,create:jh,scope:Wh}=ee("messagebox"),Yh=jh(Uh(Hh,Wh,Ce)),Xh=Yh,Qh="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",Gh="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",_h="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",Zh="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",Jh=new Kn,eg={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},tg=e=>{let n=document.body,a=e.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):a&&(n=e.teleport));const l=document.createElement("view"),r=`messagebox-${Jh.get()}`;l.id=r,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const o=document.querySelector(`#${r}`);o&&o.parentNode?.removeChild(o)};const i=(0,t.createVNode)(Xh,e);n.appendChild(l),(0,t.render)(i,l)},ut={show:(e,n,a,l)=>{const r={...eg};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(r,n):(n&&(r.message=n),a&&typeof a=="object"?Object.assign(r,a):(typeof a=="string"&&(r.title=a),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=_h:i==="warning"?r.icon=Zh:i==="error"?r.icon=Qh:r.icon=Gh),e==="alert"?(r.showCancelButton=!1,r.showConfirmButton=!0):e==="confirm"&&(r.showCancelButton=!0,r.showConfirmButton=!0),r.showClose&&!r.closeIcon&&(r.closeIcon=oe.Close),new Promise((o,c)=>{const s=r.callback;r.callback=d=>{if(typeof s=="function")try{s(d)}catch(h){console.error(h)}o({action:d})},tg(r)})},alert:(e,n,a)=>ut.show("alert",e,n,a),confirm:(e,n,a)=>ut.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=ut.alert,e.config.globalProperties.$confirm=ut.confirm}},ng=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let r=!0,i=!0;for(let o in n)o==="bubbles"?r=!!n[o]:o==="cancelable"?i=!!n[o]:l[o]=n[o];l.initEvent(e,r,i),(a??document).dispatchEvent(l)},lg=new Kn,ag=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),og=e=>`${e}-${lg.get()}`,rg=Symbol.for("InnerPageScopeKey"),ig=Symbol.for("PageWrapperKey"),sg="FoxLeave",cg="FoxLeaveEnd",ug={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 dg(e,n,a,l){return{props:{...lt,...ug},emits:["update:visible"],setup(r,{attrs:i,slots:o,emit:c}){(0,t.provide)(rg,!0);const s={};(0,t.provide)(ig,s);const d=g=>(typeof s.beforeClose=="function"&&s.beforeClose(),!1),h=()=>{d("close")},u=e,p=g=>{y.value=g,c("update:visible",g)},y=(0,t.ref)(!1),C=(g,b)=>ag(g)?(b.src=g,(0,t.h)("img",b)):typeof g=="string"?(Array.isArray(b.class)?b.class.push(g):b.class&&typeof b.class=="object"?b[`${g}`]=!0:typeof b.class=="string"?b.class=`${b.class}, ${g}`:b.class=g,(0,t.h)(r.tag,b)):(0,t.h)(g,b),k=()=>{if(!r.showHeader)return null;const g=[];if(o.header){const b=o.header();g.push(b)}else if(r.title){const b=(0,t.h)("view",{class:`${u}__header-title`},[r.title]);g.push(b)}return g.length===0?null:(0,t.h)("view",{class:[`${u}__header`]},g)},v=()=>{if(!r.showClose)return null;const g={class:[`${u}__close-icon`],onClick:h};return C(r.closeIcon??l,g)};let w=null;const f=g=>{ng(cg,{},w)},m=og(e),S=()=>{p(!0)},A=()=>{if(!w)return;const g=w.querySelector(".fox-overlay");g&&(g.classList.add("overlay-fade-leave-active"),g.classList.add("overlay-fade-leave-to"));const b=w.querySelector(".fox-popup");b&&(b.classList.add(`fox-popup-slide-${r.position}-leave-active`),b.classList.add(`fox-popup-slide-${r.position}-leave-to`),b.addEventListener("animationend",f,{once:!0}),b.addEventListener("transitionend",f,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{w=document.querySelector(`.${m}`),w?.addEventListener(sg,A,{once:!0}),S()}),()=>{const g=[],b=k();b&&g.push(b);const T=v();T&&g.push(T);const E=o.default?o.default():[];Reflect.apply([].push,g,E);const B={[`${u}`]:!0};r.mode&&(B[`${u}--${r.mode}`]=!0);const N=(0,t.h)("view",{class:B},g),R=[`${u}__popup`,m];r.popClass&&R.push(r.popClass),r.position&&R.push(`${u}__popup--${r.position}`);const U={};r.width&&(U.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(U.height=typeof r.height=="number"?`${r.height}px`:r.height);const $=(0,t.h)(a,{...be(r,lt),popClass:R.join(" "),style:U,visible:y.value,teleportDisable:!0,closeable:!1,position:r.position,closeOnClickOverlay:r.closeOnClickOverlay,onClickOverlay:h,"onUpdate:visible":p},{default:()=>N});return(0,t.h)("div",{class:[`${u}__root`,m]},[$])}}}}var{componentName:fg,create:mg,scope:pg}=ee("popup-wrapper"),hg=mg(dg(fg,pg,Ce,oe.Close)),Ma=hg,gg={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function yg(e,n,a,l){return{props:{...gg},emits:["update:visible"],setup(r,{emit:i,slots:o}){const c=s=>{i("update:visible",s)};return()=>{const s=[`${e}__popup`];r.popClass&&s.push(r.popClass);const d=(0,t.h)(a,{popClass:s,style:r.popStyle??{},position:"top",zIndex:r.zIndex,closeOnClickOverlay:r.closeOnClickOverlay,teleportDisable:!0,visible:r.visible,"onUpdate:visible":c},o);return(0,t.h)("view",{class:`${e}`},[d])}}}}var{componentName:bg,create:vg,scope:Sg}=ee("dropdown"),kg=vg(yg(bg,Sg,Ce,!1)),Ra=kg,wg={name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean,Object],required:!1}};function Cg(e,n){return{inheritAttrs:!1,props:wg,setup(a,l){const{exposeApi:r}=wr({context:l,props:()=>a.config},a.name);return Ee(a.innerPageScope)||Ar(a.innerPageScope),Ee(a.abstractPageScope)||Br(a.abstractPageScope),r(),()=>typeof l.slots.default=="function"?l.slots.default():null}}}var{componentName:Ng,create:Ag,scope:Bg}=ee("domain-provider"),Tg=Ag(Cg(Ng,Bg)),za=Tg,Vg={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 Eg(e,n){return{inheritAttrs:!1,props:Vg,emits:["change"],setup(a,{slots:l,emit:r}){if(Xe&&window.IntersectionObserver){const i=new WeakMap;let o=new Map;const c=(p,y)=>{if(h===null){o.set(p,{visible:null,callback:y});return}i.has(p)&&h.unobserve(p),i.set(p,{visible:null,callback:y}),h.observe(p)},s=p=>{if(h===null){o.delete(p);return}i.has(p)&&(i.delete(p),h.unobserve(p))};let d=a.initialVisibleObserverSize;hc({acquire:()=>{if(a.loadPolicy==="always")return!0;const p=d>0;return d--,p},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:c,unobserve:s});let h=null;const u=(p,y,C)=>{h=new IntersectionObserver(k=>{if(r("change",k),a.loadPolicy!=="always")for(let v of k){let w=!1;v.intersectionRatio>0&&(w=!0);const f=i.get(v.target);if(f)try{if(a.loadPolicy==="lazy"&&!w&&f.visible!==null)return;f.visible=w,f.callback(w)}catch(m){console.error(m)}}},{root:p,rootMargin:y,threshold:C}),o.forEach((k,v)=>{i.set(v,k),h?.observe(v)}),o.clear()};(0,t.watch)([()=>a.root,()=>a.disabled],([p,y])=>{if(y||!p||h)return;let C=null;typeof p=="string"?C=document.querySelector(p):C=p,C&&u(C,a.rootMargin,a.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:$g,create:Dg,scope:Ig}=ee("rolling-provider"),qg=Dg(Eg($g,Ig)),Fa=qg,{componentName:Pg,create:xg}=ee("cell"),Mg=xg({components:{Right:oe.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=(0,t.computed)(()=>{const i=Pg;return{[i]:!0,[`${i}--clickable`]:e.isLink,[`${i}--center`]:e.center,[`${i}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:me(e.roundRadius)}));return{handleClick:i=>{n("click",i)},classes:a,baseStyle:l}}}),Rg={key:0,class:"fox-cell__icon"},zg={key:1,class:"fox-cell__title"},Fg={class:"title"},Lg={class:"fox-cell__title-desc"};function Og(e,n,a,l,r,i){const o=(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]=(...c)=>e.handleClick&&e.handleClick(...c))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Rg,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",zg,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",Fg,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",Lg,(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)(o,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var La=ie(Mg,[["render",Og]]),Kg={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function Ug(e,n){return{props:{...Kg},setup(a,{attrs:l,slots:r}){const i=(0,t.computed)(()=>{const o={};return a.color&&(o.color=a.color),a.size&&(o.fontSize=me(a.size)),o});return()=>{const o={style:i.value,class:`${e}-wrap`,...l};return(0,t.h)(a.tag??"li",o,r)}}}}var{componentName:Hg,create:jg,scope:Wg}=ee("icon"),Yg=jg(Ug(Hg,Wg)),Oa=Yg,{componentName:Xg,create:Qg}=ee("cell-group"),Gg=Qg({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[Xg]:!0}))}}}),_g={key:1,class:"fox-cell-group__title"},Zg={key:3,class:"fox-cell-group__desc"},Jg={class:"fox-cell-group__wrap"};function ey(e,n,a,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",_g,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.$slots.desc?(0,t.renderSlot)(e.$slots,"desc",{key:2}):e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Zg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Jg,[(0,t.renderSlot)(e.$slots,"default")])],2)}var Ka=ie(Gg,[["render",ey]]),{componentName:ty,create:ny}=ee("image"),ly=ny({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:oe.Image,ImageError:oe.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const y=ty;return{[y]:!0,[`${y}-round`]:e.round}}),r=(0,t.ref)(null),i=(0,t.ref)(!1),o=(0,t.ref)(null),c=()=>{r.value=new IntersectionObserver(y=>{y.forEach(C=>{C.isIntersecting&&(i.value=!0,r.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),o.value&&r.value.observe(o.value)};(0,t.onMounted)(()=>{e.lazyLoad&&c()}),(0,t.onBeforeUnmount)(()=>{r.value&&r.value.disconnect()});const s=(0,t.computed)(()=>{let y={};return e.width&&(y.width=me(e.width)),e.height&&(y.height=me(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=me(e.radius)),y}),d=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,y=>{a.isError=!1,a.loading=!0});const h=()=>{a.loading=!1,n("load")},u=()=>{a.isError=!0,a.loading=!1,n("error")},p=y=>{n("click",y)};return{...(0,t.toRefs)(a),imageClick:p,classes:l,styles:d,stylebox:s,error:u,load:h,show:i,imgRef:o}}}),ay=["src","date-src","alt"],oy={key:0,class:"fox-img-loading"},ry={key:1,class:"fox-img-error"};function iy(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Image"),c=(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,ay),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",oy,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(o,{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",ry,[e.slotError?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,width:"16px",height:"20px",name:"imageError"})),(0,t.renderSlot)(e.$slots,"error")])):(0,t.createCommentVNode)("",!0)],6)}var Ua=ie(ly,[["render",iy]]),{create:sy}=ee("layout"),cy=sy({}),Ha=cy,{componentName:uy,create:dy}=ee("col"),fy=dy({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=uy,a=(0,t.inject)("gutter");return{classes:(0,t.computed)(()=>({[n]:!0,[`${n}-gutter`]:a,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),style:(0,t.computed)(()=>({paddingLeft:a/2+"px",paddingRight:a/2+"px"}))}}});function my(e,n,a,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 ja=ie(fy,[["render",my]]),{componentName:py,create:hy}=ee("row"),gy=hy({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=py;(0,t.provide)("gutter",e.gutter);const a=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
|
|
2
2
|
${a("",e.type)}
|
|
3
3
|
${a("justify",e.justify)}
|
|
4
4
|
${a("align",e.align)}
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
${n}
|
|
7
7
|
`:`
|
|
8
8
|
${n}
|
|
9
|
-
`)}}});function yy(e,n,a,l,o,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)}var Wa=ie(gy,[["render",yy]]),{create:by}=ee("sticky"),vy=by({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,t.ref)(),o=(0,t.reactive)({fixed:!1,height:0,transform:0}),i=(0,t.computed)(()=>e.position==="top"?Number(e.top):Number(e.bottom)),r=(0,t.computed)(()=>o.fixed?{height:`${o.height}px`}:{}),c=(0,t.computed)(()=>o.fixed?{[e.position]:`${i.value}px`,transform:o.transform?`translate3d(0, ${o.transform}px, 0)`:void 0,position:o.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),s=()=>{const d=e.container;if(!a.value&&!d)return;const h=qe(a),u=l.value,p=qe(u),y=qe(d);o.height=h.height;const C=()=>{let v=!1;if(e.position==="top")v=d?i.value>h.top&&y.bottom>0:i.value>h.top;else{const S=document.documentElement.clientHeight;v=d?y.bottom>0&&S-i.value-p.height>y.top:S-i.value<h.bottom}return v},k=()=>{if(d)if(e.position==="top"){const v=y.bottom-i.value-p.height;return v<0?v:0}else{const v=document.documentElement.clientHeight,S=y.bottom-(v-i.value);return S<0?S:0}return 0};o.transform=k(),o.fixed=C()};return(0,t.watch)(()=>o.fixed,d=>{n("change",d)}),(0,t.onMounted)(()=>{s(),Ba(a.value).addEventListener("scroll",s,!0)}),(0,t.onUnmounted)(()=>{Ba(a.value).removeEventListener("scroll",s)}),{rootRef:a,rootStyle:r,stickyRef:l,stickyStyle:c}}});function Sy(e,n,a,l,o,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 Gt=ie(vy,[["render",Sy]]),{componentName:ky,create:wy}=ee("divider"),Cy=wy({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 a=ky;let l={[a]:!0},o={};return e.direction==="horizontal"?o={...l,[`${a}-center`]:n.slots.default,[`${a}-left`]:e.contentPosition==="left",[`${a}-right`]:e.contentPosition==="right",[`${a}-dashed`]:e.dashed,[`${a}-hairline`]:e.hairline}:o={...l,[`${a}-vertical`]:e.direction==="vertical"},o})}}});function Ny(e,n,a,l,o,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 Ya=ie(Cy,[["render",Ny]]),_t=(e,n={})=>{const a=(0,t.shallowRef)([]),l=i=>{a.value.push(i),(0,t.triggerRef)(a)},o=i=>{const r=a.value.findIndex(c=>c===i);r!=-1&&(a.value.splice(r,1),(0,t.triggerRef)(a))};return(0,t.onUnmounted)(()=>{const i=a.value.length;a.value.splice(0,i)}),(0,t.provide)(e,{unlink:o,link:l,children:a,...n}),{children:a}};function Zt(e,n){const a=(0,t.inject)(e,null);if(a){const{link:l,unlink:o,children:i}=a;return l(n),(0,t.onUnmounted)(()=>{o(n)}),{parent:a,index:(0,t.computed)(()=>i.value.indexOf(n))}}return{parent:a,index:(0,t.computed)(()=>-1)}}var{componentName:Ay}=ee("grid"),Li=Symbol("grid"),By={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}},Ty={props:By,setup(e,{slots:n}){_t(Li,{props:e});const a=(0,t.computed)(()=>{const o=Ay;return{[o]:!0,[`${o}--border`]:e.border&&!e.gutter}}),l=(0,t.computed)(()=>{const o={};return e.gutter&&(o.paddingLeft=me(e.gutter)),o});return()=>(0,t.h)("view",{class:a.value,style:l.value},n.default?.())}},{create:Vy}=ee("grid"),Ey=Vy(Ty),Xa=Ey,{create:$y,componentName:Oi}=ee("grid-item"),Dy=$y({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const{parent:a,index:l}=Zt(Li,{props:e}),o=(0,t.computed)(()=>({[Oi]:!0})),i=(0,t.computed)(()=>{const s={flexBasis:`${100/+a.props.columnNum}%`};return a.props.square?s.paddingTop=`${100/+a.props.columnNum}%`:a.props.gutter&&(s.paddingRight=me(a.props.gutter),l.value>=a.props.columnNum&&(s.marginTop=me(a.props.gutter))),s}),r=(0,t.computed)(()=>{const s=`${Oi}__content`;return{[`${s}`]:!0,[`${s}--border`]:a.props.border,[`${s}--surround`]:a.props.border&&a.props.gutter,[`${s}--center`]:a.props.center,[`${s}--square`]:a.props.square,[`${s}--reverse`]:a.props.reverse,[`${s}--${a.props.direction}`]:!!a.props.direction,[`${s}--clickable`]:a.props.clickable}});return{rootClass:o,rootStyle:i,contentClass:r,handleClick:s=>{n("click",s)}}}}),Iy={class:"fox-grid-item__text"};function qy(e,n,a,l,o,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]=(...r)=>e.handleClick&&e.handleClick(...r))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.contentClass)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("view",Iy,[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 Qa=ie(Dy,[["render",qy]]),{componentName:Py,create:xy}=ee("navbar"),My=xy({components:{Left:oe.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:l,safeAreaInsetTop:o,placeholder:i,zIndex:r}=(0,t.toRefs)(e),c=(0,t.ref)(null),s=(0,t.ref)(null);let d=(0,t.ref)();const h=(0,t.computed)(()=>{const v=Py;return{[v]:!0,[`${v}--border`]:a.value,[`${v}--fixed`]:l.value,[`${v}--safe-area-inset-top`]:o.value}}),u=(0,t.computed)(()=>({zIndex:r.value}));(0,t.onMounted)(()=>{l.value&&i.value&&(0,t.nextTick)(()=>{d.value=s?.value?.getBoundingClientRect().height,c.value.style.height=d.value+"px"})});function p(){n("on-click-back")}function y(){n("on-click-title")}function C(){n("on-click-icon")}function k(){n("on-click-right")}return{navBarWrap:c,navBarHtml:s,classes:h,styles:u,handleLeft:p,handleCenter:y,handleCenterIcon:C,handleRight:k}}}),Ry={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},zy={key:1,class:"fox-navbar__text"},Fy={class:"fox-navbar__title"},Ly={key:0,class:"fox-navbar__text"},Oy={key:1,class:"fox-navbar__text"},Ky={class:"fox-navbar__title"},Uy={key:0,class:"fox-navbar__text"};function Hy(e,n,a,l,o,i){const r=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ry,[(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]=(...c)=>e.handleLeft&&e.handleLeft(...c))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(r,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",zy,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Fy,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...c)=>e.handleCenter&&e.handleCenter(...c))},(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]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...c)=>e.handleRight&&e.handleRight(...c))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ly,(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]=(...c)=>e.handleLeft&&e.handleLeft(...c))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(r,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Oy,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Ky,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...c)=>e.handleCenter&&e.handleCenter(...c))},(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]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...c)=>e.handleRight&&e.handleRight(...c))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Uy,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var Ga=ie(My,[["render",Hy]]),jy=(e,n,a)=>({components:a,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:o}){const{toLocaleRefs:i}=(0,ge.useFoxI18n)(n),r=i(l,["activeText","unActiveText"]),c=(0,t.computed)(()=>({[e]:!0,active:l.visible,[l.type]:!0})),s=(0,t.ref)(-1);return{...r,classes:c,updateValue:(u=!l.visible)=>{o("update:visible",u)},selected:(u,p)=>{o("selected",{item:u,event:p}),s.value=u.id},current:s}}}),{componentName:Wy,create:Yy,scope:Xy}=ee("fixednav"),Qy=Yy(jy(Wy,Xy,{[ct.name]:ct,Left:oe.Left})),Gy={class:"fox-fixednav__list"},_y=["onClick"],Zy=["src"],Jy={class:"span"},eb={key:0,class:"b"},tb={class:"text"};function nb(e,n,a,l,o,i){const r=(0,t.resolveComponent)("fox-overlay"),c=(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)(r,{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",Gy,[((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,Zy),(0,t.createElementVNode)("view",Jy,(0,t.toDisplayString)(s.text),1),s.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",eb,(0,t.toDisplayString)(s.num),1)):(0,t.createCommentVNode)("",!0)],10,_y))),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)(c,{color:"#fff"}),(0,t.createElementVNode)("view",tb,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var _a=ie(Qy,[["render",nb]]),Ki=Symbol("fox-menu"),{componentName:lb,create:ab}=ee("menu"),ob=ab({components:{RectUp:oe.RectUp,RectDown:oe.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)(),a=(0,t.ref)(0),l=(0,t.ref)(!1),{children:o}=_t(Ki,{props:e,offset:a}),i=(0,t.computed)(()=>o.value.some(p=>p.state.showWrapper)),r=(0,t.computed)(()=>({[lb]:!0,"scroll-fixed":l.value})),c=()=>{if(n.value){const p=qe(n);e.direction==="down"?a.value=p.bottom:a.value=window.innerHeight-p.top}},s=p=>{o.value.forEach((y,C)=>{C===p?(c(),y.toggle()):y.state.showPopup&&y.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))},u=p=>{let y="";const{titleClass:C}=e;return p&&(y+="active"),C&&(y+=` ${C}`),y};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:o,opened:i,classes:r,barRef:n,getClasses:u}}}),rb=["onClick"],ib={class:"fox-menu__title-text"},sb={class:"fox-menu__title-icon"};function cb(e,n,a,l,o,i){const r=(0,t.resolveComponent)("RectUp"),c=(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",ib,(0,t.toDisplayString)(s.renderTitle()),1),(0,t.createElementVNode)("span",sb,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.direction==="up"?((0,t.openBlock)(),(0,t.createBlock)(r,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1}))])])],2)],14,rb))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var Za=ie(ob,[["render",cb]]),{create:ub}=ee("menu-item"),db=ub({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:oe.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n}){const a=(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"}),o=(0,t.computed)(()=>{const u={height:h.offset.value+"px"};return h.props.direction==="down"?{...u,top:"0px"}:{...u,bottom:"0px"}}),i=(u=!a.showPopup)=>{u!==a.showPopup&&(a.showPopup=u,u&&(a.showWrapper=!0,n("open")))},r=()=>{if(e.title)return e.title;const u=e.options?.find(p=>p.value===e.modelValue);return u?u.text:""},c=u=>{a.showPopup=!1,u.value!==e.modelValue&&(n("update:modelValue",u.value),n("change",u.value))},s=()=>{n("close"),a.showWrapper=!1},d=()=>{a.showPopup=!1,n("close")},{parent:h}=Zt(Ki,{props:e,state:a,toggle:i,renderTitle:r});return{style:l,placeholderElementStyle:o,renderTitle:r,state:a,parent:h,toggle:i,onClick:c,handleClose:s,handleClickOutside:d}}}),fb={class:"fox-menu-item"},mb={class:"fox-menu-item__content fox-menu-item__overflow"},pb=["onClick"];function hb(e,n,a,l,o,i){const r=(0,t.resolveComponent)("Check"),c=(0,t.resolveComponent)("FoxPopup");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",fb,[(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)(c,(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",mb,[((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)(r,(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,pb))),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 Ja=ie(db,[["render",hb]]),Ui=Symbol("fox-tabbar"),{create:gb}=ee("tabbar"),yb=gb({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 a(i){l.value!==i&&(l.value=i,n("update:modelValue",i),n("change",i,o.value[i]))}const l=(0,t.reactive)({size:e.size,value:de(e.modelValue),inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:a}),{children:o}=_t(Ui,{state:l});return(0,t.watch)(()=>e.modelValue,i=>{l.value=de(i)}),{changeIndex:a}}});function bb(e,n,a,l,o,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 eo=ie(yb,[["render",bb]]),{create:vb}=ee("tabbar-item"),Sb=vb({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:a,index:l}=Zt(Ui,{props:e}),o=(0,t.computed)(()=>l.value===a.state.value);function i(r){a&&typeof a.state.changeIndex=="function"&&a.state.changeIndex(r)}return{state:a.state,index:l,active:o,change:i}}}),kb={class:"fox-tabbar-item_icon-box"},wb={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Cb={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Nb={key:1,class:"fox-tabbar-item_icon-box_dot"},Ab={key:2},Bb={key:0};function Tb(e,n,a,l,o,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]=r=>e.change(e.index))},[(0,t.createElementVNode)("view",kb,[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",wb,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",Cb,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",Nb)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ab,[((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",Bb,(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 to=ie(Sb,[["render",Tb]]),{componentName:Vb,create:Eb}=ee("elevator"),$b=Eb({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const a=(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}),o=(0,t.computed)(()=>({[Vb]:!0})),i=(0,t.computed)(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),r=(0,t.computed)(()=>a.value.clientHeight),c=(S,f)=>S.getAttribute("data-"+f),s=S=>{(0,t.nextTick)(()=>{!l.listGroup.includes(S)&&S!=null&&l.listGroup.push(S)})},d=()=>{let S=0;l.listHeight.push(S);for(let f=0;f<l.listGroup.length;f++){let m=l.listGroup[f];S+=Math.floor(m.clientHeight),l.listHeight.push(S)}},h=S=>{!S&&S!==0||(S<0&&(S=0),S>l.listHeight.length-2&&(S=l.listHeight.length-2),l.codeIndex=S,a.value.scrollTo(0,l.listHeight[S]))},u=S=>{l.scrollStart=!0;let f=c(S.target,"index"),m=S.touches[0];l.touchState.y1=m.pageY,l.anchorIndex=+f,l.codeIndex=+f,h(+f)},p=S=>{let f=S.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)},y=()=>{l.scrollStart=!1},C=(S,f)=>{n.emit("click-item",S,f),l.currentData=f,l.currentKey=S},k=S=>{n.emit("click-index",S)},v=S=>{let f=S.target.scrollTop;const m=l.listHeight;l.scrollY=f;for(let w=0;w<m.length-1;w++){let A=m[w],g=m[w+1];if(l.scrollY>=A&&l.scrollY<g){l.currentIndex=w,l.diff=g-l.scrollY;return}}l.currentIndex=m.length-2};return(0,t.onMounted)(()=>{a.value.addEventListener("scroll",v)}),n.expose({scrollTo:h}),(0,t.watch)(()=>l.listGroup.length,()=>{l.listHeight=[],(0,t.nextTick)(d)}),(0,t.watch)(()=>l.diff,S=>{const f=l.listHeight;let m=S>0&&S<e.titleHeight?S-e.titleHeight:0;l.scrollY+r.value===f[f.length-1]&&m!==0&&(m=0),l.fixedTop!==m&&(l.fixedTop=m)}),(0,t.watch)(()=>l.currentIndex,S=>{n.emit("change",S)}),{classes:o,...(0,t.toRefs)(l),fixedStyle:i,clientHeight:r,setListGroup:s,listview:a,touchStart:u,touchMove:p,touchEnd:y,handleClickItem:C,handleClickIndex:k}}}),Db={class:"fox-elevator__list__item__code"},Ib=["onClick"],qb=["innerHTML"],Pb={class:"fox-elevator__fixed-title"},xb={class:"fox-elevator__bars__inner"},Mb=["data-index","onClick"];function Rb(e,n,a,l,o,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,r=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-elevator__list__item",key:r[e.acceptKey],ref_for:!0,ref:e.setListGroup},[(0,t.createElementVNode)("view",Db,(0,t.toDisplayString)(r[e.acceptKey]),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.list,c=>((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===c.id&&e.currentKey===r[e.acceptKey]}]),key:c.id,onClick:s=>e.handleClickItem(r[e.acceptKey],c)},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:1,item:c}):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:c.name},null,8,qb))],10,Ib))),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",Pb,(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]=(...r)=>e.touchStart&&e.touchStart(...r)),onTouchmove:n[1]||(n[1]=(0,t.withModifiers)((...r)=>e.touchMove&&e.touchMove(...r),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...r)=>e.touchEnd&&e.touchEnd(...r))},[(0,t.createElementVNode)("view",xb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,(r,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__bars__inner__item",{active:r[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":c,key:r[e.acceptKey],onClick:s=>e.handleClickIndex(r[e.acceptKey])},(0,t.toDisplayString)(r[e.acceptKey]),11,Mb))),128))])],32)],2)}var no=ie($b,[["render",Rb]]),{componentName:L2,create:zb,scope:Fb}=ee("pagination"),Lb=zb({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,ge.useFoxI18n)(Fb),l=a(e,["prevText","nextText"]),{modelValue:o,mode:i,showPageSize:r,forceEllipses:c}=(0,t.toRefs)(e),s=(0,t.computed)(()=>{const{pageCount:p,totalItems:y,itemsPerPage:C}=(0,t.toRefs)(e),k=+p.value||Math.ceil(+y.value/+C.value);return Math.max(1,k)}),d=(p,y)=>{p>s.value||p<1||(p!=o.value&&n("update:modelValue",p),y&&n("change",p))},h=(p,y,C=!1)=>({number:p,text:y,active:C}),u=(0,t.computed)(()=>{if(i.value=="simple")return;let p=[];const y=s.value,C=+r.value;let k=1,v=y;const S=y>C;S&&(k=Math.max(o.value-Math.floor(C/2),1),v=k+C-1,v>y&&(v=y,k=v-C+1));for(var f=k;f<=v;f++){const m=h(f,f,o.value==f);p.push(m)}if(S&&C>0&&c.value){if(k>1){const m=h(k-1,"...");p.unshift(m)}if(v<y){const m=h(v+1,"...");p.push(m)}}return p});return(0,t.watchEffect)(()=>{d(o.value,!1)}),{...l,modelValue:o,select:d,countRef:s,mode:i,pages:u,forceEllipses:c}}}),Ob={class:"fox-pagination"},Kb={key:0,class:"fox-pagination-contain"},Ub=["onClick"],Hb={key:1,class:"fox-pagination-contain"},jb={class:"fox-pagination-simple"};function Wb(e,n,a,l,o,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Ob,[(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]=r=>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",Kb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pages,(r,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:c+"pagination",class:(0,t.normalizeClass)(["fox-pagination-item",r.active?"active":""]),onClick:s=>e.select(r.number,!0)},[(0,t.renderSlot)(e.$slots,"page",{item:r},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.text),1)])],10,Ub))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hb,[(0,t.createElementVNode)("view",jb,(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]=r=>e.select(e.modelValue+1,!0))},[(0,t.renderSlot)(e.$slots,"next-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextText),1)])],2)])}var lo=ie(Lb,[["render",Wb]]),Yb=(e,n,a,l)=>{const o=(0,t.ref)(),i=(0,t.ref)({width:0,height:0}),r=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let u=await l(o,a);i.value.width=u.width||0,i.value.height=u.height||0}else i.value.width=o.value?.clientWidth||0,i.value.height=o.value?.clientHeight||0};(0,t.onMounted)(()=>{setTimeout(()=>{r()},100)});const c=(0,t.reactive)({offset:0,moving:!1}),s=nt();let d="";const h=(u,p)=>{let y=u;switch(e.direction=="horizontal"?(d=u>0?"right":"left",y=Math.abs(y)/i.value.width*100):(d=p>0?"bottom":"top",y=p,y=Math.abs(y)/i.value?.height*100),y>85&&(y=85),d){case"left":case"top":n.isEnd()&&(y=0,c.moving=!1);break;case"right":case"bottom":y=-y,n.isBegin()&&(y=0,c.moving=!1);break}c.offset=y};return{touchMethods:{onTouchStart(u){e.swipeable&&s.start(u)},onTouchMove(u){e.swipeable&&(s.move(u),c.moving=!0,h(s.deltaX.value,s.deltaY.value),e.direction=="horizontal"&&s.isHorizontal()&&(u.preventDefault(),u.stopPropagation()),e.direction=="vertical"&&s.isVertical()&&(u.preventDefault(),u.stopPropagation()))},onTouchEnd(){if(c.moving)switch(c.moving=!1,d){case"left":case"top":c.offset>35&&n.next();break;case"right":case"bottom":c.offset<-35&&n.prev();break}}},touchState:c,tabsContentRef:o}},Xb=class{title="";titleSlot;paneKey="";disabled=!1;constructor(){}},{create:Qb}=ee("tabs"),Gb=Qb({components:{[Gt.name]:Gt,JoySmile:oe.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)(null);let o;(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)([]),r=B=>{B.forEach((N,R)=>{let U=N.type;if(U=U.name||U,U=="fox-tab-pane"){let $=new Xb;if(N.props?.title||N.props?.["pane-key"]||N.props?.paneKey){let x=pt(N.props?.["pane-key"]),M=x=="number"||x=="string"?String(N.props?.["pane-key"]):null,O=pt(N.props?.paneKey),z=O=="number"||O=="string"?String(N.props?.paneKey):null;$.title=N.props?.title,$.paneKey=M||z||String(R),$.disabled=N.props?.disabled}i.value.push($)}else{if(N.children==" ")return;Array.isArray(N.children)&&r(N.children)}})},c=(0,t.ref)(e.modelValue||0),s=B=>{let N=i.value.findIndex(R=>R.paneKey==B);i.value.length==0||N==-1||(c.value=N)},d=(0,t.computed)(()=>e.titleScroll&&e.direction==="vertical"),h=(0,t.ref)(),u=(0,t.ref)([]),p=B=>{const N=h.value,R=u.value;if(!N||!R||!R[c.value])return;const U=R[c.value];let $=0;e.direction==="vertical"?$=U.offsetTop-N.offsetTop+10-(N.offsetHeight-U.offsetHeight)/2:$=U.offsetLeft-(N.offsetWidth-U.offsetWidth)/2,y(N,$,B?0:.3,e.direction)},y=(B,N,R,U)=>{let $=0;const x=U==="horizontal"?B.scrollLeft:B.scrollTop,M=R===0?1:Math.round(R*1e3/16);function O(){U==="horizontal"?B.scrollLeft+=(N-x)/M:B.scrollTop+=(N-x)/M,++$<M&&Ue(O)}O()},C=(B=a.default?.())=>{i.value=[],B=B?.filter(N=>typeof N.children!="string"),B&&B.length&&r(B),s(e.modelValue),(0,t.nextTick)(()=>{p()})},k=B=>{o=B.fixed};(0,t.watch)(()=>a.default?.(),B=>{C(B)});const v=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;(0,t.watch)(()=>e.modelValue,B=>{if(s(B),p(),o){let N=qe(l.value).top+v(),R=Math.ceil(N-e.top);window.scrollTo({top:R,behavior:"smooth"})}}),(0,t.onMounted)(C),(0,t.onActivated)(C);const S={isBegin:()=>c.value==0,isEnd:()=>c.value==i.value.length-1,next:()=>{c.value+=1,S.updateValue(i.value[c.value])},prev:()=>{c.value-=1,S.updateValue(i.value[c.value])},updateValue:B=>{n("update:modelValue",B.paneKey),n("change",B)},tabChange:(B,N)=>{n("click",B),!(B.disabled||c.value==N)&&(c.value=N,S.updateValue(B))},setTabItemRef:(B,N)=>{u.value[N]=B}},{tabsContentRef:f,touchState:m,touchMethods:w}=Yb(e,S),A=(0,t.computed)(()=>{let B=c.value*100;m.moving&&(B+=m.offset);let N={transform:e.direction=="horizontal"?`translate3d(-${B}%, 0, 0)`:`translate3d( 0,-${B}%, 0)`,transitionDuration:m.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(N={}),N}),g=(0,t.computed)(()=>({background:e.background})),b=(0,t.computed)(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),T=(0,t.computed)(()=>{if(!e.titleGutter)return{};const B=me(e.titleGutter);return e.direction==="vertical"?{marginTop:B,marginBottom:B}:{marginLeft:B,marginRight:B}}),E=(0,t.computed)(()=>a.fixedTitle);return{navRef:h,tabsContentRef:f,titles:i,contentStyle:A,tabsNavStyle:g,titleStyle:T,tabsActiveStyle:b,container:l,getScrollY:d,onStickyScroll:k,...S,...w,hasFixedTitle:E}}}),_b=["onClick"],Zb={key:0,class:"fox-tabs__titles-fixed-item"},Jb=["onClick"],ev={key:0,class:"fox-tabs__titles-fixed-item"};function tv(e,n,a,l,o,i){const r=(0,t.resolveComponent)("JoySmile"),c=(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)(c,{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)(r,{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,_b))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Zb,[(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)(r,{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,Jb))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",ev,[(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 ao=ie(Gb,[["render",tv]]),{create:nv}=ee("tab-pane"),lv=nv({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=(0,t.inject)("tabsOpiton"),l=(0,t.computed)(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:l}}});function av(e,n,a,l,o,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 oo=ie(lv,[["render",av]]),{componentName:Hi,create:ov}=ee("indicator"),rv=ov({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:a}=(0,t.toRefs)(e);return{classes:(0,t.computed)(()=>{const l=Hi;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Hi,padZero:rt}}});function iv(e,n,a,l,o,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,r=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:r},[r===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(r)||r),3)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var ro=ie(rv,[["render",iv]]),{componentName:sv,create:cv}=ee("side-navbar"),uv=cv({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=(0,t.ref)(null),a=(0,t.reactive)({count:1,observer:null}),l=(0,t.computed)(()=>({[sv]:!0})),o=(r,c=1)=>{for(let s=0;s<r.length;s++){let d=r[s];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*c+"px",d.className.includes("fox-side-navbar-item")||o(Array.from(d.children[1].children),++a.count))}a.count--},i=()=>{let r=n.value.childNodes;r.length&&(r=Array.from(r).filter(c=>c.nodeType!==3).map(c=>c),o(r))};return(0,t.onMounted)(()=>{i(),a.observer=new MutationObserver(function(){a.count=1,i()}),a.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(a),list:n,classes:l}}}),dv={class:"fox-side-navbar__content"},fv={class:"fox-side-navbar__content__list",ref:"list"};function mv(e,n,a,l,o,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",dv,[(0,t.createElementVNode)("view",fv,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var io=ie(uv,[["render",mv]]),{componentName:pv,create:hv}=ee("side-navbar-item"),gv=hv({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[pv]:!0})),handleClick:()=>{n.emit("click")}})}),yv=["ikey"],bv={class:"fox-side-navbar-item__title"};function vv(e,n,a,l,o,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...r)=>e.handleClick&&e.handleClick(...r),["stop"])),ikey:e.ikey},[(0,t.createElementVNode)("span",bv,(0,t.toDisplayString)(e.title),1)],10,yv)}var so=ie(gv,[["render",vv]]),{componentName:Sv,create:kv}=ee("sub-side-navbar"),wv=kv({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:oe.ArrowDown2,ArrowUp2:oe.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=(0,t.reactive)({direction:""}),l=(0,t.computed)(()=>({[Sv]:!0})),o=(0,t.computed)(()=>({height:a.direction?"0px":"auto"})),i=()=>{n.emit("title-click"),a.direction=a.direction?"":"up"};return(0,t.onMounted)(()=>{a.direction=e.open?"":"up"}),{...(0,t.toRefs)(a),classes:l,style:o,handleClick:i}}}),Cv=["ikey"],Nv={class:"fox-sub-side-navbar__title__text"},Av={class:"fox-sub-side-navbar__title__icon"};function Bv(e,n,a,l,o,i){const r=(0,t.resolveComponent)("ArrowDown2"),c=(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",Nv,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",Av,[e.direction?((0,t.openBlock)(),(0,t.createBlock)(c,{key:1})):((0,t.openBlock)(),(0,t.createBlock)(r,{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,Cv)}var co=ie(wv,[["render",Bv]]),{componentName:Tv,create:Vv}=ee("range"),Ev=Vv({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const a=(0,t.ref)(0);let l,o;const i=(0,t.ref)(),r=(0,t.ref)(),c=nt(),s=(0,t.computed)(()=>{const{marks:$,max:x,min:M}=e;return Object.keys($).map(parseFloat).sort((O,z)=>O-z).filter(O=>{const z=de(O);return z>=de(M)&&z<=de(x)})}),d=(0,t.computed)(()=>Number(e.max)-Number(e.min)),h=(0,t.computed)(()=>{const $=Tv;return{[$]:!0,[`${$}-disabled`]:e.disabled,[`${$}-vertical`]:e.vertical,[`${$}-show-number`]:!e.hiddenRange}}),u=(0,t.computed)(()=>{const $="fox-range-container";return{[$]:!0,[`${$}-vertical`]:e.vertical}}),p=(0,t.computed)(()=>({background:e.inactiveColor})),y=(0,t.computed)(()=>({borderColor:e.buttonColor})),C=$=>!!e.range&&Array.isArray($),k=()=>{const{modelValue:$,min:x}=e;return C($)?`${($[1]-$[0])*100/d.value}%`:`${($-Number(x))*100/d.value}%`},v=()=>{const{modelValue:$,min:x}=e;return C($)?`${($[0]-Number(x))*100/d.value}%`:"0%"},S=(0,t.computed)(()=>e.vertical?{height:k(),top:v(),background:e.activeColor,transition:r.value?"none":void 0}:{width:k(),left:v(),background:e.activeColor,transition:r.value?"none":void 0}),f=$=>{const x="fox-range-mark",{modelValue:M,max:O,min:z}=e;let X=Number(z),P=Number(O);if(e.range){const[te,W]=M;X=te,P=W}else P=M;let _=$<=P&&$>=X;return{[`${x}-text`]:!0,[`${x}-text-active`]:_}},m=$=>{const{min:x,vertical:M}=e;let O={left:`${($-Number(x))/d.value*100}%`};return M&&(O={top:`${($-Number(x))/d.value*100}%`}),O},w=$=>{const{modelValue:x,max:M,min:O}=e;let z=Number(O),X=Number(M);if(e.range){const[P,_]=x;z=P,X=_}return{background:$<=X&&$>=z?e.activeColor:e.inactiveColor}},A=$=>{const{min:x,max:M,step:O}=e;return $=Math.max(+x,Math.min($,+M)),Math.round($/+O)*+O},g=($,x)=>JSON.stringify($)===JSON.stringify(x),b=$=>$[0]>$[1]?$.slice(0).reverse():$,T=($,x)=>{C($)?$=b($).map(A):$=A($),g($,e.modelValue)||n("update:modelValue",$),x&&!g($,l)&&n("change",$)},E=$=>{if(e.disabled)return;const{min:x,modelValue:M}=e,O=qe(i);let z=$.clientX-O.left,X=O.width;e.vertical&&(z=$.clientY-O.top,X=O.height);const P=Number(x)+z/X*d.value;if(C(M)){const[_,te]=M;P<=(_+te)/2?T([P,te],!0):T([_,P],!0)}else T(P,!0)},B=$=>{e.disabled||(c.start($),o=e.modelValue,C(o)?l=o.map(A):l=A(o),r.value="start")},N=$=>{if(e.disabled)return;r.value==="start"&&n("drag-start"),c.move($),r.value="draging";const x=qe(i);let M=c.deltaX.value,O=x.width,z=M/O*d.value;e.vertical&&(M=c.deltaY.value,O=x.height,z=M/O*d.value),C(l)?o[a.value]=l[a.value]+z:o=l+z,T(o),$.stopPropagation(),$.preventDefault()},R=()=>{e.disabled||(r.value==="draging"&&(T(o,!0),n("drag-end")),r.value="")},U=$=>pn(e.modelValue)&&typeof $=="number"?e.modelValue[$]:Number(e.modelValue);return{root:i,classes:h,wrapperStyle:p,buttonStyle:y,onClick:E,onTouchStart:B,onTouchMove:N,onTouchEnd:R,...(0,t.toRefs)(e),barStyle:S,curValue:U,buttonIndex:a,containerClasses:u,markClassName:f,marksStyle:m,marksList:s,tickStyle:w}}}),$v={key:0,class:"fox-range-min"},Dv={key:0,class:"fox-range-mark"},Iv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],qv={key:0,class:"number"},Pv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],xv={key:0,class:"number"},Mv={key:1,class:"fox-range-max"};function Rv(e,n,a,l,o,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",$v,(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)((...r)=>e.onClick&&e.onClick(...r),["stop"]))},[e.marksList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",Dv,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.marksList,r=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:r,class:(0,t.normalizeClass)(e.markClassName(r)),style:(0,t.normalizeStyle)(e.marksStyle(r))},[(0,t.createTextVNode)((0,t.toDisplayString)(r)+" ",1),(0,t.createElementVNode)("span",{class:"fox-range-tick",style:(0,t.normalizeStyle)(e.tickStyle(r))},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],r=>(0,t.createElementVNode)("view",{key:r,role:"slider",class:(0,t.normalizeClass)({"fox-range-button-wrapper-left":r==0,"fox-range-button-wrapper-right":r==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(r),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:(0,t.withModifiers)(c=>{typeof r=="number"&&(e.buttonIndex=r),e.onTouchStart(c)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=(0,t.withModifiers)((...c)=>e.onTouchMove&&e.onTouchMove(...c),["stop","prevent"])),onTouchend:n[1]||(n[1]=(0,t.withModifiers)((...c)=>e.onTouchEnd&&e.onTouchEnd(...c),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=(0,t.withModifiers)((...c)=>e.onTouchEnd&&e.onTouchEnd(...c),["stop","prevent"])),onClick:n[3]||(n[3]=c=>c.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",qv,(0,t.toDisplayString)(e.curValue(r)),1))],4))],42,Iv)),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)(r=>{e.onTouchStart(r)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=(0,t.withModifiers)((...r)=>e.onTouchMove&&e.onTouchMove(...r),["stop","prevent"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)((...r)=>e.onTouchEnd&&e.onTouchEnd(...r),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=(0,t.withModifiers)((...r)=>e.onTouchEnd&&e.onTouchEnd(...r),["stop","prevent"])),onClick:n[8]||(n[8]=r=>r.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",xv,(0,t.toDisplayString)(e.curValue()),1))],4))],40,Pv))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Mv,(0,t.toDisplayString)(+e.max),1))],2)}var Jt=ie(Ev,[["render",Rv]]),{create:zv,scope:Fv}=ee("short-password"),Lv=zv({components:{[we.name]:we,Tips:oe.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:a}=(0,ge.useFoxI18n)(Fv),l=a(e,["title","desc","tips"]),o=(0,t.ref)(e.modelValue),i=(0,t.computed)(()=>d(Number(e.length))),r=(0,t.ref)(e.visible),c=u=>{u.stopPropagation(),n("focus")};(0,t.watch)(()=>e.visible,u=>{r.value=u}),(0,t.watch)(()=>e.modelValue,u=>{o.value=u,String(u).length===i.value&&n("complete",u)});const s=()=>{n("update:visible",!1),n("close")},d=u=>Math.min(Math.max(4,u),6);return{comLen:i,realInput:o,onTouchStart:c,range:d,close:s,onTips:()=>{n("tips")},show:r,...l}}}),Ov={class:"fox-short-password-title"},Kv={class:"fox-short-password-subtitle"},Uv={class:"fox-short-password-wrapper"},Hv={key:0,class:"fox-short-password__item-icon"},jv={class:"fox-short-password__message"},Wv={class:"fox-short-password--error"},Yv={key:0,class:"fox-short-password--forget"};function Xv(e,n,a,l,o,i){const r=(0,t.resolveComponent)("Tips"),c=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",null,[(0,t.createVNode)(c,{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",Ov,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Kv,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",Uv,[(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",Hv)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",jv,[(0,t.createElementVNode)("view",Wv,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",Yv,[(0,t.createVNode)(r,{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 uo=ie(Lv,[["render",Xv]]),Qv=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},Gv=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",a=>{e.onProgress?.(a,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[a,l]of Object.entries(e.headers))n.setRequestHeader(a,l);e.onStart?.(e),e.beforeXhrUpload?e.beforeXhrUpload(n,e):n.send(e.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}},_v=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},ji=(e,{args:n=[],done:a,canceled:l})=>{if(e){const o=e.apply(null,n);ft(o)?o.then(i=>{i?a(i):l&&l()}).catch(()=>{}):o?a():l&&l()}else a()},{create:Zv}=ee("progress"),Jv=Zv({components:{Checked:oe.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!(0,t.useSlots)().default,a=(0,t.ref)(e.strokeWidth+"px"),l=(0,t.ref)(),o=(0,t.ref)(),i=(0,t.computed)(()=>{const s=de(e.percentage);return s>=100?100:s}),r=(0,t.computed)(()=>({width:i.value+"%",background:e.strokeColor||""})),c=(0,t.computed)(()=>({color:e.textColor||""}));return(0,t.onMounted)(()=>{}),{height:a,percentage:i,bgStyle:r,textStyle:c,progressOuter:l,insideText:o,slotDefault:n}}}),eS={class:"fox-progress"},tS={key:0,class:"fox-progress-text"};function nS(e,n,a,l,o,i){const r=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",eS,[(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",tS,[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)(r,{width:"15px",height:"15px",color:"#439422"})]):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)])}var en=ie(Jv,[["render",nS]]),{componentName:lS,create:aS,scope:oS}=ee("uploader"),rS=aS({components:{[en.name]:en,Photograph:oe.Photograph,Failure:oe.Failure,Loading:oe.Loading,Del:oe.Del,Link:oe.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=(0,ge.useFoxI18n)(oS),l=(0,t.reactive)(e.fileList);let o=[];const i=(0,t.computed)(()=>({[lS]:!0})),r=()=>{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)},c=f=>{f.value=""},s=f=>{n("file-item-click",{fileItem:f})},d=(f,m)=>{const w=new Qv;w.url=e.url,w.formData=f.formData,w.timeout=e.timeout*1,w.method=e.method,w.xhrState=e.xhrState,w.headers=e.headers,w.withCredentials=e.withCredentials,w.beforeXhrUpload=e.beforeXhrUpload;try{w.sourceFile=f.formData.get(e.name)}catch{}w.onStart=g=>{f.status="ready",f.message=a("readyUpload"),h(m),n("start",g)},w.onProgress=(g,b)=>{f.status="uploading",f.message=a("uploading"),f.percentage=(g.loaded/g.total*100).toFixed(0),n("progress",{event:g,option:b,percentage:f.percentage})},w.onSuccess=(g,b)=>{f.status="success",f.message=a("success"),n("success",{responseText:g,option:b,fileItem:f}),n("update:fileList",l)},w.onFailure=(g,b)=>{f.status="error",f.message=a("error"),n("failure",{responseText:g,option:b,fileItem:f})};let A=new Gv(w);e.autoUpload?A.upload():o.push(new Promise((g,b)=>{g(A)}))},h=(f=-1)=>{f>-1?o.splice(f,1):(o=[],l.splice(0,l.length))},u=()=>{Promise.all(o).then(f=>{f.forEach(m=>m.upload())})},p=f=>{f.forEach((m,w)=>{const A=new FormData;for(const[b,T]of Object.entries(e.data))A.append(b,T);A.append(e.name,m);const g=(0,t.reactive)(new _v);if(g.name=m.name,g.status="ready",g.type=m.type,g.formData=A,g.message=a("waitingUpload"),d(g,w),e.isPreview&&m.type.includes("image")){const b=new FileReader;b.onload=T=>{g.url=T.target.result,l.push(g)},b.readAsDataURL(m)}else l.push(g)})},y=f=>{const m=e.maximum*1,w=e.maximize*1,A=new Array;f=f.filter(b=>b.size>w?(A.push(b),!1):!0),A.length&&n("oversize",A);let g=f.length+l.length;return g>m&&f.splice(f.length-(g-m)),f},C=(f,m)=>{l.splice(m,1),n("delete",{file:f,fileList:l,index:m})},k=(f,m)=>{h(m),ji(e.beforeDelete,{args:[f,l],done:()=>C(f,m)})},v=f=>{if(e.disabled)return;const m=f.target;let{files:w}=m;e.beforeUpload?e.beforeUpload(w).then(A=>S(A)):S(w),n("change",{fileList:l,event:f}),e.clearInput&&c(m)},S=f=>{p(y(new Array().slice.call(f)))};return{onChange:v,onDelete:k,fileList:l,classes:i,fileItemClick:s,clearUploadQueue:h,submit:u,renderInput:r}}}),iS={key:0,class:"fox-uploader__slot"},sS={key:0,class:"fox-uploader__preview-img"},cS={key:0,class:"fox-uploader__preview__progress"},uS={class:"fox-uploader__preview__progress__msg"},dS=["onClick"],fS=["onClick","src"],mS={key:3,class:"fox-uploader__preview-img__file"},pS=["onClick"],hS={class:"file__name_tips"},gS={class:"tips"},yS={key:1,class:"fox-uploader__preview-list"},bS=["onClick"],vS={class:"file__name_tips"};function SS(e,n,a,l,o,i){const r=(0,t.resolveComponent)("Failure"),c=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Link"),d=(0,t.resolveComponent)("Del"),h=(0,t.resolveComponent)("fox-progress"),u=(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",iS,[(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,y)=>((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",sS,[p.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",cS,[p.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[p.status=="error"?((0,t.openBlock)(),(0,t.createBlock)(r,{key:0,color:"#fff"})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1,name:"loading",color:"#fff"}))],64)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",uS,(0,t.toDisplayString)(p.message),1)])):(0,t.createCommentVNode)("",!0),e.isDeletable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"close",onClick:C=>e.onDelete(p,y)},[(0,t.renderSlot)(e.$slots,"delete-icon",{},()=>[(0,t.createVNode)(r)])],8,dS)):(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:C=>e.fileItemClick(p),src:p.url},null,8,fS)):((0,t.openBlock)(),(0,t.createElementBlock)("view",mS,[(0,t.createElementVNode)("view",{onClick:C=>e.fileItemClick(p),class:"fox-uploader__preview-img__file__name"},[(0,t.createElementVNode)("view",hS,(0,t.toDisplayString)(p.name),1)],8,pS)])),(0,t.createElementVNode)("view",gS,(0,t.toDisplayString)(p.name),1)])):e.listType=="list"?((0,t.openBlock)(),(0,t.createElementBlock)("view",yS,[(0,t.createElementVNode)("view",{onClick:C=>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",vS,(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:C=>e.onDelete(p,y)},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],10,bS),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)(u,{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 fo=ie(rS,[["render",SS]]),kS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj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kQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:CS,scope:NS}=ee("number-keyboard"),AS=CS({components:{[we.name]: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:a}=(0,ge.useFoxI18n)(NS),l=a(e,["confirmText"]),o=(0,t.ref)(void 0),i=(0,t.ref)(e.visible),r=(0,t.ref)();function c(){const{customKey:S}=e;let f={id:"lock",type:"lock"},m=Array.isArray(S)?S:[S];return m.length===1&&(f={id:m[0],type:"custom"}),[...s(),f,{id:0,type:"number"},{id:"delete",type:"delete"}]}function s(){const S=[];for(let f=1;f<=9;f++)S.push({id:f,type:"number"});return e.randomKeys?S.sort(()=>Math.random()>.5?1:-1):S}function d(){const S=s(),{customKey:f}=e;let m=Array.isArray(f)?f:[f];return m.length>2&&(m=[m[0],m[1]]),m.length==2&&e.title&&e.type!="rightColumn"&&(m=[m[0]]),m.length===1?e.title&&e.type!="rightColumn"?S.push({id:m[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):S.push({id:0,type:"number"},{id:m[0],type:"custom"}):m.length===2&&S.push({id:m[0],type:"custom"},{id:0,type:"number"},{id:m[1],type:"custom"}),S}const h=(0,t.computed)(()=>e.type=="rightColumn"||e.title!=""?d():c()),u=()=>{e.visible&&n("blur")},p=S=>{const f=r.value;f&&!f.contains(S.target)&&u()};(0,t.watch)(()=>e.visible,S=>{i.value=S,S?window.addEventListener("touchstart",p,!1):window.removeEventListener("touchstart",p,!1)});function y(S,f){f.stopPropagation(),o.value=S.id,(S.type=="number"||S.type=="custom")&&(n("input",S.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+S.id)),S.type=="lock"&&v(),S.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function C(S){S.stopPropagation()}function k(S){S.preventDefault(),o.value=void 0}function v(){n("update:visible",!1),n("close")}return{...l,delImg:kS,lockImg:wS,clickKeyIndex:o,defaultKey:c,closeBoard:v,onTouchEnd:k,onTouchMove:C,onTouchstart:y,keysList:h,genCustomKeys:d,getBasicKeys:s,root:r,show:i}}}),BS={ref:"root"},TS={class:"fox-number-keyboard"},VS={key:0,class:"fox-number-keyboard__header"},ES={class:"fox-number-keyboard__title"},$S={class:"fox-number-keyboard__body"},DS={class:"fox-number-keyboard__keys"},IS=["onTouchstart"],qS=["src"],PS=["src"],xS={key:0,class:"fox-number-keyboard__sidebar"},MS={class:"fox-key__wrapper"},RS=["src"];function zS(e,n,a,l,o,i){const r=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",BS,[(0,t.createVNode)(r,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=c=>e.show=c),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",TS,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",VS,[(0,t.createElementVNode)("h3",ES,(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]=c=>e.closeBoard())},(0,t.toDisplayString)(e.confirmText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",$S,[(0,t.createElementVNode)("div",DS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.keysList,c=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:"key"+c.id,class:(0,t.normalizeClass)(["fox-key__wrapper",{"fox-key__wrapper--wider":c.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":c.id==e.clickKeyIndex},{"fox-key--lock":c.type=="lock"},{"fox-key--delete":c.type=="delete"}]),onTouchstart:s=>e.onTouchstart(c,s),onTouchmove:n[1]||(n[1]=s=>e.onTouchMove(s)),onTouchend:n[2]||(n[2]=s=>e.onTouchEnd(s))},[c.type=="number"||c.type=="custom"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(c.id),1)],64)):(0,t.createCommentVNode)("",!0),c.type=="lock"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:1,src:e.lockImg},null,8,qS)):(0,t.createCommentVNode)("",!0),c.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,PS)):(0,t.createCommentVNode)("",!0)],42,IS)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",xS,[(0,t.createElementVNode)("div",MS,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=c=>e.onTouchstart({id:"delete",type:"delete"},c)),onTouchmove:n[4]||(n[4]=c=>e.onTouchMove(c)),onTouchend:n[5]||(n[5]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[(0,t.createElementVNode)("img",{src:e.delImg},null,8,RS)],34)]),(0,t.createElementVNode)("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=c=>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 mo=ie(AS,[["render",zS]]),{componentName:FS,create:LS}=ee("swipe"),OS=LS({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:a}){const l=(0,t.computed)(()=>({[FS]:!0})),o=m=>m.value?.clientWidth||0,i=(0,t.ref)(),r=(0,t.computed)(()=>o(i)),c=(0,t.ref)(),s=(0,t.computed)(()=>o(c));let d=!1,h="",u="";const p=(0,t.reactive)({offset:0,moving:!1}),y=(m="")=>{d=!0,m&&(p.offset=m==="left"?-s.value:r.value),n("open",{name:e.name,position:h||m})},C=()=>{p.offset=0,d=!1,n("close",{name:e.name,position:h})},k=(0,t.computed)(()=>({transform:`translate3d(${p.offset}px, 0, 0)`})),v=m=>{h=m>0?"right":"left";let w=m;switch(h){case"left":d&&u===h?w=-s.value:w=Math.abs(m)>s.value?-s.value:m;break;case"right":d&&u===h?w=r.value:w=Math.abs(m)>r.value?r.value:m;break}p.offset=w},S=nt(),f={onTouchStart(m){e.disabled||S.start(m)},onTouchMove(m){e.disabled||(S.move(m),S.isHorizontal()&&(p.moving=!0,v(S.deltaX.value),e.touchMovePreventDefault&&m.preventDefault(),e.touchMoveStopPropagation&&m.stopPropagation()))},onTouchEnd(){if(p.moving)switch(p.moving=!1,u=h,h){case"left":Math.abs(p.offset)<=s.value/2?C():(p.offset=-s.value,y());break;case"right":Math.abs(p.offset)<=r.value/2?C():(p.offset=r.value,y());break}}};return a({open:y,close:C}),{classes:l,touchStyle:k,...f,leftRef:i,rightRef:c,open:y,close:C}}}),KS={class:"fox-swipe__left",ref:"leftRef"},US={class:"fox-swipe__content"},HS={class:"fox-swipe__right",ref:"rightRef"};function jS(e,n,a,l,o,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]=(...r)=>e.onTouchStart&&e.onTouchStart(...r)),onTouchmove:n[1]||(n[1]=(...r)=>e.onTouchMove&&e.onTouchMove(...r)),onTouchend:n[2]||(n[2]=(...r)=>e.onTouchEnd&&e.onTouchEnd(...r)),onTouchcancel:n[3]||(n[3]=(...r)=>e.onTouchEnd&&e.onTouchEnd(...r))},[(0,t.createElementVNode)("view",KS,[(0,t.renderSlot)(e.$slots,"left")],512),(0,t.createElementVNode)("view",US,[(0,t.renderSlot)(e.$slots,"default")]),(0,t.createElementVNode)("view",HS,[(0,t.renderSlot)(e.$slots,"right")],512)],38)}var po=ie(OS,[["render",jS]]),{componentName:WS,create:YS}=ee("action-sheet"),XS=YS({components:{Popup:we,Loading:oe.Loading},props:{...lt,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 a=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[WS]:!0}));return{slotDefault:a,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}}}),QS={key:0,class:"fox-action-sheet__title"},GS={key:1},_S={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},ZS={key:1,class:"fox-action-sheet__menu"},JS=["onClick"],e1={key:1},t1={class:"fox-action-sheet__subdesc"};function n1(e,n,a,l,o,i){const r=(0,t.resolveComponent)("Loading"),c=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createBlock)(c,{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",QS,(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",GS,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",_S,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",ZS,[((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)(r,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",e1,(0,t.toDisplayString)(s[e.optionTag]),1)),(0,t.createElementVNode)("view",t1,(0,t.toDisplayString)(s[e.optionSubTag]),1)],14,JS))),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 ho=ie(XS,[["render",n1]]),{componentName:l1,create:a1}=ee("backtop"),o1=a1({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:a}){const l=(0,t.reactive)({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),o=(0,t.computed)(()=>({[l1]:!0,show:l.backTop})),i=(0,t.computed)(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function r(){l.scrollEl instanceof Window?l.scrollTop=l.scrollEl.pageYOffset:l.scrollTop=l.scrollEl.scrollTop,l.backTop=l.scrollTop>=e.distance}function c(C=0){l.scrollEl instanceof Window?window.scrollTo(0,C):l.scrollEl.scrollTop=C}function s(){let C=Ye(function k(){var v=e.duration-Math.max(0,l.startTime-+new Date+e.duration),S=v*-l.scrollTop/e.duration+l.scrollTop;c(S),C=Ye(k),(v==e.duration||S==0)&&_o(C)})}function d(){l.scrollEl.addEventListener("scroll",r,!1),l.scrollEl.addEventListener("resize",r,!1)}function h(){l.scrollEl.removeEventListener("scroll",r,!1),l.scrollEl.removeEventListener("resize",r,!1)}function u(C){l.startTime=+new Date,e.isAnimation&&e.duration>0?s():c(),n("click",C)}function p(){y.value?l.scrollEl=y.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 y=(0,t.computed)(()=>{if(typeof a.content=="function"){const C=a.content();return Array.isArray(C)?C[0]:C}return null});return()=>{const C=[];y.value&&C.push(y.value);const k=[];if(typeof a.default=="function")k.push(a.default());else{const S=(0,t.h)(oe.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});k.push(S)}const v=(0,t.h)("div",{class:o.value,style:i.value,onClick:u},k);return C.push(v),C}}}),go=o1,{componentName:r1,create:i1}=ee("drag"),s1=i1({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const a=(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}}),o=(0,t.computed)(()=>({[r1]:!0}));function i(){const u=document.documentElement;l.elWidth=a.value.offsetWidth,l.elHeight=a.value.offsetHeight,l.screenWidth=u.clientWidth,l.screenHeight=u.clientHeight}function r(u){l.boundary.left?+u.style.left.split("px")[0]>l.boundary.left?(u.style.left=+u.style.left.split("px")[0]-10+"px",Ue(()=>{r(u)})):u.style.left=`${l.boundary.left}px`:+u.style.left.split("px")[0]>10?(u.style.left=+u.style.left.split("px")[0]-10+"px",Ue(()=>{r(u)})):u.style.left="0px"}function c(u,p){p-parseInt(u.style.left.split("px")[0])>10?(u.style.left=parseInt(u.style.left.split("px")[0])+10+"px",Ue(()=>{c(u,p)})):u.style.left=p+"px"}function s(u){u.preventDefault();const p=u.currentTarget;if(u.targetTouches.length===1){const y=u.targetTouches[0];l.nx=y.clientX-l.position.x,l.ny=y.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const C=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>C?l.xPum=C:l.xPum<=l.boundary.left&&(l.xPum=l.boundary.left),l.yPum<l.boundary.top?l.yPum=l.boundary.top:l.yPum>l.screenHeight-l.elHeight-l.boundary.bottom&&(l.yPum=l.screenHeight-l.elHeight-l.boundary.bottom),e.direction!="y"&&(p.style.left=l.xPum+"px"),e.direction!="x"&&(p.style.top=l.yPum+"px")}}function d(u){const p=u.currentTarget;let y=u.changedTouches[0].clientX;const C=l.screenWidth-l.elWidth-l.boundary.right;y>C?y=C:y<l.boundary.left?y=l.boundary.left:y=y<l.screenWidth/2?l.boundary.left:C,e.direction!="y"&&e.attract&&(y<l.screenWidth/2?Ue(()=>{r(p)}):Ue(()=>{c(p,C)})),e.direction!="x"&&(p.style.top=l.yPum+"px")}function h(u){const p=u.currentTarget,y=u.touches[0],C=u.targetTouches[0];l.startTop=p.offsetTop,l.startLeft=p.offsetLeft,l.position.x=y.clientX,l.position.y=y.clientY,l.nx=C.clientX-l.position.x,l.ny=C.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return(0,t.onMounted)(()=>{i(),l.boundary=e.boundary}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1)}),(0,t.onDeactivated)(()=>{l.keepAlive=!0;const u=a;u.value.removeEventListener("touchstart",h),u.value.removeEventListener("touchmove",s),u.value.removeEventListener("touchend",d)}),{classes:o,myDrag:a,touchStart:h,touchMove:s,touchEnd:d}}});function c1(e,n,a,l,o,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=r=>e.touchStart(r)),onTouchmove:n[1]||(n[1]=r=>e.touchMove(r)),onTouchend:n[2]||(n[2]=r=>e.touchEnd(r))},[(0,t.renderSlot)(e.$slots,"default")],34)}var yo=ie(s1,[["render",c1]]),u1={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}},d1=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function f1(e,n,a,l,o){return{props:{...lt,...u1},setup(i,{attrs:r,slots:c,emit:s}){const{toLocaleRefs:d}=(0,ge.useFoxI18n)(n),h=d(i,["confirmText","cancelText"]),u=e,p=(0,t.ref)(i.visible);(0,t.watch)(()=>i.visible,g=>{p.value!==g&&(p.value=g,g&&s("opened"))});const y=g=>{p.value=g,s("update:visible",g),s("update",g)},C=g=>{if(s(g),!(g==="cancel"&&!i.cancelAutoClose))if(typeof i.beforeClose=="function"){const b=i.beforeClose(g);ft(b)?b.then(T=>{T&&(y(!1),s("closed",g))}):b===!0&&(y(!1),s("closed",g))}else y(!1),s("closed",g)},k=()=>{C("confirm")},v=()=>{C("cancel")},S=()=>{C("close")},f=(g,b)=>d1(g)?(b.src=g,(0,t.h)("img",b)):typeof g=="string"?(Array.isArray(b.class)?b.class.push(g):b.class&&typeof b.class=="object"?b[`${g}`]=!0:typeof b.class=="string"?b.class=`${b.class}, ${g}`:b.class=g,(0,t.h)(i.tag,b)):(0,t.h)(g,b),m=()=>{const g=[];if(c.header){const b=c.header();g.push(b)}else{if(i.title){const b=(0,t.h)("view",{class:`${u}__header-title`},[i.title]);g.push(b)}if(i.showClose){const b={class:[`${u}__header-close-icon`],onClick:S},T=f(i.closeIcon??o,b);g.push(T)}}return g.length===0?null:(0,t.h)("view",{class:[`${u}__header`]},g)},w=()=>{const g=[];if(c.default)g.push(c.default());else{const b={class:[`${u}__content`]};if(i.textAlign&&b.class.push(i.textAlign),typeof i.content=="string"){b.innerHTML=i.content;const T=(0,t.h)("view",b);g.push(T)}else if(typeof i.content=="function"){const T=(0,t.h)("view",b,[i.content()]);g.push(T)}else{const T=(0,t.h)("view",b,[i.content]);g.push(T)}}return g.length===0?null:(0,t.h)("view",{class:[`${u}__body`]},g)},A=()=>{if(!i.showFooter)return null;const g=[];if(c.footer)g.push(c.footer());else if(i.plain){if(i.showCancelButton){const b={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},onClick:v};i.cancelButtonClass&&b.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(b.style,i.cancleButtonStyle);const T=(0,t.h)("view",b,[i.cancelButtonText??h.cancelText.value]);g.push(T)}if(i.showConfirmButton){const b={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},onClick:k};i.confirmButtonClass&&b.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(b.style,i.confirmButtonStyle);const T=(0,t.h)("view",b,[i.confirmButtonText??h.confirmText.value]);g.push(T)}}else{if(i.showCancelButton){const b={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:v};i.cancelButtonClass&&b.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(b.style,i.cancleButtonStyle);const T=(0,t.h)(l,b,{default:()=>[i.cancelButtonText??h.cancelText.value]});g.push(T)}if(i.showConfirmButton){const b={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:k};i.confirmButtonClass&&b.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(b.style,i.confirmButtonStyle);const T=(0,t.h)(l,b,{default:()=>[i.confirmButtonText??h.confirmText.value]});g.push(T)}}return g.length===0?null:(0,t.h)("view",{class:[`${u}__footer`,`${u}__footer--${i.footerDirection}`]},g)};return()=>{const g=[],b=m();b&&g.push(b);const T=w();T&&g.push(T);const E=A();E&&g.push(E);const B=(0,t.h)("view",{class:{[`${u}`]:!0,[`${u}--plain`]:i.plain}},g),N=[`${u}__popup`];i.popClass&&N.push(i.popClass);const R={};return i.width&&(R.width=typeof i.width=="number"?`${i.width}px`:i.width),i.height&&(R.height=typeof i.height=="number"?`${i.height}px`:i.height),(0,t.h)(a,{...be(i,lt),popClass:N.join(" "),style:R,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:i.position,onClickOverlay:S,closeOnClickOverlay:i.closeOnClickOverlay},{default:()=>B})}}}}var{componentName:m1,create:p1,scope:h1}=ee("dialog"),g1=p1(f1(m1,h1,we,ut,oe.Close)),Wi=g1,y1=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},b1=class{options=new y1;constructor(e){let n=Object.assign(this.options,e),a=document.body,l=n.teleport;l!="body"&&(typeof l=="string"?a=document.querySelector(l):a=n.teleport);const o=document.createElement("view"),i=`dialog-${n.id}`;o.id=i;const r=(0,t.createVNode)({setup(){return n.onUpdate=c=>{if(c===!1){const s=document.querySelector(`#${i}`);s&&s.parentNode?.removeChild(s)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(Wi,n)}});a.appendChild(o),(0,t.render)(r,o)}},tn=function(e){return new b1(e)};tn.install=e=>{e.use(Wi),e.config.globalProperties.$dialog=tn};var v1={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}},S1=(e,n,a)=>({props:{...v1},emits:["change","refresh","update:modelValue"],setup(l,{emit:o,slots:i}){const{toLocaleRefs:r}=(0,ge.useFoxI18n)(n),c=r(l,["pullingText","loosingText","loadingText"]),s=Qn(),d=(0,t.ref)(),h=Di(d),u=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),p=(0,t.computed)(()=>({[e]:!0})),y=(0,t.computed)(()=>{switch(u.status){case"pulling":return i.pulling?"":c.pullingText.value;case"loosing":return i.loosing?"":c.loosingText.value;case"loading":return i.loading?"":c.loadingText.value;default:return""}}),C=(0,t.computed)(()=>({transitionDuration:`${l.duration}s`,transform:u.distance?`translate3d(0,${u.distance}px, 0)`:""})),k=(0,t.computed)(()=>{const b={};return l.headHeight!=50&&(b.height=me(l.headHeight)),b}),v=b=>{const T=+(l.pullDistance||l.headHeight);let E=b;return b>T&&(b<T*2?E=(b+T)/2:E=T+b/4),Math.round(E)},S=(b,T)=>{const E=+(l.pullDistance||l.headHeight);u.distance=b,T?u.status="loading":b===0?u.status="normal":b<E?u.status="pulling":u.status="loosing",o("change",{status:u.status,distance:b})},f=()=>u.status!=="loading"&&u.status!=="complete",m=()=>h.value==window?Ii()==0:h.value&&h.value.scrollTop==0,w=b=>{f()&&(m()?(s.start(b),u.isPullRefresh=!0,u.moving=!0):(u.distance=0,u.isPullRefresh=!1))},A=b=>{f()&&u.moving&&(s.move(b),s.isVertical()&&s.state.deltaY>0&&u.isPullRefresh&&(b.cancelable&&b.preventDefault(),S(v(s.state.deltaY))))},g=()=>{u.moving=!1,u.isPullRefresh&&f()&&s.state.deltaY&&(u.status==="loosing"?(S(+l.headHeight,!0),o("update:modelValue",!0),(0,t.nextTick)(()=>o("refresh"))):S(0)),setTimeout(()=>{s.reset()},0)};return(0,t.watch)(()=>l.modelValue,b=>{b?S(+l.headHeight,!0):S(0)}),()=>{const b=[];let T=null;u.status==="loading"?(T=i?.loading?.()??null,T||(T=(0,t.h)(a,{class:["fox-pull-refresh-container-topbox-icon"]}))):u.status==="pulling"?T=i?.pulling?.()??null:u.status==="loosing"&&(T=i?.loosing?.()??null),T&&b.push(T);const E=(0,t.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[y.value]);b.push(E);const B=(0,t.h)("div",{class:["fox-pull-refresh-container-topbox"],style:k.value},b),N=(0,t.h)("div",{class:"fox-pull-refresh-container",style:C.value},[B,i?.default?.()]),R={ref:d,class:p.value};return Xn()?Object.assign(R,{onTouchstart:w,onTouchmove:A,onTouchend:g}):Object.assign(R,{onMousedown:w,onMousemove:A,onMouseup:g}),(0,t.h)("div",R,[N])}}}),{componentName:k1,create:w1,scope:C1}=ee("pull-refresh"),N1=w1(S1(k1,C1,oe.Loading)),bo=N1,{create:A1}=ee("notify"),B1=A1({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 a=()=>{e.onClick&&e.onClick()};let l=null;const o=()=>{l&&clearTimeout(l),l=null},i=()=>{n("update:visible",!1)},r=(0,t.ref)(!1),c=(0,t.watch)(()=>e.visible,d=>{r.value=e.visible;const h=e.duration;d&&h&&(l=setTimeout(()=>{i()},h))},{immediate:!0});return{onAfterLeave:()=>{o(),c&&c(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:r}}});function T1(e,n,a,l,o,i){const r=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(r,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.isShowPopup=c),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]=(...c)=>e.clickCover&&e.clickCover(...c))},[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 vo=ie(B1,[["render",T1]]),So={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function},Bt=[],nn=[],Yi=e=>{if(e){const n=document.getElementById(e);nn=nn.filter(a=>a.id!==e),Bt=Bt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Bt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),nn=[],Bt=[]},V1=e=>{const n=document.getElementById(e.id);if(n){const a=nn.find(o=>o.id===e.id);a?e={...So,...a,...e}:e={...So,...e};const l=(0,t.createVNode)(vo,e);return(0,t.render)(l,n),l.component.data}},ln=e=>{e.unmount=Yi;let n;if(e.id){if(n=e.id,Bt.find(o=>o===e.id))return V1(e)}else n=new Date().getTime()+"";e={...So,...e},e.id=n,Bt.push(e.id),nn.push(e);const a=document.createElement("view");a.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(a)},e.duration)}),()=>(0,t.h)(vo,e)}});document.body.appendChild(a),(0,t.render)(l,a)},an=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},ko={text(e,n={}){return an(e),ln({...n,msg:e})},primary(e,n={}){return an(e),ln({...n,msg:e,type:"primary"})},success(e,n={}){return an(e),ln({...n,msg:e,type:"success"})},danger(e,n={}){return an(e),ln({...n,msg:e,type:"danger"})},warn(e,n={}){return an(e),ln({...n,msg:e,type:"warning"})},hide(){Yi()},install(e){e.use(vo)}},{create:E1}=ee("toast"),$1=E1({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const o=()=>{a&&(clearTimeout(a),a=null)},i=()=>{l.mounted=!1},r=()=>{o(),e.duration&&(a=setTimeout(()=>{i()},e.duration))},c=()=>{e.closeOnClickOverlay&&(i(),n("close"))};e.duration&&r(),(0,t.watch)(()=>e.duration,y=>{y&&r()});const s=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const y=ue(e.iconSize);return(0,t.h)(e.icon,{width:y,height:y,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]),u=(0,t.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:i,clickCover:c,renderIcon:d,hasIcon:s,toastBodyClass:h,toastIconWrapperClass:u,onAfterLeave:()=>{o(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),D1={key:1,class:"fox-toast-title"},I1=["innerHTML"];function q1(e,n,a,l,o,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]=(...r)=>e.clickCover&&e.clickCover(...r))},[(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",D1,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,I1)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var wo=ie($1,[["render",q1]]),Co={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},Tt=[],on=[],Xi=e=>{if(e){const n=document.getElementById(e);on=on.filter(a=>a.id!==e),Tt=Tt.filter(a=>a!==e),n&&((0,t.render)(null,n),document.body.removeChild(n))}else Tt.forEach(n=>{const a=document.getElementById(n);a&&((0,t.render)(null,a),document.body.removeChild(a))}),on=[],Tt=[]},P1=e=>{const n=document.getElementById(e.id);if(n){const a=on.find(o=>o.id===e.id);a?e={...Co,...a,...e}:e={...Co,...e};const l=(0,t.createVNode)(wo,e);return(0,t.render)(null,n),(0,t.render)(l,n),Vt}},rn=e=>{e.unmount=Xi;let n;if(e.id){if(n=e.id,Tt.find(l=>l===e.id))return P1(e)}else n=new Date().getTime()+"";e={...Co,...e},e.id=n,Tt.push(e.id),on.push(e);const a=document.createElement("div");return a.id=e.id,(0,t.render)((0,t.createVNode)(wo,e),a),document.body.appendChild(a),Vt},bl=e=>e?!0:(console.warn("[FoxUI Toast]: msg不能为空"),!1),Vt={text(e,n={}){if(bl(e))return rn({...n,type:"text",msg:e})},success(e,n={}){if(bl(e))return rn({icon:oe.Success,...n,msg:e,type:"success"})},fail(e,n={}){if(bl(e))return rn({icon:oe.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){if(bl(e))return rn({icon:oe.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return rn({icon:oe.Loading,...n,msg:e,type:"loading"})},hide(e){Xi(e)},install(e){e.use(wo),e.config.globalProperties.$toast=Vt}},{componentName:O2,create:x1}=ee("audio"),M1=x1({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:oe.Service,[Jt.name]:Jt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)(null),o=(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 v=0;v<k.length;v++)document.addEventListener(k[v],()=>{document.hidden?l.value.pause():o.playing&&setTimeout(()=>{l.value.play()},200)})}catch(v){v.message}});const i=k=>{const v=l.value;e.autoplay&&v&&v.paused&&v.play(),o.second=v.duration,o.duration=C(v.duration),n("can-play",k)},r=k=>{o.currentTime=parseInt(k.target.currentTime)},c=()=>{o.currentTime>0&&o.currentTime--,l.value.currentTime=o.currentTime,n("fastBack",o.currentTime)},s=()=>{const k=l.value;o.playing?(k.pause(),o.handPlaying=!1):(k.play(),o.handPlaying=!0),o.playing=!o.playing,n("play",o.playing)},d=()=>{o.currentTime++,l.value.currentTime=o.currentTime,n("forward",o.currentTime)},h=k=>{o.currentDuration=C(k),o.percent=k/o.second*100},u=()=>{o.playing=!1,n("ended")},p=k=>{const v=l.value;v.currentTime=o.second*k/100,n("changeProgress",v.currentTime)},y=()=>{o.hanMuted=!o.hanMuted,n("mute",o.hanMuted)},C=k=>{if(!k)return"00:00:00";let v=parseInt(k),S=Math.floor(v/3600),f=Math.floor((v-S*3600)/60),m=v-S*3600-f*60,w="";return w+=("0"+S.toString()).slice(-2)+":",w+=("0"+f.toString()).slice(-2)+":",w+=("0"+m.toString()).slice(-2),w};return(0,t.watch)(()=>o.currentTime,k=>{h(k)}),(0,t.provide)("audioParent",{children:[],props:e,audioData:o,handleMute:y,forward:d,fastBack:c,changeStatus:s}),{...(0,t.toRefs)(e),...(0,t.toRefs)(o),audioRef:l,fastBack:c,forward:d,changeStatus:s,progressChange:p,audioEnd:u,onTimeupdate:r,handleMute:y,onCanplay:i,slots:a}}}),R1={class:"fox-audio"},z1={key:0,class:"fox-audio__progress"},F1={class:"fox-audio__time"},L1={class:"fox-audio__bar"},O1={class:"fox-audio__time"},K1={key:1,class:"fox-audio__icon"},U1=["controls","src","preload","autoplay","loop","muted"];function H1(e,n,a,l,o,i){const r=(0,t.resolveComponent)("fox-range"),c=(0,t.resolveComponent)("Service");return(0,t.openBlock)(),(0,t.createElementBlock)("div",R1,[e.type=="progress"?((0,t.openBlock)(),(0,t.createElementBlock)("div",z1,[(0,t.createElementVNode)("div",F1,(0,t.toDisplayString)(e.currentDuration),1),(0,t.createElementVNode)("div",L1,[(0,t.createVNode)(r,{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",O1,(0,t.toDisplayString)(e.duration),1)])):(0,t.createCommentVNode)("",!0),e.type=="icon"?((0,t.openBlock)(),(0,t.createElementBlock)("div",K1,[(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)(c,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):((0,t.openBlock)(),(0,t.createBlock)(c,{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,U1)])}var No=ie(M1,[["render",H1]]),{componentName:K2,create:j1,scope:W1}=ee("audio-operate"),Y1=j1({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=(0,ge.useFoxI18n)(W1),l=(0,t.reactive)((0,t.inject)("audioParent")),o=(0,t.ref)((0,t.useSlots)().default);return{...(0,t.toRefs)(e),...(0,t.toRefs)(l),customSlot:o,t:a}}}),X1={class:"fox-audio-operate"};function Q1(e,n,a,l,o,i){const r=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",X1,[e.type=="back"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...c)=>e.fastBack&&e.fastBack(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(r,{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]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(r,{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]=(...c)=>e.forward&&e.forward(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(r,{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]=(...c)=>e.handleMute&&e.handleMute(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(r,{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 Ao=ie(Y1,[["render",Q1]]),{componentName:G1,create:_1}=ee("avatar"),Z1=_1({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:a,bgColor:l,color:o}=(0,t.toRefs)(e),i=["large","normal","small"],r=(0,t.inject)("avatarGroup",null),c=(0,t.ref)(null),s=(0,t.reactive)({lightTheme:!1}),d=(0,t.reactive)({index:1,showMax:!1,maxIndex:0});(0,t.onMounted)(()=>{const C=r?.avatarGroupRef?.value?.children;C&&y(C)});const h=(0,t.computed)(()=>({[G1]:!0,[`fox-avatar-${n.value||r?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||r?.props?.shape||"normal"}`]:!0})),u=(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:`${o.value}`,marginLeft:d.index!=1&&(r?.props?.span?`${r?.props?.span}px`:""),zIndex:r?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),p=(0,t.computed)(()=>({backgroundColor:`${r?.props?.maxBgColor}`,color:`${r?.props?.maxColor}`})),y=C=>{d.maxIndex=C.length;for(let k=0;k<C.length;k++)C[k]&&C[k].classList&&C[k].classList[0]=="fox-avatar"&&C[k].setAttribute("data-index",k+1);d.index=c?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=r?.props?.maxCount&&(d.showMax=!0)};return{classes:h,styles:u,maxStyles:p,avatarGroup:r,visible:s,avatarRef:c,...(0,t.toRefs)(d)}}});function J1(e,n,a,l,o,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 sn=ie(Z1,[["render",J1]]),{componentName:ek,create:tk}=ee("avatar-group"),nk=tk({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:a}){const{size:l}=(0,t.toRefs)(e),o=(0,t.ref)(null),i=(0,t.ref)(0),r=(0,t.computed)(()=>({[ek]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:o,index:i}),{classes:r,avatarGroupRef:o}}});function lk(e,n,a,l,o,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 Bo=ie(nk,[["render",lk]]),Et=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function ak(e,n,a){let l=0,o=e.length-1,i=null;for(;l<=o;){i=Math.floor((l+o)/2);const r=e[i],c=a(r,n);if(c===Et.eq)return i;c===Et.lt?l=i+1:c===Et.gt&&(o=i-1)}return i}var{componentName:ok,create:rk}=ee("list"),Qi=document.documentElement.clientHeight||document.body.clientHeight||667,ik=rk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Qi},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const a=(0,t.ref)(null),l=(0,t.ref)(null),o=(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}),r=(0,t.computed)(()=>Math.min(e.containerHeight,Qi)),c=(0,t.computed)(()=>Math.ceil(r.value/e.height)),s=(0,t.computed)(()=>Math.min(i.originStartIndex+c.value+e.bufferSize,i.list.length)),d=(0,t.computed)(()=>({[ok]:!0})),h=(0,t.computed)(()=>i.list.slice(i.start,s.value)),u=()=>{if(o.value)return`translate3d(0, ${i.start>=1?i.cachePositions[i.start-1].bottom:0}px, 0)`},p=()=>{i.cachePositions=[];for(let S=0;S<i.list.length;++S)i.cachePositions[S]={index:S,height:e.height,top:S*e.height,bottom:(S+1)*(e.height+e.margin),dValue:0}},y=()=>{let S=o.value.childNodes;S=Array.from(S).filter(g=>g.nodeType===1);const f=S[0];S.forEach((g,b)=>{if(!g)return;const{height:T}=qe(g),E=i.cachePositions[b+i.start].height-T;E&&(i.cachePositions[b+i.start].bottom-=E,i.cachePositions[b+i.start].height=T,i.cachePositions[b+i.start].dValue=E)});let m=0;f&&(m=i.start);const w=i.cachePositions.length;let A=i.cachePositions[m].dValue;i.cachePositions[m].dValue=0;for(let g=m+1;g<w;++g){const b=i.cachePositions[g];i.cachePositions[g].top=i.cachePositions[g-1].bottom,i.cachePositions[g].bottom=i.cachePositions[g].bottom-A,b.dValue!==0&&(A+=b.dValue,b.dValue=0)}i.phantomHeight=i.cachePositions[w-1].bottom},C=(S=0)=>{let f=ak(i.cachePositions,S,(m,w)=>{const A=m.bottom;return A===w?Et.eq:A<w?Et.lt:Et.gt});return i.cachePositions[f].bottom<S&&(f+=1),f},k=()=>{i.originStartIndex=0,i.start=0,i.scrollTop=0,a.value.scrollTop=0,p(),i.phantomHeight=e.height*i.list.length},v=()=>{const S=a.value?.scrollTop,{originStartIndex:f}=i,m=C(S);m!==f&&(i.originStartIndex=m,i.start=Math.max(i.originStartIndex-e.bufferSize,0),s.value>=i.list.length-1&&n("scroll-bottom")),n(S>i.scrollTop?"scroll-up":"scroll-down",S),i.scrollTop=S};return(0,t.watch)(()=>e.listData,S=>{if(i.list=S.slice(),i.list.length===S.length)p(),y();else{k();return}}),(0,t.watch)(()=>i.start,()=>{o.value&&i.list.length>0&&y()}),{...(0,t.toRefs)(i),list:a,phantom:l,actualContent:o,getTransform:u,visibleData:h,classes:d,getContainerHeight:r,handleScrollEvent:v}}});function sk(e,n,a,l,o,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]=(...r)=>e.handleScrollEvent&&e.handleScrollEvent(...r)),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,(r,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-list-item",key:r},[(0,t.renderSlot)(e.$slots,"default",{item:r,index:c+e.start})]))),128))],4)],38)}var To=ie(ik,[["render",sk]]),{componentName:ck,create:uk}=ee("circleprogress"),dk=uk({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const a=!!(0,t.useSlots)().default,l=Math.random().toString(36).slice(-8),o=(0,t.computed)(()=>({[ck]:!0})),i=(0,t.computed)(()=>{const c=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${c} 0 90 a 45 45 0 1, ${c} 0 -90`}),r=(0,t.computed)(()=>$e(e.color)?`url(#${l})`:e.color);return{classes:o,hoverStyle:(0,t.computed)(()=>{let c=283,s=c*Number(e.progress)/100;return{stroke:$e(e.color)?`url(#${l})`:e.color,strokeDasharray:`${s}px ${c}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:i,hoverColor:r,stop:(0,t.computed)(()=>{if(!$e(e.color))return;let c=e.color;const s=Object.keys(c).sort((h,u)=>parseFloat(h)-parseFloat(u));let d=[];return s.map((h,u)=>{let p={key:"",value:""};p.key=h,p.value=c[h],d.push(p)}),d}),slotDefault:a,refRandomId:l}}}),fk={viewBox:"0 0 100 100"},mk=["id"],pk=["offset","stop-color"],hk=["d","stroke-width"],gk=["d","stroke","stroke-linecap","stroke-width"],yk={class:"fox-circleprogress-text"},bk={key:0};function vk(e,n,a,l,o,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",fk,[(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,(r,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("stop",{key:c,offset:r.key,"stop-color":r.value},null,8,pk))),128))],8,mk)]),(0,t.createElementVNode)("path",{class:"fox-circleprogress-path",style:(0,t.normalizeStyle)(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,hk),(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,gk)])),(0,t.createElementVNode)("div",yk,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",bk,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var Vo=ie(dk,[["render",vk]]),{componentName:Sk,create:kk}=ee("noticebar"),wk=kk({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,(0,t.h)(e.item)},Notice:oe.Notice,CircleClose:oe.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){const l=(0,t.ref)(null),o=(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}),r=(0,t.computed)(()=>({[Sk]:!0})),c=(0,t.computed)(()=>i.isCanScroll==null?e.wrapable:!i.isCanScroll&&!e.wrapable),s=(0,t.computed)(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":c.value,[i.animationClass]:!0})),d=(0,t.computed)(()=>{let b={};return e.color&&(b.color=e.color),e.background&&(b.background=e.background),e.direction=="vertical"&&(b.height=`${e.height}px`),b}),h=(0,t.computed)(()=>({animationDelay:(i.firstRound?e.delay:0)+"s",animationDuration:i.duration+"s",transform:`translateX(${i.firstRound?0:i.wrapWidth+"px"})`})),u=(0,t.computed)(()=>{let b={};if(e.complexAm)b={transform:`translateY(${i.distance}px)`};else if(i.animate){let T=~~(e.height/e.speed/4);b={transition:`all ${T==0?~~(e.height/e.speed):T}s`,"margin-top":`-${e.height}px`}}return b});(0,t.watch)(()=>e.text,b=>{p(b)}),(0,t.watch)(()=>e.list,b=>{i.scrollList=[...b]});const p=b=>{i.showNoticebar!=!1&&setTimeout(()=>{if(!l.value||!o.value)return;const T=l.value.getBoundingClientRect().width,E=o.value.getBoundingClientRect().width;i.isCanScroll=e.scrollable==null?E>T:e.scrollable,i.isCanScroll?(i.wrapWidth=T,i.offsetWidth=E,i.duration=E/e.speed,i.animationClass="play"):i.animationClass=""},0)},y=b=>{n("click",b)},C=b=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",b)},k=b=>{i.firstRound=!1,n("across-end",b),setTimeout(()=>{i.duration=(i.offsetWidth+i.wrapWidth)/e.speed,i.animationClass="play-infinite"},0)},v=()=>{S(),i.timer=setInterval(S,~~(e.height/e.speed/4*1e3)+e.standTime)},S=()=>{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 b=100;for(let T=0;T<b;T++)m(T,!(T<b-1))},e.standTime+100*e.speed)},m=(b,T)=>{setTimeout(()=>{i.distance-=e.height/100,T&&(i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.distance=0)},b*e.speed)},w=b=>{n("click",b)},A=()=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",i.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(a.default?g(a.default()):i.scrollList=[...e.list],setTimeout(()=>{e.complexAm?f():v()},e.standTime)):p(e.text)}),(0,t.watch)(()=>a.default?a.default():[],b=>{e.direction==="vertical"&&a.default&&(i.showNotica=!1,setTimeout(()=>{i.showNotica=!0}),g(b))});const g=b=>{b&&b.length>0&&(i.scrollList=b[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:c,classes:r,barStyle:d,contentStyle:h,horseLampStyle:u,wrap:l,content:o,handleClick:y,onClickIcon:C,onAnimationEnd:k,go:w,handleClickIcon:A,slots:a,toPxString:me,wrapContentClass:s}}}),Ck={key:0,class:"fox-noticebar__page-lefticon"},Nk={ref:"wrap",class:"fox-noticebar__page-wrap"},Ak={class:"showNotica"},Bk=["onClick"];function Tk(e,n,a,l,o,i){const r=(0,t.resolveComponent)("Notice"),c=(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",Ck,[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)(r,{key:0,size:"16px"})):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Nk,[(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)(c,{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",Ak,[((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:u=>e.go(d)},[(0,t.renderSlot)(e.$slots,"item",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(d),1)])],12,Bk))),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)(c,{key:0,color:e.color,size:"11px"},null,8,["color"])):(0,t.createCommentVNode)("",!0)])])],4)):(0,t.createCommentVNode)("",!0)],2)}var Eo=ie(wk,[["render",Tk]]),Vk="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+O0XAwMBiYWaSkZVbW1/27e/8vspUSlZMTExwcHL709tERESjo6Z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4LkfNLAGA28qgSl1xInpquROEseRhxSkAWPOM8wxRODSIt7GNHQanCpeQAtQURq4KR80AWOsNlmIK5vCpg0ZuVoNTqS9KpaTGbVp3aKSLlVOaZPCgOIjqKc7L6ojRAlRZxs8VoK5WMy6lTjT/gRak1QKlFFxO9FKsBZzZZZSWQBY3nNKllAOdG70CtDcP9/s4DHtSzEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:U2,create:Dk,scope:Ik}=ee("empty"),qk={empty:Vk,error:Ek,network:$k},Pk=Dk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,ge.useFoxI18n)(Ik),a=n(e,["description"]),{image:l,imageSize:o}=(0,t.toRefs)(e),i=(0,t.computed)(()=>o.value?typeof o.value=="number"?`width:${o.value}px;height:${o.value}px`:`width:${o.value};height:${o.value}`:""),r=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:qk[l.value];return{...a,imageUrl:r,imgStyle:i}}}),xk={class:"fox-empty"},Mk=["src"],Rk={key:1,class:"fox-empty-description"};function zk(e,n,a,l,o,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",xk,[(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,Mk)):(0,t.createCommentVNode)("",!0)],64))],4),e.$slots.description?(0,t.renderSlot)(e.$slots,"description",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",Rk,(0,t.toDisplayString)(e.description),1)),e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:2}):(0,t.createCommentVNode)("",!0)])}var $o=ie(Pk,[["render",zk]]),{create:Fk,scope:Lk}=ee("video"),Ok=Fk({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:a}=(0,ge.useFoxI18n)(Lk),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}),o=(0,t.ref)(null),i=(0,t.computed)(()=>e.options.disabled);(0,t.watch)(()=>e.source,g=>{g.src&&(0,t.nextTick)(()=>{l.videoElm.load()})},{immediate:!0,deep:!0}),(0,t.watch)(()=>e.options,g=>{l.state.isMuted=g?g.muted:!1},{immediate:!0});const r=()=>{l.videoElm=o.value,e.options.autoplay&&setTimeout(()=>{l.videoElm.play()},200),e.options.touchPlay&&(l.showTouchMask=!0),e.options.playsinline&&(l.videoElm.setAttribute("playsinline",e.options.playsinline),l.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),l.videoElm.setAttribute("x5-video-player-type","h5-page"),l.videoElm.setAttribute("x5-video-player-fullscreen",!1)),C(),l.showToolbox?c():(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(u,1e3)))},c=()=>{const g=o.value,b=o.value.getElementsByClassName("fox-video-controller__progress-value")[0];l.player.$player=g,l.progressBar.progressElm=b,l.progressBar.pos=b.getBoundingClientRect(),l.videoSet.progress.width=Math.round(b.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(u,1e3)),l.videoElm.addEventListener("ended",p),n("play",l.videoElm)}catch{y()}else l.videoElm.pause(),n("pause",l.videoElm)},d=g=>{let b=[];const T=Math.floor(g/3600);T>0&&(T<10?b.push(`0${T}`):b.push(`${T}`));const E=Math.floor(g%3600/60);E<10?b.push(`0${E}`):b.push(`${E}`);const B=Math.round(g%3600%60);return B<10?b.push(`0${B}`):b.push(`${B}`),b.join(":")},h=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},u=()=>{const g=l.videoElm.currentTime/l.videoElm.duration;l.videoSet.progress.current=Math.round(l.videoSet.progress.width*g),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)},y=()=>{l.state.isError=!0},C=()=>{l.state.vol=e.options.volume},k=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},v=()=>{},S=g=>{let b=g.targetTouches[0].pageX-l.progressBar.pos.left;b<=0&&(b=0),b>=l.videoSet.progress.width&&(b=l.videoSet.progress.width),l.videoSet.progress.current=b;let T=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&m(T,l.videoElm.duration)},f=g=>{let b=g.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=b;let T=b/l.videoSet.progress.width;l.videoElm.duration&&m(T,l.videoElm.duration)},m=(g,b)=>{l.videoElm.currentTime=Math.floor(g*b)},w=()=>{l.state.isError=!1,r()},A=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{r()}),{root:o,...(0,t.toRefs)(e),...(0,t.toRefs)(l),handleError:y,isDisabled:i,play:s,handleMuted:k,touchSlidSrart:v,touchSlidMove:S,touchSlidEnd:f,retry:w,fullScreen:A,t:a}}}),Kk={class:"fox-video",ref:"videocon"},Uk=["muted","autoplay","loop","poster","controls","preload"],Hk=["src","type"],jk={class:"fox-video-controller__now"},Wk={class:"fox-video-controller__progress"},Yk={class:"fox-video-controller__progress-value",ref:"progressBar"},Xk={class:"fox-video-controller__played",ref:"playedBar"},Qk={class:"fox-video-controller__total"},Gk={class:"fox-video-error"},_k={class:"fox-video-error-tip"};function Zk(e,n,a,l,o,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",Kk,[(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]=(...r)=>e.handleError&&e.handleError(...r))},[(0,t.createElementVNode)("source",{src:e.source.src,type:e.source.type},null,8,Hk)],40,Uk),e.showToolbox&&!e.isDisabled?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...r)=>e.play&&e.play(...r))},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]=(...r)=>e.play&&e.play(...r))},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]=(...r)=>e.play&&e.play(...r))}),(0,t.createElementVNode)("div",jk,(0,t.toDisplayString)(e.videoSet.displayTime),1),(0,t.createElementVNode)("div",Wk,[(0,t.createElementVNode)("div",Yk,[(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)(r=>e.touchSlidMove(r),["stop","prevent"])),onTouchstart:n[5]||(n[5]=(0,t.withModifiers)(r=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)(r=>e.touchSlidEnd(r),["stop"]))},[...n[10]||(n[10]=[(0,t.createElementVNode)("div",{class:"fox-video-controller__ball-move"},null,-1)])],36),(0,t.createElementVNode)("div",Xk,null,512)],512)]),(0,t.createElementVNode)("div",Qk,(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]=(...r)=>e.handleMuted&&e.handleMuted(...r))},null,2),(0,t.createElementVNode)("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...r)=>e.fullScreen&&e.fullScreen(...r))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),(0,t.withDirectives)((0,t.createElementVNode)("div",Gk,[(0,t.createElementVNode)("p",_k,(0,t.toDisplayString)(e.t("errorTip")),1),(0,t.createElementVNode)("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...r)=>e.retry&&e.retry(...r))},(0,t.toDisplayString)(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var $t=ie(Ok,[["render",Zk]]),Gi=Symbol("fox-steps"),{create:Jk,componentName:ew}=ee("steps"),tw=Jk({props:{direction:{type:[String],default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:a}){const l=(0,t.computed)(()=>{const i=ew;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}});return _t(Gi,{props:e,onEmit:i=>{n("click-step",i)}}),()=>(0,t.h)("view",{class:l.value},a.default?.())}}),Do=tw,{create:nw,componentName:lw}=ee("step"),aw=nw({props:{title:{type:[String],default:""},content:{type:[String],default:""}},emits:["click-step"],setup(e){const{parent:n,index:a}=Zt(Gi,{props:e}),l=(0,t.reactive)({dot:n.props.progressDot}),o=()=>{const s=a.value+1;return s<+n.props.current?"finish":s===+n.props.current?"process":"wait"},i=(0,t.computed)(()=>o()),r=(0,t.computed)(()=>{const s=lw;return{[s]:!0,[`${s}-${i.value}`]:!0}}),c=()=>{n.onEmit(a.value)};return{...(0,t.toRefs)(l),index:a,classes:r,handleClickStep:c}}}),ow={class:"fox-step-head"},rw={class:"fox-step-icon-inner"},iw={key:1,class:"fox-step-inner"},sw={class:"fox-step-main"},cw={class:"fox-step-title"},uw={key:0},dw={key:0,class:"fox-step-content"},fw=["innerHTML"];function mw(e,n,a,l,o,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...r)=>e.handleClickStep&&e.handleClickStep(...r))},[(0,t.createElementVNode)("view",ow,[n[1]||(n[1]=(0,t.createElementVNode)("view",{class:"fox-step-line"},null,-1)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-step-icon",[e.dot?"":"is-icon"]])},[(0,t.createElementVNode)("view",rw,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.dot?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[],64)):((0,t.openBlock)(),(0,t.createElementBlock)("view",iw,(0,t.toDisplayString)(e.index+1),1))])])],2)]),(0,t.createElementVNode)("view",sw,[(0,t.createElementVNode)("view",cw,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",uw,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",dw,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,fw)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var Io=ie(aw,[["render",mw]]),_i=Symbol("fox-swiper"),{create:pw,componentName:qo}=ee("swiper"),hw=pw({props:{width:{type:[Number,String],default:()=>window.innerWidth},height:{type:[Number,String],default:0},direction:{type:[String],default:"horizontal"},paginationVisible:{type:[Boolean],default:!1},paginationColor:{type:[String],default:"#fff"},loop:{type:[Boolean],default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:[Boolean],default:!0},isPreventDefault:{type:[Boolean],default:!0},isStopPropagation:{type:[Boolean],default:!0}},emits:["change"],setup(e,{emit:n,slots:a,expose:l}){const o=(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:{}}),r=(0,t.computed)(()=>i[h.value?"height":"width"]),{children:c}=_t(_i,{props:e,size:r}),s=nt(),d=(0,t.computed)(()=>({[qo]:!0})),h=(0,t.computed)(()=>e.direction==="vertical"),u=(0,t.computed)(()=>{const z=qo;return{[`${z}-inner`]:!0,[`${z}-vertical`]:h.value}}),p=(0,t.computed)(()=>{const z=qo;return{[`${z}-pagination`]:!0,[`${z}-pagination-vertical`]:h.value}}),y=(0,t.computed)(()=>h.value?s.deltaY.value:s.deltaX.value),C=(0,t.computed)(()=>s.direction.value===e.direction),k=(0,t.computed)(()=>c.value.length),v=(0,t.computed)(()=>k.value*r.value),S=(0,t.computed)(()=>i.rect?(h.value?i.rect.height:i.rect.width)-r.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"]:`${r.value*k.value}px`,[h.value?"width":"height"]:`${h.value?i.width:i.height}px`}},w=(z,X=0)=>{let P=z*r.value;e.loop||(P=Math.min(P,-S.value));let _=X-P;return e.loop||(_=je(_,S.value,0)),_},A=z=>{const{active:X}=i;return z?e.loop?je(X+z,-1,k.value):je(X+z,0,k.value-1):X},g=({pace:z=0,offset:X=0,isEmit:P=!1})=>{if(k.value<=1)return;const{active:_}=i,te=A(z),W=w(te,X);if(e.loop){if(c.value[0]&&W!==S.value){const Z=W<S.value;c.value[0].setOffset(Z?v.value:0)}if(c.value[k.value-1]&&W!==0){const Z=W>0;c.value[k.value-1].setOffset(Z?-v.value:0)}}i.active=te,i.offset=W,P&&_!==i.active&&n("change",f.value),m()},b=()=>{i.moving=!0,i.active<=-1&&g({pace:k.value}),i.active>=k.value&&g({pace:-k.value})},T=()=>{i.autoplayTimer&&clearTimeout(i.autoplayTimer)},E=z=>{b(),s.reset(),Ye(()=>{Ye(()=>{i.moving=!1,g({pace:z,isEmit:!0})})})},B=()=>{E(-1)},N=()=>{E(1)},R=z=>{b(),s.reset(),Ye(()=>{i.moving=!1;let X=0;e.loop&&k.value===z?X=i.active===0?0:z:X=z%k.value,g({pace:X-i.active,isEmit:!0})})},U=()=>{const z=de(e.autoPlay);z<=0||k.value<=1||(T(),i.autoplayTimer=setTimeout(()=>{N(),U()},z))},$=(z=+e.initPage)=>{T(),i.rect=o.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=w(i.active),i.moving=!0,m(),U()},x=z=>{e.isPreventDefault&&z.preventDefault(),e.isStopPropagation&&z.stopPropagation(),e.touchable&&(s.start(z),i.touchTime=Date.now(),T(),b())},M=z=>{e.touchable&&i.moving&&(s.move(z),C.value&&g({offset:y.value}))},O=z=>{if(!e.touchable||!i.moving)return;const X=y.value/(Date.now()-i.touchTime);if((Math.abs(X)>.3||Math.abs(y.value)>+(r.value/2).toFixed(2))&&C.value){let P=0;const _=h.value?s.offsetY.value:s.offsetX.value;e.loop?P=_>0?y.value>0?-1:1:0:P=-Math[y.value>0?"ceil":"floor"](y.value/r.value),g({pace:P,isEmit:!0})}else y.value&&g({pace:0});i.moving=!1,m(),U()};return l({prev:B,next:N,to:R}),(0,t.onDeactivated)(()=>{T()}),(0,t.onBeforeUnmount)(()=>{T()}),(0,t.watch)(()=>e.initPage,z=>{(0,t.nextTick)(()=>{$(Number(z))})}),(0,t.watch)(()=>c.value.length,()=>{(0,t.nextTick)(()=>{$()})}),(0,t.watch)(()=>e.autoPlay,z=>{de(z)>0?U():T()}),{state:i,children:c,classes:d,classesInner:u,classesPagination:p,container:o,activePagination:f,onTouchStart:x,onTouchMove:M,onTouchEnd:O}}});function gw(e,n,a,l,o,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{ref:"container",class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...r)=>e.onTouchStart&&e.onTouchStart(...r)),onTouchmove:n[1]||(n[1]=(...r)=>e.onTouchMove&&e.onTouchMove(...r)),onTouchend:n[2]||(n[2]=(...r)=>e.onTouchEnd&&e.onTouchEnd(...r)),onTouchcancel:n[3]||(n[3]=(...r)=>e.onTouchEnd&&e.onTouchEnd(...r))},[(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,(r,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("i",{style:(0,t.normalizeStyle)({backgroundColor:e.activePagination===c?e.paginationColor:"#ddd"}),class:(0,t.normalizeClass)({active:e.activePagination===c}),key:c},null,6))),128))],2)):(0,t.createCommentVNode)("",!0)],34)}var Dt=ie(hw,[["render",gw]]),{create:yw,componentName:bw}=ee("swiper-item"),vw=yw({setup(e,{slots:n,expose:a}){const l=(0,t.reactive)({offset:0}),o=(0,t.computed)(()=>({[bw]:!0})),i=s=>{l.offset=s},{parent:r}=Zt(_i,{setOffset:i}),c=(0,t.computed)(()=>{const s={},d=r?.props.direction;return r?.size.value&&(s[d==="horizontal"?"width":"height"]=`${r?.size.value}px`),l.offset&&(s.transform=`translate${d==="horizontal"?"X":"Y"}(${l.offset}px)`),s});return a({setOffset:i}),{style:c,classes:o}}});function Sw(e,n,a,l,o,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 It=ie(vw,[["render",Sw]]),Zi={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:kw}=ee("image-preview-item"),ww=kw({props:{...Zi,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:{[$t.name]:$t,[It.name]:It},setup(e,{emit:n}){const a=(0,t.reactive)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),l=nt(),o=(0,t.computed)(()=>{const{rootWidth:E,rootHeight:B}=e,N=B/E;return a.imageRatio>N}),i=(0,t.computed)(()=>{const E=e.image;if(E&&E.src){const{scale:B,moveX:N,moveY:R,moving:U,zooming:$}=a,x={transitionDuration:$||U?"0s":".3s"};return B!==1&&(x.transform=`scale(${B}, ${B}) translate(${N/B}px, ${R/B}px)`),x}return{}}),r=(0,t.computed)(()=>{if(a.imageRatio){const{rootWidth:E,rootHeight:B}=e,N=o.value?B/a.imageRatio:E;return Math.max(0,(a.scale*N-E)/2)}return 0}),c=(0,t.computed)(()=>{if(a.imageRatio){const{rootWidth:E,rootHeight:B}=e,N=o.value?B:E*a.imageRatio;return Math.max(0,(a.scale*N-B)/2)}return 0}),s=E=>{const{naturalWidth:B,naturalHeight:N}=E.target;a.imageRatio=N/B},d=()=>{h(1),a.moveX=0,a.moveY=0},h=E=>{E=je(E,+e.minZoom,+e.maxZoom+1),E!==a.scale&&(a.scale=E,n("scale",{scale:E,index:e.initNo}))},u=()=>{h(a.scale>1?1:2),a.moveX=0,a.moveY=0},p=E=>Math.sqrt((E[0].clientX-E[1].clientX)**2+(E[0].clientY-E[1].clientY)**2);let y,C,k,v,S,f,m;const w=E=>{const{touches:B}=E,{offsetX:N}=l;l.start(E),m=B.length,y=a.moveX,C=a.moveY,f=Date.now(),a.moving=m===1&&a.scale!==1,a.zooming=m===2&&!N.value,a.zooming&&(k=a.scale,v=p(E.touches))},A=E=>{const{touches:B}=E;if(l.move(E),(a.moving||a.zooming)&&Pl(E,!0),a.moving){const{deltaX:N,deltaY:R}=l,U=N.value+y,$=R.value+C;a.moveX=je(U,-r.value,r.value),a.moveY=je($,-c.value,c.value)}if(a.zooming&&B.length===2){const N=p(B);h(k*N/v)}},g=()=>{if(m==1&&e.video&&e.video.source||m>1)return;const{offsetX:E,offsetY:B}=l,N=Date.now()-f,R=250,U=5;E.value<U&&B.value<U&&N<R&&(S?(clearTimeout(S),S=null,u()):S=setTimeout(()=>{e.contentClose&&n("close"),S=null},R))},b=E=>{let B=!1;(a.moving||a.zooming)&&(B=!0,a.moving&&y===a.moveX&&C===a.moveY&&(B=!1),E.touches.length||(a.zooming&&(a.moveX=je(a.moveX,-r.value,r.value),a.moveY=je(a.moveY,-c.value,c.value),a.zooming=!1),a.moving=!1,y=0,C=0,k=1,a.scale<1&&d(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),Pl(E,B),g(),l.reset()},T=()=>{n("close")};return(0,t.watch)(()=>e.initNo,d),(0,t.watch)(()=>e.show,E=>{E||d()}),{...(0,t.toRefs)(a),onTouchStart:w,onTouchMove:A,onTouchEnd:b,getDistance:p,imageStyle:i,imageLoad:s,closeSwiper:T}}}),Cw=["src"];function Nw(e,n,a,l,o,i){const r=(0,t.resolveComponent)("fox-video"),c=(0,t.resolveComponent)("fox-swiper-item");return(0,t.openBlock)(),(0,t.createBlock)(c,{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,Cw)):(0,t.createCommentVNode)("",!0),e.video&&e.video.source?((0,t.openBlock)(),(0,t.createBlock)(r,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):(0,t.createCommentVNode)("",!0)],36)]),_:1},8,["onClick"])}var Aw=ie(ww,[["render",Nw]]),{create:Bw}=ee("image-preview"),Tw=Bw({props:{...Zi,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:Aw,CircleClose:oe.CircleClose,[we.name]:we,[Dt.name]:Dt},setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,t.reactive)({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),o=(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)(()=>pn(e.videos)?[].concat(e.videos).concat(e.images):e.images),r=h=>{h!==l.active&&(l.active=h,n("change",l.active))},c=()=>{ji(e.beforeClose,{args:[l.active],done:()=>s()})},s=()=>{l.showPop=!1,n("close")},d=()=>{if(a.value){const h=qe(a.value);l.rootHeight=h.height,l.rootWidth=h.width}};return(0,t.watch)(()=>e.show,h=>{l.showPop=h,h&&(r(e.initNo),d())}),(0,t.watch)(()=>e.initNo,h=>{h!=l.active&&r(h)}),(0,t.onMounted)(()=>{r(e.initNo)}),{swipeRef:a,...(0,t.toRefs)(l),onClose:c,mergeImages:i,setActive:r,iconClasses:o}}}),Vw={class:"fox-image-preview",ref:"swipeRef"},Ew={key:0,class:"fox-image-preview-index"};function $w(e,n,a,l,o,i){const r=(0,t.resolveComponent)("image-preview-item"),c=(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",Vw,[e.showPop?((0,t.openBlock)(),(0,t.createBlock)(c,{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,u)=>((0,t.openBlock)(),(0,t.createBlock)(r,{key:u,video:u<e.videos.length?h:{},image:u>=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",Ew,(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 Ji=ie(Tw,[["render",$w]]),Dw=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"},Iw=class{options=new Dw;constructor(e){const n=Object.assign(this.options,e),{unmount:a}=Hs(n,{name:"image-preview",components:[we,$t,Dt,It,ct],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{a()})},(0,t.h)(Ji,n))}})})}},vl=e=>new Iw(e);vl.install=e=>{e.use(Ji)};var{create:qw}=ee("countup"),Pw=qw({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:a}){const l=(0,t.ref)(null),o=(0,t.ref)([]),i=E=>{E&&o.value.push(E)},r=(0,t.reactive)({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:c,scrolling:s,customBgImg:d,type:h}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,()=>{p(),S(0)}),(0,t.watch)(()=>e.machinePrizeLevel,E=>{r.prizeLevelTrun=E}),(0,t.watch)(()=>e.initNum,E=>{r.current=E,r.valFlag=!1,u()}),(0,t.watch)(()=>e.endNum,()=>{r.current=e.initNum,r.valFlag=!1,u()});const u=()=>{if(r.valFlag)return!1;c&&(s||d?h!="machine"&&S():(v(),setTimeout(()=>{r.valFlag=!0},300)))},p=()=>{clearInterval(Number(r.timer)),r.timer=null},y=(E,B,N)=>{const R=(E.toString().split(".")[1]||"").length,U=(B.toString().split(".")[1]||"").length,$=Math.pow(10,Math.max(R,U));return N=="-"?Number((E*$-B*$).toFixed(0))/$:Number((E*$+B*$).toFixed(0))/$},C=E=>{let{num_total_len:B,pointNum:N,initDigit1:R,initDigit2:U,sortFlag:$}=r,x=$=="add"||$=="equal"?String(U)[E-(B-N)]:10-Number(String(U)[E-(B-N)]),M=$=="add"||$=="equal"?String(R)[E]:10-Number(String(R)[E]),O=E>B-N-1?-x*100+"%":E<=String(R).length-1?-M*100+"%":0;return O=="-1000%"&&(O=0),O},k=E=>{let{num_total_len:B,pointNum:N,initDigit1:R,initDigit2:U}=r,$=String(U)[E-(B-N)];return E>B-N-1?$||0:E<=String(R).length-1?String(R)[E]:0},v=()=>{let{endNum:E,initNum:B,speed:N,toFixed:R}=e,U=setInterval(()=>{B>E?Number(r.current)<=E||Number(r.current)<=N?(r.current=E.toFixed(R),clearInterval(U),n("scrollEnd"),r.valFlag=!1):r.current=(parseFloat(String(r.current))-parseFloat(String(N))).toFixed(R):Number(r.current)>=E?(r.current=E.toFixed(R),clearInterval(U),n("scrollEnd"),r.valFlag=!1):r.current=(parseFloat(String(r.current))+parseFloat(String(N))).toFixed(R)},e.during)},S=E=>{let{initNum:B,endNum:N,toFixed:R,customBgImg:U}=e;U&&(B=e.customChangeNum);let $,x,M,O;B!=0?(R!=0&&(B=Number(B.toFixed(R))),String(B).indexOf(".")>-1?($=String(B).split(".")[0].length,x=String(B).split(".")[1].length):($=String(B).length,x=0)):($=1,x=0),N!=0?(R!=0&&(N=Number(N.toFixed(R))),String(N).indexOf(".")>-1?(M=String(N).split(".")[0].length,O=String(N).split(".")[1].length):(M=String(N).length,O=0)):(M=1,O=0);let z=$>=M?$:M,X=x>=O?x:O;r.num_total_len=z+X,r.pointNum=X,B>N?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=y(B,N,"-"),r.numberVal=Number(String(B))):B<N?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=y(N,B,"-"),r.numberVal=Number(String(N))):r.sortFlag="equal";var P=1;for(let te=0;te<r.pointNum;te++)P*=10;var _=r.numberVal*P;if(r.relNum=_,R!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(_).length),String(B).indexOf(".")>-1){let te=String(B).split(".");r.initDigit1=Number(te[0]),r.initDigit2=Number(te[1])}else r.initDigit1=B,r.initDigit2=0;s&&!U?(0,t.nextTick)(()=>{if(r.sortFlag=="equal")return!1;let te=o.value[r.num_total_len-1];f(te)}):E!==0&&A()},f=E=>{p();var B=1;r.pointNum!=0&&(B=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{m(E),r.totalCount=y(r.totalCount,B,"-"),r.totalCount<=0&&(p(),n("scrollEnd"),r.valFlag=!1)},e.during)},m=E=>{let B=E.getAttribute("turn-number"),N;if(r.sortFlag=="add"?N=parseInt(String(B))+1:N=parseInt(String(B))-1>=0?parseInt(String(B))-1:9,E.setAttribute("turn-number",String(N)),(E.style.transition=="none 0s ease 0s"||N==1||!E.style.transition)&&(E.style.transition=`all linear ${e.during}ms`),N==10||r.sortFlag=="reduce"&&N==0){var R=null;E.style.top=`-${r.sortFlag=="add"?N*100:(10-N)*100}%`,E.setAttribute("turn-number","0"),R=setTimeout(()=>{R&&clearTimeout(R),E.style.transition="none",E.style.top="0",w(E,N)},.975*e.during)}else E.style.top=`-${r.sortFlag=="add"?N*100:(10-N)*100}%`;E.style.top=="-100%"&&r.sortFlag=="reduce"&&m(E.previousSibling)},w=(E,B)=>{setTimeout(()=>{B==10&&E.previousSibling&&m(E.previousSibling)},200)},A=()=>{(0,t.nextTick)(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{n("scrollEnd"),r.valFlag=!1})})},g=()=>{for(r.notPrize=[];r.notPrize.length<3;){var E=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(E)==-1&&r.notPrize.push(E)}};a({machineLuck:()=>{const E=e.machineTurnMore<0?0:e.machineTurnMore;let B=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&g();for(let N=0;N<e.machineNum;N++)setTimeout(()=>{let R=B*(N+1+parseFloat(String(E)));r.prizeYPrev.length!=0&&(r.prizeY[N]=r.prizeYPrev[N]);let U=r.prizeYPrev[N]?r.prizeYPrev[N]:0,$=R+U+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(B-U);r.prizeLevelTrun<0&&($+=e.numHeight*r.notPrize[N]),T(N,$,U)},500*N)}});const T=(E,B,N)=>{let R=setInterval(()=>{if(N<=B)N+=10,r.prizeY[E]=parseFloat(String(N));else if(clearInterval(R),R=null,r.finshMachine+=1,r.prizeY[E]=B,r.finshMachine==e.machineNum){let U=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach($=>{let x=$;for(;x>U;)x-=U;r.prizeYPrev.push(x)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scrollEnd",!1),r.valFlag=!1):(n("scrollEnd",!0),r.valFlag=!1)},130)}},30)};return(0,t.onMounted)(()=>{r.current=e.initNum,(0,t.nextTick)(()=>{u()})}),(0,t.onUnmounted)(()=>{p(),r.timer=null}),{...(0,t.toRefs)(r),...(0,t.toRefs)((0,t.reactive)(e)),runNumberImg:l,setRef:i,topNumber:C,turnNumber:k}}}),xw={class:"fox-countup"},Mw=["turn-number"];function Rw(e,n,a,l,o,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",xw,[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,(r,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"mImg"+c,class:"fox-countup__machine-item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[c]+"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,(r,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"cImg"+c,class:"fox-countup__numberimg__item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(Number(c)>e.num_total_len-e.pointNum-1?Number(c)==e.num_total_len-e.pointNum?Number(c)*1.5:Number(c)*1.3:Number(c))+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[c]*e.numHeight+e.customSpacNum*+String(e.relNum)[c])+"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,(r,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{ref_for:!0,ref:s=>e.setRef(s),key:r,class:"fox-countup__number-item",style:(0,t.normalizeStyle)({top:e.topNumber(c),left:e.numWidth*(Number(c)>e.num_total_len-e.pointNum-1?Number(c)*1.1:Number(c))+"px"}),"turn-number":e.turnNumber(c)},[((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,Mw))),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 Po=ie(Pw,[["render",Rw]]),zw=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:Fw,create:Lw}=ee("countdown"),Ow=Lw({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:a}){const l=(0,t.reactive)({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),o=(0,t.computed)(()=>({[Fw]:!0})),i=(0,t.computed)(()=>s(l.restTime)),r=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-zw(e.startTime),l.counting||(l.counting=!0),c()},c=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const y=Date.now()-l.diffTime,C=Math.max(l.handleEndTime-y,0);l.restTime=C,C||(l.counting=!1,u(),n("on-end")),C>0&&c()}}))},s=(y,C)=>{const k=y;let v={d:0,h:0,m:0,s:0,ms:0};const S=1e3,f=60*S,m=60*f,w=24*m;return k>0&&(v.d=k>=S?Math.floor(k/w):0,v.h=Math.floor(k%w/m),v.m=Math.floor(k%m/f),v.s=Math.floor(k%f/S),v.ms=Math.floor(k%S)),C=="custom"?v:d({...v})},d=y=>{let{d:C,h:k,m:v,s:S,ms:f}=y,m=e.format;if(m.includes("DD")?m=m.replace("DD",rt(C)):k+=Number(C)*24,m.includes("HH")?m=m.replace("HH",rt(k)):v+=Number(k)*60,m.includes("mm")?m=m.replace("mm",rt(v)):S+=Number(v)*60,m.includes("ss")?m=m.replace("ss",rt(S)):f+=Number(S)*1e3,m.includes("S")){const w=rt(f,3).toString();m.includes("SSS")?m=m.replace("SSS",w):m.includes("SS")?m=m.replace("SS",w.slice(0,2)):m.includes("S")&&(m=m.replace("SS",w.slice(0,1)))}return m},h=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),c(),n("on-restart",l.restTime))},u=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},p=()=>{e.autoStart||(u(),l.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?r():l.restTime=e.time}),(0,t.watch)(()=>l.restTime,y=>{let C=s(y,"custom");n("update:modelValue",C),n("input",C)}),(0,t.watch)(()=>e.paused,(y,C)=>{C?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),c()),n("on-restart",l.restTime)):l.counting&&u()}),(0,t.watch)(()=>e.endTime,y=>{r()}),(0,t.watch)(()=>e.startTime,y=>{r()}),{...(0,t.toRefs)(e),slots:a,classes:o,start:h,pause:u,renderTime:i,reset:p}}}),Kw=["innerHTML"];function Uw(e,n,a,l,o,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,Kw))],2)}var xo=ie(Ow,[["render",Uw]]),{create:Hw}=ee("badge"),jw=Hw({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,a=e.max;return typeof n=="number"&&typeof a=="number"&&a<n?`${a}+`:n})}}}),Ww={class:"fox-badge"},Yw=["textContent"];function Xw(e,n,a,l,o,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Ww,[(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,Yw),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var Mo=ie(jw,[["render",Xw]]),{componentName:Qw,create:Gw}=ee("tag"),_w=Gw({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:oe.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:(0,t.computed)(()=>{const r=Qw;return{[r]:!0,[`${r}--${e.type}`]:!0,[`${r}--plain`]:e.plain,[`${r}--round`]:e.round,[`${r}--mark`]:e.mark,[`${r}--symbol`]:e.symbol,[`${r}--text`]:e.text,[`${r}--light`]:e.light}}),getStyle:()=>{const r={};return e.textColor?r.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(r.color=e.color),e.plain?(r.background="#fff",r["border-color"]=e.color):!e.text&&e.color&&(r.background=e.color),r},onClose:r=>{r.stopPropagation(),n("close",r)},onClick:r=>{n("click",r)}}}});function Zw(e,n,a,l,o,i){const r=(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]=(...c)=>e.onClick&&e.onClick(...c))},[(0,t.renderSlot)(e.$slots,"default"),e.closeable?((0,t.openBlock)(),(0,t.createBlock)(r,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],6)}var Ro=ie(_w,[["render",Zw]]),{create:Jw}=ee("popover"),eC=Jw({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 a=(0,t.ref)(),l=(0,t.ref)(),o=(0,t.ref)(e.visible);let i=(0,t.ref)(),r=(0,t.ref)();const c=(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:w,location:A}=e,g=A.split("-")[0],b=A.split("-")[1],T=16;return m&&(f[`border${d(g)}Color`]=m),e.arrowOffset!=0&&(["bottom","top"].includes(g)&&(b||(f.left=`calc(50% + ${w}px)`),b=="start"&&(f.left=`${T+w}px`),b=="end"&&(f.right=`${T-w}px`)),["left","right"].includes(g)&&(b||(f.top=`calc(50% - ${w}px)`),b=="start"&&(f.top=`${T-w}px`),b=="end"&&(f.bottom=`${T+w}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||!r.value)return{};const m=r.value.width,w=r.value.height,{width:A,height:g,left:b,top:T}=i.value,{location:E,offset:B}=e,N=E.split("-")[0],R=E.split("-")[1];let U=0,$=0;return pn(B)&&B.length==2&&(U+=Number(B[1]),$+=Number(B[0])),A&&(["bottom","top"].includes(N)&&(f.top=`${T+(N=="bottom"?g+U:-(w+U))}px`,R||(f.left=`${-(m-A)/2+b+$}px`),R=="start"&&(f.left=`${b+$}px`),R=="end"&&(f.left=`${i.value.right+$}px`)),["left","right"].includes(N)&&(f.left=`${b+(N=="left"?-(m+U):A+U)}px`,R||(f.top=`${T-w/2+g/2-4+$}px`),R=="start"&&(f.top=`${T+$}px`),R=="end"&&(f.top=`${T+g+$}px`))),f}),u=(0,t.computed)(()=>{const f={};return e.bgColor&&(f.background=e.bgColor),f}),p=()=>{let f=qe(a.value);e.targetId&&(f=qe(document.querySelector(`#${e.targetId}`))),i.value=f,setTimeout(()=>{r.value={height:l.value?.clientHeight,width:l.value?.clientWidth}},0)};(0,t.onMounted)(()=>{setTimeout(()=>{p()},200)}),(0,t.watch)(()=>e.visible,f=>{o.value=f,f?(window.addEventListener("touchstart",S,!0),p()):window.removeEventListener("touchstart",S,!0)});const y=f=>{n("update",f),n("update:visible",f)},C=()=>{y(!e.visible),n("open")},k=()=>{n("update:visible",!1),n("close")},v=(f,m)=>{!f.disabled&&n("choose",f,m),e.closeOnClickAction&&k()},S=f=>{const m=a.value,w=l.value;let A=m&&!m.contains(f.target);if(e.targetId){const g=document.querySelector(`#${e.targetId}`);A=g&&!g.contains(f.target)}A&&w&&!w.contains(f.target)&&e.closeOnClickOutside&&k()};return{showPopup:o,openPopover:C,popoverArrow:c,closePopover:k,chooseItem:v,popoverRef:a,popoverContentRef:l,getRootPosition:h,customStyle:u,popoverArrowStyle:s,renderIcon:xr}}}),tC={ref:"popoverContentRef",class:"fox-popover-content-group"},nC=["onClick"],lC={class:"fox-popover-menu-item-name"};function aC(e,n,a,l,o,i){const r=(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]=(...c)=>e.openPopover&&e.openPopover(...c))},[(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)(r,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.showPopup=c),"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",tC,[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,(c,s)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:s,class:(0,t.normalizeClass)([c.className,c.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:(0,t.withModifiers)(d=>e.chooseItem(c,s),["stop"])},[c.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(c.icon)),{key:0,class:"fox-popover-item-img"})):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",lC,(0,t.toDisplayString)(c.name),1)],10,nC))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}var cn=ie(eC,[["render",aC]]),oC=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:a,round:l,avatarSize:o}=(0,t.toRefs)(n),i=(0,t.computed)(()=>{const s="avatarClass";return{[s]:!0,[`${s}--${a.value}`]:a.value}});return{avatarShape:a,avatarClass:i,getBlockClass:s=>({[s]:!0,[`${s}--round`]:l.value}),getStyle:()=>o.value?{width:o.value,height:o.value}:{width:"50px",height:"50px"}}}}),{create:rC}=ee("skeleton"),iC=rC(oC({[sn.name]:sn})),sC={key:0},cC={key:1,class:"fox-skeleton"},uC={key:0,class:"fox-skeleton-animation"},dC={class:"fox-skeleton-content"};function fC(e,n,a,l,o,i){const r=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",cC,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",uC)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",dC,[e.avatar?((0,t.openBlock)(),(0,t.createBlock)(r,{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),c=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:c,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",sC,[(0,t.renderSlot)(e.$slots,"default")]))}var zo=ie(iC,[["render",fC]]),{create:mC,componentName:pC}=ee("collapse"),hC=mC({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=(0,t.ref)(null),l=(0,t.ref)(e.modelValue||(e.accordion?"":[])),o=(0,t.computed)(()=>({[pC]:!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)},r=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 应为数组")},c=s=>e.accordion?l.value===s:Array.isArray(l.value)?l.value.includes(s):!1;return(0,t.provide)("collapseParent",{updateVal:r,isExpanded:c}),{collapseDom:a,classes:o}}});function gC(e,n,a,l,o,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 Fo=ie(hC,[["render",gC]]),{create:yC,componentName:bC}=ee("collapse-item"),vC=yC({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:oe.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=(0,t.ref)(null),a=(0,t.ref)(null),l=(0,t.reactive)((0,t.inject)("collapseParent")),o=(0,t.computed)(()=>{const u=bC;return{[u]:!0,[u+"__border"]:e.border}}),i=(0,t.computed)(()=>l?l.isExpanded(e.name):!1),r=(0,t.ref)(i.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},s=()=>{i.value&&(r.value="auto")},d=()=>{r.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const u=a.value?.offsetHeight;r.value=u?`${u}px`:"auto"})})},h=()=>{const u=a.value?.offsetHeight;r.value=u?`${u}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{r.value="0px"})})};return(0,t.watch)(i,u=>{u?d():h()}),{classes:o,renderIcon:xr,wrapperRef:n,contentRef:a,open:d,toggle:c,wrapperHeight:r,expanded:i,onTransitionEnd:s}}}),SC={class:"fox-collapse-item__title-main"},kC={class:"fox-collapse-item__title-main-value"},wC=["innerHTML"],CC={key:2,class:"fox-collapse-item__title-label"},NC={key:0,class:"fox-collapse-item__title-sub"},AC=["innerHTML"],BC={key:0,class:"fox-collapse__item-extraWrapper"},TC={class:"fox-collapse__item-extraWrapper__extraRender"},VC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function EC(e,n,a,l,o,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]=(...r)=>e.toggle&&e.toggle(...r))},[(0,t.createElementVNode)("view",SC,[(0,t.createElementVNode)("view",kC,[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,wC)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",CC,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",NC,[(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,AC)),(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",BC,[(0,t.createElementVNode)("div",TC,[(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]=(...r)=>e.onTransitionEnd&&e.onTransitionEnd(...r))},[(0,t.createElementVNode)("view",VC,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var Lo=ie(vC,[["render",EC]]),$C=(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:DC,create:IC,scope:qC}=ee("table"),PC=IC({components:{RenderColumn:$C,DownArrow:oe.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:l}=(0,ge.useFoxI18n)(qC),o=(0,t.reactive)({curData:e.data}),i=(0,t.computed)(()=>({[DC]:!0})),r=y=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${y.align?y.align:""}`]:!0}),c=y=>y.stylehead?y.stylehead:"",s=y=>y.stylecolumn?y.stylecolumn:"",d=y=>e.columns.filter(C=>C.key===y)[0],h=y=>{const C=e.columns.filter(k=>k.key===y);return C[0].stylecolumn?C[0].stylecolumn:""},u=y=>{y.sorter&&(n("sorter",y),o.curData=typeof y.sorter=="function"?o.curData.sort(y.sorter):y.sorter==="default"?o.curData.sort():o.curData)},p=()=>e.columns.map(y=>[y.key,y.render]);return(0,t.watch)(()=>e.data,y=>{o.curData=y.slice()}),{...(0,t.toRefs)(o),classes:i,cellClasses:r,getColumnItem:d,getColumnItemStyle:h,handleSorterClick:u,sortDataItem:p,t:l,stylehead:c,stylecolumn:s}}}),xC={class:"fox-table__main__head"},MC={class:"fox-table__main__head__tr"},RC=["onClick"],zC={class:"fox-table__main__body"},FC={key:1},LC={key:0,class:"fox-table__nodata"},OC={key:0,class:"fox-table__nodata__text"},KC={key:1,class:"fox-table__summary"},UC=["innerHTML"];function HC(e,n,a,l,o,i){const r=(0,t.resolveComponent)("DownArrow"),c=(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",xC,[(0,t.createElementVNode)("view",MC,[((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)(r,{key:0,width:"12px",height:"12px"})):(0,t.createCommentVNode)("",!0)],14,RC))),128))])]),(0,t.createElementVNode)("view",zC,[((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)(c,{key:0,slots:[h,s[d]],record:s},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",FC,(0,t.toDisplayString)(s[d]),1))],6))),128))]))),128))])],2),e.curData.length?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",LC,[(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",OC,(0,t.toDisplayString)(e.t("noData")),1))],2)])),e.summary?((0,t.openBlock)(),(0,t.createElementBlock)("view",KC,[(0,t.createElementVNode)("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,UC)])):(0,t.createCommentVNode)("",!0)],2)}var Oo=ie(PC,[["render",HC]]),{componentName:jC,create:WC}=ee("ellipsis"),YC=WC({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const a=(0,t.ref)(null);let l=null,o=0;const i=(0,t.ref)(),r=(0,t.reactive)({exceeded:!1,expanded:!1}),c=(0,t.computed)(()=>({[jC]:!0}));(0,t.watch)(()=>e.content,(k,v)=>{k!=v&&s()}),(0,t.onMounted)(()=>{s()});const s=()=>{if(!a.value)return;const k=window.getComputedStyle(a.value);l=document.createElement("div"),Array.prototype.slice.apply(k).forEach(S=>{l.style.setProperty(S,k.getPropertyValue(S))}),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 v=p(k.lineHeight==="normal"?e.lineHeight:k.lineHeight);o=Math.floor(v*(Number(e.rows)+.5)+p(k.paddingTop)+p(k.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),d()},d=()=>{if(l.offsetHeight<=o)r.exceeded=!1,document.body.removeChild(l);else{r.exceeded=!0;const k=e.content.length,v=Math.floor((0+k)/2);i.value=e.direction==="middle"?u([0,v],[v,k]):h(0,k),document.body.removeChild(l)}},h=(k,v)=>{const S=r.expanded?e.collapseText:e.expandText,f=e.content.length;if(v-k<=1)return e.direction==="end"?{leading:e.content.slice(0,k)+e.symbol}:{tailing:e.symbol+e.content.slice(v,f)};const m=Math.round((k+v)/2);return e.direction==="end"?l.innerText=e.content.slice(0,m)+e.symbol+S:l.innerText=S+e.symbol+e.content.slice(m,f),l.offsetHeight<=o?e.direction==="end"?h(m,v):h(k,m):e.direction==="end"?h(k,m):h(m,v)},u=(k,v)=>{const S=r.expanded?e.collapseText:e.expandText,f=e.content.length;if(k[1]-k[0]<=1&&v[1]-v[0]<=1)return{leading:e.content.slice(0,k[0])+e.symbol,tailing:e.symbol+e.content.slice(v[1],f)};const m=Math.floor((k[0]+k[1])/2),w=Math.ceil((v[0]+v[1])/2);return l.innerText=e.content.slice(0,m)+e.symbol+S+e.symbol+e.content.slice(w,f),l.offsetHeight<=o?u([m,k[1]],[v[0],w]):u([k[0],m],[w,v[1]])},p=k=>{if(!k)return 0;const v=k.match(/^\d*(\.\d*)?/);return v?Number(v[0]):0},y=k=>{k==1?(r.expanded=!0,n("change","expand")):(r.expanded=!1,n("change","collapse"))},C=()=>{n("click")};return{...(0,t.toRefs)(r),root:a,ellipsis:i,classes:c,clickHandle:y,handleClick:C}}}),XC={key:0},QC={key:1},GC={key:2};function _C(e,n,a,l,o,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[2]||(n[2]=(...r)=>e.handleClick&&e.handleClick(...r)),ref:"root"},[e.exceeded?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",XC,(0,t.toDisplayString)(e.content),1)),e.exceeded&&!e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",QC,[(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)(r=>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",GC,[(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)(r=>e.clickHandle(2),["stop"]))},(0,t.toDisplayString)(e.collapseText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2)}var Ko=ie(YC,[["render",_C]]),{componentName:ZC,create:JC}=ee("animate"),e2=JC({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:a,loop:l,action:o}=(0,t.toRefs)(e),i=(0,t.reactive)({clicked:!1});let r=(0,t.computed)(()=>({"fox-animate__container":!0,[`${ZC}-${a.value}`]:o.value==="initial"||i.clicked?a.value:!1,loop:l.value}));const c=s=>{i.clicked=!0,l.value||setTimeout(()=>{i.clicked=!1},1e3),n("click",s)};return{...(0,t.toRefs)(i),classes:r,handleClick:c}}}),t2={class:"fox-animate"};function n2(e,n,a,l,o,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",t2,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...r)=>e.handleClick&&e.handleClick(...r)),style:(0,t.normalizeStyle)({animationDuration:e.duration?`${e.duration}ms`:void 0})},[(0,t.renderSlot)(e.$slots,"default")],6)])}var Uo=ie(e2,[["render",n2]]),{componentName:l2,create:a2}=ee("watermark"),o2=a2({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const a=(0,t.reactive)({base64Url:""}),{zIndex:l,gapX:o,gapY:i,width:r,height:c,rotate:s,image:d,imageWidth:h,imageHeight:u,content:p,fontStyle:y,fontWeight:C,fontColor:k,fontSize:v,fontFamily:S}=e,f=()=>{const w=document.createElement("canvas"),A=window.devicePixelRatio,g=w.getContext("2d"),b=`${(o+r)*A}px`,T=`${(i+c)*A}px`,E=r*A,B=c*A;if(w.setAttribute("width",b),w.setAttribute("height",T),g)if(d){g.translate(E/2,B/2),g.rotate(Math.PI/180*Number(s));const N=new Image;N.crossOrigin="anonymous",N.referrerPolicy="no-referrer",N.src=d,N.onload=()=>{g.drawImage(N,-h*A/2,-u*A/2,h*A,u*A),g.restore(),a.base64Url=w.toDataURL()}}else p&&(g.textBaseline="middle",g.textAlign="center",g.translate(E/2,B/2),g.rotate(Math.PI/180*Number(s)),g.font=`${y} normal ${C} ${Number(v)*A}px/${B}px ${S}`,g.fillStyle=k,g.fillText(p,0,0),g.restore(),a.base64Url=w.toDataURL());else throw new Error("当前环境不支持Canvas")};f(),(0,t.watch)(()=>[l,o,i,r,c,s,d,h,u,p,y,C,k,v,S],()=>{f()});const m=(0,t.computed)(()=>{const w=l2;return{[w]:!0,[`${w}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(a),classes:m}}});function r2(e,n,a,l,o,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 Ho=ie(o2,[["render",r2]]);function i2(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:s2,create:c2}=ee("trend-arrow"),u2=c2({components:{TriangleUp:oe.TriangleUp,TriangleDown:oe.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=(0,t.reactive)({rateTrend:e.rate>0}),a=(0,t.computed)(()=>({[s2]:!0})),l=(0,t.computed)(()=>{const{rate:i,digits:r,showSign:c,showZero:s}=e;n.rateTrend=i>0;const d=Math.abs(i);return!s&&i===0?"--":`${c&&i!==0?n.rateTrend?"+":"-":""}${i2(Number(d),r)}%`}),o=(0,t.computed)(()=>{const{dropColor:i,riseColor:r,syncTextColor:c,textColor:s,rate:d}=e;return{color:d===0?s:c?n.rateTrend?r:i:s}});return{...(0,t.toRefs)(n),classes:a,calcRate:l,calcStyle:o}}});function d2(e,n,a,l,o,i){const r=(0,t.resolveComponent)("TriangleUp"),c=(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)(r,{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)(c,{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 jo=ie(u2,[["render",d2]]),{create:f2}=ee("tour"),m2=f2({components:{[cn.name]:cn,Close:oe.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),l=(0,t.ref)({}),o=(0,t.computed)(()=>"fox-tour"),i=(0,t.computed)(()=>{const{offset:h,maskWidth:u,maskHeight:p}=e,{width:y,height:C,left:k,top:v}=l.value,S=[k+y/2,v+C/2],f=Number(u||y),m=Number(p||C);return{width:`${f+ +h[1]*2}px`,height:`${m+ +h[0]*2}px`,top:`${S[1]-m/2-+h[0]}px`,left:`${S[0]-f/2-+h[1]}px`}}),r=h=>{h=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,(0,t.nextTick)(()=>{a.showPopup=!0,c()}),n("change",a.active)},c=()=>{l.value=qe(document.querySelector(`#${e.steps[a.active].target}`))},s=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&s()};return(0,t.onMounted)(()=>{a.active=0,c()}),(0,t.watch)(()=>e.modelValue,h=>{h&&c(),a.active=0,a.showTour=h,a.showPopup=h}),{...(0,t.toRefs)(a),classes:o,maskStyle:i,changeStep:r,close:s,handleClickMask:d}}}),p2={key:0,class:"fox-tour-content"},h2={key:0,class:"fox-tour-content-top"},g2={class:"fox-tour-content-inner"},y2={class:"fox-tour-content-bottom"},b2={class:"fox-tour-content-bottom-init"},v2={class:"fox-tour-content-bottom-operate"},S2={key:1,class:"fox-tour-content fox-tour-content-tile"},k2={class:"fox-tour-content-inner"};function w2(e,n,a,l,o,i){const r=(0,t.resolveComponent)("Close"),c=(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)(c,{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",p2,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",h2,[(0,t.createElementVNode)("div",{onClick:n[1]||(n[1]=(...h)=>e.close&&e.close(...h))},[(0,t.createVNode)(r,{class:"fox-tour-content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",g2,(0,t.toDisplayString)(s.content),1),(0,t.createElementVNode)("div",y2,[(0,t.createElementVNode)("div",b2,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",v2,[(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",S2,[(0,t.createElementVNode)("div",k2,(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 Wo=ie(m2,[["render",w2]]),{componentName:C2,create:N2}=ee("barrage"),A2=N2({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const n=new Date().getTime(),a=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[C2]:!0}));let o=(0,t.ref)(document.createElement("div")),i=(0,t.ref)(document.createElement("div")),r=null;const c=(0,t.ref)(e.danmu),s=(0,t.ref)(e.rows),d=(0,t.ref)(e.top),h=(0,t.ref)(0),u=e.speeds,p=(0,t.ref)(0);(0,t.onMounted)(()=>{y(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(k(),h.value=0,C("hidden")):document.visibilityState==="visible"&&y()})}),(0,t.onUnmounted)(()=>{c.value=[],k()});const y=()=>{p.value=o.value.offsetWidth,a&&C("init"),setTimeout(()=>{o.value?.style.setProperty("--move-distance",`-${p.value}px`),S()},300)},C=m=>{let w=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const A=[];w&&Array.from(w).forEach(g=>{m=="init"?(g.style.opacity="0",A.push(g)):(g.classList="",g.style={})}),m=="init"&&(c.value=A)},k=()=>{r&&(clearTimeout(r),r=null)};(0,t.watch)(()=>e.danmu,m=>{e.danmu.length>0&&(c.value=[...m])});const v=m=>{const w=h.value%c.value.length;!e.loop&&h.value===c.value.length?c.value.splice(c.value.length,0,m):c.value.splice(w,0,m)},S=()=>{k(),r=setTimeout(()=>{f()},e.frequency)},f=()=>{const m=e.loop?h.value%c.value.length:h.value;let w=document.createElement("view");a&&typeof c.value[m]=="object"?(w=c.value[m],w?.classList?.add("fox-barrage__item")):(w.innerHTML=c.value[m],w.classList.add("fox-barrage__item"),i.value.appendChild(w)),(0,t.nextTick)(()=>{const A=w.offsetHeight;if(w?.classList?.add("move"),w.style.animationDuration=`${u}ms`,w.style.top=m%s.value*(A+d.value)+20+"px",w.style.opacity="1",!a){const g=w.offsetWidth;w.style.width=g+20+"px"}w.addEventListener("animationend",()=>{a?w.classList.remove("move"):i.value.removeChild(w)}),!(!e.loop&&h.value>=c.value.length-1)&&(h.value++,h.value>=c.value.length&&(h.value=0),w.removeEventListener("animationend",()=>{}),S())})};return{classTime:n,classes:l,danmuList:c,dmBody:o,dmContainer:i,add:v}}});function B2(e,n,a,l,o,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 Yo=ie(A2,[["render",B2]]),{componentName:T2,create:V2,scope:E2}=ee("signature"),$2=V2({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:{[ut.name]:ut},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,ge.useFoxI18n)(E2),l=a(e,["unSupportTpl","reSign","confirmText"]),o=(0,t.ref)(null),i=(0,t.ref)(null),r=(0,t.computed)(()=>({[T2]:!0,[`${e.customClass}`]:e.customClass})),c=(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"]}),s=()=>{let f=document.createElement("canvas");return!!(f.getContext&&f.getContext("2d"))},d=()=>{o.value.addEventListener(c.events[0],h,!1)},h=f=>{f.preventDefault(),c.ctx.beginPath(),c.ctx.lineWidth=e.lineWidth,c.ctx.strokeStyle=e.strokeStyle,n("start"),o.value.addEventListener(c.events[1],u,!1),o.value.addEventListener(c.events[2],p,!1),o.value.addEventListener(c.events[3],y,!1)},u=f=>{f.preventDefault();let m=c.isSupportTouch?f.touches[0]:f;n("signing",m);let w=o.value.getBoundingClientRect(),A=m.clientX-w.left,g=m.clientY-w.top;c.ctx.lineTo(A,g),c.ctx.stroke()},p=f=>{f.preventDefault(),n("end"),o.value.removeEventListener(c.events[1],u,!1),o.value.removeEventListener(c.events[2],p,!1)},y=f=>{f.preventDefault(),o.value.removeEventListener(c.events[1],u,!1),o.value.removeEventListener(c.events[2],p,!1)},C=()=>{o.value.addEventListener(c.events[2],p,!1),c.ctx.clearRect(0,0,c.canvasWidth,c.canvasHeight),c.ctx.closePath(),n("clear")},k=()=>{S(o.value)},v=f=>{if(!f)return!0;var m=document.createElement("canvas");return m.width=f.width,m.height=f.height,f?.toDataURL()==m.toDataURL()},S=f=>{let m;switch(e.type){case"png":m=f.toDataURL("image/png");break;case"jpg":m=f.toDataURL("image/jpeg",.8);break}n("confirm",v(f)?"请绘制签名":f,v(f)?"":m)};return(0,t.onMounted)(()=>{s()&&(c.ctx=o.value.getContext("2d"),c.canvasWidth=i.value.offsetWidth,c.canvasHeight=i.value.offsetHeight,d())}),{...l,...(0,t.toRefs)(c),canvas:o,wrap:i,isCanvasSupported:s,confirm:k,clear:C,classes:r}}}),D2={class:"fox-signature-inner",ref:"wrap"},I2=["height","width"],q2={key:0,class:"fox-signature-unsopport"};function P2(e,n,a,l,o,i){const r=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",D2,[(0,t.withDirectives)((0,t.createElementVNode)("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,I2),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("p",q2,(0,t.toDisplayString)(e.unSupportTpl),1))],512),(0,t.createVNode)(r,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=c=>e.clear())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.reSign),1)]),_:1}),(0,t.createVNode)(r,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=c=>e.confirm())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.confirmText),1)]),_:1})],2)}var Xo=ie($2,[["render",P2]]),x2=[Kl,Hl,jl,Wl,Ql,Ut,Hn,Jl,ea,ta,na,aa,Yn,ia,da,ha,ya,al,ol,ba,il,sl,Sa,wa,vt,Ca,Aa,gl,Ta,Ea,Yt,Xt,_n,$a,qa,Pa,xa,dt,Ma,Ra,jn,St,Wn,za,Fa,ut,La,Oa,Ka,ct,we,Ua,Ha,ja,Wa,Gt,Ya,Xa,Qa,Ga,_a,Za,Ja,eo,to,no,lo,ao,oo,ro,io,so,co,Jt,ml,Zn,ll,tl,yl,dl,jt,uo,fo,mo,po,ho,go,yo,tn,fl,bo,ko,ul,Vt,No,Ao,sn,Bo,To,en,Vo,Eo,$o,$t,Do,Io,Dt,It,On,vl,Po,xo,Mo,Ro,cn,zo,Fo,Lo,Oo,Ko,Uo,Ho,jo,Wo,Yo,Xo],M2=new Us(x2,"4.0.0");V.AbstractPageScopeKey=Ll,V.ActionSheet=ho,V.FoxActionSheet=ho,V.ActionsheetItem=Ta,V.FoxActionsheetItem=Ta,V.ActionsheetPane=gl,V.FoxActionsheetPane=gl,V.Animate=Uo,V.FoxAnimate=Uo,V.Audio=No,V.FoxAudio=No,V.AudioOperate=Ao,V.FoxAudioOperate=Ao,V.Avatar=sn,V.FoxAvatar=sn,V.AvatarGroup=Bo,V.FoxAvatarGroup=Bo,V.BackTop=go,V.FoxBackTop=go,V.Badge=Mo,V.FoxBadge=Mo,V.Barrage=Yo,V.FoxBarrage=Yo,V.Broadcast=hr,V.BroadcastKey=We,V.Button=ut,V.FoxButton=ut,V.ButtonsItem=Jl,V.FoxButtonsItem=Jl,V.Calendar=ll,V.FoxCalendar=ll,V.CalendarItem=ya,V.FoxCalendarItem=ya,V.Cascader=Zn,V.FoxCascader=Zn,V.CascaderItem=da,V.FoxCascaderItem=da,V.Cell=La,V.FoxCell=La,V.CellGroup=Ka,V.FoxCellGroup=Ka,V.Checkbox=il,V.FoxCheckbox=il,V.CheckboxGroup=sl,V.FoxCheckboxGroup=sl,V.CheckboxItem=Sa,V.FoxCheckboxItem=Sa,V.CircleProgress=Vo,V.FoxCircleProgress=Vo,V.Col=ja,V.FoxCol=ja,V.Collapse=Fo,V.FoxCollapse=Fo,V.CollapseItem=Lo,V.FoxCollapseItem=Lo,V.Content=Wl,V.FoxContent=Wl,V.CountDown=xo,V.FoxCountDown=xo,V.CountUp=Po,V.FoxCountUp=Po,V.DataItemsKey=Ft,V.DateItem=ha,V.FoxDateItem=ha,V.DatePicker=tl,V.FoxDatePicker=tl,V.DateUtils=Ct,V.Dialog=tn,V.FoxDialog=tn,V.Divider=Ya,V.FoxDivider=Ya,V.Domain=Nn,V.DomainKey=_e,V.DomainProvider=za,V.FoxDomainProvider=za,V.Drag=yo,V.FoxDrag=yo,V.Dropdown=Ra,V.FoxDropdown=Ra,V.Elevator=no,V.FoxElevator=no,V.Ellipsis=Ko,V.FoxEllipsis=Ko,V.Empty=$o,V.FoxEmpty=$o,V.FixedNav=_a,V.FoxFixedNav=_a,V.FloatingButton=Pa,V.FoxFloatingButton=Pa,V.FooterBar=jl,V.FoxFooterBar=jl,V.FoxGrid=Xa,V.Grid=Xa,V.FoxGridItem=Qa,V.GridItem=Qa,V.FoxGroup=Ql,V.Group=Ql,V.FoxHeaderBar=Hl,V.HeaderBar=Hl,V.FoxHintText=vt,V.HintText=vt,V.FoxIcon=Oa,V.Icon=Oa,V.FoxImage=Ua,V.Image=Ua,V.FoxImagePreview=vl,V.ImagePreview=vl,V.FoxIndicator=ro,V.Indicator=ro,V.FoxInfiniteLoading=fl,V.InfiniteLoading=fl,V.FoxInputItem=ta,V.InputItem=ta,V.FoxInputNumber=yl,V.InputNumber=yl,V.FoxInputNumberItem=Ea,V.InputNumberItem=Ea,V.FoxItem=Ut,V.Item=Ut,V.FoxLayout=Ha,V.Layout=Ha,V.FoxLinkItem=Ca,V.LinkItem=Ca,V.FoxList=To,V.List=To,V.FoxMapping=Wn,V.Mapping=Wn,V.FoxMenu=Za,V.Menu=Za,V.FoxMenuItem=Ja,V.MenuItem=Ja,V.FoxMessageBox=dt,V.MessageBox=dt,V.FoxMoneyItem=na,V.MoneyItem=na,V.FoxMoreButton=xa,V.MoreButton=xa,V.FoxNavbar=Ga,V.Navbar=Ga,V.FoxNoticeBar=Eo,V.NoticeBar=Eo,V.FoxNotify=ko,V.Notify=ko,V.FoxNumberKeyboard=mo,V.NumberKeyboard=mo,V.FoxOverLay=ct,V.OverLay=ct,V.FoxPage=Kl,V.Page=Kl,V.FoxPagination=lo,V.Pagination=lo,V.FoxPicker=jt,V.Picker=jt,V.FoxPickerItem=ia,V.PickerItem=ia,V.FoxPopover=cn,V.Popover=cn,V.FoxPopoverDialog=jn,V.PopoverDialog=jn,V.FoxPopup=we,V.Popup=we,V.FoxPopupWrapper=Ma,V.PopupWrapper=Ma,V.FoxPrice=On,V.Price=On,V.FoxProgress=en,V.Progress=en,V.FoxPullRefresh=bo,V.PullRefresh=bo,V.FoxRadio=al,V.Radio=al,V.FoxRadioGroup=ol,V.RadioGroup=ol,V.FoxRadioItem=ba,V.RadioItem=ba,V.FoxRange=Jt,V.Range=Jt,V.FoxRate=dl,V.Rate=dl,V.FoxRateItem=Aa,V.RateItem=Aa,V.FoxRollingProvider=Fa,V.RollingProvider=Fa,V.FoxRow=Wa,V.Row=Wa,V.FoxRowItem=Hn,V.RowItem=Hn,V.FoxSearchBar=ml,V.SearchBar=ml,V.FoxShortPassword=uo,V.ShortPassword=uo,V.FoxSideNavBar=io,V.SideNavBar=io,V.FoxSideNavBarItem=so,V.SideNavBarItem=so,V.FoxSignature=Xo,V.Signature=Xo,V.FoxSkeleton=zo,V.Skeleton=zo,V.FoxSlotItem=ea,V.SlotItem=ea,V.FoxStep=Io,V.Step=Io,V.FoxSteps=Do,V.Steps=Do,V.FoxStepsBar=qa,V.StepsBar=qa,V.FoxSticky=Gt,V.Sticky=Gt,V.FoxSubSideNavBar=co,V.SubSideNavBar=co,V.FoxSwipe=po,V.Swipe=po,V.FoxSwiper=Dt,V.Swiper=Dt,V.FoxSwiperItem=It,V.SwiperItem=It,V.FoxSwitch=ul,V.Switch=ul,V.FoxSwitchItem=wa,V.SwitchItem=wa,V.FoxTabPane=oo,V.TabPane=oo,V.FoxTabbar=eo,V.Tabbar=eo,V.FoxTabbarItem=to,V.TabbarItem=to,V.FoxTable=Oo,V.Table=Oo,V.FoxTabs=ao,V.Tabs=ao,V.FoxTabsBar=Yt,V.TabsBar=Yt,V.FoxTabsContainer=Xt,V.TabsContainer=Xt,V.FoxTabsFrame=$a,V.TabsFrame=$a,V.FoxTabsPane=_n,V.TabsPane=_n,V.FoxTag=Ro,V.Tag=Ro,V.FoxText=St,V.Text=St,V.FoxTextarea=Yn,V.Textarea=Yn,V.FoxTextareaItem=aa,V.TextareaItem=aa,V.FoxToast=Vt,V.Toast=Vt,V.FoxTour=Wo,V.Tour=Wo,V.FoxTrendArrow=jo,V.TrendArrow=jo,V.FoxUploader=fo,V.Uploader=fo,V.FoxVideo=$t,V.Video=$t,V.FoxWaterMark=Ho,V.WaterMark=Ho,V.InnerPageScopeKey=Fl,V.PriorityPolicy=et,V.UniqueID=Kn,V.ValidateSchema=Sr,V.ValidateSchemaKey=Ge,V.browseProperty=Ir,V.cancelRaf=_o,V.clamp=je,V.clearNonNumber=ql,V.compareTo=Vl,V.createBroadcast=vn,V.createValidateSchema=kn,V.debounce=Pe,V.debounceRef=$s,V.decimalLength=mr,V.default=M2,V.defineConfigDomain=wr,V.defineDataItem=Cr,V.defineDomain=Rl,V.defineDomainItemProperty=Ve,V.defineItem=Be,V.definePageState=Nr,V.defineSimpleItem=gt,V.deleteGlobalValidator=Bs,V.disabledProperty=Dr,V.divide=Tl,V.excludeProps=Qe,V.extend=mt,V.floatData=Ss,V.getGlobalIcons=qn,V.getGlobalValidateCheckEvents=yr,V.getGlobalValidateResetEvents=vr,V.getPageContentAreaHeight=Vn,V.getPageContentAreaWidth=En,V.getPageFooterAreaHeight=Tn,V.getPageHeaderAreaHeight=Bn,V.getRootDomain=ht,V.hasSymbol=sr,V.includeProps=be,V.indexOf=bs,V.injectAbstractPageScope=Ot,V.injectAbstractPageScopeForContent=Er,V.injectAbstractPageScopeForFooterBar=Vr,V.injectAbstractPageScopeForHeaderBar=Tr,V.injectInnerPageScope=Lt,V.integerLength=fr,V.isArray=pn,V.isArrayLike=ur,V.isBrowser=Xe,V.isDate=He,V.isDisplayNone=Dl,V.isESModule=ms,V.isEmptyString=fe,V.isEqual=De,V.isFunction=hn,V.isHidden=$l,V.isMap=cs,V.isNil=Ee,V.isNumberString=yn,V.isObject=$e,V.isPlainObject=fs,V.isPromise=ft,V.isRegExp=Il,V.isSet=us,V.isString=rr,V.isSubPage=xs,V.isSymbol=ds,V.isTouch=Xn,V.isWindow=cr,V.kebabToPascal=bn,V.lastIndexOf=vs,V.makeArray=ys,V.merge=dr,V.multiply=lr,V.negate=ar,V.nextTick=hs,V.numberFormat=mn,V.objectToString=ir,V.once=Ds,V.overrideGlobalIcons=_s,V.overrideGlobalValidateHandler=Ns,V.padZero=rt,V.pascalToKebab=ks,V.preventDefault=Pl,V.property=Te,V.provideAbstractPageScope=Br,V.provideInnerPageScope=Ar,V.px2Number=Ps,V.raf=Ue,V.readonlyProperty=$r,V.setGlobalValidateCheckEvents=Ts,V.setGlobalValidateHandler=Cs,V.setGlobalValidateMessages=Es,V.setGlobalValidateResetEvents=Vs,V.setGlobalValidator=As,V.throttle=Cn,V.toBoolean=Se,V.toNumber=de,V.toPadding=Re,V.toPx=ue,V.toPxDesc=qs,V.toPxString=me,V.toTypeString=gn,V.toValue=xe,V.tryTimes=xl,V.typeOf=pt,V.unNumberFormat=or,V.updatePageState=zl,V.useBroadcast=Mt,V.useDomain=Ze,V.useInnerSize=In,V.usePageState=An,V.usePosition=Gl,V.useRawTouch=Qn,V.useRect=qe,V.useSize=Ul,V.useSlotChildren=Ln,V.useTouch=nt,V.valueLength=ke});
|
|
9
|
+
`)}}});function yy(e,n,a,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 Wa=ie(gy,[["render",yy]]),{create:by}=ee("sticky"),vy=by({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=(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)),o=(0,t.computed)(()=>r.fixed?{height:`${r.height}px`}:{}),c=(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(!a.value&&!d)return;const h=qe(a),u=l.value,p=qe(u),y=qe(d);r.height=h.height;const C=()=>{let v=!1;if(e.position==="top")v=d?i.value>h.top&&y.bottom>0:i.value>h.top;else{const w=document.documentElement.clientHeight;v=d?y.bottom>0&&w-i.value-p.height>y.top:w-i.value<h.bottom}return v},k=()=>{if(d)if(e.position==="top"){const v=y.bottom-i.value-p.height;return v<0?v:0}else{const v=document.documentElement.clientHeight,w=y.bottom-(v-i.value);return w<0?w:0}return 0};r.transform=k(),r.fixed=C()};return(0,t.watch)(()=>r.fixed,d=>{n("change",d)}),(0,t.onMounted)(()=>{s(),Ba(a.value).addEventListener("scroll",s,!0)}),(0,t.onUnmounted)(()=>{Ba(a.value).removeEventListener("scroll",s)}),{rootRef:a,rootStyle:o,stickyRef:l,stickyStyle:c}}});function Sy(e,n,a,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 Gt=ie(vy,[["render",Sy]]),{componentName:ky,create:wy}=ee("divider"),Cy=wy({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 a=ky;let l={[a]:!0},r={};return e.direction==="horizontal"?r={...l,[`${a}-center`]:n.slots.default,[`${a}-left`]:e.contentPosition==="left",[`${a}-right`]:e.contentPosition==="right",[`${a}-dashed`]:e.dashed,[`${a}-hairline`]:e.hairline}:r={...l,[`${a}-vertical`]:e.direction==="vertical"},r})}}});function Ny(e,n,a,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 Ya=ie(Cy,[["render",Ny]]),_t=(e,n={})=>{const a=(0,t.shallowRef)([]),l=i=>{a.value.push(i),(0,t.triggerRef)(a)},r=i=>{const o=a.value.findIndex(c=>c===i);o!=-1&&(a.value.splice(o,1),(0,t.triggerRef)(a))};return(0,t.onUnmounted)(()=>{const i=a.value.length;a.value.splice(0,i)}),(0,t.provide)(e,{unlink:r,link:l,children:a,...n}),{children:a}};function Zt(e,n){const a=(0,t.inject)(e,null);if(a){const{link:l,unlink:r,children:i}=a;return l(n),(0,t.onUnmounted)(()=>{r(n)}),{parent:a,index:(0,t.computed)(()=>i.value.indexOf(n))}}return{parent:a,index:(0,t.computed)(()=>-1)}}var{componentName:Ay}=ee("grid"),Li=Symbol("grid"),By={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}},Ty={props:By,setup(e,{slots:n}){_t(Li,{props:e});const a=(0,t.computed)(()=>{const r=Ay;return{[r]:!0,[`${r}--border`]:e.border&&!e.gutter}}),l=(0,t.computed)(()=>{const r={};return e.gutter&&(r.paddingLeft=me(e.gutter)),r});return()=>(0,t.h)("view",{class:a.value,style:l.value},n.default?.())}},{create:Vy}=ee("grid"),Ey=Vy(Ty),Xa=Ey,{create:$y,componentName:Oi}=ee("grid-item"),Dy=$y({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const{parent:a,index:l}=Zt(Li,{props:e}),r=(0,t.computed)(()=>({[Oi]:!0})),i=(0,t.computed)(()=>{const s={flexBasis:`${100/+a.props.columnNum}%`};return a.props.square?s.paddingTop=`${100/+a.props.columnNum}%`:a.props.gutter&&(s.paddingRight=me(a.props.gutter),l.value>=a.props.columnNum&&(s.marginTop=me(a.props.gutter))),s}),o=(0,t.computed)(()=>{const s=`${Oi}__content`;return{[`${s}`]:!0,[`${s}--border`]:a.props.border,[`${s}--surround`]:a.props.border&&a.props.gutter,[`${s}--center`]:a.props.center,[`${s}--square`]:a.props.square,[`${s}--reverse`]:a.props.reverse,[`${s}--${a.props.direction}`]:!!a.props.direction,[`${s}--clickable`]:a.props.clickable}});return{rootClass:r,rootStyle:i,contentClass:o,handleClick:s=>{n("click",s)}}}}),Iy={class:"fox-grid-item__text"};function qy(e,n,a,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]=(...o)=>e.handleClick&&e.handleClick(...o))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.contentClass)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("view",Iy,[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 Qa=ie(Dy,[["render",qy]]),{componentName:Py,create:xy}=ee("navbar"),My=xy({components:{Left:oe.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:l,safeAreaInsetTop:r,placeholder:i,zIndex:o}=(0,t.toRefs)(e),c=(0,t.ref)(null),s=(0,t.ref)(null);let d=(0,t.ref)();const h=(0,t.computed)(()=>{const v=Py;return{[v]:!0,[`${v}--border`]:a.value,[`${v}--fixed`]:l.value,[`${v}--safe-area-inset-top`]:r.value}}),u=(0,t.computed)(()=>({zIndex:o.value}));(0,t.onMounted)(()=>{l.value&&i.value&&(0,t.nextTick)(()=>{d.value=s?.value?.getBoundingClientRect().height,c.value.style.height=d.value+"px"})});function p(){n("on-click-back")}function y(){n("on-click-title")}function C(){n("on-click-icon")}function k(){n("on-click-right")}return{navBarWrap:c,navBarHtml:s,classes:h,styles:u,handleLeft:p,handleCenter:y,handleCenterIcon:C,handleRight:k}}}),Ry={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},zy={key:1,class:"fox-navbar__text"},Fy={class:"fox-navbar__title"},Ly={key:0,class:"fox-navbar__text"},Oy={key:1,class:"fox-navbar__text"},Ky={class:"fox-navbar__title"},Uy={key:0,class:"fox-navbar__text"};function Hy(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ry,[(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]=(...c)=>e.handleLeft&&e.handleLeft(...c))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(o,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",zy,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Fy,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...c)=>e.handleCenter&&e.handleCenter(...c))},(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]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...c)=>e.handleRight&&e.handleRight(...c))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ly,(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]=(...c)=>e.handleLeft&&e.handleLeft(...c))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(o,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Oy,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Ky,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...c)=>e.handleCenter&&e.handleCenter(...c))},(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]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...c)=>e.handleCenterIcon&&e.handleCenterIcon(...c))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...c)=>e.handleRight&&e.handleRight(...c))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Uy,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var Ga=ie(My,[["render",Hy]]),jy=(e,n,a)=>({components:a,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,ge.useFoxI18n)(n),o=i(l,["activeText","unActiveText"]),c=(0,t.computed)(()=>({[e]:!0,active:l.visible,[l.type]:!0})),s=(0,t.ref)(-1);return{...o,classes:c,updateValue:(u=!l.visible)=>{r("update:visible",u)},selected:(u,p)=>{r("selected",{item:u,event:p}),s.value=u.id},current:s}}}),{componentName:Wy,create:Yy,scope:Xy}=ee("fixednav"),Qy=Yy(jy(Wy,Xy,{[ct.name]:ct,Left:oe.Left})),Gy={class:"fox-fixednav__list"},_y=["onClick"],Zy=["src"],Jy={class:"span"},eb={key:0,class:"b"},tb={class:"text"};function nb(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-overlay"),c=(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)(o,{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",Gy,[((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,Zy),(0,t.createElementVNode)("view",Jy,(0,t.toDisplayString)(s.text),1),s.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",eb,(0,t.toDisplayString)(s.num),1)):(0,t.createCommentVNode)("",!0)],10,_y))),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)(c,{color:"#fff"}),(0,t.createElementVNode)("view",tb,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var _a=ie(Qy,[["render",nb]]),Ki=Symbol("fox-menu"),{componentName:lb,create:ab}=ee("menu"),ob=ab({components:{RectUp:oe.RectUp,RectDown:oe.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)(),a=(0,t.ref)(0),l=(0,t.ref)(!1),{children:r}=_t(Ki,{props:e,offset:a}),i=(0,t.computed)(()=>r.value.some(p=>p.state.showWrapper)),o=(0,t.computed)(()=>({[lb]:!0,"scroll-fixed":l.value})),c=()=>{if(n.value){const p=qe(n);e.direction==="down"?a.value=p.bottom:a.value=window.innerHeight-p.top}},s=p=>{r.value.forEach((y,C)=>{C===p?(c(),y.toggle()):y.state.showPopup&&y.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))},u=p=>{let y="";const{titleClass:C}=e;return p&&(y+="active"),C&&(y+=` ${C}`),y};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:o,barRef:n,getClasses:u}}}),rb=["onClick"],ib={class:"fox-menu__title-text"},sb={class:"fox-menu__title-icon"};function cb(e,n,a,l,r,i){const o=(0,t.resolveComponent)("RectUp"),c=(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",ib,(0,t.toDisplayString)(s.renderTitle()),1),(0,t.createElementVNode)("span",sb,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.direction==="up"?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1}))])])],2)],14,rb))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var Za=ie(ob,[["render",cb]]),{create:ub}=ee("menu-item"),db=ub({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:Ce,Check:oe.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n}){const a=(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 u={height:h.offset.value+"px"};return h.props.direction==="down"?{...u,top:"0px"}:{...u,bottom:"0px"}}),i=(u=!a.showPopup)=>{u!==a.showPopup&&(a.showPopup=u,u&&(a.showWrapper=!0,n("open")))},o=()=>{if(e.title)return e.title;const u=e.options?.find(p=>p.value===e.modelValue);return u?u.text:""},c=u=>{a.showPopup=!1,u.value!==e.modelValue&&(n("update:modelValue",u.value),n("change",u.value))},s=()=>{n("close"),a.showWrapper=!1},d=()=>{a.showPopup=!1,n("close")},{parent:h}=Zt(Ki,{props:e,state:a,toggle:i,renderTitle:o});return{style:l,placeholderElementStyle:r,renderTitle:o,state:a,parent:h,toggle:i,onClick:c,handleClose:s,handleClickOutside:d}}}),fb={class:"fox-menu-item"},mb={class:"fox-menu-item__content fox-menu-item__overflow"},pb=["onClick"];function hb(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Check"),c=(0,t.resolveComponent)("FoxPopup");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",fb,[(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)(c,(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",mb,[((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)(o,(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,pb))),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 Ja=ie(db,[["render",hb]]),Ui=Symbol("fox-tabbar"),{create:gb}=ee("tabbar"),yb=gb({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 a(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:a}),{children:r}=_t(Ui,{state:l});return(0,t.watch)(()=>e.modelValue,i=>{l.value=de(i)}),{changeIndex:a}}});function bb(e,n,a,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 eo=ie(yb,[["render",bb]]),{create:vb}=ee("tabbar-item"),Sb=vb({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:a,index:l}=Zt(Ui,{props:e}),r=(0,t.computed)(()=>l.value===a.state.value);function i(o){a&&typeof a.state.changeIndex=="function"&&a.state.changeIndex(o)}return{state:a.state,index:l,active:r,change:i}}}),kb={class:"fox-tabbar-item_icon-box"},wb={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Cb={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Nb={key:1,class:"fox-tabbar-item_icon-box_dot"},Ab={key:2},Bb={key:0};function Tb(e,n,a,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]=o=>e.change(e.index))},[(0,t.createElementVNode)("view",kb,[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",wb,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",Cb,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",Nb)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ab,[((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",Bb,(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 to=ie(Sb,[["render",Tb]]),{componentName:Vb,create:Eb}=ee("elevator"),$b=Eb({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const a=(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)(()=>({[Vb]:!0})),i=(0,t.computed)(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),o=(0,t.computed)(()=>a.value.clientHeight),c=(w,f)=>w.getAttribute("data-"+f),s=w=>{(0,t.nextTick)(()=>{!l.listGroup.includes(w)&&w!=null&&l.listGroup.push(w)})},d=()=>{let w=0;l.listHeight.push(w);for(let f=0;f<l.listGroup.length;f++){let m=l.listGroup[f];w+=Math.floor(m.clientHeight),l.listHeight.push(w)}},h=w=>{!w&&w!==0||(w<0&&(w=0),w>l.listHeight.length-2&&(w=l.listHeight.length-2),l.codeIndex=w,a.value.scrollTo(0,l.listHeight[w]))},u=w=>{l.scrollStart=!0;let f=c(w.target,"index"),m=w.touches[0];l.touchState.y1=m.pageY,l.anchorIndex=+f,l.codeIndex=+f,h(+f)},p=w=>{let f=w.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)},y=()=>{l.scrollStart=!1},C=(w,f)=>{n.emit("click-item",w,f),l.currentData=f,l.currentKey=w},k=w=>{n.emit("click-index",w)},v=w=>{let f=w.target.scrollTop;const m=l.listHeight;l.scrollY=f;for(let S=0;S<m.length-1;S++){let A=m[S],g=m[S+1];if(l.scrollY>=A&&l.scrollY<g){l.currentIndex=S,l.diff=g-l.scrollY;return}}l.currentIndex=m.length-2};return(0,t.onMounted)(()=>{a.value.addEventListener("scroll",v)}),n.expose({scrollTo:h}),(0,t.watch)(()=>l.listGroup.length,()=>{l.listHeight=[],(0,t.nextTick)(d)}),(0,t.watch)(()=>l.diff,w=>{const f=l.listHeight;let m=w>0&&w<e.titleHeight?w-e.titleHeight:0;l.scrollY+o.value===f[f.length-1]&&m!==0&&(m=0),l.fixedTop!==m&&(l.fixedTop=m)}),(0,t.watch)(()=>l.currentIndex,w=>{n.emit("change",w)}),{classes:r,...(0,t.toRefs)(l),fixedStyle:i,clientHeight:o,setListGroup:s,listview:a,touchStart:u,touchMove:p,touchEnd:y,handleClickItem:C,handleClickIndex:k}}}),Db={class:"fox-elevator__list__item__code"},Ib=["onClick"],qb=["innerHTML"],Pb={class:"fox-elevator__fixed-title"},xb={class:"fox-elevator__bars__inner"},Mb=["data-index","onClick"];function Rb(e,n,a,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,o=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-elevator__list__item",key:o[e.acceptKey],ref_for:!0,ref:e.setListGroup},[(0,t.createElementVNode)("view",Db,(0,t.toDisplayString)(o[e.acceptKey]),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.list,c=>((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===c.id&&e.currentKey===o[e.acceptKey]}]),key:c.id,onClick:s=>e.handleClickItem(o[e.acceptKey],c)},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:1,item:c}):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:c.name},null,8,qb))],10,Ib))),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",Pb,(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]=(...o)=>e.touchStart&&e.touchStart(...o)),onTouchmove:n[1]||(n[1]=(0,t.withModifiers)((...o)=>e.touchMove&&e.touchMove(...o),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...o)=>e.touchEnd&&e.touchEnd(...o))},[(0,t.createElementVNode)("view",xb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__bars__inner__item",{active:o[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":c,key:o[e.acceptKey],onClick:s=>e.handleClickIndex(o[e.acceptKey])},(0,t.toDisplayString)(o[e.acceptKey]),11,Mb))),128))])],32)],2)}var no=ie($b,[["render",Rb]]),{componentName:O2,create:zb,scope:Fb}=ee("pagination"),Lb=zb({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:a}=(0,ge.useFoxI18n)(Fb),l=a(e,["prevText","nextText"]),{modelValue:r,mode:i,showPageSize:o,forceEllipses:c}=(0,t.toRefs)(e),s=(0,t.computed)(()=>{const{pageCount:p,totalItems:y,itemsPerPage:C}=(0,t.toRefs)(e),k=+p.value||Math.ceil(+y.value/+C.value);return Math.max(1,k)}),d=(p,y)=>{p>s.value||p<1||(p!=r.value&&n("update:modelValue",p),y&&n("change",p))},h=(p,y,C=!1)=>({number:p,text:y,active:C}),u=(0,t.computed)(()=>{if(i.value=="simple")return;let p=[];const y=s.value,C=+o.value;let k=1,v=y;const w=y>C;w&&(k=Math.max(r.value-Math.floor(C/2),1),v=k+C-1,v>y&&(v=y,k=v-C+1));for(var f=k;f<=v;f++){const m=h(f,f,r.value==f);p.push(m)}if(w&&C>0&&c.value){if(k>1){const m=h(k-1,"...");p.unshift(m)}if(v<y){const m=h(v+1,"...");p.push(m)}}return p});return(0,t.watchEffect)(()=>{d(r.value,!1)}),{...l,modelValue:r,select:d,countRef:s,mode:i,pages:u,forceEllipses:c}}}),Ob={class:"fox-pagination"},Kb={key:0,class:"fox-pagination-contain"},Ub=["onClick"],Hb={key:1,class:"fox-pagination-contain"},jb={class:"fox-pagination-simple"};function Wb(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Ob,[(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]=o=>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",Kb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pages,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:c+"pagination",class:(0,t.normalizeClass)(["fox-pagination-item",o.active?"active":""]),onClick:s=>e.select(o.number,!0)},[(0,t.renderSlot)(e.$slots,"page",{item:o},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(o.text),1)])],10,Ub))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hb,[(0,t.createElementVNode)("view",jb,(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]=o=>e.select(e.modelValue+1,!0))},[(0,t.renderSlot)(e.$slots,"next-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextText),1)])],2)])}var lo=ie(Lb,[["render",Wb]]),Yb=(e,n,a,l)=>{const r=(0,t.ref)(),i=(0,t.ref)({width:0,height:0}),o=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let u=await l(r,a);i.value.width=u.width||0,i.value.height=u.height||0}else i.value.width=r.value?.clientWidth||0,i.value.height=r.value?.clientHeight||0};(0,t.onMounted)(()=>{setTimeout(()=>{o()},100)});const c=(0,t.reactive)({offset:0,moving:!1}),s=nt();let d="";const h=(u,p)=>{let y=u;switch(e.direction=="horizontal"?(d=u>0?"right":"left",y=Math.abs(y)/i.value.width*100):(d=p>0?"bottom":"top",y=p,y=Math.abs(y)/i.value?.height*100),y>85&&(y=85),d){case"left":case"top":n.isEnd()&&(y=0,c.moving=!1);break;case"right":case"bottom":y=-y,n.isBegin()&&(y=0,c.moving=!1);break}c.offset=y};return{touchMethods:{onTouchStart(u){e.swipeable&&s.start(u)},onTouchMove(u){e.swipeable&&(s.move(u),c.moving=!0,h(s.deltaX.value,s.deltaY.value),e.direction=="horizontal"&&s.isHorizontal()&&(u.preventDefault(),u.stopPropagation()),e.direction=="vertical"&&s.isVertical()&&(u.preventDefault(),u.stopPropagation()))},onTouchEnd(){if(c.moving)switch(c.moving=!1,d){case"left":case"top":c.offset>35&&n.next();break;case"right":case"bottom":c.offset<-35&&n.prev();break}}},touchState:c,tabsContentRef:r}},Xb=class{title="";titleSlot;paneKey="";disabled=!1;constructor(){}},{create:Qb}=ee("tabs"),Gb=Qb({components:{[Gt.name]:Gt,JoySmile:oe.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){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)([]),o=B=>{B.forEach((N,R)=>{let U=N.type;if(U=U.name||U,U=="fox-tab-pane"){let $=new Xb;if(N.props?.title||N.props?.["pane-key"]||N.props?.paneKey){let x=mt(N.props?.["pane-key"]),M=x=="number"||x=="string"?String(N.props?.["pane-key"]):null,O=mt(N.props?.paneKey),z=O=="number"||O=="string"?String(N.props?.paneKey):null;$.title=N.props?.title,$.paneKey=M||z||String(R),$.disabled=N.props?.disabled}i.value.push($)}else{if(N.children==" ")return;Array.isArray(N.children)&&o(N.children)}})},c=(0,t.ref)(e.modelValue||0),s=B=>{let N=i.value.findIndex(R=>R.paneKey==B);i.value.length==0||N==-1||(c.value=N)},d=(0,t.computed)(()=>e.titleScroll&&e.direction==="vertical"),h=(0,t.ref)(),u=(0,t.ref)([]),p=B=>{const N=h.value,R=u.value;if(!N||!R||!R[c.value])return;const U=R[c.value];let $=0;e.direction==="vertical"?$=U.offsetTop-N.offsetTop+10-(N.offsetHeight-U.offsetHeight)/2:$=U.offsetLeft-(N.offsetWidth-U.offsetWidth)/2,y(N,$,B?0:.3,e.direction)},y=(B,N,R,U)=>{let $=0;const x=U==="horizontal"?B.scrollLeft:B.scrollTop,M=R===0?1:Math.round(R*1e3/16);function O(){U==="horizontal"?B.scrollLeft+=(N-x)/M:B.scrollTop+=(N-x)/M,++$<M&&Ue(O)}O()},C=(B=a.default?.())=>{i.value=[],B=B?.filter(N=>typeof N.children!="string"),B&&B.length&&o(B),s(e.modelValue),(0,t.nextTick)(()=>{p()})},k=B=>{r=B.fixed};(0,t.watch)(()=>a.default?.(),B=>{C(B)});const v=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;(0,t.watch)(()=>e.modelValue,B=>{if(s(B),p(),r){let N=qe(l.value).top+v(),R=Math.ceil(N-e.top);window.scrollTo({top:R,behavior:"smooth"})}}),(0,t.onMounted)(C),(0,t.onActivated)(C);const w={isBegin:()=>c.value==0,isEnd:()=>c.value==i.value.length-1,next:()=>{c.value+=1,w.updateValue(i.value[c.value])},prev:()=>{c.value-=1,w.updateValue(i.value[c.value])},updateValue:B=>{n("update:modelValue",B.paneKey),n("change",B)},tabChange:(B,N)=>{n("click",B),!(B.disabled||c.value==N)&&(c.value=N,w.updateValue(B))},setTabItemRef:(B,N)=>{u.value[N]=B}},{tabsContentRef:f,touchState:m,touchMethods:S}=Yb(e,w),A=(0,t.computed)(()=>{let B=c.value*100;m.moving&&(B+=m.offset);let N={transform:e.direction=="horizontal"?`translate3d(-${B}%, 0, 0)`:`translate3d( 0,-${B}%, 0)`,transitionDuration:m.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(N={}),N}),g=(0,t.computed)(()=>({background:e.background})),b=(0,t.computed)(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),T=(0,t.computed)(()=>{if(!e.titleGutter)return{};const B=me(e.titleGutter);return e.direction==="vertical"?{marginTop:B,marginBottom:B}:{marginLeft:B,marginRight:B}}),E=(0,t.computed)(()=>a.fixedTitle);return{navRef:h,tabsContentRef:f,titles:i,contentStyle:A,tabsNavStyle:g,titleStyle:T,tabsActiveStyle:b,container:l,getScrollY:d,onStickyScroll:k,...w,...S,hasFixedTitle:E}}}),_b=["onClick"],Zb={key:0,class:"fox-tabs__titles-fixed-item"},Jb=["onClick"],ev={key:0,class:"fox-tabs__titles-fixed-item"};function tv(e,n,a,l,r,i){const o=(0,t.resolveComponent)("JoySmile"),c=(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)(c,{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)(o,{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,_b))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Zb,[(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)(o,{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,Jb))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",ev,[(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 ao=ie(Gb,[["render",tv]]),{create:nv}=ee("tab-pane"),lv=nv({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=(0,t.inject)("tabsOpiton"),l=(0,t.computed)(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:l}}});function av(e,n,a,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 oo=ie(lv,[["render",av]]),{componentName:Hi,create:ov}=ee("indicator"),rv=ov({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:a}=(0,t.toRefs)(e);return{classes:(0,t.computed)(()=>{const l=Hi;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Hi,padZero:rt}}});function iv(e,n,a,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,o=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:o},[o===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(o)||o),3)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var ro=ie(rv,[["render",iv]]),{componentName:sv,create:cv}=ee("side-navbar"),uv=cv({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=(0,t.ref)(null),a=(0,t.reactive)({count:1,observer:null}),l=(0,t.computed)(()=>({[sv]:!0})),r=(o,c=1)=>{for(let s=0;s<o.length;s++){let d=o[s];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*c+"px",d.className.includes("fox-side-navbar-item")||r(Array.from(d.children[1].children),++a.count))}a.count--},i=()=>{let o=n.value.childNodes;o.length&&(o=Array.from(o).filter(c=>c.nodeType!==3).map(c=>c),r(o))};return(0,t.onMounted)(()=>{i(),a.observer=new MutationObserver(function(){a.count=1,i()}),a.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(a),list:n,classes:l}}}),dv={class:"fox-side-navbar__content"},fv={class:"fox-side-navbar__content__list",ref:"list"};function mv(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",dv,[(0,t.createElementVNode)("view",fv,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var io=ie(uv,[["render",mv]]),{componentName:pv,create:hv}=ee("side-navbar-item"),gv=hv({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[pv]:!0})),handleClick:()=>{n.emit("click")}})}),yv=["ikey"],bv={class:"fox-side-navbar-item__title"};function vv(e,n,a,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)((...o)=>e.handleClick&&e.handleClick(...o),["stop"])),ikey:e.ikey},[(0,t.createElementVNode)("span",bv,(0,t.toDisplayString)(e.title),1)],10,yv)}var so=ie(gv,[["render",vv]]),{componentName:Sv,create:kv}=ee("sub-side-navbar"),wv=kv({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:oe.ArrowDown2,ArrowUp2:oe.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=(0,t.reactive)({direction:""}),l=(0,t.computed)(()=>({[Sv]:!0})),r=(0,t.computed)(()=>({height:a.direction?"0px":"auto"})),i=()=>{n.emit("title-click"),a.direction=a.direction?"":"up"};return(0,t.onMounted)(()=>{a.direction=e.open?"":"up"}),{...(0,t.toRefs)(a),classes:l,style:r,handleClick:i}}}),Cv=["ikey"],Nv={class:"fox-sub-side-navbar__title__text"},Av={class:"fox-sub-side-navbar__title__icon"};function Bv(e,n,a,l,r,i){const o=(0,t.resolveComponent)("ArrowDown2"),c=(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",Nv,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",Av,[e.direction?((0,t.openBlock)(),(0,t.createBlock)(c,{key:1})):((0,t.openBlock)(),(0,t.createBlock)(o,{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,Cv)}var co=ie(wv,[["render",Bv]]),{componentName:Tv,create:Vv}=ee("range"),Ev=Vv({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const a=(0,t.ref)(0);let l,r;const i=(0,t.ref)(),o=(0,t.ref)(),c=nt(),s=(0,t.computed)(()=>{const{marks:$,max:x,min:M}=e;return Object.keys($).map(parseFloat).sort((O,z)=>O-z).filter(O=>{const z=de(O);return z>=de(M)&&z<=de(x)})}),d=(0,t.computed)(()=>Number(e.max)-Number(e.min)),h=(0,t.computed)(()=>{const $=Tv;return{[$]:!0,[`${$}-disabled`]:e.disabled,[`${$}-vertical`]:e.vertical,[`${$}-show-number`]:!e.hiddenRange}}),u=(0,t.computed)(()=>{const $="fox-range-container";return{[$]:!0,[`${$}-vertical`]:e.vertical}}),p=(0,t.computed)(()=>({background:e.inactiveColor})),y=(0,t.computed)(()=>({borderColor:e.buttonColor})),C=$=>!!e.range&&Array.isArray($),k=()=>{const{modelValue:$,min:x}=e;return C($)?`${($[1]-$[0])*100/d.value}%`:`${($-Number(x))*100/d.value}%`},v=()=>{const{modelValue:$,min:x}=e;return C($)?`${($[0]-Number(x))*100/d.value}%`:"0%"},w=(0,t.computed)(()=>e.vertical?{height:k(),top:v(),background:e.activeColor,transition:o.value?"none":void 0}:{width:k(),left:v(),background:e.activeColor,transition:o.value?"none":void 0}),f=$=>{const x="fox-range-mark",{modelValue:M,max:O,min:z}=e;let X=Number(z),P=Number(O);if(e.range){const[te,W]=M;X=te,P=W}else P=M;let _=$<=P&&$>=X;return{[`${x}-text`]:!0,[`${x}-text-active`]:_}},m=$=>{const{min:x,vertical:M}=e;let O={left:`${($-Number(x))/d.value*100}%`};return M&&(O={top:`${($-Number(x))/d.value*100}%`}),O},S=$=>{const{modelValue:x,max:M,min:O}=e;let z=Number(O),X=Number(M);if(e.range){const[P,_]=x;z=P,X=_}return{background:$<=X&&$>=z?e.activeColor:e.inactiveColor}},A=$=>{const{min:x,max:M,step:O}=e;return $=Math.max(+x,Math.min($,+M)),Math.round($/+O)*+O},g=($,x)=>JSON.stringify($)===JSON.stringify(x),b=$=>$[0]>$[1]?$.slice(0).reverse():$,T=($,x)=>{C($)?$=b($).map(A):$=A($),g($,e.modelValue)||n("update:modelValue",$),x&&!g($,l)&&n("change",$)},E=$=>{if(e.disabled)return;const{min:x,modelValue:M}=e,O=qe(i);let z=$.clientX-O.left,X=O.width;e.vertical&&(z=$.clientY-O.top,X=O.height);const P=Number(x)+z/X*d.value;if(C(M)){const[_,te]=M;P<=(_+te)/2?T([P,te],!0):T([_,P],!0)}else T(P,!0)},B=$=>{e.disabled||(c.start($),r=e.modelValue,C(r)?l=r.map(A):l=A(r),o.value="start")},N=$=>{if(e.disabled)return;o.value==="start"&&n("drag-start"),c.move($),o.value="draging";const x=qe(i);let M=c.deltaX.value,O=x.width,z=M/O*d.value;e.vertical&&(M=c.deltaY.value,O=x.height,z=M/O*d.value),C(l)?r[a.value]=l[a.value]+z:r=l+z,T(r),$.stopPropagation(),$.preventDefault()},R=()=>{e.disabled||(o.value==="draging"&&(T(r,!0),n("drag-end")),o.value="")},U=$=>pn(e.modelValue)&&typeof $=="number"?e.modelValue[$]:Number(e.modelValue);return{root:i,classes:h,wrapperStyle:p,buttonStyle:y,onClick:E,onTouchStart:B,onTouchMove:N,onTouchEnd:R,...(0,t.toRefs)(e),barStyle:w,curValue:U,buttonIndex:a,containerClasses:u,markClassName:f,marksStyle:m,marksList:s,tickStyle:S}}}),$v={key:0,class:"fox-range-min"},Dv={key:0,class:"fox-range-mark"},Iv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],qv={key:0,class:"number"},Pv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],xv={key:0,class:"number"},Mv={key:1,class:"fox-range-max"};function Rv(e,n,a,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",$v,(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)((...o)=>e.onClick&&e.onClick(...o),["stop"]))},[e.marksList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",Dv,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.marksList,o=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:o,class:(0,t.normalizeClass)(e.markClassName(o)),style:(0,t.normalizeStyle)(e.marksStyle(o))},[(0,t.createTextVNode)((0,t.toDisplayString)(o)+" ",1),(0,t.createElementVNode)("span",{class:"fox-range-tick",style:(0,t.normalizeStyle)(e.tickStyle(o))},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],o=>(0,t.createElementVNode)("view",{key:o,role:"slider",class:(0,t.normalizeClass)({"fox-range-button-wrapper-left":o==0,"fox-range-button-wrapper-right":o==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(o),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:(0,t.withModifiers)(c=>{typeof o=="number"&&(e.buttonIndex=o),e.onTouchStart(c)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=(0,t.withModifiers)((...c)=>e.onTouchMove&&e.onTouchMove(...c),["stop","prevent"])),onTouchend:n[1]||(n[1]=(0,t.withModifiers)((...c)=>e.onTouchEnd&&e.onTouchEnd(...c),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=(0,t.withModifiers)((...c)=>e.onTouchEnd&&e.onTouchEnd(...c),["stop","prevent"])),onClick:n[3]||(n[3]=c=>c.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",qv,(0,t.toDisplayString)(e.curValue(o)),1))],4))],42,Iv)),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)(o=>{e.onTouchStart(o)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=(0,t.withModifiers)((...o)=>e.onTouchMove&&e.onTouchMove(...o),["stop","prevent"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)((...o)=>e.onTouchEnd&&e.onTouchEnd(...o),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=(0,t.withModifiers)((...o)=>e.onTouchEnd&&e.onTouchEnd(...o),["stop","prevent"])),onClick:n[8]||(n[8]=o=>o.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",xv,(0,t.toDisplayString)(e.curValue()),1))],4))],40,Pv))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Mv,(0,t.toDisplayString)(+e.max),1))],2)}var Jt=ie(Ev,[["render",Rv]]),{create:zv,scope:Fv}=ee("short-password"),Lv=zv({components:{FoxPopup:Ce,Tips:oe.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:a}=(0,ge.useFoxI18n)(Fv),l=a(e,["title","desc","tips"]),r=(0,t.ref)(e.modelValue),i=(0,t.computed)(()=>d(Number(e.length))),o=(0,t.ref)(e.visible),c=u=>{u.stopPropagation(),n("focus")};(0,t.watch)(()=>e.visible,u=>{o.value=u}),(0,t.watch)(()=>e.modelValue,u=>{r.value=u,String(u).length===i.value&&n("complete",u)});const s=()=>{n("update:visible",!1),n("close")},d=u=>Math.min(Math.max(4,u),6);return{comLen:i,realInput:r,onTouchStart:c,range:d,close:s,onTips:()=>{n("tips")},show:o,...l}}}),Ov={class:"fox-short-password-title"},Kv={class:"fox-short-password-subtitle"},Uv={class:"fox-short-password-wrapper"},Hv={key:0,class:"fox-short-password__item-icon"},jv={class:"fox-short-password__message"},Wv={class:"fox-short-password--error"},Yv={key:0,class:"fox-short-password--forget"};function Xv(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Tips"),c=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",null,[(0,t.createVNode)(c,{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",Ov,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Kv,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",Uv,[(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",Hv)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",jv,[(0,t.createElementVNode)("view",Wv,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",Yv,[(0,t.createVNode)(o,{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 uo=ie(Lv,[["render",Xv]]),Qv=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},Gv=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",a=>{e.onProgress?.(a,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[a,l]of Object.entries(e.headers))n.setRequestHeader(a,l);e.onStart?.(e),e.beforeXhrUpload?e.beforeXhrUpload(n,e):n.send(e.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}},_v=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},ji=(e,{args:n=[],done:a,canceled:l})=>{if(e){const r=e.apply(null,n);dt(r)?r.then(i=>{i?a(i):l&&l()}).catch(()=>{}):r?a():l&&l()}else a()},{create:Zv}=ee("progress"),Jv=Zv({components:{Checked:oe.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!(0,t.useSlots)().default,a=(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}),o=(0,t.computed)(()=>({width:i.value+"%",background:e.strokeColor||""})),c=(0,t.computed)(()=>({color:e.textColor||""}));return(0,t.onMounted)(()=>{}),{height:a,percentage:i,bgStyle:o,textStyle:c,progressOuter:l,insideText:r,slotDefault:n}}}),eS={class:"fox-progress"},tS={key:0,class:"fox-progress-text"};function nS(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",eS,[(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",tS,[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)(o,{width:"15px",height:"15px",color:"#439422"})]):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)])}var en=ie(Jv,[["render",nS]]),{componentName:lS,create:aS,scope:oS}=ee("uploader"),rS=aS({components:{[en.name]:en,Photograph:oe.Photograph,Failure:oe.Failure,Loading:oe.Loading,Del:oe.Del,Link:oe.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=(0,ge.useFoxI18n)(oS),l=(0,t.reactive)(e.fileList);let r=[];const i=(0,t.computed)(()=>({[lS]:!0})),o=()=>{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)},c=f=>{f.value=""},s=f=>{n("file-item-click",{fileItem:f})},d=(f,m)=>{const S=new Qv;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=g=>{f.status="ready",f.message=a("readyUpload"),h(m),n("start",g)},S.onProgress=(g,b)=>{f.status="uploading",f.message=a("uploading"),f.percentage=(g.loaded/g.total*100).toFixed(0),n("progress",{event:g,option:b,percentage:f.percentage})},S.onSuccess=(g,b)=>{f.status="success",f.message=a("success"),n("success",{responseText:g,option:b,fileItem:f}),n("update:fileList",l)},S.onFailure=(g,b)=>{f.status="error",f.message=a("error"),n("failure",{responseText:g,option:b,fileItem:f})};let A=new Gv(S);e.autoUpload?A.upload():r.push(new Promise((g,b)=>{g(A)}))},h=(f=-1)=>{f>-1?r.splice(f,1):(r=[],l.splice(0,l.length))},u=()=>{Promise.all(r).then(f=>{f.forEach(m=>m.upload())})},p=f=>{f.forEach((m,S)=>{const A=new FormData;for(const[b,T]of Object.entries(e.data))A.append(b,T);A.append(e.name,m);const g=(0,t.reactive)(new _v);if(g.name=m.name,g.status="ready",g.type=m.type,g.formData=A,g.message=a("waitingUpload"),d(g,S),e.isPreview&&m.type.includes("image")){const b=new FileReader;b.onload=T=>{g.url=T.target.result,l.push(g)},b.readAsDataURL(m)}else l.push(g)})},y=f=>{const m=e.maximum*1,S=e.maximize*1,A=new Array;f=f.filter(b=>b.size>S?(A.push(b),!1):!0),A.length&&n("oversize",A);let g=f.length+l.length;return g>m&&f.splice(f.length-(g-m)),f},C=(f,m)=>{l.splice(m,1),n("delete",{file:f,fileList:l,index:m})},k=(f,m)=>{h(m),ji(e.beforeDelete,{args:[f,l],done:()=>C(f,m)})},v=f=>{if(e.disabled)return;const m=f.target;let{files:S}=m;e.beforeUpload?e.beforeUpload(S).then(A=>w(A)):w(S),n("change",{fileList:l,event:f}),e.clearInput&&c(m)},w=f=>{p(y(new Array().slice.call(f)))};return{onChange:v,onDelete:k,fileList:l,classes:i,fileItemClick:s,clearUploadQueue:h,submit:u,renderInput:o}}}),iS={key:0,class:"fox-uploader__slot"},sS={key:0,class:"fox-uploader__preview-img"},cS={key:0,class:"fox-uploader__preview__progress"},uS={class:"fox-uploader__preview__progress__msg"},dS=["onClick"],fS=["onClick","src"],mS={key:3,class:"fox-uploader__preview-img__file"},pS=["onClick"],hS={class:"file__name_tips"},gS={class:"tips"},yS={key:1,class:"fox-uploader__preview-list"},bS=["onClick"],vS={class:"file__name_tips"};function SS(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Failure"),c=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Link"),d=(0,t.resolveComponent)("Del"),h=(0,t.resolveComponent)("fox-progress"),u=(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",iS,[(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,y)=>((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",sS,[p.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",cS,[p.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[p.status=="error"?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,color:"#fff"})):((0,t.openBlock)(),(0,t.createBlock)(c,{key:1,name:"loading",color:"#fff"}))],64)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",uS,(0,t.toDisplayString)(p.message),1)])):(0,t.createCommentVNode)("",!0),e.isDeletable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"close",onClick:C=>e.onDelete(p,y)},[(0,t.renderSlot)(e.$slots,"delete-icon",{},()=>[(0,t.createVNode)(o)])],8,dS)):(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:C=>e.fileItemClick(p),src:p.url},null,8,fS)):((0,t.openBlock)(),(0,t.createElementBlock)("view",mS,[(0,t.createElementVNode)("view",{onClick:C=>e.fileItemClick(p),class:"fox-uploader__preview-img__file__name"},[(0,t.createElementVNode)("view",hS,(0,t.toDisplayString)(p.name),1)],8,pS)])),(0,t.createElementVNode)("view",gS,(0,t.toDisplayString)(p.name),1)])):e.listType=="list"?((0,t.openBlock)(),(0,t.createElementBlock)("view",yS,[(0,t.createElementVNode)("view",{onClick:C=>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",vS,(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:C=>e.onDelete(p,y)},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],10,bS),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)(u,{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 fo=ie(rS,[["render",SS]]),kS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6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VRYR+WY33HTMBzHvz/J72QD8tyzhJiAMAHdgDBBywQ0E5BuECYAJqCZAGPl+pxMQPoeSZwUy6ck7sUlBtziJ59P/urj33+ZlFIDa8wHAOcAhujftQYwY5xPSOb5FEQX/WPcI3LumqQQPwEMeg8LrD2sq0DnpdajvkFLIW4AvPJcjx/WJ50x5oX/Gs75qiiKpb9XSg2NMc+r5z+KovDBD3V2pgznz/y91noevSOECBbhxtwVt7dFpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:CS,scope:NS}=ee("number-keyboard"),AS=CS({components:{FoxPopup:Ce},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:a}=(0,ge.useFoxI18n)(NS),l=a(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),o=(0,t.ref)(e.visible),c=(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 u=(0,t.computed)(()=>e.type=="rightColumn"||e.title!=""?h():s()),p=()=>{e.visible&&n("blur")},y=f=>{const m=c.value;m&&!m.contains(f.target)&&p()};(0,t.watch)(()=>e.visible,f=>{o.value=f,f?window.addEventListener("touchstart",y,!1):window.removeEventListener("touchstart",y,!1)});function C(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"&&w(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function k(f){f.stopPropagation()}function v(f){f.preventDefault(),i.value=void 0}function w(){n("update:visible",!1),n("close")}return{...l,allPopClass:r,delImg:kS,lockImg:wS,clickKeyIndex:i,defaultKey:s,closeBoard:w,onTouchEnd:v,onTouchMove:k,onTouchstart:C,keysList:u,genCustomKeys:h,getBasicKeys:d,root:c,show:o}}}),BS={ref:"root"},TS={class:"fox-number-keyboard"},VS={key:0,class:"fox-number-keyboard__header"},ES={class:"fox-number-keyboard__title"},$S={class:"fox-number-keyboard__body"},DS={class:"fox-number-keyboard__keys"},IS=["onTouchstart"],qS=["src"],PS=["src"],xS={key:0,class:"fox-number-keyboard__sidebar"},MS={class:"fox-key__wrapper"},RS=["src"];function zS(e,n,a,l,r,i){const o=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",BS,[(0,t.createVNode)(o,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=c=>e.show=c),position:"bottom",popClass:e.allPopClass,overlay:!1,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",TS,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",VS,[(0,t.createElementVNode)("h3",ES,(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]=c=>e.closeBoard())},(0,t.toDisplayString)(e.confirmText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",$S,[(0,t.createElementVNode)("div",DS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.keysList,c=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:"key"+c.id,class:(0,t.normalizeClass)(["fox-key__wrapper",{"fox-key__wrapper--wider":c.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":c.id==e.clickKeyIndex},{"fox-key--lock":c.type=="lock"},{"fox-key--delete":c.type=="delete"}]),onTouchstart:s=>e.onTouchstart(c,s),onTouchmove:n[1]||(n[1]=s=>e.onTouchMove(s)),onTouchend:n[2]||(n[2]=s=>e.onTouchEnd(s))},[c.type=="number"||c.type=="custom"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(c.id),1)],64)):(0,t.createCommentVNode)("",!0),c.type=="lock"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:1,src:e.lockImg},null,8,qS)):(0,t.createCommentVNode)("",!0),c.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,PS)):(0,t.createCommentVNode)("",!0)],42,IS)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",xS,[(0,t.createElementVNode)("div",MS,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=c=>e.onTouchstart({id:"delete",type:"delete"},c)),onTouchmove:n[4]||(n[4]=c=>e.onTouchMove(c)),onTouchend:n[5]||(n[5]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[(0,t.createElementVNode)("img",{src:e.delImg},null,8,RS)],34)]),(0,t.createElementVNode)("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=c=>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 mo=ie(AS,[["render",zS]]),{componentName:FS,create:LS}=ee("swipe"),OS=LS({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:a}){const l=(0,t.computed)(()=>({[FS]:!0})),r=m=>m.value?.clientWidth||0,i=(0,t.ref)(),o=(0,t.computed)(()=>r(i)),c=(0,t.ref)(),s=(0,t.computed)(()=>r(c));let d=!1,h="",u="";const p=(0,t.reactive)({offset:0,moving:!1}),y=(m="")=>{d=!0,m&&(p.offset=m==="left"?-s.value:o.value),n("open",{name:e.name,position:h||m})},C=()=>{p.offset=0,d=!1,n("close",{name:e.name,position:h})},k=(0,t.computed)(()=>({transform:`translate3d(${p.offset}px, 0, 0)`})),v=m=>{h=m>0?"right":"left";let S=m;switch(h){case"left":d&&u===h?S=-s.value:S=Math.abs(m)>s.value?-s.value:m;break;case"right":d&&u===h?S=o.value:S=Math.abs(m)>o.value?o.value:m;break}p.offset=S},w=nt(),f={onTouchStart(m){e.disabled||w.start(m)},onTouchMove(m){e.disabled||(w.move(m),w.isHorizontal()&&(p.moving=!0,v(w.deltaX.value),e.touchMovePreventDefault&&m.preventDefault(),e.touchMoveStopPropagation&&m.stopPropagation()))},onTouchEnd(){if(p.moving)switch(p.moving=!1,u=h,h){case"left":Math.abs(p.offset)<=s.value/2?C():(p.offset=-s.value,y());break;case"right":Math.abs(p.offset)<=o.value/2?C():(p.offset=o.value,y());break}}};return a({open:y,close:C}),{classes:l,touchStyle:k,...f,leftRef:i,rightRef:c,open:y,close:C}}}),KS={class:"fox-swipe__left",ref:"leftRef"},US={class:"fox-swipe__content"},HS={class:"fox-swipe__right",ref:"rightRef"};function jS(e,n,a,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]=(...o)=>e.onTouchStart&&e.onTouchStart(...o)),onTouchmove:n[1]||(n[1]=(...o)=>e.onTouchMove&&e.onTouchMove(...o)),onTouchend:n[2]||(n[2]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o)),onTouchcancel:n[3]||(n[3]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o))},[(0,t.createElementVNode)("view",KS,[(0,t.renderSlot)(e.$slots,"left")],512),(0,t.createElementVNode)("view",US,[(0,t.renderSlot)(e.$slots,"default")]),(0,t.createElementVNode)("view",HS,[(0,t.renderSlot)(e.$slots,"right")],512)],38)}var po=ie(OS,[["render",jS]]),{componentName:WS,create:YS}=ee("action-sheet"),XS=YS({components:{Popup:Ce,Loading:oe.Loading},props:{...lt,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 a=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[WS]:!0}));return{slotDefault:a,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}}}),QS={key:0,class:"fox-action-sheet__title"},GS={key:1},_S={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},ZS={key:1,class:"fox-action-sheet__menu"},JS=["onClick"],e1={key:1},t1={class:"fox-action-sheet__subdesc"};function n1(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Loading"),c=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createBlock)(c,{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",QS,(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",GS,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",_S,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",ZS,[((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)(o,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",e1,(0,t.toDisplayString)(s[e.optionTag]),1)),(0,t.createElementVNode)("view",t1,(0,t.toDisplayString)(s[e.optionSubTag]),1)],14,JS))),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 ho=ie(XS,[["render",n1]]),{componentName:l1,create:a1}=ee("backtop"),o1=a1({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:a}){const l=(0,t.reactive)({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),r=(0,t.computed)(()=>({[l1]:!0,show:l.backTop})),i=(0,t.computed)(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function o(){l.scrollEl instanceof Window?l.scrollTop=l.scrollEl.pageYOffset:l.scrollTop=l.scrollEl.scrollTop,l.backTop=l.scrollTop>=e.distance}function c(C=0){l.scrollEl instanceof Window?window.scrollTo(0,C):l.scrollEl.scrollTop=C}function s(){let C=Ye(function k(){var v=e.duration-Math.max(0,l.startTime-+new Date+e.duration),w=v*-l.scrollTop/e.duration+l.scrollTop;c(w),C=Ye(k),(v==e.duration||w==0)&&_o(C)})}function d(){l.scrollEl.addEventListener("scroll",o,!1),l.scrollEl.addEventListener("resize",o,!1)}function h(){l.scrollEl.removeEventListener("scroll",o,!1),l.scrollEl.removeEventListener("resize",o,!1)}function u(C){l.startTime=+new Date,e.isAnimation&&e.duration>0?s():c(),n("click",C)}function p(){y.value?l.scrollEl=y.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 y=(0,t.computed)(()=>{if(typeof a.content=="function"){const C=a.content();return Array.isArray(C)?C[0]:C}return null});return()=>{const C=[];y.value&&C.push(y.value);const k=[];if(typeof a.default=="function")k.push(a.default());else{const w=(0,t.h)(oe.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});k.push(w)}const v=(0,t.h)("div",{class:r.value,style:i.value,onClick:u},k);return C.push(v),C}}}),go=o1,{componentName:r1,create:i1}=ee("drag"),s1=i1({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const a=(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)(()=>({[r1]:!0}));function i(){const u=document.documentElement;l.elWidth=a.value.offsetWidth,l.elHeight=a.value.offsetHeight,l.screenWidth=u.clientWidth,l.screenHeight=u.clientHeight}function o(u){l.boundary.left?+u.style.left.split("px")[0]>l.boundary.left?(u.style.left=+u.style.left.split("px")[0]-10+"px",Ue(()=>{o(u)})):u.style.left=`${l.boundary.left}px`:+u.style.left.split("px")[0]>10?(u.style.left=+u.style.left.split("px")[0]-10+"px",Ue(()=>{o(u)})):u.style.left="0px"}function c(u,p){p-parseInt(u.style.left.split("px")[0])>10?(u.style.left=parseInt(u.style.left.split("px")[0])+10+"px",Ue(()=>{c(u,p)})):u.style.left=p+"px"}function s(u){u.preventDefault();const p=u.currentTarget;if(u.targetTouches.length===1){const y=u.targetTouches[0];l.nx=y.clientX-l.position.x,l.ny=y.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const C=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>C?l.xPum=C:l.xPum<=l.boundary.left&&(l.xPum=l.boundary.left),l.yPum<l.boundary.top?l.yPum=l.boundary.top:l.yPum>l.screenHeight-l.elHeight-l.boundary.bottom&&(l.yPum=l.screenHeight-l.elHeight-l.boundary.bottom),e.direction!="y"&&(p.style.left=l.xPum+"px"),e.direction!="x"&&(p.style.top=l.yPum+"px")}}function d(u){const p=u.currentTarget;let y=u.changedTouches[0].clientX;const C=l.screenWidth-l.elWidth-l.boundary.right;y>C?y=C:y<l.boundary.left?y=l.boundary.left:y=y<l.screenWidth/2?l.boundary.left:C,e.direction!="y"&&e.attract&&(y<l.screenWidth/2?Ue(()=>{o(p)}):Ue(()=>{c(p,C)})),e.direction!="x"&&(p.style.top=l.yPum+"px")}function h(u){const p=u.currentTarget,y=u.touches[0],C=u.targetTouches[0];l.startTop=p.offsetTop,l.startLeft=p.offsetLeft,l.position.x=y.clientX,l.position.y=y.clientY,l.nx=C.clientX-l.position.x,l.ny=C.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return(0,t.onMounted)(()=>{i(),l.boundary=e.boundary}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1)}),(0,t.onDeactivated)(()=>{l.keepAlive=!0;const u=a;u.value.removeEventListener("touchstart",h),u.value.removeEventListener("touchmove",s),u.value.removeEventListener("touchend",d)}),{classes:r,myDrag:a,touchStart:h,touchMove:s,touchEnd:d}}});function c1(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=o=>e.touchStart(o)),onTouchmove:n[1]||(n[1]=o=>e.touchMove(o)),onTouchend:n[2]||(n[2]=o=>e.touchEnd(o))},[(0,t.renderSlot)(e.$slots,"default")],34)}var yo=ie(s1,[["render",c1]]),u1={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}},d1=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function f1(e,n,a,l,r){return{props:{...lt,...u1},setup(i,{attrs:o,slots:c,emit:s}){const{toLocaleRefs:d}=(0,ge.useFoxI18n)(n),h=d(i,["confirmText","cancelText"]),u=e,p=(0,t.ref)(i.visible);(0,t.watch)(()=>i.visible,g=>{p.value!==g&&(p.value=g,g&&s("opened"))});const y=g=>{p.value=g,s("update:visible",g),s("update",g)},C=g=>{if(s(g),!(g==="cancel"&&!i.cancelAutoClose))if(typeof i.beforeClose=="function"){const b=i.beforeClose(g);dt(b)?b.then(T=>{T&&(y(!1),s("closed",g))}):b===!0&&(y(!1),s("closed",g))}else y(!1),s("closed",g)},k=()=>{C("confirm")},v=()=>{C("cancel")},w=()=>{C("close")},f=(g,b)=>d1(g)?(b.src=g,(0,t.h)("img",b)):typeof g=="string"?(Array.isArray(b.class)?b.class.push(g):b.class&&typeof b.class=="object"?b[`${g}`]=!0:typeof b.class=="string"?b.class=`${b.class}, ${g}`:b.class=g,(0,t.h)(i.tag,b)):(0,t.h)(g,b),m=()=>{const g=[];if(c.header){const b=c.header();g.push(b)}else{if(i.title){const b=(0,t.h)("view",{class:`${u}__header-title`},[i.title]);g.push(b)}if(i.showClose){const b={class:[`${u}__header-close-icon`],onClick:w},T=f(i.closeIcon??r,b);g.push(T)}}return g.length===0?null:(0,t.h)("view",{class:[`${u}__header`]},g)},S=()=>{const g=[];if(c.default)g.push(c.default());else{const b={class:[`${u}__content`]};if(i.textAlign&&b.class.push(i.textAlign),typeof i.content=="string"){b.innerHTML=i.content;const T=(0,t.h)("view",b);g.push(T)}else if(typeof i.content=="function"){const T=(0,t.h)("view",b,[i.content()]);g.push(T)}else{const T=(0,t.h)("view",b,[i.content]);g.push(T)}}return g.length===0?null:(0,t.h)("view",{class:[`${u}__body`]},g)},A=()=>{if(!i.showFooter)return null;const g=[];if(c.footer)g.push(c.footer());else if(i.plain){if(i.showCancelButton){const b={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},onClick:v};i.cancelButtonClass&&b.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(b.style,i.cancleButtonStyle);const T=(0,t.h)("view",b,[i.cancelButtonText??h.cancelText.value]);g.push(T)}if(i.showConfirmButton){const b={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},onClick:k};i.confirmButtonClass&&b.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(b.style,i.confirmButtonStyle);const T=(0,t.h)("view",b,[i.confirmButtonText??h.confirmText.value]);g.push(T)}}else{if(i.showCancelButton){const b={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:v};i.cancelButtonClass&&b.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(b.style,i.cancleButtonStyle);const T=(0,t.h)(l,b,{default:()=>[i.cancelButtonText??h.cancelText.value]});g.push(T)}if(i.showConfirmButton){const b={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:k};i.confirmButtonClass&&b.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(b.style,i.confirmButtonStyle);const T=(0,t.h)(l,b,{default:()=>[i.confirmButtonText??h.confirmText.value]});g.push(T)}}return g.length===0?null:(0,t.h)("view",{class:[`${u}__footer`,`${u}__footer--${i.footerDirection}`]},g)};return()=>{const g=[],b=m();b&&g.push(b);const T=S();T&&g.push(T);const E=A();E&&g.push(E);const B=(0,t.h)("view",{class:{[`${u}`]:!0,[`${u}--plain`]:i.plain}},g),N=[`${u}__popup`];i.popClass&&N.push(i.popClass);const R={};return i.width&&(R.width=typeof i.width=="number"?`${i.width}px`:i.width),i.height&&(R.height=typeof i.height=="number"?`${i.height}px`:i.height),(0,t.h)(a,{...be(i,lt),popClass:N.join(" "),style:R,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:i.position,onClickOverlay:w,closeOnClickOverlay:i.closeOnClickOverlay},{default:()=>B})}}}}var{componentName:m1,create:p1,scope:h1}=ee("dialog"),g1=p1(f1(m1,h1,Ce,At,oe.Close)),Wi=g1,y1=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},b1=class{options=new y1;constructor(e){let n=Object.assign(this.options,e),a=document.body,l=n.teleport;l!="body"&&(typeof l=="string"?a=document.querySelector(l):a=n.teleport);const r=document.createElement("view"),i=`dialog-${n.id}`;r.id=i;const o=(0,t.createVNode)({setup(){return n.onUpdate=c=>{if(c===!1){const s=document.querySelector(`#${i}`);s&&s.parentNode?.removeChild(s)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(Wi,n)}});a.appendChild(r),(0,t.render)(o,r)}},tn=function(e){return new b1(e)};tn.install=e=>{e.use(Wi),e.config.globalProperties.$dialog=tn};var v1={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}},S1=(e,n,a)=>({props:{...v1},emits:["change","refresh","update:modelValue"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:o}=(0,ge.useFoxI18n)(n),c=o(l,["pullingText","loosingText","loadingText"]),s=Qn(),d=(0,t.ref)(),h=Di(d),u=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),p=(0,t.computed)(()=>({[e]:!0})),y=(0,t.computed)(()=>{switch(u.status){case"pulling":return i.pulling?"":c.pullingText.value;case"loosing":return i.loosing?"":c.loosingText.value;case"loading":return i.loading?"":c.loadingText.value;default:return""}}),C=(0,t.computed)(()=>({transitionDuration:`${l.duration}s`,transform:u.distance?`translate3d(0,${u.distance}px, 0)`:""})),k=(0,t.computed)(()=>{const b={};return l.headHeight!=50&&(b.height=me(l.headHeight)),b}),v=b=>{const T=+(l.pullDistance||l.headHeight);let E=b;return b>T&&(b<T*2?E=(b+T)/2:E=T+b/4),Math.round(E)},w=(b,T)=>{const E=+(l.pullDistance||l.headHeight);u.distance=b,T?u.status="loading":b===0?u.status="normal":b<E?u.status="pulling":u.status="loosing",r("change",{status:u.status,distance:b})},f=()=>u.status!=="loading"&&u.status!=="complete",m=()=>h.value==window?Ii()==0:h.value&&h.value.scrollTop==0,S=b=>{f()&&(m()?(s.start(b),u.isPullRefresh=!0,u.moving=!0):(u.distance=0,u.isPullRefresh=!1))},A=b=>{f()&&u.moving&&(s.move(b),s.isVertical()&&s.state.deltaY>0&&u.isPullRefresh&&(b.cancelable&&b.preventDefault(),w(v(s.state.deltaY))))},g=()=>{u.moving=!1,u.isPullRefresh&&f()&&s.state.deltaY&&(u.status==="loosing"?(w(+l.headHeight,!0),r("update:modelValue",!0),(0,t.nextTick)(()=>r("refresh"))):w(0)),setTimeout(()=>{s.reset()},0)};return(0,t.watch)(()=>l.modelValue,b=>{b?w(+l.headHeight,!0):w(0)}),()=>{const b=[];let T=null;u.status==="loading"?(T=i?.loading?.()??null,T||(T=(0,t.h)(a,{class:["fox-pull-refresh-container-topbox-icon"]}))):u.status==="pulling"?T=i?.pulling?.()??null:u.status==="loosing"&&(T=i?.loosing?.()??null),T&&b.push(T);const E=(0,t.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[y.value]);b.push(E);const B=(0,t.h)("div",{class:["fox-pull-refresh-container-topbox"],style:k.value},b),N=(0,t.h)("div",{class:"fox-pull-refresh-container",style:C.value},[B,i?.default?.()]),R={ref:d,class:p.value};return Xn()?Object.assign(R,{onTouchstart:S,onTouchmove:A,onTouchend:g}):Object.assign(R,{onMousedown:S,onMousemove:A,onMouseup:g}),(0,t.h)("div",R,[N])}}}),{componentName:k1,create:w1,scope:C1}=ee("pull-refresh"),N1=w1(S1(k1,C1,oe.Loading)),bo=N1,{create:A1}=ee("notify"),B1=A1({components:{[Ce.name]:Ce},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const a=()=>{e.onClick&&e.onClick()};let l=null;const r=()=>{l&&clearTimeout(l),l=null},i=()=>{n("update:visible",!1)},o=(0,t.ref)(!1),c=(0,t.watch)(()=>e.visible,d=>{o.value=e.visible;const h=e.duration;d&&h&&(l=setTimeout(()=>{i()},h))},{immediate:!0});return{onAfterLeave:()=>{r(),c&&c(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:o}}});function T1(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(o,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.isShowPopup=c),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]=(...c)=>e.clickCover&&e.clickCover(...c))},[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 vo=ie(B1,[["render",T1]]),So={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function},Bt=[],nn=[],Yi=e=>{if(e){const n=document.getElementById(e);nn=nn.filter(a=>a.id!==e),Bt=Bt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Bt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),nn=[],Bt=[]},V1=e=>{const n=document.getElementById(e.id);if(n){const a=nn.find(r=>r.id===e.id);a?e={...So,...a,...e}:e={...So,...e};const l=(0,t.createVNode)(vo,e);return(0,t.render)(l,n),l.component.data}},ln=e=>{e.unmount=Yi;let n;if(e.id){if(n=e.id,Bt.find(r=>r===e.id))return V1(e)}else n=new Date().getTime()+"";e={...So,...e},e.id=n,Bt.push(e.id),nn.push(e);const a=document.createElement("view");a.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(a)},e.duration)}),()=>(0,t.h)(vo,e)}});document.body.appendChild(a),(0,t.render)(l,a)},an=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},ko={text(e,n={}){return an(e),ln({...n,msg:e})},primary(e,n={}){return an(e),ln({...n,msg:e,type:"primary"})},success(e,n={}){return an(e),ln({...n,msg:e,type:"success"})},danger(e,n={}){return an(e),ln({...n,msg:e,type:"danger"})},warn(e,n={}){return an(e),ln({...n,msg:e,type:"warning"})},hide(){Yi()},install(e){e.use(vo)}},{create:E1}=ee("toast"),$1=E1({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const r=()=>{a&&(clearTimeout(a),a=null)},i=()=>{l.mounted=!1},o=()=>{r(),e.duration&&(a=setTimeout(()=>{i()},e.duration))},c=()=>{e.closeOnClickOverlay&&(i(),n("close"))};e.duration&&o(),(0,t.watch)(()=>e.duration,y=>{y&&o()});const s=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const y=ue(e.iconSize);return(0,t.h)(e.icon,{width:y,height:y,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]),u=(0,t.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:i,clickCover:c,renderIcon:d,hasIcon:s,toastBodyClass:h,toastIconWrapperClass:u,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),D1={key:1,class:"fox-toast-title"},I1=["innerHTML"];function q1(e,n,a,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]=(...o)=>e.clickCover&&e.clickCover(...o))},[(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",D1,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,I1)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var wo=ie($1,[["render",q1]]),Co={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},Tt=[],on=[],Xi=e=>{if(e){const n=document.getElementById(e);on=on.filter(a=>a.id!==e),Tt=Tt.filter(a=>a!==e),n&&((0,t.render)(null,n),document.body.removeChild(n))}else Tt.forEach(n=>{const a=document.getElementById(n);a&&((0,t.render)(null,a),document.body.removeChild(a))}),on=[],Tt=[]},P1=e=>{const n=document.getElementById(e.id);if(n){const a=on.find(r=>r.id===e.id);a?e={...Co,...a,...e}:e={...Co,...e};const l=(0,t.createVNode)(wo,e);return(0,t.render)(null,n),(0,t.render)(l,n),Vt}},rn=e=>{e.unmount=Xi;let n;if(e.id){if(n=e.id,Tt.find(l=>l===e.id))return P1(e)}else n=new Date().getTime()+"";e={...Co,...e},e.id=n,Tt.push(e.id),on.push(e);const a=document.createElement("div");return a.id=e.id,(0,t.render)((0,t.createVNode)(wo,e),a),document.body.appendChild(a),Vt},bl=e=>e?!0:(console.warn("[FoxUI Toast]: msg不能为空"),!1),Vt={text(e,n={}){if(bl(e))return rn({...n,type:"text",msg:e})},success(e,n={}){if(bl(e))return rn({icon:oe.Success,...n,msg:e,type:"success"})},fail(e,n={}){if(bl(e))return rn({icon:oe.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){if(bl(e))return rn({icon:oe.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return rn({icon:oe.Loading,...n,msg:e,type:"loading"})},hide(e){Xi(e)},install(e){e.use(wo),e.config.globalProperties.$toast=Vt}},{componentName:K2,create:x1}=ee("audio"),M1=x1({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:oe.Service,[Jt.name]:Jt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:a}){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 v=0;v<k.length;v++)document.addEventListener(k[v],()=>{document.hidden?l.value.pause():r.playing&&setTimeout(()=>{l.value.play()},200)})}catch(v){v.message}});const i=k=>{const v=l.value;e.autoplay&&v&&v.paused&&v.play(),r.second=v.duration,r.duration=C(v.duration),n("can-play",k)},o=k=>{r.currentTime=parseInt(k.target.currentTime)},c=()=>{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=C(k),r.percent=k/r.second*100},u=()=>{r.playing=!1,n("ended")},p=k=>{const v=l.value;v.currentTime=r.second*k/100,n("changeProgress",v.currentTime)},y=()=>{r.hanMuted=!r.hanMuted,n("mute",r.hanMuted)},C=k=>{if(!k)return"00:00:00";let v=parseInt(k),w=Math.floor(v/3600),f=Math.floor((v-w*3600)/60),m=v-w*3600-f*60,S="";return S+=("0"+w.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:y,forward:d,fastBack:c,changeStatus:s}),{...(0,t.toRefs)(e),...(0,t.toRefs)(r),audioRef:l,fastBack:c,forward:d,changeStatus:s,progressChange:p,audioEnd:u,onTimeupdate:o,handleMute:y,onCanplay:i,slots:a}}}),R1={class:"fox-audio"},z1={key:0,class:"fox-audio__progress"},F1={class:"fox-audio__time"},L1={class:"fox-audio__bar"},O1={class:"fox-audio__time"},K1={key:1,class:"fox-audio__icon"},U1=["controls","src","preload","autoplay","loop","muted"];function H1(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-range"),c=(0,t.resolveComponent)("Service");return(0,t.openBlock)(),(0,t.createElementBlock)("div",R1,[e.type=="progress"?((0,t.openBlock)(),(0,t.createElementBlock)("div",z1,[(0,t.createElementVNode)("div",F1,(0,t.toDisplayString)(e.currentDuration),1),(0,t.createElementVNode)("div",L1,[(0,t.createVNode)(o,{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",O1,(0,t.toDisplayString)(e.duration),1)])):(0,t.createCommentVNode)("",!0),e.type=="icon"?((0,t.openBlock)(),(0,t.createElementBlock)("div",K1,[(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)(c,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):((0,t.openBlock)(),(0,t.createBlock)(c,{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,U1)])}var No=ie(M1,[["render",H1]]),{componentName:U2,create:j1,scope:W1}=ee("audio-operate"),Y1=j1({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=(0,ge.useFoxI18n)(W1),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:a}}}),X1={class:"fox-audio-operate"};function Q1(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",X1,[e.type=="back"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...c)=>e.fastBack&&e.fastBack(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(o,{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]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(o,{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]=(...c)=>e.forward&&e.forward(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(o,{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]=(...c)=>e.handleMute&&e.handleMute(...c))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(o,{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 Ao=ie(Y1,[["render",Q1]]),{componentName:G1,create:_1}=ee("avatar"),Z1=_1({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:a,bgColor:l,color:r}=(0,t.toRefs)(e),i=["large","normal","small"],o=(0,t.inject)("avatarGroup",null),c=(0,t.ref)(null),s=(0,t.reactive)({lightTheme:!1}),d=(0,t.reactive)({index:1,showMax:!1,maxIndex:0});(0,t.onMounted)(()=>{const C=o?.avatarGroupRef?.value?.children;C&&y(C)});const h=(0,t.computed)(()=>({[G1]:!0,[`fox-avatar-${n.value||o?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||o?.props?.shape||"normal"}`]:!0})),u=(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&&(o?.props?.span?`${o?.props?.span}px`:""),zIndex:o?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),p=(0,t.computed)(()=>({backgroundColor:`${o?.props?.maxBgColor}`,color:`${o?.props?.maxColor}`})),y=C=>{d.maxIndex=C.length;for(let k=0;k<C.length;k++)C[k]&&C[k].classList&&C[k].classList[0]=="fox-avatar"&&C[k].setAttribute("data-index",k+1);d.index=c?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=o?.props?.maxCount&&(d.showMax=!0)};return{classes:h,styles:u,maxStyles:p,avatarGroup:o,visible:s,avatarRef:c,...(0,t.toRefs)(d)}}});function J1(e,n,a,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 sn=ie(Z1,[["render",J1]]),{componentName:ek,create:tk}=ee("avatar-group"),nk=tk({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:a}){const{size:l}=(0,t.toRefs)(e),r=(0,t.ref)(null),i=(0,t.ref)(0),o=(0,t.computed)(()=>({[ek]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:r,index:i}),{classes:o,avatarGroupRef:r}}});function lk(e,n,a,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 Bo=ie(nk,[["render",lk]]),Et=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function ak(e,n,a){let l=0,r=e.length-1,i=null;for(;l<=r;){i=Math.floor((l+r)/2);const o=e[i],c=a(o,n);if(c===Et.eq)return i;c===Et.lt?l=i+1:c===Et.gt&&(r=i-1)}return i}var{componentName:ok,create:rk}=ee("list"),Qi=document.documentElement.clientHeight||document.body.clientHeight||667,ik=rk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Qi},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const a=(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}),o=(0,t.computed)(()=>Math.min(e.containerHeight,Qi)),c=(0,t.computed)(()=>Math.ceil(o.value/e.height)),s=(0,t.computed)(()=>Math.min(i.originStartIndex+c.value+e.bufferSize,i.list.length)),d=(0,t.computed)(()=>({[ok]:!0})),h=(0,t.computed)(()=>i.list.slice(i.start,s.value)),u=()=>{if(r.value)return`translate3d(0, ${i.start>=1?i.cachePositions[i.start-1].bottom:0}px, 0)`},p=()=>{i.cachePositions=[];for(let w=0;w<i.list.length;++w)i.cachePositions[w]={index:w,height:e.height,top:w*e.height,bottom:(w+1)*(e.height+e.margin),dValue:0}},y=()=>{let w=r.value.childNodes;w=Array.from(w).filter(g=>g.nodeType===1);const f=w[0];w.forEach((g,b)=>{if(!g)return;const{height:T}=qe(g),E=i.cachePositions[b+i.start].height-T;E&&(i.cachePositions[b+i.start].bottom-=E,i.cachePositions[b+i.start].height=T,i.cachePositions[b+i.start].dValue=E)});let m=0;f&&(m=i.start);const S=i.cachePositions.length;let A=i.cachePositions[m].dValue;i.cachePositions[m].dValue=0;for(let g=m+1;g<S;++g){const b=i.cachePositions[g];i.cachePositions[g].top=i.cachePositions[g-1].bottom,i.cachePositions[g].bottom=i.cachePositions[g].bottom-A,b.dValue!==0&&(A+=b.dValue,b.dValue=0)}i.phantomHeight=i.cachePositions[S-1].bottom},C=(w=0)=>{let f=ak(i.cachePositions,w,(m,S)=>{const A=m.bottom;return A===S?Et.eq:A<S?Et.lt:Et.gt});return i.cachePositions[f].bottom<w&&(f+=1),f},k=()=>{i.originStartIndex=0,i.start=0,i.scrollTop=0,a.value.scrollTop=0,p(),i.phantomHeight=e.height*i.list.length},v=()=>{const w=a.value?.scrollTop,{originStartIndex:f}=i,m=C(w);m!==f&&(i.originStartIndex=m,i.start=Math.max(i.originStartIndex-e.bufferSize,0),s.value>=i.list.length-1&&n("scroll-bottom")),n(w>i.scrollTop?"scroll-up":"scroll-down",w),i.scrollTop=w};return(0,t.watch)(()=>e.listData,w=>{if(i.list=w.slice(),i.list.length===w.length)p(),y();else{k();return}}),(0,t.watch)(()=>i.start,()=>{r.value&&i.list.length>0&&y()}),{...(0,t.toRefs)(i),list:a,phantom:l,actualContent:r,getTransform:u,visibleData:h,classes:d,getContainerHeight:o,handleScrollEvent:v}}});function sk(e,n,a,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]=(...o)=>e.handleScrollEvent&&e.handleScrollEvent(...o)),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,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-list-item",key:o},[(0,t.renderSlot)(e.$slots,"default",{item:o,index:c+e.start})]))),128))],4)],38)}var To=ie(ik,[["render",sk]]),{componentName:ck,create:uk}=ee("circleprogress"),dk=uk({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const a=!!(0,t.useSlots)().default,l=Math.random().toString(36).slice(-8),r=(0,t.computed)(()=>({[ck]:!0})),i=(0,t.computed)(()=>{const c=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${c} 0 90 a 45 45 0 1, ${c} 0 -90`}),o=(0,t.computed)(()=>$e(e.color)?`url(#${l})`:e.color);return{classes:r,hoverStyle:(0,t.computed)(()=>{let c=283,s=c*Number(e.progress)/100;return{stroke:$e(e.color)?`url(#${l})`:e.color,strokeDasharray:`${s}px ${c}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:i,hoverColor:o,stop:(0,t.computed)(()=>{if(!$e(e.color))return;let c=e.color;const s=Object.keys(c).sort((h,u)=>parseFloat(h)-parseFloat(u));let d=[];return s.map((h,u)=>{let p={key:"",value:""};p.key=h,p.value=c[h],d.push(p)}),d}),slotDefault:a,refRandomId:l}}}),fk={viewBox:"0 0 100 100"},mk=["id"],pk=["offset","stop-color"],hk=["d","stroke-width"],gk=["d","stroke","stroke-linecap","stroke-width"],yk={class:"fox-circleprogress-text"},bk={key:0};function vk(e,n,a,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",fk,[(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,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("stop",{key:c,offset:o.key,"stop-color":o.value},null,8,pk))),128))],8,mk)]),(0,t.createElementVNode)("path",{class:"fox-circleprogress-path",style:(0,t.normalizeStyle)(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,hk),(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,gk)])),(0,t.createElementVNode)("div",yk,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",bk,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var Vo=ie(dk,[["render",vk]]),{componentName:Sk,create:kk}=ee("noticebar"),wk=kk({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,(0,t.h)(e.item)},Notice:oe.Notice,CircleClose:oe.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){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}),o=(0,t.computed)(()=>({[Sk]:!0})),c=(0,t.computed)(()=>i.isCanScroll==null?e.wrapable:!i.isCanScroll&&!e.wrapable),s=(0,t.computed)(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":c.value,[i.animationClass]:!0})),d=(0,t.computed)(()=>{let b={};return e.color&&(b.color=e.color),e.background&&(b.background=e.background),e.direction=="vertical"&&(b.height=`${e.height}px`),b}),h=(0,t.computed)(()=>({animationDelay:(i.firstRound?e.delay:0)+"s",animationDuration:i.duration+"s",transform:`translateX(${i.firstRound?0:i.wrapWidth+"px"})`})),u=(0,t.computed)(()=>{let b={};if(e.complexAm)b={transform:`translateY(${i.distance}px)`};else if(i.animate){let T=~~(e.height/e.speed/4);b={transition:`all ${T==0?~~(e.height/e.speed):T}s`,"margin-top":`-${e.height}px`}}return b});(0,t.watch)(()=>e.text,b=>{p(b)}),(0,t.watch)(()=>e.list,b=>{i.scrollList=[...b]});const p=b=>{i.showNoticebar!=!1&&setTimeout(()=>{if(!l.value||!r.value)return;const T=l.value.getBoundingClientRect().width,E=r.value.getBoundingClientRect().width;i.isCanScroll=e.scrollable==null?E>T:e.scrollable,i.isCanScroll?(i.wrapWidth=T,i.offsetWidth=E,i.duration=E/e.speed,i.animationClass="play"):i.animationClass=""},0)},y=b=>{n("click",b)},C=b=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",b)},k=b=>{i.firstRound=!1,n("across-end",b),setTimeout(()=>{i.duration=(i.offsetWidth+i.wrapWidth)/e.speed,i.animationClass="play-infinite"},0)},v=()=>{w(),i.timer=setInterval(w,~~(e.height/e.speed/4*1e3)+e.standTime)},w=()=>{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 b=100;for(let T=0;T<b;T++)m(T,!(T<b-1))},e.standTime+100*e.speed)},m=(b,T)=>{setTimeout(()=>{i.distance-=e.height/100,T&&(i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.distance=0)},b*e.speed)},S=b=>{n("click",b)},A=()=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",i.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(a.default?g(a.default()):i.scrollList=[...e.list],setTimeout(()=>{e.complexAm?f():v()},e.standTime)):p(e.text)}),(0,t.watch)(()=>a.default?a.default():[],b=>{e.direction==="vertical"&&a.default&&(i.showNotica=!1,setTimeout(()=>{i.showNotica=!0}),g(b))});const g=b=>{b&&b.length>0&&(i.scrollList=b[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:c,classes:o,barStyle:d,contentStyle:h,horseLampStyle:u,wrap:l,content:r,handleClick:y,onClickIcon:C,onAnimationEnd:k,go:S,handleClickIcon:A,slots:a,toPxString:me,wrapContentClass:s}}}),Ck={key:0,class:"fox-noticebar__page-lefticon"},Nk={ref:"wrap",class:"fox-noticebar__page-wrap"},Ak={class:"showNotica"},Bk=["onClick"];function Tk(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Notice"),c=(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",Ck,[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,size:"16px"})):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Nk,[(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)(c,{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",Ak,[((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:u=>e.go(d)},[(0,t.renderSlot)(e.$slots,"item",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(d),1)])],12,Bk))),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)(c,{key:0,color:e.color,size:"11px"},null,8,["color"])):(0,t.createCommentVNode)("",!0)])])],4)):(0,t.createCommentVNode)("",!0)],2)}var Eo=ie(wk,[["render",Tk]]),Vk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX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Xzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:H2,create:Dk,scope:Ik}=ee("empty"),qk={empty:Vk,error:Ek,network:$k},Pk=Dk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,ge.useFoxI18n)(Ik),a=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}`:""),o=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:qk[l.value];return{...a,imageUrl:o,imgStyle:i}}}),xk={class:"fox-empty"},Mk=["src"],Rk={key:1,class:"fox-empty-description"};function zk(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",xk,[(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,Mk)):(0,t.createCommentVNode)("",!0)],64))],4),e.$slots.description?(0,t.renderSlot)(e.$slots,"description",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",Rk,(0,t.toDisplayString)(e.description),1)),e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:2}):(0,t.createCommentVNode)("",!0)])}var $o=ie(Pk,[["render",zk]]),{create:Fk,scope:Lk}=ee("video"),Ok=Fk({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:a}=(0,ge.useFoxI18n)(Lk),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,g=>{g.src&&(0,t.nextTick)(()=>{l.videoElm.load()})},{immediate:!0,deep:!0}),(0,t.watch)(()=>e.options,g=>{l.state.isMuted=g?g.muted:!1},{immediate:!0});const o=()=>{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)),C(),l.showToolbox?c():(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(u,1e3)))},c=()=>{const g=r.value,b=r.value.getElementsByClassName("fox-video-controller__progress-value")[0];l.player.$player=g,l.progressBar.progressElm=b,l.progressBar.pos=b.getBoundingClientRect(),l.videoSet.progress.width=Math.round(b.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(u,1e3)),l.videoElm.addEventListener("ended",p),n("play",l.videoElm)}catch{y()}else l.videoElm.pause(),n("pause",l.videoElm)},d=g=>{let b=[];const T=Math.floor(g/3600);T>0&&(T<10?b.push(`0${T}`):b.push(`${T}`));const E=Math.floor(g%3600/60);E<10?b.push(`0${E}`):b.push(`${E}`);const B=Math.round(g%3600%60);return B<10?b.push(`0${B}`):b.push(`${B}`),b.join(":")},h=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},u=()=>{const g=l.videoElm.currentTime/l.videoElm.duration;l.videoSet.progress.current=Math.round(l.videoSet.progress.width*g),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)},y=()=>{l.state.isError=!0},C=()=>{l.state.vol=e.options.volume},k=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},v=()=>{},w=g=>{let b=g.targetTouches[0].pageX-l.progressBar.pos.left;b<=0&&(b=0),b>=l.videoSet.progress.width&&(b=l.videoSet.progress.width),l.videoSet.progress.current=b;let T=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&m(T,l.videoElm.duration)},f=g=>{let b=g.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=b;let T=b/l.videoSet.progress.width;l.videoElm.duration&&m(T,l.videoElm.duration)},m=(g,b)=>{l.videoElm.currentTime=Math.floor(g*b)},S=()=>{l.state.isError=!1,o()},A=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{o()}),{root:r,...(0,t.toRefs)(e),...(0,t.toRefs)(l),handleError:y,isDisabled:i,play:s,handleMuted:k,touchSlidSrart:v,touchSlidMove:w,touchSlidEnd:f,retry:S,fullScreen:A,t:a}}}),Kk={class:"fox-video",ref:"videocon"},Uk=["muted","autoplay","loop","poster","controls","preload"],Hk=["src","type"],jk={class:"fox-video-controller__now"},Wk={class:"fox-video-controller__progress"},Yk={class:"fox-video-controller__progress-value",ref:"progressBar"},Xk={class:"fox-video-controller__played",ref:"playedBar"},Qk={class:"fox-video-controller__total"},Gk={class:"fox-video-error"},_k={class:"fox-video-error-tip"};function Zk(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",Kk,[(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]=(...o)=>e.handleError&&e.handleError(...o))},[(0,t.createElementVNode)("source",{src:e.source.src,type:e.source.type},null,8,Hk)],40,Uk),e.showToolbox&&!e.isDisabled?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...o)=>e.play&&e.play(...o))},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]=(...o)=>e.play&&e.play(...o))},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]=(...o)=>e.play&&e.play(...o))}),(0,t.createElementVNode)("div",jk,(0,t.toDisplayString)(e.videoSet.displayTime),1),(0,t.createElementVNode)("div",Wk,[(0,t.createElementVNode)("div",Yk,[(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)(o=>e.touchSlidMove(o),["stop","prevent"])),onTouchstart:n[5]||(n[5]=(0,t.withModifiers)(o=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)(o=>e.touchSlidEnd(o),["stop"]))},[...n[10]||(n[10]=[(0,t.createElementVNode)("div",{class:"fox-video-controller__ball-move"},null,-1)])],36),(0,t.createElementVNode)("div",Xk,null,512)],512)]),(0,t.createElementVNode)("div",Qk,(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]=(...o)=>e.handleMuted&&e.handleMuted(...o))},null,2),(0,t.createElementVNode)("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...o)=>e.fullScreen&&e.fullScreen(...o))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),(0,t.withDirectives)((0,t.createElementVNode)("div",Gk,[(0,t.createElementVNode)("p",_k,(0,t.toDisplayString)(e.t("errorTip")),1),(0,t.createElementVNode)("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...o)=>e.retry&&e.retry(...o))},(0,t.toDisplayString)(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var $t=ie(Ok,[["render",Zk]]),Gi=Symbol("fox-steps"),{create:Jk,componentName:ew}=ee("steps"),tw=Jk({props:{direction:{type:[String],default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:a}){const l=(0,t.computed)(()=>{const i=ew;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}});return _t(Gi,{props:e,onEmit:i=>{n("click-step",i)}}),()=>(0,t.h)("view",{class:l.value},a.default?.())}}),Do=tw,{create:nw,componentName:lw}=ee("step"),aw=nw({props:{title:{type:[String],default:""},content:{type:[String],default:""}},emits:["click-step"],setup(e){const{parent:n,index:a}=Zt(Gi,{props:e}),l=(0,t.reactive)({dot:n.props.progressDot}),r=()=>{const s=a.value+1;return s<+n.props.current?"finish":s===+n.props.current?"process":"wait"},i=(0,t.computed)(()=>r()),o=(0,t.computed)(()=>{const s=lw;return{[s]:!0,[`${s}-${i.value}`]:!0}}),c=()=>{n.onEmit(a.value)};return{...(0,t.toRefs)(l),index:a,classes:o,handleClickStep:c}}}),ow={class:"fox-step-head"},rw={class:"fox-step-icon-inner"},iw={key:1,class:"fox-step-inner"},sw={class:"fox-step-main"},cw={class:"fox-step-title"},uw={key:0},dw={key:0,class:"fox-step-content"},fw=["innerHTML"];function mw(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...o)=>e.handleClickStep&&e.handleClickStep(...o))},[(0,t.createElementVNode)("view",ow,[n[1]||(n[1]=(0,t.createElementVNode)("view",{class:"fox-step-line"},null,-1)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-step-icon",[e.dot?"":"is-icon"]])},[(0,t.createElementVNode)("view",rw,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.dot?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[],64)):((0,t.openBlock)(),(0,t.createElementBlock)("view",iw,(0,t.toDisplayString)(e.index+1),1))])])],2)]),(0,t.createElementVNode)("view",sw,[(0,t.createElementVNode)("view",cw,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",uw,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",dw,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,fw)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var Io=ie(aw,[["render",mw]]),_i=Symbol("fox-swiper"),{create:pw,componentName:qo}=ee("swiper"),hw=pw({props:{width:{type:[Number,String],default:()=>window.innerWidth},height:{type:[Number,String],default:0},direction:{type:[String],default:"horizontal"},paginationVisible:{type:[Boolean],default:!1},paginationColor:{type:[String],default:"#fff"},loop:{type:[Boolean],default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:[Boolean],default:!0},isPreventDefault:{type:[Boolean],default:!0},isStopPropagation:{type:[Boolean],default:!0}},emits:["change"],setup(e,{emit:n,slots:a,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:{}}),o=(0,t.computed)(()=>i[h.value?"height":"width"]),{children:c}=_t(_i,{props:e,size:o}),s=nt(),d=(0,t.computed)(()=>({[qo]:!0})),h=(0,t.computed)(()=>e.direction==="vertical"),u=(0,t.computed)(()=>{const z=qo;return{[`${z}-inner`]:!0,[`${z}-vertical`]:h.value}}),p=(0,t.computed)(()=>{const z=qo;return{[`${z}-pagination`]:!0,[`${z}-pagination-vertical`]:h.value}}),y=(0,t.computed)(()=>h.value?s.deltaY.value:s.deltaX.value),C=(0,t.computed)(()=>s.direction.value===e.direction),k=(0,t.computed)(()=>c.value.length),v=(0,t.computed)(()=>k.value*o.value),w=(0,t.computed)(()=>i.rect?(h.value?i.rect.height:i.rect.width)-o.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"]:`${o.value*k.value}px`,[h.value?"width":"height"]:`${h.value?i.width:i.height}px`}},S=(z,X=0)=>{let P=z*o.value;e.loop||(P=Math.min(P,-w.value));let _=X-P;return e.loop||(_=je(_,w.value,0)),_},A=z=>{const{active:X}=i;return z?e.loop?je(X+z,-1,k.value):je(X+z,0,k.value-1):X},g=({pace:z=0,offset:X=0,isEmit:P=!1})=>{if(k.value<=1)return;const{active:_}=i,te=A(z),W=S(te,X);if(e.loop){if(c.value[0]&&W!==w.value){const Z=W<w.value;c.value[0].setOffset(Z?v.value:0)}if(c.value[k.value-1]&&W!==0){const Z=W>0;c.value[k.value-1].setOffset(Z?-v.value:0)}}i.active=te,i.offset=W,P&&_!==i.active&&n("change",f.value),m()},b=()=>{i.moving=!0,i.active<=-1&&g({pace:k.value}),i.active>=k.value&&g({pace:-k.value})},T=()=>{i.autoplayTimer&&clearTimeout(i.autoplayTimer)},E=z=>{b(),s.reset(),Ye(()=>{Ye(()=>{i.moving=!1,g({pace:z,isEmit:!0})})})},B=()=>{E(-1)},N=()=>{E(1)},R=z=>{b(),s.reset(),Ye(()=>{i.moving=!1;let X=0;e.loop&&k.value===z?X=i.active===0?0:z:X=z%k.value,g({pace:X-i.active,isEmit:!0})})},U=()=>{const z=de(e.autoPlay);z<=0||k.value<=1||(T(),i.autoplayTimer=setTimeout(()=>{N(),U()},z))},$=(z=+e.initPage)=>{T(),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(),U()},x=z=>{e.isPreventDefault&&z.preventDefault(),e.isStopPropagation&&z.stopPropagation(),e.touchable&&(s.start(z),i.touchTime=Date.now(),T(),b())},M=z=>{e.touchable&&i.moving&&(s.move(z),C.value&&g({offset:y.value}))},O=z=>{if(!e.touchable||!i.moving)return;const X=y.value/(Date.now()-i.touchTime);if((Math.abs(X)>.3||Math.abs(y.value)>+(o.value/2).toFixed(2))&&C.value){let P=0;const _=h.value?s.offsetY.value:s.offsetX.value;e.loop?P=_>0?y.value>0?-1:1:0:P=-Math[y.value>0?"ceil":"floor"](y.value/o.value),g({pace:P,isEmit:!0})}else y.value&&g({pace:0});i.moving=!1,m(),U()};return l({prev:B,next:N,to:R}),(0,t.onDeactivated)(()=>{T()}),(0,t.onBeforeUnmount)(()=>{T()}),(0,t.watch)(()=>e.initPage,z=>{(0,t.nextTick)(()=>{$(Number(z))})}),(0,t.watch)(()=>c.value.length,()=>{(0,t.nextTick)(()=>{$()})}),(0,t.watch)(()=>e.autoPlay,z=>{de(z)>0?U():T()}),{state:i,children:c,classes:d,classesInner:u,classesPagination:p,container:r,activePagination:f,onTouchStart:x,onTouchMove:M,onTouchEnd:O}}});function gw(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{ref:"container",class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...o)=>e.onTouchStart&&e.onTouchStart(...o)),onTouchmove:n[1]||(n[1]=(...o)=>e.onTouchMove&&e.onTouchMove(...o)),onTouchend:n[2]||(n[2]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o)),onTouchcancel:n[3]||(n[3]=(...o)=>e.onTouchEnd&&e.onTouchEnd(...o))},[(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,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("i",{style:(0,t.normalizeStyle)({backgroundColor:e.activePagination===c?e.paginationColor:"#ddd"}),class:(0,t.normalizeClass)({active:e.activePagination===c}),key:c},null,6))),128))],2)):(0,t.createCommentVNode)("",!0)],34)}var Dt=ie(hw,[["render",gw]]),{create:yw,componentName:bw}=ee("swiper-item"),vw=yw({setup(e,{slots:n,expose:a}){const l=(0,t.reactive)({offset:0}),r=(0,t.computed)(()=>({[bw]:!0})),i=s=>{l.offset=s},{parent:o}=Zt(_i,{setOffset:i}),c=(0,t.computed)(()=>{const s={},d=o?.props.direction;return o?.size.value&&(s[d==="horizontal"?"width":"height"]=`${o?.size.value}px`),l.offset&&(s.transform=`translate${d==="horizontal"?"X":"Y"}(${l.offset}px)`),s});return a({setOffset:i}),{style:c,classes:r}}});function Sw(e,n,a,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 It=ie(vw,[["render",Sw]]),Zi={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:kw}=ee("image-preview-item"),ww=kw({props:{...Zi,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:{[$t.name]:$t,[It.name]:It},setup(e,{emit:n}){const a=(0,t.reactive)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),l=nt(),r=(0,t.computed)(()=>{const{rootWidth:E,rootHeight:B}=e,N=B/E;return a.imageRatio>N}),i=(0,t.computed)(()=>{const E=e.image;if(E&&E.src){const{scale:B,moveX:N,moveY:R,moving:U,zooming:$}=a,x={transitionDuration:$||U?"0s":".3s"};return B!==1&&(x.transform=`scale(${B}, ${B}) translate(${N/B}px, ${R/B}px)`),x}return{}}),o=(0,t.computed)(()=>{if(a.imageRatio){const{rootWidth:E,rootHeight:B}=e,N=r.value?B/a.imageRatio:E;return Math.max(0,(a.scale*N-E)/2)}return 0}),c=(0,t.computed)(()=>{if(a.imageRatio){const{rootWidth:E,rootHeight:B}=e,N=r.value?B:E*a.imageRatio;return Math.max(0,(a.scale*N-B)/2)}return 0}),s=E=>{const{naturalWidth:B,naturalHeight:N}=E.target;a.imageRatio=N/B},d=()=>{h(1),a.moveX=0,a.moveY=0},h=E=>{E=je(E,+e.minZoom,+e.maxZoom+1),E!==a.scale&&(a.scale=E,n("scale",{scale:E,index:e.initNo}))},u=()=>{h(a.scale>1?1:2),a.moveX=0,a.moveY=0},p=E=>Math.sqrt((E[0].clientX-E[1].clientX)**2+(E[0].clientY-E[1].clientY)**2);let y,C,k,v,w,f,m;const S=E=>{const{touches:B}=E,{offsetX:N}=l;l.start(E),m=B.length,y=a.moveX,C=a.moveY,f=Date.now(),a.moving=m===1&&a.scale!==1,a.zooming=m===2&&!N.value,a.zooming&&(k=a.scale,v=p(E.touches))},A=E=>{const{touches:B}=E;if(l.move(E),(a.moving||a.zooming)&&Pl(E,!0),a.moving){const{deltaX:N,deltaY:R}=l,U=N.value+y,$=R.value+C;a.moveX=je(U,-o.value,o.value),a.moveY=je($,-c.value,c.value)}if(a.zooming&&B.length===2){const N=p(B);h(k*N/v)}},g=()=>{if(m==1&&e.video&&e.video.source||m>1)return;const{offsetX:E,offsetY:B}=l,N=Date.now()-f,R=250,U=5;E.value<U&&B.value<U&&N<R&&(w?(clearTimeout(w),w=null,u()):w=setTimeout(()=>{e.contentClose&&n("close"),w=null},R))},b=E=>{let B=!1;(a.moving||a.zooming)&&(B=!0,a.moving&&y===a.moveX&&C===a.moveY&&(B=!1),E.touches.length||(a.zooming&&(a.moveX=je(a.moveX,-o.value,o.value),a.moveY=je(a.moveY,-c.value,c.value),a.zooming=!1),a.moving=!1,y=0,C=0,k=1,a.scale<1&&d(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),Pl(E,B),g(),l.reset()},T=()=>{n("close")};return(0,t.watch)(()=>e.initNo,d),(0,t.watch)(()=>e.show,E=>{E||d()}),{...(0,t.toRefs)(a),onTouchStart:S,onTouchMove:A,onTouchEnd:b,getDistance:p,imageStyle:i,imageLoad:s,closeSwiper:T}}}),Cw=["src"];function Nw(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-video"),c=(0,t.resolveComponent)("fox-swiper-item");return(0,t.openBlock)(),(0,t.createBlock)(c,{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,Cw)):(0,t.createCommentVNode)("",!0),e.video&&e.video.source?((0,t.openBlock)(),(0,t.createBlock)(o,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):(0,t.createCommentVNode)("",!0)],36)]),_:1},8,["onClick"])}var Aw=ie(ww,[["render",Nw]]),{create:Bw}=ee("image-preview"),Tw=Bw({props:{...Zi,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:Aw,CircleClose:oe.CircleClose,[Ce.name]:Ce,[Dt.name]:Dt},setup(e,{emit:n}){const a=(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)(()=>pn(e.videos)?[].concat(e.videos).concat(e.images):e.images),o=h=>{h!==l.active&&(l.active=h,n("change",l.active))},c=()=>{ji(e.beforeClose,{args:[l.active],done:()=>s()})},s=()=>{l.showPop=!1,n("close")},d=()=>{if(a.value){const h=qe(a.value);l.rootHeight=h.height,l.rootWidth=h.width}};return(0,t.watch)(()=>e.show,h=>{l.showPop=h,h&&(o(e.initNo),d())}),(0,t.watch)(()=>e.initNo,h=>{h!=l.active&&o(h)}),(0,t.onMounted)(()=>{o(e.initNo)}),{swipeRef:a,...(0,t.toRefs)(l),onClose:c,mergeImages:i,setActive:o,iconClasses:r}}}),Vw={class:"fox-image-preview",ref:"swipeRef"},Ew={key:0,class:"fox-image-preview-index"};function $w(e,n,a,l,r,i){const o=(0,t.resolveComponent)("image-preview-item"),c=(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",Vw,[e.showPop?((0,t.openBlock)(),(0,t.createBlock)(c,{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,u)=>((0,t.openBlock)(),(0,t.createBlock)(o,{key:u,video:u<e.videos.length?h:{},image:u>=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",Ew,(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 Ji=ie(Tw,[["render",$w]]),Dw=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"},Iw=class{options=new Dw;constructor(e){const n=Object.assign(this.options,e),{unmount:a}=Hs(n,{name:"image-preview",components:[Ce,$t,Dt,It,ct],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{a()})},(0,t.h)(Ji,n))}})})}},vl=e=>new Iw(e);vl.install=e=>{e.use(Ji)};var{create:qw}=ee("countup"),Pw=qw({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:a}){const l=(0,t.ref)(null),r=(0,t.ref)([]),i=E=>{E&&r.value.push(E)},o=(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:c,scrolling:s,customBgImg:d,type:h}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,()=>{p(),w(0)}),(0,t.watch)(()=>e.machinePrizeLevel,E=>{o.prizeLevelTrun=E}),(0,t.watch)(()=>e.initNum,E=>{o.current=E,o.valFlag=!1,u()}),(0,t.watch)(()=>e.endNum,()=>{o.current=e.initNum,o.valFlag=!1,u()});const u=()=>{if(o.valFlag)return!1;c&&(s||d?h!="machine"&&w():(v(),setTimeout(()=>{o.valFlag=!0},300)))},p=()=>{clearInterval(Number(o.timer)),o.timer=null},y=(E,B,N)=>{const R=(E.toString().split(".")[1]||"").length,U=(B.toString().split(".")[1]||"").length,$=Math.pow(10,Math.max(R,U));return N=="-"?Number((E*$-B*$).toFixed(0))/$:Number((E*$+B*$).toFixed(0))/$},C=E=>{let{num_total_len:B,pointNum:N,initDigit1:R,initDigit2:U,sortFlag:$}=o,x=$=="add"||$=="equal"?String(U)[E-(B-N)]:10-Number(String(U)[E-(B-N)]),M=$=="add"||$=="equal"?String(R)[E]:10-Number(String(R)[E]),O=E>B-N-1?-x*100+"%":E<=String(R).length-1?-M*100+"%":0;return O=="-1000%"&&(O=0),O},k=E=>{let{num_total_len:B,pointNum:N,initDigit1:R,initDigit2:U}=o,$=String(U)[E-(B-N)];return E>B-N-1?$||0:E<=String(R).length-1?String(R)[E]:0},v=()=>{let{endNum:E,initNum:B,speed:N,toFixed:R}=e,U=setInterval(()=>{B>E?Number(o.current)<=E||Number(o.current)<=N?(o.current=E.toFixed(R),clearInterval(U),n("scrollEnd"),o.valFlag=!1):o.current=(parseFloat(String(o.current))-parseFloat(String(N))).toFixed(R):Number(o.current)>=E?(o.current=E.toFixed(R),clearInterval(U),n("scrollEnd"),o.valFlag=!1):o.current=(parseFloat(String(o.current))+parseFloat(String(N))).toFixed(R)},e.during)},w=E=>{let{initNum:B,endNum:N,toFixed:R,customBgImg:U}=e;U&&(B=e.customChangeNum);let $,x,M,O;B!=0?(R!=0&&(B=Number(B.toFixed(R))),String(B).indexOf(".")>-1?($=String(B).split(".")[0].length,x=String(B).split(".")[1].length):($=String(B).length,x=0)):($=1,x=0),N!=0?(R!=0&&(N=Number(N.toFixed(R))),String(N).indexOf(".")>-1?(M=String(N).split(".")[0].length,O=String(N).split(".")[1].length):(M=String(N).length,O=0)):(M=1,O=0);let z=$>=M?$:M,X=x>=O?x:O;o.num_total_len=z+X,o.pointNum=X,B>N?(o.sortFlag="reduce",o.to0_10=[0,9,8,7,6,5,4,3,2,1,0],o.totalCount=y(B,N,"-"),o.numberVal=Number(String(B))):B<N?(o.sortFlag="add",o.to0_10=[0,1,2,3,4,5,6,7,8,9,0],o.totalCount=y(N,B,"-"),o.numberVal=Number(String(N))):o.sortFlag="equal";var P=1;for(let te=0;te<o.pointNum;te++)P*=10;var _=o.numberVal*P;if(o.relNum=_,R!=0&&(o.pointNum=String(o.numberVal).split(".")[1]?String(o.numberVal).split(".")[1].length:0,o.num_total_len=String(_).length),String(B).indexOf(".")>-1){let te=String(B).split(".");o.initDigit1=Number(te[0]),o.initDigit2=Number(te[1])}else o.initDigit1=B,o.initDigit2=0;s&&!U?(0,t.nextTick)(()=>{if(o.sortFlag=="equal")return!1;let te=r.value[o.num_total_len-1];f(te)}):E!==0&&A()},f=E=>{p();var B=1;o.pointNum!=0&&(B=1/Math.pow(10,o.pointNum)),o.timer=setInterval(()=>{m(E),o.totalCount=y(o.totalCount,B,"-"),o.totalCount<=0&&(p(),n("scrollEnd"),o.valFlag=!1)},e.during)},m=E=>{let B=E.getAttribute("turn-number"),N;if(o.sortFlag=="add"?N=parseInt(String(B))+1:N=parseInt(String(B))-1>=0?parseInt(String(B))-1:9,E.setAttribute("turn-number",String(N)),(E.style.transition=="none 0s ease 0s"||N==1||!E.style.transition)&&(E.style.transition=`all linear ${e.during}ms`),N==10||o.sortFlag=="reduce"&&N==0){var R=null;E.style.top=`-${o.sortFlag=="add"?N*100:(10-N)*100}%`,E.setAttribute("turn-number","0"),R=setTimeout(()=>{R&&clearTimeout(R),E.style.transition="none",E.style.top="0",S(E,N)},.975*e.during)}else E.style.top=`-${o.sortFlag=="add"?N*100:(10-N)*100}%`;E.style.top=="-100%"&&o.sortFlag=="reduce"&&m(E.previousSibling)},S=(E,B)=>{setTimeout(()=>{B==10&&E.previousSibling&&m(E.previousSibling)},200)},A=()=>{(0,t.nextTick)(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{n("scrollEnd"),o.valFlag=!1})})},g=()=>{for(o.notPrize=[];o.notPrize.length<3;){var E=Math.floor(Math.random()*e.machinePrizeNum+1);o.notPrize.indexOf(E)==-1&&o.notPrize.push(E)}};a({machineLuck:()=>{const E=e.machineTurnMore<0?0:e.machineTurnMore;let B=e.numHeight*e.machinePrizeNum;o.prizeLevelTrun<0&&g();for(let N=0;N<e.machineNum;N++)setTimeout(()=>{let R=B*(N+1+parseFloat(String(E)));o.prizeYPrev.length!=0&&(o.prizeY[N]=o.prizeYPrev[N]);let U=o.prizeYPrev[N]?o.prizeYPrev[N]:0,$=R+U+(e.machinePrizeNum-o.prizeLevelTrun+1)*e.numHeight+(B-U);o.prizeLevelTrun<0&&($+=e.numHeight*o.notPrize[N]),T(N,$,U)},500*N)}});const T=(E,B,N)=>{let R=setInterval(()=>{if(N<=B)N+=10,o.prizeY[E]=parseFloat(String(N));else if(clearInterval(R),R=null,o.finshMachine+=1,o.prizeY[E]=B,o.finshMachine==e.machineNum){let U=e.numHeight*e.machinePrizeNum;o.prizeYPrev=[],JSON.parse(JSON.stringify(o.prizeY)).forEach($=>{let x=$;for(;x>U;)x-=U;o.prizeYPrev.push(x)}),setTimeout(()=>{o.finshMachine=0,o.prizeLevelTrun<0?(n("scrollEnd",!1),o.valFlag=!1):(n("scrollEnd",!0),o.valFlag=!1)},130)}},30)};return(0,t.onMounted)(()=>{o.current=e.initNum,(0,t.nextTick)(()=>{u()})}),(0,t.onUnmounted)(()=>{p(),o.timer=null}),{...(0,t.toRefs)(o),...(0,t.toRefs)((0,t.reactive)(e)),runNumberImg:l,setRef:i,topNumber:C,turnNumber:k}}}),xw={class:"fox-countup"},Mw=["turn-number"];function Rw(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",xw,[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,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"mImg"+c,class:"fox-countup__machine-item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[c]+"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,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"cImg"+c,class:"fox-countup__numberimg__item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(Number(c)>e.num_total_len-e.pointNum-1?Number(c)==e.num_total_len-e.pointNum?Number(c)*1.5:Number(c)*1.3:Number(c))+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[c]*e.numHeight+e.customSpacNum*+String(e.relNum)[c])+"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,(o,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{ref_for:!0,ref:s=>e.setRef(s),key:o,class:"fox-countup__number-item",style:(0,t.normalizeStyle)({top:e.topNumber(c),left:e.numWidth*(Number(c)>e.num_total_len-e.pointNum-1?Number(c)*1.1:Number(c))+"px"}),"turn-number":e.turnNumber(c)},[((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,Mw))),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 Po=ie(Pw,[["render",Rw]]),zw=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:Fw,create:Lw}=ee("countdown"),Ow=Lw({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:a}){const l=(0,t.reactive)({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),r=(0,t.computed)(()=>({[Fw]:!0})),i=(0,t.computed)(()=>s(l.restTime)),o=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-zw(e.startTime),l.counting||(l.counting=!0),c()},c=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const y=Date.now()-l.diffTime,C=Math.max(l.handleEndTime-y,0);l.restTime=C,C||(l.counting=!1,u(),n("on-end")),C>0&&c()}}))},s=(y,C)=>{const k=y;let v={d:0,h:0,m:0,s:0,ms:0};const w=1e3,f=60*w,m=60*f,S=24*m;return k>0&&(v.d=k>=w?Math.floor(k/S):0,v.h=Math.floor(k%S/m),v.m=Math.floor(k%m/f),v.s=Math.floor(k%f/w),v.ms=Math.floor(k%w)),C=="custom"?v:d({...v})},d=y=>{let{d:C,h:k,m:v,s:w,ms:f}=y,m=e.format;if(m.includes("DD")?m=m.replace("DD",rt(C)):k+=Number(C)*24,m.includes("HH")?m=m.replace("HH",rt(k)):v+=Number(k)*60,m.includes("mm")?m=m.replace("mm",rt(v)):w+=Number(v)*60,m.includes("ss")?m=m.replace("ss",rt(w)):f+=Number(w)*1e3,m.includes("S")){const S=rt(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),c(),n("on-restart",l.restTime))},u=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},p=()=>{e.autoStart||(u(),l.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?o():l.restTime=e.time}),(0,t.watch)(()=>l.restTime,y=>{let C=s(y,"custom");n("update:modelValue",C),n("input",C)}),(0,t.watch)(()=>e.paused,(y,C)=>{C?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),c()),n("on-restart",l.restTime)):l.counting&&u()}),(0,t.watch)(()=>e.endTime,y=>{o()}),(0,t.watch)(()=>e.startTime,y=>{o()}),{...(0,t.toRefs)(e),slots:a,classes:r,start:h,pause:u,renderTime:i,reset:p}}}),Kw=["innerHTML"];function Uw(e,n,a,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,Kw))],2)}var xo=ie(Ow,[["render",Uw]]),{create:Hw}=ee("badge"),jw=Hw({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,a=e.max;return typeof n=="number"&&typeof a=="number"&&a<n?`${a}+`:n})}}}),Ww={class:"fox-badge"},Yw=["textContent"];function Xw(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Ww,[(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,Yw),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var Mo=ie(jw,[["render",Xw]]),{componentName:Qw,create:Gw}=ee("tag"),_w=Gw({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:oe.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:(0,t.computed)(()=>{const o=Qw;return{[o]:!0,[`${o}--${e.type}`]:!0,[`${o}--plain`]:e.plain,[`${o}--round`]:e.round,[`${o}--mark`]:e.mark,[`${o}--symbol`]:e.symbol,[`${o}--text`]:e.text,[`${o}--light`]:e.light}}),getStyle:()=>{const o={};return e.textColor?o.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(o.color=e.color),e.plain?(o.background="#fff",o["border-color"]=e.color):!e.text&&e.color&&(o.background=e.color),o},onClose:o=>{o.stopPropagation(),n("close",o)},onClick:o=>{n("click",o)}}}});function Zw(e,n,a,l,r,i){const o=(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]=(...c)=>e.onClick&&e.onClick(...c))},[(0,t.renderSlot)(e.$slots,"default"),e.closeable?((0,t.openBlock)(),(0,t.createBlock)(o,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],6)}var Ro=ie(_w,[["render",Zw]]),{create:Jw}=ee("popover"),eC=Jw({components:{FoxPopup:Ce},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const a=(0,t.ref)(),l=(0,t.ref)(),r=(0,t.ref)(e.visible);let i=(0,t.ref)(),o=(0,t.ref)();const c=(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:A}=e,g=A.split("-")[0],b=A.split("-")[1],T=16;return m&&(f[`border${d(g)}Color`]=m),e.arrowOffset!=0&&(["bottom","top"].includes(g)&&(b||(f.left=`calc(50% + ${S}px)`),b=="start"&&(f.left=`${T+S}px`),b=="end"&&(f.right=`${T-S}px`)),["left","right"].includes(g)&&(b||(f.top=`calc(50% - ${S}px)`),b=="start"&&(f.top=`${T-S}px`),b=="end"&&(f.bottom=`${T+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||!o.value)return{};const m=o.value.width,S=o.value.height,{width:A,height:g,left:b,top:T}=i.value,{location:E,offset:B}=e,N=E.split("-")[0],R=E.split("-")[1];let U=0,$=0;return pn(B)&&B.length==2&&(U+=Number(B[1]),$+=Number(B[0])),A&&(["bottom","top"].includes(N)&&(f.top=`${T+(N=="bottom"?g+U:-(S+U))}px`,R||(f.left=`${-(m-A)/2+b+$}px`),R=="start"&&(f.left=`${b+$}px`),R=="end"&&(f.left=`${i.value.right+$}px`)),["left","right"].includes(N)&&(f.left=`${b+(N=="left"?-(m+U):A+U)}px`,R||(f.top=`${T-S/2+g/2-4+$}px`),R=="start"&&(f.top=`${T+$}px`),R=="end"&&(f.top=`${T+g+$}px`))),f}),u=(0,t.computed)(()=>{const f={};return e.bgColor&&(f.background=e.bgColor),f}),p=()=>{let f=qe(a.value);e.targetId&&(f=qe(document.querySelector(`#${e.targetId}`))),i.value=f,setTimeout(()=>{o.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",w,!0),p()):window.removeEventListener("touchstart",w,!0)});const y=f=>{n("update",f),n("update:visible",f)},C=()=>{y(!e.visible),n("open")},k=()=>{n("update:visible",!1),n("close")},v=(f,m)=>{!f.disabled&&n("choose",f,m),e.closeOnClickAction&&k()},w=f=>{const m=a.value,S=l.value;let A=m&&!m.contains(f.target);if(e.targetId){const g=document.querySelector(`#${e.targetId}`);A=g&&!g.contains(f.target)}A&&S&&!S.contains(f.target)&&e.closeOnClickOutside&&k()};return{showPopup:r,openPopover:C,popoverArrow:c,closePopover:k,chooseItem:v,popoverRef:a,popoverContentRef:l,getRootPosition:h,customStyle:u,popoverArrowStyle:s,renderIcon:xr}}}),tC={ref:"popoverContentRef",class:"fox-popover-content-group"},nC=["onClick"],lC={class:"fox-popover-menu-item-name"};function aC(e,n,a,l,r,i){const o=(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]=(...c)=>e.openPopover&&e.openPopover(...c))},[(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)(o,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.showPopup=c),"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",tC,[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,(c,s)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:s,class:(0,t.normalizeClass)([c.className,c.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:(0,t.withModifiers)(d=>e.chooseItem(c,s),["stop"])},[c.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(c.icon)),{key:0,class:"fox-popover-item-img"})):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",lC,(0,t.toDisplayString)(c.name),1)],10,nC))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}var cn=ie(eC,[["render",aC]]),oC=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:a,round:l,avatarSize:r}=(0,t.toRefs)(n),i=(0,t.computed)(()=>{const s="avatarClass";return{[s]:!0,[`${s}--${a.value}`]:a.value}});return{avatarShape:a,avatarClass:i,getBlockClass:s=>({[s]:!0,[`${s}--round`]:l.value}),getStyle:()=>r.value?{width:r.value,height:r.value}:{width:"50px",height:"50px"}}}}),{create:rC}=ee("skeleton"),iC=rC(oC({[sn.name]:sn})),sC={key:0},cC={key:1,class:"fox-skeleton"},uC={key:0,class:"fox-skeleton-animation"},dC={class:"fox-skeleton-content"};function fC(e,n,a,l,r,i){const o=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",cC,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",uC)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",dC,[e.avatar?((0,t.openBlock)(),(0,t.createBlock)(o,{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),c=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:c,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",sC,[(0,t.renderSlot)(e.$slots,"default")]))}var zo=ie(iC,[["render",fC]]),{create:mC,componentName:pC}=ee("collapse"),hC=mC({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=(0,t.ref)(null),l=(0,t.ref)(e.modelValue||(e.accordion?"":[])),r=(0,t.computed)(()=>({[pC]:!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)},o=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 应为数组")},c=s=>e.accordion?l.value===s:Array.isArray(l.value)?l.value.includes(s):!1;return(0,t.provide)("collapseParent",{updateVal:o,isExpanded:c}),{collapseDom:a,classes:r}}});function gC(e,n,a,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 Fo=ie(hC,[["render",gC]]),{create:yC,componentName:bC}=ee("collapse-item"),vC=yC({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:oe.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=(0,t.ref)(null),a=(0,t.ref)(null),l=(0,t.reactive)((0,t.inject)("collapseParent")),r=(0,t.computed)(()=>{const u=bC;return{[u]:!0,[u+"__border"]:e.border}}),i=(0,t.computed)(()=>l?l.isExpanded(e.name):!1),o=(0,t.ref)(i.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},s=()=>{i.value&&(o.value="auto")},d=()=>{o.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const u=a.value?.offsetHeight;o.value=u?`${u}px`:"auto"})})},h=()=>{const u=a.value?.offsetHeight;o.value=u?`${u}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{o.value="0px"})})};return(0,t.watch)(i,u=>{u?d():h()}),{classes:r,renderIcon:xr,wrapperRef:n,contentRef:a,open:d,toggle:c,wrapperHeight:o,expanded:i,onTransitionEnd:s}}}),SC={class:"fox-collapse-item__title-main"},kC={class:"fox-collapse-item__title-main-value"},wC=["innerHTML"],CC={key:2,class:"fox-collapse-item__title-label"},NC={key:0,class:"fox-collapse-item__title-sub"},AC=["innerHTML"],BC={key:0,class:"fox-collapse__item-extraWrapper"},TC={class:"fox-collapse__item-extraWrapper__extraRender"},VC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function EC(e,n,a,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]=(...o)=>e.toggle&&e.toggle(...o))},[(0,t.createElementVNode)("view",SC,[(0,t.createElementVNode)("view",kC,[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,wC)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",CC,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",NC,[(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,AC)),(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",BC,[(0,t.createElementVNode)("div",TC,[(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]=(...o)=>e.onTransitionEnd&&e.onTransitionEnd(...o))},[(0,t.createElementVNode)("view",VC,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var Lo=ie(vC,[["render",EC]]),$C=(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:DC,create:IC,scope:qC}=ee("table"),PC=IC({components:{RenderColumn:$C,DownArrow:oe.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:l}=(0,ge.useFoxI18n)(qC),r=(0,t.reactive)({curData:e.data}),i=(0,t.computed)(()=>({[DC]:!0})),o=y=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${y.align?y.align:""}`]:!0}),c=y=>y.stylehead?y.stylehead:"",s=y=>y.stylecolumn?y.stylecolumn:"",d=y=>e.columns.filter(C=>C.key===y)[0],h=y=>{const C=e.columns.filter(k=>k.key===y);return C[0].stylecolumn?C[0].stylecolumn:""},u=y=>{y.sorter&&(n("sorter",y),r.curData=typeof y.sorter=="function"?r.curData.sort(y.sorter):y.sorter==="default"?r.curData.sort():r.curData)},p=()=>e.columns.map(y=>[y.key,y.render]);return(0,t.watch)(()=>e.data,y=>{r.curData=y.slice()}),{...(0,t.toRefs)(r),classes:i,cellClasses:o,getColumnItem:d,getColumnItemStyle:h,handleSorterClick:u,sortDataItem:p,t:l,stylehead:c,stylecolumn:s}}}),xC={class:"fox-table__main__head"},MC={class:"fox-table__main__head__tr"},RC=["onClick"],zC={class:"fox-table__main__body"},FC={key:1},LC={key:0,class:"fox-table__nodata"},OC={key:0,class:"fox-table__nodata__text"},KC={key:1,class:"fox-table__summary"},UC=["innerHTML"];function HC(e,n,a,l,r,i){const o=(0,t.resolveComponent)("DownArrow"),c=(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",xC,[(0,t.createElementVNode)("view",MC,[((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)(o,{key:0,width:"12px",height:"12px"})):(0,t.createCommentVNode)("",!0)],14,RC))),128))])]),(0,t.createElementVNode)("view",zC,[((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)(c,{key:0,slots:[h,s[d]],record:s},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",FC,(0,t.toDisplayString)(s[d]),1))],6))),128))]))),128))])],2),e.curData.length?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",LC,[(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",OC,(0,t.toDisplayString)(e.t("noData")),1))],2)])),e.summary?((0,t.openBlock)(),(0,t.createElementBlock)("view",KC,[(0,t.createElementVNode)("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,UC)])):(0,t.createCommentVNode)("",!0)],2)}var Oo=ie(PC,[["render",HC]]),{componentName:jC,create:WC}=ee("ellipsis"),YC=WC({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const a=(0,t.ref)(null);let l=null,r=0;const i=(0,t.ref)(),o=(0,t.reactive)({exceeded:!1,expanded:!1}),c=(0,t.computed)(()=>({[jC]:!0}));(0,t.watch)(()=>e.content,(k,v)=>{k!=v&&s()}),(0,t.onMounted)(()=>{s()});const s=()=>{if(!a.value)return;const k=window.getComputedStyle(a.value);l=document.createElement("div"),Array.prototype.slice.apply(k).forEach(w=>{l.style.setProperty(w,k.getPropertyValue(w))}),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 v=p(k.lineHeight==="normal"?e.lineHeight:k.lineHeight);r=Math.floor(v*(Number(e.rows)+.5)+p(k.paddingTop)+p(k.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),d()},d=()=>{if(l.offsetHeight<=r)o.exceeded=!1,document.body.removeChild(l);else{o.exceeded=!0;const k=e.content.length,v=Math.floor((0+k)/2);i.value=e.direction==="middle"?u([0,v],[v,k]):h(0,k),document.body.removeChild(l)}},h=(k,v)=>{const w=o.expanded?e.collapseText:e.expandText,f=e.content.length;if(v-k<=1)return e.direction==="end"?{leading:e.content.slice(0,k)+e.symbol}:{tailing:e.symbol+e.content.slice(v,f)};const m=Math.round((k+v)/2);return e.direction==="end"?l.innerText=e.content.slice(0,m)+e.symbol+w:l.innerText=w+e.symbol+e.content.slice(m,f),l.offsetHeight<=r?e.direction==="end"?h(m,v):h(k,m):e.direction==="end"?h(k,m):h(m,v)},u=(k,v)=>{const w=o.expanded?e.collapseText:e.expandText,f=e.content.length;if(k[1]-k[0]<=1&&v[1]-v[0]<=1)return{leading:e.content.slice(0,k[0])+e.symbol,tailing:e.symbol+e.content.slice(v[1],f)};const m=Math.floor((k[0]+k[1])/2),S=Math.ceil((v[0]+v[1])/2);return l.innerText=e.content.slice(0,m)+e.symbol+w+e.symbol+e.content.slice(S,f),l.offsetHeight<=r?u([m,k[1]],[v[0],S]):u([k[0],m],[S,v[1]])},p=k=>{if(!k)return 0;const v=k.match(/^\d*(\.\d*)?/);return v?Number(v[0]):0},y=k=>{k==1?(o.expanded=!0,n("change","expand")):(o.expanded=!1,n("change","collapse"))},C=()=>{n("click")};return{...(0,t.toRefs)(o),root:a,ellipsis:i,classes:c,clickHandle:y,handleClick:C}}}),XC={key:0},QC={key:1},GC={key:2};function _C(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[2]||(n[2]=(...o)=>e.handleClick&&e.handleClick(...o)),ref:"root"},[e.exceeded?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",XC,(0,t.toDisplayString)(e.content),1)),e.exceeded&&!e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",QC,[(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)(o=>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",GC,[(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)(o=>e.clickHandle(2),["stop"]))},(0,t.toDisplayString)(e.collapseText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2)}var Ko=ie(YC,[["render",_C]]),{componentName:ZC,create:JC}=ee("animate"),e2=JC({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:a,loop:l,action:r}=(0,t.toRefs)(e),i=(0,t.reactive)({clicked:!1});let o=(0,t.computed)(()=>({"fox-animate__container":!0,[`${ZC}-${a.value}`]:r.value==="initial"||i.clicked?a.value:!1,loop:l.value}));const c=s=>{i.clicked=!0,l.value||setTimeout(()=>{i.clicked=!1},1e3),n("click",s)};return{...(0,t.toRefs)(i),classes:o,handleClick:c}}}),t2={class:"fox-animate"};function n2(e,n,a,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",t2,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...o)=>e.handleClick&&e.handleClick(...o)),style:(0,t.normalizeStyle)({animationDuration:e.duration?`${e.duration}ms`:void 0})},[(0,t.renderSlot)(e.$slots,"default")],6)])}var Uo=ie(e2,[["render",n2]]),{componentName:l2,create:a2}=ee("watermark"),o2=a2({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const a=(0,t.reactive)({base64Url:""}),{zIndex:l,gapX:r,gapY:i,width:o,height:c,rotate:s,image:d,imageWidth:h,imageHeight:u,content:p,fontStyle:y,fontWeight:C,fontColor:k,fontSize:v,fontFamily:w}=e,f=()=>{const S=document.createElement("canvas"),A=window.devicePixelRatio,g=S.getContext("2d"),b=`${(r+o)*A}px`,T=`${(i+c)*A}px`,E=o*A,B=c*A;if(S.setAttribute("width",b),S.setAttribute("height",T),g)if(d){g.translate(E/2,B/2),g.rotate(Math.PI/180*Number(s));const N=new Image;N.crossOrigin="anonymous",N.referrerPolicy="no-referrer",N.src=d,N.onload=()=>{g.drawImage(N,-h*A/2,-u*A/2,h*A,u*A),g.restore(),a.base64Url=S.toDataURL()}}else p&&(g.textBaseline="middle",g.textAlign="center",g.translate(E/2,B/2),g.rotate(Math.PI/180*Number(s)),g.font=`${y} normal ${C} ${Number(v)*A}px/${B}px ${w}`,g.fillStyle=k,g.fillText(p,0,0),g.restore(),a.base64Url=S.toDataURL());else throw new Error("当前环境不支持Canvas")};f(),(0,t.watch)(()=>[l,r,i,o,c,s,d,h,u,p,y,C,k,v,w],()=>{f()});const m=(0,t.computed)(()=>{const S=l2;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(a),classes:m}}});function r2(e,n,a,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 Ho=ie(o2,[["render",r2]]);function i2(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:s2,create:c2}=ee("trend-arrow"),u2=c2({components:{TriangleUp:oe.TriangleUp,TriangleDown:oe.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=(0,t.reactive)({rateTrend:e.rate>0}),a=(0,t.computed)(()=>({[s2]:!0})),l=(0,t.computed)(()=>{const{rate:i,digits:o,showSign:c,showZero:s}=e;n.rateTrend=i>0;const d=Math.abs(i);return!s&&i===0?"--":`${c&&i!==0?n.rateTrend?"+":"-":""}${i2(Number(d),o)}%`}),r=(0,t.computed)(()=>{const{dropColor:i,riseColor:o,syncTextColor:c,textColor:s,rate:d}=e;return{color:d===0?s:c?n.rateTrend?o:i:s}});return{...(0,t.toRefs)(n),classes:a,calcRate:l,calcStyle:r}}});function d2(e,n,a,l,r,i){const o=(0,t.resolveComponent)("TriangleUp"),c=(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)(o,{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)(c,{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 jo=ie(u2,[["render",d2]]),{create:f2}=ee("tour"),m2=f2({components:{[cn.name]:cn,Close:oe.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=(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:u,maskHeight:p}=e,{width:y,height:C,left:k,top:v}=l.value,w=[k+y/2,v+C/2],f=Number(u||y),m=Number(p||C);return{width:`${f+ +h[1]*2}px`,height:`${m+ +h[0]*2}px`,top:`${w[1]-m/2-+h[0]}px`,left:`${w[0]-f/2-+h[1]}px`}}),o=h=>{h=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,(0,t.nextTick)(()=>{a.showPopup=!0,c()}),n("change",a.active)},c=()=>{l.value=qe(document.querySelector(`#${e.steps[a.active].target}`))},s=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&s()};return(0,t.onMounted)(()=>{a.active=0,c()}),(0,t.watch)(()=>e.modelValue,h=>{h&&c(),a.active=0,a.showTour=h,a.showPopup=h}),{...(0,t.toRefs)(a),classes:r,maskStyle:i,changeStep:o,close:s,handleClickMask:d}}}),p2={key:0,class:"fox-tour-content"},h2={key:0,class:"fox-tour-content-top"},g2={class:"fox-tour-content-inner"},y2={class:"fox-tour-content-bottom"},b2={class:"fox-tour-content-bottom-init"},v2={class:"fox-tour-content-bottom-operate"},S2={key:1,class:"fox-tour-content fox-tour-content-tile"},k2={class:"fox-tour-content-inner"};function w2(e,n,a,l,r,i){const o=(0,t.resolveComponent)("Close"),c=(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)(c,{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",p2,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",h2,[(0,t.createElementVNode)("div",{onClick:n[1]||(n[1]=(...h)=>e.close&&e.close(...h))},[(0,t.createVNode)(o,{class:"fox-tour-content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",g2,(0,t.toDisplayString)(s.content),1),(0,t.createElementVNode)("div",y2,[(0,t.createElementVNode)("div",b2,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",v2,[(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",S2,[(0,t.createElementVNode)("div",k2,(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 Wo=ie(m2,[["render",w2]]),{componentName:C2,create:N2}=ee("barrage"),A2=N2({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const n=new Date().getTime(),a=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[C2]:!0}));let r=(0,t.ref)(document.createElement("div")),i=(0,t.ref)(document.createElement("div")),o=null;const c=(0,t.ref)(e.danmu),s=(0,t.ref)(e.rows),d=(0,t.ref)(e.top),h=(0,t.ref)(0),u=e.speeds,p=(0,t.ref)(0);(0,t.onMounted)(()=>{y(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(k(),h.value=0,C("hidden")):document.visibilityState==="visible"&&y()})}),(0,t.onUnmounted)(()=>{c.value=[],k()});const y=()=>{p.value=r.value.offsetWidth,a&&C("init"),setTimeout(()=>{r.value?.style.setProperty("--move-distance",`-${p.value}px`),w()},300)},C=m=>{let S=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const A=[];S&&Array.from(S).forEach(g=>{m=="init"?(g.style.opacity="0",A.push(g)):(g.classList="",g.style={})}),m=="init"&&(c.value=A)},k=()=>{o&&(clearTimeout(o),o=null)};(0,t.watch)(()=>e.danmu,m=>{e.danmu.length>0&&(c.value=[...m])});const v=m=>{const S=h.value%c.value.length;!e.loop&&h.value===c.value.length?c.value.splice(c.value.length,0,m):c.value.splice(S,0,m)},w=()=>{k(),o=setTimeout(()=>{f()},e.frequency)},f=()=>{const m=e.loop?h.value%c.value.length:h.value;let S=document.createElement("view");a&&typeof c.value[m]=="object"?(S=c.value[m],S?.classList?.add("fox-barrage__item")):(S.innerHTML=c.value[m],S.classList.add("fox-barrage__item"),i.value.appendChild(S)),(0,t.nextTick)(()=>{const A=S.offsetHeight;if(S?.classList?.add("move"),S.style.animationDuration=`${u}ms`,S.style.top=m%s.value*(A+d.value)+20+"px",S.style.opacity="1",!a){const g=S.offsetWidth;S.style.width=g+20+"px"}S.addEventListener("animationend",()=>{a?S.classList.remove("move"):i.value.removeChild(S)}),!(!e.loop&&h.value>=c.value.length-1)&&(h.value++,h.value>=c.value.length&&(h.value=0),S.removeEventListener("animationend",()=>{}),w())})};return{classTime:n,classes:l,danmuList:c,dmBody:r,dmContainer:i,add:v}}});function B2(e,n,a,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 Yo=ie(A2,[["render",B2]]),{componentName:T2,create:V2,scope:E2}=ee("signature"),$2=V2({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:At},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n,expose:a}){const{toLocaleRefs:l}=(0,ge.useFoxI18n)(E2),r=l(e,["unSupportTpl","reSign","confirmText"]),i=(0,t.ref)(null),o=(0,t.ref)(null),c=(0,t.computed)(()=>({[T2]:!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],u,!1)},u=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],y,!1),i.value.addEventListener(s.events[3],C,!1)},p=m=>{m.preventDefault();let S=s.isSupportTouch?m.touches[0]:m;n("signing",S);let A=i.value.getBoundingClientRect(),g=S.clientX-A.left,b=S.clientY-A.top;s.ctx.lineTo(g,b),s.ctx.stroke()},y=m=>{m.preventDefault(),n("end"),i.value.removeEventListener(s.events[1],p,!1),i.value.removeEventListener(s.events[2],y,!1)},C=m=>{m.preventDefault(),i.value.removeEventListener(s.events[1],p,!1),i.value.removeEventListener(s.events[2],y,!1)},k=()=>{i.value.addEventListener(s.events[2],y,!1),s.ctx.clearRect(0,0,s.canvasWidth,s.canvasHeight),s.ctx.closePath(),n("clear")},v=()=>{f(i.value)},w=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",w(m)?"请绘制签名":m,w(m)?"":S)};return(0,t.onMounted)(()=>{d()&&(s.ctx=i.value.getContext("2d"),s.canvasWidth=o.value.offsetWidth,s.canvasHeight=o.value.offsetHeight,h())}),a({confirm:v,clear:k}),{...r,...(0,t.toRefs)(s),canvas:i,wrap:o,isCanvasSupported:d,confirm:v,clear:k,classes:c}}}),D2={class:"fox-signature__inner",ref:"wrap"},I2=["height","width"],q2={key:0,class:"fox-signature-unsopport"},P2={class:"fox-signature__toolbar"};function x2(e,n,a,l,r,i){const o=(0,t.resolveComponent)("FoxButton");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",D2,[(0,t.withDirectives)((0,t.createElementVNode)("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,I2),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("p",q2,(0,t.toDisplayString)(e.unSupportTpl),1))],512),(0,t.createElementVNode)("div",P2,[(0,t.renderSlot)(e.$slots,"toolbar",{},()=>[(0,t.createVNode)(o,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=c=>e.clear())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.reSign),1)]),_:1}),(0,t.createVNode)(o,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=c=>e.confirm())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.confirmText),1)]),_:1})])])],2)}var Xo=ie($2,[["render",x2]]),M2=[Kl,Hl,jl,Wl,Ql,Ut,Hn,Jl,ea,ta,na,aa,Yn,ia,da,ha,ya,al,ol,ba,il,sl,Sa,wa,bt,Ca,Aa,gl,Ta,Ea,Yt,Xt,_n,$a,qa,Pa,xa,ut,Ma,Ra,jn,vt,Wn,za,Fa,At,La,Oa,Ka,ct,Ce,Ua,Ha,ja,Wa,Gt,Ya,Xa,Qa,Ga,_a,Za,Ja,eo,to,no,lo,ao,oo,ro,io,so,co,Jt,ml,Zn,ll,tl,yl,dl,jt,uo,fo,mo,po,ho,go,yo,tn,fl,bo,ko,ul,Vt,No,Ao,sn,Bo,To,en,Vo,Eo,$o,$t,Do,Io,Dt,It,On,vl,Po,xo,Mo,Ro,cn,zo,Fo,Lo,Oo,Ko,Uo,Ho,jo,Wo,Yo,Xo],R2=new Us(M2,"4.0.0");V.AbstractPageScopeKey=Ll,V.ActionSheet=ho,V.FoxActionSheet=ho,V.ActionsheetItem=Ta,V.FoxActionsheetItem=Ta,V.ActionsheetPane=gl,V.FoxActionsheetPane=gl,V.Animate=Uo,V.FoxAnimate=Uo,V.Audio=No,V.FoxAudio=No,V.AudioOperate=Ao,V.FoxAudioOperate=Ao,V.Avatar=sn,V.FoxAvatar=sn,V.AvatarGroup=Bo,V.FoxAvatarGroup=Bo,V.BackTop=go,V.FoxBackTop=go,V.Badge=Mo,V.FoxBadge=Mo,V.Barrage=Yo,V.FoxBarrage=Yo,V.Broadcast=hr,V.BroadcastKey=We,V.Button=At,V.FoxButton=At,V.ButtonsItem=Jl,V.FoxButtonsItem=Jl,V.Calendar=ll,V.FoxCalendar=ll,V.CalendarItem=ya,V.FoxCalendarItem=ya,V.Cascader=Zn,V.FoxCascader=Zn,V.CascaderItem=da,V.FoxCascaderItem=da,V.Cell=La,V.FoxCell=La,V.CellGroup=Ka,V.FoxCellGroup=Ka,V.Checkbox=il,V.FoxCheckbox=il,V.CheckboxGroup=sl,V.FoxCheckboxGroup=sl,V.CheckboxItem=Sa,V.FoxCheckboxItem=Sa,V.CircleProgress=Vo,V.FoxCircleProgress=Vo,V.Col=ja,V.FoxCol=ja,V.Collapse=Fo,V.FoxCollapse=Fo,V.CollapseItem=Lo,V.FoxCollapseItem=Lo,V.Content=Wl,V.FoxContent=Wl,V.CountDown=xo,V.FoxCountDown=xo,V.CountUp=Po,V.FoxCountUp=Po,V.DataItemsKey=Ft,V.DateItem=ha,V.FoxDateItem=ha,V.DatePicker=tl,V.FoxDatePicker=tl,V.DateUtils=wt,V.Dialog=tn,V.FoxDialog=tn,V.Divider=Ya,V.FoxDivider=Ya,V.Domain=Nn,V.DomainKey=_e,V.DomainProvider=za,V.FoxDomainProvider=za,V.Drag=yo,V.FoxDrag=yo,V.Dropdown=Ra,V.FoxDropdown=Ra,V.Elevator=no,V.FoxElevator=no,V.Ellipsis=Ko,V.FoxEllipsis=Ko,V.Empty=$o,V.FoxEmpty=$o,V.FixedNav=_a,V.FoxFixedNav=_a,V.FloatingButton=Pa,V.FoxFloatingButton=Pa,V.FooterBar=jl,V.FoxFooterBar=jl,V.FoxGrid=Xa,V.Grid=Xa,V.FoxGridItem=Qa,V.GridItem=Qa,V.FoxGroup=Ql,V.Group=Ql,V.FoxHeaderBar=Hl,V.HeaderBar=Hl,V.FoxHintText=bt,V.HintText=bt,V.FoxIcon=Oa,V.Icon=Oa,V.FoxImage=Ua,V.Image=Ua,V.FoxImagePreview=vl,V.ImagePreview=vl,V.FoxIndicator=ro,V.Indicator=ro,V.FoxInfiniteLoading=fl,V.InfiniteLoading=fl,V.FoxInputItem=ta,V.InputItem=ta,V.FoxInputNumber=yl,V.InputNumber=yl,V.FoxInputNumberItem=Ea,V.InputNumberItem=Ea,V.FoxItem=Ut,V.Item=Ut,V.FoxLayout=Ha,V.Layout=Ha,V.FoxLinkItem=Ca,V.LinkItem=Ca,V.FoxList=To,V.List=To,V.FoxMapping=Wn,V.Mapping=Wn,V.FoxMenu=Za,V.Menu=Za,V.FoxMenuItem=Ja,V.MenuItem=Ja,V.FoxMessageBox=ut,V.MessageBox=ut,V.FoxMoneyItem=na,V.MoneyItem=na,V.FoxMoreButton=xa,V.MoreButton=xa,V.FoxNavbar=Ga,V.Navbar=Ga,V.FoxNoticeBar=Eo,V.NoticeBar=Eo,V.FoxNotify=ko,V.Notify=ko,V.FoxNumberKeyboard=mo,V.NumberKeyboard=mo,V.FoxOverLay=ct,V.OverLay=ct,V.FoxPage=Kl,V.Page=Kl,V.FoxPagination=lo,V.Pagination=lo,V.FoxPicker=jt,V.Picker=jt,V.FoxPickerItem=ia,V.PickerItem=ia,V.FoxPopover=cn,V.Popover=cn,V.FoxPopoverDialog=jn,V.PopoverDialog=jn,V.FoxPopup=Ce,V.Popup=Ce,V.FoxPopupWrapper=Ma,V.PopupWrapper=Ma,V.FoxPrice=On,V.Price=On,V.FoxProgress=en,V.Progress=en,V.FoxPullRefresh=bo,V.PullRefresh=bo,V.FoxRadio=al,V.Radio=al,V.FoxRadioGroup=ol,V.RadioGroup=ol,V.FoxRadioItem=ba,V.RadioItem=ba,V.FoxRange=Jt,V.Range=Jt,V.FoxRate=dl,V.Rate=dl,V.FoxRateItem=Aa,V.RateItem=Aa,V.FoxRollingProvider=Fa,V.RollingProvider=Fa,V.FoxRow=Wa,V.Row=Wa,V.FoxRowItem=Hn,V.RowItem=Hn,V.FoxSearchBar=ml,V.SearchBar=ml,V.FoxShortPassword=uo,V.ShortPassword=uo,V.FoxSideNavBar=io,V.SideNavBar=io,V.FoxSideNavBarItem=so,V.SideNavBarItem=so,V.FoxSignature=Xo,V.Signature=Xo,V.FoxSkeleton=zo,V.Skeleton=zo,V.FoxSlotItem=ea,V.SlotItem=ea,V.FoxStep=Io,V.Step=Io,V.FoxSteps=Do,V.Steps=Do,V.FoxStepsBar=qa,V.StepsBar=qa,V.FoxSticky=Gt,V.Sticky=Gt,V.FoxSubSideNavBar=co,V.SubSideNavBar=co,V.FoxSwipe=po,V.Swipe=po,V.FoxSwiper=Dt,V.Swiper=Dt,V.FoxSwiperItem=It,V.SwiperItem=It,V.FoxSwitch=ul,V.Switch=ul,V.FoxSwitchItem=wa,V.SwitchItem=wa,V.FoxTabPane=oo,V.TabPane=oo,V.FoxTabbar=eo,V.Tabbar=eo,V.FoxTabbarItem=to,V.TabbarItem=to,V.FoxTable=Oo,V.Table=Oo,V.FoxTabs=ao,V.Tabs=ao,V.FoxTabsBar=Yt,V.TabsBar=Yt,V.FoxTabsContainer=Xt,V.TabsContainer=Xt,V.FoxTabsFrame=$a,V.TabsFrame=$a,V.FoxTabsPane=_n,V.TabsPane=_n,V.FoxTag=Ro,V.Tag=Ro,V.FoxText=vt,V.Text=vt,V.FoxTextarea=Yn,V.Textarea=Yn,V.FoxTextareaItem=aa,V.TextareaItem=aa,V.FoxToast=Vt,V.Toast=Vt,V.FoxTour=Wo,V.Tour=Wo,V.FoxTrendArrow=jo,V.TrendArrow=jo,V.FoxUploader=fo,V.Uploader=fo,V.FoxVideo=$t,V.Video=$t,V.FoxWaterMark=Ho,V.WaterMark=Ho,V.InnerPageScopeKey=Fl,V.PriorityPolicy=et,V.UniqueID=Kn,V.ValidateSchema=Sr,V.ValidateSchemaKey=Ge,V.browseProperty=Ir,V.cancelRaf=_o,V.clamp=je,V.clearNonNumber=ql,V.compareTo=Vl,V.createBroadcast=vn,V.createValidateSchema=kn,V.debounce=Pe,V.debounceRef=$s,V.decimalLength=mr,V.default=R2,V.defineConfigDomain=wr,V.defineDataItem=Cr,V.defineDomain=Rl,V.defineDomainItemProperty=Ve,V.defineItem=Be,V.definePageState=Nr,V.defineSimpleItem=ht,V.deleteGlobalValidator=Bs,V.disabledProperty=Dr,V.divide=Tl,V.excludeProps=Qe,V.extend=ft,V.floatData=Ss,V.getGlobalIcons=qn,V.getGlobalValidateCheckEvents=yr,V.getGlobalValidateResetEvents=vr,V.getPageContentAreaHeight=Vn,V.getPageContentAreaWidth=En,V.getPageFooterAreaHeight=Tn,V.getPageHeaderAreaHeight=Bn,V.getRootDomain=pt,V.hasSymbol=sr,V.includeProps=be,V.indexOf=bs,V.injectAbstractPageScope=Ot,V.injectAbstractPageScopeForContent=Er,V.injectAbstractPageScopeForFooterBar=Vr,V.injectAbstractPageScopeForHeaderBar=Tr,V.injectInnerPageScope=Lt,V.integerLength=fr,V.isArray=pn,V.isArrayLike=ur,V.isBrowser=Xe,V.isDate=He,V.isDisplayNone=Dl,V.isESModule=ms,V.isEmptyString=fe,V.isEqual=De,V.isFunction=hn,V.isHidden=$l,V.isMap=cs,V.isNil=Ee,V.isNumberString=yn,V.isObject=$e,V.isPlainObject=fs,V.isPromise=dt,V.isRegExp=Il,V.isSet=us,V.isString=rr,V.isSubPage=xs,V.isSymbol=ds,V.isTouch=Xn,V.isWindow=cr,V.kebabToPascal=bn,V.lastIndexOf=vs,V.makeArray=ys,V.merge=dr,V.multiply=lr,V.negate=ar,V.nextTick=hs,V.numberFormat=mn,V.objectToString=ir,V.once=Ds,V.overrideGlobalIcons=_s,V.overrideGlobalValidateHandler=Ns,V.padZero=rt,V.pascalToKebab=ks,V.preventDefault=Pl,V.property=Te,V.provideAbstractPageScope=Br,V.provideInnerPageScope=Ar,V.px2Number=Ps,V.raf=Ue,V.readonlyProperty=$r,V.setGlobalValidateCheckEvents=Ts,V.setGlobalValidateHandler=Cs,V.setGlobalValidateMessages=Es,V.setGlobalValidateResetEvents=Vs,V.setGlobalValidator=As,V.throttle=Cn,V.toBoolean=Se,V.toNumber=de,V.toPadding=Re,V.toPx=ue,V.toPxDesc=qs,V.toPxString=me,V.toTypeString=gn,V.toValue=xe,V.tryTimes=xl,V.typeOf=mt,V.unNumberFormat=or,V.updatePageState=zl,V.useBroadcast=Mt,V.useDomain=Ze,V.useInnerSize=In,V.usePageState=An,V.usePosition=Gl,V.useRawTouch=Qn,V.useRect=qe,V.useSize=Ul,V.useSlotChildren=Ln,V.useTouch=nt,V.valueLength=ke});
|