@fox-js/foxui 4.0.1-95 → 4.0.1-96
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 +7833 -7587
- package/dist/index.umd.js +2 -2
- package/dist/style.css +354 -70
- package/dist/style.js +1 -1
- package/dist/theme/common/fill.scss +0 -2
- package/dist/theme/components/actionsheet.scss +3 -2
- package/dist/theme/index.scss +1 -1
- package/dist/types/index.d.ts +17 -4
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var es=Object.create,$r=Object.defineProperty,ts=Object.getOwnPropertyDescriptor,ns=Object.getOwnPropertyNames,ls=Object.getPrototypeOf,os=Object.prototype.hasOwnProperty,je=(e,n)=>()=>(n||(e((n={exports:{}}).exports,n),e=null),n.exports),as=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var r=ns(n),i=0,a=r.length,u;i<a;i++)u=r[i],!os.call(e,u)&&u!==o&&$r(e,u,{get:(s=>n[s]).bind(null,u),enumerable:!(l=ts(n,u))||l.enumerable});return e},We=(e,n,o)=>(o=e!=null?es(ls(e)):{},as(n||!e||!e.__esModule?$r(o,"default",{value:e,enumerable:!0}):o,e));let t=require("vue"),at=require("@fox-js/validator"),ae=require("@fox-js/icons-vue"),ve=require("@fox-js/i18n");var un=window,rs=typeof window<"u";function is(){return typeof un<"u"?un.requestAnimationFrame||un.webkitRequestAnimationFrame||function(e){un.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Dr(e){rs?cancelAnimationFrame(e):clearTimeout(e)}var Ge=is();function yn(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Ne(e),n=Ne(n),[e,n]=Xl(Ne(e),Ne(n)),o==1&&(l==1?e=gl(e):n=gl(n));let r=Ir(e,n);return o?o==2?"-"+Ne(r):e.length<r.length?Ne(r.substring(1)):"-"+Ne(gl(r)):Ne(r)}function gl(e){let n="",o=e.length,l=e.split(".")[1],r=l?l.length:0;for(let a=0;a<o;a++)e[a]>="0"&&e[a]<="9"?n+=9-parseInt(e[a]):n+=e[a];let i=r>0?"0."+new Array(r).join("0")+"1":"1";return Ir(n,i)}function Ne(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Xl(e,n){let o=e.split("."),l=n.split("."),r=o[0].length,i=l[0].length;return r>i?l[0]=new Array(Math.abs(r-i)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(r-i)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,i=l[1]?l[1].length:0,(r||i)&&(r>i?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-i)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-i)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Ir(e,n){[e,n]=Xl(e,n);let o="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let i=parseInt(e[r])+parseInt(n[r])+l;o=i%10+o,l=Math.floor(i/10)}return l?l.toString()+o:o}var Ce=(function(e){return e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e})({});function _t(e,n=0,o=Ce.HALF_EVEN){if(o===Ce.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let r=e.split("."),i=r[0],a=r[1];if(n<0){if(n=-n,i.length<=n)return"0";{let s=i.substr(0,i.length-n);return e=s+"."+i.substr(i.length-n)+a,s=_t(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return i.length,Wa(r[1],i,l,o)?(l?"-":"")+yl(i):(l?"-":"")+i;if(r[1]){if(r[1].length<n)return(l?"-":"")+i+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(l?"-":"")+i+"."+new Array(n+1).join("0");a=r[1].substring(0,n);let u=r[1].substring(n);return u&&Wa(u,a,l,o)&&(a=yl(a),a.length>n)?(l?"-":"")+yl(i,parseInt(a[0]))+"."+a.substring(1):(l?"-":"")+i+"."+a}function Wa(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===Ce.DOWN||!o&&l===Ce.FLOOR||o&&l===Ce.CEILING)return!1;if(l===Ce.UP||o&&l===Ce.FLOOR||!o&&l===Ce.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(l){case Ce.HALF_DOWN:return!1;case Ce.HALF_UP:return!0;case Ce.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function yl(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let r=o;r>=0;r--){let i=parseInt(e[r])+n;i==10?(n=1,i=0):n=0,l+=i}return n&&(l+=n),l.split("").reverse().join("")}function xl(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=$t(e),n=$t(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=$t(e.replace(".","")),n=$t(n.replace(".","")),e.length<n.length){let c=e;e=n,n=c}if(n=="0")return"0";let a=n.length,u=0,s=[],d=a-1,h="";for(let c=0;c<a;c++)s[c]=e.length-1;for(let c=0;c<2*e.length;c++){let p=0;for(let 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+=u,u=Math.floor(p/10),h=p%10+h,d--}return h=$t(ss(h,i)),o==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 $t(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 El(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ne(n.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ne(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=Ne(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let h=e.length-d+r;e=Ne(e.substring(0,h)+"."+e.substring(h))}else r==d&&(e=Ne(e.replace(".","")))}let i=0,a=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<a?e.substring(0,a+1):e.substring(0,a);if(e=e.indexOf(".")>-1&&e.indexOf(".")<a?e.substring(a+1):e.substring(a),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),a>s.length&&(d+=a-s.length,s=s+new Array(a-s.length+1).join("0")),i=d,u="0."+new Array(d).join("0")}for(o=o+2;i<=o;){let d=0;for(;parseInt(s)>=parseInt(n);)s=yn(s,"-"+n),d++;u+=d,e?(e[0]=="."&&(u+=".",i++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(i||(u+="."),i++,s=s+"0")}return(l==1?"-":"")+Ne(_t(u,o-2))}function $l(e,n){return e=e.toString(),n=n.toString(),n=Dl(n),yn(e,n)}function Dl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ya(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Xa(e),Xa(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=$l(e,xl(n,_t(El(e,n),0,Ce.FLOOR)));return o+l}function Xa(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Qa(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=Xl(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}var Gt=class pe{value;static RoundingModes=Ce;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,l]=n.split(/[eE]/);o=Ne(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=r+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=r+Ne(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=r+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=pe.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=pe.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var i=n.indexOf(".");i=i>0?i:n.length;for(var a="",u=i;u>0;)u<o?(o=u,u=0):u-=o,a=n.substring(u,u+o)+(u<i-o&&u>=0?l:"")+a;return(r?"-":"")+a+n.substring(i)}getPrettyValue(n,o){return pe.getPrettyValue(this.value,n,o)}static round(n,o=0,l=Ce.HALF_EVEN){if(n=pe.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return _t(n,o,l)}round(n=0,o=Ce.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new pe(_t(this.value,n,o))}static floor(n){return n=pe.validate(n),n.indexOf(".")===-1?n:pe.round(n,0,Ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,Ce.FLOOR)}static ceil(n){return n=pe.validate(n),n.indexOf(".")===-1?n:pe.round(n,0,Ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new pe(this.value):new pe(this.value).round(0,Ce.CEILING)}static add(n,o){return n=pe.validate(n),o=pe.validate(o),yn(n,o)}add(n){return new pe(yn(this.value,n.getValue()))}static subtract(n,o){return n=pe.validate(n),o=pe.validate(o),$l(n,o)}subtract(n){return new pe($l(this.value,n.getValue()))}static multiply(n,o){return n=pe.validate(n),o=pe.validate(o),xl(n,o)}multiply(n){return new pe(xl(this.value,n.getValue()))}static divide(n,o,l){return n=pe.validate(n),o=pe.validate(o),El(n,o,l)}divide(n,o){return new pe(El(this.value,n.getValue(),o))}static modulus(n,o){return n=pe.validate(n),o=pe.validate(o),Ya(n,o)}modulus(n){return new pe(Ya(this.value,n.getValue()))}static compareTo(n,o){return n=pe.validate(n),o=pe.validate(o),Qa(n,o)}compareTo(n){return Qa(this.value,n.getValue())}static negate(n){return n=pe.validate(n),Dl(n)}negate(){return new pe(Dl(this.value))}};function qr(e,n){return Gt.multiply(`${e}`,`${n}`)}function Ql(e,n,o=8){return Gt.divide(`${e}`,`${n}`,o)}var T2=Gt.RoundingModes;function Il(e,n){return e=`${e}`,n=`${n}`,Gt.compareTo(e,n)}function Pr(e){return Gt.negate(e)}function $n(e,n=-1,o=!1,l=3,r=","){let i=`${e}`;if(i.length==0||i==="-")return"";let a=i.charAt(0);a=="-"?i=i.substring(1):a="";let u=i,s="",d=i.indexOf(".");d!=-1&&(u=i.substring(0,d),s=i.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let h;if(l>0){let c="",p=u.split("").reverse();for(let y=0;y<p.length;y++)c+=p[y]+((y+1)%l==0&&y+1!=p.length?r:"");s.length==0?h=`${a}${c.split("").reverse().join("")}`:h=`${a}${c.split("").reverse().join("")}.${s}`}else s.length==0?h=`${a}${u}`:h=`${a}${u}.${s}`;return h}function Mr(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}var tt=typeof window<"u",Xe=Ge;function Ve(e){return e==null}var Dn=Array.isArray,us=e=>In(e)==="[object Map]",cs=e=>In(e)==="[object Set]",_e=e=>e instanceof Date,bn=e=>typeof e=="function",Rr=e=>typeof e=="string",ds=e=>typeof e=="symbol",xe=e=>e!==null&&typeof e=="object",yt=e=>xe(e)&&bn(e.then)&&bn(e.catch),zr=Object.prototype.toString,In=e=>zr.call(e),fs=e=>In(e)==="[object Object]",Fr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ms(e){return e.__esModule||Fr&&e[Symbol.toStringTag]==="Module"}var ps=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function bt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let i=e[o];for(let a in i){let u=n[a],s=i[a];if(u!==s)if(r===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},n[a]=bt(r,d,s)}else s!==void 0&&(n[a]=s)}}return n}var bl=ps?Promise.resolve():null;function hs(e,...n){bl!==null?n&&n.length>0?bl.then(()=>{e(n)}):bl.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 vs={"[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 Sn(e){let n=Object.prototype.toString.call(e);return e==null?String(e):vs[n]||"object"}function ql(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const o=window.getComputedStyle(n);if(o.display==="none"||o.visibility==="hidden"||o.visibility==="collapse")return!0;n=n.parentElement}return!1}function Gl(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let n=e.parentElement;for(;n;){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Lr(e){return e&&typeof e=="object"&&"setInterval"in e}function Or(e){let n=!!e&&"length"in e&&e.length,o=Sn(e);return o==="function"||Lr(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Kr(e,n){let o=+n.length,l=0,r=e.length;for(;l<o;l++)e[r++]=n[l];return e.length=r,e}function gs(e,n=[]){let o=n;return e!=null&&(Or(Object(e))?Kr(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ee(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=Sn(e);if(o!==Sn(n))return!1;if(o==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let i=0;i<l.length;i++){let a=l[i],u=e[a],s=n[a];if(!Ee(u,s))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],i=n[l];if(!Ee(r,i))return!1}return!0}return!1}function Pl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var me=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function qn(e){return me(e)?!1:(e.charAt(0)=="-"&&(e=e.substring(1)),me(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Ur(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function Hr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function Ga(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function Ml(e,n=!0,o=!0){n?e=Ga(e,".",/\./g):e=e.replace(/\./g,""),o?e=Ga(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function ys(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(Ee(e,o))return!0}):n.indexOf(e)}function bs(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(Ee(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function ke(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ye(e,...n){const o={};return n.forEach(l=>{for(const r in l)o[r]=e[r]}),o}function Ye(e,...n){const o=[];n.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const l={};for(const r in e)o.includes(r)||(l[r]=e[r]);return l}var Ss=(e,n,o)=>{const l=Object.assign({},e),r=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(i=>{r.hasOwnProperty(i)?typeof r[i]=="string"&&(l[i]=n[r[i]]):n[i]&&(l[i]=n[i])}),l):e};function Rl(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var ot=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},He=(e,n,o)=>Math.min(Math.max(e,n),o);function kn(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function ks(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var Me=Symbol.for("BroadcastKey"),_r=class{parent;children=[];callbacks=new Map;exposed=null;name;persistantMessages=new Map;constructor(e,n,o){this.parent=e,this.exposed=n,this.name=o,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(o=>e===o);n!==-1&&this.children.splice(n,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.callbacks=null,this.exposed=null}setPersistantMessage(e,n,o){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,r={matched:e,action:n,args:o};return this.persistantMessages.set(l,r),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(n=>{e.push(n)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,n){if(!n||n.messagingPolicy==="Once"&&n.resolved===!0)return!1;let o=!1;return!n.name||n.name==="*"||n.name==="+"||Pl(n.name)&&e&&n.name.test(e)?o=!0:typeof n.name=="function"?o=Reflect.apply(n.name,null,[e]):n.name===e&&(o=!0),o}trigger(e,n,o){let l=null;const r=this.callbacks.get(n);typeof r=="function"&&(l=Reflect.apply(r,null,[...o])),this.exposed&&typeof this.exposed[n]=="function"&&(l=Reflect.apply(this.exposed[n],this.exposed,[...o])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(l)}pull(){let e=this.parent;for(;e;){const n=e.getPersistantMessages();Array.isArray(n)&&n.length>0&&n.forEach(o=>{if(this.isMatched(this.name,o.matched))try{this.trigger(o.matched,o.action,o.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...o){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const i=e.resolve,a=e.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(a),typeof i=="function"&&i(...s)};e.resolve=u}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):Pl(e.name)&&this.name&&e.name.test(this.name)?l=!0:typeof e.name=="function"?l=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(l=!0);const r=[];if(l){const i=this.callbacks.get(n);if(typeof i=="function"){const a=Reflect.apply(i,null,[...o]);Ve(a)||r.push(a)}if(this.exposed&&typeof this.exposed[n]=="function"){const a=Reflect.apply(this.exposed[n],this.exposed,[...o]);Ve(a)||r.push(a)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...r),e.messagingPolicy==="Once")return r}return this.children.forEach(i=>{const a=Reflect.apply(i.emit,i,[{...e},n,...o]);Array.isArray(a)&&a.length>0&&Reflect.apply([].push,r,[...a])}),r}emitToChildren(e,n,...o){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const r=e.resolve,i=e.uniqueId??"",a=(...u)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...u)};e.resolve=a}e.cachePolicy="None"}const l=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...e},n,...o]);Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(e,n){this.callbacks.set(e,n)}};function Zt(e,n,o,l){const r=new _r(n,e,o);if(l&&typeof l=="object")for(const i in l)r.on(i,l[i]);return r}function zt(e){let n=e?.[Me];return!n&&(0,t.hasInjectionContext)()&&(n=(0,t.inject)(Me,null)),n}var ws=class{error(e,n){const o=zt(n.exposed);o?o.emit({name:"*"},"setErrorTip",e):n.exposed&&typeof n.exposed.setErrorTip=="function"&&n.exposed.setErrorTip(e)}reset(e){const n=zt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}success(e){const n=zt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}decorate(e,n,o){Array.isArray(e)||(e=[e]);const l=zt(o.exposed),r=n.find(a=>a.required===!0||a.type==="required"&&a.required!==!1),i=e.find(a=>a.required===!0||a.type==="required"&&a.required!==!1);!r&&i?l?l.emit({name:"*"},"setRequired",!0):o.exposed&&typeof o.exposed.setRequired=="function"&&o.exposed.setRequired(!0):r&&!i&&(l?l.emit({name:"*"},"setRequired",!1):o.exposed&&typeof o.exposed.setRequired=="function"&&o.exposed.setRequired(!1),this.reset(o))}getValue(e){return e.props.modelValue??e.exposed.modelValue}},Ot=new ws;function Cs(e){Ot=e}function Ns(e){Ot?Object.assign(Ot,e):Ot=e}function As(e,n){at.Schema.setValidator(e,n)}function Bs(e){at.Schema.deleteValidator(e)}var jr=["blur","clear"];function Ts(e){jr=e}function Wr(){return jr}var Yr=["focus","change","setValue"];function Vs(e){Yr=e}function Xr(){return Yr}function xs(e){at.Schema.messages(e)}function Dt(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const r=n.findIndex(i=>i.type===l.type);r!==-1&&n.splice(r,1),n.push(l)})}),n}function cn(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var Qe=Symbol("ValidateSchemaKey"),Qr=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,o){this.parent=e,this.descriptor=n,this.proxy=o,(this.descriptor.validate??!0)&&this.init()}init(){this.descriptor.pureDataValidate!==!0&&this.descriptor.valueName&&this.descriptor.context?.attrs&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const e=cn(Dt(this.attrRules,this.rules)),n=[],o=this.descriptor.context?.attrs??{};for(let r in o){let i=o[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let u={type:r};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let a=this.getValidator(r);if(a!==null){let u={type:r,validator:a};n.push(u)}}this.attrRules=cn(n);const l=Dt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(l,e)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...n){const o=this.descriptor.validateHandler;if(o&&typeof o[e]=="function")return Reflect.apply(o[e],o,[...n]);const l=Ot;return l&&typeof l[e]=="function"?Reflect.apply(l[e],l,[...n]):null}decorate(e,n){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,n,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.execHandler("getValue",this.proxy)}setValidator(e,n,o=!1){o?at.Schema.setValidator(e,n):this.validators[e]=n}getValidator(e){let n=this.validators[e]??null;return n||(n=this.parent?.getValidator(e)??null),n}deleteValidator(e,n=!1){n?at.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return at.Schema.hasValidator(e);{let o=Reflect.has(this.validators,e);return!o&&this.parent!==null&&(o=this.parent.hasValidator(e,!1)),o}}setRule(e){const n=Dt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=cn(e):this.rules=cn([e]);const o=Dt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(o,n)})}clear(){this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Dt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const o={[`${n}`]:e},l=this.getValue(),r={[`${n}`]:l},i=new at.Schema(o),a=this.proxy??r;return i.validate(r,{context:a}).then(u=>{if(u.pass)this.success();else{let s="error";Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors[0].message??s,u.errors=[u.errors[0]],u.errors[0].ref=a),this.error(s)}return u}).catch(u=>{const s=u.message??`${u}`;return this.error(s),u})}}return Promise.resolve({pass:!0})}};function Pn(e,n,o){o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string";const l={exposed:e,get $el(){return o.templateRefProxy?.$el},get props(){return o.props},get attrs(){return o.context?.attrs}};if(!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(i){return i.props?.[r]??i.exposed[r]}}}return new Qr(n,o,l)}var wn=Symbol.for("EventEmitterKey"),Gr=class{register=new Map;emitFn;constructor(e){this.emitFn=e??null}destroy(){this.emitFn=null,this.register.clear()}off(e,n){let o=this.register.get(e);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===n);l!==-1&&o.splice(l,1)}}on(e,n){let o=this.register.get(e);o||(o=new Array,this.register.set(e,o)),o.push(n)}emit(e,...n){const o=this.register.get(e);o&&o.forEach(l=>{try{Reflect.apply(l,null,[e,...n])}catch(r){console.error(r.message,r)}}),this.emitFn&&Reflect.apply(this.emitFn,null,[e,...n])}};function Ie(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function Cn(e,n){let o=0;return function(...l){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...l]))}}function Es(e,n){const o=Ie((l,r)=>{e=l,r()},n);return(0,t.customRef)((l,r)=>({get(){return l(),e},set(i){o(i,r)}}))}function $s(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function Zl(e,n,o,l=0,r=!0){let i=n,a=0;if(r){const s=e();if(a++,s||a>o)return}const u=()=>{const s=e();a++,!(s||a>o)&&(i+=l,setTimeout(u,i))};setTimeout(u,i)}var Ze=Symbol("DomainKey"),Ft=Symbol("DataItemsKey"),Mn=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}componentPublicExposed={};_props=(0,t.reactive)({});_datas={};constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={},this._datas={},this.componentPublicExposed={}}setData(e,n){this._datas[e]=n}getData(e){return this._datas[e]}hasData(e){return Reflect.has(this._datas,e)}deleteData(e){return Reflect.deleteProperty(this._datas,e)}merge(e,n=[]){for(const o in e){const l=e[o];n.length>0&&n.indexOf(l)!==-1||(this._props[o]=l)}}has(e){if(Reflect.has(this._props,e)){const n=this._props[e];if(n!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,n){this._props[e]=n}get(e,n){if(Reflect.has(this._props,e)){const o=this._props[e];if(o!=null)return o}return this.parent==null?n:this.parent.get(e,n)}getForParent(e,n){return this.parent==null?n:this.parent.get(e,n)}getForSelf(e){return this._props[e]}getAll(e){const n=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,e)){const l=o._props[e];n.push(l)}o=o._parent}return n}},Ds=new Mn;function ht(){return Ds}function nt(){return(0,t.inject)(Ze,null)}var Sl=Symbol("OriginalDateKey");function Jl(e,n,o){const l=(0,t.hasInjectionContext)(),r=l?(0,t.getCurrentScope)():null;let i=l?(0,t.inject)(Ze,null):null;i===null&&(i=ht());const a=n;let u=new Mn(a);u.parent=i;const s=S=>{u?.hasData(Sl)||c(S),u?.set("modelValue",S)},d=()=>u?.getForSelf("modelValue")??null,h=()=>u?.getData(Sl)??null,c=S=>{const m={};bt(!0,m,(0,t.toRaw)(S)),u.setData(Sl,m)},p=e.props,y=e.ignorePropKeys;(0,t.isReactive)(p)||typeof p=="function"?(0,t.watch)(p,S=>{u?.merge(S,y),S.modelValue&&c(S.modelValue)},{immediate:!0}):(u.merge(p,y),p.modelValue&&c(p.modelValue));const C=(S,m)=>{u?.set(S,m)},k=S=>u?.getForSelf(S)??null;if(u.componentPublicExposed[Ze]=u,(0,t.provide)(Ze,u),r!==null){const S=(0,t.inject)(Me,null),m=Zt(u.componentPublicExposed,S,a,o);u.broadcast=m,u.componentPublicExposed[Me]=m,(0,t.provide)(Me,m),u.componentPublicExposed.broadcast=(v,b,...V)=>{if(m)return Reflect.apply(m.emit,m,[v,b,...V])};const f=(0,t.inject)(Qe,null),g=Pn(u.componentPublicExposed,f,{componentName:"",context:e.context});u.validateSchema=g,u.componentPublicExposed[Qe]=g,(0,t.provide)(Qe,g),u.componentPublicExposed[Ft]=new Map,u.componentPublicExposed.validate=async(v=!0)=>{const b=[];let V=null;const A={};let T=!1;if(v===!0)V={name:"*"},T=!0;else if(Array.isArray(v)&&v.length>0){const N=v;V={name:q=>q?N.indexOf(q)!==-1:!1},T=!0}else if(v!=null&&typeof v=="object"){const N=v;if(N.deep!==!1){if(Object.assign(A,N),Array.isArray(N.include)&&N.include.length>0){const q=N.include;V={name:X=>X?q.indexOf(X)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const q=N.exclude;V={name:X=>X?q.indexOf(X)===-1:!1}}else V={name:"*"};T=!0}}if(T&&V){A.deep=!1;const N=m?.emitToChildren(V,"validate",A);N&&Reflect.apply([].push,b,N)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(N=>{let q=[];return N.forEach(X=>{X.pass===!1&&Array.isArray(X.errors)&&(q=[...q,...X.errors])}),q.length>0?{pass:!1,errors:q}:{pass:!0}}):Promise.resolve({pass:!0})};const B=e.context;u.componentPublicExposed.setNameValidateRules=(v,b=!0,V=!1)=>{if(V===!0){Reflect.ownKeys(v).forEach(A=>{let T=String(A);const N={componentName:"",fieldName:T,pureDataValidate:!0,context:B};if(u){const q=Jr(u,T,N,m,g);u.componentPublicExposed[Ft].set(T,q);const X=v[T];X&&q.validateSchema.setRule(X)}});return}if(b){const A=Reflect.ownKeys(v);m?.emitToChildren({name:T=>A.includes(T),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",v,!1)}},u.componentPublicExposed.clearValidate=(v=!0)=>{let b=null;const V={};let A=!1;if(v===!0)b={name:"*"},A=!0;else if(Array.isArray(v)&&v.length>0){const T=v;b={name:N=>N?T.indexOf(N)!==-1:!1},A=!0}else if(v!=null&&typeof v=="object"){const T=v;if(T.deep!==!1){if(Array.isArray(T.include)&&T.include.length>0){const N=T.include;b={name:q=>q?N.indexOf(q)!==-1:!1}}else if(Array.isArray(T.exclude)&&T.exclude.length>0){const N=T.exclude;b={name:q=>q?N.indexOf(q)===-1:!1}}else b={name:"*"};Object.assign(V,T),A=!0}}A&&b&&(V.deep=!1,m?.emitToChildren(b,"clearValidate",V))},u.componentPublicExposed.resetFields=v=>{const b=d();if(!b)return;const V={};if(bt(!0,V,h()??{}),Array.isArray(v))v.forEach(A=>{b[A]=V[A]});else if(v&&Array.isArray(v.include))(v.include??[]).forEach(A=>{b[A]=V[A]});else if(v&&Array.isArray(v.exclude)){let A=v.exclude??[];Reflect.ownKeys(V).forEach(T=>{A.includes(T)||(b[T]=V[T])})}else Object.assign(b,V);u?.componentPublicExposed?.clearValidate(v)},u.componentPublicExposed.setModelValue=(v,b)=>{if(!b||b===a)s(v);else{const V={name:b,messagingPolicy:"Once"};m?.emitToChildren(V,"setModelValue",v)}},u.componentPublicExposed.getModelValue=()=>d(),u.componentPublicExposed.setDomainProperty=(v,b)=>{C(v,b)},u.componentPublicExposed.getDomainProperty=v=>k(v),setTimeout(function(){m?.pull()},0)}(0,t.onScopeDispose)(function(){u?.validateSchema&&u.validateSchema.destroy(),u?.broadcast&&u?.broadcast?.destroy(),u.componentPublicExposed[Ft]&&u.componentPublicExposed[Ft].clear(),u?.destroy(),u=null});const w=e.context?.expose;return{domain:u,exposeApi:(S={})=>{Object.assign(u.componentPublicExposed,S),w?.(u.componentPublicExposed)}}}function Zr(e,n){let o=(0,t.inject)(Ze,null);o===null&&(o=ht());let l=new Mn(n);l.parent=o;const r=e.props,i=e.ignorePropKeys;(0,t.isReactive)(r)||typeof r=="function"?(0,t.watch)(r,u=>{l?.merge(u,i)},{immediate:!0}):l.merge(r,i),l.componentPublicExposed[Ze]=l,(0,t.provide)(Ze,l),(0,t.onScopeDispose)(()=>{l?.destroy(),l=null});const a=e.context?.expose;return{domain:l,exposeApi:(u={})=>{Object.assign(l.componentPublicExposed,u),a?.(l.componentPublicExposed)}}}function Be(e,n,o){const l={},r=n??e.componentName??"";let i=Zt(l,(0,t.inject)(Me,null),r,o);l[Me]=i,(0,t.provide)(Me,i),l.broadcast=(c,p,...y)=>i?Reflect.apply(i.emit,i,[c,p,...y]):null;const a=(0,t.inject)(Qe,null);e.fieldName=e.fieldName??r;let u=Pn(l,a,e);l[Qe]=u,(0,t.provide)(Qe,u),l.validate=async(c=null)=>{if(!u)return Promise.resolve({pass:!0});const p=[];let y=null;const C={};let k=!1,w=!1;if(c===!0)y={name:"*"},w=!0,k=!0;else if(Array.isArray(c)&&c.indexOf(r)!==-1){const S=c;y={name:m=>m?S.indexOf(m)!==-1:!1},w=!0,k=!0}else if(c&&typeof c=="object"){const S=c,m=S.ignoreDisabled??!0,f=S.ignoreReadonly??!0,g=S.ignoreHidden??!0;m===!0&&e.disabled===!0||f===!0&&e.readonly===!0||g===!0&&ql(e.templateRefProxy?.$el??e.templateRefProxy)?w=!1:(Array.isArray(S.include)&&S.include.indexOf(r)!==-1||Array.isArray(S.exclude)&&S.exclude.indexOf(r),w=!0),Object.assign(C,S),k=S.deep??!1}if(w){const S=u?.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 m=[];return S.forEach(f=>{f.pass===!1&&Array.isArray(f.errors)&&(m=[...m,...f.errors])}),m.length>0?{pass:!1,errors:m}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=c=>u?.setRule(c),l.setNameValidateRules=(c,p=!1)=>{const y=c[r];y&&u?.setRule(y),p&&i&&i.emitToChildren({name:C=>Reflect.ownKeys(c).includes(C)},"setNameValidateRules",c,!1)},l.clearValidate=(c=!0)=>{if(!u)return;let p=null;const y={};let C=!1,k=!1;if(c===!0)p={name:"*"},k=!0,C=!0;else if(Array.isArray(c)&&c.indexOf(r)!==-1){const w=c;p={name:S=>S?w.indexOf(S)!==-1:!1},k=!0,C=!0}else if(c&&typeof c=="object"){const w=c;(w.ignoreHidden??!0)===!0&&ql(e.templateRefProxy?.$el??e.templateRefProxy)?k=!1:(Array.isArray(w.include)&&w.include.indexOf(r)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(r),k=!0),Object.assign(y,w),C=w.deep??!1}k&&u?.clear(),C&&p&&(y.deep=!1,i?.emitToChildren(p,"clearValidate",y))};let s=new Gr(e.context?.emit);l[wn]=s,l.triggerEvent=(c,...p)=>{s.emit(c,...p)};const d=Ie((c="validate")=>{u&&(c==="reset"?u.clear():u.validate())},60);(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Wr()).forEach(c=>{s&&s.on(c,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Xr()).forEach(c=>{s&&s.on(c,p=>{d("reset")})}),setTimeout(function(){i?.pull()},0),(0,t.onScopeDispose)(()=>{i?.destroy(),i=null,u?.destroy(),l[Qe]=null,u=null,s?.destroy(),l[wn]=null,s=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null});const h=e.context?.expose;return{broadcast:i,validateSchema:u,emitEvent:(c,...p)=>{s&&Reflect.apply(s.emit,s,[c,...p])},onEvent:(c,p)=>{s&&Reflect.apply(s.on,s,[p])},offEvent:(c,p)=>{s&&Reflect.apply(s.off,s,[p])},componentPublicExposed:l,exposeApi:(c={})=>{Object.assign(l,c),h?.(l)}}}function Jr(e,n,o,l,r){const i={},a=n??"",u={getValue(){const c=e.getForSelf("modelValue");return c?c[a]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,a):!1}};o.fieldName=a,o.validateHandler={getValue(c){return u.getValue()}};let s=Pn({},r,o);i.validate=async(c=null)=>{if(!u.isExist())return console.warn(`validate error: field [${a}] not exist`),Promise.resolve({pass:!0});const p=[];let y=!1,C=!1;if(Array.isArray(c)&&c.indexOf(a)!==-1)C=!0,y=!0;else if(c&&typeof c=="object"){const k=c;Array.isArray(k.include)&&k.include.indexOf(a)!==-1||Array.isArray(k.exclude)&&k.exclude.indexOf(a),C=!0,y=k.deep??!1}else typeof c=="boolean"&&(y=c),C=!0;if(C&&s){const k=s.validate();p.push(k)}if(y){let k=null;const w={};if(c===!0)k={name:"*"};else if(Array.isArray(c)&&c.length>0){const S=c;k={name:m=>m?S.indexOf(m)!==-1:!1}}else if(c!=null&&typeof c=="object"){const S=c;if(Object.assign(w,S),Array.isArray(S.include)&&S.include.length>0){const m=S.include;k={name:f=>f?m.indexOf(f)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const m=S.exclude;k={name:f=>f?m.indexOf(f)===-1:!1}}else k={name:"*"}}if(k&&d){w.deep=!1;const S=d.emitToChildren(k,"validate",w);Reflect.apply([].push,p,S)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(k=>{let w=[];return k.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(w=[...w,...S.errors])}),w.length>0?{pass:!1,errors:w}:{pass:!0}}):Promise.resolve({pass:!0})},i.setValidateRule=c=>s?.setRule(c),i.setNameValidateRules=c=>{const p=c[a];p&&s?.setRule(p)};let d=Zt(i,l,a);(0,t.onScopeDispose)(()=>{s=null,d=null});const h=o.context?.expose;return{broadcast:d,validateSchema:s,componentPublicExposed:i,exposeApi:(c={})=>{Object.assign(i,c),h?.(i)}}}function Oe(e,n){let o={};if(n){const i=(0,t.inject)(Me,null),a=Zt(o,i,n,{});o[Me]=a,(0,t.provide)(Me,a)}let l=new Gr(e.context?.emit);o[wn]=l,o.triggerEvent=(i,...a)=>{l.emit(i,...a)},(0,t.onScopeDispose)(()=>{l?.destroy(),Reflect.deleteProperty(o,wn),o=null,l=null});const r=e.context?.expose;return{emitEvent:(i,...a)=>{l&&Reflect.apply(l.emit,l,[i,...a])},onEvent:(i,a)=>{l&&Reflect.apply(l.on,l,[a])},offEvent:(i,a)=>{l&&Reflect.apply(l.off,l,[a])},componentPublicExposed:o,exposeApi:(i={})=>{Object.assign(o,i),r?.(o)}}}var he=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ue(e)}px`:"",Is=he;function ue(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),i=1;if(tt){const{fontSize:a}=window.getComputedStyle(document.documentElement,null),u=a.indexOf("px");u>0&&(i=Number(a.substring(0,u)))}return r*=i,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))*n;const l=Number(e);return isNaN(l)?0:l}function qs(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}var Je="PageStateKey";function Fe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=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,o={},l=!0,r=-1,i=-1,a=0,u=0){if(e.headerHeight=ue(o.headerHeight??n.headerHeight??-1),e.headerPadding=Fe(o.headerPadding??n.headerPadding),e.footerHeight=ue(o.footerHeight??n.footerHeight??-1),e.footerPadding=Fe(o.footerPadding??n.footerPadding),e.contentPadding=Fe(o.contentPadding??n.contentPadding),l){const s=o.height??n.height;s?e.height=ue(s,i):e.height=ue(i)-ue(a,i)-ue(u,i),e.width=ue(o.width??n.width??0,r)}}function ei(e,n={}){const o={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});r&&(l.safeAreaTop=ue(r.top),l.safeAreaBottom=ue(r.bottom),l.safeAreaLeft=ue(r.left),l.safeAreaRight=ue(r.right));const i=e.get("pageLayout");if(!i)return null;zl(l,i,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const a=(0,t.reactive)(l),u=e.getForParent(Je);u&&(l.height=Nn(e,u),l.width=An(e,u),(0,t.watch)([()=>Nn(e,u),()=>An(e,u)],([d,h])=>{a.height=d,a.width=h}));const s=!u;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([d,h,c=-1,p=-1,y=0,C=0])=>{zl(a,h,n,s,c,p,y,C)}),e.set(Je,a),a}function Rn(e){return e.get(Je)}function zn(e,n){if(n=n??e.get(Je),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Fn(e,n){if(n=n??e.get(Je),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function Nn(e,n){if(n=n??e.get(Je),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=zn(e,n),l=Fn(e,n),r=ue(n.contentPadding.top??0),i=ue(n.contentPadding.bottom??0);return n.height-o-l-r-i}return 0}function An(e,n){if(n=n??e.get(Je),n){const o=ue(n.contentPadding.left??0),l=ue(n.contentPadding.right??0);return n.contentInnerWidth??n.width-o-l}return 0}function Ps(e){return!!e.getForParent(Je)}var eo=Symbol.for("InnerPageScopeKey");function ti(e){(0,t.provide)(eo,e)}function Jt(e=!1){return(0,t.inject)(eo,e)}var to=Symbol.for("AbstractPageScopeKey");function ni(e){(0,t.provide)(to,e)}function en(e=!1){return(0,t.inject)(to,e)}function li(e=!1){const n=en(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.headerBar??e:e}function oi(e=!1){const n=en(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.footerBar??e:e}function ai(e=!1){const n=en(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.content??e:e}var Fl=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function dn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ae(e,n,o=1,l){const r=nt();return r==null?e:o===0?(0,t.computed)(()=>{const i=r.getAll(n);for(let u=i.length-1;u>=0;u--){const s=i[u];if(dn(s,l))return s}const a=e.value;return dn(a,l)?a:null}):(0,t.computed)(()=>{const i=e.value;if(dn(i,l))return i;const a=r.getAll(n);for(let u=0;u<a.length;u++){const s=a[u];if(dn(s,l))return s}return null})}function ri(e){return Ae(e,"readonly",1)}function ii(e){return Ae(e,"disabled",1)}function si(e){return Ae(e,"browse",1)}function Te(e){const n=(0,t.ref)(null),o=(0,t.ref)(null),l=ii((0,t.computed)(()=>o.value??e.disabled)),r=(0,t.ref)(null);return{itemTemplateRef:n,innerDisabled:o,disabled:l,innerReadonly:r,readonly:ri((0,t.computed)(()=>r.value??e.readonly)),browse:si((0,t.computed)(()=>e.browse))}}function qe(e,n="modelValue",o=null,l){const r=(0,t.toRef)(e,n);let i=r.value;typeof o=="function"&&(i=o(r.value));const a=(0,t.ref)(i);return(0,t.watch)(r,u=>{if(typeof o=="function"){const s=o(u);s!==a.value&&(a.value=s,l&&l("setValue",s))}else u!==a.value&&(a.value=u,l&&l("setValue",u))}),a}var ui=new Map,Bn=new Map,no=null;function Ms(e){no=e}function Rs(){return no}function ut(){return no?.()??null}function ci(e,n,o){if(o){let l=Bn.get(o);l||(l=new Map,Bn.set(o,l)),l.set(e,n)}else ui.set(e,n)}function lt(e,n){let o=null;if(n){let l=Bn.get(n);l&&(o=l.get(e))}return o||(o=ui.get(e)),o}function zs(e,n){for(let o in e){const l=e[o];ci(o,l,n)}}function Fs(e){Bn.delete(e)}function Ls(){return{top:0,left:0,bottom:0,right:0}}function Os(){return tt?{rootWidth:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,rootHeight:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Ks(e,n){let o=e;if(n.componentPrefix){const l=o.indexOf("-");l!==-1?o=`${n.componentPrefix}${o.slice(l)}`:o=`${n.componentPrefix}-${o}`}return kn(o)}var Us=class{packages;resizeListener=null;resizeObserver=null;_version;get version(){return this._version}constructor(e,n){this.packages=e,this._version=n}install(e,n){n?.install!==!1&&this.packages.forEach(l=>{if(l.install)e.use(l,n);else if(l.name){const r=Ks(l.name,n);e.component(r,l)}});const o=ht();if(n.autoAdjustPageLayout!==!1){const l={...n},r=this.resizeListener;typeof n.resizeDebounceDelay=="number"?this.resizeListener=Ie(()=>{const i={...l};this.updateLayout(i,o)},n.resizeDebounceDelay):this.resizeListener=()=>{const i={...l};this.updateLayout(i,o)},window.visualViewport?(r&&window.visualViewport.removeEventListener("resize",r),window.visualViewport.addEventListener("resize",this.resizeListener)):window.ResizeObserver&&(this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new window.ResizeObserver(this.resizeListener),this.resizeObserver.observe(window.document.body))}this.updateLayout(n,o)}unInstall(){window.visualViewport?this.resizeListener&&window.visualViewport.removeEventListener("resize",this.resizeListener):window.ResizeObserver&&this.resizeObserver&&this.resizeObserver.disconnect()}updateLayout(e,n){const o=e.headerBarHeight??0,l=e.footerBarHeight??0,r=bt({},Ls(),e.safeAreaInset),i=Os(),a=bt({},i.pageLayout,e.pageLayout);n=n??ht(),n.set("safeAreaInset",r),n.set("headerBarHeight",o),n.set("footerBarHeight",l),n.set("pageLayout",a),n.set("rootWidth",i.rootWidth),n.set("rootHeight",i.rootHeight);const u=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const s in e)u.indexOf(s)===-1&&n.set(s,e[s])}setScopeGetter(e){Ms(e)}getScopeGetter(){return Rs()}setAPI(e,n,o){ci(e,n,o)}getAPI(e,n){return lt(e,n)}batchSetAPI(e,n){zs(e,n)}clearScopeAPI(e){Fs(e)}getRootDomain(){return ht()}};function ee(e){const n=`fox-${e}`,o=kn(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=(r,i)=>{let a=l.name;i?.componentPrefix&&(a=`${i.componentPrefix}-${l.baseName}`,a=kn(a)),r.component(a,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var Hs=(e,n)=>{let o=document.body;const l=e.teleport||"body";l!="body"&&(Rr(l)?o=document.querySelector(l):o=e.teleport);const r=document.createElement("view");r.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let i={};bn(n.wrapper)?i=n.wrapper(o,r):i=n.wrapper;const a=(0,t.createApp)(i,e),u=n.components;return u&&u.forEach(s=>{a.use(s)}),o.appendChild(r),{instance:a.mount(r),unmount:()=>{a.unmount(),o.removeChild(r)}}},di=(e,n)=>e?(0,t.h)(e,n):"",ge={browse:{type:[String],required:!1,default:()=>null},disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},be={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},fi={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}},mi={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}},pi=[];for(const e in mi)pi.push(e);var _s={name:{type:String,required:!1,default:()=>""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},js=(e,n)=>({inheritAttrs:!0,props:{...ge,...fi,..._s},setup(o,l){const r=!!en(!1),i=Jt(!1),{domain:a,exposeApi:u}=Jl({props:o,context:l},o.name);if(a){const c=ei(a,o);u({getPageContentHeight:()=>Nn(a,c),getPageContentWidth:()=>An(a,c),getPageHeaderHeight:()=>zn(a,c),getPageFooterHeight:()=>Fn(a,c)}),c&&i&&(c.contentHeight="100%")}const s=(0,t.computed)(()=>({[e]:!0,"is-inner":i})),d=(0,t.computed)(()=>({})),h=(c,p=!1)=>{a.componentPublicExposed&&typeof a.componentPublicExposed.setNameValidateRules=="function"&&a.componentPublicExposed.setNameValidateRules(c,!0,p)};return(0,t.watch)([()=>o.rules,()=>o.pureDataRules],([c,p],[y,C])=>{if(c&&y){const k=(0,t.toRaw)(y),w=(0,t.toRaw)(c),S=w?Reflect.ownKeys(w):[];(k?Reflect.ownKeys(k):[]).forEach(m=>{S.includes(m)||(w[m]=[])}),h(w)}if(p&&C){const k=(0,t.toRaw)(C),w=(0,t.toRaw)(p),S=w?Reflect.ownKeys(w):[];(k?Reflect.ownKeys(k):[]).forEach(m=>{S.includes(m)||(w[m]=[])}),h(w,!0)}},{deep:!0}),(0,t.onMounted)(()=>{o.rules&&h((0,t.toRaw)(o.rules)),o.pureDataRules&&h((0,t.toRaw)(o.pureDataRules),!0)}),()=>r?l.slots?.default?.():(0,t.h)("div",{class:s.value,style:d.value},[l.slots?.default?.()])}}),{componentName:Ws,create:Ys,scope:Xs}=ee("page"),Qs=Ys(js(Ws,Xs)),lo=Qs;function oo(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Ln(e){const n=(0,t.unref)(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),i=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-r,height:n.clientHeight-i-a}}var hi={headerbar:{},radio:{},checkbox:{}};function Gs(e){Object.assign(hi,e)}function On(){return hi}var Zs=(e,n,o,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,i){const a=li(!1),u=Jt(!1),s=a?null:nt(),d=s?Rn(s):null,h=On(),c=e,p=(0,t.computed)(()=>{const x={[c]:!0,[`${c}--border`]:r.border,[`${c}--fixed`]:r.fixed};return u||(x[`${c}--safe-area-inset-top`]=r.safeAreaInsetTop),x}),y=(0,t.computed)(()=>({[`${c}__inner`]:!0,[`${c}__inner--${r.align}`]:!0})),C=Ve(r.height)?null:ue(r.height),k=(0,t.computed)(()=>{const x={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(a)return x;if(s&&d){const M=Fe(r.padding??d.headerPadding);if(Object.assign(x,M),Ve(C)||(d.headerHeight=C),x.height=d.headerHeight,x.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,x.safeAreaTop>0){const P=ue(M.top??0);x.top=x.safeAreaTop+P,x.height&&x.height>0&&(x.height=x.height+x.safeAreaTop)}return x}if(Ve(C)||(x.height=C),r.padding){const M=Fe(r.padding);Object.assign(x,M)}return x}),w=(0,t.ref)(null),S=()=>d&&w.value&&!Gl(w.value)?(l||(d.headerAllHeight=oo(w.value).height),d.headerMounted=!0,!0):!1,m=Ie(S,120);let f=null;(0,t.onMounted)(()=>{a||d&&(Zl(S,50,5,50,!0),window.ResizeObserver&&w.value&&(f=new window.ResizeObserver(m),f.observe(w.value)))}),(0,t.onUnmounted)(()=>{a||d&&(d.headerMounted=!1,f&&(f.disconnect(),f=null))});const g=(0,t.computed)(()=>{const x={};return a||(k.value.height!==null&&k.value.height!==void 0&&(x.height=`${k.value.height}px`),k.value.top!==null&&k.value.top!==void 0&&(x.paddingTop=`${k.value.top}px`),k.value.left!==null&&k.value.left!==void 0&&(x.paddingLeft=`${k.value.left}px`),k.value.right!==null&&k.value.right!==void 0&&(x.paddingRight=`${k.value.right}px`),k.value.bottom!==null&&k.value.bottom!==void 0&&(x.paddingBottom=`${k.value.bottom}px`)),x}),B=(0,t.computed)(()=>{const x=k.value?.height;return Ve(x)||x<0?!0:x>0});function v(){i.emit("back")}function b(){i.emit("click-title")}function V(){i.emit("click-right")}function A(){i.emit("click-right-text")}const T=()=>{if(!r.leftShow)return null;const x=[];if(i.slots.left)x.push(i.slots.left());else{if(i.slots.leftIcon){const M=(0,t.h)("view",{class:"left-icon",onClick:v},[i.slots.leftIcon()]);x.push(M)}else{const M=r.leftIcon??h.headerbar.Left??o,P=(0,t.h)("view",{class:"left-icon",onClick:v},[(0,t.h)(M)]);x.push(P)}if(r.leftText){const M=(0,t.h)("view",{class:"left-text",onClick:v},[r.leftText]);x.push(M)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},x)},N=()=>{if(!r.rightShow)return null;const x=[];if(i.slots.right)x.push(i.slots.right());else{if(r.rightText){const M=(0,t.h)("view",{class:"right-text",onClick:A},[r.rightText]);x.push(M)}if(i.slots.rightIcon){const M=(0,t.h)("view",{class:"right-icon",onClick:V},[i.slots.rightIcon()]);x.push(M)}else if(r.rightIcon){const M=(0,t.h)("view",{class:"right-icon",onClick:V},[(0,t.h)(r.rightIcon)]);x.push(M)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},x)},q=()=>{if(!r.titleShow)return null;const x=[],M=i.slots.default?i.slots.default():null;if(M)x.push(M);else{if(r.title){const P=(0,t.h)("view",{class:"title-text"},[r.title]);x.push(P)}if(i.slots.titleIcon){const P=(0,t.h)("view",{class:"title-icon",onClick:b},[i.slots.titleIcon()]);x.push(P)}else if(r.titleIcon){const P=(0,t.h)("view",{class:"title-icon",onClick:b},[(0,t.h)(r.titleIcon)]);x.push(P)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},x)},X=()=>{const x=[],M=i.slots.bottom?i.slots.bottom():null;return M&&x.push(M),x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},x)};return()=>{if(a||!B.value)return null;const x=[];if(i.slots.all)x.push(i.slots.all());else{const M=[],P=T();P&&M.push(P);const K=q();K&&M.push(K);const R=N();if(R&&M.push(R),M.length>0){const I=(0,t.h)("view",{class:y.value},M);x.push(I)}const j=X();j&&x.push(j)}return x.length===0?null:(0,t.h)("view",{class:p.value,style:g.value,ref:w},x)}}}),{componentName:Js,create:eu,scope:tu}=ee("header-bar"),nu=eu(Zs(Js,tu,ae.Left,!1)),ao=nu;function lu(e,n,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,r){const i=oi(!1),a=Jt(!1),u=i?null:nt(),s=u?Rn(u):null,d=e,h=(0,t.computed)(()=>{const f={[d]:!0,[`${d}--${l.align}`]:!0,[`${d}--border`]:l.border,[`${d}--fixed`]:l.fixed};return a||(f[`${d}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),f}),c=Ve(l.height)?null:ue(l.height),p=(0,t.computed)(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(i)return f;if(u&&s){const g=Fe(l.padding??s.footerPadding);if(Object.assign(f,g),Ve(c)||(s.footerHeight=c),f.height=s.footerHeight,f.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,f.safeAreaBottom>0){const B=ue(g.bottom??0);f.bottom=f.safeAreaBottom+B,f.height&&f.height>0&&(f.height=f.height+f.safeAreaBottom)}return f}if(Ve(c)||(f.height=c),l.padding){const g=Fe(l.padding);Object.assign(f,g)}return f}),y=(0,t.computed)(()=>{const f=p.value?.height;return Ve(f)||f<0?!0:f>0}),C=(0,t.ref)(null),k=()=>s&&C.value&&!Gl(C.value)?(o||(s.footerAllHeight=oo(C.value).height),s.footerMounted=!0,!0):!1,w=Ie(k,120);let S=null;(0,t.onMounted)(()=>{i||s&&(Zl(k,50,5,50,!0),window.ResizeObserver&&(S=new window.ResizeObserver(w),S.observe(C.value)))}),(0,t.onUnmounted)(()=>{i||s&&(s.footerMounted=!1,S&&(S.disconnect(),S=null))});const m=(0,t.computed)(()=>{const f={};return i||(p.value.height!==null&&p.value.height!==void 0&&(f.height=he(p.value.height)),p.value.top!==null&&p.value.top!==void 0&&(f.paddingTop=he(p.value.top)),p.value.left!==null&&p.value.left!==void 0&&(f.paddingLeft=he(p.value.left)),p.value.right!==null&&p.value.right!==void 0&&(f.paddingRight=he(p.value.right)),p.value.bottom!==null&&p.value.bottom!==void 0&&(f.paddingBottom=he(p.value.bottom))),f});return()=>{if(i||!y.value)return null;const f=r.slots.default?r.slots.default():[];return(0,t.h)("view",{ref:C,class:h.value,style:m.value},f)}}}}var{componentName:ou,create:au,scope:ru}=ee("footer-bar"),iu=au(lu(ou,ru,!1)),ro=iu;function su(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:l,attrs:r}){const i=ai(!1),a=Jt(!1),u=i?null:nt(),s=(0,t.computed)(()=>({[e]:!0})),d=u?Rn(u):null,h=(0,t.computed)(()=>{const k={};if(i)return k;if(u&&d){if(o.padding){const b=Fe(o.padding);Object.assign(d.contentPadding,b)}const w=zn(u,d),S=Fn(u,d);let m="";d.contentHeight?m=`${d.contentHeight}`:m=`${d.height}px`,console.debug("[content]page height:",m),console.debug("[content]header height:",w),console.debug("[content]footer height:",S),console.debug("[content]padding:",d.contentPadding),k.height=m;let f=ue((d&&d.contentPadding&&d.contentPadding.top)??-1);(f>=0||w>0)&&(f=f<0?0:f,k.paddingTop=`${w+f}px`);let g=ue((d&&d.contentPadding&&d.contentPadding.bottom)??-1);(g>=0||S>0)&&(g=g<0?0:g,k.paddingBottom=`${S+g}px`);const B=ue((d&&d.contentPadding&&d.contentPadding.left)??-1);B>=0&&(k.paddingLeft=`${B}px`);const v=ue((d&&d.contentPadding&&d.contentPadding.right)??-1);return v>=0&&(k.paddingRight=`${v}px`),k}if(o.padding){const w=Fe(o.padding);w.left&&(k.paddingLeft=`${w.left}px`),w.top&&(k.paddingTop=`${w.top}px`),w.right&&(k.paddingRight=`${w.right}px`),w.bottom&&(k.paddingBottom=`${w.bottom}px`)}return k}),c=(0,t.ref)(null),p=()=>{if(d&&c.value){const k=Ln(c.value);d.contentInnerHeight=k.height,d.contentInnerWidth=k.width}},y=Ie(p,120);let C=null;return(0,t.onMounted)(()=>{a||i||(requestAnimationFrame(p),window.ResizeObserver&&c.value&&(C=new window.ResizeObserver(y),C.observe(c.value)))}),(0,t.onUnmounted)(()=>{a||i||C&&(C.disconnect(),C=null)}),()=>i?l.default?.():(0,t.h)(o.tag??"view",{...r,ref:c,class:s.value,style:h.value},l)}}}var{componentName:uu,create:cu,scope:du}=ee("content"),fu=cu(su(uu,du)),io=fu,St="GroupStateKey",vi=Symbol.for("GroupScopeKey");function Kn(){return(0,t.inject)(vi,!1)}function Un(e=!0){(0,t.provide)(vi,e)}function mu(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Ve(l)||(e[o]=l)})}function pu(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};mu(o,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(o),passport:0,order:{index:0}});return e.set(St,l),l}function kl(e,n,o=-1,l=-1,r=!1,i,a,u){const s=e.get(St);if(!s)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),l===-1&&(l=d.gutter??0),i||(i=d.minItemWidth??-1),a||(a=d.maxItemWidth??-1);const h=ue(i),c=ue(a);u||(u=d.type??"grid");const p=()=>{const y=n===""||n===-1,C=ue(n);let k=de(o);const w=ue(l);if(!y){let f=(C-(k-1)*w)/k;for(;c!==-1&&f>c;)k++,f=(C-(k-1)*w)/k;for(;h!==-1&&k>1&&f<h;)k--,f=(C-(k-1)*w)/k}let S=!1;const m=s.layout;m.value.width=n,m.value.column!==k&&(m.value.column=k,S=!0),m.value.gutter!==w&&(m.value.gutter=w,S=!0),m.value.type!==u&&(m.value.type=u,S=!0),S&&(0,t.triggerRef)(m)};if(r)p();else{const y=++s.passport;setTimeout(()=>{y===s.passport&&p()},50)}}function Hn(e,n=!1){let o;return n?o=e.getForParent(St):o=e.get(St),o.layout}function _n(e,n=!1){let o;return n?o=e.getForParent(St):o=e.get(St),o.order}function Za(e,n=1){if(n==="stretch")return-1;const o=de(n);return o===-1?100:100*o/e}function jn(e,n,o=1,l=0,r){const i={};let a=0;r?a=ue(r):a=Za(n.column,o),a>0&&(i.width=`${a}%`);const u=Za(n.column,l);u>0&&(i["margin-left"]=`${u}%`);const s=ue(n.gutter)/2;return s>0&&(i["padding-left"]=`${s}px`,i["padding-right"]=`${s}px`),i}function Wn(e,n,o=1,l=0){if(o==="stretch"){const s=e.index%n.column,d=s+(n.column-s);return e.index=e.index+(d-s),{"grid-column":`${s+1} / -1`}}let r=de(o);if(r===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const i=de(l)%n.column;let a=(e.index+i)%n.column,u=a+r;return u>n.column?(a=0,u=a+r,e.index=e.index+(n.column-a)+r):e.index=e.index+i+r,i>0?{"grid-column":`${a+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}var gi=Symbol("RollingStateKey");function hu(e){(0,t.provide)(gi,e)}function vu(){return(0,t.inject)(gi,null)}function Ll(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(o.getPropertyValue("padding-top")),r=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function gu(e){let n=Ll(e);if(n<=0){const o=e.cloneNode(!0);o.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=Ll(o),document.body.removeChild(o)}return n}function yu(e,n,o){const l=typeof e=="number"?e:parseInt(e),r=typeof n=="number"?n:parseInt(n),i=typeof o=="number"?o:parseInt(o);if(l<=0)return"1fr";const a=(l-(r-1)*i)/r;return a>0?`${a}px`:"1fr"}function yi(e){const n=[];return e.forEach(o=>{o.type===t.Fragment&&Array.isArray(o.children)?n.push(...yi(o.children)):n.push(o)}),n}function bu(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function tn(e){function n(){return yi(e?.()??[]).filter(bu)}return{getChildren:n}}var Su={...ge,...fi,...mi};function ku(e,n,o){return{props:Su,emits:["update:collapse","header-click"],setup(l,r){const{domain:i,exposeApi:a}=Jl({props:l,ignorePropKeys:pi,context:r},l.prop??l.name),u=pu(i,{type:l.type}),s=Kn();Un(!0);const d=l.rollingDisplay?vu():null,h=(0,t.ref)(null),c=(0,t.computed)(()=>l.rollingDisplay?d&&!d.disabled:!1),p=(0,t.computed)(()=>s&&i?Hn(i,!0).value:null),y=(Y,ne=!1)=>{i.componentPublicExposed&&typeof i.componentPublicExposed.setNameValidateRules=="function"&&i.componentPublicExposed.setNameValidateRules(Y,!0,ne)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([Y,ne],[O,H])=>{if(Y&&O){const $=(0,t.toRaw)(O),E=(0,t.toRaw)(Y),z=E?Reflect.ownKeys(E):[];($?Reflect.ownKeys($):[]).forEach(Z=>{z.includes(Z)||(E[Z]=[])}),y(E)}if(ne&&H){const $=(0,t.toRaw)(H),E=(0,t.toRaw)(ne),z=E?Reflect.ownKeys(E):[];($?Reflect.ownKeys($):[]).forEach(Z=>{z.includes(Z)||(E[Z]=[])}),y(E,!0)}},{deep:!0});const C=e,k=(0,t.computed)(()=>{const Y={};if(Y.height=M.value,l.width)l.width!=="auto"&&(Y.width=he(l.width));else{const ne=s?_n(i,!0):null;if(p.value&&ne){if(p.value.type==="grid"){const O=Wn(ne,p.value,l.span,l.offset);Object.assign(Y,O)}else if(p.value.type==="flow"){const O=jn(ne,p.value,l.span,l.offset,l.width);Object.assign(Y,O)}}}return Y}),w=(0,t.computed)(()=>{const Y=u.layout.value.type;return Y==="grid"||Y==="flow"?{[`${C}--${Y}`]:!0,[`${C}--${Y}-justify-${l.justify}`]:!0,[`${C}--${Y}-align-${l.align}`]:!0,[`${C}--gutter`]:!0}:{[`${C}--${Y}`]:!0,[`${C}--gutter`]:!0}}),S=(0,t.computed)(()=>{if(u.layout.value.type==="grid"){let Y="";if(l.columnWidth)Y=`repeat(auto-fill, ${l.columnWidth})`;else{const ne=yu(V.value,u.layout.value.column,u.layout.value.gutter);Y=`repeat(${u.layout.value.column}, ${ne})`}return{"column-gap":`${u.layout.value.gutter}px`,"grid-template-columns":Y}}}),m=(0,t.toRef)(l,"gutter"),f=(0,t.toRef)(l,"column"),g=(0,t.computed)(()=>s||c.value?!0:Se(l.isWrap)),B=[],v=Y=>{B.push(Y)},b=()=>{let Y=B.length;B.splice(0,Y)},V=(0,t.ref)(-1),A=Y=>{const ne=Ln(Y).width;ne>0&&ne!==V.value&&(V.value=ne)};kl(i,V.value,f.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([V,f,m],([Y,ne,O])=>{u.order.index=0,kl(i,Y,ne,O,!1,l.minItemWidth,l.maxItemWidth,l.type)});const T=(0,t.computed)(()=>P.value?l.expandText??"":l.collapseText??""),N=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),q=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),X=(0,t.ref)(),x=(0,t.ref)(),M=(0,t.computed)(()=>K.value||he(l.height)||""),P=(0,t.ref)(!1),K=(0,t.ref)(""),R=(0,t.ref)(!1);let j=-1;const I=(Y,ne=!0)=>{const O=X.value;if(O&&P.value!==Y){if(j=j<=0?gu(O):j,R.value=!0,ne)if(O.style["will-change"]="height",O.ontransitionend=function(){O.ontransitionend=null,this.style["will-change"]="auto",Y||(K.value="",R.value=!1)},Y){let H=0;l.collapseHeight?H=l.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(H=x.value.offsetHeight),K.value=`${j}px`,(0,t.nextTick)(()=>{K.value=`${H}px`})}else K.value=`${j}px`;else if(Y){let H=0;l.collapseHeight?H=l.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(H=x.value.offsetHeight),K.value=`${H}px`}else R.value=!1,K.value=`${j}px`;P.value=Y,r.emit("update:collapse",Y)}};(0,t.watch)(()=>l.collapse,Y=>{I(Y)});const Q=Y=>{r.emit("header-click",Y)},J=()=>{oe()},oe=Y=>{Y=Y??!P.value,I(Y)};a({toggleCollapse:oe,doLayout:()=>{B[0]&&(A(B[0]),kl(i,V.value,f.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let G=null,F=!0;const te=Y=>{if(l.rules&&y((0,t.toRaw)(l.rules)),l.pureDataRules&&y((0,t.toRaw)(l.pureDataRules),!0),!!tt&&(Y&&I(Se(l.collapse),!1),l.autoLayout&&Array.isArray(B)&&B.length>0)){const ne=B[0];if(A(ne),window.ResizeObserver){const O=Ie(()=>A(ne),120);G=new window.ResizeObserver(O),G.observe(ne)}}},U=()=>{G?.disconnect(),G=null},D=!c.value||d?.acquire();D&&(h.value=c.value?!0:null),(0,t.onMounted)(()=>{if(D&&(te(F),F=!1),c.value&&d){let Y=null,ne=d.initialHeight;d.observe(X.value,O=>{if(O!==h.value)if(O)h.value=!0,P.value||(K.value=""),Y=setTimeout(()=>{Y=null,h.value!==!1&&(te(F),F=!1)},100);else{if(Y!==null&&clearTimeout(Y),h.value=!1,!P.value)if(F)K.value=d.initialHeight;else{let H=Ll(X.value);H<=0?K.value=ne:(K.value=`${H}px`,ne=K.value)}F||U()}})}}),(0,t.onUnmounted)(()=>{G?.disconnect(),d&&d.unobserve(X.value)});const L=(Y="right")=>{const ne=[];if(T.value){const $=(0,t.h)("span",{class:N.value},[T.value]);ne.push($)}const O={class:q.value},H=(0,t.h)(l.collapseIcon??o,O);return ne.push(H),ne.length>0?(0,t.h)("div",{class:{[`${C}__header-collapse`]:!0,[`is-${Y}`]:!0},onClick:J},ne):null},_=(Y,ne,O,H)=>{const $={...w.value};if(ne===0&&($[`${C}__first`]=!0),O>=H-1&&($[`${C}__last`]=!0),g.value===!1){const E=r.attrs.class;E&&($[`${E}`]=!0)}return(0,t.h)("div",{ref:v,key:`${ne}`,class:$,style:S.value},Y)};return()=>{const Y=l.prop??l.name;if(c.value&&h.value!==!0)return(0,t.h)(l.tag||"div",{ref:X,prop:Y,class:{[`${C}`]:!0,"is-collapse":R.value},style:k.value},[]);u.order.index=0;const ne=[];let O=0;if(r.slots.header){const z=(0,t.h)("div",{key:`${O++}`,ref:x,class:{[`${C}__header`]:!0,[`${C}__first`]:!0},onClick:Q},[r.slots.header()]);ne.push(z)}else{const z=[],Z=l.collapsePosition==="left";if(Z&&l.showCollapse){const le=L("left");le&&z.push(le)}if(l.title||r.slots.title){if(l.showMark){const le={class:{[`${C}__header-mark`]:!0}};l.markColor&&(le.style={background:l.markColor});const ie=(0,t.h)("div",le);z.push(ie)}if(r.slots.title){const le=(0,t.h)("div",{class:{[`${C}__header-title`]:!0}},[r.slots.title()]);z.push(le)}else if(l.title){const le=(0,t.h)("div",{class:{[`${C}__header-title`]:!0}},[l.title]);z.push(le)}}if(r.slots.toolbar&&z.push(r.slots.toolbar()),!Z&&l.showCollapse){const le=L("right");le&&z.push(le)}if(z.length>0){const le=(0,t.h)("div",{key:`${O++}`,ref:x,class:{[`${C}__header`]:!0,[`${C}__first`]:!0},onClick:Q},z);ne.push(le)}}b();const{getChildren:H}=tn(r.slots.default),$=H(),E=u.layout.value.type;if(E==="grid"){const z=_($,O++,0,$.length);ne.push(z)}else if(E==="flow"){const z=_($,O++,0,$.length);ne.push(z)}else for(let z=0;z<$.length;z++){const Z=$[z],le=_([Z],O++,z,$.length);ne.push(le)}return g.value?(0,t.h)(l.tag||"div",{ref:X,prop:Y,class:{[`${C}`]:!0,"is-collapse":R.value},style:k.value},[ne]):ne}}}}var{componentName:wu,create:Cu,scope:Nu}=ee("group"),Au=Cu(ku(wu,Nu,ae.RectUp)),so=Au;function Bu(e){return e===window}var Tu=/matrix\((.+)\)/,uo=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(Bu(n))return{x:0,y:0};let o=0,l=0,r=n;for(;r!==null;)o+=r.offsetLeft,l+=r.offsetTop,r=r.offsetParent;let i=0,a=0,u=0,s=0;for(r=n;r!==document;){a+=r.scrollTop,i+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const h=Tu.exec(d);if(h){let c=h[1].split(/\s*,\s*/);c.length==6&&(u+=Number(c[4]),s+=Number(c[5]))}}r=r.parentNode}return o-=i,l-=a,o+=u,l+=s,{x:o,y:l}},Vu=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{}})}},xu=class{monitorRegister=new WeakMap;watch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new Vu,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(n),o=o.parentNode}}unwatch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(n),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}},Kt=new xu,bi={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:Eu,create:$u}=ee("price"),Du=$u({props:{...bi},setup(e){const n=(0,t.computed)(()=>({[Eu]:!0})),o=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>ke(e.price)==0?"":$n(e.price,e.decimalLength,!0,de(e.digits),e.separator));return{classes:n,showSymbol:o,intText:(0,t.computed)(()=>{let r=l.value;if(r.length==0)return"";let i=r.indexOf(".");return r.substring(0,i)}),decimalText:(0,t.computed)(()=>{let r=l.value;if(r.length==0)return"";let i=r.indexOf(".");return r.substring(i+1)})}}}),re=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o},Iu=["innerHTML"],qu=["innerHTML"];function Pu(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Iu)):(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,qu)):(0,t.createCommentVNode)("",!0)],2)}var Yn=re(Du,[["render",Pu]]),{componentName:wl,create:Mu}=ee("hint-text"),Ru=Mu({components:{Price:Yn},props:{...bi,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:()=>6},showArrow:{type:Boolean,default:()=>!0},arrowOffset:{type:Number,default:()=>20},offset:{type:Number,default:()=>12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const o=(0,t.ref)({top:null,right:null,bottom:null,left:null}),l=(0,t.ref)({x:0,y:0}),r=(0,t.ref)(0),i=(0,t.ref)(0),a=(0,t.ref)(e.placement),u=(0,t.ref)(!1),s=(0,t.ref)(null),d=(N,q,X,x,M,P)=>{const K=document.documentElement.clientWidth||document.body.clientWidth,R=document.documentElement.clientHeight||document.body.clientHeight,j=N.split("-");let I=[];j[0]==="top"?I=["top","bottom","right","left"]:j[0]==="bottom"?I=["bottom","top","right","left"]:j[0]==="left"?I=["left","top","bottom","right"]:j[0]==="right"&&(I=["right","top","bottom","left"]);const Q={top:null,right:null,bottom:null,left:null},J=[];for(let oe=0;oe<I.length;oe++){const W=I[oe];if(J[0]=W,j[1]&&(J[1]=j[1]),W==="top"){const G=q.y-P-e.arrowSize-e.offset;if(G>=0){Q.top=G;let F=0;j[1]==="start"?F=q.x:j[1]==="end"?F=q.x+X-M:F=q.x+X/2-M/2;const te=K-F-M;te<0?(F+=te,c.value=-te):c.value=0,Q.left=F<0?0:F;break}}else if(W==="bottom"){const G=q.y+x+e.arrowSize+e.offset;if(G+P<=R){Q.top=G;let F=0;j[1]==="start"?F=q.x:j[1]==="end"?F=q.x+X-M:F=q.x+X/2-M/2;const te=K-F-M;te<0?(F+=te,c.value=-te):c.value=0,Q.left=F<0?0:F;break}}else if(W==="left"){const G=q.x-M-e.arrowSize-e.offset;if(G>=0){Q.left=G;let F=0;j[1]==="start"?F=q.y:j[1]==="end"?F=q.y+x-P:F=q.y+x/2-P/2,Q.top=F<0?0:F;break}}else if(W==="right"){const G=q.x+X+e.arrowSize+e.offset;if(G+M<=K){Q.left=G;let F=0;j[1]==="start"?F=q.y:j[1]==="end"?F=q.y+x-P:F=q.y+x/2-P/2,Q.top=F<0?0:F;break}}}return{bestPlacement:J.join("-"),bestInsetRect:Q}},h=(N,q,X=10)=>{if(!tt||q===!1||!N)return;l.value=uo(e.reference),r.value=e.reference.offsetWidth,i.value=e.reference.offsetHeight;const x=s.value.offsetHeight,M=s.value.offsetWidth,{bestPlacement:P,bestInsetRect:K}=d(e.placement,l.value,r.value,i.value,M,x);a.value=P,o.value=K,u.value=!0},c=(0,t.ref)(0),p=Ie(()=>{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),w=Ie(N=>{const q=N[0];q&&(k.value=q.isIntersecting)},10),S=new IntersectionObserver(w);(0,t.watch)([()=>e.message,()=>e.visible],([N,q])=>{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 m=(0,t.computed)(()=>{const N={[wl]:!0};return a.value.startsWith("top")?N["is-top"]=!0:a.value.startsWith("right")?N["is-right"]=!0:a.value.startsWith("bottom")?N["is-bottom"]=!0:a.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}),f=(0,t.computed)(()=>{const N={};return o.value.top!==null&&(N.top=`${o.value.top}px`),o.value.right!==null&&(N.right=`${o.value.right}px`),o.value.bottom!==null&&(N.bottom=`${o.value.bottom}px`),o.value.left!==null&&(N.left=`${o.value.left}px`),e.autoFit&&(N["min-width"]=`${r.value}px`),N["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,u.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}),g=(0,t.computed)(()=>{const N=[`${wl}__content`];return e.customTextClass&&N.push(e.customTextClass),N}),B=(0,t.computed)(()=>{const N={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(N,e.customTextStyle),N}),v=(0,t.computed)(()=>({[`${wl}__arrow`]:!0})),b=(0,t.computed)(()=>{const N={};return e.showArrow?(N.width=`${e.arrowSize}px`,N.height=`${e.arrowSize}px`,a.value==="top"?(N.left="50%",N.bottom=`-${e.arrowSize}px`,N.transform=" translate(-50%, 0%)"):a.value==="top-start"?(N.left=`${e.arrowOffset+c.value}px`,N.bottom=`-${e.arrowSize}px`):a.value==="top-end"?(N.right=`${e.arrowOffset-c.value}px`,N.bottom=`-${e.arrowSize}px`):a.value==="right"?(N.left=`-${e.arrowSize}px`,N.top="50%",N.transform=" translate(0%, -50%)"):a.value==="right-start"?(N.left=`-${e.arrowSize}px`,N.top=`${e.arrowOffset}px`):a.value==="right-end"?(N.left=`-${e.arrowSize}px`,N.bottom=`-${e.arrowOffset}px`):a.value==="bottom"?(N.left="50%",N.top=`-${e.arrowSize}px`,N.transform=" translate(-50%, 0%)"):a.value==="bottom-start"?(N.left=`${e.arrowOffset+c.value}px`,N.top=`-${e.arrowSize}px`):a.value==="bottom-end"?(N.right=`${e.arrowOffset-c.value}px`,N.top=`-${e.arrowSize}px`):a.value==="left"?(N.right=`-${e.arrowSize}px`,N.top="50%",N.transform=" translate(0%, -50%)"):a.value==="left-start"?(N.right=`-${e.arrowSize}px`,N.top=`${e.arrowOffset}px`):a.value==="left-end"&&(N.right=`-${e.arrowSize}px`,N.bottom=`-${e.arrowOffset}px`),N):{display:"none"}}),V=(0,t.computed)(()=>C.value&&e.closeOnClick),A=(0,t.computed)(()=>{const N={};return e.zIndex&&(N["z-index"]=`${e.zIndex}`),N});return{show:C,tipRef:s,classes:m,styles:f,textClasses:g,textStyles:B,arrowClasses:v,arrowStyles:b,overlayShow:V,overlayStyle:A,onClickOverlay:()=>{y.value=!1,n.emit("update:visible",!1)}}}}),zu=["innerHTML"];function Fu(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Price");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.overlayShow?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,t.normalizeStyle)(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"tipRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.textClasses),style:(0,t.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,zu))],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 Si=re(Ru,[["render",Fu]]),Xn=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},Ol={},Lu=new Xn,vt=new Map,Tn=e=>{if(e){const n=document.getElementById(e);vt.delete(e),n&&((0,t.render)(null,n),n.parentNode?.removeChild(n))}else{for(const n of vt.keys()){const o=document.getElementById(n);o&&((0,t.render)(null,o),o.parentNode?.removeChild(o))}vt.clear()}},Ou=e=>{e.unmount=Tn;const n=document.getElementById(e.id);if(n){const o=vt.get(e.id);o?e={...Ol,...o,...e}:e={...Ol,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(Si,e),n)}return e.id},Ku=e=>{e.unmount=Tn;let n=e.id??`hinttext_${Lu.get()}`;e={...Ol,...e},e.id=n,vt.set(n,e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(Si,e),o),document.body.appendChild(o),n},Uu=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),Tt={show(e,n,o={},l=!0){if(!Uu(n))return;const r=o.id;return r&&vt.has(r)?Ou({...o,message:n,reference:e}):(l&&Tn(),Ku({...o,message:n,reference:e}))},hide(e){Tn(e)},install(e){e.config.globalProperties.$hintText=Tt}};function Hu(e,n,o,l=!1){return{inheritAttrs:!0,props:{...ge,...be},emits:["appear","disappear"],setup(r,i){const a=r.prop??i.attrs.name,u=(0,t.ref)(),{exposeApi:s}=Be({componentName:e,validate:!1,get props(){return r},context:i,get templateRefProxy(){return u.value}},a),d=nt(),h=Kn();Un(!1);const c=(0,t.computed)(()=>h&&d?Hn(d,!1).value:null),p=e,y=(0,t.ref)(null),C=(0,t.computed)(()=>{const E={[p]:!0,[`${p}__gutter`]:c.value&&c.value.type!=="flow",[`${p}__stretch`]:r.span==="stretch",[`${p}__input--border`]:Se(r.hasBorder)};if(E[r.errorMarkClass]=!!R.value,E[r.warnMarkClass]=!!P.value,E[r.infoMarkClass]=!!x.value,typeof y.value=="function"){const z=y.value(a);E[z]=!0}else if(typeof y.value=="string"){const z=y.value;E[z]=!0}return E}),k=(0,t.ref)(null),w=(0,t.computed)(()=>{const E={};if(r.width)r.width!=="auto"&&(E.width=he(r.width));else{const z=h&&d?_n(d,!1):null;if(c.value&&z){if(c.value.type==="grid"){const Z=Wn(z,c.value,r.span,r.offset);Object.assign(E,Z)}else if(c.value.type==="flow"){const Z=jn(z,c.value,r.span,r.offset,r.width);Object.assign(E,Z)}}}if(typeof k.value=="function"){const z=k.value(a);z&&Object.assign(E,z)}else if(k.value&&typeof k.value=="object"){const z=k.value;Object.assign(E,z)}return E}),S=(0,t.ref)(null),m=(0,t.computed)({get:()=>S.value??Se(r.isRequired),set:E=>{S.value=E}}),f=()=>typeof r.label=="string"&&r.label.length>0||typeof i.slots.label=="function",g=Ae((0,t.toRef)(r,"labelPosition"),"labelPosition",Fl.Near),B=(0,t.computed)(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),v=(0,t.computed)(()=>({[`${p}__main`]:!0,[`${p}__main--${B.value}`]:!0})),b=(0,t.computed)(()=>({label:!0,[`label--${B.value}`]:!0})),V=Ae((0,t.toRef)(r,"labelWidth"),"labelWidth",Fl.Near),A=(0,t.computed)(()=>V&&V.value?{width:he(V.value)}:{}),T=(0,t.computed)(()=>({"label--string":!0,"label--required":m.value})),N=(0,t.computed)(()=>({content:!0,[r.contentClass]:!0})),q=(0,t.computed)(()=>({...r.contentStyle})),X=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});s({setRequired(E){m.value=E},setErrorTip(E){X.errorTip=E},setErrorIcon(E){X.errorIcon=E},setWarnTip(E){X.warnTip=E},setWarnIcon(E){X.warnIcon=E},setInfoTip(E){X.infoTip=E},setInfoIcon(E){X.infoIcon=E},setCustomClassName(E){y.value=E},setCustomStyle(E){k.value=E}});const x=(0,t.computed)(()=>r.infoTip||X.infoTip),M=(0,t.computed)(()=>r.infoIcon||X.infoIcon),P=(0,t.computed)(()=>r.warnTip||X.warnTip),K=(0,t.computed)(()=>r.warnIcon||X.warnIcon),R=(0,t.computed)(()=>r.errorTip||X.errorTip),j=(0,t.computed)(()=>r.errorIcon||X.errorIcon),I=(0,t.computed)(()=>R.value?"error":P.value?"warn":x.value?"info":""),Q=()=>I.value.length>0,J=(0,t.computed)(()=>I.value==="error"?R.value:I.value==="warn"?P.value:I.value==="info"?x.value:""),oe=(0,t.computed)(()=>I.value==="error"?j.value:I.value==="warn"?K.value:I.value==="info"?M.value:null),W=(0,t.computed)(()=>{const E={[`${p}__tip`]:!0,[`${p}__tip--${I.value}`]:!0,[`${p}--animate`]:!0};return I.value==="error"&&r.errorClass?E[`${r.errorClass}`]=!0:I.value==="warn"&&r.warnClass?E[`${r.warnClass}`]=!0:I.value==="info"&&r.infoClass&&(E[`${r.infoClass}`]=!0),E}),G=(0,t.computed)(()=>{const E={};return g&&g.value==="top"||!f()?E["padding-left"]="0px":V&&V.value&&(E["padding-left"]=he(V.value)),E}),F=(0,t.ref)();let te="";(0,t.watch)([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([E,z,Z,le])=>{F.value&&(E&&!me(z)?te?o.show(F.value,z,{...le,id:te,type:Z},!0):te=o.show(F.value,z,{...le,type:Z},!0):o.hide(te))});let U=null;const D=()=>{U||!F.value||(U=new IntersectionObserver(E=>{let z=!1;for(let Z of E)if(Z.intersectionRatio>0){z=!0,z&&i.emit("appear",Z);break}z||i.emit("disappear")}),U.observe(F.value))},L=()=>{!U||!F.value||(U.unobserve(F.value),U=null)};(0,t.watch)(()=>Se(r.appearListen),E=>{E?D():L()}),(0,t.onMounted)(()=>{Se(r.appearListen)&&D()}),(0,t.onUnmounted)(L);const _=()=>{if(!f())return null;const E=[],z=i.slots?.label?.()??r.label,Z=(0,t.h)("div",{class:T.value},[z]);if(E.push(Z),i.slots.fixedPreTip){const le=i.slots.fixedPreTip();E.push(le)}return(0,t.h)("div",{class:b.value,style:A.value},E)},Y=()=>{const E=[];if(i.slots.prepend){const z=i.slots.prepend();E.push(z)}if(i.slots.default){const z=i.slots.default();E.push(z)}if(i.slots.append){const z=i.slots.append();E.push(z)}if(i.slots.fixedTip){const z=(0,t.h)("div",{class:[`${p}__fixed-tip`]},[i.slots.fixedTip()]);E.push(z)}return(0,t.h)("div",{ref:F,class:N.value,style:q.value},E)},ne=()=>{const E=oe.value;return E?typeof E=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[E()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(E)]):null},O=()=>{const E=J.value;return E?typeof E=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[E()]):(0,t.h)("div",{class:"fox-item__tip--text"},[E]):null},H=()=>{if(!Q())return null;const E=[],z=ne();z&&E.push(z);const Z=O();return Z&&E.push(Z),(0,t.h)("div",{class:W.value,style:G.value},E)},$=()=>i.slots?.hide?.()??null;return()=>{const E=[],z=[],Z=_();Z&&z.push(Z);const le=Y();le&&z.push(le);const ie=(0,t.h)("div",{class:v.value},z);E.push(ie);const ce=H();ce&&E.push(ce);const fe=$();return fe&&E.push(fe),(0,t.h)("div",{class:C.value,style:w.value,prop:r.prop,ref:u},E)}}}}var{componentName:_u,create:ju,scope:Wu}=ee("item"),Yu=ju(Hu(_u,Wu,Tt,!1)),nn=Yu,ki={span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1},wrap:{type:[String],required:!1,default:"nowrap"}};function Xu(e,n){return{props:ki,setup(o,l){const r=e,i=(0,t.computed)(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),a=nt(),u=Kn();Un(!1);const s=(0,t.computed)(()=>{const d={};if(o.width)o.width!=="auto"&&(d.width=he(o.width));else if(u&&a){const h=Hn(a,!1),c=_n(a,!1);if(h.value&&c){if(h.value.type==="grid"){const p=Wn(c,h.value,o.span,o.offset);Object.assign(d,p)}else if(h.value.type==="flow"){const p=jn(c,h.value,o.span,o.offset,o.width);Object.assign(d,p)}}}return o.gutter&&(d["column-gap"]=he(o.gutter)),o.wrap&&(d["flex-wrap"]=o.wrap),d});return()=>{const d=[];if(l.slots.default){const{getChildren:h}=tn(l.slots.default),c=h();if(o.divide)for(let p=0;p<c.length;p++){if(p>0){const y=(0,t.h)("div",{class:{[`${r}__divide`]:!0}});d.push(y)}d.push(c[p])}else Reflect.apply([].push,d,c)}return(0,t.h)("div",{class:i.value,style:s.value},d)}}}}var{componentName:Qu,create:Gu,scope:Zu}=ee("row-item"),Ju=Gu(Xu(Qu,Zu)),Qn=Ju;function ec(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(r)},500)}var tc={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 nc(e,n,o,l=!1){return{props:tc,emits:["click"],setup(r,i){const a=(0,t.ref)(null),u=(0,t.computed)(()=>{const f={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(f[`${e}--${r.type??"default"}`]=!0),r.size&&(f[`${e}--${r.size}`]=!0),f}),s=(0,t.computed)(()=>{const f={},g=r.textColor??r.color;return g&&(f.color=g),f}),d=(f,g)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const v=r.highlightFilter;f.indexOf(v)!==-1&&(g.innerHTML=f.replace(new RegExp(v,"g"),`<span>${v}</span>`),g.class["is-highlight"]=!0,B=(0,t.h)(r.tag,g))}else if(typeof r.highlightFilter=="function"){const v=r.highlightFilter(f);v&&(g.innerHTML=v,g.class["is-highlight"]=!0,B=(0,t.h)(r.tag,g))}return B},h=f=>{i.emit("click",f)};let c="";const p=()=>{const f=a.value;if(!f)return;const g=f.clientWidth;ec(f,B=>{const v=f.innerHTML??"";me(v)||B<g||(c?o?.show(f,v,{type:"text",id:c,showArrow:r.showArrow},!0):c=o?.show(f,v,{type:"text",showArrow:r.showArrow},!0)??"")})},y=()=>{c&&o?.hide(c)};let C=null;const k=f=>{C||(C=setTimeout(()=>{p(),C=null},r.showAfter??0))},w=f=>{C&&(clearTimeout(C),C=null),setTimeout(()=>{y()},r.hideAfter??0)},S=()=>{const f=a.value;f&&(f.addEventListener("mouseover",k),f.addEventListener("mouseleave",w))},m=()=>{const f=a.value;f&&(f.removeEventListener("mouseover",k),f.removeEventListener("mouseleave",w))};return(0,t.onMounted)(()=>{!Se(r.showOverflowTooltip)||!o||S()}),(0,t.onBeforeUnmount)(()=>{!Se(r.showOverflowTooltip)||!o||m()}),()=>{const f={class:u.value,style:s.value,ref:a,onClick:h};let g=null;if(Se(r.numberFormat)&&typeof i.slots.default=="function"){const v=i.slots.default();if(Array.isArray(v)&&v.length===1){const b=v[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const V=de(r.digits),A=de(r.decimalLength),T=Se(r.autoPadding);let N=`${v[0].children}`,q=N.split("").reverse().join("");q=$n(q,A,T,V,r.separator),N=q.split("").reverse().join(""),r.highlightFilter!==void 0&&(g=d(N,f)),g||(f.innerHTML=N,g=(0,t.h)(r.tag,f))}}}else{if(r.highlightFilter!==void 0&&typeof i.slots.default=="function"){const v=i.slots.default();if(Array.isArray(v)&&v.length===1){const b=v[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const V=`${v[0].children}`;g=d(V,f),g||(f.innerHTML=V,g=(0,t.h)(r.tag,f))}}}g||(g=(0,t.h)(r.tag,f,{default:i.slots.default}))}if(!r.mark&&!i.slots.mark)return g;const B=[];if(i.slots.mark){const v={[`${e}__mark-wrap`]:!0};r.type&&(v[`${e}__mark-wrap--${r.type}`]=!0);const b={},V=r.color;V&&(b.color=V);const A=(0,t.h)("view",{class:v,style:b,onClick:h},{default:i.slots.mark});B.push(A)}else{const v={[`${e}__mark`]:!0};r.type&&(v[`${e}__mark--${r.type??"default"}`]=!0);const b={},V=r.color;V&&(b["background-color"]=V);const A=(0,t.h)("view",{class:v,style:b,onClick:h});B.push(A)}if(r.divide){const v=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});B.push(v)}return B.push(g),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}},B)}}}}var{componentName:lc,create:oc,scope:ac}=ee("text"),rc=oc(nc(lc,ac,Tt,!1)),kt=rc,ic={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 sc(e,n,o=!1){return{props:{...ic},emits:["update:visible"],setup(l,{emit:r,slots:i,expose:a}){const u=(0,t.ref)({top:null,right:null,bottom:null,left:null}),s=(0,t.ref)(0),d=(0,t.ref)(0),h=(0,t.ref)(0),c=(0,t.ref)(0),p=(0,t.ref)(l.placement),y=(0,t.ref)(!1),C=(0,t.ref)(!1),k=(0,t.ref)(null),w=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,S=(I,Q,J,oe,W,G,F,te=!0)=>{const U=document.documentElement.clientWidth||document.body.clientWidth,D=document.documentElement.clientHeight||document.body.clientHeight,L=I.split("-");let _=[];te?L[0]==="top"?_=["top","bottom","right","left"]:L[0]==="bottom"?_=["bottom","top","right","left"]:L[0]==="left"?_=["left","top","bottom","right"]:L[0]==="right"&&(_=["right","top","bottom","left"]):_=[I[0]];const Y={top:null,right:null,bottom:null,left:null},ne=[];for(let O=0;O<_.length;O++){const H=_[O];if(ne[0]=H,L[1]&&(ne[1]=L[1]),H==="top"){const $=J-F-l.arrowSize/2-l.offset;if($>=0){Y.top=$;let E=0;L[1]==="start"?E=Q:L[1]==="end"?E=Q+oe-G:E=Q+oe/2-G/2;const z=U-E-G;z<0?(E+=z,f.value=-z):f.value=0,Y.left=E<0?0:E;break}}else if(H==="bottom"){const $=J+W+l.arrowSize/2+l.offset;if($+F<=D){Y.top=$;let E=0;L[1]==="start"?E=Q:L[1]==="end"?E=Q+oe-G:E=Q+oe/2-G/2;const z=U-E-G;z<0?(E+=z,f.value=-z):f.value=0,Y.left=E<0?0:E;break}}else if(H==="left"){const $=Q-G-l.arrowSize/2-l.offset;if($>=0){Y.left=$;let E=0;L[1]==="start"?E=J:L[1]==="end"?E=J+W-F:E=J+W/2-F/2,Y.top=E<0?0:E;break}}else if(H==="right"){const $=Q+oe+l.arrowSize/2+l.offset;if($+G<=U){Y.left=$;let E=0;L[1]==="start"?E=J:L[1]==="end"?E=J+W-F:E=J+W/2-F/2,Y.top=E<0?0:E;break}}}return{bestPlacement:ne.join("-"),bestInsetRect:Y}},m=()=>{const I=l.visible,Q=l.autoFit;if(!tt||I===!1)return;if(l.reference){const F=w(),te=uo(F);s.value=te.x,d.value=te.y,h.value=F.offsetWidth,c.value=F.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,d.value=l.referenceInset.top,h.value=l.referenceInset.right-l.referenceInset.left,c.value=l.referenceInset.bottom-l.referenceInset.top);const J=k.value.offsetWidth,oe=k.value.offsetHeight,{bestPlacement:W,bestInsetRect:G}=S(l.placement,s.value,d.value,h.value,c.value,J,oe,Q);p.value=W,u.value=G},f=(0,t.ref)(0),g=Ie(()=>{m()},10),B=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([I])=>{B.value=I,I?(y.value=I,setTimeout(()=>{m(),C.value=!0},0)):C.value=!1});const v=(0,t.computed)(()=>B.value&&b.value),b=(0,t.ref)(!0),V=Ie(I=>{const Q=I[0];Q&&(b.value=Q.isIntersecting)},10),A=new IntersectionObserver(V);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([I,Q],[J,oe])=>{!I&&!Q||(setTimeout(()=>{m()},0),l.autoFit&&(J&&(Kt.unwatch(J,g),A.unobserve(J)),I&&(Kt.watch(I,g),A.observe(I))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Kt.unwatch(l.reference,g),A.unobserve(l.reference),A.disconnect())});const T=(0,t.computed)(()=>{const I={[e]:!0};return p.value.startsWith("top")?I["is-top"]=!0:p.value.startsWith("right")?I["is-right"]=!0:p.value.startsWith("bottom")?I["is-bottom"]=!0:p.value.startsWith("left")&&(I["is-left"]=!0),I[`is-${l.effect}`]=!0,!C.value&&v.value&&(I["is-opacity"]=!0),C.value&&v.value&&(I["is-show"]=!0),v.value||(I["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(I[`${l.customClass}`]=!0),I}),N=(0,t.computed)(()=>{const I={};return u.value.top!==null&&(I.top=`${u.value.top}px`),u.value.right!==null&&(I.right=`${u.value.right}px`),u.value.bottom!==null&&(I.bottom=`${u.value.bottom}px`),u.value.left!==null&&(I.left=`${u.value.left}px`),l.width&&(I.width=l.width),l.zIndex&&(I["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(I,l.customStyle),I}),q=()=>{B.value=!1,r("update:visible",!1)},X=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:q}):null,x=()=>{let I=null;return i.title?I=(0,t.h)("div",{class:`${e}__title`},{default:i.title}):l.title&&(I=(0,t.h)("div",{class:`${e}__title`},[l.title])),I},M=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),P=(0,t.computed)(()=>{const I={};return l.showArrow?(I.width=`${l.arrowSize}px`,I.height=`${l.arrowSize}px`,p.value==="top"?(I.left="50%",I.bottom="0",I.transform="translate(-50%, 50%)"):p.value==="top-start"?(I.left=`${l.arrowOffset+f.value}px`,I.bottom="0",I.transform="translate(-50%, 50%)"):p.value==="top-end"?(I.right=`${l.arrowOffset-f.value}px`,I.bottom="0",I.transform="translate(-50%, 50%)"):p.value==="right"?(I.left="0",I.top="50%",I.transform="translate(-50%, -50%)"):p.value==="right-start"?(I.left="0",I.top=`${l.arrowOffset}px`,I.transform="translate(-50%, 50%)"):p.value==="right-end"?(I.left="0",I.bottom=`-${l.arrowOffset}px`,I.transform="translate(-50%, 50%)"):p.value==="bottom"?(I.left="50%",I.top="0",I.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(I.left=`${l.arrowOffset+f.value}px`,I.top="0",I.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(I.right=`${l.arrowOffset-f.value}px`,I.top="0",I.transform="translate(-50%, -50%)"):p.value==="left"?(I.right="0",I.top="50%",I.transform="translate(50%, -50%)"):p.value==="left-start"?(I.right="0",I.top=`${l.arrowOffset}px`,I.transform="translate(50%, -50%)"):p.value==="left-end"&&(I.right="0",I.bottom=`-${l.arrowOffset}px`,I.transform="translate(50%, -50%)"),I):{display:"none"}}),K=()=>(0,t.h)("div",{class:M.value,style:P.value}),R=()=>{B.value===!1&&(y.value=!1)},j=I=>{if(!k.value||B.value===!1)return;const{relatedTarget:Q}=I;k.value.contains(Q)||(B.value=!1,r("update:visible",!1))};return a({doLayout:m}),()=>{if(!y.value)return null;const I=[],Q=X();Q&&I.push(Q);const J=[],oe=x();if(oe&&J.push(oe),i.default){const te=i.default();J.push(te)}const W=K();W&&J.push(W);const G={ref:k,class:T.value,style:N.value,onAnimationend:R};l.leaveHide&&(G.onMouseleave=j);const F=(0,t.h)("div",G,{default:()=>J});return I.push(F),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>I})}}}}var{componentName:uc,create:cc,scope:dc}=ee("popover-dialog"),fc=cc(sc(uc,dc,!1)),Gn=fc,Ja={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},morePosition:{type:[String],required:!1,default:()=>"right"}};function mc(e,n,o){return{props:{...ki,...Ja},emits:["click"],setup(l,{slots:r}){const{toLocaleRefs:i}=(0,ve.useFoxI18n)(n),a=i(l,["moreText"]),u=e,s=(0,t.computed)(()=>({[u]:!0}));function d(g){return g.props||{}}function h(g){return!!d(g).disabled}function c(g){return g.children??[]}const p=(0,t.ref)(),y=(0,t.computed)(()=>p.value?.$el??null),C=(0,t.ref)(!1),k=g=>{C.value=g},w=()=>{C.value=!C.value};function S(g,B){return()=>{B||(C.value=!1,d(g)?.onClick?.())}}function m(g,B){const v=c(g),b=h(g),V=S(g,b),A=[`${u}__dropdown-item`];return b&&A.push("is-disabled"),(0,t.h)("span",{class:A,onClick:V},v)}const f=g=>{const B=l.maxDisplayCount??g.length;if(B>=g.length)return g;const v=[],b=B;for(let q=0;q<b;q++)v.push(g[q]);const V=(r.moreIcon&&r.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(o),A=(0,t.h)(kt,{ref:q=>p.value=q,class:`${u}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:w},{default:()=>a.moreText.value,mark:()=>V});l.morePosition==="left"?v.splice(0,0,A):v.push(A);const T=[];for(let q=b;q<g.length;q++){const X=m(g[q],q);T.push(X)}const N=(0,t.h)(Gn,{placement:l.dropdownPlacement,"onUpdate:visible":k,visible:C.value,reference:y.value,"custom-class":`${u}__popover`},{default:()=>T});return v.push(N),v};return()=>{const{getChildren:g}=tn(r?.default),B=f(g());return(0,t.h)(Qn,{...Ye(l,Ja),class:s.value},{default:()=>B})}}}}var{componentName:pc,create:hc,scope:vc}=ee("buttons-item"),gc=hc(mc(pc,vc,ae.MoreFilled)),co=gc,yc={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function bc(e,n){return{props:yc,setup(o,l){const r=nt(),i=Kn();Un(!1);const a=(0,t.computed)(()=>i&&r?Hn(r,!1).value:null),u=e,s=(0,t.computed)(()=>({[u]:!0,[`${u}__gutter`]:a.value&&a.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),d=(0,t.computed)(()=>{const h={};if(o.width)o.width!=="auto"&&(h.width=he(o.width));else{const c=i&&r?_n(r,!1):null;if(a.value&&c){if(a.value.type==="grid"){const p=Wn(c,a.value,o.span,o.offset);Object.assign(h,p)}else if(a.value.type==="flow"){const p=jn(c,a.value,o.span,o.offset,o.width);Object.assign(h,p)}}}return h});return()=>{const h={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?(0,t.h)("div",h,l.slots.default()):(0,t.h)("div",h)}}}}var{componentName:Sc,create:kc,scope:wc}=ee("slot-item"),Cc=kc(bc(Sc,wc)),fo=Cc;function $e(e,n={}){return(0,t.h)(nn,e,n)}function Nc(e,n,o,l,r){let i=[];Array.isArray(e)?i=e:i=[e];const a=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=n;for(let d=0;s&&d<i.length;d++){let h=i[d],c=s.find(p=>p[l]===h);if(!c)break;a.push(c[o])}return a}if(Array.isArray(u))for(let s=0;s<n.length&&s<i.length;s++){let d=n[s],h=i[s];const c=d.find(p=>p[l]===h);if(!c)break;a.push(c[o])}else{let s=n;for(let d=0;s&&d<i.length;d++){let h=i[d],c=s.find(p=>p[l]===h);if(!c)break;a.push(c[o]),s=c[r]}}return a}var Ac=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=lt(e,this.scope);return l===null?(console.error(`${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function Bc(){return new Ac(ut())}function Tc(e){return e&&e.startsWith("fox-")}var Vc={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:"/"},unit:{type:[String],required:!1},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 xc(e,n,o=!1){return{props:Vc,setup(l,{attrs:r,slots:i}){const a=Bc(),u=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([d,h])=>{u.value=await a.load(l.sourceType,d,h)},{immediate:!0});const s=(0,t.computed)(()=>{let d="";if(!Array.isArray(u.value)||u.value.length===0)d=l.emptyText;else{let h=Nc(l.modelValue,u.value,l.textKey,l.valueKey,l.childrenKey);h.length==0?d=l.emptyText??"":h.length===1?l.optionType=="item"?d=`${l.modelValue}${l.separator}${h[0]}`:d=h[0]:d=h.join(l.separator)}return l.unit&&(d=`${d}${l.unit}`),d});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}):Tc(h)?(0,t.h)((0,t.resolveComponent)(h),d,[s.value]):(0,t.h)(h,d,[s.value])}}}}var{componentName:Ec,create:$c,scope:Dc}=ee("mapping"),Ic=$c(xc(Ec,Dc,!1)),Zn=Ic;function Pe(e,n){const o="fox-browse-item";let l=null;if(e.source)l=(0,t.h)(Zn,{class:[`${o}__mapping`],source:e.source,modelValue:e.modelValue,separator:e.separator,emptyText:e.emptyText,unit:e.unit},{default:i=>(0,t.h)(kt,{class:[`${o}__text`]},{default:()=>i.text})});else{const i=e.unit?`${e.modelValue??""}${e.unit}`:`${e.modelValue??""}`;l=(0,t.h)(kt,{class:[`${o}__text`]},{default:()=>i})}const r={label:n.default,default:()=>l};return(0,t.h)(nn,{class:[o]},r)}var wi={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}},qc={...ge,...be,...wi};function Pc(e,n,o,l,r){return{props:qc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:y,exposeApi:C}=Be({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),{toLocaleRefs:k}=(0,ve.useFoxI18n)(n),w=k(i,["placeholder"]),S=(0,t.ref)(!1),m=qe(i,"modelValue",null,y),f=e,g=(0,t.computed)(()=>({[f]:!0,"is-disabled":d.value,"is-readonly":c.value})),B=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),v=(0,t.computed)(()=>{const Q={};return B.value&&(Q["text-align"]=B.value),Q}),b=Q=>{let J=Q.target.value;i.type==="digit"&&(J=Ml(J,!0)),i.type==="number"&&(J=Ml(J,!1)),i.maxLength&&J.length>Number(i.maxLength)&&(J=J.slice(0,Number(i.maxLength))),m.value=J,y("update:modelValue",J,Q),y("change",J,Q)};let V=qe(i,"hintText"),A=(0,t.ref)(!1);const T=Q=>{let J=Q.target.value;S.value=!0,me(V.value)||(A.value=!0),y("focus",J,Q)},N=Q=>{setTimeout(()=>{A.value&&(A.value=!1),S.value=!1},0);let J=Q.target.value;i.maxLength&&J.length>Number(i.maxLength)&&(J=J.slice(0,Number(i.maxLength))),y("blur",J,Q)},q=(0,t.computed)(()=>({[`${f}__append`]:!0,"is-disabled":d.value,"is-readonly":c.value})),X=(0,t.computed)(()=>{const Q={};return a.slots.append&&!x.value&&!j.value&&(Q.display="none"),Q}),x=(0,t.computed)(()=>ke(i.unit)>0),M=(0,t.computed)(()=>!j.value),P=(0,t.computed)(()=>({[`${f}__unit`]:!0,hidden:!M.value})),K=Q=>{m.value="",y("update:modelValue","",Q),y("change","",Q),y("clear","")},R=(0,t.computed)(()=>Se(i.clearable)&&!d.value&&!c.value),j=(0,t.computed)(()=>{let Q=ke(m.value)>0;return Se(i.clearable)&&Q&&S.value}),I=(0,t.computed)(()=>({action:!0,hidden:!j.value}));return C({setDisabled:Q=>{s.value=Q},setReadonly:Q=>{h.value=Q}}),()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:m.value,unit:i.unit},a.slots);const Q={class:g.value,style:v.value,type:i.type,maxlength:i.maxLength,placeholder:w.placeholder.value,disabled:d.value,readonly:c.value,value:m.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:b,onFocus:T,onBlur:N},J=[],oe=(0,t.h)("input",Q);J.push(oe);const W=[];if(R.value){const U=(0,t.h)(r,{class:["action-icon"]}),D=(0,t.h)("view",{class:I.value,onClick:K},{default:()=>[U]});W.push(D)}if(x.value){const U=(0,t.h)("view",{class:P.value},[i.unit]);W.push(U)}const G=(0,t.h)("view",{class:q.value,style:X.value},{default:()=>W});J.push(G);const F={default:()=>J};F.label=a.slots.default,F.prepend=a.slots.prepend,F.append=a.slots.append,F.fixedPreTip=a.slots.fixedPreTip,F.fixedTip=a.slots.fixedTip;const te={...Ye(i,wi),ref:u,hintText:V.value,hintVisible:A.value};return i.prop&&(te.prop=`${i.prop}_item`),o(te,F)}}}}var{componentName:Mc,create:Rc,scope:zc}=ee("input-item"),Fc=Rc(Pc(Mc,zc,$e,Pe,ae.CircleClose)),mo=Fc;function er(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let r=l;for(let i=o.length-1;i>=l;i--)if(o.charAt(i)!="0"){r=i;break}return r-l<n?r=l+n+1:r!=l&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function tr(e,n,o=20){return typeof n=="string"&&(n=de(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?er(qr(`${e}`,`${n}`)):er(Ql(`${e}`,Pr(`${n}`),20))}function Lc(e,n=-1,o=!1,l=3,r=","){return $n(e,de(n),o,l,r)}function nr(e,n,o,l,r=!0){if(e==="")return"";if(e=Mr(e),n=de(n),n==1)return e;if(l)e=tr(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(de(o)+2,"0"):e=Ql(e,1,de(o)));else{let i=-1*n;e=tr(e,i)}return e}function lr(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=Se(n.minInclude),r=Il(e,n.min);(l&&r==-1||!l&&(r==0||r==-1))&&(o.message="请输入不小于 {0} 的数值".replace("{0}",n.min),o.minValid=!1)}if(n.max!=null){let l=Se(n.maxInclude),r=Il(e,n.max);(l&&r==1||!l&&(r==0||r==1))&&(o.maxValid=!1)}return o}var Ci={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]}},Oc={...ge,...be,...Ci};function Kc(e,n,o,l,r){return{props:Oc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:y,exposeApi:C}=Be({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),k=(0,t.ref)(!1),w=qe(i,"modelValue",null,y),S=(0,t.ref)("");(0,t.watch)([()=>w.value,()=>i.rates,()=>i.precision],([F,te,U])=>{if(me(F)){S.value="";return}const D=nr(F,te,U,!1);S.value!==D&&(S.value=D)},{immediate:!0});const m=(0,t.computed)(()=>{let F="";return k.value&&(F=S.value),F}),{t:f}=(0,ve.useFoxI18n)(n),g=(0,t.computed)(()=>{let F=i.placeholder??"";return!k.value&&!me(S.value)?F=Lc(S.value,i.decimalLength,i.autoPadding,i.digits,i.separator):F=me(F)?f(["placeholder"]):F,F}),B=e,v=(0,t.computed)(()=>({[B]:!0,[`${B}__placeholder`]:S.value.length>0,"is-disabled":d.value,"is-readonly":c.value})),b=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),V=(0,t.computed)(()=>{const F={};return b.value&&(F["text-align"]=b.value),F}),A=(0,t.ref)(""),T=(0,t.computed)(()=>{let F=A.value;return me(F)&&(F=i.errorTip??""),F}),N=(0,t.ref)(""),q=(0,t.ref)(!1),X=F=>{let te=F.target.value;if(me(te)){S.value="",w.value="",y("update:modelValue","",F),y("change","",F),Se(i.showTip)&&q.value&&(q.value=!1);return}if(te.length>=2){let U=te;if(U.charAt(0)=="-"&&(U=U.substring(1)),U.length>=2&&U.charAt(0)=="0"&&U.charAt(1)!="."){(0,t.triggerRef)(S);return}}if(te!="-"){if(!qn(te)){(0,t.triggerRef)(S);return}if(i.integerLength!=-1&&Ur(te)>Number(i.integerLength)){(0,t.triggerRef)(S);return}if(i.decimalLength&&i.decimalLength!=-1&&Hr(te)>Number(i.decimalLength)){(0,t.triggerRef)(S);return}let U=lr(te,i);if(U.maxValid===!1){A.value=U.message,(0,t.triggerRef)(S);return}}else if(i.min!=null&&de(i.min)>=0){(0,t.triggerRef)(S);return}N.value=te,Se(i.showTip)&&(q.value=te.length>0),S.value=te,w.value=nr(te,i.rates,i.precision,!0),y("update:modelValue",w.value,F),y("change",w.value,F)},x=F=>{if(k.value=!0,Se(i.showTip)){let te=S.value;me(te)&&(te=i.hintText),me(te)||(N.value=te,q.value=!0)}A.value="",y("focus",w.value,F)},M=F=>{if(setTimeout(()=>{k.value=!1,Se(i.showTip)&&q.value===!0&&(q.value=!1)},0),!me(S.value)){let te=lr(S.value,i);if(te.minValid===!1||te.maxValid===!1){A.value=te.message;return}}y("update:modelValue",w.value,F),y("blur",w.value,F)},P=(0,t.computed)(()=>({[`${B}__append`]:!0,"is-disabled":d.value,"is-readonly":c.value})),K=(0,t.computed)(()=>{const F={};return a.slots.append&&!R.value&&!oe.value&&(F.display="none"),F}),R=(0,t.computed)(()=>ke(i.unit)>0),j=(0,t.computed)(()=>!oe.value),I=(0,t.computed)(()=>({[`${B}__unit`]:!0,hidden:!j.value})),Q=F=>{w.value="",y("update:modelValue","",F),y("change","",F),y("clear","")},J=(0,t.computed)(()=>Se(i.clearable)&&!d.value&&!c.value),oe=(0,t.computed)(()=>{let F=ke(w.value)>0;return Se(i.clearable)&&F&&k.value}),W=(0,t.computed)(()=>({action:!0,hidden:!oe.value}));C({setDisabled:F=>{s.value=F},setReadonly:F=>{h.value=F}});const G=()=>w.value?g.value:w.value;return()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:G(),unit:i.unit},a.slots);let F={class:v.value,style:V.value,type:"digit",maxlength:i.maxLength,placeholder:g.value,disabled:d.value,readonly:c.value,value:m.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:X,onFocus:x,onBlur:M},te=[],U=(0,t.h)("input",F);te.push(U);let D=[];if(J.value){const ne=(0,t.h)(r,{class:["action-icon"]}),O=(0,t.h)("view",{class:W.value,onClick:Q},{default:()=>[ne]});D.push(O)}if(R.value){const ne=(0,t.h)("view",{class:I.value},[i.unit]);D.push(ne)}const L=(0,t.h)("view",{class:P.value,style:K.value},{default:()=>D});te.push(L);const _={default:()=>te};_.label=a.slots.default,_.prepend=a.slots.prepend,_.append=a.slots.append,_.fixedPreTip=a.slots.fixedPreTip,_.fixedTip=a.slots.fixedTip;const Y={...Ye(i,Ci),ref:u,errorTip:T.value,hintText:N.value,hintVisible:q.value,hintType:"number"};return i.prop&&(Y.prop=`${i.prop}_item`),o(Y,_)}}}}var{componentName:Uc,create:Hc,scope:_c}=ee("money-item"),jc=Hc(Kc(Uc,_c,$e,Pe,ae.CircleClose)),po=jc,Kl={modelValue:{type:[String,Number],default:""},textAlign:{type:String,default:""},limitShow:{type:Boolean,default:!1},maxLength:{type:[String,Number],default:""},rows:{type:[String,Number],default:"2"},placeholder:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autosize:{type:[Boolean,Object],default:!1},autofocus:{type:Boolean,default:!1}},{componentName:Wc,create:Yc,scope:Xc}=ee("textarea"),Qc=Yc({props:{...Kl},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:o}=(0,ve.useFoxI18n)(Xc);const l=o(e,["placeholder"]),r=(0,t.ref)(),i=(0,t.computed)(()=>{const p=Wc;return{[p]:!0,[`${p}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&s(String(e.modelValue)),e.autosize&&(0,t.nextTick)(u)});const a=(0,t.computed)(()=>({textAlign:e.textAlign})),u=()=>{let p=r.value;p.style.height="auto";let 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)(u)});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:a,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})}}}}),Gc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Zc={key:0,class:"fox-textarea__limit"};function Jc(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:(0,t.normalizeStyle)(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...a)=>e.change&&e.change(...a)),onBlur:n[1]||(n[1]=(...a)=>e.blur&&e.blur(...a)),onFocus:n[2]||(n[2]=(...a)=>e.focus&&e.focus(...a)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Gc),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",Zc,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var Jn=re(Qc,[["render",Jc]]);function ed(e,n,o,l,r){return{props:{...ge,...be,...Kl},emits:["update:modelValue","change","blur","focus","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:y}=Be({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),C=qe(i,"modelValue",null,y),k=g=>{C.value=g,y("update:modelValue",g,{}),y("change",g,{})};let w=qe(i,"hintText"),S=(0,t.ref)(!1);const m=g=>{me(w.value)||(S.value=!0),y("focus",C.value,g)},f=g=>{setTimeout(()=>{S.value&&(S.value=!1)},0),y("blur",C.value,g)};return()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:C.value},a.slots);const g={...ye(i,Kl),disabled:d.value,readonly:c.value,value:C.value,"onUpdate:modelValue":k,onFocus:m,onBlur:f},B=[],v=(0,t.h)(r,g);B.push(v);const b={default:()=>B};b.label=a.slots.default,b.prepend=a.slots.prepend,b.append=a.slots.append,b.fixedPreTip=a.slots.fixedPreTip,b.fixedTip=a.slots.fixedTip;const V={...ye(i,be,ge),ref:u};return i.prop&&(V.prop=`${i.prop}_item`),o(V,b)}}}}var{componentName:td,create:nd,scope:ld}=ee("textarea-item"),od=nd(ed(td,ld,$e,Pe,Jn)),ho=od;function ad(e){return e===window}var De=e=>{const n=(0,t.unref)(e);if(ad(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},or=10;function Ni(e,n){return e>n&&e>or?"horizontal":n>e&&n>or?"vertical":""}function el(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function tl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(a=>{if(a.touches){const u=a.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const u=a;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Ni(e.offsetX,e.offsetY))}),start:(a=>{if(l(),a.touches){const u=a.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const u=a;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:o,state:e}}function ct(){const e=(0,t.ref)(0),n=(0,t.ref)(0),o=(0,t.ref)(0),l=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(0),a=(0,t.ref)(0),u=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(0),h=(0,t.ref)(""),c=()=>h.value==="vertical",p=()=>h.value==="horizontal",y=()=>{a.value=0,u.value=0,s.value=0,d.value=0,h.value="",o.value=0};return{move:(w=>{if(w.touches){const S=w.touches[0];a.value=S.clientX-e.value,u.value=S.clientY-n.value,r.value=S.clientX,i.value=S.clientY}else{const S=w;a.value=S.clientX-e.value,u.value=S.clientY-n.value,r.value=S.clientX,i.value=S.clientY}s.value=Math.abs(a.value),d.value=Math.abs(u.value),l.value=Date.now()-o.value,h.value||(h.value=Ni(s.value,d.value))}),start:(w=>{if(y(),w.touches){const S=w.touches[0];e.value=S.clientX,n.value=S.clientY}else{const S=w;e.value=S.clientX,n.value=S.clientY}o.value=Date.now()}),reset:y,startX:e,startY:n,startTime:o,duration:l,moveX:r,moveY:i,deltaX:a,deltaY:u,offsetX:s,offsetY:d,direction:h,isVertical:c,isHorizontal:p}}var rd=2e3,ar=()=>rd++,et={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:{}}},id=(e,n)=>({components:n,props:{...et},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const r=(0,t.reactive)({zIndex:0,showSlot:!0,closed:o.closeable});o.visible&&(r.zIndex=ar());const i=(0,t.computed)(()=>{const k=e,w=[k,`${k}--${o.position}`];return o.round&&w.push("round"),o.position==="bottom"&&o.safeAreaInsetBottom&&w.push(`${k}--${o.position}--safebottom`),typeof o.popClass=="string"?w.push(o.popClass):Array.isArray(o.popClass)&&o.popClass.forEach(S=>{w.push(S)}),w}),a=(0,t.computed)(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=(0,t.computed)(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{l("update:visible",!0),o.zIndex?r.zIndex=o.zIndex:r.zIndex=ar(),o.destroyOnClose&&(r.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},h=k=>{l("click-pop",k)},c=k=>{k.stopPropagation(),l("click-close-icon",k),l("update:visible",!1)},p=k=>{l("click-overlay",k),o.closeOnClickOverlay&&l("update:visible",!1)},y=k=>{l("opend",k)},C=k=>{l("closed",k)};return(0,t.watch)(()=>o.visible,k=>{o.visible?s():d()}),(0,t.watch)(()=>o.closeable,k=>{r.closed=k}),{...(0,t.toRefs)(r),popStyle:a,transitionName:u,classes:i,onClick:h,onClickCloseIcon:c,onClickOverlay:p,onOpened:y,onClosed:C}}}),Ai={readonly:{type:[Boolean],default:()=>null},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}},vo={...et,...Ai,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}},Bi=36;function sd(){return Bi}function ud(e){Bi=e}function ze(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ul(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function cd(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function it(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function rr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var dd=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function fd(){return new dd(ut())}function ir(e,n,o){return!(ze(e,n)!==ze(e,o)||it(e,n)!==it(e,o))}function md(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const r=[],i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const u=n[a];let s=o[a].findIndex(d=>{if(i==="text")return ze(e,d)===u;if(i==="value"){let h=it(e,d);return h==null&&(h=ze(e,d)),h===u}else if(i==="item")return ir(e,d,u)});if(s==-1)break;r.push(s)}else{let a=o[0];for(let u=0;u<n.length;u++){const s=n[u];let d=a.findIndex(c=>{if(i==="text")return ze(e,c)===s;if(i==="value"){let p=it(e,c);return p==null&&(p=ze(e,c)),p===s}else if(i==="item")return ir(e,c,s)});if(d==-1)break;r.push(d);const h=Ul(e,a[d]);if(!Array.isArray(h))break;a=h}}return r}function sr(e,n,o,l){if(o.length==0)return null;const r={texts:[],values:[],items:[]},i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const u=o[a];let s=n[a];s<0&&s>=u.length&&(s=0);const d=u[s],h=ze(e,d);if(r.texts.push(h),r.items.push(d),i==="text")r.values.push(h);else if(i==="value"){let c=it(e,d);c==null&&(c=h),r.values.push(c)}else r.values.push(d)}else{let a=o[0];for(let u=0;u<n.length;u++){let s=n[u];s<0&&s>=a.length&&(s=0);const d=a[s],h=Object.assign({},d);h.children=null;const c=ze(e,d);if(r.texts.push(c),r.items.push(h),i==="text")r.values.push(c);else if(i==="value"){let p=it(e,d);p==null&&(p=c),r.values.push(p)}else r.values.push(h);if(!Array.isArray(d.children))break;a=d.children}}return r}function ur(e){return{text:e,value:e}}var pd=15,hd=300,vd=200,{create:gd}=ee("picker-column");function yd(e){e.stopPropagation()}function bd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&yd(e)}var Sd={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},...Ai},kd=gd({props:Sd,emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=(0,t.computed)(()=>({"fox-picker__list":!0})),l=(0,t.computed)(()=>({height:`${de(e.visibleItemCount)*+e.itemHeight}px`})),r=(0,t.computed)(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),i=(0,t.computed)(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),a=b=>{const V=b+1;return V>=c.currIndex+8||V<=c.currIndex-8},u=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${c.deg})`,top:`${i.value}px`})),s=b=>{const V=b+1;return`transform: rotate3d(1, 0, 0, ${-c.rotation*V}deg) translate3d(0px, 0px, 104px)`},d=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+i.value}px, 0)`})),h=(0,t.ref)(null),c=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),p=b=>ze(e,b),y=b=>it(e,b),C=ct(),k=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},w=(b,V=!1,A=!1)=>{if(c.currIndex=b,V){const T=()=>{c.moving=!1,n("update:modelValue",b),n("change",b)};A?c.transitionEndTrigger=T:T()}},S=(b,V,A)=>{let T=b+c.startDistance;if(V==="end"){const N=-(e.source.length-1)*e.itemHeight;T<N&&(T=N),T>0&&(T=0);let q=Math.abs(Math.round(-T/e.itemHeight));const X=-q*e.itemHeight,x=`${(q+1)*c.rotation}deg`;w(q,!0,A?A>0:!1),m(X,V,A,x)}else{let N=(-T/e.itemHeight+1)*c.rotation;const q=(e.source.length+1)*c.rotation,X=0;if(N=Math.min(Math.max(N,X),q),e.threeDimensional&&(N<X||N>q))return;m(T,null,void 0,`${N}deg`)}},m=(b=0,V,A=vd,T)=>{V==="end"?c.scrollTime=A:c.scrollTime=0,c.deg=T,c.scrollDistance=b},f=(b,V)=>(b=Math.abs(b/V)/.003*(b<0?-1:1),b),g=b=>{e.readonly||(c.startDistance=c.scrollDistance,C.start(b),c.transitionEndTrigger=null)},B=b=>{e.readonly||(c.moving=!0,C.move(b),C.isVertical()&&(c.moving=!0,bd(b,!0)),S(C.deltaY.value,"",0))},v=()=>{if(e.readonly)return;const b=C.deltaY.value,V=C.duration.value;V<hd&&Math.abs(b)>pd?S(f(b,V),"end",de(e.swipeDuration)):S(b,"end",0)};return(0,t.watch)(()=>e.modelValue,b=>{const V=c.currIndex-b;V!==0&&(c.currIndex=b,c.startDistance=c.scrollDistance,S(V*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,b=>{if(c.currIndex>=b.length){const V=(b.length-1-c.currIndex)*e.itemHeight;c.startDistance=c.scrollDistance,S(V,"end",0)}}),(0,t.watch)(()=>e.visible,b=>{b===!1&&k()}),(0,t.onMounted)(()=>{S(-e.modelValue*e.itemHeight)}),{classes:o,styles:l,contentClasses:r,itemText:p,itemValue:y,...(0,t.toRefs)(c),roller:h,getItemText:ze,onTouchStart:g,onTouchMove:B,onTouchEnd:v,isHidden:a,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:d,stopMomentum:k}}}),wd={key:1,class:"fox-picker__item-tile"};function Cd(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTransitionend:n[4]||(n[4]=(...a)=>e.stopMomentum&&e.stopMomentum(...a))},[(0,t.createElementVNode)("view",{ref:"roller",class:(0,t.normalizeClass)(e.contentClasses),style:(0,t.normalizeStyle)(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.source,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(u))},(0,t.toDisplayString)(e.itemText(a)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",wd,(0,t.toDisplayString)(e.itemText(a)),1))],64))),128))],6)],38)}var Nd=re(kd,[["render",Cd]]),It=0,cr="fox-overflow-hidden",dr=()=>tt?document.body:{classList:[]},Ad=e=>[()=>{if(e())try{!It&&dr().classList.add(cr),It++}catch{}},()=>{if(e()&&It)try{It--,!It&&dr().classList.remove(cr)}catch{}}],Bd={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:Td,create:Vd}=ee("overlay"),xd=Vd({props:{...Bd},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=Ad(()=>e.lockScroll),r=(0,t.computed)(()=>({[Td]:!0,[e.overlayClass]:!0})),i=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,u=>{u?o():l()}),{classes:r,style:i,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Ed(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"overlay-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...a)=>e.onClick&&e.onClick(...a),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var st=re(xd,[["render",Ed]]),{componentName:$d,create:Dd}=ee("popup"),Id=Dd(id($d,{FoxOverLay:st,Close:ae.Close}));function qd(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxOverLay"),u=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(a,(0,t.mergeProps)({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.closed?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:(0,t.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(u)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var we=re(Id,[["render",qd]]),Pd=(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,Ye({...e},{poppable:!1}),n):n?.default?.()??null}}),Md=Pd,{create:Rd,componentName:fr,scope:zd}=ee("picker"),Fd=Rd({components:{Column:Nd,Wrapper:Md},props:vo,emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=(0,ve.useFoxI18n)(zd),r=o(e,["title","cancelText","clearText","confirmText"]),i=(0,t.ref)(null),a=(0,t.ref)(sd());(0,t.watch)(()=>e.visible,P=>{P&&a.value<=0&&setTimeout(()=>{i.value&&(a.value=De(i.value).height,ud(a.value))},50)});const u=(0,t.computed)(()=>({[fr]:!0})),s=(0,t.computed)(()=>{const P=[];return Array.isArray(e.popClass)?P.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&P.push(e.popClass),P.push(`${fr}__popup`),P.join(" ")}),d=fd(),h=(0,t.ref)("singleColumn");let c=(0,t.ref)([]);const p=(0,t.computed)(()=>{if(typeof e.sourceFilter=="function"){const P=[];for(let K=0;K<c.value.length;K++){const R=c.value[K];if(Array.isArray(R)){const j=R.filter(e.sourceFilter);P.push(j)}}return P}return c.value});(0,t.watch)([()=>e.source,()=>e.params],async([P,K])=>{if(P){let R=await d.load("picker",P,K);if(R.length>0){let j=R[0];if(Array.isArray(j)){if(typeof j[0]=="string"){let I=R,Q=[];I.forEach(J=>{let oe=J.map(W=>ur(W));Q.push(oe)}),c.value=Q}else c.value=R;h.value="multipleColumn"}else if(typeof j=="string"){let I=R,Q=[],J=I.map(oe=>ur(oe));Q.push(J),c.value=Q,h.value="singleColumn"}else{const I=Ul(e,j);Array.isArray(I)?(h.value="cascade",c.value=[R]):(h.value="singleColumn",c.value=[R])}}else c.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 w=null;const S=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>p.value],([P,K])=>{let R=md(e,P,K,h.value);if(!Ee(R,S.value)){S.value=R,w||(w=R?[...R]:[]);let j=sr(e,R,K,h.value);j&&(y.value=j.texts,Ee(C.value,j.values)||(C.value=j.values),Ee(k.value,j.items)||(k.value=j.items),n("update:text",y.value))}});let m="";const f=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,P=>{f.value=P,P&&(m="active",S.value.length>0&&(w=[...S.value]))});const g=P=>{let K=rr(e,P);return xe(K)?K.defaultIndex??0:0},B=P=>{if(e.readonly===!0)return!0;let K=rr(e,P);return xe(K)?K.readonly??!1:!1},v=(P,K)=>{let R=S.value;R[P]=K;for(let I=0;I<P;I++)R[I]==null&&(R[I]=g(I));if(h.value==="cascade")for(let I=P+1;I<V.value.length;I++){let Q=g(I);I<R.length?R[I]=Q:R.push(Q)}else for(let I=R.length;I<V.value.length;I++){let Q=g(I);R.push(Q)}S.value=R;let j=sr(e,R,p.value,h.value);j&&(y.value=j.texts,C.value=j.values,k.value=j.items)},b=P=>P<S.value.length?S.value[P]:g(P),V=(0,t.computed)(()=>{if(p.value.length==0)return[];if(h.value=="singleColumn"||h.value=="multipleColumn")return p.value;let P=[],K=0,R=p.value[0],j=0;for(;;){let I=R.map(oe=>{let W=Object.assign({},oe);return cd(e,W,null),W});P.push(I),K>=S.value.length?j=0:j=S.value[K],(j<0||j>=R.length)&&(j=0);let Q=R[j];const J=Ul(e,Q);if(!Array.isArray(J))break;R=J,K++}return P}),A=(0,t.computed)(()=>de(+e.visibleItemCount-1)/2*a.value),T=(P=!1)=>{if(e.readonly===!0){P&&n("update:visible",!1);return}let K=p.value.length-1;for(;K>=0&&!(S.value[K]===null||S.value[K]===void 0);K--);if(K>=0&&v(K,0),h.value==="singleColumn"){let R=C.value.length>0?C.value[0]:"",j=k.value.length>0?k.value[0]:null;n("update:modelValue",R),n("update:text",y.value),n("change",R,j),P&&(n("confirm",R),n("update:visible",!1))}else n("update:modelValue",C.value),n("update:text",y.value),n("change",C.value,k.value),P&&(n("confirm",C.value),n("update:visible",!1))},N=(P,K)=>{m!=="close"&&(v(P,K),e.isAutoBackFill&&T(!f.value))},q=()=>{m==="active"&&(m="confirm",w=Array.isArray(S.value)?[...S.value]:[],T(!0))},X=()=>{h.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),S.value=[],w=null};return{...r,pickerLineRef:i,classes:u,popClasses:s,columns:V,dataType:h,show:f,itemHeight:a,top:A,isReadonly:B,getIndex:b,change:N,close:()=>{if(m==="active"){if(m="close",w===null||w.length===0)X();else{if(Array.isArray(w))for(let P=0;P<w.length;P++)v(P,w[P]);T(!1)}n("close"),n("update:visible",!1)}},confirm:q,clear:()=>{if(m==="active"){if(m="clear",e.readonly===!0){n("update:visible",!1);return}X(),w=null,n("clear",""),n("update:visible",!1)}}}}}),Ld={key:0,class:"fox-picker__bar"},Od={class:"fox-picker__title"},Kd={class:"fox-picker__bar__action"},Ud={class:"fox-picker__column"};function Hd(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Column"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(u,{position:"bottom","pop-class":e.popClasses,visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable,poppable:e.poppable},{default:(0,t.withCtx)(()=>[e.poppable?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ld,[(0,t.createElementVNode)("view",Od,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Kd,[(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",Ud,[(0,t.createElementVNode)("view",{class:"fox-picker__mask",style:(0,t.normalizeStyle)({backgroundSize:`100% ${e.top}px`})},null,4),(0,t.createElementVNode)("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:(0,t.normalizeStyle)({top:` ${e.top}px`})},null,4),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:"fox-picker__columnitem"},[(0,t.createVNode)(a,{visible:e.show,source:s,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":h=>e.change(d,h),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["pop-class","visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable","poppable"])],2)}var ln=re(Fd,[["render",Hd]]),_d={...ge,...be,...vo,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 jd(e,n,o,l,r,i,a,u=!0){return{props:_d,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:c,disabled:p,innerReadonly:y,readonly:C,browse:k}=Te(s),{emitEvent:w,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:m}=(0,ve.useFoxI18n)(n),f=m(s,["placeholder"]),g=(0,t.ref)(!1),B=qe(s,"modelValue",null,w),v=(0,t.ref)([]),b=(0,t.computed)(()=>Array.isArray(v.value)?v.value.join(s.separator):v.value),V="fox-input-item",A=(0,t.computed)(()=>({[V]:!0,"is-disabled":p.value,"is-readonly":C.value})),T=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),N=(0,t.computed)(()=>{const L={};return T.value&&(L["text-align"]=T.value),L}),q=(0,t.ref)(!1),X=()=>{q.value=!0},x=L=>{q.value=L},M=L=>{B.value=L,w("update:modelValue",L)},P=(L,_)=>{w("change",L,_)},K=L=>{let _=L.target.value;g.value=!0,w("focus",_,L)},R=L=>{setTimeout(()=>{g.value=!1},0);let _=L.target.value;s.maxLength&&_.length>Number(s.maxLength)&&(_=_.slice(0,Number(s.maxLength))),w("blur",_,L)},j=L=>{v.value=L,Array.isArray(L)&&L.length===0?w("update:text",L[0]):w("update:text",L)},I=(0,t.computed)(()=>({[`${V}__append`]:!0,"is-disabled":p.value,"is-readonly":C.value})),Q=(0,t.computed)(()=>ke(s.unit)>0),J=(0,t.computed)(()=>ke(s.unit)>0&&!g.value),oe=(0,t.computed)(()=>({hidden:!J.value})),W=L=>{B.value="",w("update:modelValue","",L),w("change","",L),w("clear","")},G=(0,t.computed)(()=>s.clearable&&!p.value&&!C.value),F=(0,t.computed)(()=>ke(B.value)>0&&g.value),te=L=>{F.value?W(L):X()},U=(0,t.computed)(()=>F.value&&G.value?r:i),D=(0,t.computed)(()=>({action:!0}));return S({setDisabled:L=>{c.value=L},setReadonly:L=>{y.value=L}}),()=>{if(k.value==="on"&&(C.value||p.value))return l({modelValue:B.value,source:s.source,unit:s.unit},d.slots);const L={class:A.value,style:N.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:X,onFocus:K,onBlur:R};u&&(L.disabled=!0);const _=[],Y=(0,t.h)("input",L);_.push(Y);const ne=[],O=(0,t.h)(U.value,{class:["action-icon"]}),H=(0,t.h)("view",{class:D.value,onClick:te},{default:()=>[O]});if(ne.push(H),Q.value){const ie=(0,t.h)("view",{class:oe.value},[s.unit]);ne.push(ie)}const $=(0,t.h)("view",{class:I.value},{default:()=>ne});_.push($);const E={default:()=>_};E.label=d.slots.default,E.prepend=d.slots.prepend,E.append=d.slots.append,E.fixedPreTip=d.slots.fixedPreTip,E.fixedTip=d.slots.fixedTip;const z=ye(s,vo);z.disabled=!1,z.readonly=p.value||C.value,z.visible=q.value,z["onUpdate:visible"]=x,z.modelValue=B.value,z["onUpdate:modelValue"]=M,z.text=v.value,z["onUpdate:text"]=j,z.onChange=P;const Z=(0,t.h)(a,z);E.hide=()=>[Z];const le=ye(s,be,ge);return s.prop&&(le.prop=`${s.prop}_item`),le.ref=h,o(le,E)}}}}var{componentName:Wd,create:Yd,scope:Xd}=ee("picker-item"),Qd=Yd(jd(Wd,Xd,$e,Pe,ae.CircleClose,ae.ArrowRight,ln,!1)),go=Qd,Gd=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:o}){return()=>e.poppable?(0,t.h)(we,{...o},n):n?.default?.()??null}}),Zd=Gd,pn=(e,n,o)=>e.map(l=>{const{value:r="value",text:i="text",children:a="children"}=o??{},{[r]:u,[i]:s,[a]:d,...h}=l,c={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:d,_parent:n};return c.children&&c.children.length&&(c.children=pn(c.children,c,o)),c}),Ti=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&Ti(l.children,n)},Jd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},ef=(e,n)=>{const{topId:o,idKey:l,pidKey:r,sortKey:i}={...Jd,...n||{}};let a=[],u={};return e.forEach(s=>{s={...s};const{[l]:d,[r]:h}=s,c=u[h]=u[h]||[];!a.length&&h===o&&(a=c),c.push(s),s.children=u[d]||(u[d]=[])}),i&&Object.keys(u).forEach(s=>{u[s].length>1&&u[s].sort((d,h)=>d[i]-h[i])}),u=null,a},yo={prop:{type:[String]},modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},mr=(e,n)=>n[e.textKey],qt=(e,n)=>n[e.valueKey],tf=(e,n)=>n[e.visibleKey],pr=(e,n)=>n[e.disabledKey],nf=(e,n)=>{const o=n[e.doitKey];return Se(o)},lf=(e,n)=>{const o=n[e.numKey];return o==null?null:de(n[o])},hr=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function of(e,n,o,l,r,i=!1){return{props:yo,emits:["update:modelValue","change","click"],setup(a,u){const{emitEvent:s,exposeApi:d}=Oe({context:u},a.prop),{slots:h}=u,c=(0,t.computed)(()=>{const $={};return $[`${e}`]=!0,$}),p=(0,t.computed)(()=>{const $={};return $[`${e}__titles`]=!0,$[`${a.direction}`]=!0,a.align&&($[`${a.align}`]=!0),a.scroll===!0&&($.scrollable=!0),a.shape&&($[`${a.shape}`]=!0),a.showScrollArrow?(U.value===!0&&($["has-left-scroll-arrow "]=!0),D.value===!0&&($["has-right-scroll-arrow "]=!0)):a.showQuickNavigation&&($["has-navigation"]=!0),$}),y=(0,t.computed)(()=>({})),C=(0,t.computed)(()=>{if(!a.gutter)return 0;const $=ue(a.gutter);return $<=0?0:$}),k=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,$=>{k.value!==$&&(k.value=$,Q(!1))});const w=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),S=(0,t.computed)(()=>{const $={};return f.value||($.display="none"),$}),m=(0,t.ref)(),f=(0,t.ref)(!1),g=()=>{B(!f.value)},B=$=>{const E=$;E?(f.value=E,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.value["fox-tabs-bar__popup--hide"]=!0,m.value?m.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},v=(0,t.ref)(),b=(0,t.ref)([]),V=($,E)=>{b.value[E]=$},A=$=>E=>{V(E,$)},T=($,E)=>{const z=v.value,Z=b.value;if(!z||!Z||!Z[$])return;const le=Z[$];let ie=0;a.direction==="vertical"?ie=le.offsetTop-(z.offsetHeight-le.offsetHeight)/2:ie=le.offsetLeft-(z.offsetWidth-le.offsetWidth)/2,N(z,ie,E?0:.3,a.direction)},N=($,E,z,Z)=>{let le=0;const ie=Z==="horizontal"?$.scrollLeft:$.scrollTop,ce=z===0?1:Math.round(z*1e3/16);function fe(){Z==="horizontal"?$.scrollLeft+=(E-ie)/ce:$.scrollTop+=(E-ie)/ce,++le<ce&&Xe(fe)}fe()},q=($,E)=>{const z=qt(a,$),Z={};return Z[`${e}__titles-item`]=!0,Z.disabled=pr(a,$),Z.active=z===k.value,a.shape&&(Z[`${a.shape}`]=!0),a.ellipsis&&(Z.ellipsis=!0),E&&(E.class&&(Z[`${E.class}`]=!0),E.disabled===!0&&(Z.disabled=E.disabled)),Z},X=($,E)=>{const z={};if(C.value>0){const Z=Math.abs(C.value/2);a.direction==="vertical"?(z["margin-top"]=`${Z}px`,z["margin-bottom"]=`${Z}px`):(z["margin-left"]=`${Z}px`,z["margin-right"]=`${Z}px`)}return E&&E.style&&Object.assign(z,E.style),z},x=($,E)=>`${qt(a,$)??E}`,M=($,E)=>{const z=qt(a,$),Z={};Z[`${e}__popup-item`]=!0,Z.disabled=pr(a,$),Z.active=z===k.value,a.shape&&(Z[`${a.shape}`]=!0);const le=hr(a,$,E);return le&&le.disabled===!0&&(Z.disabled=le.disabled),Z},P=(0,t.computed)(()=>(a.data??[]).filter($=>tf(a,$)!==!1)),K=($,E)=>{const z=qt(a,$);if(s("click",$,E),k.value==z)return;const Z=()=>{k.value=z,a.scroll&&T(E,!1),s("update:modelValue",z),s("change",$,E)};if(typeof a.beforeChange=="function"){const le=a.beforeChange($,E);yt(le)?le.then(ie=>{ie!==!1&&Z()}).catch(()=>{Z()}):le!==!1&&Z()}else Z()},R=($,E)=>function(){K($,E)},j=($,E)=>{K($,E),B(!1)},I=($,E)=>function(){j($,E)},Q=$=>{if(!Array.isArray(a.data)||!a.scroll)return;te()&&ne();const E=a.data.findIndex(z=>qt(a,z)===k.value);E!==-1&&T(E,$)},J=()=>{te()||O()};(0,t.watch)(()=>a.data,()=>{setTimeout(Q,0)}),(0,t.onMounted)(()=>{Q(!0)}),(0,t.onBeforeUnmount)(()=>{J()}),d({});const oe=($,E)=>{if(h.item)return h.item({item:$,index:E});const z=hr(a,$,E),Z=[];if(h.text){const ie=h.text({item:$,index:E});Z.push(ie)}else{const ie=[];if(z?.doit===!0||nf(a,$)){const Ue=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ie.push(Ue)}const ce=z?.num??lf(a,$);if(ce){let Ue="";const Re=de(ce);Re>=100?Ue="99+":Ue=`${Re}`;const Et=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[Ue]);ie.push(Et)}const fe={class:`${e}__titles-item-text`};ie.push(mr(a,$));const Ke=(0,t.h)("view",fe,ie);Z.push(Ke)}const le=(0,t.h)("view",{class:`${e}__titles-item-line`});return Z.push(le),(0,t.h)("view",{ref:A(E),class:q($,z),style:X($,z),key:x($,E),onClick:R($,E)},Z)},W=()=>{const $=h.default?h.default():[];if($.length===0)for(let E=0;E<P.value.length;E++){const z=P.value[E],Z=oe(z,E);$.push(Z)}return(0,t.h)("view",{ref:v,class:p.value,style:y.value},$)},G=()=>{let $=null;return h.navigation?$=h.navigation():$=(0,t.h)(o),(0,t.h)("view",{class:`${e}__navigation`,onClick:g},[$])},F=()=>{const $=[];for(let E=0;E<P.value.length;E++){const z=P.value[E];let Z=null;h.popupItem?Z=h.popupItem({item:z,index:E}):Z=mr(a,z);const le=(0,t.h)("view",{class:M(z,E),key:x(z,E),onClick:I(z,E)},[Z]);$.push(le)}return(0,t.h)("view",{class:w.value,style:S.value},$)},te=()=>a.showScrollArrow&&a.direction=="horizontal",U=(0,t.ref)(!1),D=(0,t.ref)(!1),L=$=>{const E=v.value,z=b.value;if(!(!E||!z))if($==="left"){const Z=E.scrollLeft;let le=Z;for(let ie=0;ie<z.length;ie++){const ce=z[ie].offsetLeft;if(Z-ce<0)break;le=ce}N(E,le,.3,"horizontal")}else{const Z=E.scrollLeft;let le=Z,ie=E.offsetWidth;for(let ce=z.length-1;ce>=0;ce--){const fe=z[ce].offsetLeft+z[ce].offsetWidth;if(fe-Z<E.offsetWidth){le+=ie-fe;break}ie=fe}N(E,le,.3,"horizontal")}},_=Ie(()=>{const $=v.value;if(!$)return;let E=$.scrollLeft>0;E!==U.value&&(U.value=E);let z=$.scrollWidth-$.scrollLeft>$.offsetWidth;z!==D.value&&(D.value=z)},50),Y=$=>{_()},ne=()=>{const $=v.value;$&&(_(),$.addEventListener("scroll",Y))},O=()=>{const $=v.value;$&&$.removeEventListener("scroll",Y)},H=$=>{if($==="left"&&U.value!==!0||$==="right"&&D.value!==!0)return null;let E=null;return $==="left"?h.leftArrow?E=h.leftArrow():E=(0,t.h)(l):h.rightArrow?E=h.rightArrow():E=(0,t.h)(r),(0,t.h)("view",{class:[`${e}__scroll-arrow`,$],onClick:()=>{L($)}},[E])};return()=>{const $=[],E=W();if($.push(E),te()){const z=H("left");z&&$.push(z);const Z=H("right");Z&&$.push(Z)}else if(a.showQuickNavigation){const z=G();$.push(z);const Z=F();$.push(Z)}return(0,t.h)("view",{class:c.value},$)}}}}var{create:af,componentName:rf,scope:sf}=ee("tabs-bar"),uf=af(of(rf,sf,ae.MoreH,ae.Left,ae.Right,!1)),on=uf,Vi=Symbol("TabsStatesKey"),bo={prop:{type:[String]},modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},transition:{type:[Boolean],default:()=>!0},height:{type:[String,Number]},width:{type:[String,Number]}},cf=15,df=300,ff=200;function mf(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function vr(e,n=0,o,l,r=ff){o==="end"?e.style.transition=`transform ${r}ms linear`:e.style.transition="transform 0ms linear",l==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}var pf=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,n,o,l=1,r){this.onStart=e,this.onMove=n,this.onEnd=o,this.momentumReduceRatio=l,this.isTouch=r??el()}open(e){this.el=e;const n=tl(),o=(l,r,i)=>{const a={delta:l,direction:r,type:i};this.onMove(a)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;n.start(l),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const r={delta:0,type:"start",direction:this.direction};this.onStart(r)},this.touchmove=l=>{if(!this.moving)return;n.move(l);let r=0;if(this.direction==="horizontal"){if(n.isVertical())return;r=n.state.deltaX}else{if(n.isHorizontal())return;r=n.state.deltaY}o(r,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(n.isVertical()){this.moving=!1;return}l=n.state.deltaX}else{if(n.isHorizontal()){this.moving=!1;return}l=n.state.deltaY}const r=n.state.duration;r<df&&Math.abs(l)>cf?(l=mf(l,r,this.momentumReduceRatio),o(l,this.direction,"end")):o(l,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function hf(e,n,o,l=1,r){return new pf(e,n,o,l,r)}function vf(e,n,o=!1){return{props:bo,emits:["update:modelValue","change"],setup(l,r){const{emitEvent:i,exposeApi:a}=Oe({context:r},l.prop),{slots:u}=r,s=(0,t.shallowRef)([]),d={current:(0,t.ref)(l.modelValue??""),direction:(0,t.ref)(l.direction),transition:l.transition,tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:A=>{const T={name:A};d.current.value===A&&(T.loaded=!0),s.value.push(T),(0,t.triggerRef)(s)},remove:A=>{const T=s.value.findIndex(N=>N.name===A);T!==-1&&s.value.splice(T,1)},isLoaded:A=>{if(!l.lazy)return!0;const T=s.value.findIndex(N=>N.name===A);return T!==-1?d.current.value?s.value[T].loaded??!1:T===0:!1}};(0,t.provide)(Vi,d);const h=A=>{const T=s.value.findIndex(N=>N.name===A);T!==-1&&(s.value[T].loaded=!0,(0,t.triggerRef)(s))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([A,T])=>{d.current.value!==A&&(d.current.value=A??"",h(A??"")),d.direction.value!==T&&(d.direction.value=T)});const c=(0,t.ref)(null),p=(0,t.ref)(null),y=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),C=(0,t.computed)(()=>{const A={};if(l.width){const T=he(l.width);T&&(A.width=T)}if(l.height){const T=he(l.height);T&&(A.height=T)}return A});let k=!0;const w=(0,t.computed)(()=>{const A={};if(l.transition===!1)return A;const T=s.value.length;if(T<=0)return A;const N=s.value.findIndex(q=>q.name===d.current.value);return d.direction.value==="vertical"?d.tabHeight.value>0&&(A.height=`${T*d.tabHeight.value}px`,N!==-1&&(A.transform=`translate(0, -${N*d.tabHeight.value}px)`)):d.tabWidth.value>0&&(A.width=`${T*d.tabWidth.value}px`,N!==-1&&(A.transform=`translate(-${N*d.tabWidth.value}px, 0)`)),k&&(k=!1,A.transition="transform 0s ease"),A}),S={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},m=A=>{const T=s.value.length,N=s.value.findIndex(q=>q.name===d.current.value);S.moved=0,A.direction==="vertical"?(S.min=-1*(d.tabHeight.value*(T-1)+d.tabHeight.value/4),S.max=d.tabHeight.value/4,S.start=-N*d.tabHeight.value,S.itemDistance=d.tabHeight.value):(S.min=-1*(d.tabWidth.value*(T-1)+d.tabWidth.value/4),S.max=d.tabWidth.value/4,S.start=-N*d.tabWidth.value,S.itemDistance=d.tabWidth.value)},f=A=>{const T=p.value;if(!T)return;let N=S.start+A.delta;if(N>S.max?N=S.max:N<S.min&&(N=S.min),A.type==="move")vr(T,N,"move",A.direction,300);else if(A.type==="end"){let q=Math.floor(Math.abs(N)*1/S.itemDistance);const X=Math.abs(N)%S.itemDistance;S.start>N?X>=S.itemDistance*S.triggerAutoMoveRatio&&(q+=1):X>S.itemDistance-S.itemDistance*S.triggerAutoMoveRatio&&(q+=1),N=-1*q*S.itemDistance,vr(T,N,"end",A.direction,300),S.moved=N;const x=s.value[q].name;d.current.value=x??"",h(x??""),i("update:modelValue",x)}},g=()=>{},B=()=>{if(!c.value)return;const A=Ln(c.value);d.tabWidth.value=A.width,d.tabHeight.value=A.height},v=Cn(B,250);let b=null,V=null;return(0,t.onMounted)(()=>{l.transition!==!1&&c.value&&(B(),window.ResizeObserver&&(V=new window.ResizeObserver(v),V.observe(c.value)),l.draggle&&(b=hf(m,f,g),b.open(p.value)))}),(0,t.onBeforeUnmount)(()=>{V&&(V.disconnect(),V=null),b&&b.close()}),a({doLayout(){B()}}),()=>{const A=(0,t.h)("view",{class:`${e}__panes`,style:w.value,ref:p},[u?.default?.()]);return(0,t.h)("view",{class:y.value,style:C.value,ref:c},[A])}}}}var{create:gf,componentName:yf,scope:bf}=ee("tabs-container"),Sf=gf(vf(yf,bf,!1)),an=Sf,kf={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 wf(e,n,o){return{props:kf,setup(l,{emit:r,slots:i}){const a=(0,t.inject)(Vi);(0,t.onMounted)(()=>{a.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{a.remove(l.paneKey)});const u=(0,t.computed)(()=>{const h=[e];return a.direction.value==="vertical"?h.push("is-vertical"):h.push("is-horizontal"),a.transition===!1?h.push("is-no-transition"):h.push("is-transition"),h}),s=(0,t.computed)(()=>{const h={};return a.transition===!1?(a.current.value!==l.paneKey&&(h.display="none"),h):(a.direction.value==="vertical"&&a.tabHeight.value>0?h.height=`${a.tabHeight.value}px`:a.tabWidth.value>0&&(h.width=`${a.tabWidth.value}px`),h)}),d=(0,t.computed)(()=>l.loaded!=null?Se(l.loaded):a.isLoaded(l.paneKey));return()=>{let h=[];if(d.value)h=i?.default?.()??[];else if(i.empty)h=i.empty();else{const c={class:`${e}__empty-icon`},p=(0,t.h)(l.emptyIcon??o,c),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:u.value,style:s.value,prop:l.paneKey},h)}}}}var{create:Cf,componentName:Nf,scope:Af}=ee("tabs-pane"),Bf=Cf(wf(Nf,Af,ae.Loading)),nl=Bf,gr=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=pn(e,null,this.config)}updateChildren(e,n){n?n.children=pn(e,n,this.config):this.nodes=pn(e,null,this.config)}getNodeByValue(e){let n;return Ti(this.nodes,o=>{if(o.value===e)return n=o,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===e[r.level]);if(!l)break;n.push(l),o=l.children}return n}isLeaf(e,n){const{leaf:o,children:l}=e,r=Array.isArray(l)&&!!l.length;return o||!r&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:o}=e;return Array.isArray(o)&&!!o.length}},{create:Tf,scope:Vf}=ee("cascader-pane"),xf=Tf({components:{Loading:ae.Loading,Checklist:ae.Checklist,TabsBar:on,TabsContainer:an,TabsPane:nl},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:o}=(0,ve.useFoxI18n)(Vf),l=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),r=(0,t.ref)(0),i=(0,t.ref)(),a=(0,t.ref)(!1),u=(0,t.ref)(e.modelValue),s=(0,t.ref)(new gr([],{})),d=(0,t.ref)([]),h=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),c=(0,t.computed)(()=>a.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((f,g)=>({text:f.selectedNode?f.selectedNode.text:o("select"),value:g}))),p=new Map;let y;const C=async()=>{p.clear(),d.value=[],r.value=0,a.value=!1,y=null;let{options:f}=e;l.value.convertConfig&&(f=ef(f,l.value.convertConfig)),s.value=new gr(f,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),h.value&&!s.value.nodes.length&&await w({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:s.value.nodes,selectedNode:null}],k(!h.value)},k=async(f=!0)=>{const g=u.value;if(g===void 0||!s.value.nodes.length)return;if(g.length===0){r.value=0,d.value=[{nodes:s.value.nodes,selectedNode:null}];return}let B=g;if(h.value&&Array.isArray(g)&&g.length){B=[];let v=s.value.nodes.find(b=>b.value===g[0]);v&&(B=[v.value],a.value=!0,await w(await g.slice(1).reduce(async(b,V)=>{const A=await b;await w(A);const T=A&&A?.children?.find(N=>N.value===V);return T&&B.push(V),Promise.resolve(T)},Promise.resolve(v))),a.value=!1)}B.length&&g===e.modelValue&&s.value.getPathNodesByValue(B).map((v,b)=>{r.value=b,m.handleNode(v,f)})},w=async f=>{if(!f)return;if(!l.value.lazyLoad){f.leaf=!0;return}if(s.value.isLeaf(f,h.value)||s.value.hasChildren(f,h.value))return;f.loading=!0;const g=f.root?null:f;let B=p.get(f);B||(B=new Promise(b=>{l.value.lazyLoad?.(f,b)}),p.set(f,B));const v=await B;Array.isArray(v)&&v.length>0?s.value.updateChildren(v,g):f.leaf=!0,f.loading=!1,p.delete(f)},S=f=>{const g=f.map(B=>B.value);u.value=g,n("change",g,f),n("pathChange",f),n("update:modelValue",g)},m={async handleNode(f,g){const{disabled:B,loading:v}=f;if(!(!g&&B||!d.value[r.value])){if(s.value.isLeaf(f,h.value)){if(f.leaf=!0,d.value[r.value].selectedNode=f,d.value=d.value.slice(0,f.level+1),!g){const b=d.value.map(V=>V.selectedNode);S(b),n("pathChange",b)}return}if(s.value.hasChildren(f,h.value)){const b=f.level+1;d.value[r.value].selectedNode=f,d.value=d.value.slice(0,b),d.value.push({nodes:f.children||[],selectedNode:null}),r.value=b,g||n("pathChange",d.value.map(V=>V.selectedNode));return}y=f,!v&&(await w(f),y===f&&(d.value[r.value].selectedNode=f,m.handleNode(f,g)))}},handleTabChange(f,g){y=null},formatTabTitle(f){return f.selectedNode?f.selectedNode.text:o("select")},isSelected(f,g){return f.selectedNode&&f.selectedNode.value===g.value}};return(0,t.watch)([l,()=>e.options],()=>{C()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,f=>{Ee(f,u.value)||(u.value=f,k(!h.value))}),(0,t.watch)(()=>e.visible,f=>{f&&Array.isArray(u.value)&&u.value.length>0&&k(),f&&i.value&&setTimeout(()=>{i.value.doLayout()},0)}),{panes:d,panesTitles:c,initLoading:a,tabsCursor:r,tabsContainerRef:i,...m}}}),Ef={class:"fox-cascader"},$f={role:"menu",class:"fox-cascader__pane"},Df=["aria-checked","aria-disabled","onClick"],If={class:"fox-cascader__item__title"};function qf(e,n,o,l,r,i){const a=(0,t.resolveComponent)("TabsBar"),u=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Checklist"),d=(0,t.resolveComponent)("TabsPane"),h=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",Ef,[(0,t.createVNode)(a,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=c=>e.tabsCursor=c),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),(0,t.createVNode)(h,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=c=>e.tabsCursor=c)},{default:(0,t.withCtx)(()=>[!e.initLoading&&e.panes.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.panes,(c,p)=>((0,t.openBlock)(),(0,t.createBlock)(d,{"pane-key":p,key:p},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",$f,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.nodes,y=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:y.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(c,y),disabled:y.disabled}]),"aria-checked":e.isSelected(c,y),"aria-disabled":y.disabled||void 0,role:"menuitemradio",onClick:C=>e.handleNode(y,!1)},[(0,t.createElementVNode)("view",If,(0,t.toDisplayString)(y.text),1),y.loading?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Df))),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 Pf=re(xf,[["render",qf]]),{create:Mf}=ee("cascader"),Rf=Mf({components:{CascaderPane:Pf,Wrapper:Zd},props:{...et,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},poppable:{type:Boolean,default:()=>!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const o=(0,t.ref)(e.modelValue),l=(0,t.computed)({get(){return e.visible},set(a){n("update:visible",a)}}),r=(a,u)=>{o.value=a,l.value=!1,n("change",a,u),n("update:modelValue",a)},i=a=>{n("pathChange",a)};return(0,t.watch)(()=>e.modelValue,a=>{a!==o.value&&(o.value=a)}),{onChange:r,onPathChange:i,innerValue:o,innerVisible:l}}}),zf=["innerHTML"];function Ff(e,n,o,l,r,i){const a=(0,t.resolveComponent)("CascaderPane"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(u,{poppable:e.poppable,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"header",{},()=>[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,zf)):(0,t.createCommentVNode)("",!0)]),(0,t.createVNode)(a,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:3},8,["poppable","visible","closeable","close-icon-position"])}var ll=re(Rf,[["render",Ff]]);function wt(e,n){return n[e.textKey??"text"]??""}function Ct(e,n){return n[e.valueKey??"value"]}function xi(e,n){return n[e.childrenKey??"children"]}function fn(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const r=n[l],i=wt(e,r),a=Ct(e,r);o.texts.push(i),o.values.push(a??"")}return o}function Ei(e,n,o,l,r=[]){if(!o)return;const i=o[l];for(let a=0;a<n.length;a++)if(wt(e,n[a])===i){const u=Ct(e,n[a])??"",s={[e.textKey]:i,[e.valueKey]:u};r.push(s);const d=xi(e,n[a]);Array.isArray(d)&&Ei(e,d,o,l+1,r);return}}function $i(e,n,o,l,r=[]){if(!o)return;const i=o[l];for(let a=0;a<n.length;a++)if(Ct(e,n[a])===i){const u=wt(e,n[a])??"",s={[e.textKey]:u,[e.valueKey]:i};r.push(s);const d=xi(e,n[a]);Array.isArray(d)&&$i(e,d,o,l+1,r);return}}function Cl(e,n,o){if(n===o)return!0;if(n.length!==o.length)return!1;for(let l=0;l<n.length;l++)if(wt(e,n[l])!==wt(e,o[l])||Ct(e,n[l])!==Ct(e,o[l]))return!1;return!0}var Lf=class{scope;constructor(e){this.scope=e}async load(e,n,o){const l="cascader";if(!e)return[];if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,o);const r=lt(l,this.scope);return r===null?(console.error(`${l} component not found api function`),[]):(xe(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await r(e,n,o))}};function Of(){return new Lf(ut())}var Di={modelValue:{type:[String,Array]},pathNodes:{type:[Array]},title:{type:[String],required:!1},placeholder:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:[Object]},valueType:{type:String,required:!1,default:"value"},lazy:{type:[Boolean],required:!1},lazyLoad:{type:[Function],required:!1},valueKey:{type:[String],default:"value"},textKey:{type:[String],default:"text"},childrenKey:{type:[String],default:"children"},convertConfig:{type:[Object]},showAllLevels:{type:[Boolean],default:!0},separator:{type:[String],default:"/"},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]},emptyText:{type:[String]}},Kf={...ge,...be,...Di};function Uf(e,n,o,l,r,i,a,u=!1){return{props:Kf,emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:c,disabled:p,innerReadonly:y,readonly:C,browse:k}=Te(s),{emitEvent:w,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:m}=(0,ve.useFoxI18n)(n),f=m(s,["placeholder"]),g=(0,t.ref)(!1),B=Of(),v=(0,t.ref)([]),b=(0,t.ref)([]),V=(0,t.computed)(()=>{if(Array.isArray(b.value)){if(b.value.length===0&&s.emptyText)return s.emptyText;if(s.showAllLevels===!1){const H=b.value.length-1;return b.value[H]}return b.value.join(s.separator)}else return b.value??s.emptyText}),A=(0,t.ref)([]),T=(0,t.ref)([]);(0,t.watch)([()=>s.modelValue,()=>v.value],async([H,$])=>{if(w("setValue",H),s.lazy===!0){T.value.length==0&&(s.emptyText?b.value=[s.emptyText]:b.value=Array.isArray(H)?H:[],A.value=Array.isArray(H)?H:[]);return}if(s.valueType==="item"){let E=H;if(!Cl(s,E,T.value)){T.value=E;let z=fn(s,E);b.value=z.texts,A.value=z.values}}else if(s.valueType==="text"){let E=H,z=[];if(Ei(s,$,E,0,z),!Cl(s,z,T.value)){T.value=z;let Z=fn(s,z);b.value=Z.texts,A.value=Z.values}}else{let E=H,z=[];if($i(s,$,E,0,z),!Cl(s,z,T.value)){T.value=z;let Z=fn(s,z);b.value=Z.texts,A.value=Z.values}}}),s.lazy===!0&&(A.value=Array.isArray(s.modelValue)?s.modelValue:[]),(0,t.watch)([()=>s.source,()=>s.params],async([H,$])=>{s.lazy||H&&(v.value=await B.load(H,$))},{immediate:!0});const N="fox-input-item",q=(0,t.computed)(()=>({[N]:!0,"is-disabled":p.value,"is-readonly":C.value})),X=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),x=(0,t.computed)(()=>{const H={};return X.value&&(H["text-align"]=X.value),H}),M=(0,t.ref)(!1),P=()=>{p.value===!0||C.value===!0||(M.value=!0)},K=H=>{M.value=H},R=(H,$)=>{let E=$.map(Z=>{if(Z==null)return Z;let le={...Z};return Reflect.deleteProperty(le,"text"),le[s.textKey]=Z.text??"",Reflect.deleteProperty(le,"value"),le[s.valueKey]=Z.value??"",le});T.value=E;let z=fn(s,E);b.value=z.texts,A.value=z.values,s.valueType==="text"?(w("change",b.value,E),w("update:modelValue",b.value)):s.valueType==="item"?(w("change",E,E),w("update:modelValue",E)):(w("change",A.value,E),w("update:modelValue",A.value)),w("update:pathNodes",E)},j=H=>{w("pathChange",H.map($=>{if($==null)return $;let E={...$};return Reflect.deleteProperty(E,"text"),E[s.textKey]=$.text??"",Reflect.deleteProperty(E,"value"),E[s.valueKey]=$.value??"",E}))},I=H=>{g.value=!0,w("focus",A.value,H)},Q=H=>{setTimeout(()=>{g.value=!1},0),w("blur",A.value,H)},J=(0,t.computed)(()=>({[`${N}__append`]:!0,"is-disabled":p.value,"is-readonly":C.value})),oe=(0,t.computed)(()=>ke(s.unit)>0),W=(0,t.computed)(()=>ke(s.unit)>0&&!g.value),G=(0,t.computed)(()=>({hidden:!W.value})),F=H=>{T.value=[],b.value=[],A.value=[],w("update:modelValue",[]),w("change",[],H),w("clear",[]),w("update:pathNodes",[])},te=(0,t.computed)(()=>s.clearable&&!p.value&&!C.value),U=(0,t.computed)(()=>{let H=A.value&&A.value.length>0;return s.clearable&&H&&g.value}),D=H=>{U.value?F(H):P()},L=(0,t.computed)(()=>U.value&&te.value?r:i),_=(0,t.computed)(()=>({action:!0}));let Y=null;const ne=()=>typeof Y=="function"?Y:typeof s.lazyLoad=="function"?s.lazyLoad:(Y=async(H,$)=>{const E=[],z=[];let Z=0;if(!H.root){let le=H;for(;le;){const ie=wt(s,le),ce=Ct(s,le);z.splice(0,0,ie),E.splice(0,0,ce),le=le._parent}Z=E.length}$(await B.load(s.source,{...H,level:Z,pathLabels:z,pathValues:E},!0))},Y),O=(0,t.ref)();return S({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},select:()=>{O?.value.select()},setDisabled:H=>{c.value=H},setReadonly:H=>{y.value=H}}),()=>{if(k.value==="on"&&(C.value||p.value))return l({modelValue:V.value},d.slots);const H={class:q.value,style:x.value,ref:O,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:V.value,onClick:P,onFocus:I,onBlur:Q};u&&(H.disabled=!0);const $=[],E=(0,t.h)("input",H);$.push(E);const z=[],Z=(0,t.h)(L.value,{class:["action-icon"]}),le=(0,t.h)("view",{class:_.value,onClick:D},{default:()=>[Z]});if(z.push(le),oe.value){const Et=(0,t.h)("view",{class:G.value},[s.unit]);z.push(Et)}const ie=(0,t.h)("view",{class:J.value},{default:()=>z});$.push(ie);const ce={default:()=>$};ce.label=d.slots.default,ce.prepend=d.slots.prepend,ce.append=d.slots.append,ce.fixedPreTip=d.slots.fixedPreTip,ce.fixedTip=d.slots.fixedTip;const fe={};fe.visible=M.value,fe["onUpdate:visible"]=K,fe.modelValue=A.value,fe.onChange=R,fe.onPathChange=j,fe.title=s.title,fe.valueKey=s.valueKey,fe.textKey=s.textKey,fe.childrenKey=s.childrenKey,fe.convertConfig=s.convertConfig,s.lazy?(fe.lazy=!0,fe.lazyLoad=ne()):fe.options=v.value;const Ke={};Ke.header=d.slots.header;const Ue=(0,t.h)(a,fe,Ke);ce.hide=()=>[Ue];const Re={...Ye(s,Di),ref:h};return s.prop&&(Re.prop=`${s.prop}_item`),o(Re,ce)}}}}var{componentName:Hf,create:_f,scope:jf}=ee("cascader-item"),Wf=_f(Uf(Hf,jf,$e,Pe,ae.CircleClose,ae.ArrowRight,ll,!1)),So=Wf,Yf=je(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs=l()})(e,(function(){"use strict";var o=1e3,l=6e4,r=36e5,i="millisecond",a="second",u="minute",s="hour",d="day",h="week",c="month",p="quarter",y="year",C="date",k="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,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,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var M=["th","st","nd","rd"],P=x%100;return"["+x+(M[(P-20)%10]||M[P]||M[0])+"]"}},f=function(x,M,P){var K=String(x);return!K||K.length>=M?x:""+Array(M+1-K.length).join(P)+x},g={s:f,z:function(x){var M=-x.utcOffset(),P=Math.abs(M),K=Math.floor(P/60),R=P%60;return(M<=0?"+":"-")+f(K,2,"0")+":"+f(R,2,"0")},m:function x(M,P){if(M.date()<P.date())return-x(P,M);var K=12*(P.year()-M.year())+(P.month()-M.month()),R=M.clone().add(K,c),j=P-R<0,I=M.clone().add(K+(j?-1:1),c);return+(-(K+(P-R)/(j?R-I:I-R))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:c,y,w:h,d,D:C,h:s,m:u,s:a,ms:i,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},B="en",v={};v[B]=m;var b="$isDayjsObject",V=function(x){return x instanceof q||!(!x||!x[b])},A=function x(M,P,K){var R;if(!M)return B;if(typeof M=="string"){var j=M.toLowerCase();v[j]&&(R=j),P&&(v[j]=P,R=j);var I=M.split("-");if(!R&&I.length>1)return x(I[0])}else{var Q=M.name;v[Q]=M,R=Q}return!K&&R&&(B=R),R||!K&&B},T=function(x,M){if(V(x))return x.clone();var P=typeof M=="object"?M:{};return P.date=x,P.args=arguments,new q(P)},N=g;N.l=A,N.i=V,N.w=function(x,M){return T(x,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var q=(function(){function x(P){this.$L=A(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[b]=!0}var M=x.prototype;return M.parse=function(P){this.$d=(function(K){var R=K.date,j=K.utc;if(R===null)return new Date(NaN);if(N.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var I=R.match(w);if(I){var Q=I[2]-1||0,J=(I[7]||"0").substring(0,3);return j?new Date(Date.UTC(I[1],Q,I[3]||1,I[4]||0,I[5]||0,I[6]||0,J)):new Date(I[1],Q,I[3]||1,I[4]||0,I[5]||0,I[6]||0,J)}}return new Date(R)})(P),this.init()},M.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},M.$utils=function(){return N},M.isValid=function(){return this.$d.toString()!==k},M.isSame=function(P,K){var R=T(P);return this.startOf(K)<=R&&R<=this.endOf(K)},M.isAfter=function(P,K){return T(P)<this.startOf(K)},M.isBefore=function(P,K){return this.endOf(K)<T(P)},M.$g=function(P,K,R){return N.u(P)?this[K]:this.set(R,P)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(P,K){var R=this,j=!!N.u(K)||K,I=N.p(P),Q=function(D,L){var _=N.w(R.$u?Date.UTC(R.$y,L,D):new Date(R.$y,L,D),R);return j?_:_.endOf(d)},J=function(D,L){return N.w(R.toDate()[D].apply(R.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(L)),R)},oe=this.$W,W=this.$M,G=this.$D,F="set"+(this.$u?"UTC":"");switch(I){case y:return j?Q(1,0):Q(31,11);case c:return j?Q(1,W):Q(0,W+1);case h:var te=this.$locale().weekStart||0,U=(oe<te?oe+7:oe)-te;return Q(j?G-U:G+(6-U),W);case d:case C:return J(F+"Hours",0);case s:return J(F+"Minutes",1);case u:return J(F+"Seconds",2);case a:return J(F+"Milliseconds",3);default:return this.clone()}},M.endOf=function(P){return this.startOf(P,!1)},M.$set=function(P,K){var R,j=N.p(P),I="set"+(this.$u?"UTC":""),Q=(R={},R[d]=I+"Date",R[C]=I+"Date",R[c]=I+"Month",R[y]=I+"FullYear",R[s]=I+"Hours",R[u]=I+"Minutes",R[a]=I+"Seconds",R[i]=I+"Milliseconds",R)[j],J=j===d?this.$D+(K-this.$W):K;if(j===c||j===y){var oe=this.clone().set(C,1);oe.$d[Q](J),oe.init(),this.$d=oe.set(C,Math.min(this.$D,oe.daysInMonth())).$d}else Q&&this.$d[Q](J);return this.init(),this},M.set=function(P,K){return this.clone().$set(P,K)},M.get=function(P){return this[N.p(P)]()},M.add=function(P,K){var R,j=this;P=Number(P);var I=N.p(K),Q=function(W){var G=T(j);return N.w(G.date(G.date()+Math.round(W*P)),j)};if(I===c)return this.set(c,this.$M+P);if(I===y)return this.set(y,this.$y+P);if(I===d)return Q(1);if(I===h)return Q(7);var J=(R={},R[u]=l,R[s]=r,R[a]=o,R)[I]||1,oe=this.$d.getTime()+P*J;return N.w(oe,this)},M.subtract=function(P,K){return this.add(-1*P,K)},M.format=function(P){var K=this,R=this.$locale();if(!this.isValid())return R.invalidDate||k;var j=P||"YYYY-MM-DDTHH:mm:ssZ",I=N.z(this),Q=this.$H,J=this.$m,oe=this.$M,W=R.weekdays,G=R.months,F=R.meridiem,te=function(L,_,Y,ne){return L&&(L[_]||L(K,j))||Y[_].slice(0,ne)},U=function(L){return N.s(Q%12||12,L,"0")},D=F||function(L,_,Y){var ne=L<12?"AM":"PM";return Y?ne.toLowerCase():ne};return j.replace(S,(function(L,_){return _||(function(Y){switch(Y){case"YY":return String(K.$y).slice(-2);case"YYYY":return N.s(K.$y,4,"0");case"M":return oe+1;case"MM":return N.s(oe+1,2,"0");case"MMM":return te(R.monthsShort,oe,G,3);case"MMMM":return te(G,oe);case"D":return K.$D;case"DD":return N.s(K.$D,2,"0");case"d":return String(K.$W);case"dd":return te(R.weekdaysMin,K.$W,W,2);case"ddd":return te(R.weekdaysShort,K.$W,W,3);case"dddd":return W[K.$W];case"H":return String(Q);case"HH":return N.s(Q,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return D(Q,J,!0);case"A":return D(Q,J,!1);case"m":return String(J);case"mm":return N.s(J,2,"0");case"s":return String(K.$s);case"ss":return N.s(K.$s,2,"0");case"SSS":return N.s(K.$ms,3,"0");case"Z":return I}return null})(L)||I.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(P,K,R){var j,I=this,Q=N.p(K),J=T(P),oe=(J.utcOffset()-this.utcOffset())*l,W=this-J,G=function(){return N.m(I,J)};switch(Q){case y:j=G()/12;break;case c:j=G();break;case p:j=G()/3;break;case h:j=(W-oe)/6048e5;break;case d:j=(W-oe)/864e5;break;case s:j=W/r;break;case u:j=W/l;break;case a:j=W/o;break;default:j=W}return R?j:N.a(j)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return v[this.$L]},M.locale=function(P,K){if(!P)return this.$L;var R=this.clone(),j=A(P,K,!0);return j&&(R.$L=j),R},M.clone=function(){return N.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},x})(),X=q.prototype;return T.prototype=X,[["$ms",i],["$s",a],["$m",u],["$H",s],["$W",d],["$M",c],["$y",y],["$D",C]].forEach((function(x){X[x[1]]=function(M){return this.$g(M,x[0],x[1])}})),T.extend=function(x,M){return x.$i||(x(M,q,T),x.$i=!0),T},T.locale=A,T.isDayjs=V,T.unix=function(x){return T(1e3*x)},T.en=v[B],T.Ls=v,T.p={},T}))})),Xf=je(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,i=/\d\d/,a=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},d=function(w){return(w=+w)+(w>68?1900:2e3)},h=function(w){return function(S){this[w]=+S}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(w){(this.zone||(this.zone={})).offset=(function(S){if(!S||S==="Z")return 0;var m=S.match(/([+-]|\d\d)/g),f=60*m[1]+(+m[2]||0);return f===0?0:m[0]==="+"?-f:f})(w)}],p=function(w){var S=s[w];return S&&(S.indexOf?S:S.s.concat(S.f))},y=function(w,S){var m,f=s.meridiem;if(f){for(var g=1;g<=24;g+=1)if(w.indexOf(f(g,0,S))>-1){m=g>12;break}}else m=w===(S?"pm":"PM");return m},C={A:[u,function(w){this.afternoon=y(w,!1)}],a:[u,function(w){this.afternoon=y(w,!0)}],Q:[r,function(w){this.month=3*(w-1)+1}],S:[r,function(w){this.milliseconds=100*+w}],SS:[i,function(w){this.milliseconds=10*+w}],SSS:[/\d{3}/,function(w){this.milliseconds=+w}],s:[a,h("seconds")],ss:[a,h("seconds")],m:[a,h("minutes")],mm:[a,h("minutes")],H:[a,h("hours")],h:[a,h("hours")],HH:[a,h("hours")],hh:[a,h("hours")],D:[a,h("day")],DD:[i,h("day")],Do:[u,function(w){var S=s.ordinal,m=w.match(/\d+/);if(this.day=m[0],S)for(var f=1;f<=31;f+=1)S(f).replace(/\[|\]/g,"")===w&&(this.day=f)}],w:[a,h("week")],ww:[i,h("week")],M:[a,h("month")],MM:[i,h("month")],MMM:[u,function(w){var S=p("months"),m=(p("monthsShort")||S.map((function(f){return f.slice(0,3)}))).indexOf(w)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[u,function(w){var S=p("months").indexOf(w)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,h("year")],YY:[i,function(w){this.year=d(w)}],YYYY:[/\d{4}/,h("year")],Z:c,ZZ:c};function k(w){for(var S=w,m=s&&s.formats,f=(w=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(T,N,q){var X=q&&q.toUpperCase();return N||m[q]||o[q]||m[X].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,M,P){return M||P.slice(1)}))}))).match(l),g=f.length,B=0;B<g;B+=1){var v=f[B],b=C[v],V=b&&b[0],A=b&&b[1];f[B]=A?{regex:V,parser:A}:v.replace(/^\[|\]$/g,"")}return function(T){for(var N={},q=0,X=0;q<g;q+=1){var x=f[q];if(typeof x=="string")X+=x.length;else{var M=x.regex,P=x.parser,K=T.slice(X),R=M.exec(K)[0];P.call(N,R),T=T.replace(R,"")}}return(function(j){var I=j.afternoon;if(I!==void 0){var Q=j.hours;I?Q<12&&(j.hours+=12):Q===12&&(j.hours=0),delete j.afternoon}})(N),N}}return function(w,S,m){m.p.customParseFormat=!0,w&&w.parseTwoDigitYear&&(d=w.parseTwoDigitYear);var f=S.prototype,g=f.parse;f.parse=function(B){var v=B.date,b=B.utc,V=B.args;this.$u=b;var A=V[1];if(typeof A=="string"){var T=V[2]===!0,N=V[3]===!0,q=T||N,X=V[2];N&&(X=V[2]),s=this.$locale(),!T&&X&&(s=m.Ls[X]),this.$d=(function(K,R,j,I){try{if(["x","X"].indexOf(R)>-1)return new Date((R==="X"?1e3:1)*K);var Q=k(R)(K),J=Q.year,oe=Q.month,W=Q.day,G=Q.hours,F=Q.minutes,te=Q.seconds,U=Q.milliseconds,D=Q.zone,L=Q.week,_=new Date,Y=W||(J||oe?1:_.getDate()),ne=J||_.getFullYear(),O=0;J&&!oe||(O=oe>0?oe-1:_.getMonth());var H,$=G||0,E=F||0,z=te||0,Z=U||0;return D?new Date(Date.UTC(ne,O,Y,$,E,z,Z+60*D.offset*1e3)):j?new Date(Date.UTC(ne,O,Y,$,E,z,Z)):(H=new Date(ne,O,Y,$,E,z,Z),L&&(H=I(H).week(L).toDate()),H)}catch{return new Date("")}})(v,A,b,m),this.init(),X&&X!==!0&&(this.$L=this.locale(X).$L),q&&v!=this.format(A)&&(this.$d=new Date("")),s={}}else if(A instanceof Array)for(var x=A.length,M=1;M<=x;M+=1){V[1]=A[M-1];var P=m.apply(this,V);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}M===x&&(this.$d=new Date(""))}else g.call(this,B)}}}))})),Qf=je(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(o,l){var r=l.prototype,i=r.format;r.format=function(a){var u=this,s=this.$locale();if(!this.isValid())return i.bind(this)(a);var d=this.$utils(),h=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(c){switch(c){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),c==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),c==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return c}}));return i.bind(this)(h)}}}))})),Gf=je(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(o,l,r){var i=l.prototype,a=function(c){return c&&(c.indexOf?c:c.s)},u=function(c,p,y,C,k){var w=c.name?c:c.$locale(),S=a(w[p]),m=a(w[y]),f=S||m.map((function(B){return B.slice(0,C)}));if(!k)return f;var g=w.weekStart;return f.map((function(B,v){return f[(v+(g||0))%7]}))},s=function(){return r.Ls[r.locale()]},d=function(c,p){return c.formats[p]||(function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,k,w){return k||w.slice(1)}))})(c.formats[p.toUpperCase()])},h=function(){var c=this;return{months:function(p){return p?p.format("MMMM"):u(c,"months")},monthsShort:function(p){return p?p.format("MMM"):u(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(c,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(c,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return d(c.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return h.bind(this)()},r.localeData=function(){var c=s();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(p){return d(c,p)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(c){return u(s(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return u(s(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return u(s(),"weekdaysMin","weekdays",2,c)}}}))})),Zf=je(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var o="week",l="year";return function(r,i,a){var u=i.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=a(this).startOf(l).add(1,l).date(d),c=a(this).endOf(o);if(h.isBefore(c))return 1}var p=a(this).startOf(l).date(d).startOf(o).subtract(1,"millisecond"),y=this.diff(p,o,!0);return y<0?a(this).startOf("week").week():Math.ceil(y)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})),Jf=je(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(o,l){l.prototype.weekYear=function(){var r=this.month(),i=this.week(),a=this.year();return i===1&&r===11?a+1:r===0&&i>=52?a-1:a}}}))})),em=je(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(o,l,r){l.prototype.dayOfYear=function(i){var a=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return i==null?a:this.add(i-a,"day")}}}))})),tm=je(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrAfter=function(r,i){return this.isSame(r,i)||this.isAfter(r,i)}}}))})),nm=je(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrBefore=function(r,i){return this.isSame(r,i)||this.isBefore(r,i)}}}))})),Le=We(Yf(),1),lm=We(Xf(),1),om=We(Qf(),1),am=We(Gf(),1),rm=We(Zf(),1),im=We(Jf(),1),sm=We(em(),1),um=We(tm(),1),cm=We(nm(),1);Le.default.extend(am.default);Le.default.extend(om.default);Le.default.extend(lm.default);Le.default.extend(rm.default);Le.default.extend(im.default);Le.default.extend(sm.default);Le.default.extend(um.default);Le.default.extend(cm.default);var gt={format(e,n="YYYY-MM-DD"){return(0,Le.default)(e).format(n)},parser(e,n){return(0,Le.default)(e,n).toDate()},getDay(e,n,o){let l=n??new Date;const r=e*(1e3*60*60*24);return l=new Date(l.getTime()+r),o=o??"YYYY-MM-DD",this.format(l,o)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){let l=new Date(e+"/"+n+"/"+o).getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},compare(e,n,o){const l=typeof e=="string"?this.parser(e,o):e,r=typeof n=="string"?this.parser(n,o):n,i=l.getTime(),a=r.getTime();return i==a?0:i>a?1:-1},between(e,n,o,l){let r;l==="year"?r=new Date(new Date(n).setFullYear(n.getFullYear()+o)):l==="month"?r=new Date(new Date(n).setMonth(n.getMonth()+o)):r=new Date(new Date(n).setDate(n.getDate()+o));const i=e.getTime(),a=r.getTime(),u=n.getTime();return a>u?i>=u&&i<=a:i>=a&&i<=u},inScope4Day(e,n,o){return this.between(e,n,o,"day")},inScope4Month(e,n,o){return this.between(e,n,o,"month")},inScope4Year(e,n,o){return this.between(e,n,o,"year")}},yr=new Date().getFullYear(),ko={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},Vn=(e,n,o)=>{let l;if(_e(n)?l=n:typeof n=="string"&&ke(n)>0?l=gt.parser(n,o):l=new Date,l.toString()==="Invalid Date")return null;let r=Math.max(l.getTime(),e.minDate.getTime());return r=Math.min(r,e.maxDate.getTime()),new Date(r)},Hl=(e,n,o)=>{_e(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),gt.format(new Date(l),o)},wo={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(yr-10,0,1),validator:_e},maxDate:{type:Date,default:()=>new Date(yr+10,11,31),validator:_e},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:dm,scope:fm}=ee("date-picker"),mm=dm({components:{Picker:ln},props:{...wo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=(0,ve.useFoxI18n)(fm),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds"),today:o("today"),fullWeekdays:JSON.parse(o("fullWeekdays"))},r=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,f=>{r.value=f});function i(f,g){return new Date(f,g,0).getDate()}const a=(f,g)=>{const B=e[`${f}Date`],v=B.getFullYear();let b=1,V=1,A=0,T=0;f==="max"&&(b=12,V=i(g.getFullYear(),g.getMonth()+1),A=23,T=59);const N=T;return g.getFullYear()===v&&(b=B.getMonth()+1,g.getMonth()+1===b&&(V=B.getDate(),g.getDate()===V&&(A=B.getHours(),g.getHours()===A&&(T=B.getMinutes())))),{[`${f}Year`]:v,[`${f}Month`]:b,[`${f}Date`]:V,[`${f}Hour`]:A,[`${f}Minute`]:T,[`${f}Seconds`]:N}},u=(0,t.computed)(()=>{if(!p.value)return[];const{maxYear:f,maxDate:g,maxMonth:B,maxHour:v,maxMinute:b,maxSeconds:V}=a("max",p.value),{minYear:A,minDate:T,minMonth:N,minHour:q,minMinute:X,minSeconds:x}=a("min",p.value);let M=[{type:"year",range:[A,f]},{type:"month",range:[N,B]},{type:"day",range:[T,g]},{type:"hour",range:[q,v]},{type:"minute",range:[X,b]},{type:"seconds",range:[x,V]}];switch(e.type){case"date":M=M.slice(0,3);break;case"datetime":M=M.slice(0,5);break;case"time":M=M.slice(3,6);break;case"year-month":M=M.slice(0,2);break;case"month-day":M=M.slice(1,3);break;case"datehour":M=M.slice(0,4);break;case"hour-minute":M=M.slice(3,5);break}return M}),s=(f,g,B,v,b)=>{const V=[];for(;f<=g;){let A=!0;if(typeof e.itemFilter=="function"){const T={text:`${f}`,value:f,type:B,currentYearMonth:v};A=e.itemFilter(T)}if(A)if(typeof e.itemFormatter=="function"){const T={text:`${f}`,value:f,type:B,currentYearMonth:v};e.itemFormatter(T),V.push({text:T.text,value:T.value})}else if(e.isShowChinese){let T=`${f}${l[B]}`;if(B==="day"){if(v[0]===b[0]&&v[1]===b[1]&&f===b[2])T=l.today;else{const N=new Date(v[0],v[1],f).getDay();T=`${T} ${l.fullWeekdays[N]}`}V.push({text:T,value:f})}else V.push({text:f+l[B],value:f})}else V.push({text:`${f}`,value:f});B==="minute"?f+=e.minuteStep:f++}return V},d=(0,t.computed)(()=>{const f=new Date,g=[f.getFullYear(),f.getMonth(),f.getDate()],B=[];p.value&&(B[0]=p.value.getFullYear(),B[1]=p.value.getMonth());let v=[];return u.value.forEach(b=>{let V=s(b.range[0],b.range[1],b.type,B,g);V&&v.push(V)}),v}),h=(f,g)=>f==="year"?g.getFullYear():f==="month"?g.getMonth()+1:f==="day"?g.getDate():f==="hour"?g.getHours():f==="minute"?g.getMinutes():f==="seconds"?g.getSeconds():0,c=(0,t.ref)(),p=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,f=>{let g;if(typeof f=="string"?f.length==0||f==="Invalid Date"?g=new Date:e.valueFormat?g=Vn(e,e.modelValue,e.valueFormat):g=Vn(e,f,ko[e.type]):_e(f)?g=f:g=new Date,!!g&&(!p.value||g.getTime()!==p.value.getTime())){p.value=g;let B=[];u.value.forEach(v=>{let b=h(v.type,g);B.push(b)}),c.value=B}},{immediate:!0});const y=f=>{if(!f||f.length===0){p.value=new Date;let g=[];u.value.forEach(B=>{let v=h(B.type,p.value);g.push(v)}),c.value=g;return}if(e.type==="date"){const g=f[0],B=f[1]-1,v=Math.min(f[2],i(g,B+1));v!==f[2]&&(f[2]=v),p.value=new Date(g,B,v)}else if(e.type==="datetime"){const g=f[0],B=f[1]-1,v=Math.min(f[2],i(g,B+1)),b=f[3],V=f[4];v!==f[2]&&(f[2]=v),p.value=new Date(g,B,v,b,V)}else if(e.type==="time"){const g=f[0],B=f[1],v=f[2],b=p.value??new Date;p.value=new Date(b.getFullYear(),b.getMonth(),b.getDate(),g,B,v)}else if(e.type==="year-month"){const g=f[0],B=f[1]-1;p.value=new Date(g,B)}else if(e.type==="month-day"){const g=(p.value??new Date).getFullYear(),B=f[0]-1,v=Math.min(f[1],i(g,B+1));v!==f[1]&&(f[1]=v),p.value=new Date(g,B,v)}else if(e.type==="datehour"){const g=f[0],B=f[1]-1,v=Math.min(f[2],i(g,B+1)),b=f[3];v!==f[2]&&(f[2]=v),p.value=new Date(g,B,v,b)}else if(e.type==="hour-minute"){const g=f[0],B=f[1],v=p.value??new Date;p.value=new Date(v.getFullYear(),v.getMonth(),v.getDate(),g,B)}c.value=f};return{columns:d,dateIndexs:c,show:r,onChange:f=>{y(f)},onClose:()=>{n("update:close",!1)},onConfirm:f=>{y(f);const g=p.value??new Date;e.valueFormat?n("update:modelValue",Hl(e,g,e.valueFormat)):n("update:modelValue",g),n("confirm",f)},onClear:()=>{n("clear")},onUpdateVisible:f=>{r.value=f,n("update:visible",f)}}}});function pm(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(a,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"top")]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}var ol=re(mm,[["render",pm]]),hm={format:{type:[String]},placeholder:{type:[String]},textAlign:{type:[String]},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}};function vm(e){let n=e.format;return n||(n=ko[e.type??"date"]),n}var gm={...ge,...be,...wo,...hm};function ym(e,n,o,l,r,i,a,u=!1){return{props:gm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:c,disabled:p,innerReadonly:y,readonly:C,browse:k}=Te(s),{emitEvent:w,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:m}=(0,ve.useFoxI18n)(n),f=m(s,["placeholder"]),g=(0,t.ref)(!1),v=qe(s,"modelValue",D=>D==null?null:typeof D=="string"?D.length==0?null:s.valueFormat?Vn(s,D,s.valueFormat)??D:Vn(s,D,ko[s.type])??D:_e(D)?D:null,w),b=(0,t.computed)(()=>{if(!v.value)return"";const D=vm(s);return Hl(s,v.value,D)}),V="fox-input-item",A=(0,t.computed)(()=>({[V]:!0,"is-disabled":p.value,"is-readonly":C.value})),T=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),N=(0,t.computed)(()=>{const D={};return T.value&&(D["text-align"]=T.value),D}),q=(0,t.ref)(!1),X=()=>{q.value=!0},x=()=>{q.value=!1};d.expose({showPicker:X,hidePicker:x});const M=D=>{q.value=D},P=D=>{if(v.value=D,s.valueFormat){let L=Hl(s,D,s.valueFormat);w("update:modelValue",L,{}),w("change",L,{})}else w("update:modelValue",D,{}),w("change",D,{})},K=D=>{let L=D.target.value;g.value=!0,w("focus",L,D)},R=D=>{setTimeout(()=>{g.value=!1},0);let L=D.target.value;s.maxLength&&L.length>Number(s.maxLength)&&(L=L.slice(0,Number(s.maxLength))),w("blur",L,D)},j=(0,t.computed)(()=>({[`${V}__append`]:!0,"is-disabled":p.value,"is-readonly":C.value})),I=(0,t.computed)(()=>ke(s.unit)>0),Q=(0,t.computed)(()=>ke(s.unit)>0&&!g.value),J=(0,t.computed)(()=>({hidden:!Q.value})),oe=D=>{v.value="",w("update:modelValue","",D),w("change","",D),w("clear",""),x()},W=(0,t.computed)(()=>s.clearable&&!p.value&&!C.value),G=(0,t.computed)(()=>{let D=ke(v.value)>0;return s.clearable&&D&&g.value}),F=D=>{G.value?oe(D):X()},te=(0,t.computed)(()=>G.value&&W.value?r:i),U=(0,t.computed)(()=>({action:!0}));return S({setDisabled:D=>{c.value=D},setReadonly:D=>{y.value=D}}),()=>{if(k.value==="on"&&(C.value||p.value))return l({modelValue:b.value},d.slots);const D={class:A.value,style:N.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:X,onFocus:K,onBlur:R};u&&(D.disabled=!0);const L=[],_=(0,t.h)("input",D);L.push(_);const Y=[],ne=(0,t.h)(te.value,{class:["action-icon"]}),O=(0,t.h)("view",{class:U.value,onClick:F},{default:()=>[ne]});if(Y.push(O),I.value){const ie=(0,t.h)("view",{class:J.value},[s.unit]);Y.push(ie)}const H=(0,t.h)("view",{class:j.value},{default:()=>Y});L.push(H);const $={default:()=>L};$.label=d.slots.default,$.prepend=d.slots.prepend,$.append=d.slots.append,$.fixedPreTip=d.slots.fixedPreTip,$.fixedTip=d.slots.fixedTip;const E=ye(s,wo);E.valueFormat=null,E.disabled=!1,E.readonly=p.value||C.value,E.visible=q.value,E["onUpdate:visible"]=M,E.modelValue=v.value,E["onUpdate:modelValue"]=P,E.onClear=oe;const z={};if(d.slots.top){const ie=d.slots.top();z.top=()=>ie}if(d.slots.bottom){const ie=d.slots.bottom();z.default=()=>ie}const Z=(0,t.h)(a,E,z);$.hide=()=>[Z];const le={...ye(s,be,ge),ref:h};return s.prop&&(le.prop=`${s.prop}_item`),o(le,$)}}}}var{create:bm,componentName:Sm,scope:km}=ee("date-item"),wm=bm(ym(Sm,km,$e,Pe,ae.CircleClose,ae.Date,ol,!1)),Co=wm,se={format(e,n="YYYY-MM-DD"){return gt.format(e,n)},parser(e,n){return gt.parser(e,n)},isLeapYear:function(e){return gt.isLeapYear(e)},getWhatDay:function(e,n,o){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+o).getDay()]},getMonthPreDay:function(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays:function(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit:function(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},getDay:function(e){e=e||0;let n=new Date;const o=e*(1e3*60*60*24);return n=new Date(n.getTime()+o),this.date2Str(n)},compareDate:function(e,n){return!(new Date(e.replace("-","/").replace("-","/"))>=new Date(n.replace("-","/").replace("-","/")))},isEqual:function(e,n){return new Date(e).getTime()==new Date(n).getTime()},getMonthWeek:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o));let i=r.getDay();const a=r.getDate();let u=6-i;return l!==0&&(i=i==0?7:i,u=7-i),Math.ceil((a+u)/7)},getYearWeek:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),i=new Date(Number(e),0,1),a=Math.round((r.valueOf()-i.valueOf())/864e5);return Math.ceil((a+(i.getDay()+1-1))/7)},getWeekDate:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),i=r.getTime();let a=r.getDay();if(l===0){const s=i-a*864e5,d=i+(6-a)*864e5;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}else{a=a==0?7:a;const u=1440*60*1e3,s=i-(a-1)*u,d=i+(7-a)*u;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}},formatResultDate:function(e){const n=[...e.split("-")];return n[2]=se.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=se.getWhatDay(+n[0],+n[1],+n[2]),n}},{create:Cm,scope:Nm}=ee("calendar-pane"),Am=Cm({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String},confirmText:{type:String},startText:{type:String},endText:{type:String},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:se.getDay(0)},endDate:{type:String,default:se.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o,expose:l}){const{toLocaleRefs:r,t:i}=(0,ve.useFoxI18n)(Nm),a=r(e,["title","confirmText","startText","endText","today"]),u=JSON.parse(i("weekdays")),s=(0,t.ref)([...u.slice(e.firstDayOfWeek,7),...u.slice(0,e.firstDayOfWeek)]),d=(0,t.ref)(null),h=(0,t.ref)(null),c=(0,t.ref)(null),p=(0,t.ref)(null),y=(0,t.ref)(0),C=(0,t.computed)(()=>m.monthsData.slice(m.defaultRange[0],m.defaultRange[1])),k=(0,t.computed)(()=>o.btn),w=(0,t.computed)(()=>o["top-info"]),S=(0,t.computed)(()=>o["bottom-info"]),m=(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}),f=U=>U.split("-"),g=U=>se.isEqual(m.currDate[0],U),B=U=>se.isEqual(m.currDate[1],U),v=U=>m.currDate?.length>0?m.currDate?.some(D=>se.isEqual(D,U)):!1,b=(U,D)=>D.curData[0]+"-"+D.curData[1]+"-"+se.getNumTwoBit(+U.day),V=(U,D)=>{const L=b(U,D),{type:_}=e;return U.type=="curr"?se.isEqual(m.currDate,L)||(_=="range"||_=="week")&&(g(L)||B(L))||_=="multiple"&&v(L)?`${m.dayPrefix}--active`:m.propStartDate&&se.compareDate(L,m.propStartDate)||m.propEndDate&&se.compareDate(m.propEndDate,L)?`${m.dayPrefix}--disabled`:(_=="range"||_=="week")&&Array.isArray(m.currDate)&&Object.values(m.currDate).length==2&&se.compareDate(m.currDate[0],L)&&se.compareDate(L,m.currDate[1])?`${m.dayPrefix}--choose`:null:`${m.dayPrefix}--disabled`},A=()=>{const{type:U}=e;if(U=="range"&&m.chooseData.length==2||U!="range"){let D=m.chooseData.slice(0);U=="week"&&(D={weekDate:[N(m.chooseData[0]),N(m.chooseData[1])]}),n("choose",D),e.poppable&&n("update")}},T=(U,D,L=!1)=>{if(V(U,D)!=`${m.dayPrefix}--disabled`){const{type:_}=e;let[Y,ne]=D.curData,O=[...D.curData];if(O[2]=se.getNumTwoBit(Number(U.day)),O[3]=`${O[0]}-${O[1]}-${O[2]}`,O[4]=se.getWhatDay(+O[0],+O[1],+O[2]),_=="multiple")if(m.currDate?.length>0){let H;m.currDate?.forEach(($,E)=>{$==O[3]&&(H=E)}),L?m.chooseData.push([...O]):H!==void 0?(m.currDate.splice(H,1),m.chooseData.splice(H,1)):(m.currDate.push(O[3]),m.chooseData.push([...O]))}else m.currDate=[O[3]],m.chooseData=[[...O]];else if(_=="range"){let H=Object.values(m.currDate).length;H==2||H==0?m.currDate=[O[3]]:se.compareDate(m.currDate[0],O[3])?Array.isArray(m.currDate)&&m.currDate.push(O[3]):Array.isArray(m.currDate)&&m.currDate.unshift(O[3]),m.chooseData.length==2||!m.chooseData.length?m.chooseData=[[...O]]:se.compareDate(m.chooseData[0][3],O[3])?m.chooseData=[...m.chooseData,[...O]]:m.chooseData=[[...O],...m.chooseData]}else if(_=="week"){let H=se.getWeekDate(Y,ne,U.day,e.firstDayOfWeek);m.propStartDate&&se.compareDate(H[0],m.propStartDate)&&H.splice(0,1,m.propStartDate),m.propEndDate&&se.compareDate(m.propEndDate,H[1])&&H.splice(1,1,m.propEndDate),m.currDate=H,m.chooseData=[se.formatResultDate(H[0]),se.formatResultDate(H[1])]}else m.currDate=O[3],m.chooseData=[...O];if(!L){let H=m.chooseData;_=="week"&&(H={weekDate:[N(m.chooseData[0]),N(m.chooseData[1])]}),n("select",H),(e.isAutoBackFill||!e.poppable)&&A()}}},N=U=>{let[D,L,_]=U;return{date:U,monthWeekNum:se.getMonthWeek(D,L,_,e.firstDayOfWeek),yearWeekNum:se.getYearWeek(D,L,_,e.firstDayOfWeek)}},q=U=>{const D=U=="prev"?m.monthsData[0]:m.monthsData[m.monthsData.length-1];let L=parseInt(D.curData[0]),_=parseInt(D.curData[1].toString().replace(/^0/,""));switch(U){case"prev":_==1&&(L-=1),_=_==1?12:--_;break;case"next":_==12&&(L+=1),_=_==12?1:++_;break}return[L+"",se.getNumTwoBit(_),se.getMonthDays(String(L),String(_))+""]},X=(U,D,L)=>{let{year:_,month:Y}=L;return D=="prev"&&U>=7&&(U-=7),Array.from(Array(U),(ne,O)=>({day:String(O+1),type:D,year:_,month:Y}))},x=(U,D,L,_)=>{U=U-e.firstDayOfWeek;let{year:Y,month:ne}=L;return D=="prev"&&U>=7&&(U-=7),Array.from(Array(_),(O,H)=>({day:String(H+1),type:D,year:Y,month:ne})).slice(_-U)},M=(U,D)=>{const L=se.getMonthPreDay(+U[0],+U[1]);let _=Number(U[1])-1,Y=Number(U[0]);_<=0&&(_=12,Y+=1);const ne=se.getMonthDays(String(U[0]),String(U[1])),O=se.getMonthDays(Y+"",_+""),H={year:U[0],month:U[1]},$={curData:U,title:i("monthTitle",{year:H.year,month:H.month}),monthData:[...x(L,"prev",{month:String(_),year:String(Y)},O),...X(ne,"curr",H)],cssHeight:0,cssScrollHeight:0};$.cssHeight=39+64*($.monthData.length>35?6:5);let E=0;m.monthsData.length>0&&(E=m.monthsData[m.monthsData.length-1].cssScrollHeight+m.monthsData[m.monthsData.length-1].cssHeight),$.cssScrollHeight=E,D=="next"?(!m.endData||!se.compareDate(`${m.endData[0]}-${m.endData[1]}-${se.getMonthDays(m.endData[0],m.endData[1])}`,`${U[0]}-${U[1]}-${U[2]}`))&&m.monthsData.push($):!m.startData||!se.compareDate(`${U[0]}-${U[1]}-${U[2]}`,`${m.startData[0]}-${m.startData[1]}-01`)?m.monthsData.unshift($):m.unLoadPrev=!0},P=()=>{let U=e.startDate?e.startDate:se.getDay(0),D=e.endDate?e.endDate:se.getDay(365);m.propStartDate=U,m.propEndDate=D,m.startData=f(U),m.endData=f(D),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(m.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const L={year:Number(m.startData[0]),month:Number(m.startData[1])},_={year:Number(m.endData[0]),month:Number(m.endData[1])};let Y=_.month-L.month;_.year-L.year>0&&(Y=Y+12*(_.year-L.year)),Y<=0&&(Y=1),M(m.startData,"next");let ne=1;do M(q("next"),"next");while(ne++<Y);if(m.monthsNum=Y,e.type=="range"&&Array.isArray(m.currDate))m.currDate.length>0&&(U&&se.compareDate(m.currDate[0],U)&&m.currDate.splice(0,1,U),D&&se.compareDate(D,m.currDate[1])&&m.currDate.splice(1,1,D),m.defaultData=[...f(m.currDate[0]),...f(m.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(m.currDate)){if(m.currDate.length>0){let O=[],H={};m.currDate.forEach($=>{U&&!se.compareDate($,U)&&D&&!se.compareDate(D,$)&&(Object.hasOwnProperty.call(H,$)||(O.push($),H[$]=$))}),m.currDate=[...O],m.defaultData=[...f(O[0])]}}else if(e.type=="week"&&Array.isArray(m.currDate)){if(m.currDate.length>0){let[O,H,$]=f(m.currDate[0]);m.currDate=se.getWeekDate(O,H,$,e.firstDayOfWeek),U&&se.compareDate(m.currDate[0],U)&&m.currDate.splice(0,1,U),D&&se.compareDate(D,m.currDate[1])&&m.currDate.splice(1,1,D),m.defaultData=[...f(m.currDate[0]),...f(m.currDate[1])]}}else m.currDate&&(U&&se.compareDate(m.currDate,U)?m.currDate=U:D&&!se.compareDate(m.currDate,D)&&(m.currDate=D),m.defaultData=[...f(m.currDate)])};l({scrollToDate:U=>{se.compareDate(U,m.propStartDate)?U=m.propStartDate:se.compareDate(U,m.propEndDate)||(U=m.propEndDate);let D=f(U);m.monthsData.forEach((L,_)=>{if(L.title==i("monthTitle",{year:D[0],month:D[1]})&&d.value){let Y=m.monthsData[_].cssScrollHeight-d.value.scrollTop;if(e.toDateAnimation){let ne=0,O=setInterval(()=>{if(ne++,d.value){let H=Y/10;d.value.scrollTop=d.value.scrollTop+H}ne>=10&&(clearInterval(O),d.value&&(d.value.scrollTop=m.monthsData[_].cssScrollHeight))},40)}else d.value.scrollTop=m.monthsData[_].cssScrollHeight}})},initPosition:()=>{d?.value&&(d.value.scrollTop=m.monthsData[m.currentIndex].cssScrollHeight)},doLayout:()=>{let U=0,D=0;m.defaultData.length>0&&m.monthsData.forEach((Y,ne)=>{Y.title==i("monthTitle",{year:m.defaultData[0],month:m.defaultData[1]})&&(U=ne),(e.type=="range"||e.type=="week")&&Y.title==i("monthTitle",{year:m.defaultData[3],month:m.defaultData[4]})&&(D=ne)}),I(m.monthsNum,U),m.currentIndex=U,m.yearMonthTitle=m.monthsData[m.currentIndex].title,m.defaultData.length>0&&(m.isRange?(T({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0),T({day:m.defaultData[5],type:"curr"},m.monthsData[D],!0)):e.type=="week"?T({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0):e.type=="multiple"?[...m.currDate].forEach(Y=>{let ne=f(Y),O=m.currentIndex;m.monthsData.forEach((H,$)=>{H.title==i("monthTitle",{year:ne[0],month:ne[1]})&&(O=$)}),T({day:ne[2],type:"curr"},m.monthsData[O],!0)}):T({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0));let L=m.monthsData[m.monthsData.length-1],_=L.cssHeight+L.cssScrollHeight;Ge(()=>{d?.value&&h?.value&&p?.value&&(y.value=d.value.clientHeight,h.value.style.height=`${_}px`,d.value.scrollTop=m.monthsData[m.currentIndex].cssScrollHeight)}),m.avgHeight=Math.floor(_/(m.monthsNum+1))}});const I=(U,D)=>{U>=3?D>0&&D<U?m.defaultRange=[D-1,D+3]:D==0?m.defaultRange=[D,D+4]:D==U&&(m.defaultRange=[D-2,D+2]):m.defaultRange=[0,U+2],m.translateY=m.monthsData[m.defaultRange[0]].cssScrollHeight},Q=(U,D)=>(e.type=="range"||e.type=="week")&&U.type=="curr"&&V(U,D)=="fox-calendar__day--active",J=(U,D)=>Q(U,D)&&g(b(U,D)),oe=(U,D)=>m.currDate.length>=2&&B(b(U,D))?Q(U,D):!1,W=()=>{if(m.currDate.length>=2)return se.isEqual(m.currDate[0],m.currDate[1])},G=U=>{const D=`${U.year}-${U.month}-${Number(U.day)<10?"0"+U.day:U.day}`;return se.isEqual(D,se.date2Str(new Date))},F=U=>{if(m.monthsData.length<=1)return;const D=U.target.scrollTop;let L=Math.floor(D/m.avgHeight);if(L==0)D>=m.monthsData[L+1].cssScrollHeight&&(L+=1);else if(L>0&&L<m.monthsNum-1)D>=m.monthsData[L+1].cssScrollHeight&&(L+=1),D<m.monthsData[L].cssScrollHeight&&(L-=1);else{const _=Math.round(D+y.value);_<m.monthsData[L].cssScrollHeight+m.monthsData[L].cssHeight&&D>m.monthsData[L-1].cssScrollHeight&&(L-=1),L+1<=m.monthsNum&&_>=m.monthsData[L+1].cssScrollHeight+m.monthsData[L+1].cssHeight&&(L+=1),L>=1&&D<m.monthsData[L-1].cssScrollHeight&&(L-=1)}m.currentIndex!==L&&(m.currentIndex=L,I(m.monthsNum,L)),m.yearMonthTitle=m.monthsData[L].title},te=()=>{m.chooseData.splice(0),m.monthsData.splice(0),P()};return P(),(0,t.watch)(()=>e.defaultValue,U=>{U&&e.poppable&&te()}),{weeks:s,compConthsData:C,showTopBtn:k,topInfo:w,bottomInfo:S,rangeTip:W,mothsViewScroll:F,getClass:V,isStartTip:J,isEndTip:oe,chooseDay:T,isCurrDay:G,confirm:A,months:d,...(0,t.toRefs)(m),...(0,t.toRefs)(e),...a,monthsPanel:h,weeksPanel:c,viewArea:p}}}),Bm={class:"fox-calendar__header"},Tm={key:0,class:"fox-calendar__header-title"},Vm={key:1,class:"fox-calendar__header-slot"},xm={key:2,class:"fox-calendar__header-subtitle"},Em={class:"fox-calendar__weekdays",ref:"weeksPanel"},$m={class:"fox-calendar__panel",ref:"monthsPanel"},Dm={class:"fox-calendar__month-title"},Im={class:"fox-calendar__days"},qm=["onClick"],Pm={class:"fox-calendar__day-value"},Mm={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Rm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},zm={key:2,class:"fox-calendar__day-tips--curr"},Fm={key:4,class:"fox-calendar__day-tip"},Lm={key:0,class:"fox-calendar__footer"};function Om(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[(0,t.createElementVNode)("view",Bm,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Tm,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",Vm,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",xm,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Em,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.weeks,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:u},(0,t.toDisplayString)(a),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...a)=>e.mothsViewScroll&&e.mothsViewScroll(...a))},[(0,t.createElementVNode)("view",$m,[(0,t.createElementVNode)("view",{class:"fox-calendar__body",ref:"viewArea",style:(0,t.normalizeStyle)({transform:`translateY(${e.translateY}px)`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.compConthsData,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:u},[(0,t.createElementVNode)("view",Dm,(0,t.toDisplayString)(a.title),1),(0,t.createElementVNode)("view",Im,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.monthData,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(s,a)]),onClick:h=>e.chooseDay(s,a)},[(0,t.createElementVNode)("view",Pm,[(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",Mm,[(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",Rm,[(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",zm,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(s,a)?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:3,class:(0,t.normalizeClass)(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},(0,t.toDisplayString)(e.startText),3)):(0,t.createCommentVNode)("",!0),e.isEndTip(s,a)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fm,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,qm))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",Lm,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...a)=>e.confirm&&e.confirm(...a))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var Km=re(Am,[["render",Om]]),Um=(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,Ye({...e},{poppable:!1}),n):n?.default?.()??null}}),Hm=Um,_m=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),xn={type:{type:[String],default:"one"},isAutoBackFill:{type:[Boolean],default:!1},toDateAnimation:{type:[Boolean],default:!0},poppable:{type:[Boolean],default:!0},showTitle:{type:[Boolean],default:!0},showSubTitle:{type:[Boolean],default:!0},visible:{type:[Boolean],default:!1},showToday:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},startText:{type:[String]},endText:{type:[String]},defaultValue:{type:[String,Array]},startDate:{type:[String]},endDate:{type:[String]},firstDayOfWeek:{type:[Number],default:0,validator:e=>e>=0&&e<=6}},{create:jm}=ee("calendar"),Wm=jm({components:{Wrapper:Hm,CalendarPane:Km},props:{...xn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o,expose:l}){const r=(0,t.computed)(()=>o.btn),i=(0,t.computed)(()=>o["top-info"]),a=(0,t.computed)(()=>o.day),u=(0,t.computed)(()=>o["bottom-info"]),s=(0,t.ref)(null),d=w=>{s.value?.scrollToDate(w)},h=()=>{s.value?.initPosition()};(0,t.watch)(()=>e.visible,w=>{w&&(0,t.nextTick)(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),l({scrollToDate:d,initPosition:h});const c=()=>{n("update:visible",!1)},p=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{p()},update:c,close:p,select:w=>{n("select",w)},choose:w=>{p(),n("choose",w)},calendarRef:s,showTopBtn:r,topInfo:i,dayInfo:a,bottomInfo:u}}});function Ym(e,n,o,l,r,i){const a=(0,t.resolveComponent)("CalendarPane"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(u,(0,t.mergeProps)({visible:e.visible,position:"bottom","pop-class":"fox-calendar__popup",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,poppable:e.poppable}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(a,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},(0,t.createSlots)({_:2},[e.showTopBtn?{name:"btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","poppable"])}var al=re(Wm,[["render",Ym]]),Ii={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]}},Nl=(e,n)=>{let o;return _e(e)?o=e:typeof e=="string"&&ke(e)>0?o=se.parser(e,n):o=new Date,o},dt=(e,n,o)=>(_e(n)||(n=new Date),se.format(n,o)),ft=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,se.date2Str(e),se.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],Xm={...ge,...be,...xn,...Ii};function Qm(e,n,o,l,r,{CloseIcon:i,MarkIcon:a},u=!1){return{props:Xm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:h,disabled:c,readonly:p,browse:y}=Te(s),{emitEvent:C,exposeApi:k}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return c.value},get props(){return s},context:d,get templateRefProxy(){return h.value}},s.prop??d.attrs.name),{toLocaleRefs:w}=(0,ve.useFoxI18n)(n),S=w(s,["placeholder"]),m=(0,t.ref)(!1),f=(0,t.computed)(()=>s.type==="range"),g=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),B=()=>{g.startDate!==null&&(g.startDate=null,g.endDate=null,g.startArray=[],g.endArray=[])},v=(D,L="one",_="YYYY-MM-DD")=>{if(_m(D)){B();return}if(f.value&&Array.isArray(D)&&D.length==2){let Y,ne;typeof D[0]=="string"?(Y=Nl(D[0],_),ne=Nl(D[1],_)):(Y=D[0],ne=D[1]);let O=ft(Y),H=ft(ne);(g.startDate===null||g.startDate.getTime()!==Y.getTime()||g.endDate?.getTime()!==ne.getTime())&&(g.startDate=Y,g.startArray=O,g.endDate=ne,g.endArray=H)}else{let Y;typeof D=="string"?Y=Nl(D,_):Y=D;let ne=ft(Y);(g.startDate===null||g.startDate.getTime()!==Y.getTime())&&(g.startDate=Y,g.startArray=ne)}};v(s.modelValue,s.type,s.valueFormat),(0,t.watch)(()=>s.modelValue,D=>{v(D,s.type,s.valueFormat),C("setValue",D)});const b=(0,t.computed)(()=>{if(g.startDate===null)return"";if(f.value){let D=dt(s,g.startDate,s.format),L=dt(s,g.endDate,s.format);return`${D} ${s.rangeSeparator} ${L}`}else{let D=dt(s,g.startDate,s.format);return s.showWeek&&(D=`${D} ${g.startArray[4]}`),D}}),V=(0,t.computed)(()=>g.startDate===null?null:f.value?[se.date2Str(g.startDate),se.date2Str(g.endDate??new Date)]:se.date2Str(g.startDate)),A="fox-input-item",T=(0,t.computed)(()=>({[A]:!0,"is-disabled":c.value,"is-readonly":p.value})),N=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),q=(0,t.computed)(()=>{const D={};return N.value&&(D["text-align"]=N.value),D}),X=(0,t.ref)(!1),x=()=>{p.value||c.value||(X.value=!0)},M=D=>{X.value=D},P=D=>{if(D){if(f.value&&Array.isArray(D)){let L=D[0],_=de(L[0]),Y=de(L[1]),ne=de(L[2]),O=new Date(_,Y-1,ne),H=D[1];_=de(H[0]),Y=de(H[1]),ne=de(H[2]);let $=new Date(_,Y-1,ne);g.startDate=O,g.startArray=ft(O),g.endDate=$,g.endArray=ft($),s.valueFormat?C("update:modelValue",[dt(s,O,s.valueFormat),dt(s,$,s.valueFormat)],{}):C("update:modelValue",[O,$],{})}else{let L=D,_=de(L[0]),Y=de(L[1]),ne=de(L[2]),O=new Date(_,Y-1,ne);g.startDate=O,g.startArray=ft(O),s.valueFormat?C("update:modelValue",dt(s,O,s.valueFormat),{}):C("update:modelValue",O,{})}C("change",D,{})}},K=D=>{let L=D.target.value;m.value=!0,C("focus",L,D)},R=D=>{setTimeout(()=>{m.value=!1},0);let L=D.target.value;s.maxLength&&L.length>Number(s.maxLength)&&(L=L.slice(0,Number(s.maxLength))),C("blur",L,D)},j=(0,t.computed)(()=>({[`${A}__append`]:!0,"is-disabled":c.value,"is-readonly":p.value})),I=(0,t.computed)(()=>ke(s.unit)>0),Q=(0,t.computed)(()=>ke(s.unit)>0&&!m.value),J=(0,t.computed)(()=>({hidden:!Q.value})),oe=D=>{B(),C("update:modelValue",null,D),C("change","",D),C("clear","")},W=(0,t.computed)(()=>s.clearable&&!c.value&&!p.value),G=(0,t.computed)(()=>{let D=ke(b.value)>0;return s.clearable&&D&&m.value}),F=D=>{G.value?oe(D):x()},te=(0,t.computed)(()=>G.value&&W.value?i:a),U=(0,t.computed)(()=>({action:!0}));return k(),()=>{if(y.value==="on"&&(p.value||c.value))return r({modelValue:b.value},d.slots);const D={class:T.value,style:q.value,type:"text",maxlength:s.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:x,onFocus:K,onBlur:R};u&&(D.disabled=!0);const L=[],_=(0,t.h)("input",D);L.push(_);const Y=[],ne=(0,t.h)(te.value,{class:["action-icon"]}),O=(0,t.h)("view",{class:U.value,onClick:F},{default:()=>[ne]});if(Y.push(O),I.value){const ie=(0,t.h)("view",{class:J.value},[s.unit]);Y.push(ie)}const H=(0,t.h)("view",{class:j.value},{default:()=>Y});L.push(H);const $={default:()=>L};$.label=d.slots.default,$.prepend=d.slots.prepend,$.append=d.slots.append,$.fixedPreTip=d.slots.fixedPreTip,$.fixedTip=d.slots.fixedTip;const E=ye(s,xn);E.visible=X.value,E["onUpdate:visible"]=M,E["default-value"]=V.value,E.onChoose=P;const z={};if(d.slots.btn){const ie=d.slots.btn();z.btn=()=>ie}d.slots.day&&(z.day=d.slots.day),d.slots.topInfo&&(z.topInfo=d.slots.topInfo),d.slots.bottomInfo&&(z.bottomInfo=d.slots.bottomInfo);const Z=(0,t.h)(o,E,z);$.hide=()=>[Z];const le={...Ye(s,xn,Ii),ref:h};return s.prop&&(le.prop=`${s.prop}_item`),l(le,$)}}}}var{componentName:Gm,create:Zm,scope:Jm}=ee("calendar-item"),e0=Zm(Qm(Gm,Jm,al,$e,Pe,{CloseIcon:ae.CircleClose,MarkIcon:ae.Date},!1)),No=e0,t0={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 n0(e,{CheckNormal:n,Checked:o}){return{props:{...t0},setup(l,{emit:r,slots:i}){const a=(0,t.inject)("parent",null),u=On(),s=(0,t.computed)(()=>a.label.value===l.label),d=(0,t.computed)(()=>a.position),h=()=>{const k=[];if(s.value){if(i.checkedIcon)return i.checkedIcon();{const w=ue(l.iconSize),S=l.checkedIcon??u.radio.Checked??o;return k.push("fox-radio__icon"),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)(S,{width:w,height:w,class:k})}}else{if(i.icon)return i.icon();{const w=ue(l.iconSize),S=l.icon??u.radio.CheckNormal??n;return k.push("fox-radio__icon--unchecked"),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)(S,{width:w,height:w,class:k})}}},c=()=>{const k=[`${e}__label`];return l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)("view",{class:k},i.default?.())},p=()=>{const k=[`${e}__button`];return s.value&&k.push(`${e}__button--active`),l.disabled&&k.push("is-disabled"),l.readonly&&k.push("is-readonly"),(0,t.h)("view",{class:k},i.default?.())},y=()=>{s.value||l.disabled||l.readonly||a.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?[c(),h()]:[h(),c()]])}}}var{componentName:l0,create:o0}=ee("radio"),a0=o0(n0(l0,{CheckNormal:ae.CheckNormal,Checked:ae.CheckChecked})),rl=a0,{componentName:br,create:r0}=ee("radio-group"),i0=r0({props:{prop:{type:[String]},modelValue:{type:[String,Number,Boolean],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,n){const{emitEvent:o,exposeApi:l}=Oe({context:n},e.prop),{slots:r}=n,i=a=>o("update:modelValue",a);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:i}),(0,t.watch)(()=>e.modelValue,a=>o("change",a)),l(),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),(0,t.h)("view",{class:`${br} ${br}--${e.direction}`,style:a},r.default?.())}}}),il=i0;function Sr(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(hn(e,i)===o)return r}else if(l==="item"){if(Ee(o,i))return r}else if(Lt(e,i)===o)return r}return-1}function hn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Lt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function s0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function u0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var c0=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function d0(){return new c0(ut())}function f0(e){return{text:e,value:e}}var qi={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},m0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},p0={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:""}},h0={...ge,...be,...qi,...m0,...p0};function v0(e,n,o,l,r,i){return{props:h0,emits:["change","update:modelValue","setValue"],setup(a,u){const{itemTemplateRef:s,innerDisabled:d,disabled:h,innerReadonly:c,readonly:p,browse:y}=Te(a),{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 a},context:u,get templateRefProxy(){return s.value}},a.prop??u.attrs.name),w=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),S=d0(),m=(0,t.ref)([]),f=(0,t.computed)(()=>typeof a.sourceFilter=="function"&&Array.isArray(m.value)?m.value.filter(a.sourceFilter):m.value);(0,t.watch)([()=>a.source,()=>a.params],async([V,A])=>{if(V){const T=await S.load("radio",V,A);T.length>0?typeof T[0]=="string"?m.value=T.map(N=>f0(N)):m.value=T:m.value=[]}},{immediate:!0});let g=(0,t.ref)(-1);(0,t.watch)([()=>a.modelValue,()=>f.value],async([V,A])=>{g.value=Sr(a,A,V,a.valueType),C("setValue",V)},{deep:!0});const B=(0,t.computed)(()=>{if(!a.source)return a.modelValue;if(g.value===-1)return null;const V=f.value[g.value];return Lt(a,V)}),v=V=>{let A=null,T=null;if(f.value.length>0){let N=Sr(a,f.value,V,"value");g.value=N,N>=0&&(T=f.value[N],a.valueType==="text"?A=hn(a,T):a.valueType==="item"?A=T:A=Lt(a,T))}else A=V;C("update:modelValue",A),C("change",A,T)},b=()=>{let V=null,A=null;if(f.value.length>0&&g.value!==-1){let T=f.value[g.value];a.valueType==="text"?V=hn(a,T):a.valueType==="item"?V=T:V=Lt(a,T)}C("update:modelValue",V),C("change",V,A)};if(k({clear(){g.value!==-1&&(g.value=-1,b())},setDisabled:V=>{d.value=V},setReadonly:V=>{c.value=V}}),a.source){const V=()=>{const A=[],T=ye(a,qi);return f.value.forEach((N,q)=>{const X=Lt(a,N),x=s0(a,N);let M={...T,label:X,disabled:x};const P=u0(a,N,q);M={...M,...P},h.value&&(M.disabled=!0),p.value&&(M.readonly=!0);const K={};if(u.slots.icon&&(K.icon=u.slots.icon),u.slots.checkedIcon&&(K.checkedIcon=u.slots.checkedIcon),typeof u.slots.text=="function"){const j=u.slots.text(N);K.default=()=>[j]}else{const j=hn(a,N);K.default=()=>j}let R=(0,t.h)(i,M,K);A.push(R)}),A};return()=>{if(y.value==="on"&&(p.value||h.value))return l({modelValue:B.value,source:f.value},u.slots);const A=V(),T=(0,t.h)(r,{class:`${e}`,direction:a.direction,textPosition:a.textPosition,textAlign:w.value,modelValue:B.value,"onUpdate:modelValue":v},{default:()=>A}),N={default:()=>T};N.label=u.slots.default,N.prepend=u.slots.prepend,N.append=u.slots.append,N.fixedPreTip=u.slots.fixedPreTip,N.fixedTip=u.slots.fixedTip;const q={...ye(a,be,ge),ref:s};return a.prop&&(q.prop=`${a.prop}_item`),o(q,N)}}else return()=>{const V=u.slots.options?.()??[];return(0,t.h)(r,{class:`${e}`,direction:a.direction,textPosition:a.textPosition,textAlign:w.value,modelValue:B,"update:modelValue":v},{default:()=>V})}}}}var{componentName:g0,create:y0,scope:b0}=ee("radio-item"),S0=y0(v0(g0,b0,$e,Pe,il,rl)),Ao=S0,k0={prop:{type:[String]},modelValue:{type:[Boolean],default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},w0=(e,{CheckNormal:n,Checked:o,Indeterminate:l})=>({props:k0,emits:["change","update:modelValue"],setup(r,i){const{emitEvent:a,exposeApi:u}=Oe({context:i},r.prop),s=On(),{slots:d}=i,h=(0,t.inject)("parent",null),c=(0,t.reactive)({partialSelect:r.indeterminate});(0,t.watch)(()=>r.indeterminate,B=>{c.partialSelect=B});const p=(0,t.computed)(()=>!!h),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 w=(B,v)=>{k="click",a("update:modelValue",B),a("change",B,v)};(0,t.watch)(()=>r.modelValue,B=>{k=="click"?k="":a("change",B)});const S=()=>{const B=[];if(c.partialSelect){if(d.indeterminateIcon)return d.indeterminateIcon();{const v=ue(r.iconSize),b=r.indeterminateIcon??s.checkbox.Indeterminate??l;return B.push("fox-checkbox__icon--indeterminate"),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)(b,{width:v,height:v,class:B})}}else if(y.value){if(d.checkedIcon)return d.checkedIcon();{const v=ue(r.iconSize),b=r.checkedIcon??s.checkbox.Checked??o;return B.push("fox-checkbox__icon"),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)(b,{width:v,height:v,class:B})}}else{if(d.icon)return d.icon();{const v=ue(r.iconSize),b=r.icon??s.checkbox.CheckNormal??n;return B.push("fox-checkbox__icon--unchecked"),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)(b,{width:v,height:v,class:B})}}},m=()=>{const B=[`${e}__label`];return r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)("view",{class:B},d.default?.())},f=()=>{const B=[`${e}__button`];return y.value&&B.push(`${e}__button--active`),r.disabled&&B.push("is-disabled"),r.readonly&&B.push("is-readonly"),(0,t.h)("view",{class:B},d.default?.())},g=B=>{if(!(r.disabled||r.readonly)){if(y.value&&c.partialSelect){c.partialSelect=!1,w(y.value,d.default?.()[0].children);return}if(w(!y.value,d.default?.()[0].children),p.value){const v=h.value.value,b=h.max.value,{label:V}=r,A=v.indexOf(V);A>-1?v.splice(A,1):A<=-1&&(v.length<b||!b)&&v.push(V),h.updateValue(v)}}};return(0,t.onMounted)(()=>{p.value&&h.link(r)}),(0,t.onBeforeUnmount)(()=>{p.value&&h.unlink(r)}),u(),()=>(0,t.h)("view",{class:`${e} ${e}--${r.shape} ${C.value==="left"?`${e}--reverse`:""}`,onClick:g},[r.shape=="button"?f():[S(),m()]])}}),{componentName:C0,create:N0}=ee("checkbox"),A0=N0(w0(C0,{CheckNormal:ae.CheckNormal,Checked:ae.Checked,Indeterminate:ae.CheckDisabled})),sl=A0,{create:B0,componentName:kr}=ee("checkbox-group"),T0={prop:{type:String},modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},V0=B0({props:T0,emits:["change","update:modelValue"],setup(e,n){const{emitEvent:o,exposeApi:l}=Oe({context:n},e.prop),{slots:r}=n,i=(0,t.reactive)({children:[]}),a=c=>{i.children.push(c)},u=c=>{const p=i.children.findIndex(y=>y===c);p!==-1&&i.children.splice(p,1)},s=c=>{o("update:modelValue",c),o("change",c)},d=c=>{const p=[];c&&i.children.forEach(y=>{y?.disabled||p.push(y?.label)}),o("update:modelValue",p)},h=()=>{o("update:modelValue",i.children.filter(c=>c?.disabled?!1:!e.modelValue.includes(c.label)).map(c=>c.label))};return(0,t.provide)("parent",{value:(0,t.computed)(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:(0,t.computed)(()=>e.max),updateValue:s,link:a,unlink:u}),(0,t.watch)(()=>e.modelValue,c=>{o("change",c)}),l({toggleAll:d,toggleReverse:h}),()=>{const c={};return e.textAlign&&(c["text-align"]=e.textAlign),(0,t.h)("view",{class:`${kr} ${kr}--${e.direction}`,style:c},r.default?.())}}}),ul=V0;function wr(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(_l(e,i)===o)return r}else if(l==="item"){if(Ee(o,i))return r}else if(vn(e,i)===o)return r}return-1}function _l(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function vn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function x0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function E0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var $0=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function D0(){return new $0(ut())}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}},Pi={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:", "}},M0={...ge,...be,...q0,...Pi,...P0};function R0(e,n,o,l,r,i){return{props:M0,emits:["change","update:modelValue","setValue"],setup(a,u){const{itemTemplateRef:s,innerDisabled:d,disabled:h,innerReadonly:c,readonly:p,browse:y}=Te(a),C=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),{emitEvent:k,exposeApi:w}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return h.value},get props(){return a},context:u,get templateRefProxy(){return s.value}},a.prop??u.attrs.name),S=D0(),m=(0,t.ref)([]),f=(0,t.computed)(()=>typeof a.sourceFilter=="function"&&Array.isArray(m.value)?m.value.filter(a.sourceFilter):m.value);(0,t.watch)([()=>a.source,()=>a.params],async([V,A])=>{if(V){const T=await S.load("checkbox",V,A);T.length>0?typeof T[0]=="string"?m.value=T.map(N=>I0(N)):m.value=T:m.value=[]}},{immediate:!0});const g=(0,t.ref)([]);(0,t.watch)([()=>a.modelValue,()=>f.value],async([V,A])=>{const T=[];Array.isArray(V)&&V.forEach(N=>{let q=wr(a,A,N,a.valueType);q!==-1&&T.push(q)}),!Ee(T,g.value)&&(g.value=T,k("setValue",T))},{deep:!0});const B=(0,t.computed)(()=>{if(!a.source)return a.modelValue;let V=[];return g.value.forEach(A=>{let T=f.value[A];V.push(vn(a,T))}),V}),v=V=>{let A=[],T=[];if(f.value.length>0){const N=[];Array.isArray(V)&&V.forEach(q=>{let X=wr(a,f.value,q,"value");X!==-1&&N.push(X);const x=f.value[X];T.push(x),a.valueType==="text"?A.push(_l(a,x)):a.valueType==="item"?A.push(x):A.push(vn(a,x))}),g.value=N}else A=V;k("update:modelValue",A),k("change",A,T)},b=(0,t.ref)();if(w({toggleAll:V=>{b.value.toggleAll(V)},toggleReverse:()=>{b.value.toggleReverse()},setDisabled:V=>{d.value=V},setReadonly:V=>{c.value=V}}),a.source){const V=()=>{const A=[],T=ye(a,Pi);return f.value.forEach((N,q)=>{const X=vn(a,N),x=x0(a,N);let M={...T,label:X,disabled:x};const P=E0(a,N,q);M={...M,...P},h.value&&(M.disabled=!0),p.value&&(M.readonly=!0);const K={};if(u.slots.icon&&(K.icon=u.slots.icon),u.slots.checkedIcon&&(K.checkedIcon=u.slots.checkedIcon),u.slots.indeterminateIcon&&(K.indeterminateIcon=u.slots.indeterminateIcon),typeof u.slots.text=="function"){const j=u.slots.text(N);K.default=()=>[j]}else{const j=_l(a,N);K.default=()=>j}let R=(0,t.h)(i,M,K);A.push(R)}),A};return()=>{if(y.value==="on"&&(p.value||h.value))return l({modelValue:B.value,source:f.value,separator:a.separator},u.slots);const A=V(),T=(0,t.h)(r,{class:`${e}`,ref:b,direction:a.direction,max:a.max,textPosition:a.textPosition,modelValue:B.value,"onUpdate:modelValue":v},{default:()=>A}),N={default:()=>T};N.label=u.slots.default,N.prepend=u.slots.prepend,N.append=u.slots.append,N.fixedPreTip=u.slots.fixedPreTip,N.fixedTip=u.slots.fixedTip;const q={...ye(a,be,ge),ref:s};return a.prop&&(q.prop=`${a.prop}_item`),o(q,N)}}else return()=>{const V=u.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:b,direction:a.direction,max:a.max,textPosition:a.textPosition,textAlign:C.value,modelValue:B,"onUpdate:modelValue":v},{default:()=>V})}}}}var{componentName:z0,create:F0,scope:L0}=ee("checkbox-item"),O0=F0(R0(z0,L0,$e,Pe,ul,sl)),Bo=O0,To={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:K0,create:U0}=ee("switch"),H0=U0({components:{Loading1:ae.Loading1},props:{...To},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const o=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const u=K0;return{[u]:!0,[o.value?"fox-switch-open":"fox-switch-close"]:!0,[`${u}-base`]:!0,"is-disabled":e.disabled}}),r=(0,t.computed)(()=>({backgroundColor:o.value?e.activeColor:e.inactiveColor}));let i="";const a=u=>{if(e.disabled||e.loading)return;i="click";const s=o.value?e.inactiveValue:e.activeValue;n("update:modelValue",s),n("change",s,u)};return(0,t.watch)(()=>e.modelValue,u=>{i=="click"?i="":n("change",u)}),{classes:l,style:r,isActive:o,onClick:a}}}),_0={class:"fox-switch-button"};function j0(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...u)=>e.onClick&&e.onClick(...u)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",_0,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(a,{name:"loading",color:e.activeColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.activeText?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label open"},(0,t.toDisplayString)(e.activeText),513),[[t.vShow,e.isActive]]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label close"},(0,t.toDisplayString)(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):(0,t.createCommentVNode)("",!0)])],6)}var cl=re(H0,[["render",j0]]),W0={...ge,...be,...To};function Y0(e,n,o,l,r){return{props:W0,emits:["change","update:modelValue","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:y,exposeApi:C}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),k=e,w=(0,t.computed)(()=>({[k]:!0,disabled:d.value,readonly:c.value})),S=`${k}__content`,m=qe(i,"modelValue",null,y),f=g=>{m.value=g,y("update:modelValue",g,{}),y("change",g,{})};return C({setDisabled:g=>{s.value=g},setReadonly:g=>{h.value=g}}),()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:m.value},a.slots);let g=ye(i,To);const B={class:w.value,...g,disabled:d.value||c.value,value:m.value,"onUpdate:modelValue":f},v=[],b=(0,t.h)(r,B);v.push(b);const V={default:()=>v};V.label=a.slots.default,V.fixedPreTip=a.slots.fixedPreTip,V.fixedTip=a.slots.fixedTip;const A={...ye(i,be,ge),ref:u};return i.prop&&(A.prop=`${i.prop}_item`),A["content-class"]=S,o(A,V)}}}}var{componentName:X0,create:Q0,scope:G0}=ee("switch-item"),Z0=Q0(Y0(X0,G0,$e,Pe,cl)),Vo=Z0,J0={...ge,...be,placeholder:{type:[String]},textAlign:{type:[String]},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1},unit:{type:[String],required:!1}};function ep(e,n,o,l){return{props:J0,emits:["click","focus","blur","change"],setup(r,i){const{itemTemplateRef:a,disabled:u,readonly:s}=Te(r),{emitEvent:d,exposeApi:h}=Be({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return s.value},get disabled(){return u.value},get props(){return r},context:i,get templateRefProxy(){return a.value}},r.prop??i.attrs.name),{toLocaleRefs:c}=(0,ve.useFoxI18n)(n),p=c(r,["placeholder"]),y=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,x=>{y.value=x,d("change",x)});const C=(0,t.computed)(()=>({[`${e}`]:!0})),k=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!u.value&&me(y.value),"is-disabled":u.value,"is-readonly":s.value})),w=Ae((0,t.computed)(()=>r.textAlign),"textAlign"),S=(0,t.computed)(()=>{const x={};return w.value&&(x["text-align"]=w.value),x}),m=(0,t.computed)(()=>!me(r.modelValue)||i.slots.main?!0:!!me(r.desc)),f=(0,t.computed)(()=>me(y.value)?p.placeholder.value:y.value),g=(0,t.computed)(()=>!me(r.desc)||i.slots.sub),B=(0,t.computed)(()=>({[`${e}__sub`]:!0})),v=(0,t.computed)(()=>{const x={};return w.value&&(x["text-align"]=w.value),x}),b=()=>{d("focus",y.value)},V=()=>{d("blur",y.value)},A=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":u.value,"is-readonly":s.value})),T=(0,t.computed)(()=>ke(r.unit)>0),N=x=>{u.value==!0||s.value==!0||d("click")},q=(0,t.computed)(()=>r.icon??o),X=(0,t.computed)(()=>({action:!0}));return h(),()=>{const x=[];if(typeof i.slots.content=="function"){const J=i.slots.content();x.push(J)}else{const J=[];if(m.value){const W={tabIndex:0,class:k.value,style:S.value,onFocus:b,onBlur:V};let G=null;i.slots.main?G=(0,t.h)("view",W,[i.slots.main(f.value)]):G=(0,t.h)("view",W,[f.value]),J.push(G)}if(g.value){const W={tabIndex:0,class:B.value,style:v.value,onFocus:b,onBlur:V};let G=null;i.slots.sub?G=(0,t.h)("view",W,[i.slots.sub(r.desc)]):G=(0,t.h)("view",W,[r.desc]),J.push(G)}const oe=(0,t.h)("view",{class:C.value,onClick:N},J);x.push(oe)}const M=[],P=ue(r.iconSize);let K=i.slots.icon;if(!K){const J={width:P,height:P,class:["action-icon"]};K=(0,t.h)(q.value,J)}const R=(0,t.h)("view",{class:X.value,onClick:N},{default:()=>[K]});if(M.push(R),T.value){const J=(0,t.h)("view",{},[r.unit]);M.push(J)}const j=(0,t.h)("view",{class:A.value},{default:()=>M});x.push(j);const I={default:()=>x};I.label=i.slots.default,I.prepend=i.slots.prepend,I.append=i.slots.append,I.fixedPreTip=i.slots.fixedPreTip,I.fixedTip=i.slots.fixedTip;const Q={...ye(r,be,ge),ref:a};return r.prop&&(Q.prop=`${r.prop}_item`),l(Q,I)}}}}var{componentName:tp,create:np,scope:lp}=ee("link-item"),op=np(ep(tp,lp,ae.ArrowRight,$e)),xo=op,Eo={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:rp}=ee("rate"),ip=ap({props:{...Eo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)([]),r=(0,t.computed)(()=>({[rp]:!0})),i=y=>{n("update:modelValue",y),n("change",y)},a=(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)},u=(y,C,k)=>{let w=0;for(let S=C.value.length-1;S>=0;S--){const m=C.value[S];if(y>m.offsetLeft){k?w=S+(y>m.offsetLeft+m.clientWidth/2?1:.5):w=S+1;break}}return w},s=ct(),d={onTouchStart(y){!e.touchable||e.readonly||s.start(y)},onTouchMove(y){e.touchable&&(s.move(y),s.isHorizontal()&&l.value&&(y.preventDefault(),i(u(s.moveX.value,l,e.allowHalf))))}},h=Math.random().toString(36).slice(-8),c=(0,t.computed)(()=>e.customIcon??ae.StarFillN);return{classes:r,...d,onClick:a,toPxString:he,renderIcon:(y,C)=>(0,t.h)(y,C),rateRefs:l,refRandomId:h,slots:o,customIcon:c}}}),sp=["id"],up={class:"fox-rate-item__icon--full"},cp={key:0,class:"fox-rate-item__icon--half"},dp={key:1,class:"fox-rate-item__icon--half"};function fp(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),a=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:a,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+a,style:(0,t.normalizeStyle)(a<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("view",up,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:a<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,t.normalizeClass)(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||a>e.modelValue}]),onClick:u=>e.onClick(1,a)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>a?((0,t.openBlock)(),(0,t.createElementBlock)("view",cp,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:a<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:u=>e.onClick(2,a)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<a?((0,t.openBlock)(),(0,t.createElementBlock)("view",dp,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:u=>e.onClick(2,a)},null,8,["onClick"]))])):(0,t.createCommentVNode)("",!0)],12,sp))),128))],34)}var dl=re(ip,[["render",fp]]),mp={...ge,...be,...Eo};function pp(e,n,o,l,r){return{props:mp,emits:["change","update:modelValue","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:y,exposeApi:C}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),k=e,w=qe(i,"modelValue",null,y),S=m=>{w.value=m,y("update:modelValue",m,{}),y("change",m,{})};return C({setDisabled:m=>{s.value=m},setReadonly:m=>{h.value=m}}),()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:w.value},a.slots);const m={...ye(i,Eo),disabled:d.value,readonly:c.value,value:w.value,"onUpdate:modelValue":S},f=[],g=(0,t.h)(r,m);f.push(g);const B={default:()=>f};if(a.slots.default){const b=a.slots.default();B.label=()=>b}const v=ye(i,be,ge);return i.prop&&(v.prop=`${i.prop}_item`),v["content-class"]=k,v.ref=u,o(v,B)}}}}var{componentName:hp,create:vp,scope:gp}=ee("rate-item"),yp=vp(pp(hp,gp,$e,Pe,dl)),$o=yp,bp=/scroll|auto|overlay/i,Mi=window;function Sp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function jl(e,n=Mi){let o=e;for(;o&&o!==n&&Sp(o);){const{overflowY:l}=window.getComputedStyle(o);if(bp.test(l))return o;o=o.parentNode}return n}function Ri(e,n=Mi){const o=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(o.value=jl(e.value,n))}),o}var zi=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,kp={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},containerClass:{type:[String]}};function wp(e,n,o){return{props:kp,emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:r,slots:i}){const a=e,{toLocaleRefs:u}=(0,ve.useFoxI18n)(n),s=u(l,["pullText","loadText","noMoreText"]),d=(0,t.ref)(),h=Ri(d),c=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),p=(0,t.computed)(()=>({[a]:!0})),y=(0,t.computed)(()=>{const g=[`${a}__container`];return l.containerClass&&g.push(l.containerClass),g}),C=g=>g?g.offsetTop+C(g.offsetParent):0,k=()=>{let g=0,B=0,v="down";if(h.value==window){const b=zi();d.value&&(g=C(d.value)+d.value.offsetHeight-b-window.innerHeight),B=b}else{const{scrollHeight:b,clientHeight:V,scrollTop:A}=h.value;g=b-V-A,B=A}return c.beforeScrollTop>B?v="up":v="down",c.beforeScrollTop=B,r("scroll-change",B),g<=l.threshold&&v=="down"},w=()=>{Ge(()=>{if(!k()||!l.hasMore||c.isInfiniting)return!1;c.isInfiniting=!0,r("update:modelValue",!0),(0,t.nextTick)(()=>r("load-more"))})},S=()=>{h.value&&h.value.addEventListener("scroll",w,l.useCapture)},m=()=>{h.value&&h.value.removeEventListener("scroll",w,l.useCapture)};(0,t.onMounted)(()=>{S(),l.immediate&&w()}),(0,t.onUnmounted)(()=>{m()});const f=(0,t.ref)(!1);return(0,t.onActivated)(()=>{f.value&&(f.value=!1,S())}),(0,t.onDeactivated)(()=>{f.value=!0,m()}),(0,t.watch)(()=>l.modelValue,g=>{g||(c.isInfiniting=!1)}),()=>{const g=(0,t.h)("view",{class:y.value},[i?.default?.()]),B=[];if(c.isInfiniting){let b=i?.loading?.()??null;if(!b){let A=i?.loadingIcon?.()??null;A||(A=(0,t.h)(o,{class:[`${a}__bottom-box__img`]}));const T=(0,t.h)("view",{class:`${a}__bottom-box__text`},[s.loadText.value]);b=[A,T]}const V=(0,t.h)("view",{class:`${a}__bottom-box`},b);B.push(V)}else if(!l.hasMore){let b=i?.finished?.()??null;b||(b=(0,t.h)("view",{class:`${a}__bottom-tips`},[s.noMoreText.value]),B.push(b))}const v=(0,t.h)("view",{class:`${a}__bottom`},B);return(0,t.h)("view",{class:p.value,ref:d},[g,v])}}}}var{componentName:Cp,create:Np,scope:Ap}=ee("infinite-loading"),Bp=Np(wp(Cp,Ap,ae.Loading)),fl=Bp,{componentName:Tp,create:Vp}=ee("button"),xp=Vp({components:{Loading:ae.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:o}){const{type:l,size:r,shape:i,disabled:a,loading:u,color:s,plain:d,block:h}=(0,t.toRefs)(e);return{handleClick:p=>{!u.value&&!a.value&&n("click",p)},classes:(0,t.computed)(()=>{const p=Tp;return{[p]:!0,[`${p}--${l.value}`]:l.value,[`${p}--${r.value}`]:r.value,[`${p}--${i.value}`]:i.value,[`${p}--plain`]:d.value,[`${p}--block`]:h.value,[`${p}--disabled`]:a.value,[`${p}--loading`]:u.value}}),getStyle:(0,t.computed)(()=>{const p={};return s?.value&&(d.value?(p.color=s.value,p.background="#fff",s.value?.includes("gradient")||(p.borderColor=s.value)):(p.color="#fff",p.background=s.value)),p})}}}),Ep={class:"fox-button__wrap"};function $p(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Loading");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle),onClick:n[0]||(n[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[(0,t.createElementVNode)("view",Ep,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,class:"fox-icon-loading"})):(0,t.createCommentVNode)("",!0),e.$slots.icon&&!e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:1}):(0,t.createCommentVNode)("",!0),e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)({"fox-button__text":e.$slots.icon||e.loading})},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)])],6)}var Vt=re(xp,[["render",$p]]),Dp={prop:{type:[String]},modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Ip=(e,n,o)=>({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}=Oe({context:r},l.prop),{toLocaleRefs:a}=(0,ve.useFoxI18n)(n),u=a(l,["placeholder"]),{slots:s}=r,d=(0,t.reactive)({active:!1}),h=(0,t.computed)(()=>({background:l.background})),c=(0,t.computed)(()=>({background:l.inputBackground})),p=T=>{let N=T.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),i("update:modelValue",N,T),i("change",N,T)},y=(0,t.ref)({}),C=T=>{let N=T.target.value;d.active=!0,y.value=l.focusStyle,i("focus",N,T)},k=T=>{setTimeout(()=>{d.active=!1},0);let N=T.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),y.value={},i("blur",N,T)},w=T=>{i("update:modelValue","",T),i("change","",T),i("clear","")},S=(0,t.computed)(()=>String(l.modelValue).length>0),m=(0,t.computed)(()=>{const T={};return S.value||(T.display="none"),T}),f=T=>{l.autoblur&&V.value?.blur(),(typeof T.cancelable!="boolean"||T.cancelable)&&T.preventDefault(),i("search",l.modelValue)},g=T=>{i("keyup-input",T)},B=T=>{i("click-input",T)},v=T=>{i("click-left-icon",l.modelValue,T)},b=(0,t.computed)(()=>({textAlign:l.inputAlign})),V=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&V.value.focus()});const A=()=>{const T=[];if(s.leftin){const x=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:v},[s.leftin()]);T.push(x)}const N=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:V,style:b.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:B,onInput:p,onFocus:C,onBlur:k,onkeyup:g}),q=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:f},[N]);T.push(q);const X=[];if(l.clearable){const x=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:m.value,onClick:w},[(0,t.h)(s?.clear?.()??l.clearIcon??o)]);X.push(x)}if(s.rightin){const x=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[s.rightin()]);X.push(x)}if(X.length>0){const x=(0,t.h)("view",{class:`${e}__input-inner-right`},X);T.push(x)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...c.value,...y.value}},T)};return()=>{const T=[];if(l.label){const q=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);T.push(q)}if(s.leftout){const q=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[s.leftout()]);T.push(q)}const N=A();if(T.push(N),s.rightout){const q=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[s.rightout()]);T.push(q)}return(0,t.h)("view",{class:`${e}`,style:h.value},T)}}}),{componentName:qp,create:Pp,scope:Mp}=ee("searchbar"),Rp=Pp(Ip(qp,Mp,ae.CircleClose)),ml=Rp,En={prop:{type:[String]},poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,String,Object],default(){return[]}},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},textPosition:{type:[String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},noMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},searchDelayTriggerClear:{type:Number,default:250},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function zp(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(gn(e,i)===o)return r}else if(l==="item"){if(Ee(o,i))return r}else if(Fi(e,i)===o)return r}return-1}function gn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Cr(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Fi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Fp(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Lp(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var Op=class{scope;constructor(e){this.scope=e}async load(e,n,o,l,r,i,a){if(!n)return{totalSize:0,page:[]};if(Array.isArray(n)){let s=n;typeof a=="function"&&(s=s.filter(a));let d=(o-1)*l,h=d+l;h>s.length&&(h=s.length);const c=s.slice(d,h);return{totalSize:s.length,page:c}}if(typeof n=="function")return await Reflect.apply(n,null,[o,l,r,i]);const u=lt(e,this.scope);return u===null?(console.error(`[FoxUI]${e} component not found api function`),{totalSize:0,page:[]}):(xe(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await Reflect.apply(u,null,[n,o,l,r]))}};function Kp(){return new Op(ut())}function Up(e,n,o,l,r,i,a,u,s,d,h){return{props:En,emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,p){const{emitEvent:y,exposeApi:C}=Oe({context:p},c.prop),{slots:k}=p,{toLocaleRefs:w}=(0,ve.useFoxI18n)(n),S=w(c,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),m=Kp(),f=(0,t.ref)([]),g=(0,t.ref)(0),B=(0,t.ref)(""),v=(0,t.shallowRef)(null),b=(0,t.computed)(()=>{const O={};return c.params&&Object.assign(O,c.params),me(B.value)||(O[`${c.searchKey}`]=B.value),v.value&&Object.assign(O,v.value),O});let V=!0;const A=async(O,H,$)=>{try{if(N.value===!1)return;let E=null;me(B.value)||(E=Z=>{const le=gn(c,Z);if(typeof le=="string"&&le.includes(B.value))return!0;const ie=Cr(c,Z);return!!(typeof ie=="string"&&ie.includes(B.value))});const z=await m.load("actionsheet",O,H,$,b.value,V,E??void 0);V=!1,Array.isArray(z)?(f.value=z,g.value=1,N.value=!1):!Array.isArray(z.page)||z.page.length===0?(console.warn("[FoxUI] can not load more data"),N.value=!1):(Reflect.apply([].push,f.value,z.page),g.value=Math.ceil(f.value.length/c.pageSize),(z.totalSize&&f.value.length>=z.totalSize||$<z.page.length)&&(N.value=!1)),T.value=!1}catch(E){console.error("[FoxUI] ActionSheet load more data fail",E),N.value=!0,g.value=0,f.value=[]}setTimeout(()=>{y("loaded-data")},250)},T=(0,t.ref)(!1),N=(0,t.ref)(!0),q=async()=>{if(!c.source){T.value=!1;return}await A(c.source,g.value+1,c.pageSize)};let X=null;(0,t.watch)(B,(O,H)=>{X&&(clearTimeout(X),X=null),me(O)&&!me(H)&&(X=setTimeout(()=>{M()},c.searchDelayTriggerClear))});const x=()=>{N.value=!0,g.value=0,f.value=[],c.source&&q()},M=()=>{x()};(0,t.watch)([()=>c.source,()=>c.pageSize,()=>c.params],async([O,H,$])=>{c.source&&x()},{immediate:!0});const P=(0,t.computed)(()=>!c.multiple&&c.isAutoBackFill),K=(0,t.ref)([]);let R=null;const j=(0,t.ref)(c.visible);(0,t.watch)(()=>c.visible,O=>{j.value!==O&&(j.value=O),O?R=[...K.value]:R=null});const I=(O,H)=>{const $=[];return Array.isArray(O)||(O=[O]),O.forEach(E=>{let z=zp(c,H,E,c.valueType);z!==-1&&$.push(z)}),Ee($,K.value)?!1:(K.value=$,!0)};(0,t.watch)([()=>c.modelValue,()=>f.value],([O,H],[$,E])=>{I(O,H)&&J(Q())},{deep:!0});const Q=()=>{const O=[],H=[],$=[];for(let le of K.value){const ie=f.value[le];H.push(ie);const ce=gn(c,ie);if($.push(ce),c.valueType==="item")O.push(ie);else if(c.valueType==="text")O.push(ce);else{const fe=Fi(c,ie);O.push(fe)}}let E=null,z=null,Z=null;return c.multiple?(E=O,z=$,Z=H):(E=O[0]??null,z=$[0]??null,Z=H[0]??null),{value:E,text:z,item:Z}},J=O=>{y("update:modelValue",O.value),y("update:text",O.text),y("change",O.value,O.item,O.text)},oe=()=>{R&&(K.value=R)},W=O=>{const H=K.value.indexOf(O);c.multiple?H===-1?K.value.push(O):K.value.splice(H,1):H===-1?K.value=[O]:K.value=[],(P.value||!c.poppable&&!c.showFooter)&&te()},G=O=>{j.value=O,y("update:visible",O)},F=()=>{const O=()=>{oe(),G(!1)},H=c.beforeMethod??c.beforeClose;if(typeof H=="function"){const $=H("close");yt($)?$.then(E=>{E!==!1&&O()}).catch(()=>{O()}):$!==!1&&O()}else O()},te=()=>{const O=Q(),H=()=>{J(O),G(!1)},$=c.beforeMethod??c.beforeClose;if(typeof $=="function"){const E=$("confirm",O.value,O.item,O.text);yt(E)?E.then(z=>{z!==!1&&H()}).catch(()=>{H()}):E!==!1&&H()}else H()},U=()=>{let O=S.title.value??"";return k.title&&(O=k.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[O]),(0,t.h)(s,{class:["fox-actionsheet__header-icon"],onClick:F})])},D=()=>{let O=null;return k.search?O=k.search():O=(0,t.h)(i,{onSearch:x,placeholder:S.seachPlaceholder.value,disabled:c.disabled,modelValue:B.value,"onUpdate:modelValue":H=>{B.value=H}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[O])},L=(O,H,$,E,z)=>{if(k.optionLabel)return k.optionLabel({text:O,checked:H,disabled:$,subText:E,item:z});const Z=[],le=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[O]);if(Z.push(le),E){const ie=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[E]);Z.push(ie)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},Z)},_=(O,H,$,E)=>k.optionIcon?k.optionIcon({checked:O,disabled:H,iconSize:$,item:E}):O?k.checkedIcon?k.checkedIcon({disabled:H,item:E}):(0,t.h)(c.checkedIcon??u,{width:$,height:$,class:["fox-actionsheet__list-item-icon"]}):k.icon?k.icon({disabled:H,item:E}):(0,t.h)(c.icon??a,{width:$,height:$,class:["fox-actionsheet__list-item-icon"]}),Y=()=>{const O=[];for(let H=0;H<f.value.length;H++){const $=f.value[H],E=gn(c,$),z=Cr(c,$),Z=["fox-actionsheet__list-item"],le={};let ie=Fp(c,$),ce=c.iconSize?ue(c.iconSize):null;const fe=Lp(c,$,H);fe&&(ie=ie||fe.disabled,fe.class&&Z.push(fe.class),fe.style&&Object.assign(le,fe.style)),ie=!!(c.disabled||ie);const Ke=K.value.includes(H);ie&&Z.push("is-disabled"),Ke&&Z.push("is-checked");const Ue={class:Z,style:le,key:`${H}`,onClick:()=>{ie||W(H)}};let Re=[];if(k.option)Re.push(k.option({item:$,checked:Ke,disabled:ie}));else{const Zi=L(E,Ke,ie,z,$);Re.push(Zi);const Ji=_(Ke,ie,ce,$);Re.push(Ji),c.textPosition==="right"&&Re.reverse()}const Et=(0,t.h)("view",Ue,Re);O.push(Et)}return O},ne=()=>{let O=[];if(k.buttons)O=k.buttons();else{const H=(0,t.h)(r,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:te,disabled:c.disabled},{default:()=>S.confirmText.value});O.push(H)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[O])};return C({search:async(O=null,H=!0)=>{v.value=O&&(0,t.toRaw)(O),(0,t.triggerRef)(v),H&&(N.value=!0,g.value=0,f.value=[]),(0,t.nextTick)(()=>{q()})},clear:()=>{N.value=!0,g.value=0,f.value=[]},confirm:()=>{te()},cancel:()=>{F()}}),()=>{const O=[];if(c.showHeader){const ie=U();O.push(ie)}if(c.showSearchbar){const ie=D();O.push(ie)}let H=null;if(k.content)H=k.content();else{const ie=Y();H=(0,t.h)(l,{hasMore:N.value,loadText:S.loadText.value,noMoreText:S.noMoreText.value,modelValue:T.value,"onUpdate:modelValue":ce=>{T.value=ce},onLoadMore:q},{default:()=>ie})}const $={};c.optionsHeight&&($.height=c.optionsHeight);const E={"fox-actionsheet__list":!0};c.poppable||(E["fox-actionsheet__list--inner"]=!0);const z=(0,t.h)("view",{class:E,style:$},[H]);if(O.push(z),c.showFooter&&!P.value){const ie=ne();O.push(ie)}const Z=(0,t.h)("view",{class:"fox-actionsheet"},O);if(!c.poppable)return Z;const le=["fox-actionsheet__popup"];return c.popClass&&le.push(c.popClass),(0,t.h)(o,{popClass:le.join(" "),visible:j.value,closeable:!1,"onUpdate:visible":G,position:c.position,round:"round",onClickOverlay:F,closeOnClickOverlay:c.closeOnClickOverlay},{default:()=>Z})}}}}var{componentName:Hp,create:_p,scope:jp}=ee("actionsheet-pane"),Wp=_p(Up(Hp,jp,we,fl,Vt,ml,ae.CheckNormal,ae.Checked,ae.Close,ae.Search2,!1)),pl=Wp,Li={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={...ge,...be,...Li,...En};function Xp(e,n,o,l,r,i,a,u){return{props:Yp,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:h,innerDisabled:c,disabled:p,innerReadonly:y,readonly:C,browse:k}=Te(s),{emitEvent:w,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:m}=(0,ve.useFoxI18n)(n),f=m(s,["placeholder"]),g=(0,t.ref)(!1),B=qe(s,"modelValue",null,w),v=(0,t.ref)(""),b=(0,t.computed)(()=>Array.isArray(v.value)?v.value.join(s.separator):v.value),V="fox-input-item",A=(0,t.computed)(()=>({[V]:!0,"is-disabled":p.value,"is-readonly":C.value})),T=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),N=(0,t.computed)(()=>{const _={};return T.value&&(_["text-align"]=T.value),_}),q=(0,t.ref)(!1),X=()=>{q.value=!0},x=_=>{q.value=_},M=_=>{B.value=_,w("update:modelValue",_)},P=(_,Y)=>{w("change",_,Y)},K=_=>{let Y=_.target.value;g.value=!0,w("focus",Y,_)},R=_=>{setTimeout(()=>{g.value=!1},0);let Y=_.target.value;s.maxLength&&Y.length>Number(s.maxLength)&&(Y=Y.slice(0,Number(s.maxLength))),w("blur",Y,_)},j=_=>{v.value=_,w("update:text",_)},I=(0,t.computed)(()=>({[`${V}__append`]:!0,"is-disabled":p.value,"is-readonly":C.value})),Q=(0,t.computed)(()=>ke(s.unit)>0),J=(0,t.computed)(()=>ke(s.unit)>0&&!g.value),oe=(0,t.computed)(()=>({hidden:!J.value})),W=_=>{B.value="",w("update:modelValue","",_),w("change","",_),w("clear","")},G=(0,t.computed)(()=>s.clearable&&!p.value&&!C.value),F=(0,t.computed)(()=>ke(B.value)>0&&g.value),te=_=>{F.value?W(_):X()},U=(0,t.computed)(()=>F.value&&G.value?r:i),D=(0,t.computed)(()=>({action:!0})),L=(0,t.ref)(null);return S({search:_=>{L.value&&L.value.search(_)},clear:()=>{L.value&&L.value.clear},confirm:_=>{L.value&&L.value.confirm()},cancel:()=>{L.value&&L.value.cancel()},setDisabled:_=>{c.value=_},setReadonly:_=>{y.value=_}}),()=>{if(k.value==="on"&&(C.value||p.value))return l({modelValue:b.value,unit:s.unit},d.slots);const _={class:A.value,style:N.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:X,onFocus:K,onBlur:R};u&&(_.disabled=!0);const Y=[],ne=(0,t.h)("input",_);Y.push(ne);const O=[],H=(0,t.h)(U.value,{class:["action-icon"]}),$=(0,t.h)("view",{class:D.value,onClick:te},{default:()=>[H]});if(O.push($),Q.value){const ce=(0,t.h)("view",{class:oe.value},[s.unit]);O.push(ce)}const E=(0,t.h)("view",{class:I.value},{default:()=>O});Y.push(E);const z={default:()=>Y};z.label=d.slots.default,z.prepend=d.slots.prepend,z.append=d.slots.append,z.fixedPreTip=d.slots.fixedPreTip,z.fixedTip=d.slots.fixedTip;const Z=ye(s,En);Z.ref=L,Z.class=s.actionSheetClass,Z.disabled=p.value||C.value,Z.visible=q.value,Z["onUpdate:visible"]=x,Z.modelValue=B.value,Z["onUpdate:modelValue"]=M,Z.text=v.value,Z["onUpdate:text"]=j,Z.onChange=P,Z.poppable=!0,Z["text-position"]=s.textPosition;const le=(0,t.h)(a,Z,{title:d.slots.title,search:d.slots.search,option:d.slots.option,optionLabel:d.slots.optionLabel,optionIcon:d.slots.optionIcon,buttons:d.slots.buttons});z.hide=()=>[le];const ie={...Ye(s,Li,En),ref:h};return s.prop&&(ie.prop=`${s.prop}_item`),o(ie,z)}}}}var{componentName:Qp,create:Gp,scope:Zp}=ee("actionsheet-item"),Jp=Gp(Xp(Qp,Zp,$e,Pe,ae.CircleClose,ae.ArrowRight,pl)),Do=Jp,Io={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:()=>null},readonly:{type:[Boolean],default:()=>null}},{componentName:eh,create:th}=ee("input-number"),nh=th({components:{Minus:ae.Minus,Plus:ae.Plus},props:{...Io},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const y=eh;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)},a=(y=Number(e.modelValue))=>y<Number(e.max)&&!e.disabled,u=(y=Number(e.modelValue))=>y>Number(e.min)&&!e.disabled,s=y=>{n("reduce",y),u()?i(Number(e.modelValue)-Number(e.step),y):n("overlimit",y,"reduce")},d=y=>{n("add",y),a()?i(Number(e.modelValue)+Number(e.step),y):n("overlimit",y,"add")},h=y=>{e.disabled||e.readonly||n("focus",y)},c=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:o,change:r,blur:c,focus:h,add:d,addAllow:a,reduce:s,reduceAllow:u,toPxString:he}}}),lh=["min","max","disabled","readonly","value"];function oh(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Minus"),u=(0,t.resolveComponent)("Plus");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:n[0]||(n[0]=(...s)=>e.reduce&&e.reduce(...s))},[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[(0,t.createVNode)(a,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2),(0,t.createElementVNode)("input",{type:"number",min:e.min,max:e.max,style:(0,t.normalizeStyle)({width:e.toPxString(e.inputWidth),height:e.toPxString(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[1]||(n[1]=(...s)=>e.change&&e.change(...s)),onBlur:n[2]||(n[2]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[3]||(n[3]=(...s)=>e.focus&&e.focus(...s))},null,44,lh),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[4]=(...s)=>e.add&&e.add(...s))},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[(0,t.createVNode)(u,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var hl=re(nh,[["render",oh]]),ah={...ge,...be,...Io};function rh(e,n,o,l,r){return{props:ah,emits:["change","update:modelValue","setValue","add","reduce"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:h,readonly:c,browse:p}=Te(i),{emitEvent:y,exposeApi:C}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!d.value&&!c.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),k=(0,t.computed)(()=>{const g=[`${e}`];return i.textAlign==="left"?g.push("is-left"):i.textAlign==="center"?g.push("is-center"):i.textAlign==="right"&&g.push("is-right"),g.join(" ")}),w=qe(i,"modelValue",null,y),S=g=>{w.value=g,y("update:modelValue",g,{}),y("change",g,{})},m=g=>{y("add",g)},f=g=>{y("reduce",g)};return C({setDisabled:g=>{s.value=g},setReadonly:g=>{h.value=g}}),()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:w.value},a.slots);const g={"left-icon":a.slots["left-icon"],"right-icon":a.slots["right-icon"]},B=ye(i,Io),v=(0,t.h)(r,{...a.attrs,...B,disabled:d.value,readonly:c.value,value:w.value,"onUpdate:modelValue":S,onAdd:m,onReduce:f},g),b=[];b.push(v);const V={default:()=>b};V.label=a.slots.default,V.fixedPreTip=a.slots.fixedPreTip,V.fixedTip=a.slots.fixedTip;const A={...ye(i,be,ge),ref:u};return i.prop&&(A.prop=`${i.prop}_item`),A["content-class"]=k.value,o(A,V)}}}}var{componentName:ih,create:sh,scope:uh}=ee("input-number-item"),ch=sh(rh(ih,uh,$e,Pe,hl)),qo=ch,dh={...yo,...bo,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function fh(e,n,o,l){return{props:dh,emits:["update:modelValue","change"],setup(r,i){const{emitEvent:a,exposeApi:u}=Oe({context:i},r.prop),{slots:s}=i,d=e,h=(0,t.computed)(()=>{const S=[`${d}`];return r.direction==="vertical"?S.push("vertical-tabbar"):S.push("horizontal-tabbar"),S}),c=(0,t.computed)(()=>{const S={};if(r.width){const m=he(r.width);m&&(S.width=m)}if(r.height){const m=he(r.height);m&&(S.height=m)}return S}),p=(0,t.computed)(()=>[`${d}__bar`]),y=(0,t.computed)(()=>[`${d}__container`]),C=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,S=>{C.value!==S&&(C.value=S)});const k=S=>{a("change",S)},w=S=>{C.value!==S&&(C.value=S,a("update:modelValue",S))};return u({}),()=>{const{getChildren:S}=tn(s.default),m=S(),f=[];if(Array.isArray(r.data))f.push(...r.data);else for(let T=0;T<m.length;T++){const N=m[T].props??{},q={text:N.label??"",value:N["pane-key"]??N.paneKey??""};f.push(q)}const g={};for(let T in s)T!=="default"&&(g[T]=s[T]);const B=ye(r,yo);Object.assign(B,{prop:null,data:f,class:p.value,modelValue:C.value,direction:r.direction,onChange:k,"onUpdate:modelValue":w});const v=(0,t.h)(o,B,g),b={default:()=>m},V=ye(r,bo);Object.assign(V,{prop:null,class:y.value,modelValue:C.value,onChange:k,"onUpdate:modelValue":w});const A=(0,t.h)(l,V,b);return(0,t.h)("view",{class:h.value,style:c.value},[v,A])}}}}var{create:mh,componentName:ph,scope:hh}=ee("tabs-frame"),vh=mh(fh(ph,hh,on,an)),Po=vh,gh={prop:{type:[String]},direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function yh(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Nr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ar(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 Al(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Br(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Tr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Bl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var Sh=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[o]);const l=lt(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(xe(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await Reflect.apply(l,null,[n,o]))}};function kh(){return new Sh(ut())}function wh(e,n,o,l){return{props:gh,emits:["update:modelValue","change","loaded-data","click"],setup(r,i){const{emitEvent:a,exposeApi:u}=Oe({context:i},r.prop),s=e,d=kh(),h=(0,t.ref)([]),c=(0,t.computed)(()=>h.value.filter(W=>bh(r,W)!==!1)),p=(0,t.ref)(-1),y=()=>{const W=r.modelValue,G=c.value.findIndex(F=>Nr(r,F)===W);p.value!==G&&(p.value=G,r.scroll&&J(G,!1))};(0,t.watch)([()=>r.modelValue,c],()=>{y()});const C=W=>p.value===W,k=W=>{if(W<0&&W>=c.value.length)return!1;const G=c.value[W],F=(Bl(r,G,W)??{}).status??Al(r,G);return C(W)||F},w=(0,t.computed)(()=>{const W={[s]:!0};return r.mode?W[`is-${r.mode}`]=!0:r.direction&&(W[`is-${r.direction}`]=!0),r.scroll&&(W["is-scroll"]=!0),W}),S=(0,t.computed)(()=>({})),m=(W,G,F,te,U)=>{const D={[`${s}__step`]:!0};return U&&(D[`${U}`]=!0),D[`${f.value}`]=!0,te&&(D["is-doit"]=!0),W===p.value?D["is-active"]=!0:G==="done"?D["is-done"]=!0:G==="error"?D["is-error"]=!0:G==="half"?D["is-half"]=!0:F?D["is-disabled"]=!0:D["is-normal"]=!0,D},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}),g=(W,G={})=>{const F={...G};if(f.value==="start"&&W===c.value.length-1)F.flex="0 0 auto";else if(r.step){const te=typeof r.step=="number"||qn(r.step)?he(r.step):r.step;r.direction==="vertical"?F.height=te:F.width=te}else F.flex="1 1 100%";return F},B=(W,G)=>{let F={};if(G<c.value.length-1){const te=G+1;k(G)&&k(te)?r.direction==="vertical"?F.height="100%":F.width="100%":F.opacity="0"}return F},v=W=>c.value.length-1===W,b=(W,G)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&G>p.value||p.value===G)return;const F=p.value,te=G;p.value=G,r.scroll&&J(G,!1);const U=Nr(r,W);a("update:modelValue",U),a("change",U,{fromIndex:F,currentIndex:te,item:W,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy})},V=(0,t.ref)(!0),A=async(W,G)=>{try{const F=await d.load("stesbar",W,G);Array.isArray(F)&&(h.value=F),V.value=!1}catch(F){console.error("[FoxUI] Load StepsBar Data Fail",F),h.value=[]}setTimeout(()=>{a("loaded-data")},250)};(0,t.watch)([()=>r.data,()=>r.params],async([W,G])=>{W&&A(W,G)},{immediate:!0}),u({});const T=(W,G,F,te,U,D)=>{const L=[];let _=null;if(!D)if(i.slots.icon)_=i.slots.icon({item:W,index:G,status:te});else if(te==="done"){const Y={};r.iconSize&&(Y.width=r.iconSize,Y.height=r.iconSize),_=(0,t.h)(r.icon??o,Y)}else _=(0,t.h)("span",{},[F??`${G+1}`]);return _&&L.push(_),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{a("click",{item:W,index:G}),!U&&b(W,G)}},L)},N=(W,G,F)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:B(W,G)})]),q=()=>{let W=null;if(i.slots.markIcon)W=i.slots.markIcon();else{const G={};r.iconSize&&(G.width=r.markIconSize,G.height=r.markIconSize),W=(0,t.h)(r.markIcon??l,G)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[W])},X=(W,G,F,te,U,D)=>{const L=[];if(!v(G)){const Y=N(W,G,te);L.push(Y)}const _=T(W,G,F,te,U,D);return L.push(_),(0,t.h)("view",{class:"fox-steps-bar__head"},L)},x=(W,G,F,te)=>{let U=null;return i.slots.main?U=i.slots.main({item:W,index:G,status:F}):U=yh(r,W),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{a("click",{item:W,index:G}),!te&&b(W,G)}},[U])},M=(W,G,F)=>{let te=null;return i.slots.sub?(te=i.slots.sub({item:W,index:G,status:F}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[te])):null},P=(W,G)=>{const F=Bl(r,W,G)??{},te=F.status??Al(r,W);let U=Ar(r,W);F.disabled===!0&&(U=!0),r.disabled===!0&&(U=!0);let D=Br(r,W);F.doit===!0&&(D=!0);const L=F.label??Tr(r,W),_=[],Y=T(W,G,L,te,U,D);Y&&_.push(Y);const ne=x(W,G,te,U);if(ne&&_.push(ne),!v(G)){const Z=N(W,G,te);Z&&_.push(Z)}const O=[],H=(0,t.h)("view",{class:"fox-steps-bar__head"},_);O.push(H);const $=M(W,G,te);$&&O.push($);const E=F.class,z=F.style??{};return(0,t.h)("view",{ref:Q(G),class:m(G,te,U,D,E),style:g(G,z)},O)},K=(W,G)=>{const F=Bl(r,W,G)??{},te=F.status??Al(r,W);let U=Ar(r,W);F.disabled===!0&&(U=!0),r.disabled===!0&&(U=!0);let D=Br(r,W);F.doit===!0&&(D=!0);const L=F.label??Tr(r,W),_=[],Y=r.layout;for(let H of Y)if(H==="head"){const $=X(W,G,L,te,U,D);_.push($)}else if(H==="main"){const $=x(W,G,te,U);_.push($)}else if(H==="sub"){const $=M(W,G,te);_.push($)}else if(H==="mark"){const $=q();_.push($)}const ne=F.class,O=F.style??{};return(0,t.h)("view",{ref:Q(G),class:m(G,te,U,D,ne),style:g(G,O)},_)},R=(0,t.ref)(),j=(0,t.ref)([]),I=(W,G)=>{j.value[G]=W},Q=W=>G=>{I(G,W)},J=(W,G)=>{const F=R.value,te=j.value;if(!F||!te||!te[W])return;const U=te[W];let D=0;r.direction==="vertical"?D=U.offsetTop-(F.offsetHeight-U.offsetHeight)/2:D=U.offsetLeft-(F.offsetWidth-U.offsetWidth)/2,oe(F,D,G?0:.3,r.direction)},oe=(W,G,F,te)=>{let U=0;const D=te==="horizontal"?W.scrollLeft:W.scrollTop,L=F===0?1:Math.round(F*1e3/16);function _(){te==="horizontal"?W.scrollLeft+=(G-D)/L:W.scrollTop+=(G-D)/L,++U<L&&Xe(_)}_()};return()=>{let W=[];if(r.mode==="simple")for(let F=0;F<c.value.length;F++){const te=c.value[F],U=P(te,F);W.push(U)}else for(let F=0;F<c.value.length;F++){const te=c.value[F],U=K(te,F);W.push(U)}const G={ref:R,class:w.value,style:S.value};return W.length===0&&typeof i.slots.default=="function"&&(W=i.slots.default()),(0,t.h)("view",G,W)}}}}var{componentName:Ch,create:Nh,scope:Ah}=ee("steps-bar"),Bh=Nh(wh(Ch,Ah,ae.Checklist,ae.ArrowRight)),Mo=Bh;function Th(e){e.stopPropagation()}var Vh=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=el()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=tl(),o=(l,r,i,a)=>{this.updateMove({x:l,y:r})};this.touchstart=l=>{this.moving||(n.start(l),this.startMove({x:n.state.startX,y:n.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(n.move(l),Th(l),o(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{o(n.state.deltaX,n.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),n.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function xh(e,n){return new Vh(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,o,l=!1)=>({props:{...Eh},emits:["click"],setup(r,{slots:i,emit:a}){let u=-1,s=-1;const d=(0,t.reactive)({top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:0,height:0}),h=(0,t.computed)(()=>{const B=[`${e}`];return r.customClass&&B.push(r.customClass),B}),c=B=>typeof B=="string"&&!qn(B)?B:`${B}px`,p=(0,t.computed)(()=>{const B={};return me(d.top)||(B.top=c(d.top)),me(d.right)||(B.right=c(d.right)),me(d.bottom)||(B.bottom=c(d.bottom)),me(d.left)||(B.left=c(d.left)),me(r.width)||(B.width=c(r.width)),me(r.height)||(B.height=c(r.height)),me(r.color)||(B.color=r.color),me(r.background)||(B.background=r.background),me(r.borderRadius)||(B["border-radius"]=r.borderRadius),me(r.zIndex)||(B["z-index"]=r.zIndex),B}),y=(0,t.computed)(()=>({[`${e}__icon`]:!0})),C=()=>{a("click")},k=(0,t.ref)(null),w=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},S={x:0,y:0},g=xh(B=>{if(!k.value)return;const v=k.value;w(),d.left=v.offsetLeft,d.top=v.offsetTop,v.style.left=`${d.left}px`,v.style.top=`${d.top}px`,v.style.right=null,v.style.bottom=null,S.x=d.left,S.y=d.top,d.width=v.offsetWidth,d.height=v.offsetHeight,u=document.documentElement.clientWidth||document.body.clientWidth,s=document.documentElement.clientHeight||document.body.clientHeight},B=>{if(!k.value)return;const v=k.value;w();let b=S.x+B.x;b<0&&(b=0),b>u-d.width&&(b=u-d.width);let V=S.y+B.y;V<0&&(V=0),V>s-d.height&&(V=s-d.height),d.left=b,d.top=V,v.style.left=`${b}px`,v.style.top=`${V}px`});return(0,t.onMounted)(()=>{if(r.draggable&&k.value){const B=[k.value];g.open(B)}}),(0,t.onBeforeUnmount)(()=>{r.draggable&&k.value&&g.close()}),()=>{let B=[];const v=typeof i.default=="function"?i.default():[];if(v&&v.length>0)B=v;else{const b=(0,t.h)(o,{class:y.value});B.push(b)}return(0,t.h)("view",{ref:b=>{k.value=b},class:h.value,style:p.value,onClick:C},B)}}}),{componentName:Dh,create:Ih,scope:qh}=ee("floating-button"),Ph=Ih($h(Dh,qh,ae.Uploader,!1)),Ro=Ph,Mh={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function Rh(e,n,o){return{props:{...Mh},emits:["click","update:modelValue"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:a}=(0,ve.useFoxI18n)(n),u=a(l,["collapseText","expandText"]),s=(0,t.computed)(()=>{const C={[`${e}`]:!0};return l.disabled?C[`${e}--disabled`]=!0:C[`${e}--${l.type}`]=!0,C}),d=qe(l,"modelValue"),h=(0,t.computed)(()=>d.value?u.expandText.value??"":u.collapseText.value??""),c=(0,t.computed)(()=>({[`${e}__text`]:!0})),p=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),y=()=>{r("update:modelValue",!d.value)};return()=>{const C=[];if(h.value){const S=(0,t.h)("span",{class:c.value},[h.value]);C.push(S)}const k={class:p.value},w=(i.icon&&i.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(o);if(w){const S=(0,t.h)("view",k,[w]);C.push(S)}return l.textPosition==="right"&&C.reverse(),(0,t.h)("view",{class:s.value,onClick:y},C)}}}}var{componentName:zh,create:Fh,scope:Lh}=ee("more-button"),Oh=Fh(Rh(zh,Lh,ae.RectUp)),zo=Oh,Kh={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}},Uh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Hh(e,n,o){return{props:{...Kh},emits:["update:visible"],setup(l,{attrs:r,slots:i,emit:a}){const{toLocaleRefs:u}=(0,ve.useFoxI18n)(n),s=u(l,["confirmText","cancelText"]),d=e,h=(0,t.ref)(l.visible),c=B=>{h.value=B,a("update:visible",B)};(0,t.watch)(()=>l.visible,B=>{h.value!==B&&(h.value=B)});const p=B=>{if(typeof l.unmount=="function")try{l.unmount()}catch(v){console.error(v)}if(typeof l.callback=="function")try{l.callback(B)}catch(v){console.error(v)}},y=()=>{p("confirm")},C=()=>{p("cancel")},k=()=>{l.closeOnClickOverlay!==!1&&p("close")},w=(B,v)=>Uh(B)?(v.src=B,(0,t.h)("img",v)):typeof B=="string"?(Array.isArray(v.class)?v.class.push(B):v.class&&typeof v.class=="object"?v[`${B}`]=!0:typeof v.class=="string"?v.class=`${v.class}, ${B}`:v.class=B,(0,t.h)(l.tag,v)):(0,t.h)(B,v),S=()=>{const B=[];if(l.icon){const v={class:[`${d}__header-icon`]},b=w(l.icon,v);B.push(b)}if(l.title){const v=(0,t.h)("view",{class:`${d}__header-title`},[l.title]);B.push(v)}if(l.showClose&&l.closeIcon){const v={class:[`${d}__header-close-icon`],onClick:k},b=w(l.closeIcon,v);B.push(b)}return(0,t.h)("view",{class:[`${d}__header`]},B)},m=(B,v)=>{const b=[];if(v){const V=(0,t.h)("view",{class:`${d}__group-title`},[v]);b.push(V)}if(B){const V=[];Array.isArray(B)||(B=[B]);for(let A of B){const T=(0,t.h)("view",{class:`${d}__group-row`,innerHTML:A});V.push(T)}if(V.length>0){const A=(0,t.h)("view",{class:`${d}__group-rows`},V);b.push(A)}}return b.length===0?null:(0,t.h)("view",{class:`${d}__group`},b)},f=()=>{const B=[];if(typeof l.message=="string")B.push(l.message);else if(Array.isArray(l.message))for(let v of l.message)if(typeof v=="string"){const b=m(v);B.push(b)}else{const b=m(v.content,v.title);B.push(b)}else if(typeof l.message=="function"){const v=l.message();B.push(v)}else{const v=l.message;B.push(v)}return(0,t.h)("view",{class:`${d}__body`},B)},g=()=>{const B=[];if(l.showCancelButton){const v={class:[`${d}__footer-button`],style:{},onClick:C};l.cancelButtonClass&&v.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(v.style,l.cancleButtonStyle);const b=(0,t.h)("button",v,[l.cancelButtonText??s.cancelText.value]);B.push(b)}if(l.showConfirmButton){const v={class:[`${d}__footer-button`],style:{},onClick:y};l.confirmButtonClass&&v.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(v.style,l.confirmButtonStyle);const b=(0,t.h)("button",v,[l.confirmButtonText??s.confirmText.value]);B.push(b)}return B.length===0?null:(0,t.h)("view",{class:`${d}__footer`},B)};return()=>{const B=[],v=S();v&&B.push(v);const b=f();b&&B.push(b);const V=g();V&&B.push(V);const A=(0,t.h)("view",{class:{[`${d}`]:!0,[`${d}--${l.type||"info"}`]:!0}},B),T=[`${d}__popup`];l.popClass&&T.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)(o,{popClass:T.join(" "),style:N,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":c,position:l.position,round:"round",onClickOverlay:k,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>A})}}}}var{componentName:_h,create:jh,scope:Wh}=ee("messagebox"),Yh=jh(Hh(_h,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",Zh="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",Jh="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",ev=new Xn,tv={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},nv=e=>{let n=document.body,o=e.teleport;o!="body"&&(typeof o=="string"?n=document.querySelector(o):o&&(n=e.teleport));const l=document.createElement("view"),r=`messagebox-${ev.get()}`;l.id=r,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const a=document.querySelector(`#${r}`);a&&a.parentNode?.removeChild(a)};const i=(0,t.createVNode)(Xh,e);n.appendChild(l),(0,t.render)(i,l)},rt={show:(e,n,o,l)=>{const r={...tv};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(r,n):(n&&(r.message=n),o&&typeof o=="object"?Object.assign(r,o):(typeof o=="string"&&(r.title=o),l&&typeof l=="object"?Object.assign(r,l):typeof l=="string"&&(r.type=l)));const i=r.type??"info";return r.icon||(i==="success"?r.icon=Zh:i==="warning"?r.icon=Jh: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=ae.Close),new Promise((a,u)=>{const s=r.callback;r.callback=d=>{if(typeof s=="function")try{s(d)}catch(h){console.error(h)}a({action:d})},nv(r)})},alert:(e,n,o)=>rt.show("alert",e,n,o),confirm:(e,n,o)=>rt.show("confirm",e,n,o),install(e){e.config.globalProperties.$alert=rt.alert,e.config.globalProperties.$confirm=rt.confirm}},lv=(e,n,o)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let r=!0,i=!0;for(let a in n)a==="bubbles"?r=!!n[a]:a==="cancelable"?i=!!n[a]:l[a]=n[a];l.initEvent(e,r,i),(o??document).dispatchEvent(l)},ov=new Xn,av=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),rv=e=>`${e}-${ov.get()}`,iv=Symbol.for("InnerPageScopeKey"),sv=Symbol.for("PageWrapperKey"),uv="FoxLeave",cv="FoxLeaveEnd",dv={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 fv(e,n,o,l){return{props:{...et,...dv},emits:["update:visible"],setup(r,{attrs:i,slots:a,emit:u}){(0,t.provide)(iv,!0);const s={};(0,t.provide)(sv,s);const d=v=>(typeof s.beforeClose=="function"&&s.beforeClose(),!1),h=()=>{d("close")},c=e,p=v=>{y.value=v,u("update:visible",v)},y=(0,t.ref)(!1),C=(v,b)=>av(v)?(b.src=v,(0,t.h)("img",b)):typeof v=="string"?(Array.isArray(b.class)?b.class.push(v):b.class&&typeof b.class=="object"?b[`${v}`]=!0:typeof b.class=="string"?b.class=`${b.class}, ${v}`:b.class=v,(0,t.h)(r.tag,b)):(0,t.h)(v,b),k=()=>{if(!r.showHeader)return null;const v=[];if(a.header){const b=a.header();v.push(b)}else if(r.title){const b=(0,t.h)("view",{class:`${c}__header-title`},[r.title]);v.push(b)}return v.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},v)},w=()=>{if(!r.showClose)return null;const v={class:[`${c}__close-icon`],onClick:h};return C(r.closeIcon??l,v)};let S=null;const m=v=>{lv(cv,{},S)},f=rv(e),g=()=>{p(!0)},B=()=>{if(!S)return;const v=S.querySelector(".fox-overlay");v&&(v.classList.add("overlay-fade-leave-active"),v.classList.add("overlay-fade-leave-to"));const b=S.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",m,{once:!0}),b.addEventListener("transitionend",m,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{S=document.querySelector(`.${f}`),S?.addEventListener(uv,B,{once:!0}),g()}),()=>{const v=[],b=k();b&&v.push(b);const V=w();V&&v.push(V);const A=a.default?a.default():[];Reflect.apply([].push,v,A);const T={[`${c}`]:!0};r.mode&&(T[`${c}--${r.mode}`]=!0);const N=(0,t.h)("view",{class:T},v),q=[`${c}__popup`,f];r.popClass&&q.push(r.popClass),r.position&&q.push(`${c}__popup--${r.position}`);const X={};r.width&&(X.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(X.height=typeof r.height=="number"?`${r.height}px`:r.height);const x=(0,t.h)(o,{...ye(r,et),popClass:q.join(" "),style:X,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:[`${c}__root`,f]},[x])}}}}var{componentName:mv,create:pv,scope:hv}=ee("popup-wrapper"),vv=pv(fv(mv,hv,we,ae.Close)),Fo=vv,gv={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function yv(e,n,o,l){return{props:{...gv},emits:["update:visible"],setup(r,{emit:i,slots:a}){const u=s=>{i("update:visible",s)};return()=>{const s=[`${e}__popup`];r.popClass&&s.push(r.popClass);const d=(0,t.h)(o,{popClass:s,style:r.popStyle??{},position:"top",zIndex:r.zIndex,closeOnClickOverlay:r.closeOnClickOverlay,teleportDisable:!0,visible:r.visible,"onUpdate:visible":u},a);return(0,t.h)("view",{class:`${e}`},[d])}}}}var{componentName:bv,create:Sv,scope:kv}=ee("dropdown"),wv=Sv(yv(bv,kv,we,!1)),Lo=wv,Cv={name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean,Object],required:!1}};function Nv(e,n){return{inheritAttrs:!1,props:Cv,setup(o,l){const{exposeApi:r}=Zr({context:l,props:()=>o.config},o.name);return Ve(o.innerPageScope)||ti(o.innerPageScope),Ve(o.abstractPageScope)||ni(o.abstractPageScope),r(),()=>typeof l.slots.default=="function"?l.slots.default():null}}}var{componentName:Av,create:Bv,scope:Tv}=ee("domain-provider"),Vv=Bv(Nv(Av,Tv)),Oo=Vv,xv={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 Ev(e,n){return{inheritAttrs:!1,props:xv,emits:["change"],setup(o,{slots:l,emit:r}){if(tt&&window.IntersectionObserver){const i=new WeakMap;let a=new Map;const u=(p,y)=>{if(h===null){a.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){a.delete(p);return}i.has(p)&&(i.delete(p),h.unobserve(p))};let d=o.initialVisibleObserverSize;hu({acquire:()=>{if(o.loadPolicy==="always")return!0;const p=d>0;return d--,p},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:u,unobserve:s});let h=null;const c=(p,y,C)=>{h=new IntersectionObserver(k=>{if(r("change",k),o.loadPolicy!=="always")for(let w of k){let S=!1;w.intersectionRatio>0&&(S=!0);const m=i.get(w.target);if(m)try{if(o.loadPolicy==="lazy"&&!S&&m.visible!==null)return;m.visible=S,m.callback(S)}catch(f){console.error(f)}}},{root:p,rootMargin:y,threshold:C}),a.forEach((k,w)=>{i.set(w,k),h?.observe(w)}),a.clear()};(0,t.watch)([()=>o.root,()=>o.disabled],([p,y])=>{if(y||!p||h)return;let C=null;typeof p=="string"?C=document.querySelector(p):C=p,C&&c(C,o.rootMargin,o.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:$v,create:Dv,scope:Iv}=ee("rolling-provider"),qv=Dv(Ev($v,Iv)),Ko=qv,{componentName:Pv,create:Mv}=ee("cell"),Rv=Mv({components:{Right:ae.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const i=Pv;return{[i]:!0,[`${i}--clickable`]:e.isLink,[`${i}--center`]:e.center,[`${i}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:he(e.roundRadius)}));return{handleClick:i=>{n("click",i)},classes:o,baseStyle:l}}}),zv={key:0,class:"fox-cell__icon"},Fv={key:1,class:"fox-cell__title"},Lv={class:"title"},Ov={class:"fox-cell__title-desc"};function Kv(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Right");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.baseStyle),onClick:n[0]||(n[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",zv,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fv,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",Lv,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",Ov,(0,t.toDisplayString)(e.subTitle),1)],64)):(0,t.renderSlot)(e.$slots,"title",{key:1},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)])])):(0,t.createCommentVNode)("",!0),e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:(0,t.normalizeStyle)({"text-align":e.descTextAlign})},(0,t.toDisplayString)(e.desc),7)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"link",{},()=>[e.isLink?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var Uo=re(Rv,[["render",Kv]]),Uv={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function Hv(e,n){return{props:{...Uv},setup(o,{attrs:l,slots:r}){const i=(0,t.computed)(()=>{const a={};return o.color&&(a.color=o.color),o.size&&(a.fontSize=he(o.size)),a});return()=>{const a={style:i.value,class:`${e}-wrap`,...l};return(0,t.h)(o.tag??"li",a,r)}}}}var{componentName:_v,create:jv,scope:Wv}=ee("icon"),Yv=jv(Hv(_v,Wv)),Ho=Yv,{componentName:Xv,create:Qv}=ee("cell-group"),Gv=Qv({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[Xv]:!0}))}}}),Zv={key:1,class:"fox-cell-group__title"},Jv={key:3,class:"fox-cell-group__desc"},eg={class:"fox-cell-group__wrap"};function tg(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Zv,(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",Jv,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",eg,[(0,t.renderSlot)(e.$slots,"default")])],2)}var _o=re(Gv,[["render",tg]]),{componentName:ng,create:lg}=ee("image"),og=lg({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:ae.Image,ImageError:ae.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const o=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const y=ng;return{[y]:!0,[`${y}-round`]:e.round}}),r=(0,t.ref)(null),i=(0,t.ref)(!1),a=(0,t.ref)(null),u=()=>{r.value=new IntersectionObserver(y=>{y.forEach(C=>{C.isIntersecting&&(i.value=!0,r.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),a.value&&r.value.observe(a.value)};(0,t.onMounted)(()=>{e.lazyLoad&&u()}),(0,t.onBeforeUnmount)(()=>{r.value&&r.value.disconnect()});const s=(0,t.computed)(()=>{let y={};return e.width&&(y.width=he(e.width)),e.height&&(y.height=he(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=he(e.radius)),y}),d=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,y=>{o.isError=!1,o.loading=!0});const h=()=>{o.loading=!1,n("load")},c=()=>{o.isError=!0,o.loading=!1,n("error")},p=y=>{n("click",y)};return{...(0,t.toRefs)(o),imageClick:p,classes:l,styles:d,stylebox:s,error:c,load:h,show:i,imgRef:a}}}),ag=["src","date-src","alt"],rg={key:0,class:"fox-img-loading"},ig={key:1,class:"fox-img-error"};function sg(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Image"),u=(0,t.resolveComponent)("ImageError");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.stylebox),onClick:n[2]||(n[2]=(...s)=>e.imageClick&&e.imageClick(...s))},[(0,t.createElementVNode)("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:n[0]||(n[0]=(...s)=>e.load&&e.load(...s)),onError:n[1]||(n[1]=(...s)=>e.error&&e.error(...s)),style:(0,t.normalizeStyle)(e.styles)},null,44,ag),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",rg,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,width:"16px",height:"20px",name:"image"})),(0,t.renderSlot)(e.$slots,"loading")])):(0,t.createCommentVNode)("",!0),e.isError&&!e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",ig,[e.slotError?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,width:"16px",height:"20px",name:"imageError"})),(0,t.renderSlot)(e.$slots,"error")])):(0,t.createCommentVNode)("",!0)],6)}var jo=re(og,[["render",sg]]),{create:ug}=ee("layout"),cg=ug({}),Wo=cg,{componentName:dg,create:fg}=ee("col"),mg=fg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=dg,o=(0,t.inject)("gutter");return{classes:(0,t.computed)(()=>({[n]:!0,[`${n}-gutter`]:o,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),style:(0,t.computed)(()=>({paddingLeft:o/2+"px",paddingRight:o/2+"px"}))}}});function pg(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Yo=re(mg,[["render",pg]]),{componentName:hg,create:vg}=ee("row"),gg=vg({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=hg;(0,t.provide)("gutter",e.gutter);const o=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var cs=Object.create,zr=Object.defineProperty,ds=Object.getOwnPropertyDescriptor,fs=Object.getOwnPropertyNames,ms=Object.getPrototypeOf,ps=Object.prototype.hasOwnProperty,Ye=(e,n)=>()=>(n||(e((n={exports:{}}).exports,n),e=null),n.exports),vs=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var r=fs(n),i=0,a=r.length,u;i<a;i++)u=r[i],!ps.call(e,u)&&u!==o&&zr(e,u,{get:(s=>n[s]).bind(null,u),enumerable:!(l=ds(n,u))||l.enumerable});return e},Xe=(e,n,o)=>(o=e!=null?cs(ms(e)):{},vs(n||!e||!e.__esModule?zr(o,"default",{value:e,enumerable:!0}):o,e));let t=require("vue"),it=require("@fox-js/validator"),re=require("@fox-js/icons-vue"),he=require("@fox-js/i18n");var pn=window,hs=typeof window<"u";function gs(){return typeof pn<"u"?pn.requestAnimationFrame||pn.webkitRequestAnimationFrame||function(e){pn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Lr(e){hs?cancelAnimationFrame(e):clearTimeout(e)}var Je=gs();function Cn(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Be(e),n=Be(n),[e,n]=Gl(Be(e),Be(n)),o==1&&(l==1?e=Sl(e):n=Sl(n));let r=Fr(e,n);return o?o==2?"-"+Be(r):e.length<r.length?Be(r.substring(1)):"-"+Be(Sl(r)):Be(r)}function Sl(e){let n="",o=e.length,l=e.split(".")[1],r=l?l.length:0;for(let a=0;a<o;a++)e[a]>="0"&&e[a]<="9"?n+=9-parseInt(e[a]):n+=e[a];let i=r>0?"0."+new Array(r).join("0")+"1":"1";return Fr(n,i)}function Be(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Gl(e,n){let o=e.split("."),l=n.split("."),r=o[0].length,i=l[0].length;return r>i?l[0]=new Array(Math.abs(r-i)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(r-i)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,i=l[1]?l[1].length:0,(r||i)&&(r>i?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-i)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-i)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Fr(e,n){[e,n]=Gl(e,n);let o="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let i=parseInt(e[r])+parseInt(n[r])+l;o=i%10+o,l=Math.floor(i/10)}return l?l.toString()+o:o}var 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,o=Ne.HALF_EVEN){if(o===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],a=r[1];if(n<0){if(n=-n,i.length<=n)return"0";{let s=i.substr(0,i.length-n);return e=s+"."+i.substr(i.length-n)+a,s=Qt(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return i.length,Ga(r[1],i,l,o)?(l?"-":"")+kl(i):(l?"-":"")+i;if(r[1]){if(r[1].length<n)return(l?"-":"")+i+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(l?"-":"")+i+"."+new Array(n+1).join("0");a=r[1].substring(0,n);let u=r[1].substring(n);return u&&Ga(u,a,l,o)&&(a=kl(a),a.length>n)?(l?"-":"")+kl(i,parseInt(a[0]))+"."+a.substring(1):(l?"-":"")+i+"."+a}function Ga(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===Ne.DOWN||!o&&l===Ne.FLOOR||o&&l===Ne.CEILING)return!1;if(l===Ne.UP||o&&l===Ne.FLOOR||!o&&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 kl(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let r=o;r>=0;r--){let i=parseInt(e[r])+n;i==10?(n=1,i=0):n=0,l+=i}return n&&(l+=n),l.split("").reverse().join("")}function Dl(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=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 c=e;e=n,n=c}if(n=="0")return"0";let a=n.length,u=0,s=[],d=a-1,v="";for(let c=0;c<a;c++)s[c]=e.length-1;for(let c=0;c<2*e.length;c++){let p=0;for(let 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+=u,u=Math.floor(p/10),v=p%10+v,d--}return v=Pt(ys(v,i)),o==1&&(v="-"+v),v}function ys(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 Il(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Be(n.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Be(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=Be(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let v=e.length-d+r;e=Be(e.substring(0,v)+"."+e.substring(v))}else r==d&&(e=Be(e.replace(".","")))}let i=0,a=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<a?e.substring(0,a+1):e.substring(0,a);if(e=e.indexOf(".")>-1&&e.indexOf(".")<a?e.substring(a+1):e.substring(a),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),a>s.length&&(d+=a-s.length,s=s+new Array(a-s.length+1).join("0")),i=d,u="0."+new Array(d).join("0")}for(o=o+2;i<=o;){let d=0;for(;parseInt(s)>=parseInt(n);)s=Cn(s,"-"+n),d++;u+=d,e?(e[0]=="."&&(u+=".",i++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(i||(u+="."),i++,s=s+"0")}return(l==1?"-":"")+Be(Qt(u,o-2))}function ql(e,n){return e=e.toString(),n=n.toString(),n=Pl(n),Cn(e,n)}function Pl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Za(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Ja(e),Ja(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=ql(e,Dl(n,Qt(Il(e,n),0,Ne.FLOOR)));return o+l}function Ja(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function er(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=Gl(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}var nn=class ve{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[o,l]=n.split(/[eE]/);o=Be(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=r+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=r+Be(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=r+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=ve.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ve.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var i=n.indexOf(".");i=i>0?i:n.length;for(var a="",u=i;u>0;)u<o?(o=u,u=0):u-=o,a=n.substring(u,u+o)+(u<i-o&&u>=0?l:"")+a;return(r?"-":"")+a+n.substring(i)}getPrettyValue(n,o){return ve.getPrettyValue(this.value,n,o)}static round(n,o=0,l=Ne.HALF_EVEN){if(n=ve.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Qt(n,o,l)}round(n=0,o=Ne.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ve(Qt(this.value,n,o))}static floor(n){return n=ve.validate(n),n.indexOf(".")===-1?n:ve.round(n,0,Ne.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ve(this.value):new ve(this.value).round(0,Ne.FLOOR)}static ceil(n){return n=ve.validate(n),n.indexOf(".")===-1?n:ve.round(n,0,Ne.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ve(this.value):new ve(this.value).round(0,Ne.CEILING)}static add(n,o){return n=ve.validate(n),o=ve.validate(o),Cn(n,o)}add(n){return new ve(Cn(this.value,n.getValue()))}static subtract(n,o){return n=ve.validate(n),o=ve.validate(o),ql(n,o)}subtract(n){return new ve(ql(this.value,n.getValue()))}static multiply(n,o){return n=ve.validate(n),o=ve.validate(o),Dl(n,o)}multiply(n){return new ve(Dl(this.value,n.getValue()))}static divide(n,o,l){return n=ve.validate(n),o=ve.validate(o),Il(n,o,l)}divide(n,o){return new ve(Il(this.value,n.getValue(),o))}static modulus(n,o){return n=ve.validate(n),o=ve.validate(o),Za(n,o)}modulus(n){return new ve(Za(this.value,n.getValue()))}static compareTo(n,o){return n=ve.validate(n),o=ve.validate(o),er(n,o)}compareTo(n){return er(this.value,n.getValue())}static negate(n){return n=ve.validate(n),Pl(n)}negate(){return new ve(Pl(this.value))}};function Or(e,n){return nn.multiply(`${e}`,`${n}`)}function Zl(e,n,o=8){return nn.divide(`${e}`,`${n}`,o)}var M2=nn.RoundingModes;function Ml(e,n){return e=`${e}`,n=`${n}`,nn.compareTo(e,n)}function Kr(e){return nn.negate(e)}function Pn(e,n=-1,o=!1,l=3,r=","){let i=`${e}`;if(i.length==0||i==="-")return"";let a=i.charAt(0);a=="-"?i=i.substring(1):a="";let u=i,s="",d=i.indexOf(".");d!=-1&&(u=i.substring(0,d),s=i.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let v;if(l>0){let c="",p=u.split("").reverse();for(let y=0;y<p.length;y++)c+=p[y]+((y+1)%l==0&&y+1!=p.length?r:"");s.length==0?v=`${a}${c.split("").reverse().join("")}`:v=`${a}${c.split("").reverse().join("")}.${s}`}else s.length==0?v=`${a}${u}`:v=`${a}${u}.${s}`;return v}function Ur(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}var lt=typeof window<"u",Ge=Je;function Te(e){return e==null}var Mn=Array.isArray,bs=e=>Rn(e)==="[object Map]",Ss=e=>Rn(e)==="[object Set]",We=e=>e instanceof Date,Nn=e=>typeof e=="function",_r=e=>typeof e=="string",ks=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",Ct=e=>De(e)&&Nn(e.then)&&Nn(e.catch),Hr=Object.prototype.toString,Rn=e=>Hr.call(e),ws=e=>Rn(e)==="[object Object]",jr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Cs(e){return e.__esModule||jr&&e[Symbol.toStringTag]==="Module"}var Ns=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Nt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let i=e[o];for(let a in i){let u=n[a],s=i[a];if(u!==s)if(r===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},n[a]=Nt(r,d,s)}else s!==void 0&&(n[a]=s)}}return n}var wl=Ns?Promise.resolve():null;function As(e,...n){wl!==null?n&&n.length>0?wl.then(()=>{e(n)}):wl.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ye(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function me(e){return typeof e=="number"?e:Number(e)}var Bs={"[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 An(e){let n=Object.prototype.toString.call(e);return e==null?String(e):Bs[n]||"object"}function Rl(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const o=window.getComputedStyle(n);if(o.display==="none"||o.visibility==="hidden"||o.visibility==="collapse")return!0;n=n.parentElement}return!1}function Jl(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 Wr(e){return e&&typeof e=="object"&&"setInterval"in e}function Yr(e){let n=!!e&&"length"in e&&e.length,o=An(e);return o==="function"||Wr(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Xr(e,n){let o=+n.length,l=0,r=e.length;for(;l<o;l++)e[r++]=n[l];return e.length=r,e}function Ts(e,n=[]){let o=n;return e!=null&&(Yr(Object(e))?Xr(o,typeof e=="string"?[e]:e):o.push(e)),o}function xe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=An(e);if(o!==An(n))return!1;if(o==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let i=0;i<l.length;i++){let a=l[i],u=e[a],s=n[a];if(!xe(u,s))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],i=n[l];if(!xe(r,i))return!1}return!0}return!1}function zl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function eo(e){return pe(e)?!1:(e.charAt(0)=="-"&&(e=e.substring(1)),pe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Qr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function Gr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function tr(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function Ll(e,n=!0,o=!0){n?e=tr(e,".",/\./g):e=e.replace(/\./g,""),o?e=tr(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function Vs(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(xe(e,o))return!0}):n.indexOf(e)}function xs(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(xe(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function we(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function be(e,...n){const o={};return n.forEach(l=>{for(const r in l)o[r]=e[r]}),o}function Qe(e,...n){const o=[];n.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const l={};for(const r in e)o.includes(r)||(l[r]=e[r]);return l}var $s=(e,n,o)=>{const l=Object.assign({},e),r=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(i=>{r.hasOwnProperty(i)?typeof r[i]=="string"&&(l[i]=n[r[i]]):n[i]&&(l[i]=n[i])}),l):e};function Fl(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,o)=>Math.min(Math.max(e,n),o);function Bn(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function Es(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var Oe=Symbol.for("BroadcastKey"),Zr=class{parent;children=[];callbacks=new Map;exposed=null;name;persistantMessages=new Map;constructor(e,n,o){this.parent=e,this.exposed=n,this.name=o,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(o=>e===o);n!==-1&&this.children.splice(n,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.callbacks=null,this.exposed=null}setPersistantMessage(e,n,o){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,r={matched:e,action:n,args:o};return this.persistantMessages.set(l,r),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(n=>{e.push(n)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,n){if(!n||n.messagingPolicy==="Once"&&n.resolved===!0)return!1;let o=!1;return!n.name||n.name==="*"||n.name==="+"||zl(n.name)&&e&&n.name.test(e)?o=!0:typeof n.name=="function"?o=Reflect.apply(n.name,null,[e]):n.name===e&&(o=!0),o}trigger(e,n,o){let l=null;const r=this.callbacks.get(n);typeof r=="function"&&(l=Reflect.apply(r,null,[...o])),this.exposed&&typeof this.exposed[n]=="function"&&(l=Reflect.apply(this.exposed[n],this.exposed,[...o])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(l)}pull(){let e=this.parent;for(;e;){const n=e.getPersistantMessages();Array.isArray(n)&&n.length>0&&n.forEach(o=>{if(this.isMatched(this.name,o.matched))try{this.trigger(o.matched,o.action,o.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...o){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const i=e.resolve,a=e.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(a),typeof i=="function"&&i(...s)};e.resolve=u}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):zl(e.name)&&this.name&&e.name.test(this.name)?l=!0:typeof e.name=="function"?l=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(l=!0);const r=[];if(l){const i=this.callbacks.get(n);if(typeof i=="function"){const a=Reflect.apply(i,null,[...o]);Te(a)||r.push(a)}if(this.exposed&&typeof this.exposed[n]=="function"){const a=Reflect.apply(this.exposed[n],this.exposed,[...o]);Te(a)||r.push(a)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...r),e.messagingPolicy==="Once")return r}return this.children.forEach(i=>{const a=Reflect.apply(i.emit,i,[{...e},n,...o]);Array.isArray(a)&&a.length>0&&Reflect.apply([].push,r,[...a])}),r}emitToChildren(e,n,...o){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const r=e.resolve,i=e.uniqueId??"",a=(...u)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...u)};e.resolve=a}e.cachePolicy="None"}const l=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...e},n,...o]);Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(e,n){this.callbacks.set(e,n)}};function ln(e,n,o,l){const r=new Zr(n,e,o);if(l&&typeof l=="object")for(const i in l)r.on(i,l[i]);return r}function Kt(e){let n=e?.[Oe];return!n&&(0,t.hasInjectionContext)()&&(n=(0,t.inject)(Oe,null)),n}var Ds=class{error(e,n){const o=Kt(n.exposed);o?o.emit({name:"*"},"setErrorTip",e):n.exposed&&typeof n.exposed.setErrorTip=="function"&&n.exposed.setErrorTip(e)}reset(e){const n=Kt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}success(e){const n=Kt(e.exposed);n?n.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}decorate(e,n,o){Array.isArray(e)||(e=[e]);const l=Kt(o.exposed),r=n.find(a=>a.required===!0||a.type==="required"&&a.required!==!1),i=e.find(a=>a.required===!0||a.type==="required"&&a.required!==!1);!r&&i?l?l.emit({name:"*"},"setRequired",!0):o.exposed&&typeof o.exposed.setRequired=="function"&&o.exposed.setRequired(!0):r&&!i&&(l?l.emit({name:"*"},"setRequired",!1):o.exposed&&typeof o.exposed.setRequired=="function"&&o.exposed.setRequired(!1),this.reset(o))}getValue(e){return e.props.modelValue??e.exposed.modelValue}},Ht=new Ds;function Is(e){Ht=e}function qs(e){Ht?Object.assign(Ht,e):Ht=e}function Ps(e,n){it.Schema.setValidator(e,n)}function Ms(e){it.Schema.deleteValidator(e)}var Jr=["blur","clear"];function Rs(e){Jr=e}function ei(){return Jr}var ti=["focus","change","setValue"];function zs(e){ti=e}function ni(){return ti}function Ls(e){it.Schema.messages(e)}function Mt(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const r=n.findIndex(i=>i.type===l.type);r!==-1&&n.splice(r,1),n.push(l)})}),n}function vn(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var Ze=Symbol("ValidateSchemaKey"),li=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,o){this.parent=e,this.descriptor=n,this.proxy=o,(this.descriptor.validate??!0)&&this.init()}init(){this.descriptor.pureDataValidate!==!0&&this.descriptor.valueName&&this.descriptor.context?.attrs&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const e=vn(Mt(this.attrRules,this.rules)),n=[],o=this.descriptor.context?.attrs??{};for(let r in o){let i=o[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let u={type:r};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let a=this.getValidator(r);if(a!==null){let u={type:r,validator:a};n.push(u)}}this.attrRules=vn(n);const l=Mt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(l,e)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...n){const o=this.descriptor.validateHandler;if(o&&typeof o[e]=="function")return Reflect.apply(o[e],o,[...n]);const l=Ht;return l&&typeof l[e]=="function"?Reflect.apply(l[e],l,[...n]):null}decorate(e,n){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,n,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.execHandler("getValue",this.proxy)}setValidator(e,n,o=!1){o?it.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?it.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return it.Schema.hasValidator(e);{let o=Reflect.has(this.validators,e);return!o&&this.parent!==null&&(o=this.parent.hasValidator(e,!1)),o}}setRule(e){const n=Mt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=vn(e):this.rules=vn([e]);const o=Mt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(o,n)})}clear(){this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Mt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const o={[`${n}`]:e},l=this.getValue(),r={[`${n}`]:l},i=new it.Schema(o),a=this.proxy??r;return i.validate(r,{context:a}).then(u=>{if(u.pass)this.success();else{let s="error";Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors[0].message??s,u.errors=[u.errors[0]],u.errors[0].ref=a),this.error(s)}return u}).catch(u=>{const s=u.message??`${u}`;return this.error(s),u})}}return Promise.resolve({pass:!0})}};function zn(e,n,o){o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string";const l={exposed:e,get $el(){return o.templateRefProxy?.$el},get props(){return o.props},get attrs(){return o.context?.attrs}};if(!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(i){return i.props?.[r]??i.exposed[r]}}}return new li(n,o,l)}var Tn=Symbol.for("EventEmitterKey"),oi=class{register=new Map;emitFn;constructor(e){this.emitFn=e??null}destroy(){this.emitFn=null,this.register.clear()}off(e,n){let o=this.register.get(e);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===n);l!==-1&&o.splice(l,1)}}on(e,n){let o=this.register.get(e);o||(o=new Array,this.register.set(e,o)),o.push(n)}emit(e,...n){const o=this.register.get(e);o&&o.forEach(l=>{try{Reflect.apply(l,null,[e,...n])}catch(r){console.error(r.message,r)}}),this.emitFn&&Reflect.apply(this.emitFn,null,[e,...n])}};function Me(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function Vn(e,n){let o=0;return function(...l){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...l]))}}function Fs(e,n){const o=Me((l,r)=>{e=l,r()},n);return(0,t.customRef)((l,r)=>({get(){return l(),e},set(i){o(i,r)}}))}function Os(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function to(e,n,o,l=0,r=!0){let i=n,a=0;if(r){const s=e();if(a++,s||a>o)return}const u=()=>{const s=e();a++,!(s||a>o)&&(i+=l,setTimeout(u,i))};setTimeout(u,i)}var et=Symbol("DomainKey"),Ut=Symbol("DataItemsKey"),Ln=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}componentPublicExposed={};_props=(0,t.reactive)({});_datas={};constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={},this._datas={},this.componentPublicExposed={}}setData(e,n){this._datas[e]=n}getData(e){return this._datas[e]}hasData(e){return Reflect.has(this._datas,e)}deleteData(e){return Reflect.deleteProperty(this._datas,e)}merge(e,n=[]){for(const o in e){const l=e[o];n.length>0&&n.indexOf(l)!==-1||(this._props[o]=l)}}has(e){if(Reflect.has(this._props,e)){const n=this._props[e];if(n!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,n){this._props[e]=n}get(e,n){if(Reflect.has(this._props,e)){const o=this._props[e];if(o!=null)return o}return this.parent==null?n:this.parent.get(e,n)}getForParent(e,n){return this.parent==null?n:this.parent.get(e,n)}getForSelf(e){return this._props[e]}getAll(e){const n=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,e)){const l=o._props[e];n.push(l)}o=o._parent}return n}},Ks=new Ln;function kt(){return Ks}function ot(){return(0,t.inject)(et,null)}var Cl=Symbol("OriginalDateKey");function no(e,n,o){const l=(0,t.hasInjectionContext)(),r=l?(0,t.getCurrentScope)():null;let i=l?(0,t.inject)(et,null):null;i===null&&(i=kt());const a=n;let u=new Ln(a);u.parent=i;const s=b=>{u?.hasData(Cl)||c(b),u?.set("modelValue",b)},d=()=>u?.getForSelf("modelValue")??null,v=()=>u?.getData(Cl)??null,c=b=>{const m={};Nt(!0,m,(0,t.toRaw)(b)),u.setData(Cl,m)},p=e.props,y=e.ignorePropKeys;(0,t.isReactive)(p)||typeof p=="function"?(0,t.watch)(p,b=>{u?.merge(b,y),b.modelValue&&c(b.modelValue)},{immediate:!0}):(u.merge(p,y),p.modelValue&&c(p.modelValue));const N=(b,m)=>{u?.set(b,m)},S=b=>u?.getForSelf(b)??null;if(u.componentPublicExposed[et]=u,(0,t.provide)(et,u),r!==null){const b=(0,t.inject)(Oe,null),m=ln(u.componentPublicExposed,b,a,o);u.broadcast=m,u.componentPublicExposed[Oe]=m,(0,t.provide)(Oe,m),u.componentPublicExposed.broadcast=(h,g,...x)=>{if(m)return Reflect.apply(m.emit,m,[h,g,...x])};const f=(0,t.inject)(Ze,null),k=zn(u.componentPublicExposed,f,{componentName:"",context:e.context});u.validateSchema=k,u.componentPublicExposed[Ze]=k,(0,t.provide)(Ze,k),u.componentPublicExposed[Ut]=new Map,u.componentPublicExposed.validate=async(h=!0)=>{const g=[];let x=null;const B={};let T=!1;if(h===!0)x={name:"*"},T=!0;else if(Array.isArray(h)&&h.length>0){const w=h;x={name:I=>I?w.indexOf(I)!==-1:!1},T=!0}else if(h!=null&&typeof h=="object"){const w=h;if(w.deep!==!1){if(Object.assign(B,w),Array.isArray(w.include)&&w.include.length>0){const I=w.include;x={name:L=>L?I.indexOf(L)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const I=w.exclude;x={name:L=>L?I.indexOf(L)===-1:!1}}else x={name:"*"};T=!0}}if(T&&x){B.deep=!1;const w=m?.emitToChildren(x,"validate",B);w&&Reflect.apply([].push,g,w)}return g.length==1?g[0]:g.length>1?Promise.all(g).then(w=>{let I=[];return w.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(I=[...I,...L.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})};const A=e.context;u.componentPublicExposed.setNameValidateRules=(h,g=!0,x=!1)=>{if(x===!0){Reflect.ownKeys(h).forEach(B=>{let T=String(B);const w={componentName:"",fieldName:T,pureDataValidate:!0,context:A};if(u){const I=ri(u,T,w,m,k);u.componentPublicExposed[Ut].set(T,I);const L=h[T];L&&I.validateSchema.setRule(L)}});return}if(g){const B=Reflect.ownKeys(h);m?.emitToChildren({name:T=>B.includes(T),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",h,!1)}},u.componentPublicExposed.clearValidate=(h=!0)=>{let g=null;const x={};let B=!1;if(h===!0)g={name:"*"},B=!0;else if(Array.isArray(h)&&h.length>0){const T=h;g={name:w=>w?T.indexOf(w)!==-1:!1},B=!0}else if(h!=null&&typeof h=="object"){const T=h;if(T.deep!==!1){if(Array.isArray(T.include)&&T.include.length>0){const w=T.include;g={name:I=>I?w.indexOf(I)!==-1:!1}}else if(Array.isArray(T.exclude)&&T.exclude.length>0){const w=T.exclude;g={name:I=>I?w.indexOf(I)===-1:!1}}else g={name:"*"};Object.assign(x,T),B=!0}}B&&g&&(x.deep=!1,m?.emitToChildren(g,"clearValidate",x))},u.componentPublicExposed.resetFields=h=>{const g=d();if(!g)return;const x={};if(Nt(!0,x,v()??{}),Array.isArray(h))h.forEach(B=>{g[B]=x[B]});else if(h&&Array.isArray(h.include))(h.include??[]).forEach(B=>{g[B]=x[B]});else if(h&&Array.isArray(h.exclude)){let B=h.exclude??[];Reflect.ownKeys(x).forEach(T=>{B.includes(T)||(g[T]=x[T])})}else Object.assign(g,x);u?.componentPublicExposed?.clearValidate(h)},u.componentPublicExposed.setModelValue=(h,g)=>{if(!g||g===a)s(h);else{const x={name:g,messagingPolicy:"Once"};m?.emitToChildren(x,"setModelValue",h)}},u.componentPublicExposed.getModelValue=()=>d(),u.componentPublicExposed.setDomainProperty=(h,g)=>{N(h,g)},u.componentPublicExposed.getDomainProperty=h=>S(h),setTimeout(function(){m?.pull()},0)}(0,t.onScopeDispose)(function(){u?.validateSchema&&u.validateSchema.destroy(),u?.broadcast&&u?.broadcast?.destroy(),u.componentPublicExposed[Ut]&&u.componentPublicExposed[Ut].clear(),u?.destroy(),u=null});const C=e.context?.expose;return{domain:u,exposeApi:(b={})=>{Object.assign(u.componentPublicExposed,b),C?.(u.componentPublicExposed)}}}function ai(e,n){let o=(0,t.inject)(et,null);o===null&&(o=kt());let l=new Ln(n);l.parent=o;const r=e.props,i=e.ignorePropKeys;(0,t.isReactive)(r)||typeof r=="function"?(0,t.watch)(r,u=>{l?.merge(u,i)},{immediate:!0}):l.merge(r,i),l.componentPublicExposed[et]=l,(0,t.provide)(et,l),(0,t.onScopeDispose)(()=>{l?.destroy(),l=null});const a=e.context?.expose;return{domain:l,exposeApi:(u={})=>{Object.assign(l.componentPublicExposed,u),a?.(l.componentPublicExposed)}}}function Ve(e,n,o){const l={},r=n??e.componentName??"";let i=ln(l,(0,t.inject)(Oe,null),r,o);l[Oe]=i,(0,t.provide)(Oe,i),l.broadcast=(c,p,...y)=>i?Reflect.apply(i.emit,i,[c,p,...y]):null;const a=(0,t.inject)(Ze,null);e.fieldName=e.fieldName??r;let u=zn(l,a,e);l[Ze]=u,(0,t.provide)(Ze,u),l.validate=async(c=null)=>{if(!u)return Promise.resolve({pass:!0});const p=[];let y=null;const N={};let S=!1,C=!1;if(c===!0)y={name:"*"},C=!0,S=!0;else if(Array.isArray(c)&&c.indexOf(r)!==-1){const b=c;y={name:m=>m?b.indexOf(m)!==-1:!1},C=!0,S=!0}else if(c&&typeof c=="object"){const b=c,m=b.ignoreDisabled??!0,f=b.ignoreReadonly??!0,k=b.ignoreHidden??!0;m===!0&&e.disabled===!0||f===!0&&e.readonly===!0||k===!0&&Rl(e.templateRefProxy?.$el??e.templateRefProxy)?C=!1:(Array.isArray(b.include)&&b.include.indexOf(r)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(r),C=!0),Object.assign(N,b),S=b.deep??!1}if(C){const b=u?.validate();p.push(b)}if(S&&y){N.deep=!1;const b=i?.emitToChildren(y,"validate",N);b&&Reflect.apply([].push,p,b)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(b=>{let m=[];return b.forEach(f=>{f.pass===!1&&Array.isArray(f.errors)&&(m=[...m,...f.errors])}),m.length>0?{pass:!1,errors:m}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=c=>u?.setRule(c),l.setNameValidateRules=(c,p=!1)=>{const y=c[r];y&&u?.setRule(y),p&&i&&i.emitToChildren({name:N=>Reflect.ownKeys(c).includes(N)},"setNameValidateRules",c,!1)},l.clearValidate=(c=!0)=>{if(!u)return;let p=null;const y={};let N=!1,S=!1;if(c===!0)p={name:"*"},S=!0,N=!0;else if(Array.isArray(c)&&c.indexOf(r)!==-1){const C=c;p={name:b=>b?C.indexOf(b)!==-1:!1},S=!0,N=!0}else if(c&&typeof c=="object"){const C=c;(C.ignoreHidden??!0)===!0&&Rl(e.templateRefProxy?.$el??e.templateRefProxy)?S=!1:(Array.isArray(C.include)&&C.include.indexOf(r)!==-1||Array.isArray(C.exclude)&&C.exclude.indexOf(r),S=!0),Object.assign(y,C),N=C.deep??!1}S&&u?.clear(),N&&p&&(y.deep=!1,i?.emitToChildren(p,"clearValidate",y))};let s=new oi(e.context?.emit);l[Tn]=s,l.triggerEvent=(c,...p)=>{s.emit(c,...p)};const d=Me((c="validate")=>{u&&(c==="reset"?u.clear():u.validate())},60);(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ei()).forEach(c=>{s&&s.on(c,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:ni()).forEach(c=>{s&&s.on(c,p=>{d("reset")})}),setTimeout(function(){i?.pull()},0),(0,t.onScopeDispose)(()=>{i?.destroy(),i=null,u?.destroy(),l[Ze]=null,u=null,s?.destroy(),l[Tn]=null,s=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null});const v=e.context?.expose;return{broadcast:i,validateSchema:u,emitEvent:(c,...p)=>{s&&Reflect.apply(s.emit,s,[c,...p])},onEvent:(c,p)=>{s&&Reflect.apply(s.on,s,[p])},offEvent:(c,p)=>{s&&Reflect.apply(s.off,s,[p])},componentPublicExposed:l,exposeApi:(c={})=>{Object.assign(l,c),v?.(l)}}}function ri(e,n,o,l,r){const i={},a=n??"",u={getValue(){const c=e.getForSelf("modelValue");return c?c[a]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,a):!1}};o.fieldName=a,o.validateHandler={getValue(c){return u.getValue()}};let s=zn({},r,o);i.validate=async(c=null)=>{if(!u.isExist())return console.warn(`validate error: field [${a}] not exist`),Promise.resolve({pass:!0});const p=[];let y=!1,N=!1;if(Array.isArray(c)&&c.indexOf(a)!==-1)N=!0,y=!0;else if(c&&typeof c=="object"){const S=c;Array.isArray(S.include)&&S.include.indexOf(a)!==-1||Array.isArray(S.exclude)&&S.exclude.indexOf(a),N=!0,y=S.deep??!1}else typeof c=="boolean"&&(y=c),N=!0;if(N&&s){const S=s.validate();p.push(S)}if(y){let S=null;const C={};if(c===!0)S={name:"*"};else if(Array.isArray(c)&&c.length>0){const b=c;S={name:m=>m?b.indexOf(m)!==-1:!1}}else if(c!=null&&typeof c=="object"){const b=c;if(Object.assign(C,b),Array.isArray(b.include)&&b.include.length>0){const m=b.include;S={name:f=>f?m.indexOf(f)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const m=b.exclude;S={name:f=>f?m.indexOf(f)===-1:!1}}else S={name:"*"}}if(S&&d){C.deep=!1;const b=d.emitToChildren(S,"validate",C);Reflect.apply([].push,p,b)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(S=>{let C=[];return S.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(C=[...C,...b.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},i.setValidateRule=c=>s?.setRule(c),i.setNameValidateRules=c=>{const p=c[a];p&&s?.setRule(p)};let d=ln(i,l,a);(0,t.onScopeDispose)(()=>{s=null,d=null});const v=o.context?.expose;return{broadcast:d,validateSchema:s,componentPublicExposed:i,exposeApi:(c={})=>{Object.assign(i,c),v?.(i)}}}function He(e,n){let o={};if(n){const i=(0,t.inject)(Oe,null),a=ln(o,i,n,{});o[Oe]=a,(0,t.provide)(Oe,a)}let l=new oi(e.context?.emit);o[Tn]=l,o.triggerEvent=(i,...a)=>{l.emit(i,...a)},(0,t.onScopeDispose)(()=>{l?.destroy(),Reflect.deleteProperty(o,Tn),o=null,l=null});const r=e.context?.expose;return{emitEvent:(i,...a)=>{l&&Reflect.apply(l.emit,l,[i,...a])},onEvent:(i,a)=>{l&&Reflect.apply(l.on,l,[a])},offEvent:(i,a)=>{l&&Reflect.apply(l.off,l,[a])},componentPublicExposed:o,exposeApi:(i={})=>{Object.assign(o,i),r?.(o)}}}var ue=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("px"))?e:`${ce(e,n)}px`:"",Us=ue;function ce(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),i=1;if(lt){const{fontSize:a}=window.getComputedStyle(document.documentElement,null),u=a.indexOf("px");u>0&&(i=Number(a.substring(0,u)))}return r*=i,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))*n;const l=Number(e);return isNaN(l)?0:l}function _s(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}var tt="PageStateKey";function Ue(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ce(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ce(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ce(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ce(e.right))),n}function Ol(e,n,o={},l=!0,r=-1,i=-1,a=0,u=0){if(e.headerHeight=ce(o.headerHeight??n.headerHeight??-1),e.headerPadding=Ue(o.headerPadding??n.headerPadding),e.footerHeight=ce(o.footerHeight??n.footerHeight??-1),e.footerPadding=Ue(o.footerPadding??n.footerPadding),e.contentPadding=Ue(o.contentPadding??n.contentPadding),l){const s=o.height??n.height;s?e.height=ce(s,i):e.height=ce(i)-ce(a,i)-ce(u,i),e.width=ce(o.width??n.width??0,r)}}function ii(e,n={}){const o={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});r&&(l.safeAreaTop=ce(r.top),l.safeAreaBottom=ce(r.bottom),l.safeAreaLeft=ce(r.left),l.safeAreaRight=ce(r.right));const i=e.get("pageLayout");if(!i)return null;Ol(l,i,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const a=(0,t.reactive)(l),u=e.getForParent(tt);u&&(l.height=xn(e,u),l.width=$n(e,u),(0,t.watch)([()=>xn(e,u),()=>$n(e,u)],([d,v])=>{a.height=d,a.width=v}));const s=!u;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([d,v,c=-1,p=-1,y=0,N=0])=>{Ol(a,v,n,s,c,p,y,N)}),e.set(tt,a),a}function Fn(e){return e.get(tt)}function On(e,n){if(n=n??e.get(tt),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Kn(e,n){if(n=n??e.get(tt),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function xn(e,n){if(n=n??e.get(tt),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=On(e,n),l=Kn(e,n),r=ce(n.contentPadding.top??0),i=ce(n.contentPadding.bottom??0);return n.height-o-l-r-i}return 0}function $n(e,n){if(n=n??e.get(tt),n){const o=ce(n.contentPadding.left??0),l=ce(n.contentPadding.right??0);return n.contentInnerWidth??n.width-o-l}return 0}function Hs(e){return!!e.getForParent(tt)}var lo=Symbol.for("InnerPageScopeKey");function si(e){(0,t.provide)(lo,e)}function on(e=!1){return(0,t.inject)(lo,e)}var oo=Symbol.for("AbstractPageScopeKey");function ui(e){(0,t.provide)(oo,e)}function an(e=!1){return(0,t.inject)(oo,e)}function ci(e=!1){const n=an(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.headerBar??e:e}function di(e=!1){const n=an(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.footerBar??e:e}function fi(e=!1){const n=an(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.content??e:e}var wt=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function hn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ae(e,n,o=1,l){const r=ot();return r==null?e:o===0?(0,t.computed)(()=>{const i=r.getAll(n);for(let u=i.length-1;u>=0;u--){const s=i[u];if(hn(s,l))return s}const a=e.value;return hn(a,l)?a:null}):(0,t.computed)(()=>{const i=e.value;if(hn(i,l))return i;const a=r.getAll(n);for(let u=0;u<a.length;u++){const s=a[u];if(hn(s,l))return s}return null})}function mi(e){return Ae(e,"readonly",1)}function pi(e){return Ae(e,"disabled",1)}function vi(e){return Ae(e,"browse",1)}function $e(e){const n=(0,t.ref)(null),o=(0,t.ref)(null),l=pi((0,t.computed)(()=>o.value??e.disabled)),r=(0,t.ref)(null);return{itemTemplateRef:n,innerDisabled:o,disabled:l,innerReadonly:r,readonly:mi((0,t.computed)(()=>r.value??e.readonly)),browse:vi((0,t.computed)(()=>e.browse))}}function Re(e,n="modelValue",o=null,l){const r=(0,t.toRef)(e,n);let i=r.value;typeof o=="function"&&(i=o(r.value));const a=(0,t.ref)(i);return(0,t.watch)(r,u=>{if(typeof o=="function"){const s=o(u);s!==a.value&&(a.value=s,l&&l("setValue",s))}else u!==a.value&&(a.value=u,l&&l("setValue",u))}),a}var hi=new Map,En=new Map,ao=null;function js(e){ao=e}function Ws(){return ao}function mt(){return ao?.()??null}function gi(e,n,o){if(o){let l=En.get(o);l||(l=new Map,En.set(o,l)),l.set(e,n)}else hi.set(e,n)}function at(e,n){let o=null;if(n){let l=En.get(n);l&&(o=l.get(e))}return o||(o=hi.get(e)),o}function Ys(e,n){for(let o in e){const l=e[o];gi(o,l,n)}}function Xs(e){En.delete(e)}function Qs(){return{top:0,left:0,bottom:0,right:0}}function Gs(){return lt?{rootWidth:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,rootHeight:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Zs(e,n){let o=e;if(n.componentPrefix){const l=o.indexOf("-");l!==-1?o=`${n.componentPrefix}${o.slice(l)}`:o=`${n.componentPrefix}-${o}`}return Bn(o)}var Js=class{packages;resizeListener=null;resizeObserver=null;_version;get version(){return this._version}constructor(e,n){this.packages=e,this._version=n}install(e,n){n?.install!==!1&&this.packages.forEach(l=>{if(l.install)e.use(l,n);else if(l.name){const r=Zs(l.name,n);e.component(r,l)}});const o=kt();if(n.autoAdjustPageLayout!==!1){const l={...n},r=this.resizeListener;typeof n.resizeDebounceDelay=="number"?this.resizeListener=Me(()=>{const i={...l};this.updateLayout(i,o)},n.resizeDebounceDelay):this.resizeListener=()=>{const i={...l};this.updateLayout(i,o)},window.visualViewport?(r&&window.visualViewport.removeEventListener("resize",r),window.visualViewport.addEventListener("resize",this.resizeListener)):window.ResizeObserver&&(this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new window.ResizeObserver(this.resizeListener),this.resizeObserver.observe(window.document.body))}this.updateLayout(n,o)}unInstall(){window.visualViewport?this.resizeListener&&window.visualViewport.removeEventListener("resize",this.resizeListener):window.ResizeObserver&&this.resizeObserver&&this.resizeObserver.disconnect()}updateLayout(e,n){const o=e.headerBarHeight??0,l=e.footerBarHeight??0,r=Nt({},Qs(),e.safeAreaInset),i=Gs(),a=Nt({},i.pageLayout,e.pageLayout);n=n??kt(),n.set("safeAreaInset",r),n.set("headerBarHeight",o),n.set("footerBarHeight",l),n.set("pageLayout",a),n.set("rootWidth",i.rootWidth),n.set("rootHeight",i.rootHeight);const u=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const s in e)u.indexOf(s)===-1&&n.set(s,e[s])}setScopeGetter(e){js(e)}getScopeGetter(){return Ws()}setAPI(e,n,o){gi(e,n,o)}getAPI(e,n){return at(e,n)}batchSetAPI(e,n){Ys(e,n)}clearScopeAPI(e){Xs(e)}getRootDomain(){return kt()}};function le(e){const n=`fox-${e}`,o=Bn(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=(r,i)=>{let a=l.name;i?.componentPrefix&&(a=`${i.componentPrefix}-${l.baseName}`,a=Bn(a)),r.component(a,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var eu=(e,n)=>{let o=document.body;const l=e.teleport||"body";l!="body"&&(_r(l)?o=document.querySelector(l):o=e.teleport);const r=document.createElement("view");r.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let i={};Nn(n.wrapper)?i=n.wrapper(o,r):i=n.wrapper;const a=(0,t.createApp)(i,e),u=n.components;return u&&u.forEach(s=>{a.use(s)}),o.appendChild(r),{instance:a.mount(r),unmount:()=>{a.unmount(),o.removeChild(r)}}},yi=(e,n)=>e?(0,t.h)(e,n):"",ge={browse:{type:[String],required:!1,default:()=>null},disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Se={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}},bi={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Si={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},collapseOnClickHeader:{type:[Boolean],requried:!1,default:()=>!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}},ki=[];for(const e in Si)ki.push(e);var tu={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}},nu=(e,n)=>({inheritAttrs:!0,props:{...ge,...bi,...tu},setup(o,l){const r=!!an(!1),i=on(!1),{domain:a,exposeApi:u}=no({props:o,context:l},o.name);if(a){const c=ii(a,o);u({getPageContentHeight:()=>xn(a,c),getPageContentWidth:()=>$n(a,c),getPageHeaderHeight:()=>On(a,c),getPageFooterHeight:()=>Kn(a,c)}),c&&i&&(c.contentHeight="100%")}const s=(0,t.computed)(()=>({[e]:!0,"is-inner":i})),d=(0,t.computed)(()=>({})),v=(c,p=!1)=>{a.componentPublicExposed&&typeof a.componentPublicExposed.setNameValidateRules=="function"&&a.componentPublicExposed.setNameValidateRules(c,!0,p)};return(0,t.watch)([()=>o.rules,()=>o.pureDataRules],([c,p],[y,N])=>{if(c&&y){const S=(0,t.toRaw)(y),C=(0,t.toRaw)(c),b=C?Reflect.ownKeys(C):[];(S?Reflect.ownKeys(S):[]).forEach(m=>{b.includes(m)||(C[m]=[])}),v(C)}if(p&&N){const S=(0,t.toRaw)(N),C=(0,t.toRaw)(p),b=C?Reflect.ownKeys(C):[];(S?Reflect.ownKeys(S):[]).forEach(m=>{b.includes(m)||(C[m]=[])}),v(C,!0)}},{deep:!0}),(0,t.onMounted)(()=>{if(o.rules){const c=(0,t.toRaw)(o.rules);v(c)}if(o.pureDataRules){const c=(0,t.toRaw)(o.pureDataRules);v(c,!0)}}),()=>r?l.slots?.default?.():(0,t.h)("div",{class:s.value,style:d.value},[l.slots?.default?.()])}}),{componentName:lu,create:ou,scope:au}=le("page"),ru=ou(nu(lu,au)),ro=ru;function io(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Un(e){const n=(0,t.unref)(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),i=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-r,height:n.clientHeight-i-a}}var wi={headerbar:{},radio:{},checkbox:{}};function iu(e){Object.assign(wi,e)}function _n(){return wi}var su=(e,n,o,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,i){const a=ci(!1),u=on(!1),s=a?null:ot(),d=s?Fn(s):null,v=_n(),c=e,p=(0,t.computed)(()=>{const V={[c]:!0,[`${c}--border`]:r.border,[`${c}--fixed`]:r.fixed};return u||(V[`${c}--safe-area-inset-top`]=r.safeAreaInsetTop),V}),y=(0,t.computed)(()=>({[`${c}__inner`]:!0,[`${c}__inner--${r.align}`]:!0})),N=Te(r.height)?null:ce(r.height),S=(0,t.computed)(()=>{const V={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(a)return V;if(s&&d){const M=Ue(r.padding??d.headerPadding);if(Object.assign(V,M),Te(N)||(d.headerHeight=N),V.height=d.headerHeight,V.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,V.safeAreaTop>0){const q=ce(M.top??0);V.top=V.safeAreaTop+q,V.height&&V.height>0&&(V.height=V.height+V.safeAreaTop)}return V}if(Te(N)||(V.height=N),r.padding){const M=Ue(r.padding);Object.assign(V,M)}return V}),C=(0,t.ref)(null),b=()=>{if(d&&C.value&&!Jl(C.value)){if(!l){const V=io(C.value);d.headerAllHeight=V.height}return d.headerMounted=!0,!0}return!1},m=Me(b,120);let f=null;(0,t.onMounted)(()=>{a||d&&(to(b,50,5,50,!0),window.ResizeObserver&&C.value&&(f=new window.ResizeObserver(m),f.observe(C.value)))}),(0,t.onUnmounted)(()=>{a||d&&(d.headerMounted=!1,f&&(f.disconnect(),f=null))});const k=(0,t.computed)(()=>{const V={};return a||(S.value.height!==null&&S.value.height!==void 0&&(V.height=`${S.value.height}px`),S.value.top!==null&&S.value.top!==void 0&&(V.paddingTop=`${S.value.top}px`),S.value.left!==null&&S.value.left!==void 0&&(V.paddingLeft=`${S.value.left}px`),S.value.right!==null&&S.value.right!==void 0&&(V.paddingRight=`${S.value.right}px`),S.value.bottom!==null&&S.value.bottom!==void 0&&(V.paddingBottom=`${S.value.bottom}px`)),V}),A=(0,t.computed)(()=>{const V=S.value?.height;return Te(V)||V<0?!0:V>0});function h(){i.emit("back")}function g(){i.emit("click-title")}function x(){i.emit("click-right")}function B(){i.emit("click-right-text")}const T=()=>{if(!r.leftShow)return null;const V=[];if(i.slots.left)V.push(i.slots.left());else{if(i.slots.leftIcon){const M=(0,t.h)("view",{class:"left-icon",onClick:h},[i.slots.leftIcon()]);V.push(M)}else{const M=r.leftIcon??v.headerbar.Left??o,q=(0,t.h)("view",{class:"left-icon",onClick:h},[(0,t.h)(M)]);V.push(q)}if(r.leftText){const M=(0,t.h)("view",{class:"left-text",onClick:h},[r.leftText]);V.push(M)}}return V.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},V)},w=()=>{if(!r.rightShow)return null;const V=[];if(i.slots.right)V.push(i.slots.right());else{if(r.rightText){const M=(0,t.h)("view",{class:"right-text",onClick:B},[r.rightText]);V.push(M)}if(i.slots.rightIcon){const M=(0,t.h)("view",{class:"right-icon",onClick:x},[i.slots.rightIcon()]);V.push(M)}else if(r.rightIcon){const M=(0,t.h)("view",{class:"right-icon",onClick:x},[(0,t.h)(r.rightIcon)]);V.push(M)}}return V.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},V)},I=()=>{if(!r.titleShow)return null;const V=[],M=i.slots.default?i.slots.default():null;if(M)V.push(M);else{if(r.title){const q=(0,t.h)("view",{class:"title-text"},[r.title]);V.push(q)}if(i.slots.titleIcon){const q=(0,t.h)("view",{class:"title-icon",onClick:g},[i.slots.titleIcon()]);V.push(q)}else if(r.titleIcon){const q=(0,t.h)("view",{class:"title-icon",onClick:g},[(0,t.h)(r.titleIcon)]);V.push(q)}}return V.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},V)},L=()=>{const V=[],M=i.slots.bottom?i.slots.bottom():null;return M&&V.push(M),V.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},V)};return()=>{if(a||!A.value)return null;const V=[];if(i.slots.all)V.push(i.slots.all());else{const M=[],q=T();q&&M.push(q);const O=I();O&&M.push(O);const P=w();if(P&&M.push(P),M.length>0){const D=(0,t.h)("view",{class:y.value},M);V.push(D)}const j=L();j&&V.push(j)}return V.length===0?null:(0,t.h)("view",{class:p.value,style:k.value,ref:C},V)}}}),{componentName:uu,create:cu,scope:du}=le("header-bar"),fu=cu(su(uu,du,re.Left,!1)),so=fu;function mu(e,n,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,r){const i=di(!1),a=on(!1),u=i?null:ot(),s=u?Fn(u):null,d=e,v=(0,t.computed)(()=>{const f={[d]:!0,[`${d}--${l.align}`]:!0,[`${d}--border`]:l.border,[`${d}--fixed`]:l.fixed};return a||(f[`${d}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),f}),c=Te(l.height)?null:ce(l.height),p=(0,t.computed)(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(i)return f;if(u&&s){const k=Ue(l.padding??s.footerPadding);if(Object.assign(f,k),Te(c)||(s.footerHeight=c),f.height=s.footerHeight,f.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,f.safeAreaBottom>0){const A=ce(k.bottom??0);f.bottom=f.safeAreaBottom+A,f.height&&f.height>0&&(f.height=f.height+f.safeAreaBottom)}return f}if(Te(c)||(f.height=c),l.padding){const k=Ue(l.padding);Object.assign(f,k)}return f}),y=(0,t.computed)(()=>{const f=p.value?.height;return Te(f)||f<0?!0:f>0}),N=(0,t.ref)(null),S=()=>{if(s&&N.value&&!Jl(N.value)){if(!o){const f=io(N.value);s.footerAllHeight=f.height}return s.footerMounted=!0,!0}return!1},C=Me(S,120);let b=null;(0,t.onMounted)(()=>{i||s&&(to(S,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(C),b.observe(N.value)))}),(0,t.onUnmounted)(()=>{i||s&&(s.footerMounted=!1,b&&(b.disconnect(),b=null))});const m=(0,t.computed)(()=>{const f={};return i||(p.value.height!==null&&p.value.height!==void 0&&(f.height=ue(p.value.height)),p.value.top!==null&&p.value.top!==void 0&&(f.paddingTop=ue(p.value.top)),p.value.left!==null&&p.value.left!==void 0&&(f.paddingLeft=ue(p.value.left)),p.value.right!==null&&p.value.right!==void 0&&(f.paddingRight=ue(p.value.right)),p.value.bottom!==null&&p.value.bottom!==void 0&&(f.paddingBottom=ue(p.value.bottom))),f});return()=>{if(i||!y.value)return null;const f=r.slots.default?r.slots.default():[];return(0,t.h)("view",{ref:N,class:v.value,style:m.value},f)}}}}var{componentName:pu,create:vu,scope:hu}=le("footer-bar"),gu=vu(mu(pu,hu,!1)),uo=gu;function yu(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:l,attrs:r}){const i=fi(!1),a=on(!1),u=i?null:ot(),s=(0,t.computed)(()=>({[e]:!0})),d=u?Fn(u):null,v=(0,t.computed)(()=>{const S={};if(i)return S;if(u&&d){if(o.padding){const g=Ue(o.padding);Object.assign(d.contentPadding,g)}const C=On(u,d),b=Kn(u,d);let m="";d.contentHeight?m=`${d.contentHeight}`:m=`${d.height}px`,console.debug("[content]page height:",m),console.debug("[content]header height:",C),console.debug("[content]footer height:",b),console.debug("[content]padding:",d.contentPadding),S.height=m;let f=ce((d&&d.contentPadding&&d.contentPadding.top)??-1);(f>=0||C>0)&&(f=f<0?0:f,S.paddingTop=`${C+f}px`);let k=ce((d&&d.contentPadding&&d.contentPadding.bottom)??-1);(k>=0||b>0)&&(k=k<0?0:k,S.paddingBottom=`${b+k}px`);const A=ce((d&&d.contentPadding&&d.contentPadding.left)??-1);A>=0&&(S.paddingLeft=`${A}px`);const h=ce((d&&d.contentPadding&&d.contentPadding.right)??-1);return h>=0&&(S.paddingRight=`${h}px`),S}if(o.padding){const C=Ue(o.padding);C.left&&(S.paddingLeft=`${C.left}px`),C.top&&(S.paddingTop=`${C.top}px`),C.right&&(S.paddingRight=`${C.right}px`),C.bottom&&(S.paddingBottom=`${C.bottom}px`)}return S}),c=(0,t.ref)(null),p=()=>{if(d&&c.value){const S=Un(c.value);d.contentInnerHeight=S.height,d.contentInnerWidth=S.width}},y=Me(p,120);let N=null;return(0,t.onMounted)(()=>{a||i||(requestAnimationFrame(p),window.ResizeObserver&&c.value&&(N=new window.ResizeObserver(y),N.observe(c.value)))}),(0,t.onUnmounted)(()=>{a||i||N&&(N.disconnect(),N=null)}),()=>i?l.default?.():(0,t.h)(o.tag??"view",{...r,ref:c,class:s.value,style:v.value},l)}}}var{componentName:bu,create:Su,scope:ku}=le("content"),wu=Su(yu(bu,ku)),co=wu,At="GroupStateKey",Ci=Symbol.for("GroupScopeKey");function Hn(){return(0,t.inject)(Ci,!1)}function jn(e=!0){(0,t.provide)(Ci,e)}function Cu(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Te(l)||(e[o]=l)})}function Nu(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Cu(o,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(o),passport:0,order:{index:0}});return e.set(At,l),l}function Nl(e,n,o=-1,l=-1,r=!1,i,a,u){const s=e.get(At);if(!s)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),l===-1&&(l=d.gutter??0),i||(i=d.minItemWidth??-1),a||(a=d.maxItemWidth??-1);const v=ce(i),c=ce(a);u||(u=d.type??"grid");const p=()=>{const y=n===""||n===-1,N=ce(n);let S=me(o);const C=ce(l);if(!y){let f=(N-(S-1)*C)/S;for(;c!==-1&&f>c;)S++,f=(N-(S-1)*C)/S;for(;v!==-1&&S>1&&f<v;)S--,f=(N-(S-1)*C)/S}let b=!1;const m=s.layout;m.value.width=n,m.value.column!==S&&(m.value.column=S,b=!0),m.value.gutter!==C&&(m.value.gutter=C,b=!0),m.value.type!==u&&(m.value.type=u,b=!0),b&&(0,t.triggerRef)(m)};if(r)p();else{const y=++s.passport;setTimeout(()=>{y===s.passport&&p()},50)}}function Wn(e,n=!1){let o;return n?o=e.getForParent(At):o=e.get(At),o.layout}function Yn(e,n=!1){let o;return n?o=e.getForParent(At):o=e.get(At),o.order}function nr(e,n=1){if(n==="stretch")return-1;const o=me(n);return o===-1?100:100*o/e}function Xn(e,n,o=1,l=0,r){const i={};let a=0;r?a=ce(r):a=nr(n.column,o),a>0&&(i.width=`${a}%`);const u=nr(n.column,l);u>0&&(i["margin-left"]=`${u}%`);const s=ce(n.gutter)/2;return s>0&&(i["padding-left"]=`${s}px`,i["padding-right"]=`${s}px`),i}function Qn(e,n,o=1,l=0){if(o==="stretch"){const s=e.index%n.column,d=s+(n.column-s);return e.index=e.index+(d-s),{"grid-column":`${s+1} / -1`}}let r=me(o);if(r===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const i=me(l)%n.column;let a=(e.index+i)%n.column,u=a+r;return u>n.column?(a=0,u=a+r,e.index=e.index+(n.column-a)+r):e.index=e.index+i+r,i>0?{"grid-column":`${a+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}var Ni=Symbol("RollingStateKey");function Au(e){(0,t.provide)(Ni,e)}function Bu(){return(0,t.inject)(Ni,null)}function Kl(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(o.getPropertyValue("padding-top")),r=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function Tu(e){let n=Kl(e);if(n<=0){const o=e.cloneNode(!0);o.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=Kl(o),document.body.removeChild(o)}return n}function Vu(e,n,o){const l=typeof e=="number"?e:parseInt(e),r=typeof n=="number"?n:parseInt(n),i=typeof o=="number"?o:parseInt(o);if(l<=0)return"1fr";const a=(l-(r-1)*i)/r;return a>0?`${a}px`:"1fr"}function Ai(e){const n=[];return e.forEach(o=>{o.type===t.Fragment&&Array.isArray(o.children)?n.push(...Ai(o.children)):n.push(o)}),n}function xu(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function rn(e){function n(){return Ai(e?.()??[]).filter(xu)}return{getChildren:n}}var $u={...ge,...bi,...Si};function Eu(e,n,o){return{props:$u,emits:["update:collapse","header-click"],setup(l,r){const{domain:i,exposeApi:a}=no({props:l,ignorePropKeys:ki,context:r},l.prop??l.name),u=Nu(i,{type:l.type}),s=Hn();jn(!0);const d=l.rollingDisplay?Bu():null,v=(0,t.ref)(null),c=(0,t.computed)(()=>l.rollingDisplay?d&&!d.disabled:!1),p=(0,t.computed)(()=>s&&i?Wn(i,!0).value:null),y=(K,ne=!1)=>{i.componentPublicExposed&&typeof i.componentPublicExposed.setNameValidateRules=="function"&&i.componentPublicExposed.setNameValidateRules(K,!0,ne)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([K,ne],[F,G])=>{if(K&&F){const E=(0,t.toRaw)(F),$=(0,t.toRaw)(K),z=$?Reflect.ownKeys($):[];(E?Reflect.ownKeys(E):[]).forEach(W=>{z.includes(W)||($[W]=[])}),y($)}if(ne&&G){const E=(0,t.toRaw)(G),$=(0,t.toRaw)(ne),z=$?Reflect.ownKeys($):[];(E?Reflect.ownKeys(E):[]).forEach(W=>{z.includes(W)||($[W]=[])}),y($,!0)}},{deep:!0});const N=e,S=(0,t.computed)(()=>{const K={};if(K.height=M.value,l.width)l.width!=="auto"&&(K.width=ue(l.width));else{const ne=s?Yn(i,!0):null;if(p.value&&ne){if(p.value.type==="grid"){const F=Qn(ne,p.value,l.span,l.offset);Object.assign(K,F)}else if(p.value.type==="flow"){const F=Xn(ne,p.value,l.span,l.offset,l.width);Object.assign(K,F)}}}return K}),C=(0,t.computed)(()=>{const K=u.layout.value.type;return K==="grid"||K==="flow"?{[`${N}--${K}`]:!0,[`${N}--${K}-justify-${l.justify}`]:!0,[`${N}--${K}-align-${l.align}`]:!0,[`${N}--gutter`]:!0}:{[`${N}--${K}`]:!0,[`${N}--gutter`]:!0}}),b=(0,t.computed)(()=>{if(u.layout.value.type==="grid"){let K="";if(l.columnWidth)K=`repeat(auto-fill, ${l.columnWidth})`;else{const ne=Vu(x.value,u.layout.value.column,u.layout.value.gutter);K=`repeat(${u.layout.value.column}, ${ne})`}return{"column-gap":`${u.layout.value.gutter}px`,"grid-template-columns":K}}}),m=(0,t.toRef)(l,"gutter"),f=(0,t.toRef)(l,"column"),k=(0,t.computed)(()=>s||c.value?!0:ye(l.isWrap)),A=[],h=K=>{A.push(K)},g=()=>{let K=A.length;A.splice(0,K)},x=(0,t.ref)(-1),B=K=>{const ne=Un(K).width;ne>0&&ne!==x.value&&(x.value=ne)};Nl(i,x.value,f.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([x,f,m],([K,ne,F])=>{u.order.index=0,Nl(i,K,ne,F,!1,l.minItemWidth,l.maxItemWidth,l.type)});const T=(0,t.computed)(()=>q.value?l.expandText??"":l.collapseText??""),w=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),I=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!q.value,"is-collapse":q.value})),L=(0,t.ref)(),V=(0,t.ref)(),M=(0,t.computed)(()=>O.value||ue(l.height)||""),q=(0,t.ref)(!1),O=(0,t.ref)(""),P=(0,t.ref)(!1);let j=-1;const D=(K,ne=!0)=>{if(Te(K))return;const F=L.value;if(F&&q.value!==K){if(j=j<=0?Tu(F):j,P.value=!0,ne)if(F.style["will-change"]="height",F.ontransitionend=function(){F.ontransitionend=null,this.style["will-change"]="auto",K||(O.value="",P.value=!1)},K){let G=0;l.collapseHeight?G=l.collapseHeight:V.value&&V.value.classList.contains(`${e}__header`)&&(G=V.value.offsetHeight),O.value=`${j}px`,(0,t.nextTick)(()=>{O.value=`${G}px`})}else O.value=`${j}px`;else if(K){let G=0;l.collapseHeight?G=l.collapseHeight:V.value&&V.value.classList.contains(`${e}__header`)&&(G=V.value.offsetHeight),O.value=`${G}px`}else P.value=!1,O.value=`${j}px`;q.value=K,r.emit("update:collapse",K)}};(0,t.watch)(()=>l.collapse,K=>{D(K)});const ee=K=>{r.emit("header-click",K),l.collapseOnClickHeader===!0&&oe()},te=()=>{l.collapseOnClickHeader!==!0&&oe()},oe=K=>{K=K??!q.value,D(K)};a({toggleCollapse:oe,doLayout:()=>{A[0]&&(B(A[0]),Nl(i,x.value,f.value,m.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let Z=null,X=!0;const Q=K=>{if(l.rules){const ne=(0,t.toRaw)(l.rules);y(ne)}if(l.pureDataRules){const ne=(0,t.toRaw)(l.pureDataRules);y(ne,!0)}if(lt&&(K&&!Te(l.collapse)&&D(ye(l.collapse),!1),l.autoLayout&&Array.isArray(A)&&A.length>0)){const ne=A[0];if(B(ne),window.ResizeObserver){const F=Me(()=>B(ne),120);Z=new window.ResizeObserver(F),Z.observe(ne)}}},R=()=>{Z?.disconnect(),Z=null},Y=!c.value||d?.acquire();Y&&(v.value=c.value?!0:null),(0,t.onMounted)(()=>{if(Y&&(Q(X),X=!1),c.value&&d){let K=null,ne=d.initialHeight;d.observe(L.value,F=>{if(F!==v.value)if(F)v.value=!0,q.value||(O.value=""),K=setTimeout(()=>{K=null,v.value!==!1&&(Q(X),X=!1)},100);else{if(K!==null&&clearTimeout(K),v.value=!1,!q.value)if(X)O.value=d.initialHeight;else{let G=Kl(L.value);G<=0?O.value=ne:(O.value=`${G}px`,ne=O.value)}X||R()}})}}),(0,t.onUnmounted)(()=>{Z?.disconnect(),d&&d.unobserve(L.value)});const U=(K="right")=>{const ne=[];if(T.value){const E=(0,t.h)("span",{class:w.value},[T.value]);ne.push(E)}const F={class:I.value},G=(0,t.h)(l.collapseIcon??o,F);return ne.push(G),ne.length>0?(0,t.h)("div",{class:{[`${N}__header-collapse`]:!0,[`is-${K}`]:!0},onClick:te},ne):null},_=(K,ne,F,G)=>{const E={...C.value};if(ne===0&&(E[`${N}__first`]=!0),F>=G-1&&(E[`${N}__last`]=!0),k.value===!1){const $=r.attrs.class;$&&(E[`${$}`]=!0)}return(0,t.h)("div",{ref:h,key:`${ne}`,class:E,style:b.value},K)};return()=>{const K=l.prop??l.name;if(c.value&&v.value!==!0)return(0,t.h)(l.tag||"div",{ref:L,prop:K,class:{[`${N}`]:!0,"is-collapse":P.value},style:S.value},[]);u.order.index=0;const ne=[];let F=0;if(r.slots.header){const z=(0,t.h)("div",{key:`${F++}`,ref:V,class:{[`${N}__header`]:!0,[`${N}__first`]:!0},onClick:ee},[r.slots.header()]);ne.push(z)}else{const z=[],W=l.collapsePosition==="left";if(W&&l.showCollapse){const J=U("left");J&&z.push(J)}if(l.title||r.slots.title){if(l.showMark){const J={class:{[`${N}__header-mark`]:!0}};l.markColor&&(J.style={background:l.markColor});const ae=(0,t.h)("div",J);z.push(ae)}if(r.slots.title){const J=(0,t.h)("div",{class:{[`${N}__header-title`]:!0}},[r.slots.title()]);z.push(J)}else if(l.title){const J=(0,t.h)("div",{class:{[`${N}__header-title`]:!0}},[l.title]);z.push(J)}}if(r.slots.toolbar&&z.push(r.slots.toolbar()),!W&&l.showCollapse){const J=U("right");J&&z.push(J)}if(z.length>0){const J=(0,t.h)("div",{key:`${F++}`,ref:V,class:{[`${N}__header`]:!0,[`${N}__first`]:!0},onClick:ee},z);ne.push(J)}}g();const{getChildren:G}=rn(r.slots.default),E=G(),$=u.layout.value.type;if($==="grid"){const z=_(E,F++,0,E.length);ne.push(z)}else if($==="flow"){const z=_(E,F++,0,E.length);ne.push(z)}else for(let z=0;z<E.length;z++){const W=E[z],J=_([W],F++,z,E.length);ne.push(J)}return k.value?(0,t.h)(l.tag||"div",{ref:L,prop:K,class:{[`${N}`]:!0,"is-collapse":P.value},style:S.value},[ne]):ne}}}}var{componentName:Du,create:Iu,scope:qu}=le("group"),Pu=Iu(Eu(Du,qu,re.RectUp)),fo=Pu;function Mu(e){return e===window}var Ru=/matrix\((.+)\)/,mo=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(Mu(n))return{x:0,y:0};let o=0,l=0,r=n;for(;r!==null;)o+=r.offsetLeft,l+=r.offsetTop,r=r.offsetParent;let i=0,a=0,u=0,s=0;for(r=n;r!==document;){a+=r.scrollTop,i+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const v=Ru.exec(d);if(v){let c=v[1].split(/\s*,\s*/);c.length==6&&(u+=Number(c[4]),s+=Number(c[5]))}}r=r.parentNode}return o-=i,l-=a,o+=u,l+=s,{x:o,y:l}},zu=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{}})}},Lu=class{monitorRegister=new WeakMap;watch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new zu,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(n),o=o.parentNode}}unwatch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(n),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}},jt=new Lu,Bi={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:Fu,create:Ou}=le("price"),Ku=Ou({props:{...Bi},setup(e){const n=(0,t.computed)(()=>({[Fu]:!0})),o=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>we(e.price)==0?"":Pn(e.price,e.decimalLength,!0,me(e.digits),e.separator));return{classes:n,showSymbol:o,intText:(0,t.computed)(()=>{let r=l.value;if(r.length==0)return"";let i=r.indexOf(".");return r.substring(0,i)}),decimalText:(0,t.computed)(()=>{let r=l.value;if(r.length==0)return"";let i=r.indexOf(".");return r.substring(i+1)})}}}),ie=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o},Uu=["innerHTML"],_u=["innerHTML"];function Hu(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Uu)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--${e.size}`)},(0,t.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,t.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,_u)):(0,t.createCommentVNode)("",!0)],2)}var Gn=ie(Ku,[["render",Hu]]),ju={...Bi,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},referenceRect:{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]}},{componentName:Al,create:Wu}=le("hint-text"),Yu=Wu({components:{Price:Gn},props:ju,emits:["update:visible"],setup(e,n){const o=(0,t.ref)({top:null,right:null,bottom:null,left:null}),l=(0,t.ref)({x:0,y:0}),r=(0,t.ref)(0),i=(0,t.ref)(0),a=(0,t.ref)(e.placement),u=(0,t.ref)(!1),s=(0,t.ref)(null),d=(w,I,L,V,M,q)=>{const O=document.documentElement.clientWidth||document.body.clientWidth,P=document.documentElement.clientHeight||document.body.clientHeight,j=w.split("-");let D=[];j[0]==="top"?D=["top","bottom","right","left"]:j[0]==="bottom"?D=["bottom","top","right","left"]:j[0]==="left"?D=["left","top","bottom","right"]:j[0]==="right"&&(D=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},te=[];for(let oe=0;oe<D.length;oe++){const H=D[oe];if(te[0]=H,j[1]&&(te[1]=j[1]),H==="top"){const Z=I.y-q-e.arrowSize-e.offset;if(Z>=0){ee.top=Z;let X=0;j[1]==="start"?X=I.x:j[1]==="end"?X=I.x+L-M:X=I.x+L/2-M/2;const Q=O-X-M;Q<0?(X+=Q,c.value=-Q):c.value=0,ee.left=X<0?0:X;break}}else if(H==="bottom"){const Z=I.y+V+e.arrowSize+e.offset;if(Z+q<=P){ee.top=Z;let X=0;j[1]==="start"?X=I.x:j[1]==="end"?X=I.x+L-M:X=I.x+L/2-M/2;const Q=O-X-M;Q<0?(X+=Q,c.value=-Q):c.value=0,ee.left=X<0?0:X;break}}else if(H==="left"){const Z=I.x-M-e.arrowSize-e.offset;if(Z>=0){ee.left=Z;let X=0;j[1]==="start"?X=I.y:j[1]==="end"?X=I.y+V-q:X=I.y+V/2-q/2,ee.top=X<0?0:X;break}}else if(H==="right"){const Z=I.x+L+e.arrowSize+e.offset;if(Z+M<=O){ee.left=Z;let X=0;j[1]==="start"?X=I.y:j[1]==="end"?X=I.y+V-q:X=I.y+V/2-q/2,ee.top=X<0?0:X;break}}}return{bestPlacement:te.join("-"),bestInsetRect:ee}},v=(w,I,L=10)=>{if(!lt||I===!1||!w)return;if(e.reference)l.value=mo(e.reference),r.value=e.reference.offsetWidth,i.value=e.reference.offsetHeight;else if(e.referenceRect){const P=e.referenceRect.left??0,j=e.referenceRect.right??0,D=e.referenceRect.top??0,ee=e.referenceRect.bottom??0;l.value={x:P,y:D},r.value=j-P,i.value=ee-D}const V=s.value?.offsetHeight??0,M=s.value?.offsetWidth??0,{bestPlacement:q,bestInsetRect:O}=d(e.placement,l.value,r.value,i.value,M,V);a.value=q,o.value=O,u.value=!0},c=(0,t.ref)(0),p=Me(()=>{v(e.message,e.visible)},10),y=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,w=>{y.value=w});const N=(0,t.computed)(()=>y.value&&S.value),S=(0,t.ref)(!0),C=Me(w=>{const I=w[0];I&&(S.value=I.isIntersecting)},10),b=new IntersectionObserver(C);(0,t.watch)([()=>e.message,()=>e.visible],([w,I])=>{setTimeout(()=>{v(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{v(e.message,e.visible)},0),e.reference&&(jt.watch(e.reference,p),b.observe(e.reference))}),(0,t.onBeforeUnmount)(()=>{e.reference&&(jt.unwatch(e.reference,p),b.unobserve(e.reference),b.disconnect())}),e.referenceRect&&(0,t.watch)(()=>e.referenceRect,()=>{v(e.message,e.visible)});const m=(0,t.computed)(()=>{const w={[Al]:!0};return a.value.startsWith("top")?w["is-top"]=!0:a.value.startsWith("right")?w["is-right"]=!0:a.value.startsWith("bottom")?w["is-bottom"]=!0:a.value.startsWith("right")&&(w["is-right"]=!0),e.size==="small"?w["is-small"]=!0:e.size==="large"&&(w["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(w[`${e.customClass}`]=!0),w}),f=(0,t.computed)(()=>{const w={};return o.value.top!==null&&(w.top=`${o.value.top}px`),o.value.right!==null&&(w.right=`${o.value.right}px`),o.value.bottom!==null&&(w.bottom=`${o.value.bottom}px`),o.value.left!==null&&(w.left=`${o.value.left}px`),e.autoFit&&(w["min-width"]=`${r.value}px`),w["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,u.value&&(w.opacity="1"),e.transition||(w.transition="none"),e.zIndex&&(w["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(w,e.customStyle),w}),k=(0,t.computed)(()=>{const w=[`${Al}__content`];return e.customTextClass&&w.push(e.customTextClass),w}),A=(0,t.computed)(()=>{const w={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(w,e.customTextStyle),w}),h=(0,t.computed)(()=>({[`${Al}__arrow`]:!0})),g=(0,t.computed)(()=>{const w={};return e.showArrow?(w.width=`${e.arrowSize}px`,w.height=`${e.arrowSize}px`,a.value==="top"?(w.left="50%",w.bottom=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):a.value==="top-start"?(w.left=`${e.arrowOffset+c.value}px`,w.bottom=`-${e.arrowSize}px`):a.value==="top-end"?(w.right=`${e.arrowOffset-c.value}px`,w.bottom=`-${e.arrowSize}px`):a.value==="right"?(w.left=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):a.value==="right-start"?(w.left=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):a.value==="right-end"?(w.left=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`):a.value==="bottom"?(w.left="50%",w.top=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):a.value==="bottom-start"?(w.left=`${e.arrowOffset+c.value}px`,w.top=`-${e.arrowSize}px`):a.value==="bottom-end"?(w.right=`${e.arrowOffset-c.value}px`,w.top=`-${e.arrowSize}px`):a.value==="left"?(w.right=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):a.value==="left-start"?(w.right=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):a.value==="left-end"&&(w.right=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`),w):{display:"none"}}),x=(0,t.computed)(()=>N.value&&e.closeOnClick),B=(0,t.computed)(()=>{const w={};return e.zIndex&&(w["z-index"]=`${e.zIndex}`),w});return{show:N,tipRef:s,classes:m,styles:f,textClasses:k,textStyles:A,arrowClasses:h,arrowStyles:g,overlayShow:x,overlayStyle:B,onClickOverlay:w=>{w.target===w.currentTarget&&(y.value=!1,n.emit("update:visible",!1))}}}}),Xu=["innerHTML"];function Qu(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Price");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.overlayShow?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,t.normalizeStyle)(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"tipRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.textClasses),style:(0,t.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,Xu))],6),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.arrowClasses),style:(0,t.normalizeStyle)(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}var Ti=ie(Yu,[["render",Qu]]),Zn=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},Ul={},Gu=new Zn,ut=new Map,Wt=e=>{if(e){const n=document.getElementById(e);ut.delete(e),n&&((0,t.render)(null,n),n.parentNode?.removeChild(n))}else{for(const n of ut.keys()){const o=document.getElementById(n);o&&((0,t.render)(null,o),o.parentNode?.removeChild(o))}ut.clear()}},lr=e=>{e.unmount=Wt;const n=document.getElementById(e.id);if(n){(0,t.render)(null,n);const o=ut.get(e.id);o?e={...Ul,...o,...e}:e={...Ul,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(Ti,e),n)}return e.id},or=e=>{e.unmount=Wt;let n=e.id??`hinttext_${Gu.get()}`;e={...Ul,...e},e.id=n,ut.set(n,e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(Ti,e),o),document.body.appendChild(o),n},ar=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),Dt={show(e,n,o={},l=!0){if(!ar(n))return;const r=o.id;return r&&ut.has(r)?lr({...o,message:n,reference:e}):(l&&Wt(),or({...o,message:n,reference:e}))},showInRect(e,n,o,l){if(!ar(n))return;const r=o.id;return r&&ut.has(r)?lr({...o,message:n,referenceRect:e}):(l&&Wt(),or({...o,message:n,referenceRect:e}))},hide(e){Wt(e)},install(e){e.config.globalProperties.$hintText=Dt}};function Zu(e,n,o,l=!1){return{inheritAttrs:!0,props:{...ge,...Se},emits:["appear","disappear"],setup(r,i){const a=r.prop??i.attrs.name,u=(0,t.ref)(),{exposeApi:s}=Ve({componentName:e,validate:!1,get props(){return r},context:i,get templateRefProxy(){return u.value}},a),d=ot(),v=Hn();jn(!1);const c=(0,t.computed)(()=>v&&d?Wn(d,!1).value:null),p=e,y=(0,t.ref)(null),N=(0,t.computed)(()=>{const $={[p]:!0,[`${p}__gutter`]:c.value&&c.value.type!=="flow",[`${p}__stretch`]:r.span==="stretch",[`${p}__input--border`]:ye(r.hasBorder)};if($[r.errorMarkClass]=!!P.value,$[r.warnMarkClass]=!!q.value,$[r.infoMarkClass]=!!V.value,typeof y.value=="function"){const z=y.value(a);$[z]=!0}else if(typeof y.value=="string"){const z=y.value;$[z]=!0}return $}),S=(0,t.ref)(null),C=(0,t.computed)(()=>{const $={};if(r.width)r.width!=="auto"&&($.width=ue(r.width));else{const z=v&&d?Yn(d,!1):null;if(c.value&&z){if(c.value.type==="grid"){const W=Qn(z,c.value,r.span,r.offset);Object.assign($,W)}else if(c.value.type==="flow"){const W=Xn(z,c.value,r.span,r.offset,r.width);Object.assign($,W)}}}if(typeof S.value=="function"){const z=S.value(a);z&&Object.assign($,z)}else if(S.value&&typeof S.value=="object"){const z=S.value;Object.assign($,z)}return $}),b=(0,t.ref)(null),m=(0,t.computed)({get:()=>b.value??ye(r.isRequired),set:$=>{b.value=$}}),f=()=>typeof r.label=="string"&&r.label.length>0||typeof i.slots.label=="function",k=Ae((0,t.toRef)(r,"labelPosition"),"labelPosition",wt.Near),A=(0,t.computed)(()=>k&&k.value==="top"?"top":k&&k.value==="right"?"right":"left"),h=(0,t.computed)(()=>({[`${p}__main`]:!0,[`${p}__main--${A.value}`]:!0})),g=(0,t.computed)(()=>({label:!0,[`label--${A.value}`]:!0})),x=Ae((0,t.toRef)(r,"labelWidth"),"labelWidth",wt.Near),B=(0,t.computed)(()=>x&&x.value?{width:ue(x.value)}:{}),T=(0,t.computed)(()=>({"label--string":!0,"label--required":m.value})),w=(0,t.computed)(()=>({content:!0,[r.contentClass]:!0})),I=(0,t.computed)(()=>({...r.contentStyle})),L=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});s({setRequired($){m.value=$},setErrorTip($){L.errorTip=$},setErrorIcon($){L.errorIcon=$},setWarnTip($){L.warnTip=$},setWarnIcon($){L.warnIcon=$},setInfoTip($){L.infoTip=$},setInfoIcon($){L.infoIcon=$},setCustomClassName($){y.value=$},setCustomStyle($){S.value=$}});const V=(0,t.computed)(()=>r.infoTip||L.infoTip),M=(0,t.computed)(()=>r.infoIcon||L.infoIcon),q=(0,t.computed)(()=>r.warnTip||L.warnTip),O=(0,t.computed)(()=>r.warnIcon||L.warnIcon),P=(0,t.computed)(()=>r.errorTip||L.errorTip),j=(0,t.computed)(()=>r.errorIcon||L.errorIcon),D=(0,t.computed)(()=>P.value?"error":q.value?"warn":V.value?"info":""),ee=()=>D.value.length>0,te=(0,t.computed)(()=>D.value==="error"?P.value:D.value==="warn"?q.value:D.value==="info"?V.value:""),oe=(0,t.computed)(()=>D.value==="error"?j.value:D.value==="warn"?O.value:D.value==="info"?M.value:null),H=(0,t.computed)(()=>{const $={[`${p}__tip`]:!0,[`${p}__tip--${D.value}`]:!0,[`${p}--animate`]:!0};return D.value==="error"&&r.errorClass?$[`${r.errorClass}`]=!0:D.value==="warn"&&r.warnClass?$[`${r.warnClass}`]=!0:D.value==="info"&&r.infoClass&&($[`${r.infoClass}`]=!0),$}),Z=(0,t.computed)(()=>{const $={};return k&&k.value==="top"||!f()?$["padding-left"]="0px":x&&x.value&&($["padding-left"]=ue(x.value)),$}),X=(0,t.ref)();let Q=null;(0,t.watch)([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([$,z,W,J])=>{X.value&&($&&!pe(z)?Q?o.show(X.value,z,{...J,id:Q,type:W},!0):Q=o.show(X.value,z,{...J,type:W},!0):Q&&o.hide(Q))});let R=null;const Y=()=>{R||!X.value||(R=new IntersectionObserver($=>{let z=!1;for(let W of $)if(W.intersectionRatio>0){z=!0,z&&i.emit("appear",W);break}z||i.emit("disappear")}),R.observe(X.value))},U=()=>{!R||!X.value||(R.unobserve(X.value),R=null)};(0,t.watch)(()=>ye(r.appearListen),$=>{$?Y():U()}),(0,t.onMounted)(()=>{ye(r.appearListen)&&Y()}),(0,t.onUnmounted)(()=>{U(),Q&&o.hide(Q)});const _=()=>{if(!f())return null;const $=[],z=i.slots?.label?.()??r.label,W=(0,t.h)("div",{class:T.value},[z]);if($.push(W),i.slots.fixedPreTip){const J=i.slots.fixedPreTip();$.push(J)}return(0,t.h)("div",{class:g.value,style:B.value},$)},K=()=>{const $=[];if(i.slots.prepend){const z=i.slots.prepend();$.push(z)}if(i.slots.default){const z=i.slots.default();$.push(z)}if(i.slots.append){const z=i.slots.append();$.push(z)}if(i.slots.fixedTip){const z=(0,t.h)("div",{class:[`${p}__fixed-tip`]},[i.slots.fixedTip()]);$.push(z)}return(0,t.h)("div",{ref:X,class:w.value,style:I.value},$)},ne=()=>{const $=oe.value;return $?typeof $=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[$()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)($)]):null},F=()=>{const $=te.value;return $?typeof $=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[$()]):(0,t.h)("div",{class:"fox-item__tip--text"},[$]):null},G=()=>{if(!ee())return null;const $=[],z=ne();z&&$.push(z);const W=F();return W&&$.push(W),(0,t.h)("div",{class:H.value,style:Z.value},$)},E=()=>i.slots?.hide?.()??null;return()=>{const $=[],z=[],W=_();W&&z.push(W);const J=K();J&&z.push(J);const ae=(0,t.h)("div",{class:h.value},z);$.push(ae);const de=G();de&&$.push(de);const fe=E();return fe&&$.push(fe),(0,t.h)("div",{class:N.value,style:C.value,prop:r.prop,ref:u},$)}}}}var{componentName:Ju,create:ec,scope:tc}=le("item"),nc=ec(Zu(Ju,tc,Dt,!1)),sn=nc,Vi={span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1},wrap:{type:[String],required:!1,default:"nowrap"}};function lc(e,n){return{props:Vi,setup(o,l){const r=e,i=(0,t.computed)(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),a=ot(),u=Hn();jn(!1);const s=(0,t.computed)(()=>{const d={};if(o.width)o.width!=="auto"&&(d.width=ue(o.width));else if(u&&a){const v=Wn(a,!1),c=Yn(a,!1);if(v.value&&c){if(v.value.type==="grid"){const p=Qn(c,v.value,o.span,o.offset);Object.assign(d,p)}else if(v.value.type==="flow"){const p=Xn(c,v.value,o.span,o.offset,o.width);Object.assign(d,p)}}}return o.gutter&&(d["column-gap"]=ue(o.gutter)),o.wrap&&(d["flex-wrap"]=o.wrap),d});return()=>{const d=[];if(l.slots.default){const{getChildren:v}=rn(l.slots.default),c=v();if(o.divide)for(let p=0;p<c.length;p++){if(p>0){const y=(0,t.h)("div",{class:{[`${r}__divide`]:!0}});d.push(y)}d.push(c[p])}else Reflect.apply([].push,d,c)}return(0,t.h)("div",{class:i.value,style:s.value},d)}}}}var{componentName:oc,create:ac,scope:rc}=le("row-item"),ic=ac(lc(oc,rc)),Jn=ic;function sc(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(r)},500)}var uc={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 cc(e,n,o,l=!1){return{props:uc,emits:["click"],setup(r,i){const a=(0,t.ref)(null),u=(0,t.computed)(()=>{const f={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(f[`${e}--${r.type??"default"}`]=!0),r.size&&(f[`${e}--${r.size}`]=!0),f}),s=(0,t.computed)(()=>{const f={},k=r.textColor??r.color;return k&&(f.color=k),f}),d=(f,k)=>{let A=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const h=r.highlightFilter;f.indexOf(h)!==-1&&(k.innerHTML=f.replace(new RegExp(h,"g"),`<span>${h}</span>`),k.class["is-highlight"]=!0,A=(0,t.h)(r.tag,k))}else if(typeof r.highlightFilter=="function"){const h=r.highlightFilter(f);h&&(k.innerHTML=h,k.class["is-highlight"]=!0,A=(0,t.h)(r.tag,k))}return A},v=f=>{i.emit("click",f)};let c="";const p=()=>{const f=a.value;if(!f)return;const k=f.clientWidth;sc(f,A=>{const h=f.innerHTML??"";pe(h)||A<k||(c?o?.show(f,h,{type:"text",id:c,showArrow:r.showArrow},!0):c=o?.show(f,h,{type:"text",showArrow:r.showArrow},!0)??"")})},y=()=>{c&&o?.hide(c)};let N=null;const S=f=>{N||(N=setTimeout(()=>{p(),N=null},r.showAfter??0))},C=f=>{N&&(clearTimeout(N),N=null),setTimeout(()=>{y()},r.hideAfter??0)},b=()=>{const f=a.value;f&&(f.addEventListener("mouseover",S),f.addEventListener("mouseleave",C))},m=()=>{const f=a.value;f&&(f.removeEventListener("mouseover",S),f.removeEventListener("mouseleave",C))};return(0,t.onMounted)(()=>{!ye(r.showOverflowTooltip)||!o||b()}),(0,t.onBeforeUnmount)(()=>{!ye(r.showOverflowTooltip)||!o||m()}),()=>{const f={class:u.value,style:s.value,ref:a,onClick:v};let k=null;if(ye(r.numberFormat)&&typeof i.slots.default=="function"){const h=i.slots.default();if(Array.isArray(h)&&h.length===1){const g=h[0].type.toString();if(g==="Symbol(Text)"||g==="Symbol(v-txt)"){const x=me(r.digits),B=me(r.decimalLength),T=ye(r.autoPadding);let w=`${h[0].children}`,I=w.split("").reverse().join("");I=Pn(I,B,T,x,r.separator),w=I.split("").reverse().join(""),r.highlightFilter!==void 0&&(k=d(w,f)),k||(f.innerHTML=w,k=(0,t.h)(r.tag,f))}}}else{if(r.highlightFilter!==void 0&&typeof i.slots.default=="function"){const h=i.slots.default();if(Array.isArray(h)&&h.length===1){const g=h[0].type.toString();if(g==="Symbol(Text)"||g==="Symbol(v-txt)"){const x=`${h[0].children}`;k=d(x,f),k||(f.innerHTML=x,k=(0,t.h)(r.tag,f))}}}k||(k=(0,t.h)(r.tag,f,{default:i.slots.default}))}if(!r.mark&&!i.slots.mark)return k;const A=[];if(i.slots.mark){const h={[`${e}__mark-wrap`]:!0};r.type&&(h[`${e}__mark-wrap--${r.type}`]=!0);const g={},x=r.color;x&&(g.color=x);const B=(0,t.h)("view",{class:h,style:g,onClick:v},{default:i.slots.mark});A.push(B)}else{const h={[`${e}__mark`]:!0};r.type&&(h[`${e}__mark--${r.type??"default"}`]=!0);const g={},x=r.color;x&&(g["background-color"]=x);const B=(0,t.h)("view",{class:h,style:g,onClick:v});A.push(B)}if(r.divide){const h=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});A.push(h)}return A.push(k),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}},A)}}}}var{componentName:dc,create:fc,scope:mc}=le("text"),pc=fc(cc(dc,mc,Dt,!1)),Bt=pc,vc={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 hc(e,n,o=!1){return{props:{...vc},emits:["update:visible"],setup(l,{emit:r,slots:i,expose:a}){const u=(0,t.ref)({top:null,right:null,bottom:null,left:null}),s=(0,t.ref)(0),d=(0,t.ref)(0),v=(0,t.ref)(0),c=(0,t.ref)(0),p=(0,t.ref)(l.placement),y=(0,t.ref)(!1),N=(0,t.ref)(!1),S=(0,t.ref)(null),C=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,b=(D,ee,te,oe,H,Z,X,Q=!0)=>{const R=document.documentElement.clientWidth||document.body.clientWidth,Y=document.documentElement.clientHeight||document.body.clientHeight,U=D.split("-");let _=[];Q?U[0]==="top"?_=["top","bottom","right","left"]:U[0]==="bottom"?_=["bottom","top","right","left"]:U[0]==="left"?_=["left","top","bottom","right"]:U[0]==="right"&&(_=["right","top","bottom","left"]):_=[D[0]];const K={top:null,right:null,bottom:null,left:null},ne=[];for(let F=0;F<_.length;F++){const G=_[F];if(ne[0]=G,U[1]&&(ne[1]=U[1]),G==="top"){const E=te-X-l.arrowSize/2-l.offset;if(E>=0){K.top=E;let $=0;U[1]==="start"?$=ee:U[1]==="end"?$=ee+oe-Z:$=ee+oe/2-Z/2;const z=R-$-Z;z<0?($+=z,f.value=-z):f.value=0,K.left=$<0?0:$;break}}else if(G==="bottom"){const E=te+H+l.arrowSize/2+l.offset;if(E+X<=Y){K.top=E;let $=0;U[1]==="start"?$=ee:U[1]==="end"?$=ee+oe-Z:$=ee+oe/2-Z/2;const z=R-$-Z;z<0?($+=z,f.value=-z):f.value=0,K.left=$<0?0:$;break}}else if(G==="left"){const E=ee-Z-l.arrowSize/2-l.offset;if(E>=0){K.left=E;let $=0;U[1]==="start"?$=te:U[1]==="end"?$=te+H-X:$=te+H/2-X/2,K.top=$<0?0:$;break}}else if(G==="right"){const E=ee+oe+l.arrowSize/2+l.offset;if(E+Z<=R){K.left=E;let $=0;U[1]==="start"?$=te:U[1]==="end"?$=te+H-X:$=te+H/2-X/2,K.top=$<0?0:$;break}}}return{bestPlacement:ne.join("-"),bestInsetRect:K}},m=()=>{const D=l.visible,ee=l.autoFit;if(!lt||D===!1)return;if(l.reference){const X=C(),Q=mo(X);s.value=Q.x,d.value=Q.y,v.value=X.offsetWidth,c.value=X.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,d.value=l.referenceInset.top,v.value=l.referenceInset.right-l.referenceInset.left,c.value=l.referenceInset.bottom-l.referenceInset.top);const te=S.value.offsetWidth,oe=S.value.offsetHeight,{bestPlacement:H,bestInsetRect:Z}=b(l.placement,s.value,d.value,v.value,c.value,te,oe,ee);p.value=H,u.value=Z},f=(0,t.ref)(0),k=Me(()=>{m()},10),A=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([D])=>{A.value=D,D?(y.value=D,setTimeout(()=>{m(),N.value=!0},0)):N.value=!1});const h=(0,t.computed)(()=>A.value&&g.value),g=(0,t.ref)(!0),x=Me(D=>{const ee=D[0];ee&&(g.value=ee.isIntersecting)},10),B=new IntersectionObserver(x);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([D,ee],[te,oe])=>{!D&&!ee||(setTimeout(()=>{m()},0),l.autoFit&&(te&&(jt.unwatch(te,k),B.unobserve(te)),D&&(jt.watch(D,k),B.observe(D))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(jt.unwatch(l.reference,k),B.unobserve(l.reference),B.disconnect())});const T=(0,t.computed)(()=>{const D={[e]:!0};return p.value.startsWith("top")?D["is-top"]=!0:p.value.startsWith("right")?D["is-right"]=!0:p.value.startsWith("bottom")?D["is-bottom"]=!0:p.value.startsWith("left")&&(D["is-left"]=!0),D[`is-${l.effect}`]=!0,!N.value&&h.value&&(D["is-opacity"]=!0),N.value&&h.value&&(D["is-show"]=!0),h.value||(D["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(D[`${l.customClass}`]=!0),D}),w=(0,t.computed)(()=>{const D={};return u.value.top!==null&&(D.top=`${u.value.top}px`),u.value.right!==null&&(D.right=`${u.value.right}px`),u.value.bottom!==null&&(D.bottom=`${u.value.bottom}px`),u.value.left!==null&&(D.left=`${u.value.left}px`),l.width&&(D.width=l.width),l.zIndex&&(D["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(D,l.customStyle),D}),I=()=>{A.value=!1,r("update:visible",!1)},L=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:I}):null,V=()=>{let D=null;return i.title?D=(0,t.h)("div",{class:`${e}__title`},{default:i.title}):l.title&&(D=(0,t.h)("div",{class:`${e}__title`},[l.title])),D},M=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),q=(0,t.computed)(()=>{const D={};return l.showArrow?(D.width=`${l.arrowSize}px`,D.height=`${l.arrowSize}px`,p.value==="top"?(D.left="50%",D.bottom="0",D.transform="translate(-50%, 50%)"):p.value==="top-start"?(D.left=`${l.arrowOffset+f.value}px`,D.bottom="0",D.transform="translate(-50%, 50%)"):p.value==="top-end"?(D.right=`${l.arrowOffset-f.value}px`,D.bottom="0",D.transform="translate(-50%, 50%)"):p.value==="right"?(D.left="0",D.top="50%",D.transform="translate(-50%, -50%)"):p.value==="right-start"?(D.left="0",D.top=`${l.arrowOffset}px`,D.transform="translate(-50%, 50%)"):p.value==="right-end"?(D.left="0",D.bottom=`-${l.arrowOffset}px`,D.transform="translate(-50%, 50%)"):p.value==="bottom"?(D.left="50%",D.top="0",D.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(D.left=`${l.arrowOffset+f.value}px`,D.top="0",D.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(D.right=`${l.arrowOffset-f.value}px`,D.top="0",D.transform="translate(-50%, -50%)"):p.value==="left"?(D.right="0",D.top="50%",D.transform="translate(50%, -50%)"):p.value==="left-start"?(D.right="0",D.top=`${l.arrowOffset}px`,D.transform="translate(50%, -50%)"):p.value==="left-end"&&(D.right="0",D.bottom=`-${l.arrowOffset}px`,D.transform="translate(50%, -50%)"),D):{display:"none"}}),O=()=>(0,t.h)("div",{class:M.value,style:q.value}),P=()=>{A.value===!1&&(y.value=!1)},j=D=>{if(!S.value||A.value===!1)return;const{relatedTarget:ee}=D;S.value.contains(ee)||(A.value=!1,r("update:visible",!1))};return a({doLayout:m}),()=>{if(!y.value)return null;const D=[],ee=L();ee&&D.push(ee);const te=[],oe=V();if(oe&&te.push(oe),i.default){const Q=i.default();te.push(Q)}const H=O();H&&te.push(H);const Z={ref:S,class:T.value,style:w.value,onAnimationend:P};l.leaveHide&&(Z.onMouseleave=j);const X=(0,t.h)("div",Z,{default:()=>te});return D.push(X),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>D})}}}}var{componentName:gc,create:yc,scope:bc}=le("popover-dialog"),Sc=yc(hc(gc,bc,!1)),el=Sc,rr={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},morePosition:{type:[String],required:!1,default:()=>"right"}};function kc(e,n,o){return{props:{...Vi,...rr},emits:["click"],setup(l,{slots:r}){const{toLocaleRefs:i}=(0,he.useFoxI18n)(n),a=i(l,["moreText"]),u=e,s=(0,t.computed)(()=>({[u]:!0}));function d(k){return k.props||{}}function v(k){return!!d(k).disabled}function c(k){return k.children??[]}const p=(0,t.ref)(),y=(0,t.computed)(()=>p.value?.$el??null),N=(0,t.ref)(!1),S=k=>{N.value=k},C=()=>{N.value=!N.value};function b(k,A){return()=>{A||(N.value=!1,d(k)?.onClick?.())}}function m(k,A){const h=c(k),g=v(k),x=b(k,g),B=[`${u}__dropdown-item`];return g&&B.push("is-disabled"),(0,t.h)("span",{class:B,onClick:x},h)}const f=k=>{const A=l.maxDisplayCount??k.length;if(A>=k.length)return k;const h=[],g=A;for(let I=0;I<g;I++)h.push(k[I]);const x=(r.moreIcon&&r.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(o),B=(0,t.h)(Bt,{ref:I=>p.value=I,class:`${u}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:C},{default:()=>a.moreText.value,mark:()=>x});l.morePosition==="left"?h.splice(0,0,B):h.push(B);const T=[];for(let I=g;I<k.length;I++){const L=m(k[I],I);T.push(L)}const w=(0,t.h)(el,{placement:l.dropdownPlacement,"onUpdate:visible":S,visible:N.value,reference:y.value,"custom-class":`${u}__popover`},{default:()=>T});return h.push(w),h};return()=>{const{getChildren:k}=rn(r?.default),A=k(),h=f(A);return(0,t.h)(Jn,{...Qe(l,rr),class:s.value},{default:()=>h})}}}}var{componentName:wc,create:Cc,scope:Nc}=le("buttons-item"),Ac=Cc(kc(wc,Nc,re.MoreFilled)),po=Ac,Bc={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function Tc(e,n){return{props:Bc,setup(o,l){const r=ot(),i=Hn();jn(!1);const a=(0,t.computed)(()=>i&&r?Wn(r,!1).value:null),u=e,s=(0,t.computed)(()=>({[u]:!0,[`${u}__gutter`]:a.value&&a.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),d=(0,t.computed)(()=>{const v={};if(o.width)o.width!=="auto"&&(v.width=ue(o.width));else{const c=i&&r?Yn(r,!1):null;if(a.value&&c){if(a.value.type==="grid"){const p=Qn(c,a.value,o.span,o.offset);Object.assign(v,p)}else if(a.value.type==="flow"){const p=Xn(c,a.value,o.span,o.offset,o.width);Object.assign(v,p)}}}return v});return()=>{const v={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?(0,t.h)("div",v,l.slots.default()):(0,t.h)("div",v)}}}}var{componentName:Vc,create:xc,scope:$c}=le("slot-item"),Ec=xc(Tc(Vc,$c)),vo=Ec;function Ie(e,n={}){return(0,t.h)(sn,e,n)}function Dc(e,n,o,l,r){let i=[];Array.isArray(e)?i=e:i=[e];const a=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=n;for(let d=0;s&&d<i.length;d++){let v=i[d],c=s.find(p=>p[l]===v);if(!c)break;a.push(c[o])}return a}if(Array.isArray(u))for(let s=0;s<n.length&&s<i.length;s++){let d=n[s],v=i[s];const c=d.find(p=>p[l]===v);if(!c)break;a.push(c[o])}else{let s=n;for(let d=0;s&&d<i.length;d++){let v=i[d],c=s.find(p=>p[l]===v);if(!c)break;a.push(c[o]),s=c[r]}}return a}var Ic=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=at(e,this.scope);return l===null?(console.error(`${e} component not found api function`),[]):(De(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function qc(){const e=mt();return new Ic(e)}function Pc(e){return e&&e.startsWith("fox-")}var Mc={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:"/"},unit:{type:[String],required:!1},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 Rc(e,n,o=!1){return{props:Mc,setup(l,{attrs:r,slots:i}){const a=qc(),u=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([d,v])=>{u.value=await a.load(l.sourceType,d,v)},{immediate:!0});const s=(0,t.computed)(()=>{let d="";if(!Array.isArray(u.value)||u.value.length===0)d=l.emptyText;else{let v=Dc(l.modelValue,u.value,l.textKey,l.valueKey,l.childrenKey);v.length==0?d=l.emptyText??"":v.length===1?l.optionType=="item"?d=`${l.modelValue}${l.separator}${v[0]}`:d=v[0]:d=v.join(l.separator)}return l.unit&&(d=`${d}${l.unit}`),d});return()=>{const d={...r};if(i.default)return i.default({text:s.value,value:l.modelValue});const v=l.tag??"span";return typeof v=="object"?(0,t.h)(v,d,{default:()=>s.value}):Pc(v)?(0,t.h)((0,t.resolveComponent)(v),d,[s.value]):(0,t.h)(v,d,[s.value])}}}}var{componentName:zc,create:Lc,scope:Fc}=le("mapping"),Oc=Lc(Rc(zc,Fc,!1)),tl=Oc;function ze(e,n){const o="fox-browse-item";let l=null;if(e.source)l=(0,t.h)(tl,{class:[`${o}__mapping`],source:e.source,modelValue:e.modelValue,separator:e.separator,emptyText:e.emptyText,unit:e.unit},{default:i=>(0,t.h)(Bt,{class:[`${o}__text`]},{default:()=>i.text})});else{const i=e.unit?`${e.modelValue??""}${e.unit}`:`${e.modelValue??""}`;l=(0,t.h)(Bt,{class:[`${o}__text`]},{default:()=>i})}const r={label:n.default,default:()=>l};return(0,t.h)(sn,{class:[o]},r)}var xi={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}},Kc={...ge,...Se,...xi};function Uc(e,n,o,l,r){return{props:Kc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:v,readonly:c,browse:p}=$e(i),{emitEvent:y,exposeApi:N}=Ve({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),{toLocaleRefs:S}=(0,he.useFoxI18n)(n),C=S(i,["placeholder"]),b=(0,t.ref)(!1),m=Re(i,"modelValue",null,y),f=e,k=(0,t.computed)(()=>({[f]:!0,disabled:d.value,readonly:c.value})),A=(0,t.computed)(()=>({[`${f}__content`]:!0})),h=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),g=(0,t.computed)(()=>{const te={};return h.value&&(te["text-align"]=h.value),te}),x=te=>{let oe=te.target.value;i.type==="digit"&&(oe=Ll(oe,!0)),i.type==="number"&&(oe=Ll(oe,!1)),i.maxLength&&oe.length>Number(i.maxLength)&&(oe=oe.slice(0,Number(i.maxLength))),m.value=oe,y("update:modelValue",oe,te),y("change",oe,te)};let B=Re(i,"hintText"),T=(0,t.ref)(!1);const w=te=>{let oe=te.target.value;b.value=!0,pe(B.value)||(T.value=!0),y("focus",oe,te)},I=te=>{setTimeout(()=>{T.value&&(T.value=!1),b.value=!1},0);let oe=te.target.value;i.maxLength&&oe.length>Number(i.maxLength)&&(oe=oe.slice(0,Number(i.maxLength))),y("blur",oe,te)},L=(0,t.computed)(()=>({[`${f}__append`]:!0,"is-disabled":d.value,"is-readonly":c.value})),V=(0,t.computed)(()=>{const te={};return a.slots.append&&!M.value&&!D.value&&(te.display="none"),te}),M=(0,t.computed)(()=>we(i.unit)>0),q=(0,t.computed)(()=>!D.value),O=(0,t.computed)(()=>({[`${f}__unit`]:!0,hidden:!q.value})),P=te=>{m.value="",y("update:modelValue","",te),y("change","",te),y("clear","")},j=(0,t.computed)(()=>ye(i.clearable)&&!d.value&&!c.value),D=(0,t.computed)(()=>{let te=we(m.value)>0;return ye(i.clearable)&&te&&b.value}),ee=(0,t.computed)(()=>({action:!0,hidden:!D.value}));return N({setDisabled:te=>{s.value=te},setReadonly:te=>{v.value=te}}),()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:m.value,unit:i.unit},a.slots);const te={class:A.value,style:g.value,type:i.type,maxlength:i.maxLength,placeholder:C.placeholder.value,disabled:d.value,readonly:c.value,value:m.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:x,onFocus:w,onBlur:I},oe=[],H=(0,t.h)("input",te);oe.push(H);const Z=[];if(j.value){const Y=(0,t.h)(r,{class:["action-icon"]}),U=(0,t.h)("view",{class:ee.value,onClick:P},{default:()=>[Y]});Z.push(U)}if(M.value){const Y=(0,t.h)("view",{class:O.value},[i.unit]);Z.push(Y)}const X=(0,t.h)("view",{class:L.value,style:V.value},{default:()=>Z});oe.push(X);const Q={default:()=>oe};Q.label=a.slots.default,Q.prepend=a.slots.prepend,Q.append=a.slots.append,Q.fixedPreTip=a.slots.fixedPreTip,Q.fixedTip=a.slots.fixedTip;const R={...Qe(i,xi),ref:u,class:k.value,hintText:B.value,hintVisible:T.value};return i.prop&&(R.prop=`${i.prop}_item`),o(R,Q)}}}}var{componentName:_c,create:Hc,scope:jc}=le("input-item"),Wc=Hc(Uc(_c,jc,Ie,ze,re.CircleClose)),ho=Wc;function ir(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let r=l;for(let i=o.length-1;i>=l;i--)if(o.charAt(i)!="0"){r=i;break}return r-l<n?r=l+n+1:r!=l&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function sr(e,n,o=20){return typeof n=="string"&&(n=me(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?ir(Or(`${e}`,`${n}`)):ir(Zl(`${e}`,Kr(`${n}`),20))}function Yc(e,n=-1,o=!1,l=3,r=","){return Pn(e,me(n),o,l,r)}function ur(e,n,o,l,r=!0){if(e==="")return"";if(e=Ur(e),n=me(n),n==1)return e;if(l)e=sr(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(me(o)+2,"0"):e=Zl(e,1,me(o)));else{let i=-1*n;e=sr(e,i)}return e}function cr(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ye(n.minInclude),r=Ml(e,n.min);(l&&r==-1||!l&&(r==0||r==-1))&&(o.message="请输入不小于 {0} 的数值".replace("{0}",n.min),o.minValid=!1)}if(n.max!=null){let l=ye(n.maxInclude),r=Ml(e,n.max);(l&&r==1||!l&&(r==0||r==1))&&(o.maxValid=!1)}return o}var $i={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]}},Xc={...ge,...Se,...$i};function Qc(e,n,o,l,r){return{props:Xc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:v,readonly:c,browse:p}=$e(i),{emitEvent:y,exposeApi:N}=Ve({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),S=(0,t.ref)(!1),C=Re(i,"modelValue",null,y),b=(0,t.ref)("");(0,t.watch)([()=>C.value,()=>i.rates,()=>i.precision],([Q,R,Y])=>{if(pe(Q)){b.value="";return}const U=ur(Q,R,Y,!1);b.value!==U&&(b.value=U)},{immediate:!0});const m=(0,t.computed)(()=>{let Q="";return S.value&&(Q=b.value),Q}),{t:f}=(0,he.useFoxI18n)(n),k=(0,t.computed)(()=>{let Q=i.placeholder??"";return!S.value&&!pe(b.value)?Q=Yc(b.value,i.decimalLength,i.autoPadding,i.digits,i.separator):Q=pe(Q)?f(["placeholder"]):Q,Q}),A=e,h=(0,t.computed)(()=>({[A]:!0,disabled:d.value,readonly:c.value})),g=(0,t.computed)(()=>({[`${A}__content`]:!0,[`${A}__placeholder`]:b.value.length>0})),x=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),B=(0,t.computed)(()=>{const Q={};return x.value&&(Q["text-align"]=x.value),Q}),T=(0,t.ref)(""),w=(0,t.computed)(()=>{let Q=T.value;return pe(Q)&&(Q=i.errorTip??""),Q}),I=(0,t.ref)(""),L=(0,t.ref)(!1),V=Q=>{let R=Q.target.value;if(pe(R)){b.value="",C.value="",y("update:modelValue","",Q),y("change","",Q),ye(i.showTip)&&L.value&&(L.value=!1);return}if(R.length>=2){let Y=R;if(Y.charAt(0)=="-"&&(Y=Y.substring(1)),Y.length>=2&&Y.charAt(0)=="0"&&Y.charAt(1)!="."){(0,t.triggerRef)(b);return}}if(R!="-"){if(!eo(R)){(0,t.triggerRef)(b);return}if(i.integerLength!=-1&&Qr(R)>Number(i.integerLength)){(0,t.triggerRef)(b);return}if(i.decimalLength&&i.decimalLength!=-1&&Gr(R)>Number(i.decimalLength)){(0,t.triggerRef)(b);return}let Y=cr(R,i);if(Y.maxValid===!1){T.value=Y.message,(0,t.triggerRef)(b);return}}else if(i.min!=null&&me(i.min)>=0){(0,t.triggerRef)(b);return}I.value=R,ye(i.showTip)&&(L.value=R.length>0),b.value=R,C.value=ur(R,i.rates,i.precision,!0),y("update:modelValue",C.value,Q),y("change",C.value,Q)},M=Q=>{if(S.value=!0,ye(i.showTip)){let R=b.value;pe(R)&&(R=i.hintText),pe(R)||(I.value=R,L.value=!0)}T.value="",y("focus",C.value,Q)},q=Q=>{if(setTimeout(()=>{S.value=!1,ye(i.showTip)&&L.value===!0&&(L.value=!1)},0),!pe(b.value)){let R=cr(b.value,i);if(R.minValid===!1||R.maxValid===!1){T.value=R.message;return}}y("update:modelValue",C.value,Q),y("blur",C.value,Q)},O=(0,t.computed)(()=>({[`${A}__append`]:!0,"is-disabled":d.value,"is-readonly":c.value})),P=(0,t.computed)(()=>{const Q={};return a.slots.append&&!j.value&&!H.value&&(Q.display="none"),Q}),j=(0,t.computed)(()=>we(i.unit)>0),D=(0,t.computed)(()=>!H.value),ee=(0,t.computed)(()=>({[`${A}__unit`]:!0,hidden:!D.value})),te=Q=>{C.value="",y("update:modelValue","",Q),y("change","",Q),y("clear","")},oe=(0,t.computed)(()=>ye(i.clearable)&&!d.value&&!c.value),H=(0,t.computed)(()=>{let Q=we(C.value)>0;return ye(i.clearable)&&Q&&S.value}),Z=(0,t.computed)(()=>({action:!0,hidden:!H.value}));N({setDisabled:Q=>{s.value=Q},setReadonly:Q=>{v.value=Q}});const X=()=>C.value?k.value:C.value;return()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:X(),unit:i.unit},a.slots);let Q={class:g.value,style:B.value,type:"digit",maxlength:i.maxLength,placeholder:k.value,disabled:d.value,readonly:c.value,value:m.value,"adjust-position":i.adjustPosition,"always-system":i.alwaysSystem,onInput:V,onFocus:M,onBlur:q},R=[],Y=(0,t.h)("input",Q);R.push(Y);let U=[];if(oe.value){const F=(0,t.h)(r,{class:["action-icon"]}),G=(0,t.h)("view",{class:Z.value,onClick:te},{default:()=>[F]});U.push(G)}if(j.value){const F=(0,t.h)("view",{class:ee.value},[i.unit]);U.push(F)}const _=(0,t.h)("view",{class:O.value,style:P.value},{default:()=>U});R.push(_);const K={default:()=>R};K.label=a.slots.default,K.prepend=a.slots.prepend,K.append=a.slots.append,K.fixedPreTip=a.slots.fixedPreTip,K.fixedTip=a.slots.fixedTip;const ne={...Qe(i,$i),ref:u,class:h.value,errorTip:w.value,hintText:I.value,hintVisible:L.value,hintType:"number"};return i.prop&&(ne.prop=`${i.prop}_item`),o(ne,K)}}}}var{componentName:Gc,create:Zc,scope:Jc}=le("money-item"),ed=Zc(Qc(Gc,Jc,Ie,ze,re.CircleClose)),go=ed,_l={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:td,create:nd,scope:ld}=le("textarea"),od=nd({props:{..._l},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:o}=(0,he.useFoxI18n)(ld);const l=o(e,["placeholder"]),r=(0,t.ref)(),i=(0,t.computed)(()=>{const p=td;return{[p]:!0,[`${p}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&s(String(e.modelValue)),e.autosize&&(0,t.nextTick)(u)});const a=(0,t.computed)(()=>({textAlign:e.textAlign})),u=()=>{let p=r.value;p.style.height="auto";let y=p.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:N,minHeight:S}=e.autosize;N!==void 0&&(y=Math.min(y,N)),S!==void 0&&(y=Math.max(y,S))}y&&(console.info("----------- height",y),p.style.height=y+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(u)});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:a,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})}}}}),ad=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],rd={key:0,class:"fox-textarea__limit"};function id(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:(0,t.normalizeStyle)(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...a)=>e.change&&e.change(...a)),onBlur:n[1]||(n[1]=(...a)=>e.blur&&e.blur(...a)),onFocus:n[2]||(n[2]=(...a)=>e.focus&&e.focus(...a)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,ad),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",rd,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var nl=ie(od,[["render",id]]);function sd(e,n,o,l,r){return{props:{...ge,...Se,..._l},emits:["update:modelValue","change","blur","focus","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:v,readonly:c,browse:p}=$e(i),{emitEvent:y}=Ve({componentName:e,get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),N=Re(i,"modelValue",null,y),S=g=>{N.value=g,y("update:modelValue",g,{}),y("change",g,{})},C=e,b=(0,t.computed)(()=>({[C]:!0,disabled:d.value,readonly:c.value})),m=(0,t.computed)(()=>({[`${C}__content`]:!0}));let f=Re(i,"hintText"),k=(0,t.ref)(!1);const A=g=>{pe(f.value)||(k.value=!0),y("focus",N.value,g)},h=g=>{setTimeout(()=>{k.value&&(k.value=!1)},0),y("blur",N.value,g)};return()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:N.value},a.slots);const g={...be(i,_l),class:m.value,disabled:d.value,readonly:c.value,value:N.value,"onUpdate:modelValue":S,onFocus:A,onBlur:h},x=[],B=(0,t.h)(r,g);x.push(B);const T={default:()=>x};T.label=a.slots.default,T.prepend=a.slots.prepend,T.append=a.slots.append,T.fixedPreTip=a.slots.fixedPreTip,T.fixedTip=a.slots.fixedTip;const w={...be(i,Se,ge),ref:u,class:b.value};return i.prop&&(w.prop=`${i.prop}_item`),o(w,T)}}}}var{componentName:ud,create:cd,scope:dd}=le("textarea-item"),fd=cd(sd(ud,dd,Ie,ze,nl)),yo=fd;function md(e){return e===window}var Pe=e=>{const n=(0,t.unref)(e);if(md(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},dr=10;function Ei(e,n){return e>n&&e>dr?"horizontal":n>e&&n>dr?"vertical":""}function ll(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function ol(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(a=>{if(a.touches){const u=a.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const u=a;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Ei(e.offsetX,e.offsetY))}),start:(a=>{if(l(),a.touches){const u=a.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const u=a;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:o,state:e}}function pt(){const e=(0,t.ref)(0),n=(0,t.ref)(0),o=(0,t.ref)(0),l=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(0),a=(0,t.ref)(0),u=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(0),v=(0,t.ref)(""),c=()=>v.value==="vertical",p=()=>v.value==="horizontal",y=()=>{a.value=0,u.value=0,s.value=0,d.value=0,v.value="",o.value=0};return{move:(C=>{if(C.touches){const b=C.touches[0];a.value=b.clientX-e.value,u.value=b.clientY-n.value,r.value=b.clientX,i.value=b.clientY}else{const b=C;a.value=b.clientX-e.value,u.value=b.clientY-n.value,r.value=b.clientX,i.value=b.clientY}s.value=Math.abs(a.value),d.value=Math.abs(u.value),l.value=Date.now()-o.value,v.value||(v.value=Ei(s.value,d.value))}),start:(C=>{if(y(),C.touches){const b=C.touches[0];e.value=b.clientX,n.value=b.clientY}else{const b=C;e.value=b.clientX,n.value=b.clientY}o.value=Date.now()}),reset:y,startX:e,startY:n,startTime:o,duration:l,moveX:r,moveY:i,deltaX:a,deltaY:u,offsetX:s,offsetY:d,direction:v,isVertical:c,isHorizontal:p}}var pd=2e3,fr=()=>pd++,nt={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"},teleportDisable:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},vd=(e,n)=>({components:n,props:nt,emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const r=(0,t.reactive)({zIndex:0,showSlot:!0,closed:o.closeable});o.visible&&(r.zIndex=fr());const i=(0,t.computed)(()=>{const S=e,C=[S,`${S}--${o.position}`];return o.round&&C.push("round"),o.position==="bottom"&&o.safeAreaInsetBottom&&C.push(`${S}--${o.position}--safebottom`),typeof o.popClass=="string"?C.push(o.popClass):Array.isArray(o.popClass)&&o.popClass.forEach(b=>{C.push(b)}),C}),a=(0,t.computed)(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=(0,t.computed)(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{l("update:visible",!0),o.zIndex?r.zIndex=o.zIndex:r.zIndex=fr(),o.destroyOnClose&&(r.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},v=S=>{l("click-pop",S)},c=S=>{S.stopPropagation(),l("click-close-icon",S),l("update:visible",!1)},p=S=>{l("click-overlay",S),o.closeOnClickOverlay&&l("update:visible",!1)},y=S=>{l("opend",S)},N=S=>{l("closed",S)};return(0,t.watch)(()=>o.visible,S=>{o.visible?s():d()}),(0,t.watch)(()=>o.closeable,S=>{r.closed=S}),{...(0,t.toRefs)(r),popStyle:a,transitionName:u,classes:i,onClick:v,onClickCloseIcon:c,onClickOverlay:p,onOpened:y,onClosed:N}}}),Di={readonly:{type:[Boolean],default:()=>null},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}},bo={...nt,...Di,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}},Ii=36;function hd(){return Ii}function gd(e){Ii=e}function Ke(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Hl(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function yd(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function dt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function mr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var bd=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=at(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(De(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function Sd(){const e=mt();return new bd(e)}function pr(e,n,o){return!(Ke(e,n)!==Ke(e,o)||dt(e,n)!==dt(e,o))}function kd(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const r=[],i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const u=n[a];let s=o[a].findIndex(d=>{if(i==="text")return Ke(e,d)===u;if(i==="value"){let v=dt(e,d);return v==null&&(v=Ke(e,d)),v===u}else if(i==="item")return pr(e,d,u)});if(s==-1)break;r.push(s)}else{let a=o[0];for(let u=0;u<n.length;u++){const s=n[u];let d=a.findIndex(c=>{if(i==="text")return Ke(e,c)===s;if(i==="value"){let p=dt(e,c);return p==null&&(p=Ke(e,c)),p===s}else if(i==="item")return pr(e,c,s)});if(d==-1)break;r.push(d);const v=Hl(e,a[d]);if(!Array.isArray(v))break;a=v}}return r}function vr(e,n,o,l){if(o.length==0)return null;const r={texts:[],values:[],items:[]},i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const u=o[a];let s=n[a];s<0&&s>=u.length&&(s=0);const d=u[s],v=Ke(e,d);if(r.texts.push(v),r.items.push(d),i==="text")r.values.push(v);else if(i==="value"){let c=dt(e,d);c==null&&(c=v),r.values.push(c)}else r.values.push(d)}else{let a=o[0];for(let u=0;u<n.length;u++){let s=n[u];s<0&&s>=a.length&&(s=0);const d=a[s],v=Object.assign({},d);v.children=null;const c=Ke(e,d);if(r.texts.push(c),r.items.push(v),i==="text")r.values.push(c);else if(i==="value"){let p=dt(e,d);p==null&&(p=c),r.values.push(p)}else r.values.push(v);if(!Array.isArray(d.children))break;a=d.children}}return r}function hr(e){return{text:e,value:e}}var wd=15,Cd=300,Nd=200,{create:Ad}=le("picker-column");function Bd(e){e.stopPropagation()}function Td(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Bd(e)}var Vd={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},...Di},xd=Ad({props:Vd,emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=(0,t.computed)(()=>({"fox-picker__list":!0})),l=(0,t.computed)(()=>({height:`${me(e.visibleItemCount)*+e.itemHeight}px`})),r=(0,t.computed)(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),i=(0,t.computed)(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),a=g=>{const x=g+1;return x>=c.currIndex+8||x<=c.currIndex-8},u=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${c.deg})`,top:`${i.value}px`})),s=g=>{const x=g+1;return`transform: rotate3d(1, 0, 0, ${-c.rotation*x}deg) translate3d(0px, 0px, 104px)`},d=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+i.value}px, 0)`})),v=(0,t.ref)(null),c=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),p=g=>Ke(e,g),y=g=>dt(e,g),N=pt(),S=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},C=(g,x=!1,B=!1)=>{if(c.currIndex=g,x){const T=()=>{c.moving=!1,n("update:modelValue",g),n("change",g)};B?c.transitionEndTrigger=T:T()}},b=(g,x,B)=>{let T=g+c.startDistance;if(x==="end"){const w=-(e.source.length-1)*e.itemHeight;T<w&&(T=w),T>0&&(T=0);let I=Math.abs(Math.round(-T/e.itemHeight));const L=-I*e.itemHeight,V=`${(I+1)*c.rotation}deg`;C(I,!0,B?B>0:!1),m(L,x,B,V)}else{let w=(-T/e.itemHeight+1)*c.rotation;const I=(e.source.length+1)*c.rotation,L=0;if(w=Math.min(Math.max(w,L),I),e.threeDimensional&&(w<L||w>I))return;m(T,null,void 0,`${w}deg`)}},m=(g=0,x,B=Nd,T)=>{x==="end"?c.scrollTime=B:c.scrollTime=0,c.deg=T,c.scrollDistance=g},f=(g,x)=>(g=Math.abs(g/x)/.003*(g<0?-1:1),g),k=g=>{e.readonly||(c.startDistance=c.scrollDistance,N.start(g),c.transitionEndTrigger=null)},A=g=>{e.readonly||(c.moving=!0,N.move(g),N.isVertical()&&(c.moving=!0,Td(g,!0)),b(N.deltaY.value,"",0))},h=()=>{if(e.readonly)return;const g=N.deltaY.value,x=N.duration.value;if(x<Cd&&Math.abs(g)>wd){const B=f(g,x);b(B,"end",me(e.swipeDuration))}else b(g,"end",0)};return(0,t.watch)(()=>e.modelValue,g=>{const x=c.currIndex-g;if(x!==0){c.currIndex=g,c.startDistance=c.scrollDistance;const B=x*e.itemHeight;b(B,"",0)}}),(0,t.watch)(()=>e.source,g=>{if(c.currIndex>=g.length){const x=(g.length-1-c.currIndex)*e.itemHeight;c.startDistance=c.scrollDistance,b(x,"end",0)}}),(0,t.watch)(()=>e.visible,g=>{g===!1&&S()}),(0,t.onMounted)(()=>{const g=-e.modelValue*e.itemHeight;b(g)}),{classes:o,styles:l,contentClasses:r,itemText:p,itemValue:y,...(0,t.toRefs)(c),roller:v,getItemText:Ke,onTouchStart:k,onTouchMove:A,onTouchEnd:h,isHidden:a,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:d,stopMomentum:S}}}),$d={key:1,class:"fox-picker__item-tile"};function Ed(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTransitionend:n[4]||(n[4]=(...a)=>e.stopMomentum&&e.stopMomentum(...a))},[(0,t.createElementVNode)("view",{ref:"roller",class:(0,t.normalizeClass)(e.contentClasses),style:(0,t.normalizeStyle)(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.source,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(u))},(0,t.toDisplayString)(e.itemText(a)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",$d,(0,t.toDisplayString)(e.itemText(a)),1))],64))),128))],6)],38)}var Dd=ie(xd,[["render",Ed]]),Rt=0,gr="fox-overflow-hidden",yr=()=>lt?document.body:{classList:[]},Id=e=>[()=>{if(e())try{!Rt&&yr().classList.add(gr),Rt++}catch{}},()=>{if(e()&&Rt)try{Rt--,!Rt&&yr().classList.remove(gr)}catch{}}],qd={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:Pd,create:Md}=le("overlay"),Rd=Md({props:{...qd},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=Id(()=>e.lockScroll),r=(0,t.computed)(()=>({[Pd]:!0,[e.overlayClass]:!0})),i=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,u=>{u?o():l()}),{classes:r,style:i,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function zd(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"overlay-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...a)=>e.onClick&&e.onClick(...a),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var ft=ie(Rd,[["render",zd]]),{componentName:Ld,create:Fd}=le("popup"),Od=Fd(vd(Ld,{FoxOverLay:ft,Close:re.Close}));function Kd(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxOverLay"),u=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(a,(0,t.mergeProps)({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.closed?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:(0,t.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(u)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var Ce=ie(Od,[["render",Kd]]),Ud=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-picker__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(Ce,Qe({...e},{poppable:!1}),n):n?.default?.()??null}}),_d=Ud,{create:Hd,componentName:br,scope:jd}=le("picker"),Wd=Hd({components:{Column:Dd,Wrapper:_d},props:bo,emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=(0,he.useFoxI18n)(jd),r=o(e,["title","cancelText","clearText","confirmText"]),i=(0,t.ref)(null),a=(0,t.ref)(hd());(0,t.watch)(()=>e.visible,q=>{q&&a.value<=0&&setTimeout(()=>{if(i.value){const O=Pe(i.value);a.value=O.height,gd(a.value)}},50)});const u=(0,t.computed)(()=>({[br]:!0})),s=(0,t.computed)(()=>{const q=[];return Array.isArray(e.popClass)?q.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&q.push(e.popClass),q.push(`${br}__popup`),q.join(" ")}),d=Sd(),v=(0,t.ref)("singleColumn");let c=(0,t.ref)([]);const p=(0,t.computed)(()=>{if(typeof e.sourceFilter=="function"){const q=[];for(let O=0;O<c.value.length;O++){const P=c.value[O];if(Array.isArray(P)){const j=P.filter(e.sourceFilter);q.push(j)}}return q}return c.value});(0,t.watch)([()=>e.source,()=>e.params],async([q,O])=>{if(q){let P=await d.load("picker",q,O);if(P.length>0){let j=P[0];if(Array.isArray(j)){if(typeof j[0]=="string"){let D=P,ee=[];D.forEach(te=>{let oe=te.map(H=>hr(H));ee.push(oe)}),c.value=ee}else c.value=P;v.value="multipleColumn"}else if(typeof j=="string"){let D=P,ee=[],te=D.map(oe=>hr(oe));ee.push(te),c.value=ee,v.value="singleColumn"}else{const D=Hl(e,j);Array.isArray(D)?(v.value="cascade",c.value=[P]):(v.value="singleColumn",c.value=[P])}}else c.value=[]}},{immediate:!0});const y=(0,t.ref)([]),N=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),S=(0,t.ref)([]);let C=null;const b=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>p.value],([q,O])=>{let P=kd(e,q,O,v.value);if(!xe(P,b.value)){b.value=P,C||(C=P?[...P]:[]);let j=vr(e,P,O,v.value);j&&(y.value=j.texts,xe(N.value,j.values)||(N.value=j.values),xe(S.value,j.items)||(S.value=j.items),n("update:text",y.value))}});let m="";const f=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,q=>{f.value=q,q&&(m="active",b.value.length>0&&(C=[...b.value]))});const k=q=>{let O=mr(e,q);return De(O)?O.defaultIndex??0:0},A=q=>{if(e.readonly===!0)return!0;let O=mr(e,q);return De(O)?O.readonly??!1:!1},h=(q,O)=>{let P=b.value;P[q]=O;for(let D=0;D<q;D++)P[D]==null&&(P[D]=k(D));if(v.value==="cascade")for(let D=q+1;D<x.value.length;D++){let ee=k(D);D<P.length?P[D]=ee:P.push(ee)}else for(let D=P.length;D<x.value.length;D++){let ee=k(D);P.push(ee)}b.value=P;let j=vr(e,P,p.value,v.value);j&&(y.value=j.texts,N.value=j.values,S.value=j.items)},g=q=>q<b.value.length?b.value[q]:k(q),x=(0,t.computed)(()=>{if(p.value.length==0)return[];if(v.value=="singleColumn"||v.value=="multipleColumn")return p.value;let q=[],O=0,P=p.value[0],j=0;for(;;){let D=P.map(oe=>{let H=Object.assign({},oe);return yd(e,H,null),H});q.push(D),O>=b.value.length?j=0:j=b.value[O],(j<0||j>=P.length)&&(j=0);let ee=P[j];const te=Hl(e,ee);if(!Array.isArray(te))break;P=te,O++}return q}),B=(0,t.computed)(()=>me(+e.visibleItemCount-1)/2*a.value),T=(q=!1)=>{if(e.readonly===!0){q&&n("update:visible",!1);return}let O=p.value.length-1;for(;O>=0&&!(b.value[O]===null||b.value[O]===void 0);O--);if(O>=0&&h(O,0),v.value==="singleColumn"){let P=N.value.length>0?N.value[0]:"",j=S.value.length>0?S.value[0]:null;n("update:modelValue",P),n("update:text",y.value),n("change",P,j),q&&(n("confirm",P),n("update:visible",!1))}else n("update:modelValue",N.value),n("update:text",y.value),n("change",N.value,S.value),q&&(n("confirm",N.value),n("update:visible",!1))},w=(q,O)=>{if(m!=="close"&&(h(q,O),e.isAutoBackFill)){const P=!f.value;T(P)}},I=()=>{m==="active"&&(m="confirm",C=Array.isArray(b.value)?[...b.value]:[],T(!0))},L=()=>{v.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),b.value=[],C=null};return{...r,pickerLineRef:i,classes:u,popClasses:s,columns:x,dataType:v,show:f,itemHeight:a,top:B,isReadonly:A,getIndex:g,change:w,close:()=>{if(m==="active"){if(m="close",C===null||C.length===0)L();else{if(Array.isArray(C))for(let q=0;q<C.length;q++)h(q,C[q]);T(!1)}n("close"),n("update:visible",!1)}},confirm:I,clear:()=>{if(m==="active"){if(m="clear",e.readonly===!0){n("update:visible",!1);return}L(),C=null,n("clear",""),n("update:visible",!1)}}}}}),Yd={key:0,class:"fox-picker__bar"},Xd={class:"fox-picker__title"},Qd={class:"fox-picker__bar__action"},Gd={class:"fox-picker__column"};function Zd(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Column"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(u,{position:"bottom","pop-class":e.popClasses,visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable,poppable:e.poppable},{default:(0,t.withCtx)(()=>[e.poppable?((0,t.openBlock)(),(0,t.createElementBlock)("view",Yd,[(0,t.createElementVNode)("view",Xd,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Qd,[(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",Gd,[(0,t.createElementVNode)("view",{class:"fox-picker__mask",style:(0,t.normalizeStyle)({backgroundSize:`100% ${e.top}px`})},null,4),(0,t.createElementVNode)("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:(0,t.normalizeStyle)({top:` ${e.top}px`})},null,4),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:"fox-picker__columnitem"},[(0,t.createVNode)(a,{visible:e.show,source:s,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":v=>e.change(d,v),"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 un=ie(Wd,[["render",Zd]]),Jd={...ge,...Se,...bo,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 ef(e,n,o,l,r,i,a,u=!0){return{props:Jd,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:v,innerDisabled:c,disabled:p,innerReadonly:y,readonly:N,browse:S}=$e(s),{emitEvent:C,exposeApi:b}=Ve({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return N.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return v.value}},s.prop??d.attrs.name),{toLocaleRefs:m}=(0,he.useFoxI18n)(n),f=m(s,["placeholder"]),k=(0,t.ref)(!1),A=Re(s,"modelValue",null,C),h=(0,t.ref)([]),g=(0,t.computed)(()=>Array.isArray(h.value)?h.value.join(s.separator):h.value),x=e,B=(0,t.computed)(()=>({[x]:!0,disabled:p.value,readonly:N.value})),T=(0,t.computed)(()=>({[`${x}__content`]:!0})),w=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),I=(0,t.computed)(()=>{const _={};return w.value&&(_["text-align"]=w.value),_}),L=(0,t.ref)(!1),V=()=>{L.value=!0},M=_=>{L.value=_},q=_=>{A.value=_,C("update:modelValue",_)},O=(_,K)=>{C("change",_,K)},P=_=>{let K=_.target.value;k.value=!0,C("focus",K,_)},j=_=>{setTimeout(()=>{k.value=!1},0);let K=_.target.value;s.maxLength&&K.length>Number(s.maxLength)&&(K=K.slice(0,Number(s.maxLength))),C("blur",K,_)},D=_=>{h.value=_,Array.isArray(_)&&_.length===0?C("update:text",_[0]):C("update:text",_)},ee=(0,t.computed)(()=>({[`${x}__append`]:!0,"is-disabled":p.value,"is-readonly":N.value})),te=(0,t.computed)(()=>we(s.unit)>0),oe=(0,t.computed)(()=>we(s.unit)>0&&!k.value),H=(0,t.computed)(()=>({hidden:!oe.value})),Z=_=>{A.value="",C("update:modelValue","",_),C("change","",_),C("clear","")},X=(0,t.computed)(()=>s.clearable&&!p.value&&!N.value),Q=(0,t.computed)(()=>we(A.value)>0&&k.value),R=_=>{Q.value?Z(_):V()},Y=(0,t.computed)(()=>Q.value&&X.value?r:i),U=(0,t.computed)(()=>({action:!0}));return b({setDisabled:_=>{c.value=_},setReadonly:_=>{y.value=_}}),()=>{if(S.value==="on"&&(N.value||p.value))return l({modelValue:A.value,source:s.source,unit:s.unit},d.slots);const _={class:T.value,style:I.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:V,onFocus:P,onBlur:j};u&&(_.disabled=!0);const K=[],ne=(0,t.h)("input",_);K.push(ne);const F=[],G=(0,t.h)(Y.value,{class:["action-icon"]}),E=(0,t.h)("view",{class:U.value,onClick:R},{default:()=>[G]});if(F.push(E),te.value){const de=(0,t.h)("view",{class:H.value},[s.unit]);F.push(de)}const $=(0,t.h)("view",{class:ee.value},{default:()=>F});K.push($);const z={default:()=>K};z.label=d.slots.default,z.prepend=d.slots.prepend,z.append=d.slots.append,z.fixedPreTip=d.slots.fixedPreTip,z.fixedTip=d.slots.fixedTip;const W=be(s,bo);W.disabled=!1,W.readonly=p.value||N.value,W.visible=L.value,W["onUpdate:visible"]=M,W.modelValue=A.value,W["onUpdate:modelValue"]=q,W.text=h.value,W["onUpdate:text"]=D,W.onChange=O;const J=(0,t.h)(a,W);z.hide=()=>[J];const ae=be(s,Se,ge);return s.prop&&(ae.prop=`${s.prop}_item`),ae.ref=v,ae.class=B.value,o(ae,z)}}}}var{componentName:tf,create:nf,scope:lf}=le("picker-item"),of=nf(ef(tf,lf,Ie,ze,re.CircleClose,re.ArrowRight,un,!1)),So=of,af=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:o}){return()=>e.poppable?(0,t.h)(Ce,{...o},n):n?.default?.()??null}}),rf=af,bn=(e,n,o)=>e.map(l=>{const{value:r="value",text:i="text",children:a="children"}=o??{},{[r]:u,[i]:s,[a]:d,...v}=l,c={loading:!1,...v,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:d,_parent:n};return c.children&&c.children.length&&(c.children=bn(c.children,c,o)),c}),qi=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&qi(l.children,n)},sf={topId:null,idKey:"id",pidKey:"pid",sortKey:""},uf=(e,n)=>{const{topId:o,idKey:l,pidKey:r,sortKey:i}={...sf,...n||{}};let a=[],u={};return e.forEach(s=>{s={...s};const{[l]:d,[r]:v}=s,c=u[v]=u[v]||[];!a.length&&v===o&&(a=c),c.push(s),s.children=u[d]||(u[d]=[])}),i&&Object.keys(u).forEach(s=>{u[s].length>1&&u[s].sort((d,v)=>d[i]-v[i])}),u=null,a},ko={prop:{type:[String]},modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Sr=(e,n)=>n[e.textKey],zt=(e,n)=>n[e.valueKey],cf=(e,n)=>n[e.visibleKey],kr=(e,n)=>n[e.disabledKey],df=(e,n)=>{const o=n[e.doitKey];return ye(o)},ff=(e,n)=>{const o=n[e.numKey];return o==null?null:me(n[o])},wr=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function mf(e,n,o,l,r,i=!1){return{props:ko,emits:["update:modelValue","change","click"],setup(a,u){const{emitEvent:s,exposeApi:d}=He({context:u},a.prop),{slots:v}=u,c=(0,t.computed)(()=>{const E={};return E[`${e}`]=!0,E}),p=(0,t.computed)(()=>{const E={};return E[`${e}__titles`]=!0,E[`${a.direction}`]=!0,a.align&&(E[`${a.align}`]=!0),a.scroll===!0&&(E.scrollable=!0),a.shape&&(E[`${a.shape}`]=!0),a.showScrollArrow?(R.value===!0&&(E["has-left-scroll-arrow "]=!0),Y.value===!0&&(E["has-right-scroll-arrow "]=!0)):a.showQuickNavigation&&(E["has-navigation"]=!0),E}),y=(0,t.computed)(()=>({})),N=(0,t.computed)(()=>{if(!a.gutter)return 0;const E=ce(a.gutter);return E<=0?0:E}),S=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,E=>{S.value!==E&&(S.value=E,ee(!1))});const C=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),b=(0,t.computed)(()=>{const E={};return f.value||(E.display="none"),E}),m=(0,t.ref)(),f=(0,t.ref)(!1),k=()=>{const E=!f.value;A(E)},A=E=>{const $=E;$?(f.value=$,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,m.value?m.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},h=(0,t.ref)(),g=(0,t.ref)([]),x=(E,$)=>{g.value[$]=E},B=E=>$=>{x($,E)},T=(E,$)=>{const z=h.value,W=g.value;if(!z||!W||!W[E])return;const J=W[E];let ae=0;a.direction==="vertical"?ae=J.offsetTop-(z.offsetHeight-J.offsetHeight)/2:ae=J.offsetLeft-(z.offsetWidth-J.offsetWidth)/2,w(z,ae,$?0:.3,a.direction)},w=(E,$,z,W)=>{let J=0;const ae=W==="horizontal"?E.scrollLeft:E.scrollTop,de=z===0?1:Math.round(z*1e3/16);function fe(){W==="horizontal"?E.scrollLeft+=($-ae)/de:E.scrollTop+=($-ae)/de,++J<de&&Ge(fe)}fe()},I=(E,$)=>{const z=zt(a,E),W={};return W[`${e}__titles-item`]=!0,W.disabled=kr(a,E),W.active=z===S.value,a.shape&&(W[`${a.shape}`]=!0),a.ellipsis&&(W.ellipsis=!0),$&&($.class&&(W[`${$.class}`]=!0),$.disabled===!0&&(W.disabled=$.disabled)),W},L=(E,$)=>{const z={};if(N.value>0){const W=Math.abs(N.value/2);a.direction==="vertical"?(z["margin-top"]=`${W}px`,z["margin-bottom"]=`${W}px`):(z["margin-left"]=`${W}px`,z["margin-right"]=`${W}px`)}return $&&$.style&&Object.assign(z,$.style),z},V=(E,$)=>`${zt(a,E)??$}`,M=(E,$)=>{const z=zt(a,E),W={};W[`${e}__popup-item`]=!0,W.disabled=kr(a,E),W.active=z===S.value,a.shape&&(W[`${a.shape}`]=!0);const J=wr(a,E,$);return J&&J.disabled===!0&&(W.disabled=J.disabled),W},q=(0,t.computed)(()=>(a.data??[]).filter(E=>cf(a,E)!==!1)),O=(E,$)=>{const z=zt(a,E);if(s("click",E,$),S.value==z)return;const W=()=>{S.value=z,a.scroll&&T($,!1),s("update:modelValue",z),s("change",E,$)};if(typeof a.beforeChange=="function"){const J=a.beforeChange(E,$);Ct(J)?J.then(ae=>{ae!==!1&&W()}).catch(()=>{W()}):J!==!1&&W()}else W()},P=(E,$)=>function(){O(E,$)},j=(E,$)=>{O(E,$),A(!1)},D=(E,$)=>function(){j(E,$)},ee=E=>{if(!Array.isArray(a.data)||!a.scroll)return;Q()&&ne();const $=a.data.findIndex(z=>zt(a,z)===S.value);$!==-1&&T($,E)},te=()=>{Q()||F()};(0,t.watch)(()=>a.data,()=>{setTimeout(ee,0)}),(0,t.onMounted)(()=>{ee(!0)}),(0,t.onBeforeUnmount)(()=>{te()}),d({});const oe=(E,$)=>{if(v.item)return v.item({item:E,index:$});const z=wr(a,E,$),W=[];if(v.text){const ae=v.text({item:E,index:$});W.push(ae)}else{const ae=[];if(z?.doit===!0||df(a,E)){const Le=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ae.push(Le)}const de=z?.num??ff(a,E);if(de){let Le="";const Fe=me(de);Fe>=100?Le="99+":Le=`${Fe}`;const Ee=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[Le]);ae.push(Ee)}const fe={class:`${e}__titles-item-text`};ae.push(Sr(a,E));const ke=(0,t.h)("view",fe,ae);W.push(ke)}const J=(0,t.h)("view",{class:`${e}__titles-item-line`});return W.push(J),(0,t.h)("view",{ref:B($),class:I(E,z),style:L(E,z),key:V(E,$),onClick:P(E,$)},W)},H=()=>{const E=v.default?v.default():[];if(E.length===0)for(let $=0;$<q.value.length;$++){const z=q.value[$],W=oe(z,$);E.push(W)}return(0,t.h)("view",{ref:h,class:p.value,style:y.value},E)},Z=()=>{let E=null;return v.navigation?E=v.navigation():E=(0,t.h)(o),(0,t.h)("view",{class:`${e}__navigation`,onClick:k},[E])},X=()=>{const E=[];for(let $=0;$<q.value.length;$++){const z=q.value[$];let W=null;v.popupItem?W=v.popupItem({item:z,index:$}):W=Sr(a,z);const J=(0,t.h)("view",{class:M(z,$),key:V(z,$),onClick:D(z,$)},[W]);E.push(J)}return(0,t.h)("view",{class:C.value,style:b.value},E)},Q=()=>a.showScrollArrow&&a.direction=="horizontal",R=(0,t.ref)(!1),Y=(0,t.ref)(!1),U=E=>{const $=h.value,z=g.value;if(!(!$||!z))if(E==="left"){const W=$.scrollLeft;let J=W;for(let ae=0;ae<z.length;ae++){const de=z[ae].offsetLeft;if(W-de<0)break;J=de}w($,J,.3,"horizontal")}else{const W=$.scrollLeft;let J=W,ae=$.offsetWidth;for(let de=z.length-1;de>=0;de--){const fe=z[de].offsetLeft+z[de].offsetWidth;if(fe-W<$.offsetWidth){J+=ae-fe;break}ae=fe}w($,J,.3,"horizontal")}},_=Me(()=>{const E=h.value;if(!E)return;let $=E.scrollLeft>0;$!==R.value&&(R.value=$);let z=E.scrollWidth-E.scrollLeft>E.offsetWidth;z!==Y.value&&(Y.value=z)},50),K=E=>{_()},ne=()=>{const E=h.value;E&&(_(),E.addEventListener("scroll",K))},F=()=>{const E=h.value;E&&E.removeEventListener("scroll",K)},G=E=>{if(E==="left"&&R.value!==!0||E==="right"&&Y.value!==!0)return null;let $=null;return E==="left"?v.leftArrow?$=v.leftArrow():$=(0,t.h)(l):v.rightArrow?$=v.rightArrow():$=(0,t.h)(r),(0,t.h)("view",{class:[`${e}__scroll-arrow`,E],onClick:()=>{U(E)}},[$])};return()=>{const E=[],$=H();if(E.push($),Q()){const z=G("left");z&&E.push(z);const W=G("right");W&&E.push(W)}else if(a.showQuickNavigation){const z=Z();E.push(z);const W=X();E.push(W)}return(0,t.h)("view",{class:c.value},E)}}}}var{create:pf,componentName:vf,scope:hf}=le("tabs-bar"),gf=pf(mf(vf,hf,re.MoreH,re.Left,re.Right,!1)),cn=gf,Pi=Symbol("TabsStatesKey"),wo={prop:{type:[String]},modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},transition:{type:[Boolean],default:()=>!0},height:{type:[String,Number]},width:{type:[String,Number]}},yf=15,bf=300,Sf=200;function kf(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function Cr(e,n=0,o,l,r=Sf){o==="end"?e.style.transition=`transform ${r}ms linear`:e.style.transition="transform 0ms linear",l==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}var wf=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,n,o,l=1,r){this.onStart=e,this.onMove=n,this.onEnd=o,this.momentumReduceRatio=l,this.isTouch=r??ll()}open(e){this.el=e;const n=ol(),o=(l,r,i)=>{const a={delta:l,direction:r,type:i};this.onMove(a)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;n.start(l),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const r={delta:0,type:"start",direction:this.direction};this.onStart(r)},this.touchmove=l=>{if(!this.moving)return;n.move(l);let r=0;if(this.direction==="horizontal"){if(n.isVertical())return;r=n.state.deltaX}else{if(n.isHorizontal())return;r=n.state.deltaY}o(r,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(n.isVertical()){this.moving=!1;return}l=n.state.deltaX}else{if(n.isHorizontal()){this.moving=!1;return}l=n.state.deltaY}const r=n.state.duration;r<bf&&Math.abs(l)>yf?(l=kf(l,r,this.momentumReduceRatio),o(l,this.direction,"end")):o(l,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Cf(e,n,o,l=1,r){return new wf(e,n,o,l,r)}function Nf(e,n,o=!1){return{props:wo,emits:["update:modelValue","change"],setup(l,r){const{emitEvent:i,exposeApi:a}=He({context:r},l.prop),{slots:u}=r,s=(0,t.shallowRef)([]),d={current:(0,t.ref)(l.modelValue??""),direction:(0,t.ref)(l.direction),transition:l.transition,tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:B=>{const T={name:B};d.current.value===B&&(T.loaded=!0),s.value.push(T),(0,t.triggerRef)(s)},remove:B=>{const T=s.value.findIndex(w=>w.name===B);T!==-1&&s.value.splice(T,1)},isLoaded:B=>{if(!l.lazy)return!0;const T=s.value.findIndex(w=>w.name===B);return T!==-1?d.current.value?s.value[T].loaded??!1:T===0:!1}};(0,t.provide)(Pi,d);const v=B=>{const T=s.value.findIndex(w=>w.name===B);T!==-1&&(s.value[T].loaded=!0,(0,t.triggerRef)(s))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([B,T])=>{d.current.value!==B&&(d.current.value=B??"",v(B??"")),d.direction.value!==T&&(d.direction.value=T)});const c=(0,t.ref)(null),p=(0,t.ref)(null),y=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),N=(0,t.computed)(()=>{const B={};if(l.width){const T=ue(l.width);T&&(B.width=T)}if(l.height){const T=ue(l.height);T&&(B.height=T)}return B});let S=!0;const C=(0,t.computed)(()=>{const B={};if(l.transition===!1)return B;const T=s.value.length;if(T<=0)return B;const w=s.value.findIndex(I=>I.name===d.current.value);return d.direction.value==="vertical"?d.tabHeight.value>0&&(B.height=`${T*d.tabHeight.value}px`,w!==-1&&(B.transform=`translate(0, -${w*d.tabHeight.value}px)`)):d.tabWidth.value>0&&(B.width=`${T*d.tabWidth.value}px`,w!==-1&&(B.transform=`translate(-${w*d.tabWidth.value}px, 0)`)),S&&(S=!1,B.transition="transform 0s ease"),B}),b={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},m=B=>{const T=s.value.length,w=s.value.findIndex(I=>I.name===d.current.value);b.moved=0,B.direction==="vertical"?(b.min=-1*(d.tabHeight.value*(T-1)+d.tabHeight.value/4),b.max=d.tabHeight.value/4,b.start=-w*d.tabHeight.value,b.itemDistance=d.tabHeight.value):(b.min=-1*(d.tabWidth.value*(T-1)+d.tabWidth.value/4),b.max=d.tabWidth.value/4,b.start=-w*d.tabWidth.value,b.itemDistance=d.tabWidth.value)},f=B=>{const T=p.value;if(!T)return;let w=b.start+B.delta;if(w>b.max?w=b.max:w<b.min&&(w=b.min),B.type==="move")Cr(T,w,"move",B.direction,300);else if(B.type==="end"){let I=Math.floor(Math.abs(w)*1/b.itemDistance);const L=Math.abs(w)%b.itemDistance;b.start>w?L>=b.itemDistance*b.triggerAutoMoveRatio&&(I+=1):L>b.itemDistance-b.itemDistance*b.triggerAutoMoveRatio&&(I+=1),w=-1*I*b.itemDistance,Cr(T,w,"end",B.direction,300),b.moved=w;const V=s.value[I].name;d.current.value=V??"",v(V??""),i("update:modelValue",V)}},k=()=>{},A=()=>{if(!c.value)return;const B=Un(c.value);d.tabWidth.value=B.width,d.tabHeight.value=B.height},h=Vn(A,250);let g=null,x=null;return(0,t.onMounted)(()=>{l.transition!==!1&&c.value&&(A(),window.ResizeObserver&&(x=new window.ResizeObserver(h),x.observe(c.value)),l.draggle&&(g=Cf(m,f,k),g.open(p.value)))}),(0,t.onBeforeUnmount)(()=>{x&&(x.disconnect(),x=null),g&&g.close()}),a({doLayout(){A()}}),()=>{const B=(0,t.h)("view",{class:`${e}__panes`,style:C.value,ref:p},[u?.default?.()]);return(0,t.h)("view",{class:y.value,style:N.value,ref:c},[B])}}}}var{create:Af,componentName:Bf,scope:Tf}=le("tabs-container"),Vf=Af(Nf(Bf,Tf,!1)),dn=Vf,xf={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 $f(e,n,o){return{props:xf,setup(l,{emit:r,slots:i}){const a=(0,t.inject)(Pi);(0,t.onMounted)(()=>{a.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{a.remove(l.paneKey)});const u=(0,t.computed)(()=>{const v=[e];return a.direction.value==="vertical"?v.push("is-vertical"):v.push("is-horizontal"),a.transition===!1?v.push("is-no-transition"):v.push("is-transition"),v}),s=(0,t.computed)(()=>{const v={};return a.transition===!1?(a.current.value!==l.paneKey&&(v.display="none"),v):(a.direction.value==="vertical"&&a.tabHeight.value>0?v.height=`${a.tabHeight.value}px`:a.tabWidth.value>0&&(v.width=`${a.tabWidth.value}px`),v)}),d=(0,t.computed)(()=>l.loaded!=null?ye(l.loaded):a.isLoaded(l.paneKey));return()=>{let v=[];if(d.value)v=i?.default?.()??[];else if(i.empty)v=i.empty();else{const c={class:`${e}__empty-icon`},p=(0,t.h)(l.emptyIcon??o,c),y=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),N=(0,t.h)("view",{class:`${e}__empty`},[p,y]);v.push(N)}return(0,t.h)("view",{class:u.value,style:s.value,prop:l.paneKey},v)}}}}var{create:Ef,componentName:Df,scope:If}=le("tabs-pane"),qf=Ef($f(Df,If,re.Loading)),al=qf,Nr=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=bn(e,null,this.config)}updateChildren(e,n){n?n.children=bn(e,n,this.config):this.nodes=bn(e,null,this.config)}getNodeByValue(e){let n;return qi(this.nodes,o=>{if(o.value===e)return n=o,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===e[r.level]);if(!l)break;n.push(l),o=l.children}return n}isLeaf(e,n){const{leaf:o,children:l}=e,r=Array.isArray(l)&&!!l.length;return o||!r&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:o}=e;return Array.isArray(o)&&!!o.length}},{create:Pf,scope:Mf}=le("cascader-pane"),Rf=Pf({components:{Loading:re.Loading,Checklist:re.Checklist,TabsBar:cn,TabsContainer:dn,TabsPane:al},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:o}=(0,he.useFoxI18n)(Mf),l=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),r=(0,t.ref)(0),i=(0,t.ref)(),a=(0,t.ref)(!1),u=(0,t.ref)(e.modelValue),s=(0,t.ref)(new Nr([],{})),d=(0,t.ref)([]),v=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),c=(0,t.computed)(()=>a.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((f,k)=>({text:f.selectedNode?f.selectedNode.text:o("select"),value:k}))),p=new Map;let y;const N=async()=>{p.clear(),d.value=[],r.value=0,a.value=!1,y=null;let{options:f}=e;l.value.convertConfig&&(f=uf(f,l.value.convertConfig)),s.value=new Nr(f,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),v.value&&!s.value.nodes.length&&await C({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:s.value.nodes,selectedNode:null}],S(!v.value)},S=async(f=!0)=>{const k=u.value;if(k===void 0||!s.value.nodes.length)return;if(k.length===0){r.value=0,d.value=[{nodes:s.value.nodes,selectedNode:null}];return}let A=k;if(v.value&&Array.isArray(k)&&k.length){A=[];let h=s.value.nodes.find(g=>g.value===k[0]);if(h){A=[h.value],a.value=!0;const g=await k.slice(1).reduce(async(x,B)=>{const T=await x;await C(T);const w=T&&T?.children?.find(I=>I.value===B);return w&&A.push(B),Promise.resolve(w)},Promise.resolve(h));await C(g),a.value=!1}}A.length&&k===e.modelValue&&s.value.getPathNodesByValue(A).map((h,g)=>{r.value=g,m.handleNode(h,f)})},C=async f=>{if(!f)return;if(!l.value.lazyLoad){f.leaf=!0;return}if(s.value.isLeaf(f,v.value)||s.value.hasChildren(f,v.value))return;f.loading=!0;const k=f.root?null:f;let A=p.get(f);A||(A=new Promise(g=>{l.value.lazyLoad?.(f,g)}),p.set(f,A));const h=await A;Array.isArray(h)&&h.length>0?s.value.updateChildren(h,k):f.leaf=!0,f.loading=!1,p.delete(f)},b=f=>{const k=f.map(A=>A.value);u.value=k,n("change",k,f),n("pathChange",f),n("update:modelValue",k)},m={async handleNode(f,k){const{disabled:A,loading:h}=f;if(!(!k&&A||!d.value[r.value])){if(s.value.isLeaf(f,v.value)){if(f.leaf=!0,d.value[r.value].selectedNode=f,d.value=d.value.slice(0,f.level+1),!k){const g=d.value.map(x=>x.selectedNode);b(g),n("pathChange",g)}return}if(s.value.hasChildren(f,v.value)){const g=f.level+1;d.value[r.value].selectedNode=f,d.value=d.value.slice(0,g),d.value.push({nodes:f.children||[],selectedNode:null}),r.value=g,k||n("pathChange",d.value.map(x=>x.selectedNode));return}y=f,!h&&(await C(f),y===f&&(d.value[r.value].selectedNode=f,m.handleNode(f,k)))}},handleTabChange(f,k){y=null},formatTabTitle(f){return f.selectedNode?f.selectedNode.text:o("select")},isSelected(f,k){return f.selectedNode&&f.selectedNode.value===k.value}};return(0,t.watch)([l,()=>e.options],()=>{N()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,f=>{xe(f,u.value)||(u.value=f,S(!v.value))}),(0,t.watch)(()=>e.visible,f=>{f&&Array.isArray(u.value)&&u.value.length>0&&S(),f&&i.value&&setTimeout(()=>{i.value.doLayout()},0)}),{panes:d,panesTitles:c,initLoading:a,tabsCursor:r,tabsContainerRef:i,...m}}}),zf={class:"fox-cascader"},Lf={role:"menu",class:"fox-cascader__pane"},Ff=["aria-checked","aria-disabled","onClick"],Of={class:"fox-cascader__item__title"};function Kf(e,n,o,l,r,i){const a=(0,t.resolveComponent)("TabsBar"),u=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Checklist"),d=(0,t.resolveComponent)("TabsPane"),v=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",zf,[(0,t.createVNode)(a,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=c=>e.tabsCursor=c),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),(0,t.createVNode)(v,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=c=>e.tabsCursor=c)},{default:(0,t.withCtx)(()=>[!e.initLoading&&e.panes.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.panes,(c,p)=>((0,t.openBlock)(),(0,t.createBlock)(d,{"pane-key":p,key:p},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Lf,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.nodes,y=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:y.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(c,y),disabled:y.disabled}]),"aria-checked":e.isSelected(c,y),"aria-disabled":y.disabled||void 0,role:"menuitemradio",onClick:N=>e.handleNode(y,!1)},[(0,t.createElementVNode)("view",Of,(0,t.toDisplayString)(y.text),1),y.loading?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Ff))),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 Uf=ie(Rf,[["render",Kf]]),{create:_f}=le("cascader"),Hf=_f({components:{CascaderPane:Uf,Wrapper:rf},props:{...nt,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},poppable:{type:Boolean,default:()=>!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const o=(0,t.ref)(e.modelValue),l=(0,t.computed)({get(){return e.visible},set(a){n("update:visible",a)}}),r=(a,u)=>{o.value=a,l.value=!1,n("change",a,u),n("update:modelValue",a)},i=a=>{n("pathChange",a)};return(0,t.watch)(()=>e.modelValue,a=>{a!==o.value&&(o.value=a)}),{onChange:r,onPathChange:i,innerValue:o,innerVisible:l}}}),jf=["innerHTML"];function Wf(e,n,o,l,r,i){const a=(0,t.resolveComponent)("CascaderPane"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(u,{poppable:e.poppable,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"header",{},()=>[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,jf)):(0,t.createCommentVNode)("",!0)]),(0,t.createVNode)(a,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:3},8,["poppable","visible","closeable","close-icon-position"])}var rl=ie(Hf,[["render",Wf]]);function Tt(e,n){return n[e.textKey??"text"]??""}function Vt(e,n){return n[e.valueKey??"value"]}function Mi(e,n){return n[e.childrenKey??"children"]}function gn(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const r=n[l],i=Tt(e,r),a=Vt(e,r);o.texts.push(i),o.values.push(a??"")}return o}function Ri(e,n,o,l,r=[]){if(!o)return;const i=o[l];for(let a=0;a<n.length;a++)if(Tt(e,n[a])===i){const u=Vt(e,n[a])??"",s={[e.textKey]:i,[e.valueKey]:u};r.push(s);const d=Mi(e,n[a]);Array.isArray(d)&&Ri(e,d,o,l+1,r);return}}function zi(e,n,o,l,r=[]){if(!o)return;const i=o[l];for(let a=0;a<n.length;a++)if(Vt(e,n[a])===i){const u=Tt(e,n[a])??"",s={[e.textKey]:u,[e.valueKey]:i};r.push(s);const d=Mi(e,n[a]);Array.isArray(d)&&zi(e,d,o,l+1,r);return}}function Bl(e,n,o){if(n===o)return!0;if(n.length!==o.length)return!1;for(let l=0;l<n.length;l++)if(Tt(e,n[l])!==Tt(e,o[l])||Vt(e,n[l])!==Vt(e,o[l]))return!1;return!0}var Yf=class{scope;constructor(e){this.scope=e}async load(e,n,o){const l="cascader";if(!e)return[];if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,o);const r=at(l,this.scope);return r===null?(console.error(`${l} component not found api function`),[]):(De(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await r(e,n,o))}};function Xf(){const e=mt();return new Yf(e)}var Li={modelValue:{type:[String,Array]},pathNodes:{type:[Array]},title:{type:[String],required:!1},placeholder:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:[Object]},valueType:{type:String,required:!1,default:"value"},lazy:{type:[Boolean],required:!1},lazyLoad:{type:[Function],required:!1},valueKey:{type:[String],default:"value"},textKey:{type:[String],default:"text"},childrenKey:{type:[String],default:"children"},convertConfig:{type:[Object]},showAllLevels:{type:[Boolean],default:!0},separator:{type:[String],default:"/"},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]},emptyText:{type:[String]}},Qf={...ge,...Se,...Li};function Gf(e,n,o,l,r,i,a,u=!1){return{props:Qf,emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,d){const{itemTemplateRef:v,innerDisabled:c,disabled:p,innerReadonly:y,readonly:N,browse:S}=$e(s),{emitEvent:C,exposeApi:b}=Ve({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return N.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return v.value}},s.prop??d.attrs.name),{toLocaleRefs:m}=(0,he.useFoxI18n)(n),f=m(s,["placeholder"]),k=(0,t.ref)(!1),A=Xf(),h=(0,t.ref)([]),g=(0,t.ref)([]),x=(0,t.computed)(()=>{if(Array.isArray(g.value)){if(g.value.length===0&&s.emptyText)return s.emptyText;if(s.showAllLevels===!1){const E=g.value.length-1;return g.value[E]}return g.value.join(s.separator)}else return g.value??s.emptyText}),B=(0,t.ref)([]),T=(0,t.ref)([]);(0,t.watch)([()=>s.modelValue,()=>h.value],async([E,$])=>{if(C("setValue",E),s.lazy===!0){T.value.length==0&&(s.emptyText?g.value=[s.emptyText]:g.value=Array.isArray(E)?E:[],B.value=Array.isArray(E)?E:[]);return}if(s.valueType==="item"){let z=E;if(!Bl(s,z,T.value)){T.value=z;let W=gn(s,z);g.value=W.texts,B.value=W.values}}else if(s.valueType==="text"){let z=E,W=[];if(Ri(s,$,z,0,W),!Bl(s,W,T.value)){T.value=W;let J=gn(s,W);g.value=J.texts,B.value=J.values}}else{let z=E,W=[];if(zi(s,$,z,0,W),!Bl(s,W,T.value)){T.value=W;let J=gn(s,W);g.value=J.texts,B.value=J.values}}}),s.lazy===!0&&(B.value=Array.isArray(s.modelValue)?s.modelValue:[]),(0,t.watch)([()=>s.source,()=>s.params],async([E,$])=>{s.lazy||E&&(h.value=await A.load(E,$))},{immediate:!0});const w=e,I=(0,t.computed)(()=>({[w]:!0,disabled:p.value,readonly:N.value})),L=(0,t.computed)(()=>({[`${w}__content`]:!0})),V=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),M=(0,t.computed)(()=>{const E={};return V.value&&(E["text-align"]=V.value),E}),q=(0,t.ref)(!1),O=()=>{p.value===!0||N.value===!0||(q.value=!0)},P=E=>{q.value=E},j=(E,$)=>{let z=$.map(J=>{if(J==null)return J;let ae={...J};return Reflect.deleteProperty(ae,"text"),ae[s.textKey]=J.text??"",Reflect.deleteProperty(ae,"value"),ae[s.valueKey]=J.value??"",ae});T.value=z;let W=gn(s,z);g.value=W.texts,B.value=W.values,s.valueType==="text"?(C("change",g.value,z),C("update:modelValue",g.value)):s.valueType==="item"?(C("change",z,z),C("update:modelValue",z)):(C("change",B.value,z),C("update:modelValue",B.value)),C("update:pathNodes",z)},D=E=>{let $=E.map(z=>{if(z==null)return z;let W={...z};return Reflect.deleteProperty(W,"text"),W[s.textKey]=z.text??"",Reflect.deleteProperty(W,"value"),W[s.valueKey]=z.value??"",W});C("pathChange",$)},ee=E=>{k.value=!0,C("focus",B.value,E)},te=E=>{setTimeout(()=>{k.value=!1},0),C("blur",B.value,E)},oe=(0,t.computed)(()=>({[`${w}__append`]:!0,"is-disabled":p.value,"is-readonly":N.value})),H=(0,t.computed)(()=>we(s.unit)>0),Z=(0,t.computed)(()=>we(s.unit)>0&&!k.value),X=(0,t.computed)(()=>({hidden:!Z.value})),Q=E=>{T.value=[],g.value=[],B.value=[],C("update:modelValue",[]),C("change",[],E),C("clear",[]),C("update:pathNodes",[])},R=(0,t.computed)(()=>s.clearable&&!p.value&&!N.value),Y=(0,t.computed)(()=>{let E=B.value&&B.value.length>0;return s.clearable&&E&&k.value}),U=E=>{Y.value?Q(E):O()},_=(0,t.computed)(()=>Y.value&&R.value?r:i),K=(0,t.computed)(()=>({action:!0}));let ne=null;const F=()=>typeof ne=="function"?ne:typeof s.lazyLoad=="function"?s.lazyLoad:(ne=async(E,$)=>{const z=[],W=[];let J=0;if(!E.root){let ae=E;for(;ae;){const de=Tt(s,ae),fe=Vt(s,ae);W.splice(0,0,de),z.splice(0,0,fe),ae=ae._parent}J=z.length}$(await A.load(s.source,{...E,level:J,pathLabels:W,pathValues:z},!0))},ne),G=(0,t.ref)();return b({focus:()=>{G?.value.focus()},blur:()=>{G?.value.blur()},select:()=>{G?.value.select()},setDisabled:E=>{c.value=E},setReadonly:E=>{y.value=E}}),()=>{if(S.value==="on"&&(N.value||p.value))return l({modelValue:x.value},d.slots);const E={class:L.value,style:M.value,ref:G,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:x.value,onClick:O,onFocus:ee,onBlur:te};u&&(E.disabled=!0);const $=[],z=(0,t.h)("input",E);$.push(z);const W=[],J=(0,t.h)(_.value,{class:["action-icon"]}),ae=(0,t.h)("view",{class:K.value,onClick:U},{default:()=>[J]});if(W.push(ae),H.value){const qe=(0,t.h)("view",{class:X.value},[s.unit]);W.push(qe)}const de=(0,t.h)("view",{class:oe.value},{default:()=>W});$.push(de);const fe={default:()=>$};fe.label=d.slots.default,fe.prepend=d.slots.prepend,fe.append=d.slots.append,fe.fixedPreTip=d.slots.fixedPreTip,fe.fixedTip=d.slots.fixedTip;const ke={};ke.visible=q.value,ke["onUpdate:visible"]=P,ke.modelValue=B.value,ke.onChange=j,ke.onPathChange=D,ke.title=s.title,ke.valueKey=s.valueKey,ke.textKey=s.textKey,ke.childrenKey=s.childrenKey,ke.convertConfig=s.convertConfig,s.lazy?(ke.lazy=!0,ke.lazyLoad=F()):ke.options=h.value;const Le={};Le.header=d.slots.header;const Fe=(0,t.h)(a,ke,Le);fe.hide=()=>[Fe];const Ee={...Qe(s,Li),ref:v,class:I.value};return s.prop&&(Ee.prop=`${s.prop}_item`),o(Ee,fe)}}}}var{componentName:Zf,create:Jf,scope:em}=le("cascader-item"),tm=Jf(Gf(Zf,em,Ie,ze,re.CircleClose,re.ArrowRight,rl,!1)),Co=tm,nm=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs=l()})(e,(function(){"use strict";var o=1e3,l=6e4,r=36e5,i="millisecond",a="second",u="minute",s="hour",d="day",v="week",c="month",p="quarter",y="year",N="date",S="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={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(V){var M=["th","st","nd","rd"],q=V%100;return"["+V+(M[(q-20)%10]||M[q]||M[0])+"]"}},f=function(V,M,q){var O=String(V);return!O||O.length>=M?V:""+Array(M+1-O.length).join(q)+V},k={s:f,z:function(V){var M=-V.utcOffset(),q=Math.abs(M),O=Math.floor(q/60),P=q%60;return(M<=0?"+":"-")+f(O,2,"0")+":"+f(P,2,"0")},m:function V(M,q){if(M.date()<q.date())return-V(q,M);var O=12*(q.year()-M.year())+(q.month()-M.month()),P=M.clone().add(O,c),j=q-P<0,D=M.clone().add(O+(j?-1:1),c);return+(-(O+(q-P)/(j?P-D:D-P))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:c,y,w:v,d,D:N,h:s,m:u,s:a,ms:i,Q:p}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},A="en",h={};h[A]=m;var g="$isDayjsObject",x=function(V){return V instanceof I||!(!V||!V[g])},B=function V(M,q,O){var P;if(!M)return A;if(typeof M=="string"){var j=M.toLowerCase();h[j]&&(P=j),q&&(h[j]=q,P=j);var D=M.split("-");if(!P&&D.length>1)return V(D[0])}else{var ee=M.name;h[ee]=M,P=ee}return!O&&P&&(A=P),P||!O&&A},T=function(V,M){if(x(V))return V.clone();var q=typeof M=="object"?M:{};return q.date=V,q.args=arguments,new I(q)},w=k;w.l=B,w.i=x,w.w=function(V,M){return T(V,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var I=(function(){function V(q){this.$L=B(q.locale,null,!0),this.parse(q),this.$x=this.$x||q.x||{},this[g]=!0}var M=V.prototype;return M.parse=function(q){this.$d=(function(O){var P=O.date,j=O.utc;if(P===null)return new Date(NaN);if(w.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var D=P.match(C);if(D){var ee=D[2]-1||0,te=(D[7]||"0").substring(0,3);return j?new Date(Date.UTC(D[1],ee,D[3]||1,D[4]||0,D[5]||0,D[6]||0,te)):new Date(D[1],ee,D[3]||1,D[4]||0,D[5]||0,D[6]||0,te)}}return new Date(P)})(q),this.init()},M.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},M.$utils=function(){return w},M.isValid=function(){return this.$d.toString()!==S},M.isSame=function(q,O){var P=T(q);return this.startOf(O)<=P&&P<=this.endOf(O)},M.isAfter=function(q,O){return T(q)<this.startOf(O)},M.isBefore=function(q,O){return this.endOf(O)<T(q)},M.$g=function(q,O,P){return w.u(q)?this[O]:this.set(P,q)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(q,O){var P=this,j=!!w.u(O)||O,D=w.p(q),ee=function(Y,U){var _=w.w(P.$u?Date.UTC(P.$y,U,Y):new Date(P.$y,U,Y),P);return j?_:_.endOf(d)},te=function(Y,U){return w.w(P.toDate()[Y].apply(P.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(U)),P)},oe=this.$W,H=this.$M,Z=this.$D,X="set"+(this.$u?"UTC":"");switch(D){case y:return j?ee(1,0):ee(31,11);case c:return j?ee(1,H):ee(0,H+1);case v:var Q=this.$locale().weekStart||0,R=(oe<Q?oe+7:oe)-Q;return ee(j?Z-R:Z+(6-R),H);case d:case N:return te(X+"Hours",0);case s:return te(X+"Minutes",1);case u:return te(X+"Seconds",2);case a:return te(X+"Milliseconds",3);default:return this.clone()}},M.endOf=function(q){return this.startOf(q,!1)},M.$set=function(q,O){var P,j=w.p(q),D="set"+(this.$u?"UTC":""),ee=(P={},P[d]=D+"Date",P[N]=D+"Date",P[c]=D+"Month",P[y]=D+"FullYear",P[s]=D+"Hours",P[u]=D+"Minutes",P[a]=D+"Seconds",P[i]=D+"Milliseconds",P)[j],te=j===d?this.$D+(O-this.$W):O;if(j===c||j===y){var oe=this.clone().set(N,1);oe.$d[ee](te),oe.init(),this.$d=oe.set(N,Math.min(this.$D,oe.daysInMonth())).$d}else ee&&this.$d[ee](te);return this.init(),this},M.set=function(q,O){return this.clone().$set(q,O)},M.get=function(q){return this[w.p(q)]()},M.add=function(q,O){var P,j=this;q=Number(q);var D=w.p(O),ee=function(H){var Z=T(j);return w.w(Z.date(Z.date()+Math.round(H*q)),j)};if(D===c)return this.set(c,this.$M+q);if(D===y)return this.set(y,this.$y+q);if(D===d)return ee(1);if(D===v)return ee(7);var te=(P={},P[u]=l,P[s]=r,P[a]=o,P)[D]||1,oe=this.$d.getTime()+q*te;return w.w(oe,this)},M.subtract=function(q,O){return this.add(-1*q,O)},M.format=function(q){var O=this,P=this.$locale();if(!this.isValid())return P.invalidDate||S;var j=q||"YYYY-MM-DDTHH:mm:ssZ",D=w.z(this),ee=this.$H,te=this.$m,oe=this.$M,H=P.weekdays,Z=P.months,X=P.meridiem,Q=function(U,_,K,ne){return U&&(U[_]||U(O,j))||K[_].slice(0,ne)},R=function(U){return w.s(ee%12||12,U,"0")},Y=X||function(U,_,K){var ne=U<12?"AM":"PM";return K?ne.toLowerCase():ne};return j.replace(b,(function(U,_){return _||(function(K){switch(K){case"YY":return String(O.$y).slice(-2);case"YYYY":return w.s(O.$y,4,"0");case"M":return oe+1;case"MM":return w.s(oe+1,2,"0");case"MMM":return Q(P.monthsShort,oe,Z,3);case"MMMM":return Q(Z,oe);case"D":return O.$D;case"DD":return w.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return Q(P.weekdaysMin,O.$W,H,2);case"ddd":return Q(P.weekdaysShort,O.$W,H,3);case"dddd":return H[O.$W];case"H":return String(ee);case"HH":return w.s(ee,2,"0");case"h":return R(1);case"hh":return R(2);case"a":return Y(ee,te,!0);case"A":return Y(ee,te,!1);case"m":return String(te);case"mm":return w.s(te,2,"0");case"s":return String(O.$s);case"ss":return w.s(O.$s,2,"0");case"SSS":return w.s(O.$ms,3,"0");case"Z":return D}return null})(U)||D.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(q,O,P){var j,D=this,ee=w.p(O),te=T(q),oe=(te.utcOffset()-this.utcOffset())*l,H=this-te,Z=function(){return w.m(D,te)};switch(ee){case y:j=Z()/12;break;case c:j=Z();break;case p:j=Z()/3;break;case v:j=(H-oe)/6048e5;break;case d:j=(H-oe)/864e5;break;case s:j=H/r;break;case u:j=H/l;break;case a:j=H/o;break;default:j=H}return P?j:w.a(j)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return h[this.$L]},M.locale=function(q,O){if(!q)return this.$L;var P=this.clone(),j=B(q,O,!0);return j&&(P.$L=j),P},M.clone=function(){return w.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},V})(),L=I.prototype;return T.prototype=L,[["$ms",i],["$s",a],["$m",u],["$H",s],["$W",d],["$M",c],["$y",y],["$D",N]].forEach((function(V){L[V[1]]=function(M){return this.$g(M,V[0],V[1])}})),T.extend=function(V,M){return V.$i||(V(M,I,T),V.$i=!0),T},T.locale=B,T.isDayjs=x,T.unix=function(V){return T(1e3*V)},T.en=h[A],T.Ls=h,T.p={},T}))})),lm=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,i=/\d\d/,a=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},d=function(C){return(C=+C)+(C>68?1900:2e3)},v=function(C){return function(b){this[C]=+b}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(C){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var m=b.match(/([+-]|\d\d)/g),f=60*m[1]+(+m[2]||0);return f===0?0:m[0]==="+"?-f:f})(C)}],p=function(C){var b=s[C];return b&&(b.indexOf?b:b.s.concat(b.f))},y=function(C,b){var m,f=s.meridiem;if(f){for(var k=1;k<=24;k+=1)if(C.indexOf(f(k,0,b))>-1){m=k>12;break}}else m=C===(b?"pm":"PM");return m},N={A:[u,function(C){this.afternoon=y(C,!1)}],a:[u,function(C){this.afternoon=y(C,!0)}],Q:[r,function(C){this.month=3*(C-1)+1}],S:[r,function(C){this.milliseconds=100*+C}],SS:[i,function(C){this.milliseconds=10*+C}],SSS:[/\d{3}/,function(C){this.milliseconds=+C}],s:[a,v("seconds")],ss:[a,v("seconds")],m:[a,v("minutes")],mm:[a,v("minutes")],H:[a,v("hours")],h:[a,v("hours")],HH:[a,v("hours")],hh:[a,v("hours")],D:[a,v("day")],DD:[i,v("day")],Do:[u,function(C){var b=s.ordinal,m=C.match(/\d+/);if(this.day=m[0],b)for(var f=1;f<=31;f+=1)b(f).replace(/\[|\]/g,"")===C&&(this.day=f)}],w:[a,v("week")],ww:[i,v("week")],M:[a,v("month")],MM:[i,v("month")],MMM:[u,function(C){var b=p("months"),m=(p("monthsShort")||b.map((function(f){return f.slice(0,3)}))).indexOf(C)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[u,function(C){var b=p("months").indexOf(C)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,v("year")],YY:[i,function(C){this.year=d(C)}],YYYY:[/\d{4}/,v("year")],Z:c,ZZ:c};function S(C){for(var b=C,m=s&&s.formats,f=(C=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(T,w,I){var L=I&&I.toUpperCase();return w||m[I]||o[I]||m[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(V,M,q){return M||q.slice(1)}))}))).match(l),k=f.length,A=0;A<k;A+=1){var h=f[A],g=N[h],x=g&&g[0],B=g&&g[1];f[A]=B?{regex:x,parser:B}:h.replace(/^\[|\]$/g,"")}return function(T){for(var w={},I=0,L=0;I<k;I+=1){var V=f[I];if(typeof V=="string")L+=V.length;else{var M=V.regex,q=V.parser,O=T.slice(L),P=M.exec(O)[0];q.call(w,P),T=T.replace(P,"")}}return(function(j){var D=j.afternoon;if(D!==void 0){var ee=j.hours;D?ee<12&&(j.hours+=12):ee===12&&(j.hours=0),delete j.afternoon}})(w),w}}return function(C,b,m){m.p.customParseFormat=!0,C&&C.parseTwoDigitYear&&(d=C.parseTwoDigitYear);var f=b.prototype,k=f.parse;f.parse=function(A){var h=A.date,g=A.utc,x=A.args;this.$u=g;var B=x[1];if(typeof B=="string"){var T=x[2]===!0,w=x[3]===!0,I=T||w,L=x[2];w&&(L=x[2]),s=this.$locale(),!T&&L&&(s=m.Ls[L]),this.$d=(function(O,P,j,D){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*O);var ee=S(P)(O),te=ee.year,oe=ee.month,H=ee.day,Z=ee.hours,X=ee.minutes,Q=ee.seconds,R=ee.milliseconds,Y=ee.zone,U=ee.week,_=new Date,K=H||(te||oe?1:_.getDate()),ne=te||_.getFullYear(),F=0;te&&!oe||(F=oe>0?oe-1:_.getMonth());var G,E=Z||0,$=X||0,z=Q||0,W=R||0;return Y?new Date(Date.UTC(ne,F,K,E,$,z,W+60*Y.offset*1e3)):j?new Date(Date.UTC(ne,F,K,E,$,z,W)):(G=new Date(ne,F,K,E,$,z,W),U&&(G=D(G).week(U).toDate()),G)}catch{return new Date("")}})(h,B,g,m),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),I&&h!=this.format(B)&&(this.$d=new Date("")),s={}}else if(B instanceof Array)for(var V=B.length,M=1;M<=V;M+=1){x[1]=B[M-1];var q=m.apply(this,x);if(q.isValid()){this.$d=q.$d,this.$L=q.$L,this.init();break}M===V&&(this.$d=new Date(""))}else k.call(this,A)}}}))})),om=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(o,l){var r=l.prototype,i=r.format;r.format=function(a){var u=this,s=this.$locale();if(!this.isValid())return i.bind(this)(a);var d=this.$utils(),v=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(c){switch(c){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),c==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),c==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return c}}));return i.bind(this)(v)}}}))})),am=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(o,l,r){var i=l.prototype,a=function(c){return c&&(c.indexOf?c:c.s)},u=function(c,p,y,N,S){var C=c.name?c:c.$locale(),b=a(C[p]),m=a(C[y]),f=b||m.map((function(A){return A.slice(0,N)}));if(!S)return f;var k=C.weekStart;return f.map((function(A,h){return f[(h+(k||0))%7]}))},s=function(){return r.Ls[r.locale()]},d=function(c,p){return c.formats[p]||(function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(N,S,C){return S||C.slice(1)}))})(c.formats[p.toUpperCase()])},v=function(){var c=this;return{months:function(p){return p?p.format("MMMM"):u(c,"months")},monthsShort:function(p){return p?p.format("MMM"):u(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(c,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(c,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return d(c.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return v.bind(this)()},r.localeData=function(){var c=s();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(p){return d(c,p)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(c){return u(s(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return u(s(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return u(s(),"weekdaysMin","weekdays",2,c)}}}))})),rm=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var o="week",l="year";return function(r,i,a){var u=i.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var v=a(this).startOf(l).add(1,l).date(d),c=a(this).endOf(o);if(v.isBefore(c))return 1}var p=a(this).startOf(l).date(d).startOf(o).subtract(1,"millisecond"),y=this.diff(p,o,!0);return y<0?a(this).startOf("week").week():Math.ceil(y)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})),im=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(o,l){l.prototype.weekYear=function(){var r=this.month(),i=this.week(),a=this.year();return i===1&&r===11?a+1:r===0&&i>=52?a-1:a}}}))})),sm=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(o,l,r){l.prototype.dayOfYear=function(i){var a=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return i==null?a:this.add(i-a,"day")}}}))})),um=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrAfter=function(r,i){return this.isSame(r,i)||this.isAfter(r,i)}}}))})),cm=Ye(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrBefore=function(r,i){return this.isSame(r,i)||this.isBefore(r,i)}}}))})),_e=Xe(nm(),1),dm=Xe(lm(),1),fm=Xe(om(),1),mm=Xe(am(),1),pm=Xe(rm(),1),vm=Xe(im(),1),hm=Xe(sm(),1),gm=Xe(um(),1),ym=Xe(cm(),1);_e.default.extend(mm.default);_e.default.extend(fm.default);_e.default.extend(dm.default);_e.default.extend(pm.default);_e.default.extend(vm.default);_e.default.extend(hm.default);_e.default.extend(gm.default);_e.default.extend(ym.default);var ct={format(e,n="YYYY-MM-DD"){return(0,_e.default)(e).format(n)},parser(e,n){return(0,_e.default)(e,n).toDate()},getDay(e,n,o){let l=n??new Date;const r=e*(1e3*60*60*24);return l=new Date(l.getTime()+r),o=o??"YYYY-MM-DD",this.format(l,o)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){let l=new Date(e+"/"+n+"/"+o).getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},compare(e,n,o){const l=typeof e=="string"?this.parser(e,o):e,r=typeof n=="string"?this.parser(n,o):n,i=l.getTime(),a=r.getTime();return i==a?0:i>a?1:-1},between(e,n,o,l){let r;l==="year"?r=new Date(new Date(n).setFullYear(n.getFullYear()+o)):l==="month"?r=new Date(new Date(n).setMonth(n.getMonth()+o)):r=new Date(new Date(n).setDate(n.getDate()+o));const i=e.getTime(),a=r.getTime(),u=n.getTime();return a>u?i>=u&&i<=a:i>=a&&i<=u},inScope4Day(e,n,o){return this.between(e,n,o,"day")},inScope4Month(e,n,o){return this.between(e,n,o,"month")},inScope4Year(e,n,o){return this.between(e,n,o,"year")}},Ar=new Date().getFullYear(),No={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"},Dn=(e,n,o)=>{let l;if(We(n)?l=n:typeof n=="string"&&we(n)>0?l=ct.parser(n,o):l=new Date,l.toString()==="Invalid Date")return null;let r=Math.max(l.getTime(),e.minDate.getTime());return r=Math.min(r,e.maxDate.getTime()),new Date(r)},jl=(e,n,o)=>{We(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),o)},Ao={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(Ar-10,0,1),validator:We},maxDate:{type:Date,default:()=>new Date(Ar+10,11,31),validator:We},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:bm,scope:Sm}=le("date-picker"),km=bm({components:{Picker:un},props:{...Ao},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=(0,he.useFoxI18n)(Sm),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds"),today:o("today"),fullWeekdays:JSON.parse(o("fullWeekdays"))},r=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,f=>{r.value=f});function i(f,k){return new Date(f,k,0).getDate()}const a=(f,k)=>{const A=e[`${f}Date`],h=A.getFullYear();let g=1,x=1,B=0,T=0;f==="max"&&(g=12,x=i(k.getFullYear(),k.getMonth()+1),B=23,T=59);const w=T;return k.getFullYear()===h&&(g=A.getMonth()+1,k.getMonth()+1===g&&(x=A.getDate(),k.getDate()===x&&(B=A.getHours(),k.getHours()===B&&(T=A.getMinutes())))),{[`${f}Year`]:h,[`${f}Month`]:g,[`${f}Date`]:x,[`${f}Hour`]:B,[`${f}Minute`]:T,[`${f}Seconds`]:w}},u=(0,t.computed)(()=>{if(!p.value)return[];const{maxYear:f,maxDate:k,maxMonth:A,maxHour:h,maxMinute:g,maxSeconds:x}=a("max",p.value),{minYear:B,minDate:T,minMonth:w,minHour:I,minMinute:L,minSeconds:V}=a("min",p.value);let M=[{type:"year",range:[B,f]},{type:"month",range:[w,A]},{type:"day",range:[T,k]},{type:"hour",range:[I,h]},{type:"minute",range:[L,g]},{type:"seconds",range:[V,x]}];switch(e.type){case"date":M=M.slice(0,3);break;case"datetime":M=M.slice(0,5);break;case"time":M=M.slice(3,6);break;case"year-month":M=M.slice(0,2);break;case"month-day":M=M.slice(1,3);break;case"datehour":M=M.slice(0,4);break;case"hour-minute":M=M.slice(3,5);break}return M}),s=(f,k,A,h,g)=>{const x=[];for(;f<=k;){let B=!0;if(typeof e.itemFilter=="function"){const T={text:`${f}`,value:f,type:A,currentYearMonth:h};B=e.itemFilter(T)}if(B)if(typeof e.itemFormatter=="function"){const T={text:`${f}`,value:f,type:A,currentYearMonth:h};e.itemFormatter(T),x.push({text:T.text,value:T.value})}else if(e.isShowChinese){let T=`${f}${l[A]}`;if(A==="day"){if(h[0]===g[0]&&h[1]===g[1]&&f===g[2])T=l.today;else{const w=new Date(h[0],h[1],f).getDay();T=`${T} ${l.fullWeekdays[w]}`}x.push({text:T,value:f})}else x.push({text:f+l[A],value:f})}else x.push({text:`${f}`,value:f});A==="minute"?f+=e.minuteStep:f++}return x},d=(0,t.computed)(()=>{const f=new Date,k=[f.getFullYear(),f.getMonth(),f.getDate()],A=[];p.value&&(A[0]=p.value.getFullYear(),A[1]=p.value.getMonth());let h=[];return u.value.forEach(g=>{let x=s(g.range[0],g.range[1],g.type,A,k);x&&h.push(x)}),h}),v=(f,k)=>f==="year"?k.getFullYear():f==="month"?k.getMonth()+1:f==="day"?k.getDate():f==="hour"?k.getHours():f==="minute"?k.getMinutes():f==="seconds"?k.getSeconds():0,c=(0,t.ref)(),p=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,f=>{let k;if(typeof f=="string"?f.length==0||f==="Invalid Date"?k=new Date:e.valueFormat?k=Dn(e,e.modelValue,e.valueFormat):k=Dn(e,f,No[e.type]):We(f)?k=f:k=new Date,!!k&&(!p.value||k.getTime()!==p.value.getTime())){p.value=k;let A=[];u.value.forEach(h=>{let g=v(h.type,k);A.push(g)}),c.value=A}},{immediate:!0});const y=f=>{if(!f||f.length===0){p.value=new Date;let k=[];u.value.forEach(A=>{let h=v(A.type,p.value);k.push(h)}),c.value=k;return}if(e.type==="date"){const k=f[0],A=f[1]-1,h=Math.min(f[2],i(k,A+1));h!==f[2]&&(f[2]=h),p.value=new Date(k,A,h)}else if(e.type==="datetime"){const k=f[0],A=f[1]-1,h=Math.min(f[2],i(k,A+1)),g=f[3],x=f[4];h!==f[2]&&(f[2]=h),p.value=new Date(k,A,h,g,x)}else if(e.type==="time"){const k=f[0],A=f[1],h=f[2],g=p.value??new Date,x=new Date(g.getFullYear(),g.getMonth(),g.getDate(),k,A,h);p.value=x}else if(e.type==="year-month"){const k=f[0],A=f[1]-1;p.value=new Date(k,A)}else if(e.type==="month-day"){const k=(p.value??new Date).getFullYear(),A=f[0]-1,h=Math.min(f[1],i(k,A+1));h!==f[1]&&(f[1]=h);const g=new Date(k,A,h);p.value=g}else if(e.type==="datehour"){const k=f[0],A=f[1]-1,h=Math.min(f[2],i(k,A+1)),g=f[3];h!==f[2]&&(f[2]=h),p.value=new Date(k,A,h,g)}else if(e.type==="hour-minute"){const k=f[0],A=f[1],h=p.value??new Date,g=new Date(h.getFullYear(),h.getMonth(),h.getDate(),k,A);p.value=g}c.value=f};return{columns:d,dateIndexs:c,show:r,onChange:f=>{y(f)},onClose:()=>{n("update:close",!1)},onConfirm:f=>{y(f);const k=p.value??new Date;e.valueFormat?n("update:modelValue",jl(e,k,e.valueFormat)):n("update:modelValue",k),n("confirm",f)},onClear:()=>{n("clear")},onUpdateVisible:f=>{r.value=f,n("update:visible",f)}}}});function wm(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(a,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"top")]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}var il=ie(km,[["render",wm]]),{componentName:Cm,create:Nm}=le("button"),Am=Nm({components:{Loading:re.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:o}){const{type:l,size:r,shape:i,disabled:a,loading:u,color:s,plain:d,block:v}=(0,t.toRefs)(e);return{handleClick:p=>{!u.value&&!a.value&&n("click",p)},classes:(0,t.computed)(()=>{const p=Cm;return{[p]:!0,[`${p}--${l.value}`]:l.value,[`${p}--${r.value}`]:r.value,[`${p}--${i.value}`]:i.value,[`${p}--plain`]:d.value,[`${p}--block`]:v.value,[`${p}--disabled`]:a.value,[`${p}--loading`]:u.value}}),getStyle:(0,t.computed)(()=>{const p={};return s?.value&&(d.value?(p.color=s.value,p.background="#fff",s.value?.includes("gradient")||(p.borderColor=s.value)):(p.color="#fff",p.background=s.value)),p})}}}),Bm={class:"fox-button__wrap"};function Tm(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Loading");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle),onClick:n[0]||(n[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[(0,t.createElementVNode)("view",Bm,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,class:"fox-icon-loading"})):(0,t.createCommentVNode)("",!0),e.$slots.icon&&!e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:1}):(0,t.createCommentVNode)("",!0),e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)({"fox-button__text":e.$slots.icon||e.loading})},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)])],6)}var vt=ie(Am,[["render",Tm]]),Vm={format:{type:[String]},placeholder:{type:[String]},textAlign:{type:[String]},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}},xm={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1}};function $m(e){let n=e.format;return n||(n=No[e.type??"date"]),n}var Em={...ge,...Se,...Ao,...Vm,...xm};function Dm(e,n,o,l,r,i,a,u,s,d,v=!1){return{props:Em,emits:["change","update:modelValue","update:longTerm","blur","focus","clear","setValue"],setup(c,p){const{itemTemplateRef:y,innerDisabled:N,disabled:S,innerReadonly:C,readonly:b,browse:m}=$e(c),{emitEvent:f,exposeApi:k}=Ve({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return b.value},get disabled(){return S.value},get props(){return c},context:p,get templateRefProxy(){return y.value}},c.prop??p.attrs.name),{toLocaleRefs:A}=(0,he.useFoxI18n)(n),h=A(c,["placeholder"]),g=(0,t.ref)(!1),B=Re(c,"modelValue",J=>J==null?null:typeof J=="string"?J.length==0?null:c.valueFormat?Dn(c,J,c.valueFormat)??J:Dn(c,J,No[c.type])??J:We(J)?J:null,f),T=(0,t.computed)(()=>{if($.value&&ne.value)return ne.value;if(!B.value)return"";const J=$m(c);return jl(c,B.value,J)}),w=e,I=(0,t.computed)(()=>({[w]:!0,disabled:S.value,readonly:b.value,"is-long-term":$.value})),L=(0,t.computed)(()=>({[`${w}__content`]:!0})),V=Ae((0,t.computed)(()=>c.textAlign),"textAlign"),M=(0,t.computed)(()=>{const J={};return V.value&&(J["text-align"]=V.value),J}),q=(0,t.ref)(!1),O=()=>{q.value=!0},P=()=>{q.value=!1},j=J=>{q.value=J},D=J=>{if(c.isLongTerm&&$.value===!0&&($.value=!1,f("update:longTerm",$.value)),B.value=J,c.valueFormat){let ae=jl(c,J,c.valueFormat);f("update:modelValue",ae),f("change",ae,{})}else f("update:modelValue",J),f("change",J,{})},ee=J=>{let ae=J.target.value;g.value=!0,f("focus",ae,J)},te=J=>{setTimeout(()=>{g.value=!1},0);let ae=J.target.value;c.maxLength&&ae.length>Number(c.maxLength)&&(ae=ae.slice(0,Number(c.maxLength))),f("blur",ae,J)},oe=(0,t.computed)(()=>({[`${e}__append`]:!0})),H=(0,t.computed)(()=>we(c.unit)>0),Z=(0,t.computed)(()=>we(c.unit)>0&&!g.value),X=(0,t.computed)(()=>({hidden:!Z.value})),Q=J=>{B.value="",f("update:modelValue",B.value),f("change","",J),c.isLongTerm&&($.value=!1,f("update:longTerm",$.value)),f("clear"),P()},R=(0,t.computed)(()=>c.clearable&&!S.value&&!b.value),Y=(0,t.computed)(()=>{let J=we(B.value)>0;return c.clearable&&J&&g.value}),U=J=>{Y.value?Q(J):O()},_=(0,t.computed)(()=>Y.value&&R.value?r:i),K=(0,t.computed)(()=>({action:!0})),ne=Ae((0,t.computed)(()=>c.longTermText),"longTermText",wt.Near),F=Ae((0,t.computed)(()=>c.longTermActionLabel),"longTermActionLabel",wt.Near),G=Ae((0,t.computed)(()=>c.longTermValue),"longTermValue",wt.Near);let E=null;const $=(0,t.ref)(ye(c.longTerm)),z=J=>{let ae=Array.isArray(J)?J[0]:J;return Array.isArray(G.value)?ae=G.value[1]??G.value[0]:ae=$.value,ae||(ae=c.valueFormat?ct.format(new Date,c.valueFormat):new Date),ae},W=()=>{$.value=!$.value,f("update:longTerm",$.value),$.value?(E=B.value,B.value=G.value||B.value,f("update:modelValue",B.value)):(B.value=E,f("update:modelValue",B.value)),P()};if(ye(c.isLongTerm)){const J=()=>{$.value===!0?(E=B.value,B.value=z(B.value),f("update:modelValue",B.value)):G.value&&xe(G.value,B.value)&&($.value=!0)};J(),(0,t.watch)([()=>c.longTerm],([ae])=>{$.value!==ae&&J()})}return k({setDisabled:J=>{N.value=J},setReadonly:J=>{C.value=J},showPicker:O,hidePicker:P}),()=>{if(m.value==="on"&&(b.value||S.value))return l({modelValue:T.value},p.slots);const J={class:L.value,style:M.value,type:"text",maxlength:c.maxLength,placeholder:h.placeholder.value,readonly:!0,unselectable:"on",value:T.value,onClick:O,onFocus:ee,onBlur:te};v&&(J.disabled=!0);const ae=[],de=(0,t.h)("input",J);ae.push(de);const fe=[],ke=(0,t.h)(_.value,{class:["action-icon"]}),Le=(0,t.h)("view",{class:K.value,onClick:U},{default:()=>[ke]});if(fe.push(Le),H.value){const qt=(0,t.h)("view",{class:X.value},[c.unit]);fe.push(qt)}const Fe=(0,t.h)("view",{class:oe.value},{default:()=>fe});ae.push(Fe);const Ee={default:()=>ae};Ee.label=p.slots.default,Ee.prepend=p.slots.prepend,Ee.append=p.slots.append,Ee.fixedPreTip=p.slots.fixedPreTip,Ee.fixedTip=p.slots.fixedTip;const qe=be(c,Ao);qe.valueFormat=null,qe.disabled=!1,qe.readonly=S.value||b.value,qe.visible=q.value,qe["onUpdate:visible"]=j,qe.modelValue=B.value,qe["onUpdate:modelValue"]=D,qe.onClear=Q;const ht={};if(p.slots.top&&(ht.top=p.slots.top),c.isLongTerm&&!b.value&&!S.value){const qt={default:()=>F.value};if($.value){const us={class:["long-term-icon","is-active"]};qt.icon=()=>(0,t.h)(d,us)}else qt.icon=()=>(0,t.h)(s);const rs={plain:!0,type:"primary",class:"long-term-button",onClick:W};$.value;const is=(0,t.h)(u,rs,qt),ss=(0,t.h)("view",{class:`${w}__long-term-bar`},[is]);ht.default=()=>ss}else p.slots.bottom&&(ht.default=p.slots.bottom);const as=(0,t.h)(a,qe,ht);Ee.hide=()=>[as];const Qa={...be(c,Se,ge),class:I.value,ref:y};return c.prop&&(Qa.prop=`${c.prop}_item`),o(Qa,Ee)}}}}var{create:Im,componentName:qm,scope:Pm}=le("date-item"),Mm=Im(Dm(qm,Pm,Ie,ze,re.CircleClose,re.Date,il,vt,re.CheckNormal,re.Checked,!1)),Bo=Mm,se={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,o){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+o).getDay()]},getMonthPreDay:function(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays:function(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit:function(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},getDay:function(e){e=e||0;let n=new Date;const o=e*(1e3*60*60*24);return n=new Date(n.getTime()+o),this.date2Str(n)},compareDate:function(e,n){return!(new Date(e.replace("-","/").replace("-","/"))>=new Date(n.replace("-","/").replace("-","/")))},isEqual:function(e,n){return new Date(e).getTime()==new Date(n).getTime()},getMonthWeek:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o));let i=r.getDay();const a=r.getDate();let u=6-i;return l!==0&&(i=i==0?7:i,u=7-i),Math.ceil((a+u)/7)},getYearWeek:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),i=new Date(Number(e),0,1),a=Math.round((r.valueOf()-i.valueOf())/864e5);return Math.ceil((a+(i.getDay()+1-1))/7)},getWeekDate:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),i=r.getTime();let a=r.getDay();if(l===0){const s=i-a*864e5,d=i+(6-a)*864e5;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}else{a=a==0?7:a;const u=1440*60*1e3,s=i-(a-1)*u,d=i+(7-a)*u;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}},formatResultDate:function(e){const n=[...e.split("-")];return n[2]=se.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=se.getWhatDay(+n[0],+n[1],+n[2]),n}},{create:Rm,scope:zm}=le("calendar-pane"),Lm=Rm({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String},confirmText:{type:String},startText:{type:String},endText:{type:String},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:se.getDay(0)},endDate:{type:String,default:se.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o,expose:l}){const{toLocaleRefs:r,t:i}=(0,he.useFoxI18n)(zm),a=r(e,["title","confirmText","startText","endText","today"]),u=JSON.parse(i("weekdays")),s=(0,t.ref)([...u.slice(e.firstDayOfWeek,7),...u.slice(0,e.firstDayOfWeek)]),d=(0,t.ref)(null),v=(0,t.ref)(null),c=(0,t.ref)(null),p=(0,t.ref)(null),y=(0,t.ref)(0),N=(0,t.computed)(()=>m.monthsData.slice(m.defaultRange[0],m.defaultRange[1])),S=(0,t.computed)(()=>o.btn),C=(0,t.computed)(()=>o["top-info"]),b=(0,t.computed)(()=>o["bottom-info"]),m=(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}),f=R=>R.split("-"),k=R=>se.isEqual(m.currDate[0],R),A=R=>se.isEqual(m.currDate[1],R),h=R=>m.currDate?.length>0?m.currDate?.some(Y=>se.isEqual(Y,R)):!1,g=(R,Y)=>Y.curData[0]+"-"+Y.curData[1]+"-"+se.getNumTwoBit(+R.day),x=(R,Y)=>{const U=g(R,Y),{type:_}=e;return R.type=="curr"?se.isEqual(m.currDate,U)||(_=="range"||_=="week")&&(k(U)||A(U))||_=="multiple"&&h(U)?`${m.dayPrefix}--active`:m.propStartDate&&se.compareDate(U,m.propStartDate)||m.propEndDate&&se.compareDate(m.propEndDate,U)?`${m.dayPrefix}--disabled`:(_=="range"||_=="week")&&Array.isArray(m.currDate)&&Object.values(m.currDate).length==2&&se.compareDate(m.currDate[0],U)&&se.compareDate(U,m.currDate[1])?`${m.dayPrefix}--choose`:null:`${m.dayPrefix}--disabled`},B=()=>{const{type:R}=e;if(R=="range"&&m.chooseData.length==2||R!="range"){let Y=m.chooseData.slice(0);R=="week"&&(Y={weekDate:[w(m.chooseData[0]),w(m.chooseData[1])]}),n("choose",Y),e.poppable&&n("update")}},T=(R,Y,U=!1)=>{if(x(R,Y)!=`${m.dayPrefix}--disabled`){const{type:_}=e;let[K,ne]=Y.curData,F=[...Y.curData];if(F[2]=se.getNumTwoBit(Number(R.day)),F[3]=`${F[0]}-${F[1]}-${F[2]}`,F[4]=se.getWhatDay(+F[0],+F[1],+F[2]),_=="multiple")if(m.currDate?.length>0){let G;m.currDate?.forEach((E,$)=>{E==F[3]&&(G=$)}),U?m.chooseData.push([...F]):G!==void 0?(m.currDate.splice(G,1),m.chooseData.splice(G,1)):(m.currDate.push(F[3]),m.chooseData.push([...F]))}else m.currDate=[F[3]],m.chooseData=[[...F]];else if(_=="range"){let G=Object.values(m.currDate).length;G==2||G==0?m.currDate=[F[3]]:se.compareDate(m.currDate[0],F[3])?Array.isArray(m.currDate)&&m.currDate.push(F[3]):Array.isArray(m.currDate)&&m.currDate.unshift(F[3]),m.chooseData.length==2||!m.chooseData.length?m.chooseData=[[...F]]:se.compareDate(m.chooseData[0][3],F[3])?m.chooseData=[...m.chooseData,[...F]]:m.chooseData=[[...F],...m.chooseData]}else if(_=="week"){let G=se.getWeekDate(K,ne,R.day,e.firstDayOfWeek);m.propStartDate&&se.compareDate(G[0],m.propStartDate)&&G.splice(0,1,m.propStartDate),m.propEndDate&&se.compareDate(m.propEndDate,G[1])&&G.splice(1,1,m.propEndDate),m.currDate=G,m.chooseData=[se.formatResultDate(G[0]),se.formatResultDate(G[1])]}else m.currDate=F[3],m.chooseData=[...F];if(!U){let G=m.chooseData;_=="week"&&(G={weekDate:[w(m.chooseData[0]),w(m.chooseData[1])]}),n("select",G),(e.isAutoBackFill||!e.poppable)&&B()}}},w=R=>{let[Y,U,_]=R;return{date:R,monthWeekNum:se.getMonthWeek(Y,U,_,e.firstDayOfWeek),yearWeekNum:se.getYearWeek(Y,U,_,e.firstDayOfWeek)}},I=R=>{const Y=R=="prev"?m.monthsData[0]:m.monthsData[m.monthsData.length-1];let U=parseInt(Y.curData[0]),_=parseInt(Y.curData[1].toString().replace(/^0/,""));switch(R){case"prev":_==1&&(U-=1),_=_==1?12:--_;break;case"next":_==12&&(U+=1),_=_==12?1:++_;break}return[U+"",se.getNumTwoBit(_),se.getMonthDays(String(U),String(_))+""]},L=(R,Y,U)=>{let{year:_,month:K}=U;return Y=="prev"&&R>=7&&(R-=7),Array.from(Array(R),(ne,F)=>({day:String(F+1),type:Y,year:_,month:K}))},V=(R,Y,U,_)=>{R=R-e.firstDayOfWeek;let{year:K,month:ne}=U;return Y=="prev"&&R>=7&&(R-=7),Array.from(Array(_),(F,G)=>({day:String(G+1),type:Y,year:K,month:ne})).slice(_-R)},M=(R,Y)=>{const U=se.getMonthPreDay(+R[0],+R[1]);let _=Number(R[1])-1,K=Number(R[0]);_<=0&&(_=12,K+=1);const ne=se.getMonthDays(String(R[0]),String(R[1])),F=se.getMonthDays(K+"",_+""),G={year:R[0],month:R[1]},E={curData:R,title:i("monthTitle",{year:G.year,month:G.month}),monthData:[...V(U,"prev",{month:String(_),year:String(K)},F),...L(ne,"curr",G)],cssHeight:0,cssScrollHeight:0};E.cssHeight=39+64*(E.monthData.length>35?6:5);let $=0;m.monthsData.length>0&&($=m.monthsData[m.monthsData.length-1].cssScrollHeight+m.monthsData[m.monthsData.length-1].cssHeight),E.cssScrollHeight=$,Y=="next"?(!m.endData||!se.compareDate(`${m.endData[0]}-${m.endData[1]}-${se.getMonthDays(m.endData[0],m.endData[1])}`,`${R[0]}-${R[1]}-${R[2]}`))&&m.monthsData.push(E):!m.startData||!se.compareDate(`${R[0]}-${R[1]}-${R[2]}`,`${m.startData[0]}-${m.startData[1]}-01`)?m.monthsData.unshift(E):m.unLoadPrev=!0},q=()=>{let R=e.startDate?e.startDate:se.getDay(0),Y=e.endDate?e.endDate:se.getDay(365);m.propStartDate=R,m.propEndDate=Y,m.startData=f(R),m.endData=f(Y),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(m.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const U={year:Number(m.startData[0]),month:Number(m.startData[1])},_={year:Number(m.endData[0]),month:Number(m.endData[1])};let K=_.month-U.month;_.year-U.year>0&&(K=K+12*(_.year-U.year)),K<=0&&(K=1),M(m.startData,"next");let ne=1;do M(I("next"),"next");while(ne++<K);if(m.monthsNum=K,e.type=="range"&&Array.isArray(m.currDate))m.currDate.length>0&&(R&&se.compareDate(m.currDate[0],R)&&m.currDate.splice(0,1,R),Y&&se.compareDate(Y,m.currDate[1])&&m.currDate.splice(1,1,Y),m.defaultData=[...f(m.currDate[0]),...f(m.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(m.currDate)){if(m.currDate.length>0){let F=[],G={};m.currDate.forEach(E=>{R&&!se.compareDate(E,R)&&Y&&!se.compareDate(Y,E)&&(Object.hasOwnProperty.call(G,E)||(F.push(E),G[E]=E))}),m.currDate=[...F],m.defaultData=[...f(F[0])]}}else if(e.type=="week"&&Array.isArray(m.currDate)){if(m.currDate.length>0){let[F,G,E]=f(m.currDate[0]),$=se.getWeekDate(F,G,E,e.firstDayOfWeek);m.currDate=$,R&&se.compareDate(m.currDate[0],R)&&m.currDate.splice(0,1,R),Y&&se.compareDate(Y,m.currDate[1])&&m.currDate.splice(1,1,Y),m.defaultData=[...f(m.currDate[0]),...f(m.currDate[1])]}}else m.currDate&&(R&&se.compareDate(m.currDate,R)?m.currDate=R:Y&&!se.compareDate(m.currDate,Y)&&(m.currDate=Y),m.defaultData=[...f(m.currDate)])};l({scrollToDate:R=>{se.compareDate(R,m.propStartDate)?R=m.propStartDate:se.compareDate(R,m.propEndDate)||(R=m.propEndDate);let Y=f(R);m.monthsData.forEach((U,_)=>{if(U.title==i("monthTitle",{year:Y[0],month:Y[1]})&&d.value){let K=m.monthsData[_].cssScrollHeight-d.value.scrollTop;if(e.toDateAnimation){let ne=0,F=setInterval(()=>{if(ne++,d.value){let G=K/10;d.value.scrollTop=d.value.scrollTop+G}ne>=10&&(clearInterval(F),d.value&&(d.value.scrollTop=m.monthsData[_].cssScrollHeight))},40)}else d.value.scrollTop=m.monthsData[_].cssScrollHeight}})},initPosition:()=>{d?.value&&(d.value.scrollTop=m.monthsData[m.currentIndex].cssScrollHeight)},doLayout:()=>{let R=0,Y=0;m.defaultData.length>0&&m.monthsData.forEach((K,ne)=>{K.title==i("monthTitle",{year:m.defaultData[0],month:m.defaultData[1]})&&(R=ne),(e.type=="range"||e.type=="week")&&K.title==i("monthTitle",{year:m.defaultData[3],month:m.defaultData[4]})&&(Y=ne)}),D(m.monthsNum,R),m.currentIndex=R,m.yearMonthTitle=m.monthsData[m.currentIndex].title,m.defaultData.length>0&&(m.isRange?(T({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0),T({day:m.defaultData[5],type:"curr"},m.monthsData[Y],!0)):e.type=="week"?T({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0):e.type=="multiple"?[...m.currDate].forEach(K=>{let ne=f(K),F=m.currentIndex;m.monthsData.forEach((G,E)=>{G.title==i("monthTitle",{year:ne[0],month:ne[1]})&&(F=E)}),T({day:ne[2],type:"curr"},m.monthsData[F],!0)}):T({day:m.defaultData[2],type:"curr"},m.monthsData[m.currentIndex],!0));let U=m.monthsData[m.monthsData.length-1],_=U.cssHeight+U.cssScrollHeight;Je(()=>{d?.value&&v?.value&&p?.value&&(y.value=d.value.clientHeight,v.value.style.height=`${_}px`,d.value.scrollTop=m.monthsData[m.currentIndex].cssScrollHeight)}),m.avgHeight=Math.floor(_/(m.monthsNum+1))}});const D=(R,Y)=>{R>=3?Y>0&&Y<R?m.defaultRange=[Y-1,Y+3]:Y==0?m.defaultRange=[Y,Y+4]:Y==R&&(m.defaultRange=[Y-2,Y+2]):m.defaultRange=[0,R+2];let U=m.monthsData[m.defaultRange[0]].cssScrollHeight;m.translateY=U},ee=(R,Y)=>(e.type=="range"||e.type=="week")&&R.type=="curr"&&x(R,Y)=="fox-calendar__day--active",te=(R,Y)=>ee(R,Y)&&k(g(R,Y)),oe=(R,Y)=>m.currDate.length>=2&&A(g(R,Y))?ee(R,Y):!1,H=()=>{if(m.currDate.length>=2)return se.isEqual(m.currDate[0],m.currDate[1])},Z=R=>{const Y=`${R.year}-${R.month}-${Number(R.day)<10?"0"+R.day:R.day}`;return se.isEqual(Y,se.date2Str(new Date))},X=R=>{if(m.monthsData.length<=1)return;const Y=R.target.scrollTop;let U=Math.floor(Y/m.avgHeight);if(U==0)Y>=m.monthsData[U+1].cssScrollHeight&&(U+=1);else if(U>0&&U<m.monthsNum-1)Y>=m.monthsData[U+1].cssScrollHeight&&(U+=1),Y<m.monthsData[U].cssScrollHeight&&(U-=1);else{const _=Math.round(Y+y.value);_<m.monthsData[U].cssScrollHeight+m.monthsData[U].cssHeight&&Y>m.monthsData[U-1].cssScrollHeight&&(U-=1),U+1<=m.monthsNum&&_>=m.monthsData[U+1].cssScrollHeight+m.monthsData[U+1].cssHeight&&(U+=1),U>=1&&Y<m.monthsData[U-1].cssScrollHeight&&(U-=1)}m.currentIndex!==U&&(m.currentIndex=U,D(m.monthsNum,U)),m.yearMonthTitle=m.monthsData[U].title},Q=()=>{m.chooseData.splice(0),m.monthsData.splice(0),q()};return q(),(0,t.watch)(()=>e.defaultValue,R=>{R&&e.poppable&&Q()}),{weeks:s,compConthsData:N,showTopBtn:S,topInfo:C,bottomInfo:b,rangeTip:H,mothsViewScroll:X,getClass:x,isStartTip:te,isEndTip:oe,chooseDay:T,isCurrDay:Z,confirm:B,months:d,...(0,t.toRefs)(m),...(0,t.toRefs)(e),...a,monthsPanel:v,weeksPanel:c,viewArea:p}}}),Fm={class:"fox-calendar__header"},Om={key:0,class:"fox-calendar__header-title"},Km={key:1,class:"fox-calendar__header-slot"},Um={key:2,class:"fox-calendar__header-subtitle"},_m={class:"fox-calendar__weekdays",ref:"weeksPanel"},Hm={class:"fox-calendar__panel",ref:"monthsPanel"},jm={class:"fox-calendar__month-title"},Wm={class:"fox-calendar__days"},Ym=["onClick"],Xm={class:"fox-calendar__day-value"},Qm={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Gm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Zm={key:2,class:"fox-calendar__day-tips--curr"},Jm={key:4,class:"fox-calendar__day-tip"},e0={key:0,class:"fox-calendar__footer"};function t0(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[(0,t.createElementVNode)("view",Fm,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Om,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",Km,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Um,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",_m,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.weeks,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:u},(0,t.toDisplayString)(a),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...a)=>e.mothsViewScroll&&e.mothsViewScroll(...a))},[(0,t.createElementVNode)("view",Hm,[(0,t.createElementVNode)("view",{class:"fox-calendar__body",ref:"viewArea",style:(0,t.normalizeStyle)({transform:`translateY(${e.translateY}px)`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.compConthsData,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:u},[(0,t.createElementVNode)("view",jm,(0,t.toDisplayString)(a.title),1),(0,t.createElementVNode)("view",Wm,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.monthData,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(s,a)]),onClick:v=>e.chooseDay(s,a)},[(0,t.createElementVNode)("view",Xm,[(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",Qm,[(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",Gm,[(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",Zm,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(s,a)?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:3,class:(0,t.normalizeClass)(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},(0,t.toDisplayString)(e.startText),3)):(0,t.createCommentVNode)("",!0),e.isEndTip(s,a)?((0,t.openBlock)(),(0,t.createElementBlock)("view",Jm,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,Ym))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",e0,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...a)=>e.confirm&&e.confirm(...a))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var n0=ie(Lm,[["render",t0]]),l0=(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}}),o0=l0,a0=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),In={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:r0}=le("calendar"),i0=r0({components:{Wrapper:o0,CalendarPane:n0},props:{...In},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o,expose:l}){const r=(0,t.computed)(()=>o.btn),i=(0,t.computed)(()=>o["top-info"]),a=(0,t.computed)(()=>o.day),u=(0,t.computed)(()=>o["bottom-info"]),s=(0,t.ref)(null),d=C=>{s.value?.scrollToDate(C)},v=()=>{s.value?.initPosition()};(0,t.watch)(()=>e.visible,C=>{C&&(0,t.nextTick)(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),l({scrollToDate:d,initPosition:v});const c=()=>{n("update:visible",!1)},p=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{p()},update:c,close:p,select:C=>{n("select",C)},choose:C=>{p(),n("choose",C)},calendarRef:s,showTopBtn:r,topInfo:i,dayInfo:a,bottomInfo:u}}});function s0(e,n,o,l,r,i){const a=(0,t.resolveComponent)("CalendarPane"),u=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(u,(0,t.mergeProps)({visible:e.visible,position:"bottom","pop-class":"fox-calendar__popup",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,poppable:e.poppable}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(a,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},(0,t.createSlots)({_:2},[e.showTopBtn?{name:"btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","poppable"])}var sl=ie(i0,[["render",s0]]),Fi={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]}},Tl=(e,n)=>{let o;return We(e)?o=e:typeof e=="string"&&we(e)>0?o=se.parser(e,n):o=new Date,o},gt=(e,n,o)=>(We(n)||(n=new Date),se.format(n,o)),yt=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,se.date2Str(e),se.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],u0={...ge,...Se,...In,...Fi};function c0(e,n,o,l,r,{CloseIcon:i,MarkIcon:a},u=!1){return{props:u0,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{itemTemplateRef:v,disabled:c,readonly:p,browse:y}=$e(s),{emitEvent:N,exposeApi:S}=Ve({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return c.value},get props(){return s},context:d,get templateRefProxy(){return v.value}},s.prop??d.attrs.name),{toLocaleRefs:C}=(0,he.useFoxI18n)(n),b=C(s,["placeholder"]),m=(0,t.ref)(!1),f=(0,t.computed)(()=>s.type==="range"),k=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),A=()=>{k.startDate!==null&&(k.startDate=null,k.endDate=null,k.startArray=[],k.endArray=[])},h=(U,_="one",K="YYYY-MM-DD")=>{if(a0(U)){A();return}if(f.value&&Array.isArray(U)&&U.length==2){let ne,F;typeof U[0]=="string"?(ne=Tl(U[0],K),F=Tl(U[1],K)):(ne=U[0],F=U[1]);let G=yt(ne),E=yt(F);(k.startDate===null||k.startDate.getTime()!==ne.getTime()||k.endDate?.getTime()!==F.getTime())&&(k.startDate=ne,k.startArray=G,k.endDate=F,k.endArray=E)}else{let ne;typeof U=="string"?ne=Tl(U,K):ne=U;let F=yt(ne);(k.startDate===null||k.startDate.getTime()!==ne.getTime())&&(k.startDate=ne,k.startArray=F)}};h(s.modelValue,s.type,s.valueFormat),(0,t.watch)(()=>s.modelValue,U=>{h(U,s.type,s.valueFormat),N("setValue",U)});const g=(0,t.computed)(()=>{if(k.startDate===null)return"";if(f.value){let U=gt(s,k.startDate,s.format),_=gt(s,k.endDate,s.format);return`${U} ${s.rangeSeparator} ${_}`}else{let U=gt(s,k.startDate,s.format);return s.showWeek&&(U=`${U} ${k.startArray[4]}`),U}}),x=(0,t.computed)(()=>k.startDate===null?null:f.value?[se.date2Str(k.startDate),se.date2Str(k.endDate??new Date)]:se.date2Str(k.startDate)),B=e,T=(0,t.computed)(()=>({[B]:!0,disabled:c.value,readonly:p.value})),w=(0,t.computed)(()=>({[`${B}__content`]:!0})),I=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),L=(0,t.computed)(()=>{const U={};return I.value&&(U["text-align"]=I.value),U}),V=(0,t.ref)(!1),M=()=>{p.value||c.value||(V.value=!0)},q=U=>{V.value=U},O=U=>{if(U){if(f.value&&Array.isArray(U)){let _=U[0],K=me(_[0]),ne=me(_[1]),F=me(_[2]),G=new Date(K,ne-1,F),E=U[1];K=me(E[0]),ne=me(E[1]),F=me(E[2]);let $=new Date(K,ne-1,F);if(k.startDate=G,k.startArray=yt(G),k.endDate=$,k.endArray=yt($),s.valueFormat){let z=gt(s,G,s.valueFormat),W=gt(s,$,s.valueFormat);N("update:modelValue",[z,W],{})}else N("update:modelValue",[G,$],{})}else{let _=U,K=me(_[0]),ne=me(_[1]),F=me(_[2]),G=new Date(K,ne-1,F);if(k.startDate=G,k.startArray=yt(G),s.valueFormat){let E=gt(s,G,s.valueFormat);N("update:modelValue",E,{})}else N("update:modelValue",G,{})}N("change",U,{})}},P=U=>{let _=U.target.value;m.value=!0,N("focus",_,U)},j=U=>{setTimeout(()=>{m.value=!1},0);let _=U.target.value;s.maxLength&&_.length>Number(s.maxLength)&&(_=_.slice(0,Number(s.maxLength))),N("blur",_,U)},D=(0,t.computed)(()=>({[`${B}__append`]:!0,"is-disabled":c.value,"is-readonly":p.value})),ee=(0,t.computed)(()=>we(s.unit)>0),te=(0,t.computed)(()=>we(s.unit)>0&&!m.value),oe=(0,t.computed)(()=>({hidden:!te.value})),H=U=>{A(),N("update:modelValue",null,U),N("change","",U),N("clear","")},Z=(0,t.computed)(()=>s.clearable&&!c.value&&!p.value),X=(0,t.computed)(()=>{let U=we(g.value)>0;return s.clearable&&U&&m.value}),Q=U=>{X.value?H(U):M()},R=(0,t.computed)(()=>X.value&&Z.value?i:a),Y=(0,t.computed)(()=>({action:!0}));return S(),()=>{if(y.value==="on"&&(p.value||c.value))return r({modelValue:g.value},d.slots);const U={class:w.value,style:L.value,type:"text",maxlength:s.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:M,onFocus:P,onBlur:j};u&&(U.disabled=!0);const _=[],K=(0,t.h)("input",U);_.push(K);const ne=[],F=(0,t.h)(R.value,{class:["action-icon"]}),G=(0,t.h)("view",{class:Y.value,onClick:Q},{default:()=>[F]});if(ne.push(G),ee.value){const de=(0,t.h)("view",{class:oe.value},[s.unit]);ne.push(de)}const E=(0,t.h)("view",{class:D.value},{default:()=>ne});_.push(E);const $={default:()=>_};$.label=d.slots.default,$.prepend=d.slots.prepend,$.append=d.slots.append,$.fixedPreTip=d.slots.fixedPreTip,$.fixedTip=d.slots.fixedTip;const z=be(s,In);z.visible=V.value,z["onUpdate:visible"]=q,z["default-value"]=x.value,z.onChoose=O;const W={};if(d.slots.btn){const de=d.slots.btn();W.btn=()=>de}d.slots.day&&(W.day=d.slots.day),d.slots.topInfo&&(W.topInfo=d.slots.topInfo),d.slots.bottomInfo&&(W.bottomInfo=d.slots.bottomInfo);const J=(0,t.h)(o,z,W);$.hide=()=>[J];const ae={...Qe(s,In,Fi),ref:v,class:T.value};return s.prop&&(ae.prop=`${s.prop}_item`),l(ae,$)}}}}var{componentName:d0,create:f0,scope:m0}=le("calendar-item"),p0=f0(c0(d0,m0,sl,Ie,ze,{CloseIcon:re.CircleClose,MarkIcon:re.Date},!1)),To=p0,v0={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 h0(e,{CheckNormal:n,Checked:o}){return{props:{...v0},setup(l,{emit:r,slots:i}){const a=(0,t.inject)("parent",null),u=_n(),s=(0,t.computed)(()=>a.label.value===l.label),d=(0,t.computed)(()=>a.position),v=()=>{const S=[];if(s.value){if(i.checkedIcon)return i.checkedIcon();{const C=ce(l.iconSize),b=l.checkedIcon??u.radio.Checked??o;return S.push("fox-radio__icon"),l.disabled&&S.push("is-disabled"),l.readonly&&S.push("is-readonly"),(0,t.h)(b,{width:C,height:C,class:S})}}else{if(i.icon)return i.icon();{const C=ce(l.iconSize),b=l.icon??u.radio.CheckNormal??n;return S.push("fox-radio__icon--unchecked"),l.disabled&&S.push("is-disabled"),l.readonly&&S.push("is-readonly"),(0,t.h)(b,{width:C,height:C,class:S})}}},c=()=>{const S=[`${e}__label`];return l.disabled&&S.push("is-disabled"),l.readonly&&S.push("is-readonly"),(0,t.h)("view",{class:S},i.default?.())},p=()=>{const S=[`${e}__button`];return s.value&&S.push(`${e}__button--active`),l.disabled&&S.push("is-disabled"),l.readonly&&S.push("is-readonly"),(0,t.h)("view",{class:S},i.default?.())},y=()=>{s.value||l.disabled||l.readonly||a.updateValue(l.label)},N=d.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${N?`${e}--reverse`:""}`,onClick:y},[l.shape=="button"?p():N?[c(),v()]:[v(),c()]])}}}var{componentName:g0,create:y0}=le("radio"),b0=y0(h0(g0,{CheckNormal:re.CheckNormal,Checked:re.CheckChecked})),ul=b0,{componentName:Br,create:S0}=le("radio-group"),k0=S0({props:{prop:{type:[String]},modelValue:{type:[String,Number,Boolean],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,n){const{emitEvent:o,exposeApi:l}=He({context:n},e.prop),{slots:r}=n,i=a=>o("update:modelValue",a);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:i}),(0,t.watch)(()=>e.modelValue,a=>o("change",a)),l(),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Br} ${Br}--${e.direction}`,style:a},r.default?.())}}}),cl=k0;function Tr(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(Sn(e,i)===o)return r}else if(l==="item"){if(xe(o,i))return r}else if(_t(e,i)===o)return r}return-1}function Sn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function _t(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function w0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function C0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var N0=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=at(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(De(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function A0(){const e=mt();return new N0(e)}function B0(e){return{text:e,value:e}}var Oi={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},T0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},V0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Object],default:""}},x0={...ge,...Se,...Oi,...T0,...V0};function $0(e,n,o,l,r,i){return{props:x0,emits:["change","update:modelValue","setValue"],setup(a,u){const{itemTemplateRef:s,innerDisabled:d,disabled:v,innerReadonly:c,readonly:p,browse:y}=$e(a),{emitEvent:N,exposeApi:S}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return v.value},get props(){return a},context:u,get templateRefProxy(){return s.value}},a.prop??u.attrs.name),C=e,b=(0,t.computed)(()=>({[C]:!0,disabled:v.value,readonly:p.value})),m=(0,t.computed)(()=>({[`${C}__content`]:!0})),f=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),k=A0(),A=(0,t.ref)([]),h=(0,t.computed)(()=>typeof a.sourceFilter=="function"&&Array.isArray(A.value)?A.value.filter(a.sourceFilter):A.value);(0,t.watch)([()=>a.source,()=>a.params],async([w,I])=>{if(w){const L=await k.load("radio",w,I);if(L.length>0)if(typeof L[0]=="string"){const V=L.map(M=>B0(M));A.value=V}else A.value=L;else A.value=[]}},{immediate:!0});let g=(0,t.ref)(-1);(0,t.watch)([()=>a.modelValue,()=>h.value],async([w,I])=>{g.value=Tr(a,I,w,a.valueType),N("setValue",w)},{deep:!0});const x=(0,t.computed)(()=>{if(!a.source)return a.modelValue;if(g.value===-1)return null;const w=h.value[g.value];return _t(a,w)}),B=w=>{let I=null,L=null;if(h.value.length>0){let V=Tr(a,h.value,w,"value");g.value=V,V>=0&&(L=h.value[V],a.valueType==="text"?I=Sn(a,L):a.valueType==="item"?I=L:I=_t(a,L))}else I=w;N("update:modelValue",I),N("change",I,L)},T=()=>{let w=null,I=null;if(h.value.length>0&&g.value!==-1){let L=h.value[g.value];a.valueType==="text"?w=Sn(a,L):a.valueType==="item"?w=L:w=_t(a,L)}N("update:modelValue",w),N("change",w,I)};if(S({clear(){g.value!==-1&&(g.value=-1,T())},setDisabled:w=>{d.value=w},setReadonly:w=>{c.value=w}}),a.source){const w=()=>{const I=[],L=be(a,Oi);return h.value.forEach((V,M)=>{const q=_t(a,V),O=w0(a,V);let P={...L,label:q,disabled:O};const j=C0(a,V,M);P={...P,...j},v.value&&(P.disabled=!0),p.value&&(P.readonly=!0);const D={};if(u.slots.icon&&(D.icon=u.slots.icon),u.slots.checkedIcon&&(D.checkedIcon=u.slots.checkedIcon),typeof u.slots.text=="function"){const te=u.slots.text(V);D.default=()=>[te]}else{const te=Sn(a,V);D.default=()=>te}let ee=(0,t.h)(i,P,D);I.push(ee)}),I};return()=>{if(y.value==="on"&&(p.value||v.value))return l({modelValue:x.value,source:h.value},u.slots);const I=w(),L=(0,t.h)(r,{class:m.value,direction:a.direction,textPosition:a.textPosition,textAlign:f.value,modelValue:x.value,"onUpdate:modelValue":B},{default:()=>I}),V={default:()=>L};V.label=u.slots.default,V.prepend=u.slots.prepend,V.append=u.slots.append,V.fixedPreTip=u.slots.fixedPreTip,V.fixedTip=u.slots.fixedTip;const M={...be(a,Se,ge),ref:s,class:b.value};return a.prop&&(M.prop=`${a.prop}_item`),o(M,V)}}else return()=>{const w=u.slots.options?.()??[];return(0,t.h)(r,{class:m.value,direction:a.direction,textPosition:a.textPosition,textAlign:f.value,modelValue:x,"update:modelValue":B},{default:()=>w})}}}}var{componentName:E0,create:D0,scope:I0}=le("radio-item"),q0=D0($0(E0,I0,Ie,ze,cl,ul)),Vo=q0,P0={prop:{type:[String]},modelValue:{type:[Boolean],default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},M0=(e,{CheckNormal:n,Checked:o,Indeterminate:l})=>({props:P0,emits:["change","update:modelValue"],setup(r,i){const{emitEvent:a,exposeApi:u}=He({context:i},r.prop),s=_n(),{slots:d}=i,v=(0,t.inject)("parent",null),c=(0,t.reactive)({partialSelect:r.indeterminate});(0,t.watch)(()=>r.indeterminate,A=>{c.partialSelect=A});const p=(0,t.computed)(()=>!!v),y=(0,t.computed)(()=>p.value?v.value.value.includes(r.label):!!r.modelValue),N=(0,t.computed)(()=>p.value?v.position:r.textPosition);let S="";const C=(A,h)=>{S="click",a("update:modelValue",A),a("change",A,h)};(0,t.watch)(()=>r.modelValue,A=>{S=="click"?S="":a("change",A)});const b=()=>{const A=[];if(c.partialSelect){if(d.indeterminateIcon)return d.indeterminateIcon();{const h=ce(r.iconSize),g=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)(g,{width:h,height:h,class:A})}}else if(y.value){if(d.checkedIcon)return d.checkedIcon();{const h=ce(r.iconSize),g=r.checkedIcon??s.checkbox.Checked??o;return A.push("fox-checkbox__icon"),r.disabled&&A.push("is-disabled"),r.readonly&&A.push("is-readonly"),(0,t.h)(g,{width:h,height:h,class:A})}}else{if(d.icon)return d.icon();{const h=ce(r.iconSize),g=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)(g,{width:h,height:h,class:A})}}},m=()=>{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?.())},f=()=>{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?.())},k=A=>{if(!(r.disabled||r.readonly)){if(y.value&&c.partialSelect){c.partialSelect=!1,C(y.value,d.default?.()[0].children);return}if(C(!y.value,d.default?.()[0].children),p.value){const h=v.value.value,g=v.max.value,{label:x}=r,B=h.indexOf(x);B>-1?h.splice(B,1):B<=-1&&(h.length<g||!g)&&h.push(x),v.updateValue(h)}}};return(0,t.onMounted)(()=>{p.value&&v.link(r)}),(0,t.onBeforeUnmount)(()=>{p.value&&v.unlink(r)}),u(),()=>(0,t.h)("view",{class:`${e} ${e}--${r.shape} ${N.value==="left"?`${e}--reverse`:""}`,onClick:k},[r.shape=="button"?f():[b(),m()]])}}),{componentName:R0,create:z0}=le("checkbox"),L0=z0(M0(R0,{CheckNormal:re.CheckNormal,Checked:re.Checked,Indeterminate:re.CheckDisabled})),dl=L0,{create:F0,componentName:Vr}=le("checkbox-group"),O0={prop:{type:String},modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},K0=F0({props:O0,emits:["change","update:modelValue"],setup(e,n){const{emitEvent:o,exposeApi:l}=He({context:n},e.prop),{slots:r}=n,i=(0,t.reactive)({children:[]}),a=c=>{i.children.push(c)},u=c=>{const p=i.children.findIndex(y=>y===c);p!==-1&&i.children.splice(p,1)},s=c=>{o("update:modelValue",c),o("change",c)},d=c=>{const p=[];c&&i.children.forEach(y=>{y?.disabled||p.push(y?.label)}),o("update:modelValue",p)},v=()=>{const c=i.children.filter(p=>p?.disabled?!1:!e.modelValue.includes(p.label)).map(p=>p.label);o("update:modelValue",c)};return(0,t.provide)("parent",{value:(0,t.computed)(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:(0,t.computed)(()=>e.max),updateValue:s,link:a,unlink:u}),(0,t.watch)(()=>e.modelValue,c=>{o("change",c)}),l({toggleAll:d,toggleReverse:v}),()=>{const c={};return e.textAlign&&(c["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Vr} ${Vr}--${e.direction}`,style:c},r.default?.())}}}),fl=K0;function xr(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(Wl(e,i)===o)return r}else if(l==="item"){if(xe(o,i))return r}else if(kn(e,i)===o)return r}return-1}function Wl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function kn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function U0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function _0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var H0=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(!n)return[];if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=at(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(De(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function j0(){const e=mt();return new H0(e)}function W0(e){return{text:e,value:e}}var Y0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Ki={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},X0={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:", "}},Q0={...ge,...Se,...Y0,...Ki,...X0};function G0(e,n,o,l,r,i){return{props:Q0,emits:["change","update:modelValue","setValue"],setup(a,u){const{itemTemplateRef:s,innerDisabled:d,disabled:v,innerReadonly:c,readonly:p,browse:y}=$e(a),N=e,S=(0,t.computed)(()=>({[N]:!0,disabled:v.value,readonly:p.value})),C=(0,t.computed)(()=>({[`${N}__content`]:!0})),b=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),{emitEvent:m,exposeApi:f}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return v.value},get props(){return a},context:u,get templateRefProxy(){return s.value}},a.prop??u.attrs.name),k=j0(),A=(0,t.ref)([]),h=(0,t.computed)(()=>typeof a.sourceFilter=="function"&&Array.isArray(A.value)?A.value.filter(a.sourceFilter):A.value);(0,t.watch)([()=>a.source,()=>a.params],async([w,I])=>{if(w){const L=await k.load("checkbox",w,I);if(L.length>0)if(typeof L[0]=="string"){const V=L.map(M=>W0(M));A.value=V}else A.value=L;else A.value=[]}},{immediate:!0});const g=(0,t.ref)([]);(0,t.watch)([()=>a.modelValue,()=>h.value],async([w,I])=>{const L=[];Array.isArray(w)&&w.forEach(V=>{let M=xr(a,I,V,a.valueType);M!==-1&&L.push(M)}),!xe(L,g.value)&&(g.value=L,m("setValue",L))},{deep:!0});const x=(0,t.computed)(()=>{if(!a.source)return a.modelValue;let w=[];return g.value.forEach(I=>{let L=h.value[I];w.push(kn(a,L))}),w}),B=w=>{let I=[],L=[];if(h.value.length>0){const V=[];Array.isArray(w)&&w.forEach(M=>{let q=xr(a,h.value,M,"value");q!==-1&&V.push(q);const O=h.value[q];L.push(O),a.valueType==="text"?I.push(Wl(a,O)):a.valueType==="item"?I.push(O):I.push(kn(a,O))}),g.value=V}else I=w;m("update:modelValue",I),m("change",I,L)},T=(0,t.ref)();if(f({toggleAll:w=>{T.value.toggleAll(w)},toggleReverse:()=>{T.value.toggleReverse()},setDisabled:w=>{d.value=w},setReadonly:w=>{c.value=w}}),a.source){const w=()=>{const I=[],L=be(a,Ki);return h.value.forEach((V,M)=>{const q=kn(a,V),O=U0(a,V);let P={...L,label:q,disabled:O};const j=_0(a,V,M);P={...P,...j},v.value&&(P.disabled=!0),p.value&&(P.readonly=!0);const D={};if(u.slots.icon&&(D.icon=u.slots.icon),u.slots.checkedIcon&&(D.checkedIcon=u.slots.checkedIcon),u.slots.indeterminateIcon&&(D.indeterminateIcon=u.slots.indeterminateIcon),typeof u.slots.text=="function"){const te=u.slots.text(V);D.default=()=>[te]}else{const te=Wl(a,V);D.default=()=>te}let ee=(0,t.h)(i,P,D);I.push(ee)}),I};return()=>{if(y.value==="on"&&(p.value||v.value))return l({modelValue:x.value,source:h.value,separator:a.separator},u.slots);const I=w(),L=(0,t.h)(r,{class:C.value,ref:T,direction:a.direction,max:a.max,textPosition:a.textPosition,modelValue:x.value,"onUpdate:modelValue":B},{default:()=>I}),V={default:()=>L};V.label=u.slots.default,V.prepend=u.slots.prepend,V.append=u.slots.append,V.fixedPreTip=u.slots.fixedPreTip,V.fixedTip=u.slots.fixedTip;const M={...be(a,Se,ge),ref:s,class:S.value};return a.prop&&(M.prop=`${a.prop}_item`),o(M,V)}}else return()=>{const w=u.slots.options?.()??[];return(0,t.h)("view",{class:C.value,ref:T,direction:a.direction,max:a.max,textPosition:a.textPosition,textAlign:b.value,modelValue:x,"onUpdate:modelValue":B},{default:()=>w})}}}}var{componentName:Z0,create:J0,scope:ep}=le("checkbox-item"),tp=J0(G0(Z0,ep,Ie,ze,fl,dl)),xo=tp,$o={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:np,create:lp}=le("switch"),op=lp({components:{Loading2:re.Loading2},props:{...$o},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const o=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const u=np;return{[u]:!0,[o.value?"fox-switch-open":"fox-switch-close"]:!0,[`${u}-base`]:!0,"is-disabled":e.disabled}}),r=(0,t.computed)(()=>({backgroundColor:o.value?e.activeColor:e.inactiveColor}));let i="";const a=u=>{if(e.disabled||e.loading)return;i="click";const s=o.value?e.inactiveValue:e.activeValue;n("update:modelValue",s),n("change",s,u)};return(0,t.watch)(()=>e.modelValue,u=>{i=="click"?i="":n("change",u)}),{classes:l,style:r,isActive:o,onClick:a}}}),ap={class:"fox-switch-button"};function rp(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...u)=>e.onClick&&e.onClick(...u)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",ap,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(a,{name:"loading",color:e.activeColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.activeText?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label open"},(0,t.toDisplayString)(e.activeText),513),[[t.vShow,e.isActive]]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label close"},(0,t.toDisplayString)(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):(0,t.createCommentVNode)("",!0)])],6)}var ml=ie(op,[["render",rp]]),ip={...ge,...Se,...$o};function sp(e,n,o,l,r){return{props:ip,emits:["change","update:modelValue","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:v,readonly:c,browse:p}=$e(i),{emitEvent:y,exposeApi:N}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),S=e,C=(0,t.computed)(()=>({[S]:!0,disabled:d.value,readonly:c.value})),b=(0,t.computed)(()=>({[`${S}__content`]:!0})),m=(0,t.computed)(()=>[`${S}__wrap`]),f=Re(i,"modelValue",null,y),k=A=>{f.value=A,y("update:modelValue",A,{}),y("change",A,{})};return N({setDisabled:A=>{s.value=A},setReadonly:A=>{v.value=A}}),()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:f.value},a.slots);let A=be(i,$o);const h={class:b.value,...A,disabled:d.value||c.value,value:f.value,"onUpdate:modelValue":k},g=[],x=(0,t.h)(r,h);g.push(x);const B={default:()=>g};B.label=a.slots.default,B.fixedPreTip=a.slots.fixedPreTip,B.fixedTip=a.slots.fixedTip;const T={...be(i,Se,ge),ref:u};return i.prop&&(T.prop=`${i.prop}_item`),T.class=C.value,T["content-class"]=m.value,o(T,B)}}}}var{componentName:up,create:cp,scope:dp}=le("switch-item"),fp=cp(sp(up,dp,Ie,ze,ml)),Eo=fp,mp={...ge,...Se,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 pp(e,n,o,l){return{props:mp,emits:["click","focus","blur","change"],setup(r,i){const{itemTemplateRef:a,disabled:u,readonly:s}=$e(r),{emitEvent:d,exposeApi:v}=Ve({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return s.value},get disabled(){return u.value},get props(){return r},context:i,get templateRefProxy(){return a.value}},r.prop??i.attrs.name),{toLocaleRefs:c}=(0,he.useFoxI18n)(n),p=c(r,["placeholder"]),y=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,q=>{y.value=q,d("change",q)});const N=e,S=(0,t.computed)(()=>({[`${N}`]:!0,disabled:u.value,readonly:s.value})),C=(0,t.computed)(()=>({[`${N}__content`]:!0})),b=(0,t.computed)(()=>({[`${N}__main`]:!0,[`${N}__placeholder`]:!u.value&&pe(y.value)})),m=Ae((0,t.computed)(()=>r.textAlign),"textAlign"),f=(0,t.computed)(()=>{const q={};return m.value&&(q["text-align"]=m.value),q}),k=(0,t.computed)(()=>!pe(r.modelValue)||i.slots.main?!0:!!pe(r.desc)),A=(0,t.computed)(()=>pe(y.value)?p.placeholder.value:y.value),h=(0,t.computed)(()=>!pe(r.desc)||i.slots.sub),g=(0,t.computed)(()=>({[`${N}__sub`]:!0})),x=(0,t.computed)(()=>{const q={};return m.value&&(q["text-align"]=m.value),q}),B=()=>{d("focus",y.value)},T=()=>{d("blur",y.value)},w=(0,t.computed)(()=>({[`${N}__append`]:!0})),I=(0,t.computed)(()=>we(r.unit)>0),L=q=>{u.value==!0||s.value==!0||d("click")},V=(0,t.computed)(()=>r.icon??o),M=(0,t.computed)(()=>({action:!0}));return v(),()=>{const q=[];if(typeof i.slots.content=="function"){const H=i.slots.content();q.push(H)}else{const H=[];if(k.value){const X={tabIndex:0,class:b.value,style:f.value,onFocus:B,onBlur:T};let Q=null;i.slots.main?Q=(0,t.h)("view",X,[i.slots.main(A.value)]):Q=(0,t.h)("view",X,[A.value]),H.push(Q)}if(h.value){const X={tabIndex:0,class:g.value,style:x.value,onFocus:B,onBlur:T};let Q=null;i.slots.sub?Q=(0,t.h)("view",X,[i.slots.sub(r.desc)]):Q=(0,t.h)("view",X,[r.desc]),H.push(Q)}const Z=(0,t.h)("view",{class:C.value,onClick:L},H);q.push(Z)}const O=[],P=ce(r.iconSize);let j=i.slots.icon;if(!j){const H={width:P,height:P,class:["action-icon"]};j=(0,t.h)(V.value,H)}const D=(0,t.h)("view",{class:M.value,onClick:L},{default:()=>[j]});if(O.push(D),I.value){const H=(0,t.h)("view",{},[r.unit]);O.push(H)}const ee=(0,t.h)("view",{class:w.value},{default:()=>O});q.push(ee);const te={default:()=>q};te.label=i.slots.default,te.prepend=i.slots.prepend,te.append=i.slots.append,te.fixedPreTip=i.slots.fixedPreTip,te.fixedTip=i.slots.fixedTip;const oe={...be(r,Se,ge),ref:a,class:S.value};return r.prop&&(oe.prop=`${r.prop}_item`),l(oe,te)}}}}var{componentName:vp,create:hp,scope:gp}=le("link-item"),yp=hp(pp(vp,gp,re.ArrowRight,Ie)),Do=yp,Io={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:bp,componentName:Sp}=le("rate"),kp=bp({props:{...Io},emits:["update:modelValue","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)([]),r=(0,t.computed)(()=>({[Sp]:!0})),i=y=>{n("update:modelValue",y),n("change",y)},a=(y,N)=>{if(e.disabled||e.readonly)return;let S=0;N===1&&e.modelValue===N||(S=N,e.allowHalf&&y==2&&(S-=.5)),i(S)},u=(y,N,S)=>{let C=0;for(let b=N.value.length-1;b>=0;b--){const m=N.value[b];if(y>m.offsetLeft){S?C=b+(y>m.offsetLeft+m.clientWidth/2?1:.5):C=b+1;break}}return C},s=pt(),d={onTouchStart(y){!e.touchable||e.readonly||s.start(y)},onTouchMove(y){e.touchable&&(s.move(y),s.isHorizontal()&&l.value&&(y.preventDefault(),i(u(s.moveX.value,l,e.allowHalf))))}},v=Math.random().toString(36).slice(-8),c=(0,t.computed)(()=>e.customIcon??re.StarFillN);return{classes:r,...d,onClick:a,toPxString:ue,renderIcon:(y,N)=>(0,t.h)(y,N),rateRefs:l,refRandomId:v,slots:o,customIcon:c}}}),wp=["id"],Cp={class:"fox-rate-item__icon--full"},Np={key:0,class:"fox-rate-item__icon--half"},Ap={key:1,class:"fox-rate-item__icon--half"};function Bp(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),a=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:a,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+a,style:(0,t.normalizeStyle)(a<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("view",Cp,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:a<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,t.normalizeClass)(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||a>e.modelValue}]),onClick:u=>e.onClick(1,a)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>a?((0,t.openBlock)(),(0,t.createElementBlock)("view",Np,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:a<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:u=>e.onClick(2,a)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<a?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ap,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:u=>e.onClick(2,a)},null,8,["onClick"]))])):(0,t.createCommentVNode)("",!0)],12,wp))),128))],34)}var pl=ie(kp,[["render",Bp]]),Tp={...ge,...Se,...Io};function Vp(e,n,o,l,r){return{props:Tp,emits:["change","update:modelValue","setValue"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:v,readonly:c,browse:p}=$e(i),{emitEvent:y,exposeApi:N}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),S=e,C=(0,t.computed)(()=>({[`${S}`]:!0,disabled:d.value,readonly:c.value})),b=(0,t.computed)(()=>({[`${S}__content`]:!0})),m=(0,t.computed)(()=>[`${S}__wrap`]),f=Re(i,"modelValue",null,y),k=A=>{f.value=A,y("update:modelValue",A,{}),y("change",A,{})};return N({setDisabled:A=>{s.value=A},setReadonly:A=>{v.value=A}}),()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:f.value},a.slots);const A={...be(i,Io),class:b.value,disabled:d.value,readonly:c.value,value:f.value,"onUpdate:modelValue":k},h=[],g=(0,t.h)(r,A);h.push(g);const x={default:()=>h};if(a.slots.default){const T=a.slots.default();x.label=()=>T}const B=be(i,Se,ge);return i.prop&&(B.prop=`${i.prop}_item`),B.class=C.value,B["content-class"]=m.value,B.ref=u,o(B,x)}}}}var{componentName:xp,create:$p,scope:Ep}=le("rate-item"),Dp=$p(Vp(xp,Ep,Ie,ze,pl)),qo=Dp,Ip=/scroll|auto|overlay/i,Ui=window;function qp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Yl(e,n=Ui){let o=e;for(;o&&o!==n&&qp(o);){const{overflowY:l}=window.getComputedStyle(o);if(Ip.test(l))return o;o=o.parentNode}return n}function _i(e,n=Ui){const o=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(o.value=Yl(e.value,n))}),o}var Hi=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Pp={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},showFinished:{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},containerClass:{type:[String]}};function Mp(e,n,o){return{props:Pp,emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:r,slots:i}){const a=e,{toLocaleRefs:u}=(0,he.useFoxI18n)(n),s=u(l,["pullText","loadText","noMoreText"]),d=(0,t.ref)(),v=_i(d),c=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),p=(0,t.computed)(()=>({[a]:!0})),y=(0,t.computed)(()=>{const k=[`${a}__container`];return l.containerClass&&k.push(l.containerClass),k}),N=k=>k?k.offsetTop+N(k.offsetParent):0,S=()=>{let k=0,A=0,h="down";if(v.value==window){const g=Hi();d.value&&(k=N(d.value)+d.value.offsetHeight-g-window.innerHeight),A=g}else{const{scrollHeight:g,clientHeight:x,scrollTop:B}=v.value;k=g-x-B,A=B}return c.beforeScrollTop>A?h="up":h="down",c.beforeScrollTop=A,r("scroll-change",A),k<=l.threshold&&h=="down"},C=()=>{Je(()=>{if(!S()||!l.hasMore||c.isInfiniting)return!1;c.isInfiniting=!0,r("update:modelValue",!0),(0,t.nextTick)(()=>r("load-more"))})},b=()=>{v.value&&v.value.addEventListener("scroll",C,l.useCapture)},m=()=>{v.value&&v.value.removeEventListener("scroll",C,l.useCapture)};(0,t.onMounted)(()=>{b(),l.immediate&&C()}),(0,t.onUnmounted)(()=>{m()});const f=(0,t.ref)(!1);return(0,t.onActivated)(()=>{f.value&&(f.value=!1,b())}),(0,t.onDeactivated)(()=>{f.value=!0,m()}),(0,t.watch)(()=>l.modelValue,k=>{k||(c.isInfiniting=!1)}),()=>{const k=(0,t.h)("view",{class:y.value},[i?.default?.()]),A=[];if(c.isInfiniting){let g=i?.loading?.()??null;if(!g){let B=i?.loadingIcon?.()??null;B||(B=(0,t.h)(o,{class:[`${a}__bottom-box__img`]}));const T=(0,t.h)("view",{class:`${a}__bottom-box__text`},[s.loadText.value]);g=[B,T]}const x=(0,t.h)("view",{class:`${a}__bottom-box`},g);A.push(x)}else if(!l.hasMore&&l.showFinished){let g=i?.finished?.()??null;g||(g=(0,t.h)("view",{class:`${a}__bottom-tips`},[s.noMoreText.value]),A.push(g))}const h=[k];if(A.length>0){const g=(0,t.h)("view",{class:`${a}__bottom`},A);h.push(g)}return(0,t.h)("view",{class:p.value,ref:d},h)}}}}var{componentName:Rp,create:zp,scope:Lp}=le("infinite-loading"),Fp=zp(Mp(Rp,Lp,re.Loading)),vl=Fp,Op={prop:{type:[String]},modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Kp=(e,n,o)=>({props:Op,emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,r){const{emitEvent:i}=He({context:r},l.prop),{toLocaleRefs:a}=(0,he.useFoxI18n)(n),u=a(l,["placeholder"]),{slots:s}=r,d=(0,t.reactive)({active:!1}),v=(0,t.computed)(()=>({background:l.background})),c=(0,t.computed)(()=>({background:l.inputBackground})),p=T=>{let w=T.target.value;l.maxLength&&w.length>Number(l.maxLength)&&(w=w.slice(0,Number(l.maxLength))),i("update:modelValue",w,T),i("change",w,T)},y=(0,t.ref)({}),N=T=>{let w=T.target.value;d.active=!0,y.value=l.focusStyle,i("focus",w,T)},S=T=>{setTimeout(()=>{d.active=!1},0);let w=T.target.value;l.maxLength&&w.length>Number(l.maxLength)&&(w=w.slice(0,Number(l.maxLength))),y.value={},i("blur",w,T)},C=T=>{i("update:modelValue","",T),i("change","",T),i("clear","")},b=(0,t.computed)(()=>String(l.modelValue).length>0),m=(0,t.computed)(()=>{const T={};return b.value||(T.display="none"),T}),f=T=>{l.autoblur&&x.value?.blur(),(typeof T.cancelable!="boolean"||T.cancelable)&&T.preventDefault(),i("search",l.modelValue)},k=T=>{i("keyup-input",T)},A=T=>{i("click-input",T)},h=T=>{i("click-left-icon",l.modelValue,T)},g=(0,t.computed)(()=>({textAlign:l.inputAlign})),x=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&x.value.focus()});const B=()=>{const T=[];if(s.leftin){const V=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:h},[s.leftin()]);T.push(V)}const w=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:x,style:g.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:A,onInput:p,onFocus:N,onBlur:S,onkeyup:k}),I=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:f},[w]);T.push(I);const L=[];if(l.clearable){const V=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:m.value,onClick:C},[(0,t.h)(s?.clear?.()??l.clearIcon??o)]);L.push(V)}if(s.rightin){const V=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[s.rightin()]);L.push(V)}if(L.length>0){const V=(0,t.h)("view",{class:`${e}__input-inner-right`},L);T.push(V)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...c.value,...y.value}},T)};return()=>{const T=[];if(l.label){const I=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);T.push(I)}if(s.leftout){const I=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[s.leftout()]);T.push(I)}const w=B();if(T.push(w),s.rightout){const I=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[s.rightout()]);T.push(I)}return(0,t.h)("view",{class:`${e}`,style:v.value},T)}}}),{componentName:Up,create:_p,scope:Hp}=le("searchbar"),jp=_p(Kp(Up,Hp,re.CircleClose)),hl=jp,qn={prop:{type:[String]},poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,String,Object],default(){return[]}},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},textPosition:{type:[String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},noMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},searchDelayTriggerClear:{type:Number,default:250},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Wp(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(wn(e,i)===o)return r}else if(l==="item"){if(xe(o,i))return r}else if(ji(e,i)===o)return r}return-1}function wn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function $r(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function ji(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Yp(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Xp(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var Qp=class{scope;constructor(e){this.scope=e}async load(e,n,o,l,r,i,a){if(!n)return{totalSize:0,page:[]};if(Array.isArray(n)){let s=n;typeof a=="function"&&(s=s.filter(a));let d=(o-1)*l,v=d+l;v>s.length&&(v=s.length);const c=s.slice(d,v);return{totalSize:s.length,page:c}}if(typeof n=="function")return await Reflect.apply(n,null,[o,l,r,i]);const u=at(e,this.scope);return u===null?(console.error(`[FoxUI]${e} component not found api function`),{totalSize:0,page:[]}):(De(r)&&(0,t.isReactive)(r)&&(r=(0,t.toRaw)(r)),await Reflect.apply(u,null,[n,o,l,r]))}};function Gp(){const e=mt();return new Qp(e)}function Zp(e,n,o,l,r,i,a,u,s,d,v){return{props:qn,emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,p){const{emitEvent:y,exposeApi:N}=He({context:p},c.prop),{slots:S}=p,{toLocaleRefs:C}=(0,he.useFoxI18n)(n),b=C(c,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),m=Gp(),f=(0,t.ref)([]),k=(0,t.ref)(0),A=(0,t.ref)(""),h=(0,t.shallowRef)(null),g=(0,t.computed)(()=>{const F={};return c.params&&Object.assign(F,c.params),pe(A.value)||(F[`${c.searchKey}`]=A.value),h.value&&Object.assign(F,h.value),F});let x=!0;const B=async(F,G,E)=>{try{if(w.value===!1)return;let $=null;pe(A.value)||($=W=>{const J=wn(c,W);if(typeof J=="string"&&J.includes(A.value))return!0;const ae=$r(c,W);return!!(typeof ae=="string"&&ae.includes(A.value))});const z=await m.load("actionsheet",F,G,E,g.value,x,$??void 0);x=!1,Array.isArray(z)?(f.value=z,k.value=1,w.value=!1):!Array.isArray(z.page)||z.page.length===0?(console.warn("[FoxUI] can not load more data"),w.value=!1):(Reflect.apply([].push,f.value,z.page),k.value=Math.ceil(f.value.length/c.pageSize),(z.totalSize&&f.value.length>=z.totalSize||E<z.page.length)&&(w.value=!1)),T.value=!1}catch($){console.error("[FoxUI] ActionSheet load more data fail",$),w.value=!0,k.value=0,f.value=[]}setTimeout(()=>{y("loaded-data")},250)},T=(0,t.ref)(!1),w=(0,t.ref)(!0),I=async()=>{if(!c.source){T.value=!1;return}await B(c.source,k.value+1,c.pageSize)};let L=null;(0,t.watch)(A,(F,G)=>{L&&(clearTimeout(L),L=null),pe(F)&&!pe(G)&&(L=setTimeout(()=>{M()},c.searchDelayTriggerClear))});const V=()=>{w.value=!0,k.value=0,f.value=[],c.source&&I()},M=()=>{V()};(0,t.watch)([()=>c.source,()=>c.pageSize,()=>c.params],async([F,G,E])=>{c.source&&V()},{immediate:!0});const q=(0,t.computed)(()=>!c.multiple&&c.isAutoBackFill),O=(0,t.ref)([]);let P=null;const j=(0,t.ref)(c.visible);(0,t.watch)(()=>c.visible,F=>{j.value!==F&&(j.value=F),F?P=[...O.value]:P=null});const D=(F,G)=>{const E=[];return Array.isArray(F)||(F=[F]),F.forEach($=>{let z=Wp(c,G,$,c.valueType);z!==-1&&E.push(z)}),xe(E,O.value)?!1:(O.value=E,!0)};(0,t.watch)([()=>c.modelValue,()=>f.value],([F,G],[E,$])=>{if(D(F,G)){const z=ee();te(z)}},{deep:!0});const ee=()=>{const F=[],G=[],E=[];for(let J of O.value){const ae=f.value[J];G.push(ae);const de=wn(c,ae);if(E.push(de),c.valueType==="item")F.push(ae);else if(c.valueType==="text")F.push(de);else{const fe=ji(c,ae);F.push(fe)}}let $=null,z=null,W=null;return c.multiple?($=F,z=E,W=G):($=F[0]??null,z=E[0]??null,W=G[0]??null),{value:$,text:z,item:W}},te=F=>{y("update:modelValue",F.value),y("update:text",F.text),y("change",F.value,F.item,F.text)},oe=()=>{P&&(O.value=P)},H=F=>{const G=O.value.indexOf(F);c.multiple?G===-1?O.value.push(F):O.value.splice(G,1):G===-1?O.value=[F]:O.value=[],(q.value||!c.poppable&&!c.showFooter)&&Q()},Z=F=>{j.value=F,y("update:visible",F)},X=()=>{const F=()=>{oe(),Z(!1)},G=c.beforeMethod??c.beforeClose;if(typeof G=="function"){const E=G("close");Ct(E)?E.then($=>{$!==!1&&F()}).catch(()=>{F()}):E!==!1&&F()}else F()},Q=()=>{const F=ee(),G=()=>{te(F),Z(!1)},E=c.beforeMethod??c.beforeClose;if(typeof E=="function"){const $=E("confirm",F.value,F.item,F.text);Ct($)?$.then(z=>{z!==!1&&G()}).catch(()=>{G()}):$!==!1&&G()}else G()},R=()=>{let F=b.title.value??"";return S.title&&(F=S.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[F]),(0,t.h)(s,{class:["fox-actionsheet__header-icon"],onClick:X})])},Y=()=>{let F=null;return S.search?F=S.search():F=(0,t.h)(i,{onSearch:V,placeholder:b.seachPlaceholder.value,disabled:c.disabled,modelValue:A.value,"onUpdate:modelValue":G=>{A.value=G}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[F])},U=(F,G,E,$,z)=>{if(S.optionLabel)return S.optionLabel({text:F,checked:G,disabled:E,subText:$,item:z});const W=[],J=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[F]);if(W.push(J),$){const ae=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[$]);W.push(ae)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},W)},_=(F,G,E,$)=>S.optionIcon?S.optionIcon({checked:F,disabled:G,iconSize:E,item:$}):F?S.checkedIcon?S.checkedIcon({disabled:G,item:$}):(0,t.h)(c.checkedIcon??u,{width:E,height:E,class:["fox-actionsheet__list-item-icon"]}):S.icon?S.icon({disabled:G,item:$}):(0,t.h)(c.icon??a,{width:E,height:E,class:["fox-actionsheet__list-item-icon"]}),K=()=>{const F=[];for(let G=0;G<f.value.length;G++){const E=f.value[G],$=wn(c,E),z=$r(c,E),W=["fox-actionsheet__list-item"],J={};let ae=Yp(c,E),de=c.iconSize?ce(c.iconSize):null;const fe=Xp(c,E,G);fe&&(ae=ae||fe.disabled,fe.class&&W.push(fe.class),fe.style&&Object.assign(J,fe.style)),ae=!!(c.disabled||ae);const ke=O.value.includes(G);ae&&W.push("is-disabled"),ke&&W.push("is-checked");const Le={class:W,style:J,key:`${G}`,onClick:()=>{ae||H(G)}};let Fe=[];if(S.option)Fe.push(S.option({item:E,checked:ke,disabled:ae}));else{const qe=U($,ke,ae,z,E);Fe.push(qe);const ht=_(ke,ae,de,E);Fe.push(ht),c.textPosition==="right"&&Fe.reverse()}const Ee=(0,t.h)("view",Le,Fe);F.push(Ee)}return F},ne=()=>{let F=[];if(S.buttons)F=S.buttons();else{const G=(0,t.h)(r,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:Q,disabled:c.disabled},{default:()=>b.confirmText.value});F.push(G)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[F])};return N({search:async(F=null,G=!0)=>{h.value=F&&(0,t.toRaw)(F),(0,t.triggerRef)(h),G&&(w.value=!0,k.value=0,f.value=[]),(0,t.nextTick)(()=>{I()})},clear:()=>{w.value=!0,k.value=0,f.value=[]},confirm:()=>{Q()},cancel:()=>{X()}}),()=>{const F=[];if(c.showHeader){const ae=R();F.push(ae)}if(c.showSearchbar){const ae=Y();F.push(ae)}let G=null;if(S.content)G=S.content();else{const ae=K();G=(0,t.h)(l,{hasMore:w.value,loadText:b.loadText.value,noMoreText:b.noMoreText.value,modelValue:T.value,"onUpdate:modelValue":de=>{T.value=de},onLoadMore:I},{default:()=>ae})}const E={};c.optionsHeight&&(E.height=c.optionsHeight);const $={"fox-actionsheet__list":!0};c.poppable||($["fox-actionsheet__list--inner"]=!0);const z=(0,t.h)("view",{class:$,style:E},[G]);if(F.push(z),c.showFooter&&!q.value){const ae=ne();F.push(ae)}const W=(0,t.h)("view",{class:"fox-actionsheet"},F);if(!c.poppable)return W;const J=["fox-actionsheet__popup"];return c.popClass&&J.push(c.popClass),(0,t.h)(o,{popClass:J.join(" "),visible:j.value,closeable:!1,"onUpdate:visible":Z,position:c.position,round:"round",onClickOverlay:X,closeOnClickOverlay:c.closeOnClickOverlay},{default:()=>W})}}}}var{componentName:Jp,create:ev,scope:tv}=le("actionsheet-pane"),nv=ev(Zp(Jp,tv,Ce,vl,vt,hl,re.CheckNormal,re.Checked,re.Close,re.Search2,!1)),gl=nv,Wi={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:" "},emptyText:{type:String}},lv={...ge,...Se,...Wi,...qn};function ov(e,n,o,l,r,i,a,u){return{props:lv,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{itemTemplateRef:v,innerDisabled:c,disabled:p,innerReadonly:y,readonly:N,browse:S}=$e(s),{emitEvent:C,exposeApi:b}=Ve({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return N.value},get disabled(){return p.value},get props(){return s},context:d,get templateRefProxy(){return v.value}},s.prop??d.attrs.name),{toLocaleRefs:m}=(0,he.useFoxI18n)(n),f=m(s,["placeholder"]),k=(0,t.ref)(!1),A=Re(s,"modelValue",null,C),h=(0,t.ref)(),g=(0,t.computed)(()=>Array.isArray(h.value)&&h.value.length>0?h.value.join(s.separator):h.value?h.value:s.emptyText??""),x=e,B=(0,t.computed)(()=>({[x]:!0,disabled:p.value,readonly:N.value})),T=(0,t.computed)(()=>({[`${x}__content`]:!0})),w=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),I=(0,t.computed)(()=>{const K={};return w.value&&(K["text-align"]=w.value),K}),L=(0,t.ref)(!1),V=()=>{L.value=!0},M=K=>{L.value=K},q=K=>{A.value=K,C("update:modelValue",K)},O=(K,ne)=>{C("change",K,ne)},P=K=>{let ne=K.target.value;k.value=!0,C("focus",ne,K)},j=K=>{setTimeout(()=>{k.value=!1},0);let ne=K.target.value;s.maxLength&&ne.length>Number(s.maxLength)&&(ne=ne.slice(0,Number(s.maxLength))),C("blur",ne,K)},D=K=>{h.value=K,C("update:text",K)},ee=(0,t.computed)(()=>({[`${x}__append`]:!0})),te=(0,t.computed)(()=>we(s.unit)>0),oe=(0,t.computed)(()=>we(s.unit)>0&&!k.value),H=(0,t.computed)(()=>({hidden:!oe.value})),Z=K=>{A.value="",C("update:modelValue","",K),C("change","",K),C("clear","")},X=(0,t.computed)(()=>s.clearable&&!p.value&&!N.value),Q=(0,t.computed)(()=>we(A.value)>0&&k.value),R=K=>{Q.value?Z(K):V()},Y=(0,t.computed)(()=>Q.value&&X.value?r:i),U=(0,t.computed)(()=>({action:!0})),_=(0,t.ref)(null);return b({search:K=>{_.value&&_.value.search(K)},clear:()=>{_.value&&_.value.clear},confirm:K=>{_.value&&_.value.confirm()},cancel:()=>{_.value&&_.value.cancel()},setDisabled:K=>{c.value=K},setReadonly:K=>{y.value=K}}),()=>{if(S.value==="on"&&(N.value||p.value))return l({modelValue:g.value,unit:s.unit},d.slots);const K={class:T.value,style:I.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:V,onFocus:P,onBlur:j};u&&(K.disabled=!0);const ne=[],F=(0,t.h)("input",K);ne.push(F);const G=[],E=(0,t.h)(Y.value,{class:["action-icon"]}),$=(0,t.h)("view",{class:U.value,onClick:R},{default:()=>[E]});if(G.push($),te.value){const fe=(0,t.h)("view",{class:H.value},[s.unit]);G.push(fe)}const z=(0,t.h)("view",{class:ee.value},{default:()=>G});ne.push(z);const W={default:()=>ne};W.label=d.slots.default,W.prepend=d.slots.prepend,W.append=d.slots.append,W.fixedPreTip=d.slots.fixedPreTip,W.fixedTip=d.slots.fixedTip;const J=be(s,qn);J.ref=_,J.class=s.actionSheetClass,J.disabled=p.value||N.value,J.visible=L.value,J["onUpdate:visible"]=M,J.modelValue=A.value,J["onUpdate:modelValue"]=q,J.text=h.value,J["onUpdate:text"]=D,J.onChange=O,J.poppable=!0,J["text-position"]=s.textPosition;const ae=(0,t.h)(a,J,{title:d.slots.title,search:d.slots.search,option:d.slots.option,optionLabel:d.slots.optionLabel,optionIcon:d.slots.optionIcon,buttons:d.slots.buttons});W.hide=()=>[ae];const de={...Qe(s,Wi,qn),ref:v,class:B.value};return s.prop&&(de.prop=`${s.prop}_item`),o(de,W)}}}}var{componentName:av,create:rv,scope:iv}=le("actionsheet-item"),sv=rv(ov(av,iv,Ie,ze,re.CircleClose,re.ArrowRight,gl)),Po=sv,Mo={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:()=>null},readonly:{type:[Boolean],default:()=>null}},{componentName:uv,create:cv}=le("input-number"),dv=cv({components:{Minus:re.Minus,Plus:re.Plus},props:Mo,emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const y=uv;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),l=y=>Number(y).toFixed(Number(e.decimalPlaces)),r=y=>{const N=y.target;n("update:modelValue",N.valueAsNumber,y)},i=(y,N)=>{let S=l(y);n("update:modelValue",S,N),n("change",S,N)},a=(y=Number(e.modelValue))=>y<Number(e.max)&&!e.disabled,u=(y=Number(e.modelValue))=>y>Number(e.min)&&!e.disabled,s=y=>{if(n("reduce",y),u()){let N=Number(e.modelValue)-Number(e.step);i(N,y)}else n("overlimit",y,"reduce")},d=y=>{if(n("add",y),a()){let N=Number(e.modelValue)+Number(e.step);i(N,y)}else n("overlimit",y,"add")},v=y=>{e.disabled||e.readonly||n("focus",y)},c=y=>{if(e.disabled||e.readonly)return;let N=y.target.valueAsNumber;N<Number(e.min)?N=Number(e.min):N>Number(e.max)&&(N=Number(e.max)),i(N,y),n("blur",y)},p=y=>{let N=Number(y);return N<Number(e.min)?N=Number(e.min):N>Number(e.max)&&(N=Number(e.max)),N};return(0,t.watch)(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const y=p(e.modelValue);y!==Number(e.modelValue)&&i(y,{})}),{classes:o,change:r,blur:c,focus:v,add:d,addAllow:a,reduce:s,reduceAllow:u,toPxString:ue}}}),fv=["min","max","disabled","readonly","value"];function mv(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Minus"),u=(0,t.resolveComponent)("Plus");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:n[0]||(n[0]=(...s)=>e.reduce&&e.reduce(...s))},[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[(0,t.createVNode)(a,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2),(0,t.createElementVNode)("input",{type:"number",min:e.min,max:e.max,style:(0,t.normalizeStyle)({width:e.toPxString(e.inputWidth),height:e.toPxString(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[1]||(n[1]=(...s)=>e.change&&e.change(...s)),onBlur:n[2]||(n[2]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[3]||(n[3]=(...s)=>e.focus&&e.focus(...s))},null,44,fv),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[4]=(...s)=>e.add&&e.add(...s))},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[(0,t.createVNode)(u,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var yl=ie(dv,[["render",mv]]),pv={...ge,...Se,...Mo};function vv(e,n,o,l,r){return{props:pv,emits:["change","update:modelValue","setValue","add","reduce"],setup(i,a){const{itemTemplateRef:u,innerDisabled:s,disabled:d,innerReadonly:v,readonly:c,browse:p}=$e(i),{emitEvent:y,exposeApi:N}=Ve({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!d.value&&!c.value},get props(){return i},context:a,get templateRefProxy(){return u.value}},i.prop??a.attrs.name),S=e,C=(0,t.computed)(()=>({[S]:!0,disabled:d.value,readonly:c.value})),b=(0,t.computed)(()=>({[`${S}__content`]:!0})),m=(0,t.computed)(()=>{const g=[`${S}__wrap`];return i.textAlign==="left"?g.push("is-left"):i.textAlign==="center"?g.push("is-center"):i.textAlign==="right"&&g.push("is-right"),g.join(" ")}),f=Re(i,"modelValue",null,y),k=g=>{f.value=g,y("update:modelValue",g,{}),y("change",g,{})},A=g=>{y("add",g)},h=g=>{y("reduce",g)};return N({setDisabled:g=>{s.value=g},setReadonly:g=>{v.value=g}}),()=>{if(p.value==="on"&&(c.value||d.value))return l({modelValue:f.value},a.slots);const g={"left-icon":a.slots["left-icon"],"right-icon":a.slots["right-icon"]},x=be(i,Mo),B=(0,t.h)(r,{...a.attrs,...x,class:b.value,disabled:d.value,readonly:c.value,value:f.value,"onUpdate:modelValue":k,onAdd:A,onReduce:h},g),T=[];T.push(B);const w={default:()=>T};w.label=a.slots.default,w.fixedPreTip=a.slots.fixedPreTip,w.fixedTip=a.slots.fixedTip;const I={...be(i,Se,ge),ref:u};return i.prop&&(I.prop=`${i.prop}_item`),I.class=C.value,I["content-class"]=m.value,o(I,w)}}}}var{componentName:hv,create:gv,scope:yv}=le("input-number-item"),bv=gv(vv(hv,yv,Ie,ze,yl)),Ro=bv,Sv={...ko,...wo,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function kv(e,n,o,l){return{props:Sv,emits:["update:modelValue","change"],setup(r,i){const{emitEvent:a,exposeApi:u}=He({context:i},r.prop),{slots:s}=i,d=e,v=(0,t.computed)(()=>{const b=[`${d}`];return r.direction==="vertical"?b.push("vertical-tabbar"):b.push("horizontal-tabbar"),b}),c=(0,t.computed)(()=>{const b={};if(r.width){const m=ue(r.width);m&&(b.width=m)}if(r.height){const m=ue(r.height);m&&(b.height=m)}return b}),p=(0,t.computed)(()=>[`${d}__bar`]),y=(0,t.computed)(()=>[`${d}__container`]),N=(0,t.ref)(r.modelValue);(0,t.watch)(()=>r.modelValue,b=>{N.value!==b&&(N.value=b)});const S=b=>{a("change",b)},C=b=>{N.value!==b&&(N.value=b,a("update:modelValue",b))};return u({}),()=>{const{getChildren:b}=rn(s.default),m=b(),f=[];if(Array.isArray(r.data))f.push(...r.data);else for(let T=0;T<m.length;T++){const w=m[T].props??{},I={text:w.label??"",value:w["pane-key"]??w.paneKey??""};f.push(I)}const k={};for(let T in s)T!=="default"&&(k[T]=s[T]);const A=be(r,ko);Object.assign(A,{prop:null,data:f,class:p.value,modelValue:N.value,direction:r.direction,onChange:S,"onUpdate:modelValue":C});const h=(0,t.h)(o,A,k),g={default:()=>m},x=be(r,wo);Object.assign(x,{prop:null,class:y.value,modelValue:N.value,onChange:S,"onUpdate:modelValue":C});const B=(0,t.h)(l,x,g);return(0,t.h)("view",{class:v.value,style:c.value},[h,B])}}}}var{create:wv,componentName:Cv,scope:Nv}=le("tabs-frame"),Av=wv(kv(Cv,Nv,cn,dn)),zo=Av,Bv={prop:{type:[String]},direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function Tv(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Er(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Dr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Vv(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Vl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Ir(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function qr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function xl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var xv=class{scope;constructor(e){this.scope=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[o]);const l=at(e,this.scope);return l===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(De(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await Reflect.apply(l,null,[n,o]))}};function $v(){const e=mt();return new xv(e)}function Ev(e,n,o,l){return{props:Bv,emits:["update:modelValue","change","loaded-data","click"],setup(r,i){const{emitEvent:a,exposeApi:u}=He({context:i},r.prop),s=e,d=$v(),v=(0,t.ref)([]),c=(0,t.computed)(()=>v.value.filter(H=>Vv(r,H)!==!1)),p=(0,t.ref)(-1),y=()=>{const H=r.modelValue,Z=c.value.findIndex(X=>Er(r,X)===H);p.value!==Z&&(p.value=Z,r.scroll&&te(Z,!1))};(0,t.watch)([()=>r.modelValue,c],()=>{y()});const N=H=>p.value===H,S=H=>{if(H<0&&H>=c.value.length)return!1;const Z=c.value[H],X=(xl(r,Z,H)??{}).status??Vl(r,Z);return N(H)||X},C=(0,t.computed)(()=>{const H={[s]:!0};return r.mode?H[`is-${r.mode}`]=!0:r.direction&&(H[`is-${r.direction}`]=!0),r.scroll&&(H["is-scroll"]=!0),H}),b=(0,t.computed)(()=>({})),m=(H,Z,X,Q,R)=>{const Y={[`${s}__step`]:!0};return R&&(Y[`${R}`]=!0),Y[`${f.value}`]=!0,Q&&(Y["is-doit"]=!0),H===p.value?Y["is-active"]=!0:Z==="done"?Y["is-done"]=!0:Z==="error"?Y["is-error"]=!0:Z==="half"?Y["is-half"]=!0:X?Y["is-disabled"]=!0:Y["is-normal"]=!0,Y},f=(0,t.computed)(()=>{let H=r.align;if(!H){if(r.mode==="simple")return"start";r.direction==="vertical"?H="start":H="center"}return H}),k=(H,Z={})=>{const X={...Z};if(f.value==="start"&&H===c.value.length-1)X.flex="0 0 auto";else if(r.step){const Q=typeof r.step=="number"||eo(r.step)?ue(r.step):r.step;r.direction==="vertical"?X.height=Q:X.width=Q}else X.flex="1 1 100%";return X},A=(H,Z)=>{let X={};if(Z<c.value.length-1){const Q=Z+1;S(Z)&&S(Q)?r.direction==="vertical"?X.height="100%":X.width="100%":X.opacity="0"}return X},h=H=>c.value.length-1===H,g=(H,Z)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&Z>p.value||p.value===Z)return;const X=p.value,Q=Z;p.value=Z,r.scroll&&te(Z,!1);const R=Er(r,H);a("update:modelValue",R);const Y={fromIndex:X,currentIndex:Q,item:H,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy};a("change",R,Y)},x=(0,t.ref)(!0),B=async(H,Z)=>{try{const X=await d.load("stesbar",H,Z);Array.isArray(X)&&(v.value=X),x.value=!1}catch(X){console.error("[FoxUI] Load StepsBar Data Fail",X),v.value=[]}setTimeout(()=>{a("loaded-data")},250)};(0,t.watch)([()=>r.data,()=>r.params],async([H,Z])=>{H&&B(H,Z)},{immediate:!0}),u({});const T=(H,Z,X,Q,R,Y)=>{const U=[];let _=null;if(!Y)if(i.slots.icon)_=i.slots.icon({item:H,index:Z,status:Q});else if(Q==="done"){const K={};r.iconSize&&(K.width=r.iconSize,K.height=r.iconSize),_=(0,t.h)(r.icon??o,K)}else _=(0,t.h)("span",{},[X??`${Z+1}`]);return _&&U.push(_),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{a("click",{item:H,index:Z}),!R&&g(H,Z)}},U)},w=(H,Z,X)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:A(H,Z)})]),I=()=>{let H=null;if(i.slots.markIcon)H=i.slots.markIcon();else{const Z={};r.iconSize&&(Z.width=r.markIconSize,Z.height=r.markIconSize),H=(0,t.h)(r.markIcon??l,Z)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[H])},L=(H,Z,X,Q,R,Y)=>{const U=[];if(!h(Z)){const K=w(H,Z,Q);U.push(K)}const _=T(H,Z,X,Q,R,Y);return U.push(_),(0,t.h)("view",{class:"fox-steps-bar__head"},U)},V=(H,Z,X,Q)=>{let R=null;return i.slots.main?R=i.slots.main({item:H,index:Z,status:X}):R=Tv(r,H),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{a("click",{item:H,index:Z}),!Q&&g(H,Z)}},[R])},M=(H,Z,X)=>{let Q=null;return i.slots.sub?(Q=i.slots.sub({item:H,index:Z,status:X}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[Q])):null},q=(H,Z)=>{const X=xl(r,H,Z)??{},Q=X.status??Vl(r,H);let R=Dr(r,H);X.disabled===!0&&(R=!0),r.disabled===!0&&(R=!0);let Y=Ir(r,H);X.doit===!0&&(Y=!0);const U=X.label??qr(r,H),_=[],K=T(H,Z,U,Q,R,Y);K&&_.push(K);const ne=V(H,Z,Q,R);if(ne&&_.push(ne),!h(Z)){const W=w(H,Z,Q);W&&_.push(W)}const F=[],G=(0,t.h)("view",{class:"fox-steps-bar__head"},_);F.push(G);const E=M(H,Z,Q);E&&F.push(E);const $=X.class,z=X.style??{};return(0,t.h)("view",{ref:ee(Z),class:m(Z,Q,R,Y,$),style:k(Z,z)},F)},O=(H,Z)=>{const X=xl(r,H,Z)??{},Q=X.status??Vl(r,H);let R=Dr(r,H);X.disabled===!0&&(R=!0),r.disabled===!0&&(R=!0);let Y=Ir(r,H);X.doit===!0&&(Y=!0);const U=X.label??qr(r,H),_=[],K=r.layout;for(let G of K)if(G==="head"){const E=L(H,Z,U,Q,R,Y);_.push(E)}else if(G==="main"){const E=V(H,Z,Q,R);_.push(E)}else if(G==="sub"){const E=M(H,Z,Q);_.push(E)}else if(G==="mark"){const E=I();_.push(E)}const ne=X.class,F=X.style??{};return(0,t.h)("view",{ref:ee(Z),class:m(Z,Q,R,Y,ne),style:k(Z,F)},_)},P=(0,t.ref)(),j=(0,t.ref)([]),D=(H,Z)=>{j.value[Z]=H},ee=H=>Z=>{D(Z,H)},te=(H,Z)=>{const X=P.value,Q=j.value;if(!X||!Q||!Q[H])return;const R=Q[H];let Y=0;r.direction==="vertical"?Y=R.offsetTop-(X.offsetHeight-R.offsetHeight)/2:Y=R.offsetLeft-(X.offsetWidth-R.offsetWidth)/2,oe(X,Y,Z?0:.3,r.direction)},oe=(H,Z,X,Q)=>{let R=0;const Y=Q==="horizontal"?H.scrollLeft:H.scrollTop,U=X===0?1:Math.round(X*1e3/16);function _(){Q==="horizontal"?H.scrollLeft+=(Z-Y)/U:H.scrollTop+=(Z-Y)/U,++R<U&&Ge(_)}_()};return()=>{let H=[];if(r.mode==="simple")for(let X=0;X<c.value.length;X++){const Q=c.value[X],R=q(Q,X);H.push(R)}else for(let X=0;X<c.value.length;X++){const Q=c.value[X],R=O(Q,X);H.push(R)}const Z={ref:P,class:C.value,style:b.value};return H.length===0&&typeof i.slots.default=="function"&&(H=i.slots.default()),(0,t.h)("view",Z,H)}}}}var{componentName:Dv,create:Iv,scope:qv}=le("steps-bar"),Pv=Iv(Ev(Dv,qv,re.Checklist,re.ArrowRight)),Lo=Pv;function Mv(e){e.stopPropagation()}var Rv=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=ll()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=ol(),o=(l,r,i,a)=>{this.updateMove({x:l,y:r})};this.touchstart=l=>{this.moving||(n.start(l),this.startMove({x:n.state.startX,y:n.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(n.move(l),Mv(l),o(n.state.deltaX,n.state.deltaY,"",0))},this.touchend=()=>{o(n.state.deltaX,n.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),n.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function zv(e,n){return new Rv(e,n)}var Lv={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]},teleport:{type:[String,Element],default:"body"},teleportDisable:{type:Boolean,default:!0}},Fv=(e,n,o,l=!1)=>({props:Lv,emits:["click"],setup(r,{slots:i,emit:a,attrs:u}){let s=-1,d=-1;const v=(0,t.reactive)({top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:0,height:0}),c=(0,t.computed)(()=>{const A=[`${e}`];return r.customClass&&A.push(r.customClass),A}),p=(0,t.computed)(()=>{const A={};return pe(v.top)||(A.top=ue(v.top)),pe(v.right)||(A.right=ue(v.right)),pe(v.bottom)||(A.bottom=ue(v.bottom)),pe(v.left)||(A.left=ue(v.left)),pe(r.width)||(A.width=ue(r.width)),pe(r.height)||(A.height=ue(r.height)),pe(r.color)||(A.color=r.color),pe(r.background)||(A.background=r.background),pe(r.borderRadius)||(A["border-radius"]=r.borderRadius),pe(r.zIndex)||(A["z-index"]=r.zIndex),A}),y=(0,t.computed)(()=>({[`${e}__icon`]:!0})),N=()=>{a("click")},S=(0,t.ref)(null),C=()=>{v.top=null,v.right=null,v.bottom=null,v.left=null},b={x:0,y:0},k=zv(A=>{if(!S.value)return;const h=S.value;C(),v.left=h.offsetLeft,v.top=h.offsetTop,h.style.left=ue(v.left),h.style.top=ue(v.top),h.style.right=null,h.style.bottom=null,b.x=h.offsetLeft,b.y=h.offsetTop,v.width=h.offsetWidth,v.height=h.offsetHeight,s=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight},A=>{if(!S.value)return;const h=S.value;C();let g=b.x+A.x;g<0&&(g=0),g>s-v.width&&(g=s-v.width);let x=b.y+A.y;x<0&&(x=0),x>d-v.height&&(x=d-v.height),v.left=ue(g),v.top=ue(x),h.style.left=ue(g),h.style.top=ue(x)});return(0,t.onMounted)(()=>{if(r.draggable&&S.value){const A=[S.value];k.open(A)}}),(0,t.onBeforeUnmount)(()=>{r.draggable&&S.value&&k.close()}),()=>{let A=[];const h=typeof i.default=="function"?i.default():[];if(h&&h.length>0)A=h;else{const x=(0,t.h)(o,{class:y.value});A.push(x)}const g=(0,t.h)("view",{...u,ref:x=>{S.value=x},class:c.value,style:p.value,onClick:N},A);return r.teleportDisable===!1?(0,t.h)(t.Teleport,{to:r.teleport},[g]):g}}}),{componentName:Ov,create:Kv,scope:Uv}=le("floating-button"),_v=Kv(Fv(Ov,Uv,re.Uploader,!1)),Fo=_v,Hv={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 jv(e,n,o){return{props:{...Hv},emits:["click","update:modelValue"],setup(l,{emit:r,slots:i}){const{toLocaleRefs:a}=(0,he.useFoxI18n)(n),u=a(l,["collapseText","expandText"]),s=(0,t.computed)(()=>{const N={[`${e}`]:!0};return l.disabled?N[`${e}--disabled`]=!0:N[`${e}--${l.type}`]=!0,N}),d=Re(l,"modelValue"),v=(0,t.computed)(()=>d.value?u.expandText.value??"":u.collapseText.value??""),c=(0,t.computed)(()=>({[`${e}__text`]:!0})),p=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),y=()=>{r("update:modelValue",!d.value)};return()=>{const N=[];if(v.value){const b=(0,t.h)("span",{class:c.value},[v.value]);N.push(b)}const S={class:p.value},C=(i.icon&&i.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(o);if(C){const b=(0,t.h)("view",S,[C]);N.push(b)}return l.textPosition==="right"&&N.reverse(),(0,t.h)("view",{class:s.value,onClick:y},N)}}}}var{componentName:Wv,create:Yv,scope:Xv}=le("more-button"),Qv=Yv(jv(Wv,Xv,re.RectUp)),Oo=Qv,Gv={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}},Zv=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Jv(e,n,o){return{props:{...Gv},emits:["update:visible"],setup(l,{attrs:r,slots:i,emit:a}){const{toLocaleRefs:u}=(0,he.useFoxI18n)(n),s=u(l,["confirmText","cancelText"]),d=e,v=(0,t.ref)(l.visible),c=A=>{v.value=A,a("update:visible",A)};(0,t.watch)(()=>l.visible,A=>{v.value!==A&&(v.value=A)});const p=A=>{if(typeof l.unmount=="function")try{l.unmount()}catch(h){console.error(h)}if(typeof l.callback=="function")try{l.callback(A)}catch(h){console.error(h)}},y=()=>{p("confirm")},N=()=>{p("cancel")},S=()=>{l.closeOnClickOverlay!==!1&&p("close")},C=(A,h)=>Zv(A)?(h.src=A,(0,t.h)("img",h)):typeof A=="string"?(Array.isArray(h.class)?h.class.push(A):h.class&&typeof h.class=="object"?h[`${A}`]=!0:typeof h.class=="string"?h.class=`${h.class}, ${A}`:h.class=A,(0,t.h)(l.tag,h)):(0,t.h)(A,h),b=()=>{const A=[];if(l.icon){const h={class:[`${d}__header-icon`]},g=C(l.icon,h);A.push(g)}if(l.title){const h=(0,t.h)("view",{class:`${d}__header-title`},[l.title]);A.push(h)}if(l.showClose&&l.closeIcon){const h={class:[`${d}__header-close-icon`],onClick:S},g=C(l.closeIcon,h);A.push(g)}return(0,t.h)("view",{class:[`${d}__header`]},A)},m=(A,h)=>{const g=[];if(h){const x=(0,t.h)("view",{class:`${d}__group-title`},[h]);g.push(x)}if(A){const x=[];Array.isArray(A)||(A=[A]);for(let B of A){const T=(0,t.h)("view",{class:`${d}__group-row`,innerHTML:B});x.push(T)}if(x.length>0){const B=(0,t.h)("view",{class:`${d}__group-rows`},x);g.push(B)}}return g.length===0?null:(0,t.h)("view",{class:`${d}__group`},g)},f=()=>{const A=[];if(typeof l.message=="string")A.push(l.message);else if(Array.isArray(l.message))for(let h of l.message)if(typeof h=="string"){const g=m(h);A.push(g)}else{const g=m(h.content,h.title);A.push(g)}else if(typeof l.message=="function"){const h=l.message();A.push(h)}else{const h=l.message;A.push(h)}return(0,t.h)("view",{class:`${d}__body`},A)},k=()=>{const A=[];if(l.showCancelButton){const h={class:[`${d}__footer-button`],style:{},onClick:N};l.cancelButtonClass&&h.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(h.style,l.cancleButtonStyle);const g=(0,t.h)("button",h,[l.cancelButtonText??s.cancelText.value]);A.push(g)}if(l.showConfirmButton){const h={class:[`${d}__footer-button`],style:{},onClick:y};l.confirmButtonClass&&h.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(h.style,l.confirmButtonStyle);const g=(0,t.h)("button",h,[l.confirmButtonText??s.confirmText.value]);A.push(g)}return A.length===0?null:(0,t.h)("view",{class:`${d}__footer`},A)};return()=>{const A=[],h=b();h&&A.push(h);const g=f();g&&A.push(g);const x=k();x&&A.push(x);const B=(0,t.h)("view",{class:{[`${d}`]:!0,[`${d}--${l.type||"info"}`]:!0}},A),T=[`${d}__popup`];l.popClass&&T.push(l.popClass);const w={};return l.width&&(w.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(w.height=typeof l.height=="number"?`${l.height}px`:l.height),(0,t.h)(o,{popClass:T.join(" "),style:w,visible:v.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":c,position:l.position,round:"round",onClickOverlay:S,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>B})}}}}var{componentName:eh,create:th,scope:nh}=le("messagebox"),lh=th(Jv(eh,nh,Ce)),oh=lh,ah="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",rh="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",ih="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",sh="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",uh=new Zn,ch={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},dh=e=>{let n=document.body,o=e.teleport;o!="body"&&(typeof o=="string"?n=document.querySelector(o):o&&(n=e.teleport));const l=document.createElement("view"),r=`messagebox-${uh.get()}`;l.id=r,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const a=document.querySelector(`#${r}`);a&&a.parentNode?.removeChild(a)};const i=(0,t.createVNode)(oh,e);n.appendChild(l),(0,t.render)(i,l)},st={show:(e,n,o,l)=>{const r={...ch};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(r,n):(n&&(r.message=n),o&&typeof o=="object"?Object.assign(r,o):(typeof o=="string"&&(r.title=o),l&&typeof l=="object"?Object.assign(r,l):typeof l=="string"&&(r.type=l)));const i=r.type??"info";return r.icon||(i==="success"?r.icon=ih:i==="warning"?r.icon=sh:i==="error"?r.icon=ah:r.icon=rh),e==="alert"?(r.showCancelButton=!1,r.showConfirmButton=!0):e==="confirm"&&(r.showCancelButton=!0,r.showConfirmButton=!0),r.showClose&&!r.closeIcon&&(r.closeIcon=re.Close),new Promise((a,u)=>{const s=r.callback;r.callback=d=>{if(typeof s=="function")try{s(d)}catch(v){console.error(v)}a({action:d})},dh(r)})},alert:(e,n,o)=>st.show("alert",e,n,o),confirm:(e,n,o)=>st.show("confirm",e,n,o),install(e){e.config.globalProperties.$alert=st.alert,e.config.globalProperties.$confirm=st.confirm}},fh=(e,n,o)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let r=!0,i=!0;for(let a in n)a==="bubbles"?r=!!n[a]:a==="cancelable"?i=!!n[a]:l[a]=n[a];l.initEvent(e,r,i),(o??document).dispatchEvent(l)},mh=new Zn,ph=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),vh=e=>`${e}-${mh.get()}`,hh=Symbol.for("InnerPageScopeKey"),gh=Symbol.for("PageWrapperKey"),yh="FoxLeave",bh="FoxLeaveEnd",Sh={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 kh(e,n,o,l){return{props:{...nt,...Sh},emits:["update:visible"],setup(r,{attrs:i,slots:a,emit:u}){(0,t.provide)(hh,!0);const s={};(0,t.provide)(gh,s);const d=h=>(typeof s.beforeClose=="function"&&s.beforeClose(),!1),v=()=>{d("close")},c=e,p=h=>{y.value=h,u("update:visible",h)},y=(0,t.ref)(!1),N=(h,g)=>ph(h)?(g.src=h,(0,t.h)("img",g)):typeof h=="string"?(Array.isArray(g.class)?g.class.push(h):g.class&&typeof g.class=="object"?g[`${h}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${h}`:g.class=h,(0,t.h)(r.tag,g)):(0,t.h)(h,g),S=()=>{if(!r.showHeader)return null;const h=[];if(a.header){const g=a.header();h.push(g)}else if(r.title){const g=(0,t.h)("view",{class:`${c}__header-title`},[r.title]);h.push(g)}return h.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},h)},C=()=>{if(!r.showClose)return null;const h={class:[`${c}__close-icon`],onClick:v},g=r.closeIcon??l;return N(g,h)};let b=null;const m=h=>{fh(bh,{},b)},f=vh(e),k=()=>{p(!0)},A=()=>{if(!b)return;const h=b.querySelector(".fox-overlay");h&&(h.classList.add("overlay-fade-leave-active"),h.classList.add("overlay-fade-leave-to"));const g=b.querySelector(".fox-popup");g&&(g.classList.add(`fox-popup-slide-${r.position}-leave-active`),g.classList.add(`fox-popup-slide-${r.position}-leave-to`),g.addEventListener("animationend",m,{once:!0}),g.addEventListener("transitionend",m,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{b=document.querySelector(`.${f}`),b?.addEventListener(yh,A,{once:!0}),k()}),()=>{const h=[],g=S();g&&h.push(g);const x=C();x&&h.push(x);const B=a.default?a.default():[];Reflect.apply([].push,h,B);const T={[`${c}`]:!0};r.mode&&(T[`${c}--${r.mode}`]=!0);const w=(0,t.h)("view",{class:T},h),I=[`${c}__popup`,f];r.popClass&&I.push(r.popClass),r.position&&I.push(`${c}__popup--${r.position}`);const L={};r.width&&(L.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(L.height=typeof r.height=="number"?`${r.height}px`:r.height);const V=(0,t.h)(o,{...be(r,nt),popClass:I.join(" "),style:L,visible:y.value,teleportDisable:!0,closeable:!1,position:r.position,closeOnClickOverlay:r.closeOnClickOverlay,onClickOverlay:v,"onUpdate:visible":p},{default:()=>w});return(0,t.h)("div",{class:[`${c}__root`,f]},[V])}}}}var{componentName:wh,create:Ch,scope:Nh}=le("popup-wrapper"),Ah=Ch(kh(wh,Nh,Ce,re.Close)),Ko=Ah,Bh={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function Th(e,n,o,l){return{props:{...Bh},emits:["update:visible"],setup(r,{emit:i,slots:a}){const u=s=>{i("update:visible",s)};return()=>{const s=[`${e}__popup`];r.popClass&&s.push(r.popClass);const d=(0,t.h)(o,{popClass:s,style:r.popStyle??{},position:"top",zIndex:r.zIndex,closeOnClickOverlay:r.closeOnClickOverlay,teleportDisable:!0,visible:r.visible,"onUpdate:visible":u},a);return(0,t.h)("view",{class:`${e}`},[d])}}}}var{componentName:Vh,create:xh,scope:$h}=le("dropdown"),Eh=xh(Th(Vh,$h,Ce,!1)),Uo=Eh,Dh={name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean,Object],required:!1}};function Ih(e,n){return{inheritAttrs:!1,props:Dh,setup(o,l){const{exposeApi:r}=ai({context:l,props:()=>o.config},o.name);return Te(o.innerPageScope)||si(o.innerPageScope),Te(o.abstractPageScope)||ui(o.abstractPageScope),r(),()=>typeof l.slots.default=="function"?l.slots.default():null}}}var{componentName:qh,create:Ph,scope:Mh}=le("domain-provider"),Rh=Ph(Ih(qh,Mh)),_o=Rh,zh={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 Lh(e,n){return{inheritAttrs:!1,props:zh,emits:["change"],setup(o,{slots:l,emit:r}){if(lt&&window.IntersectionObserver){const i=new WeakMap;let a=new Map;const u=(p,y)=>{if(v===null){a.set(p,{visible:null,callback:y});return}i.has(p)&&v.unobserve(p),i.set(p,{visible:null,callback:y}),v.observe(p)},s=p=>{if(v===null){a.delete(p);return}i.has(p)&&(i.delete(p),v.unobserve(p))};let d=o.initialVisibleObserverSize;Au({acquire:()=>{if(o.loadPolicy==="always")return!0;const p=d>0;return d--,p},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:u,unobserve:s});let v=null;const c=(p,y,N)=>{v=new IntersectionObserver(S=>{if(r("change",S),o.loadPolicy!=="always")for(let C of S){let b=!1;C.intersectionRatio>0&&(b=!0);const m=i.get(C.target);if(m)try{if(o.loadPolicy==="lazy"&&!b&&m.visible!==null)return;m.visible=b,m.callback(b)}catch(f){console.error(f)}}},{root:p,rootMargin:y,threshold:N}),a.forEach((S,C)=>{i.set(C,S),v?.observe(C)}),a.clear()};(0,t.watch)([()=>o.root,()=>o.disabled],([p,y])=>{if(y||!p||v)return;let N=null;typeof p=="string"?N=document.querySelector(p):N=p,N&&c(N,o.rootMargin,o.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{v&&(v.disconnect(),v=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:Fh,create:Oh,scope:Kh}=le("rolling-provider"),Uh=Oh(Lh(Fh,Kh)),Ho=Uh,{componentName:_h,create:Hh}=le("cell"),jh=Hh({components:{Right:re.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const i=_h;return{[i]:!0,[`${i}--clickable`]:e.isLink,[`${i}--center`]:e.center,[`${i}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:ue(e.roundRadius)}));return{handleClick:i=>{n("click",i)},classes:o,baseStyle:l}}}),Wh={key:0,class:"fox-cell__icon"},Yh={key:1,class:"fox-cell__title"},Xh={class:"title"},Qh={class:"fox-cell__title-desc"};function Gh(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Right");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.baseStyle),onClick:n[0]||(n[0]=(...u)=>e.handleClick&&e.handleClick(...u))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wh,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Yh,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",Xh,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",Qh,(0,t.toDisplayString)(e.subTitle),1)],64)):(0,t.renderSlot)(e.$slots,"title",{key:1},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)])])):(0,t.createCommentVNode)("",!0),e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:(0,t.normalizeStyle)({"text-align":e.descTextAlign})},(0,t.toDisplayString)(e.desc),7)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"link",{},()=>[e.isLink?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var jo=ie(jh,[["render",Gh]]),Zh={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function Jh(e,n){return{props:{...Zh},setup(o,{attrs:l,slots:r}){const i=(0,t.computed)(()=>{const a={};return o.color&&(a.color=o.color),o.size&&(a.fontSize=ue(o.size)),a});return()=>{const a={style:i.value,class:`${e}-wrap`,...l};return(0,t.h)(o.tag??"li",a,r)}}}}var{componentName:eg,create:tg,scope:ng}=le("icon"),lg=tg(Jh(eg,ng)),Wo=lg,{componentName:og,create:ag}=le("cell-group"),rg=ag({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[og]:!0}))}}}),ig={key:1,class:"fox-cell-group__title"},sg={key:3,class:"fox-cell-group__desc"},ug={class:"fox-cell-group__wrap"};function cg(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",ig,(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",sg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",ug,[(0,t.renderSlot)(e.$slots,"default")])],2)}var Yo=ie(rg,[["render",cg]]),{componentName:dg,create:fg}=le("image"),mg=fg({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:re.Image,ImageError:re.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const o=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const y=dg;return{[y]:!0,[`${y}-round`]:e.round}}),r=(0,t.ref)(null),i=(0,t.ref)(!1),a=(0,t.ref)(null),u=()=>{r.value=new IntersectionObserver(y=>{y.forEach(N=>{N.isIntersecting&&(i.value=!0,r.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),a.value&&r.value.observe(a.value)};(0,t.onMounted)(()=>{e.lazyLoad&&u()}),(0,t.onBeforeUnmount)(()=>{r.value&&r.value.disconnect()});const s=(0,t.computed)(()=>{let y={};return e.width&&(y.width=ue(e.width)),e.height&&(y.height=ue(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=ue(e.radius)),y}),d=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,y=>{o.isError=!1,o.loading=!0});const v=()=>{o.loading=!1,n("load")},c=()=>{o.isError=!0,o.loading=!1,n("error")},p=y=>{n("click",y)};return{...(0,t.toRefs)(o),imageClick:p,classes:l,styles:d,stylebox:s,error:c,load:v,show:i,imgRef:a}}}),pg=["src","date-src","alt"],vg={key:0,class:"fox-img-loading"},hg={key:1,class:"fox-img-error"};function gg(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Image"),u=(0,t.resolveComponent)("ImageError");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.stylebox),onClick:n[2]||(n[2]=(...s)=>e.imageClick&&e.imageClick(...s))},[(0,t.createElementVNode)("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:n[0]||(n[0]=(...s)=>e.load&&e.load(...s)),onError:n[1]||(n[1]=(...s)=>e.error&&e.error(...s)),style:(0,t.normalizeStyle)(e.styles)},null,44,pg),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",vg,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,width:"16px",height:"20px",name:"image"})),(0,t.renderSlot)(e.$slots,"loading")])):(0,t.createCommentVNode)("",!0),e.isError&&!e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",hg,[e.slotError?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,width:"16px",height:"20px",name:"imageError"})),(0,t.renderSlot)(e.$slots,"error")])):(0,t.createCommentVNode)("",!0)],6)}var Xo=ie(mg,[["render",gg]]),{create:yg}=le("layout"),bg=yg({}),Qo=bg,{componentName:Sg,create:kg}=le("col"),wg=kg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=Sg,o=(0,t.inject)("gutter");return{classes:(0,t.computed)(()=>({[n]:!0,[`${n}-gutter`]:o,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),style:(0,t.computed)(()=>({paddingLeft:o/2+"px",paddingRight:o/2+"px"}))}}});function Cg(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Go=ie(wg,[["render",Cg]]),{componentName:Ng,create:Ag}=le("row"),Bg=Ag({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=Ng;(0,t.provide)("gutter",e.gutter);const o=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
|
|
2
2
|
${o("",e.type)}
|
|
3
3
|
${o("justify",e.justify)}
|
|
4
4
|
${o("align",e.align)}
|
|
@@ -6,4 +6,4 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
|
|
|
6
6
|
${n}
|
|
7
7
|
`:`
|
|
8
8
|
${n}
|
|
9
|
-
`)}}});function yg(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)}var Xo=re(gg,[["render",yg]]),{create:bg}=ee("sticky"),Sg=bg({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.ref)(),r=(0,t.reactive)({fixed:!1,height:0,transform:0}),i=(0,t.computed)(()=>e.position==="top"?Number(e.top):Number(e.bottom)),a=(0,t.computed)(()=>r.fixed?{height:`${r.height}px`}:{}),u=(0,t.computed)(()=>r.fixed?{[e.position]:`${i.value}px`,transform:r.transform?`translate3d(0, ${r.transform}px, 0)`:void 0,position:r.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),s=()=>{const d=e.container;if(!o.value&&!d)return;const h=De(o),c=l.value,p=De(c),y=De(d);r.height=h.height;const C=()=>{let w=!1;if(e.position==="top")w=d?i.value>h.top&&y.bottom>0:i.value>h.top;else{const S=document.documentElement.clientHeight;w=d?y.bottom>0&&S-i.value-p.height>y.top:S-i.value<h.bottom}return w},k=()=>{if(d)if(e.position==="top"){const w=y.bottom-i.value-p.height;return w<0?w:0}else{const w=document.documentElement.clientHeight,S=y.bottom-(w-i.value);return S<0?S:0}return 0};r.transform=k(),r.fixed=C()};return(0,t.watch)(()=>r.fixed,d=>{n("change",d)}),(0,t.onMounted)(()=>{s(),jl(o.value).addEventListener("scroll",s,!0)}),(0,t.onUnmounted)(()=>{jl(o.value).removeEventListener("scroll",s)}),{rootRef:o,rootStyle:a,stickyRef:l,stickyStyle:u}}});function kg(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-sticky",ref:"rootRef",style:(0,t.normalizeStyle)(e.rootStyle)},[(0,t.createElementVNode)("div",{class:"fox-sticky__box",ref:"stickyRef",style:(0,t.normalizeStyle)(e.stickyStyle)},[(0,t.renderSlot)(e.$slots,"default")],4)],4)}var Qo=re(Sg,[["render",kg]]),{componentName:wg,create:Cg}=ee("divider"),Ng=Cg({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:(0,t.computed)(()=>{const o=wg;let l={[o]:!0},r={};return e.direction==="horizontal"?r={...l,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:r={...l,[`${o}-vertical`]:e.direction==="vertical"},r})}}});function Ag(e,n,o,l,r,i){return e.direction==="horizontal"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes)},null,2))}var Go=re(Ng,[["render",Ag]]),rn=(e,n={})=>{const o=(0,t.shallowRef)([]),l=i=>{o.value.push(i),(0,t.triggerRef)(o)},r=i=>{const a=o.value.findIndex(u=>u===i);a!=-1&&(o.value.splice(a,1),(0,t.triggerRef)(o))};return(0,t.onUnmounted)(()=>{const i=o.value.length;o.value.splice(0,i)}),(0,t.provide)(e,{unlink:r,link:l,children:o,...n}),{children:o}};function sn(e,n){const o=(0,t.inject)(e,null);if(o){const{link:l,unlink:r,children:i}=o;return l(n),(0,t.onUnmounted)(()=>{r(n)}),{parent:o,index:(0,t.computed)(()=>i.value.indexOf(n))}}return{parent:o,index:(0,t.computed)(()=>-1)}}var{componentName:Bg}=ee("grid"),Oi=Symbol("grid"),Tg={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}},Vg={props:Tg,setup(e,{slots:n}){rn(Oi,{props:e});const o=(0,t.computed)(()=>{const r=Bg;return{[r]:!0,[`${r}--border`]:e.border&&!e.gutter}}),l=(0,t.computed)(()=>{const r={};return e.gutter&&(r.paddingLeft=he(e.gutter)),r});return()=>(0,t.h)("view",{class:o.value,style:l.value},n.default?.())}},{create:xg}=ee("grid"),Eg=xg(Vg),Zo=Eg,{create:$g,componentName:Vr}=ee("grid-item"),Dg=$g({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const{parent:o,index:l}=sn(Oi,{props:e}),r=(0,t.computed)(()=>({[Vr]:!0})),i=(0,t.computed)(()=>{const s={flexBasis:`${100/+o.props.columnNum}%`};return o.props.square?s.paddingTop=`${100/+o.props.columnNum}%`:o.props.gutter&&(s.paddingRight=he(o.props.gutter),l.value>=o.props.columnNum&&(s.marginTop=he(o.props.gutter))),s}),a=(0,t.computed)(()=>{const s=`${Vr}__content`;return{[`${s}`]:!0,[`${s}--border`]:o.props.border,[`${s}--surround`]:o.props.border&&o.props.gutter,[`${s}--center`]:o.props.center,[`${s}--square`]:o.props.square,[`${s}--reverse`]:o.props.reverse,[`${s}--${o.props.direction}`]:!!o.props.direction,[`${s}--clickable`]:o.props.clickable}});return{rootClass:r,rootStyle:i,contentClass:a,handleClick:s=>{n("click",s)}}}}),Ig={class:"fox-grid-item__text"};function qg(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.rootClass),style:(0,t.normalizeStyle)(e.rootStyle),onClick:n[0]||(n[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.contentClass)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("view",Ig,[e.text?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)],64)):(0,t.renderSlot)(e.$slots,"text",{key:1})])],2)],6)}var Jo=re(Dg,[["render",qg]]),{componentName:Pg,create:Mg}=ee("navbar"),Rg=Mg({components:{Left:ae.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:o,fixed:l,safeAreaInsetTop:r,placeholder:i,zIndex:a}=(0,t.toRefs)(e),u=(0,t.ref)(null),s=(0,t.ref)(null);let d=(0,t.ref)();const h=(0,t.computed)(()=>{const w=Pg;return{[w]:!0,[`${w}--border`]:o.value,[`${w}--fixed`]:l.value,[`${w}--safe-area-inset-top`]:r.value}}),c=(0,t.computed)(()=>({zIndex:a.value}));(0,t.onMounted)(()=>{l.value&&i.value&&(0,t.nextTick)(()=>{d.value=s?.value?.getBoundingClientRect().height,u.value.style.height=d.value+"px"})});function p(){n("on-click-back")}function y(){n("on-click-title")}function C(){n("on-click-icon")}function k(){n("on-click-right")}return{navBarWrap:u,navBarHtml:s,classes:h,styles:c,handleLeft:p,handleCenter:y,handleCenterIcon:C,handleRight:k}}}),zg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Fg={key:1,class:"fox-navbar__text"},Lg={class:"fox-navbar__title"},Og={key:0,class:"fox-navbar__text"},Kg={key:1,class:"fox-navbar__text"},Ug={class:"fox-navbar__title"},Hg={key:0,class:"fox-navbar__text"};function _g(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",zg,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),ref:"navBarHtml"},[(0,t.createElementVNode)("view",{class:"fox-navbar__left",onClick:n[0]||(n[0]=(...u)=>e.handleLeft&&e.handleLeft(...u))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(a,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fg,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Lg,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...u)=>e.handleCenter&&e.handleCenter(...u))},(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.titleIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"icon",onClick:n[3]||(n[3]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...u)=>e.handleRight&&e.handleRight(...u))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Og,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6)],512)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("view",{class:"fox-navbar__left",onClick:n[5]||(n[5]=(...u)=>e.handleLeft&&e.handleLeft(...u))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(a,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Kg,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Ug,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...u)=>e.handleCenter&&e.handleCenter(...u))},(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.titleIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"icon",onClick:n[8]||(n[8]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...u)=>e.handleRight&&e.handleRight(...u))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var ea=re(Rg,[["render",_g]]),jg=(e,n,o)=>({components:o,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{type:String,default:""},activeText:{type:String},unActiveText:{type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(l,{emit:r}){const{toLocaleRefs:i}=(0,ve.useFoxI18n)(n),a=i(l,["activeText","unActiveText"]),u=(0,t.computed)(()=>({[e]:!0,active:l.visible,[l.type]:!0})),s=(0,t.ref)(-1);return{...a,classes:u,updateValue:(c=!l.visible)=>{r("update:visible",c)},selected:(c,p)=>{r("selected",{item:c,event:p}),s.value=c.id},current:s}}}),{componentName:Wg,create:Yg,scope:Xg}=ee("fixednav"),Qg=Yg(jg(Wg,Xg,{[st.name]:st,Left:ae.Left})),Gg={class:"fox-fixednav__list"},Zg=["onClick"],Jg=["src"],ey={class:"span"},ty={key:0,class:"b"},ny={class:"text"};function ly(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-overlay"),u=(0,t.resolveComponent)("Left");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.position)},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=s=>e.updateValue(!1))},null,8,["visible"])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"list",{},()=>[(0,t.createElementVNode)("view",Gg,[((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,Jg),(0,t.createElementVNode)("view",ey,(0,t.toDisplayString)(s.text),1),s.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",ty,(0,t.toDisplayString)(s.num),1)):(0,t.createCommentVNode)("",!0)],10,Zg))),128))])]),(0,t.createElementVNode)("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=s=>e.updateValue())},[(0,t.renderSlot)(e.$slots,"btn",{},()=>[(0,t.createVNode)(u,{color:"#fff"}),(0,t.createElementVNode)("view",ny,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var ta=re(Qg,[["render",ly]]),Ki=Symbol("fox-menu"),{componentName:oy,create:ay}=ee("menu"),ry=ay({components:{RectUp:ae.RectUp,RectDown:ae.RectDown},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:{type:String,default:""}},setup(e){const n=(0,t.ref)(),o=(0,t.ref)(0),l=(0,t.ref)(!1),{children:r}=rn(Ki,{props:e,offset:o}),i=(0,t.computed)(()=>r.value.some(p=>p.state.showWrapper)),a=(0,t.computed)(()=>({[oy]:!0,"scroll-fixed":l.value})),u=()=>{if(n.value){const p=De(n);e.direction==="down"?o.value=p.bottom:o.value=window.innerHeight-p.top}},s=p=>{r.value.forEach((y,C)=>{C===p?(u(),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))},c=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:a,barRef:n,getClasses:c}}}),iy=["onClick"],sy={class:"fox-menu__title-text"},uy={class:"fox-menu__title-icon"};function cy(e,n,o,l,r,i){const a=(0,t.resolveComponent)("RectUp"),u=(0,t.resolveComponent)("RectDown");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{ref:"barRef",class:(0,t.normalizeClass)(["fox-menu__bar",{opened:e.opened}])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.children,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu__item",{disabled:s.props.disabled,active:s.state.showPopup}]),style:(0,t.normalizeStyle)({color:s.state.showPopup?e.activeColor:""}),onClick:h=>!s.props.disabled&&e.toggleItem(d)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__title",e.getClasses(s.state.showPopup)])},[(0,t.createElementVNode)("view",sy,(0,t.toDisplayString)(s.renderTitle()),1),(0,t.createElementVNode)("span",uy,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.direction==="up"?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1}))])])],2)],14,iy))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var na=re(ry,[["render",cy]]),{create:dy}=ee("menu-item"),fy=dy({props:{title:[String],options:{type:Array,default:[]},disabled:{type:[Boolean],default:!1},modelValue:{type:[String,Number,Boolean]},cols:{type:Number,default:1},activeTitleClass:{type:[String]},inactiveTitleClass:{type:[String]}},components:{FoxPopup:we,Check:ae.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n}){const o=(0,t.reactive)({showPopup:!1,showWrapper:!1}),l=(0,t.computed)(()=>h.props.direction==="down"?{top:h.offset.value+"px"}:{bottom:h.offset.value+"px"}),r=(0,t.computed)(()=>{const c={height:h.offset.value+"px"};return h.props.direction==="down"?{...c,top:"0px"}:{...c,bottom:"0px"}}),i=(c=!o.showPopup)=>{c!==o.showPopup&&(o.showPopup=c,c&&(o.showWrapper=!0,n("open")))},a=()=>{if(e.title)return e.title;const c=e.options?.find(p=>p.value===e.modelValue);return c?c.text:""},u=c=>{o.showPopup=!1,c.value!==e.modelValue&&(n("update:modelValue",c.value),n("change",c.value))},s=()=>{n("close"),o.showWrapper=!1},d=()=>{o.showPopup=!1,n("close")},{parent:h}=sn(Ki,{props:e,state:o,toggle:i,renderTitle:a});return{style:l,placeholderElementStyle:r,renderTitle:a,state:o,parent:h,toggle:i,onClick:u,handleClose:s,handleClickOutside:d}}}),my={class:"fox-menu-item"},py={class:"fox-menu-item__content fox-menu-item__overflow"},hy=["onClick"];function vy(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Check"),u=(0,t.resolveComponent)("FoxPopup");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",my,[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-menu-item-placeholder-element",style:(0,t.normalizeStyle)(e.placeholderElementStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClickOutside&&e.handleClickOutside(...s))},null,4),[[t.vShow,e.state.showPopup]]),(0,t.createVNode)(u,(0,t.mergeProps)(e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.state.showPopup=s),style:{position:"absolute"},"overlay-style":{position:"absolute"},position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"destroy-on-close":!1,overlay:e.parent.props.overlay,"lock-scroll":e.parent.props.lockScroll,"teleport-disable":!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay,onClosed:e.handleClose}),{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",py,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu-item__option",[{active:s.value===e.modelValue}]]),style:(0,t.normalizeStyle)({"flex-basis":100/e.cols+"%"}),onClick:h=>e.onClick(s)},[s.value===e.modelValue?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:(0,t.normalizeClass)(["fox-menu-item__span",[s.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[(0,t.renderSlot)(e.$slots,"icon",{},()=>[(0,t.createVNode)(a,(0,t.mergeProps)({ref_for:!0},e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)([s.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:(0,t.normalizeStyle)({color:s.value===e.modelValue?e.parent.props.activeColor:""})},(0,t.toDisplayString)(s.text),7)],14,hy))),128)),(0,t.renderSlot)(e.$slots,"default")])]),_:3},16,["visible","position","duration","overlay","lock-scroll","close-on-click-overlay","onClosed"])],512)),[[t.vShow,e.state.showWrapper]])}var la=re(fy,[["render",vy]]),Ui=Symbol("fox-tabbar"),{create:gy}=ee("tabbar"),yy=gy({props:{modelValue:{type:[Number,String],default:0},bottom:{type:[Boolean],default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:[String],default:""},activeColor:{type:[String],default:""},safeAreaInsetBottom:{type:[Boolean],default:!1}},emits:["change","update:modelValue"],setup(e,{emit:n}){function o(i){l.value!==i&&(l.value=i,n("update:modelValue",i),n("change",i,r.value[i]))}const l=(0,t.reactive)({size:e.size,value:de(e.modelValue),inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:o}),{children:r}=rn(Ui,{state:l});return(0,t.watch)(()=>e.modelValue,i=>{l.value=de(i)}),{changeIndex:o}}});function by(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[(0,t.renderSlot)(e.$slots,"default")],2)}var oa=re(yy,[["render",by]]),{create:Sy}=ee("tabbar-item"),ky=Sy({props:{title:{type:[String],default:""},icon:{type:Object},activeIcon:{type:Object},num:{type:[String],default:""},activeImg:{type:[String],default:""},img:{type:[String],default:""},dot:{type:[Boolean],default:!1}},setup(e,n){const{parent:o,index:l}=sn(Ui,{props:e}),r=(0,t.computed)(()=>l.value===o.state.value);function i(u){o&&typeof o.state.changeIndex=="function"&&o.state.changeIndex(u)}const a=(0,t.computed)(()=>r.value?e.activeIcon??e.icon:e.icon);return{state:o.state,index:l,active:r,change:i,currentIcon:a}}}),wy={class:"fox-tabbar-item_icon-box"},Cy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Ny={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Ay={key:1,class:"fox-tabbar-item_icon-box_dot"},By={key:2},Ty={key:0};function Vy(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:(0,t.normalizeStyle)({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=a=>e.change(e.index))},[(0,t.createElementVNode)("view",wy,[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",Cy,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ny,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",Ay)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",By,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.currentIcon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):(0,t.createCommentVNode)("",!0),!e.icon&&e.activeImg?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:(0,t.normalizeStyle)({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ty,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.title?(0,t.createCommentVNode)("",!0):(0,t.renderSlot)(e.$slots,"default",{key:1})],2)])],6)}var aa=re(ky,[["render",Vy]]),{componentName:xy,create:Ey}=ee("elevator"),$y=Ey({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const o=(0,t.ref)(null),l=(0,t.reactive)({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),r=(0,t.computed)(()=>({[xy]:!0})),i=(0,t.computed)(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),a=(0,t.computed)(()=>o.value.clientHeight),u=(S,m)=>S.getAttribute("data-"+m),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 m=0;m<l.listGroup.length;m++){let f=l.listGroup[m];S+=Math.floor(f.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,o.value.scrollTo(0,l.listHeight[S]))},c=S=>{l.scrollStart=!0;let m=u(S.target,"index"),f=S.touches[0];l.touchState.y1=f.pageY,l.anchorIndex=+m,l.codeIndex=+m,h(+m)},p=S=>{let m=S.touches[0];l.touchState.y2=m.pageY;let f=(l.touchState.y2-l.touchState.y1)/e.spaceHeight|0;l.codeIndex=l.anchorIndex+f,h(l.codeIndex)},y=()=>{l.scrollStart=!1},C=(S,m)=>{n.emit("click-item",S,m),l.currentData=m,l.currentKey=S},k=S=>{n.emit("click-index",S)},w=S=>{let m=S.target.scrollTop;const f=l.listHeight;l.scrollY=m;for(let g=0;g<f.length-1;g++){let B=f[g],v=f[g+1];if(l.scrollY>=B&&l.scrollY<v){l.currentIndex=g,l.diff=v-l.scrollY;return}}l.currentIndex=f.length-2};return(0,t.onMounted)(()=>{o.value.addEventListener("scroll",w)}),n.expose({scrollTo:h}),(0,t.watch)(()=>l.listGroup.length,()=>{l.listHeight=[],(0,t.nextTick)(d)}),(0,t.watch)(()=>l.diff,S=>{const m=l.listHeight;let f=S>0&&S<e.titleHeight?S-e.titleHeight:0;l.scrollY+a.value===m[m.length-1]&&f!==0&&(f=0),l.fixedTop!==f&&(l.fixedTop=f)}),(0,t.watch)(()=>l.currentIndex,S=>{n.emit("change",S)}),{classes:r,...(0,t.toRefs)(l),fixedStyle:i,clientHeight:a,setListGroup:s,listview:o,touchStart:c,touchMove:p,touchEnd:y,handleClickItem:C,handleClickIndex:k}}}),Dy={class:"fox-elevator__list__item__code"},Iy=["onClick"],qy=["innerHTML"],Py={class:"fox-elevator__fixed-title"},My={class:"fox-elevator__bars__inner"},Ry=["data-index","onClick"];function zy(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:"fox-elevator__list",ref:"listview",style:(0,t.normalizeStyle)({height:isNaN(+e.height)?e.height:`${e.height}px`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,a=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-elevator__list__item",key:a[e.acceptKey],ref_for:!0,ref:e.setListGroup},[(0,t.createElementVNode)("view",Dy,(0,t.toDisplayString)(a[e.acceptKey]),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.list,u=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===u.id&&e.currentKey===a[e.acceptKey]}]),key:u.id,onClick:s=>e.handleClickItem(a[e.acceptKey],u)},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:1,item:u}):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:u.name},null,8,qy))],10,Iy))),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",Py,(0,t.toDisplayString)(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):(0,t.createCommentVNode)("",!0)],4),e.indexList.length?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-elevator__code--current"},(0,t.toDisplayString)(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-elevator__bars",onTouchstart:n[0]||(n[0]=(...a)=>e.touchStart&&e.touchStart(...a)),onTouchmove:n[1]||(n[1]=(0,t.withModifiers)((...a)=>e.touchMove&&e.touchMove(...a),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...a)=>e.touchEnd&&e.touchEnd(...a))},[(0,t.createElementVNode)("view",My,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__bars__inner__item",{active:a[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":u,key:a[e.acceptKey],onClick:s=>e.handleClickIndex(a[e.acceptKey])},(0,t.toDisplayString)(a[e.acceptKey]),11,Ry))),128))])],32)],2)}var ra=re($y,[["render",zy]]),{componentName:V2,create:Fy,scope:Ly}=ee("pagination"),Oy=Fy({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:o}=(0,ve.useFoxI18n)(Ly),l=o(e,["prevText","nextText"]),{modelValue:r,mode:i,showPageSize:a,forceEllipses:u}=(0,t.toRefs)(e),s=(0,t.computed)(()=>{const{pageCount:p,totalItems: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}),c=(0,t.computed)(()=>{if(i.value=="simple")return;let p=[];const y=s.value,C=+a.value;let k=1,w=y;const S=y>C;S&&(k=Math.max(r.value-Math.floor(C/2),1),w=k+C-1,w>y&&(w=y,k=w-C+1));for(var m=k;m<=w;m++){const f=h(m,m,r.value==m);p.push(f)}if(S&&C>0&&u.value){if(k>1){const f=h(k-1,"...");p.unshift(f)}if(w<y){const f=h(w+1,"...");p.push(f)}}return p});return(0,t.watchEffect)(()=>{d(r.value,!1)}),{...l,modelValue:r,select:d,countRef:s,mode:i,pages:c,forceEllipses:u}}}),Ky={class:"fox-pagination"},Uy={key:0,class:"fox-pagination-contain"},Hy=["onClick"],_y={key:1,class:"fox-pagination-contain"},jy={class:"fox-pagination-simple"};function Wy(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Ky,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=a=>e.select(e.modelValue-1,!0))},[(0,t.renderSlot)(e.$slots,"prev-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.prevText),1)])],2),e.mode=="multi"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Uy,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pages,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u+"pagination",class:(0,t.normalizeClass)(["fox-pagination-item",a.active?"active":""]),onClick:s=>e.select(a.number,!0)},[(0,t.renderSlot)(e.$slots,"page",{item:a},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(a.text),1)])],10,Hy))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",_y,[(0,t.createElementVNode)("view",jy,(0,t.toDisplayString)(e.modelValue)+"/"+(0,t.toDisplayString)(e.countRef),1)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=a=>e.select(e.modelValue+1,!0))},[(0,t.renderSlot)(e.$slots,"next-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextText),1)])],2)])}var ia=re(Oy,[["render",Wy]]),{componentName:xr,create:Yy}=ee("indicator"),Xy=Yy({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:o}=(0,t.toRefs)(e);return{classes:(0,t.computed)(()=>{const l=xr;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${o.value}`]:n.value&&o.value}}),componentName:xr,padZero:ot}}});function Qy(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.size,a=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:a},[a===e.current?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(`${e.componentName}--number`)},(0,t.toDisplayString)(e.fillZero&&e.padZero(a)||a),3)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var sa=re(Xy,[["render",Qy]]),{componentName:Gy,create:Zy}=ee("side-navbar"),Jy=Zy({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=(0,t.ref)(null),o=(0,t.reactive)({count:1,observer:null}),l=(0,t.computed)(()=>({[Gy]:!0})),r=(a,u=1)=>{for(let s=0;s<a.length;s++){let d=a[s];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*u+"px",d.className.includes("fox-side-navbar-item")||r(Array.from(d.children[1].children),++o.count))}o.count--},i=()=>{let a=n.value.childNodes;a.length&&(a=Array.from(a).filter(u=>u.nodeType!==3).map(u=>u),r(a))};return(0,t.onMounted)(()=>{i(),o.observer=new MutationObserver(function(){o.count=1,i()}),o.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(o),list:n,classes:l}}}),eb={class:"fox-side-navbar__content"},tb={class:"fox-side-navbar__content__list",ref:"list"};function nb(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",eb,[(0,t.createElementVNode)("view",tb,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var ua=re(Jy,[["render",nb]]),{componentName:lb,create:ob}=ee("side-navbar-item"),ab=ob({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[lb]:!0})),handleClick:()=>{n.emit("click")}})}),rb=["ikey"],ib={class:"fox-side-navbar-item__title"};function sb(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...a)=>e.handleClick&&e.handleClick(...a),["stop"])),ikey:e.ikey},[(0,t.createElementVNode)("span",ib,(0,t.toDisplayString)(e.title),1)],10,rb)}var ca=re(ab,[["render",sb]]),{componentName:ub,create:cb}=ee("sub-side-navbar"),db=cb({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:ae.ArrowDown2,ArrowUp2:ae.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const o=(0,t.reactive)({direction:""}),l=(0,t.computed)(()=>({[ub]:!0})),r=(0,t.computed)(()=>({height:o.direction?"0px":"auto"})),i=()=>{n.emit("title-click"),o.direction=o.direction?"":"up"};return(0,t.onMounted)(()=>{o.direction=e.open?"":"up"}),{...(0,t.toRefs)(o),classes:l,style:r,handleClick:i}}}),fb=["ikey"],mb={class:"fox-sub-side-navbar__title__text"},pb={class:"fox-sub-side-navbar__title__icon"};function hb(e,n,o,l,r,i){const a=(0,t.resolveComponent)("ArrowDown2"),u=(0,t.resolveComponent)("ArrowUp2");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ikey:e.ikey},[(0,t.createElementVNode)("view",{class:"fox-sub-side-navbar__title",onClick:n[0]||(n[0]=(0,t.withModifiers)((...s)=>e.handleClick&&e.handleClick(...s),["stop"]))},[(0,t.createElementVNode)("span",mb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",pb,[e.direction?((0,t.openBlock)(),(0,t.createBlock)(u,{key:1})):((0,t.openBlock)(),(0,t.createBlock)(a,{key:0}))])]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,fb)}var da=re(db,[["render",hb]]),{componentName:vb,create:gb}=ee("range"),yb=gb({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const o=(0,t.ref)(0);let l,r;const i=(0,t.ref)(),a=(0,t.ref)(),u=ct(),s=(0,t.computed)(()=>{const{marks:x,max:M,min:P}=e;return Object.keys(x).map(parseFloat).sort((K,R)=>K-R).filter(K=>{const R=de(K);return R>=de(P)&&R<=de(M)})}),d=(0,t.computed)(()=>Number(e.max)-Number(e.min)),h=(0,t.computed)(()=>{const x=vb;return{[x]:!0,[`${x}-disabled`]:e.disabled,[`${x}-vertical`]:e.vertical,[`${x}-show-number`]:!e.hiddenRange}}),c=(0,t.computed)(()=>{const x="fox-range-container";return{[x]:!0,[`${x}-vertical`]:e.vertical}}),p=(0,t.computed)(()=>({background:e.inactiveColor})),y=(0,t.computed)(()=>({borderColor:e.buttonColor})),C=x=>!!e.range&&Array.isArray(x),k=()=>{const{modelValue:x,min:M}=e;return C(x)?`${(x[1]-x[0])*100/d.value}%`:`${(x-Number(M))*100/d.value}%`},w=()=>{const{modelValue:x,min:M}=e;return C(x)?`${(x[0]-Number(M))*100/d.value}%`:"0%"},S=(0,t.computed)(()=>e.vertical?{height:k(),top:w(),background:e.activeColor,transition:a.value?"none":void 0}:{width:k(),left:w(),background:e.activeColor,transition:a.value?"none":void 0}),m=x=>{const M="fox-range-mark",{modelValue:P,max:K,min:R}=e;let j=Number(R),I=Number(K);if(e.range){const[J,oe]=P;j=J,I=oe}else I=P;let Q=x<=I&&x>=j;return{[`${M}-text`]:!0,[`${M}-text-active`]:Q}},f=x=>{const{min:M,vertical:P}=e;let K={left:`${(x-Number(M))/d.value*100}%`};return P&&(K={top:`${(x-Number(M))/d.value*100}%`}),K},g=x=>{const{modelValue:M,max:P,min:K}=e;let R=Number(K),j=Number(P);if(e.range){const[I,Q]=M;R=I,j=Q}return{background:x<=j&&x>=R?e.activeColor:e.inactiveColor}},B=x=>{const{min:M,max:P,step:K}=e;return x=Math.max(+M,Math.min(x,+P)),Math.round(x/+K)*+K},v=(x,M)=>JSON.stringify(x)===JSON.stringify(M),b=x=>x[0]>x[1]?x.slice(0).reverse():x,V=(x,M)=>{C(x)?x=b(x).map(B):x=B(x),v(x,e.modelValue)||n("update:modelValue",x),M&&!v(x,l)&&n("change",x)},A=x=>{if(e.disabled)return;const{min:M,modelValue:P}=e,K=De(i);let R=x.clientX-K.left,j=K.width;e.vertical&&(R=x.clientY-K.top,j=K.height);const I=Number(M)+R/j*d.value;if(C(P)){const[Q,J]=P;I<=(Q+J)/2?V([I,J],!0):V([Q,I],!0)}else V(I,!0)},T=x=>{e.disabled||(u.start(x),r=e.modelValue,C(r)?l=r.map(B):l=B(r),a.value="start")},N=x=>{if(e.disabled)return;a.value==="start"&&n("drag-start"),u.move(x),a.value="draging";const M=De(i);let P=u.deltaX.value,K=M.width,R=P/K*d.value;e.vertical&&(P=u.deltaY.value,K=M.height,R=P/K*d.value),C(l)?r[o.value]=l[o.value]+R:r=l+R,V(r),x.stopPropagation(),x.preventDefault()},q=()=>{e.disabled||(a.value==="draging"&&(V(r,!0),n("drag-end")),a.value="")},X=x=>Dn(e.modelValue)&&typeof x=="number"?e.modelValue[x]:Number(e.modelValue);return{root:i,classes:h,wrapperStyle:p,buttonStyle:y,onClick:A,onTouchStart:T,onTouchMove:N,onTouchEnd:q,...(0,t.toRefs)(e),barStyle:S,curValue:X,buttonIndex:o,containerClasses:c,markClassName:m,marksStyle:f,marksList:s,tickStyle:g}}}),bb={key:0,class:"fox-range-min"},Sb={key:0,class:"fox-range-mark"},kb=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],wb={key:0,class:"number"},Cb=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Nb={key:0,class:"number"},Ab={key:1,class:"fox-range-max"};function Bb(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.containerClasses)},[e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",bb,(0,t.toDisplayString)(+e.min),1)),(0,t.createElementVNode)("view",{ref:"root",style:(0,t.normalizeStyle)(e.wrapperStyle),class:(0,t.normalizeClass)(e.classes),onClick:n[9]||(n[9]=(0,t.withModifiers)((...a)=>e.onClick&&e.onClick(...a),["stop"]))},[e.marksList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",Sb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.marksList,a=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:a,class:(0,t.normalizeClass)(e.markClassName(a)),style:(0,t.normalizeStyle)(e.marksStyle(a))},[(0,t.createTextVNode)((0,t.toDisplayString)(a)+" ",1),(0,t.createElementVNode)("span",{class:"fox-range-tick",style:(0,t.normalizeStyle)(e.tickStyle(a))},null,4)],6))),128))])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-range-bar",style:(0,t.normalizeStyle)(e.barStyle)},[e.range?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)([0,1],a=>(0,t.createElementVNode)("view",{key:a,role:"slider",class:(0,t.normalizeClass)({"fox-range-button-wrapper-left":a==0,"fox-range-button-wrapper-right":a==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(a),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:(0,t.withModifiers)(u=>{typeof a=="number"&&(e.buttonIndex=a),e.onTouchStart(u)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=(0,t.withModifiers)((...u)=>e.onTouchMove&&e.onTouchMove(...u),["stop","prevent"])),onTouchend:n[1]||(n[1]=(0,t.withModifiers)((...u)=>e.onTouchEnd&&e.onTouchEnd(...u),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=(0,t.withModifiers)((...u)=>e.onTouchEnd&&e.onTouchEnd(...u),["stop","prevent"])),onClick:n[3]||(n[3]=u=>u.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",wb,(0,t.toDisplayString)(e.curValue(a)),1))],4))],42,kb)),64)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=(0,t.withModifiers)(a=>{e.onTouchStart(a)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=(0,t.withModifiers)((...a)=>e.onTouchMove&&e.onTouchMove(...a),["stop","prevent"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=(0,t.withModifiers)((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onClick:n[8]||(n[8]=a=>a.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Nb,(0,t.toDisplayString)(e.curValue()),1))],4))],40,Cb))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Ab,(0,t.toDisplayString)(+e.max),1))],2)}var jt=re(yb,[["render",Bb]]),{create:Tb,scope:Vb}=ee("short-password"),xb=Tb({components:{FoxPopup:we,Tips:ae.Tips},props:{title:{type:String},desc:{type:String},tips:{type:String},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:o}=(0,ve.useFoxI18n)(Vb),l=o(e,["title","desc","tips"]),r=(0,t.ref)(e.modelValue),i=(0,t.computed)(()=>d(Number(e.length))),a=(0,t.ref)(e.visible),u=c=>{c.stopPropagation(),n("focus")};(0,t.watch)(()=>e.visible,c=>{a.value=c}),(0,t.watch)(()=>e.modelValue,c=>{r.value=c,String(c).length===i.value&&n("complete",c)});const s=()=>{n("update:visible",!1),n("close")},d=c=>Math.min(Math.max(4,c),6);return{comLen:i,realInput:r,onTouchStart:u,range:d,close:s,onTips:()=>{n("tips")},show:a,...l}}}),Eb={class:"fox-short-password-title"},$b={class:"fox-short-password-subtitle"},Db={class:"fox-short-password-wrapper"},Ib={key:0,class:"fox-short-password__item-icon"},qb={class:"fox-short-password__message"},Pb={class:"fox-short-password--error"},Mb={key:0,class:"fox-short-password--forget"};function Rb(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Tips"),u=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",null,[(0,t.createVNode)(u,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":n[2]||(n[2]=s=>e.show=s),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Eb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",$b,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",Db,[(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",Ib)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",qb,[(0,t.createElementVNode)("view",Pb,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",Mb,[(0,t.createVNode)(a,{class:"icon",width:"11px",height:"11px"}),(0,t.createElementVNode)("view",{onClick:n[1]||(n[1]=(...s)=>e.onTips&&e.onTips(...s))},(0,t.toDisplayString)(e.tips),1)])):(0,t.createCommentVNode)("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}var fa=re(xb,[["render",Rb]]),zb=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},Fb=class{options;constructor(e){this.options=e}upload(){const e=this.options,n=new XMLHttpRequest;if(n.timeout=e.timeout,n.upload){n.upload.addEventListener("progress",o=>{e.onProgress?.(o,e)},!1),n.onreadystatechange=()=>{n.readyState===4&&(n.status==e.xhrState?e.onSuccess?.(n.responseText,e):e.onFailure?.(n.responseText,e))},n.withCredentials=e.withCredentials,n.open(e.method,e.url,!0);for(const[o,l]of Object.entries(e.headers))n.setRequestHeader(o,l);e.onStart?.(e),e.beforeXhrUpload?e.beforeXhrUpload(n,e):n.send(e.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}},Lb=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},Hi=(e,{args:n=[],done:o,canceled:l})=>{if(e){const r=e.apply(null,n);yt(r)?r.then(i=>{i?o(i):l&&l()}).catch(()=>{}):r?o():l&&l()}else o()},{create:Ob}=ee("progress"),Kb=Ob({components:{Checked:ae.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!(0,t.useSlots)().default,o=(0,t.ref)(e.strokeWidth+"px"),l=(0,t.ref)(),r=(0,t.ref)(),i=(0,t.computed)(()=>{const s=de(e.percentage);return s>=100?100:s}),a=(0,t.computed)(()=>({width:i.value+"%",background:e.strokeColor||""})),u=(0,t.computed)(()=>({color:e.textColor||""}));return(0,t.onMounted)(()=>{}),{height:o,percentage:i,bgStyle:a,textStyle:u,progressOuter:l,insideText:r,slotDefault:n}}}),Ub={class:"fox-progress"},Hb={key:0,class:"fox-progress-text"};function _b(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",Ub,[(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",Hb,[e.status=="active"||e.status==""?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,style:(0,t.normalizeStyle)(e.textStyle)},(0,t.toDisplayString)(e.percentage)+(0,t.toDisplayString)(e.isShowPercentage?"%":""),5)):e.status=="icon"?(0,t.renderSlot)(e.$slots,"icon-name",{key:1},()=>[(0,t.createVNode)(a,{width:"15px",height:"15px",color:"#439422"})]):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)])}var Wt=re(Kb,[["render",_b]]),{componentName:jb,create:Wb,scope:Yb}=ee("uploader"),Xb=Wb({components:{[Wt.name]:Wt,Photograph:ae.Photograph,Failure:ae.Failure,Loading:ae.Loading,Del:ae.Del,Link:ae.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:o}=(0,ve.useFoxI18n)(Yb),l=(0,t.reactive)(e.fileList);let r=[];const i=(0,t.computed)(()=>({[jb]:!0})),a=()=>{let m={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(m.capture="camera"),(0,t.h)("input",m)},u=m=>{m.value=""},s=m=>{n("file-item-click",{fileItem:m})},d=(m,f)=>{const g=new zb;g.url=e.url,g.formData=m.formData,g.timeout=e.timeout*1,g.method=e.method,g.xhrState=e.xhrState,g.headers=e.headers,g.withCredentials=e.withCredentials,g.beforeXhrUpload=e.beforeXhrUpload;try{g.sourceFile=m.formData.get(e.name)}catch{}g.onStart=v=>{m.status="ready",m.message=o("readyUpload"),h(f),n("start",v)},g.onProgress=(v,b)=>{m.status="uploading",m.message=o("uploading"),m.percentage=(v.loaded/v.total*100).toFixed(0),n("progress",{event:v,option:b,percentage:m.percentage})},g.onSuccess=(v,b)=>{m.status="success",m.message=o("success"),n("success",{responseText:v,option:b,fileItem:m}),n("update:fileList",l)},g.onFailure=(v,b)=>{m.status="error",m.message=o("error"),n("failure",{responseText:v,option:b,fileItem:m})};let B=new Fb(g);e.autoUpload?B.upload():r.push(new Promise((v,b)=>{v(B)}))},h=(m=-1)=>{m>-1?r.splice(m,1):(r=[],l.splice(0,l.length))},c=()=>{Promise.all(r).then(m=>{m.forEach(f=>f.upload())})},p=m=>{m.forEach((f,g)=>{const B=new FormData;for(const[b,V]of Object.entries(e.data))B.append(b,V);B.append(e.name,f);const v=(0,t.reactive)(new Lb);if(v.name=f.name,v.status="ready",v.type=f.type,v.formData=B,v.message=o("waitingUpload"),d(v,g),e.isPreview&&f.type.includes("image")){const b=new FileReader;b.onload=V=>{v.url=V.target.result,l.push(v)},b.readAsDataURL(f)}else l.push(v)})},y=m=>{const f=e.maximum*1,g=e.maximize*1,B=new Array;m=m.filter(b=>b.size>g?(B.push(b),!1):!0),B.length&&n("oversize",B);let v=m.length+l.length;return v>f&&m.splice(m.length-(v-f)),m},C=(m,f)=>{l.splice(f,1),n("delete",{file:m,fileList:l,index:f})},k=(m,f)=>{h(f),Hi(e.beforeDelete,{args:[m,l],done:()=>C(m,f)})},w=m=>{if(e.disabled)return;const f=m.target;let{files:g}=f;e.beforeUpload?e.beforeUpload(g).then(B=>S(B)):S(g),n("change",{fileList:l,event:m}),e.clearInput&&u(f)},S=m=>{p(y(new Array().slice.call(m)))};return{onChange:w,onDelete:k,fileList:l,classes:i,fileItemClick:s,clearUploadQueue:h,submit:c,renderInput:a}}}),Qb={key:0,class:"fox-uploader__slot"},Gb={key:0,class:"fox-uploader__preview-img"},Zb={key:0,class:"fox-uploader__preview__progress"},Jb={class:"fox-uploader__preview__progress__msg"},e1=["onClick"],t1=["onClick","src"],n1={key:3,class:"fox-uploader__preview-img__file"},l1=["onClick"],o1={class:"file__name_tips"},a1={class:"tips"},r1={key:1,class:"fox-uploader__preview-list"},i1=["onClick"],s1={class:"file__name_tips"};function u1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Failure"),u=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Link"),d=(0,t.resolveComponent)("Del"),h=(0,t.resolveComponent)("fox-progress"),c=(0,t.resolveComponent)("Photograph");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",Qb,[(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",Gb,[p.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Zb,[p.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[p.status=="error"?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,color:"#fff"})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1,name:"loading",color:"#fff"}))],64)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Jb,(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)(a)])],8,e1)):(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,t1)):((0,t.openBlock)(),(0,t.createElementBlock)("view",n1,[(0,t.createElementVNode)("view",{onClick:C=>e.fileItemClick(p),class:"fox-uploader__preview-img__file__name"},[(0,t.createElementVNode)("view",o1,(0,t.toDisplayString)(p.name),1)],8,l1)])),(0,t.createElementVNode)("view",a1,(0,t.toDisplayString)(p.name),1)])):e.listType=="list"?((0,t.openBlock)(),(0,t.createElementBlock)("view",r1,[(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",s1,(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,i1),p.status=="uploading"?((0,t.openBlock)(),(0,t.createBlock)(h,{key:0,size:"small",percentage:p.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(["fox-uploader__upload",[e.listType]])},[(0,t.renderSlot)(e.$slots,"upload-icon",{},()=>[(0,t.createVNode)(c,{color:"#808080"})]),((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):(0,t.createCommentVNode)("",!0)],2)}var ma=re(Xb,[["render",u1]]),c1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8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MjIxMzkzMzc2NzAwNjg0MC0tDQo=",d1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAAgCAYAAACLmoEDAAACb0lEQVRYR+WY33HTMBzHvz/J72QD8tyzhJiAMAHdgDBBywQ0E5BuECYAJqCZAGPl+pxMQPoeSZwUy6ck7sUlBtziJ59P/urj33+ZlFIDa8wHAOcAhujftQYwY5xPSOb5FEQX/WPcI3LumqQQPwEMeg8LrD2sq0DnpdajvkFLIW4AvPJcjx/WJ50x5oX/Gs75qiiKpb9XSg2NMc+r5z+KovDBD3V2pgznz/y91noevSOECBbhxtwVt7dFpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:f1,scope:m1}=ee("number-keyboard"),p1=f1({components:{FoxPopup:we},props:{confirmText:{type:String},title:{type:String},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:n}){const{toLocaleRefs:o}=(0,ve.useFoxI18n)(m1),l=o(e,["confirmText"]),r=(0,t.computed)(()=>{const m=["fox-number-keyboard-popup"];return e.popClass&&m.push(e.popClass),m}),i=(0,t.ref)(void 0),a=(0,t.ref)(e.visible),u=(0,t.ref)();function s(){const{customKey:m}=e;let f={id:"lock",type:"lock"},g=Array.isArray(m)?m:[m];return g.length===1&&(f={id:g[0],type:"custom"}),[...d(),f,{id:0,type:"number"},{id:"delete",type:"delete"}]}function d(){const m=[];for(let f=1;f<=9;f++)m.push({id:f,type:"number"});return e.randomKeys?m.sort(()=>Math.random()>.5?1:-1):m}function h(){const m=d(),{customKey:f}=e;let g=Array.isArray(f)?f:[f];return g.length>2&&(g=[g[0],g[1]]),g.length==2&&e.title&&e.type!="rightColumn"&&(g=[g[0]]),g.length===1?e.title&&e.type!="rightColumn"?m.push({id:g[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):m.push({id:0,type:"number"},{id:g[0],type:"custom"}):g.length===2&&m.push({id:g[0],type:"custom"},{id:0,type:"number"},{id:g[1],type:"custom"}),m}const c=(0,t.computed)(()=>e.type=="rightColumn"||e.title!=""?h():s()),p=()=>{e.visible&&n("blur")},y=m=>{const f=u.value;f&&!f.contains(m.target)&&p()};(0,t.watch)(()=>e.visible,m=>{a.value=m,m?window.addEventListener("touchstart",y,!1):window.removeEventListener("touchstart",y,!1)});function C(m,f){f.stopPropagation(),i.value=m.id,(m.type=="number"||m.type=="custom")&&(n("input",m.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+m.id)),m.type=="lock"&&S(),m.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function k(m){m.stopPropagation()}function w(m){m.preventDefault(),i.value=void 0}function S(){n("update:visible",!1),n("close")}return{...l,allPopClass:r,delImg:c1,lockImg:d1,clickKeyIndex:i,defaultKey:s,closeBoard:S,onTouchEnd:w,onTouchMove:k,onTouchstart:C,keysList:c,genCustomKeys:h,getBasicKeys:d,root:u,show:a}}}),h1={ref:"root"},v1={class:"fox-number-keyboard"},g1={key:0,class:"fox-number-keyboard__header"},y1={class:"fox-number-keyboard__title"},b1={class:"fox-number-keyboard__body"},S1={class:"fox-number-keyboard__keys"},k1=["onTouchstart"],w1=["src"],C1=["src"],N1={key:0,class:"fox-number-keyboard__sidebar"},A1={class:"fox-key__wrapper"},B1=["src"];function T1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",h1,[(0,t.createVNode)(a,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=u=>e.show=u),position:"bottom",popClass:e.allPopClass,overlay:!1,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",v1,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",g1,[(0,t.createElementVNode)("h3",y1,(0,t.toDisplayString)(e.title),1),e.type=="default"?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-number-keyboard__close",onClick:n[0]||(n[0]=u=>e.closeBoard())},(0,t.toDisplayString)(e.confirmText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",b1,[(0,t.createElementVNode)("div",S1,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.keysList,u=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:"key"+u.id,class:(0,t.normalizeClass)(["fox-key__wrapper",{"fox-key__wrapper--wider":u.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{"fox-key--active":u.id==e.clickKeyIndex},{"fox-key--lock":u.type=="lock"},{"fox-key--delete":u.type=="delete"}]),onTouchstart:s=>e.onTouchstart(u,s),onTouchmove:n[1]||(n[1]=s=>e.onTouchMove(s)),onTouchend:n[2]||(n[2]=s=>e.onTouchEnd(s))},[u.type=="number"||u.type=="custom"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(u.id),1)],64)):(0,t.createCommentVNode)("",!0),u.type=="lock"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:1,src:e.lockImg},null,8,w1)):(0,t.createCommentVNode)("",!0),u.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,C1)):(0,t.createCommentVNode)("",!0)],42,k1)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",N1,[(0,t.createElementVNode)("div",A1,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=u=>e.onTouchstart({id:"delete",type:"delete"},u)),onTouchmove:n[4]||(n[4]=u=>e.onTouchMove(u)),onTouchend:n[5]||(n[5]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u))},[(0,t.createElementVNode)("img",{src:e.delImg},null,8,B1)],34)]),(0,t.createElementVNode)("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=u=>e.closeBoard())},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},(0,t.toDisplayString)(e.confirmText),3)])])):(0,t.createCommentVNode)("",!0)])])]),_:1},8,["visible","popClass"])],512)}var pa=re(p1,[["render",T1]]),{componentName:V1,create:x1}=ee("swipe"),E1=x1({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n,expose:o}){const l=(0,t.computed)(()=>({[V1]:!0})),r=f=>f.value?.clientWidth||0,i=(0,t.ref)(),a=(0,t.computed)(()=>r(i)),u=(0,t.ref)(),s=(0,t.computed)(()=>r(u));let d=!1,h="",c="";const p=(0,t.reactive)({offset:0,moving:!1}),y=(f="")=>{d=!0,f&&(p.offset=f==="left"?-s.value:a.value),n("open",{name:e.name,position:h||f})},C=()=>{p.offset=0,d=!1,n("close",{name:e.name,position:h})},k=(0,t.computed)(()=>({transform:`translate3d(${p.offset}px, 0, 0)`})),w=f=>{h=f>0?"right":"left";let g=f;switch(h){case"left":d&&c===h?g=-s.value:g=Math.abs(f)>s.value?-s.value:f;break;case"right":d&&c===h?g=a.value:g=Math.abs(f)>a.value?a.value:f;break}p.offset=g},S=ct(),m={onTouchStart(f){e.disabled||S.start(f)},onTouchMove(f){e.disabled||(S.move(f),S.isHorizontal()&&(p.moving=!0,w(S.deltaX.value),e.touchMovePreventDefault&&f.preventDefault(),e.touchMoveStopPropagation&&f.stopPropagation()))},onTouchEnd(){if(p.moving)switch(p.moving=!1,c=h,h){case"left":Math.abs(p.offset)<=s.value/2?C():(p.offset=-s.value,y());break;case"right":Math.abs(p.offset)<=a.value/2?C():(p.offset=a.value,y());break}}};return o({open:y,close:C}),{classes:l,touchStyle:k,...m,leftRef:i,rightRef:u,open:y,close:C}}}),$1={class:"fox-swipe__left",ref:"leftRef"},D1={class:"fox-swipe__content"},I1={class:"fox-swipe__right",ref:"rightRef"};function q1(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.touchStyle),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[(0,t.createElementVNode)("view",$1,[(0,t.renderSlot)(e.$slots,"left")],512),(0,t.createElementVNode)("view",D1,[(0,t.renderSlot)(e.$slots,"default")]),(0,t.createElementVNode)("view",I1,[(0,t.renderSlot)(e.$slots,"right")],512)],38)}var ha=re(E1,[["render",q1]]),{componentName:P1,create:M1}=ee("action-sheet"),R1=M1({components:{Popup:we,Loading:ae.Loading},props:{...et,cancelTxt:{type:String},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String},title:{type:String},color:{type:String,default:"#ee0a24"},description:{type:String},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const o=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[P1]:!0}));return{slotDefault:o,isHighlight:s=>e.chooseTagValue&&e.chooseTagValue===s[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(s,d)=>{!s.disable&&!s.loading&&(n("choose",s,d),n("update:visible",!1))},close:s=>{n("close",s),n("update:visible",!1)},classes:l}}}),z1={key:0,class:"fox-action-sheet__title"},F1={key:1},L1={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},O1={key:1,class:"fox-action-sheet__menu"},K1=["onClick"],U1={key:1},H1={class:"fox-action-sheet__subdesc"};function _1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Loading"),u=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createBlock)(u,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes)},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",z1,(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",F1,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",L1,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",O1,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.menuItems,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":s.disable,"fox-action-sheet__item--loading":s.loading}]),style:(0,t.normalizeStyle)({color:e.isHighlight(s)||s.color}),key:d,onClick:h=>e.chooseItem(s,d)},[s.loading?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",U1,(0,t.toDisplayString)(s[e.optionTag]),1)),(0,t.createElementVNode)("view",H1,(0,t.toDisplayString)(s[e.optionSubTag]),1)],14,K1))),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 va=re(R1,[["render",_1]]),{componentName:j1,create:W1}=ee("backtop"),Y1=W1({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:o}){const l=(0,t.reactive)({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),r=(0,t.computed)(()=>({[j1]:!0,show:l.backTop})),i=(0,t.computed)(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function a(){l.scrollEl instanceof Window?l.scrollTop=l.scrollEl.pageYOffset:l.scrollTop=l.scrollEl.scrollTop,l.backTop=l.scrollTop>=e.distance}function u(C=0){l.scrollEl instanceof Window?window.scrollTo(0,C):l.scrollEl.scrollTop=C}function s(){let C=Ge(function k(){var w=e.duration-Math.max(0,l.startTime-+new Date+e.duration),S=w*-l.scrollTop/e.duration+l.scrollTop;u(S),C=Ge(k),(w==e.duration||S==0)&&Dr(C)})}function d(){l.scrollEl.addEventListener("scroll",a,!1),l.scrollEl.addEventListener("resize",a,!1)}function h(){l.scrollEl.removeEventListener("scroll",a,!1),l.scrollEl.removeEventListener("resize",a,!1)}function c(C){l.startTime=+new Date,e.isAnimation&&e.duration>0?s():u(),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 o.content=="function"){const C=o.content();return Array.isArray(C)?C[0]:C}return null});return()=>{const C=[];y.value&&C.push(y.value);const k=[];if(typeof o.default=="function")k.push(o.default());else{const S=(0,t.h)(ae.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});k.push(S)}const w=(0,t.h)("div",{class:r.value,style:i.value,onClick:c},k);return C.push(w),C}}}),ga=Y1,{componentName:X1,create:Q1}=ee("drag"),G1=Q1({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.reactive)({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),r=(0,t.computed)(()=>({[X1]:!0}));function i(){const c=document.documentElement;l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight,l.screenWidth=c.clientWidth,l.screenHeight=c.clientHeight}function a(c){l.boundary.left?+c.style.left.split("px")[0]>l.boundary.left?(c.style.left=+c.style.left.split("px")[0]-10+"px",Xe(()=>{a(c)})):c.style.left=`${l.boundary.left}px`:+c.style.left.split("px")[0]>10?(c.style.left=+c.style.left.split("px")[0]-10+"px",Xe(()=>{a(c)})):c.style.left="0px"}function u(c,p){p-parseInt(c.style.left.split("px")[0])>10?(c.style.left=parseInt(c.style.left.split("px")[0])+10+"px",Xe(()=>{u(c,p)})):c.style.left=p+"px"}function s(c){c.preventDefault();const p=c.currentTarget;if(c.targetTouches.length===1){const y=c.targetTouches[0];l.nx=y.clientX-l.position.x,l.ny=y.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const 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(c){const p=c.currentTarget;let y=c.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?Xe(()=>{a(p)}):Xe(()=>{u(p,C)})),e.direction!="x"&&(p.style.top=l.yPum+"px")}function h(c){const p=c.currentTarget,y=c.touches[0],C=c.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 c=o;c.value.removeEventListener("touchstart",h),c.value.removeEventListener("touchmove",s),c.value.removeEventListener("touchend",d)}),{classes:r,myDrag:o,touchStart:h,touchMove:s,touchEnd:d}}});function Z1(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=a=>e.touchStart(a)),onTouchmove:n[1]||(n[1]=a=>e.touchMove(a)),onTouchend:n[2]||(n[2]=a=>e.touchEnd(a))},[(0,t.renderSlot)(e.$slots,"default")],34)}var ya=re(G1,[["render",Z1]]),J1={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}},eS=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function tS(e,n,o,l,r){return{props:{...et,...J1},setup(i,{attrs:a,slots:u,emit:s}){const{toLocaleRefs:d}=(0,ve.useFoxI18n)(n),h=d(i,["confirmText","cancelText"]),c=e,p=(0,t.ref)(i.visible);(0,t.watch)(()=>i.visible,v=>{p.value!==v&&(p.value=v,v&&s("opened"))});const y=v=>{p.value=v,s("update:visible",v),s("update",v)},C=v=>{if(s(v),!(v==="cancel"&&!i.cancelAutoClose))if(typeof i.beforeClose=="function"){const b=i.beforeClose(v);yt(b)?b.then(V=>{V&&(y(!1),s("closed",v))}):b===!0&&(y(!1),s("closed",v))}else y(!1),s("closed",v)},k=()=>{C("confirm")},w=()=>{C("cancel")},S=()=>{C("close")},m=(v,b)=>eS(v)?(b.src=v,(0,t.h)("img",b)):typeof v=="string"?(Array.isArray(b.class)?b.class.push(v):b.class&&typeof b.class=="object"?b[`${v}`]=!0:typeof b.class=="string"?b.class=`${b.class}, ${v}`:b.class=v,(0,t.h)(i.tag,b)):(0,t.h)(v,b),f=()=>{const v=[];if(u.header){const b=u.header();v.push(b)}else{if(i.title){const b=(0,t.h)("view",{class:`${c}__header-title`},[i.title]);v.push(b)}if(i.showClose){const b={class:[`${c}__header-close-icon`],onClick:S},V=m(i.closeIcon??r,b);v.push(V)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},v)},g=()=>{const v=[];if(u.default)v.push(u.default());else{const b={class:[`${c}__content`]};if(i.textAlign&&b.class.push(i.textAlign),typeof i.content=="string"){b.innerHTML=i.content;const V=(0,t.h)("view",b);v.push(V)}else if(typeof i.content=="function"){const V=(0,t.h)("view",b,[i.content()]);v.push(V)}else{const V=(0,t.h)("view",b,[i.content]);v.push(V)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__body`]},v)},B=()=>{if(!i.showFooter)return null;const v=[];if(u.footer)v.push(u.footer());else if(i.plain){if(i.showCancelButton){const b={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},onClick:w};i.cancelButtonClass&&b.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(b.style,i.cancleButtonStyle);const V=(0,t.h)("view",b,[i.cancelButtonText??h.cancelText.value]);v.push(V)}if(i.showConfirmButton){const b={class:[`${c}__footer-button`,`${c}__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 V=(0,t.h)("view",b,[i.confirmButtonText??h.confirmText.value]);v.push(V)}}else{if(i.showCancelButton){const b={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:w};i.cancelButtonClass&&b.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(b.style,i.cancleButtonStyle);const V=(0,t.h)(l,b,{default:()=>[i.cancelButtonText??h.cancelText.value]});v.push(V)}if(i.showConfirmButton){const b={class:[`${c}__footer-button`,`${c}__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 V=(0,t.h)(l,b,{default:()=>[i.confirmButtonText??h.confirmText.value]});v.push(V)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__footer`,`${c}__footer--${i.footerDirection}`]},v)};return()=>{const v=[],b=f();b&&v.push(b);const V=g();V&&v.push(V);const A=B();A&&v.push(A);const T=(0,t.h)("view",{class:{[`${c}`]:!0,[`${c}--plain`]:i.plain}},v),N=[`${c}__popup`];i.popClass&&N.push(i.popClass);const q={};return i.width&&(q.width=typeof i.width=="number"?`${i.width}px`:i.width),i.height&&(q.height=typeof i.height=="number"?`${i.height}px`:i.height),(0,t.h)(o,{...ye(i,et),popClass:N.join(" "),style:q,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:i.position,onClickOverlay:S,closeOnClickOverlay:i.closeOnClickOverlay},{default:()=>T})}}}}var{componentName:nS,create:lS,scope:oS}=ee("dialog"),aS=lS(tS(nS,oS,we,Vt,ae.Close)),_i=aS,rS=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},iS=class{options=new rS;constructor(e){let n=Object.assign(this.options,e),o=document.body,l=n.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=n.teleport);const r=document.createElement("view"),i=`dialog-${n.id}`;r.id=i;const a=(0,t.createVNode)({setup(){return n.onUpdate=u=>{if(u===!1){const s=document.querySelector(`#${i}`);s&&s.parentNode?.removeChild(s)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(_i,n)}});o.appendChild(r),(0,t.render)(a,r)}},Yt=function(e){return new iS(e)};Yt.install=e=>{e.use(_i),e.config.globalProperties.$dialog=Yt};var sS={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},containerClass:{type:[String]}},uS=(e,n,o)=>({props:sS,emits:["change","refresh","update:modelValue"],setup(l,{emit:r,slots:i}){const a=e,{toLocaleRefs:u}=(0,ve.useFoxI18n)(n),s=u(l,["pullingText","loosingText","loadingText"]),d=tl(),h=(0,t.ref)(),c=Ri(h),p=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=(0,t.computed)(()=>({[a]:!0})),C=(0,t.computed)(()=>{const A=[`${a}__container`];return l.containerClass&&A.push(l.containerClass),A}),k=(0,t.computed)(()=>{switch(p.status){case"pulling":return i.pulling?"":s.pullingText.value;case"loosing":return i.loosing?"":s.loosingText.value;case"loading":return i.loading?"":s.loadingText.value;default:return""}}),w=(0,t.computed)(()=>({transitionDuration:`${l.duration}s`,transform:p.distance?`translate3d(0,${p.distance}px, 0)`:""})),S=(0,t.computed)(()=>{const A={};return l.headHeight!=50&&(A.height=he(l.headHeight)),A}),m=A=>{const T=+(l.pullDistance||l.headHeight);let N=A;return A>T&&(A<T*2?N=(A+T)/2:N=T+A/4),Math.round(N)},f=(A,T)=>{const N=+(l.pullDistance||l.headHeight);p.distance=A,T?p.status="loading":A===0?p.status="normal":A<N?p.status="pulling":p.status="loosing",r("change",{status:p.status,distance:A})},g=()=>p.status!=="loading"&&p.status!=="complete",B=()=>c.value==window?zi()==0:c.value&&c.value.scrollTop==0,v=A=>{g()&&(B()?(d.start(A),p.isPullRefresh=!0,p.moving=!0):(p.distance=0,p.isPullRefresh=!1))},b=A=>{g()&&p.moving&&(d.move(A),d.isVertical()&&d.state.deltaY>0&&p.isPullRefresh&&(A.cancelable&&A.preventDefault(),f(m(d.state.deltaY))))},V=()=>{p.moving=!1,p.isPullRefresh&&g()&&d.state.deltaY&&(p.status==="loosing"?(f(+l.headHeight,!0),r("update:modelValue",!0),(0,t.nextTick)(()=>r("refresh"))):f(0)),setTimeout(()=>{d.reset()},0)};return(0,t.watch)(()=>l.modelValue,A=>{A?f(+l.headHeight,!0):f(0)}),()=>{const A=[];let T=null;p.status==="loading"?(T=i?.loading?.()??null,T||(T=(0,t.h)(o,{class:[`${a}__container-topbox-icon`]}))):p.status==="pulling"?T=i?.pulling?.()??null:p.status==="loosing"&&(T=i?.loosing?.()??null),T&&A.push(T);const N=(0,t.h)("dive",{class:[`${a}__container-topbox-text`]},[k.value]);A.push(N);const q=(0,t.h)("div",{class:[`${a}__container-topbox`],style:S.value},A),X=(0,t.h)("div",{class:C.value,style:w.value},[q,i?.default?.()]),x={ref:h,class:y.value};return el()?Object.assign(x,{onTouchstart:v,onTouchmove:b,onTouchend:V}):Object.assign(x,{onMousedown:v,onMousemove:b,onMouseup:V}),(0,t.h)("div",x,[X])}}}),{componentName:cS,create:dS,scope:fS}=ee("pull-refresh"),mS=dS(uS(cS,fS,ae.Loading)),ba=mS,{create:pS}=ee("notify"),hS=pS({components:{FoxPopup:we},props:{id:String,msg:{type:String,default:""},duration:{type:Number,default:3e3},customClass:{type:String,default:""},color:{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:{type:Function},onClick:{type:Function},unmount:{type:Function}},emits:["update:visible"],setup(e,{emit:n}){const o=()=>{e.onClick&&e.onClick()};let l=null;const r=()=>{l&&clearTimeout(l),l=null},i=()=>{n("update:visible",!1)},a=(0,t.ref)(!1),u=(0,t.watch)(()=>e.visible,d=>{a.value=e.visible;const h=e.duration;d&&h&&(l=setTimeout(()=>{i()},h))},{immediate:!0});return{onAfterLeave:()=>{r(),u&&u(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:o,isShowPopup:a}}});function vS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createBlock)(a,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=u=>e.isShowPopup=u),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-notify",`fox-notify--${e.type}`,e.customClass]),style:(0,t.normalizeStyle)({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...u)=>e.clickCover&&e.clickCover(...u))},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}var Sa=re(hS,[["render",vS]]),Wl={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,customClass:"",onClose:Function,teleport:"",unmount:new Function},mt=[],Ut=[],ji=e=>{if(e){const n=document.getElementById(e);Ut=Ut.filter(o=>o.id!==e),mt=mt.filter(o=>o!==e),n&&document.body.removeChild(n)}else mt.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),Ut=[],mt=[]},gS=e=>{const n=document.getElementById(e.id);if(n){const o=Ut.find(r=>r.id===e.id);o?e={...Wl,...o,...e}:e={...Wl,...e};const l=(0,t.createVNode)(Sa,e);return(0,t.render)(l,n),l.component.data}},Pt=e=>{e.unmount=ji;let n;if(e.id){if(n=e.id,mt.find(r=>r===e.id))return gS(e)}else n=new Date().getTime()+"";e={...Wl,...e},e.id=n,mt.push(e.id),Ut.push(e);const o=document.createElement("view");o.id="notify-"+e.id;const l=(0,t.createVNode)({setup(){return e.teleport=`#notify-${e.id}`,(0,t.onMounted)(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(o)},e.duration)}),()=>(0,t.h)(Sa,e)}});document.body.appendChild(o),(0,t.render)(l,o)},Mt=e=>{if(!e){console.warn("[FoxUI Notify]: msg不能为空");return}},ka={text(e,n={}){return Mt(e),Pt({...n,msg:e})},primary(e,n={}){return Mt(e),Pt({...n,msg:e,type:"primary"})},success(e,n={}){return Mt(e),Pt({...n,msg:e,type:"success"})},danger(e,n={}){return Mt(e),Pt({...n,msg:e,type:"danger"})},warn(e,n={}){return Mt(e),Pt({...n,msg:e,type:"warning"})},hide(){ji()},install(e){e.use(Sa)}},{create:yS}=ee("toast"),bS=yS({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},i=()=>{l.mounted=!1},a=()=>{r(),e.duration&&(o=setTimeout(()=>{i()},e.duration))},u=()=>{e.closeOnClickOverlay&&(i(),n("close"))};e.duration&&a(),(0,t.watch)(()=>e.duration,y=>{y&&a()});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]),c=(0,t.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:i,clickCover:u,renderIcon:d,hasIcon:s,toastBodyClass:h,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),SS={key:1,class:"fox-toast-title"},kS=["innerHTML"];function wS(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.toastBodyClass),style:(0,t.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...a)=>e.clickCover&&e.clickCover(...a))},[(0,t.createElementVNode)("view",{class:"fox-toast-inner",style:(0,t.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.toastIconWrapperClass)},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon())))],2)):(0,t.createCommentVNode)("",!0),e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",SS,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,kS)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var wa=re(bS,[["render",wS]]),Yl={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1},pt=[],Ht=[],Wi=e=>{if(e){const n=document.getElementById(e);Ht=Ht.filter(o=>o.id!==e),pt=pt.filter(o=>o!==e),n&&((0,t.render)(null,n),document.body.removeChild(n))}else pt.forEach(n=>{const o=document.getElementById(n);o&&((0,t.render)(null,o),document.body.removeChild(o))}),Ht=[],pt=[]},CS=e=>{const n=document.getElementById(e.id);if(n){const o=Ht.find(r=>r.id===e.id);o?e={...Yl,...o,...e}:e={...Yl,...e};const l=(0,t.createVNode)(wa,e);return(0,t.render)(null,n),(0,t.render)(l,n),xt}},Rt=e=>{e.unmount=Wi;let n;if(e.id){if(n=e.id,pt.find(l=>l===e.id))return CS(e)}else n=new Date().getTime()+"";e={...Yl,...e},e.id=n,pt.push(e.id),Ht.push(e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(wa,e),o),document.body.appendChild(o),xt},mn=e=>e?!0:(console.warn("[FoxUI Toast]: msg不能为空"),!1),xt={text(e,n={}){if(mn(e))return Rt({...n,type:"text",msg:e})},success(e,n={}){if(mn(e))return Rt({icon:ae.Success,...n,msg:e,type:"success"})},fail(e,n={}){if(mn(e))return Rt({icon:ae.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){if(mn(e))return Rt({icon:ae.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Rt({icon:ae.Loading,...n,msg:e,type:"loading"})},hide(e){Wi(e)},install(e){e.use(wa),e.config.globalProperties.$toast=xt}},{componentName:x2,create:NS}=ee("audio"),AS=NS({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:ae.Service,[jt.name]:jt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null),r=(0,t.reactive)({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});(0,t.onMounted)(()=>{var k=["webkitVisibilityState","visibilitychange"];try{for(let w=0;w<k.length;w++)document.addEventListener(k[w],()=>{document.hidden?l.value.pause():r.playing&&setTimeout(()=>{l.value.play()},200)})}catch(w){w.message}});const i=k=>{const w=l.value;e.autoplay&&w&&w.paused&&w.play(),r.second=w.duration,r.duration=C(w.duration),n("can-play",k)},a=k=>{r.currentTime=parseInt(k.target.currentTime)},u=()=>{r.currentTime>0&&r.currentTime--,l.value.currentTime=r.currentTime,n("fastBack",r.currentTime)},s=()=>{const k=l.value;r.playing?(k.pause(),r.handPlaying=!1):(k.play(),r.handPlaying=!0),r.playing=!r.playing,n("play",r.playing)},d=()=>{r.currentTime++,l.value.currentTime=r.currentTime,n("forward",r.currentTime)},h=k=>{r.currentDuration=C(k),r.percent=k/r.second*100},c=()=>{r.playing=!1,n("ended")},p=k=>{const w=l.value;w.currentTime=r.second*k/100,n("changeProgress",w.currentTime)},y=()=>{r.hanMuted=!r.hanMuted,n("mute",r.hanMuted)},C=k=>{if(!k)return"00:00:00";let w=parseInt(k),S=Math.floor(w/3600),m=Math.floor((w-S*3600)/60),f=w-S*3600-m*60,g="";return g+=("0"+S.toString()).slice(-2)+":",g+=("0"+m.toString()).slice(-2)+":",g+=("0"+f.toString()).slice(-2),g};return(0,t.watch)(()=>r.currentTime,k=>{h(k)}),(0,t.provide)("audioParent",{children:[],props:e,audioData:r,handleMute:y,forward:d,fastBack:u,changeStatus:s}),{...(0,t.toRefs)(e),...(0,t.toRefs)(r),audioRef:l,fastBack:u,forward:d,changeStatus:s,progressChange:p,audioEnd:c,onTimeupdate:a,handleMute:y,onCanplay:i,slots:o}}}),BS={class:"fox-audio"},TS={key:0,class:"fox-audio__progress"},VS={class:"fox-audio__time"},xS={class:"fox-audio__bar"},ES={class:"fox-audio__time"},$S={key:1,class:"fox-audio__icon"},DS=["controls","src","preload","autoplay","loop","muted"];function IS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-range"),u=(0,t.resolveComponent)("Service");return(0,t.openBlock)(),(0,t.createElementBlock)("div",BS,[e.type=="progress"?((0,t.openBlock)(),(0,t.createElementBlock)("div",TS,[(0,t.createElementVNode)("div",VS,(0,t.toDisplayString)(e.currentDuration),1),(0,t.createElementVNode)("div",xS,[(0,t.createVNode)(a,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=s=>e.percent=s),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:(0,t.withCtx)(()=>[...n[6]||(n[6]=[(0,t.createElementVNode)("div",{class:"fox-audio__button--custom"},null,-1)])]),_:1},8,["modelValue","onChange"])]),(0,t.createElementVNode)("div",ES,(0,t.toDisplayString)(e.duration),1)])):(0,t.createCommentVNode)("",!0),e.type=="icon"?((0,t.openBlock)(),(0,t.createElementBlock)("div",$S,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:n[1]||(n[1]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[e.playing?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1}))],2)])):(0,t.createCommentVNode)("",!0),e.type=="none"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,onClick:n[2]||(n[2]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type!="none"?(0,t.renderSlot)(e.$slots,"default",{key:3}):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:n[3]||(n[3]=(...s)=>e.onTimeupdate&&e.onTimeupdate(...s)),onCanplay:n[4]||(n[4]=(...s)=>e.onCanplay&&e.onCanplay(...s)),onEnded:n[5]||(n[5]=(...s)=>e.audioEnd&&e.audioEnd(...s)),muted:e.hanMuted},null,40,DS)])}var Ca=re(AS,[["render",IS]]),{componentName:E2,create:qS,scope:PS}=ee("audio-operate"),MS=qS({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:o}=(0,ve.useFoxI18n)(PS),l=(0,t.reactive)((0,t.inject)("audioParent")),r=(0,t.ref)((0,t.useSlots)().default);return{...(0,t.toRefs)(e),...(0,t.toRefs)(l),customSlot:r,t:o}}}),RS={class:"fox-audio-operate"};function zS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",RS,[e.type=="back"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...u)=>e.fastBack&&e.fastBack(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("back")),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="play"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...u)=>e.changeStatus&&e.changeStatus(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="forward"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...u)=>e.forward&&e.forward(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("forward")),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="mute"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...u)=>e.handleMute&&e.handleMute(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("mute")),1)]),_:1},8,["type"])),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0)])}var Na=re(MS,[["render",zS]]),{componentName:FS,create:LS}=ee("avatar"),OS=LS({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:o,bgColor:l,color:r}=(0,t.toRefs)(e),i=["large","normal","small"],a=(0,t.inject)("avatarGroup",null),u=(0,t.ref)(null),s=(0,t.reactive)({lightTheme:!1}),d=(0,t.reactive)({index:1,showMax:!1,maxIndex:0});(0,t.onMounted)(()=>{const C=a?.avatarGroupRef?.value?.children;C&&y(C)});const h=(0,t.computed)(()=>({[FS]:!0,[`fox-avatar-${n.value||a?.props?.size||"normal"}`]:!0,[`fox-avatar-${o.value||a?.props?.shape||"normal"}`]:!0})),c=(0,t.computed)(()=>({width:i.indexOf(n.value)>-1?"":`${n.value}px`,height:i.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${l.value}`,color:`${r.value}`,marginLeft:d.index!=1&&(a?.props?.span?`${a?.props?.span}px`:""),zIndex:a?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),p=(0,t.computed)(()=>({backgroundColor:`${a?.props?.maxBgColor}`,color:`${a?.props?.maxColor}`})),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=u?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=a?.props?.maxCount&&(d.showMax=!0)};return{classes:h,styles:c,maxStyles:p,avatarGroup:a,visible:s,avatarRef:u,...(0,t.toRefs)(d)}}});function KS(e,n,o,l,r,i){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,style:(0,t.normalizeStyle)(e.showMax?e.maxStyles:e.styles),class:(0,t.normalizeClass)(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):(0,t.createCommentVNode)("",!0)],6)):(0,t.createCommentVNode)("",!0)}var Xt=re(OS,[["render",KS]]),{componentName:US,create:HS}=ee("avatar-group"),_S=HS({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:o}){const{size:l}=(0,t.toRefs)(e),r=(0,t.ref)(null),i=(0,t.ref)(0),a=(0,t.computed)(()=>({[US]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:r,index:i}),{classes:a,avatarGroupRef:r}}});function jS(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"avatarGroupRef"},[(0,t.renderSlot)(e.$slots,"default")],2)}var Aa=re(_S,[["render",jS]]),Tl=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function WS(e,n,o){let l=0,r=e.length-1,i=null;for(;l<=r;){i=Math.floor((l+r)/2);const a=e[i],u=o(a,n);if(u===1)return i;u===2?l=i+1:u===3&&(r=i-1)}return i}var{componentName:YS,create:XS}=ee("list"),Er=document.documentElement.clientHeight||document.body.clientHeight||667,QS=XS({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Er},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const o=(0,t.ref)(null),l=(0,t.ref)(null),r=(0,t.ref)(null),i=(0,t.reactive)({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),a=(0,t.computed)(()=>Math.min(e.containerHeight,Er)),u=(0,t.computed)(()=>Math.ceil(a.value/e.height)),s=(0,t.computed)(()=>Math.min(i.originStartIndex+u.value+e.bufferSize,i.list.length)),d=(0,t.computed)(()=>({[YS]:!0})),h=(0,t.computed)(()=>i.list.slice(i.start,s.value)),c=()=>{if(r.value)return`translate3d(0, ${i.start>=1?i.cachePositions[i.start-1].bottom:0}px, 0)`},p=()=>{i.cachePositions=[];for(let 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=r.value.childNodes;S=Array.from(S).filter(v=>v.nodeType===1);const m=S[0];S.forEach((v,b)=>{if(!v)return;const{height:V}=De(v),A=i.cachePositions[b+i.start].height-V;A&&(i.cachePositions[b+i.start].bottom-=A,i.cachePositions[b+i.start].height=V,i.cachePositions[b+i.start].dValue=A)});let f=0;m&&(f=i.start);const g=i.cachePositions.length;let B=i.cachePositions[f].dValue;i.cachePositions[f].dValue=0;for(let v=f+1;v<g;++v){const b=i.cachePositions[v];i.cachePositions[v].top=i.cachePositions[v-1].bottom,i.cachePositions[v].bottom=i.cachePositions[v].bottom-B,b.dValue!==0&&(B+=b.dValue,b.dValue=0)}i.phantomHeight=i.cachePositions[g-1].bottom},C=(S=0)=>{let m=WS(i.cachePositions,S,(f,g)=>{const B=f.bottom;return B===g?Tl.eq:B<g?Tl.lt:Tl.gt});return i.cachePositions[m].bottom<S&&(m+=1),m},k=()=>{i.originStartIndex=0,i.start=0,i.scrollTop=0,o.value.scrollTop=0,p(),i.phantomHeight=e.height*i.list.length},w=()=>{const S=o.value?.scrollTop,{originStartIndex:m}=i,f=C(S);f!==m&&(i.originStartIndex=f,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,()=>{r.value&&i.list.length>0&&y()}),{...(0,t.toRefs)(i),list:o,phantom:l,actualContent:r,getTransform:c,visibleData:h,classes:d,getContainerHeight:a,handleScrollEvent:w}}});function GS(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...a)=>e.handleScrollEvent&&e.handleScrollEvent(...a)),ref:"list"},[(0,t.createElementVNode)("div",{class:"fox-list-phantom",style:(0,t.normalizeStyle)({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),(0,t.createElementVNode)("div",{class:"fox-list-container",style:(0,t.normalizeStyle)({transform:e.getTransform()}),ref:"actualContent"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.visibleData,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-list-item",key:a},[(0,t.renderSlot)(e.$slots,"default",{item:a,index:u+e.start})]))),128))],4)],38)}var Ba=re(QS,[["render",GS]]),{componentName:ZS,create:JS}=ee("circleprogress"),ek=JS({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const o=!!(0,t.useSlots)().default,l=Math.random().toString(36).slice(-8),r=(0,t.computed)(()=>({[ZS]:!0})),i=(0,t.computed)(()=>{const u=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${u} 0 90 a 45 45 0 1, ${u} 0 -90`}),a=(0,t.computed)(()=>xe(e.color)?`url(#${l})`:e.color);return{classes:r,hoverStyle:(0,t.computed)(()=>{let u=283,s=u*Number(e.progress)/100;return{stroke:xe(e.color)?`url(#${l})`:e.color,strokeDasharray:`${s}px ${u}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:i,hoverColor:a,stop:(0,t.computed)(()=>{if(!xe(e.color))return;let u=e.color;const s=Object.keys(u).sort((h,c)=>parseFloat(h)-parseFloat(c));let d=[];return s.map((h,c)=>{let p={key:"",value:""};p.key=h,p.value=u[h],d.push(p)}),d}),slotDefault:o,refRandomId:l}}}),tk={viewBox:"0 0 100 100"},nk=["id"],lk=["offset","stop-color"],ok=["d","stroke-width"],ak=["d","stroke","stroke-linecap","stroke-width"],rk={class:"fox-circleprogress-text"},ik={key:0};function sk(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:e.radius*2+"px",width:e.radius*2+"px"})},[((0,t.openBlock)(),(0,t.createElementBlock)("svg",tk,[(0,t.createElementVNode)("defs",null,[(0,t.createElementVNode)("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.stop,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("stop",{key:u,offset:a.key,"stop-color":a.value},null,8,lk))),128))],8,nk)]),(0,t.createElementVNode)("path",{class:"fox-circleprogress-path",style:(0,t.normalizeStyle)(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,ok),(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,ak)])),(0,t.createElementVNode)("div",rk,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",ik,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var Ta=re(ek,[["render",sk]]),{componentName:uk,create:ck}=ee("noticebar"),dk=ck({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,(0,t.h)(e.item)},Notice:ae.Notice,CircleClose:ae.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null),r=(0,t.ref)(null),i=(0,t.reactive)({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),a=(0,t.computed)(()=>({[uk]:!0})),u=(0,t.computed)(()=>i.isCanScroll==null?e.wrapable:!i.isCanScroll&&!e.wrapable),s=(0,t.computed)(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":u.value,[i.animationClass]:!0})),d=(0,t.computed)(()=>{let 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"})`})),c=(0,t.computed)(()=>{let b={};if(e.complexAm)b={transform:`translateY(${i.distance}px)`};else if(i.animate){let V=~~(e.height/e.speed/4);b={transition:`all ${V==0?~~(e.height/e.speed):V}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 V=l.value.getBoundingClientRect().width,A=r.value.getBoundingClientRect().width;i.isCanScroll=e.scrollable==null?A>V:e.scrollable,i.isCanScroll?(i.wrapWidth=V,i.offsetWidth=A,i.duration=A/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)},w=()=>{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))},m=()=>{i.timer=setInterval(()=>{let b=100;for(let V=0;V<b;V++)f(V,!(V<b-1))},e.standTime+100*e.speed)},f=(b,V)=>{setTimeout(()=>{i.distance-=e.height/100,V&&(i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.distance=0)},b*e.speed)},g=b=>{n("click",b)},B=()=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",i.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(o.default?v(o.default()):i.scrollList=[...e.list],setTimeout(()=>{e.complexAm?m():w()},e.standTime)):p(e.text)}),(0,t.watch)(()=>o.default?o.default():[],b=>{e.direction==="vertical"&&o.default&&(i.showNotica=!1,setTimeout(()=>{i.showNotica=!0}),v(b))});const v=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:u,classes:a,barStyle:d,contentStyle:h,horseLampStyle:c,wrap:l,content:r,handleClick:y,onClickIcon:C,onAnimationEnd:k,go:g,handleClickIcon:B,slots:o,toPxString:he,wrapContentClass:s}}}),fk={key:0,class:"fox-noticebar__page-lefticon"},mk={ref:"wrap",class:"fox-noticebar__page-wrap"},pk={class:"showNotica"},hk=["onClick"];function vk(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Notice"),u=(0,t.resolveComponent)("CircleClose"),s=(0,t.resolveComponent)("ScrollItem");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.direction=="across"?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:(0,t.normalizeStyle)(e.barStyle),onClick:n[3]||(n[3]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.showLeftIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",fk,[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,size:"16px"})):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",mk,[(0,t.createElementVNode)("view",{ref:"content",class:(0,t.normalizeClass)(e.wrapContentClass),style:(0,t.normalizeStyle)(e.contentStyle),onAnimationend:n[0]||(n[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":n[1]||(n[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=(0,t.withModifiers)((...d)=>e.onClickIcon&&e.onClickIcon(...d),["stop"]))},[e.$slots["right-icon"]?(0,t.renderSlot)(e.$slots,"right-icon",{key:0}):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1}))])):(0,t.createCommentVNode)("",!0)],6)),[[t.vShow,e.showNoticebar]]):(0,t.createCommentVNode)("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__vertical",style:(0,t.normalizeStyle)(e.barStyle)},[e.slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[(0,t.createElementVNode)("div",pk,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,h)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:h,style:(0,t.normalizeStyle)({height:e.height+"px","line-height":e.height+"px"}),item:d},null,8,["style","item"]))),128))])],4)):((0,t.openBlock)(),(0,t.createElementBlock)("ul",{key:1,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,h)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{class:"fox-noticebar__vertical-item",key:h,style:(0,t.normalizeStyle)({height:e.toPxString(e.height),lineHeight:e.toPxString(e.height)}),onClick:c=>e.go(d)},[(0,t.renderSlot)(e.$slots,"item",{item:d,index:h},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(d),1)])],12,hk))),128))],4)),(0,t.createElementVNode)("view",{class:"go",onClick:n[4]||(n[4]=d=>!e.slots.rightIcon&&e.handleClickIcon())},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[e.closeMode?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,color:e.color,size:"11px"},null,8,["color"])):(0,t.createCommentVNode)("",!0)])])],4)):(0,t.createCommentVNode)("",!0)],2)}var Va=re(dk,[["render",vk]]),gk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAA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zEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:$2,create:Sk,scope:kk}=ee("empty"),wk={empty:gk,error:yk,network:bk},Ck=Sk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,ve.useFoxI18n)(kk),o=n(e,["description"]),{image:l,imageSize:r}=(0,t.toRefs)(e),i=(0,t.computed)(()=>r.value?typeof r.value=="number"?`width:${r.value}px;height:${r.value}px`:`width:${r.value};height:${r.value}`:""),a=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:wk[l.value];return{...o,imageUrl:a,imgStyle:i}}}),Nk={class:"fox-empty"},Ak=["src"],Bk={key:1,class:"fox-empty-description"};function Tk(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Nk,[(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,Ak)):(0,t.createCommentVNode)("",!0)],64))],4),e.$slots.description?(0,t.renderSlot)(e.$slots,"description",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",Bk,(0,t.toDisplayString)(e.description),1)),e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:2}):(0,t.createCommentVNode)("",!0)])}var xa=re(Ck,[["render",Tk]]),{create:Vk,scope:xk}=ee("video"),Ek=Vk({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:o}=(0,ve.useFoxI18n)(xk),l=(0,t.reactive)({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),r=(0,t.ref)(null),i=(0,t.computed)(()=>e.options.disabled);(0,t.watch)(()=>e.source,v=>{v.src&&(0,t.nextTick)(()=>{l.videoElm.load()})},{immediate:!0,deep:!0}),(0,t.watch)(()=>e.options,v=>{l.state.isMuted=v?v.muted:!1},{immediate:!0});const a=()=>{l.videoElm=r.value,e.options.autoplay&&setTimeout(()=>{l.videoElm.play()},200),e.options.touchPlay&&(l.showTouchMask=!0),e.options.playsinline&&(l.videoElm.setAttribute("playsinline",e.options.playsinline),l.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),l.videoElm.setAttribute("x5-video-player-type","h5-page"),l.videoElm.setAttribute("x5-video-player-fullscreen",!1)),C(),l.showToolbox?u():(l.videoElm.addEventListener("play",()=>{l.state.playing=!0,n("play",l.videoElm)}),l.videoElm.addEventListener("pause",()=>{l.state.playing=!1,n("pause",l.videoElm)}),l.videoElm.addEventListener("ended",p),l.videoElm.addEventListener("timeupdate",Cn(c,1e3)))},u=()=>{const v=r.value,b=r.value.getElementsByClassName("fox-video-controller__progress-value")[0];l.player.$player=v,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(c,1e3)),l.videoElm.addEventListener("ended",p),n("play",l.videoElm)}catch{y()}else l.videoElm.pause(),n("pause",l.videoElm)},d=v=>{let b=[];const V=Math.floor(v/3600);V>0&&(V<10?b.push(`0${V}`):b.push(`${V}`));const A=Math.floor(v%3600/60);A<10?b.push(`0${A}`):b.push(`${A}`);const T=Math.round(v%3600%60);return T<10?b.push(`0${T}`):b.push(`${T}`),b.join(":")},h=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},c=()=>{const v=l.videoElm.currentTime/l.videoElm.duration;l.videoSet.progress.current=Math.round(l.videoSet.progress.width*v),l.videoSet.totalTime=d(l.videoElm.duration),l.videoSet.displayTime=d(l.videoElm.currentTime),n("time",l.videoSet.displayTime,l.videoSet.totalTime)},p=()=>{l.state.playing=!1,l.state.isEnd=!0,l.videoSet.displayTime="00:00",l.videoSet.progress.current=0,l.videoElm.currentTime=0,n("playend",l.videoElm)},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},w=()=>{},S=v=>{let b=v.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 V=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&f(V,l.videoElm.duration)},m=v=>{let b=v.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=b;let V=b/l.videoSet.progress.width;l.videoElm.duration&&f(V,l.videoElm.duration)},f=(v,b)=>{l.videoElm.currentTime=Math.floor(v*b)},g=()=>{l.state.isError=!1,a()},B=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{a()}),{root:r,...(0,t.toRefs)(e),...(0,t.toRefs)(l),handleError:y,isDisabled:i,play:s,handleMuted:k,touchSlidSrart:w,touchSlidMove:S,touchSlidEnd:m,retry:g,fullScreen:B,t:o}}}),$k={class:"fox-video",ref:"videocon"},Dk=["muted","autoplay","loop","poster","controls","preload"],Ik=["src","type"],qk={class:"fox-video-controller__now"},Pk={class:"fox-video-controller__progress"},Mk={class:"fox-video-controller__progress-value",ref:"progressBar"},Rk={class:"fox-video-controller__played",ref:"playedBar"},zk={class:"fox-video-controller__total"},Fk={class:"fox-video-error"},Lk={class:"fox-video-error-tip"};function Ok(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",$k,[(0,t.createElementVNode)("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:n[0]||(n[0]=(...a)=>e.handleError&&e.handleError(...a))},[(0,t.createElementVNode)("source",{src:e.source.src,type:e.source.type},null,8,Ik)],40,Dk),e.showToolbox&&!e.isDisabled?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...a)=>e.play&&e.play(...a))},null,512)):(0,t.createCommentVNode)("",!0),e.showToolbox&&!e.isDisabled?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:n[2]||(n[2]=(...a)=>e.play&&e.play(...a))},null,512)),[[t.vShow,!e.state.playing]]):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[(0,t.createElementVNode)("div",{class:"fox-video-controller__playbtn",onClick:n[3]||(n[3]=(...a)=>e.play&&e.play(...a))}),(0,t.createElementVNode)("div",qk,(0,t.toDisplayString)(e.videoSet.displayTime),1),(0,t.createElementVNode)("div",Pk,[(0,t.createElementVNode)("div",Mk,[(0,t.createElementVNode)("div",{class:"buffered",style:(0,t.normalizeStyle)({width:`${e.videoSet.loaded}%`})},null,4),(0,t.createElementVNode)("div",{class:"fox-video-controller__ball",style:(0,t.normalizeStyle)({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:n[4]||(n[4]=(0,t.withModifiers)(a=>e.touchSlidMove(a),["stop","prevent"])),onTouchstart:n[5]||(n[5]=(0,t.withModifiers)(a=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)(a=>e.touchSlidEnd(a),["stop"]))},[...n[10]||(n[10]=[(0,t.createElementVNode)("div",{class:"fox-video-controller__ball-move"},null,-1)])],36),(0,t.createElementVNode)("div",Rk,null,512)],512)]),(0,t.createElementVNode)("div",zk,(0,t.toDisplayString)(e.videoSet.totalTime),1),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...a)=>e.handleMuted&&e.handleMuted(...a))},null,2),(0,t.createElementVNode)("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...a)=>e.fullScreen&&e.fullScreen(...a))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),(0,t.withDirectives)((0,t.createElementVNode)("div",Fk,[(0,t.createElementVNode)("p",Lk,(0,t.toDisplayString)(e.t("errorTip")),1),(0,t.createElementVNode)("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...a)=>e.retry&&e.retry(...a))},(0,t.toDisplayString)(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var Nt=re(Ek,[["render",Ok]]),Yi=Symbol("fox-steps"),{create:Kk,componentName:Uk}=ee("steps"),Hk=Kk({props:{direction:{type:[String],default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:o}){const l=(0,t.computed)(()=>{const i=Uk;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}});return rn(Yi,{props:e,onEmit:i=>{n("click-step",i)}}),()=>(0,t.h)("view",{class:l.value},o.default?.())}}),Ea=Hk,{create:_k,componentName:jk}=ee("step"),Wk=_k({props:{title:{type:[String],default:""},content:{type:[String],default:""}},emits:["click-step"],setup(e){const{parent:n,index:o}=sn(Yi,{props:e}),l=(0,t.reactive)({dot:n.props.progressDot}),r=()=>{const s=o.value+1;return s<+n.props.current?"finish":s===+n.props.current?"process":"wait"},i=(0,t.computed)(()=>r()),a=(0,t.computed)(()=>{const s=jk;return{[s]:!0,[`${s}-${i.value}`]:!0}}),u=()=>{n.onEmit(o.value)};return{...(0,t.toRefs)(l),index:o,classes:a,handleClickStep:u}}}),Yk={class:"fox-step-head"},Xk={class:"fox-step-icon-inner"},Qk={key:1,class:"fox-step-inner"},Gk={class:"fox-step-main"},Zk={class:"fox-step-title"},Jk={key:0},ew={key:0,class:"fox-step-content"},tw=["innerHTML"];function nw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClickStep&&e.handleClickStep(...a))},[(0,t.createElementVNode)("view",Yk,[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",Xk,[(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",Qk,(0,t.toDisplayString)(e.index+1),1))])])],2)]),(0,t.createElementVNode)("view",Gk,[(0,t.createElementVNode)("view",Zk,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",Jk,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",ew,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,tw)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var $a=re(Wk,[["render",nw]]),Xi=Symbol("fox-swiper"),{create:lw,componentName:Vl}=ee("swiper"),ow=lw({props:{width:{type:[Number,String],default:()=>window.innerWidth},height:{type:[Number,String],default:0},direction:{type:[String],default:"horizontal"},paginationVisible:{type:[Boolean],default:!1},paginationColor:{type:[String],default:"#fff"},loop:{type:[Boolean],default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:[Boolean],default:!0},isPreventDefault:{type:[Boolean],default:!0},isStopPropagation:{type:[Boolean],default:!0}},emits:["change"],setup(e,{emit:n,slots:o,expose:l}){const r=(0,t.ref)(),i=(0,t.reactive)({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,style:{}}),a=(0,t.computed)(()=>i[h.value?"height":"width"]),{children:u}=rn(Xi,{props:e,size:a}),s=ct(),d=(0,t.computed)(()=>({[Vl]:!0})),h=(0,t.computed)(()=>e.direction==="vertical"),c=(0,t.computed)(()=>{const R=Vl;return{[`${R}-inner`]:!0,[`${R}-vertical`]:h.value}}),p=(0,t.computed)(()=>{const R=Vl;return{[`${R}-pagination`]:!0,[`${R}-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)(()=>u.value.length),w=(0,t.computed)(()=>k.value*a.value),S=(0,t.computed)(()=>i.rect?(h.value?i.rect.height:i.rect.width)-a.value*k.value:0),m=(0,t.computed)(()=>(i.active+k.value)%k.value),f=()=>{let R=0;R=i.offset,i.style={transitionDuration:`${i.moving?0:e.duration}ms`,transform:`translate${h.value?"Y":"X"}(${R}px)`,[h.value?"height":"width"]:`${a.value*k.value}px`,[h.value?"width":"height"]:`${h.value?i.width:i.height}px`}},g=(R,j=0)=>{let I=R*a.value;e.loop||(I=Math.min(I,-S.value));let Q=j-I;return e.loop||(Q=He(Q,S.value,0)),Q},B=R=>{const{active:j}=i;return R?e.loop?He(j+R,-1,k.value):He(j+R,0,k.value-1):j},v=({pace:R=0,offset:j=0,isEmit:I=!1})=>{if(k.value<=1)return;const{active:Q}=i,J=B(R),oe=g(J,j);if(e.loop){if(u.value[0]&&oe!==S.value){const W=oe<S.value;u.value[0].setOffset(W?w.value:0)}if(u.value[k.value-1]&&oe!==0){const W=oe>0;u.value[k.value-1].setOffset(W?-w.value:0)}}i.active=J,i.offset=oe,I&&Q!==i.active&&n("change",m.value),f()},b=()=>{i.moving=!0,i.active<=-1&&v({pace:k.value}),i.active>=k.value&&v({pace:-k.value})},V=()=>{i.autoplayTimer&&clearTimeout(i.autoplayTimer)},A=R=>{b(),s.reset(),Ge(()=>{Ge(()=>{i.moving=!1,v({pace:R,isEmit:!0})})})},T=()=>{A(-1)},N=()=>{A(1)},q=R=>{b(),s.reset(),Ge(()=>{i.moving=!1;let j=0;e.loop&&k.value===R?j=i.active===0?0:R:j=R%k.value,v({pace:j-i.active,isEmit:!0})})},X=()=>{const R=de(e.autoPlay);R<=0||k.value<=1||(V(),i.autoplayTimer=setTimeout(()=>{N(),X()},R))},x=(R=+e.initPage)=>{V(),i.rect=r.value.getBoundingClientRect(),R=Math.min(k.value-1,R),i.width=e.width?+e.width:i.rect.width,i.height=e.height?+e.height:i.rect.height,i.active=R,i.offset=g(i.active),i.moving=!0,f(),X()},M=R=>{e.isPreventDefault&&R.preventDefault(),e.isStopPropagation&&R.stopPropagation(),e.touchable&&(s.start(R),i.touchTime=Date.now(),V(),b())},P=R=>{e.touchable&&i.moving&&(s.move(R),C.value&&v({offset:y.value}))},K=R=>{if(!e.touchable||!i.moving)return;const j=y.value/(Date.now()-i.touchTime);if((Math.abs(j)>.3||Math.abs(y.value)>+(a.value/2).toFixed(2))&&C.value){let I=0;const Q=h.value?s.offsetY.value:s.offsetX.value;e.loop?I=Q>0?y.value>0?-1:1:0:I=-Math[y.value>0?"ceil":"floor"](y.value/a.value),v({pace:I,isEmit:!0})}else y.value&&v({pace:0});i.moving=!1,f(),X()};return l({prev:T,next:N,to:q}),(0,t.onDeactivated)(()=>{V()}),(0,t.onBeforeUnmount)(()=>{V()}),(0,t.watch)(()=>e.initPage,R=>{(0,t.nextTick)(()=>{x(Number(R))})}),(0,t.watch)(()=>u.value.length,()=>{(0,t.nextTick)(()=>{x()})}),(0,t.watch)(()=>e.autoPlay,R=>{de(R)>0?X():V()}),{state:i,children:u,classes:d,classesInner:c,classesPagination:p,container:r,activePagination:m,onTouchStart:M,onTouchMove:P,onTouchEnd:K}}});function aw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{ref:"container",class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classesInner),style:(0,t.normalizeStyle)(e.state.style)},[(0,t.renderSlot)(e.$slots,"default")],6),(0,t.renderSlot)(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classesPagination)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.children.length,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("i",{style:(0,t.normalizeStyle)({backgroundColor:e.activePagination===u?e.paginationColor:"#ddd"}),class:(0,t.normalizeClass)({active:e.activePagination===u}),key:u},null,6))),128))],2)):(0,t.createCommentVNode)("",!0)],34)}var At=re(ow,[["render",aw]]),{create:rw,componentName:iw}=ee("swiper-item"),sw=rw({setup(e,{slots:n,expose:o}){const l=(0,t.reactive)({offset:0}),r=(0,t.computed)(()=>({[iw]:!0})),i=s=>{l.offset=s},{parent:a}=sn(Xi,{setOffset:i}),u=(0,t.computed)(()=>{const s={},d=a?.props.direction;return a?.size.value&&(s[d==="horizontal"?"width":"height"]=`${a?.size.value}px`),l.offset&&(s.transform=`translate${d==="horizontal"?"X":"Y"}(${l.offset}px)`),s});return o({setOffset:i}),{style:u,classes:r}}});function uw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Bt=re(sw,[["render",uw]]),Qi={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:cw}=ee("image-preview-item"),dw=cw({props:{...Qi,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:{[Nt.name]:Nt,[Bt.name]:Bt},setup(e,{emit:n}){const o=(0,t.reactive)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),l=ct(),r=(0,t.computed)(()=>{const{rootWidth:A,rootHeight:T}=e,N=T/A;return o.imageRatio>N}),i=(0,t.computed)(()=>{const A=e.image;if(A&&A.src){const{scale:T,moveX:N,moveY:q,moving:X,zooming:x}=o,M={transitionDuration:x||X?"0s":".3s"};return T!==1&&(M.transform=`scale(${T}, ${T}) translate(${N/T}px, ${q/T}px)`),M}return{}}),a=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:A,rootHeight:T}=e,N=r.value?T/o.imageRatio:A;return Math.max(0,(o.scale*N-A)/2)}return 0}),u=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:A,rootHeight:T}=e,N=r.value?T:A*o.imageRatio;return Math.max(0,(o.scale*N-T)/2)}return 0}),s=A=>{const{naturalWidth:T,naturalHeight:N}=A.target;o.imageRatio=N/T},d=()=>{h(1),o.moveX=0,o.moveY=0},h=A=>{A=He(A,+e.minZoom,+e.maxZoom+1),A!==o.scale&&(o.scale=A,n("scale",{scale:A,index:e.initNo}))},c=()=>{h(o.scale>1?1:2),o.moveX=0,o.moveY=0},p=A=>Math.sqrt((A[0].clientX-A[1].clientX)**2+(A[0].clientY-A[1].clientY)**2);let y,C,k,w,S,m,f;const g=A=>{const{touches:T}=A,{offsetX:N}=l;l.start(A),f=T.length,y=o.moveX,C=o.moveY,m=Date.now(),o.moving=f===1&&o.scale!==1,o.zooming=f===2&&!N.value,o.zooming&&(k=o.scale,w=p(A.touches))},B=A=>{const{touches:T}=A;if(l.move(A),(o.moving||o.zooming)&&Rl(A,!0),o.moving){const{deltaX:N,deltaY:q}=l,X=N.value+y,x=q.value+C;o.moveX=He(X,-a.value,a.value),o.moveY=He(x,-u.value,u.value)}if(o.zooming&&T.length===2){const N=p(T);h(k*N/w)}},v=()=>{if(f==1&&e.video&&e.video.source||f>1)return;const{offsetX:A,offsetY:T}=l,N=Date.now()-m,q=250,X=5;A.value<X&&T.value<X&&N<q&&(S?(clearTimeout(S),S=null,c()):S=setTimeout(()=>{e.contentClose&&n("close"),S=null},q))},b=A=>{let T=!1;(o.moving||o.zooming)&&(T=!0,o.moving&&y===o.moveX&&C===o.moveY&&(T=!1),A.touches.length||(o.zooming&&(o.moveX=He(o.moveX,-a.value,a.value),o.moveY=He(o.moveY,-u.value,u.value),o.zooming=!1),o.moving=!1,y=0,C=0,k=1,o.scale<1&&d(),o.scale>e.maxZoom&&(o.scale=+e.maxZoom))),Rl(A,T),v(),l.reset()},V=()=>{n("close")};return(0,t.watch)(()=>e.initNo,d),(0,t.watch)(()=>e.show,A=>{A||d()}),{...(0,t.toRefs)(o),onTouchStart:g,onTouchMove:B,onTouchEnd:b,getDistance:p,imageStyle:i,imageLoad:s,closeSwiper:V}}}),fw=["src"];function mw(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-video"),u=(0,t.resolveComponent)("fox-swiper-item");return(0,t.openBlock)(),(0,t.createBlock)(u,{onClick:e.closeSwiper},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{style:(0,t.normalizeStyle)(e.imageStyle),class:"fox-image-preview-box",onTouchstart:n[1]||(n[1]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[2]||(n[2]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[4]||(n[4]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[e.image&&e.image.src?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:n[0]||(n[0]=(...s)=>e.imageLoad&&e.imageLoad(...s))},null,40,fw)):(0,t.createCommentVNode)("",!0),e.video&&e.video.source?((0,t.openBlock)(),(0,t.createBlock)(a,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):(0,t.createCommentVNode)("",!0)],36)]),_:1},8,["onClick"])}var pw=re(dw,[["render",mw]]),{create:hw}=ee("image-preview"),vw=hw({props:{...Qi,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:pw,CircleClose:ae.CircleClose,[we.name]:we,[At.name]:At},setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.reactive)({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),r=(0,t.computed)(()=>{const h="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${h}-right`:`${h}-left`}`}),i=(0,t.computed)(()=>Dn(e.videos)?[].concat(e.videos).concat(e.images):e.images),a=h=>{h!==l.active&&(l.active=h,n("change",l.active))},u=()=>{Hi(e.beforeClose,{args:[l.active],done:()=>s()})},s=()=>{l.showPop=!1,n("close")},d=()=>{if(o.value){const h=De(o.value);l.rootHeight=h.height,l.rootWidth=h.width}};return(0,t.watch)(()=>e.show,h=>{l.showPop=h,h&&(a(e.initNo),d())}),(0,t.watch)(()=>e.initNo,h=>{h!=l.active&&a(h)}),(0,t.onMounted)(()=>{a(e.initNo)}),{swipeRef:o,...(0,t.toRefs)(l),onClose:u,mergeImages:i,setActive:a,iconClasses:r}}}),gw={class:"fox-image-preview",ref:"swipeRef"},yw={key:0,class:"fox-image-preview-index"};function bw(e,n,o,l,r,i){const a=(0,t.resolveComponent)("image-preview-item"),u=(0,t.resolveComponent)("fox-swiper"),s=(0,t.resolveComponent)("CircleClose"),d=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=h=>e.showPop=h),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",gw,[e.showPop?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.mergeImages,(h,c)=>((0,t.openBlock)(),(0,t.createBlock)(a,{key:c,video:c<e.videos.length?h:{},image:c>=e.videos.length?h:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):(0,t.createCommentVNode)("",!0)],512),e.showIndex?((0,t.openBlock)(),(0,t.createElementBlock)("view",yw,(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 Gi=re(vw,[["render",bw]]),Sw=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"},kw=class{options=new Sw;constructor(e){const n=Object.assign(this.options,e),{unmount:o}=Hs(n,{name:"image-preview",components:[we,Nt,At,Bt,st],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{o()})},(0,t.h)(Gi,n))}})})}},vl=e=>new kw(e);vl.install=e=>{e.use(Gi)};var{create:ww}=ee("countup"),Cw=ww({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scrollEnd"],setup(e,{emit:n,expose:o}){const l=(0,t.ref)(null),r=(0,t.ref)([]),i=A=>{A&&r.value.push(A)},a=(0,t.reactive)({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:u,scrolling:s,customBgImg:d,type:h}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,()=>{p(),S(0)}),(0,t.watch)(()=>e.machinePrizeLevel,A=>{a.prizeLevelTrun=A}),(0,t.watch)(()=>e.initNum,A=>{a.current=A,a.valFlag=!1,c()}),(0,t.watch)(()=>e.endNum,()=>{a.current=e.initNum,a.valFlag=!1,c()});const c=()=>{if(a.valFlag)return!1;u&&(s||d?h!="machine"&&S():(w(),setTimeout(()=>{a.valFlag=!0},300)))},p=()=>{clearInterval(Number(a.timer)),a.timer=null},y=(A,T,N)=>{const q=(A.toString().split(".")[1]||"").length,X=(T.toString().split(".")[1]||"").length,x=Math.pow(10,Math.max(q,X));return N=="-"?Number((A*x-T*x).toFixed(0))/x:Number((A*x+T*x).toFixed(0))/x},C=A=>{let{num_total_len:T,pointNum:N,initDigit1:q,initDigit2:X,sortFlag:x}=a,M=x=="add"||x=="equal"?String(X)[A-(T-N)]:10-Number(String(X)[A-(T-N)]),P=x=="add"||x=="equal"?String(q)[A]:10-Number(String(q)[A]),K=A>T-N-1?-M*100+"%":A<=String(q).length-1?-P*100+"%":0;return K=="-1000%"&&(K=0),K},k=A=>{let{num_total_len:T,pointNum:N,initDigit1:q,initDigit2:X}=a,x=String(X)[A-(T-N)];return A>T-N-1?x||0:A<=String(q).length-1?String(q)[A]:0},w=()=>{let{endNum:A,initNum:T,speed:N,toFixed:q}=e,X=setInterval(()=>{T>A?Number(a.current)<=A||Number(a.current)<=N?(a.current=A.toFixed(q),clearInterval(X),n("scrollEnd"),a.valFlag=!1):a.current=(parseFloat(String(a.current))-parseFloat(String(N))).toFixed(q):Number(a.current)>=A?(a.current=A.toFixed(q),clearInterval(X),n("scrollEnd"),a.valFlag=!1):a.current=(parseFloat(String(a.current))+parseFloat(String(N))).toFixed(q)},e.during)},S=A=>{let{initNum:T,endNum:N,toFixed:q,customBgImg:X}=e;X&&(T=e.customChangeNum);let x,M,P,K;T!=0?(q!=0&&(T=Number(T.toFixed(q))),String(T).indexOf(".")>-1?(x=String(T).split(".")[0].length,M=String(T).split(".")[1].length):(x=String(T).length,M=0)):(x=1,M=0),N!=0?(q!=0&&(N=Number(N.toFixed(q))),String(N).indexOf(".")>-1?(P=String(N).split(".")[0].length,K=String(N).split(".")[1].length):(P=String(N).length,K=0)):(P=1,K=0);let R=x>=P?x:P,j=M>=K?M:K;a.num_total_len=R+j,a.pointNum=j,T>N?(a.sortFlag="reduce",a.to0_10=[0,9,8,7,6,5,4,3,2,1,0],a.totalCount=y(T,N,"-"),a.numberVal=Number(String(T))):T<N?(a.sortFlag="add",a.to0_10=[0,1,2,3,4,5,6,7,8,9,0],a.totalCount=y(N,T,"-"),a.numberVal=Number(String(N))):a.sortFlag="equal";var I=1;for(let J=0;J<a.pointNum;J++)I*=10;var Q=a.numberVal*I;if(a.relNum=Q,q!=0&&(a.pointNum=String(a.numberVal).split(".")[1]?String(a.numberVal).split(".")[1].length:0,a.num_total_len=String(Q).length),String(T).indexOf(".")>-1){let J=String(T).split(".");a.initDigit1=Number(J[0]),a.initDigit2=Number(J[1])}else a.initDigit1=T,a.initDigit2=0;s&&!X?(0,t.nextTick)(()=>{if(a.sortFlag=="equal")return!1;let J=r.value[a.num_total_len-1];m(J)}):A!==0&&B()},m=A=>{p();var T=1;a.pointNum!=0&&(T=1/Math.pow(10,a.pointNum)),a.timer=setInterval(()=>{f(A),a.totalCount=y(a.totalCount,T,"-"),a.totalCount<=0&&(p(),n("scrollEnd"),a.valFlag=!1)},e.during)},f=A=>{let T=A.getAttribute("turn-number"),N;if(a.sortFlag=="add"?N=parseInt(String(T))+1:N=parseInt(String(T))-1>=0?parseInt(String(T))-1:9,A.setAttribute("turn-number",String(N)),(A.style.transition=="none 0s ease 0s"||N==1||!A.style.transition)&&(A.style.transition=`all linear ${e.during}ms`),N==10||a.sortFlag=="reduce"&&N==0){var q=null;A.style.top=`-${a.sortFlag=="add"?N*100:(10-N)*100}%`,A.setAttribute("turn-number","0"),q=setTimeout(()=>{q&&clearTimeout(q),A.style.transition="none",A.style.top="0",g(A,N)},.975*e.during)}else A.style.top=`-${a.sortFlag=="add"?N*100:(10-N)*100}%`;A.style.top=="-100%"&&a.sortFlag=="reduce"&&f(A.previousSibling)},g=(A,T)=>{setTimeout(()=>{T==10&&A.previousSibling&&f(A.previousSibling)},200)},B=()=>{(0,t.nextTick)(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{n("scrollEnd"),a.valFlag=!1})})},v=()=>{for(a.notPrize=[];a.notPrize.length<3;){var A=Math.floor(Math.random()*e.machinePrizeNum+1);a.notPrize.indexOf(A)==-1&&a.notPrize.push(A)}};o({machineLuck:()=>{const A=e.machineTurnMore<0?0:e.machineTurnMore;let T=e.numHeight*e.machinePrizeNum;a.prizeLevelTrun<0&&v();for(let N=0;N<e.machineNum;N++)setTimeout(()=>{let q=T*(N+1+parseFloat(String(A)));a.prizeYPrev.length!=0&&(a.prizeY[N]=a.prizeYPrev[N]);let X=a.prizeYPrev[N]?a.prizeYPrev[N]:0,x=q+X+(e.machinePrizeNum-a.prizeLevelTrun+1)*e.numHeight+(T-X);a.prizeLevelTrun<0&&(x+=e.numHeight*a.notPrize[N]),V(N,x,X)},500*N)}});const V=(A,T,N)=>{let q=setInterval(()=>{if(N<=T)N+=10,a.prizeY[A]=parseFloat(String(N));else if(clearInterval(q),q=null,a.finshMachine+=1,a.prizeY[A]=T,a.finshMachine==e.machineNum){let X=e.numHeight*e.machinePrizeNum;a.prizeYPrev=[],JSON.parse(JSON.stringify(a.prizeY)).forEach(x=>{let M=x;for(;M>X;)M-=X;a.prizeYPrev.push(M)}),setTimeout(()=>{a.finshMachine=0,a.prizeLevelTrun<0?(n("scrollEnd",!1),a.valFlag=!1):(n("scrollEnd",!0),a.valFlag=!1)},130)}},30)};return(0,t.onMounted)(()=>{a.current=e.initNum,(0,t.nextTick)(()=>{c()})}),(0,t.onUnmounted)(()=>{p(),a.timer=null}),{...(0,t.toRefs)(a),...(0,t.toRefs)((0,t.reactive)(e)),runNumberImg:l,setRef:i,topNumber:C,turnNumber:k}}}),Nw={class:"fox-countup"},Aw=["turn-number"];function Bw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Nw,[e.customBgImg!=""?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.type=="machine"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup__machine",style:(0,t.normalizeStyle)({height:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.machineNum,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"mImg"+u,class:"fox-countup__machine-item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[u]+"px"})},null,4))),128))],4)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:(0,t.normalizeStyle)({height:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.num_total_len,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"cImg"+u,class:"fox-countup__numberimg__item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(Number(u)>e.num_total_len-e.pointNum-1?Number(u)==e.num_total_len-e.pointNum?Number(u)*1.5:Number(u)*1.3:Number(u))+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[u]*e.numHeight+e.customSpacNum*+String(e.relNum)[u])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup-pointstyl",style:(0,t.normalizeStyle)({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})}," . ",4)):(0,t.createCommentVNode)("",!0)],4))],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.scrolling?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup__number",style:(0,t.normalizeStyle)({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.num_total_len,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{ref_for:!0,ref:s=>e.setRef(s),key:a,class:"fox-countup__number-item",style:(0,t.normalizeStyle)({top:e.topNumber(u),left:e.numWidth*(Number(u)>e.num_total_len-e.pointNum-1?Number(u)*1.1:Number(u))+"px"}),"turn-number":e.turnNumber(u)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.to0_10,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"dote"+d,class:"fox-countup__number-item__span",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},(0,t.toDisplayString)(s),5))),128))],12,Aw))),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 Da=re(Cw,[["render",Bw]]),Tw=e=>{if(!e)return Date.now();let n=Number(e),o=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(o).getTime()},{componentName:Vw,create:xw}=ee("countdown"),Ew=xw({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:o}){const l=(0,t.reactive)({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),r=(0,t.computed)(()=>({[Vw]:!0})),i=(0,t.computed)(()=>s(l.restTime)),a=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-Tw(e.startTime),l.counting||(l.counting=!0),u()},u=()=>{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,c(),n("on-end")),C>0&&u()}}))},s=(y,C)=>{const k=y;let w={d:0,h:0,m:0,s:0,ms:0};const S=1e3,m=60*S,f=60*m,g=24*f;return k>0&&(w.d=k>=S?Math.floor(k/g):0,w.h=Math.floor(k%g/f),w.m=Math.floor(k%f/m),w.s=Math.floor(k%m/S),w.ms=Math.floor(k%S)),C=="custom"?w:d({...w})},d=y=>{let{d:C,h:k,m:w,s:S,ms:m}=y,f=e.format;if(f.includes("DD")?f=f.replace("DD",ot(C)):k+=Number(C)*24,f.includes("HH")?f=f.replace("HH",ot(k)):w+=Number(k)*60,f.includes("mm")?f=f.replace("mm",ot(w)):S+=Number(w)*60,f.includes("ss")?f=f.replace("ss",ot(S)):m+=Number(S)*1e3,f.includes("S")){const g=ot(m,3).toString();f.includes("SSS")?f=f.replace("SSS",g):f.includes("SS")?f=f.replace("SS",g.slice(0,2)):f.includes("S")&&(f=f.replace("SS",g.slice(0,1)))}return f},h=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),u(),n("on-restart",l.restTime))},c=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},p=()=>{e.autoStart||(c(),l.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?a():l.restTime=e.time}),(0,t.watch)(()=>l.restTime,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),u()),n("on-restart",l.restTime)):l.counting&&c()}),(0,t.watch)(()=>e.endTime,y=>{a()}),(0,t.watch)(()=>e.startTime,y=>{a()}),{...(0,t.toRefs)(e),slots:o,classes:r,start:h,pause:c,renderTime:i,reset:p}}}),$w=["innerHTML"];function Dw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,$w))],2)}var Ia=re(Ew,[["render",Dw]]),{create:Iw}=ee("badge"),qw=Iw({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){return{state:(0,t.reactive)({}),stl:(0,t.computed)(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),content:(0,t.computed)(()=>{if(e.dot)return;const n=e.value,o=e.max;return typeof n=="number"&&typeof o=="number"&&o<n?`${o}+`:n})}}}),Pw={class:"fox-badge"},Mw=["textContent"];function Rw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Pw,[(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,Mw),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var qa=re(qw,[["render",Rw]]),{componentName:zw,create:Fw}=ee("tag"),Lw=Fw({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:ae.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:(0,t.computed)(()=>{const a=zw;return{[a]:!0,[`${a}--${e.type}`]:!0,[`${a}--plain`]:e.plain,[`${a}--round`]:e.round,[`${a}--mark`]:e.mark,[`${a}--symbol`]:e.symbol,[`${a}--text`]:e.text,[`${a}--light`]:e.light}}),getStyle:()=>{const a={};return e.textColor?a.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(a.color=e.color),e.plain?(a.background="#fff",a["border-color"]=e.color):!e.text&&e.color&&(a.background=e.color),a},onClose:a=>{a.stopPropagation(),n("close",a)},onClick:a=>{n("click",a)}}}});function Ow(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle()),onClick:n[0]||(n[0]=(...u)=>e.onClick&&e.onClick(...u))},[(0,t.renderSlot)(e.$slots,"default"),e.closeable?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],6)}var Pa=re(Lw,[["render",Ow]]),{create:Kw}=ee("popover"),Uw=Kw({components:{FoxPopup:we},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.ref)(),r=(0,t.ref)(e.visible);let i=(0,t.ref)(),a=(0,t.ref)();const u=(0,t.computed)(()=>{const m="fox-popover-arrow",f=e.location;return`${m} ${m}-${f.split("-")[0]} ${m}--${f}`}),s=(0,t.computed)(()=>{const m={},{bgColor:f,arrowOffset:g,location:B}=e,v=B.split("-")[0],b=B.split("-")[1],V=16;return f&&(m[`border${d(v)}Color`]=f),e.arrowOffset!=0&&(["bottom","top"].includes(v)&&(b||(m.left=`calc(50% + ${g}px)`),b=="start"&&(m.left=`${V+g}px`),b=="end"&&(m.right=`${V-g}px`)),["left","right"].includes(v)&&(b||(m.top=`calc(50% - ${g}px)`),b=="start"&&(m.top=`${V-g}px`),b=="end"&&(m.bottom=`${V+g}px`))),m}),d=m=>(m=m.toLowerCase(),m=m.replace(/\b\w+\b/g,f=>f.substring(0,1).toUpperCase()+f.substring(1)),m),h=(0,t.computed)(()=>{let m={};if(!i.value||!a.value)return{};const f=a.value.width,g=a.value.height,{width:B,height:v,left:b,top:V}=i.value,{location:A,offset:T}=e,N=A.split("-")[0],q=A.split("-")[1];let X=0,x=0;return Dn(T)&&T.length==2&&(X+=Number(T[1]),x+=Number(T[0])),B&&(["bottom","top"].includes(N)&&(m.top=`${V+(N=="bottom"?v+X:-(g+X))}px`,q||(m.left=`${-(f-B)/2+b+x}px`),q=="start"&&(m.left=`${b+x}px`),q=="end"&&(m.left=`${i.value.right+x}px`)),["left","right"].includes(N)&&(m.left=`${b+(N=="left"?-(f+X):B+X)}px`,q||(m.top=`${V-g/2+v/2-4+x}px`),q=="start"&&(m.top=`${V+x}px`),q=="end"&&(m.top=`${V+v+x}px`))),m}),c=(0,t.computed)(()=>{const m={};return e.bgColor&&(m.background=e.bgColor),m}),p=()=>{let m=De(o.value);e.targetId&&(m=De(document.querySelector(`#${e.targetId}`))),i.value=m,setTimeout(()=>{a.value={height:l.value?.clientHeight,width:l.value?.clientWidth}},0)};(0,t.onMounted)(()=>{setTimeout(()=>{p()},200)}),(0,t.watch)(()=>e.visible,m=>{r.value=m,m?(window.addEventListener("touchstart",S,!0),p()):window.removeEventListener("touchstart",S,!0)});const y=m=>{n("update",m),n("update:visible",m)},C=()=>{y(!e.visible),n("open")},k=()=>{n("update:visible",!1),n("close")},w=(m,f)=>{!m.disabled&&n("choose",m,f),e.closeOnClickAction&&k()},S=m=>{const f=o.value,g=l.value;let B=f&&!f.contains(m.target);if(e.targetId){const v=document.querySelector(`#${e.targetId}`);B=v&&!v.contains(m.target)}B&&g&&!g.contains(m.target)&&e.closeOnClickOutside&&k()};return{showPopup:r,openPopover:C,popoverArrow:u,closePopover:k,chooseItem:w,popoverRef:o,popoverContentRef:l,getRootPosition:h,customStyle:c,popoverArrowStyle:s,renderIcon:di}}}),Hw={ref:"popoverContentRef",class:"fox-popover-content-group"},_w=["onClick"],jw={class:"fox-popover-menu-item-name"};function Ww(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.targetId?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:n[0]||(n[0]=(...u)=>e.openPopover&&e.openPopover(...u))},[(0,t.renderSlot)(e.$slots,"reference")],512)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:(0,t.normalizeStyle)(e.getRootPosition)},[(0,t.createVNode)(a,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=u=>e.showPopup=u),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:(0,t.normalizeStyle)(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Hw,[e.showArrow?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.popoverArrow),style:(0,t.normalizeStyle)(e.popoverArrowStyle)},null,6)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content"),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.list,(u,s)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:s,class:(0,t.normalizeClass)([u.className,u.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:(0,t.withModifiers)(d=>e.chooseItem(u,s),["stop"])},[u.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(u.icon)),{key:0,class:"fox-popover-item-img"})):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",jw,(0,t.toDisplayString)(u.name),1)],10,_w))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}var Qt=re(Uw,[["render",Ww]]),Yw=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:o,round:l,avatarSize:r}=(0,t.toRefs)(n),i=(0,t.computed)(()=>{const s="avatarClass";return{[s]:!0,[`${s}--${o.value}`]:o.value}});return{avatarShape:o,avatarClass:i,getBlockClass:s=>({[s]:!0,[`${s}--round`]:l.value}),getStyle:()=>r.value?{width:r.value,height:r.value}:{width:"50px",height:"50px"}}}}),{create:Xw}=ee("skeleton"),Qw=Xw(Yw({[Xt.name]:Xt})),Gw={key:0},Zw={key:1,class:"fox-skeleton"},Jw={key:0,class:"fox-skeleton-animation"},eC={class:"fox-skeleton-content"};function tC(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",Zw,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",Jw)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",eC,[e.avatar?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,class:(0,t.normalizeClass)(e.avatarClass),shape:e.avatarShape,style:(0,t.normalizeStyle)(e.getStyle())},null,8,["class","shape","style"])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-skeleton-content__line",style:(0,t.normalizeStyle)({width:e.width})},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.getBlockClass("fox-skeleton-blockTitle")),style:(0,t.normalizeStyle)({height:e.height})},null,6)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.row),u=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u,class:(0,t.normalizeClass)(e.getBlockClass("fox-skeleton-blockLine")),style:(0,t.normalizeStyle)({height:e.height})},null,6))),128))],4)])])):((0,t.openBlock)(),(0,t.createElementBlock)("view",Gw,[(0,t.renderSlot)(e.$slots,"default")]))}var Ma=re(Qw,[["render",tC]]),{create:nC,componentName:lC}=ee("collapse"),oC=nC({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const o=(0,t.ref)(null),l=(0,t.ref)(e.modelValue||(e.accordion?"":[])),r=(0,t.computed)(()=>({[lC]:!0}));(0,t.watch)(()=>e.modelValue,s=>{l.value=s});const i=(s,d,h=!0)=>{l.value=s,n("update:modelValue",s),n("change",s,d,h)},a=s=>{e.accordion?l.value===s?i("",s,!1):i(s,s,!0):Array.isArray(l.value)?l.value.includes(s)?i(l.value.filter(d=>d!==s),s,!1):i(l.value.concat([s]),s,!0):console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},u=s=>e.accordion?l.value===s:Array.isArray(l.value)?l.value.includes(s):!1;return(0,t.provide)("collapseParent",{updateVal:a,isExpanded:u}),{collapseDom:o,classes:r}}});function aC(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"collapseDom"},[(0,t.renderSlot)(e.$slots,"default")],2)}var Ra=re(oC,[["render",aC]]),{create:rC,componentName:iC}=ee("collapse-item"),sC=rC({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:ae.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=(0,t.ref)(null),o=(0,t.ref)(null),l=(0,t.reactive)((0,t.inject)("collapseParent")),r=(0,t.computed)(()=>{const c=iC;return{[c]:!0,[c+"__border"]:e.border}}),i=(0,t.computed)(()=>l?l.isExpanded(e.name):!1),a=(0,t.ref)(i.value?"auto":"0px"),u=()=>{l.updateVal(e.name)},s=()=>{i.value&&(a.value="auto")},d=()=>{a.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const c=o.value?.offsetHeight;a.value=c?`${c}px`:"auto"})})},h=()=>{const c=o.value?.offsetHeight;a.value=c?`${c}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{a.value="0px"})})};return(0,t.watch)(i,c=>{c?d():h()}),{classes:r,renderIcon:di,wrapperRef:n,contentRef:o,open:d,toggle:u,wrapperHeight:a,expanded:i,onTransitionEnd:s}}}),uC={class:"fox-collapse-item__title-main"},cC={class:"fox-collapse-item__title-main-value"},dC=["innerHTML"],fC={key:2,class:"fox-collapse-item__title-label"},mC={key:0,class:"fox-collapse-item__title-sub"},pC=["innerHTML"],hC={key:0,class:"fox-collapse__item-extraWrapper"},vC={class:"fox-collapse__item-extraWrapper__extraRender"},gC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function yC(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:n[0]||(n[0]=(...a)=>e.toggle&&e.toggle(...a))},[(0,t.createElementVNode)("view",uC,[(0,t.createElementVNode)("view",cC,[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,dC)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",fC,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",mC,[(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,pC)),(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",hC,[(0,t.createElementVNode)("div",vC,[(0,t.renderSlot)(e.$slots,"extra")])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:(0,t.normalizeStyle)({willChange:"height",height:e.wrapperHeight}),onTransitionend:n[1]||(n[1]=(...a)=>e.onTransitionEnd&&e.onTransitionEnd(...a))},[(0,t.createElementVNode)("view",gC,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var za=re(sC,[["render",yC]]),bC=(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:SC,create:kC,scope:wC}=ee("table"),CC=kC({components:{RenderColumn:bC,DownArrow:ae.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:o}){const{t:l}=(0,ve.useFoxI18n)(wC),r=(0,t.reactive)({curData:e.data}),i=(0,t.computed)(()=>({[SC]:!0})),a=y=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${y.align?y.align:""}`]:!0}),u=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:""},c=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:a,getColumnItem:d,getColumnItemStyle:h,handleSorterClick:c,sortDataItem:p,t:l,stylehead:u,stylecolumn:s}}}),NC={class:"fox-table__main__head"},AC={class:"fox-table__main__head__tr"},BC=["onClick"],TC={class:"fox-table__main__body"},VC={key:1},xC={key:0,class:"fox-table__nodata"},EC={key:0,class:"fox-table__nodata__text"},$C={key:1,class:"fox-table__summary"},DC=["innerHTML"];function IC(e,n,o,l,r,i){const a=(0,t.resolveComponent)("DownArrow"),u=(0,t.resolveComponent)("RenderColumn");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-table__main",{"fox-table__main--striped":e.striped}])},[(0,t.createElementVNode)("view",NC,[(0,t.createElementVNode)("view",AC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,s=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__head__tr__th",e.cellClasses(s)]),key:s.key,onClick:d=>e.handleSorterClick(s),style:(0,t.normalizeStyle)(s.stylehead)},[(0,t.createTextVNode)((0,t.toDisplayString)(s.title)+" ",1),(0,t.renderSlot)(e.$slots,"icon"),!e.$slots.icon&&s.sorter?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,width:"12px",height:"12px"})):(0,t.createCommentVNode)("",!0)],14,BC))),128))])]),(0,t.createElementVNode)("view",TC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.curData,s=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-table__main__body__tr",key:s},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.sortDataItem(),([d,h])=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:(0,t.normalizeStyle)(e.getColumnItemStyle(d))},[typeof s[d]=="function"||typeof h=="function"?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,slots:[h,s[d]],record:s},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",VC,(0,t.toDisplayString)(s[d]),1))],6))),128))]))),128))])],2),e.curData.length?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",xC,[(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",EC,(0,t.toDisplayString)(e.t("noData")),1))],2)])),e.summary?((0,t.openBlock)(),(0,t.createElementBlock)("view",$C,[(0,t.createElementVNode)("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,DC)])):(0,t.createCommentVNode)("",!0)],2)}var Fa=re(CC,[["render",IC]]),{componentName:qC,create:PC}=ee("ellipsis"),MC=PC({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const o=(0,t.ref)(null);let l=null,r=0;const i=(0,t.ref)(),a=(0,t.reactive)({exceeded:!1,expanded:!1}),u=(0,t.computed)(()=>({[qC]:!0}));(0,t.watch)(()=>e.content,(k,w)=>{k!=w&&s()}),(0,t.onMounted)(()=>{s()});const s=()=>{if(!o.value)return;const k=window.getComputedStyle(o.value);l=document.createElement("div"),Array.prototype.slice.apply(k).forEach(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 w=p(k.lineHeight==="normal"?e.lineHeight:k.lineHeight);r=Math.floor(w*(Number(e.rows)+.5)+p(k.paddingTop)+p(k.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),d()},d=()=>{if(l.offsetHeight<=r)a.exceeded=!1,document.body.removeChild(l);else{a.exceeded=!0;const k=e.content.length,w=Math.floor((0+k)/2);i.value=e.direction==="middle"?c([0,w],[w,k]):h(0,k),document.body.removeChild(l)}},h=(k,w)=>{const S=a.expanded?e.collapseText:e.expandText,m=e.content.length;if(w-k<=1)return e.direction==="end"?{leading:e.content.slice(0,k)+e.symbol}:{tailing:e.symbol+e.content.slice(w,m)};const f=Math.round((k+w)/2);return e.direction==="end"?l.innerText=e.content.slice(0,f)+e.symbol+S:l.innerText=S+e.symbol+e.content.slice(f,m),l.offsetHeight<=r?e.direction==="end"?h(f,w):h(k,f):e.direction==="end"?h(k,f):h(f,w)},c=(k,w)=>{const S=a.expanded?e.collapseText:e.expandText,m=e.content.length;if(k[1]-k[0]<=1&&w[1]-w[0]<=1)return{leading:e.content.slice(0,k[0])+e.symbol,tailing:e.symbol+e.content.slice(w[1],m)};const f=Math.floor((k[0]+k[1])/2),g=Math.ceil((w[0]+w[1])/2);return l.innerText=e.content.slice(0,f)+e.symbol+S+e.symbol+e.content.slice(g,m),l.offsetHeight<=r?c([f,k[1]],[w[0],g]):c([k[0],f],[g,w[1]])},p=k=>{if(!k)return 0;const w=k.match(/^\d*(\.\d*)?/);return w?Number(w[0]):0},y=k=>{k==1?(a.expanded=!0,n("change","expand")):(a.expanded=!1,n("change","collapse"))},C=()=>{n("click")};return{...(0,t.toRefs)(a),root:o,ellipsis:i,classes:u,clickHandle:y,handleClick:C}}}),RC={key:0},zC={key:1},FC={key:2};function LC(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[2]||(n[2]=(...a)=>e.handleClick&&e.handleClick(...a)),ref:"root"},[e.exceeded?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",RC,(0,t.toDisplayString)(e.content),1)),e.exceeded&&!e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",zC,[(0,t.createTextVNode)((0,t.toDisplayString)(e.ellipsis&&e.ellipsis.leading),1),e.expandText?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-ellipsis__text",onClick:n[0]||(n[0]=(0,t.withModifiers)(a=>e.clickHandle(1),["stop"]))},(0,t.toDisplayString)(e.expandText),1)):(0,t.createCommentVNode)("",!0),(0,t.createTextVNode)((0,t.toDisplayString)(e.ellipsis&&e.ellipsis.tailing),1)])):(0,t.createCommentVNode)("",!0),e.exceeded&&e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",FC,[(0,t.createTextVNode)((0,t.toDisplayString)(e.content)+" ",1),e.expandText?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-ellipsis__text",onClick:n[1]||(n[1]=(0,t.withModifiers)(a=>e.clickHandle(2),["stop"]))},(0,t.toDisplayString)(e.collapseText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2)}var La=re(MC,[["render",LC]]),{componentName:OC,create:KC}=ee("animate"),UC=KC({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:o,loop:l,action:r}=(0,t.toRefs)(e),i=(0,t.reactive)({clicked:!1});let a=(0,t.computed)(()=>({"fox-animate__container":!0,[`${OC}-${o.value}`]:r.value==="initial"||i.clicked?o.value:!1,loop:l.value}));const u=s=>{i.clicked=!0,l.value||setTimeout(()=>{i.clicked=!1},1e3),n("click",s)};return{...(0,t.toRefs)(i),classes:a,handleClick:u}}}),HC={class:"fox-animate"};function _C(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",HC,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClick&&e.handleClick(...a)),style:(0,t.normalizeStyle)({animationDuration:e.duration?`${e.duration}ms`:void 0})},[(0,t.renderSlot)(e.$slots,"default")],6)])}var Oa=re(UC,[["render",_C]]),{componentName:jC,create:WC}=ee("watermark"),YC=WC({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const o=(0,t.reactive)({base64Url:""}),{zIndex:l,gapX:r,gapY:i,width:a,height:u,rotate:s,image:d,imageWidth:h,imageHeight:c,content:p,fontStyle:y,fontWeight:C,fontColor:k,fontSize:w,fontFamily:S}=e,m=()=>{const g=document.createElement("canvas"),B=window.devicePixelRatio,v=g.getContext("2d"),b=`${(r+a)*B}px`,V=`${(i+u)*B}px`,A=a*B,T=u*B;if(g.setAttribute("width",b),g.setAttribute("height",V),v)if(d){v.translate(A/2,T/2),v.rotate(Math.PI/180*Number(s));const N=new Image;N.crossOrigin="anonymous",N.referrerPolicy="no-referrer",N.src=d,N.onload=()=>{v.drawImage(N,-h*B/2,-c*B/2,h*B,c*B),v.restore(),o.base64Url=g.toDataURL()}}else p&&(v.textBaseline="middle",v.textAlign="center",v.translate(A/2,T/2),v.rotate(Math.PI/180*Number(s)),v.font=`${y} normal ${C} ${Number(w)*B}px/${T}px ${S}`,v.fillStyle=k,v.fillText(p,0,0),v.restore(),o.base64Url=g.toDataURL());else throw new Error("当前环境不支持Canvas")};m(),(0,t.watch)(()=>[l,r,i,a,u,s,d,h,c,p,y,C,k,w,S],()=>{m()});const f=(0,t.computed)(()=>{const g=jC;return{[g]:!0,[`${g}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(o),classes:f}}});function XC(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}var Ka=re(YC,[["render",XC]]);function QC(e,n=2){return Object.is(parseFloat(e),NaN)?console.log(`传入的值:${e}不是一个数字`):(e=parseFloat(e),(Math.round((e+Number.EPSILON)*Math.pow(10,n))/Math.pow(10,n)).toFixed(n))}var{componentName:GC,create:ZC}=ee("trend-arrow"),JC=ZC({components:{TriangleUp:ae.TriangleUp,TriangleDown:ae.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=(0,t.reactive)({rateTrend:e.rate>0}),o=(0,t.computed)(()=>({[GC]:!0})),l=(0,t.computed)(()=>{const{rate:i,digits:a,showSign:u,showZero:s}=e;n.rateTrend=i>0;const d=Math.abs(i);return!s&&i===0?"--":`${u&&i!==0?n.rateTrend?"+":"-":""}${QC(Number(d),a)}%`}),r=(0,t.computed)(()=>{const{dropColor:i,riseColor:a,syncTextColor:u,textColor:s,rate:d}=e;return{color:d===0?s:u?n.rateTrend?a:i:s}});return{...(0,t.toRefs)(n),classes:o,calcRate:l,calcStyle:r}}});function e2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("TriangleUp"),u=(0,t.resolveComponent)("TriangleDown");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.arrowLeft?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?(0,t.renderSlot)(e.$slots,"up-icon",{key:1},()=>[(0,t.createVNode)(a,{color:e.riseColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),Number(e.rate)!==0&&!e.rateTrend?(0,t.renderSlot)(e.$slots,"down-icon",{key:2},()=>[(0,t.createVNode)(u,{color:e.dropColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.arrowLeft?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)):(0,t.createCommentVNode)("",!0)],2)}var Ua=re(JC,[["render",e2]]),{create:t2}=ee("tour"),n2=t2({components:{[Qt.name]:Qt,Close:ae.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const o=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),l=(0,t.ref)({}),r=(0,t.computed)(()=>"fox-tour"),i=(0,t.computed)(()=>{const{offset:h,maskWidth:c,maskHeight:p}=e,{width:y,height:C,left:k,top:w}=l.value,S=[k+y/2,w+C/2],m=Number(c||y),f=Number(p||C);return{width:`${m+ +h[1]*2}px`,height:`${f+ +h[0]*2}px`,top:`${S[1]-f/2-+h[0]}px`,left:`${S[0]-m/2-+h[1]}px`}}),a=h=>{h=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,(0,t.nextTick)(()=>{o.showPopup=!0,u()}),n("change",o.active)},u=()=>{l.value=De(document.querySelector(`#${e.steps[o.active].target}`))},s=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&s()};return(0,t.onMounted)(()=>{o.active=0,u()}),(0,t.watch)(()=>e.modelValue,h=>{h&&u(),o.active=0,o.showTour=h,o.showPopup=h}),{...(0,t.toRefs)(o),classes:r,maskStyle:i,changeStep:a,close:s,handleClickMask:d}}}),l2={key:0,class:"fox-tour-content"},o2={key:0,class:"fox-tour-content-top"},a2={class:"fox-tour-content-inner"},r2={class:"fox-tour-content-bottom"},i2={class:"fox-tour-content-bottom-init"},s2={class:"fox-tour-content-bottom-operate"},u2={key:1,class:"fox-tour-content fox-tour-content-tile"},c2={class:"fox-tour-content-inner"};function d2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Close"),u=(0,t.resolveComponent)("fox-popover");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...s)=>e.handleClickMask&&e.handleClickMask(...s))},null,512),[[t.vShow,e.showTour]]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.steps,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:d,style:{height:"0"}},[d==e.active?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.showTour?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:(0,t.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(u,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=h=>e.showPopup=h),location:s.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:s.popoverOffset||[0,12],arrowOffset:s.arrowOffset||0},{content:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,t.openBlock)(),(0,t.createElementBlock)("div",l2,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",o2,[(0,t.createElementVNode)("div",{onClick:n[1]||(n[1]=(...h)=>e.close&&e.close(...h))},[(0,t.createVNode)(a,{class:"fox-tour-content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",a2,(0,t.toDisplayString)(s.content),1),(0,t.createElementVNode)("div",r2,[(0,t.createElementVNode)("div",i2,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",s2,[(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",u2,[(0,t.createElementVNode)("div",c2,(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 Ha=re(n2,[["render",d2]]),{componentName:f2,create:m2}=ee("barrage"),p2=m2({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const n=new Date().getTime(),o=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[f2]:!0}));let r=(0,t.ref)(document.createElement("div")),i=(0,t.ref)(document.createElement("div")),a=null;const u=(0,t.ref)(e.danmu),s=(0,t.ref)(e.rows),d=(0,t.ref)(e.top),h=(0,t.ref)(0),c=e.speeds,p=(0,t.ref)(0);(0,t.onMounted)(()=>{y(),o&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(k(),h.value=0,C("hidden")):document.visibilityState==="visible"&&y()})}),(0,t.onUnmounted)(()=>{u.value=[],k()});const y=()=>{p.value=r.value.offsetWidth,o&&C("init"),setTimeout(()=>{r.value?.style.setProperty("--move-distance",`-${p.value}px`),S()},300)},C=f=>{let g=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const B=[];g&&Array.from(g).forEach(v=>{f=="init"?(v.style.opacity="0",B.push(v)):(v.classList="",v.style={})}),f=="init"&&(u.value=B)},k=()=>{a&&(clearTimeout(a),a=null)};(0,t.watch)(()=>e.danmu,f=>{e.danmu.length>0&&(u.value=[...f])});const w=f=>{const g=h.value%u.value.length;!e.loop&&h.value===u.value.length?u.value.splice(u.value.length,0,f):u.value.splice(g,0,f)},S=()=>{k(),a=setTimeout(()=>{m()},e.frequency)},m=()=>{const f=e.loop?h.value%u.value.length:h.value;let g=document.createElement("view");o&&typeof u.value[f]=="object"?(g=u.value[f],g?.classList?.add("fox-barrage__item")):(g.innerHTML=u.value[f],g.classList.add("fox-barrage__item"),i.value.appendChild(g)),(0,t.nextTick)(()=>{const B=g.offsetHeight;if(g?.classList?.add("move"),g.style.animationDuration=`${c}ms`,g.style.top=f%s.value*(B+d.value)+20+"px",g.style.opacity="1",!o){const v=g.offsetWidth;g.style.width=v+20+"px"}g.addEventListener("animationend",()=>{o?g.classList.remove("move"):i.value.removeChild(g)}),!(!e.loop&&h.value>=u.value.length-1)&&(h.value++,h.value>=u.value.length&&(h.value=0),g.removeEventListener("animationend",()=>{}),S())})};return{classTime:n,classes:l,danmuList:u,dmBody:r,dmContainer:i,add:w}}});function h2(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{ref:"dmBody",class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",{ref:"dmContainer",class:(0,t.normalizeClass)(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["slotBody","slotBody"+e.classTime])},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)],2)],2)}var _a=re(p2,[["render",h2]]),{componentName:v2,create:g2,scope:y2}=ee("signature"),b2=g2({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:Vt},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n,expose:o}){const{toLocaleRefs:l}=(0,ve.useFoxI18n)(y2),r=l(e,["unSupportTpl","reSign","confirmText"]),i=(0,t.ref)(null),a=(0,t.ref)(null),u=(0,t.computed)(()=>({[v2]:!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 f=document.createElement("canvas");return!!(f.getContext&&f.getContext("2d"))},h=()=>{i.value.addEventListener(s.events[0],c,!1)},c=f=>{f.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=f=>{f.preventDefault();let g=s.isSupportTouch?f.touches[0]:f;n("signing",g);let B=i.value.getBoundingClientRect(),v=g.clientX-B.left,b=g.clientY-B.top;s.ctx.lineTo(v,b),s.ctx.stroke()},y=f=>{f.preventDefault(),n("end"),i.value.removeEventListener(s.events[1],p,!1),i.value.removeEventListener(s.events[2],y,!1)},C=f=>{f.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")},w=()=>{m(i.value)},S=f=>{if(!f)return!0;var g=document.createElement("canvas");return g.width=f.width,g.height=f.height,f?.toDataURL()==g.toDataURL()},m=f=>{let g;switch(e.type){case"png":g=f.toDataURL("image/png");break;case"jpg":g=f.toDataURL("image/jpeg",.8);break}n("confirm",S(f)?"请绘制签名":f,S(f)?"":g)};return(0,t.onMounted)(()=>{d()&&(s.ctx=i.value.getContext("2d"),s.canvasWidth=a.value.offsetWidth,s.canvasHeight=a.value.offsetHeight,h())}),o({confirm:w,clear:k}),{...r,...(0,t.toRefs)(s),canvas:i,wrap:a,isCanvasSupported:d,confirm:w,clear:k,classes:u}}}),S2={class:"fox-signature__inner",ref:"wrap"},k2=["height","width"],w2={key:0,class:"fox-signature-unsopport"},C2={class:"fox-signature__toolbar"};function N2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxButton");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",S2,[(0,t.withDirectives)((0,t.createElementVNode)("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,k2),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("p",w2,(0,t.toDisplayString)(e.unSupportTpl),1))],512),(0,t.createElementVNode)("div",C2,[(0,t.renderSlot)(e.$slots,"toolbar",{},()=>[(0,t.createVNode)(a,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=u=>e.clear())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.reSign),1)]),_:1}),(0,t.createVNode)(a,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=u=>e.confirm())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.confirmText),1)]),_:1})])])],2)}var ja=re(b2,[["render",N2]]),A2=[lo,ao,ro,io,so,nn,Qn,co,fo,mo,po,ho,Jn,go,So,Co,No,rl,il,Ao,sl,ul,Bo,Vo,Tt,xo,$o,pl,Do,qo,on,an,nl,Po,Mo,Ro,zo,rt,Fo,Lo,Gn,kt,Zn,Oo,Ko,Vt,Uo,Ho,_o,st,we,jo,Wo,Yo,Xo,Qo,Go,Zo,Jo,ea,ta,na,la,oa,aa,ra,ia,sa,ua,ca,da,jt,ml,ll,al,ol,hl,dl,ln,fa,ma,pa,ha,va,ga,ya,Yt,fl,ba,ka,cl,xt,Ca,Na,Xt,Aa,Ba,Wt,Ta,Va,xa,Nt,Ea,$a,At,Bt,Yn,vl,Da,Ia,qa,Pa,Qt,Ma,Ra,za,Fa,La,Oa,Ka,Ua,Ha,_a,ja],B2=new Us(A2,"4.0.0");exports.AbstractPageScopeKey=to;exports.ActionSheet=va;exports.FoxActionSheet=va;exports.ActionsheetItem=Do;exports.FoxActionsheetItem=Do;exports.ActionsheetPane=pl;exports.FoxActionsheetPane=pl;exports.Animate=Oa;exports.FoxAnimate=Oa;exports.Audio=Ca;exports.FoxAudio=Ca;exports.AudioOperate=Na;exports.FoxAudioOperate=Na;exports.Avatar=Xt;exports.FoxAvatar=Xt;exports.AvatarGroup=Aa;exports.FoxAvatarGroup=Aa;exports.BackTop=ga;exports.FoxBackTop=ga;exports.Badge=qa;exports.FoxBadge=qa;exports.Barrage=_a;exports.FoxBarrage=_a;exports.Broadcast=_r;exports.BroadcastKey=Me;exports.Button=Vt;exports.FoxButton=Vt;exports.ButtonsItem=co;exports.FoxButtonsItem=co;exports.Calendar=al;exports.FoxCalendar=al;exports.CalendarItem=No;exports.FoxCalendarItem=No;exports.Cascader=ll;exports.FoxCascader=ll;exports.CascaderItem=So;exports.FoxCascaderItem=So;exports.Cell=Uo;exports.FoxCell=Uo;exports.CellGroup=_o;exports.FoxCellGroup=_o;exports.Checkbox=sl;exports.FoxCheckbox=sl;exports.CheckboxGroup=ul;exports.FoxCheckboxGroup=ul;exports.CheckboxItem=Bo;exports.FoxCheckboxItem=Bo;exports.CircleProgress=Ta;exports.FoxCircleProgress=Ta;exports.Col=Yo;exports.FoxCol=Yo;exports.Collapse=Ra;exports.FoxCollapse=Ra;exports.CollapseItem=za;exports.FoxCollapseItem=za;exports.Content=io;exports.FoxContent=io;exports.CountDown=Ia;exports.FoxCountDown=Ia;exports.CountUp=Da;exports.FoxCountUp=Da;exports.DataItemsKey=Ft;exports.DateItem=Co;exports.FoxDateItem=Co;exports.DatePicker=ol;exports.FoxDatePicker=ol;exports.DateUtils=gt;exports.Dialog=Yt;exports.FoxDialog=Yt;exports.Divider=Go;exports.FoxDivider=Go;exports.Domain=Mn;exports.DomainKey=Ze;exports.DomainProvider=Oo;exports.FoxDomainProvider=Oo;exports.Drag=ya;exports.FoxDrag=ya;exports.Dropdown=Lo;exports.FoxDropdown=Lo;exports.Elevator=ra;exports.FoxElevator=ra;exports.Ellipsis=La;exports.FoxEllipsis=La;exports.Empty=xa;exports.FoxEmpty=xa;exports.FixedNav=ta;exports.FoxFixedNav=ta;exports.FloatingButton=Ro;exports.FoxFloatingButton=Ro;exports.FooterBar=ro;exports.FoxFooterBar=ro;exports.FoxGrid=Zo;exports.Grid=Zo;exports.FoxGridItem=Jo;exports.GridItem=Jo;exports.FoxGroup=so;exports.Group=so;exports.FoxHeaderBar=ao;exports.HeaderBar=ao;exports.FoxHintText=Tt;exports.HintText=Tt;exports.FoxIcon=Ho;exports.Icon=Ho;exports.FoxImage=jo;exports.Image=jo;exports.FoxImagePreview=vl;exports.ImagePreview=vl;exports.FoxIndicator=sa;exports.Indicator=sa;exports.FoxInfiniteLoading=fl;exports.InfiniteLoading=fl;exports.FoxInputItem=mo;exports.InputItem=mo;exports.FoxInputNumber=hl;exports.InputNumber=hl;exports.FoxInputNumberItem=qo;exports.InputNumberItem=qo;exports.FoxItem=nn;exports.Item=nn;exports.FoxLayout=Wo;exports.Layout=Wo;exports.FoxLinkItem=xo;exports.LinkItem=xo;exports.FoxList=Ba;exports.List=Ba;exports.FoxMapping=Zn;exports.Mapping=Zn;exports.FoxMenu=na;exports.Menu=na;exports.FoxMenuItem=la;exports.MenuItem=la;exports.FoxMessageBox=rt;exports.MessageBox=rt;exports.FoxMoneyItem=po;exports.MoneyItem=po;exports.FoxMoreButton=zo;exports.MoreButton=zo;exports.FoxNavbar=ea;exports.Navbar=ea;exports.FoxNoticeBar=Va;exports.NoticeBar=Va;exports.FoxNotify=ka;exports.Notify=ka;exports.FoxNumberKeyboard=pa;exports.NumberKeyboard=pa;exports.FoxOverLay=st;exports.OverLay=st;exports.FoxPage=lo;exports.Page=lo;exports.FoxPagination=ia;exports.Pagination=ia;exports.FoxPicker=ln;exports.Picker=ln;exports.FoxPickerItem=go;exports.PickerItem=go;exports.FoxPopover=Qt;exports.Popover=Qt;exports.FoxPopoverDialog=Gn;exports.PopoverDialog=Gn;exports.FoxPopup=we;exports.Popup=we;exports.FoxPopupWrapper=Fo;exports.PopupWrapper=Fo;exports.FoxPrice=Yn;exports.Price=Yn;exports.FoxProgress=Wt;exports.Progress=Wt;exports.FoxPullRefresh=ba;exports.PullRefresh=ba;exports.FoxRadio=rl;exports.Radio=rl;exports.FoxRadioGroup=il;exports.RadioGroup=il;exports.FoxRadioItem=Ao;exports.RadioItem=Ao;exports.FoxRange=jt;exports.Range=jt;exports.FoxRate=dl;exports.Rate=dl;exports.FoxRateItem=$o;exports.RateItem=$o;exports.FoxRollingProvider=Ko;exports.RollingProvider=Ko;exports.FoxRow=Xo;exports.Row=Xo;exports.FoxRowItem=Qn;exports.RowItem=Qn;exports.FoxSearchBar=ml;exports.SearchBar=ml;exports.FoxShortPassword=fa;exports.ShortPassword=fa;exports.FoxSideNavBar=ua;exports.SideNavBar=ua;exports.FoxSideNavBarItem=ca;exports.SideNavBarItem=ca;exports.FoxSignature=ja;exports.Signature=ja;exports.FoxSkeleton=Ma;exports.Skeleton=Ma;exports.FoxSlotItem=fo;exports.SlotItem=fo;exports.FoxStep=$a;exports.Step=$a;exports.FoxSteps=Ea;exports.Steps=Ea;exports.FoxStepsBar=Mo;exports.StepsBar=Mo;exports.FoxSticky=Qo;exports.Sticky=Qo;exports.FoxSubSideNavBar=da;exports.SubSideNavBar=da;exports.FoxSwipe=ha;exports.Swipe=ha;exports.FoxSwiper=At;exports.Swiper=At;exports.FoxSwiperItem=Bt;exports.SwiperItem=Bt;exports.FoxSwitch=cl;exports.Switch=cl;exports.FoxSwitchItem=Vo;exports.SwitchItem=Vo;exports.FoxTabbar=oa;exports.Tabbar=oa;exports.FoxTabbarItem=aa;exports.TabbarItem=aa;exports.FoxTable=Fa;exports.Table=Fa;exports.FoxTabsBar=on;exports.TabsBar=on;exports.FoxTabsContainer=an;exports.TabsContainer=an;exports.FoxTabsFrame=Po;exports.TabsFrame=Po;exports.FoxTabsPane=nl;exports.TabsPane=nl;exports.FoxTag=Pa;exports.Tag=Pa;exports.FoxText=kt;exports.Text=kt;exports.FoxTextarea=Jn;exports.Textarea=Jn;exports.FoxTextareaItem=ho;exports.TextareaItem=ho;exports.FoxToast=xt;exports.Toast=xt;exports.FoxTour=Ha;exports.Tour=Ha;exports.FoxTrendArrow=Ua;exports.TrendArrow=Ua;exports.FoxUploader=ma;exports.Uploader=ma;exports.FoxVideo=Nt;exports.Video=Nt;exports.FoxWaterMark=Ka;exports.WaterMark=Ka;exports.InnerPageScopeKey=eo;exports.PriorityPolicy=Fl;exports.UniqueID=Xn;exports.ValidateSchema=Qr;exports.ValidateSchemaKey=Qe;exports.browseProperty=si;exports.cancelRaf=Dr;exports.clamp=He;exports.clearNonNumber=Ml;exports.compareTo=Il;exports.createBroadcast=Zt;exports.createValidateSchema=Pn;exports.debounce=Ie;exports.debounceRef=Es;exports.decimalLength=Hr;exports.default=B2;exports.defineConfigDomain=Zr;exports.defineDataItem=Jr;exports.defineDomain=Jl;exports.defineDomainItemProperty=Te;exports.defineItem=Be;exports.definePageState=ei;exports.defineSimpleItem=Oe;exports.deleteGlobalValidator=Bs;exports.disabledProperty=ii;exports.divide=Ql;exports.excludeProps=Ye;exports.extend=bt;exports.floatData=Ss;exports.getGlobalIcons=On;exports.getGlobalValidateCheckEvents=Wr;exports.getGlobalValidateResetEvents=Xr;exports.getPageContentAreaHeight=Nn;exports.getPageContentAreaWidth=An;exports.getPageFooterAreaHeight=Fn;exports.getPageHeaderAreaHeight=zn;exports.getRootDomain=ht;exports.hasSymbol=Fr;exports.includeProps=ye;exports.indexOf=ys;exports.injectAbstractPageScope=en;exports.injectAbstractPageScopeForContent=ai;exports.injectAbstractPageScopeForFooterBar=oi;exports.injectAbstractPageScopeForHeaderBar=li;exports.injectInnerPageScope=Jt;exports.integerLength=Ur;exports.isArray=Dn;exports.isArrayLike=Or;exports.isBrowser=tt;exports.isDate=_e;exports.isDisplayNone=Gl;exports.isESModule=ms;exports.isEmptyString=me;exports.isEqual=Ee;exports.isFunction=bn;exports.isHidden=ql;exports.isMap=us;exports.isNil=Ve;exports.isNumberString=qn;exports.isObject=xe;exports.isPlainObject=fs;exports.isPromise=yt;exports.isRegExp=Pl;exports.isSet=cs;exports.isString=Rr;exports.isSubPage=Ps;exports.isSymbol=ds;exports.isTouch=el;exports.isWindow=Lr;exports.kebabToPascal=kn;exports.lastIndexOf=bs;exports.makeArray=gs;exports.merge=Kr;exports.multiply=qr;exports.negate=Pr;exports.nextTick=hs;exports.numberFormat=$n;exports.objectToString=zr;exports.once=$s;exports.overrideGlobalIcons=Gs;exports.overrideGlobalValidateHandler=Ns;exports.padZero=ot;exports.pascalToKebab=ks;exports.preventDefault=Rl;exports.property=Ae;exports.provideAbstractPageScope=ni;exports.provideInnerPageScope=ti;exports.px2Number=qs;exports.raf=Xe;exports.readonlyProperty=ri;exports.setGlobalValidateCheckEvents=Ts;exports.setGlobalValidateHandler=Cs;exports.setGlobalValidateMessages=xs;exports.setGlobalValidateResetEvents=Vs;exports.setGlobalValidator=As;exports.throttle=Cn;exports.toBoolean=Se;exports.toNumber=de;exports.toPadding=Fe;exports.toPx=ue;exports.toPxDesc=Is;exports.toPxString=he;exports.toTypeString=In;exports.toValue=qe;exports.tryTimes=Zl;exports.typeOf=Sn;exports.unNumberFormat=Mr;exports.updatePageState=zl;exports.useBroadcast=zt;exports.useDomain=nt;exports.useInnerSize=Ln;exports.usePageState=Rn;exports.usePosition=uo;exports.useRawTouch=tl;exports.useRect=De;exports.useSize=oo;exports.useSlotChildren=tn;exports.useTouch=ct;exports.valueLength=ke;
|
|
9
|
+
`)}}});function Tg(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)}var Zo=ie(Bg,[["render",Tg]]),{create:Vg}=le("sticky"),xg=Vg({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.ref)(),r=(0,t.reactive)({fixed:!1,height:0,transform:0}),i=(0,t.computed)(()=>e.position==="top"?Number(e.top):Number(e.bottom)),a=(0,t.computed)(()=>r.fixed?{height:`${r.height}px`}:{}),u=(0,t.computed)(()=>r.fixed?{[e.position]:`${i.value}px`,transform:r.transform?`translate3d(0, ${r.transform}px, 0)`:void 0,position:r.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),s=()=>{const d=e.container;if(!o.value&&!d)return;const v=Pe(o),c=l.value,p=Pe(c),y=Pe(d);r.height=v.height;const N=()=>{let C=!1;if(e.position==="top")C=d?i.value>v.top&&y.bottom>0:i.value>v.top;else{const b=document.documentElement.clientHeight;C=d?y.bottom>0&&b-i.value-p.height>y.top:b-i.value<v.bottom}return C},S=()=>{if(d)if(e.position==="top"){const C=y.bottom-i.value-p.height;return C<0?C:0}else{const C=document.documentElement.clientHeight,b=y.bottom-(C-i.value);return b<0?b:0}return 0};r.transform=S(),r.fixed=N()};return(0,t.watch)(()=>r.fixed,d=>{n("change",d)}),(0,t.onMounted)(()=>{s(),Yl(o.value).addEventListener("scroll",s,!0)}),(0,t.onUnmounted)(()=>{Yl(o.value).removeEventListener("scroll",s)}),{rootRef:o,rootStyle:a,stickyRef:l,stickyStyle:u}}});function $g(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-sticky",ref:"rootRef",style:(0,t.normalizeStyle)(e.rootStyle)},[(0,t.createElementVNode)("div",{class:"fox-sticky__box",ref:"stickyRef",style:(0,t.normalizeStyle)(e.stickyStyle)},[(0,t.renderSlot)(e.$slots,"default")],4)],4)}var Jo=ie(xg,[["render",$g]]),{componentName:Eg,create:Dg}=le("divider"),Ig=Dg({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:(0,t.computed)(()=>{const o=Eg;let l={[o]:!0},r={};return e.direction==="horizontal"?r={...l,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:r={...l,[`${o}-vertical`]:e.direction==="vertical"},r})}}});function qg(e,n,o,l,r,i){return e.direction==="horizontal"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes)},null,2))}var ea=ie(Ig,[["render",qg]]),fn=(e,n={})=>{const o=(0,t.shallowRef)([]),l=i=>{o.value.push(i),(0,t.triggerRef)(o)},r=i=>{const a=o.value.findIndex(u=>u===i);a!=-1&&(o.value.splice(a,1),(0,t.triggerRef)(o))};return(0,t.onUnmounted)(()=>{const i=o.value.length;o.value.splice(0,i)}),(0,t.provide)(e,{unlink:r,link:l,children:o,...n}),{children:o}};function mn(e,n){const o=(0,t.inject)(e,null);if(o){const{link:l,unlink:r,children:i}=o;return l(n),(0,t.onUnmounted)(()=>{r(n)}),{parent:o,index:(0,t.computed)(()=>i.value.indexOf(n))}}return{parent:o,index:(0,t.computed)(()=>-1)}}var{componentName:Pg}=le("grid"),Yi=Symbol("grid"),Mg={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}},Rg={props:Mg,setup(e,{slots:n}){fn(Yi,{props:e});const o=(0,t.computed)(()=>{const r=Pg;return{[r]:!0,[`${r}--border`]:e.border&&!e.gutter}}),l=(0,t.computed)(()=>{const r={};return e.gutter&&(r.paddingLeft=ue(e.gutter)),r});return()=>(0,t.h)("view",{class:o.value,style:l.value},n.default?.())}},{create:zg}=le("grid"),Lg=zg(Rg),ta=Lg,{create:Fg,componentName:Pr}=le("grid-item"),Og=Fg({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const{parent:o,index:l}=mn(Yi,{props:e}),r=(0,t.computed)(()=>({[Pr]:!0})),i=(0,t.computed)(()=>{const s={flexBasis:`${100/+o.props.columnNum}%`};return o.props.square?s.paddingTop=`${100/+o.props.columnNum}%`:o.props.gutter&&(s.paddingRight=ue(o.props.gutter),l.value>=o.props.columnNum&&(s.marginTop=ue(o.props.gutter))),s}),a=(0,t.computed)(()=>{const s=`${Pr}__content`;return{[`${s}`]:!0,[`${s}--border`]:o.props.border,[`${s}--surround`]:o.props.border&&o.props.gutter,[`${s}--center`]:o.props.center,[`${s}--square`]:o.props.square,[`${s}--reverse`]:o.props.reverse,[`${s}--${o.props.direction}`]:!!o.props.direction,[`${s}--clickable`]:o.props.clickable}});return{rootClass:r,rootStyle:i,contentClass:a,handleClick:s=>{n("click",s)}}}}),Kg={class:"fox-grid-item__text"};function Ug(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.rootClass),style:(0,t.normalizeStyle)(e.rootStyle),onClick:n[0]||(n[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.contentClass)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("view",Kg,[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 na=ie(Og,[["render",Ug]]),{componentName:_g,create:Hg}=le("navbar"),jg=Hg({components:{Left:re.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:o,fixed:l,safeAreaInsetTop:r,placeholder:i,zIndex:a}=(0,t.toRefs)(e),u=(0,t.ref)(null),s=(0,t.ref)(null);let d=(0,t.ref)();const v=(0,t.computed)(()=>{const C=_g;return{[C]:!0,[`${C}--border`]:o.value,[`${C}--fixed`]:l.value,[`${C}--safe-area-inset-top`]:r.value}}),c=(0,t.computed)(()=>({zIndex:a.value}));(0,t.onMounted)(()=>{l.value&&i.value&&(0,t.nextTick)(()=>{d.value=s?.value?.getBoundingClientRect().height,u.value.style.height=d.value+"px"})});function p(){n("on-click-back")}function y(){n("on-click-title")}function N(){n("on-click-icon")}function S(){n("on-click-right")}return{navBarWrap:u,navBarHtml:s,classes:v,styles:c,handleLeft:p,handleCenter:y,handleCenterIcon:N,handleRight:S}}}),Wg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Yg={key:1,class:"fox-navbar__text"},Xg={class:"fox-navbar__title"},Qg={key:0,class:"fox-navbar__text"},Gg={key:1,class:"fox-navbar__text"},Zg={class:"fox-navbar__title"},Jg={key:0,class:"fox-navbar__text"};function ey(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wg,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),ref:"navBarHtml"},[(0,t.createElementVNode)("view",{class:"fox-navbar__left",onClick:n[0]||(n[0]=(...u)=>e.handleLeft&&e.handleLeft(...u))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(a,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Yg,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Xg,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...u)=>e.handleCenter&&e.handleCenter(...u))},(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.titleIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"icon",onClick:n[3]||(n[3]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...u)=>e.handleRight&&e.handleRight(...u))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Qg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6)],512)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("view",{class:"fox-navbar__left",onClick:n[5]||(n[5]=(...u)=>e.handleLeft&&e.handleLeft(...u))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(a,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",Gg,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Zg,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...u)=>e.handleCenter&&e.handleCenter(...u))},(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.titleIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"icon",onClick:n[8]||(n[8]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...u)=>e.handleCenterIcon&&e.handleCenterIcon(...u))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...u)=>e.handleRight&&e.handleRight(...u))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",Jg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var la=ie(jg,[["render",ey]]),ty=(e,n,o)=>({components:o,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{type:String,default:""},activeText:{type:String},unActiveText:{type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(l,{emit:r}){const{toLocaleRefs:i}=(0,he.useFoxI18n)(n),a=i(l,["activeText","unActiveText"]),u=(0,t.computed)(()=>({[e]:!0,active:l.visible,[l.type]:!0})),s=(0,t.ref)(-1);return{...a,classes:u,updateValue:(c=!l.visible)=>{r("update:visible",c)},selected:(c,p)=>{r("selected",{item:c,event:p}),s.value=c.id},current:s}}}),{componentName:ny,create:ly,scope:oy}=le("fixednav"),ay=ly(ty(ny,oy,{[ft.name]:ft,Left:re.Left})),ry={class:"fox-fixednav__list"},iy=["onClick"],sy=["src"],uy={class:"span"},cy={key:0,class:"b"},dy={class:"text"};function fy(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-overlay"),u=(0,t.resolveComponent)("Left");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.position)},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=s=>e.updateValue(!1))},null,8,["visible"])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"list",{},()=>[(0,t.createElementVNode)("view",ry,[((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:v=>e.selected(s,v),key:s.id||d},[(0,t.createElementVNode)("img",{src:s.icon},null,8,sy),(0,t.createElementVNode)("view",uy,(0,t.toDisplayString)(s.text),1),s.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",cy,(0,t.toDisplayString)(s.num),1)):(0,t.createCommentVNode)("",!0)],10,iy))),128))])]),(0,t.createElementVNode)("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=s=>e.updateValue())},[(0,t.renderSlot)(e.$slots,"btn",{},()=>[(0,t.createVNode)(u,{color:"#fff"}),(0,t.createElementVNode)("view",dy,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var oa=ie(ay,[["render",fy]]),Xi=Symbol("fox-menu"),{componentName:my,create:py}=le("menu"),vy=py({components:{RectUp:re.RectUp,RectDown:re.RectDown},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:{type:String,default:""}},setup(e){const n=(0,t.ref)(),o=(0,t.ref)(0),l=(0,t.ref)(!1),{children:r}=fn(Xi,{props:e,offset:o}),i=(0,t.computed)(()=>r.value.some(p=>p.state.showWrapper)),a=(0,t.computed)(()=>({[my]:!0,"scroll-fixed":l.value})),u=()=>{if(n.value){const p=Pe(n);e.direction==="down"?o.value=p.bottom:o.value=window.innerHeight-p.top}},s=p=>{r.value.forEach((y,N)=>{N===p?(u(),y.toggle()):y.state.showPopup&&y.toggle(!1,{immediate:!0})})},d=p=>Math.max(0,"scrollTop"in p?p.scrollTop:p.pageYOffset),v=()=>{const{scrollFixed:p}=e,y=d(window);l.value=y>(typeof p=="boolean"?30:Number(p))},c=p=>{let y="";const{titleClass:N}=e;return p&&(y+="active"),N&&(y+=` ${N}`),y};return(0,t.onMounted)(()=>{const{scrollFixed:p}=e;p&&window.addEventListener("scroll",v)}),(0,t.onUnmounted)(()=>{const{scrollFixed:p}=e;p&&window.removeEventListener("scroll",v)}),{toggleItem:s,children:r,opened:i,classes:a,barRef:n,getClasses:c}}}),hy=["onClick"],gy={class:"fox-menu__title-text"},yy={class:"fox-menu__title-icon"};function by(e,n,o,l,r,i){const a=(0,t.resolveComponent)("RectUp"),u=(0,t.resolveComponent)("RectDown");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{ref:"barRef",class:(0,t.normalizeClass)(["fox-menu__bar",{opened:e.opened}])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.children,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu__item",{disabled:s.props.disabled,active:s.state.showPopup}]),style:(0,t.normalizeStyle)({color:s.state.showPopup?e.activeColor:""}),onClick:v=>!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",gy,(0,t.toDisplayString)(s.renderTitle()),1),(0,t.createElementVNode)("span",yy,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.direction==="up"?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1}))])])],2)],14,hy))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var aa=ie(vy,[["render",by]]),{create:Sy}=le("menu-item"),ky=Sy({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:re.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n}){const o=(0,t.reactive)({showPopup:!1,showWrapper:!1}),l=(0,t.computed)(()=>v.props.direction==="down"?{top:v.offset.value+"px"}:{bottom:v.offset.value+"px"}),r=(0,t.computed)(()=>{const c={height:v.offset.value+"px"};return v.props.direction==="down"?{...c,top:"0px"}:{...c,bottom:"0px"}}),i=(c=!o.showPopup)=>{c!==o.showPopup&&(o.showPopup=c,c&&(o.showWrapper=!0,n("open")))},a=()=>{if(e.title)return e.title;const c=e.options?.find(p=>p.value===e.modelValue);return c?c.text:""},u=c=>{o.showPopup=!1,c.value!==e.modelValue&&(n("update:modelValue",c.value),n("change",c.value))},s=()=>{n("close"),o.showWrapper=!1},d=()=>{o.showPopup=!1,n("close")},{parent:v}=mn(Xi,{props:e,state:o,toggle:i,renderTitle:a});return{style:l,placeholderElementStyle:r,renderTitle:a,state:o,parent:v,toggle:i,onClick:u,handleClose:s,handleClickOutside:d}}}),wy={class:"fox-menu-item"},Cy={class:"fox-menu-item__content fox-menu-item__overflow"},Ny=["onClick"];function Ay(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Check"),u=(0,t.resolveComponent)("FoxPopup");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",wy,[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-menu-item-placeholder-element",style:(0,t.normalizeStyle)(e.placeholderElementStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClickOutside&&e.handleClickOutside(...s))},null,4),[[t.vShow,e.state.showPopup]]),(0,t.createVNode)(u,(0,t.mergeProps)(e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.state.showPopup=s),style:{position:"absolute"},"overlay-style":{position:"absolute"},position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"destroy-on-close":!1,overlay:e.parent.props.overlay,"lock-scroll":e.parent.props.lockScroll,"teleport-disable":!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay,onClosed:e.handleClose}),{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Cy,[((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:v=>e.onClick(s)},[s.value===e.modelValue?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:(0,t.normalizeClass)(["fox-menu-item__span",[s.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[(0,t.renderSlot)(e.$slots,"icon",{},()=>[(0,t.createVNode)(a,(0,t.mergeProps)({ref_for:!0},e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)([s.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:(0,t.normalizeStyle)({color:s.value===e.modelValue?e.parent.props.activeColor:""})},(0,t.toDisplayString)(s.text),7)],14,Ny))),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 ra=ie(ky,[["render",Ay]]),Qi=Symbol("fox-tabbar"),{create:By}=le("tabbar"),Ty=By({props:{modelValue:{type:[Number,String],default:0},bottom:{type:[Boolean],default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:[String],default:""},activeColor:{type:[String],default:""},safeAreaInsetBottom:{type:[Boolean],default:!1}},emits:["change","update:modelValue"],setup(e,{emit:n}){function o(i){l.value!==i&&(l.value=i,n("update:modelValue",i),n("change",i,r.value[i]))}const l=(0,t.reactive)({size:e.size,value:me(e.modelValue),inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:o}),{children:r}=fn(Qi,{state:l});return(0,t.watch)(()=>e.modelValue,i=>{l.value=me(i)}),{changeIndex:o}}});function Vy(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[(0,t.renderSlot)(e.$slots,"default")],2)}var ia=ie(Ty,[["render",Vy]]),{create:xy}=le("tabbar-item"),$y=xy({props:{title:{type:[String],default:""},icon:{type:Object},activeIcon:{type:Object},num:{type:[String],default:""},activeImg:{type:[String],default:""},img:{type:[String],default:""},dot:{type:[Boolean],default:!1}},setup(e,n){const{parent:o,index:l}=mn(Qi,{props:e}),r=(0,t.computed)(()=>l.value===o.state.value);function i(u){o&&typeof o.state.changeIndex=="function"&&o.state.changeIndex(u)}const a=(0,t.computed)(()=>r.value?e.activeIcon??e.icon:e.icon);return{state:o.state,index:l,active:r,change:i,currentIcon:a}}}),Ey={class:"fox-tabbar-item_icon-box"},Dy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Iy={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},qy={key:1,class:"fox-tabbar-item_icon-box_dot"},Py={key:2},My={key:0};function Ry(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:(0,t.normalizeStyle)({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=a=>e.change(e.index))},[(0,t.createElementVNode)("view",Ey,[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",Dy,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",Iy,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",qy)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Py,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.currentIcon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):(0,t.createCommentVNode)("",!0),!e.icon&&e.activeImg?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:(0,t.normalizeStyle)({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",My,(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 sa=ie($y,[["render",Ry]]),{componentName:zy,create:Ly}=le("elevator"),Fy=Ly({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const o=(0,t.ref)(null),l=(0,t.reactive)({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),r=(0,t.computed)(()=>({[zy]:!0})),i=(0,t.computed)(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),a=(0,t.computed)(()=>o.value.clientHeight),u=(b,m)=>b.getAttribute("data-"+m),s=b=>{(0,t.nextTick)(()=>{!l.listGroup.includes(b)&&b!=null&&l.listGroup.push(b)})},d=()=>{let b=0;l.listHeight.push(b);for(let m=0;m<l.listGroup.length;m++){let f=l.listGroup[m];b+=Math.floor(f.clientHeight),l.listHeight.push(b)}},v=b=>{!b&&b!==0||(b<0&&(b=0),b>l.listHeight.length-2&&(b=l.listHeight.length-2),l.codeIndex=b,o.value.scrollTo(0,l.listHeight[b]))},c=b=>{l.scrollStart=!0;let m=u(b.target,"index"),f=b.touches[0];l.touchState.y1=f.pageY,l.anchorIndex=+m,l.codeIndex=+m,v(+m)},p=b=>{let m=b.touches[0];l.touchState.y2=m.pageY;let f=(l.touchState.y2-l.touchState.y1)/e.spaceHeight|0;l.codeIndex=l.anchorIndex+f,v(l.codeIndex)},y=()=>{l.scrollStart=!1},N=(b,m)=>{n.emit("click-item",b,m),l.currentData=m,l.currentKey=b},S=b=>{n.emit("click-index",b)},C=b=>{let m=b.target.scrollTop;const f=l.listHeight;l.scrollY=m;for(let k=0;k<f.length-1;k++){let A=f[k],h=f[k+1];if(l.scrollY>=A&&l.scrollY<h){l.currentIndex=k,l.diff=h-l.scrollY;return}}l.currentIndex=f.length-2};return(0,t.onMounted)(()=>{o.value.addEventListener("scroll",C)}),n.expose({scrollTo:v}),(0,t.watch)(()=>l.listGroup.length,()=>{l.listHeight=[],(0,t.nextTick)(d)}),(0,t.watch)(()=>l.diff,b=>{const m=l.listHeight;let f=b>0&&b<e.titleHeight?b-e.titleHeight:0;l.scrollY+a.value===m[m.length-1]&&f!==0&&(f=0),l.fixedTop!==f&&(l.fixedTop=f)}),(0,t.watch)(()=>l.currentIndex,b=>{n.emit("change",b)}),{classes:r,...(0,t.toRefs)(l),fixedStyle:i,clientHeight:a,setListGroup:s,listview:o,touchStart:c,touchMove:p,touchEnd:y,handleClickItem:N,handleClickIndex:S}}}),Oy={class:"fox-elevator__list__item__code"},Ky=["onClick"],Uy=["innerHTML"],_y={class:"fox-elevator__fixed-title"},Hy={class:"fox-elevator__bars__inner"},jy=["data-index","onClick"];function Wy(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:"fox-elevator__list",ref:"listview",style:(0,t.normalizeStyle)({height:isNaN(+e.height)?e.height:`${e.height}px`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,a=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-elevator__list__item",key:a[e.acceptKey],ref_for:!0,ref:e.setListGroup},[(0,t.createElementVNode)("view",Oy,(0,t.toDisplayString)(a[e.acceptKey]),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.list,u=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===u.id&&e.currentKey===a[e.acceptKey]}]),key:u.id,onClick:s=>e.handleClickItem(a[e.acceptKey],u)},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:1,item:u}):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:u.name},null,8,Uy))],10,Ky))),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",_y,(0,t.toDisplayString)(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):(0,t.createCommentVNode)("",!0)],4),e.indexList.length?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-elevator__code--current"},(0,t.toDisplayString)(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-elevator__bars",onTouchstart:n[0]||(n[0]=(...a)=>e.touchStart&&e.touchStart(...a)),onTouchmove:n[1]||(n[1]=(0,t.withModifiers)((...a)=>e.touchMove&&e.touchMove(...a),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...a)=>e.touchEnd&&e.touchEnd(...a))},[(0,t.createElementVNode)("view",Hy,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__bars__inner__item",{active:a[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":u,key:a[e.acceptKey],onClick:s=>e.handleClickIndex(a[e.acceptKey])},(0,t.toDisplayString)(a[e.acceptKey]),11,jy))),128))])],32)],2)}var ua=ie(Fy,[["render",Wy]]),{componentName:R2,create:Yy,scope:Xy}=le("pagination"),Qy=Yy({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:o}=(0,he.useFoxI18n)(Xy),l=o(e,["prevText","nextText"]),{modelValue:r,mode:i,showPageSize:a,forceEllipses:u}=(0,t.toRefs)(e),s=(0,t.computed)(()=>{const{pageCount:p,totalItems:y,itemsPerPage:N}=(0,t.toRefs)(e),S=+p.value||Math.ceil(+y.value/+N.value);return Math.max(1,S)}),d=(p,y)=>{p>s.value||p<1||(p!=r.value&&n("update:modelValue",p),y&&n("change",p))},v=(p,y,N=!1)=>({number:p,text:y,active:N}),c=(0,t.computed)(()=>{if(i.value=="simple")return;let p=[];const y=s.value,N=+a.value;let S=1,C=y;const b=y>N;b&&(S=Math.max(r.value-Math.floor(N/2),1),C=S+N-1,C>y&&(C=y,S=C-N+1));for(var m=S;m<=C;m++){const f=v(m,m,r.value==m);p.push(f)}if(b&&N>0&&u.value){if(S>1){const f=v(S-1,"...");p.unshift(f)}if(C<y){const f=v(C+1,"...");p.push(f)}}return p});return(0,t.watchEffect)(()=>{d(r.value,!1)}),{...l,modelValue:r,select:d,countRef:s,mode:i,pages:c,forceEllipses:u}}}),Gy={class:"fox-pagination"},Zy={key:0,class:"fox-pagination-contain"},Jy=["onClick"],eb={key:1,class:"fox-pagination-contain"},tb={class:"fox-pagination-simple"};function nb(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Gy,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=a=>e.select(e.modelValue-1,!0))},[(0,t.renderSlot)(e.$slots,"prev-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.prevText),1)])],2),e.mode=="multi"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Zy,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pages,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u+"pagination",class:(0,t.normalizeClass)(["fox-pagination-item",a.active?"active":""]),onClick:s=>e.select(a.number,!0)},[(0,t.renderSlot)(e.$slots,"page",{item:a},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(a.text),1)])],10,Jy))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",eb,[(0,t.createElementVNode)("view",tb,(0,t.toDisplayString)(e.modelValue)+"/"+(0,t.toDisplayString)(e.countRef),1)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=a=>e.select(e.modelValue+1,!0))},[(0,t.renderSlot)(e.$slots,"next-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextText),1)])],2)])}var ca=ie(Qy,[["render",nb]]),{componentName:Mr,create:lb}=le("indicator"),ob=lb({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:o}=(0,t.toRefs)(e);return{classes:(0,t.computed)(()=>{const l=Mr;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${o.value}`]:n.value&&o.value}}),componentName:Mr,padZero:rt}}});function ab(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.size,a=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:a},[a===e.current?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(`${e.componentName}--number`)},(0,t.toDisplayString)(e.fillZero&&e.padZero(a)||a),3)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var da=ie(ob,[["render",ab]]),{componentName:rb,create:ib}=le("side-navbar"),sb=ib({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=(0,t.ref)(null),o=(0,t.reactive)({count:1,observer:null}),l=(0,t.computed)(()=>({[rb]:!0})),r=(a,u=1)=>{for(let s=0;s<a.length;s++){let d=a[s];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*u+"px",d.className.includes("fox-side-navbar-item")||r(Array.from(d.children[1].children),++o.count))}o.count--},i=()=>{let a=n.value.childNodes;a.length&&(a=Array.from(a).filter(u=>u.nodeType!==3).map(u=>u),r(a))};return(0,t.onMounted)(()=>{i(),o.observer=new MutationObserver(function(){o.count=1,i()}),o.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(o),list:n,classes:l}}}),ub={class:"fox-side-navbar__content"},cb={class:"fox-side-navbar__content__list",ref:"list"};function db(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",ub,[(0,t.createElementVNode)("view",cb,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var fa=ie(sb,[["render",db]]),{componentName:fb,create:mb}=le("side-navbar-item"),pb=mb({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[fb]:!0})),handleClick:()=>{n.emit("click")}})}),vb=["ikey"],hb={class:"fox-side-navbar-item__title"};function gb(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...a)=>e.handleClick&&e.handleClick(...a),["stop"])),ikey:e.ikey},[(0,t.createElementVNode)("span",hb,(0,t.toDisplayString)(e.title),1)],10,vb)}var ma=ie(pb,[["render",gb]]),{componentName:yb,create:bb}=le("sub-side-navbar"),Sb=bb({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:re.ArrowDown2,ArrowUp2:re.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const o=(0,t.reactive)({direction:""}),l=(0,t.computed)(()=>({[yb]:!0})),r=(0,t.computed)(()=>({height:o.direction?"0px":"auto"})),i=()=>{n.emit("title-click"),o.direction=o.direction?"":"up"};return(0,t.onMounted)(()=>{o.direction=e.open?"":"up"}),{...(0,t.toRefs)(o),classes:l,style:r,handleClick:i}}}),kb=["ikey"],wb={class:"fox-sub-side-navbar__title__text"},Cb={class:"fox-sub-side-navbar__title__icon"};function Nb(e,n,o,l,r,i){const a=(0,t.resolveComponent)("ArrowDown2"),u=(0,t.resolveComponent)("ArrowUp2");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ikey:e.ikey},[(0,t.createElementVNode)("view",{class:"fox-sub-side-navbar__title",onClick:n[0]||(n[0]=(0,t.withModifiers)((...s)=>e.handleClick&&e.handleClick(...s),["stop"]))},[(0,t.createElementVNode)("span",wb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",Cb,[e.direction?((0,t.openBlock)(),(0,t.createBlock)(u,{key:1})):((0,t.openBlock)(),(0,t.createBlock)(a,{key:0}))])]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,kb)}var pa=ie(Sb,[["render",Nb]]),{componentName:Ab,create:Bb}=le("range"),Tb=Bb({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const o=(0,t.ref)(0);let l,r;const i=(0,t.ref)(),a=(0,t.ref)(),u=pt(),s=(0,t.computed)(()=>{const{marks:V,max:M,min:q}=e;return Object.keys(V).map(parseFloat).sort((O,P)=>O-P).filter(O=>{const P=me(O);return P>=me(q)&&P<=me(M)})}),d=(0,t.computed)(()=>Number(e.max)-Number(e.min)),v=(0,t.computed)(()=>{const V=Ab;return{[V]:!0,[`${V}-disabled`]:e.disabled,[`${V}-vertical`]:e.vertical,[`${V}-show-number`]:!e.hiddenRange}}),c=(0,t.computed)(()=>{const V="fox-range-container";return{[V]:!0,[`${V}-vertical`]:e.vertical}}),p=(0,t.computed)(()=>({background:e.inactiveColor})),y=(0,t.computed)(()=>({borderColor:e.buttonColor})),N=V=>!!e.range&&Array.isArray(V),S=()=>{const{modelValue:V,min:M}=e;return N(V)?`${(V[1]-V[0])*100/d.value}%`:`${(V-Number(M))*100/d.value}%`},C=()=>{const{modelValue:V,min:M}=e;return N(V)?`${(V[0]-Number(M))*100/d.value}%`:"0%"},b=(0,t.computed)(()=>e.vertical?{height:S(),top:C(),background:e.activeColor,transition:a.value?"none":void 0}:{width:S(),left:C(),background:e.activeColor,transition:a.value?"none":void 0}),m=V=>{const M="fox-range-mark",{modelValue:q,max:O,min:P}=e;let j=Number(P),D=Number(O);if(e.range){const[te,oe]=q;j=te,D=oe}else D=q;let ee=V<=D&&V>=j;return{[`${M}-text`]:!0,[`${M}-text-active`]:ee}},f=V=>{const{min:M,vertical:q}=e;let O={left:`${(V-Number(M))/d.value*100}%`};return q&&(O={top:`${(V-Number(M))/d.value*100}%`}),O},k=V=>{const{modelValue:M,max:q,min:O}=e;let P=Number(O),j=Number(q);if(e.range){const[D,ee]=M;P=D,j=ee}return{background:V<=j&&V>=P?e.activeColor:e.inactiveColor}},A=V=>{const{min:M,max:q,step:O}=e;return V=Math.max(+M,Math.min(V,+q)),Math.round(V/+O)*+O},h=(V,M)=>JSON.stringify(V)===JSON.stringify(M),g=V=>V[0]>V[1]?V.slice(0).reverse():V,x=(V,M)=>{N(V)?V=g(V).map(A):V=A(V),h(V,e.modelValue)||n("update:modelValue",V),M&&!h(V,l)&&n("change",V)},B=V=>{if(e.disabled)return;const{min:M,modelValue:q}=e,O=Pe(i);let P=V.clientX-O.left,j=O.width;e.vertical&&(P=V.clientY-O.top,j=O.height);const D=Number(M)+P/j*d.value;if(N(q)){const[ee,te]=q;D<=(ee+te)/2?x([D,te],!0):x([ee,D],!0)}else x(D,!0)},T=V=>{e.disabled||(u.start(V),r=e.modelValue,N(r)?l=r.map(A):l=A(r),a.value="start")},w=V=>{if(e.disabled)return;a.value==="start"&&n("drag-start"),u.move(V),a.value="draging";const M=Pe(i);let q=u.deltaX.value,O=M.width,P=q/O*d.value;e.vertical&&(q=u.deltaY.value,O=M.height,P=q/O*d.value),N(l)?r[o.value]=l[o.value]+P:r=l+P,x(r),V.stopPropagation(),V.preventDefault()},I=()=>{e.disabled||(a.value==="draging"&&(x(r,!0),n("drag-end")),a.value="")},L=V=>Mn(e.modelValue)&&typeof V=="number"?e.modelValue[V]:Number(e.modelValue);return{root:i,classes:v,wrapperStyle:p,buttonStyle:y,onClick:B,onTouchStart:T,onTouchMove:w,onTouchEnd:I,...(0,t.toRefs)(e),barStyle:b,curValue:L,buttonIndex:o,containerClasses:c,markClassName:m,marksStyle:f,marksList:s,tickStyle:k}}}),Vb={key:0,class:"fox-range-min"},xb={key:0,class:"fox-range-mark"},$b=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Eb={key:0,class:"number"},Db=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Ib={key:0,class:"number"},qb={key:1,class:"fox-range-max"};function Pb(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.containerClasses)},[e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Vb,(0,t.toDisplayString)(+e.min),1)),(0,t.createElementVNode)("view",{ref:"root",style:(0,t.normalizeStyle)(e.wrapperStyle),class:(0,t.normalizeClass)(e.classes),onClick:n[9]||(n[9]=(0,t.withModifiers)((...a)=>e.onClick&&e.onClick(...a),["stop"]))},[e.marksList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",xb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.marksList,a=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:a,class:(0,t.normalizeClass)(e.markClassName(a)),style:(0,t.normalizeStyle)(e.marksStyle(a))},[(0,t.createTextVNode)((0,t.toDisplayString)(a)+" ",1),(0,t.createElementVNode)("span",{class:"fox-range-tick",style:(0,t.normalizeStyle)(e.tickStyle(a))},null,4)],6))),128))])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-range-bar",style:(0,t.normalizeStyle)(e.barStyle)},[e.range?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)([0,1],a=>(0,t.createElementVNode)("view",{key:a,role:"slider",class:(0,t.normalizeClass)({"fox-range-button-wrapper-left":a==0,"fox-range-button-wrapper-right":a==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(a),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:(0,t.withModifiers)(u=>{typeof a=="number"&&(e.buttonIndex=a),e.onTouchStart(u)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=(0,t.withModifiers)((...u)=>e.onTouchMove&&e.onTouchMove(...u),["stop","prevent"])),onTouchend:n[1]||(n[1]=(0,t.withModifiers)((...u)=>e.onTouchEnd&&e.onTouchEnd(...u),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=(0,t.withModifiers)((...u)=>e.onTouchEnd&&e.onTouchEnd(...u),["stop","prevent"])),onClick:n[3]||(n[3]=u=>u.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Eb,(0,t.toDisplayString)(e.curValue(a)),1))],4))],42,$b)),64)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=(0,t.withModifiers)(a=>{e.onTouchStart(a)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=(0,t.withModifiers)((...a)=>e.onTouchMove&&e.onTouchMove(...a),["stop","prevent"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=(0,t.withModifiers)((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onClick:n[8]||(n[8]=a=>a.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Ib,(0,t.toDisplayString)(e.curValue()),1))],4))],40,Db))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",qb,(0,t.toDisplayString)(+e.max),1))],2)}var Gt=ie(Tb,[["render",Pb]]),{create:Mb,scope:Rb}=le("short-password"),zb=Mb({components:{FoxPopup:Ce,Tips:re.Tips},props:{title:{type:String},desc:{type:String},tips:{type:String},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:o}=(0,he.useFoxI18n)(Rb),l=o(e,["title","desc","tips"]),r=(0,t.ref)(e.modelValue),i=(0,t.computed)(()=>d(Number(e.length))),a=(0,t.ref)(e.visible),u=c=>{c.stopPropagation(),n("focus")};(0,t.watch)(()=>e.visible,c=>{a.value=c}),(0,t.watch)(()=>e.modelValue,c=>{r.value=c,String(c).length===i.value&&n("complete",c)});const s=()=>{n("update:visible",!1),n("close")},d=c=>Math.min(Math.max(4,c),6);return{comLen:i,realInput:r,onTouchStart:u,range:d,close:s,onTips:()=>{n("tips")},show:a,...l}}}),Lb={class:"fox-short-password-title"},Fb={class:"fox-short-password-subtitle"},Ob={class:"fox-short-password-wrapper"},Kb={key:0,class:"fox-short-password__item-icon"},Ub={class:"fox-short-password__message"},_b={class:"fox-short-password--error"},Hb={key:0,class:"fox-short-password--forget"};function jb(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Tips"),u=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",null,[(0,t.createVNode)(u,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":n[2]||(n[2]=s=>e.show=s),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Lb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Fb,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",Ob,[(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",Kb)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",Ub,[(0,t.createElementVNode)("view",_b,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hb,[(0,t.createVNode)(a,{class:"icon",width:"11px",height:"11px"}),(0,t.createElementVNode)("view",{onClick:n[1]||(n[1]=(...s)=>e.onTips&&e.onTips(...s))},(0,t.toDisplayString)(e.tips),1)])):(0,t.createCommentVNode)("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}var va=ie(zb,[["render",jb]]),Wb=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},Yb=class{options;constructor(e){this.options=e}upload(){const e=this.options,n=new XMLHttpRequest;if(n.timeout=e.timeout,n.upload){n.upload.addEventListener("progress",o=>{e.onProgress?.(o,e)},!1),n.onreadystatechange=()=>{n.readyState===4&&(n.status==e.xhrState?e.onSuccess?.(n.responseText,e):e.onFailure?.(n.responseText,e))},n.withCredentials=e.withCredentials,n.open(e.method,e.url,!0);for(const[o,l]of Object.entries(e.headers))n.setRequestHeader(o,l);e.onStart?.(e),e.beforeXhrUpload?e.beforeXhrUpload(n,e):n.send(e.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}},Xb=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},Gi=(e,{args:n=[],done:o,canceled:l})=>{if(e){const r=e.apply(null,n);Ct(r)?r.then(i=>{i?o(i):l&&l()}).catch(()=>{}):r?o():l&&l()}else o()},{create:Qb}=le("progress"),Gb=Qb({components:{Checked:re.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!(0,t.useSlots)().default,o=(0,t.ref)(e.strokeWidth+"px"),l=(0,t.ref)(),r=(0,t.ref)(),i=(0,t.computed)(()=>{const s=me(e.percentage);return s>=100?100:s}),a=(0,t.computed)(()=>({width:i.value+"%",background:e.strokeColor||""})),u=(0,t.computed)(()=>({color:e.textColor||""}));return(0,t.onMounted)(()=>{}),{height:o,percentage:i,bgStyle:a,textStyle:u,progressOuter:l,insideText:r,slotDefault:n}}}),Zb={class:"fox-progress"},Jb={key:0,class:"fox-progress-text"};function eS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",Zb,[(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",Jb,[e.status=="active"||e.status==""?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,style:(0,t.normalizeStyle)(e.textStyle)},(0,t.toDisplayString)(e.percentage)+(0,t.toDisplayString)(e.isShowPercentage?"%":""),5)):e.status=="icon"?(0,t.renderSlot)(e.$slots,"icon-name",{key:1},()=>[(0,t.createVNode)(a,{width:"15px",height:"15px",color:"#439422"})]):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)])}var Zt=ie(Gb,[["render",eS]]),{componentName:tS,create:nS,scope:lS}=le("uploader"),oS=nS({components:{[Zt.name]:Zt,Photograph:re.Photograph,Failure:re.Failure,Loading:re.Loading,Del:re.Del,Link:re.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:o}=(0,he.useFoxI18n)(lS),l=(0,t.reactive)(e.fileList);let r=[];const i=(0,t.computed)(()=>({[tS]:!0})),a=()=>{let m={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(m.capture="camera"),(0,t.h)("input",m)},u=m=>{m.value=""},s=m=>{n("file-item-click",{fileItem:m})},d=(m,f)=>{const k=new Wb;k.url=e.url,k.formData=m.formData,k.timeout=e.timeout*1,k.method=e.method,k.xhrState=e.xhrState,k.headers=e.headers,k.withCredentials=e.withCredentials,k.beforeXhrUpload=e.beforeXhrUpload;try{k.sourceFile=m.formData.get(e.name)}catch{}k.onStart=h=>{m.status="ready",m.message=o("readyUpload"),v(f),n("start",h)},k.onProgress=(h,g)=>{m.status="uploading",m.message=o("uploading"),m.percentage=(h.loaded/h.total*100).toFixed(0),n("progress",{event:h,option:g,percentage:m.percentage})},k.onSuccess=(h,g)=>{m.status="success",m.message=o("success"),n("success",{responseText:h,option:g,fileItem:m}),n("update:fileList",l)},k.onFailure=(h,g)=>{m.status="error",m.message=o("error"),n("failure",{responseText:h,option:g,fileItem:m})};let A=new Yb(k);e.autoUpload?A.upload():r.push(new Promise((h,g)=>{h(A)}))},v=(m=-1)=>{m>-1?r.splice(m,1):(r=[],l.splice(0,l.length))},c=()=>{Promise.all(r).then(m=>{m.forEach(f=>f.upload())})},p=m=>{m.forEach((f,k)=>{const A=new FormData;for(const[g,x]of Object.entries(e.data))A.append(g,x);A.append(e.name,f);const h=(0,t.reactive)(new Xb);if(h.name=f.name,h.status="ready",h.type=f.type,h.formData=A,h.message=o("waitingUpload"),d(h,k),e.isPreview&&f.type.includes("image")){const g=new FileReader;g.onload=x=>{h.url=x.target.result,l.push(h)},g.readAsDataURL(f)}else l.push(h)})},y=m=>{const f=e.maximum*1,k=e.maximize*1,A=new Array;m=m.filter(g=>g.size>k?(A.push(g),!1):!0),A.length&&n("oversize",A);let h=m.length+l.length;return h>f&&m.splice(m.length-(h-f)),m},N=(m,f)=>{l.splice(f,1),n("delete",{file:m,fileList:l,index:f})},S=(m,f)=>{v(f),Gi(e.beforeDelete,{args:[m,l],done:()=>N(m,f)})},C=m=>{if(e.disabled)return;const f=m.target;let{files:k}=f;e.beforeUpload?e.beforeUpload(k).then(A=>b(A)):b(k),n("change",{fileList:l,event:m}),e.clearInput&&u(f)},b=m=>{const f=y(new Array().slice.call(m));p(f)};return{onChange:C,onDelete:S,fileList:l,classes:i,fileItemClick:s,clearUploadQueue:v,submit:c,renderInput:a}}}),aS={key:0,class:"fox-uploader__slot"},rS={key:0,class:"fox-uploader__preview-img"},iS={key:0,class:"fox-uploader__preview__progress"},sS={class:"fox-uploader__preview__progress__msg"},uS=["onClick"],cS=["onClick","src"],dS={key:3,class:"fox-uploader__preview-img__file"},fS=["onClick"],mS={class:"file__name_tips"},pS={class:"tips"},vS={key:1,class:"fox-uploader__preview-list"},hS=["onClick"],gS={class:"file__name_tips"};function yS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Failure"),u=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Link"),d=(0,t.resolveComponent)("Del"),v=(0,t.resolveComponent)("fox-progress"),c=(0,t.resolveComponent)("Photograph");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",aS,[(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",rS,[p.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",iS,[p.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[p.status=="error"?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,color:"#fff"})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1,name:"loading",color:"#fff"}))],64)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",sS,(0,t.toDisplayString)(p.message),1)])):(0,t.createCommentVNode)("",!0),e.isDeletable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"close",onClick:N=>e.onDelete(p,y)},[(0,t.renderSlot)(e.$slots,"delete-icon",{},()=>[(0,t.createVNode)(a)])],8,uS)):(0,t.createCommentVNode)("",!0),p?.type?.includes("image")&&p.url?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,class:"fox-uploader__preview-img__c",onClick:N=>e.fileItemClick(p),src:p.url},null,8,cS)):((0,t.openBlock)(),(0,t.createElementBlock)("view",dS,[(0,t.createElementVNode)("view",{onClick:N=>e.fileItemClick(p),class:"fox-uploader__preview-img__file__name"},[(0,t.createElementVNode)("view",mS,(0,t.toDisplayString)(p.name),1)],8,fS)])),(0,t.createElementVNode)("view",pS,(0,t.toDisplayString)(p.name),1)])):e.listType=="list"?((0,t.openBlock)(),(0,t.createElementBlock)("view",vS,[(0,t.createElementVNode)("view",{onClick:N=>e.fileItemClick(p),class:(0,t.normalizeClass)(["fox-uploader__preview-img__file__name",[p.status]])},[(0,t.createVNode)(s,{class:"fox-uploader__preview-img__file__link"}),(0,t.createElementVNode)("view",gS,(0,t.toDisplayString)(p.name),1),e.isDeletable?((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:N=>e.onDelete(p,y)},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],10,hS),p.status=="uploading"?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,size:"small",percentage:p.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(["fox-uploader__upload",[e.listType]])},[(0,t.renderSlot)(e.$slots,"upload-icon",{},()=>[(0,t.createVNode)(c,{color:"#808080"})]),((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):(0,t.createCommentVNode)("",!0)],2)}var ha=ie(oS,[["render",yS]]),bS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY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wEMeg8LrD2sq0DnpdajvkFLIW4AvPJcjx/WJ50x5oX/Gs75qiiKpb9XSg2NMc+r5z+KovDBD3V2pgznz/y91noevSOECBbhxtwVt7dFpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:kS,scope:wS}=le("number-keyboard"),CS=kS({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:o}=(0,he.useFoxI18n)(wS),l=o(e,["confirmText"]),r=(0,t.computed)(()=>{const m=["fox-number-keyboard-popup"];return e.popClass&&m.push(e.popClass),m}),i=(0,t.ref)(void 0),a=(0,t.ref)(e.visible),u=(0,t.ref)();function s(){const{customKey:m}=e;let f={id:"lock",type:"lock"},k=Array.isArray(m)?m:[m];return k.length===1&&(f={id:k[0],type:"custom"}),[...d(),f,{id:0,type:"number"},{id:"delete",type:"delete"}]}function d(){const m=[];for(let f=1;f<=9;f++)m.push({id:f,type:"number"});return e.randomKeys?m.sort(()=>Math.random()>.5?1:-1):m}function v(){const m=d(),{customKey:f}=e;let k=Array.isArray(f)?f:[f];return k.length>2&&(k=[k[0],k[1]]),k.length==2&&e.title&&e.type!="rightColumn"&&(k=[k[0]]),k.length===1?e.title&&e.type!="rightColumn"?m.push({id:k[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):m.push({id:0,type:"number"},{id:k[0],type:"custom"}):k.length===2&&m.push({id:k[0],type:"custom"},{id:0,type:"number"},{id:k[1],type:"custom"}),m}const c=(0,t.computed)(()=>e.type=="rightColumn"||e.title!=""?v():s()),p=()=>{e.visible&&n("blur")},y=m=>{const f=u.value;f&&!f.contains(m.target)&&p()};(0,t.watch)(()=>e.visible,m=>{a.value=m,m?window.addEventListener("touchstart",y,!1):window.removeEventListener("touchstart",y,!1)});function N(m,f){f.stopPropagation(),i.value=m.id,(m.type=="number"||m.type=="custom")&&(n("input",m.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+m.id)),m.type=="lock"&&b(),m.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function S(m){m.stopPropagation()}function C(m){m.preventDefault(),i.value=void 0}function b(){n("update:visible",!1),n("close")}return{...l,allPopClass:r,delImg:bS,lockImg:SS,clickKeyIndex:i,defaultKey:s,closeBoard:b,onTouchEnd:C,onTouchMove:S,onTouchstart:N,keysList:c,genCustomKeys:v,getBasicKeys:d,root:u,show:a}}}),NS={ref:"root"},AS={class:"fox-number-keyboard"},BS={key:0,class:"fox-number-keyboard__header"},TS={class:"fox-number-keyboard__title"},VS={class:"fox-number-keyboard__body"},xS={class:"fox-number-keyboard__keys"},$S=["onTouchstart"],ES=["src"],DS=["src"],IS={key:0,class:"fox-number-keyboard__sidebar"},qS={class:"fox-key__wrapper"},PS=["src"];function MS(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",NS,[(0,t.createVNode)(a,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=u=>e.show=u),position:"bottom",popClass:e.allPopClass,overlay:!1,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",AS,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",BS,[(0,t.createElementVNode)("h3",TS,(0,t.toDisplayString)(e.title),1),e.type=="default"?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-number-keyboard__close",onClick:n[0]||(n[0]=u=>e.closeBoard())},(0,t.toDisplayString)(e.confirmText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",VS,[(0,t.createElementVNode)("div",xS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.keysList,u=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:"key"+u.id,class:(0,t.normalizeClass)(["fox-key__wrapper",{"fox-key__wrapper--wider":u.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{"fox-key--active":u.id==e.clickKeyIndex},{"fox-key--lock":u.type=="lock"},{"fox-key--delete":u.type=="delete"}]),onTouchstart:s=>e.onTouchstart(u,s),onTouchmove:n[1]||(n[1]=s=>e.onTouchMove(s)),onTouchend:n[2]||(n[2]=s=>e.onTouchEnd(s))},[u.type=="number"||u.type=="custom"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(u.id),1)],64)):(0,t.createCommentVNode)("",!0),u.type=="lock"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:1,src:e.lockImg},null,8,ES)):(0,t.createCommentVNode)("",!0),u.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,DS)):(0,t.createCommentVNode)("",!0)],42,$S)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",IS,[(0,t.createElementVNode)("div",qS,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=u=>e.onTouchstart({id:"delete",type:"delete"},u)),onTouchmove:n[4]||(n[4]=u=>e.onTouchMove(u)),onTouchend:n[5]||(n[5]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u))},[(0,t.createElementVNode)("img",{src:e.delImg},null,8,PS)],34)]),(0,t.createElementVNode)("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=u=>e.closeBoard())},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},(0,t.toDisplayString)(e.confirmText),3)])])):(0,t.createCommentVNode)("",!0)])])]),_:1},8,["visible","popClass"])],512)}var ga=ie(CS,[["render",MS]]),{componentName:RS,create:zS}=le("swipe"),LS=zS({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n,expose:o}){const l=(0,t.computed)(()=>({[RS]:!0})),r=f=>f.value?.clientWidth||0,i=(0,t.ref)(),a=(0,t.computed)(()=>r(i)),u=(0,t.ref)(),s=(0,t.computed)(()=>r(u));let d=!1,v="",c="";const p=(0,t.reactive)({offset:0,moving:!1}),y=(f="")=>{d=!0,f&&(p.offset=f==="left"?-s.value:a.value),n("open",{name:e.name,position:v||f})},N=()=>{p.offset=0,d=!1,n("close",{name:e.name,position:v})},S=(0,t.computed)(()=>({transform:`translate3d(${p.offset}px, 0, 0)`})),C=f=>{v=f>0?"right":"left";let k=f;switch(v){case"left":d&&c===v?k=-s.value:k=Math.abs(f)>s.value?-s.value:f;break;case"right":d&&c===v?k=a.value:k=Math.abs(f)>a.value?a.value:f;break}p.offset=k},b=pt(),m={onTouchStart(f){e.disabled||b.start(f)},onTouchMove(f){e.disabled||(b.move(f),b.isHorizontal()&&(p.moving=!0,C(b.deltaX.value),e.touchMovePreventDefault&&f.preventDefault(),e.touchMoveStopPropagation&&f.stopPropagation()))},onTouchEnd(){if(p.moving)switch(p.moving=!1,c=v,v){case"left":Math.abs(p.offset)<=s.value/2?N():(p.offset=-s.value,y());break;case"right":Math.abs(p.offset)<=a.value/2?N():(p.offset=a.value,y());break}}};return o({open:y,close:N}),{classes:l,touchStyle:S,...m,leftRef:i,rightRef:u,open:y,close:N}}}),FS={class:"fox-swipe__left",ref:"leftRef"},OS={class:"fox-swipe__content"},KS={class:"fox-swipe__right",ref:"rightRef"};function US(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.touchStyle),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[(0,t.createElementVNode)("view",FS,[(0,t.renderSlot)(e.$slots,"left")],512),(0,t.createElementVNode)("view",OS,[(0,t.renderSlot)(e.$slots,"default")]),(0,t.createElementVNode)("view",KS,[(0,t.renderSlot)(e.$slots,"right")],512)],38)}var ya=ie(LS,[["render",US]]),{componentName:_S,create:HS}=le("action-sheet"),jS=HS({components:{Popup:Ce,Loading:re.Loading},props:{...nt,cancelTxt:{type:String},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String},title:{type:String},color:{type:String,default:"#ee0a24"},description:{type:String},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const o=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[_S]:!0}));return{slotDefault:o,isHighlight:s=>e.chooseTagValue&&e.chooseTagValue===s[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(s,d)=>{!s.disable&&!s.loading&&(n("choose",s,d),n("update:visible",!1))},close:s=>{n("close",s),n("update:visible",!1)},classes:l}}}),WS={key:0,class:"fox-action-sheet__title"},YS={key:1},XS={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},QS={key:1,class:"fox-action-sheet__menu"},GS=["onClick"],ZS={key:1},JS={class:"fox-action-sheet__subdesc"};function e1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Loading"),u=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createBlock)(u,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes)},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",WS,(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",YS,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",XS,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",QS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.menuItems,(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:v=>e.chooseItem(s,d)},[s.loading?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",ZS,(0,t.toDisplayString)(s[e.optionTag]),1)),(0,t.createElementVNode)("view",JS,(0,t.toDisplayString)(s[e.optionSubTag]),1)],14,GS))),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 ba=ie(jS,[["render",e1]]),{componentName:t1,create:n1}=le("backtop"),l1=n1({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:o}){const l=(0,t.reactive)({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),r=(0,t.computed)(()=>({[t1]:!0,show:l.backTop})),i=(0,t.computed)(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function a(){l.scrollEl instanceof Window?l.scrollTop=l.scrollEl.pageYOffset:l.scrollTop=l.scrollEl.scrollTop,l.backTop=l.scrollTop>=e.distance}function u(N=0){l.scrollEl instanceof Window?window.scrollTo(0,N):l.scrollEl.scrollTop=N}function s(){let N=Je(function S(){var C=e.duration-Math.max(0,l.startTime-+new Date+e.duration),b=C*-l.scrollTop/e.duration+l.scrollTop;u(b),N=Je(S),(C==e.duration||b==0)&&Lr(N)})}function d(){l.scrollEl.addEventListener("scroll",a,!1),l.scrollEl.addEventListener("resize",a,!1)}function v(){l.scrollEl.removeEventListener("scroll",a,!1),l.scrollEl.removeEventListener("resize",a,!1)}function c(N){l.startTime=+new Date,e.isAnimation&&e.duration>0?s():u(),n("click",N)}function p(){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)(()=>{v()}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1,p())}),(0,t.onDeactivated)(()=>{l.keepAlive=!0,v()});const y=(0,t.computed)(()=>{if(typeof o.content=="function"){const N=o.content();return Array.isArray(N)?N[0]:N}return null});return()=>{const N=[];y.value&&N.push(y.value);const S=[];if(typeof o.default=="function")S.push(o.default());else{const b=(0,t.h)(re.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});S.push(b)}const C=(0,t.h)("div",{class:r.value,style:i.value,onClick:c},S);return N.push(C),N}}}),Sa=l1,{componentName:o1,create:a1}=le("drag"),r1=a1({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.reactive)({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),r=(0,t.computed)(()=>({[o1]:!0}));function i(){const c=document.documentElement;l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight,l.screenWidth=c.clientWidth,l.screenHeight=c.clientHeight}function a(c){l.boundary.left?+c.style.left.split("px")[0]>l.boundary.left?(c.style.left=+c.style.left.split("px")[0]-10+"px",Ge(()=>{a(c)})):c.style.left=`${l.boundary.left}px`:+c.style.left.split("px")[0]>10?(c.style.left=+c.style.left.split("px")[0]-10+"px",Ge(()=>{a(c)})):c.style.left="0px"}function u(c,p){p-parseInt(c.style.left.split("px")[0])>10?(c.style.left=parseInt(c.style.left.split("px")[0])+10+"px",Ge(()=>{u(c,p)})):c.style.left=p+"px"}function s(c){c.preventDefault();const p=c.currentTarget;if(c.targetTouches.length===1){const y=c.targetTouches[0];l.nx=y.clientX-l.position.x,l.ny=y.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const N=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>N?l.xPum=N:l.xPum<=l.boundary.left&&(l.xPum=l.boundary.left),l.yPum<l.boundary.top?l.yPum=l.boundary.top:l.yPum>l.screenHeight-l.elHeight-l.boundary.bottom&&(l.yPum=l.screenHeight-l.elHeight-l.boundary.bottom),e.direction!="y"&&(p.style.left=l.xPum+"px"),e.direction!="x"&&(p.style.top=l.yPum+"px")}}function d(c){const p=c.currentTarget;let y=c.changedTouches[0].clientX;const N=l.screenWidth-l.elWidth-l.boundary.right;y>N?y=N:y<l.boundary.left?y=l.boundary.left:y=y<l.screenWidth/2?l.boundary.left:N,e.direction!="y"&&e.attract&&(y<l.screenWidth/2?Ge(()=>{a(p)}):Ge(()=>{u(p,N)})),e.direction!="x"&&(p.style.top=l.yPum+"px")}function v(c){const p=c.currentTarget,y=c.touches[0],N=c.targetTouches[0];l.startTop=p.offsetTop,l.startLeft=p.offsetLeft,l.position.x=y.clientX,l.position.y=y.clientY,l.nx=N.clientX-l.position.x,l.ny=N.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return(0,t.onMounted)(()=>{i(),l.boundary=e.boundary}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1)}),(0,t.onDeactivated)(()=>{l.keepAlive=!0;const c=o;c.value.removeEventListener("touchstart",v),c.value.removeEventListener("touchmove",s),c.value.removeEventListener("touchend",d)}),{classes:r,myDrag:o,touchStart:v,touchMove:s,touchEnd:d}}});function i1(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=a=>e.touchStart(a)),onTouchmove:n[1]||(n[1]=a=>e.touchMove(a)),onTouchend:n[2]||(n[2]=a=>e.touchEnd(a))},[(0,t.renderSlot)(e.$slots,"default")],34)}var ka=ie(r1,[["render",i1]]),s1={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}},u1=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function c1(e,n,o,l,r){return{props:{...nt,...s1},setup(i,{attrs:a,slots:u,emit:s}){const{toLocaleRefs:d}=(0,he.useFoxI18n)(n),v=d(i,["confirmText","cancelText"]),c=e,p=(0,t.ref)(i.visible);(0,t.watch)(()=>i.visible,h=>{p.value!==h&&(p.value=h,h&&s("opened"))});const y=h=>{p.value=h,s("update:visible",h),s("update",h)},N=h=>{if(s(h),!(h==="cancel"&&!i.cancelAutoClose))if(typeof i.beforeClose=="function"){const g=i.beforeClose(h);Ct(g)?g.then(x=>{x&&(y(!1),s("closed",h))}):g===!0&&(y(!1),s("closed",h))}else y(!1),s("closed",h)},S=()=>{N("confirm")},C=()=>{N("cancel")},b=()=>{N("close")},m=(h,g)=>u1(h)?(g.src=h,(0,t.h)("img",g)):typeof h=="string"?(Array.isArray(g.class)?g.class.push(h):g.class&&typeof g.class=="object"?g[`${h}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${h}`:g.class=h,(0,t.h)(i.tag,g)):(0,t.h)(h,g),f=()=>{const h=[];if(u.header){const g=u.header();h.push(g)}else{if(i.title){const g=(0,t.h)("view",{class:`${c}__header-title`},[i.title]);h.push(g)}if(i.showClose){const g={class:[`${c}__header-close-icon`],onClick:b},x=i.closeIcon??r,B=m(x,g);h.push(B)}}return h.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},h)},k=()=>{const h=[];if(u.default)h.push(u.default());else{const g={class:[`${c}__content`]};if(i.textAlign&&g.class.push(i.textAlign),typeof i.content=="string"){g.innerHTML=i.content;const x=(0,t.h)("view",g);h.push(x)}else if(typeof i.content=="function"){const x=(0,t.h)("view",g,[i.content()]);h.push(x)}else{const x=(0,t.h)("view",g,[i.content]);h.push(x)}}return h.length===0?null:(0,t.h)("view",{class:[`${c}__body`]},h)},A=()=>{if(!i.showFooter)return null;const h=[];if(u.footer)h.push(u.footer());else if(i.plain){if(i.showCancelButton){const g={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},onClick:C};i.cancelButtonClass&&g.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(g.style,i.cancleButtonStyle);const x=(0,t.h)("view",g,[i.cancelButtonText??v.cancelText.value]);h.push(x)}if(i.showConfirmButton){const g={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},onClick:S};i.confirmButtonClass&&g.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(g.style,i.confirmButtonStyle);const x=(0,t.h)("view",g,[i.confirmButtonText??v.confirmText.value]);h.push(x)}}else{if(i.showCancelButton){const g={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:C};i.cancelButtonClass&&g.class.push(i.cancelButtonClass),i.cancleButtonStyle&&typeof i.cancleButtonStyle=="object"&&Object.assign(g.style,i.cancleButtonStyle);const x=(0,t.h)(l,g,{default:()=>[i.cancelButtonText??v.cancelText.value]});h.push(x)}if(i.showConfirmButton){const g={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:S};i.confirmButtonClass&&g.class.push(i.confirmButtonClass),i.confirmButtonStyle&&typeof i.confirmButtonStyle=="object"&&Object.assign(g.style,i.confirmButtonStyle);const x=(0,t.h)(l,g,{default:()=>[i.confirmButtonText??v.confirmText.value]});h.push(x)}}return h.length===0?null:(0,t.h)("view",{class:[`${c}__footer`,`${c}__footer--${i.footerDirection}`]},h)};return()=>{const h=[],g=f();g&&h.push(g);const x=k();x&&h.push(x);const B=A();B&&h.push(B);const T=(0,t.h)("view",{class:{[`${c}`]:!0,[`${c}--plain`]:i.plain}},h),w=[`${c}__popup`];i.popClass&&w.push(i.popClass);const I={};return i.width&&(I.width=typeof i.width=="number"?`${i.width}px`:i.width),i.height&&(I.height=typeof i.height=="number"?`${i.height}px`:i.height),(0,t.h)(o,{...be(i,nt),popClass:w.join(" "),style:I,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:i.position,onClickOverlay:b,closeOnClickOverlay:i.closeOnClickOverlay},{default:()=>T})}}}}var{componentName:d1,create:f1,scope:m1}=le("dialog"),p1=f1(c1(d1,m1,Ce,vt,re.Close)),Zi=p1,v1=class{title="";content="";cancelText=null;confirmText=null;textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=e=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1},h1=class{options=new v1;constructor(e){let n=Object.assign(this.options,e),o=document.body,l=n.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=n.teleport);const r=document.createElement("view"),i=`dialog-${n.id}`;r.id=i;const a=(0,t.createVNode)({setup(){return n.onUpdate=u=>{if(u===!1){const s=document.querySelector(`#${i}`);s&&s.parentNode?.removeChild(s)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(Zi,n)}});o.appendChild(r),(0,t.render)(a,r)}},Jt=function(e){return new h1(e)};Jt.install=e=>{e.use(Zi),e.config.globalProperties.$dialog=Jt};var g1={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},containerClass:{type:[String]}},y1=(e,n,o)=>({props:g1,emits:["change","refresh","update:modelValue"],setup(l,{emit:r,slots:i}){const a=e,{toLocaleRefs:u}=(0,he.useFoxI18n)(n),s=u(l,["pullingText","loosingText","loadingText"]),d=ol(),v=(0,t.ref)(),c=_i(v),p=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=(0,t.computed)(()=>({[a]:!0})),N=(0,t.computed)(()=>{const B=[`${a}__container`];return l.containerClass&&B.push(l.containerClass),B}),S=(0,t.computed)(()=>{switch(p.status){case"pulling":return i.pulling?"":s.pullingText.value;case"loosing":return i.loosing?"":s.loosingText.value;case"loading":return i.loading?"":s.loadingText.value;default:return""}}),C=(0,t.computed)(()=>({transitionDuration:`${l.duration}s`,transform:p.distance?`translate3d(0,${p.distance}px, 0)`:""})),b=(0,t.computed)(()=>{const B={};return l.headHeight!=50&&(B.height=ue(l.headHeight)),B}),m=B=>{const T=+(l.pullDistance||l.headHeight);let w=B;return B>T&&(B<T*2?w=(B+T)/2:w=T+B/4),Math.round(w)},f=(B,T)=>{const w=+(l.pullDistance||l.headHeight);p.distance=B,T?p.status="loading":B===0?p.status="normal":B<w?p.status="pulling":p.status="loosing",r("change",{status:p.status,distance:B})},k=()=>p.status!=="loading"&&p.status!=="complete",A=()=>c.value==window?Hi()==0:c.value&&c.value.scrollTop==0,h=B=>{k()&&(A()?(d.start(B),p.isPullRefresh=!0,p.moving=!0):(p.distance=0,p.isPullRefresh=!1))},g=B=>{k()&&p.moving&&(d.move(B),d.isVertical()&&d.state.deltaY>0&&p.isPullRefresh&&(B.cancelable&&B.preventDefault(),f(m(d.state.deltaY))))},x=()=>{p.moving=!1,p.isPullRefresh&&k()&&d.state.deltaY&&(p.status==="loosing"?(f(+l.headHeight,!0),r("update:modelValue",!0),(0,t.nextTick)(()=>r("refresh"))):f(0)),setTimeout(()=>{d.reset()},0)};return(0,t.watch)(()=>l.modelValue,B=>{B?f(+l.headHeight,!0):f(0)}),()=>{const B=[];let T=null;p.status==="loading"?(T=i?.loading?.()??null,T||(T=(0,t.h)(o,{class:[`${a}__container-topbox-icon`]}))):p.status==="pulling"?T=i?.pulling?.()??null:p.status==="loosing"&&(T=i?.loosing?.()??null),T&&B.push(T);const w=(0,t.h)("dive",{class:[`${a}__container-topbox-text`]},[S.value]);B.push(w);const I=(0,t.h)("div",{class:[`${a}__container-topbox`],style:b.value},B),L=(0,t.h)("div",{class:N.value,style:C.value},[I,i?.default?.()]),V={ref:v,class:y.value};return ll()?Object.assign(V,{onTouchstart:h,onTouchmove:g,onTouchend:x}):Object.assign(V,{onMousedown:h,onMousemove:g,onMouseup:x}),(0,t.h)("div",V,[L])}}}),{componentName:b1,create:S1,scope:k1}=le("pull-refresh"),w1=S1(y1(b1,k1,re.Loading)),wa=w1,{create:C1}=le("notify"),N1=C1({components:{FoxPopup:Ce},props:{id:String,msg:{type:String,default:""},duration:{type:Number,default:3e3},customClass:{type:String,default:""},color:{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:{type:Function},onClick:{type:Function},unmount:{type:Function}},emits:["update:visible"],setup(e,{emit:n}){const o=()=>{e.onClick&&e.onClick()};let l=null;const r=()=>{l&&clearTimeout(l),l=null},i=()=>{n("update:visible",!1)},a=(0,t.ref)(!1),u=(0,t.watch)(()=>e.visible,d=>{a.value=e.visible;const v=e.duration;d&&v&&(l=setTimeout(()=>{i()},v))},{immediate:!0});return{onAfterLeave:()=>{r(),u&&u(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:o,isShowPopup:a}}});function A1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxPopup");return(0,t.openBlock)(),(0,t.createBlock)(a,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=u=>e.isShowPopup=u),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-notify",`fox-notify--${e.type}`,e.customClass]),style:(0,t.normalizeStyle)({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...u)=>e.clickCover&&e.clickCover(...u))},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}var Ca=ie(N1,[["render",A1]]),Xl={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,customClass:"",onClose:Function,teleport:"",unmount:new Function},bt=[],Yt=[],Ji=e=>{if(e){const n=document.getElementById(e);Yt=Yt.filter(o=>o.id!==e),bt=bt.filter(o=>o!==e),n&&document.body.removeChild(n)}else bt.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),Yt=[],bt=[]},B1=e=>{const n=document.getElementById(e.id);if(n){const o=Yt.find(r=>r.id===e.id);o?e={...Xl,...o,...e}:e={...Xl,...e};const l=(0,t.createVNode)(Ca,e);return(0,t.render)(l,n),l.component.data}},Lt=e=>{e.unmount=Ji;let n;if(e.id){if(n=e.id,bt.find(r=>r===e.id))return B1(e)}else n=new Date().getTime()+"";e={...Xl,...e},e.id=n,bt.push(e.id),Yt.push(e);const o=document.createElement("view");o.id="notify-"+e.id;const l=(0,t.createVNode)({setup(){return e.teleport=`#notify-${e.id}`,(0,t.onMounted)(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(o)},e.duration)}),()=>(0,t.h)(Ca,e)}});document.body.appendChild(o),(0,t.render)(l,o)},Ft=e=>{if(!e){console.warn("[FoxUI Notify]: msg不能为空");return}},Na={text(e,n={}){return Ft(e),Lt({...n,msg:e})},primary(e,n={}){return Ft(e),Lt({...n,msg:e,type:"primary"})},success(e,n={}){return Ft(e),Lt({...n,msg:e,type:"success"})},danger(e,n={}){return Ft(e),Lt({...n,msg:e,type:"danger"})},warn(e,n={}){return Ft(e),Lt({...n,msg:e,type:"warning"})},hide(){Ji()},install(e){e.use(Ca)}},{create:T1}=le("toast"),V1=T1({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},i=()=>{l.mounted=!1},a=()=>{r(),e.duration&&(o=setTimeout(()=>{i()},e.duration))},u=()=>{e.closeOnClickOverlay&&(i(),n("close"))};e.duration&&a(),(0,t.watch)(()=>e.duration,y=>{y&&a()});const s=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const y=ce(e.iconSize);return(0,t.h)(e.icon,{width:y,height:y,color:e.iconColor})},v=(0,t.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=(0,t.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:i,clickCover:u,renderIcon:d,hasIcon:s,toastBodyClass:v,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),x1={key:1,class:"fox-toast-title"},$1=["innerHTML"];function E1(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.toastBodyClass),style:(0,t.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...a)=>e.clickCover&&e.clickCover(...a))},[(0,t.createElementVNode)("view",{class:"fox-toast-inner",style:(0,t.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.toastIconWrapperClass)},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon())))],2)):(0,t.createCommentVNode)("",!0),e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",x1,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,$1)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var Aa=ie(V1,[["render",E1]]),Ql={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},St=[],Xt=[],es=e=>{if(e){const n=document.getElementById(e);Xt=Xt.filter(o=>o.id!==e),St=St.filter(o=>o!==e),n&&((0,t.render)(null,n),document.body.removeChild(n))}else St.forEach(n=>{const o=document.getElementById(n);o&&((0,t.render)(null,o),document.body.removeChild(o))}),Xt=[],St=[]},D1=e=>{const n=document.getElementById(e.id);if(n){const o=Xt.find(r=>r.id===e.id);o?e={...Ql,...o,...e}:e={...Ql,...e};const l=(0,t.createVNode)(Aa,e);return(0,t.render)(null,n),(0,t.render)(l,n),It}},Ot=e=>{e.unmount=es;let n;if(e.id){if(n=e.id,St.find(l=>l===e.id))return D1(e)}else n=new Date().getTime()+"";e={...Ql,...e},e.id=n,St.push(e.id),Xt.push(e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(Aa,e),o),document.body.appendChild(o),It},yn=e=>e?!0:(console.warn("[FoxUI Toast]: msg不能为空"),!1),It={text(e,n={}){if(yn(e))return Ot({...n,type:"text",msg:e})},success(e,n={}){if(yn(e))return Ot({icon:re.Success,...n,msg:e,type:"success"})},fail(e,n={}){if(yn(e))return Ot({icon:re.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){if(yn(e))return Ot({icon:re.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Ot({icon:re.Loading,...n,msg:e,type:"loading"})},hide(e){es(e)},install(e){e.use(Aa),e.config.globalProperties.$toast=It}},{componentName:z2,create:I1}=le("audio"),q1=I1({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:re.Service,[Gt.name]:Gt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null),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 S=["webkitVisibilityState","visibilitychange"];try{for(let C=0;C<S.length;C++)document.addEventListener(S[C],()=>{document.hidden?l.value.pause():r.playing&&setTimeout(()=>{l.value.play()},200)})}catch(C){C.message}});const i=S=>{const C=l.value;e.autoplay&&C&&C.paused&&C.play(),r.second=C.duration,r.duration=N(C.duration),n("can-play",S)},a=S=>{r.currentTime=parseInt(S.target.currentTime)},u=()=>{r.currentTime>0&&r.currentTime--,l.value.currentTime=r.currentTime,n("fastBack",r.currentTime)},s=()=>{const S=l.value;r.playing?(S.pause(),r.handPlaying=!1):(S.play(),r.handPlaying=!0),r.playing=!r.playing,n("play",r.playing)},d=()=>{r.currentTime++,l.value.currentTime=r.currentTime,n("forward",r.currentTime)},v=S=>{r.currentDuration=N(S),r.percent=S/r.second*100},c=()=>{r.playing=!1,n("ended")},p=S=>{const C=l.value;C.currentTime=r.second*S/100,n("changeProgress",C.currentTime)},y=()=>{r.hanMuted=!r.hanMuted,n("mute",r.hanMuted)},N=S=>{if(!S)return"00:00:00";let C=parseInt(S),b=Math.floor(C/3600),m=Math.floor((C-b*3600)/60),f=C-b*3600-m*60,k="";return k+=("0"+b.toString()).slice(-2)+":",k+=("0"+m.toString()).slice(-2)+":",k+=("0"+f.toString()).slice(-2),k};return(0,t.watch)(()=>r.currentTime,S=>{v(S)}),(0,t.provide)("audioParent",{children:[],props:e,audioData:r,handleMute:y,forward:d,fastBack:u,changeStatus:s}),{...(0,t.toRefs)(e),...(0,t.toRefs)(r),audioRef:l,fastBack:u,forward:d,changeStatus:s,progressChange:p,audioEnd:c,onTimeupdate:a,handleMute:y,onCanplay:i,slots:o}}}),P1={class:"fox-audio"},M1={key:0,class:"fox-audio__progress"},R1={class:"fox-audio__time"},z1={class:"fox-audio__bar"},L1={class:"fox-audio__time"},F1={key:1,class:"fox-audio__icon"},O1=["controls","src","preload","autoplay","loop","muted"];function K1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-range"),u=(0,t.resolveComponent)("Service");return(0,t.openBlock)(),(0,t.createElementBlock)("div",P1,[e.type=="progress"?((0,t.openBlock)(),(0,t.createElementBlock)("div",M1,[(0,t.createElementVNode)("div",R1,(0,t.toDisplayString)(e.currentDuration),1),(0,t.createElementVNode)("div",z1,[(0,t.createVNode)(a,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=s=>e.percent=s),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:(0,t.withCtx)(()=>[...n[6]||(n[6]=[(0,t.createElementVNode)("div",{class:"fox-audio__button--custom"},null,-1)])]),_:1},8,["modelValue","onChange"])]),(0,t.createElementVNode)("div",L1,(0,t.toDisplayString)(e.duration),1)])):(0,t.createCommentVNode)("",!0),e.type=="icon"?((0,t.openBlock)(),(0,t.createElementBlock)("div",F1,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:n[1]||(n[1]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[e.playing?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1}))],2)])):(0,t.createCommentVNode)("",!0),e.type=="none"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,onClick:n[2]||(n[2]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type!="none"?(0,t.renderSlot)(e.$slots,"default",{key:3}):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:n[3]||(n[3]=(...s)=>e.onTimeupdate&&e.onTimeupdate(...s)),onCanplay:n[4]||(n[4]=(...s)=>e.onCanplay&&e.onCanplay(...s)),onEnded:n[5]||(n[5]=(...s)=>e.audioEnd&&e.audioEnd(...s)),muted:e.hanMuted},null,40,O1)])}var Ba=ie(q1,[["render",K1]]),{componentName:L2,create:U1,scope:_1}=le("audio-operate"),H1=U1({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:o}=(0,he.useFoxI18n)(_1),l=(0,t.reactive)((0,t.inject)("audioParent")),r=(0,t.ref)((0,t.useSlots)().default);return{...(0,t.toRefs)(e),...(0,t.toRefs)(l),customSlot:r,t:o}}}),j1={class:"fox-audio-operate"};function W1(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",j1,[e.type=="back"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...u)=>e.fastBack&&e.fastBack(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("back")),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="play"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...u)=>e.changeStatus&&e.changeStatus(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="forward"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...u)=>e.forward&&e.forward(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("forward")),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="mute"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...u)=>e.handleMute&&e.handleMute(...u))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("mute")),1)]),_:1},8,["type"])),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0)])}var Ta=ie(H1,[["render",W1]]),{componentName:Y1,create:X1}=le("avatar"),Q1=X1({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:o,bgColor:l,color:r}=(0,t.toRefs)(e),i=["large","normal","small"],a=(0,t.inject)("avatarGroup",null),u=(0,t.ref)(null),s=(0,t.reactive)({lightTheme:!1}),d=(0,t.reactive)({index:1,showMax:!1,maxIndex:0});(0,t.onMounted)(()=>{const N=a?.avatarGroupRef?.value?.children;N&&y(N)});const v=(0,t.computed)(()=>({[Y1]:!0,[`fox-avatar-${n.value||a?.props?.size||"normal"}`]:!0,[`fox-avatar-${o.value||a?.props?.shape||"normal"}`]:!0})),c=(0,t.computed)(()=>({width:i.indexOf(n.value)>-1?"":`${n.value}px`,height:i.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${l.value}`,color:`${r.value}`,marginLeft:d.index!=1&&(a?.props?.span?`${a?.props?.span}px`:""),zIndex:a?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),p=(0,t.computed)(()=>({backgroundColor:`${a?.props?.maxBgColor}`,color:`${a?.props?.maxColor}`})),y=N=>{d.maxIndex=N.length;for(let S=0;S<N.length;S++)N[S]&&N[S].classList&&N[S].classList[0]=="fox-avatar"&&N[S].setAttribute("data-index",S+1);d.index=u?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=a?.props?.maxCount&&(d.showMax=!0)};return{classes:v,styles:c,maxStyles:p,avatarGroup:a,visible:s,avatarRef:u,...(0,t.toRefs)(d)}}});function G1(e,n,o,l,r,i){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,style:(0,t.normalizeStyle)(e.showMax?e.maxStyles:e.styles),class:(0,t.normalizeClass)(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):(0,t.createCommentVNode)("",!0)],6)):(0,t.createCommentVNode)("",!0)}var en=ie(Q1,[["render",G1]]),{componentName:Z1,create:J1}=le("avatar-group"),ek=J1({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:o}){const{size:l}=(0,t.toRefs)(e),r=(0,t.ref)(null),i=(0,t.ref)(0),a=(0,t.computed)(()=>({[Z1]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:r,index:i}),{classes:a,avatarGroupRef:r}}});function tk(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"avatarGroupRef"},[(0,t.renderSlot)(e.$slots,"default")],2)}var Va=ie(ek,[["render",tk]]),$l=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function nk(e,n,o){let l=0,r=e.length-1,i=null;for(;l<=r;){i=Math.floor((l+r)/2);const a=e[i],u=o(a,n);if(u===1)return i;u===2?l=i+1:u===3&&(r=i-1)}return i}var{componentName:lk,create:ok}=le("list"),Rr=document.documentElement.clientHeight||document.body.clientHeight||667,ak=ok({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Rr},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const o=(0,t.ref)(null),l=(0,t.ref)(null),r=(0,t.ref)(null),i=(0,t.reactive)({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),a=(0,t.computed)(()=>Math.min(e.containerHeight,Rr)),u=(0,t.computed)(()=>Math.ceil(a.value/e.height)),s=(0,t.computed)(()=>Math.min(i.originStartIndex+u.value+e.bufferSize,i.list.length)),d=(0,t.computed)(()=>({[lk]:!0})),v=(0,t.computed)(()=>i.list.slice(i.start,s.value)),c=()=>{if(r.value)return`translate3d(0, ${i.start>=1?i.cachePositions[i.start-1].bottom:0}px, 0)`},p=()=>{i.cachePositions=[];for(let b=0;b<i.list.length;++b)i.cachePositions[b]={index:b,height:e.height,top:b*e.height,bottom:(b+1)*(e.height+e.margin),dValue:0}},y=()=>{let b=r.value.childNodes;b=Array.from(b).filter(g=>g.nodeType===1);const m=b[0];b.forEach((g,x)=>{if(!g)return;const{height:B}=Pe(g),T=i.cachePositions[x+i.start].height-B;T&&(i.cachePositions[x+i.start].bottom-=T,i.cachePositions[x+i.start].height=B,i.cachePositions[x+i.start].dValue=T)});let f=0;m&&(f=i.start);const k=i.cachePositions.length;let A=i.cachePositions[f].dValue;i.cachePositions[f].dValue=0;for(let g=f+1;g<k;++g){const x=i.cachePositions[g];i.cachePositions[g].top=i.cachePositions[g-1].bottom,i.cachePositions[g].bottom=i.cachePositions[g].bottom-A,x.dValue!==0&&(A+=x.dValue,x.dValue=0)}const h=i.cachePositions[k-1].bottom;i.phantomHeight=h},N=(b=0)=>{let m=nk(i.cachePositions,b,(f,k)=>{const A=f.bottom;return A===k?$l.eq:A<k?$l.lt:$l.gt});return i.cachePositions[m].bottom<b&&(m+=1),m},S=()=>{i.originStartIndex=0,i.start=0,i.scrollTop=0,o.value.scrollTop=0,p(),i.phantomHeight=e.height*i.list.length},C=()=>{const b=o.value?.scrollTop,{originStartIndex:m}=i,f=N(b);f!==m&&(i.originStartIndex=f,i.start=Math.max(i.originStartIndex-e.bufferSize,0),s.value>=i.list.length-1&&n("scroll-bottom")),n(b>i.scrollTop?"scroll-up":"scroll-down",b),i.scrollTop=b};return(0,t.watch)(()=>e.listData,b=>{if(i.list=b.slice(),i.list.length===b.length)p(),y();else{S();return}}),(0,t.watch)(()=>i.start,()=>{r.value&&i.list.length>0&&y()}),{...(0,t.toRefs)(i),list:o,phantom:l,actualContent:r,getTransform:c,visibleData:v,classes:d,getContainerHeight:a,handleScrollEvent:C}}});function rk(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...a)=>e.handleScrollEvent&&e.handleScrollEvent(...a)),ref:"list"},[(0,t.createElementVNode)("div",{class:"fox-list-phantom",style:(0,t.normalizeStyle)({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),(0,t.createElementVNode)("div",{class:"fox-list-container",style:(0,t.normalizeStyle)({transform:e.getTransform()}),ref:"actualContent"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.visibleData,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-list-item",key:a},[(0,t.renderSlot)(e.$slots,"default",{item:a,index:u+e.start})]))),128))],4)],38)}var xa=ie(ak,[["render",rk]]),{componentName:ik,create:sk}=le("circleprogress"),uk=sk({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const o=!!(0,t.useSlots)().default,l=Math.random().toString(36).slice(-8),r=(0,t.computed)(()=>({[ik]:!0})),i=(0,t.computed)(()=>{const u=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${u} 0 90 a 45 45 0 1, ${u} 0 -90`}),a=(0,t.computed)(()=>De(e.color)?`url(#${l})`:e.color);return{classes:r,hoverStyle:(0,t.computed)(()=>{let u=283,s=u*Number(e.progress)/100;return{stroke:De(e.color)?`url(#${l})`:e.color,strokeDasharray:`${s}px ${u}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:i,hoverColor:a,stop:(0,t.computed)(()=>{if(!De(e.color))return;let u=e.color;const s=Object.keys(u).sort((v,c)=>parseFloat(v)-parseFloat(c));let d=[];return s.map((v,c)=>{let p={key:"",value:""};p.key=v,p.value=u[v],d.push(p)}),d}),slotDefault:o,refRandomId:l}}}),ck={viewBox:"0 0 100 100"},dk=["id"],fk=["offset","stop-color"],mk=["d","stroke-width"],pk=["d","stroke","stroke-linecap","stroke-width"],vk={class:"fox-circleprogress-text"},hk={key:0};function gk(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:e.radius*2+"px",width:e.radius*2+"px"})},[((0,t.openBlock)(),(0,t.createElementBlock)("svg",ck,[(0,t.createElementVNode)("defs",null,[(0,t.createElementVNode)("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.stop,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("stop",{key:u,offset:a.key,"stop-color":a.value},null,8,fk))),128))],8,dk)]),(0,t.createElementVNode)("path",{class:"fox-circleprogress-path",style:(0,t.normalizeStyle)(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,mk),(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,pk)])),(0,t.createElementVNode)("div",vk,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",hk,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var $a=ie(uk,[["render",gk]]),{componentName:yk,create:bk}=le("noticebar"),Sk=bk({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:re.Notice,CircleClose:re.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null),r=(0,t.ref)(null),i=(0,t.reactive)({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),a=(0,t.computed)(()=>({[yk]:!0})),u=(0,t.computed)(()=>i.isCanScroll==null?e.wrapable:!i.isCanScroll&&!e.wrapable),s=(0,t.computed)(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":u.value,[i.animationClass]:!0})),d=(0,t.computed)(()=>{let g={};return e.color&&(g.color=e.color),e.background&&(g.background=e.background),e.direction=="vertical"&&(g.height=`${e.height}px`),g}),v=(0,t.computed)(()=>({animationDelay:(i.firstRound?e.delay:0)+"s",animationDuration:i.duration+"s",transform:`translateX(${i.firstRound?0:i.wrapWidth+"px"})`})),c=(0,t.computed)(()=>{let g={};if(e.complexAm)g={transform:`translateY(${i.distance}px)`};else if(i.animate){let x=~~(e.height/e.speed/4);g={transition:`all ${x==0?~~(e.height/e.speed):x}s`,"margin-top":`-${e.height}px`}}return g});(0,t.watch)(()=>e.text,g=>{p(g)}),(0,t.watch)(()=>e.list,g=>{i.scrollList=[...g]});const p=g=>{i.showNoticebar!=!1&&setTimeout(()=>{if(!l.value||!r.value)return;const x=l.value.getBoundingClientRect().width,B=r.value.getBoundingClientRect().width;i.isCanScroll=e.scrollable==null?B>x:e.scrollable,i.isCanScroll?(i.wrapWidth=x,i.offsetWidth=B,i.duration=B/e.speed,i.animationClass="play"):i.animationClass=""},0)},y=g=>{n("click",g)},N=g=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",g)},S=g=>{i.firstRound=!1,n("across-end",g),setTimeout(()=>{i.duration=(i.offsetWidth+i.wrapWidth)/e.speed,i.animationClass="play-infinite"},0)},C=()=>{b(),i.timer=setInterval(b,~~(e.height/e.speed/4*1e3)+e.standTime)},b=()=>{i.animate=!0,setTimeout(()=>{i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.animate=!1},~~(e.height/e.speed/4*1e3))},m=()=>{i.timer=setInterval(()=>{let g=100;for(let x=0;x<g;x++)f(x,!(x<g-1))},e.standTime+100*e.speed)},f=(g,x)=>{setTimeout(()=>{i.distance-=e.height/100,x&&(i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.distance=0)},g*e.speed)},k=g=>{n("click",g)},A=()=>{e.closeMode&&(i.showNoticebar=!e.closeMode),n("close",i.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(o.default?h(o.default()):i.scrollList=[...e.list],setTimeout(()=>{e.complexAm?m():C()},e.standTime)):p(e.text)}),(0,t.watch)(()=>o.default?o.default():[],g=>{e.direction==="vertical"&&o.default&&(i.showNotica=!1,setTimeout(()=>{i.showNotica=!0}),h(g))});const h=g=>{g&&g.length>0&&(i.scrollList=g[0].children)};return(0,t.onActivated)(()=>{i.keepAlive&&(i.keepAlive=!1)}),(0,t.onDeactivated)(()=>{i.keepAlive=!0,clearInterval(i.timer)}),(0,t.onUnmounted)(()=>{clearInterval(i.timer)}),{...(0,t.toRefs)(e),...(0,t.toRefs)(i),isEllipsis:u,classes:a,barStyle:d,contentStyle:v,horseLampStyle:c,wrap:l,content:r,handleClick:y,onClickIcon:N,onAnimationEnd:S,go:k,handleClickIcon:A,slots:o,toPxString:ue,wrapContentClass:s}}}),kk={key:0,class:"fox-noticebar__page-lefticon"},wk={ref:"wrap",class:"fox-noticebar__page-wrap"},Ck={class:"showNotica"},Nk=["onClick"];function Ak(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Notice"),u=(0,t.resolveComponent)("CircleClose"),s=(0,t.resolveComponent)("ScrollItem");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.direction=="across"?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:(0,t.normalizeStyle)(e.barStyle),onClick:n[3]||(n[3]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.showLeftIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",kk,[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,size:"16px"})):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",wk,[(0,t.createElementVNode)("view",{ref:"content",class:(0,t.normalizeClass)(e.wrapContentClass),style:(0,t.normalizeStyle)(e.contentStyle),onAnimationend:n[0]||(n[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":n[1]||(n[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=(0,t.withModifiers)((...d)=>e.onClickIcon&&e.onClickIcon(...d),["stop"]))},[e.$slots["right-icon"]?(0,t.renderSlot)(e.$slots,"right-icon",{key:0}):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1}))])):(0,t.createCommentVNode)("",!0)],6)),[[t.vShow,e.showNoticebar]]):(0,t.createCommentVNode)("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__vertical",style:(0,t.normalizeStyle)(e.barStyle)},[e.slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[(0,t.createElementVNode)("div",Ck,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,v)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:v,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,v)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{class:"fox-noticebar__vertical-item",key:v,style:(0,t.normalizeStyle)({height:e.toPxString(e.height),lineHeight:e.toPxString(e.height)}),onClick:c=>e.go(d)},[(0,t.renderSlot)(e.$slots,"item",{item:d,index:v},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(d),1)])],12,Nk))),128))],4)),(0,t.createElementVNode)("view",{class:"go",onClick:n[4]||(n[4]=d=>!e.slots.rightIcon&&e.handleClickIcon())},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[e.closeMode?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,color:e.color,size:"11px"},null,8,["color"])):(0,t.createCommentVNode)("",!0)])])],4)):(0,t.createCommentVNode)("",!0)],2)}var Ea=ie(Sk,[["render",Ak]]),Bk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLz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DlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:F2,create:xk,scope:$k}=le("empty"),Ek={empty:Bk,error:Tk,network:Vk},Dk=xk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,he.useFoxI18n)($k),o=n(e,["description"]),{image:l,imageSize:r}=(0,t.toRefs)(e),i=(0,t.computed)(()=>r.value?typeof r.value=="number"?`width:${r.value}px;height:${r.value}px`:`width:${r.value};height:${r.value}`:""),a=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:Ek[l.value];return{...o,imageUrl:a,imgStyle:i}}}),Ik={class:"fox-empty"},qk=["src"],Pk={key:1,class:"fox-empty-description"};function Mk(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Ik,[(0,t.createElementVNode)("view",{class:"fox-empty-image",style:(0,t.normalizeStyle)(e.imgStyle)},[e.$slots.image?(0,t.renderSlot)(e.$slots,"image",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.imageUrl?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,class:"img",src:e.imageUrl},null,8,qk)):(0,t.createCommentVNode)("",!0)],64))],4),e.$slots.description?(0,t.renderSlot)(e.$slots,"description",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",Pk,(0,t.toDisplayString)(e.description),1)),e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:2}):(0,t.createCommentVNode)("",!0)])}var Da=ie(Dk,[["render",Mk]]),{create:Rk,scope:zk}=le("video"),Lk=Rk({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:o}=(0,he.useFoxI18n)(zk),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,h=>{h.src&&(0,t.nextTick)(()=>{l.videoElm.load()})},{immediate:!0,deep:!0}),(0,t.watch)(()=>e.options,h=>{l.state.isMuted=h?h.muted:!1},{immediate:!0});const a=()=>{l.videoElm=r.value,e.options.autoplay&&setTimeout(()=>{l.videoElm.play()},200),e.options.touchPlay&&(l.showTouchMask=!0),e.options.playsinline&&(l.videoElm.setAttribute("playsinline",e.options.playsinline),l.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),l.videoElm.setAttribute("x5-video-player-type","h5-page"),l.videoElm.setAttribute("x5-video-player-fullscreen",!1)),N(),l.showToolbox?u():(l.videoElm.addEventListener("play",()=>{l.state.playing=!0,n("play",l.videoElm)}),l.videoElm.addEventListener("pause",()=>{l.state.playing=!1,n("pause",l.videoElm)}),l.videoElm.addEventListener("ended",p),l.videoElm.addEventListener("timeupdate",Vn(c,1e3)))},u=()=>{const h=r.value,g=r.value.getElementsByClassName("fox-video-controller__progress-value")[0];l.player.$player=h,l.progressBar.progressElm=g,l.progressBar.pos=g.getBoundingClientRect(),l.videoSet.progress.width=Math.round(g.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",()=>{v()}),l.videoElm.addEventListener("timeupdate",Vn(c,1e3)),l.videoElm.addEventListener("ended",p),n("play",l.videoElm)}catch{y()}else l.videoElm.pause(),n("pause",l.videoElm)},d=h=>{let g=[];const x=Math.floor(h/3600);x>0&&(x<10?g.push(`0${x}`):g.push(`${x}`));const B=Math.floor(h%3600/60);B<10?g.push(`0${B}`):g.push(`${B}`);const T=Math.round(h%3600%60);return T<10?g.push(`0${T}`):g.push(`${T}`),g.join(":")},v=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},c=()=>{const h=l.videoElm.currentTime/l.videoElm.duration;l.videoSet.progress.current=Math.round(l.videoSet.progress.width*h),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},N=()=>{l.state.vol=e.options.volume},S=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},C=()=>{},b=h=>{let g=h.targetTouches[0].pageX-l.progressBar.pos.left;g<=0&&(g=0),g>=l.videoSet.progress.width&&(g=l.videoSet.progress.width),l.videoSet.progress.current=g;let x=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&f(x,l.videoElm.duration)},m=h=>{let g=h.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=g;let x=g/l.videoSet.progress.width;l.videoElm.duration&&f(x,l.videoElm.duration)},f=(h,g)=>{l.videoElm.currentTime=Math.floor(h*g)},k=()=>{l.state.isError=!1,a()},A=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{a()}),{root:r,...(0,t.toRefs)(e),...(0,t.toRefs)(l),handleError:y,isDisabled:i,play:s,handleMuted:S,touchSlidSrart:C,touchSlidMove:b,touchSlidEnd:m,retry:k,fullScreen:A,t:o}}}),Fk={class:"fox-video",ref:"videocon"},Ok=["muted","autoplay","loop","poster","controls","preload"],Kk=["src","type"],Uk={class:"fox-video-controller__now"},_k={class:"fox-video-controller__progress"},Hk={class:"fox-video-controller__progress-value",ref:"progressBar"},jk={class:"fox-video-controller__played",ref:"playedBar"},Wk={class:"fox-video-controller__total"},Yk={class:"fox-video-error"},Xk={class:"fox-video-error-tip"};function Qk(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",Fk,[(0,t.createElementVNode)("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:n[0]||(n[0]=(...a)=>e.handleError&&e.handleError(...a))},[(0,t.createElementVNode)("source",{src:e.source.src,type:e.source.type},null,8,Kk)],40,Ok),e.showToolbox&&!e.isDisabled?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...a)=>e.play&&e.play(...a))},null,512)):(0,t.createCommentVNode)("",!0),e.showToolbox&&!e.isDisabled?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:n[2]||(n[2]=(...a)=>e.play&&e.play(...a))},null,512)),[[t.vShow,!e.state.playing]]):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[(0,t.createElementVNode)("div",{class:"fox-video-controller__playbtn",onClick:n[3]||(n[3]=(...a)=>e.play&&e.play(...a))}),(0,t.createElementVNode)("div",Uk,(0,t.toDisplayString)(e.videoSet.displayTime),1),(0,t.createElementVNode)("div",_k,[(0,t.createElementVNode)("div",Hk,[(0,t.createElementVNode)("div",{class:"buffered",style:(0,t.normalizeStyle)({width:`${e.videoSet.loaded}%`})},null,4),(0,t.createElementVNode)("div",{class:"fox-video-controller__ball",style:(0,t.normalizeStyle)({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:n[4]||(n[4]=(0,t.withModifiers)(a=>e.touchSlidMove(a),["stop","prevent"])),onTouchstart:n[5]||(n[5]=(0,t.withModifiers)(a=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)(a=>e.touchSlidEnd(a),["stop"]))},[...n[10]||(n[10]=[(0,t.createElementVNode)("div",{class:"fox-video-controller__ball-move"},null,-1)])],36),(0,t.createElementVNode)("div",jk,null,512)],512)]),(0,t.createElementVNode)("div",Wk,(0,t.toDisplayString)(e.videoSet.totalTime),1),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...a)=>e.handleMuted&&e.handleMuted(...a))},null,2),(0,t.createElementVNode)("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...a)=>e.fullScreen&&e.fullScreen(...a))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),(0,t.withDirectives)((0,t.createElementVNode)("div",Yk,[(0,t.createElementVNode)("p",Xk,(0,t.toDisplayString)(e.t("errorTip")),1),(0,t.createElementVNode)("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...a)=>e.retry&&e.retry(...a))},(0,t.toDisplayString)(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var xt=ie(Lk,[["render",Qk]]),ts=Symbol("fox-steps"),{create:Gk,componentName:Zk}=le("steps"),Jk=Gk({props:{direction:{type:[String],default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:o}){const l=(0,t.computed)(()=>{const i=Zk;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}});return fn(ts,{props:e,onEmit:i=>{n("click-step",i)}}),()=>(0,t.h)("view",{class:l.value},o.default?.())}}),Ia=Jk,{create:ew,componentName:tw}=le("step"),nw=ew({props:{title:{type:[String],default:""},content:{type:[String],default:""}},emits:["click-step"],setup(e){const{parent:n,index:o}=mn(ts,{props:e}),l=(0,t.reactive)({dot:n.props.progressDot}),r=()=>{const s=o.value+1;return s<+n.props.current?"finish":s===+n.props.current?"process":"wait"},i=(0,t.computed)(()=>r()),a=(0,t.computed)(()=>{const s=tw;return{[s]:!0,[`${s}-${i.value}`]:!0}}),u=()=>{n.onEmit(o.value)};return{...(0,t.toRefs)(l),index:o,classes:a,handleClickStep:u}}}),lw={class:"fox-step-head"},ow={class:"fox-step-icon-inner"},aw={key:1,class:"fox-step-inner"},rw={class:"fox-step-main"},iw={class:"fox-step-title"},sw={key:0},uw={key:0,class:"fox-step-content"},cw=["innerHTML"];function dw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClickStep&&e.handleClickStep(...a))},[(0,t.createElementVNode)("view",lw,[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",ow,[(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",aw,(0,t.toDisplayString)(e.index+1),1))])])],2)]),(0,t.createElementVNode)("view",rw,[(0,t.createElementVNode)("view",iw,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",sw,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",uw,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,cw)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var qa=ie(nw,[["render",dw]]),ns=Symbol("fox-swiper"),{create:fw,componentName:El}=le("swiper"),mw=fw({props:{width:{type:[Number,String],default:()=>window.innerWidth},height:{type:[Number,String],default:0},direction:{type:[String],default:"horizontal"},paginationVisible:{type:[Boolean],default:!1},paginationColor:{type:[String],default:"#fff"},loop:{type:[Boolean],default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:[Boolean],default:!0},isPreventDefault:{type:[Boolean],default:!0},isStopPropagation:{type:[Boolean],default:!0}},emits:["change"],setup(e,{emit:n,slots:o,expose:l}){const r=(0,t.ref)(),i=(0,t.reactive)({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,style:{}}),a=(0,t.computed)(()=>i[v.value?"height":"width"]),{children:u}=fn(ns,{props:e,size:a}),s=pt(),d=(0,t.computed)(()=>({[El]:!0})),v=(0,t.computed)(()=>e.direction==="vertical"),c=(0,t.computed)(()=>{const P=El;return{[`${P}-inner`]:!0,[`${P}-vertical`]:v.value}}),p=(0,t.computed)(()=>{const P=El;return{[`${P}-pagination`]:!0,[`${P}-pagination-vertical`]:v.value}}),y=(0,t.computed)(()=>v.value?s.deltaY.value:s.deltaX.value),N=(0,t.computed)(()=>s.direction.value===e.direction),S=(0,t.computed)(()=>u.value.length),C=(0,t.computed)(()=>S.value*a.value),b=(0,t.computed)(()=>i.rect?(v.value?i.rect.height:i.rect.width)-a.value*S.value:0),m=(0,t.computed)(()=>(i.active+S.value)%S.value),f=()=>{let P=0;P=i.offset,i.style={transitionDuration:`${i.moving?0:e.duration}ms`,transform:`translate${v.value?"Y":"X"}(${P}px)`,[v.value?"height":"width"]:`${a.value*S.value}px`,[v.value?"width":"height"]:`${v.value?i.width:i.height}px`}},k=(P,j=0)=>{let D=P*a.value;e.loop||(D=Math.min(D,-b.value));let ee=j-D;return e.loop||(ee=je(ee,b.value,0)),ee},A=P=>{const{active:j}=i;return P?e.loop?je(j+P,-1,S.value):je(j+P,0,S.value-1):j},h=({pace:P=0,offset:j=0,isEmit:D=!1})=>{if(S.value<=1)return;const{active:ee}=i,te=A(P),oe=k(te,j);if(e.loop){if(u.value[0]&&oe!==b.value){const H=oe<b.value;u.value[0].setOffset(H?C.value:0)}if(u.value[S.value-1]&&oe!==0){const H=oe>0;u.value[S.value-1].setOffset(H?-C.value:0)}}i.active=te,i.offset=oe,D&&ee!==i.active&&n("change",m.value),f()},g=()=>{i.moving=!0,i.active<=-1&&h({pace:S.value}),i.active>=S.value&&h({pace:-S.value})},x=()=>{i.autoplayTimer&&clearTimeout(i.autoplayTimer)},B=P=>{g(),s.reset(),Je(()=>{Je(()=>{i.moving=!1,h({pace:P,isEmit:!0})})})},T=()=>{B(-1)},w=()=>{B(1)},I=P=>{g(),s.reset(),Je(()=>{i.moving=!1;let j=0;e.loop&&S.value===P?j=i.active===0?0:P:j=P%S.value,h({pace:j-i.active,isEmit:!0})})},L=()=>{const P=me(e.autoPlay);P<=0||S.value<=1||(x(),i.autoplayTimer=setTimeout(()=>{w(),L()},P))},V=(P=+e.initPage)=>{x(),i.rect=r.value.getBoundingClientRect(),P=Math.min(S.value-1,P),i.width=e.width?+e.width:i.rect.width,i.height=e.height?+e.height:i.rect.height,i.active=P,i.offset=k(i.active),i.moving=!0,f(),L()},M=P=>{e.isPreventDefault&&P.preventDefault(),e.isStopPropagation&&P.stopPropagation(),e.touchable&&(s.start(P),i.touchTime=Date.now(),x(),g())},q=P=>{e.touchable&&i.moving&&(s.move(P),N.value&&h({offset:y.value}))},O=P=>{if(!e.touchable||!i.moving)return;const j=y.value/(Date.now()-i.touchTime);if((Math.abs(j)>.3||Math.abs(y.value)>+(a.value/2).toFixed(2))&&N.value){let D=0;const ee=v.value?s.offsetY.value:s.offsetX.value;e.loop?D=ee>0?y.value>0?-1:1:0:D=-Math[y.value>0?"ceil":"floor"](y.value/a.value),h({pace:D,isEmit:!0})}else y.value&&h({pace:0});i.moving=!1,f(),L()};return l({prev:T,next:w,to:I}),(0,t.onDeactivated)(()=>{x()}),(0,t.onBeforeUnmount)(()=>{x()}),(0,t.watch)(()=>e.initPage,P=>{(0,t.nextTick)(()=>{V(Number(P))})}),(0,t.watch)(()=>u.value.length,()=>{(0,t.nextTick)(()=>{V()})}),(0,t.watch)(()=>e.autoPlay,P=>{me(P)>0?L():x()}),{state:i,children:u,classes:d,classesInner:c,classesPagination:p,container:r,activePagination:m,onTouchStart:M,onTouchMove:q,onTouchEnd:O}}});function pw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{ref:"container",class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classesInner),style:(0,t.normalizeStyle)(e.state.style)},[(0,t.renderSlot)(e.$slots,"default")],6),(0,t.renderSlot)(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classesPagination)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.children.length,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("i",{style:(0,t.normalizeStyle)({backgroundColor:e.activePagination===u?e.paginationColor:"#ddd"}),class:(0,t.normalizeClass)({active:e.activePagination===u}),key:u},null,6))),128))],2)):(0,t.createCommentVNode)("",!0)],34)}var $t=ie(mw,[["render",pw]]),{create:vw,componentName:hw}=le("swiper-item"),gw=vw({setup(e,{slots:n,expose:o}){const l=(0,t.reactive)({offset:0}),r=(0,t.computed)(()=>({[hw]:!0})),i=s=>{l.offset=s},{parent:a}=mn(ns,{setOffset:i}),u=(0,t.computed)(()=>{const s={},d=a?.props.direction;return a?.size.value&&(s[d==="horizontal"?"width":"height"]=`${a?.size.value}px`),l.offset&&(s.transform=`translate${d==="horizontal"?"X":"Y"}(${l.offset}px)`),s});return o({setOffset:i}),{style:u,classes:r}}});function yw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Et=ie(gw,[["render",yw]]),ls={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:bw}=le("image-preview-item"),Sw=bw({props:{...ls,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:{[xt.name]:xt,[Et.name]:Et},setup(e,{emit:n}){const o=(0,t.reactive)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),l=pt(),r=(0,t.computed)(()=>{const{rootWidth:B,rootHeight:T}=e,w=T/B;return o.imageRatio>w}),i=(0,t.computed)(()=>{const B=e.image;if(B&&B.src){const{scale:T,moveX:w,moveY:I,moving:L,zooming:V}=o,M={transitionDuration:V||L?"0s":".3s"};return T!==1&&(M.transform=`scale(${T}, ${T}) translate(${w/T}px, ${I/T}px)`),M}return{}}),a=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:B,rootHeight:T}=e,w=r.value?T/o.imageRatio:B;return Math.max(0,(o.scale*w-B)/2)}return 0}),u=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:B,rootHeight:T}=e,w=r.value?T:B*o.imageRatio;return Math.max(0,(o.scale*w-T)/2)}return 0}),s=B=>{const{naturalWidth:T,naturalHeight:w}=B.target;o.imageRatio=w/T},d=()=>{v(1),o.moveX=0,o.moveY=0},v=B=>{B=je(B,+e.minZoom,+e.maxZoom+1),B!==o.scale&&(o.scale=B,n("scale",{scale:B,index:e.initNo}))},c=()=>{const B=o.scale>1?1:2;v(B),o.moveX=0,o.moveY=0},p=B=>Math.sqrt((B[0].clientX-B[1].clientX)**2+(B[0].clientY-B[1].clientY)**2);let y,N,S,C,b,m,f;const k=B=>{const{touches:T}=B,{offsetX:w}=l;l.start(B),f=T.length,y=o.moveX,N=o.moveY,m=Date.now(),o.moving=f===1&&o.scale!==1,o.zooming=f===2&&!w.value,o.zooming&&(S=o.scale,C=p(B.touches))},A=B=>{const{touches:T}=B;if(l.move(B),(o.moving||o.zooming)&&Fl(B,!0),o.moving){const{deltaX:w,deltaY:I}=l,L=w.value+y,V=I.value+N;o.moveX=je(L,-a.value,a.value),o.moveY=je(V,-u.value,u.value)}if(o.zooming&&T.length===2){const w=p(T),I=S*w/C;v(I)}},h=()=>{if(f==1&&e.video&&e.video.source||f>1)return;const{offsetX:B,offsetY:T}=l,w=Date.now()-m,I=250,L=5;B.value<L&&T.value<L&&w<I&&(b?(clearTimeout(b),b=null,c()):b=setTimeout(()=>{e.contentClose&&n("close"),b=null},I))},g=B=>{let T=!1;(o.moving||o.zooming)&&(T=!0,o.moving&&y===o.moveX&&N===o.moveY&&(T=!1),B.touches.length||(o.zooming&&(o.moveX=je(o.moveX,-a.value,a.value),o.moveY=je(o.moveY,-u.value,u.value),o.zooming=!1),o.moving=!1,y=0,N=0,S=1,o.scale<1&&d(),o.scale>e.maxZoom&&(o.scale=+e.maxZoom))),Fl(B,T),h(),l.reset()},x=()=>{n("close")};return(0,t.watch)(()=>e.initNo,d),(0,t.watch)(()=>e.show,B=>{B||d()}),{...(0,t.toRefs)(o),onTouchStart:k,onTouchMove:A,onTouchEnd:g,getDistance:p,imageStyle:i,imageLoad:s,closeSwiper:x}}}),kw=["src"];function ww(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-video"),u=(0,t.resolveComponent)("fox-swiper-item");return(0,t.openBlock)(),(0,t.createBlock)(u,{onClick:e.closeSwiper},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{style:(0,t.normalizeStyle)(e.imageStyle),class:"fox-image-preview-box",onTouchstart:n[1]||(n[1]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[2]||(n[2]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[4]||(n[4]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[e.image&&e.image.src?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:n[0]||(n[0]=(...s)=>e.imageLoad&&e.imageLoad(...s))},null,40,kw)):(0,t.createCommentVNode)("",!0),e.video&&e.video.source?((0,t.openBlock)(),(0,t.createBlock)(a,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):(0,t.createCommentVNode)("",!0)],36)]),_:1},8,["onClick"])}var Cw=ie(Sw,[["render",ww]]),{create:Nw}=le("image-preview"),Aw=Nw({props:{...ls,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:Cw,CircleClose:re.CircleClose,[Ce.name]:Ce,[$t.name]:$t},setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.reactive)({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),r=(0,t.computed)(()=>{const v="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${v}-right`:`${v}-left`}`}),i=(0,t.computed)(()=>Mn(e.videos)?[].concat(e.videos).concat(e.images):e.images),a=v=>{v!==l.active&&(l.active=v,n("change",l.active))},u=()=>{Gi(e.beforeClose,{args:[l.active],done:()=>s()})},s=()=>{l.showPop=!1,n("close")},d=()=>{if(o.value){const v=Pe(o.value);l.rootHeight=v.height,l.rootWidth=v.width}};return(0,t.watch)(()=>e.show,v=>{l.showPop=v,v&&(a(e.initNo),d())}),(0,t.watch)(()=>e.initNo,v=>{v!=l.active&&a(v)}),(0,t.onMounted)(()=>{a(e.initNo)}),{swipeRef:o,...(0,t.toRefs)(l),onClose:u,mergeImages:i,setActive:a,iconClasses:r}}}),Bw={class:"fox-image-preview",ref:"swipeRef"},Tw={key:0,class:"fox-image-preview-index"};function Vw(e,n,o,l,r,i){const a=(0,t.resolveComponent)("image-preview-item"),u=(0,t.resolveComponent)("fox-swiper"),s=(0,t.resolveComponent)("CircleClose"),d=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=v=>e.showPop=v),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Bw,[e.showPop?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.mergeImages,(v,c)=>((0,t.openBlock)(),(0,t.createBlock)(a,{key:c,video:c<e.videos.length?v:{},image:c>=e.videos.length?v:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):(0,t.createCommentVNode)("",!0)],512),e.showIndex?((0,t.openBlock)(),(0,t.createElementBlock)("view",Tw,(0,t.toDisplayString)(e.active+1)+" / "+(0,t.toDisplayString)(e.mergeImages.length),1)):(0,t.createCommentVNode)("",!0),e.closeable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.iconClasses),onClick:n[0]||(n[0]=(...v)=>e.onClose&&e.onClose(...v))},[(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 os=ie(Aw,[["render",Vw]]),xw=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"},$w=class{options=new xw;constructor(e){const n=Object.assign(this.options,e),{unmount:o}=eu(n,{name:"image-preview",components:[Ce,xt,$t,Et,ft],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{o()})},(0,t.h)(os,n))}})})}},bl=e=>new $w(e);bl.install=e=>{e.use(os)};var{create:Ew}=le("countup"),Dw=Ew({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scrollEnd"],setup(e,{emit:n,expose:o}){const l=(0,t.ref)(null),r=(0,t.ref)([]),i=B=>{B&&r.value.push(B)},a=(0,t.reactive)({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:u,scrolling:s,customBgImg:d,type:v}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,()=>{p(),b(0)}),(0,t.watch)(()=>e.machinePrizeLevel,B=>{a.prizeLevelTrun=B}),(0,t.watch)(()=>e.initNum,B=>{a.current=B,a.valFlag=!1,c()}),(0,t.watch)(()=>e.endNum,()=>{a.current=e.initNum,a.valFlag=!1,c()});const c=()=>{if(a.valFlag)return!1;u&&(s||d?v!="machine"&&b():(C(),setTimeout(()=>{a.valFlag=!0},300)))},p=()=>{clearInterval(Number(a.timer)),a.timer=null},y=(B,T,w)=>{const I=(B.toString().split(".")[1]||"").length,L=(T.toString().split(".")[1]||"").length,V=Math.pow(10,Math.max(I,L));return w=="-"?Number((B*V-T*V).toFixed(0))/V:Number((B*V+T*V).toFixed(0))/V},N=B=>{let{num_total_len:T,pointNum:w,initDigit1:I,initDigit2:L,sortFlag:V}=a,M=V=="add"||V=="equal"?String(L)[B-(T-w)]:10-Number(String(L)[B-(T-w)]),q=V=="add"||V=="equal"?String(I)[B]:10-Number(String(I)[B]),O=B>T-w-1?-M*100+"%":B<=String(I).length-1?-q*100+"%":0;return O=="-1000%"&&(O=0),O},S=B=>{let{num_total_len:T,pointNum:w,initDigit1:I,initDigit2:L}=a,V=String(L)[B-(T-w)];return B>T-w-1?V||0:B<=String(I).length-1?String(I)[B]:0},C=()=>{let{endNum:B,initNum:T,speed:w,toFixed:I}=e,L=setInterval(()=>{if(T>B)if(Number(a.current)<=B||Number(a.current)<=w)a.current=B.toFixed(I),clearInterval(L),n("scrollEnd"),a.valFlag=!1;else{let V=parseFloat(String(a.current))-parseFloat(String(w));a.current=V.toFixed(I)}else if(Number(a.current)>=B)a.current=B.toFixed(I),clearInterval(L),n("scrollEnd"),a.valFlag=!1;else{let V=parseFloat(String(a.current))+parseFloat(String(w));a.current=V.toFixed(I)}},e.during)},b=B=>{let{initNum:T,endNum:w,toFixed:I,customBgImg:L}=e;L&&(T=e.customChangeNum);let V,M,q,O;T!=0?(I!=0&&(T=Number(T.toFixed(I))),String(T).indexOf(".")>-1?(V=String(T).split(".")[0].length,M=String(T).split(".")[1].length):(V=String(T).length,M=0)):(V=1,M=0),w!=0?(I!=0&&(w=Number(w.toFixed(I))),String(w).indexOf(".")>-1?(q=String(w).split(".")[0].length,O=String(w).split(".")[1].length):(q=String(w).length,O=0)):(q=1,O=0);let P=V>=q?V:q,j=M>=O?M:O;a.num_total_len=P+j,a.pointNum=j,T>w?(a.sortFlag="reduce",a.to0_10=[0,9,8,7,6,5,4,3,2,1,0],a.totalCount=y(T,w,"-"),a.numberVal=Number(String(T))):T<w?(a.sortFlag="add",a.to0_10=[0,1,2,3,4,5,6,7,8,9,0],a.totalCount=y(w,T,"-"),a.numberVal=Number(String(w))):a.sortFlag="equal";var D=1;for(let te=0;te<a.pointNum;te++)D*=10;var ee=a.numberVal*D;if(a.relNum=ee,I!=0&&(a.pointNum=String(a.numberVal).split(".")[1]?String(a.numberVal).split(".")[1].length:0,a.num_total_len=String(ee).length),String(T).indexOf(".")>-1){let te=String(T).split(".");a.initDigit1=Number(te[0]),a.initDigit2=Number(te[1])}else a.initDigit1=T,a.initDigit2=0;s&&!L?(0,t.nextTick)(()=>{if(a.sortFlag=="equal")return!1;let te=r.value[a.num_total_len-1];m(te)}):B!==0&&A()},m=B=>{p();var T=1;a.pointNum!=0&&(T=1/Math.pow(10,a.pointNum)),a.timer=setInterval(()=>{f(B),a.totalCount=y(a.totalCount,T,"-"),a.totalCount<=0&&(p(),n("scrollEnd"),a.valFlag=!1)},e.during)},f=B=>{let T=B.getAttribute("turn-number"),w;if(a.sortFlag=="add"?w=parseInt(String(T))+1:w=parseInt(String(T))-1>=0?parseInt(String(T))-1:9,B.setAttribute("turn-number",String(w)),(B.style.transition=="none 0s ease 0s"||w==1||!B.style.transition)&&(B.style.transition=`all linear ${e.during}ms`),w==10||a.sortFlag=="reduce"&&w==0){var I=null;B.style.top=`-${a.sortFlag=="add"?w*100:(10-w)*100}%`,B.setAttribute("turn-number","0"),I=setTimeout(()=>{I&&clearTimeout(I),B.style.transition="none",B.style.top="0",k(B,w)},.975*e.during)}else B.style.top=`-${a.sortFlag=="add"?w*100:(10-w)*100}%`;B.style.top=="-100%"&&a.sortFlag=="reduce"&&f(B.previousSibling)},k=(B,T)=>{setTimeout(()=>{T==10&&B.previousSibling&&f(B.previousSibling)},200)},A=()=>{(0,t.nextTick)(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{n("scrollEnd"),a.valFlag=!1})})},h=()=>{for(a.notPrize=[];a.notPrize.length<3;){var B=Math.floor(Math.random()*e.machinePrizeNum+1);a.notPrize.indexOf(B)==-1&&a.notPrize.push(B)}};o({machineLuck:()=>{const B=e.machineTurnMore<0?0:e.machineTurnMore;let T=e.numHeight*e.machinePrizeNum;a.prizeLevelTrun<0&&h();for(let w=0;w<e.machineNum;w++)setTimeout(()=>{let I=T*(w+1+parseFloat(String(B)));a.prizeYPrev.length!=0&&(a.prizeY[w]=a.prizeYPrev[w]);let L=a.prizeYPrev[w]?a.prizeYPrev[w]:0,V=I+L+(e.machinePrizeNum-a.prizeLevelTrun+1)*e.numHeight+(T-L);a.prizeLevelTrun<0&&(V+=e.numHeight*a.notPrize[w]),x(w,V,L)},500*w)}});const x=(B,T,w)=>{let I=setInterval(()=>{if(w<=T)w+=10,a.prizeY[B]=parseFloat(String(w));else if(clearInterval(I),I=null,a.finshMachine+=1,a.prizeY[B]=T,a.finshMachine==e.machineNum){let L=e.numHeight*e.machinePrizeNum;a.prizeYPrev=[],JSON.parse(JSON.stringify(a.prizeY)).forEach(V=>{let M=V;for(;M>L;)M-=L;a.prizeYPrev.push(M)}),setTimeout(()=>{a.finshMachine=0,a.prizeLevelTrun<0?(n("scrollEnd",!1),a.valFlag=!1):(n("scrollEnd",!0),a.valFlag=!1)},130)}},30)};return(0,t.onMounted)(()=>{a.current=e.initNum,(0,t.nextTick)(()=>{c()})}),(0,t.onUnmounted)(()=>{p(),a.timer=null}),{...(0,t.toRefs)(a),...(0,t.toRefs)((0,t.reactive)(e)),runNumberImg:l,setRef:i,topNumber:N,turnNumber:S}}}),Iw={class:"fox-countup"},qw=["turn-number"];function Pw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Iw,[e.customBgImg!=""?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.type=="machine"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup__machine",style:(0,t.normalizeStyle)({height:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.machineNum,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"mImg"+u,class:"fox-countup__machine-item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[u]+"px"})},null,4))),128))],4)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:(0,t.normalizeStyle)({height:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.num_total_len,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"cImg"+u,class:"fox-countup__numberimg__item",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(Number(u)>e.num_total_len-e.pointNum-1?Number(u)==e.num_total_len-e.pointNum?Number(u)*1.5:Number(u)*1.3:Number(u))+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[u]*e.numHeight+e.customSpacNum*+String(e.relNum)[u])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup-pointstyl",style:(0,t.normalizeStyle)({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})}," . ",4)):(0,t.createCommentVNode)("",!0)],4))],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.scrolling?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup__number",style:(0,t.normalizeStyle)({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.num_total_len,(a,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{ref_for:!0,ref:s=>e.setRef(s),key:a,class:"fox-countup__number-item",style:(0,t.normalizeStyle)({top:e.topNumber(u),left:e.numWidth*(Number(u)>e.num_total_len-e.pointNum-1?Number(u)*1.1:Number(u))+"px"}),"turn-number":e.turnNumber(u)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.to0_10,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:"dote"+d,class:"fox-countup__number-item__span",style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},(0,t.toDisplayString)(s),5))),128))],12,qw))),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 Pa=ie(Dw,[["render",Pw]]),Mw=e=>{if(!e)return Date.now();let n=Number(e),o=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(o).getTime()},{componentName:Rw,create:zw}=le("countdown"),Lw=zw({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:o}){const l=(0,t.reactive)({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),r=(0,t.computed)(()=>({[Rw]:!0})),i=(0,t.computed)(()=>s(l.restTime)),a=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-Mw(e.startTime),l.counting||(l.counting=!0),u()},u=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const y=Date.now()-l.diffTime,N=Math.max(l.handleEndTime-y,0);l.restTime=N,N||(l.counting=!1,c(),n("on-end")),N>0&&u()}}))},s=(y,N)=>{const S=y;let C={d:0,h:0,m:0,s:0,ms:0};const b=1e3,m=60*b,f=60*m,k=24*f;return S>0&&(C.d=S>=b?Math.floor(S/k):0,C.h=Math.floor(S%k/f),C.m=Math.floor(S%f/m),C.s=Math.floor(S%m/b),C.ms=Math.floor(S%b)),N=="custom"?C:d({...C})},d=y=>{let{d:N,h:S,m:C,s:b,ms:m}=y,f=e.format;if(f.includes("DD")?f=f.replace("DD",rt(N)):S+=Number(N)*24,f.includes("HH")?f=f.replace("HH",rt(S)):C+=Number(S)*60,f.includes("mm")?f=f.replace("mm",rt(C)):b+=Number(C)*60,f.includes("ss")?f=f.replace("ss",rt(b)):m+=Number(b)*1e3,f.includes("S")){const k=rt(m,3).toString();f.includes("SSS")?f=f.replace("SSS",k):f.includes("SS")?f=f.replace("SS",k.slice(0,2)):f.includes("S")&&(f=f.replace("SS",k.slice(0,1)))}return f},v=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),u(),n("on-restart",l.restTime))},c=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},p=()=>{e.autoStart||(c(),l.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?a():l.restTime=e.time}),(0,t.watch)(()=>l.restTime,y=>{let N=s(y,"custom");n("update:modelValue",N),n("input",N)}),(0,t.watch)(()=>e.paused,(y,N)=>{N?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),u()),n("on-restart",l.restTime)):l.counting&&c()}),(0,t.watch)(()=>e.endTime,y=>{a()}),(0,t.watch)(()=>e.startTime,y=>{a()}),{...(0,t.toRefs)(e),slots:o,classes:r,start:v,pause:c,renderTime:i,reset:p}}}),Fw=["innerHTML"];function Ow(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,Fw))],2)}var Ma=ie(Lw,[["render",Ow]]),{create:Kw}=le("badge"),Uw=Kw({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){return{state:(0,t.reactive)({}),stl:(0,t.computed)(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),content:(0,t.computed)(()=>{if(e.dot)return;const n=e.value,o=e.max;return typeof n=="number"&&typeof o=="number"&&o<n?`${o}+`:n})}}}),_w={class:"fox-badge"},Hw=["textContent"];function jw(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",_w,[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-badge__icon",style:(0,t.normalizeStyle)(e.stl)},[(0,t.renderSlot)(e.$slots,"icon")],4),[[t.vShow,!e.hidden&&!e.dot&&e.$slots.icon]]),(0,t.renderSlot)(e.$slots,"default"),(0,t.withDirectives)((0,t.createElementVNode)("view",{textContent:(0,t.toDisplayString)(e.content),class:(0,t.normalizeClass)(["fox-badge__content fox-badge__content--sup",{"fox-badge__content--dot":e.dot,"fox-badge__content--bubble":!e.dot&&e.bubble}]),style:(0,t.normalizeStyle)(e.stl)},null,14,Hw),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var Ra=ie(Uw,[["render",jw]]),{componentName:Ww,create:Yw}=le("tag"),Xw=Yw({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:re.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:(0,t.computed)(()=>{const a=Ww;return{[a]:!0,[`${a}--${e.type}`]:!0,[`${a}--plain`]:e.plain,[`${a}--round`]:e.round,[`${a}--mark`]:e.mark,[`${a}--symbol`]:e.symbol,[`${a}--text`]:e.text,[`${a}--light`]:e.light}}),getStyle:()=>{const a={};return e.textColor?a.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(a.color=e.color),e.plain?(a.background="#fff",a["border-color"]=e.color):!e.text&&e.color&&(a.background=e.color),a},onClose:a=>{a.stopPropagation(),n("close",a)},onClick:a=>{n("click",a)}}}});function Qw(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle()),onClick:n[0]||(n[0]=(...u)=>e.onClick&&e.onClick(...u))},[(0,t.renderSlot)(e.$slots,"default"),e.closeable?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],6)}var za=ie(Xw,[["render",Qw]]),{create:Gw}=le("popover"),Zw=Gw({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 o=(0,t.ref)(),l=(0,t.ref)(),r=(0,t.ref)(e.visible);let i=(0,t.ref)(),a=(0,t.ref)();const u=(0,t.computed)(()=>{const m="fox-popover-arrow",f=e.location;return`${m} ${m}-${f.split("-")[0]} ${m}--${f}`}),s=(0,t.computed)(()=>{const m={},{bgColor:f,arrowOffset:k,location:A}=e,h=A.split("-")[0],g=A.split("-")[1],x=16;return f&&(m[`border${d(h)}Color`]=f),e.arrowOffset!=0&&(["bottom","top"].includes(h)&&(g||(m.left=`calc(50% + ${k}px)`),g=="start"&&(m.left=`${x+k}px`),g=="end"&&(m.right=`${x-k}px`)),["left","right"].includes(h)&&(g||(m.top=`calc(50% - ${k}px)`),g=="start"&&(m.top=`${x-k}px`),g=="end"&&(m.bottom=`${x+k}px`))),m}),d=m=>(m=m.toLowerCase(),m=m.replace(/\b\w+\b/g,f=>f.substring(0,1).toUpperCase()+f.substring(1)),m),v=(0,t.computed)(()=>{let m={};if(!i.value||!a.value)return{};const f=a.value.width,k=a.value.height,{width:A,height:h,left:g,top:x}=i.value,{location:B,offset:T}=e,w=B.split("-")[0],I=B.split("-")[1];let L=0,V=0;return Mn(T)&&T.length==2&&(L+=Number(T[1]),V+=Number(T[0])),A&&(["bottom","top"].includes(w)&&(m.top=`${x+(w=="bottom"?h+L:-(k+L))}px`,I||(m.left=`${-(f-A)/2+g+V}px`),I=="start"&&(m.left=`${g+V}px`),I=="end"&&(m.left=`${i.value.right+V}px`)),["left","right"].includes(w)&&(m.left=`${g+(w=="left"?-(f+L):A+L)}px`,I||(m.top=`${x-k/2+h/2-4+V}px`),I=="start"&&(m.top=`${x+V}px`),I=="end"&&(m.top=`${x+h+V}px`))),m}),c=(0,t.computed)(()=>{const m={};return e.bgColor&&(m.background=e.bgColor),m}),p=()=>{let m=Pe(o.value);e.targetId&&(m=Pe(document.querySelector(`#${e.targetId}`))),i.value=m,setTimeout(()=>{a.value={height:l.value?.clientHeight,width:l.value?.clientWidth}},0)};(0,t.onMounted)(()=>{setTimeout(()=>{p()},200)}),(0,t.watch)(()=>e.visible,m=>{r.value=m,m?(window.addEventListener("touchstart",b,!0),p()):window.removeEventListener("touchstart",b,!0)});const y=m=>{n("update",m),n("update:visible",m)},N=()=>{y(!e.visible),n("open")},S=()=>{n("update:visible",!1),n("close")},C=(m,f)=>{!m.disabled&&n("choose",m,f),e.closeOnClickAction&&S()},b=m=>{const f=o.value,k=l.value;let A=f&&!f.contains(m.target);if(e.targetId){const h=document.querySelector(`#${e.targetId}`);A=h&&!h.contains(m.target)}A&&k&&!k.contains(m.target)&&e.closeOnClickOutside&&S()};return{showPopup:r,openPopover:N,popoverArrow:u,closePopover:S,chooseItem:C,popoverRef:o,popoverContentRef:l,getRootPosition:v,customStyle:c,popoverArrowStyle:s,renderIcon:yi}}}),Jw={ref:"popoverContentRef",class:"fox-popover-content-group"},eC=["onClick"],tC={class:"fox-popover-menu-item-name"};function nC(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.targetId?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:n[0]||(n[0]=(...u)=>e.openPopover&&e.openPopover(...u))},[(0,t.renderSlot)(e.$slots,"reference")],512)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:(0,t.normalizeStyle)(e.getRootPosition)},[(0,t.createVNode)(a,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=u=>e.showPopup=u),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:(0,t.normalizeStyle)(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Jw,[e.showArrow?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.popoverArrow),style:(0,t.normalizeStyle)(e.popoverArrowStyle)},null,6)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content"),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.list,(u,s)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:s,class:(0,t.normalizeClass)([u.className,u.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:(0,t.withModifiers)(d=>e.chooseItem(u,s),["stop"])},[u.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(u.icon)),{key:0,class:"fox-popover-item-img"})):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",tC,(0,t.toDisplayString)(u.name),1)],10,eC))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}var tn=ie(Zw,[["render",nC]]),lC=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:o,round:l,avatarSize:r}=(0,t.toRefs)(n),i=(0,t.computed)(()=>{const s="avatarClass";return{[s]:!0,[`${s}--${o.value}`]:o.value}});return{avatarShape:o,avatarClass:i,getBlockClass:s=>({[s]:!0,[`${s}--round`]:l.value}),getStyle:()=>r.value?{width:r.value,height:r.value}:{width:"50px",height:"50px"}}}}),{create:oC}=le("skeleton"),aC=oC(lC({[en.name]:en})),rC={key:0},iC={key:1,class:"fox-skeleton"},sC={key:0,class:"fox-skeleton-animation"},uC={class:"fox-skeleton-content"};function cC(e,n,o,l,r,i){const a=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",iC,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",sC)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",uC,[e.avatar?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,class:(0,t.normalizeClass)(e.avatarClass),shape:e.avatarShape,style:(0,t.normalizeStyle)(e.getStyle())},null,8,["class","shape","style"])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-skeleton-content__line",style:(0,t.normalizeStyle)({width:e.width})},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.getBlockClass("fox-skeleton-blockTitle")),style:(0,t.normalizeStyle)({height:e.height})},null,6)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.row),u=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u,class:(0,t.normalizeClass)(e.getBlockClass("fox-skeleton-blockLine")),style:(0,t.normalizeStyle)({height:e.height})},null,6))),128))],4)])])):((0,t.openBlock)(),(0,t.createElementBlock)("view",rC,[(0,t.renderSlot)(e.$slots,"default")]))}var La=ie(aC,[["render",cC]]),{create:dC,componentName:fC}=le("collapse"),mC=dC({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const o=(0,t.ref)(null),l=(0,t.ref)(e.modelValue||(e.accordion?"":[])),r=(0,t.computed)(()=>({[fC]:!0}));(0,t.watch)(()=>e.modelValue,s=>{l.value=s});const i=(s,d,v=!0)=>{l.value=s,n("update:modelValue",s),n("change",s,d,v)},a=s=>{if(e.accordion)l.value===s?i("",s,!1):i(s,s,!0);else if(Array.isArray(l.value))if(l.value.includes(s)){const d=l.value.filter(v=>v!==s);i(d,s,!1)}else{const d=l.value.concat([s]);i(d,s,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},u=s=>e.accordion?l.value===s:Array.isArray(l.value)?l.value.includes(s):!1;return(0,t.provide)("collapseParent",{updateVal:a,isExpanded:u}),{collapseDom:o,classes:r}}});function pC(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"collapseDom"},[(0,t.renderSlot)(e.$slots,"default")],2)}var Fa=ie(mC,[["render",pC]]),{create:vC,componentName:hC}=le("collapse-item"),gC=vC({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:re.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=(0,t.ref)(null),o=(0,t.ref)(null),l=(0,t.reactive)((0,t.inject)("collapseParent")),r=(0,t.computed)(()=>{const c=hC;return{[c]:!0,[c+"__border"]:e.border}}),i=(0,t.computed)(()=>l?l.isExpanded(e.name):!1),a=(0,t.ref)(i.value?"auto":"0px"),u=()=>{l.updateVal(e.name)},s=()=>{i.value&&(a.value="auto")},d=()=>{a.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const c=o.value?.offsetHeight;a.value=c?`${c}px`:"auto"})})},v=()=>{const c=o.value?.offsetHeight;a.value=c?`${c}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{a.value="0px"})})};return(0,t.watch)(i,c=>{c?d():v()}),{classes:r,renderIcon:yi,wrapperRef:n,contentRef:o,open:d,toggle:u,wrapperHeight:a,expanded:i,onTransitionEnd:s}}}),yC={class:"fox-collapse-item__title-main"},bC={class:"fox-collapse-item__title-main-value"},SC=["innerHTML"],kC={key:2,class:"fox-collapse-item__title-label"},wC={key:0,class:"fox-collapse-item__title-sub"},CC=["innerHTML"],NC={key:0,class:"fox-collapse__item-extraWrapper"},AC={class:"fox-collapse__item-extraWrapper__extraRender"},BC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function TC(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:n[0]||(n[0]=(...a)=>e.toggle&&e.toggle(...a))},[(0,t.createElementVNode)("view",yC,[(0,t.createElementVNode)("view",bC,[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,SC)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",kC,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",wC,[(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,CC)),(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",NC,[(0,t.createElementVNode)("div",AC,[(0,t.renderSlot)(e.$slots,"extra")])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:(0,t.normalizeStyle)({willChange:"height",height:e.wrapperHeight}),onTransitionend:n[1]||(n[1]=(...a)=>e.onTransitionEnd&&e.onTransitionEnd(...a))},[(0,t.createElementVNode)("view",BC,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var Oa=ie(gC,[["render",TC]]),VC=(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:xC,create:$C,scope:EC}=le("table"),DC=$C({components:{RenderColumn:VC,DownArrow:re.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:o}){const{t:l}=(0,he.useFoxI18n)(EC),r=(0,t.reactive)({curData:e.data}),i=(0,t.computed)(()=>({[xC]:!0})),a=y=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${y.align?y.align:""}`]:!0}),u=y=>y.stylehead?y.stylehead:"",s=y=>y.stylecolumn?y.stylecolumn:"",d=y=>e.columns.filter(N=>N.key===y)[0],v=y=>{const N=e.columns.filter(S=>S.key===y);return N[0].stylecolumn?N[0].stylecolumn:""},c=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:a,getColumnItem:d,getColumnItemStyle:v,handleSorterClick:c,sortDataItem:p,t:l,stylehead:u,stylecolumn:s}}}),IC={class:"fox-table__main__head"},qC={class:"fox-table__main__head__tr"},PC=["onClick"],MC={class:"fox-table__main__body"},RC={key:1},zC={key:0,class:"fox-table__nodata"},LC={key:0,class:"fox-table__nodata__text"},FC={key:1,class:"fox-table__summary"},OC=["innerHTML"];function KC(e,n,o,l,r,i){const a=(0,t.resolveComponent)("DownArrow"),u=(0,t.resolveComponent)("RenderColumn");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-table__main",{"fox-table__main--striped":e.striped}])},[(0,t.createElementVNode)("view",IC,[(0,t.createElementVNode)("view",qC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,s=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__head__tr__th",e.cellClasses(s)]),key:s.key,onClick:d=>e.handleSorterClick(s),style:(0,t.normalizeStyle)(s.stylehead)},[(0,t.createTextVNode)((0,t.toDisplayString)(s.title)+" ",1),(0,t.renderSlot)(e.$slots,"icon"),!e.$slots.icon&&s.sorter?((0,t.openBlock)(),(0,t.createBlock)(a,{key:0,width:"12px",height:"12px"})):(0,t.createCommentVNode)("",!0)],14,PC))),128))])]),(0,t.createElementVNode)("view",MC,[((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,v])=>((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 v=="function"?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,slots:[v,s[d]],record:s},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",RC,(0,t.toDisplayString)(s[d]),1))],6))),128))]))),128))])],2),e.curData.length?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",zC,[(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",LC,(0,t.toDisplayString)(e.t("noData")),1))],2)])),e.summary?((0,t.openBlock)(),(0,t.createElementBlock)("view",FC,[(0,t.createElementVNode)("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,OC)])):(0,t.createCommentVNode)("",!0)],2)}var Ka=ie(DC,[["render",KC]]),{componentName:UC,create:_C}=le("ellipsis"),HC=_C({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const o=(0,t.ref)(null);let l=null,r=0;const i=(0,t.ref)(),a=(0,t.reactive)({exceeded:!1,expanded:!1}),u=(0,t.computed)(()=>({[UC]:!0}));(0,t.watch)(()=>e.content,(S,C)=>{S!=C&&s()}),(0,t.onMounted)(()=>{s()});const s=()=>{if(!o.value)return;const S=window.getComputedStyle(o.value);l=document.createElement("div"),Array.prototype.slice.apply(S).forEach(b=>{l.style.setProperty(b,S.getPropertyValue(b))}),l.style.position="fixed",l.style.left="999999px",l.style.top="999999px",l.style.zIndex="-1000",l.style.height="auto",l.style.minHeight="auto",l.style.maxHeight="auto",l.style.textOverflow="clip",l.style.whiteSpace="normal",l.style.webkitLineClamp="unset",l.style.display="block";const C=p(S.lineHeight==="normal"?e.lineHeight:S.lineHeight);r=Math.floor(C*(Number(e.rows)+.5)+p(S.paddingTop)+p(S.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),d()},d=()=>{if(l.offsetHeight<=r)a.exceeded=!1,document.body.removeChild(l);else{a.exceeded=!0;const S=e.content.length,C=Math.floor((0+S)/2),b=e.direction==="middle"?c([0,C],[C,S]):v(0,S);i.value=b,document.body.removeChild(l)}},v=(S,C)=>{const b=a.expanded?e.collapseText:e.expandText,m=e.content.length;if(C-S<=1)return e.direction==="end"?{leading:e.content.slice(0,S)+e.symbol}:{tailing:e.symbol+e.content.slice(C,m)};const f=Math.round((S+C)/2);return e.direction==="end"?l.innerText=e.content.slice(0,f)+e.symbol+b:l.innerText=b+e.symbol+e.content.slice(f,m),l.offsetHeight<=r?e.direction==="end"?v(f,C):v(S,f):e.direction==="end"?v(S,f):v(f,C)},c=(S,C)=>{const b=a.expanded?e.collapseText:e.expandText,m=e.content.length;if(S[1]-S[0]<=1&&C[1]-C[0]<=1)return{leading:e.content.slice(0,S[0])+e.symbol,tailing:e.symbol+e.content.slice(C[1],m)};const f=Math.floor((S[0]+S[1])/2),k=Math.ceil((C[0]+C[1])/2);return l.innerText=e.content.slice(0,f)+e.symbol+b+e.symbol+e.content.slice(k,m),l.offsetHeight<=r?c([f,S[1]],[C[0],k]):c([S[0],f],[k,C[1]])},p=S=>{if(!S)return 0;const C=S.match(/^\d*(\.\d*)?/);return C?Number(C[0]):0},y=S=>{S==1?(a.expanded=!0,n("change","expand")):(a.expanded=!1,n("change","collapse"))},N=()=>{n("click")};return{...(0,t.toRefs)(a),root:o,ellipsis:i,classes:u,clickHandle:y,handleClick:N}}}),jC={key:0},WC={key:1},YC={key:2};function XC(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[2]||(n[2]=(...a)=>e.handleClick&&e.handleClick(...a)),ref:"root"},[e.exceeded?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",jC,(0,t.toDisplayString)(e.content),1)),e.exceeded&&!e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",WC,[(0,t.createTextVNode)((0,t.toDisplayString)(e.ellipsis&&e.ellipsis.leading),1),e.expandText?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-ellipsis__text",onClick:n[0]||(n[0]=(0,t.withModifiers)(a=>e.clickHandle(1),["stop"]))},(0,t.toDisplayString)(e.expandText),1)):(0,t.createCommentVNode)("",!0),(0,t.createTextVNode)((0,t.toDisplayString)(e.ellipsis&&e.ellipsis.tailing),1)])):(0,t.createCommentVNode)("",!0),e.exceeded&&e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",YC,[(0,t.createTextVNode)((0,t.toDisplayString)(e.content)+" ",1),e.expandText?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-ellipsis__text",onClick:n[1]||(n[1]=(0,t.withModifiers)(a=>e.clickHandle(2),["stop"]))},(0,t.toDisplayString)(e.collapseText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2)}var Ua=ie(HC,[["render",XC]]),{componentName:QC,create:GC}=le("animate"),ZC=GC({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:o,loop:l,action:r}=(0,t.toRefs)(e),i=(0,t.reactive)({clicked:!1});let a=(0,t.computed)(()=>({"fox-animate__container":!0,[`${QC}-${o.value}`]:r.value==="initial"||i.clicked?o.value:!1,loop:l.value}));const u=s=>{i.clicked=!0,l.value||setTimeout(()=>{i.clicked=!1},1e3),n("click",s)};return{...(0,t.toRefs)(i),classes:a,handleClick:u}}}),JC={class:"fox-animate"};function e2(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",JC,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClick&&e.handleClick(...a)),style:(0,t.normalizeStyle)({animationDuration:e.duration?`${e.duration}ms`:void 0})},[(0,t.renderSlot)(e.$slots,"default")],6)])}var _a=ie(ZC,[["render",e2]]),{componentName:t2,create:n2}=le("watermark"),l2=n2({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const o=(0,t.reactive)({base64Url:""}),{zIndex:l,gapX:r,gapY:i,width:a,height:u,rotate:s,image:d,imageWidth:v,imageHeight:c,content:p,fontStyle:y,fontWeight:N,fontColor:S,fontSize:C,fontFamily:b}=e,m=()=>{const k=document.createElement("canvas"),A=window.devicePixelRatio,h=k.getContext("2d"),g=`${(r+a)*A}px`,x=`${(i+u)*A}px`,B=a*A,T=u*A;if(k.setAttribute("width",g),k.setAttribute("height",x),h){if(d){h.translate(B/2,T/2),h.rotate(Math.PI/180*Number(s));const w=new Image;w.crossOrigin="anonymous",w.referrerPolicy="no-referrer",w.src=d,w.onload=()=>{h.drawImage(w,-v*A/2,-c*A/2,v*A,c*A),h.restore(),o.base64Url=k.toDataURL()}}else if(p){h.textBaseline="middle",h.textAlign="center",h.translate(B/2,T/2),h.rotate(Math.PI/180*Number(s));const w=Number(C)*A;h.font=`${y} normal ${N} ${w}px/${T}px ${b}`,h.fillStyle=S,h.fillText(p,0,0),h.restore(),o.base64Url=k.toDataURL()}}else throw new Error("当前环境不支持Canvas")};m(),(0,t.watch)(()=>[l,r,i,a,u,s,d,v,c,p,y,N,S,C,b],()=>{m()});const f=(0,t.computed)(()=>{const k=t2;return{[k]:!0,[`${k}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(o),classes:f}}});function o2(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}var Ha=ie(l2,[["render",o2]]);function a2(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:r2,create:i2}=le("trend-arrow"),s2=i2({components:{TriangleUp:re.TriangleUp,TriangleDown:re.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=(0,t.reactive)({rateTrend:e.rate>0}),o=(0,t.computed)(()=>({[r2]:!0})),l=(0,t.computed)(()=>{const{rate:i,digits:a,showSign:u,showZero:s}=e;n.rateTrend=i>0;const d=Math.abs(i);return!s&&i===0?"--":`${u&&i!==0?n.rateTrend?"+":"-":""}${a2(Number(d),a)}%`}),r=(0,t.computed)(()=>{const{dropColor:i,riseColor:a,syncTextColor:u,textColor:s,rate:d}=e;return{color:d===0?s:u?n.rateTrend?a:i:s}});return{...(0,t.toRefs)(n),classes:o,calcRate:l,calcStyle:r}}});function u2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("TriangleUp"),u=(0,t.resolveComponent)("TriangleDown");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.arrowLeft?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?(0,t.renderSlot)(e.$slots,"up-icon",{key:1},()=>[(0,t.createVNode)(a,{color:e.riseColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),Number(e.rate)!==0&&!e.rateTrend?(0,t.renderSlot)(e.$slots,"down-icon",{key:2},()=>[(0,t.createVNode)(u,{color:e.dropColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.arrowLeft?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)):(0,t.createCommentVNode)("",!0)],2)}var ja=ie(s2,[["render",u2]]),{create:c2}=le("tour"),d2=c2({components:{[tn.name]:tn,Close:re.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const o=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),l=(0,t.ref)({}),r=(0,t.computed)(()=>"fox-tour"),i=(0,t.computed)(()=>{const{offset:v,maskWidth:c,maskHeight:p}=e,{width:y,height:N,left:S,top:C}=l.value,b=[S+y/2,C+N/2],m=Number(c||y),f=Number(p||N);return{width:`${m+ +v[1]*2}px`,height:`${f+ +v[0]*2}px`,top:`${b[1]-f/2-+v[0]}px`,left:`${b[0]-m/2-+v[1]}px`}}),a=v=>{v=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,(0,t.nextTick)(()=>{o.showPopup=!0,u()}),n("change",o.active)},u=()=>{const v=Pe(document.querySelector(`#${e.steps[o.active].target}`));l.value=v},s=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&s()};return(0,t.onMounted)(()=>{o.active=0,u()}),(0,t.watch)(()=>e.modelValue,v=>{v&&u(),o.active=0,o.showTour=v,o.showPopup=v}),{...(0,t.toRefs)(o),classes:r,maskStyle:i,changeStep:a,close:s,handleClickMask:d}}}),f2={key:0,class:"fox-tour-content"},m2={key:0,class:"fox-tour-content-top"},p2={class:"fox-tour-content-inner"},v2={class:"fox-tour-content-bottom"},h2={class:"fox-tour-content-bottom-init"},g2={class:"fox-tour-content-bottom-operate"},y2={key:1,class:"fox-tour-content fox-tour-content-tile"},b2={class:"fox-tour-content-inner"};function S2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("Close"),u=(0,t.resolveComponent)("fox-popover");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...s)=>e.handleClickMask&&e.handleClickMask(...s))},null,512),[[t.vShow,e.showTour]]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.steps,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:d,style:{height:"0"}},[d==e.active?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.showTour?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:(0,t.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(u,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=v=>e.showPopup=v),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",f2,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",m2,[(0,t.createElementVNode)("div",{onClick:n[1]||(n[1]=(...v)=>e.close&&e.close(...v))},[(0,t.createVNode)(a,{class:"fox-tour-content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",p2,(0,t.toDisplayString)(s.content),1),(0,t.createElementVNode)("div",v2,[(0,t.createElementVNode)("div",h2,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",g2,[(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]=v=>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]=(...v)=>e.close&&e.close(...v))},(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]=v=>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",y2,[(0,t.createElementVNode)("div",b2,(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 Wa=ie(d2,[["render",S2]]),{componentName:k2,create:w2}=le("barrage"),C2=w2({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const n=new Date().getTime(),o=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[k2]:!0}));let r=(0,t.ref)(document.createElement("div")),i=(0,t.ref)(document.createElement("div")),a=null;const u=(0,t.ref)(e.danmu),s=(0,t.ref)(e.rows),d=(0,t.ref)(e.top),v=(0,t.ref)(0),c=e.speeds,p=(0,t.ref)(0);(0,t.onMounted)(()=>{y(),o&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(S(),v.value=0,N("hidden")):document.visibilityState==="visible"&&y()})}),(0,t.onUnmounted)(()=>{u.value=[],S()});const y=()=>{p.value=r.value.offsetWidth,o&&N("init"),setTimeout(()=>{r.value?.style.setProperty("--move-distance",`-${p.value}px`),b()},300)},N=f=>{let k=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const A=[];k&&Array.from(k).forEach(h=>{f=="init"?(h.style.opacity="0",A.push(h)):(h.classList="",h.style={})}),f=="init"&&(u.value=A)},S=()=>{a&&(clearTimeout(a),a=null)};(0,t.watch)(()=>e.danmu,f=>{e.danmu.length>0&&(u.value=[...f])});const C=f=>{const k=v.value%u.value.length;!e.loop&&v.value===u.value.length?u.value.splice(u.value.length,0,f):u.value.splice(k,0,f)},b=()=>{S(),a=setTimeout(()=>{m()},e.frequency)},m=()=>{const f=e.loop?v.value%u.value.length:v.value;let k=document.createElement("view");o&&typeof u.value[f]=="object"?(k=u.value[f],k?.classList?.add("fox-barrage__item")):(k.innerHTML=u.value[f],k.classList.add("fox-barrage__item"),i.value.appendChild(k)),(0,t.nextTick)(()=>{const A=k.offsetHeight;if(k?.classList?.add("move"),k.style.animationDuration=`${c}ms`,k.style.top=f%s.value*(A+d.value)+20+"px",k.style.opacity="1",!o){const h=k.offsetWidth;k.style.width=h+20+"px"}k.addEventListener("animationend",()=>{o?k.classList.remove("move"):i.value.removeChild(k)}),!(!e.loop&&v.value>=u.value.length-1)&&(v.value++,v.value>=u.value.length&&(v.value=0),k.removeEventListener("animationend",()=>{}),b())})};return{classTime:n,classes:l,danmuList:u,dmBody:r,dmContainer:i,add:C}}});function N2(e,n,o,l,r,i){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{ref:"dmBody",class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",{ref:"dmContainer",class:(0,t.normalizeClass)(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["slotBody","slotBody"+e.classTime])},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)],2)],2)}var Ya=ie(C2,[["render",N2]]),{componentName:A2,create:B2,scope:T2}=le("signature"),V2=B2({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:vt},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n,expose:o}){const{toLocaleRefs:l}=(0,he.useFoxI18n)(T2),r=l(e,["unSupportTpl","reSign","confirmText"]),i=(0,t.ref)(null),a=(0,t.ref)(null),u=(0,t.computed)(()=>({[A2]:!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 f=document.createElement("canvas");return!!(f.getContext&&f.getContext("2d"))},v=()=>{i.value.addEventListener(s.events[0],c,!1)},c=f=>{f.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],N,!1)},p=f=>{f.preventDefault();let k=s.isSupportTouch?f.touches[0]:f;n("signing",k);let A=i.value.getBoundingClientRect(),h=k.clientX-A.left,g=k.clientY-A.top;s.ctx.lineTo(h,g),s.ctx.stroke()},y=f=>{f.preventDefault(),n("end"),i.value.removeEventListener(s.events[1],p,!1),i.value.removeEventListener(s.events[2],y,!1)},N=f=>{f.preventDefault(),i.value.removeEventListener(s.events[1],p,!1),i.value.removeEventListener(s.events[2],y,!1)},S=()=>{i.value.addEventListener(s.events[2],y,!1),s.ctx.clearRect(0,0,s.canvasWidth,s.canvasHeight),s.ctx.closePath(),n("clear")},C=()=>{m(i.value)},b=f=>{if(!f)return!0;var k=document.createElement("canvas");return k.width=f.width,k.height=f.height,f?.toDataURL()==k.toDataURL()},m=f=>{let k;switch(e.type){case"png":k=f.toDataURL("image/png");break;case"jpg":k=f.toDataURL("image/jpeg",.8);break}n("confirm",b(f)?"请绘制签名":f,b(f)?"":k)};return(0,t.onMounted)(()=>{d()&&(s.ctx=i.value.getContext("2d"),s.canvasWidth=a.value.offsetWidth,s.canvasHeight=a.value.offsetHeight,v())}),o({confirm:C,clear:S}),{...r,...(0,t.toRefs)(s),canvas:i,wrap:a,isCanvasSupported:d,confirm:C,clear:S,classes:u}}}),x2={class:"fox-signature__inner",ref:"wrap"},$2=["height","width"],E2={key:0,class:"fox-signature-unsopport"},D2={class:"fox-signature__toolbar"};function I2(e,n,o,l,r,i){const a=(0,t.resolveComponent)("FoxButton");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",x2,[(0,t.withDirectives)((0,t.createElementVNode)("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,$2),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("p",E2,(0,t.toDisplayString)(e.unSupportTpl),1))],512),(0,t.createElementVNode)("div",D2,[(0,t.renderSlot)(e.$slots,"toolbar",{},()=>[(0,t.createVNode)(a,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=u=>e.clear())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.reSign),1)]),_:1}),(0,t.createVNode)(a,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=u=>e.confirm())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.confirmText),1)]),_:1})])])],2)}var Xa=ie(V2,[["render",I2]]),q2=[ro,so,uo,co,fo,sn,Jn,po,vo,ho,go,yo,nl,So,Co,Bo,To,ul,cl,Vo,dl,fl,xo,Eo,Dt,Do,qo,gl,Po,Ro,cn,dn,al,zo,Lo,Fo,Oo,st,Ko,Uo,el,Bt,tl,_o,Ho,vt,jo,Wo,Yo,ft,Ce,Xo,Qo,Go,Zo,Jo,ea,ta,na,la,oa,aa,ra,ia,sa,ua,ca,da,fa,ma,pa,Gt,hl,rl,sl,il,yl,pl,un,va,ha,ga,ya,ba,Sa,ka,Jt,vl,wa,Na,ml,It,Ba,Ta,en,Va,xa,Zt,$a,Ea,Da,xt,Ia,qa,$t,Et,Gn,bl,Pa,Ma,Ra,za,tn,La,Fa,Oa,Ka,Ua,_a,Ha,ja,Wa,Ya,Xa],P2=new Js(q2,"4.0.0");exports.AbstractPageScopeKey=oo;exports.ActionSheet=ba;exports.FoxActionSheet=ba;exports.ActionsheetItem=Po;exports.FoxActionsheetItem=Po;exports.ActionsheetPane=gl;exports.FoxActionsheetPane=gl;exports.Animate=_a;exports.FoxAnimate=_a;exports.Audio=Ba;exports.FoxAudio=Ba;exports.AudioOperate=Ta;exports.FoxAudioOperate=Ta;exports.Avatar=en;exports.FoxAvatar=en;exports.AvatarGroup=Va;exports.FoxAvatarGroup=Va;exports.BackTop=Sa;exports.FoxBackTop=Sa;exports.Badge=Ra;exports.FoxBadge=Ra;exports.Barrage=Ya;exports.FoxBarrage=Ya;exports.Broadcast=Zr;exports.BroadcastKey=Oe;exports.Button=vt;exports.FoxButton=vt;exports.ButtonsItem=po;exports.FoxButtonsItem=po;exports.Calendar=sl;exports.FoxCalendar=sl;exports.CalendarItem=To;exports.FoxCalendarItem=To;exports.Cascader=rl;exports.FoxCascader=rl;exports.CascaderItem=Co;exports.FoxCascaderItem=Co;exports.Cell=jo;exports.FoxCell=jo;exports.CellGroup=Yo;exports.FoxCellGroup=Yo;exports.Checkbox=dl;exports.FoxCheckbox=dl;exports.CheckboxGroup=fl;exports.FoxCheckboxGroup=fl;exports.CheckboxItem=xo;exports.FoxCheckboxItem=xo;exports.CircleProgress=$a;exports.FoxCircleProgress=$a;exports.Col=Go;exports.FoxCol=Go;exports.Collapse=Fa;exports.FoxCollapse=Fa;exports.CollapseItem=Oa;exports.FoxCollapseItem=Oa;exports.Content=co;exports.FoxContent=co;exports.CountDown=Ma;exports.FoxCountDown=Ma;exports.CountUp=Pa;exports.FoxCountUp=Pa;exports.DataItemsKey=Ut;exports.DateItem=Bo;exports.FoxDateItem=Bo;exports.DatePicker=il;exports.FoxDatePicker=il;exports.DateUtils=ct;exports.Dialog=Jt;exports.FoxDialog=Jt;exports.Divider=ea;exports.FoxDivider=ea;exports.Domain=Ln;exports.DomainKey=et;exports.DomainProvider=_o;exports.FoxDomainProvider=_o;exports.Drag=ka;exports.FoxDrag=ka;exports.Dropdown=Uo;exports.FoxDropdown=Uo;exports.Elevator=ua;exports.FoxElevator=ua;exports.Ellipsis=Ua;exports.FoxEllipsis=Ua;exports.Empty=Da;exports.FoxEmpty=Da;exports.FixedNav=oa;exports.FoxFixedNav=oa;exports.FloatingButton=Fo;exports.FoxFloatingButton=Fo;exports.FooterBar=uo;exports.FoxFooterBar=uo;exports.FoxGrid=ta;exports.Grid=ta;exports.FoxGridItem=na;exports.GridItem=na;exports.FoxGroup=fo;exports.Group=fo;exports.FoxHeaderBar=so;exports.HeaderBar=so;exports.FoxHintText=Dt;exports.HintText=Dt;exports.FoxIcon=Wo;exports.Icon=Wo;exports.FoxImage=Xo;exports.Image=Xo;exports.FoxImagePreview=bl;exports.ImagePreview=bl;exports.FoxIndicator=da;exports.Indicator=da;exports.FoxInfiniteLoading=vl;exports.InfiniteLoading=vl;exports.FoxInputItem=ho;exports.InputItem=ho;exports.FoxInputNumber=yl;exports.InputNumber=yl;exports.FoxInputNumberItem=Ro;exports.InputNumberItem=Ro;exports.FoxItem=sn;exports.Item=sn;exports.FoxLayout=Qo;exports.Layout=Qo;exports.FoxLinkItem=Do;exports.LinkItem=Do;exports.FoxList=xa;exports.List=xa;exports.FoxMapping=tl;exports.Mapping=tl;exports.FoxMenu=aa;exports.Menu=aa;exports.FoxMenuItem=ra;exports.MenuItem=ra;exports.FoxMessageBox=st;exports.MessageBox=st;exports.FoxMoneyItem=go;exports.MoneyItem=go;exports.FoxMoreButton=Oo;exports.MoreButton=Oo;exports.FoxNavbar=la;exports.Navbar=la;exports.FoxNoticeBar=Ea;exports.NoticeBar=Ea;exports.FoxNotify=Na;exports.Notify=Na;exports.FoxNumberKeyboard=ga;exports.NumberKeyboard=ga;exports.FoxOverLay=ft;exports.OverLay=ft;exports.FoxPage=ro;exports.Page=ro;exports.FoxPagination=ca;exports.Pagination=ca;exports.FoxPicker=un;exports.Picker=un;exports.FoxPickerItem=So;exports.PickerItem=So;exports.FoxPopover=tn;exports.Popover=tn;exports.FoxPopoverDialog=el;exports.PopoverDialog=el;exports.FoxPopup=Ce;exports.Popup=Ce;exports.FoxPopupWrapper=Ko;exports.PopupWrapper=Ko;exports.FoxPrice=Gn;exports.Price=Gn;exports.FoxProgress=Zt;exports.Progress=Zt;exports.FoxPullRefresh=wa;exports.PullRefresh=wa;exports.FoxRadio=ul;exports.Radio=ul;exports.FoxRadioGroup=cl;exports.RadioGroup=cl;exports.FoxRadioItem=Vo;exports.RadioItem=Vo;exports.FoxRange=Gt;exports.Range=Gt;exports.FoxRate=pl;exports.Rate=pl;exports.FoxRateItem=qo;exports.RateItem=qo;exports.FoxRollingProvider=Ho;exports.RollingProvider=Ho;exports.FoxRow=Zo;exports.Row=Zo;exports.FoxRowItem=Jn;exports.RowItem=Jn;exports.FoxSearchBar=hl;exports.SearchBar=hl;exports.FoxShortPassword=va;exports.ShortPassword=va;exports.FoxSideNavBar=fa;exports.SideNavBar=fa;exports.FoxSideNavBarItem=ma;exports.SideNavBarItem=ma;exports.FoxSignature=Xa;exports.Signature=Xa;exports.FoxSkeleton=La;exports.Skeleton=La;exports.FoxSlotItem=vo;exports.SlotItem=vo;exports.FoxStep=qa;exports.Step=qa;exports.FoxSteps=Ia;exports.Steps=Ia;exports.FoxStepsBar=Lo;exports.StepsBar=Lo;exports.FoxSticky=Jo;exports.Sticky=Jo;exports.FoxSubSideNavBar=pa;exports.SubSideNavBar=pa;exports.FoxSwipe=ya;exports.Swipe=ya;exports.FoxSwiper=$t;exports.Swiper=$t;exports.FoxSwiperItem=Et;exports.SwiperItem=Et;exports.FoxSwitch=ml;exports.Switch=ml;exports.FoxSwitchItem=Eo;exports.SwitchItem=Eo;exports.FoxTabbar=ia;exports.Tabbar=ia;exports.FoxTabbarItem=sa;exports.TabbarItem=sa;exports.FoxTable=Ka;exports.Table=Ka;exports.FoxTabsBar=cn;exports.TabsBar=cn;exports.FoxTabsContainer=dn;exports.TabsContainer=dn;exports.FoxTabsFrame=zo;exports.TabsFrame=zo;exports.FoxTabsPane=al;exports.TabsPane=al;exports.FoxTag=za;exports.Tag=za;exports.FoxText=Bt;exports.Text=Bt;exports.FoxTextarea=nl;exports.Textarea=nl;exports.FoxTextareaItem=yo;exports.TextareaItem=yo;exports.FoxToast=It;exports.Toast=It;exports.FoxTour=Wa;exports.Tour=Wa;exports.FoxTrendArrow=ja;exports.TrendArrow=ja;exports.FoxUploader=ha;exports.Uploader=ha;exports.FoxVideo=xt;exports.Video=xt;exports.FoxWaterMark=Ha;exports.WaterMark=Ha;exports.InnerPageScopeKey=lo;exports.PriorityPolicy=wt;exports.UniqueID=Zn;exports.ValidateSchema=li;exports.ValidateSchemaKey=Ze;exports.browseProperty=vi;exports.cancelRaf=Lr;exports.clamp=je;exports.clearNonNumber=Ll;exports.compareTo=Ml;exports.createBroadcast=ln;exports.createValidateSchema=zn;exports.debounce=Me;exports.debounceRef=Fs;exports.decimalLength=Gr;exports.default=P2;exports.defineConfigDomain=ai;exports.defineDataItem=ri;exports.defineDomain=no;exports.defineDomainItemProperty=$e;exports.defineItem=Ve;exports.definePageState=ii;exports.defineSimpleItem=He;exports.deleteGlobalValidator=Ms;exports.disabledProperty=pi;exports.divide=Zl;exports.excludeProps=Qe;exports.extend=Nt;exports.floatData=$s;exports.getGlobalIcons=_n;exports.getGlobalValidateCheckEvents=ei;exports.getGlobalValidateResetEvents=ni;exports.getPageContentAreaHeight=xn;exports.getPageContentAreaWidth=$n;exports.getPageFooterAreaHeight=Kn;exports.getPageHeaderAreaHeight=On;exports.getRootDomain=kt;exports.hasSymbol=jr;exports.includeProps=be;exports.indexOf=Vs;exports.injectAbstractPageScope=an;exports.injectAbstractPageScopeForContent=fi;exports.injectAbstractPageScopeForFooterBar=di;exports.injectAbstractPageScopeForHeaderBar=ci;exports.injectInnerPageScope=on;exports.integerLength=Qr;exports.isArray=Mn;exports.isArrayLike=Yr;exports.isBrowser=lt;exports.isDate=We;exports.isDisplayNone=Jl;exports.isESModule=Cs;exports.isEmptyString=pe;exports.isEqual=xe;exports.isFunction=Nn;exports.isHidden=Rl;exports.isMap=bs;exports.isNil=Te;exports.isNumberString=eo;exports.isObject=De;exports.isPlainObject=ws;exports.isPromise=Ct;exports.isRegExp=zl;exports.isSet=Ss;exports.isString=_r;exports.isSubPage=Hs;exports.isSymbol=ks;exports.isTouch=ll;exports.isWindow=Wr;exports.kebabToPascal=Bn;exports.lastIndexOf=xs;exports.makeArray=Ts;exports.merge=Xr;exports.multiply=Or;exports.negate=Kr;exports.nextTick=As;exports.numberFormat=Pn;exports.objectToString=Hr;exports.once=Os;exports.overrideGlobalIcons=iu;exports.overrideGlobalValidateHandler=qs;exports.padZero=rt;exports.pascalToKebab=Es;exports.preventDefault=Fl;exports.property=Ae;exports.provideAbstractPageScope=ui;exports.provideInnerPageScope=si;exports.px2Number=_s;exports.raf=Ge;exports.readonlyProperty=mi;exports.setGlobalValidateCheckEvents=Rs;exports.setGlobalValidateHandler=Is;exports.setGlobalValidateMessages=Ls;exports.setGlobalValidateResetEvents=zs;exports.setGlobalValidator=Ps;exports.throttle=Vn;exports.toBoolean=ye;exports.toNumber=me;exports.toPadding=Ue;exports.toPx=ce;exports.toPxDesc=Us;exports.toPxString=ue;exports.toTypeString=Rn;exports.toValue=Re;exports.tryTimes=to;exports.typeOf=An;exports.unNumberFormat=Ur;exports.updatePageState=Ol;exports.useBroadcast=Kt;exports.useDomain=ot;exports.useInnerSize=Un;exports.usePageState=Fn;exports.usePosition=mo;exports.useRawTouch=ol;exports.useRect=Pe;exports.useSize=io;exports.useSlotChildren=rn;exports.useTouch=pt;exports.valueLength=we;
|