@fox-js/foxui 4.0.1-84 → 4.0.1-86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Fi=Object.create,Pr=Object.defineProperty,Ki=Object.getOwnPropertyDescriptor,Ui=Object.getOwnPropertyNames,Hi=Object.getPrototypeOf,_i=Object.prototype.hasOwnProperty,He=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),ji=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var a=Ui(n),r=0,s=a.length,i;r<s;r++)i=a[r],!_i.call(e,i)&&i!==o&&Pr(e,i,{get:(u=>n[u]).bind(null,i),enumerable:!(l=Ki(n,i))||l.enumerable});return e},_e=(e,n,o)=>(o=e!=null?Fi(Hi(e)):{},ji(n||!e||!e.__esModule?Pr(o,"default",{value:e,enumerable:!0}):o,e));let t=require("vue"),lt=require("@fox-js/validator"),le=require("@fox-js/icons-vue"),me=require("@fox-js/i18n");var ln=window,Wi=typeof window<"u";function Yi(){return typeof ln<"u"?ln.requestAnimationFrame||ln.webkitRequestAnimationFrame||function(e){ln.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Mr(e){Wi?cancelAnimationFrame(e):clearTimeout(e)}var We=Yi();function hn(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Ne(e),n=Ne(n),[e,n]=Ql(Ne(e),Ne(n)),o==1&&(l==1?e=ml(e):n=ml(n));let a=zr(e,n);return o?o==2?"-"+Ne(a):e.length<a.length?Ne(a.substring(1)):"-"+Ne(ml(a)):Ne(a)}function ml(e){let n="",o=e.length,l=e.split(".")[1],a=l?l.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return zr(n,r)}function Ne(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Ql(e,n){let o=e.split("."),l=n.split("."),a=o[0].length,r=l[0].length;return a>r?l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,r=l[1]?l[1].length:0,(a||r)&&(a>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function zr(e,n){[e,n]=Ql(e,n);let o="",l=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let r=parseInt(e[a])+parseInt(n[a])+l;o=r%10+o,l=Math.floor(r/10)}return l?l.toString()+o:o}var we=(function(e){return e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e})({});function Ht(e,n=0,o=we.HALF_EVEN){if(o===we.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let a=e.split("."),r=a[0],s=a[1];if(n<0){if(n=-n,r.length<=n)return"0";{let u=r.substr(0,r.length-n);return e=u+"."+r.substr(r.length-n)+s,u=Ht(e,0,o),(l?"-":"")+u+new Array(n+1).join("0")}}if(n==0)return r.length,Ha(a[1],r,l,o)?(l?"-":"")+pl(r):(l?"-":"")+r;if(a[1]){if(a[1].length<n)return(l?"-":"")+r+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");s=a[1].substring(0,n);let i=a[1].substring(n);return i&&Ha(i,s,l,o)&&(s=pl(s),s.length>n)?(l?"-":"")+pl(r,parseInt(s[0]))+"."+s.substring(1):(l?"-":"")+r+"."+s}function Ha(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===we.DOWN||!o&&l===we.FLOOR||o&&l===we.CEILING)return!1;if(l===we.UP||o&&l===we.FLOOR||!o&&l===we.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(l){case we.HALF_DOWN:return!1;case we.HALF_UP:return!0;case we.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function pl(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let a=o;a>=0;a--){let r=parseInt(e[a])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function Nl(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=Et(e),n=Et(n);let l=0,a=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(a=n.length-n.indexOf(".")-1);let r=l+a;if(e=Et(e.replace(".","")),n=Et(n.replace(".","")),e.length<n.length){let c=e;e=n,n=c}if(n=="0")return"0";let s=n.length,i=0,u=[],m=s-1,p="";for(let c=0;c<s;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let h=0;for(let y=n.length-1;y>=m&&y>=0;y--)u[y]>-1&&u[y]<e.length&&(h+=parseInt(e[u[y]--])*parseInt(n[y]));h+=i,i=Math.floor(h/10),p=h%10+p,m--}return p=Et(Xi(p,r)),o==1&&(p="-"+p),p}function Xi(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function Et(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Al(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ne(n.replace(".","")),a>=0){let m=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(m==-1)e=Ne(e+new Array(a+1).join("0"));else if(a>m)e=e.replace(".",""),e=Ne(e+new Array(a-m+1).join("0"));else if(a<m){e=e.replace(".","");let p=e.length-m+a;e=Ne(e.substring(0,p)+"."+e.substring(p))}else a==m&&(e=Ne(e.replace(".","")))}let r=0,s=n.length,i="",u=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),u.indexOf(".")>-1){let m=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(m+=s-u.length,u=u+new Array(s-u.length+1).join("0")),r=m,i="0."+new Array(m).join("0")}for(o=o+2;r<=o;){let m=0;for(;parseInt(u)>=parseInt(n);)u=hn(u,"-"+n),m++;i+=m,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,u=u+"0")}return(l==1?"-":"")+Ne(Ht(i,o-2))}function Bl(e,n){return e=e.toString(),n=n.toString(),n=Tl(n),hn(e,n)}function Tl(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function _a(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=Bl(e,Nl(n,Ht(Al(e,n),0,we.FLOOR)));return o+l}function ja(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Wa(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=Ql(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}var Gt=class ce{value;static RoundingModes=we;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,l]=n.split(/[eE]/);o=Ne(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=a+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=a+Ne(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=a+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=ce.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ce.validate(n);let a=n.charAt(0)=="-";a&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var s="",i=r;i>0;)i<o?(o=i,i=0):i-=o,s=n.substring(i,i+o)+(i<r-o&&i>=0?l:"")+s;return(a?"-":"")+s+n.substring(r)}getPrettyValue(n,o){return ce.getPrettyValue(this.value,n,o)}static round(n,o=0,l=we.HALF_EVEN){if(n=ce.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Ht(n,o,l)}round(n=0,o=we.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ce(Ht(this.value,n,o))}static floor(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,we.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,we.FLOOR)}static ceil(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,we.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,we.CEILING)}static add(n,o){return n=ce.validate(n),o=ce.validate(o),hn(n,o)}add(n){return new ce(hn(this.value,n.getValue()))}static subtract(n,o){return n=ce.validate(n),o=ce.validate(o),Bl(n,o)}subtract(n){return new ce(Bl(this.value,n.getValue()))}static multiply(n,o){return n=ce.validate(n),o=ce.validate(o),Nl(n,o)}multiply(n){return new ce(Nl(this.value,n.getValue()))}static divide(n,o,l){return n=ce.validate(n),o=ce.validate(o),Al(n,o,l)}divide(n,o){return new ce(Al(this.value,n.getValue(),o))}static modulus(n,o){return n=ce.validate(n),o=ce.validate(o),_a(n,o)}modulus(n){return new ce(_a(this.value,n.getValue()))}static compareTo(n,o){return n=ce.validate(n),o=ce.validate(o),Wa(n,o)}compareTo(n){return Wa(this.value,n.getValue())}static negate(n){return n=ce.validate(n),Tl(n)}negate(){return new ce(Tl(this.value))}};function Lr(e,n){return Gt.multiply(`${e}`,`${n}`)}function Gl(e,n,o=8){return Gt.divide(`${e}`,`${n}`,o)}var f2=Gt.RoundingModes;function Vl(e,n){return e=`${e}`,n=`${n}`,Gt.compareTo(e,n)}function Or(e){return Gt.negate(e)}function An(e,n=-1,o=!1,l=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,u="",m=r.indexOf(".");m!=-1&&(i=r.substring(0,m),u=r.substring(m+1)),n!=-1&&(n<u.length?u=u.substring(0,n):o&&n>u.length&&(u=u.padEnd(n,"0")));let p;if(l>0){let c="",h=i.split("").reverse();for(let y=0;y<h.length;y++)c+=h[y]+((y+1)%l==0&&y+1!=h.length?a:"");u.length==0?p=`${s}${c.split("").reverse().join("")}`:p=`${s}${c.split("").reverse().join("")}.${u}`}else u.length==0?p=`${s}${i}`:p=`${s}${i}.${u}`;return p}function Rr(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}var Qe=typeof window<"u",Fe=We;function Me(e){return e==null}var Bn=Array.isArray,Qi=e=>Tn(e)==="[object Map]",Gi=e=>Tn(e)==="[object Set]",Ue=e=>e instanceof Date,vn=e=>typeof e=="function",Fr=e=>typeof e=="string",Zi=e=>typeof e=="symbol",Ee=e=>e!==null&&typeof e=="object",bt=e=>Ee(e)&&vn(e.then)&&vn(e.catch),Kr=Object.prototype.toString,Tn=e=>Kr.call(e),Ji=e=>Tn(e)==="[object Object]",Ur=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function es(e){return e.__esModule||Ur&&e[Symbol.toStringTag]==="Module"}var ts=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function St(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,a=!1;for(typeof n=="boolean"&&(a=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let r=e[o];for(let s in r){let i=n[s],u=r[s];if(i!==u)if(a===!0&&u&&typeof u=="object"){let m;Array.isArray(u)?m=i&&Array.isArray(i)?i:[]:m=i&&typeof i=="object"?i:{},n[s]=St(a,m,u)}else u!==void 0&&(n[s]=u)}}return n}var hl=ts?Promise.resolve():null;function ns(e,...n){hl!==null?n&&n.length>0?hl.then(()=>{e(n)}):hl.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ye(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function fe(e){return typeof e=="number"?e:Number(e)}var ls={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function kt(e){let n=Object.prototype.toString.call(e);return e==null?String(e):ls[n]||"object"}function Hr(e){if(!e||e.nodeType!==1)return!0;let n=e;for(;n;){if(n.hidden)return!0;const o=window.getComputedStyle(n);if(o.display==="none"||o.visibility==="hidden"||o.visibility==="collapse")return!0;n=n.parentElement}return!1}function Zl(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let n=e.parentElement;for(;n;){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function _r(e){return e&&typeof e=="object"&&"setInterval"in e}function jr(e){let n=!!e&&"length"in e&&e.length,o=kt(e);return o==="function"||_r(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Wr(e,n){let o=+n.length,l=0,a=e.length;for(;l<o;l++)e[a++]=n[l];return e.length=a,e}function os(e,n=[]){let o=n;return e!=null&&(jr(Object(e))?Wr(o,typeof e=="string"?[e]:e):o.push(e)),o}function De(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=kt(e);if(o!==kt(n))return!1;if(o==="object"){let l=Object.keys(e),a=Object.keys(n);if(l.length!==a.length)return!1;for(let r=0;r<l.length;r++){let s=l[r],i=e[s],u=n[s];if(!De(i,u))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let a=e[l],r=n[l];if(!De(a,r))return!1}return!0}return!1}function xl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Vn(e){return ue(e)?!1:(e.charAt(0)=="-"&&(e=e.substring(1)),ue(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Yr(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 Xr(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 Ya(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 $l(e,n=!0,o=!0){n?e=Ya(e,".",/\./g):e=e.replace(/\./g,""),o?e=Ya(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function as(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(De(e,o))return!0}):n.indexOf(e)}function rs(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(De(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function be(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function he(e,...n){const o={};return n.forEach(l=>{for(const a in l)o[a]=e[a]}),o}function Ge(e,...n){const o=[];n.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const l={};for(const a in e)o.includes(a)||(l[a]=e[a]);return l}var is=(e,n,o)=>{const l=Object.assign({},e),a=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(l[r]=n[a[r]]):n[r]&&(l[r]=n[r])}),l):e};function El(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}var nt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Ke=(e,n,o)=>Math.min(Math.max(e,n),o);function gn(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function ss(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var ke=Symbol.for("BroadcastKey"),Jl=class{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(e,n,o){this.parent=e,this.proxy=n,this.name=o,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(o=>e===o);n!==-1&&this.children.splice(n,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(e,n,o){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,a={matched:e,action:n,args:o};return this.persistantMessages.set(l,a),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(n=>{e.push(n)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,n){if(!n||n.messagingPolicy==="Once"&&n.resolved===!0)return!1;let o=!1;return!n.name||n.name==="*"||n.name==="+"||xl(n.name)&&e&&n.name.test(e)?o=!0:typeof n.name=="function"?o=Reflect.apply(n.name,null,[e]):n.name===e&&(o=!0),o}trigger(e,n,o){let l=null;const a=this.callbacks.get(n);typeof a=="function"&&(l=Reflect.apply(a,this.proxy,[...o]));const r=this.proxy??{};typeof r[n]=="function"&&(l=Reflect.apply(r[n],r,[...o])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(l)}pull(){let e=this.parent;for(;e;){const n=e.getPersistantMessages();Array.isArray(n)&&n.length>0&&n.forEach(o=>{if(this.isMatched(this.name,o.matched))try{this.trigger(o.matched,o.action,o.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...o){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const r=e.resolve,s=e.uniqueId??"",i=(...u)=>{this.deletePersistantMessage(s),typeof r=="function"&&r(...u)};e.resolve=i}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):xl(e.name)&&this.name&&e.name.test(this.name)?l=!0:typeof e.name=="function"?l=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(l=!0);const a=[];if(l){const r=this.callbacks.get(n);if(typeof r=="function"){const i=Reflect.apply(r,this.proxy,[...o]);i!=null&&a.push(i)}const s=this.proxy??{};if(typeof s[n]=="function"){const i=Reflect.apply(s[n],s,[...o]);i!=null&&a.push(i)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...a),e.messagingPolicy==="Once")return a}return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...e},n,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(e,n,...o){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const a=e.resolve,r=e.uniqueId??"",s=(...i)=>{this.deletePersistantMessage(r),typeof a=="function"&&a(...i)};e.resolve=s}e.cachePolicy="None"}const l=[];return this.children.forEach(a=>{const r=Reflect.apply(a.emit,a,[{...e},n,...o]);r!=null&&Array.isArray(r)&&Reflect.apply([].push,l,[...r])}),l}on(e,n){this.callbacks.set(e,n)}};function xn(e,n,o,l){const a=new Jl(n,e,o);if(l&&typeof l=="object")for(const r in l)a.on(r,l[r]);return a}function us(e,n,o){const l=o;if(l[ke])return l[ke];const a=new Jl((0,t.inject)(ke,null),o,e);if(n&&typeof n=="object")for(const r in n)a.on(r,n[r]);return l[ke]=a,(0,t.provide)(ke,a),(0,t.onUnmounted)(()=>{a.destroy(),l[ke]=void 0}),a}function Lt(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[ke]??(0,t.inject)(ke,null):(0,t.inject)(ke,null)}var cs=class{error(e,n){const o=n,l=n||(0,t.hasInjectionContext)()?Lt(n):null;l?l.emit({name:"*"},"setErrorTip",e):typeof o.setErrorTip=="function"&&o.setErrorTip(e)}reset(e){const n=e,o=e||(0,t.hasInjectionContext)()?Lt(e):null;o?o.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}success(e){const n=e,o=e||(0,t.hasInjectionContext)()?Lt(e):null;o?o.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}decorate(e,n,o){Array.isArray(e)||(e=[e]);const l=o,a=o||(0,t.hasInjectionContext)()?Lt(o):null,r=n.find(i=>i.required===!0||i.type==="required"&&i.required!==!1),s=e.find(i=>i.required===!0||i.type==="required"&&i.required!==!1);!r&&s?a?a.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):r&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(e){return e.modelValue}},Rt=new cs;function ds(e){Rt=e}function fs(e){Rt?Object.assign(Rt,e):Rt=e}function ms(e,n){lt.Schema.setValidator(e,n)}function ps(e){lt.Schema.deleteValidator(e)}var Qr=["blur","clear"];function hs(e){Qr=e}function Gr(){return Qr}var Zr=["focus","change","setValue"];function vs(e){Zr=e}function Jr(){return Zr}function gs(e){lt.Schema.messages(e)}function Dt(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const a=n.findIndex(r=>r.type===l.type);a!==-1&&n.splice(a,1),n.push(l)})}),n}function on(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var ze=Symbol("ValidateSchemaKey"),ei=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,n,o){this.parent=e,this.descriptor=n,this.proxy=o,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let e=this.proxy.$attrs;e&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const n=on(Dt(this.attrRules,this.rules)),o=[];for(let a in e){let r=e[a];if(this.hasValidator(a,!0)){if(r===!1)continue;let i={type:a};r!==null&&typeof r=="object"&&Object.assign(i,r),o.push(i);continue}let s=this.getValidator(a);if(s!==null){let i={type:a,validator:s};o.push(i)}}this.attrRules=on(o);const l=Dt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(l,n)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...n){const o=this.descriptor.validateHandler;if(o&&typeof o[e]=="function")return Reflect.apply(o[e],o,[...n]);const l=Rt;return l&&typeof l[e]=="function"?Reflect.apply(l[e],l,[...n]):null}decorate(e,n){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,n,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(e,n,o=!1){o?lt.Schema.setValidator(e,n):this.validators[e]=n}getValidator(e){let n=this.validators[e]??null;return n||(n=this.parent?.getValidator(e)??null),n}deleteValidator(e,n=!1){n?lt.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,n=!1){if(n)return lt.Schema.hasValidator(e);{let o=Reflect.has(this.validators,e);return!o&&this.parent!==null&&(o=this.parent.hasValidator(e,!1)),o}}setRule(e){const n=Dt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=on(e):this.rules=on([e]);const o=Dt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(o,n)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Dt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const o={[`${n}`]:e},l=this.getValue(),a={[`${n}`]:l},r=new lt.Schema(o),s=this.proxy??a;return r.validate(a,{context:s}).then(i=>{if(i.pass)this.success();else{let u="error";Array.isArray(i.errors)&&i.errors.length>0&&(u=i.errors[0].message??u,i.errors=[i.errors[0]],i.errors[0].ref=s),this.error(u)}return i}).catch(i=>{const u=i.message??`${i}`;return this.error(u),i})}}return Promise.resolve({pass:!0})}};function $n(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const l=o.valueName;o.validateHandler={getValue(a){return a[l]}}}return new ei(n,o,e)}var yn=Symbol.for("EventEmitterKey"),ti=class{register=new Map;proxy;constructor(e){this.proxy=e}destroy(){this.proxy=null,this.register.clear()}off(e,n){let o=this.register.get(e);if(o&&Array.isArray(o)){let l=o.findIndex(a=>a===n);l!==-1&&o.splice(l,1)}}on(e,n){let o=this.register.get(e);o||(o=new Array,this.register.set(e,o)),o.push(n)}emit(e,...n){const o=this.register.get(e);o&&o.forEach(l=>{try{Reflect.apply(l,null,[e,...n])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[e,...n])}};function qe(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function bn(e,n){let o=0;return function(...l){const a=new Date().getTime();a-o<n||(o=a,Reflect.apply(e,null,[...l]))}}function ys(e,n){const o=qe((l,a)=>{e=l,a()},n);return(0,t.customRef)((l,a)=>({get(){return l(),e},set(r){o(r,a)}}))}function bs(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function eo(e,n,o,l=0,a=!0){let r=n,s=0;if(a){const u=e();if(s++,u||s>o)return}const i=()=>{const u=e();s++,!(u||s>o)&&(r+=l,setTimeout(i,r))};setTimeout(i,r)}var $e=Symbol("DomainKey"),ft=Symbol("DataItemsKey"),En=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}_props=(0,t.reactive)({});constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(e,n=[]){for(const o in e){const l=e[o];n.length>0&&n.indexOf(l)!==-1||(this._props[o]=l)}}has(e){if(Reflect.has(this._props,e)){const n=this._props[e];if(n!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,n){this._props[e]=n}get(e,n){if(Reflect.has(this._props,e)){const o=this._props[e];if(o!=null)return o}return this.parent==null?n:this.parent.get(e,n)}getForParent(e,n){return this.parent==null?n:this.parent.get(e,n)}getForSelf(e){return this._props[e]}getAll(e){const n=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,e)){const l=o._props[e];n.push(l)}o=o._parent}return n}},Ss=new En;function ht(){return Ss}function Ze(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[$e]??(0,t.inject)($e,null):(0,t.inject)($e,null)}var vl=Symbol("OriginalDateKey");function to(e,n,o=[],l){const a=(0,t.getCurrentInstance)();let r=a?.proxy,s=(0,t.inject)($e,null);s===null&&(s=ht());const i=e||n.prop||n.name;let u=new En(i);u.parent=s;const m=S=>{r[vl]||h(S),u?.set("modelValue",S)},p=()=>u?.getForSelf("modelValue")??null,c=()=>r[vl]??null,h=S=>{const b={};St(!0,b,(0,t.toRaw)(S)),r[vl]=b};(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,S=>{u?.merge(S,o)},{immediate:!0}):u.merge(n,o),n.modelValue&&h(n.modelValue);const y=(S,b)=>{u?.set(S,b)},w=S=>u?.getForSelf(S)??null;if(r[$e]=u,(0,t.provide)($e,u),a!==null){const S=(0,t.inject)(ke,null),b=xn(r,S,i,l);u.broadcast=b,r[ke]=b,(0,t.provide)(ke,b),r.broadcast=(d,C,...N)=>Reflect.apply(b.emit,b,[d,C,...N]);const f=(0,t.inject)(ze,null),k=$n(r,f,{componentName:""});u.validateSchema=k,r[ze]=k,(0,t.provide)(ze,k),r[ft]=new Map,r.validate=(d=!0)=>{const C=[];let N=null;const v={deep:!1};if(d===!0)N={name:"*"};else if(Array.isArray(d)&&d.length>0){const g=d;N={name:A=>A?g.indexOf(A)!==-1:!1}}else if(d!=null&&typeof d=="object"){const g=d;if(Object.assign(v,g),Array.isArray(g.include)&&g.include.length>0){const A=g.include;N={name:B=>B?A.indexOf(B)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const A=g.exclude;N={name:B=>B?A.indexOf(B)===-1:!1}}else N={name:"*"}}if(N){const g=b?.emitToChildren(N,"validate",v);g&&Reflect.apply([].push,C,g)}return C.length==1?C[0]:C.length>1?Promise.all(C).then(g=>{let A=[];return g.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(A=[...A,...B.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(d,C=!0,N=!1)=>{if(N===!0){Reflect.ownKeys(d).forEach(v=>{let g=String(v);const A={componentName:"",fieldName:g,pureDataValidate:!0};if(u){const B=li(u,g,A,b,k);r[ft].set(g,B);const V=d[g];V&&B.validateSchema.setRule(V)}});return}if(C){const v=Reflect.ownKeys(d);b?.emitToChildren({name:g=>v.includes(g),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",d,!1)}},r.clearValidate=(d=!0)=>{let C=null;if(d===!0)C={name:"*"};else if(Array.isArray(d)&&d.length>0){const N=d;C={name:v=>v?N.indexOf(v)!==-1:!1}}else if(d!=null&&typeof d=="object"){const N=d;if(Array.isArray(N.include)&&N.include.length>0){const v=N.include;C={name:g=>g?v.indexOf(g)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const v=N.exclude;C={name:g=>g?v.indexOf(g)===-1:!1}}else C={name:"*"}}C&&b?.emitToChildren(C,"clearValidate",!1)},r.resetFields=d=>{const C=p();if(!C)return;const N={};if(St(!0,N,c()??{}),Array.isArray(d))d.forEach(v=>{C[v]=N[v]});else if(d&&Array.isArray(d.include))(d.include??[]).forEach(v=>{C[v]=N[v]});else if(d&&Array.isArray(d.exclude)){let v=d.exclude??[];Reflect.ownKeys(N).forEach(g=>{v.includes(g)||(C[g]=N[g])})}else Object.assign(C,N);r.clearValidate(d)},r.setModelValue=(d,C)=>{if(!C||C===i)m(d);else{const N={name:C,messagingPolicy:"Once"};b?.emitToChildren(N,"setModelValue",d)}},r.getModelValue=()=>p(),r.setDomainProperty=(d,C)=>{y(d,C)},r.getDomainProperty=d=>w(d),setTimeout(function(){b?.pull()},0)}return(0,t.onUnmounted)(function(){u?.validateSchema&&(u.validateSchema.destroy(),r[ze]=void 0,(0,t.provide)(ze,null)),u?.broadcast&&(u?.broadcast?.destroy(),r[ke]=void 0,(0,t.provide)(ke,null)),u?.destroy(),r[$e]=void 0,(0,t.provide)($e,null),r[ft]&&(r[ft].clear(),r[ft]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,u=null,r=null}),u}function ni(e,n,o=[]){let l=(0,t.getCurrentInstance)()?.proxy,a=(0,t.inject)($e,null);a===null&&(a=ht());let r=new En(e||n.prop||n.name);return r.parent=a,(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,s=>{r?.merge(s,o)},{immediate:!0}):r.merge(n,o),l[$e]=r,(0,t.provide)($e,r),(0,t.onUnmounted)(()=>{r?.destroy(),l[$e]=void 0,(0,t.provide)($e,null),r=null,l=null}),r}function Ae(e,n,o){const l=(0,t.getCurrentInstance)()?.proxy,a=n??"";let r=xn(l,(0,t.inject)(ke,null),a,o);l[ke]=r,(0,t.provide)(ke,r),l.broadcast=(p,c,...h)=>r?Reflect.apply(r.emit,r,[p,c,...h]):null;const s=(0,t.inject)(ze,null);e.fieldName=e.fieldName??a;let i=$n(l,s,e);l[ze]=i,(0,t.provide)(ze,i),l.validate=(p=null)=>{if(!i)return Promise.resolve({pass:!0});const c=[];let h=!1,y=!1;if(Array.isArray(p)&&p.indexOf(a)!==-1)y=!0,h=!0;else if(p&&typeof p=="object"){const w=p,S=w.ignoreDisabled??!0,b=w.ignoreReadonly??!0,f=w.ignoreHidden??!0;S===!0&&e.disabled===!0||b===!0&&e.readonly===!0||f===!0&&Hr(l.$el)?y=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),y=!0),h=w.deep??!1}else typeof p=="boolean"&&(h=p),y=!0;if(y){const w=i?.validate();c.push(w)}if(h){let w=null;const S={deep:!1};if(p===!0)w={name:"*"};else if(Array.isArray(p)&&p.length>0){const b=p;w={name:f=>f?b.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const b=p;if(Object.assign(S,b),Array.isArray(b.include)&&b.include.length>0){const f=b.include;w={name:k=>k?f.indexOf(k)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const f=b.exclude;w={name:k=>k?f.indexOf(k)===-1:!1}}else w={name:"*"}}if(w&&r){const b=r.emitToChildren(w,"validate",S);Reflect.apply([].push,c,b)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(w=>{let S=[];return w.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(S=[...S,...b.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=p=>i?.setRule(p),l.setNameValidateRules=(p,c=!1)=>{const h=p[a];h&&i?.setRule(h),c&&r&&r.emitToChildren({name:y=>Reflect.ownKeys(p).includes(y)},"setNameValidateRules",p,!1)},l.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(n??"")!==-1)&&i?.clear();let c=null;if(p===!0)c={name:"*"};else if(Array.isArray(p)&&p.length>0){const h=p;c={name:y=>y?h.indexOf(y)!==-1:!1}}else if(p!=null&&typeof p=="object"){const h=p;if(Array.isArray(h.include)&&h.include.length>0){const y=h.include;c={name:w=>w?y.indexOf(w)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const y=h.exclude;c={name:w=>w?y.indexOf(w)===-1:!1}}else c={name:"*"}}c&&r&&r.emitToChildren(c,"clearValidate",!1)};let u=new ti(l);l[yn]=u;const m=qe((p="validate")=>{i&&(p==="reset"?i.clear():i.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Gr()).forEach(p=>{u&&u.on(p,c=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Jr()).forEach(p=>{u&&u.on(p,c=>{m("reset")})}),setTimeout(function(){r?.pull()},0),(0,t.onUnmounted)(()=>{r?.destroy(),l[ke]=void 0,(0,t.provide)(ke,null),r=null,i?.destroy(),l[ze]=void 0,(0,t.provide)(ze,null),i=null,u?.destroy(),l[yn]=void 0,u=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:r,validateSchema:i,emitEvent:(p,...c)=>{u&&Reflect.apply(u.emit,u,[p,...c])},onEvent:(p,c)=>{u&&Reflect.apply(u.on,u,[c])},offEvent:(p,c)=>{u&&Reflect.apply(u.off,u,[c])}}}function li(e,n,o,l,a){const r={},s=n??"",i={getValue(){const p=e.getForSelf("modelValue");return p?p[s]:null},isExist(){const p=e.getForSelf("modelValue");return p?Reflect.has(p,s):!1}};o.fieldName=s,o.validateHandler={getValue(p){return i.getValue()}};let u=$n({},a,o);r.validate=(p=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const c=[];let h=!1,y=!1;if(Array.isArray(p)&&p.indexOf(s)!==-1)y=!0,h=!0;else if(p&&typeof p=="object"){const w=p;Array.isArray(w.include)&&w.include.indexOf(s)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(s),y=!0,h=w.deep??!1}else typeof p=="boolean"&&(h=p),y=!0;if(y&&u){const w=u.validate();c.push(w)}if(h){let w=null;const S={deep:!1};if(p===!0)w={name:"*"};else if(Array.isArray(p)&&p.length>0){const b=p;w={name:f=>f?b.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const b=p;if(Object.assign(S,b),Array.isArray(b.include)&&b.include.length>0){const f=b.include;w={name:k=>k?f.indexOf(k)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const f=b.exclude;w={name:k=>k?f.indexOf(k)===-1:!1}}else w={name:"*"}}if(w&&m){const b=m.emitToChildren(w,"validate",S);Reflect.apply([].push,c,b)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(w=>{let S=[];return w.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(S=[...S,...b.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>u?.setRule(p),r.setNameValidateRules=p=>{const c=p[s];c&&u?.setRule(c)};let m=xn(null,l,s,r);return(0,t.onUnmounted)(()=>{u=null,m=null}),{broadcast:m,validateSchema:u}}function Vt(){let e=(0,t.getCurrentInstance)()?.proxy,n=new ti(e);return e[yn]=n,(0,t.onUnmounted)(()=>{n?.destroy(),e[yn]=void 0,n=null,e=null}),{emitEvent:(o,...l)=>{n&&Reflect.apply(n.emit,n,[o,...l])},onEvent:(o,l)=>{n&&Reflect.apply(n.on,n,[l])},offEvent:(o,l)=>{n&&Reflect.apply(n.off,n,[l])}}}var de=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${se(e)}px`:"",ks=de;function se(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),r=1;if(Qe){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return a*=r,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))*n;const l=Number(e);return isNaN(l)?0:l}function ws(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}var Ye="PageStateKey";function Oe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=se(e.top)),e.left!==null&&e.left!==void 0&&(n.left=se(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=se(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=se(e.right))),n}function Dl(e,n,o={},l=!0,a=-1,r=-1,s=0,i=0){if(e.headerHeight=se(o.headerHeight??n.headerHeight??-1),e.headerPadding=Oe(o.headerPadding??n.headerPadding),e.footerHeight=se(o.footerHeight??n.footerHeight??-1),e.footerPadding=Oe(o.footerPadding??n.footerPadding),e.contentPadding=Oe(o.contentPadding??n.contentPadding),l){const u=o.height??n.height;u?e.height=se(u,r):e.height=se(r)-se(s,r)-se(i,r),e.width=se(o.width??n.width??0,a)}}function oi(e,n={}){const o={top:null,bottom:null,right:null,left:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(l.safeAreaTop=se(a.top),l.safeAreaBottom=se(a.bottom),l.safeAreaLeft=se(a.left),l.safeAreaRight=se(a.right));const r=e.get("pageLayout");if(!r)return null;Dl(l,r,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const s=(0,t.reactive)(l),i=e.getForParent(Ye);i&&(l.height=Sn(e,i),l.width=kn(e,i),(0,t.watch)([()=>Sn(e,i),()=>kn(e,i)],([m,p])=>{s.height=m,s.width=p}));const u=!i;return(0,t.watch)([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([m,p,c=-1,h=-1,y=0,w=0])=>{Dl(s,p,n,u,c,h,y,w)}),e.set(Ye,s),s}function Dn(e){return e.get(Ye)}function In(e,n){if(n=n??e.get(Ye),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function qn(e,n){if(n=n??e.get(Ye),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function Sn(e,n){if(n=n??e.get(Ye),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=In(e,n),l=qn(e,n),a=se(n.contentPadding.top??0),r=se(n.contentPadding.bottom??0);return n.height-o-l-a-r}return 0}function kn(e,n){if(n=n??e.get(Ye),n){const o=se(n.contentPadding.left??0),l=se(n.contentPadding.right??0);return n.contentInnerWidth??n.width-o-l}return 0}function Cs(e){return!!e.getForParent(Ye)}var no=Symbol.for("InnerPageScopeKey");function ai(e){(0,t.provide)(no,e)}function Zt(e=!1){return(0,t.inject)(no,e)}var lo=Symbol.for("AbstractPageScopeKey");function ri(e){(0,t.provide)(lo,e)}function Jt(e=!1){return(0,t.inject)(lo,e)}var at=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function an(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Te(e,n,o=at.Near,l){const a=Ze();return a==null?e:o===at.Parent?(0,t.computed)(()=>{const r=a.getAll(n);for(let i=r.length-1;i>=0;i--){const u=r[i];if(an(u,l))return u}const s=e.value;return an(s,l)?s:null}):(0,t.computed)(()=>{const r=e.value;if(an(r,l))return r;const s=a.getAll(n);for(let i=0;i<s.length;i++){const u=s[i];if(an(u,l))return u}return null})}function Ve(e){return Te(e,"readonly",at.Near)}function xe(e){return Te(e,"disabled",at.Near)}function Pe(e,n="modelValue",o=null,l){const a=(0,t.toRef)(e,n);let r=a.value;typeof o=="function"&&(r=o(a.value));const s=(0,t.ref)(r);return(0,t.watch)(a,i=>{if(typeof o=="function"){const u=o(i);u!==s.value&&(s.value=u,l&&l("setValue",u))}else i!==s.value&&(s.value=i,l&&l("setValue",i))}),s}var ii=new Map,wn=new Map,Il=null;function Ns(e){Il=e}function si(e,n,o){if(o){let l=wn.get(o);l||(l=new Map,wn.set(o,l)),l.set(e,n)}else ii.set(e,n)}function Je(e,n,o){!o&&Il&&(o=Il(e)??void 0);let l=null;if(o){let a=wn.get(o);a&&(l=a.get(n))}return l||(l=ii.get(n)),l}function As(e,n){for(let o in e){const l=e[o];si(o,l,n)}}function Bs(e){wn.delete(e)}function Ts(){return{top:0,left:0,bottom:0,right:0}}function Vs(){return Qe?{rootWidth:document.documentElement.clientWidth||document.body.clientWidth,rootHeight:document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{headerHeight:-1,footerHeight:-1}}}function xs(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 gn(o)}var $s=class{packages;_version;get version(){return this._version}constructor(e,n){this.packages=e,this._version=n}install(e,n){n?.install!==!1&&this.packages.forEach(l=>{if(l.install)e.use(l,n);else if(l.name){const a=xs(l.name,n);e.component(a,l)}});const o=ht();if(n.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l={...n},a=qe(()=>{const r={...l};this.updateLayout(r,o)},120);new window.ResizeObserver(a).observe(window.document.body)}this.updateLayout(n,o)}updateLayout(e,n){const o=e.headerBarHeight??0,l=e.footerBarHeight??0,a=St({},Ts(),e.safeAreaInset),r=Vs(),s=St({},r.pageLayout,e.pageLayout);n=n??ht(),n.set("safeAreaInset",a),n.set("headerBarHeight",o),n.set("footerBarHeight",l),n.set("pageLayout",s),n.set("rootWidth",r.rootWidth),n.set("rootHeight",r.rootHeight);const i=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const u in e)i.indexOf(u)===-1&&n.set(u,e[u])}setScopeGetter(e){Ns(e)}setAPI(e,n,o){si(e,n,o)}getAPI(e,n,o){return Je(e,n,o)}batchSetAPI(e,n){As(e,n)}clearScopeAPI(e){Bs(e)}getRootDomain(){return ht()}};function J(e){const n=`fox-${e}`,o=gn(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=(a,r)=>{let s=l.name;r?.componentPrefix&&(s=`${r.componentPrefix}-${l.baseName}`,s=gn(s)),a.component(s,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var Es=(e,n)=>{let o=document.body;const l=e.teleport||"body";l!="body"&&(Fr(l)?o=document.querySelector(l):o=e.teleport);const a=document.createElement("view");a.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let r={};vn(n.wrapper)?r=n.wrapper(o,a):r=n.wrapper;const s=(0,t.createApp)(r,e),i=n.components;return i&&i.forEach(u=>{s.use(u)}),o.appendChild(a),{instance:s.mount(a),unmount:()=>{s.unmount(),o.removeChild(a)}}},ui=(e,n)=>e?(0,t.h)(e,n):"";function Be(e,n=null){if(n||(n=(0,t.getCurrentInstance)()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}var pe={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},ve={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},ci={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}},di={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}},fi=[];for(const e in di)fi.push(e);var Ds={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}},Is=(e,n)=>({inheritAttrs:!0,props:{...pe,...ci,...Ds},setup(o,{slots:l}){const a=Jt(!1),r=Zt(!1),s=to(o.name,o);if(s){const c=oi(s,o);Be({getPageContentHeight:()=>Sn(s,c),getPageContentWidth:()=>kn(s,c),getPageHeaderHeight:()=>In(s,c),getPageFooterHeight:()=>qn(s,c)}),c&&r&&(c.contentHeight="100%")}const i=(0,t.computed)(()=>({[e]:!0,"is-inner":r})),u=(0,t.computed)(()=>({})),m=(0,t.getCurrentInstance)(),p=(c,h=!1)=>{const y=m?.proxy;y&&typeof y.setNameValidateRules=="function"&&y.setNameValidateRules(c,!0,h)};return(0,t.watch)([()=>o.rules,()=>o.pureDataRules],([c,h],[y,w])=>{if(c&&y){const S=(0,t.toRaw)(y),b=(0,t.toRaw)(c),f=b?Reflect.ownKeys(b):[];(S?Reflect.ownKeys(S):[]).forEach(k=>{f.includes(k)||(b[k]=[])}),p(b)}if(h&&w){const S=(0,t.toRaw)(w),b=(0,t.toRaw)(h),f=b?Reflect.ownKeys(b):[];(S?Reflect.ownKeys(S):[]).forEach(k=>{f.includes(k)||(b[k]=[])}),p(b,!0)}},{deep:!0}),(0,t.onMounted)(()=>{o.rules&&p((0,t.toRaw)(o.rules)),o.pureDataRules&&p((0,t.toRaw)(o.pureDataRules),!0)}),()=>a?l?.default?.():(0,t.h)("div",{class:i.value,style:u.value},[l?.default?.()])}}),{componentName:qs,create:Ps,scope:Ms}=J("page"),zs=Ps(Is(qs,Ms)),oo=zs;function ao(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Pn(e){const n=(0,t.unref)(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),r=parseFloat(o.getPropertyValue("padding-top")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-a,height:n.clientHeight-r-s}}var mi={headerbar:{},radio:{},checkbox:{}};function Ls(e){Object.assign(mi,e)}function Mn(){return mi}var Os=(e,n,o,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const s=Jt(!1),i=Zt(!1),u=s?null:Ze(),m=u?Dn(u):null,p=Mn(),c=e,h=(0,t.computed)(()=>{const x={[c]:!0,[`${c}--border`]:a.border,[`${c}--fixed`]:a.fixed};return i||(x[`${c}--safe-area-inset-top`]=a.safeAreaInsetTop),x}),y=(0,t.computed)(()=>({[`${c}__inner`]:!0,[`${c}__inner--${a.align}`]:!0})),w=Me(a.height)?null:se(a.height),S=(0,t.computed)(()=>{const x={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return x;if(u&&m){const $=Oe(a.padding??m.headerPadding);if(Object.assign(x,$),Me(w)||(m.headerHeight=w),x.height=m.headerHeight,x.safeAreaTop=m.safeAreaTop===-1?0:m.safeAreaTop,x.safeAreaTop>0){const z=se($.top??0);x.top=x.safeAreaTop+z,x.height&&x.height>0&&(x.height=x.height+x.safeAreaTop)}return x}if(Me(w)||(x.height=w),a.padding){const $=Oe(a.padding);Object.assign(x,$)}return x}),b=(0,t.ref)(null),f=()=>m&&b.value&&!Zl(b.value)?(l||(m.headerAllHeight=ao(b.value).height),m.headerMounted=!0,!0):!1,k=qe(f,120);let d=null;(0,t.onMounted)(()=>{s||m&&(eo(f,50,5,50,!0),window.ResizeObserver&&b.value&&(d=new window.ResizeObserver(k),d.observe(b.value)))}),(0,t.onUnmounted)(()=>{s||m&&(m.headerMounted=!1,d&&(d.disconnect(),d=null))});const C=(0,t.computed)(()=>{const x={};return s||(S.value.height!==null&&S.value.height!==void 0&&(x.height=`${S.value.height}px`),S.value.top!==null&&S.value.top!==void 0&&(x.paddingTop=`${S.value.top}px`),S.value.left!==null&&S.value.left!==void 0&&(x.paddingLeft=`${S.value.left}px`),S.value.right!==null&&S.value.right!==void 0&&(x.paddingRight=`${S.value.right}px`),S.value.bottom!==null&&S.value.bottom!==void 0&&(x.paddingBottom=`${S.value.bottom}px`)),x}),N=(0,t.computed)(()=>{const x=S.value?.height;return Me(x)||x<0?!0:x>0});function v(){r.emit("back")}function g(){r.emit("click-title")}function A(){r.emit("click-right")}function B(){r.emit("click-right-text")}const V=()=>{if(!a.leftShow)return null;const x=[];if(r.slots.left)x.push(r.slots.left());else{if(r.slots.leftIcon){const $=(0,t.h)("view",{class:"left-icon",onClick:v},[r.slots.leftIcon()]);x.push($)}else{const $=a.leftIcon??p.headerbar.Left??o,z=(0,t.h)("view",{class:"left-icon",onClick:v},[(0,t.h)($)]);x.push(z)}if(a.leftText){const $=(0,t.h)("view",{class:"left-text",onClick:v},[a.leftText]);x.push($)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},x)},T=()=>{if(!a.rightShow)return null;const x=[];if(r.slots.right)x.push(r.slots.right());else{if(a.rightText){const $=(0,t.h)("view",{class:"right-text",onClick:B},[a.rightText]);x.push($)}if(r.slots.rightIcon){const $=(0,t.h)("view",{class:"right-icon",onClick:A},[r.slots.rightIcon()]);x.push($)}else if(a.rightIcon){const $=(0,t.h)("view",{class:"right-icon",onClick:A},[(0,t.h)(a.rightIcon)]);x.push($)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},x)},_=()=>{if(!a.titleShow)return null;const x=[],$=r.slots.default?r.slots.default():null;if($)x.push($);else{if(a.title){const z=(0,t.h)("view",{class:"title-text"},[a.title]);x.push(z)}if(r.slots.titleIcon){const z=(0,t.h)("view",{class:"title-icon",onClick:g},[r.slots.titleIcon()]);x.push(z)}else if(a.titleIcon){const z=(0,t.h)("view",{class:"title-icon",onClick:g},[(0,t.h)(a.titleIcon)]);x.push(z)}}return x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},x)},G=()=>{const x=[],$=r.slots.bottom?r.slots.bottom():null;return $&&x.push($),x.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},x)};return()=>{if(s||!N.value)return null;const x=[];if(r.slots.all)x.push(r.slots.all());else{const $=[],z=V();z&&$.push(z);const P=_();P&&$.push(P);const O=T();if(O&&$.push(O),$.length>0){const D=(0,t.h)("view",{class:y.value},$);x.push(D)}const F=G();F&&x.push(F)}return x.length===0?null:(0,t.h)("view",{class:h.value,style:C.value,ref:b},x)}}}),{componentName:Rs,create:Fs,scope:Ks}=J("header-bar"),Us=Fs(Os(Rs,Ks,le.Left,!1)),ro=Us;function Hs(e,n,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,a){const r=Jt(!1),s=Zt(!1),i=r?null:Ze(),u=i?Dn(i):null,m=e,p=(0,t.computed)(()=>{const d={[m]:!0,[`${m}--${l.align}`]:!0,[`${m}--border`]:l.border,[`${m}--fixed`]:l.fixed};return s||(d[`${m}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),d}),c=Me(l.height)?null:se(l.height),h=(0,t.computed)(()=>{const d={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r)return d;if(i&&u){const C=Oe(l.padding??u.footerPadding);if(Object.assign(d,C),Me(c)||(u.footerHeight=c),d.height=u.footerHeight,d.safeAreaBottom=u.safeAreaBottom===-1?0:u.safeAreaBottom,d.safeAreaBottom>0){const N=se(C.bottom??0);d.bottom=d.safeAreaBottom+N,d.height&&d.height>0&&(d.height=d.height+d.safeAreaBottom)}return d}if(Me(c)||(d.height=c),l.padding){const C=Oe(l.padding);Object.assign(d,C)}return d}),y=(0,t.computed)(()=>{const d=h.value?.height;return Me(d)||d<0?!0:d>0}),w=(0,t.ref)(null),S=()=>u&&w.value&&!Zl(w.value)?(o||(u.footerAllHeight=ao(w.value).height),u.footerMounted=!0,!0):!1,b=qe(S,120);let f=null;(0,t.onMounted)(()=>{r||u&&(eo(S,50,5,50,!0),window.ResizeObserver&&(f=new window.ResizeObserver(b),f.observe(w.value)))}),(0,t.onUnmounted)(()=>{r||u&&(u.footerMounted=!1,f&&(f.disconnect(),f=null))});const k=(0,t.computed)(()=>{const d={};return r||(h.value.height!==null&&h.value.height!==void 0&&(d.height=de(h.value.height)),h.value.top!==null&&h.value.top!==void 0&&(d.paddingTop=de(h.value.top)),h.value.left!==null&&h.value.left!==void 0&&(d.paddingLeft=de(h.value.left)),h.value.right!==null&&h.value.right!==void 0&&(d.paddingRight=de(h.value.right)),h.value.bottom!==null&&h.value.bottom!==void 0&&(d.paddingBottom=de(h.value.bottom))),d});return()=>{if(r||!y.value)return null;const d=a.slots.default?a.slots.default():[];return(0,t.h)("view",{ref:w,class:p.value,style:k.value},d)}}}}var{componentName:_s,create:js,scope:Ws}=J("footer-bar"),Ys=js(Hs(_s,Ws,!1)),io=Ys;function Xs(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:l,attrs:a}){const r=Jt(!1),s=Zt(!1),i=r?null:Ze(),u=(0,t.computed)(()=>({[e]:!0})),m=i?Dn(i):null,p=(0,t.computed)(()=>{const S={};if(r)return S;if(i&&m){if(o.padding){const g=Oe(o.padding);Object.assign(m.contentPadding,g)}const b=In(i,m),f=qn(i,m);let k="";m.contentHeight?k=`${m.contentHeight}`:k=`${m.height}px`,console.debug("[content]page height:",k),console.debug("[content]header height:",b),console.debug("[content]footer height:",f),console.debug("[content]padding:",m.contentPadding),S.height=k;let d=se((m&&m.contentPadding&&m.contentPadding.top)??-1);(d>=0||b>0)&&(d=d<0?0:d,S.paddingTop=`${b+d}px`);let C=se((m&&m.contentPadding&&m.contentPadding.bottom)??-1);(C>=0||f>0)&&(C=C<0?0:C,S.paddingBottom=`${f+C}px`);const N=se((m&&m.contentPadding&&m.contentPadding.left)??-1);N>=0&&(S.paddingLeft=`${N}px`);const v=se((m&&m.contentPadding&&m.contentPadding.right)??-1);return v>=0&&(S.paddingRight=`${v}px`),S}if(o.padding){const b=Oe(o.padding);b.left&&(S.paddingLeft=`${b.left}px`),b.top&&(S.paddingTop=`${b.top}px`),b.right&&(S.paddingRight=`${b.right}px`),b.bottom&&(S.paddingBottom=`${b.bottom}px`)}return S}),c=(0,t.ref)(null),h=()=>{if(m&&c.value){const S=Pn(c.value);m.contentInnerHeight=S.height,m.contentInnerWidth=S.width}},y=qe(h,120);let w=null;return(0,t.onMounted)(()=>{s||r||(requestAnimationFrame(h),window.ResizeObserver&&c.value&&(w=new window.ResizeObserver(y),w.observe(c.value)))}),(0,t.onUnmounted)(()=>{s||r||w&&(w.disconnect(),w=null)}),()=>r?l.default?.():(0,t.h)(o.tag??"view",{...a,ref:c,class:u.value,style:p.value},l)}}}var{componentName:Qs,create:Gs,scope:Zs}=J("content"),Js=Gs(Xs(Qs,Zs)),so=Js,wt="GroupStateKey",pi=Symbol.for("GroupScopeKey");function zn(){return(0,t.inject)(pi,!1)}function Ln(e=!0){(0,t.provide)(pi,e)}function eu(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Me(l)||(e[o]=l)})}function tu(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};eu(o,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(o),passport:0,order:{index:0}});return e.set(wt,l),l}function gl(e,n,o=-1,l=-1,a=!1,r,s,i){const u=e.get(wt);if(!u)return;const m=e.get("groupLayout")??{};o===-1&&(o=m.column??1),l===-1&&(l=m.gutter??0),r||(r=m.minItemWidth??-1),s||(s=m.maxItemWidth??-1);const p=se(r),c=se(s);i||(i=m.type??"grid");const h=()=>{const y=n===""||n===-1,w=se(n);let S=fe(o);const b=se(l);if(!y){let d=(w-(S-1)*b)/S;for(;c!==-1&&d>c;)S++,d=(w-(S-1)*b)/S;for(;p!==-1&&S>1&&d<p;)S--,d=(w-(S-1)*b)/S}let f=!1;const k=u.layout;k.value.width=n,k.value.column!==S&&(k.value.column=S,f=!0),k.value.gutter!==b&&(k.value.gutter=b,f=!0),k.value.type!==i&&(k.value.type=i,f=!0),f&&(0,t.triggerRef)(k)};if(a)h();else{const y=++u.passport;setTimeout(()=>{y===u.passport&&h()},50)}}function On(e,n=!1){let o;return n?o=e.getForParent(wt):o=e.get(wt),o.layout}function Rn(e,n=!1){let o;return n?o=e.getForParent(wt):o=e.get(wt),o.order}function Xa(e,n=1){if(n==="stretch")return-1;const o=fe(n);return o===-1?100:100*o/e}function Fn(e,n,o=1,l=0,a){const r={};let s=0;a?s=se(a):s=Xa(n.column,o),s>0&&(r.width=`${s}%`);const i=Xa(n.column,l);i>0&&(r["margin-left"]=`${i}%`);const u=se(n.gutter)/2;return u>0&&(r["padding-left"]=`${u}px`,r["padding-right"]=`${u}px`),r}function Kn(e,n,o=1,l=0){if(o==="stretch"){const u=e.index%n.column,m=u+(n.column-u);return e.index=e.index+(m-u),{"grid-column":`${u+1} / -1`}}let a=fe(o);if(a===-1){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}if(a>n.column){const u=e.index%n.column;return n.column,u==0?e.index=e.index+n.column:e.index=e.index+(n.column-u)+n.column,{"grid-column":"1 / -1"}}const r=fe(l)%n.column;let s=(e.index+r)%n.column,i=s+a;return i>n.column?(s=0,i=s+a,e.index=e.index+(n.column-s)+a):e.index=e.index+r+a,r>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}var hi=Symbol("RollingStateKey");function nu(e){(0,t.provide)(hi,e)}function lu(){return(0,t.inject)(hi,null)}function ql(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-l-a}else n=e.offsetHeight;return n}function ou(e){let n=ql(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=ql(o),document.body.removeChild(o)}return n}function au(e,n,o){const l=typeof e=="number"?e:parseInt(e),a=typeof n=="number"?n:parseInt(n),r=typeof o=="number"?o:parseInt(o);if(l<=0)return"1fr";const s=(l-(a-1)*r)/a;return s>0?`${s}px`:"1fr"}function vi(e){const n=[];return e.forEach(o=>{o.type===t.Fragment&&Array.isArray(o.children)?n.push(...vi(o.children)):n.push(o)}),n}function ru(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function uo(e){function n(){return vi(e?.()??[]).filter(ru)}return{getChildren:n}}var iu={...pe,...ci,...di};function su(e,n,o){return{props:iu,emits:["update:collapse","header-click"],setup(l,a){const r=to(l.prop??l.name,l,fi),s=tu(r,{type:l.type}),i=zn();Ln(!0);const u=l.rollingDisplay?lu():null,m=(0,t.ref)(null),p=(0,t.computed)(()=>l.rollingDisplay?u&&!u.disabled:!1),c=(0,t.computed)(()=>i&&r?On(r,!0).value:null),h=(0,t.getCurrentInstance)(),y=(q,H=!1)=>{const I=h?.proxy;I&&typeof I.setNameValidateRules=="function"&&I.setNameValidateRules(q,!0,H)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([q,H],[I,E])=>{if(q&&I){const j=(0,t.toRaw)(I),Q=(0,t.toRaw)(q),ne=Q?Reflect.ownKeys(Q):[];(j?Reflect.ownKeys(j):[]).forEach(ae=>{ne.includes(ae)||(Q[ae]=[])}),y(Q)}if(H&&E){const j=(0,t.toRaw)(E),Q=(0,t.toRaw)(H),ne=Q?Reflect.ownKeys(Q):[];(j?Reflect.ownKeys(j):[]).forEach(ae=>{ne.includes(ae)||(Q[ae]=[])}),y(Q,!0)}},{deep:!0});const w=e,S=(0,t.computed)(()=>{const q={};if(q.height=$.value,l.width)l.width!=="auto"&&(q.width=de(l.width));else{const H=i?Rn(r,!0):null;if(c.value&&H){if(c.value.type==="grid"){const I=Kn(H,c.value,l.span,l.offset);Object.assign(q,I)}else if(c.value.type==="flow"){const I=Fn(H,c.value,l.span,l.offset,l.width);Object.assign(q,I)}}}return q}),b=(0,t.computed)(()=>{const q=s.layout.value.type;return q==="grid"||q==="flow"?{[`${w}--${q}`]:!0,[`${w}--${q}-justify-${l.justify}`]:!0,[`${w}--${q}-align-${l.align}`]:!0,[`${w}--gutter`]:!0}:{[`${w}--${q}`]:!0,[`${w}--gutter`]:!0}}),f=(0,t.computed)(()=>{if(s.layout.value.type==="grid"){let q="";if(l.columnWidth)q=`repeat(auto-fill, ${l.columnWidth})`;else{const H=au(A.value,s.layout.value.column,s.layout.value.gutter);q=`repeat(${s.layout.value.column}, ${H})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":q}}}),k=(0,t.toRef)(l,"gutter"),d=(0,t.toRef)(l,"column"),C=(0,t.computed)(()=>i||p.value?!0:ye(l.isWrap)),N=[],v=q=>{N.push(q)},g=()=>{let q=N.length;N.splice(0,q)},A=(0,t.ref)(-1),B=q=>{const H=Pn(q).width;H>0&&H!==A.value&&(A.value=H)};gl(r,A.value,d.value,k.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([A,d,k],([q,H,I])=>{s.order.index=0,gl(r,q,H,I,!1,l.minItemWidth,l.maxItemWidth,l.type)});const V=(0,t.computed)(()=>z.value?l.expandText??"":l.collapseText??""),T=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),_=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!z.value,"is-collapse":z.value})),G=(0,t.ref)(),x=(0,t.ref)(),$=(0,t.computed)(()=>P.value||de(l.height)||""),z=(0,t.ref)(!1),P=(0,t.ref)(""),O=(0,t.ref)(!1);let F=-1;const D=(q,H=!0)=>{const I=G.value;if(I&&z.value!==q){if(F=F<=0?ou(I):F,O.value=!0,H)if(I.style["will-change"]="height",I.ontransitionend=function(){I.ontransitionend=null,this.style["will-change"]="auto",q||(P.value="",O.value=!1)},q){let E=0;l.collapseHeight?E=l.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(E=x.value.offsetHeight),P.value=`${F}px`,(0,t.nextTick)(()=>{P.value=`${E}px`})}else P.value=`${F}px`;else if(q){let E=0;l.collapseHeight?E=l.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(E=x.value.offsetHeight),P.value=`${E}px`}else O.value=!1,P.value=`${F}px`;z.value=q,a.emit("update:collapse",q)}};(0,t.watch)(()=>l.collapse,q=>{D(q)});const X=q=>{a.emit("header-click",q)},te=()=>{L()},L=q=>{q=q??!z.value,D(q)};Be({toggleCollapse:L,doLayout:()=>{N[0]&&(B(N[0]),gl(r,A.value,d.value,k.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let M=null,Y=!0;const R=q=>{if(l.rules&&y((0,t.toRaw)(l.rules)),l.pureDataRules&&y((0,t.toRaw)(l.pureDataRules),!0),!!Qe&&(q&&D(ye(l.collapse),!1),l.autoLayout&&Array.isArray(N)&&N.length>0)){const H=N[0];if(B(H),window.ResizeObserver){const I=qe(()=>B(H),120);M=new window.ResizeObserver(I),M.observe(H)}}},U=()=>{M?.disconnect(),M=null},Z=!p.value||u?.acquire();Z&&(m.value=p.value?!0:null),(0,t.onMounted)(()=>{if(Z&&(R(Y),Y=!1),p.value&&u){let q=null,H=u.initialHeight;u.observe(G.value,I=>{if(I!==m.value)if(I)m.value=!0,z.value||(P.value=""),q=setTimeout(()=>{q=null,m.value!==!1&&(R(Y),Y=!1)},100);else{if(q!==null&&clearTimeout(q),m.value=!1,!z.value)if(Y)P.value=u.initialHeight;else{let E=ql(G.value);E<=0?P.value=H:(P.value=`${E}px`,H=P.value)}Y||U()}})}}),(0,t.onUnmounted)(()=>{M?.disconnect(),u&&u.unobserve(G.value)});const W=(q="right")=>{const H=[];if(V.value){const j=(0,t.h)("span",{class:T.value},[V.value]);H.push(j)}const I={class:_.value},E=(0,t.h)(l.collapseIcon??o,I);return H.push(E),H.length>0?(0,t.h)("div",{class:{[`${w}__header-collapse`]:!0,[`is-${q}`]:!0},onClick:te},H):null},ee=(q,H,I,E)=>{const j={...b.value};if(H===0&&(j[`${w}__first`]=!0),I>=E-1&&(j[`${w}__last`]=!0),C.value===!1){const Q=a.attrs.class;Q&&(j[`${Q}`]=!0)}return(0,t.h)("div",{ref:v,key:`${H}`,class:j,style:f.value},q)};return()=>{const q=l.prop??l.name;if(p.value&&m.value!==!0)return(0,t.h)(l.tag||"div",{ref:G,prop:q,class:{[`${w}`]:!0,"is-collapse":O.value},style:S.value},[]);s.order.index=0;const H=[];let I=0;if(a.slots.header){const ne=(0,t.h)("div",{key:`${I++}`,ref:x,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:X},[a.slots.header()]);H.push(ne)}else{const ne=[],ae=l.collapsePosition==="left";if(ae&&l.showCollapse){const ie=W("left");ie&&ne.push(ie)}if(l.title||a.slots.title){if(l.showMark){const ie={class:{[`${w}__header-mark`]:!0}};l.markColor&&(ie.style={background:l.markColor});const Se=(0,t.h)("div",ie);ne.push(Se)}if(a.slots.title){const ie=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[a.slots.title()]);ne.push(ie)}else if(l.title){const ie=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[l.title]);ne.push(ie)}}if(a.slots.toolbar&&ne.push(a.slots.toolbar()),!ae&&l.showCollapse){const ie=W("right");ie&&ne.push(ie)}if(ne.length>0){const ie=(0,t.h)("div",{key:`${I++}`,ref:x,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:X},ne);H.push(ie)}}g();const{getChildren:E}=uo(a.slots.default),j=E(),Q=s.layout.value.type;if(Q==="grid"){const ne=ee(j,I++,0,j.length);H.push(ne)}else if(Q==="flow"){const ne=ee(j,I++,0,j.length);H.push(ne)}else for(let ne=0;ne<j.length;ne++){const ae=j[ne],ie=ee([ae],I++,ne,j.length);H.push(ie)}return C.value?(0,t.h)(l.tag||"div",{ref:G,prop:q,class:{[`${w}`]:!0,"is-collapse":O.value},style:S.value},[H]):H}}}}var{componentName:uu,create:cu,scope:du}=J("group"),fu=cu(su(uu,du,le.RectUp)),co=fu;function mu(e){return e===window}var pu=/matrix\((.+)\)/,fo=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,a=n;for(;a!==null;)o+=a.offsetLeft,l+=a.offsetTop,a=a.offsetParent;let r=0,s=0,i=0,u=0;for(a=n;a!==document;){s+=a.scrollTop,r+=a.scrollLeft;const{transform:m}=window.getComputedStyle(a);if(m){const p=pu.exec(m);if(p){let c=p[1].split(/\s*,\s*/);c.length==6&&(i+=Number(c[4]),u+=Number(c[5]))}}a=a.parentNode}return o-=r,l-=s,o+=i,l+=u,{x:o,y:l}},hu=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{}})}},vu=class{monitorRegister=new WeakMap;watch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let a=this.monitorRegister.get(o);a||(a=new hu,o.addEventListener("scroll",a.listen),o===document.body&&o.addEventListener("resize",a.listen),this.monitorRegister.set(o,a)),a.add(n),o=o.parentNode}}unwatch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let a=this.monitorRegister.get(o);a&&(a.remove(n),a.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",a.listen),o===document.body&&o.removeEventListener("resize",a.listen))),o=o.parentNode}}},Ft=new vu,gi={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:gu,create:yu}=J("price"),bu=yu({props:{...gi},setup(e){const n=(0,t.computed)(()=>({[gu]:!0})),o=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>be(e.price)==0?"":An(e.price,e.decimalLength,!0,fe(e.digits),e.separator));return{classes:n,showSymbol:o,intText:(0,t.computed)(()=>{let a=l.value;if(a.length==0)return"";let r=a.indexOf(".");return a.substring(0,r)}),decimalText:(0,t.computed)(()=>{let a=l.value;if(a.length==0)return"";let r=a.indexOf(".");return a.substring(r+1)})}}}),oe=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},Su=["innerHTML"],ku=["innerHTML"];function wu(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Su)):(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,ku)):(0,t.createCommentVNode)("",!0)],2)}var Un=oe(bu,[["render",wu]]),{componentName:yl,create:Cu}=J("hint-text"),Nu=Cu({components:{Price:Un},props:{...gi,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:()=>6},showArrow:{type:Boolean,default:()=>!0},arrowOffset:{type:Number,default:()=>20},offset:{type:Number,default:()=>12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const o=(0,t.ref)({top:null,right:null,bottom:null,left:null}),l=(0,t.ref)({x:0,y:0}),a=(0,t.ref)(0),r=(0,t.ref)(0),s=(0,t.ref)(e.placement),i=(0,t.ref)(!1),u=(0,t.ref)(null),m=(T,_,G,x,$,z)=>{const P=document.documentElement.clientWidth||document.body.clientWidth,O=document.documentElement.clientHeight||document.body.clientHeight,F=T.split("-");let D=[];F[0]==="top"?D=["top","bottom","right","left"]:F[0]==="bottom"?D=["bottom","top","right","left"]:F[0]==="left"?D=["left","top","bottom","right"]:F[0]==="right"&&(D=["right","top","bottom","left"]);const X={top:null,right:null,bottom:null,left:null},te=[];for(let L=0;L<D.length;L++){const K=D[L];if(te[0]=K,F[1]&&(te[1]=F[1]),K==="top"){const M=_.y-z-e.arrowSize-e.offset;if(M>=0){X.top=M;let Y=0;F[1]==="start"?Y=_.x:F[1]==="end"?Y=_.x+G-$:Y=_.x+G/2-$/2;const R=P-Y-$;R<0?(Y+=R,c.value=-R):c.value=0,X.left=Y<0?0:Y;break}}else if(K==="bottom"){const M=_.y+x+e.arrowSize+e.offset;if(M+z<=O){X.top=M;let Y=0;F[1]==="start"?Y=_.x:F[1]==="end"?Y=_.x+G-$:Y=_.x+G/2-$/2;const R=P-Y-$;R<0?(Y+=R,c.value=-R):c.value=0,X.left=Y<0?0:Y;break}}else if(K==="left"){const M=_.x-$-e.arrowSize-e.offset;if(M>=0){X.left=M;let Y=0;F[1]==="start"?Y=_.y:F[1]==="end"?Y=_.y+x-z:Y=_.y+x/2-z/2,X.top=Y<0?0:Y;break}}else if(K==="right"){const M=_.x+G+e.arrowSize+e.offset;if(M+$<=P){X.left=M;let Y=0;F[1]==="start"?Y=_.y:F[1]==="end"?Y=_.y+x-z:Y=_.y+x/2-z/2,X.top=Y<0?0:Y;break}}}return{bestPlacement:te.join("-"),bestInsetRect:X}},p=(T,_,G=10)=>{if(!Qe||_===!1||!T)return;l.value=fo(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const x=u.value.offsetHeight,$=u.value.offsetWidth,{bestPlacement:z,bestInsetRect:P}=m(e.placement,l.value,a.value,r.value,$,x);s.value=z,o.value=P,i.value=!0},c=(0,t.ref)(0),h=qe(()=>{p(e.message,e.visible)},10),y=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,T=>{y.value=T});const w=(0,t.computed)(()=>y.value&&S.value),S=(0,t.ref)(!0),b=qe(T=>{const _=T[0];_&&(S.value=_.isIntersecting)},10),f=new IntersectionObserver(b);(0,t.watch)([()=>e.message,()=>e.visible],([T,_])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Ft.watch(e.reference,h),f.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Ft.unwatch(e.reference,h),f.unobserve(e.reference),f.disconnect()});const k=(0,t.computed)(()=>{const T={[yl]:!0};return s.value.startsWith("top")?T["is-top"]=!0:s.value.startsWith("right")?T["is-right"]=!0:s.value.startsWith("bottom")?T["is-bottom"]=!0:s.value.startsWith("right")&&(T["is-right"]=!0),e.size==="small"?T["is-small"]=!0:e.size==="large"&&(T["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(T[`${e.customClass}`]=!0),T}),d=(0,t.computed)(()=>{const T={};return o.value.top!==null&&(T.top=`${o.value.top}px`),o.value.right!==null&&(T.right=`${o.value.right}px`),o.value.bottom!==null&&(T.bottom=`${o.value.bottom}px`),o.value.left!==null&&(T.left=`${o.value.left}px`),e.autoFit&&(T["min-width"]=`${a.value}px`),T["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,i.value&&(T.opacity="1"),e.transition||(T.transition="none"),e.zIndex&&(T["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(T,e.customStyle),T}),C=(0,t.computed)(()=>{const T=[`${yl}__content`];return e.customTextClass&&T.push(e.customTextClass),T}),N=(0,t.computed)(()=>{const T={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(T,e.customTextStyle),T}),v=(0,t.computed)(()=>({[`${yl}__arrow`]:!0})),g=(0,t.computed)(()=>{const T={};return e.showArrow?(T.width=`${e.arrowSize}px`,T.height=`${e.arrowSize}px`,s.value==="top"?(T.left="50%",T.bottom=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):s.value==="top-start"?(T.left=`${e.arrowOffset+c.value}px`,T.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(T.right=`${e.arrowOffset-c.value}px`,T.bottom=`-${e.arrowSize}px`):s.value==="right"?(T.left=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):s.value==="right-start"?(T.left=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):s.value==="right-end"?(T.left=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(T.left="50%",T.top=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(T.left=`${e.arrowOffset+c.value}px`,T.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(T.right=`${e.arrowOffset-c.value}px`,T.top=`-${e.arrowSize}px`):s.value==="left"?(T.right=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):s.value==="left-start"?(T.right=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):s.value==="left-end"&&(T.right=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`),T):{display:"none"}}),A=(0,t.computed)(()=>w.value&&e.closeOnClick),B=(0,t.computed)(()=>{const T={};return e.zIndex&&(T["z-index"]=`${e.zIndex}`),T});return{show:w,tipRef:u,classes:k,styles:d,textClasses:C,textStyles:N,arrowClasses:v,arrowStyles:g,overlayShow:A,overlayStyle:B,onClickOverlay:()=>{y.value=!1,n.emit("update:visible",!1)}}}}),Au=["innerHTML"];function Bu(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Price");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.overlayShow?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,t.normalizeStyle)(e.overlayStyle),onClick:n[0]||(n[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"tipRef",class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(e.textClasses),style:(0,t.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,Au))],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 yi=oe(Nu,[["render",Bu]]),Hn=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},Pl={},Tu=new Hn,vt=new Map,Cn=e=>{if(e){const n=document.getElementById(e);vt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of vt.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}vt.clear()}},Vu=e=>{e.unmount=Cn;const n=document.getElementById(e.id);if(n){const o=vt.get(e.id);return o?e={...Pl,...o,...e}:e={...Pl,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(yi,e),n),e.id}},xu=e=>{e.unmount=Cn;let n=e.id??`hinttext_${Tu.get()}`;e={...Pl,...e},e.id=n,vt.set(n,e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(yi,e),o),document.body.appendChild(o),n},$u=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},xt={show(e,n,o={},l=!0){$u(n);const a=o.id;return a&&vt.has(a)?Vu({...o,message:n,reference:e}):(l&&Cn(),xu({...o,message:n,reference:e}))},hide(e){Cn(e)},install(e){e.config.globalProperties.$hintText=xt}};function Eu(e,n,o,l=!1){return{inheritAttrs:!0,props:{...pe,...ve},emits:["appear","disappear"],setup(a,r){const s=a.prop??r.attrs.name;Ae({componentName:e,validate:!1},s);const i=Ze(),u=zn();Ln(!1);const m=(0,t.computed)(()=>u&&i?On(i,!1).value:null),p=e,c=(0,t.ref)(null),h=(0,t.computed)(()=>{const E={[p]:!0,[`${p}__gutter`]:m.value&&m.value.type!=="flow",[`${p}__stretch`]:a.span==="stretch",[`${p}__input--border`]:ye(a.hasBorder)};if(E[a.errorMarkClass]=!!z.value,E[a.warnMarkClass]=!!x.value,E[a.infoMarkClass]=!!_.value,typeof c.value=="function"){const j=c.value(s);E[j]=!0}else if(typeof c.value=="string"){const j=c.value;E[j]=!0}return E}),y=(0,t.ref)(null),w=(0,t.computed)(()=>{const E={};if(a.width)a.width!=="auto"&&(E.width=de(a.width));else{const j=u&&i?Rn(i,!1):null;if(m.value&&j){if(m.value.type==="grid"){const Q=Kn(j,m.value,a.span,a.offset);Object.assign(E,Q)}else if(m.value.type==="flow"){const Q=Fn(j,m.value,a.span,a.offset,a.width);Object.assign(E,Q)}}}if(typeof y.value=="function"){const j=y.value(s);j&&Object.assign(E,j)}else if(y.value&&typeof y.value=="object"){const j=y.value;Object.assign(E,j)}return E}),S=(0,t.ref)(null),b=(0,t.computed)({get:()=>S.value??ye(a.isRequired),set:E=>{S.value=E}}),f=()=>typeof a.label=="string"&&a.label.length>0||typeof r.slots.label=="function",k=Te((0,t.toRef)(a,"labelPosition"),"labelPosition",at.Near),d=(0,t.computed)(()=>k&&k.value==="top"?"top":k&&k.value==="right"?"right":"left"),C=(0,t.computed)(()=>({[`${p}__main`]:!0,[`${p}__main--${d.value}`]:!0})),N=(0,t.computed)(()=>({label:!0,[`label--${d.value}`]:!0})),v=Te((0,t.toRef)(a,"labelWidth"),"labelWidth",at.Near),g=(0,t.computed)(()=>v&&v.value?{width:de(v.value)}:{}),A=(0,t.computed)(()=>({"label--string":!0,"label--required":b.value})),B=(0,t.computed)(()=>({content:!0,[a.contentClass]:!0})),V=(0,t.computed)(()=>({...a.contentStyle})),T=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Be({setRequired(E){b.value=E},setErrorTip(E){T.errorTip=E},setErrorIcon(E){T.errorIcon=E},setWarnTip(E){T.warnTip=E},setWarnIcon(E){T.warnIcon=E},setInfoTip(E){T.infoTip=E},setInfoIcon(E){T.infoIcon=E},setCustomClassName(E){c.value=E},setCustomStyle(E){y.value=E}});const _=(0,t.computed)(()=>a.infoTip||T.infoTip),G=(0,t.computed)(()=>a.infoIcon||T.infoIcon),x=(0,t.computed)(()=>a.warnTip||T.warnTip),$=(0,t.computed)(()=>a.warnIcon||T.warnIcon),z=(0,t.computed)(()=>a.errorTip||T.errorTip),P=(0,t.computed)(()=>a.errorIcon||T.errorIcon),O=(0,t.computed)(()=>z.value?"error":x.value?"warn":_.value?"info":""),F=()=>O.value.length>0,D=(0,t.computed)(()=>O.value==="error"?z.value:O.value==="warn"?x.value:O.value==="info"?_.value:""),X=(0,t.computed)(()=>O.value==="error"?P.value:O.value==="warn"?$.value:O.value==="info"?G.value:null),te=(0,t.computed)(()=>{const E={[`${p}__tip`]:!0,[`${p}__tip--${O.value}`]:!0,[`${p}--animate`]:!0};return O.value==="error"&&a.errorClass?E[`${a.errorClass}`]=!0:O.value==="warn"&&a.warnClass?E[`${a.warnClass}`]=!0:O.value==="info"&&a.infoClass&&(E[`${a.infoClass}`]=!0),E}),L=(0,t.computed)(()=>{const E={};return k&&k.value==="top"||!f()?E["padding-left"]="0px":v&&v.value&&(E["padding-left"]=de(v.value)),E}),K=(0,t.ref)();let M="";(0,t.watch)([()=>a.hintVisible,()=>a.hintText,()=>a.hintType,()=>a.hintProps],([E,j,Q,ne])=>{K.value&&(E&&!ue(j)?M?o.show(K.value,j,{...ne,id:M,type:Q},!0):M=o.show(K.value,j,{...ne,type:Q},!0):o.hide(M))});let Y=null;const R=()=>{Y||!K.value||(Y=new IntersectionObserver(E=>{let j=!1;for(let Q of E)if(Q.intersectionRatio>0){j=!0,j&&r.emit("appear",Q);break}j||r.emit("disappear")}),Y.observe(K.value))},U=()=>{!Y||!K.value||(Y.unobserve(K.value),Y=null)};(0,t.watch)(()=>ye(a.appearListen),E=>{E?R():U()}),(0,t.onMounted)(()=>{ye(a.appearListen)&&R()}),(0,t.onUnmounted)(U);const Z=()=>{if(!f())return null;const E=[],j=r.slots?.label?.()??a.label,Q=(0,t.h)("div",{class:A.value},[j]);if(E.push(Q),r.slots.fixedPreTip){const ne=r.slots.fixedPreTip();E.push(ne)}return(0,t.h)("div",{class:N.value,style:g.value},E)},W=()=>{const E=[];if(r.slots.prepend){const j=r.slots.prepend();E.push(j)}if(r.slots.default){const j=r.slots.default();E.push(j)}if(r.slots.append){const j=r.slots.append();E.push(j)}if(r.slots.fixedTip){const j=(0,t.h)("div",{class:[`${p}__fixed-tip`]},[r.slots.fixedTip()]);E.push(j)}return(0,t.h)("div",{ref:K,class:B.value,style:V.value},E)},ee=()=>{const E=X.value;return E?typeof E=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[E()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(E)]):null},q=()=>{const E=D.value;return E?typeof E=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[E()]):(0,t.h)("div",{class:"fox-item__tip--text"},[E]):null},H=()=>{if(!F())return null;const E=[],j=ee();j&&E.push(j);const Q=q();return Q&&E.push(Q),(0,t.h)("div",{class:te.value,style:L.value},E)},I=()=>r.slots?.hide?.()??null;return()=>{const E=[],j=[],Q=Z();Q&&j.push(Q);const ne=W();ne&&j.push(ne);const ae=(0,t.h)("div",{class:C.value},j);E.push(ae);const ie=H();ie&&E.push(ie);const Se=I();return Se&&E.push(Se),(0,t.h)("div",{class:h.value,style:w.value,prop:a.prop},E)}}}}var{componentName:Du,create:Iu,scope:qu}=J("item"),Pu=Iu(Eu(Du,qu,xt,!1)),Ce=Pu,bi={span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function Mu(e,n){return{props:{...bi},setup(o,l){const a=e,r=(0,t.computed)(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),s=Ze(),i=zn();Ln(!1);const u=(0,t.computed)(()=>{const m={};if(o.width)o.width!=="auto"&&(m.width=de(o.width));else if(i&&s){const p=On(s,!1),c=Rn(s,!1);if(p.value&&c){if(p.value.type==="grid"){const h=Kn(c,p.value,o.span,o.offset);Object.assign(m,h)}else if(p.value.type==="flow"){const h=Fn(c,p.value,o.span,o.offset,o.width);Object.assign(m,h)}}}return o.gutter&&(m.gap=de(o.gutter)),m});return()=>{const m=[];if(l.slots.default){const p=l.slots.default();if(o.divide)for(let c=0;c<p.length;c++){if(c>0){const h=(0,t.h)("div",{class:{[`${a}__divide`]:!0}});m.push(h)}m.push(p[c])}else Reflect.apply([].push,m,p)}return(0,t.h)("div",{class:r.value,style:u.value},m)}}}}var{componentName:zu,create:Lu,scope:Ou}=J("row-item"),Ru=Lu(Mu(zu,Ou)),_n=Ru,Fu=(0,t.defineComponent)({name:"ArrowDown",__name:"arrow-down",setup(e){return(n,o)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,t.createElementVNode)("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}});function Ku(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},500)}var Uu={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 Hu(e,n,o,l=!1){return{props:{...Uu},emits:["click"],setup(a,r){const s=(0,t.ref)(null),i=(0,t.computed)(()=>{const d={[`${e}`]:!0,"is-truncated":a.truncated};return a.type&&(d[`${e}--${a.type??"default"}`]=!0),a.size&&(d[`${e}--${a.size}`]=!0),d}),u=(0,t.computed)(()=>{const d={},C=a.textColor??a.color;return C&&(d.color=C),d}),m=(d,C)=>{let N=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const v=a.highlightFilter;d.indexOf(v)!==-1&&(C.innerHTML=d.replace(new RegExp(v,"g"),`<span>${v}</span>`),C.class["is-highlight"]=!0,N=(0,t.h)(a.tag,C))}else if(typeof a.highlightFilter=="function"){const v=a.highlightFilter(d);v&&(C.innerHTML=v,C.class["is-highlight"]=!0,N=(0,t.h)(a.tag,C))}return N},p=d=>{r.emit("click",d)};let c="";const h=()=>{const d=s.value;if(!d)return;const C=d.clientWidth;Ku(d,N=>{const v=d.innerHTML??"";ue(v)||N<C||(c?o?.show(d,v,{type:"text",id:c,showArrow:a.showArrow},!0):c=o?.show(d,v,{type:"text",showArrow:a.showArrow},!0)??"")})},y=()=>{c&&o?.hide(c)};let w=null;const S=d=>{w||(w=setTimeout(()=>{h(),w=null},a.showAfter??0))},b=d=>{w&&(clearTimeout(w),w=null),setTimeout(()=>{y()},a.hideAfter??0)},f=()=>{const d=s.value;d&&(d.addEventListener("mouseover",S),d.addEventListener("mouseleave",b))},k=()=>{const d=s.value;d&&(d.removeEventListener("mouseover",S),d.removeEventListener("mouseleave",b))};return(0,t.onMounted)(()=>{!ye(a.showOverflowTooltip)||!o||f()}),(0,t.onBeforeUnmount)(()=>{!ye(a.showOverflowTooltip)||!o||k()}),()=>{const d={onClick:p,class:i.value,style:u.value,ref:s};let C=null;if(ye(a.numberFormat)&&typeof r.slots.default=="function"){const v=r.slots.default();if(Array.isArray(v)&&v.length===1){const g=v[0].type.toString();if(g==="Symbol(Text)"||g==="Symbol(v-txt)"){const A=fe(a.digits),B=fe(a.decimalLength),V=ye(a.autoPadding);let T=`${v[0].children}`,_=T.split("").reverse().join("");_=An(_,B,V,A,a.separator),T=_.split("").reverse().join(""),a.highlightFilter!==void 0&&(C=m(T,d)),C||(d.innerHTML=T,C=(0,t.h)(a.tag,d))}}}else{if(a.highlightFilter!==void 0&&typeof r.slots.default=="function"){const v=r.slots.default();if(Array.isArray(v)&&v.length===1){const g=v[0].type.toString();if(g==="Symbol(Text)"||g==="Symbol(v-txt)"){const A=`${v[0].children}`;C=m(A,d),C||(d.innerHTML=A,C=(0,t.h)(a.tag,d))}}}C||(C=(0,t.h)(a.tag,d,{default:r.slots.default}))}if(!a.mark&&!a.icon&&!r.slots.mark)return C;const N=[];if(r.slots.mark){const v={[`${e}__mark-wrap`]:!0};a.type&&(v[`${e}__mark-wrap--${a.type}`]=!0);const g={},A=a.color;A&&(g.color=A);const B=(0,t.h)("view",{class:v,style:g},{default:r.slots.mark});N.push(B)}else{const v={[`${e}__mark`]:!0};a.type&&(v[`${e}__mark--${a.type??"default"}`]=!0);const g={},A=a.color;A&&(g["background-color"]=A);const B=(0,t.h)("view",{class:v,style:g});N.push(B)}if(a.divide){const v=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});N.push(v)}return N.push(C),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":a.textPosition==="left","text-right":a.textPosition==="right"}},N)}}}}var{componentName:_u,create:ju,scope:Wu}=J("text"),Yu=ju(Hu(_u,Wu,xt,!1)),jn=Yu,Xu={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 Qu(e,n,o=!1){return{props:{...Xu},emits:["update:visible"],setup(l,{emit:a,slots:r,expose:s}){const i=(0,t.ref)({top:null,right:null,bottom:null,left:null}),u=(0,t.ref)(0),m=(0,t.ref)(0),p=(0,t.ref)(0),c=(0,t.ref)(0),h=(0,t.ref)(l.placement),y=(0,t.ref)(!1),w=(0,t.ref)(!1),S=(0,t.ref)(null),b=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,f=(D,X,te,L,K,M,Y,R=!0)=>{const U=document.documentElement.clientWidth||document.body.clientWidth,Z=document.documentElement.clientHeight||document.body.clientHeight,W=D.split("-");let ee=[];R?W[0]==="top"?ee=["top","bottom","right","left"]:W[0]==="bottom"?ee=["bottom","top","right","left"]:W[0]==="left"?ee=["left","top","bottom","right"]:W[0]==="right"&&(ee=["right","top","bottom","left"]):ee=[D[0]];const q={top:null,right:null,bottom:null,left:null},H=[];for(let I=0;I<ee.length;I++){const E=ee[I];if(H[0]=E,W[1]&&(H[1]=W[1]),E==="top"){const j=te-Y-l.arrowSize/2-l.offset;if(j>=0){q.top=j;let Q=0;W[1]==="start"?Q=X:W[1]==="end"?Q=X+L-M:Q=X+L/2-M/2;const ne=U-Q-M;ne<0?(Q+=ne,d.value=-ne):d.value=0,q.left=Q<0?0:Q;break}}else if(E==="bottom"){const j=te+K+l.arrowSize/2+l.offset;if(j+Y<=Z){q.top=j;let Q=0;W[1]==="start"?Q=X:W[1]==="end"?Q=X+L-M:Q=X+L/2-M/2;const ne=U-Q-M;ne<0?(Q+=ne,d.value=-ne):d.value=0,q.left=Q<0?0:Q;break}}else if(E==="left"){const j=X-M-l.arrowSize/2-l.offset;if(j>=0){q.left=j;let Q=0;W[1]==="start"?Q=te:W[1]==="end"?Q=te+K-Y:Q=te+K/2-Y/2,q.top=Q<0?0:Q;break}}else if(E==="right"){const j=X+L+l.arrowSize/2+l.offset;if(j+M<=U){q.left=j;let Q=0;W[1]==="start"?Q=te:W[1]==="end"?Q=te+K-Y:Q=te+K/2-Y/2,q.top=Q<0?0:Q;break}}}return{bestPlacement:H.join("-"),bestInsetRect:q}},k=()=>{const D=l.visible,X=l.autoFit;if(!Qe||D===!1)return;if(l.reference){const Y=b(),R=fo(Y);u.value=R.x,m.value=R.y,p.value=Y.offsetWidth,c.value=Y.offsetHeight}else l.referenceInset&&(u.value=l.referenceInset.left,m.value=l.referenceInset.top,p.value=l.referenceInset.right-l.referenceInset.left,c.value=l.referenceInset.bottom-l.referenceInset.top);const te=S.value.offsetWidth,L=S.value.offsetHeight,{bestPlacement:K,bestInsetRect:M}=f(l.placement,u.value,m.value,p.value,c.value,te,L,X);h.value=K,i.value=M},d=(0,t.ref)(0),C=qe(()=>{k()},10),N=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([D])=>{N.value=D,D?(y.value=D,setTimeout(()=>{k(),w.value=!0},0)):w.value=!1});const v=(0,t.computed)(()=>N.value&&g.value),g=(0,t.ref)(!0),A=qe(D=>{const X=D[0];X&&(g.value=X.isIntersecting)},10),B=new IntersectionObserver(A);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([D,X],[te,L])=>{!D&&!X||(setTimeout(()=>{k()},0),l.autoFit&&(te&&(Ft.unwatch(te,C),B.unobserve(te)),D&&(Ft.watch(D,C),B.observe(D))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Ft.unwatch(l.reference,C),B.unobserve(l.reference),B.disconnect())});const V=(0,t.computed)(()=>{const D={[e]:!0};return h.value.startsWith("top")?D["is-top"]=!0:h.value.startsWith("right")?D["is-right"]=!0:h.value.startsWith("bottom")?D["is-bottom"]=!0:h.value.startsWith("left")&&(D["is-left"]=!0),D[`is-${l.effect}`]=!0,!w.value&&v.value&&(D["is-opacity"]=!0),w.value&&v.value&&(D["is-show"]=!0),v.value||(D["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(D[`${l.customClass}`]=!0),D}),T=(0,t.computed)(()=>{const D={};return i.value.top!==null&&(D.top=`${i.value.top}px`),i.value.right!==null&&(D.right=`${i.value.right}px`),i.value.bottom!==null&&(D.bottom=`${i.value.bottom}px`),i.value.left!==null&&(D.left=`${i.value.left}px`),l.width&&(D.width=l.width),l.zIndex&&(D["z-index"]=`${l.zIndex}`),l.customStyle&&typeof l.customStyle=="object"&&Object.assign(D,l.customStyle),D}),_=()=>{N.value=!1,a("update:visible",!1)},G=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:_}):null,x=()=>{let D=null;return r.title?D=(0,t.h)("div",{class:`${e}__title`},{default:r.title}):l.title&&(D=(0,t.h)("div",{class:`${e}__title`},[l.title])),D},$=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),z=(0,t.computed)(()=>{const D={};return l.showArrow?(D.width=`${l.arrowSize}px`,D.height=`${l.arrowSize}px`,h.value==="top"?(D.left="50%",D.bottom="0",D.transform="translate(-50%, 50%)"):h.value==="top-start"?(D.left=`${l.arrowOffset+d.value}px`,D.bottom="0",D.transform="translate(-50%, 50%)"):h.value==="top-end"?(D.right=`${l.arrowOffset-d.value}px`,D.bottom="0",D.transform="translate(-50%, 50%)"):h.value==="right"?(D.left="0",D.top="50%",D.transform="translate(-50%, -50%)"):h.value==="right-start"?(D.left="0",D.top=`${l.arrowOffset}px`,D.transform="translate(-50%, 50%)"):h.value==="right-end"?(D.left="0",D.bottom=`-${l.arrowOffset}px`,D.transform="translate(-50%, 50%)"):h.value==="bottom"?(D.left="50%",D.top="0",D.transform="translate(-50%, -50%)"):h.value==="bottom-start"?(D.left=`${l.arrowOffset+d.value}px`,D.top="0",D.transform="translate(-50%, -50%)"):h.value==="bottom-end"?(D.right=`${l.arrowOffset-d.value}px`,D.top="0",D.transform="translate(-50%, -50%)"):h.value==="left"?(D.right="0",D.top="50%",D.transform="translate(50%, -50%)"):h.value==="left-start"?(D.right="0",D.top=`${l.arrowOffset}px`,D.transform="translate(50%, -50%)"):h.value==="left-end"&&(D.right="0",D.bottom=`-${l.arrowOffset}px`,D.transform="translate(50%, -50%)"),D):{display:"none"}}),P=()=>(0,t.h)("div",{class:$.value,style:z.value}),O=()=>{N.value===!1&&(y.value=!1)},F=D=>{if(!S.value||N.value===!1)return;const{relatedTarget:X}=D;S.value.contains(X)||(N.value=!1,a("update:visible",!1))};return s({doLayout:k}),()=>{if(!y.value)return null;const D=[],X=G();X&&D.push(X);const te=[],L=x();if(L&&te.push(L),r.default){const R=r.default();te.push(R)}const K=P();K&&te.push(K);const M={ref:S,class:V.value,style:T.value,onAnimationend:O};l.leaveHide&&(M.onMouseleave=F);const Y=(0,t.h)("div",M,{default:()=>te});return D.push(Y),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>D})}}}}var{componentName:Gu,create:Zu,scope:Ju}=J("popover-dialog"),ec=Zu(Qu(Gu,Ju,!1)),Wn=ec,tc={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function nc(e,n,o){return{props:{...bi,...tc},emits:["click"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:s}=(0,me.useFoxI18n)(n),i=s(l,["moreText"]),u=e,m=(0,t.computed)(()=>({[u]:!0}));function p(v){return v.props||{}}function c(v){return!!p(v).disabled}function h(v){return v.children??[]}const y=(0,t.ref)(),w=(0,t.computed)(()=>y.value?.$el??null),S=(0,t.ref)(!1),b=v=>{S.value=v},f=()=>{S.value=!S.value};function k(v,g){return()=>{g||(S.value=!1,p(v)?.onClick?.())}}function d(v,g){const A=h(v),B=c(v),V=k(v,B),T=[`${u}__dropdown-item`];return B&&T.push("is-disabled"),(0,t.h)("span",{class:T,onClick:V},A)}const C=v=>{const g=l.maxDisplayCount??v.length;if(g>=v.length)return v;const A=[],B=g-1;for(let x=0;x<B;x++)A.push(v[x]);const V=(r.moreIcon&&r.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(o),T=(0,t.h)(jn,{ref:x=>y.value=x,class:`${u}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:f},{default:()=>i.moreText.value,mark:()=>V});A.push(T);const _=[];for(let x=B;x<v.length;x++){const $=d(v[x],x);_.push($)}const G=(0,t.h)(Wn,{placement:l.dropdownPlacement,"onUpdate:visible":b,visible:S.value,reference:w.value,"custom-class":`${u}__popover`},{default:()=>_});return A.push(G),A},N=()=>(r.default?.()||[]).filter(v=>v.type!==Comment);return()=>{const v=C(N());return(0,t.h)(_n,{class:m.value},{default:()=>v})}}}}var{componentName:lc,create:oc,scope:ac}=J("buttons-item"),rc=oc(nc(lc,ac,Fu)),mo=rc,ic={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function sc(e,n){return{props:{...ic},setup(o,l){const a=Ze(),r=zn();Ln(!1);const s=(0,t.computed)(()=>r&&a?On(a,!1).value:null),i=e,u=(0,t.computed)(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),m=(0,t.computed)(()=>{const p={};if(o.width)o.width!=="auto"&&(p.width=de(o.width));else{const c=r&&a?Rn(a,!1):null;if(s.value&&c){if(s.value.type==="grid"){const h=Kn(c,s.value,o.span,o.offset);Object.assign(p,h)}else if(s.value.type==="flow"){const h=Fn(c,s.value,o.span,o.offset,o.width);Object.assign(p,h)}}}return p});return()=>{const p={class:u.value,style:m.value};return l.slots&&typeof l.slots.default=="function"?(0,t.h)("div",p,l.slots.default()):(0,t.h)("div",p)}}}}var{componentName:uc,create:cc,scope:dc}=J("slot-item"),fc=cc(sc(uc,dc)),po=fc,Qa={type:{type:String,default:"text"},modelValue:{type:[String,Number],default:""},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function mc(e,n,o,l){return{props:{...pe,...ve,...Qa},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(a,r){const s=xe((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),{toLocaleRefs:m}=(0,me.useFoxI18n)(n),p=m(a,["placeholder"]),c=(0,t.ref)(!1),h=Pe(a,"modelValue",null,u),y=e,w=(0,t.computed)(()=>({[y]:!0,"is-disabled":s.value,"is-readonly":i.value})),S=Te((0,t.computed)(()=>a.textAlign),"textAlign"),b=(0,t.computed)(()=>{const $={};return S.value&&($["text-align"]=S.value),$}),f=$=>{let z=$.target.value;a.type==="digit"&&(z=$l(z,!0)),a.type==="number"&&(z=$l(z,!1)),a.maxLength&&z.length>Number(a.maxLength)&&(z=z.slice(0,Number(a.maxLength))),h.value=z,u("update:modelValue",z,$),u("change",z,$)};let k=Pe(a,"hintText"),d=(0,t.ref)(!1);const C=$=>{let z=$.target.value;c.value=!0,ue(k.value)||(d.value=!0),u("focus",z,$)},N=$=>{setTimeout(()=>{d.value&&(d.value=!1),c.value=!1},0);let z=$.target.value;a.maxLength&&z.length>Number(a.maxLength)&&(z=z.slice(0,Number(a.maxLength))),u("blur",z,$)},v=(0,t.computed)(()=>({[`${y}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),g=(0,t.computed)(()=>{const $={};return r.slots.append&&!A.value&&!G.value&&($.display="none"),$}),A=(0,t.computed)(()=>be(a.unit)>0),B=(0,t.computed)(()=>!G.value),V=(0,t.computed)(()=>({[`${y}__unit`]:!0,hidden:!B.value})),T=$=>{h.value="",u("update:modelValue","",$),u("change","",$),u("clear","")},_=(0,t.computed)(()=>ye(a.clearable)&&!s.value&&!i.value),G=(0,t.computed)(()=>{let $=be(h.value)>0;return ye(a.clearable)&&$&&c.value}),x=(0,t.computed)(()=>({action:!0,hidden:!G.value}));return()=>{const $={class:w.value,style:b.value,type:a.type,maxlength:a.maxLength,placeholder:p.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:f,onFocus:C,onBlur:N},z=[],P=(0,t.h)("input",$);z.push(P);const O=[];if(_.value){const te=(0,t.h)(l,{class:["action-icon"]}),L=(0,t.h)("view",{class:x.value,onClick:T},{default:()=>[te]});O.push(L)}if(A.value){const te=(0,t.h)("view",{class:V.value},[a.unit]);O.push(te)}const F=(0,t.h)("view",{class:v.value,style:g.value},{default:()=>O});z.push(F);const D={default:()=>z};D.label=r.slots.default,D.prepend=r.slots.prepend,D.append=r.slots.append,D.fixedPreTip=r.slots.fixedPreTip,D.fixedTip=r.slots.fixedTip;const X={...Ge(a,Qa),hintText:k.value,hintVisible:d.value};return a.prop&&(X.prop=`${a.prop}_item`),(0,t.h)(o,X,D)}}}}var{componentName:pc,create:hc,scope:vc}=J("input-item"),gc=hc(mc(pc,vc,Ce,le.CircleClose)),ho=gc;function Ga(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let a=l;for(let r=o.length-1;r>=l;r--)if(o.charAt(r)!="0"){a=r;break}return a-l<n?a=l+n+1:a!=l&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function Za(e,n,o=20){return typeof n=="string"&&(n=fe(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?Ga(Lr(`${e}`,`${n}`)):Ga(Gl(`${e}`,Or(`${n}`),20))}function yc(e,n=-1,o=!1,l=3,a=","){return An(e,n,o,l,a)}function Ja(e,n,o,l,a=!0){if(e==="")return"";if(e=Rr(e),n=fe(n),n==1)return e;if(l)e=Za(e,n),o&&(e=="0"&&a?e=`${e}.`.padEnd(fe(o)+2,"0"):e=Gl(e,1,fe(o)));else{let r=-1*n;e=Za(e,r)}return e}function er(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ye(n.minInclude),a=Vl(e,n.min);(l&&a==-1||!l&&(a==0||a==-1))&&(o.message="请输入不小于 {0} 的数值".replace("{0}",n.min),o.minValid=!1)}if(n.max!=null){let l=ye(n.maxInclude),a=Vl(e,n.max);(l&&a==1||!l&&(a==0||a==1))&&(o.maxValid=!1)}return o}var tr={clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function bc(e,n,o,l){return{props:{...pe,...ve,...tr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(a,r){const s=xe((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),m=(0,t.ref)(!1),p=Pe(a,"modelValue",null,u),c=(0,t.ref)("");(0,t.watch)([()=>p.value,()=>a.rates,()=>a.precision],([F,D,X])=>{if(ue(F)){c.value="";return}const te=Ja(F,D,X,!1);c.value!==te&&(c.value=te)},{immediate:!0});const h=(0,t.computed)(()=>{let F="";return m.value&&(F=c.value),F}),{t:y}=(0,me.useFoxI18n)(n),w=(0,t.computed)(()=>{let F=a.placeholder??"";return!m.value&&!ue(c.value)?F=yc(c.value,a.decimalLength,a.autoPadding,a.digits,a.separator):F=ue(F)?y(["placeholder"]):F,F}),S=e,b=(0,t.computed)(()=>({[S]:!0,[`${S}__placeholder`]:c.value.length>0,"is-disabled":s.value,"is-readonly":i.value})),f=Te((0,t.computed)(()=>a.textAlign),"textAlign"),k=(0,t.computed)(()=>{const F={};return f.value&&(F["text-align"]=f.value),F}),d=(0,t.ref)(""),C=(0,t.computed)(()=>{let F=d.value;return ue(F)&&(F=a.errorTip??""),F}),N=(0,t.ref)(""),v=(0,t.ref)(!1),g=F=>{let D=F.target.value;if(ue(D)){c.value="",p.value="",u("update:modelValue","",F),u("change","",F),ye(a.showTip)&&v.value&&(v.value=!1);return}if(D.length>=2){let X=D;if(X.charAt(0)=="-"&&(X=X.substring(1)),X.length>=2&&X.charAt(0)=="0"&&X.charAt(1)!="."){(0,t.triggerRef)(c);return}}if(D!="-"){if(!Vn(D)){(0,t.triggerRef)(c);return}if(a.integerLength!=-1&&Yr(D)>Number(a.integerLength)){(0,t.triggerRef)(c);return}if(a.decimalLength&&a.decimalLength!=-1&&Xr(D)>Number(a.decimalLength)){(0,t.triggerRef)(c);return}let X=er(D,a);if(X.maxValid===!1){d.value=X.message,(0,t.triggerRef)(c);return}}else if(a.min!=null&&fe(a.min)>=0){(0,t.triggerRef)(c);return}N.value=D,ye(a.showTip)&&(v.value=D.length>0),c.value=D,p.value=Ja(D,a.rates,a.precision,!0),u("update:modelValue",p.value,F),u("change",p.value,F)},A=F=>{if(m.value=!0,ye(a.showTip)){let D=c.value;ue(D)&&(D=a.hintText),ue(D)||(N.value=D,v.value=!0)}d.value="",u("focus",p.value,F)},B=F=>{if(setTimeout(()=>{m.value=!1,ye(a.showTip)&&v.value===!0&&(v.value=!1)},0),!ue(c.value)){let D=er(c.value,a);if(D.minValid===!1||D.maxValid===!1){d.value=D.message;return}}u("update:modelValue",p.value,F),u("blur",p.value,F)},V=(0,t.computed)(()=>({[`${S}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),T=(0,t.computed)(()=>{const F={};return r.slots.append&&!_.value&&!P.value&&(F.display="none"),F}),_=(0,t.computed)(()=>be(a.unit)>0),G=(0,t.computed)(()=>!P.value),x=(0,t.computed)(()=>({[`${S}__unit`]:!0,hidden:!G.value})),$=F=>{p.value="",u("update:modelValue","",F),u("change","",F),u("clear","")},z=(0,t.computed)(()=>ye(a.clearable)&&!s.value&&!i.value),P=(0,t.computed)(()=>{let F=be(p.value)>0;return ye(a.clearable)&&F&&m.value}),O=(0,t.computed)(()=>({action:!0,hidden:!P.value}));return()=>{let F={class:b.value,style:k.value,type:"digit",maxlength:a.maxLength,placeholder:w.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:g,onFocus:A,onBlur:B},D=[],X=(0,t.h)("input",F);D.push(X);let te=[];if(z.value){const Y=(0,t.h)(l,{class:["action-icon"]}),R=(0,t.h)("view",{class:O.value,onClick:$},{default:()=>[Y]});te.push(R)}if(_.value){const Y=(0,t.h)("view",{class:x.value},[a.unit]);te.push(Y)}const L=(0,t.h)("view",{class:V.value,style:T.value},{default:()=>te});D.push(L);const K={default:()=>D};K.label=r.slots.default,K.prepend=r.slots.prepend,K.append=r.slots.append,K.fixedPreTip=r.slots.fixedPreTip,K.fixedTip=r.slots.fixedTip;const M={...Ge(a,tr),errorTip:C.value,hintText:N.value,hintVisible:v.value,hintType:"number"};return a.prop&&(M.prop=`${a.prop}_item`),(0,t.h)(o,M,K)}}}}var{componentName:Sc,create:kc,scope:wc}=J("money-item"),Cc=kc(bc(Sc,wc,Ce,le.CircleClose)),vo=Cc,Ml={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:Nc,create:Ac,scope:Bc}=J("textarea"),Tc=Ac({props:{...Ml},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:o}=(0,me.useFoxI18n)(Bc);const l=o(e,["placeholder"]),a=(0,t.ref)(),r=(0,t.computed)(()=>{const h=Nc;return{[h]:!0,[`${h}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&u(String(e.modelValue)),e.autosize&&(0,t.nextTick)(i)});const s=(0,t.computed)(()=>({textAlign:e.textAlign})),i=()=>{let h=a.value;h.style.height="auto";let y=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:w,minHeight:S}=e.autosize;w!==void 0&&(y=Math.min(y,w)),S!==void 0&&(y=Math.max(y,S))}y&&(console.info("----------- height",y),h.style.height=y+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(i)});const u=(h,y)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,y),n("change",h,y)};return{...l,textareaRef:a,classes:r,styles:s,change:h=>{const y=h.target;u(y.value,h)},focus:h=>{e.disabled||e.readonly||n("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let y=h.target.value;u(y,h),n("blur",{value:y,event:h})}}}}),Vc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],xc={key:0,class:"fox-textarea__limit"};function $c(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:(0,t.normalizeStyle)(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...s)=>e.change&&e.change(...s)),onBlur:n[1]||(n[1]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[2]||(n[2]=(...s)=>e.focus&&e.focus(...s)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Vc),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",xc,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var Yn=oe(Tc,[["render",$c]]);function Ec(e,n,o,l){return{props:{...pe,...ve,...Ml},emits:["update:modelValue","change","blur","focus","setValue"],setup(a,r){const s=xe((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Ae({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),m=Pe(a,"modelValue",null,u),p=S=>{m.value=S,u("update:modelValue",S,{}),u("change",S,{})};let c=Pe(a,"hintText"),h=(0,t.ref)(!1);const y=S=>{ue(c.value)||(h.value=!0),u("focus",m.value,S)},w=S=>{setTimeout(()=>{h.value&&(h.value=!1)},0),u("blur",m.value,S)};return()=>{const S={...he(a,Ml),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":p,onFocus:y,onBlur:w},b=[],f=(0,t.h)(l,S);b.push(f);const k={default:()=>b};k.label=r.slots.default,k.prepend=r.slots.prepend,k.append=r.slots.append,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const d={...he(a,ve,pe)};return a.prop&&(d.prop=`${a.prop}_item`),(0,t.h)(o,d,k)}}}}var{componentName:Dc,create:Ic,scope:qc}=J("textarea-item"),Pc=Ic(Ec(Dc,qc,Ce,Yn)),go=Pc;function Mc(e){return e===window}var Ie=e=>{const n=(0,t.unref)(e);if(Mc(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}},nr=10;function Si(e,n){return e>n&&e>nr?"horizontal":n>e&&n>nr?"vertical":""}function Xn(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Qn(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else{const i=s;e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Si(e.offsetX,e.offsetY))}),start:(s=>{if(l(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else{const i=s;e.startX=i.clientX,e.startY=i.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:o,state:e}}function et(){const e=(0,t.ref)(0),n=(0,t.ref)(0),o=(0,t.ref)(0),l=(0,t.ref)(0),a=(0,t.ref)(0),r=(0,t.ref)(0),s=(0,t.ref)(0),i=(0,t.ref)(0),u=(0,t.ref)(0),m=(0,t.ref)(0),p=(0,t.ref)(""),c=()=>p.value==="vertical",h=()=>p.value==="horizontal",y=()=>{s.value=0,i.value=0,u.value=0,m.value=0,p.value="",o.value=0};return{move:(b=>{if(b.touches){const f=b.touches[0];s.value=f.clientX-e.value,i.value=f.clientY-n.value,a.value=f.clientX,r.value=f.clientY}else{const f=b;s.value=f.clientX-e.value,i.value=f.clientY-n.value,a.value=f.clientX,r.value=f.clientY}u.value=Math.abs(s.value),m.value=Math.abs(i.value),l.value=Date.now()-o.value,p.value||(p.value=Si(u.value,m.value))}),start:(b=>{if(y(),b.touches){const f=b.touches[0];e.value=f.clientX,n.value=f.clientY}else{const f=b;e.value=f.clientX,n.value=f.clientY}o.value=Date.now()}),reset:y,startX:e,startY:n,startTime:o,duration:l,moveX:a,moveY:r,deltaX:s,deltaY:i,offsetX:u,offsetY:m,direction:p,isVertical:c,isHorizontal:h}}var zc=2e3,lr=()=>zc++,Xe={visible:{type:Boolean,default:!1},zIndex:{type:[String,Number]},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:[String,Array],default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Lc=(e,n)=>({components:n,props:{...Xe},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const a=(0,t.reactive)({zIndex:0,showSlot:!0,closed:o.closeable});o.visible&&(a.zIndex=lr());const r=(0,t.computed)(()=>{const S=e,b=[S,`${S}--${o.position}`];return o.round&&b.push("round"),o.position==="bottom"&&o.safeAreaInsetBottom&&b.push(`${S}--${o.position}--safebottom`),typeof o.popClass=="string"?b.push(o.popClass):Array.isArray(o.popClass)&&o.popClass.forEach(f=>{b.push(f)}),b}),s=(0,t.computed)(()=>({zIndex:a.zIndex,transitionDuration:`${o.duration}s`,...o.style})),i=(0,t.computed)(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{l("update:visible",!0),o.zIndex?a.zIndex=o.zIndex:a.zIndex=lr(),o.destroyOnClose&&(a.showSlot=!0),l("open")},m=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+o.duration*1e3)},p=S=>{l("click-pop",S)},c=S=>{S.stopPropagation(),l("click-close-icon",S),l("update:visible",!1)},h=S=>{l("click-overlay",S),o.closeOnClickOverlay&&l("update:visible",!1)},y=S=>{l("opend",S)},w=S=>{l("closed",S)};return(0,t.watch)(()=>o.visible,S=>{o.visible?u():m()}),(0,t.watch)(()=>o.closeable,S=>{a.closed=S}),{...(0,t.toRefs)(a),popStyle:s,transitionName:i,classes:r,onClick:p,onClickCloseIcon:c,onClickOverlay:h,onOpened:y,onClosed:w}}}),ki={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},zl={...Xe,...ki,modelValue:{type:[String,Number,Boolean,Object,Array],default:()=>""},text:{type:[Array],default:()=>[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:()=>[]},params:{type:Object},valueType:{type:String,required:!1,default:()=>"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String},isAutoBackFill:{type:[Boolean],default:()=>!0},poppable:{type:[Boolean],default:()=>!0}},wi=36;function Oc(){return wi}function Rc(e){wi=e}function Le(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ll(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Fc(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function or(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var Kc=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=Je(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ee(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function Uc(){return new Kc((0,t.getCurrentInstance)().proxy)}function ar(e,n,o){return!(Le(e,n)!==Le(e,o)||rt(e,n)!==rt(e,o))}function Hc(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const a=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let s=0;s<n.length&&s<o.length;s++){const i=n[s];let u=o[s].findIndex(m=>{if(r==="text")return Le(e,m)===i;if(r==="value"){let p=rt(e,m);return p==null&&(p=Le(e,m)),p===i}else if(r==="item")return ar(e,m,i)});if(u==-1)break;a.push(u)}else{let s=o[0];for(let i=0;i<n.length;i++){const u=n[i];let m=s.findIndex(c=>{if(r==="text")return Le(e,c)===u;if(r==="value"){let h=rt(e,c);return h==null&&(h=Le(e,c)),h===u}else if(r==="item")return ar(e,c,u)});if(m==-1)break;a.push(m);const p=Ll(e,s[m]);if(!Array.isArray(p))break;s=p}}return a}function rr(e,n,o,l){if(o.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let s=0;s<n.length&&s<o.length;s++){const i=o[s];let u=n[s];u<0&&u>=i.length&&(u=0);const m=i[u],p=Le(e,m);if(a.texts.push(p),a.items.push(m),r==="text")a.values.push(p);else if(r==="value"){let c=rt(e,m);c==null&&(c=p),a.values.push(c)}else a.values.push(m)}else{let s=o[0];for(let i=0;i<n.length;i++){let u=n[i];u<0&&u>=s.length&&(u=0);const m=s[u],p=Object.assign({},m);p.children=null;const c=Le(e,m);if(a.texts.push(c),a.items.push(p),r==="text")a.values.push(c);else if(r==="value"){let h=rt(e,m);h==null&&(h=c),a.values.push(h)}else a.values.push(p);if(!Array.isArray(m.children))break;s=m.children}}return a}function ir(e){return{text:e,value:e}}var _c=15,jc=300,Wc=200,{create:Yc}=J("picker-column");function Xc(e){e.stopPropagation()}function Qc(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Xc(e)}var Gc=Yc({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},...ki},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=(0,t.computed)(()=>({"fox-picker__list":!0})),l=(0,t.computed)(()=>({height:`${fe(e.visibleItemCount)*+e.itemHeight}px`})),a=(0,t.computed)(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=(0,t.computed)(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=g=>{const A=g+1;return A>=c.currIndex+8||A<=c.currIndex-8},i=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${c.deg})`,top:`${r.value}px`})),u=g=>{const A=g+1;return`transform: rotate3d(1, 0, 0, ${-c.rotation*A}deg) translate3d(0px, 0px, 104px)`},m=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+r.value}px, 0)`})),p=(0,t.ref)(null),c=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=g=>Le(e,g),y=g=>rt(e,g),w=et(),S=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},b=(g,A=!1,B=!1)=>{if(c.currIndex=g,A){const V=()=>{c.moving=!1,n("update:modelValue",g),n("change",g)};B?c.transitionEndTrigger=V:V()}},f=(g,A,B)=>{let V=g+c.startDistance;if(A==="end"){const T=-(e.source.length-1)*e.itemHeight;V<T&&(V=T),V>0&&(V=0);let _=Math.abs(Math.round(-V/e.itemHeight));const G=-_*e.itemHeight,x=`${(_+1)*c.rotation}deg`;b(_,!0,B?B>0:!1),k(G,A,B,x)}else{let T=(-V/e.itemHeight+1)*c.rotation;const _=(e.source.length+1)*c.rotation,G=0;if(T=Math.min(Math.max(T,G),_),e.threeDimensional&&(T<G||T>_))return;k(V,null,void 0,`${T}deg`)}},k=(g=0,A,B=Wc,V)=>{A==="end"?c.scrollTime=B:c.scrollTime=0,c.deg=V,c.scrollDistance=g},d=(g,A)=>(g=Math.abs(g/A)/.003*(g<0?-1:1),g),C=g=>{e.readonly||(c.startDistance=c.scrollDistance,w.start(g),c.transitionEndTrigger=null)},N=g=>{e.readonly||(c.moving=!0,w.move(g),w.isVertical()&&(c.moving=!0,Qc(g,!0)),f(w.deltaY.value,"",0))},v=()=>{if(e.readonly)return;const g=w.deltaY.value,A=w.duration.value;A<jc&&Math.abs(g)>_c?f(d(g,A),"end",e.swipeDuration):f(g,"end",0)};return(0,t.watch)(()=>e.modelValue,g=>{const A=c.currIndex-g;A!==0&&(c.currIndex=g,c.startDistance=c.scrollDistance,f(A*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,g=>{if(c.currIndex>=g.length){const A=(g.length-1-c.currIndex)*e.itemHeight;c.startDistance=c.scrollDistance,f(A,"end",0)}}),(0,t.watch)(()=>e.visible,g=>{g===!1&&S()}),(0,t.onMounted)(()=>{f(-e.modelValue*e.itemHeight)}),{classes:o,styles:l,contentClasses:a,itemText:h,itemValue:y,...(0,t.toRefs)(c),roller:p,getItemText:Le,onTouchStart:C,onTouchMove:N,onTouchEnd:v,isHidden:s,setRollerStyle:u,touchRollerStyle:i,touchTileStyle:m,stopMomentum:S}}}),Zc={key:1,class:"fox-picker__item-tile"};function Jc(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:n[4]||(n[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[(0,t.createElementVNode)("view",{ref:"roller",class:(0,t.normalizeClass)(e.contentClasses),style:(0,t.normalizeStyle)(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.source,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i)}]),style:(0,t.normalizeStyle)(e.setRollerStyle(i))},(0,t.toDisplayString)(e.itemText(s)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",Zc,(0,t.toDisplayString)(e.itemText(s)),1))],64))),128))],6)],38)}var ed=oe(Gc,[["render",Jc]]),It=0,sr="fox-overflow-hidden",ur=()=>Qe?document.body:{classList:[]},td=e=>[()=>{if(e())try{!It&&ur().classList.add(sr),It++}catch{}},()=>{if(e()&&It)try{It--,!It&&ur().classList.remove(sr)}catch{}}],nd={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:ld,create:od}=J("overlay"),ad=od({props:{...nd},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=td(()=>e.lockScroll),a=(0,t.computed)(()=>({[ld]:!0,[e.overlayClass]:!0})),r=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,i=>{i?o():l()}),{classes:a,style:r,onClick:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function rd(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"overlay-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var it=oe(ad,[["render",rd]]),{componentName:id,create:sd}=J("popup"),ud=sd(Lc(id,{FoxOverLay:it,Close:le.Close}));function cd(e,n,o,l,a,r){const s=(0,t.resolveComponent)("FoxOverLay"),i=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createBlock)(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(s,(0,t.mergeProps)({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.popStyle),onClick:n[1]||(n[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.closed?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,onClick:n[0]||(n[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:(0,t.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(i)])],2)):(0,t.createCommentVNode)("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var ge=oe(ud,[["render",cd]]),dd=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-picker__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(ge,Ge({...e},{poppable:!1}),n):n?.default?.()??null}}),fd=dd,{create:md,componentName:cr,scope:pd}=J("picker"),hd=md({components:{Column:ed,Wrapper:fd},props:{...zl},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=(0,me.useFoxI18n)(pd),a=o(e,["title","cancelText","clearText","confirmText"]),r=(0,t.ref)(null),s=(0,t.ref)(Oc());(0,t.watch)(()=>e.visible,$=>{$&&s.value<=0&&setTimeout(()=>{r.value&&(s.value=Ie(r.value).height,Rc(s.value))},50)});const i=(0,t.computed)(()=>({[cr]:!0})),u=(0,t.computed)(()=>{const $=[];return Array.isArray(e.popClass)?$.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&$.push(e.popClass),$.push(`${cr}__popup`),$.join(" ")}),m=Uc(),p=(0,t.ref)("singleColumn");let c=(0,t.ref)([]);(0,t.watch)([()=>e.source,()=>e.params],async([$,z])=>{if($){let P=await m.load("picker",$,z);if(P.length>0){let O=P[0];if(Array.isArray(O)){if(typeof O[0]=="string"){let F=P,D=[];F.forEach(X=>{let te=X.map(L=>ir(L));D.push(te)}),c.value=D}else c.value=P;p.value="multipleColumn"}else if(typeof O=="string"){let F=P,D=[],X=F.map(te=>ir(te));D.push(X),c.value=D,p.value="singleColumn"}else{const F=Ll(e,O);Array.isArray(F)?(p.value="cascade",c.value=[P]):(p.value="singleColumn",c.value=[P])}}else c.value=[]}},{immediate:!0});const h=(0,t.ref)([]),y=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),w=(0,t.ref)([]);let S=null;const b=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>c.value],([$,z])=>{let P=Hc(e,$,z,p.value);if(!De(P,b.value)){b.value=P,S||(S=P?[...P]:[]);let O=rr(e,P,z,p.value);O&&(h.value=O.texts,De(y.value,O.values)||(y.value=O.values),De(w.value,O.items)||(w.value=O.items),n("update:text",h.value))}});let f="";const k=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,$=>{k.value=$,$&&(f="active",b.value.length>0&&(S=[...b.value]))});const d=$=>{let z=or(e,$);return Ee(z)?z.defaultIndex??0:0},C=$=>{if(e.readonly===!0)return!0;let z=or(e,$);return Ee(z)?z.readonly??!1:!1},N=($,z)=>{let P=b.value;P[$]=z;for(let F=0;F<$;F++)P[F]==null&&(P[F]=d(F));if(p.value==="cascade")for(let F=$+1;F<g.value.length;F++){let D=d(F);F<P.length?P[F]=D:P.push(D)}else for(let F=P.length;F<g.value.length;F++){let D=d(F);P.push(D)}b.value=P;let O=rr(e,P,c.value,p.value);O&&(h.value=O.texts,y.value=O.values,w.value=O.items)},v=$=>$<b.value.length?b.value[$]:d($),g=(0,t.computed)(()=>{if(c.value.length==0)return[];if(p.value=="singleColumn"||p.value=="multipleColumn")return c.value;let $=[],z=0,P=c.value[0],O=0;for(;;){let F=P.map(te=>{let L=Object.assign({},te);return Fc(e,L,null),L});$.push(F),z>=b.value.length?O=0:O=b.value[z],(O<0||O>=P.length)&&(O=0);let D=P[O];const X=Ll(e,D);if(!Array.isArray(X))break;P=X,z++}return $}),A=(0,t.computed)(()=>fe(+e.visibleItemCount-1)/2*s.value),B=($=!1)=>{if(e.readonly===!0){$&&n("update:visible",!1);return}let z=c.value.length-1;for(;z>=0&&!(b.value[z]===null||b.value[z]===void 0);z--);if(z>=0&&N(z,0),p.value==="singleColumn"){let P=y.value.length>0?y.value[0]:"",O=w.value.length>0?w.value[0]:null;n("update:modelValue",P),n("update:text",h.value),n("change",P,O),$&&(n("confirm",P),n("update:visible",!1))}else n("update:modelValue",y.value),n("update:text",h.value),n("change",y.value,w.value),$&&(n("confirm",y.value),n("update:visible",!1))},V=($,z)=>{f!=="close"&&(N($,z),e.isAutoBackFill&&B(!k.value))},T=()=>{f==="active"&&(f="confirm",S=Array.isArray(b.value)?[...b.value]:[],B(!0))},_=()=>{p.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),b.value=[],S=null};return{...a,pickerLineRef:r,classes:i,popClasses:u,columns:g,dataType:p,show:k,itemHeight:s,top:A,isReadonly:C,getIndex:v,change:V,close:()=>{if(f==="active"){if(f="close",S===null||S.length===0)_();else{if(Array.isArray(S))for(let $=0;$<S.length;$++)N($,S[$]);B(!1)}n("close"),n("update:visible",!1)}},confirm:T,clear:()=>{if(f==="active"){if(f="clear",e.readonly===!0){n("update:visible",!1);return}_(),S=null,n("clear",""),n("update:visible",!1)}}}}}),vd={key:0,class:"fox-picker__bar"},gd={class:"fox-picker__title"},yd={class:"fox-picker__bar__action"},bd={class:"fox-picker__column"};function Sd(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Column"),i=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createVNode)(i,{position:"bottom","pop-class":e.popClasses,visible:e.show,"onUpdate:visible":n[3]||(n[3]=u=>e.show=u),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable,poppable:e.poppable},{default:(0,t.withCtx)(()=>[e.poppable?((0,t.openBlock)(),(0,t.createElementBlock)("view",vd,[(0,t.createElementVNode)("view",gd,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",yd,[(0,t.createElementVNode)("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...u)=>e.close&&e.close(...u))},(0,t.toDisplayString)(e.cancelText),1),(0,t.createElementVNode)("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...u)=>e.confirm&&e.confirm(...u))},(0,t.toDisplayString)(e.confirmText),1),e.clearText?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...u)=>e.clear&&e.clear(...u))},(0,t.toDisplayString)(e.clearText),1)):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"top"),(0,t.createElementVNode)("view",bd,[(0,t.createElementVNode)("view",{class:"fox-picker__mask",style:(0,t.normalizeStyle)({backgroundSize:`100% ${e.top}px`})},null,4),(0,t.createElementVNode)("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:(0,t.normalizeStyle)({top:` ${e.top}px`})},null,4),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,(u,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:m,class:"fox-picker__columnitem"},[(0,t.createVNode)(s,{visible:e.show,source:u,readonly:e.isReadonly(m),"column-index":m,modelValue:e.getIndex(m),"onUpdate:modelValue":p=>e.change(m,p),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["pop-class","visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable","poppable"])],2)}var en=oe(hd,[["render",Sd]]);function kd(e,n,o,l,a,r,s=!0){return{props:{...pe,...ve,...zl,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,u){const m=xe((0,t.computed)(()=>i.disabled)),p=Ve((0,t.computed)(()=>i.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??u.attrs.name),{toLocaleRefs:h}=(0,me.useFoxI18n)(n),y=h(i,["placeholder"]),w=(0,t.ref)(!1),S=Pe(i,"modelValue",null,c),b=(0,t.ref)([]),f=(0,t.computed)(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),k="fox-input-item",d=(0,t.computed)(()=>({[k]:!0,"is-disabled":m.value,"is-readonly":p.value})),C=Te((0,t.computed)(()=>i.textAlign),"textAlign"),N=(0,t.computed)(()=>{const K={};return C.value&&(K["text-align"]=C.value),K}),v=(0,t.ref)(!1),g=()=>{v.value=!0},A=K=>{v.value=K},B=K=>{S.value=K,c("update:modelValue",K)},V=(K,M)=>{c("change",K,M)},T=K=>{let M=K.target.value;w.value=!0,c("focus",M,K)},_=K=>{setTimeout(()=>{w.value=!1},0);let M=K.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),c("blur",M,K)},G=K=>{b.value=K,Array.isArray(K)&&K.length===0?c("update:text",K[0]):c("update:text",K)},x=(0,t.computed)(()=>({[`${k}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),$=(0,t.computed)(()=>be(i.unit)>0),z=(0,t.computed)(()=>be(i.unit)>0&&!w.value),P=(0,t.computed)(()=>({hidden:!z.value})),O=K=>{S.value="",c("update:modelValue","",K),c("change","",K),c("clear","")},F=(0,t.computed)(()=>i.clearable&&!m.value&&!p.value),D=(0,t.computed)(()=>be(S.value)>0&&w.value),X=K=>{D.value?O(K):g()},te=(0,t.computed)(()=>D.value&&F.value?l:a),L=(0,t.computed)(()=>({action:!0}));return()=>{const K={class:d.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:g,onFocus:T,onBlur:_};s&&(K.disabled=!0);const M=[],Y=(0,t.h)("input",K);M.push(Y);const R=[],U=(0,t.h)(te.value,{class:["action-icon"]}),Z=(0,t.h)("view",{class:L.value,onClick:X},{default:()=>[U]});if(R.push(Z),$.value){const E=(0,t.h)("view",{class:P.value},[i.unit]);R.push(E)}const W=(0,t.h)("view",{class:x.value},{default:()=>R});M.push(W);const ee={default:()=>M};ee.label=u.slots.default,ee.prepend=u.slots.prepend,ee.append=u.slots.append,ee.fixedPreTip=u.slots.fixedPreTip,ee.fixedTip=u.slots.fixedTip;const q=he(i,zl);q.disabled=!1,q.readonly=m.value||p.value,q.visible=v.value,q["onUpdate:visible"]=A,q.modelValue=S.value,q["onUpdate:modelValue"]=B,q.text=b.value,q["onUpdate:text"]=G,q.onChange=V;const H=(0,t.h)(r,q);ee.hide=()=>[H];const I=he(i,ve,pe);return i.prop&&(I.prop=`${i.prop}_item`),(0,t.h)(o,I,ee)}}}}var{componentName:wd,create:Cd,scope:Nd}=J("picker-item"),Ad=Cd(kd(wd,Nd,Ce,le.CircleClose,le.ArrowRight,en,!1)),yo=Ad,Bd=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:o}){return()=>e.poppable?(0,t.h)(ge,{...o},n):n?.default?.()??null}}),Td=Bd,un=(e,n,o)=>e.map(l=>{const{value:a="value",text:r="text",children:s="children"}=o??{},{[a]:i,[r]:u,[s]:m,...p}=l,c={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:i,text:u,children:m,_parent:n};return c.children&&c.children.length&&(c.children=un(c.children,c,o)),c}),Ci=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&Ci(l.children,n)},Vd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},xd=(e,n)=>{const{topId:o,idKey:l,pidKey:a,sortKey:r}={...Vd,...n||{}};let s=[],i={};return e.forEach(u=>{u={...u};const{[l]:m,[a]:p}=u,c=i[p]=i[p]||[];!s.length&&p===o&&(s=c),c.push(u),u.children=i[m]||(i[m]=[])}),r&&Object.keys(i).forEach(u=>{i[u].length>1&&i[u].sort((m,p)=>m[r]-p[r])}),i=null,s},Ol={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}},dr=(e,n)=>n[e.textKey],qt=(e,n)=>n[e.valueKey],$d=(e,n)=>n[e.visibleKey],fr=(e,n)=>n[e.disabledKey],Ed=(e,n)=>{const o=n[e.doitKey];return ye(o)},Dd=(e,n)=>{const o=n[e.numKey];return o==null?null:fe(n[o])},mr=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function Id(e,n,o,l,a,r=!1){return{props:{...Ol},emits:["update:modelValue","change","click"],setup(s,{slots:i,emit:u}){const m=(0,t.computed)(()=>{const I={};return I[`${e}`]=!0,I}),p=(0,t.computed)(()=>{const I={};return I[`${e}__titles`]=!0,I[`${s.direction}`]=!0,s.align&&(I[`${s.align}`]=!0),s.scroll===!0&&(I.scrollable=!0),s.shape&&(I[`${s.shape}`]=!0),s.showScrollArrow?(Y.value===!0&&(I["has-left-scroll-arrow "]=!0),R.value===!0&&(I["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(I["has-navigation"]=!0),I}),c=(0,t.computed)(()=>({})),h=(0,t.computed)(()=>{if(!s.gutter)return 0;const I=se(s.gutter);return I<=0?0:I}),y=(0,t.ref)(s.modelValue);(0,t.watch)(()=>s.modelValue,I=>{y.value!==I&&(y.value=I,F(!1))});const w=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),S=(0,t.computed)(()=>{const I={};return f.value||(I.display="none"),I}),b=(0,t.ref)(),f=(0,t.ref)(!1),k=()=>{d(!f.value)},d=I=>{const E=I;E?(f.value=E,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.value["fox-tabs-bar__popup--hide"]=!0,b.value?b.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},C=(0,t.ref)(),N=(0,t.ref)([]),v=(I,E)=>{N.value[E]=I},g=I=>E=>{v(E,I)},A=(I,E)=>{const j=C.value,Q=N.value;if(!j||!Q||!Q[I])return;const ne=Q[I];let ae=0;s.direction==="vertical"?ae=ne.offsetTop-(j.offsetHeight-ne.offsetHeight)/2:ae=ne.offsetLeft-(j.offsetWidth-ne.offsetWidth)/2,B(j,ae,E?0:.3,s.direction)},B=(I,E,j,Q)=>{let ne=0;const ae=Q==="horizontal"?I.scrollLeft:I.scrollTop,ie=j===0?1:Math.round(j*1e3/16);function Se(){Q==="horizontal"?I.scrollLeft+=(E-ae)/ie:I.scrollTop+=(E-ae)/ie,++ne<ie&&Fe(Se)}Se()},V=(I,E)=>{const j=qt(s,I),Q={};return Q[`${e}__titles-item`]=!0,Q.disabled=fr(s,I),Q.active=j===y.value,s.shape&&(Q[`${s.shape}`]=!0),s.ellipsis&&(Q.ellipsis=!0),E&&(E.class&&(Q[`${E.class}`]=!0),E.disabled===!0&&(Q.disabled=E.disabled)),Q},T=(I,E)=>{const j={};if(h.value>0){const Q=Math.abs(h.value/2);s.direction==="vertical"?(j["margin-top"]=`${Q}px`,j["margin-bottom"]=`${Q}px`):(j["margin-left"]=`${Q}px`,j["margin-right"]=`${Q}px`)}return E&&E.style&&Object.assign(j,E.style),j},_=(I,E)=>`${qt(s,I)??E}`,G=(I,E)=>{const j=qt(s,I),Q={};Q[`${e}__popup-item`]=!0,Q.disabled=fr(s,I),Q.active=j===y.value,s.shape&&(Q[`${s.shape}`]=!0);const ne=mr(s,I,E);return ne&&ne.disabled===!0&&(Q.disabled=ne.disabled),Q},x=(0,t.computed)(()=>(s.data??[]).filter(I=>$d(s,I)!==!1)),$=(I,E)=>{const j=qt(s,I);if(u("click",I,E),y.value==j)return;const Q=()=>{y.value=j,s.scroll&&A(E,!1),u("update:modelValue",j),u("change",I,E)};if(typeof s.beforeChange=="function"){const ne=s.beforeChange(I,E);bt(ne)?ne.then(ae=>{ae!==!1&&Q()}).catch(()=>{Q()}):ne!==!1&&Q()}else Q()},z=(I,E)=>function(){$(I,E)},P=(I,E)=>{$(I,E),d(!1)},O=(I,E)=>function(){P(I,E)},F=I=>{if(!Array.isArray(s.data)||!s.scroll)return;M()&&ee();const E=s.data.findIndex(j=>qt(s,j)===y.value);E!==-1&&A(E,I)},D=()=>{M()||q()};(0,t.watch)(()=>s.data,()=>{setTimeout(F,0)}),(0,t.onMounted)(()=>{F(!0)}),(0,t.onBeforeUnmount)(()=>{D()});const X=(I,E)=>{if(i.item)return i.item({item:I,index:E});const j=mr(s,I,E),Q=[];if(i.text){const ae=i.text({item:I,index:E});Q.push(ae)}else{const ae=[];if(j?.doit===!0||Ed(s,I)){const tt=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ae.push(tt)}const ie=j?.num??Dd(s,I);if(ie){let tt="";const je=fe(ie);je>=100?tt="99+":tt=`${je}`;const fl=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[tt]);ae.push(fl)}const Se={class:`${e}__titles-item-text`};ae.push(dr(s,I));const ut=(0,t.h)("view",Se,ae);Q.push(ut)}const ne=(0,t.h)("view",{class:`${e}__titles-item-line`});return Q.push(ne),(0,t.h)("view",{ref:g(E),class:V(I,j),style:T(I,j),key:_(I,E),onClick:z(I,E)},Q)},te=()=>{const I=i.default?i.default():[];if(I.length===0)for(let E=0;E<x.value.length;E++){const j=x.value[E],Q=X(j,E);I.push(Q)}return(0,t.h)("view",{ref:C,class:p.value,style:c.value},I)},L=()=>{let I=null;return i.navigation?I=i.navigation():I=(0,t.h)(o),(0,t.h)("view",{class:`${e}__navigation`,onClick:k},[I])},K=()=>{const I=[];for(let E=0;E<x.value.length;E++){const j=x.value[E];let Q=null;i.popupItem?Q=i.popupItem({item:j,index:E}):Q=dr(s,j);const ne=(0,t.h)("view",{class:G(j,E),key:_(j,E),onClick:O(j,E)},[Q]);I.push(ne)}return(0,t.h)("view",{class:w.value,style:S.value},I)},M=()=>s.showScrollArrow&&s.direction=="horizontal",Y=(0,t.ref)(!1),R=(0,t.ref)(!1),U=I=>{const E=C.value,j=N.value;if(!(!E||!j))if(I==="left"){const Q=E.scrollLeft;let ne=Q;for(let ae=0;ae<j.length;ae++){const ie=j[ae].offsetLeft;if(Q-ie<0)break;ne=ie}B(E,ne,.3,"horizontal")}else{const Q=E.scrollLeft;let ne=Q,ae=E.offsetWidth;for(let ie=j.length-1;ie>=0;ie--){const Se=j[ie].offsetLeft+j[ie].offsetWidth;if(Se-Q<E.offsetWidth){ne+=ae-Se;break}ae=Se}B(E,ne,.3,"horizontal")}},Z=qe(()=>{const I=C.value;if(!I)return;let E=I.scrollLeft>0;E!==Y.value&&(Y.value=E);let j=I.scrollWidth-I.scrollLeft>I.offsetWidth;j!==R.value&&(R.value=j)},50),W=I=>{Z()},ee=()=>{const I=C.value;I&&(Z(),I.addEventListener("scroll",W))},q=()=>{const I=C.value;I&&I.removeEventListener("scroll",W)},H=I=>{if(I==="left"&&Y.value!==!0||I==="right"&&R.value!==!0)return null;let E=null;return I==="left"?i.leftArrow?E=i.leftArrow():E=(0,t.h)(l):i.rightArrow?E=i.rightArrow():E=(0,t.h)(a),(0,t.h)("view",{class:[`${e}__scroll-arrow`,I],onClick:()=>{U(I)}},[E])};return()=>{const I=[],E=te();if(I.push(E),M()){const j=H("left");j&&I.push(j);const Q=H("right");Q&&I.push(Q)}else if(s.showQuickNavigation){const j=L();I.push(j);const Q=K();I.push(Q)}return(0,t.h)("view",{class:m.value},I)}}}}var{create:qd,componentName:Pd,scope:Md}=J("tabs-bar"),zd=qd(Id(Pd,Md,le.MoreH,le.Left,le.Right,!1)),tn=zd,Ni=Symbol("TabsStatesKey"),Rl={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},height:{type:[String,Number]},width:{type:[String,Number]}},Ld=15,Od=300,Rd=200;function Fd(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function pr(e,n=0,o,l,a=Rd){o==="end"?e.style.transition=`transform ${a}ms linear`:e.style.transition="transform 0ms linear",l==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}var Kd=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,n,o,l=1,a){this.onStart=e,this.onMove=n,this.onEnd=o,this.momentumReduceRatio=l,this.isTouch=a??Xn()}open(e){this.el=e;const n=Qn(),o=(l,a,r)=>{const s={delta:l,direction:a,type:r};this.onMove(s)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;n.start(l),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=l=>{if(!this.moving)return;n.move(l);let a=0;if(this.direction==="horizontal"){if(n.isVertical())return;a=n.state.deltaX}else{if(n.isHorizontal())return;a=n.state.deltaY}o(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(n.isVertical()){this.moving=!1;return}l=n.state.deltaX}else{if(n.isHorizontal()){this.moving=!1;return}l=n.state.deltaY}const a=n.state.duration;a<Od&&Math.abs(l)>Ld?(l=Fd(l,a,this.momentumReduceRatio),o(l,this.direction,"end")):o(l,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Ud(e,n,o,l=1,a){return new Kd(e,n,o,l,a)}function Hd(e,n,o=!1){return{props:{...Rl},emits:["update:modelValue","change"],setup(l,{emit:a,slots:r}){const s=(0,t.shallowRef)([]),i={current:(0,t.ref)(l.modelValue??""),direction:(0,t.ref)(l.direction),tabWidth:(0,t.ref)(-1),tabHeight:(0,t.ref)(-1),add:g=>{const A={name:g};i.current.value===g&&(A.loaded=!0),s.value.push(A),(0,t.triggerRef)(s)},remove:g=>{const A=s.value.findIndex(B=>B.name===g);A!==-1&&s.value.splice(A,1)},isLoaded:g=>{if(!l.lazy)return!0;const A=s.value.findIndex(B=>B.name===g);return A!==-1?i.current.value?s.value[A].loaded??!1:A===0:!1}};(0,t.provide)(Ni,i);const u=g=>{const A=s.value.findIndex(B=>B.name===g);A!==-1&&(s.value[A].loaded=!0,(0,t.triggerRef)(s))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([g,A])=>{i.current.value!==g&&(i.current.value=g??"",u(g??"")),i.direction.value!==A&&(i.direction.value=A)});const m=(0,t.ref)(null),p=(0,t.ref)(null),c=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),h=(0,t.computed)(()=>{const g={};if(l.width){const A=de(l.width);A&&(g.width=A)}if(l.height){const A=de(l.height);A&&(g.height=A)}return g});let y=!0;const w=(0,t.computed)(()=>{const g={},A=s.value.length;if(A<=0)return g;const B=s.value.findIndex(V=>V.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(g.height=`${A*i.tabHeight.value}px`,B!==-1&&(g.transform=`translate(0, -${B*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(g.width=`${A*i.tabWidth.value}px`,B!==-1&&(g.transform=`translate(-${B*i.tabWidth.value}px, 0)`)),y&&(y=!1,g.transition="transform 0s ease"),g}),S={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},b=g=>{const A=s.value.length,B=s.value.findIndex(V=>V.name===i.current.value);S.moved=0,g.direction==="vertical"?(S.min=-1*(i.tabHeight.value*(A-1)+i.tabHeight.value/4),S.max=i.tabHeight.value/4,S.start=-B*i.tabHeight.value,S.itemDistance=i.tabHeight.value):(S.min=-1*(i.tabWidth.value*(A-1)+i.tabWidth.value/4),S.max=i.tabWidth.value/4,S.start=-B*i.tabWidth.value,S.itemDistance=i.tabWidth.value)},f=g=>{const A=p.value;if(!A)return;let B=S.start+g.delta;if(B>S.max?B=S.max:B<S.min&&(B=S.min),g.type==="move")pr(A,B,"move",g.direction,300);else if(g.type==="end"){let V=Math.floor(Math.abs(B)*1/S.itemDistance);const T=Math.abs(B)%S.itemDistance;S.start>B?T>=S.itemDistance*S.triggerAutoMoveRatio&&(V+=1):T>S.itemDistance-S.itemDistance*S.triggerAutoMoveRatio&&(V+=1),B=-1*V*S.itemDistance,pr(A,B,"end",g.direction,300),S.moved=B;const _=s.value[V].name;i.current.value=_??"",u(_??""),a("update:modelValue",_)}},k=()=>{},d=()=>{if(!m.value)return;const g=Pn(m.value);i.tabWidth.value=g.width,i.tabHeight.value=g.height},C=bn(d,120);let N=null,v=null;return(0,t.onMounted)(()=>{m.value&&(d(),window.ResizeObserver&&(v=new window.ResizeObserver(C),v.observe(m.value)),l.draggle&&(N=Ud(b,f,k),N.open(p.value)))}),(0,t.onBeforeUnmount)(()=>{v&&(v.disconnect(),v=null),N&&N.close()}),Be({doLayout(){d()}}),()=>{const g=(0,t.h)("view",{class:`${e}__panes`,style:w.value,ref:p},[r?.default?.()]);return(0,t.h)("view",{class:c.value,style:h.value,ref:m},[g])}}}}var{create:_d,componentName:jd,scope:Wd}=J("tabs-container"),Yd=_d(Hd(jd,Wd,!1)),nn=Yd,Xd={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 Qd(e,n,o){return{props:{...Xd},setup(l,{emit:a,slots:r}){const s=(0,t.inject)(Ni);(0,t.onMounted)(()=>{s.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{s.remove(l.paneKey)});const i=(0,t.computed)(()=>{const m={};return s.direction.value==="vertical"&&s.tabHeight.value>0?m.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(m.width=`${s.tabWidth.value}px`),m}),u=(0,t.computed)(()=>l.loaded!=null?ye(l.loaded):s.isLoaded(l.paneKey));return()=>{let m=[];if(u.value)m=r?.default?.()??[];else if(r.empty)m=r.empty();else{const p={class:`${e}__empty-icon`},c=(0,t.h)(l.emptyIcon??o,p),h=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),y=(0,t.h)("view",{class:`${e}__empty`},[c,h]);m.push(y)}return(0,t.h)("view",{class:`${e}`,style:i.value,prop:l.paneKey},m)}}}}var{create:Gd,componentName:Zd,scope:Jd}=J("tabs-pane"),ef=Gd(Qd(Zd,Jd,le.Loading)),Gn=ef,hr=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=un(e,null,this.config)}updateChildren(e,n){n?n.children=un(e,n,this.config):this.nodes=un(e,null,this.config)}getNodeByValue(e){let n;return Ci(this.nodes,o=>{if(o.value===e)return n=o,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(a=>a.value===e[a.level]);if(!l)break;n.push(l),o=l.children}return n}isLeaf(e,n){const{leaf:o,children:l}=e,a=Array.isArray(l)&&!!l.length;return o||!a&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:o}=e;return Array.isArray(o)&&!!o.length}},{create:tf,scope:nf}=J("cascader-pane"),lf=tf({components:{Loading:le.Loading,Checklist:le.Checklist,TabsBar:tn,TabsContainer:nn,TabsPane:Gn},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:o}=(0,me.useFoxI18n)(nf),l=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),a=(0,t.ref)(0),r=(0,t.ref)(),s=(0,t.ref)(!1),i=(0,t.ref)(e.modelValue),u=(0,t.ref)(new hr([],{})),m=(0,t.ref)([]),p=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),c=(0,t.computed)(()=>s.value==!0||m.value.length==0?[{text:"Loading",value:0}]:m.value.map((d,C)=>({text:d.selectedNode?d.selectedNode.text:o("select"),value:C}))),h=new Map;let y;const w=async()=>{h.clear(),m.value=[],a.value=0,s.value=!1,y=null;let{options:d}=e;l.value.convertConfig&&(d=xd(d,l.value.convertConfig)),u.value=new hr(d,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),p.value&&!u.value.nodes.length&&await b({root:!0,loading:!0,text:"",value:""}),m.value=[{nodes:u.value.nodes,selectedNode:null}],S(!p.value)},S=async(d=!0)=>{const C=i.value;if(C===void 0||!u.value.nodes.length)return;if(C.length===0){a.value=0,m.value=[{nodes:u.value.nodes,selectedNode:null}];return}let N=C;if(p.value&&Array.isArray(C)&&C.length){N=[];let v=u.value.nodes.find(g=>g.value===C[0]);v&&(N=[v.value],s.value=!0,await b(await C.slice(1).reduce(async(g,A)=>{const B=await g;await b(B);const V=B&&B?.children?.find(T=>T.value===A);return V&&N.push(A),Promise.resolve(V)},Promise.resolve(v))),s.value=!1)}N.length&&C===e.modelValue&&u.value.getPathNodesByValue(N).map((v,g)=>{a.value=g,k.handleNode(v,d)})},b=async d=>{if(!d)return;if(!l.value.lazyLoad){d.leaf=!0;return}if(u.value.isLeaf(d,p.value)||u.value.hasChildren(d,p.value))return;d.loading=!0;const C=d.root?null:d;let N=h.get(d);N||(N=new Promise(g=>{l.value.lazyLoad?.(d,g)}),h.set(d,N));const v=await N;Array.isArray(v)&&v.length>0?u.value.updateChildren(v,C):d.leaf=!0,d.loading=!1,h.delete(d)},f=d=>{const C=d.map(N=>N.value);i.value=C,n("change",C,d),n("pathChange",d),n("update:modelValue",C)},k={async handleNode(d,C){const{disabled:N,loading:v}=d;if(!(!C&&N||!m.value[a.value])){if(u.value.isLeaf(d,p.value)){if(d.leaf=!0,m.value[a.value].selectedNode=d,m.value=m.value.slice(0,d.level+1),!C){const g=m.value.map(A=>A.selectedNode);f(g),n("pathChange",g)}return}if(u.value.hasChildren(d,p.value)){const g=d.level+1;m.value[a.value].selectedNode=d,m.value=m.value.slice(0,g),m.value.push({nodes:d.children||[],selectedNode:null}),a.value=g,C||n("pathChange",m.value.map(A=>A.selectedNode));return}y=d,!v&&(await b(d),y===d&&(m.value[a.value].selectedNode=d,k.handleNode(d,C)))}},handleTabChange(d,C){y=null},formatTabTitle(d){return d.selectedNode?d.selectedNode.text:o("select")},isSelected(d,C){return d.selectedNode&&d.selectedNode.value===C.value}};return(0,t.watch)([l,()=>e.options],()=>{w()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,d=>{De(d,i.value)||(i.value=d,S(!p.value))}),(0,t.watch)(()=>e.visible,d=>{d&&Array.isArray(i.value)&&i.value.length>0&&S(),d&&r.value&&setTimeout(()=>{r.value.doLayout()},0)}),{panes:m,panesTitles:c,initLoading:s,tabsCursor:a,tabsContainerRef:r,...k}}}),of={class:"fox-cascader"},af={role:"menu",class:"fox-cascader__pane"},rf=["aria-checked","aria-disabled","onClick"],sf={class:"fox-cascader__item__title"};function uf(e,n,o,l,a,r){const s=(0,t.resolveComponent)("TabsBar"),i=(0,t.resolveComponent)("Loading"),u=(0,t.resolveComponent)("Checklist"),m=(0,t.resolveComponent)("TabsPane"),p=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",of,[(0,t.createVNode)(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=c=>e.tabsCursor=c),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),(0,t.createVNode)(p,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=c=>e.tabsCursor=c)},{default:(0,t.withCtx)(()=>[!e.initLoading&&e.panes.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.panes,(c,h)=>((0,t.openBlock)(),(0,t.createBlock)(m,{"pane-key":h,key:h},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",af,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.nodes,y=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:y.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(c,y),disabled:y.disabled}]),"aria-checked":e.isSelected(c,y),"aria-disabled":y.disabled||void 0,role:"menuitemradio",onClick:w=>e.handleNode(y,!1)},[(0,t.createElementVNode)("view",sf,(0,t.toDisplayString)(y.text),1),y.loading?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,rf))),128))])]),_:2},1032,["pane-key"]))),128)):((0,t.openBlock)(),(0,t.createBlock)(m,{key:1,"pane-key":0},{default:(0,t.withCtx)(()=>[...n[2]||(n[2]=[(0,t.createElementVNode)("view",{class:"fox-cascader__pane"},null,-1)])]),_:1}))]),_:1},8,["modelValue"])])}var cf=oe(lf,[["render",uf]]),{create:df}=J("cascader"),ff=df({components:{CascaderPane:cf,Wrapper:Td},props:{...Xe,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},poppable:{type:Boolean,default:()=>!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const o=(0,t.ref)(e.modelValue),l=(0,t.computed)({get(){return e.visible},set(s){n("update:visible",s)}}),a=(s,i)=>{o.value=s,l.value=!1,n("change",s,i),n("update:modelValue",s)},r=s=>{n("pathChange",s)};return(0,t.watch)(()=>e.modelValue,s=>{s!==o.value&&(o.value=s)}),{onChange:a,onPathChange:r,innerValue:o,innerVisible:l}}}),mf=["innerHTML"];function pf(e,n,o,l,a,r){const s=(0,t.resolveComponent)("CascaderPane"),i=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(i,{poppable:e.poppable,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=u=>e.innerVisible=u),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"header",{},()=>[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,mf)):(0,t.createCommentVNode)("",!0)]),(0,t.createVNode)(s,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:3},8,["poppable","visible","closeable","close-icon-position"])}var Zn=oe(ff,[["render",pf]]);function Ct(e,n){return n[e.textKey??"text"]??""}function Nt(e,n){return n[e.valueKey??"value"]}function Ai(e,n){return n[e.childrenKey??"children"]}function rn(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const a=n[l],r=Ct(e,a),s=Nt(e,a);o.texts.push(r),o.values.push(s??"")}return o}function Bi(e,n,o,l,a=[]){if(!o)return;const r=o[l];for(let s=0;s<n.length;s++)if(Ct(e,n[s])===r){const i=Nt(e,n[s])??"",u={[e.textKey]:r,[e.valueKey]:i};a.push(u);const m=Ai(e,n[s]);Array.isArray(m)&&Bi(e,m,o,l+1,a);return}}function Ti(e,n,o,l,a=[]){if(!o)return;const r=o[l];for(let s=0;s<n.length;s++)if(Nt(e,n[s])===r){const i=Ct(e,n[s])??"",u={[e.textKey]:i,[e.valueKey]:r};a.push(u);const m=Ai(e,n[s]);Array.isArray(m)&&Ti(e,m,o,l+1,a);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(Ct(e,n[l])!==Ct(e,o[l])||Nt(e,n[l])!==Nt(e,o[l]))return!1;return!0}var hf=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){const l="cascader";if(Array.isArray(e))return e;if(typeof e=="function")return await e(n,o);const a=Je(this.proxy,l);return a===null?(console.error(`${l} component not found api function`),[]):(Ee(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await a(e,n,o))}};function vf(){return new hf((0,t.getCurrentInstance)().proxy)}var vr={modelValue:{type:[Array,String]},pathNodes:{type:[Array]},title:{type:String,required:!1},placeholder:{type:String,required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object},showAllLevels:{type:[Boolean],default:!0},separator:{type:[String],default:"/"}};function gf(e,n,o,l,a,r,s=!1){return{props:{...pe,...ve,...vr},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(i,u){const m=xe((0,t.computed)(()=>i.disabled)),p=Ve((0,t.computed)(()=>i.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??u.attrs.name),{toLocaleRefs:h}=(0,me.useFoxI18n)(n),y=h(i,["placeholder"]),w=(0,t.ref)(!1),S=vf(),b=(0,t.ref)([]),f=(0,t.ref)([]),k=(0,t.computed)(()=>{if(Array.isArray(f.value)){if(i.showAllLevels===!1){const U=f.value.length-1;return f.value[U]}return f.value.join(i.separator)}else return f.value}),d=(0,t.ref)([]),C=(0,t.ref)([]);(0,t.watch)([()=>i.modelValue,()=>b.value],async([U,Z])=>{if(c("setValue",U),i.lazy===!0){C.value.length==0&&(d.value=Array.isArray(U)?U:[]);return}if(i.valueType==="item"){let W=U;if(!bl(i,W,C.value)){C.value=W;let ee=rn(i,W);f.value=ee.texts,d.value=ee.values}}else if(i.valueType==="text"){let W=U,ee=[];if(Bi(i,Z,W,0,ee),!bl(i,ee,C.value)){C.value=ee;let q=rn(i,ee);W.value=q.texts,d.value=q.values}}else{let W=[];if(Ti(i,Z,U,0,W),!bl(i,W,C.value)){C.value=W;let ee=rn(i,W);f.value=ee.texts,d.value=ee.values}}}),i.lazy===!0&&(d.value=Array.isArray(i.modelValue)?i.modelValue:[]),(0,t.watch)([()=>i.source,()=>i.params],async([U,Z])=>{i.lazy||U&&(b.value=await S.load(U,Z))},{immediate:!0});const N="fox-input-item",v=(0,t.computed)(()=>({[N]:!0,"is-disabled":m.value,"is-readonly":p.value})),g=Te((0,t.computed)(()=>i.textAlign),"textAlign"),A=(0,t.computed)(()=>{const U={};return g.value&&(U["text-align"]=g.value),U}),B=(0,t.ref)(!1),V=()=>{m.value===!0||p.value===!0||(B.value=!0)},T=U=>{B.value=U},_=(U,Z)=>{let W=Z.map(q=>{if(q==null)return q;let H={...q};return Reflect.deleteProperty(H,"text"),H[i.textKey]=q.text??"",Reflect.deleteProperty(H,"value"),H[i.valueKey]=q.value??"",H});C.value=W;let ee=rn(i,W);f.value=ee.texts,d.value=ee.values,i.valueType==="text"?(c("change",f.value,W),c("update:modelValue",f.value)):i.valueType==="item"?(c("change",W,W),c("update:modelValue",W)):(c("change",d.value,W),c("update:modelValue",d.value)),c("update:pathNodes",W)},G=U=>{c("pathChange",U.map(Z=>{if(Z==null)return Z;let W={...Z};return Reflect.deleteProperty(W,"text"),W[i.textKey]=Z.text??"",Reflect.deleteProperty(W,"value"),W[i.valueKey]=Z.value??"",W}))},x=U=>{w.value=!0,c("focus",d.value,U)},$=U=>{setTimeout(()=>{w.value=!1},0),c("blur",d.value,U)},z=(0,t.computed)(()=>({[`${N}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),P=(0,t.computed)(()=>be(i.unit)>0),O=(0,t.computed)(()=>be(i.unit)>0&&!w.value),F=(0,t.computed)(()=>({hidden:!O.value})),D=U=>{C.value=[],f.value=[],d.value=[],c("update:modelValue",[]),c("change",[],U),c("clear",[]),c("update:pathNodes",[])},X=(0,t.computed)(()=>i.clearable&&!m.value&&!p.value),te=(0,t.computed)(()=>{let U=d.value&&d.value.length>0;return i.clearable&&U&&w.value}),L=U=>{te.value?D(U):V()},K=(0,t.computed)(()=>te.value&&X.value?l:a),M=(0,t.computed)(()=>({action:!0}));let Y=null;const R=()=>typeof Y=="function"?Y:typeof i.lazyLoad=="function"?i.lazyLoad:(Y=async(U,Z)=>{const W=[],ee=[];let q=0;if(!U.root){let H=U;for(;H;){const I=Ct(i,H),E=Nt(i,H);ee.splice(0,0,I),W.splice(0,0,E),H=H._parent}q=W.length}Z(await S.load(i.source,{...U,level:q,pathLabels:ee,pathValues:W},!0))},Y);return()=>{const U={class:v.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:k.value,onClick:V,onFocus:x,onBlur:$};s&&(U.disabled=!0);const Z=[],W=(0,t.h)("input",U);Z.push(W);const ee=[],q=(0,t.h)(K.value,{class:["action-icon"]}),H=(0,t.h)("view",{class:M.value,onClick:L},{default:()=>[q]});if(ee.push(H),P.value){const ie=(0,t.h)("view",{class:F.value},[i.unit]);ee.push(ie)}const I=(0,t.h)("view",{class:z.value},{default:()=>ee});Z.push(I);const E={default:()=>Z};E.label=u.slots.default,E.prepend=u.slots.prepend,E.append=u.slots.append,E.fixedPreTip=u.slots.fixedPreTip,E.fixedTip=u.slots.fixedTip;const j={};j.visible=B.value,j["onUpdate:visible"]=T,j.modelValue=d.value,j.onChange=_,j.onPathChange=G,j.title=i.title,j.valueKey=i.valueKey,j.textKey=i.textKey,j.childrenKey=i.childrenKey,j.convertConfig=i.convertConfig,i.lazy?(j.lazy=!0,j.lazyLoad=R()):j.options=b.value;const Q={};Q.header=u.slots.header;const ne=(0,t.h)(r,j,Q);E.hide=()=>[ne];const ae={...Ge(i,vr)};return i.prop&&(ae.prop=`${i.prop}_item`),(0,t.h)(o,ae,E)}}}}var{componentName:yf,create:bf,scope:Sf}=J("cascader-item"),kf=bf(gf(yf,Sf,Ce,le.CircleClose,le.ArrowRight,Zn,!1)),bo=kf,wf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs=l()})(e,(function(){"use strict";var o=1e3,l=6e4,a=36e5,r="millisecond",s="second",i="minute",u="hour",m="day",p="week",c="month",h="quarter",y="year",w="date",S="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var $=["th","st","nd","rd"],z=x%100;return"["+x+($[(z-20)%10]||$[z]||$[0])+"]"}},d=function(x,$,z){var P=String(x);return!P||P.length>=$?x:""+Array($+1-P.length).join(z)+x},C={s:d,z:function(x){var $=-x.utcOffset(),z=Math.abs($),P=Math.floor(z/60),O=z%60;return($<=0?"+":"-")+d(P,2,"0")+":"+d(O,2,"0")},m:function x($,z){if($.date()<z.date())return-x(z,$);var P=12*(z.year()-$.year())+(z.month()-$.month()),O=$.clone().add(P,c),F=z-O<0,D=$.clone().add(P+(F?-1:1),c);return+(-(P+(z-O)/(F?O-D:D-O))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:c,y,w:p,d:m,D:w,h:u,m:i,s,ms:r,Q:h}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},N="en",v={};v[N]=k;var g="$isDayjsObject",A=function(x){return x instanceof _||!(!x||!x[g])},B=function x($,z,P){var O;if(!$)return N;if(typeof $=="string"){var F=$.toLowerCase();v[F]&&(O=F),z&&(v[F]=z,O=F);var D=$.split("-");if(!O&&D.length>1)return x(D[0])}else{var X=$.name;v[X]=$,O=X}return!P&&O&&(N=O),O||!P&&N},V=function(x,$){if(A(x))return x.clone();var z=typeof $=="object"?$:{};return z.date=x,z.args=arguments,new _(z)},T=C;T.l=B,T.i=A,T.w=function(x,$){return V(x,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var _=(function(){function x(z){this.$L=B(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[g]=!0}var $=x.prototype;return $.parse=function(z){this.$d=(function(P){var O=P.date,F=P.utc;if(O===null)return new Date(NaN);if(T.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var D=O.match(b);if(D){var X=D[2]-1||0,te=(D[7]||"0").substring(0,3);return F?new Date(Date.UTC(D[1],X,D[3]||1,D[4]||0,D[5]||0,D[6]||0,te)):new Date(D[1],X,D[3]||1,D[4]||0,D[5]||0,D[6]||0,te)}}return new Date(O)})(z),this.init()},$.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},$.$utils=function(){return T},$.isValid=function(){return this.$d.toString()!==S},$.isSame=function(z,P){var O=V(z);return this.startOf(P)<=O&&O<=this.endOf(P)},$.isAfter=function(z,P){return V(z)<this.startOf(P)},$.isBefore=function(z,P){return this.endOf(P)<V(z)},$.$g=function(z,P,O){return T.u(z)?this[P]:this.set(O,z)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(z,P){var O=this,F=!!T.u(P)||P,D=T.p(z),X=function(Z,W){var ee=T.w(O.$u?Date.UTC(O.$y,W,Z):new Date(O.$y,W,Z),O);return F?ee:ee.endOf(m)},te=function(Z,W){return T.w(O.toDate()[Z].apply(O.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(W)),O)},L=this.$W,K=this.$M,M=this.$D,Y="set"+(this.$u?"UTC":"");switch(D){case y:return F?X(1,0):X(31,11);case c:return F?X(1,K):X(0,K+1);case p:var R=this.$locale().weekStart||0,U=(L<R?L+7:L)-R;return X(F?M-U:M+(6-U),K);case m:case w:return te(Y+"Hours",0);case u:return te(Y+"Minutes",1);case i:return te(Y+"Seconds",2);case s:return te(Y+"Milliseconds",3);default:return this.clone()}},$.endOf=function(z){return this.startOf(z,!1)},$.$set=function(z,P){var O,F=T.p(z),D="set"+(this.$u?"UTC":""),X=(O={},O[m]=D+"Date",O[w]=D+"Date",O[c]=D+"Month",O[y]=D+"FullYear",O[u]=D+"Hours",O[i]=D+"Minutes",O[s]=D+"Seconds",O[r]=D+"Milliseconds",O)[F],te=F===m?this.$D+(P-this.$W):P;if(F===c||F===y){var L=this.clone().set(w,1);L.$d[X](te),L.init(),this.$d=L.set(w,Math.min(this.$D,L.daysInMonth())).$d}else X&&this.$d[X](te);return this.init(),this},$.set=function(z,P){return this.clone().$set(z,P)},$.get=function(z){return this[T.p(z)]()},$.add=function(z,P){var O,F=this;z=Number(z);var D=T.p(P),X=function(K){var M=V(F);return T.w(M.date(M.date()+Math.round(K*z)),F)};if(D===c)return this.set(c,this.$M+z);if(D===y)return this.set(y,this.$y+z);if(D===m)return X(1);if(D===p)return X(7);var te=(O={},O[i]=l,O[u]=a,O[s]=o,O)[D]||1,L=this.$d.getTime()+z*te;return T.w(L,this)},$.subtract=function(z,P){return this.add(-1*z,P)},$.format=function(z){var P=this,O=this.$locale();if(!this.isValid())return O.invalidDate||S;var F=z||"YYYY-MM-DDTHH:mm:ssZ",D=T.z(this),X=this.$H,te=this.$m,L=this.$M,K=O.weekdays,M=O.months,Y=O.meridiem,R=function(W,ee,q,H){return W&&(W[ee]||W(P,F))||q[ee].slice(0,H)},U=function(W){return T.s(X%12||12,W,"0")},Z=Y||function(W,ee,q){var H=W<12?"AM":"PM";return q?H.toLowerCase():H};return F.replace(f,(function(W,ee){return ee||(function(q){switch(q){case"YY":return String(P.$y).slice(-2);case"YYYY":return T.s(P.$y,4,"0");case"M":return L+1;case"MM":return T.s(L+1,2,"0");case"MMM":return R(O.monthsShort,L,M,3);case"MMMM":return R(M,L);case"D":return P.$D;case"DD":return T.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return R(O.weekdaysMin,P.$W,K,2);case"ddd":return R(O.weekdaysShort,P.$W,K,3);case"dddd":return K[P.$W];case"H":return String(X);case"HH":return T.s(X,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return Z(X,te,!0);case"A":return Z(X,te,!1);case"m":return String(te);case"mm":return T.s(te,2,"0");case"s":return String(P.$s);case"ss":return T.s(P.$s,2,"0");case"SSS":return T.s(P.$ms,3,"0");case"Z":return D}return null})(W)||D.replace(":","")}))},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(z,P,O){var F,D=this,X=T.p(P),te=V(z),L=(te.utcOffset()-this.utcOffset())*l,K=this-te,M=function(){return T.m(D,te)};switch(X){case y:F=M()/12;break;case c:F=M();break;case h:F=M()/3;break;case p:F=(K-L)/6048e5;break;case m:F=(K-L)/864e5;break;case u:F=K/a;break;case i:F=K/l;break;case s:F=K/o;break;default:F=K}return O?F:T.a(F)},$.daysInMonth=function(){return this.endOf(c).$D},$.$locale=function(){return v[this.$L]},$.locale=function(z,P){if(!z)return this.$L;var O=this.clone(),F=B(z,P,!0);return F&&(O.$L=F),O},$.clone=function(){return T.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},x})(),G=_.prototype;return V.prototype=G,[["$ms",r],["$s",s],["$m",i],["$H",u],["$W",m],["$M",c],["$y",y],["$D",w]].forEach((function(x){G[x[1]]=function($){return this.$g($,x[0],x[1])}})),V.extend=function(x,$){return x.$i||(x($,_,V),x.$i=!0),V},V.locale=B,V.isDayjs=A,V.unix=function(x){return V(1e3*x)},V.en=v[N],V.Ls=v,V.p={},V}))})),Cf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,r=/\d\d/,s=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},m=function(b){return(b=+b)+(b>68?1900:2e3)},p=function(b){return function(f){this[b]=+f}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=(function(f){if(!f||f==="Z")return 0;var k=f.match(/([+-]|\d\d)/g),d=60*k[1]+(+k[2]||0);return d===0?0:k[0]==="+"?-d:d})(b)}],h=function(b){var f=u[b];return f&&(f.indexOf?f:f.s.concat(f.f))},y=function(b,f){var k,d=u.meridiem;if(d){for(var C=1;C<=24;C+=1)if(b.indexOf(d(C,0,f))>-1){k=C>12;break}}else k=b===(f?"pm":"PM");return k},w={A:[i,function(b){this.afternoon=y(b,!1)}],a:[i,function(b){this.afternoon=y(b,!0)}],Q:[a,function(b){this.month=3*(b-1)+1}],S:[a,function(b){this.milliseconds=100*+b}],SS:[r,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[s,p("seconds")],ss:[s,p("seconds")],m:[s,p("minutes")],mm:[s,p("minutes")],H:[s,p("hours")],h:[s,p("hours")],HH:[s,p("hours")],hh:[s,p("hours")],D:[s,p("day")],DD:[r,p("day")],Do:[i,function(b){var f=u.ordinal;if(this.day=b.match(/\d+/)[0],f)for(var k=1;k<=31;k+=1)f(k).replace(/\[|\]/g,"")===b&&(this.day=k)}],w:[s,p("week")],ww:[r,p("week")],M:[s,p("month")],MM:[r,p("month")],MMM:[i,function(b){var f=h("months"),k=(h("monthsShort")||f.map((function(d){return d.slice(0,3)}))).indexOf(b)+1;if(k<1)throw new Error;this.month=k%12||k}],MMMM:[i,function(b){var f=h("months").indexOf(b)+1;if(f<1)throw new Error;this.month=f%12||f}],Y:[/[+-]?\d+/,p("year")],YY:[r,function(b){this.year=m(b)}],YYYY:[/\d{4}/,p("year")],Z:c,ZZ:c};function S(b){for(var f=b,k=u&&u.formats,d=(b=f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(V,T,_){var G=_&&_.toUpperCase();return T||k[_]||o[_]||k[G].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,$,z){return $||z.slice(1)}))}))).match(l),C=d.length,N=0;N<C;N+=1){var v=d[N],g=w[v],A=g&&g[0],B=g&&g[1];d[N]=B?{regex:A,parser:B}:v.replace(/^\[|\]$/g,"")}return function(V){for(var T={},_=0,G=0;_<C;_+=1){var x=d[_];if(typeof x=="string")G+=x.length;else{var $=x.regex,z=x.parser,P=V.slice(G),O=$.exec(P)[0];z.call(T,O),V=V.replace(O,"")}}return(function(F){var D=F.afternoon;if(D!==void 0){var X=F.hours;D?X<12&&(F.hours+=12):X===12&&(F.hours=0),delete F.afternoon}})(T),T}}return function(b,f,k){k.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(m=b.parseTwoDigitYear);var d=f.prototype,C=d.parse;d.parse=function(N){var v=N.date,g=N.utc,A=N.args;this.$u=g;var B=A[1];if(typeof B=="string"){var V=A[2]===!0,T=A[3]===!0,_=V||T,G=A[2];T&&(G=A[2]),u=this.$locale(),!V&&G&&(u=k.Ls[G]),this.$d=(function(P,O,F,D){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*P);var X=S(O)(P),te=X.year,L=X.month,K=X.day,M=X.hours,Y=X.minutes,R=X.seconds,U=X.milliseconds,Z=X.zone,W=X.week,ee=new Date,q=K||(te||L?1:ee.getDate()),H=te||ee.getFullYear(),I=0;te&&!L||(I=L>0?L-1:ee.getMonth());var E,j=M||0,Q=Y||0,ne=R||0,ae=U||0;return Z?new Date(Date.UTC(H,I,q,j,Q,ne,ae+60*Z.offset*1e3)):F?new Date(Date.UTC(H,I,q,j,Q,ne,ae)):(E=new Date(H,I,q,j,Q,ne,ae),W&&(E=D(E).week(W).toDate()),E)}catch{return new Date("")}})(v,B,g,k),this.init(),G&&G!==!0&&(this.$L=this.locale(G).$L),_&&v!=this.format(B)&&(this.$d=new Date("")),u={}}else if(B instanceof Array)for(var x=B.length,$=1;$<=x;$+=1){A[1]=B[$-1];var z=k.apply(this,A);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}$===x&&(this.$d=new Date(""))}else C.call(this,N)}}}))})),Nf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(o,l){var a=l.prototype,r=a.format;a.format=function(s){var i=this,u=this.$locale();if(!this.isValid())return r.bind(this)(s);var m=this.$utils(),p=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(c){switch(c){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return u.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return u.ordinal(i.week(),"W");case"w":case"ww":return m.s(i.week(),c==="w"?1:2,"0");case"W":case"WW":return m.s(i.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return m.s(String(i.$H===0?24:i.$H),c==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return c}}));return r.bind(this)(p)}}}))})),Af=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(o,l,a){var r=l.prototype,s=function(c){return c&&(c.indexOf?c:c.s)},i=function(c,h,y,w,S){var b=c.name?c:c.$locale(),f=s(b[h]),k=s(b[y]),d=f||k.map((function(N){return N.slice(0,w)}));if(!S)return d;var C=b.weekStart;return d.map((function(N,v){return d[(v+(C||0))%7]}))},u=function(){return a.Ls[a.locale()]},m=function(c,h){return c.formats[h]||(function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,S,b){return S||b.slice(1)}))})(c.formats[h.toUpperCase()])},p=function(){var c=this;return{months:function(h){return h?h.format("MMMM"):i(c,"months")},monthsShort:function(h){return h?h.format("MMM"):i(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(c,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(c,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return m(c.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},a.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(h){return m(c,h)},meridiem:c.meridiem,ordinal:c.ordinal}},a.months=function(){return i(u(),"months")},a.monthsShort=function(){return i(u(),"monthsShort","months",3)},a.weekdays=function(c){return i(u(),"weekdays",null,null,c)},a.weekdaysShort=function(c){return i(u(),"weekdaysShort","weekdays",3,c)},a.weekdaysMin=function(c){return i(u(),"weekdaysMin","weekdays",2,c)}}}))})),Bf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var o="week",l="year";return function(a,r,s){var i=r.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var m=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=s(this).startOf(l).add(1,l).date(m),c=s(this).endOf(o);if(p.isBefore(c))return 1}var h=s(this).startOf(l).date(m).startOf(o).subtract(1,"millisecond"),y=this.diff(h,o,!0);return y<0?s(this).startOf("week").week():Math.ceil(y)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}}))})),Tf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(o,l){l.prototype.weekYear=function(){var a=this.month(),r=this.week(),s=this.year();return r===1&&a===11?s+1:a===0&&r>=52?s-1:s}}}))})),Vf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(o,l,a){l.prototype.dayOfYear=function(r){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}}))})),xf=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}}))})),$f=He(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}}))})),Re=_e(wf(),1),Ef=_e(Cf(),1),Df=_e(Nf(),1),If=_e(Af(),1),qf=_e(Bf(),1),Pf=_e(Tf(),1),Mf=_e(Vf(),1),zf=_e(xf(),1),Lf=_e($f(),1);Re.default.extend(If.default);Re.default.extend(Df.default);Re.default.extend(Ef.default);Re.default.extend(qf.default);Re.default.extend(Pf.default);Re.default.extend(Mf.default);Re.default.extend(zf.default);Re.default.extend(Lf.default);var gt={format(e,n="YYYY-MM-DD"){return(0,Re.default)(e).format(n)},parser(e,n){return(0,Re.default)(e,n).toDate()},getDay(e,n,o){let l=n??new Date;const a=e*(1e3*60*60*24);return l=new Date(l.getTime()+a),o=o??"YYYY-MM-DD",this.format(l,o)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){let l=new Date(e+"/"+n+"/"+o).getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},compare(e,n,o){const l=typeof e=="string"?this.parser(e,o):e,a=typeof n=="string"?this.parser(n,o):n,r=l.getTime(),s=a.getTime();return r==s?0:r>s?1:-1},between(e,n,o,l){let a;l==="year"?a=new Date(new Date(n).setFullYear(n.getFullYear()+o)):l==="month"?a=new Date(new Date(n).setMonth(n.getMonth()+o)):a=new Date(new Date(n).setDate(n.getDate()+o));const r=e.getTime(),s=a.getTime(),i=n.getTime();return s>i?r>=i&&r<=s:r>=s&&r<=i},inScope4Day(e,n,o){return this.between(e,n,o,"day")},inScope4Month(e,n,o){return this.between(e,n,o,"month")},inScope4Year(e,n,o){return this.between(e,n,o,"year")}},gr=new Date().getFullYear(),So={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"},Nn=(e,n,o)=>{let l;if(Ue(n)?l=n:typeof n=="string"&&be(n)>0?l=gt.parser(n,o):l=new Date,l.toString()==="Invalid Date")return null;let a=Math.max(l.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Fl=(e,n,o)=>{Ue(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),gt.format(new Date(l),o)},Kl={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(gr-10,0,1),validator:Ue},maxDate:{type:Date,default:()=>new Date(gr+10,11,31),validator:Ue},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:Of,scope:Rf}=J("date-picker"),Ff=Of({components:{Picker:en},props:{...Kl},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=(0,me.useFoxI18n)(Rf),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds"),today:o("today"),fullWeekdays:JSON.parse(o("fullWeekdays"))},a=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,d=>{a.value=d});function r(d,C){return new Date(d,C,0).getDate()}const s=(d,C)=>{const N=e[`${d}Date`],v=N.getFullYear();let g=1,A=1,B=0,V=0;d==="max"&&(g=12,A=r(C.getFullYear(),C.getMonth()+1),B=23,V=59);const T=V;return C.getFullYear()===v&&(g=N.getMonth()+1,C.getMonth()+1===g&&(A=N.getDate(),C.getDate()===A&&(B=N.getHours(),C.getHours()===B&&(V=N.getMinutes())))),{[`${d}Year`]:v,[`${d}Month`]:g,[`${d}Date`]:A,[`${d}Hour`]:B,[`${d}Minute`]:V,[`${d}Seconds`]:T}},i=(0,t.computed)(()=>{if(!h.value)return[];const{maxYear:d,maxDate:C,maxMonth:N,maxHour:v,maxMinute:g,maxSeconds:A}=s("max",h.value),{minYear:B,minDate:V,minMonth:T,minHour:_,minMinute:G,minSeconds:x}=s("min",h.value);let $=[{type:"year",range:[B,d]},{type:"month",range:[T,N]},{type:"day",range:[V,C]},{type:"hour",range:[_,v]},{type:"minute",range:[G,g]},{type:"seconds",range:[x,A]}];switch(e.type){case"date":$=$.slice(0,3);break;case"datetime":$=$.slice(0,5);break;case"time":$=$.slice(3,6);break;case"year-month":$=$.slice(0,2);break;case"month-day":$=$.slice(1,3);break;case"datehour":$=$.slice(0,4);break;case"hour-minute":$=$.slice(3,5);break}return $}),u=(d,C,N,v,g)=>{const A=[];for(;d<=C;){let B=!0;if(typeof e.itemFilter=="function"){const V={text:`${d}`,value:d,type:N,currentYearMonth:v};B=e.itemFilter(V)}if(B)if(typeof e.itemFormatter=="function"){const V={text:`${d}`,value:d,type:N,currentYearMonth:v};e.itemFormatter(V),A.push({text:V.text,value:V.value})}else if(e.isShowChinese){let V=`${d}${l[N]}`;if(N==="day"){if(v[0]===g[0]&&v[1]===g[1]&&d===g[2])V=l.today;else{const T=new Date(v[0],v[1],d).getDay();V=`${V} ${l.fullWeekdays[T]}`}A.push({text:V,value:d})}else A.push({text:d+l[N],value:d})}else A.push({text:`${d}`,value:d});N==="minute"?d+=e.minuteStep:d++}return A},m=(0,t.computed)(()=>{const d=new Date,C=[d.getFullYear(),d.getMonth(),d.getDate()],N=[];h.value&&(N[0]=h.value.getFullYear(),N[1]=h.value.getMonth());let v=[];return i.value.forEach(g=>{let A=u(g.range[0],g.range[1],g.type,N,C);A&&v.push(A)}),v}),p=(d,C)=>d==="year"?C.getFullYear():d==="month"?C.getMonth()+1:d==="day"?C.getDate():d==="hour"?C.getHours():d==="minute"?C.getMinutes():d==="seconds"?C.getSeconds():0,c=(0,t.ref)(),h=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,d=>{let C;if(typeof d=="string"?d.length==0||d==="Invalid Date"?C=new Date:e.valueFormat?C=Nn(e,e.modelValue,e.valueFormat):C=Nn(e,d,So[e.type]):Ue(d)?C=d:C=new Date,!!C&&(!h.value||C.getTime()!==h.value.getTime())){h.value=C;let N=[];i.value.forEach(v=>{let g=p(v.type,C);N.push(g)}),c.value=N}},{immediate:!0});const y=d=>{if(!d||d.length===0){h.value=new Date;let C=[];i.value.forEach(N=>{let v=p(N.type,h.value);C.push(v)}),c.value=C;return}if(e.type==="date"){const C=d[0],N=d[1]-1,v=Math.min(d[2],r(C,N+1));v!==d[2]&&(d[2]=v),h.value=new Date(C,N,v)}else if(e.type==="datetime"){const C=d[0],N=d[1]-1,v=Math.min(d[2],r(C,N+1)),g=d[3],A=d[4];v!==d[2]&&(d[2]=v),h.value=new Date(C,N,v,g,A)}else if(e.type==="time"){const C=d[0],N=d[1],v=d[2],g=h.value??new Date;h.value=new Date(g.getFullYear(),g.getMonth(),g.getDate(),C,N,v)}else if(e.type==="year-month"){const C=d[0],N=d[1]-1;h.value=new Date(C,N)}else if(e.type==="month-day"){const C=(h.value??new Date).getFullYear(),N=d[0]-1,v=Math.min(d[1],r(C,N+1));v!==d[1]&&(d[1]=v),h.value=new Date(C,N,v)}else if(e.type==="datehour"){const C=d[0],N=d[1]-1,v=Math.min(d[2],r(C,N+1)),g=d[3];v!==d[2]&&(d[2]=v),h.value=new Date(C,N,v,g)}else if(e.type==="hour-minute"){const C=d[0],N=d[1],v=h.value??new Date;h.value=new Date(v.getFullYear(),v.getMonth(),v.getDate(),C,N)}c.value=d};return{columns:m,dateIndexs:c,show:a,onChange:d=>{y(d)},onClose:()=>{n("update:close",!1)},onConfirm:d=>{y(d);const C=h.value??new Date;e.valueFormat?n("update:modelValue",Fl(e,C,e.valueFormat)):n("update:modelValue",C),n("confirm",d)},onClear:()=>{n("clear")},onUpdateVisible:d=>{a.value=d,n("update:visible",d)}}}});function Kf(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"top")]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}var Jn=oe(Ff,[["render",Kf]]),Uf={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Hf(e){let n=e.format;return n||(n=So[e.type??"date"]),n}function _f(e,n,o,l,a,r,s=!1){return{props:{...pe,...ve,...Kl,...Uf},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,u){const m=xe((0,t.computed)(()=>i.disabled)),p=Ve((0,t.computed)(()=>i.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??u.attrs.name),{toLocaleRefs:h}=(0,me.useFoxI18n)(n),y=h(i,["placeholder"]),w=(0,t.ref)(!1),b=Pe(i,"modelValue",L=>L==null?null:typeof L=="string"?L.length==0?null:i.valueFormat?Nn(i,L,i.valueFormat)??L:Nn(i,L,So[i.type])??L:Ue(L)?L:null,c),f=(0,t.computed)(()=>{if(!b.value)return"";const L=Hf(i);return Fl(i,b.value,L)}),k="fox-input-item",d=(0,t.computed)(()=>({[k]:!0,"is-disabled":m.value,"is-readonly":p.value})),C=Te((0,t.computed)(()=>i.textAlign),"textAlign"),N=(0,t.computed)(()=>{const L={};return C.value&&(L["text-align"]=C.value),L}),v=(0,t.ref)(!1),g=()=>{v.value=!0},A=()=>{v.value=!1};u.expose({showPicker:g,hidePicker:A});const B=L=>{v.value=L},V=L=>{if(b.value=L,i.valueFormat){let K=Fl(i,L,i.valueFormat);c("update:modelValue",K,{}),c("change",K,{})}else c("update:modelValue",L,{}),c("change",L,{})},T=L=>{let K=L.target.value;w.value=!0,c("focus",K,L)},_=L=>{setTimeout(()=>{w.value=!1},0);let K=L.target.value;i.maxLength&&K.length>Number(i.maxLength)&&(K=K.slice(0,Number(i.maxLength))),c("blur",K,L)},G=(0,t.computed)(()=>({[`${k}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),x=(0,t.computed)(()=>be(i.unit)>0),$=(0,t.computed)(()=>be(i.unit)>0&&!w.value),z=(0,t.computed)(()=>({hidden:!$.value})),P=L=>{b.value="",c("update:modelValue","",L),c("change","",L),c("clear",""),A()},O=(0,t.computed)(()=>i.clearable&&!m.value&&!p.value),F=(0,t.computed)(()=>{let L=be(b.value)>0;return i.clearable&&L&&w.value}),D=L=>{F.value?P(L):g()},X=(0,t.computed)(()=>F.value&&O.value?l:a),te=(0,t.computed)(()=>({action:!0}));return()=>{const L={class:d.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:g,onFocus:T,onBlur:_};s&&(L.disabled=!0);const K=[],M=(0,t.h)("input",L);K.push(M);const Y=[],R=(0,t.h)(X.value,{class:["action-icon"]}),U=(0,t.h)("view",{class:te.value,onClick:D},{default:()=>[R]});if(Y.push(U),x.value){const E=(0,t.h)("view",{class:z.value},[i.unit]);Y.push(E)}const Z=(0,t.h)("view",{class:G.value},{default:()=>Y});K.push(Z);const W={default:()=>K};W.label=u.slots.default,W.prepend=u.slots.prepend,W.append=u.slots.append,W.fixedPreTip=u.slots.fixedPreTip,W.fixedTip=u.slots.fixedTip;const ee=he(i,Kl);ee.valueFormat=null,ee.disabled=!1,ee.readonly=m.value||p.value,ee.visible=v.value,ee["onUpdate:visible"]=B,ee.modelValue=b.value,ee["onUpdate:modelValue"]=V,ee.onClear=P;const q={};if(u.slots.top){const E=u.slots.top();q.top=()=>E}if(u.slots.bottom){const E=u.slots.bottom();q.default=()=>E}const H=(0,t.h)(r,ee,q);W.hide=()=>[H];const I={...he(i,ve,pe)};return i.prop&&(I.prop=`${i.prop}_item`),(0,t.h)(o,I,W)}}}}var{create:jf,componentName:Wf,scope:Yf}=J("date-item"),Xf=jf(_f(Wf,Yf,Ce,le.CircleClose,le.Date,Jn,!1)),ko=Xf,re={format(e,n="YYYY-MM-DD"){return gt.format(e,n)},parser(e,n){return gt.parser(e,n)},isLeapYear:function(e){return gt.isLeapYear(e)},getWhatDay:function(e,n,o){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+o).getDay()]},getMonthPreDay:function(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays:function(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit:function(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},getDay:function(e){e=e||0;let n=new Date;const o=e*(1e3*60*60*24);return n=new Date(n.getTime()+o),this.date2Str(n)},compareDate:function(e,n){return!(new Date(e.replace("-","/").replace("-","/"))>=new Date(n.replace("-","/").replace("-","/")))},isEqual:function(e,n){return new Date(e).getTime()==new Date(n).getTime()},getMonthWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o));let r=a.getDay();const s=a.getDate();let i=6-r;return l!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=new Date(Number(e),0,1),s=Math.round((a.valueOf()-r.valueOf())/864e5);return Math.ceil((s+(r.getDay()+1-1))/7)},getWeekDate:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=a.getTime();let s=a.getDay();if(l===0){const u=r-s*864e5,m=r+(6-s)*864e5;return[this.date2Str(new Date(u)),this.date2Str(new Date(m))]}else{s=s==0?7:s;const i=1440*60*1e3,u=r-(s-1)*i,m=r+(7-s)*i;return[this.date2Str(new Date(u)),this.date2Str(new Date(m))]}},formatResultDate:function(e){const n=[...e.split("-")];return n[2]=re.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=re.getWhatDay(+n[0],+n[1],+n[2]),n}},{create:Qf,scope:Gf}=J("calendar-pane"),Zf=Qf({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String},confirmText:{type:String},startText:{type:String},endText:{type:String},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:re.getDay(0)},endDate:{type:String,default:re.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l,t:a}=(0,me.useFoxI18n)(Gf),r=l(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(a("weekdays")),i=(0,t.ref)([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),u=(0,t.ref)(null),m=(0,t.ref)(null),p=(0,t.ref)(null),c=(0,t.ref)(null),h=(0,t.ref)(0),y=(0,t.computed)(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),w=(0,t.computed)(()=>o.btn),S=(0,t.computed)(()=>o["top-info"]),b=(0,t.computed)(()=>o["bottom-info"]),f=(0,t.reactive)({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),k=R=>R.split("-"),d=R=>re.isEqual(f.currDate[0],R),C=R=>re.isEqual(f.currDate[1],R),N=R=>f.currDate?.length>0?f.currDate?.some(U=>re.isEqual(U,R)):!1,v=(R,U)=>U.curData[0]+"-"+U.curData[1]+"-"+re.getNumTwoBit(+R.day),g=(R,U)=>{const Z=v(R,U),{type:W}=e;return R.type=="curr"?re.isEqual(f.currDate,Z)||(W=="range"||W=="week")&&(d(Z)||C(Z))||W=="multiple"&&N(Z)?`${f.dayPrefix}--active`:f.propStartDate&&re.compareDate(Z,f.propStartDate)||f.propEndDate&&re.compareDate(f.propEndDate,Z)?`${f.dayPrefix}--disabled`:(W=="range"||W=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&re.compareDate(f.currDate[0],Z)&&re.compareDate(Z,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},A=()=>{const{type:R}=e;if(R=="range"&&f.chooseData.length==2||R!="range"){let U=f.chooseData.slice(0);R=="week"&&(U={weekDate:[V(f.chooseData[0]),V(f.chooseData[1])]}),n("choose",U),e.poppable&&n("update")}},B=(R,U,Z=!1)=>{if(g(R,U)!=`${f.dayPrefix}--disabled`){const{type:W}=e;let[ee,q]=U.curData,H=[...U.curData];if(H[2]=re.getNumTwoBit(Number(R.day)),H[3]=`${H[0]}-${H[1]}-${H[2]}`,H[4]=re.getWhatDay(+H[0],+H[1],+H[2]),W=="multiple")if(f.currDate?.length>0){let I;f.currDate?.forEach((E,j)=>{E==H[3]&&(I=j)}),Z?f.chooseData.push([...H]):I!==void 0?(f.currDate.splice(I,1),f.chooseData.splice(I,1)):(f.currDate.push(H[3]),f.chooseData.push([...H]))}else f.currDate=[H[3]],f.chooseData=[[...H]];else if(W=="range"){let I=Object.values(f.currDate).length;I==2||I==0?f.currDate=[H[3]]:re.compareDate(f.currDate[0],H[3])?Array.isArray(f.currDate)&&f.currDate.push(H[3]):Array.isArray(f.currDate)&&f.currDate.unshift(H[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...H]]:re.compareDate(f.chooseData[0][3],H[3])?f.chooseData=[...f.chooseData,[...H]]:f.chooseData=[[...H],...f.chooseData]}else if(W=="week"){let I=re.getWeekDate(ee,q,R.day,e.firstDayOfWeek);f.propStartDate&&re.compareDate(I[0],f.propStartDate)&&I.splice(0,1,f.propStartDate),f.propEndDate&&re.compareDate(f.propEndDate,I[1])&&I.splice(1,1,f.propEndDate),f.currDate=I,f.chooseData=[re.formatResultDate(I[0]),re.formatResultDate(I[1])]}else f.currDate=H[3],f.chooseData=[...H];if(!Z){let I=f.chooseData;W=="week"&&(I={weekDate:[V(f.chooseData[0]),V(f.chooseData[1])]}),n("select",I),(e.isAutoBackFill||!e.poppable)&&A()}}},V=R=>{let[U,Z,W]=R;return{date:R,monthWeekNum:re.getMonthWeek(U,Z,W,e.firstDayOfWeek),yearWeekNum:re.getYearWeek(U,Z,W,e.firstDayOfWeek)}},T=R=>{const U=R=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let Z=parseInt(U.curData[0]),W=parseInt(U.curData[1].toString().replace(/^0/,""));switch(R){case"prev":W==1&&(Z-=1),W=W==1?12:--W;break;case"next":W==12&&(Z+=1),W=W==12?1:++W;break}return[Z+"",re.getNumTwoBit(W),re.getMonthDays(String(Z),String(W))+""]},_=(R,U,Z)=>{let{year:W,month:ee}=Z;return U=="prev"&&R>=7&&(R-=7),Array.from(Array(R),(q,H)=>({day:String(H+1),type:U,year:W,month:ee}))},G=(R,U,Z,W)=>{R=R-e.firstDayOfWeek;let{year:ee,month:q}=Z;return U=="prev"&&R>=7&&(R-=7),Array.from(Array(W),(H,I)=>({day:String(I+1),type:U,year:ee,month:q})).slice(W-R)},x=(R,U)=>{const Z=re.getMonthPreDay(+R[0],+R[1]);let W=Number(R[1])-1,ee=Number(R[0]);W<=0&&(W=12,ee+=1);const q=re.getMonthDays(String(R[0]),String(R[1])),H=re.getMonthDays(ee+"",W+""),I={year:R[0],month:R[1]},E={curData:R,title:a("monthTitle",{year:I.year,month:I.month}),monthData:[...G(Z,"prev",{month:String(W),year:String(ee)},H),..._(q,"curr",I)],cssHeight:0,cssScrollHeight:0};E.cssHeight=39+64*(E.monthData.length>35?6:5);let j=0;f.monthsData.length>0&&(j=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),E.cssScrollHeight=j,U=="next"?(!f.endData||!re.compareDate(`${f.endData[0]}-${f.endData[1]}-${re.getMonthDays(f.endData[0],f.endData[1])}`,`${R[0]}-${R[1]}-${R[2]}`))&&f.monthsData.push(E):!f.startData||!re.compareDate(`${R[0]}-${R[1]}-${R[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(E):f.unLoadPrev=!0},$=()=>{let R=e.startDate?e.startDate:re.getDay(0),U=e.endDate?e.endDate:re.getDay(365);f.propStartDate=R,f.propEndDate=U,f.startData=k(R),f.endData=k(U),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const Z={year:Number(f.startData[0]),month:Number(f.startData[1])},W={year:Number(f.endData[0]),month:Number(f.endData[1])};let ee=W.month-Z.month;W.year-Z.year>0&&(ee=ee+12*(W.year-Z.year)),ee<=0&&(ee=1),x(f.startData,"next");let q=1;do x(T("next"),"next");while(q++<ee);if(f.monthsNum=ee,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(R&&re.compareDate(f.currDate[0],R)&&f.currDate.splice(0,1,R),U&&re.compareDate(U,f.currDate[1])&&f.currDate.splice(1,1,U),f.defaultData=[...k(f.currDate[0]),...k(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let H=[],I={};f.currDate.forEach(E=>{R&&!re.compareDate(E,R)&&U&&!re.compareDate(U,E)&&(Object.hasOwnProperty.call(I,E)||(H.push(E),I[E]=E))}),f.currDate=[...H],f.defaultData=[...k(H[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[H,I,E]=k(f.currDate[0]);f.currDate=re.getWeekDate(H,I,E,e.firstDayOfWeek),R&&re.compareDate(f.currDate[0],R)&&f.currDate.splice(0,1,R),U&&re.compareDate(U,f.currDate[1])&&f.currDate.splice(1,1,U),f.defaultData=[...k(f.currDate[0]),...k(f.currDate[1])]}}else f.currDate&&(R&&re.compareDate(f.currDate,R)?f.currDate=R:U&&!re.compareDate(f.currDate,U)&&(f.currDate=U),f.defaultData=[...k(f.currDate)])};Be({scrollToDate:R=>{re.compareDate(R,f.propStartDate)?R=f.propStartDate:re.compareDate(R,f.propEndDate)||(R=f.propEndDate);let U=k(R);f.monthsData.forEach((Z,W)=>{if(Z.title==a("monthTitle",{year:U[0],month:U[1]})&&u.value){let ee=f.monthsData[W].cssScrollHeight-u.value.scrollTop;if(e.toDateAnimation){let q=0,H=setInterval(()=>{if(q++,u.value){let I=ee/10;u.value.scrollTop=u.value.scrollTop+I}q>=10&&(clearInterval(H),u.value&&(u.value.scrollTop=f.monthsData[W].cssScrollHeight))},40)}else u.value.scrollTop=f.monthsData[W].cssScrollHeight}})},initPosition:()=>{u?.value&&(u.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let R=0,U=0;f.defaultData.length>0&&f.monthsData.forEach((ee,q)=>{ee.title==a("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(R=q),(e.type=="range"||e.type=="week")&&ee.title==a("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(U=q)}),F(f.monthsNum,R),f.currentIndex=R,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),B({day:f.defaultData[5],type:"curr"},f.monthsData[U],!0)):e.type=="week"?B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(ee=>{let q=k(ee),H=f.currentIndex;f.monthsData.forEach((I,E)=>{I.title==a("monthTitle",{year:q[0],month:q[1]})&&(H=E)}),B({day:q[2],type:"curr"},f.monthsData[H],!0)}):B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let Z=f.monthsData[f.monthsData.length-1],W=Z.cssHeight+Z.cssScrollHeight;We(()=>{u?.value&&m?.value&&c?.value&&(h.value=u.value.clientHeight,m.value.style.height=`${W}px`,u.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(W/(f.monthsNum+1))}});const F=(R,U)=>{R>=3?U>0&&U<R?f.defaultRange=[U-1,U+3]:U==0?f.defaultRange=[U,U+4]:U==R&&(f.defaultRange=[U-2,U+2]):f.defaultRange=[0,R+2],f.translateY=f.monthsData[f.defaultRange[0]].cssScrollHeight},D=(R,U)=>(e.type=="range"||e.type=="week")&&R.type=="curr"&&g(R,U)=="fox-calendar__day--active",X=(R,U)=>D(R,U)&&d(v(R,U)),te=(R,U)=>f.currDate.length>=2&&C(v(R,U))?D(R,U):!1,L=()=>{if(f.currDate.length>=2)return re.isEqual(f.currDate[0],f.currDate[1])},K=R=>{const U=`${R.year}-${R.month}-${Number(R.day)<10?"0"+R.day:R.day}`;return re.isEqual(U,re.date2Str(new Date))},M=R=>{if(f.monthsData.length<=1)return;const U=R.target.scrollTop;let Z=Math.floor(U/f.avgHeight);if(Z==0)U>=f.monthsData[Z+1].cssScrollHeight&&(Z+=1);else if(Z>0&&Z<f.monthsNum-1)U>=f.monthsData[Z+1].cssScrollHeight&&(Z+=1),U<f.monthsData[Z].cssScrollHeight&&(Z-=1);else{const W=Math.round(U+h.value);W<f.monthsData[Z].cssScrollHeight+f.monthsData[Z].cssHeight&&U>f.monthsData[Z-1].cssScrollHeight&&(Z-=1),Z+1<=f.monthsNum&&W>=f.monthsData[Z+1].cssScrollHeight+f.monthsData[Z+1].cssHeight&&(Z+=1),Z>=1&&U<f.monthsData[Z-1].cssScrollHeight&&(Z-=1)}f.currentIndex!==Z&&(f.currentIndex=Z,F(f.monthsNum,Z)),f.yearMonthTitle=f.monthsData[Z].title},Y=()=>{f.chooseData.splice(0),f.monthsData.splice(0),$()};return $(),(0,t.watch)(()=>e.defaultValue,R=>{R&&e.poppable&&Y()}),{weeks:i,compConthsData:y,showTopBtn:w,topInfo:S,bottomInfo:b,rangeTip:L,mothsViewScroll:M,getClass:g,isStartTip:X,isEndTip:te,chooseDay:B,isCurrDay:K,confirm:A,months:u,...(0,t.toRefs)(f),...(0,t.toRefs)(e),...r,monthsPanel:m,weeksPanel:p,viewArea:c}}}),Jf={class:"fox-calendar__header"},e0={key:0,class:"fox-calendar__header-title"},t0={key:1,class:"fox-calendar__header-slot"},n0={key:2,class:"fox-calendar__header-subtitle"},l0={class:"fox-calendar__weekdays",ref:"weeksPanel"},o0={class:"fox-calendar__panel",ref:"monthsPanel"},a0={class:"fox-calendar__month-title"},r0={class:"fox-calendar__days"},i0=["onClick"],s0={class:"fox-calendar__day-value"},u0={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},c0={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},d0={key:2,class:"fox-calendar__day-tips--curr"},f0={key:4,class:"fox-calendar__day-tip"},m0={key:0,class:"fox-calendar__footer"};function p0(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[(0,t.createElementVNode)("view",Jf,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",e0,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",t0,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",n0,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",l0,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.weeks,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:i},(0,t.toDisplayString)(s),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[(0,t.createElementVNode)("view",o0,[(0,t.createElementVNode)("view",{class:"fox-calendar__body",ref:"viewArea",style:(0,t.normalizeStyle)({transform:`translateY(${e.translateY}px)`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.compConthsData,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:i},[(0,t.createElementVNode)("view",a0,(0,t.toDisplayString)(s.title),1),(0,t.createElementVNode)("view",r0,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.monthData,(u,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:m,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(u,s)]),onClick:p=>e.chooseDay(u,s)},[(0,t.createElementVNode)("view",s0,[(0,t.renderSlot)(e.$slots,"day",{date:u.type=="curr"?u:""},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(u.type=="curr"?u.day:""),1)])]),e.topInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",u0,[(0,t.renderSlot)(e.$slots,"top-info",{date:u.type=="curr"?u:""})])):(0,t.createCommentVNode)("",!0),e.bottomInfo?((0,t.openBlock)(),(0,t.createElementBlock)("view",c0,[(0,t.renderSlot)(e.$slots,"bottom-info",{date:u.type=="curr"?u:""})])):(0,t.createCommentVNode)("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(u)?((0,t.openBlock)(),(0,t.createElementBlock)("view",d0,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(u,s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:3,class:(0,t.normalizeClass)(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},(0,t.toDisplayString)(e.startText),3)):(0,t.createCommentVNode)("",!0),e.isEndTip(u,s)?((0,t.openBlock)(),(0,t.createElementBlock)("view",f0,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,i0))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",m0,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var h0=oe(Zf,[["render",p0]]),v0=(0,t.defineComponent)({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0},popClass:{type:[String],default:()=>"fox-calender__popup"}},setup(e,{slots:n}){return()=>e.poppable?(0,t.h)(ge,Ge({...e},{poppable:!1}),n):n?.default?.()??null}}),g0=v0,y0=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),cn={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String},confirmText:{type:String},startText:{type:String},endText:{type:String},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6}},{create:b0}=J("calendar"),S0=b0({components:{Wrapper:g0,CalendarPane:h0},props:{...cn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o}){const l=(0,t.computed)(()=>o.btn),a=(0,t.computed)(()=>o["top-info"]),r=(0,t.computed)(()=>o.day),s=(0,t.computed)(()=>o["bottom-info"]),i=(0,t.ref)(null),u=S=>{i.value?.scrollToDate(S)},m=()=>{i.value?.initPosition()};(0,t.watch)(()=>e.visible,S=>{S&&(0,t.nextTick)(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Be({scrollToDate:u,initPosition:m});const p=()=>{n("update:visible",!1)},c=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{c()},update:p,close:c,select:S=>{n("select",S)},choose:S=>{c(),n("choose",S)},calendarRef:i,showTopBtn:l,topInfo:a,dayInfo:r,bottomInfo:s}}});function k0(e,n,o,l,a,r){const s=(0,t.resolveComponent)("CalendarPane"),i=(0,t.resolveComponent)("Wrapper");return(0,t.openBlock)(),(0,t.createBlock)(i,(0,t.mergeProps)({visible:e.visible,position:"bottom","pop-class":"fox-calendar__popup",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,poppable:e.poppable}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},(0,t.createSlots)({_:2},[e.showTopBtn?{name:"btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:(0,t.withCtx)(u=>[(0,t.renderSlot)(e.$slots,"day",{date:u.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(u=>[(0,t.renderSlot)(e.$slots,"top-info",{date:u.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(u=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:u.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","poppable"])}var el=oe(S0,[["render",k0]]),yr={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}},Sl=(e,n)=>{let o;return Ue(e)?o=e:typeof e=="string"&&be(e)>0?o=re.parser(e,n):o=new Date,o},ct=(e,n,o)=>(Ue(n)||(n=new Date),re.format(n,o)),dt=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,re.date2Str(e),re.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())];function w0(e,n,o,l,{CloseIcon:a,MarkIcon:r},s=!1){return{props:{...pe,...ve,...cn,...yr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,u){const m=xe((0,t.computed)(()=>i.disabled)),p=Ve((0,t.computed)(()=>i.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??u.attrs.name),{toLocaleRefs:h}=(0,me.useFoxI18n)(n),y=h(i,["placeholder"]),w=(0,t.ref)(!1),S=(0,t.computed)(()=>i.type==="range"),b=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),f=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},k=(M,Y="one",R="YYYY-MM-DD")=>{if(y0(M)){f();return}if(S.value&&Array.isArray(M)&&M.length==2){let U,Z;typeof M[0]=="string"?(U=Sl(M[0],R),Z=Sl(M[1],R)):(U=M[0],Z=M[1]);let W=dt(U),ee=dt(Z);(b.startDate===null||b.startDate.getTime()!==U.getTime()||b.endDate?.getTime()!==Z.getTime())&&(b.startDate=U,b.startArray=W,b.endDate=Z,b.endArray=ee)}else{let U;typeof M=="string"?U=Sl(M,R):U=M;let Z=dt(U);(b.startDate===null||b.startDate.getTime()!==U.getTime())&&(b.startDate=U,b.startArray=Z)}};k(i.modelValue,i.type,i.valueFormat),(0,t.watch)(()=>i.modelValue,M=>{k(M,i.type,i.valueFormat),c("setValue",M)});const d=(0,t.computed)(()=>{if(b.startDate===null)return"";if(S.value){let M=ct(i,b.startDate,i.format),Y=ct(i,b.endDate,i.format);return`${M} ${i.rangeSeparator} ${Y}`}else{let M=ct(i,b.startDate,i.format);return i.showWeek&&(M=`${M} ${b.startArray[4]}`),M}}),C=(0,t.computed)(()=>b.startDate===null?null:S.value?[re.date2Str(b.startDate),re.date2Str(b.endDate??new Date)]:re.date2Str(b.startDate)),N="fox-input-item",v=(0,t.computed)(()=>({[N]:!0,"is-disabled":m.value,"is-readonly":p.value})),g=Te((0,t.computed)(()=>i.textAlign),"textAlign"),A=(0,t.computed)(()=>{const M={};return g.value&&(M["text-align"]=g.value),M}),B=(0,t.ref)(!1),V=()=>{p.value||m.value||(B.value=!0)},T=M=>{B.value=M},_=M=>{if(M){if(S.value&&Array.isArray(M)){let Y=M[0],R=fe(Y[0]),U=fe(Y[1]),Z=fe(Y[2]),W=new Date(R,U-1,Z),ee=M[1];R=fe(ee[0]),U=fe(ee[1]),Z=fe(ee[2]);let q=new Date(R,U-1,Z);b.startDate=W,b.startArray=dt(W),b.endDate=q,b.endArray=dt(q),i.valueFormat?c("update:modelValue",[ct(i,W,i.valueFormat),ct(i,q,i.valueFormat)],{}):c("update:modelValue",[W,q],{})}else{let Y=M,R=fe(Y[0]),U=fe(Y[1]),Z=fe(Y[2]),W=new Date(R,U-1,Z);b.startDate=W,b.startArray=dt(W),i.valueFormat?c("update:modelValue",ct(i,W,i.valueFormat),{}):c("update:modelValue",W,{})}c("change",M,{})}},G=M=>{let Y=M.target.value;w.value=!0,c("focus",Y,M)},x=M=>{setTimeout(()=>{w.value=!1},0);let Y=M.target.value;i.maxLength&&Y.length>Number(i.maxLength)&&(Y=Y.slice(0,Number(i.maxLength))),c("blur",Y,M)},$=(0,t.computed)(()=>({[`${N}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),z=(0,t.computed)(()=>be(i.unit)>0),P=(0,t.computed)(()=>be(i.unit)>0&&!w.value),O=(0,t.computed)(()=>({hidden:!P.value})),F=M=>{f(),c("update:modelValue",null,M),c("change","",M),c("clear","")},D=(0,t.computed)(()=>i.clearable&&!m.value&&!p.value),X=(0,t.computed)(()=>{let M=be(d.value)>0;return i.clearable&&M&&w.value}),te=M=>{X.value?F(M):V()},L=(0,t.computed)(()=>X.value&&D.value?a:r),K=(0,t.computed)(()=>({action:!0}));return()=>{const M={class:v.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:V,onFocus:G,onBlur:x};s&&(M.disabled=!0);const Y=[],R=(0,t.h)("input",M);Y.push(R);const U=[],Z=(0,t.h)(L.value,{class:["action-icon"]}),W=(0,t.h)("view",{class:K.value,onClick:te},{default:()=>[Z]});if(U.push(W),z.value){const Q=(0,t.h)("view",{class:O.value},[i.unit]);U.push(Q)}const ee=(0,t.h)("view",{class:$.value},{default:()=>U});Y.push(ee);const q={default:()=>Y};q.label=u.slots.default,q.prepend=u.slots.prepend,q.append=u.slots.append,q.fixedPreTip=u.slots.fixedPreTip,q.fixedTip=u.slots.fixedTip;const H=he(i,cn);H.visible=B.value,H["onUpdate:visible"]=T,H["default-value"]=C.value,H.onChoose=_;const I={};if(u.slots.btn){const Q=u.slots.btn();I.btn=()=>Q}u.slots.day&&(I.day=u.slots.day),u.slots.topInfo&&(I.topInfo=u.slots.topInfo),u.slots.bottomInfo&&(I.bottomInfo=u.slots.bottomInfo);const E=(0,t.h)(o,H,I);q.hide=()=>[E];const j={...Ge(i,cn,yr)};return i.prop&&(j.prop=`${i.prop}_item`),(0,t.h)(l,j,q)}}}}var{componentName:C0,create:N0,scope:A0}=J("calendar-item"),B0=N0(w0(C0,A0,el,Ce,{CloseIcon:le.CircleClose,MarkIcon:le.Date},!1)),wo=B0,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 V0(e,{CheckNormal:n,Checked:o}){return{props:{...T0},setup(l,{emit:a,slots:r}){const s=(0,t.inject)("parent",null),i=Mn(),u=(0,t.computed)(()=>s.label.value===l.label),m=(0,t.computed)(()=>s.position),p=()=>{const S=[];if(u.value){if(r.checkedIcon)return r.checkedIcon();{const b=se(l.iconSize),f=l.checkedIcon??i.radio.Checked??o;return S.push("fox-radio__icon"),l.disabled&&S.push("is-disabled"),l.readonly&&S.push("is-readonly"),(0,t.h)(f,{width:b,height:b,class:S})}}else{if(r.icon)return r.icon();{const b=se(l.iconSize),f=l.icon??i.radio.CheckNormal??n;return S.push("fox-radio__icon--unchecked"),l.disabled&&S.push("is-disabled"),l.readonly&&S.push("is-readonly"),(0,t.h)(f,{width:b,height:b,class:S})}}},c=()=>{const S=[`${e}__label`];return l.disabled&&S.push("is-disabled"),l.readonly&&S.push("is-readonly"),(0,t.h)("view",{class:S},r.default?.())},h=()=>{const S=[`${e}__button`];return u.value&&S.push(`${e}__button--active`),l.disabled&&S.push("is-disabled"),l.readonly&&S.push("is-readonly"),(0,t.h)("view",{class:S},r.default?.())},y=()=>{u.value||l.disabled||l.readonly||s.updateValue(l.label)},w=m.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${w?`${e}--reverse`:""}`,onClick:y},[l.shape=="button"?h():w?[c(),p()]:[p(),c()]])}}}var{componentName:x0,create:$0}=J("radio"),E0=$0(V0(x0,{CheckNormal:le.CheckNormal,Checked:le.CheckChecked})),tl=E0,{componentName:br,create:D0}=J("radio-group"),I0=D0({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:o}=Vt(),l=a=>o("update:modelValue",a);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:l}),(0,t.watch)(()=>e.modelValue,a=>o("change",a)),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),(0,t.h)("view",{class:`${br} ${br}--${e.direction}`,style:a},n.default?.())}}}),nl=I0;function Sr(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(dn(e,r)===o)return a}else if(l==="item"){if(De(o,r))return a}else if(Ot(e,r)===o)return a}return-1}function dn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ot(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function q0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function P0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var M0=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=Je(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ee(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function z0(){return new M0((0,t.getCurrentInstance)().proxy)}function L0(e){return{text:e,value:e}}var kr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},O0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},R0={source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Object],default:""}};function F0(e,n,o,l,a){return{props:{...pe,...ve,...kr,...O0,...R0},emits:["change","update:modelValue","setValue"],setup(r,s){const i=Ve((0,t.computed)(()=>r.readonly)),u=xe((0,t.computed)(()=>r.disabled)),m=Te((0,t.computed)(()=>r.textAlign),"textAlign"),{emitEvent:p}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return u.value}},r.prop??s.attrs.name),c=z0(),h=(0,t.ref)([]);(0,t.watch)([()=>r.source,()=>r.params],async([f,k])=>{if(f){const d=await c.load("radio",f,k);d.length>0?typeof d[0]=="string"?h.value=d.map(C=>L0(C)):h.value=d:h.value=[]}},{immediate:!0});let y=(0,t.ref)(-1);(0,t.watch)([()=>r.modelValue,()=>h.value],async([f,k])=>{y.value=Sr(r,k,f,r.valueType),p("setValue",f)},{deep:!0});const w=(0,t.computed)(()=>{if(!r.source)return r.modelValue;if(y.value===-1)return null;const f=h.value[y.value];return Ot(r,f)}),S=f=>{let k=null,d=null;if(h.value.length>0){let C=Sr(r,h.value,f,"value");y.value=C,C>=0&&(d=h.value[C],r.valueType==="text"?k=dn(r,d):r.valueType==="item"?k=d:k=Ot(r,d))}else k=f;p("update:modelValue",k),p("change",k,d)},b=()=>{let f=null,k=null;if(h.value.length>0&&y.value!==-1){let d=h.value[y.value];r.valueType==="text"?f=dn(r,d):r.valueType==="item"?f=d:f=Ot(r,d)}p("update:modelValue",f),p("change",f,k)};if(Be({clear(){y.value!==-1&&(y.value=-1,b())}}),r.source){const f=()=>{const k=[],d=he(r,kr);return h.value.forEach((C,N)=>{const v=Ot(r,C),g=q0(r,C);let A={...d,label:v,disabled:g};const B=P0(r,C,N);A={...A,...B},u.value&&(A.disabled=!0),i.value&&(A.readonly=!0);const V={};if(s.slots.icon&&(V.icon=s.slots.icon),s.slots.checkedIcon&&(V.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const _=s.slots.text(C);V.default=()=>[_]}else{const _=dn(r,C);V.default=()=>_}let T=(0,t.h)(a,A,V);k.push(T)}),k};return()=>{const k=f(),d=(0,t.h)(l,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:m.value,modelValue:w,"onUpdate:modelValue":S},{default:()=>k}),C={default:()=>d};C.label=s.slots.default,C.prepend=s.slots.prepend,C.append=s.slots.append,C.fixedPreTip=s.slots.fixedPreTip,C.fixedTip=s.slots.fixedTip;const N={...he(r,ve,pe)};return r.prop&&(N.prop=`${r.prop}_item`),(0,t.h)(o,N,C)}}else return()=>{const f=s.slots.options?.()??[];return(0,t.h)(l,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:m.value,modelValue:w,"update:modelValue":S},{default:()=>f})}}}}var{componentName:K0,create:U0,scope:H0}=J("radio-item"),_0=U0(F0(K0,H0,Ce,nl,tl)),Co=_0,j0=(e,{CheckNormal:n,Checked:o,Indeterminate:l})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(a,{slots:r}){const{emitEvent:s}=Vt(),i=Mn(),u=(0,t.inject)("parent",null),m=(0,t.reactive)({partialSelect:a.indeterminate});(0,t.watch)(()=>a.indeterminate,d=>{m.partialSelect=d});const p=(0,t.computed)(()=>!!u),c=(0,t.computed)(()=>p.value?u.value.value.includes(a.label):!!a.modelValue),h=(0,t.computed)(()=>p.value?u.position:a.textPosition);let y="";const w=(d,C)=>{y="click",s("update:modelValue",d),s("change",d,C)};(0,t.watch)(()=>a.modelValue,d=>{y=="click"?y="":s("change",d)});const S=()=>{const d=[];if(m.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const C=se(a.iconSize),N=a.indeterminateIcon??i.checkbox.Indeterminate??l;return d.push("fox-checkbox__icon--indeterminate"),a.disabled&&d.push("is-disabled"),a.readonly&&d.push("is-readonly"),(0,t.h)(N,{width:C,height:C,class:d})}}else if(c.value){if(r.checkedIcon)return r.checkedIcon();{const C=se(a.iconSize),N=a.checkedIcon??i.checkbox.Checked??o;return d.push("fox-checkbox__icon"),a.disabled&&d.push("is-disabled"),a.readonly&&d.push("is-readonly"),(0,t.h)(N,{width:C,height:C,class:d})}}else{if(r.icon)return r.icon();{const C=se(a.iconSize),N=a.icon??i.checkbox.CheckNormal??n;return d.push("fox-checkbox__icon--unchecked"),a.disabled&&d.push("is-disabled"),a.readonly&&d.push("is-readonly"),(0,t.h)(N,{width:C,height:C,class:d})}}},b=()=>{const d=[`${e}__label`];return a.disabled&&d.push("is-disabled"),a.readonly&&d.push("is-readonly"),(0,t.h)("view",{class:d},r.default?.())},f=()=>{const d=[`${e}__button`];return c.value&&d.push(`${e}__button--active`),a.disabled&&d.push("is-disabled"),a.readonly&&d.push("is-readonly"),(0,t.h)("view",{class:d},r.default?.())},k=d=>{if(!(a.disabled||a.readonly)){if(c.value&&m.partialSelect){m.partialSelect=!1,w(c.value,r.default?.()[0].children);return}if(w(!c.value,r.default?.()[0].children),p.value){const C=u.value.value,N=u.max.value,{label:v}=a,g=C.indexOf(v);g>-1?C.splice(g,1):g<=-1&&(C.length<N||!N)&&C.push(v),u.updateValue(C)}}};return(0,t.onMounted)(()=>{p.value&&u.link((0,t.getCurrentInstance)())}),(0,t.onBeforeUnmount)(()=>{p.value&&u.unlink((0,t.getCurrentInstance)())}),()=>(0,t.h)("view",{class:`${e} ${e}--${a.shape} ${h.value==="left"?`${e}--reverse`:""}`,onClick:k},[a.shape=="button"?f():[S(),b()]])}}),{componentName:W0,create:Y0}=J("checkbox"),X0=Y0(j0(W0,{CheckNormal:le.CheckNormal,Checked:le.Checked,Indeterminate:le.CheckDisabled})),ll=X0,{create:Q0,componentName:wr}=J("checkbox-group"),G0=Q0({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:o}=Vt(),l=(0,t.reactive)({children:[]}),a=m=>{m.proxy&&l.children.push(m.proxy)},r=m=>{m.proxy&&(l.children=l.children.filter(p=>p!==m.proxy))},s=m=>{o("update:modelValue",m),o("change",m)},i=m=>{const p=[];m&&l.children.forEach(c=>{c?.disabled||p.push(c?.label)}),o("update:modelValue",p)},u=()=>{o("update:modelValue",l.children.filter(m=>m?.disabled?!1:!e.modelValue.includes(m.label)).map(m=>m.label))};return(0,t.provide)("parent",{value:(0,t.computed)(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:(0,t.computed)(()=>e.max),updateValue:s,link:a,unlink:r}),(0,t.watch)(()=>e.modelValue,m=>{o("change",m)}),Be({toggleAll:i,toggleReverse:u}),()=>{const m={};return e.textAlign&&(m["text-align"]=e.textAlign),(0,t.h)("view",{class:`${wr} ${wr}--${e.direction}`,style:m},n.default?.())}}}),ol=G0;function Cr(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(Ul(e,r)===o)return a}else if(l==="item"){if(De(o,r))return a}else if(fn(e,r)===o)return a}return-1}function Ul(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function fn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Z0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function J0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var em=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);let l=Je(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ee(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function tm(){return new em((0,t.getCurrentInstance)().proxy)}function nm(e){return{text:e,value:e}}var lm={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Nr={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},om={source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]}};function am(e,n,o,l,a){return{props:{...pe,...ve,...lm,...Nr,...om},emits:["change","update:modelValue","setValue"],setup(r,s){const i=xe((0,t.computed)(()=>r.disabled)),u=Ve((0,t.computed)(()=>r.readonly)),m=Te((0,t.computed)(()=>r.textAlign),"textAlign"),{emitEvent:p}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return u.value},get disabled(){return i.value}},r.prop??s.attrs.name),c=tm(),h=(0,t.ref)([]);(0,t.watch)([()=>r.source,()=>r.params],async([f,k])=>{if(f){const d=await c.load("checkbox",f,k);d.length>0?typeof d[0]=="string"?h.value=d.map(C=>nm(C)):h.value=d:h.value=[]}},{immediate:!0});const y=(0,t.ref)([]);(0,t.watch)([()=>r.modelValue,()=>h.value],async([f,k])=>{const d=[];Array.isArray(f)&&f.forEach(C=>{let N=Cr(r,k,C,r.valueType);N!==-1&&d.push(N)}),!De(d,y.value)&&(y.value=d,p("setValue",d))},{deep:!0});const w=(0,t.computed)(()=>{if(!r.source)return r.modelValue;let f=[];return y.value.forEach(k=>{let d=h.value[k];f.push(fn(r,d))}),f}),S=f=>{let k=[],d=[];if(h.value.length>0){const C=[];Array.isArray(f)&&f.forEach(N=>{let v=Cr(r,h.value,N,"value");v!==-1&&C.push(v);const g=h.value[v];d.push(g),r.valueType==="text"?k.push(Ul(r,g)):r.valueType==="item"?k.push(g):k.push(fn(r,g))}),y.value=C}else k=f;p("update:modelValue",k),p("change",k,d)},b=(0,t.ref)();if(Be({toggleAll:f=>{b.value.toggleAll(f)},toggleReverse:()=>{b.value.toggleReverse()}}),r.source){const f=()=>{const k=[],d=he(r,Nr);return h.value.forEach((C,N)=>{const v=fn(r,C),g=Z0(r,C);let A={...d,label:v,disabled:g};const B=J0(r,C,N);A={...A,...B},i.value&&(A.disabled=!0),u.value&&(A.readonly=!0);const V={};if(s.slots.icon&&(V.icon=s.slots.icon),s.slots.checkedIcon&&(V.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(V.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const _=s.slots.text(C);V.default=()=>[_]}else{const _=Ul(r,C);V.default=()=>_}let T=(0,t.h)(a,A,V);k.push(T)}),k};return()=>{const k=f(),d=(0,t.h)(l,{class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:w.value,"onUpdate:modelValue":S},{default:()=>k}),C={default:()=>d};C.label=s.slots.default,C.prepend=s.slots.prepend,C.append=s.slots.append,C.fixedPreTip=s.slots.fixedPreTip,C.fixedTip=s.slots.fixedTip;const N={...he(r,ve,pe)};return r.prop&&(N.prop=`${r.prop}_item`),(0,t.h)(o,N,C)}}else return()=>{const f=s.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:m.value,modelValue:w,"onUpdate:modelValue":S},{default:()=>f})}}}}var{componentName:rm,create:im,scope:sm}=J("checkbox-item"),um=im(am(rm,sm,Ce,ol,ll)),No=um,Hl={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:cm,create:dm}=J("switch"),fm=dm({components:{Loading1:le.Loading1},props:{...Hl},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const o=(0,t.computed)(()=>e.modelValue===e.activeValue),l=(0,t.computed)(()=>{const i=cm;return{[i]:!0,[o.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-base`]:!0,"is-disabled":e.disabled}}),a=(0,t.computed)(()=>({backgroundColor:o.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disabled||e.loading)return;r="click";const u=o.value?e.inactiveValue:e.activeValue;n("update:modelValue",u),n("change",u,i)};return(0,t.watch)(()=>e.modelValue,i=>{r=="click"?r="":n("change",i)}),{classes:l,style:a,isActive:o,onClick:s}}}),mm={class:"fox-switch-button"};function pm(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Loading1");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i)),style:(0,t.normalizeStyle)(e.style)},[(0,t.createElementVNode)("view",mm,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(s,{name:"loading",color:e.activeColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.activeText?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label open"},(0,t.toDisplayString)(e.activeText),513),[[t.vShow,e.isActive]]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label close"},(0,t.toDisplayString)(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):(0,t.createCommentVNode)("",!0)])],6)}var al=oe(fm,[["render",pm]]);function hm(e,n,o,l){return{props:{...pe,...ve,...Hl},emits:["change","update:modelValue","setValue"],setup(a,r){const s=xe((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),m=e,p=Pe(a,"modelValue",null,u),c=h=>{p.value=h,u("update:modelValue",h,{}),u("change",h,{})};return()=>{const h={...he(a,Hl),disabled:s.value||i.value,value:p.value,"onUpdate:modelValue":c},y=[],w=(0,t.h)(l,h);y.push(w);const S={default:()=>y};S.label=r.slots.default,S.fixedPreTip=r.slots.fixedPreTip,S.fixedTip=r.slots.fixedTip;const b={...he(a,ve,pe)};return a.prop&&(b.prop=`${a.prop}_item`),b["content-class"]=m,(0,t.h)(o,b,S)}}}}var{componentName:vm,create:gm,scope:ym}=J("switch-item"),bm=gm(hm(vm,ym,Ce,al)),Ao=bm;function Sm(e,n,o,l){return{props:{...pe,...ve,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(a,r){const s=xe((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),{toLocaleRefs:m}=(0,me.useFoxI18n)(n),p=m(a,["placeholder"]),c=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,_=>{c.value=_,u("change",_)});const h=(0,t.computed)(()=>({[`${e}`]:!0})),y=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&ue(c.value),"is-disabled":s.value,"is-readonly":i.value})),w=Te((0,t.computed)(()=>a.textAlign),"textAlign"),S=(0,t.computed)(()=>{const _={};return w.value&&(_["text-align"]=w.value),_}),b=(0,t.computed)(()=>!ue(a.modelValue)||r.slots.main?!0:!!ue(a.desc)),f=(0,t.computed)(()=>ue(c.value)?p.placeholder.value:c.value),k=(0,t.computed)(()=>!ue(a.desc)||r.slots.sub),d=(0,t.computed)(()=>({[`${e}__sub`]:!0})),C=(0,t.computed)(()=>{const _={};return w.value&&(_["text-align"]=w.value),_}),N=()=>{u("focus",c.value)},v=()=>{u("blur",c.value)},g=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),A=(0,t.computed)(()=>be(a.unit)>0),B=_=>{s.value==!0||i.value==!0||u("click")},V=(0,t.computed)(()=>a.icon??o),T=(0,t.computed)(()=>({action:!0}));return()=>{const _=[];if(typeof r.slots.content=="function"){const D=r.slots.content();_.push(D)}else{const D=[];if(b.value){const te={tabIndex:0,class:y.value,style:S.value,onFocus:N,onBlur:v};let L=null;r.slots.main?L=(0,t.h)("view",te,[r.slots.main(f.value)]):L=(0,t.h)("view",te,[f.value]),D.push(L)}if(k.value){const te={tabIndex:0,class:d.value,style:C.value,onFocus:N,onBlur:v};let L=null;r.slots.sub?L=(0,t.h)("view",te,[r.slots.sub(a.desc)]):L=(0,t.h)("view",te,[a.desc]),D.push(L)}const X=(0,t.h)("view",{class:h.value,onClick:B},D);_.push(X)}const G=[],x=se(a.iconSize);let $=r.slots.icon;if(!$){const D={width:x,height:x,class:["action-icon"]};$=(0,t.h)(V.value,D)}const z=(0,t.h)("view",{class:T.value,onClick:B},{default:()=>[$]});if(G.push(z),A.value){const D=(0,t.h)("view",{},[a.unit]);G.push(D)}const P=(0,t.h)("view",{class:g.value},{default:()=>G});_.push(P);const O={default:()=>_};O.label=r.slots.default,O.prepend=r.slots.prepend,O.append=r.slots.append,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const F={...he(a,ve,pe)};return a.prop&&(F.prop=`${a.prop}_item`),(0,t.h)(l,F,O)}}}}var{componentName:km,create:wm,scope:Cm}=J("link-item"),Nm=wm(Sm(km,Cm,le.ArrowRight,Ce)),Bo=Nm,_l={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:Am,componentName:Bm}=J("rate"),Tm=Am({props:{..._l},emits:["update:modelValue","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)([]),a=(0,t.computed)(()=>({[Bm]:!0})),r=y=>{n("update:modelValue",y),n("change",y)},s=(y,w)=>{if(e.disabled||e.readonly)return;let S=0;w===1&&e.modelValue===w||(S=w,e.allowHalf&&y==2&&(S-=.5)),r(S)},i=(y,w,S)=>{let b=0;for(let f=w.value.length-1;f>=0;f--){const k=w.value[f];if(y>k.offsetLeft){S?b=f+(y>k.offsetLeft+k.clientWidth/2?1:.5):b=f+1;break}}return b},u=et(),m={onTouchStart(y){!e.touchable||e.readonly||u.start(y)},onTouchMove(y){e.touchable&&(u.move(y),u.isHorizontal()&&l.value&&(y.preventDefault(),r(i(u.moveX.value,l,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),c=(0,t.computed)(()=>e.customIcon??le.StarFillN);return{classes:a,...m,onClick:s,toPxString:de,renderIcon:(y,w)=>(0,t.h)(y,w),rateRefs:l,refRandomId:p,slots:o,customIcon:c}}}),Vm=["id"],xm={class:"fox-rate-item__icon--full"},$m={key:0,class:"fox-rate-item__icon--half"},Em={key:1,class:"fox-rate-item__icon--half"};function Dm(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),s=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:s,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+s,style:(0,t.normalizeStyle)(s<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("view",xm,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,t.normalizeClass)(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||s>e.modelValue}]),onClick:i=>e.onClick(1,s)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>s?((0,t.openBlock)(),(0,t.createElementBlock)("view",$m,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<s?((0,t.openBlock)(),(0,t.createElementBlock)("view",Em,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):(0,t.createCommentVNode)("",!0)],12,Vm))),128))],34)}var rl=oe(Tm,[["render",Dm]]);function Im(e,n,o,l){return{props:{...pe,...ve,..._l},emits:["change","update:modelValue","setValue"],setup(a,r){const s=xe((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},a.prop??r.attrs.name),m=e,p=Pe(a,"modelValue",null,u),c=h=>{p.value=h,u("update:modelValue",h,{}),u("change",h,{})};return()=>{const h={...he(a,_l),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":c},y=[],w=(0,t.h)(l,h);y.push(w);const S={default:()=>y};if(r.slots.default){const f=r.slots.default();S.label=()=>f}const b=he(a,ve,pe);return a.prop&&(b.prop=`${a.prop}_item`),b["content-class"]=m,(0,t.h)(o,b,S)}}}}var{componentName:qm,create:Pm,scope:Mm}=J("rate-item"),zm=Pm(Im(qm,Mm,Ce,rl)),To=zm,Lm=/scroll|auto|overlay/i,Vi=window;function Om(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function jl(e,n=Vi){let o=e;for(;o&&o!==n&&Om(o);){const{overflowY:l}=window.getComputedStyle(o);if(Lm.test(l))return o;o=o.parentNode}return n}function xi(e,n=Vi){const o=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(o.value=jl(e.value,n))}),o}var $i=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Rm={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function Fm(e,n,o){return{props:{...Rm},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:s}=(0,me.useFoxI18n)(n),i=s(l,["pullText","loadText","noMoreText"]),u=(0,t.ref)(),m=xi(u),p=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=(0,t.computed)(()=>({[e]:!0})),h=k=>k?k.offsetTop+h(k.offsetParent):0,y=()=>{let k=0,d=0,C="down";if(m.value==window){const N=$i();u.value&&(k=h(u.value)+u.value.offsetHeight-N-window.innerHeight),d=N}else{const{scrollHeight:N,clientHeight:v,scrollTop:g}=m.value;k=N-v-g,d=g}return p.beforeScrollTop>d?C="up":C="down",p.beforeScrollTop=d,a("scroll-change",d),k<=l.threshold&&C=="down"},w=()=>{We(()=>{if(!y()||!l.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,a("update:modelValue",!0),(0,t.nextTick)(()=>a("load-more"))})},S=()=>{m.value&&m.value.addEventListener("scroll",w,l.useCapture)},b=()=>{m.value&&m.value.removeEventListener("scroll",w,l.useCapture)};(0,t.onMounted)(()=>{S(),l.immediate&&w()}),(0,t.onUnmounted)(()=>{b()});const f=(0,t.ref)(!1);return(0,t.onActivated)(()=>{f.value&&(f.value=!1,S())}),(0,t.onDeactivated)(()=>{f.value=!0,b()}),(0,t.watch)(()=>l.modelValue,k=>{k||(p.isInfiniting=!1)}),()=>{const k=(0,t.h)("view",{class:"fox-infinite__container"},[r?.default?.()]),d=[];if(p.isInfiniting){let N=r?.loading?.()??null;if(!N){let g=r?.loadingIcon?.()??null;g||(g=(0,t.h)(o,{class:["fox-infinite__bottom-box__img"]}));const A=(0,t.h)("view",{class:"fox-infinite__bottom-box__text"},[i.loadText.value]);N=[g,A]}const v=(0,t.h)("view",{class:"fox-infinite__bottom-box"},N);d.push(v)}else if(!l.hasMore){let N=r?.finished?.()??null;N||(N=(0,t.h)("view",{class:"fox-infinite__bottom-tips"},[i.noMoreText.value]),d.push(N))}const C=(0,t.h)("view",{class:"fox-infinite__bottom"},d);return(0,t.h)("view",{class:c.value,ref:u},[k,C])}}}}var{componentName:Km,create:Um,scope:Hm}=J("infinite-loading"),_m=Um(Fm(Km,Hm,le.Loading)),il=_m,{componentName:jm,create:Wm}=J("button"),Ym=Wm({components:{Loading:le.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:o}){const{type:l,size:a,shape:r,disabled:s,loading:i,color:u,plain:m,block:p}=(0,t.toRefs)(e);return{handleClick:h=>{!i.value&&!s.value&&n("click",h)},classes:(0,t.computed)(()=>{const h=jm;return{[h]:!0,[`${h}--${l.value}`]:l.value,[`${h}--${a.value}`]:a.value,[`${h}--${r.value}`]:r.value,[`${h}--plain`]:m.value,[`${h}--block`]:p.value,[`${h}--disabled`]:s.value,[`${h}--loading`]:i.value}}),getStyle:(0,t.computed)(()=>{const h={};return u?.value&&(m.value?(h.color=u.value,h.background="#fff",u.value?.includes("gradient")||(h.borderColor=u.value)):(h.color="#fff",h.background=u.value)),h})}}}),Xm={class:"fox-button__wrap"};function Qm(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Loading");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[(0,t.createElementVNode)("view",Xm,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,class:"fox-icon-loading"})):(0,t.createCommentVNode)("",!0),e.$slots.icon&&!e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:1}):(0,t.createCommentVNode)("",!0),e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)({"fox-button__text":e.$slots.icon||e.loading})},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)])],6)}var st=oe(Ym,[["render",Qm]]),Gm={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"}},Zm=(e,n,o)=>({props:{...Gm},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:a}){const{emitEvent:r}=Vt(),{toLocaleRefs:s}=(0,me.useFoxI18n)(n),i=s(l,["placeholder"]),u=(0,t.reactive)({active:!1}),m=(0,t.computed)(()=>({background:l.background})),p=(0,t.computed)(()=>({background:l.inputBackground})),c=B=>{let V=B.target.value;l.maxLength&&V.length>Number(l.maxLength)&&(V=V.slice(0,Number(l.maxLength))),r("update:modelValue",V,B),r("change",V,B)},h=(0,t.ref)({}),y=B=>{let V=B.target.value;u.active=!0,h.value=l.focusStyle,r("focus",V,B)},w=B=>{setTimeout(()=>{u.active=!1},0);let V=B.target.value;l.maxLength&&V.length>Number(l.maxLength)&&(V=V.slice(0,Number(l.maxLength))),h.value={},r("blur",V,B)},S=B=>{r("update:modelValue","",B),r("change","",B),r("clear","")},b=(0,t.computed)(()=>String(l.modelValue).length>0),f=(0,t.computed)(()=>{const B={};return b.value||(B.display="none"),B}),k=B=>{l.autoblur&&g.value?.blur(),(typeof B.cancelable!="boolean"||B.cancelable)&&B.preventDefault(),r("search",l.modelValue)},d=B=>{r("keyup-input",B)},C=B=>{r("click-input",B)},N=B=>{r("click-left-icon",l.modelValue,B)},v=(0,t.computed)(()=>({textAlign:l.inputAlign})),g=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&g.value.focus()});const A=()=>{const B=[];if(a.leftin){const G=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:N},[a.leftin()]);B.push(G)}const V=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:g,style:v.value,type:l.inputType,maxlengt:l.maxLength,placeholder:i.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:C,onInput:c,onFocus:y,onBlur:w,onkeyup:d}),T=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:k},[V]);B.push(T);const _=[];if(l.clearable){const G=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:S},[(0,t.h)(a?.clear?.()??l.clearIcon??o)]);_.push(G)}if(a.rightin){const G=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[a.rightin()]);_.push(G)}if(_.length>0){const G=(0,t.h)("view",{class:`${e}__input-inner-right`},_);B.push(G)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...p.value,...h.value}},B)};return()=>{const B=[];if(l.label){const T=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);B.push(T)}if(a.leftout){const T=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[a.leftout()]);B.push(T)}const V=A();if(B.push(V),a.rightout){const T=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[a.rightout()]);B.push(T)}return(0,t.h)("view",{class:`${e}`,style:m.value},B)}}}),{componentName:Jm,create:ep,scope:tp}=J("searchbar"),np=ep(Zm(Jm,tp,le.CircleClose)),sl=np,mn={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,String,Object],default(){return[]}},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},textPosition:{type:[String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},noMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},searchDelayTriggerClear:{type:Number,default:250},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function lp(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(pn(e,r)===o)return a}else if(l==="item"){if(De(o,r))return a}else if(Ei(e,r)===o)return a}return-1}function pn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ar(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Ei(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function op(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function ap(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var rp=class{proxy;constructor(e){this.proxy=e}async load(e,n,o,l,a,r,s){if(Array.isArray(n)){let u=n;typeof s=="function"&&(u=u.filter(s));let m=(o-1)*l,p=m+l;p>u.length&&(p=u.length);const c=u.slice(m,p);return{totalSize:u.length,page:c}}if(typeof n=="function")return await Reflect.apply(n,null,[o,l,a,r]);const i=Je(this.proxy,e);return i===null?(console.error(`${e} component not found api function`),{totalSize:0,page:[]}):(Ee(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await Reflect.apply(i,null,[n,o,l,a]))}};function ip(){return new rp((0,t.getCurrentInstance)().proxy)}function sp(e,n,o,l,a,r,s,i,u,m,p){return{props:{...mn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,{slots:h}){const{emitEvent:y}=Vt(),{toLocaleRefs:w}=(0,me.useFoxI18n)(n),S=w(c,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),b=ip(),f=(0,t.ref)([]),k=(0,t.ref)(0),d=(0,t.ref)(""),C=(0,t.shallowRef)(null),N=(0,t.computed)(()=>{const q={};return c.params&&Object.assign(q,c.params),ue(d.value)||(q[`${c.searchKey}`]=d.value),C.value&&Object.assign(q,C.value),q});let v=!0;const g=async(q,H,I)=>{try{if(B.value===!1)return;let E=null;ue(d.value)||(E=Q=>{const ne=pn(c,Q);if(typeof ne=="string"&&ne.includes(d.value))return!0;const ae=Ar(c,Q);return!!(typeof ae=="string"&&ae.includes(d.value))});const j=await b.load("actionsheet",q,H,I,N.value,v,E??void 0);v=!1,Array.isArray(j)?(f.value=j,k.value=1,B.value=!1):!Array.isArray(j.page)||j.page.length===0?(console.warn("[FoxUI] can not load more data"),B.value=!1):(Reflect.apply([].push,f.value,j.page),k.value=Math.ceil(f.value.length/c.pageSize),(j.totalSize&&f.value.length>=j.totalSize||I<j.page.length)&&(B.value=!1)),A.value=!1}catch(E){console.error("[FoxUI] ActionSheet load more data fail",E),B.value=!0,k.value=0,f.value=[]}setTimeout(()=>{y("loaded-data")},250)},A=(0,t.ref)(!1),B=(0,t.ref)(!0),V=async()=>{if(!c.source){A.value=!1;return}await g(c.source,k.value+1,c.pageSize)};let T=null;(0,t.watch)(d,(q,H)=>{T&&(clearTimeout(T),T=null),ue(q)&&!ue(H)&&(T=setTimeout(()=>{G()},c.searchDelayTriggerClear))});const _=()=>{B.value=!0,k.value=0,f.value=[],c.source&&V()},G=()=>{_()};(0,t.watch)([()=>c.source,()=>c.pageSize,()=>c.params],async([q,H,I])=>{c.source&&_()},{immediate:!0});const x=(0,t.computed)(()=>!c.multiple&&c.isAutoBackFill),$=(0,t.ref)([]);let z=null;const P=(0,t.ref)(c.visible);(0,t.watch)(()=>c.visible,q=>{P.value!==q&&(P.value=q),q?z=[...$.value]:z=null});const O=(q,H)=>{const I=[];return Array.isArray(q)||(q=[q]),q.forEach(E=>{let j=lp(c,H,E,c.valueType);j!==-1&&I.push(j)}),De(I,$.value)?!1:($.value=I,!0)};(0,t.watch)([()=>c.modelValue,()=>f.value],([q,H],[I,E])=>{O(q,H)&&D(F())},{deep:!0});const F=()=>{const q=[],H=[],I=[];for(let ne of $.value){const ae=f.value[ne];H.push(ae);const ie=pn(c,ae);if(I.push(ie),c.valueType==="item")q.push(ae);else if(c.valueType==="text")q.push(ie);else{const Se=Ei(c,ae);q.push(Se)}}let E=null,j=null,Q=null;return c.multiple?(E=q,j=I,Q=H):(E=q[0]??null,j=I[0]??null,Q=H[0]??null),{value:E,text:j,item:Q}},D=q=>{y("update:modelValue",q.value),y("update:text",q.text),y("change",q.value,q.item,q.text)},X=()=>{z&&($.value=z)},te=q=>{const H=$.value.indexOf(q);c.multiple?H===-1?$.value.push(q):$.value.splice(H,1):H===-1?$.value=[q]:$.value=[],(x.value||!c.poppable&&!c.showFooter)&&M()},L=q=>{P.value=q,y("update:visible",q)},K=()=>{const q=()=>{X(),L(!1)},H=c.beforeMethod??c.beforeClose;if(typeof H=="function"){const I=H("close");bt(I)?I.then(E=>{E!==!1&&q()}).catch(()=>{q()}):I!==!1&&q()}else q()},M=()=>{const q=F(),H=()=>{D(q),L(!1)},I=c.beforeMethod??c.beforeClose;if(typeof I=="function"){const E=I("confirm",q.value,q.item,q.text);bt(E)?E.then(j=>{j!==!1&&H()}).catch(()=>{H()}):E!==!1&&H()}else H()},Y=()=>{let q=S.title.value??"";return h.title&&(q=h.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[q]),(0,t.h)(u,{class:["fox-actionsheet__header-icon"],onClick:K})])},R=()=>{let q=null;return h.search?q=h.search():q=(0,t.h)(r,{onSearch:_,placeholder:S.seachPlaceholder.value,disabled:c.disabled,modelValue:d.value,"onUpdate:modelValue":H=>{d.value=H}},{leftin:()=>(0,t.h)(m)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[q])},U=(q,H,I,E,j)=>{if(h.optionLabel)return h.optionLabel({text:q,checked:H,disabled:I,subText:E,item:j});const Q=[],ne=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[q]);if(Q.push(ne),E){const ae=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[E]);Q.push(ae)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},Q)},Z=(q,H,I,E)=>h.optionIcon?h.optionIcon({checked:q,disabled:H,iconSize:I,item:E}):q?h.checkedIcon?h.checkedIcon({disabled:H,item:E}):(0,t.h)(c.checkedIcon??i,{width:I,height:I,class:["fox-actionsheet__list-item-icon"]}):h.icon?h.icon({disabled:H,item:E}):(0,t.h)(c.icon??s,{width:I,height:I,class:["fox-actionsheet__list-item-icon"]}),W=()=>{const q=[];for(let H=0;H<f.value.length;H++){const I=f.value[H],E=pn(c,I),j=Ar(c,I),Q=["fox-actionsheet__list-item"],ne={};let ae=op(c,I),ie=c.iconSize?se(c.iconSize):null;const Se=ap(c,I,H);Se&&(ae=ae||Se.disabled,Se.class&&Q.push(Se.class),Se.style&&Object.assign(ne,Se.style)),ae=!!(c.disabled||ae);const ut=$.value.includes(H);ae&&Q.push("is-disabled"),ut&&Q.push("is-checked");const tt={class:Q,style:ne,key:`${H}`,onClick:()=>{ae||te(H)}};let je=[];if(h.option)je.push(h.option({item:I,checked:ut,disabled:ae}));else{const Oi=U(E,ut,ae,j,I);je.push(Oi);const Ri=Z(ut,ae,ie,I);je.push(Ri),c.textPosition==="right"&&je.reverse()}const fl=(0,t.h)("view",tt,je);q.push(fl)}return q},ee=()=>{let q=[];if(h.buttons)q=h.buttons();else{const H=(0,t.h)(a,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:M,disabled:c.disabled},{default:()=>S.confirmText.value});q.push(H)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[q])};return Be({search:async(q=null,H=!0)=>{C.value=q&&(0,t.toRaw)(q),(0,t.triggerRef)(C),H&&(B.value=!0,k.value=0,f.value=[]),(0,t.nextTick)(()=>{V()})},clear:()=>{B.value=!0,k.value=0,f.value=[]},confirm:()=>{M()},cancel:()=>{K()}}),()=>{const q=[];if(c.showHeader){const ae=Y();q.push(ae)}if(c.showSearchbar){const ae=R();q.push(ae)}let H=null;if(h.content)H=h.content();else{const ae=W();H=(0,t.h)(l,{hasMore:B.value,loadText:S.loadText.value,noMoreText:S.noMoreText.value,modelValue:A.value,"onUpdate:modelValue":ie=>{A.value=ie},onLoadMore:V},{default:()=>ae})}const I={};c.optionsHeight&&(I.height=c.optionsHeight);const E={"fox-actionsheet__list":!0};c.poppable||(E["fox-actionsheet__list--inner"]=!0);const j=(0,t.h)("view",{class:E,style:I},[H]);if(q.push(j),c.showFooter&&!x.value){const ae=ee();q.push(ae)}const Q=(0,t.h)("view",{class:"fox-actionsheet"},q);if(!c.poppable)return Q;const ne=["fox-actionsheet__popup"];return c.popClass&&ne.push(c.popClass),(0,t.h)(o,{popClass:ne.join(" "),visible:P.value,closeable:!1,"onUpdate:visible":L,position:c.position,round:"round",onClickOverlay:K,closeOnClickOverlay:c.closeOnClickOverlay},{default:()=>Q})}}}}var{componentName:up,create:cp,scope:dp}=J("actionsheet-pane"),fp=cp(sp(up,dp,ge,il,st,sl,le.CheckNormal,le.Checked,le.Close,le.Search2,!1)),ul=fp,Br={type:{type:String,default:"text"},placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function mp(e,n,o,l,a,r,s){return{props:{...pe,...ve,...Br,...mn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,u){const m=xe((0,t.computed)(()=>i.disabled)),p=Ve((0,t.computed)(()=>i.readonly)),{emitEvent:c}=Ae({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??u.attrs.name),{toLocaleRefs:h}=(0,me.useFoxI18n)(n),y=h(i,["placeholder"]),w=(0,t.ref)(!1),S=Pe(i,"modelValue",null,c),b=(0,t.ref)(""),f=(0,t.computed)(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),k="fox-input-item",d=(0,t.computed)(()=>({[k]:!0,"is-disabled":m.value,"is-readonly":p.value})),C=Te((0,t.computed)(()=>i.textAlign),"textAlign"),N=(0,t.computed)(()=>{const M={};return C.value&&(M["text-align"]=C.value),M}),v=(0,t.ref)(!1),g=()=>{v.value=!0},A=M=>{v.value=M},B=M=>{S.value=M,c("update:modelValue",M)},V=(M,Y)=>{c("change",M,Y)},T=M=>{let Y=M.target.value;w.value=!0,c("focus",Y,M)},_=M=>{setTimeout(()=>{w.value=!1},0);let Y=M.target.value;i.maxLength&&Y.length>Number(i.maxLength)&&(Y=Y.slice(0,Number(i.maxLength))),c("blur",Y,M)},G=M=>{b.value=M,c("update:text",M)},x=(0,t.computed)(()=>({[`${k}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),$=(0,t.computed)(()=>be(i.unit)>0),z=(0,t.computed)(()=>be(i.unit)>0&&!w.value),P=(0,t.computed)(()=>({hidden:!z.value})),O=M=>{S.value="",c("update:modelValue","",M),c("change","",M),c("clear","")},F=(0,t.computed)(()=>i.clearable&&!m.value&&!p.value),D=(0,t.computed)(()=>be(S.value)>0&&w.value),X=M=>{D.value?O(M):g()},te=(0,t.computed)(()=>D.value&&F.value?l:a),L=(0,t.computed)(()=>({action:!0})),K=(0,t.ref)(null);return Be({search:M=>{K.value&&K.value.search(M)},clear:()=>{K.value&&K.value.clear},confirm:M=>{K.value&&K.value.confirm()},cancel:()=>{K.value&&K.value.cancel()}}),()=>{const M={class:d.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:g,onFocus:T,onBlur:_};s&&(M.disabled=!0);const Y=[],R=(0,t.h)("input",M);Y.push(R);const U=[],Z=(0,t.h)(te.value,{class:["action-icon"]}),W=(0,t.h)("view",{class:L.value,onClick:X},{default:()=>[Z]});if(U.push(W),$.value){const j=(0,t.h)("view",{class:P.value},[i.unit]);U.push(j)}const ee=(0,t.h)("view",{class:x.value},{default:()=>U});Y.push(ee);const q={default:()=>Y};q.label=u.slots.default,q.prepend=u.slots.prepend,q.append=u.slots.append,q.fixedPreTip=u.slots.fixedPreTip,q.fixedTip=u.slots.fixedTip;const H=he(i,mn);H.ref=K,H.class=i.actionsheetProps,H.disabled=m.value||p.value,H.visible=v.value,H["onUpdate:visible"]=A,H.modelValue=S.value,H["onUpdate:modelValue"]=B,H.text=b.value,H["onUpdate:text"]=G,H.onChange=V,H.poppable=!0,H["text-position"]=i.textPosition;const I=(0,t.h)(r,H,{title:u.slots.title,search:u.slots.search,option:u.slots.option,optionLabel:u.slots.optionLabel,optionIcon:u.slots.optionIcon,buttons:u.slots.buttons});q.hide=()=>[I];const E={...Ge(i,Br,mn)};return i.prop&&(E.prop=`${i.prop}_item`),(0,t.h)(o,E,q)}}}}var{componentName:pp,create:hp,scope:vp}=J("actionsheet-item"),gp=hp(mp(pp,vp,Ce,le.CircleClose,le.ArrowRight,ul)),Vo=gp,Wl={modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{componentName:yp,create:bp}=J("input-number"),Sp=bp({components:{Minus:le.Minus,Plus:le.Plus},props:{...Wl},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const y=yp;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),l=y=>Number(y).toFixed(Number(e.decimalPlaces)),a=y=>{const w=y.target;n("update:modelValue",w.valueAsNumber,y)},r=(y,w)=>{let S=l(y);n("update:modelValue",S,w),n("change",S,w)},s=(y=Number(e.modelValue))=>y<Number(e.max)&&!e.disabled,i=(y=Number(e.modelValue))=>y>Number(e.min)&&!e.disabled,u=y=>{n("reduce",y),i()?r(Number(e.modelValue)-Number(e.step),y):n("overlimit",y,"reduce")},m=y=>{n("add",y),s()?r(Number(e.modelValue)+Number(e.step),y):n("overlimit",y,"add")},p=y=>{e.disabled||e.readonly||n("focus",y)},c=y=>{if(e.disabled||e.readonly)return;let w=y.target.valueAsNumber;w<Number(e.min)?w=Number(e.min):w>Number(e.max)&&(w=Number(e.max)),r(w,y),n("blur",y)},h=y=>{let w=Number(y);return w<Number(e.min)?w=Number(e.min):w>Number(e.max)&&(w=Number(e.max)),w};return(0,t.watch)(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const y=h(e.modelValue);y!==Number(e.modelValue)&&r(y,{})}),{classes:o,change:a,blur:c,focus:p,add:m,addAllow:s,reduce:u,reduceAllow:i,toPxString:de}}}),kp=["min","max","disabled","readonly","value"];function wp(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Minus"),i=(0,t.resolveComponent)("Plus");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:n[0]||(n[0]=(...u)=>e.reduce&&e.reduce(...u))},[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[(0,t.createVNode)(s,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2),(0,t.createElementVNode)("input",{type:"number",min:e.min,max:e.max,style:(0,t.normalizeStyle)({width:e.toPxString(e.inputWidth),height:e.toPxString(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[1]||(n[1]=(...u)=>e.change&&e.change(...u)),onBlur:n[2]||(n[2]=(...u)=>e.blur&&e.blur(...u)),onFocus:n[3]||(n[3]=(...u)=>e.focus&&e.focus(...u))},null,44,kp),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[4]=(...u)=>e.add&&e.add(...u))},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[(0,t.createVNode)(i,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var cl=oe(Sp,[["render",wp]]);function Cp(e,n,o,l){return{props:{...pe,...ve,...Wl},emits:["change","update:modelValue","setValue","add","reduce"],setup(a,r){const s=xe((0,t.computed)(()=>a.disabled)),i=Ve((0,t.computed)(()=>a.readonly)),{emitEvent:u}=Ae({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),m=(0,t.computed)(()=>{const w=[`${e}`];return a.textAlign==="left"?w.push("is-left"):a.textAlign==="center"?w.push("is-center"):a.textAlign==="right"&&w.push("is-right"),w.join(" ")}),p=Pe(a,"modelValue",null,u),c=w=>{p.value=w,u("update:modelValue",w,{}),u("change",w,{})},h=w=>{u("add",w)},y=w=>{u("reduce",w)};return()=>{const w={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},S=he(a,Wl),b=(0,t.h)(l,{...r.attrs,...S,disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":c,onAdd:h,onReduce:y},w),f=[];f.push(b);const k={default:()=>f};k.label=r.slots.default,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const d={...he(a,ve,pe)};return a.prop&&(d.prop=`${a.prop}_item`),d["content-class"]=m.value,(0,t.h)(o,d,k)}}}}var{componentName:Np,create:Ap,scope:Bp}=J("input-number-item"),Tp=Ap(Cp(Np,Bp,Ce,cl)),xo=Tp;function Vp(e,n,o,l){return{props:{...Ol,...Rl,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}},emits:["update:modelValue","change"],setup(a,{emit:r,slots:s}){const i=e,u=(0,t.computed)(()=>{const S=[`${i}`];return a.direction==="vertical"?S.push("vertical-tabbar"):S.push("horizontal-tabbar"),S}),m=(0,t.computed)(()=>{const S={};if(a.width){const b=de(a.width);b&&(S.width=b)}if(a.height){const b=de(a.height);b&&(S.height=b)}return S}),p=(0,t.computed)(()=>[`${i}__bar`]),c=(0,t.computed)(()=>[`${i}__container`]),h=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,S=>{h.value!==S&&(h.value=S)});const y=S=>{r("change",S)},w=S=>{h.value!==S&&(h.value=S,r("update:modelValue",S))};return()=>{const{getChildren:S}=uo(s.default),b=S(),f=[];if(Array.isArray(a.data))f.push(...a.data);else for(let A=0;A<b.length;A++){const B=b[A].props??{},V={text:B.label??"",value:B["pane-key"]??B.paneKey??""};f.push(V)}const k={};for(let A in s)A!=="default"&&(k[A]=s[A]);const d=he(a,Ol);Object.assign(d,{data:f,class:p.value,modelValue:h.value,direction:a.direction,onChange:y,"onUpdate:modelValue":w});const C=(0,t.h)(o,d,k),N={default:()=>b},v=he(a,Rl);Object.assign(v,{class:c.value,modelValue:h.value,onChange:y,"onUpdate:modelValue":w});const g=(0,t.h)(l,v,N);return(0,t.h)("view",{class:u.value,style:m.value},[C,g])}}}}var{create:xp,componentName:$p,scope:Ep}=J("tabs-frame"),Dp=xp(Vp($p,Ep,tn,nn)),$o=Dp,Ip={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 qp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Tr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Vr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Pp(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function kl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function xr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function $r(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function wl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var Mp=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[o]);const l=Je(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ee(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await Reflect.apply(l,null,[n,o]))}};function zp(){return new Mp((0,t.getCurrentInstance)().proxy)}function Lp(e,n,o,l){return{props:{...Ip},emits:["update:modelValue","change","loaded-data","click"],setup(a,{slots:r,emit:s}){const i=e,u=zp(),m=(0,t.ref)([]),p=(0,t.computed)(()=>m.value.filter(L=>Pp(a,L)!==!1)),c=(0,t.ref)(-1),h=()=>{const L=a.modelValue,K=p.value.findIndex(M=>Tr(a,M)===L);c.value!==K&&(c.value=K,a.scroll&&X(K,!1))};(0,t.watch)([()=>a.modelValue,p],()=>{h()});const y=L=>c.value===L,w=L=>{if(L<0&&L>=p.value.length)return!1;const K=p.value[L],M=(wl(a,K,L)??{}).status??kl(a,K);return y(L)||M},S=(0,t.computed)(()=>{const L={[i]:!0};return a.mode?L[`is-${a.mode}`]=!0:a.direction&&(L[`is-${a.direction}`]=!0),a.scroll&&(L["is-scroll"]=!0),L}),b=(0,t.computed)(()=>({})),f=(L,K,M,Y,R)=>{const U={[`${i}__step`]:!0};return R&&(U[`${R}`]=!0),U[`${k.value}`]=!0,Y&&(U["is-doit"]=!0),L===c.value?U["is-active"]=!0:K==="done"?U["is-done"]=!0:K==="error"?U["is-error"]=!0:K==="half"?U["is-half"]=!0:M?U["is-disabled"]=!0:U["is-normal"]=!0,U},k=(0,t.computed)(()=>{let L=a.align;if(!L){if(a.mode==="simple")return"start";a.direction==="vertical"?L="start":L="center"}return L}),d=(L,K={})=>{const M={...K};if(k.value==="start"&&L===p.value.length-1)M.flex="0 0 auto";else if(a.step){const Y=typeof a.step=="number"||Vn(a.step)?de(a.step):a.step;a.direction==="vertical"?M.height=Y:M.width=Y}else M.flex="1 1 100%";return M},C=(L,K)=>{let M={};if(K<p.value.length-1){const Y=K+1;w(K)&&w(Y)?a.direction==="vertical"?M.height="100%":M.width="100%":M.opacity="0"}return M},N=L=>p.value.length-1===L,v=(L,K)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&K>c.value||c.value===K)return;const M=c.value,Y=K;c.value=K,a.scroll&&X(K,!1);const R=Tr(a,L);s("update:modelValue",R),s("change",R,{fromIndex:M,currentIndex:Y,item:L,items:p.value,clickNavigatePolicy:a.clickNavigatePolicy})},g=(0,t.ref)(!0),A=async(L,K)=>{try{const M=await u.load("stesbar",L,K);Array.isArray(M)&&(m.value=M),g.value=!1}catch(M){console.error("[FoxUI] Load StepsBar Data Fail",M),m.value=[]}setTimeout(()=>{s("loaded-data")},250)};(0,t.watch)([()=>a.data,()=>a.params],async([L,K])=>{L&&A(L,K)},{immediate:!0});const B=(L,K,M,Y,R,U)=>{const Z=[];let W=null;if(!U)if(r.icon)W=r.icon({item:L,index:K,status:Y});else if(Y==="done"){const ee={};a.iconSize&&(ee.width=a.iconSize,ee.height=a.iconSize),W=(0,t.h)(a.icon??o,ee)}else W=(0,t.h)("span",{},[M??`${K+1}`]);return W&&Z.push(W),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{s("click",{item:L,index:K}),!R&&v(L,K)}},Z)},V=(L,K,M)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:C(L,K)})]),T=()=>{let L=null;if(r.markIcon)L=r.markIcon();else{const K={};a.iconSize&&(K.width=a.markIconSize,K.height=a.markIconSize),L=(0,t.h)(a.markIcon??l,K)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[L])},_=(L,K,M,Y,R,U)=>{const Z=[];if(!N(K)){const ee=V(L,K,Y);Z.push(ee)}const W=B(L,K,M,Y,R,U);return Z.push(W),(0,t.h)("view",{class:"fox-steps-bar__head"},Z)},G=(L,K,M,Y)=>{let R=null;return r.main?R=r.main({item:L,index:K,status:M}):R=qp(a,L),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{s("click",{item:L,index:K}),!Y&&v(L,K)}},[R])},x=(L,K,M)=>{let Y=null;return r.sub?(Y=r.sub({item:L,index:K,status:M}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[Y])):null},$=(L,K)=>{const M=wl(a,L,K)??{},Y=M.status??kl(a,L);let R=Vr(a,L);M.disabled===!0&&(R=!0),a.disabled===!0&&(R=!0);let U=xr(a,L);M.doit===!0&&(U=!0);const Z=M.label??$r(a,L),W=[],ee=B(L,K,Z,Y,R,U);ee&&W.push(ee);const q=G(L,K,Y,R);if(q&&W.push(q),!N(K)){const j=V(L,K,Y);j&&W.push(j)}const H=(0,t.h)("view",{class:"fox-steps-bar__head"},W),I=M.class,E=M.style??{};return(0,t.h)("view",{ref:D(K),class:f(K,Y,R,U,I),style:d(K,E)},[H])},z=(L,K)=>{const M=wl(a,L,K)??{},Y=M.status??kl(a,L);let R=Vr(a,L);M.disabled===!0&&(R=!0),a.disabled===!0&&(R=!0);let U=xr(a,L);M.doit===!0&&(U=!0);const Z=M.label??$r(a,L),W=[],ee=a.layout;for(let I of ee)if(I==="head"){const E=_(L,K,Z,Y,R,U);W.push(E)}else if(I==="main"){const E=G(L,K,Y,R);W.push(E)}else if(I==="sub"){const E=x(L,K,Y);W.push(E)}else if(I==="mark"){const E=T();W.push(E)}const q=M.class,H=M.style??{};return(0,t.h)("view",{ref:D(K),class:f(K,Y,R,U,q),style:d(K,H)},W)},P=(0,t.ref)(),O=(0,t.ref)([]),F=(L,K)=>{O.value[K]=L},D=L=>K=>{F(K,L)},X=(L,K)=>{const M=P.value,Y=O.value;if(!M||!Y||!Y[L])return;const R=Y[L];let U=0;a.direction==="vertical"?U=R.offsetTop-(M.offsetHeight-R.offsetHeight)/2:U=R.offsetLeft-(M.offsetWidth-R.offsetWidth)/2,te(M,U,K?0:.3,a.direction)},te=(L,K,M,Y)=>{let R=0;const U=Y==="horizontal"?L.scrollLeft:L.scrollTop,Z=M===0?1:Math.round(M*1e3/16);function W(){Y==="horizontal"?L.scrollLeft+=(K-U)/Z:L.scrollTop+=(K-U)/Z,++R<Z&&Fe(W)}W()};return()=>{let L=[];if(a.mode==="simple")for(let M=0;M<p.value.length;M++){const Y=p.value[M],R=$(Y,M);L.push(R)}else for(let M=0;M<p.value.length;M++){const Y=p.value[M],R=z(Y,M);L.push(R)}const K={ref:P,class:S.value,style:b.value};return L.length===0&&typeof r.default=="function"&&(L=r.default()),(0,t.h)("view",K,L)}}}}var{componentName:Op,create:Rp,scope:Fp}=J("steps-bar"),Kp=Rp(Lp(Op,Fp,le.Checklist,le.ArrowRight)),Eo=Kp;function Up(e){e.stopPropagation()}var Hp=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,n){this.startMove=e,this.updateMove=n,this.isTouch=Xn()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=Qn(),o=(l,a,r,s)=>{this.updateMove({x:l,y:a})};this.touchstart=l=>{this.moving||(n.start(l),this.startMove({x:n.state.startX,y:n.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(n.move(l),Up(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 _p(e,n){return new Hp(e,n)}var jp={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]}},Wp=(e,n,o,l=!1)=>({props:{...jp},emits:["click"],setup(a,{slots:r,emit:s}){let i=-1,u=-1;const m=(0,t.reactive)({top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:0,height:0}),p=(0,t.computed)(()=>{const N=[`${e}`];return a.customClass&&N.push(a.customClass),N}),c=N=>typeof N=="string"&&!Vn(N)?N:`${N}px`,h=(0,t.computed)(()=>{const N={};return ue(m.top)||(N.top=c(m.top)),ue(m.right)||(N.right=c(m.right)),ue(m.bottom)||(N.bottom=c(m.bottom)),ue(m.left)||(N.left=c(m.left)),ue(a.width)||(N.width=c(a.width)),ue(a.height)||(N.height=c(a.height)),ue(a.color)||(N.color=a.color),ue(a.background)||(N.background=a.background),ue(a.borderRadius)||(N["border-radius"]=a.borderRadius),ue(a.zIndex)||(N["z-index"]=a.zIndex),N}),y=(0,t.computed)(()=>({[`${e}__icon`]:!0})),w=()=>{s("click")},S=(0,t.ref)(null),b=()=>{m.top=null,m.right=null,m.bottom=null,m.left=null},f={x:0,y:0},C=_p(N=>{if(!S.value)return;const v=S.value;b(),m.left=v.offsetLeft,m.top=v.offsetTop,v.style.left=`${m.left}px`,v.style.top=`${m.top}px`,v.style.right=null,v.style.bottom=null,f.x=m.left,f.y=m.top,m.width=v.offsetWidth,m.height=v.offsetHeight,i=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight},N=>{if(!S.value)return;const v=S.value;b();let g=f.x+N.x;g<0&&(g=0),g>i-m.width&&(g=i-m.width);let A=f.y+N.y;A<0&&(A=0),A>u-m.height&&(A=u-m.height),m.left=g,m.top=A,v.style.left=`${g}px`,v.style.top=`${A}px`});return(0,t.onMounted)(()=>{if(a.draggable&&S.value){const N=[S.value];C.open(N)}}),(0,t.onBeforeUnmount)(()=>{a.draggable&&S.value&&C.close()}),()=>{let N=[];const v=typeof r.default=="function"?r.default():[];if(v&&v.length>0)N=v;else{const g=(0,t.h)(o,{class:y.value});N.push(g)}return(0,t.h)("view",{ref:g=>{S.value=g},class:p.value,style:h.value,onClick:w},N)}}}),{componentName:Yp,create:Xp,scope:Qp}=J("floating-button"),Gp=Xp(Wp(Yp,Qp,le.Uploader,!1)),Do=Gp,Zp={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 Jp(e,n,o){return{props:{...Zp},emits:["click","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:s}=(0,me.useFoxI18n)(n),i=s(l,["collapseText","expandText"]),u=(0,t.computed)(()=>{const w={[`${e}`]:!0};return l.disabled?w[`${e}--disabled`]=!0:w[`${e}--${l.type}`]=!0,w}),m=Pe(l,"modelValue"),p=(0,t.computed)(()=>m.value?i.expandText.value??"":i.collapseText.value??""),c=(0,t.computed)(()=>({[`${e}__text`]:!0})),h=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!m.value,"is-collapse":m.value})),y=()=>{a("update:modelValue",!m.value)};return()=>{const w=[];if(p.value){const f=(0,t.h)("span",{class:c.value},[p.value]);w.push(f)}const S={class:h.value},b=(r.icon&&r.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(o);if(b){const f=(0,t.h)("view",S,[b]);w.push(f)}return l.textPosition==="right"&&w.reverse(),(0,t.h)("view",{class:u.value,onClick:y},w)}}}}var{componentName:eh,create:th,scope:nh}=J("more-button"),lh=th(Jp(eh,nh,le.RectUp)),Io=lh,oh={visible:{type:[Boolean],default:!0},width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},ah=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function rh(e,n,o){return{props:{...oh},emits:["update:visible"],setup(l,{attrs:a,slots:r,emit:s}){const{toLocaleRefs:i}=(0,me.useFoxI18n)(n),u=i(l,["confirmText","cancelText"]),m=e,p=(0,t.ref)(l.visible),c=N=>{p.value=N,s("update:visible",N)};(0,t.watch)(()=>l.visible,N=>{p.value!==N&&(p.value=N)});const h=N=>{if(typeof l.unmount=="function")try{l.unmount()}catch(v){console.error(v)}if(typeof l.callback=="function")try{l.callback(N)}catch(v){console.error(v)}},y=()=>{h("confirm")},w=()=>{h("cancel")},S=()=>{l.closeOnClickOverlay!==!1&&h("close")},b=(N,v)=>ah(N)?(v.src=N,(0,t.h)("img",v)):typeof N=="string"?(Array.isArray(v.class)?v.class.push(N):v.class&&typeof v.class=="object"?v[`${N}`]=!0:typeof v.class=="string"?v.class=`${v.class}, ${N}`:v.class=N,(0,t.h)(l.tag,v)):(0,t.h)(N,v),f=()=>{const N=[];if(l.icon){const v={class:[`${m}__header-icon`]},g=b(l.icon,v);N.push(g)}if(l.title){const v=(0,t.h)("view",{class:`${m}__header-title`},[l.title]);N.push(v)}if(l.showClose&&l.closeIcon){const v={class:[`${m}__header-close-icon`],onClick:S},g=b(l.closeIcon,v);N.push(g)}return(0,t.h)("view",{class:[`${m}__header`]},N)},k=(N,v)=>{const g=[];if(v){const A=(0,t.h)("view",{class:`${m}__group-title`},[v]);g.push(A)}if(N){const A=[];Array.isArray(N)||(N=[N]);for(let B of N){const V=(0,t.h)("view",{class:`${m}__group-row`,innerHTML:B});A.push(V)}if(A.length>0){const B=(0,t.h)("view",{class:`${m}__group-rows`},A);g.push(B)}}return g.length===0?null:(0,t.h)("view",{class:`${m}__group`},g)},d=()=>{const N=[];if(typeof l.message=="string")N.push(l.message);else if(Array.isArray(l.message))for(let v of l.message)if(typeof v=="string"){const g=k(v);N.push(g)}else{const g=k(v.content,v.title);N.push(g)}else if(typeof l.message=="function"){const v=l.message();N.push(v)}else{const v=l.message;N.push(v)}return(0,t.h)("view",{class:`${m}__body`},N)},C=()=>{const N=[];if(l.showCancelButton){const v={class:[`${m}__footer-button`],style:{},onClick:w};l.cancelButtonClass&&v.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(v.style,l.cancleButtonStyle);const g=(0,t.h)("button",v,[l.cancelButtonText??u.cancelText.value]);N.push(g)}if(l.showConfirmButton){const v={class:[`${m}__footer-button`],style:{},onClick:y};l.confirmButtonClass&&v.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(v.style,l.confirmButtonStyle);const g=(0,t.h)("button",v,[l.confirmButtonText??u.confirmText.value]);N.push(g)}return N.length===0?null:(0,t.h)("view",{class:`${m}__footer`},N)};return()=>{const N=[],v=f();v&&N.push(v);const g=d();g&&N.push(g);const A=C();A&&N.push(A);const B=(0,t.h)("view",{class:{[`${m}`]:!0,[`${m}--${l.type||"info"}`]:!0}},N),V=[`${m}__popup`];l.popClass&&V.push(l.popClass);const T={};return l.width&&(T.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(T.height=typeof l.height=="number"?`${l.height}px`:l.height),(0,t.h)(o,{popClass:V.join(" "),style:T,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":c,position:l.position,round:"round",onClickOverlay:S,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>B})}}}}var{componentName:ih,create:sh,scope:uh}=J("messagebox"),ch=sh(rh(ih,uh,ge)),dh=ch,fh="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",mh="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",ph="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",hh="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",vh=new Hn,gh={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},yh=e=>{let n=document.body,o=e.teleport;o!="body"&&(typeof o=="string"?n=document.querySelector(o):o&&(n=e.teleport));const l=document.createElement("view"),a=`messagebox-${vh.get()}`;l.id=a,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const s=document.querySelector(`#${a}`);s&&s.parentNode?.removeChild(s)};const r=(0,t.createVNode)(dh,e);n.appendChild(l),(0,t.render)(r,l)},ot={show:(e,n,o,l)=>{const a={...gh};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(a,n):(n&&(a.message=n),o&&typeof o=="object"?Object.assign(a,o):(typeof o=="string"&&(a.title=o),l&&typeof l=="object"?Object.assign(a,l):typeof l=="string"&&(a.type=l)));const r=a.type??"info";return a.icon||(r==="success"?a.icon=ph:r==="warning"?a.icon=hh:r==="error"?a.icon=fh:a.icon=mh),e==="alert"?(a.showCancelButton=!1,a.showConfirmButton=!0):e==="confirm"&&(a.showCancelButton=!0,a.showConfirmButton=!0),a.showClose&&!a.closeIcon&&(a.closeIcon=le.Close),new Promise((s,i)=>{const u=a.callback;a.callback=m=>{if(typeof u=="function")try{u(m)}catch(p){console.error(p)}s({action:m})},yh(a)})},alert:(e,n,o)=>ot.show("alert",e,n,o),confirm:(e,n,o)=>ot.show("confirm",e,n,o),install(e){e.config.globalProperties.$alert=ot.alert,e.config.globalProperties.$confirm=ot.confirm}},bh=(e,n,o)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let a=!0,r=!0;for(let s in n)s==="bubbles"?a=!!n[s]:s==="cancelable"?r=!!n[s]:l[s]=n[s];l.initEvent(e,a,r),(o??document).dispatchEvent(l)},Sh=new Hn,kh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),wh=e=>`${e}-${Sh.get()}`,Ch=Symbol.for("InnerPageScopeKey"),Nh=Symbol.for("PageWrapperKey"),Ah="FoxLeave",Bh="FoxLeaveEnd",Th={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 Vh(e,n,o,l){return{props:{...Xe,...Th},emits:["update:visible"],setup(a,{attrs:r,slots:s,emit:i}){(0,t.provide)(Ch,!0);const u={};(0,t.provide)(Nh,u);const m=v=>(typeof u.beforeClose=="function"&&u.beforeClose(),!1),p=()=>{m("close")},c=e,h=v=>{y.value=v,i("update:visible",v)},y=(0,t.ref)(!1),w=(v,g)=>kh(v)?(g.src=v,(0,t.h)("img",g)):typeof v=="string"?(Array.isArray(g.class)?g.class.push(v):g.class&&typeof g.class=="object"?g[`${v}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${v}`:g.class=v,(0,t.h)(a.tag,g)):(0,t.h)(v,g),S=()=>{if(!a.showHeader)return null;const v=[];if(s.header){const g=s.header();v.push(g)}else if(a.title){const g=(0,t.h)("view",{class:`${c}__header-title`},[a.title]);v.push(g)}return v.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},v)},b=()=>{if(!a.showClose)return null;const v={class:[`${c}__close-icon`],onClick:p};return w(a.closeIcon??l,v)};let f=null;const k=v=>{bh(Bh,{},f)},d=wh(e),C=()=>{h(!0)},N=()=>{if(!f)return;const v=f.querySelector(".fox-overlay");v&&(v.classList.add("overlay-fade-leave-active"),v.classList.add("overlay-fade-leave-to"));const g=f.querySelector(".fox-popup");g&&(g.classList.add(`fox-popup-slide-${a.position}-leave-active`),g.classList.add(`fox-popup-slide-${a.position}-leave-to`),g.addEventListener("animationend",k,{once:!0}),g.addEventListener("transitionend",k,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{f=document.querySelector(`.${d}`),f?.addEventListener(Ah,N,{once:!0}),C()}),()=>{const v=[],g=S();g&&v.push(g);const A=b();A&&v.push(A);const B=s.default?s.default():[];Reflect.apply([].push,v,B);const V={[`${c}`]:!0};a.mode&&(V[`${c}--${a.mode}`]=!0);const T=(0,t.h)("view",{class:V},v),_=[`${c}__popup`,d];a.popClass&&_.push(a.popClass),a.position&&_.push(`${c}__popup--${a.position}`);const G={};a.width&&(G.width=typeof a.width=="number"?`${a.width}px`:a.width),a.height&&(G.height=typeof a.height=="number"?`${a.height}px`:a.height);const x=(0,t.h)(o,{...he(a,Xe),popClass:_.join(" "),style:G,visible:y.value,teleportDisable:!0,closeable:!1,position:a.position,closeOnClickOverlay:a.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":h},{default:()=>T});return(0,t.h)("div",{class:[`${c}__root`,d]},[x])}}}}var{componentName:xh,create:$h,scope:Eh}=J("popup-wrapper"),Dh=$h(Vh(xh,Eh,ge,le.Close)),qo=Dh,Ih={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function qh(e,n,o,l){return{props:{...Ih},emits:["update:visible"],setup(a,{emit:r,slots:s}){const i=u=>{r("update:visible",u)};return()=>{const u=[`${e}__popup`];a.popClass&&u.push(a.popClass);const m=(0,t.h)(o,{popClass:u,style:a.popStyle??{},position:"top",zIndex:a.zIndex,closeOnClickOverlay:a.closeOnClickOverlay,teleportDisable:!0,visible:a.visible,"onUpdate:visible":i},s);return(0,t.h)("view",{class:`${e}`},[m])}}}}var{componentName:Ph,create:Mh,scope:zh}=J("dropdown"),Lh=Mh(qh(Ph,zh,ge,!1)),Po=Lh;function Oh(e,n,o,l,a){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[a]){let u=n;for(let m=0;u&&m<r.length;m++){let p=r[m],c=u.find(h=>h[l]===p);if(!c)break;s.push(c[o])}return s}if(Array.isArray(i))for(let u=0;u<n.length&&u<r.length;u++){let m=n[u],p=r[u];const c=m.find(h=>h[l]===p);if(!c)break;s.push(c[o])}else{let u=n;for(let m=0;u&&m<r.length;m++){let p=r[m],c=u.find(h=>h[l]===p);if(!c)break;s.push(c[o]),u=c[a]}}return s}var Rh=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const l=Je(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ee(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function Fh(){return new Rh((0,t.getCurrentInstance)().proxy)}var Kh={tag:{type:[String,Object],required:!1,default:"span"},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1}};function Uh(e,n,o=!1){return{props:{...Kh},setup(l,{attrs:a,slots:r}){const s=Fh(),i=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([m,p])=>{i.value=await s.load(l.sourceType,m,p)},{immediate:!0});const u=(0,t.computed)(()=>{if(!Array.isArray(i.value)||i.value.length===0)return l.emptyText;let m=Oh(l.modelValue,i.value,l.textKey,l.valueKey,l.childrenKey);return m.length==0?l.emptyText??"":m.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${m[0]}`:m[0]:m.join(l.separator)});return()=>{const m={...a};if(r.default)return r.default({text:u.value,value:l.modelValue});const p=l.tag??"span";return typeof p=="object"?(0,t.h)(p,m,{default:()=>u.value}):(0,t.h)(p,m,[u.value])}}}}var{componentName:Hh,create:_h,scope:jh}=J("mapping"),Wh=_h(Uh(Hh,jh,!1)),Mo=Wh;function Yh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(o,{slots:l}){return ni(o.name,()=>o.config),Me(o.innerPageScope)||ai(o.innerPageScope),Me(o.abstractPageScope)||ri(o.abstractPageScope),()=>typeof l.default=="function"?l.default():null}}}var{componentName:Xh,create:Qh,scope:Gh}=J("domain-provider"),Zh=Qh(Yh(Xh,Gh)),zo=Zh,Jh={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:Jh,emits:["change"],setup(o,{slots:l,emit:a}){if(Qe&&window.IntersectionObserver){const r=new WeakMap;let s=new Map;const i=(h,y)=>{if(p===null){s.set(h,{visible:null,callback:y});return}r.has(h)&&p.unobserve(h),r.set(h,{visible:null,callback:y}),p.observe(h)},u=h=>{if(p===null){s.delete(h);return}r.has(h)&&(r.delete(h),p.unobserve(h))};let m=o.initialVisibleObserverSize;nu({acquire:()=>{if(o.loadPolicy==="always")return!0;const h=m>0;return m--,h},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let p=null;const c=(h,y,w)=>{p=new IntersectionObserver(S=>{if(a("change",S),o.loadPolicy!=="always")for(let b of S){let f=!1;b.intersectionRatio>0&&(f=!0);const k=r.get(b.target);if(k)try{if(o.loadPolicy==="lazy"&&!f&&k.visible!==null)return;k.visible=f,k.callback(f)}catch(d){console.error(d)}}},{root:h,rootMargin:y,threshold:w}),s.forEach((S,b)=>{r.set(b,S),p?.observe(b)}),s.clear()};(0,t.watch)([()=>o.root,()=>o.disabled],([h,y])=>{if(y||!h||p)return;let w=null;typeof h=="string"?w=document.querySelector(h):w=h,w&&c(w,o.rootMargin,o.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:tv,create:nv,scope:lv}=J("rolling-provider"),ov=nv(ev(tv,lv)),Lo=ov,{componentName:av,create:rv}=J("cell"),iv=rv({components:{Right:le.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const r=av;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:de(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:o,baseStyle:l}}}),sv={key:0,class:"fox-cell__icon"},uv={key:1,class:"fox-cell__title"},cv={class:"title"},dv={class:"fox-cell__title-desc"};function fv(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Right");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.baseStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",sv,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",uv,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",cv,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",dv,(0,t.toDisplayString)(e.subTitle),1)],64)):(0,t.renderSlot)(e.$slots,"title",{key:1},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.title),1)])])):(0,t.createCommentVNode)("",!0),e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:(0,t.normalizeStyle)({"text-align":e.descTextAlign})},(0,t.toDisplayString)(e.desc),7)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"link",{},()=>[e.isLink?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var Oo=oe(iv,[["render",fv]]),mv={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function pv(e,n){return{props:{...mv},setup(o,{attrs:l,slots:a}){const r=(0,t.computed)(()=>{const s={};return o.color&&(s.color=o.color),o.size&&(s.fontSize=de(o.size)),s});return()=>{const s={style:r.value,class:`${e}-wrap`,...l};return(0,t.h)(o.tag??"li",s,a)}}}}var{componentName:hv,create:vv,scope:gv}=J("icon"),yv=vv(pv(hv,gv)),Ro=yv,{componentName:bv,create:Sv}=J("cell-group"),kv=Sv({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[bv]:!0}))}}}),wv={key:1,class:"fox-cell-group__title"},Cv={key:3,class:"fox-cell-group__desc"},Nv={class:"fox-cell-group__wrap"};function Av(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",wv,(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",Cv,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Nv,[(0,t.renderSlot)(e.$slots,"default")])],2)}var Fo=oe(kv,[["render",Av]]),{componentName:Bv,create:Tv}=J("image"),Vv=Tv({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:le.Image,ImageError:le.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const o=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const y=Bv;return{[y]:!0,[`${y}-round`]:e.round}}),a=(0,t.ref)(null),r=(0,t.ref)(!1),s=(0,t.ref)(null),i=()=>{a.value=new IntersectionObserver(y=>{y.forEach(w=>{w.isIntersecting&&(r.value=!0,a.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),s.value&&a.value.observe(s.value)};(0,t.onMounted)(()=>{e.lazyLoad&&i()}),(0,t.onBeforeUnmount)(()=>{a.value&&a.value.disconnect()});const u=(0,t.computed)(()=>{let y={};return e.width&&(y.width=de(e.width)),e.height&&(y.height=de(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=de(e.radius)),y}),m=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,y=>{o.isError=!1,o.loading=!0});const p=()=>{o.loading=!1,n("load")},c=()=>{o.isError=!0,o.loading=!1,n("error")},h=y=>{n("click",y)};return{...(0,t.toRefs)(o),imageClick:h,classes:l,styles:m,stylebox:u,error:c,load:p,show:r,imgRef:s}}}),xv=["src","date-src","alt"],$v={key:0,class:"fox-img-loading"},Ev={key:1,class:"fox-img-error"};function Dv(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Image"),i=(0,t.resolveComponent)("ImageError");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.stylebox),onClick:n[2]||(n[2]=(...u)=>e.imageClick&&e.imageClick(...u))},[(0,t.createElementVNode)("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:n[0]||(n[0]=(...u)=>e.load&&e.load(...u)),onError:n[1]||(n[1]=(...u)=>e.error&&e.error(...u)),style:(0,t.normalizeStyle)(e.styles)},null,44,xv),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",$v,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,width:"16px",height:"20px",name:"image"})),(0,t.renderSlot)(e.$slots,"loading")])):(0,t.createCommentVNode)("",!0),e.isError&&!e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",Ev,[e.slotError?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,width:"16px",height:"20px",name:"imageError"})),(0,t.renderSlot)(e.$slots,"error")])):(0,t.createCommentVNode)("",!0)],6)}var Ko=oe(Vv,[["render",Dv]]),{create:Iv}=J("layout"),qv=Iv({}),Uo=qv,{componentName:Pv,create:Mv}=J("col"),zv=Mv({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=Pv,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 Lv(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Ho=oe(zv,[["render",Lv]]),{componentName:Ov,create:Rv}=J("row"),Fv=Rv({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=Ov;(0,t.provide)("gutter",e.gutter);const o=(l,a)=>l?a?`fox-row-${l}-${a}`:"":`fox-row-${a}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Yi=Object.create,Er=Object.defineProperty,Xi=Object.getOwnPropertyDescriptor,Qi=Object.getOwnPropertyNames,Gi=Object.getPrototypeOf,Zi=Object.prototype.hasOwnProperty,We=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),Ji=(e,n,o,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(var a=Qi(n),r=0,i=a.length,u;r<i;r++)u=a[r],!Zi.call(e,u)&&u!==o&&Er(e,u,{get:(s=>n[s]).bind(null,u),enumerable:!(l=Xi(n,u))||l.enumerable});return e},Ye=(e,n,o)=>(o=e!=null?Yi(Gi(e)):{},Ji(n||!e||!e.__esModule?Er(o,"default",{value:e,enumerable:!0}):o,e));let t=require("vue"),at=require("@fox-js/validator"),oe=require("@fox-js/icons-vue"),pe=require("@fox-js/i18n");var rn=window,es=typeof window<"u";function ts(){return typeof rn<"u"?rn.requestAnimationFrame||rn.webkitRequestAnimationFrame||function(e){rn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Dr(e){es?cancelAnimationFrame(e):clearTimeout(e)}var Xe=ts();function vn(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]=Yl(Ne(e),Ne(n)),o==1&&(l==1?e=yl(e):n=yl(n));let a=Ir(e,n);return o?o==2?"-"+Ne(a):e.length<a.length?Ne(a.substring(1)):"-"+Ne(yl(a)):Ne(a)}function yl(e){let n="",o=e.length,l=e.split(".")[1],a=l?l.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return Ir(n,r)}function Ne(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Yl(e,n){let o=e.split("."),l=n.split("."),a=o[0].length,r=l[0].length;return a>r?l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,r=l[1]?l[1].length:0,(a||r)&&(a>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Ir(e,n){[e,n]=Yl(e,n);let o="",l=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let r=parseInt(e[a])+parseInt(n[a])+l;o=r%10+o,l=Math.floor(r/10)}return l?l.toString()+o:o}var 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 Wt(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 a=e.split("."),r=a[0],i=a[1];if(n<0){if(n=-n,r.length<=n)return"0";{let s=r.substr(0,r.length-n);return e=s+"."+r.substr(r.length-n)+i,s=Wt(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return r.length,Wa(a[1],r,l,o)?(l?"-":"")+bl(r):(l?"-":"")+r;if(a[1]){if(a[1].length<n)return(l?"-":"")+r+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");i=a[1].substring(0,n);let u=a[1].substring(n);return u&&Wa(u,i,l,o)&&(i=bl(i),i.length>n)?(l?"-":"")+bl(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}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 a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(l){case Ce.HALF_DOWN:return!1;case Ce.HALF_UP:return!0;case Ce.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function bl(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let a=o;a>=0;a--){let r=parseInt(e[a])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function 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=qt(e),n=qt(n);let l=0,a=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(a=n.length-n.indexOf(".")-1);let r=l+a;if(e=qt(e.replace(".","")),n=qt(n.replace(".","")),e.length<n.length){let c=e;e=n,n=c}if(n=="0")return"0";let i=n.length,u=0,s=[],d=i-1,p="";for(let c=0;c<i;c++)s[c]=e.length-1;for(let c=0;c<2*e.length;c++){let v=0;for(let S=n.length-1;S>=d&&S>=0;S--)s[S]>-1&&s[S]<e.length&&(v+=parseInt(e[s[S]--])*parseInt(n[S]));v+=u,u=Math.floor(v/10),p=v%10+p,d--}return p=qt(ns(p,r)),o==1&&(p="-"+p),p}function ns(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 qt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function $l(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ne(n.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ne(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=Ne(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let p=e.length-d+a;e=Ne(e.substring(0,p)+"."+e.substring(p))}else a==d&&(e=Ne(e.replace(".","")))}let r=0,i=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let d=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(d+=i-s.length,s=s+new Array(i-s.length+1).join("0")),r=d,u="0."+new Array(d).join("0")}for(o=o+2;r<=o;){let d=0;for(;parseInt(s)>=parseInt(n);)s=vn(s,"-"+n),d++;u+=d,e?(e[0]=="."&&(u+=".",r++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(r||(u+="."),r++,s=s+"0")}return(l==1?"-":"")+Ne(Wt(u,o-2))}function El(e,n){return e=e.toString(),n=n.toString(),n=Dl(n),vn(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=El(e,xl(n,Wt($l(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]=Yl(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 en=class fe{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 a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=a+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=a+Ne(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=a+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=fe.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=fe.validate(n);let a=n.charAt(0)=="-";a&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",u=r;u>0;)u<o?(o=u,u=0):u-=o,i=n.substring(u,u+o)+(u<r-o&&u>=0?l:"")+i;return(a?"-":"")+i+n.substring(r)}getPrettyValue(n,o){return fe.getPrettyValue(this.value,n,o)}static round(n,o=0,l=Ce.HALF_EVEN){if(n=fe.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return Wt(n,o,l)}round(n=0,o=Ce.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new fe(Wt(this.value,n,o))}static floor(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,Ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,Ce.FLOOR)}static ceil(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,Ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,Ce.CEILING)}static add(n,o){return n=fe.validate(n),o=fe.validate(o),vn(n,o)}add(n){return new fe(vn(this.value,n.getValue()))}static subtract(n,o){return n=fe.validate(n),o=fe.validate(o),El(n,o)}subtract(n){return new fe(El(this.value,n.getValue()))}static multiply(n,o){return n=fe.validate(n),o=fe.validate(o),xl(n,o)}multiply(n){return new fe(xl(this.value,n.getValue()))}static divide(n,o,l){return n=fe.validate(n),o=fe.validate(o),$l(n,o,l)}divide(n,o){return new fe($l(this.value,n.getValue(),o))}static modulus(n,o){return n=fe.validate(n),o=fe.validate(o),Ya(n,o)}modulus(n){return new fe(Ya(this.value,n.getValue()))}static compareTo(n,o){return n=fe.validate(n),o=fe.validate(o),Qa(n,o)}compareTo(n){return Qa(this.value,n.getValue())}static negate(n){return n=fe.validate(n),Dl(n)}negate(){return new fe(Dl(this.value))}};function qr(e,n){return en.multiply(`${e}`,`${n}`)}function Xl(e,n,o=8){return en.divide(`${e}`,`${n}`,o)}var q2=en.RoundingModes;function Il(e,n){return e=`${e}`,n=`${n}`,en.compareTo(e,n)}function Pr(e){return en.negate(e)}function Vn(e,n=-1,o=!1,l=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let u=r,s="",d=r.indexOf(".");d!=-1&&(u=r.substring(0,d),s=r.substring(d+1)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let p;if(l>0){let c="",v=u.split("").reverse();for(let S=0;S<v.length;S++)c+=v[S]+((S+1)%l==0&&S+1!=v.length?a:"");s.length==0?p=`${i}${c.split("").reverse().join("")}`:p=`${i}${c.split("").reverse().join("")}.${s}`}else s.length==0?p=`${i}${u}`:p=`${i}${u}.${s}`;return p}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 Je=typeof window<"u",He=Xe;function Pe(e){return e==null}var xn=Array.isArray,ls=e=>$n(e)==="[object Map]",os=e=>$n(e)==="[object Set]",je=e=>e instanceof Date,gn=e=>typeof e=="function",zr=e=>typeof e=="string",as=e=>typeof e=="symbol",Ve=e=>e!==null&&typeof e=="object",bt=e=>Ve(e)&&gn(e.then)&&gn(e.catch),Lr=Object.prototype.toString,$n=e=>Lr.call(e),rs=e=>$n(e)==="[object Object]",Rr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function is(e){return e.__esModule||Rr&&e[Symbol.toStringTag]==="Module"}var ss=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function St(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,a=!1;for(typeof n=="boolean"&&(a=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let r=e[o];for(let i in r){let u=n[i],s=r[i];if(u!==s)if(a===!0&&s&&typeof s=="object"){let d;Array.isArray(s)?d=u&&Array.isArray(u)?u:[]:d=u&&typeof u=="object"?u:{},n[i]=St(a,d,s)}else s!==void 0&&(n[i]=s)}}return n}var Sl=ss?Promise.resolve():null;function us(e,...n){Sl!==null?n&&n.length>0?Sl.then(()=>{e(n)}):Sl.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function Se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function de(e){return typeof e=="number"?e:Number(e)}var cs={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function kt(e){let n=Object.prototype.toString.call(e);return e==null?String(e):cs[n]||"object"}function Fr(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 Ql(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let n=e.parentElement;for(;n;){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Or(e){return e&&typeof e=="object"&&"setInterval"in e}function Kr(e){let n=!!e&&"length"in e&&e.length,o=kt(e);return o==="function"||Or(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Ur(e,n){let o=+n.length,l=0,a=e.length;for(;l<o;l++)e[a++]=n[l];return e.length=a,e}function ds(e,n=[]){let o=n;return e!=null&&(Kr(Object(e))?Ur(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=kt(e);if(o!==kt(n))return!1;if(o==="object"){let l=Object.keys(e),a=Object.keys(n);if(l.length!==a.length)return!1;for(let r=0;r<l.length;r++){let i=l[r],u=e[i],s=n[i];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 a=e[l],r=n[l];if(!xe(a,r))return!1}return!0}return!1}function ql(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var ce=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function En(e){return ce(e)?!1:(e.charAt(0)=="-"&&(e=e.substring(1)),ce(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Hr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function _r(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function 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 Pl(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 fs(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(xe(e,o))return!0}):n.indexOf(e)}function ms(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 ke(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ve(e,...n){const o={};return n.forEach(l=>{for(const a in l)o[a]=e[a]}),o}function et(e,...n){const o=[];n.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const l={};for(const a in e)o.includes(a)||(l[a]=e[a]);return l}var ps=(e,n,o)=>{const l=Object.assign({},e),a=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(l[r]=n[a[r]]):n[r]&&(l[r]=n[r])}),l):e};function Ml(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()},_e=(e,n,o)=>Math.min(Math.max(e,n),o);function yn(e){return e.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}function hs(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var we=Symbol.for("BroadcastKey"),Gl=class{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(e,n,o){this.parent=e,this.proxy=n,this.name=o,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const n=this.children.findIndex(o=>e===o);n!==-1&&this.children.splice(n,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(e,n,o){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const l=e.uniqueId,a={matched:e,action:n,args:o};return this.persistantMessages.set(l,a),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(n=>{e.push(n)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,n){if(!n||n.messagingPolicy==="Once"&&n.resolved===!0)return!1;let o=!1;return!n.name||n.name==="*"||n.name==="+"||ql(n.name)&&e&&n.name.test(e)?o=!0:typeof n.name=="function"?o=Reflect.apply(n.name,null,[e]):n.name===e&&(o=!0),o}trigger(e,n,o){let l=null;const a=this.callbacks.get(n);typeof a=="function"&&(l=Reflect.apply(a,this.proxy,[...o]));const r=this.proxy??{};typeof r[n]=="function"&&(l=Reflect.apply(r[n],r,[...o])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(l)}pull(){let e=this.parent;for(;e;){const n=e.getPersistantMessages();Array.isArray(n)&&n.length>0&&n.forEach(o=>{if(this.isMatched(this.name,o.matched))try{this.trigger(o.matched,o.action,o.args)}catch(l){console.error(l)}}),e=e.parent}}emit(e,n,...o){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const r=e.resolve,i=e.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(i),typeof r=="function"&&r(...s)};e.resolve=u}e.cachePolicy="None"}let l=!1;!e.name||e.name==="*"?l=!0:e.name==="+"?(l=!1,e.name="*"):ql(e.name)&&this.name&&e.name.test(this.name)?l=!0:typeof e.name=="function"?l=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(l=!0);const a=[];if(l){const r=this.callbacks.get(n);if(typeof r=="function"){const u=Reflect.apply(r,this.proxy,[...o]);u!=null&&a.push(u)}const i=this.proxy??{};if(typeof i[n]=="function"){const u=Reflect.apply(i[n],i,[...o]);u!=null&&a.push(u)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...a),e.messagingPolicy==="Once")return a}return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...e},n,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}emitToChildren(e,n,...o){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,n,o),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,n,o)){const a=e.resolve,r=e.uniqueId??"",i=(...u)=>{this.deletePersistantMessage(r),typeof a=="function"&&a(...u)};e.resolve=i}e.cachePolicy="None"}const l=[];return this.children.forEach(a=>{const r=Reflect.apply(a.emit,a,[{...e},n,...o]);r!=null&&Array.isArray(r)&&Reflect.apply([].push,l,[...r])}),l}on(e,n){this.callbacks.set(e,n)}};function Dn(e,n,o,l){const a=new Gl(n,e,o);if(l&&typeof l=="object")for(const r in l)a.on(r,l[r]);return a}function vs(e,n,o){const l=o;if(l[we])return l[we];const a=new Gl((0,t.inject)(we,null),o,e);if(n&&typeof n=="object")for(const r in n)a.on(r,n[r]);return l[we]=a,(0,t.provide)(we,a),(0,t.onUnmounted)(()=>{a.destroy(),l[we]=void 0}),a}function Ot(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[we]??(0,t.inject)(we,null):(0,t.inject)(we,null)}var gs=class{error(e,n){const o=n,l=n||(0,t.hasInjectionContext)()?Ot(n):null;l?l.emit({name:"*"},"setErrorTip",e):typeof o.setErrorTip=="function"&&o.setErrorTip(e)}reset(e){const n=e,o=e||(0,t.hasInjectionContext)()?Ot(e):null;o?o.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}success(e){const n=e,o=e||(0,t.hasInjectionContext)()?Ot(e):null;o?o.emit({name:"*"},"setErrorTip",""):typeof n.setErrorTip=="function"&&n.setErrorTip("")}decorate(e,n,o){Array.isArray(e)||(e=[e]);const l=o,a=o||(0,t.hasInjectionContext)()?Ot(o):null,r=n.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),i=e.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!r&&i?a?a.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):r&&!i&&(a?a.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(e){return e.modelValue}},Ut=new gs;function ys(e){Ut=e}function bs(e){Ut?Object.assign(Ut,e):Ut=e}function Ss(e,n){at.Schema.setValidator(e,n)}function ks(e){at.Schema.deleteValidator(e)}var jr=["blur","clear"];function ws(e){jr=e}function Wr(){return jr}var Yr=["focus","change","setValue"];function Cs(e){Yr=e}function Xr(){return Yr}function Ns(e){at.Schema.messages(e)}function Pt(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const a=n.findIndex(r=>r.type===l.type);a!==-1&&n.splice(a,1),n.push(l)})}),n}function sn(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}var Le=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(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let e=this.proxy.$attrs;e&&(this.scope=(0,t.effectScope)(!0),this.scope.run(()=>{(0,t.watchEffect)(()=>{const n=sn(Pt(this.attrRules,this.rules)),o=[];for(let a in e){let r=e[a];if(this.hasValidator(a,!0)){if(r===!1)continue;let u={type:a};r!==null&&typeof r=="object"&&Object.assign(u,r),o.push(u);continue}let i=this.getValidator(a);if(i!==null){let u={type:a,validator:i};o.push(u)}}this.attrRules=sn(o);const l=Pt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(l,n)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...n){const o=this.descriptor.validateHandler;if(o&&typeof o[e]=="function")return Reflect.apply(o[e],o,[...n]);const l=Ut;return l&&typeof l[e]=="function"?Reflect.apply(l[e],l,[...n]):null}decorate(e,n){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,n,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(e,n,o=!1){o?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=Pt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=sn(e):this.rules=sn([e]);const o=Pt(this.attrRules,this.rules);(0,t.nextTick)(()=>{this.decorate(o,n)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Pt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(e.length>0){const o={[`${n}`]:e},l=this.getValue(),a={[`${n}`]:l},r=new at.Schema(o),i=this.proxy??a;return r.validate(a,{context:i}).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=i),this.error(s)}return u}).catch(u=>{const s=u.message??`${u}`;return this.error(s),u})}}return Promise.resolve({pass:!0})}};function In(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const l=o.valueName;o.validateHandler={getValue(a){return a[l]}}}return new Qr(n,o,e)}var bn=Symbol.for("EventEmitterKey"),Gr=class{register=new Map;proxy;constructor(e){this.proxy=e}destroy(){this.proxy=null,this.register.clear()}off(e,n){let o=this.register.get(e);if(o&&Array.isArray(o)){let l=o.findIndex(a=>a===n);l!==-1&&o.splice(l,1)}}on(e,n){let o=this.register.get(e);o||(o=new Array,this.register.set(e,o)),o.push(n)}emit(e,...n){const o=this.register.get(e);o&&o.forEach(l=>{try{Reflect.apply(l,null,[e,...n])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[e,...n])}};function Ee(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function Sn(e,n){let o=0;return function(...l){const a=new Date().getTime();a-o<n||(o=a,Reflect.apply(e,null,[...l]))}}function As(e,n){const o=Ee((l,a)=>{e=l,a()},n);return(0,t.customRef)((l,a)=>({get(){return l(),e},set(r){o(r,a)}}))}function Bs(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function Zl(e,n,o,l=0,a=!0){let r=n,i=0;if(a){const s=e();if(i++,s||i>o)return}const u=()=>{const s=e();i++,!(s||i>o)&&(r+=l,setTimeout(u,r))};setTimeout(u,r)}var Te=Symbol("DomainKey"),ft=Symbol("DataItemsKey"),qn=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}_props=(0,t.reactive)({});constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(e,n=[]){for(const o in e){const l=e[o];n.length>0&&n.indexOf(l)!==-1||(this._props[o]=l)}}has(e){if(Reflect.has(this._props,e)){const n=this._props[e];if(n!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,n){this._props[e]=n}get(e,n){if(Reflect.has(this._props,e)){const o=this._props[e];if(o!=null)return o}return this.parent==null?n:this.parent.get(e,n)}getForParent(e,n){return this.parent==null?n:this.parent.get(e,n)}getForSelf(e){return this._props[e]}getAll(e){const n=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,e)){const l=o._props[e];n.push(l)}o=o._parent}return n}},Ts=new qn;function ht(){return Ts}function tt(e=null){return e||(e=(0,t.getCurrentInstance)()?.proxy??null),e?e[Te]??(0,t.inject)(Te,null):(0,t.inject)(Te,null)}var kl=Symbol("OriginalDateKey");function Jl(e,n,o=[],l){const a=(0,t.getCurrentInstance)();let r=a?.proxy,i=(0,t.inject)(Te,null);i===null&&(i=ht());const u=e||n.prop||n.name;let s=new qn(u);s.parent=i;const d=y=>{r[kl]||v(y),s?.set("modelValue",y)},p=()=>s?.getForSelf("modelValue")??null,c=()=>r[kl]??null,v=y=>{const k={};St(!0,k,(0,t.toRaw)(y)),r[kl]=k};(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,y=>{s?.merge(y,o)},{immediate:!0}):s.merge(n,o),n.modelValue&&v(n.modelValue);const S=(y,k)=>{s?.set(y,k)},w=y=>s?.getForSelf(y)??null;if(r[Te]=s,(0,t.provide)(Te,s),a!==null){const y=(0,t.inject)(we,null),k=Dn(r,y,u,l);s.broadcast=k,r[we]=k,(0,t.provide)(we,k),r.broadcast=(m,A,...C)=>Reflect.apply(k.emit,k,[m,A,...C]);const f=(0,t.inject)(Le,null),b=In(r,f,{componentName:""});s.validateSchema=b,r[Le]=b,(0,t.provide)(Le,b),r[ft]=new Map,r.validate=(m=!0)=>{const A=[];let C=null;const g={deep:!1};if(m===!0)C={name:"*"};else if(Array.isArray(m)&&m.length>0){const h=m;C={name:N=>N?h.indexOf(N)!==-1:!1}}else if(m!=null&&typeof m=="object"){const h=m;if(Object.assign(g,h),Array.isArray(h.include)&&h.include.length>0){const N=h.include;C={name:B=>B?N.indexOf(B)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const N=h.exclude;C={name:B=>B?N.indexOf(B)===-1:!1}}else C={name:"*"}}if(C){const h=k?.emitToChildren(C,"validate",g);h&&Reflect.apply([].push,A,h)}return A.length==1?A[0]:A.length>1?Promise.all(A).then(h=>{let N=[];return h.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(N=[...N,...B.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(m,A=!0,C=!1)=>{if(C===!0){Reflect.ownKeys(m).forEach(g=>{let h=String(g);const N={componentName:"",fieldName:h,pureDataValidate:!0};if(s){const B=Jr(s,h,N,k,b);r[ft].set(h,B);const T=m[h];T&&B.validateSchema.setRule(T)}});return}if(A){const g=Reflect.ownKeys(m);k?.emitToChildren({name:h=>g.includes(h),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",m,!1)}},r.clearValidate=(m=!0)=>{let A=null;if(m===!0)A={name:"*"};else if(Array.isArray(m)&&m.length>0){const C=m;A={name:g=>g?C.indexOf(g)!==-1:!1}}else if(m!=null&&typeof m=="object"){const C=m;if(Array.isArray(C.include)&&C.include.length>0){const g=C.include;A={name:h=>h?g.indexOf(h)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const g=C.exclude;A={name:h=>h?g.indexOf(h)===-1:!1}}else A={name:"*"}}A&&k?.emitToChildren(A,"clearValidate",!1)},r.resetFields=m=>{const A=p();if(!A)return;const C={};if(St(!0,C,c()??{}),Array.isArray(m))m.forEach(g=>{A[g]=C[g]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(g=>{A[g]=C[g]});else if(m&&Array.isArray(m.exclude)){let g=m.exclude??[];Reflect.ownKeys(C).forEach(h=>{g.includes(h)||(A[h]=C[h])})}else Object.assign(A,C);r.clearValidate(m)},r.setModelValue=(m,A)=>{if(!A||A===u)d(m);else{const C={name:A,messagingPolicy:"Once"};k?.emitToChildren(C,"setModelValue",m)}},r.getModelValue=()=>p(),r.setDomainProperty=(m,A)=>{S(m,A)},r.getDomainProperty=m=>w(m),setTimeout(function(){k?.pull()},0)}return(0,t.onUnmounted)(function(){s?.validateSchema&&(s.validateSchema.destroy(),r[Le]=void 0,(0,t.provide)(Le,null)),s?.broadcast&&(s?.broadcast?.destroy(),r[we]=void 0,(0,t.provide)(we,null)),s?.destroy(),r[Te]=void 0,(0,t.provide)(Te,null),r[ft]&&(r[ft].clear(),r[ft]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,s=null,r=null}),s}function Zr(e,n,o=[]){let l=(0,t.getCurrentInstance)()?.proxy,a=(0,t.inject)(Te,null);a===null&&(a=ht());let r=new qn(e||n.prop||n.name);return r.parent=a,(0,t.isReactive)(n)||typeof n=="function"?(0,t.watch)(n,i=>{r?.merge(i,o)},{immediate:!0}):r.merge(n,o),l[Te]=r,(0,t.provide)(Te,r),(0,t.onUnmounted)(()=>{r?.destroy(),l[Te]=void 0,(0,t.provide)(Te,null),r=null,l=null}),r}function Be(e,n,o){const l=(0,t.getCurrentInstance)()?.proxy,a=n??"";let r=Dn(l,(0,t.inject)(we,null),a,o);l[we]=r,(0,t.provide)(we,r),l.broadcast=(p,c,...v)=>r?Reflect.apply(r.emit,r,[p,c,...v]):null;const i=(0,t.inject)(Le,null);e.fieldName=e.fieldName??a;let u=In(l,i,e);l[Le]=u,(0,t.provide)(Le,u),l.validate=(p=null)=>{if(!u)return Promise.resolve({pass:!0});const c=[];let v=!1,S=!1;if(Array.isArray(p)&&p.indexOf(a)!==-1)S=!0,v=!0;else if(p&&typeof p=="object"){const w=p,y=w.ignoreDisabled??!0,k=w.ignoreReadonly??!0,f=w.ignoreHidden??!0;y===!0&&e.disabled===!0||k===!0&&e.readonly===!0||f===!0&&Fr(l.$el)?S=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),S=!0),v=w.deep??!1}else typeof p=="boolean"&&(v=p),S=!0;if(S){const w=u?.validate();c.push(w)}if(v){let w=null;const y={deep:!1};if(p===!0)w={name:"*"};else if(Array.isArray(p)&&p.length>0){const k=p;w={name:f=>f?k.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const k=p;if(Object.assign(y,k),Array.isArray(k.include)&&k.include.length>0){const f=k.include;w={name:b=>b?f.indexOf(b)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;w={name:b=>b?f.indexOf(b)===-1:!1}}else w={name:"*"}}if(w&&r){const k=r.emitToChildren(w,"validate",y);Reflect.apply([].push,c,k)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(w=>{let y=[];return w.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(y=[...y,...k.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=p=>u?.setRule(p),l.setNameValidateRules=(p,c=!1)=>{const v=p[a];v&&u?.setRule(v),c&&r&&r.emitToChildren({name:S=>Reflect.ownKeys(p).includes(S)},"setNameValidateRules",p,!1)},l.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(n??"")!==-1)&&u?.clear();let c=null;if(p===!0)c={name:"*"};else if(Array.isArray(p)&&p.length>0){const v=p;c={name:S=>S?v.indexOf(S)!==-1:!1}}else if(p!=null&&typeof p=="object"){const v=p;if(Array.isArray(v.include)&&v.include.length>0){const S=v.include;c={name:w=>w?S.indexOf(w)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const S=v.exclude;c={name:w=>w?S.indexOf(w)===-1:!1}}else c={name:"*"}}c&&r&&r.emitToChildren(c,"clearValidate",!1)};let s=new Gr(l);l[bn]=s;const d=Ee((p="validate")=>{u&&(p==="reset"?u.clear():u.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Wr()).forEach(p=>{s&&s.on(p,c=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Xr()).forEach(p=>{s&&s.on(p,c=>{d("reset")})}),setTimeout(function(){r?.pull()},0),(0,t.onUnmounted)(()=>{r?.destroy(),l[we]=void 0,(0,t.provide)(we,null),r=null,u?.destroy(),l[Le]=void 0,(0,t.provide)(Le,null),u=null,s?.destroy(),l[bn]=void 0,s=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:r,validateSchema:u,emitEvent:(p,...c)=>{s&&Reflect.apply(s.emit,s,[p,...c])},onEvent:(p,c)=>{s&&Reflect.apply(s.on,s,[c])},offEvent:(p,c)=>{s&&Reflect.apply(s.off,s,[c])}}}function Jr(e,n,o,l,a){const r={},i=n??"",u={getValue(){const p=e.getForSelf("modelValue");return p?p[i]:null},isExist(){const p=e.getForSelf("modelValue");return p?Reflect.has(p,i):!1}};o.fieldName=i,o.validateHandler={getValue(p){return u.getValue()}};let s=In({},a,o);r.validate=(p=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const c=[];let v=!1,S=!1;if(Array.isArray(p)&&p.indexOf(i)!==-1)S=!0,v=!0;else if(p&&typeof p=="object"){const w=p;Array.isArray(w.include)&&w.include.indexOf(i)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(i),S=!0,v=w.deep??!1}else typeof p=="boolean"&&(v=p),S=!0;if(S&&s){const w=s.validate();c.push(w)}if(v){let w=null;const y={deep:!1};if(p===!0)w={name:"*"};else if(Array.isArray(p)&&p.length>0){const k=p;w={name:f=>f?k.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const k=p;if(Object.assign(y,k),Array.isArray(k.include)&&k.include.length>0){const f=k.include;w={name:b=>b?f.indexOf(b)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;w={name:b=>b?f.indexOf(b)===-1:!1}}else w={name:"*"}}if(w&&d){const k=d.emitToChildren(w,"validate",y);Reflect.apply([].push,c,k)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(w=>{let y=[];return w.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(y=[...y,...k.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>s?.setRule(p),r.setNameValidateRules=p=>{const c=p[i];c&&s?.setRule(c)};let d=Dn(null,l,i,r);return(0,t.onUnmounted)(()=>{s=null,d=null}),{broadcast:d,validateSchema:s}}function xt(){let e=(0,t.getCurrentInstance)()?.proxy,n=new Gr(e);return e[bn]=n,(0,t.onUnmounted)(()=>{n?.destroy(),e[bn]=void 0,n=null,e=null}),{emitEvent:(o,...l)=>{n&&Reflect.apply(n.emit,n,[o,...l])},onEvent:(o,l)=>{n&&Reflect.apply(n.on,n,[l])},offEvent:(o,l)=>{n&&Reflect.apply(n.off,n,[l])}}}var me=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${se(e)}px`:"",Vs=me;function se(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),r=1;if(Je){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(r=Number(i.substring(0,u)))}return a*=r,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))*n;const l=Number(e);return isNaN(l)?0:l}function xs(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}var Qe="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=se(e.top)),e.left!==null&&e.left!==void 0&&(n.left=se(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=se(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=se(e.right))),n}function zl(e,n,o={},l=!0,a=-1,r=-1,i=0,u=0){if(e.headerHeight=se(o.headerHeight??n.headerHeight??-1),e.headerPadding=Fe(o.headerPadding??n.headerPadding),e.footerHeight=se(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=se(s,r):e.height=se(r)-se(i,r)-se(u,r),e.width=se(o.width??n.width??0,a)}}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},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(l.safeAreaTop=se(a.top),l.safeAreaBottom=se(a.bottom),l.safeAreaLeft=se(a.left),l.safeAreaRight=se(a.right));const r=e.get("pageLayout");if(!r)return null;zl(l,r,n,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const i=(0,t.reactive)(l),u=e.getForParent(Qe);u&&(l.height=kn(e,u),l.width=wn(e,u),(0,t.watch)([()=>kn(e,u),()=>wn(e,u)],([d,p])=>{i.height=d,i.width=p}));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,p,c=-1,v=-1,S=0,w=0])=>{zl(i,p,n,s,c,v,S,w)}),e.set(Qe,i),i}function Pn(e){return e.get(Qe)}function Mn(e,n){if(n=n??e.get(Qe),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function zn(e,n){if(n=n??e.get(Qe),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function kn(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Mn(e,n),l=zn(e,n),a=se(n.contentPadding.top??0),r=se(n.contentPadding.bottom??0);return n.height-o-l-a-r}return 0}function wn(e,n){if(n=n??e.get(Qe),n){const o=se(n.contentPadding.left??0),l=se(n.contentPadding.right??0);return n.contentInnerWidth??n.width-o-l}return 0}function $s(e){return!!e.getForParent(Qe)}var eo=Symbol.for("InnerPageScopeKey");function ti(e){(0,t.provide)(eo,e)}function tn(e=!1){return(0,t.inject)(eo,e)}var to=Symbol.for("AbstractPageScopeKey");function ni(e){(0,t.provide)(to,e)}function nn(e=!1){return(0,t.inject)(to,e)}function li(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.headerBar??e:e}function oi(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.footerBar??e:e}function ai(e=!1){const n=nn(e);return typeof n=="boolean"?n:n&&typeof n=="object"?n.content??e:e}var Ge=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function un(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ae(e,n,o=Ge.Near,l){const a=tt();return a==null?e:o===Ge.Parent?(0,t.computed)(()=>{const r=a.getAll(n);for(let u=r.length-1;u>=0;u--){const s=r[u];if(un(s,l))return s}const i=e.value;return un(i,l)?i:null}):(0,t.computed)(()=>{const r=e.value;if(un(r,l))return r;const i=a.getAll(n);for(let u=0;u<i.length;u++){const s=i[u];if(un(s,l))return s}return null})}function Ln(e){return Ae(e,"readonly",Ge.Near)}function Rn(e){return Ae(e,"disabled",Ge.Near)}function ri(e){return Ae(e,"browse",Ge.Near)}function Ie(e){const n=(0,t.ref)(null),o=Rn((0,t.computed)(()=>n.value??e.disabled)),l=(0,t.ref)(null);return{innerDisabled:n,disabled:o,innerReadonly:l,readonly:Ln((0,t.computed)(()=>l.value??e.readonly)),browse:ri((0,t.computed)(()=>e.browse))}}function De(e,n="modelValue",o=null,l){const a=(0,t.toRef)(e,n);let r=a.value;typeof o=="function"&&(r=o(a.value));const i=(0,t.ref)(r);return(0,t.watch)(a,u=>{if(typeof o=="function"){const s=o(u);s!==i.value&&(i.value=s,l&&l("setValue",s))}else u!==i.value&&(i.value=u,l&&l("setValue",u))}),i}var ii=new Map,Cn=new Map,Ll=null;function Es(e){Ll=e}function si(e,n,o){if(o){let l=Cn.get(o);l||(l=new Map,Cn.set(o,l)),l.set(e,n)}else ii.set(e,n)}function nt(e,n,o){!o&&Ll&&(o=Ll(e)??void 0);let l=null;if(o){let a=Cn.get(o);a&&(l=a.get(n))}return l||(l=ii.get(n)),l}function Ds(e,n){for(let o in e){const l=e[o];si(o,l,n)}}function Is(e){Cn.delete(e)}function qs(){return{top:0,left:0,bottom:0,right:0}}function Ps(){return Je?{rootWidth:document.documentElement.clientWidth||document.body.clientWidth,rootHeight:document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{headerHeight:-1,footerHeight:-1}}}function Ms(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 yn(o)}var zs=class{packages;_version;get version(){return this._version}constructor(e,n){this.packages=e,this._version=n}install(e,n){n?.install!==!1&&this.packages.forEach(l=>{if(l.install)e.use(l,n);else if(l.name){const a=Ms(l.name,n);e.component(a,l)}});const o=ht();if(n.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l={...n},a=Ee(()=>{const r={...l};this.updateLayout(r,o)},120);new window.ResizeObserver(a).observe(window.document.body)}this.updateLayout(n,o)}updateLayout(e,n){const o=e.headerBarHeight??0,l=e.footerBarHeight??0,a=St({},qs(),e.safeAreaInset),r=Ps(),i=St({},r.pageLayout,e.pageLayout);n=n??ht(),n.set("safeAreaInset",a),n.set("headerBarHeight",o),n.set("footerBarHeight",l),n.set("pageLayout",i),n.set("rootWidth",r.rootWidth),n.set("rootHeight",r.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){Es(e)}setAPI(e,n,o){si(e,n,o)}getAPI(e,n,o){return nt(e,n,o)}batchSetAPI(e,n){Ds(e,n)}clearScopeAPI(e){Is(e)}getRootDomain(){return ht()}};function J(e){const n=`fox-${e}`,o=yn(n);return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=(a,r)=>{let i=l.name;r?.componentPrefix&&(i=`${r.componentPrefix}-${l.baseName}`,i=yn(i)),a.component(i,l)},(0,t.defineComponent)(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,(0,t.defineComponent)(l)}}}var Ls=(e,n)=>{let o=document.body;const l=e.teleport||"body";l!="body"&&(zr(l)?o=document.querySelector(l):o=e.teleport);const a=document.createElement("view");a.id=(n.name?n.name+"-":"")+(e.id||new Date().getTime());let r={};gn(n.wrapper)?r=n.wrapper(o,a):r=n.wrapper;const i=(0,t.createApp)(r,e),u=n.components;return u&&u.forEach(s=>{i.use(s)}),o.appendChild(a),{instance:i.mount(a),unmount:()=>{i.unmount(),o.removeChild(a)}}},ui=(e,n)=>e?(0,t.h)(e,n):"";function be(e,n=null){if(n||(n=(0,t.getCurrentInstance)()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}var he={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}},ge={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},ci={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}},di={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}},fi=[];for(const e in di)fi.push(e);var Rs={name:{type:String,required:!1,default:()=>""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Fs=(e,n)=>({inheritAttrs:!0,props:{...he,...ci,...Rs},setup(o,{slots:l}){const a=!!nn(!1),r=tn(!1),i=Jl(o.name,o);if(i){const c=ei(i,o);be({getPageContentHeight:()=>kn(i,c),getPageContentWidth:()=>wn(i,c),getPageHeaderHeight:()=>Mn(i,c),getPageFooterHeight:()=>zn(i,c)}),c&&r&&(c.contentHeight="100%")}const u=(0,t.computed)(()=>({[e]:!0,"is-inner":r})),s=(0,t.computed)(()=>({})),d=(0,t.getCurrentInstance)(),p=(c,v=!1)=>{const S=d?.proxy;S&&typeof S.setNameValidateRules=="function"&&S.setNameValidateRules(c,!0,v)};return(0,t.watch)([()=>o.rules,()=>o.pureDataRules],([c,v],[S,w])=>{if(c&&S){const y=(0,t.toRaw)(S),k=(0,t.toRaw)(c),f=k?Reflect.ownKeys(k):[];(y?Reflect.ownKeys(y):[]).forEach(b=>{f.includes(b)||(k[b]=[])}),p(k)}if(v&&w){const y=(0,t.toRaw)(w),k=(0,t.toRaw)(v),f=k?Reflect.ownKeys(k):[];(y?Reflect.ownKeys(y):[]).forEach(b=>{f.includes(b)||(k[b]=[])}),p(k,!0)}},{deep:!0}),(0,t.onMounted)(()=>{o.rules&&p((0,t.toRaw)(o.rules)),o.pureDataRules&&p((0,t.toRaw)(o.pureDataRules),!0)}),()=>a?l?.default?.():(0,t.h)("div",{class:u.value,style:s.value},[l?.default?.()])}}),{componentName:Os,create:Ks,scope:Us}=J("page"),Hs=Ks(Fs(Os,Us)),no=Hs;function lo(e){const n=(0,t.unref)(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Fn(e){const n=(0,t.unref)(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),r=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-a,height:n.clientHeight-r-i}}var mi={headerbar:{},radio:{},checkbox:{}};function _s(e){Object.assign(mi,e)}function On(){return mi}var js=(e,n,o,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const i=li(!1),u=tn(!1),s=i?null:tt(),d=s?Pn(s):null,p=On(),c=e,v=(0,t.computed)(()=>{const $={[c]:!0,[`${c}--border`]:a.border,[`${c}--fixed`]:a.fixed};return u||($[`${c}--safe-area-inset-top`]=a.safeAreaInsetTop),$}),S=(0,t.computed)(()=>({[`${c}__inner`]:!0,[`${c}__inner--${a.align}`]:!0})),w=Pe(a.height)?null:se(a.height),y=(0,t.computed)(()=>{const $={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i)return $;if(s&&d){const P=Fe(a.padding??d.headerPadding);if(Object.assign($,P),Pe(w)||(d.headerHeight=w),$.height=d.headerHeight,$.safeAreaTop=d.safeAreaTop===-1?0:d.safeAreaTop,$.safeAreaTop>0){const M=se(P.top??0);$.top=$.safeAreaTop+M,$.height&&$.height>0&&($.height=$.height+$.safeAreaTop)}return $}if(Pe(w)||($.height=w),a.padding){const P=Fe(a.padding);Object.assign($,P)}return $}),k=(0,t.ref)(null),f=()=>d&&k.value&&!Ql(k.value)?(l||(d.headerAllHeight=lo(k.value).height),d.headerMounted=!0,!0):!1,b=Ee(f,120);let m=null;(0,t.onMounted)(()=>{i||d&&(Zl(f,50,5,50,!0),window.ResizeObserver&&k.value&&(m=new window.ResizeObserver(b),m.observe(k.value)))}),(0,t.onUnmounted)(()=>{i||d&&(d.headerMounted=!1,m&&(m.disconnect(),m=null))});const A=(0,t.computed)(()=>{const $={};return i||(y.value.height!==null&&y.value.height!==void 0&&($.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&($.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&($.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&($.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&($.paddingBottom=`${y.value.bottom}px`)),$}),C=(0,t.computed)(()=>{const $=y.value?.height;return Pe($)||$<0?!0:$>0});function g(){r.emit("back")}function h(){r.emit("click-title")}function N(){r.emit("click-right")}function B(){r.emit("click-right-text")}const T=()=>{if(!a.leftShow)return null;const $=[];if(r.slots.left)$.push(r.slots.left());else{if(r.slots.leftIcon){const P=(0,t.h)("view",{class:"left-icon",onClick:g},[r.slots.leftIcon()]);$.push(P)}else{const P=a.leftIcon??p.headerbar.Left??o,M=(0,t.h)("view",{class:"left-icon",onClick:g},[(0,t.h)(P)]);$.push(M)}if(a.leftText){const P=(0,t.h)("view",{class:"left-text",onClick:g},[a.leftText]);$.push(P)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__left"},$)},V=()=>{if(!a.rightShow)return null;const $=[];if(r.slots.right)$.push(r.slots.right());else{if(a.rightText){const P=(0,t.h)("view",{class:"right-text",onClick:B},[a.rightText]);$.push(P)}if(r.slots.rightIcon){const P=(0,t.h)("view",{class:"right-icon",onClick:N},[r.slots.rightIcon()]);$.push(P)}else if(a.rightIcon){const P=(0,t.h)("view",{class:"right-icon",onClick:N},[(0,t.h)(a.rightIcon)]);$.push(P)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__right"},$)},U=()=>{if(!a.titleShow)return null;const $=[],P=r.slots.default?r.slots.default():null;if(P)$.push(P);else{if(a.title){const M=(0,t.h)("view",{class:"title-text"},[a.title]);$.push(M)}if(r.slots.titleIcon){const M=(0,t.h)("view",{class:"title-icon",onClick:h},[r.slots.titleIcon()]);$.push(M)}else if(a.titleIcon){const M=(0,t.h)("view",{class:"title-icon",onClick:h},[(0,t.h)(a.titleIcon)]);$.push(M)}}return $.length===0?null:(0,t.h)("view",{class:"fox-header-bar__title"},$)},W=()=>{const $=[],P=r.slots.bottom?r.slots.bottom():null;return P&&$.push(P),$.length===0?null:(0,t.h)("view",{class:"fox-header-bar__bottom"},$)};return()=>{if(i||!C.value)return null;const $=[];if(r.slots.all)$.push(r.slots.all());else{const P=[],M=T();M&&P.push(M);const q=U();q&&P.push(q);const O=V();if(O&&P.push(O),P.length>0){const I=(0,t.h)("view",{class:S.value},P);$.push(I)}const H=W();H&&$.push(H)}return $.length===0?null:(0,t.h)("view",{class:v.value,style:A.value,ref:k},$)}}}),{componentName:Ws,create:Ys,scope:Xs}=J("header-bar"),Qs=Ys(js(Ws,Xs,oe.Left,!1)),oo=Qs;function Gs(e,n,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,a){const r=oi(!1),i=tn(!1),u=r?null:tt(),s=u?Pn(u):null,d=e,p=(0,t.computed)(()=>{const m={[d]:!0,[`${d}--${l.align}`]:!0,[`${d}--border`]:l.border,[`${d}--fixed`]:l.fixed};return i||(m[`${d}--safe-area-inset-bottom`]=l.safeAreaInsetBottom),m}),c=Pe(l.height)?null:se(l.height),v=(0,t.computed)(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r)return m;if(u&&s){const A=Fe(l.padding??s.footerPadding);if(Object.assign(m,A),Pe(c)||(s.footerHeight=c),m.height=s.footerHeight,m.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,m.safeAreaBottom>0){const C=se(A.bottom??0);m.bottom=m.safeAreaBottom+C,m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)}return m}if(Pe(c)||(m.height=c),l.padding){const A=Fe(l.padding);Object.assign(m,A)}return m}),S=(0,t.computed)(()=>{const m=v.value?.height;return Pe(m)||m<0?!0:m>0}),w=(0,t.ref)(null),y=()=>s&&w.value&&!Ql(w.value)?(o||(s.footerAllHeight=lo(w.value).height),s.footerMounted=!0,!0):!1,k=Ee(y,120);let f=null;(0,t.onMounted)(()=>{r||s&&(Zl(y,50,5,50,!0),window.ResizeObserver&&(f=new window.ResizeObserver(k),f.observe(w.value)))}),(0,t.onUnmounted)(()=>{r||s&&(s.footerMounted=!1,f&&(f.disconnect(),f=null))});const b=(0,t.computed)(()=>{const m={};return r||(v.value.height!==null&&v.value.height!==void 0&&(m.height=me(v.value.height)),v.value.top!==null&&v.value.top!==void 0&&(m.paddingTop=me(v.value.top)),v.value.left!==null&&v.value.left!==void 0&&(m.paddingLeft=me(v.value.left)),v.value.right!==null&&v.value.right!==void 0&&(m.paddingRight=me(v.value.right)),v.value.bottom!==null&&v.value.bottom!==void 0&&(m.paddingBottom=me(v.value.bottom))),m});return()=>{if(r||!S.value)return null;const m=a.slots.default?a.slots.default():[];return(0,t.h)("view",{ref:w,class:p.value,style:b.value},m)}}}}var{componentName:Zs,create:Js,scope:eu}=J("footer-bar"),tu=Js(Gs(Zs,eu,!1)),ao=tu;function nu(e,n){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(o,{slots:l,attrs:a}){const r=ai(!1),i=tn(!1),u=r?null:tt(),s=(0,t.computed)(()=>({[e]:!0})),d=u?Pn(u):null,p=(0,t.computed)(()=>{const y={};if(r)return y;if(u&&d){if(o.padding){const h=Fe(o.padding);Object.assign(d.contentPadding,h)}const k=Mn(u,d),f=zn(u,d);let b="";d.contentHeight?b=`${d.contentHeight}`:b=`${d.height}px`,console.debug("[content]page height:",b),console.debug("[content]header height:",k),console.debug("[content]footer height:",f),console.debug("[content]padding:",d.contentPadding),y.height=b;let m=se((d&&d.contentPadding&&d.contentPadding.top)??-1);(m>=0||k>0)&&(m=m<0?0:m,y.paddingTop=`${k+m}px`);let A=se((d&&d.contentPadding&&d.contentPadding.bottom)??-1);(A>=0||f>0)&&(A=A<0?0:A,y.paddingBottom=`${f+A}px`);const C=se((d&&d.contentPadding&&d.contentPadding.left)??-1);C>=0&&(y.paddingLeft=`${C}px`);const g=se((d&&d.contentPadding&&d.contentPadding.right)??-1);return g>=0&&(y.paddingRight=`${g}px`),y}if(o.padding){const k=Fe(o.padding);k.left&&(y.paddingLeft=`${k.left}px`),k.top&&(y.paddingTop=`${k.top}px`),k.right&&(y.paddingRight=`${k.right}px`),k.bottom&&(y.paddingBottom=`${k.bottom}px`)}return y}),c=(0,t.ref)(null),v=()=>{if(d&&c.value){const y=Fn(c.value);d.contentInnerHeight=y.height,d.contentInnerWidth=y.width}},S=Ee(v,120);let w=null;return(0,t.onMounted)(()=>{i||r||(requestAnimationFrame(v),window.ResizeObserver&&c.value&&(w=new window.ResizeObserver(S),w.observe(c.value)))}),(0,t.onUnmounted)(()=>{i||r||w&&(w.disconnect(),w=null)}),()=>r?l.default?.():(0,t.h)(o.tag??"view",{...a,ref:c,class:s.value,style:p.value},l)}}}var{componentName:lu,create:ou,scope:au}=J("content"),ru=ou(nu(lu,au)),ro=ru,wt="GroupStateKey",pi=Symbol.for("GroupScopeKey");function Kn(){return(0,t.inject)(pi,!1)}function Un(e=!0){(0,t.provide)(pi,e)}function iu(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Pe(l)||(e[o]=l)})}function su(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};iu(o,n);const l=(0,t.markRaw)({layout:(0,t.shallowRef)(o),passport:0,order:{index:0}});return e.set(wt,l),l}function wl(e,n,o=-1,l=-1,a=!1,r,i,u){const s=e.get(wt);if(!s)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),l===-1&&(l=d.gutter??0),r||(r=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const p=se(r),c=se(i);u||(u=d.type??"grid");const v=()=>{const S=n===""||n===-1,w=se(n);let y=de(o);const k=se(l);if(!S){let m=(w-(y-1)*k)/y;for(;c!==-1&&m>c;)y++,m=(w-(y-1)*k)/y;for(;p!==-1&&y>1&&m<p;)y--,m=(w-(y-1)*k)/y}let f=!1;const b=s.layout;b.value.width=n,b.value.column!==y&&(b.value.column=y,f=!0),b.value.gutter!==k&&(b.value.gutter=k,f=!0),b.value.type!==u&&(b.value.type=u,f=!0),f&&(0,t.triggerRef)(b)};if(a)v();else{const S=++s.passport;setTimeout(()=>{S===s.passport&&v()},50)}}function Hn(e,n=!1){let o;return n?o=e.getForParent(wt):o=e.get(wt),o.layout}function _n(e,n=!1){let o;return n?o=e.getForParent(wt):o=e.get(wt),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,a){const r={};let i=0;a?i=se(a):i=Za(n.column,o),i>0&&(r.width=`${i}%`);const u=Za(n.column,l);u>0&&(r["margin-left"]=`${u}%`);const s=se(n.gutter)/2;return s>0&&(r["padding-left"]=`${s}px`,r["padding-right"]=`${s}px`),r}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 a=de(o);if(a===-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(a>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 r=de(l)%n.column;let i=(e.index+r)%n.column,u=i+a;return u>n.column?(i=0,u=i+a,e.index=e.index+(n.column-i)+a):e.index=e.index+r+a,r>0?{"grid-column":`${i+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}var hi=Symbol("RollingStateKey");function uu(e){(0,t.provide)(hi,e)}function cu(){return(0,t.inject)(hi,null)}function Rl(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-l-a}else n=e.offsetHeight;return n}function du(e){let n=Rl(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=Rl(o),document.body.removeChild(o)}return n}function fu(e,n,o){const l=typeof e=="number"?e:parseInt(e),a=typeof n=="number"?n:parseInt(n),r=typeof o=="number"?o:parseInt(o);if(l<=0)return"1fr";const i=(l-(a-1)*r)/a;return i>0?`${i}px`:"1fr"}function vi(e){const n=[];return e.forEach(o=>{o.type===t.Fragment&&Array.isArray(o.children)?n.push(...vi(o.children)):n.push(o)}),n}function mu(e){return!(e.type===t.Comment||e.type===t.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Yn(e){function n(){return vi(e?.()??[]).filter(mu)}return{getChildren:n}}var pu={...he,...ci,...di};function hu(e,n,o){return{props:pu,emits:["update:collapse","header-click"],setup(l,a){const r=Jl(l.prop??l.name,l,fi),i=su(r,{type:l.type}),u=Kn();Un(!0);const s=l.rollingDisplay?cu():null,d=(0,t.ref)(null),p=(0,t.computed)(()=>l.rollingDisplay?s&&!s.disabled:!1),c=(0,t.computed)(()=>u&&r?Hn(r,!0).value:null),v=(0,t.getCurrentInstance)(),S=(z,R=!1)=>{const D=v?.proxy;D&&typeof D.setNameValidateRules=="function"&&D.setNameValidateRules(z,!0,R)};(0,t.watch)([()=>l.rules,()=>l.pureDataRules],([z,R],[D,x])=>{if(z&&D){const F=(0,t.toRaw)(D),j=(0,t.toRaw)(z),ee=j?Reflect.ownKeys(j):[];(F?Reflect.ownKeys(F):[]).forEach(le=>{ee.includes(le)||(j[le]=[])}),S(j)}if(R&&x){const F=(0,t.toRaw)(x),j=(0,t.toRaw)(R),ee=j?Reflect.ownKeys(j):[];(F?Reflect.ownKeys(F):[]).forEach(le=>{ee.includes(le)||(j[le]=[])}),S(j,!0)}},{deep:!0});const w=e,y=(0,t.computed)(()=>{const z={};if(z.height=P.value,l.width)l.width!=="auto"&&(z.width=me(l.width));else{const R=u?_n(r,!0):null;if(c.value&&R){if(c.value.type==="grid"){const D=Wn(R,c.value,l.span,l.offset);Object.assign(z,D)}else if(c.value.type==="flow"){const D=jn(R,c.value,l.span,l.offset,l.width);Object.assign(z,D)}}}return z}),k=(0,t.computed)(()=>{const z=i.layout.value.type;return z==="grid"||z==="flow"?{[`${w}--${z}`]:!0,[`${w}--${z}-justify-${l.justify}`]:!0,[`${w}--${z}-align-${l.align}`]:!0,[`${w}--gutter`]:!0}:{[`${w}--${z}`]:!0,[`${w}--gutter`]:!0}}),f=(0,t.computed)(()=>{if(i.layout.value.type==="grid"){let z="";if(l.columnWidth)z=`repeat(auto-fill, ${l.columnWidth})`;else{const R=fu(N.value,i.layout.value.column,i.layout.value.gutter);z=`repeat(${i.layout.value.column}, ${R})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":z}}}),b=(0,t.toRef)(l,"gutter"),m=(0,t.toRef)(l,"column"),A=(0,t.computed)(()=>u||p.value?!0:Se(l.isWrap)),C=[],g=z=>{C.push(z)},h=()=>{let z=C.length;C.splice(0,z)},N=(0,t.ref)(-1),B=z=>{const R=Fn(z).width;R>0&&R!==N.value&&(N.value=R)};wl(r,N.value,m.value,b.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&(0,t.watch)([N,m,b],([z,R,D])=>{i.order.index=0,wl(r,z,R,D,!1,l.minItemWidth,l.maxItemWidth,l.type)});const T=(0,t.computed)(()=>M.value?l.expandText??"":l.collapseText??""),V=(0,t.computed)(()=>({[`${e}__header-collapse-text`]:!0})),U=(0,t.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),W=(0,t.ref)(),$=(0,t.ref)(),P=(0,t.computed)(()=>q.value||me(l.height)||""),M=(0,t.ref)(!1),q=(0,t.ref)(""),O=(0,t.ref)(!1);let H=-1;const I=(z,R=!0)=>{const D=W.value;if(D&&M.value!==z){if(H=H<=0?du(D):H,O.value=!0,R)if(D.style["will-change"]="height",D.ontransitionend=function(){D.ontransitionend=null,this.style["will-change"]="auto",z||(q.value="",O.value=!1)},z){let x=0;l.collapseHeight?x=l.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(x=$.value.offsetHeight),q.value=`${H}px`,(0,t.nextTick)(()=>{q.value=`${x}px`})}else q.value=`${H}px`;else if(z){let x=0;l.collapseHeight?x=l.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(x=$.value.offsetHeight),q.value=`${x}px`}else O.value=!1,q.value=`${H}px`;M.value=z,a.emit("update:collapse",z)}};(0,t.watch)(()=>l.collapse,z=>{I(z)});const G=z=>{a.emit("header-click",z)},te=()=>{_()},_=z=>{z=z??!M.value,I(z)};be({toggleCollapse:_,doLayout:()=>{C[0]&&(B(C[0]),wl(r,N.value,m.value,b.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let Y=null,Z=!0;const E=z=>{if(l.rules&&S((0,t.toRaw)(l.rules)),l.pureDataRules&&S((0,t.toRaw)(l.pureDataRules),!0),!!Je&&(z&&I(Se(l.collapse),!1),l.autoLayout&&Array.isArray(C)&&C.length>0)){const R=C[0];if(B(R),window.ResizeObserver){const D=Ee(()=>B(R),120);Y=new window.ResizeObserver(D),Y.observe(R)}}},L=()=>{Y?.disconnect(),Y=null},X=!p.value||s?.acquire();X&&(d.value=p.value?!0:null),(0,t.onMounted)(()=>{if(X&&(E(Z),Z=!1),p.value&&s){let z=null,R=s.initialHeight;s.observe(W.value,D=>{if(D!==d.value)if(D)d.value=!0,M.value||(q.value=""),z=setTimeout(()=>{z=null,d.value!==!1&&(E(Z),Z=!1)},100);else{if(z!==null&&clearTimeout(z),d.value=!1,!M.value)if(Z)q.value=s.initialHeight;else{let x=Rl(W.value);x<=0?q.value=R:(q.value=`${x}px`,R=q.value)}Z||L()}})}}),(0,t.onUnmounted)(()=>{Y?.disconnect(),s&&s.unobserve(W.value)});const Q=(z="right")=>{const R=[];if(T.value){const F=(0,t.h)("span",{class:V.value},[T.value]);R.push(F)}const D={class:U.value},x=(0,t.h)(l.collapseIcon??o,D);return R.push(x),R.length>0?(0,t.h)("div",{class:{[`${w}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:te},R):null},ne=(z,R,D,x)=>{const F={...k.value};if(R===0&&(F[`${w}__first`]=!0),D>=x-1&&(F[`${w}__last`]=!0),A.value===!1){const j=a.attrs.class;j&&(F[`${j}`]=!0)}return(0,t.h)("div",{ref:g,key:`${R}`,class:F,style:f.value},z)};return()=>{const z=l.prop??l.name;if(p.value&&d.value!==!0)return(0,t.h)(l.tag||"div",{ref:W,prop:z,class:{[`${w}`]:!0,"is-collapse":O.value},style:y.value},[]);i.order.index=0;const R=[];let D=0;if(a.slots.header){const ee=(0,t.h)("div",{key:`${D++}`,ref:$,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:G},[a.slots.header()]);R.push(ee)}else{const ee=[],le=l.collapsePosition==="left";if(le&&l.showCollapse){const ie=Q("left");ie&&ee.push(ie)}if(l.title||a.slots.title){if(l.showMark){const ie={class:{[`${w}__header-mark`]:!0}};l.markColor&&(ie.style={background:l.markColor});const ue=(0,t.h)("div",ie);ee.push(ue)}if(a.slots.title){const ie=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[a.slots.title()]);ee.push(ie)}else if(l.title){const ie=(0,t.h)("div",{class:{[`${w}__header-title`]:!0}},[l.title]);ee.push(ie)}}if(a.slots.toolbar&&ee.push(a.slots.toolbar()),!le&&l.showCollapse){const ie=Q("right");ie&&ee.push(ie)}if(ee.length>0){const ie=(0,t.h)("div",{key:`${D++}`,ref:$,class:{[`${w}__header`]:!0,[`${w}__first`]:!0},onClick:G},ee);R.push(ie)}}h();const{getChildren:x}=Yn(a.slots.default),F=x(),j=i.layout.value.type;if(j==="grid"){const ee=ne(F,D++,0,F.length);R.push(ee)}else if(j==="flow"){const ee=ne(F,D++,0,F.length);R.push(ee)}else for(let ee=0;ee<F.length;ee++){const le=F[ee],ie=ne([le],D++,ee,F.length);R.push(ie)}return A.value?(0,t.h)(l.tag||"div",{ref:W,prop:z,class:{[`${w}`]:!0,"is-collapse":O.value},style:y.value},[R]):R}}}}var{componentName:vu,create:gu,scope:yu}=J("group"),bu=gu(hu(vu,yu,oe.RectUp)),io=bu;function Su(e){return e===window}var ku=/matrix\((.+)\)/,so=e=>{const n=(0,t.unref)(e);if(!n)return{x:0,y:0};if(Su(n))return{x:0,y:0};let o=0,l=0,a=n;for(;a!==null;)o+=a.offsetLeft,l+=a.offsetTop,a=a.offsetParent;let r=0,i=0,u=0,s=0;for(a=n;a!==document;){i+=a.scrollTop,r+=a.scrollLeft;const{transform:d}=window.getComputedStyle(a);if(d){const p=ku.exec(d);if(p){let c=p[1].split(/\s*,\s*/);c.length==6&&(u+=Number(c[4]),s+=Number(c[5]))}}a=a.parentNode}return o-=r,l-=i,o+=u,l+=s,{x:o,y:l}},wu=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{}})}},Cu=class{monitorRegister=new WeakMap;watch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let a=this.monitorRegister.get(o);a||(a=new wu,o.addEventListener("scroll",a.listen),o===document.body&&o.addEventListener("resize",a.listen),this.monitorRegister.set(o,a)),a.add(n),o=o.parentNode}}unwatch(e,n){let o=e.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let a=this.monitorRegister.get(o);a&&(a.remove(n),a.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",a.listen),o===document.body&&o.removeEventListener("resize",a.listen))),o=o.parentNode}}},Ht=new Cu,gi={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Nu,create:Au}=J("price"),Bu=Au({props:{...gi},setup(e){const n=(0,t.computed)(()=>({[Nu]:!0})),o=(0,t.computed)(()=>e.needSymbol?e.symbol:""),l=(0,t.computed)(()=>ke(e.price)==0?"":Vn(e.price,e.decimalLength,!0,de(e.digits),e.separator));return{classes:n,showSymbol:o,intText:(0,t.computed)(()=>{let a=l.value;if(a.length==0)return"";let r=a.indexOf(".");return a.substring(0,r)}),decimalText:(0,t.computed)(()=>{let a=l.value;if(a.length==0)return"";let r=a.indexOf(".");return a.substring(r+1)})}}}),ae=(e,n)=>{const o=e.__vccOpts||e;for(const[l,a]of n)o[l]=a;return o},Tu=["innerHTML"],Vu=["innerHTML"];function xu(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Tu)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--${e.size}`)},(0,t.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,t.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Vu)):(0,t.createCommentVNode)("",!0)],2)}var Xn=ae(Bu,[["render",xu]]),{componentName:Cl,create:$u}=J("hint-text"),Eu=$u({components:{Price:Xn},props:{...gi,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:()=>6},showArrow:{type:Boolean,default:()=>!0},arrowOffset:{type:Number,default:()=>20},offset:{type:Number,default:()=>12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const o=(0,t.ref)({top:null,right:null,bottom:null,left:null}),l=(0,t.ref)({x:0,y:0}),a=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(e.placement),u=(0,t.ref)(!1),s=(0,t.ref)(null),d=(V,U,W,$,P,M)=>{const q=document.documentElement.clientWidth||document.body.clientWidth,O=document.documentElement.clientHeight||document.body.clientHeight,H=V.split("-");let I=[];H[0]==="top"?I=["top","bottom","right","left"]:H[0]==="bottom"?I=["bottom","top","right","left"]:H[0]==="left"?I=["left","top","bottom","right"]:H[0]==="right"&&(I=["right","top","bottom","left"]);const G={top:null,right:null,bottom:null,left:null},te=[];for(let _=0;_<I.length;_++){const K=I[_];if(te[0]=K,H[1]&&(te[1]=H[1]),K==="top"){const Y=U.y-M-e.arrowSize-e.offset;if(Y>=0){G.top=Y;let Z=0;H[1]==="start"?Z=U.x:H[1]==="end"?Z=U.x+W-P:Z=U.x+W/2-P/2;const E=q-Z-P;E<0?(Z+=E,c.value=-E):c.value=0,G.left=Z<0?0:Z;break}}else if(K==="bottom"){const Y=U.y+$+e.arrowSize+e.offset;if(Y+M<=O){G.top=Y;let Z=0;H[1]==="start"?Z=U.x:H[1]==="end"?Z=U.x+W-P:Z=U.x+W/2-P/2;const E=q-Z-P;E<0?(Z+=E,c.value=-E):c.value=0,G.left=Z<0?0:Z;break}}else if(K==="left"){const Y=U.x-P-e.arrowSize-e.offset;if(Y>=0){G.left=Y;let Z=0;H[1]==="start"?Z=U.y:H[1]==="end"?Z=U.y+$-M:Z=U.y+$/2-M/2,G.top=Z<0?0:Z;break}}else if(K==="right"){const Y=U.x+W+e.arrowSize+e.offset;if(Y+P<=q){G.left=Y;let Z=0;H[1]==="start"?Z=U.y:H[1]==="end"?Z=U.y+$-M:Z=U.y+$/2-M/2,G.top=Z<0?0:Z;break}}}return{bestPlacement:te.join("-"),bestInsetRect:G}},p=(V,U,W=10)=>{if(!Je||U===!1||!V)return;l.value=so(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const $=s.value.offsetHeight,P=s.value.offsetWidth,{bestPlacement:M,bestInsetRect:q}=d(e.placement,l.value,a.value,r.value,P,$);i.value=M,o.value=q,u.value=!0},c=(0,t.ref)(0),v=Ee(()=>{p(e.message,e.visible)},10),S=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,V=>{S.value=V});const w=(0,t.computed)(()=>S.value&&y.value),y=(0,t.ref)(!0),k=Ee(V=>{const U=V[0];U&&(y.value=U.isIntersecting)},10),f=new IntersectionObserver(k);(0,t.watch)([()=>e.message,()=>e.visible],([V,U])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),(0,t.onMounted)(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Ht.watch(e.reference,v),f.observe(e.reference)}),(0,t.onBeforeUnmount)(()=>{Ht.unwatch(e.reference,v),f.unobserve(e.reference),f.disconnect()});const b=(0,t.computed)(()=>{const V={[Cl]:!0};return i.value.startsWith("top")?V["is-top"]=!0:i.value.startsWith("right")?V["is-right"]=!0:i.value.startsWith("bottom")?V["is-bottom"]=!0:i.value.startsWith("right")&&(V["is-right"]=!0),e.size==="small"?V["is-small"]=!0:e.size==="large"&&(V["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(V[`${e.customClass}`]=!0),V}),m=(0,t.computed)(()=>{const V={};return o.value.top!==null&&(V.top=`${o.value.top}px`),o.value.right!==null&&(V.right=`${o.value.right}px`),o.value.bottom!==null&&(V.bottom=`${o.value.bottom}px`),o.value.left!==null&&(V.left=`${o.value.left}px`),e.autoFit&&(V["min-width"]=`${a.value}px`),V["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,u.value&&(V.opacity="1"),e.transition||(V.transition="none"),e.zIndex&&(V["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(V,e.customStyle),V}),A=(0,t.computed)(()=>{const V=[`${Cl}__content`];return e.customTextClass&&V.push(e.customTextClass),V}),C=(0,t.computed)(()=>{const V={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(V,e.customTextStyle),V}),g=(0,t.computed)(()=>({[`${Cl}__arrow`]:!0})),h=(0,t.computed)(()=>{const V={};return e.showArrow?(V.width=`${e.arrowSize}px`,V.height=`${e.arrowSize}px`,i.value==="top"?(V.left="50%",V.bottom=`-${e.arrowSize}px`,V.transform=" translate(-50%, 0%)"):i.value==="top-start"?(V.left=`${e.arrowOffset+c.value}px`,V.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(V.right=`${e.arrowOffset-c.value}px`,V.bottom=`-${e.arrowSize}px`):i.value==="right"?(V.left=`-${e.arrowSize}px`,V.top="50%",V.transform=" translate(0%, -50%)"):i.value==="right-start"?(V.left=`-${e.arrowSize}px`,V.top=`${e.arrowOffset}px`):i.value==="right-end"?(V.left=`-${e.arrowSize}px`,V.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(V.left="50%",V.top=`-${e.arrowSize}px`,V.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(V.left=`${e.arrowOffset+c.value}px`,V.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(V.right=`${e.arrowOffset-c.value}px`,V.top=`-${e.arrowSize}px`):i.value==="left"?(V.right=`-${e.arrowSize}px`,V.top="50%",V.transform=" translate(0%, -50%)"):i.value==="left-start"?(V.right=`-${e.arrowSize}px`,V.top=`${e.arrowOffset}px`):i.value==="left-end"&&(V.right=`-${e.arrowSize}px`,V.bottom=`-${e.arrowOffset}px`),V):{display:"none"}}),N=(0,t.computed)(()=>w.value&&e.closeOnClick),B=(0,t.computed)(()=>{const V={};return e.zIndex&&(V["z-index"]=`${e.zIndex}`),V});return{show:w,tipRef:s,classes:b,styles:m,textClasses:A,textStyles:C,arrowClasses:g,arrowStyles:h,overlayShow:N,overlayStyle:B,onClickOverlay:()=>{S.value=!1,n.emit("update:visible",!1)}}}}),Du=["innerHTML"];function Iu(e,n,o,l,a,r){const i=(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)(i,{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,Du))],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 yi=ae(Eu,[["render",Iu]]),Qn=class{seed=0;constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},Fl={},qu=new Qn,vt=new Map,Nn=e=>{if(e){const n=document.getElementById(e);vt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of vt.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}vt.clear()}},Pu=e=>{e.unmount=Nn;const n=document.getElementById(e.id);if(n){const o=vt.get(e.id);return o?e={...Fl,...o,...e}:e={...Fl,...e},e.transition=!1,(0,t.render)((0,t.createVNode)(yi,e),n),e.id}},Mu=e=>{e.unmount=Nn;let n=e.id??`hinttext_${qu.get()}`;e={...Fl,...e},e.id=n,vt.set(n,e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(yi,e),o),document.body.appendChild(o),n},zu=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},$t={show(e,n,o={},l=!0){zu(n);const a=o.id;return a&&vt.has(a)?Pu({...o,message:n,reference:e}):(l&&Nn(),Mu({...o,message:n,reference:e}))},hide(e){Nn(e)},install(e){e.config.globalProperties.$hintText=$t}};function Lu(e,n,o,l=!1){return{inheritAttrs:!0,props:{...he,...ge},emits:["appear","disappear"],setup(a,r){const i=a.prop??r.attrs.name;Be({componentName:e,validate:!1},i);const u=tt(),s=Kn();Un(!1);const d=(0,t.computed)(()=>s&&u?Hn(u,!1).value:null),p=e,c=(0,t.ref)(null),v=(0,t.computed)(()=>{const x={[p]:!0,[`${p}__gutter`]:d.value&&d.value.type!=="flow",[`${p}__stretch`]:a.span==="stretch",[`${p}__input--border`]:Se(a.hasBorder)};if(x[a.errorMarkClass]=!!M.value,x[a.warnMarkClass]=!!$.value,x[a.infoMarkClass]=!!U.value,typeof c.value=="function"){const F=c.value(i);x[F]=!0}else if(typeof c.value=="string"){const F=c.value;x[F]=!0}return x}),S=(0,t.ref)(null),w=(0,t.computed)(()=>{const x={};if(a.width)a.width!=="auto"&&(x.width=me(a.width));else{const F=s&&u?_n(u,!1):null;if(d.value&&F){if(d.value.type==="grid"){const j=Wn(F,d.value,a.span,a.offset);Object.assign(x,j)}else if(d.value.type==="flow"){const j=jn(F,d.value,a.span,a.offset,a.width);Object.assign(x,j)}}}if(typeof S.value=="function"){const F=S.value(i);F&&Object.assign(x,F)}else if(S.value&&typeof S.value=="object"){const F=S.value;Object.assign(x,F)}return x}),y=(0,t.ref)(null),k=(0,t.computed)({get:()=>y.value??Se(a.isRequired),set:x=>{y.value=x}}),f=()=>typeof a.label=="string"&&a.label.length>0||typeof r.slots.label=="function",b=Ae((0,t.toRef)(a,"labelPosition"),"labelPosition",Ge.Near),m=(0,t.computed)(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),A=(0,t.computed)(()=>({[`${p}__main`]:!0,[`${p}__main--${m.value}`]:!0})),C=(0,t.computed)(()=>({label:!0,[`label--${m.value}`]:!0})),g=Ae((0,t.toRef)(a,"labelWidth"),"labelWidth",Ge.Near),h=(0,t.computed)(()=>g&&g.value?{width:me(g.value)}:{}),N=(0,t.computed)(()=>({"label--string":!0,"label--required":k.value})),B=(0,t.computed)(()=>({content:!0,[a.contentClass]:!0})),T=(0,t.computed)(()=>({...a.contentStyle})),V=(0,t.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired(x){k.value=x},setErrorTip(x){V.errorTip=x},setErrorIcon(x){V.errorIcon=x},setWarnTip(x){V.warnTip=x},setWarnIcon(x){V.warnIcon=x},setInfoTip(x){V.infoTip=x},setInfoIcon(x){V.infoIcon=x},setCustomClassName(x){c.value=x},setCustomStyle(x){S.value=x}});const U=(0,t.computed)(()=>a.infoTip||V.infoTip),W=(0,t.computed)(()=>a.infoIcon||V.infoIcon),$=(0,t.computed)(()=>a.warnTip||V.warnTip),P=(0,t.computed)(()=>a.warnIcon||V.warnIcon),M=(0,t.computed)(()=>a.errorTip||V.errorTip),q=(0,t.computed)(()=>a.errorIcon||V.errorIcon),O=(0,t.computed)(()=>M.value?"error":$.value?"warn":U.value?"info":""),H=()=>O.value.length>0,I=(0,t.computed)(()=>O.value==="error"?M.value:O.value==="warn"?$.value:O.value==="info"?U.value:""),G=(0,t.computed)(()=>O.value==="error"?q.value:O.value==="warn"?P.value:O.value==="info"?W.value:null),te=(0,t.computed)(()=>{const x={[`${p}__tip`]:!0,[`${p}__tip--${O.value}`]:!0,[`${p}--animate`]:!0};return O.value==="error"&&a.errorClass?x[`${a.errorClass}`]=!0:O.value==="warn"&&a.warnClass?x[`${a.warnClass}`]=!0:O.value==="info"&&a.infoClass&&(x[`${a.infoClass}`]=!0),x}),_=(0,t.computed)(()=>{const x={};return b&&b.value==="top"||!f()?x["padding-left"]="0px":g&&g.value&&(x["padding-left"]=me(g.value)),x}),K=(0,t.ref)();let Y="";(0,t.watch)([()=>a.hintVisible,()=>a.hintText,()=>a.hintType,()=>a.hintProps],([x,F,j,ee])=>{K.value&&(x&&!ce(F)?Y?o.show(K.value,F,{...ee,id:Y,type:j},!0):Y=o.show(K.value,F,{...ee,type:j},!0):o.hide(Y))});let Z=null;const E=()=>{Z||!K.value||(Z=new IntersectionObserver(x=>{let F=!1;for(let j of x)if(j.intersectionRatio>0){F=!0,F&&r.emit("appear",j);break}F||r.emit("disappear")}),Z.observe(K.value))},L=()=>{!Z||!K.value||(Z.unobserve(K.value),Z=null)};(0,t.watch)(()=>Se(a.appearListen),x=>{x?E():L()}),(0,t.onMounted)(()=>{Se(a.appearListen)&&E()}),(0,t.onUnmounted)(L);const X=()=>{if(!f())return null;const x=[],F=r.slots?.label?.()??a.label,j=(0,t.h)("div",{class:N.value},[F]);if(x.push(j),r.slots.fixedPreTip){const ee=r.slots.fixedPreTip();x.push(ee)}return(0,t.h)("div",{class:C.value,style:h.value},x)},Q=()=>{const x=[];if(r.slots.prepend){const F=r.slots.prepend();x.push(F)}if(r.slots.default){const F=r.slots.default();x.push(F)}if(r.slots.append){const F=r.slots.append();x.push(F)}if(r.slots.fixedTip){const F=(0,t.h)("div",{class:[`${p}__fixed-tip`]},[r.slots.fixedTip()]);x.push(F)}return(0,t.h)("div",{ref:K,class:B.value,style:T.value},x)},ne=()=>{const x=G.value;return x?typeof x=="function"?(0,t.h)("div",{class:"fox-item__tip--icon"},[x()]):(0,t.h)("div",{class:"fox-item__tip--icon"},[(0,t.h)(x)]):null},z=()=>{const x=I.value;return x?typeof x=="function"?(0,t.h)("div",{class:"fox-item__tip--text"},[x()]):(0,t.h)("div",{class:"fox-item__tip--text"},[x]):null},R=()=>{if(!H())return null;const x=[],F=ne();F&&x.push(F);const j=z();return j&&x.push(j),(0,t.h)("div",{class:te.value,style:_.value},x)},D=()=>r.slots?.hide?.()??null;return()=>{const x=[],F=[],j=X();j&&F.push(j);const ee=Q();ee&&F.push(ee);const le=(0,t.h)("div",{class:A.value},F);x.push(le);const ie=R();ie&&x.push(ie);const ue=D();return ue&&x.push(ue),(0,t.h)("div",{class:v.value,style:w.value,prop:a.prop},x)}}}}var{componentName:Ru,create:Fu,scope:Ou}=J("item"),Ku=Fu(Lu(Ru,Ou,$t,!1)),Et=Ku,bi={span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function Uu(e,n){return{props:bi,setup(o,l){const a=e,r=(0,t.computed)(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),i=tt(),u=Kn();Un(!1);const s=(0,t.computed)(()=>{const d={};if(o.width)o.width!=="auto"&&(d.width=me(o.width));else if(u&&i){const p=Hn(i,!1),c=_n(i,!1);if(p.value&&c){if(p.value.type==="grid"){const v=Wn(c,p.value,o.span,o.offset);Object.assign(d,v)}else if(p.value.type==="flow"){const v=jn(c,p.value,o.span,o.offset,o.width);Object.assign(d,v)}}}return o.gutter&&(d.gap=me(o.gutter)),d});return()=>{const d=[];if(l.slots.default){const p=l.slots.default();if(o.divide)for(let c=0;c<p.length;c++){if(c>0){const v=(0,t.h)("div",{class:{[`${a}__divide`]:!0}});d.push(v)}d.push(p[c])}else Reflect.apply([].push,d,p)}return(0,t.h)("div",{class:r.value,style:s.value},d)}}}}var{componentName:Hu,create:_u,scope:ju}=J("row-item"),Wu=_u(Uu(Hu,ju)),Gn=Wu,Yu=(0,t.defineComponent)({name:"ArrowDown",__name:"arrow-down",setup(e){return(n,o)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[(0,t.createElementVNode)("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}});function Xu(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},500)}var Qu={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 Gu(e,n,o,l=!1){return{props:{...Qu},emits:["click"],setup(a,r){const i=(0,t.ref)(null),u=(0,t.computed)(()=>{const m={[`${e}`]:!0,"is-truncated":a.truncated};return a.type&&(m[`${e}--${a.type??"default"}`]=!0),a.size&&(m[`${e}--${a.size}`]=!0),m}),s=(0,t.computed)(()=>{const m={},A=a.textColor??a.color;return A&&(m.color=A),m}),d=(m,A)=>{let C=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const g=a.highlightFilter;m.indexOf(g)!==-1&&(A.innerHTML=m.replace(new RegExp(g,"g"),`<span>${g}</span>`),A.class["is-highlight"]=!0,C=(0,t.h)(a.tag,A))}else if(typeof a.highlightFilter=="function"){const g=a.highlightFilter(m);g&&(A.innerHTML=g,A.class["is-highlight"]=!0,C=(0,t.h)(a.tag,A))}return C},p=m=>{r.emit("click",m)};let c="";const v=()=>{const m=i.value;if(!m)return;const A=m.clientWidth;Xu(m,C=>{const g=m.innerHTML??"";ce(g)||C<A||(c?o?.show(m,g,{type:"text",id:c,showArrow:a.showArrow},!0):c=o?.show(m,g,{type:"text",showArrow:a.showArrow},!0)??"")})},S=()=>{c&&o?.hide(c)};let w=null;const y=m=>{w||(w=setTimeout(()=>{v(),w=null},a.showAfter??0))},k=m=>{w&&(clearTimeout(w),w=null),setTimeout(()=>{S()},a.hideAfter??0)},f=()=>{const m=i.value;m&&(m.addEventListener("mouseover",y),m.addEventListener("mouseleave",k))},b=()=>{const m=i.value;m&&(m.removeEventListener("mouseover",y),m.removeEventListener("mouseleave",k))};return(0,t.onMounted)(()=>{!Se(a.showOverflowTooltip)||!o||f()}),(0,t.onBeforeUnmount)(()=>{!Se(a.showOverflowTooltip)||!o||b()}),()=>{const m={onClick:p,class:u.value,style:s.value,ref:i};let A=null;if(Se(a.numberFormat)&&typeof r.slots.default=="function"){const g=r.slots.default();if(Array.isArray(g)&&g.length===1){const h=g[0].type.toString();if(h==="Symbol(Text)"||h==="Symbol(v-txt)"){const N=de(a.digits),B=de(a.decimalLength),T=Se(a.autoPadding);let V=`${g[0].children}`,U=V.split("").reverse().join("");U=Vn(U,B,T,N,a.separator),V=U.split("").reverse().join(""),a.highlightFilter!==void 0&&(A=d(V,m)),A||(m.innerHTML=V,A=(0,t.h)(a.tag,m))}}}else{if(a.highlightFilter!==void 0&&typeof r.slots.default=="function"){const g=r.slots.default();if(Array.isArray(g)&&g.length===1){const h=g[0].type.toString();if(h==="Symbol(Text)"||h==="Symbol(v-txt)"){const N=`${g[0].children}`;A=d(N,m),A||(m.innerHTML=N,A=(0,t.h)(a.tag,m))}}}A||(A=(0,t.h)(a.tag,m,{default:r.slots.default}))}if(!a.mark&&!a.icon&&!r.slots.mark)return A;const C=[];if(r.slots.mark){const g={[`${e}__mark-wrap`]:!0};a.type&&(g[`${e}__mark-wrap--${a.type}`]=!0);const h={},N=a.color;N&&(h.color=N);const B=(0,t.h)("view",{class:g,style:h},{default:r.slots.mark});C.push(B)}else{const g={[`${e}__mark`]:!0};a.type&&(g[`${e}__mark--${a.type??"default"}`]=!0);const h={},N=a.color;N&&(h["background-color"]=N);const B=(0,t.h)("view",{class:g,style:h});C.push(B)}if(a.divide){const g=(0,t.h)("div",{class:{[`${e}__divide`]:!0}});C.push(g)}return C.push(A),(0,t.h)("view",{class:{"fox-text__wrap":!0,"text-left":a.textPosition==="left","text-right":a.textPosition==="right"}},C)}}}}var{componentName:Zu,create:Ju,scope:ec}=J("text"),tc=Ju(Gu(Zu,ec,$t,!1)),Ct=tc,nc={visible:{type:Boolean},reference:{type:[Object,String]},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function lc(e,n,o=!1){return{props:{...nc},emits:["update:visible"],setup(l,{emit:a,slots:r,expose:i}){const u=(0,t.ref)({top:null,right:null,bottom:null,left:null}),s=(0,t.ref)(0),d=(0,t.ref)(0),p=(0,t.ref)(0),c=(0,t.ref)(0),v=(0,t.ref)(l.placement),S=(0,t.ref)(!1),w=(0,t.ref)(!1),y=(0,t.ref)(null),k=()=>typeof l.reference=="string"?document.querySelector(l.reference):l.reference,f=(I,G,te,_,K,Y,Z,E=!0)=>{const L=document.documentElement.clientWidth||document.body.clientWidth,X=document.documentElement.clientHeight||document.body.clientHeight,Q=I.split("-");let ne=[];E?Q[0]==="top"?ne=["top","bottom","right","left"]:Q[0]==="bottom"?ne=["bottom","top","right","left"]:Q[0]==="left"?ne=["left","top","bottom","right"]:Q[0]==="right"&&(ne=["right","top","bottom","left"]):ne=[I[0]];const z={top:null,right:null,bottom:null,left:null},R=[];for(let D=0;D<ne.length;D++){const x=ne[D];if(R[0]=x,Q[1]&&(R[1]=Q[1]),x==="top"){const F=te-Z-l.arrowSize/2-l.offset;if(F>=0){z.top=F;let j=0;Q[1]==="start"?j=G:Q[1]==="end"?j=G+_-Y:j=G+_/2-Y/2;const ee=L-j-Y;ee<0?(j+=ee,m.value=-ee):m.value=0,z.left=j<0?0:j;break}}else if(x==="bottom"){const F=te+K+l.arrowSize/2+l.offset;if(F+Z<=X){z.top=F;let j=0;Q[1]==="start"?j=G:Q[1]==="end"?j=G+_-Y:j=G+_/2-Y/2;const ee=L-j-Y;ee<0?(j+=ee,m.value=-ee):m.value=0,z.left=j<0?0:j;break}}else if(x==="left"){const F=G-Y-l.arrowSize/2-l.offset;if(F>=0){z.left=F;let j=0;Q[1]==="start"?j=te:Q[1]==="end"?j=te+K-Z:j=te+K/2-Z/2,z.top=j<0?0:j;break}}else if(x==="right"){const F=G+_+l.arrowSize/2+l.offset;if(F+Y<=L){z.left=F;let j=0;Q[1]==="start"?j=te:Q[1]==="end"?j=te+K-Z:j=te+K/2-Z/2,z.top=j<0?0:j;break}}}return{bestPlacement:R.join("-"),bestInsetRect:z}},b=()=>{const I=l.visible,G=l.autoFit;if(!Je||I===!1)return;if(l.reference){const Z=k(),E=so(Z);s.value=E.x,d.value=E.y,p.value=Z.offsetWidth,c.value=Z.offsetHeight}else l.referenceInset&&(s.value=l.referenceInset.left,d.value=l.referenceInset.top,p.value=l.referenceInset.right-l.referenceInset.left,c.value=l.referenceInset.bottom-l.referenceInset.top);const te=y.value.offsetWidth,_=y.value.offsetHeight,{bestPlacement:K,bestInsetRect:Y}=f(l.placement,s.value,d.value,p.value,c.value,te,_,G);v.value=K,u.value=Y},m=(0,t.ref)(0),A=Ee(()=>{b()},10),C=(0,t.ref)(l.visible);(0,t.watch)([()=>l.visible],([I])=>{C.value=I,I?(S.value=I,setTimeout(()=>{b(),w.value=!0},0)):w.value=!1});const g=(0,t.computed)(()=>C.value&&h.value),h=(0,t.ref)(!0),N=Ee(I=>{const G=I[0];G&&(h.value=G.isIntersecting)},10),B=new IntersectionObserver(N);(0,t.watch)([()=>l.reference,()=>l.referenceInset],([I,G],[te,_])=>{!I&&!G||(setTimeout(()=>{b()},0),l.autoFit&&(te&&(Ht.unwatch(te,A),B.unobserve(te)),I&&(Ht.watch(I,A),B.observe(I))))},{immediate:!0}),(0,t.onBeforeUnmount)(()=>{l.reference&&(Ht.unwatch(l.reference,A),B.unobserve(l.reference),B.disconnect())});const T=(0,t.computed)(()=>{const I={[e]:!0};return v.value.startsWith("top")?I["is-top"]=!0:v.value.startsWith("right")?I["is-right"]=!0:v.value.startsWith("bottom")?I["is-bottom"]=!0:v.value.startsWith("left")&&(I["is-left"]=!0),I[`is-${l.effect}`]=!0,!w.value&&g.value&&(I["is-opacity"]=!0),w.value&&g.value&&(I["is-show"]=!0),g.value||(I["is-hide"]=!0),l.customClass&&typeof l.customClass=="string"&&(I[`${l.customClass}`]=!0),I}),V=(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}),U=()=>{C.value=!1,a("update:visible",!1)},W=()=>l.showOverlay?(0,t.h)("div",{class:`${e}__overlay`,onClick:U}):null,$=()=>{let I=null;return r.title?I=(0,t.h)("div",{class:`${e}__title`},{default:r.title}):l.title&&(I=(0,t.h)("div",{class:`${e}__title`},[l.title])),I},P=(0,t.computed)(()=>({[`${e}__arrow`]:!0})),M=(0,t.computed)(()=>{const I={};return l.showArrow?(I.width=`${l.arrowSize}px`,I.height=`${l.arrowSize}px`,v.value==="top"?(I.left="50%",I.bottom="0",I.transform="translate(-50%, 50%)"):v.value==="top-start"?(I.left=`${l.arrowOffset+m.value}px`,I.bottom="0",I.transform="translate(-50%, 50%)"):v.value==="top-end"?(I.right=`${l.arrowOffset-m.value}px`,I.bottom="0",I.transform="translate(-50%, 50%)"):v.value==="right"?(I.left="0",I.top="50%",I.transform="translate(-50%, -50%)"):v.value==="right-start"?(I.left="0",I.top=`${l.arrowOffset}px`,I.transform="translate(-50%, 50%)"):v.value==="right-end"?(I.left="0",I.bottom=`-${l.arrowOffset}px`,I.transform="translate(-50%, 50%)"):v.value==="bottom"?(I.left="50%",I.top="0",I.transform="translate(-50%, -50%)"):v.value==="bottom-start"?(I.left=`${l.arrowOffset+m.value}px`,I.top="0",I.transform="translate(-50%, -50%)"):v.value==="bottom-end"?(I.right=`${l.arrowOffset-m.value}px`,I.top="0",I.transform="translate(-50%, -50%)"):v.value==="left"?(I.right="0",I.top="50%",I.transform="translate(50%, -50%)"):v.value==="left-start"?(I.right="0",I.top=`${l.arrowOffset}px`,I.transform="translate(50%, -50%)"):v.value==="left-end"&&(I.right="0",I.bottom=`-${l.arrowOffset}px`,I.transform="translate(50%, -50%)"),I):{display:"none"}}),q=()=>(0,t.h)("div",{class:P.value,style:M.value}),O=()=>{C.value===!1&&(S.value=!1)},H=I=>{if(!y.value||C.value===!1)return;const{relatedTarget:G}=I;y.value.contains(G)||(C.value=!1,a("update:visible",!1))};return i({doLayout:b}),()=>{if(!S.value)return null;const I=[],G=W();G&&I.push(G);const te=[],_=$();if(_&&te.push(_),r.default){const E=r.default();te.push(E)}const K=q();K&&te.push(K);const Y={ref:y,class:T.value,style:V.value,onAnimationend:O};l.leaveHide&&(Y.onMouseleave=H);const Z=(0,t.h)("div",Y,{default:()=>te});return I.push(Z),(0,t.h)(t.Teleport,{to:l.teleport,disabled:l.teleportDisable},{default:()=>I})}}}}var{componentName:oc,create:ac,scope:rc}=J("popover-dialog"),ic=ac(lc(oc,rc,!1)),Zn=ic,sc={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function uc(e,n,o){return{props:{...bi,...sc},emits:["click"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),u=i(l,["moreText"]),s=e,d=(0,t.computed)(()=>({[s]:!0}));function p(C){return C.props||{}}function c(C){return!!p(C).disabled}function v(C){return C.children??[]}const S=(0,t.ref)(),w=(0,t.computed)(()=>S.value?.$el??null),y=(0,t.ref)(!1),k=C=>{y.value=C},f=()=>{y.value=!y.value};function b(C,g){return()=>{g||(y.value=!1,p(C)?.onClick?.())}}function m(C,g){const h=v(C),N=c(C),B=b(C,N),T=[`${s}__dropdown-item`];return N&&T.push("is-disabled"),(0,t.h)("span",{class:T,onClick:B},h)}const A=C=>{const g=l.maxDisplayCount??C.length;if(g>=C.length)return C;const h=[],N=g-1;for(let W=0;W<N;W++)h.push(C[W]);const B=(r.moreIcon&&r.moreIcon())??(l.moreIcon&&(0,t.h)(l.moreIcon))??(0,t.h)(o),T=(0,t.h)(Ct,{ref:W=>S.value=W,class:`${s}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:l.type,onClick:f},{default:()=>u.moreText.value,mark:()=>B});h.push(T);const V=[];for(let W=N;W<C.length;W++){const $=m(C[W],W);V.push($)}const U=(0,t.h)(Zn,{placement:l.dropdownPlacement,"onUpdate:visible":k,visible:y.value,reference:w.value,"custom-class":`${s}__popover`},{default:()=>V});return h.push(U),h};return()=>{const{getChildren:C}=Yn(r?.default),g=A(C());return(0,t.h)(Gn,{class:d.value},{default:()=>g})}}}}var{componentName:cc,create:dc,scope:fc}=J("buttons-item"),mc=dc(uc(cc,fc,Yu)),uo=mc,pc={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function hc(e,n){return{props:pc,setup(o,l){const a=tt(),r=Kn();Un(!1);const i=(0,t.computed)(()=>r&&a?Hn(a,!1).value:null),u=e,s=(0,t.computed)(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),d=(0,t.computed)(()=>{const p={};if(o.width)o.width!=="auto"&&(p.width=me(o.width));else{const c=r&&a?_n(a,!1):null;if(i.value&&c){if(i.value.type==="grid"){const v=Wn(c,i.value,o.span,o.offset);Object.assign(p,v)}else if(i.value.type==="flow"){const v=jn(c,i.value,o.span,o.offset,o.width);Object.assign(p,v)}}}return p});return()=>{const p={class:s.value,style:d.value};return l.slots&&typeof l.slots.default=="function"?(0,t.h)("div",p,l.slots.default()):(0,t.h)("div",p)}}}}var{componentName:vc,create:gc,scope:yc}=J("slot-item"),bc=gc(hc(vc,yc)),co=bc;function qe(e,n={}){return(0,t.h)(Et,e,n)}function Sc(e,n,o,l,a){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[a]){let s=n;for(let d=0;s&&d<r.length;d++){let p=r[d],c=s.find(v=>v[l]===p);if(!c)break;i.push(c[o])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<r.length;s++){let d=n[s],p=r[s];const c=d.find(v=>v[l]===p);if(!c)break;i.push(c[o])}else{let s=n;for(let d=0;s&&d<r.length;d++){let p=r[d],c=s.find(v=>v[l]===p);if(!c)break;i.push(c[o]),s=c[a]}}return i}var kc=class{proxy;constructor(e){this.proxy=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=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function wc(){return new kc((0,t.getCurrentInstance)().proxy)}var Cc={tag:{type:[String,Object],required:!1,default:"span"},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1}};function Nc(e,n,o=!1){return{props:Cc,setup(l,{attrs:a,slots:r}){const i=wc(),u=(0,t.ref)([]);(0,t.watch)([()=>l.source,()=>l.params],async([d,p])=>{u.value=await i.load(l.sourceType,d,p)},{immediate:!0});const s=(0,t.computed)(()=>{if(!Array.isArray(u.value)||u.value.length===0)return l.emptyText;let d=Sc(l.modelValue,u.value,l.textKey,l.valueKey,l.childrenKey);return d.length==0?l.emptyText??"":d.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${d[0]}`:d[0]:d.join(l.separator)});return()=>{const d={...a};if(r.default)return r.default({text:s.value,value:l.modelValue});const p=l.tag??"span";return typeof p=="object"?(0,t.h)(p,d,{default:()=>s.value}):(0,t.h)(p,d,[s.value])}}}}var{componentName:Ac,create:Bc,scope:Tc}=J("mapping"),Vc=Bc(Nc(Ac,Tc,!1)),Jn=Vc;function Me(e,n,o,l){const a="fox-browse-item";let r=null;o?r=(0,t.h)(Jn,{class:[`${a}__mapping`],source:o,modelValue:e,separator:l},{default:u=>(0,t.h)(Ct,{class:[`${a}__text`]},{default:()=>u.text})}):r=(0,t.h)(Ct,{class:[`${a}__text`]},{default:()=>e});const i={label:n.default,default:()=>r};return(0,t.h)(Et,{class:[a]},i)}var Si={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}},xc={...he,...ge,...Si};function $c(e,n,o,l,a){return{props:xc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(r,i){const{innerDisabled:u,disabled:s,innerReadonly:d,readonly:p,browse:c}=Ie(r),{emitEvent:v}=Be({componentName:e,get readonly(){return p.value},get disabled(){return s.value}},r.prop??i.attrs.name),{toLocaleRefs:S}=(0,pe.useFoxI18n)(n),w=S(r,["placeholder"]),y=(0,t.ref)(!1),k=De(r,"modelValue",null,v),f=e,b=(0,t.computed)(()=>({[f]:!0,"is-disabled":s.value,"is-readonly":p.value})),m=Ae((0,t.computed)(()=>r.textAlign),"textAlign"),A=(0,t.computed)(()=>{const H={};return m.value&&(H["text-align"]=m.value),H}),C=H=>{let I=H.target.value;r.type==="digit"&&(I=Pl(I,!0)),r.type==="number"&&(I=Pl(I,!1)),r.maxLength&&I.length>Number(r.maxLength)&&(I=I.slice(0,Number(r.maxLength))),k.value=I,v("update:modelValue",I,H),v("change",I,H)};let g=De(r,"hintText"),h=(0,t.ref)(!1);const N=H=>{let I=H.target.value;y.value=!0,ce(g.value)||(h.value=!0),v("focus",I,H)},B=H=>{setTimeout(()=>{h.value&&(h.value=!1),y.value=!1},0);let I=H.target.value;r.maxLength&&I.length>Number(r.maxLength)&&(I=I.slice(0,Number(r.maxLength))),v("blur",I,H)},T=(0,t.computed)(()=>({[`${f}__append`]:!0,"is-disabled":s.value,"is-readonly":p.value})),V=(0,t.computed)(()=>{const H={};return i.slots.append&&!U.value&&!q.value&&(H.display="none"),H}),U=(0,t.computed)(()=>ke(r.unit)>0),W=(0,t.computed)(()=>!q.value),$=(0,t.computed)(()=>({[`${f}__unit`]:!0,hidden:!W.value})),P=H=>{k.value="",v("update:modelValue","",H),v("change","",H),v("clear","")},M=(0,t.computed)(()=>Se(r.clearable)&&!s.value&&!p.value),q=(0,t.computed)(()=>{let H=ke(k.value)>0;return Se(r.clearable)&&H&&y.value}),O=(0,t.computed)(()=>({action:!0,hidden:!q.value}));return be({setDisabled:H=>{u.value=H},setReadonly:H=>{d.value=H}}),()=>{if(c.value==="on"&&(p.value||s.value))return l(k.value,i.slots);const H={class:b.value,style:A.value,type:r.type,maxlength:r.maxLength,placeholder:w.placeholder.value,disabled:s.value,readonly:p.value,value:k.value,"adjust-position":r.adjustPosition,"always-system":r.alwaysSystem,onInput:C,onFocus:N,onBlur:B},I=[],G=(0,t.h)("input",H);I.push(G);const te=[];if(M.value){const Z=(0,t.h)(a,{class:["action-icon"]}),E=(0,t.h)("view",{class:O.value,onClick:P},{default:()=>[Z]});te.push(E)}if(U.value){const Z=(0,t.h)("view",{class:$.value},[r.unit]);te.push(Z)}const _=(0,t.h)("view",{class:T.value,style:V.value},{default:()=>te});I.push(_);const K={default:()=>I};K.label=i.slots.default,K.prepend=i.slots.prepend,K.append=i.slots.append,K.fixedPreTip=i.slots.fixedPreTip,K.fixedTip=i.slots.fixedTip;const Y={...et(r,Si),hintText:g.value,hintVisible:h.value};return r.prop&&(Y.prop=`${r.prop}_item`),o(Y,K)}}}}var{componentName:Ec,create:Dc,scope:Ic}=J("input-item"),qc=Dc($c(Ec,Ic,qe,Me,oe.CircleClose)),fo=qc;function Ja(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let a=l;for(let r=o.length-1;r>=l;r--)if(o.charAt(r)!="0"){a=r;break}return a-l<n?a=l+n+1:a!=l&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function er(e,n,o=20){return typeof n=="string"&&(n=de(n)),n==1||n==-1?`${e}`:n==0?"0":n>0?Ja(qr(`${e}`,`${n}`)):Ja(Xl(`${e}`,Pr(`${n}`),20))}function Pc(e,n=-1,o=!1,l=3,a=","){return Vn(e,de(n),o,l,a)}function tr(e,n,o,l,a=!0){if(e==="")return"";if(e=Mr(e),n=de(n),n==1)return e;if(l)e=er(e,n),o&&(e=="0"&&a?e=`${e}.`.padEnd(de(o)+2,"0"):e=Xl(e,1,de(o)));else{let r=-1*n;e=er(e,r)}return e}function nr(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=Se(n.minInclude),a=Il(e,n.min);(l&&a==-1||!l&&(a==0||a==-1))&&(o.message="请输入不小于 {0} 的数值".replace("{0}",n.min),o.minValid=!1)}if(n.max!=null){let l=Se(n.maxInclude),a=Il(e,n.max);(l&&a==1||!l&&(a==0||a==1))&&(o.maxValid=!1)}return o}var ki={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]}},Mc={...he,...ge,...ki};function zc(e,n,o,l,a){return{props:Mc,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(r,i){const{innerDisabled:u,disabled:s,innerReadonly:d,readonly:p,browse:c}=Ie(r),{emitEvent:v}=Be({componentName:e,get readonly(){return p.value},get disabled(){return s.value}},r.prop??i.attrs.name),S=(0,t.ref)(!1),w=De(r,"modelValue",null,v),y=(0,t.ref)("");(0,t.watch)([()=>w.value,()=>r.rates,()=>r.precision],([K,Y,Z])=>{if(ce(K)){y.value="";return}const E=tr(K,Y,Z,!1);y.value!==E&&(y.value=E)},{immediate:!0});const k=(0,t.computed)(()=>{let K="";return S.value&&(K=y.value),K}),{t:f}=(0,pe.useFoxI18n)(n),b=(0,t.computed)(()=>{let K=r.placeholder??"";return!S.value&&!ce(y.value)?K=Pc(y.value,r.decimalLength,r.autoPadding,r.digits,r.separator):K=ce(K)?f(["placeholder"]):K,K}),m=e,A=(0,t.computed)(()=>({[m]:!0,[`${m}__placeholder`]:y.value.length>0,"is-disabled":s.value,"is-readonly":p.value})),C=Ae((0,t.computed)(()=>r.textAlign),"textAlign"),g=(0,t.computed)(()=>{const K={};return C.value&&(K["text-align"]=C.value),K}),h=(0,t.ref)(""),N=(0,t.computed)(()=>{let K=h.value;return ce(K)&&(K=r.errorTip??""),K}),B=(0,t.ref)(""),T=(0,t.ref)(!1),V=K=>{let Y=K.target.value;if(ce(Y)){y.value="",w.value="",v("update:modelValue","",K),v("change","",K),Se(r.showTip)&&T.value&&(T.value=!1);return}if(Y.length>=2){let Z=Y;if(Z.charAt(0)=="-"&&(Z=Z.substring(1)),Z.length>=2&&Z.charAt(0)=="0"&&Z.charAt(1)!="."){(0,t.triggerRef)(y);return}}if(Y!="-"){if(!En(Y)){(0,t.triggerRef)(y);return}if(r.integerLength!=-1&&Hr(Y)>Number(r.integerLength)){(0,t.triggerRef)(y);return}if(r.decimalLength&&r.decimalLength!=-1&&_r(Y)>Number(r.decimalLength)){(0,t.triggerRef)(y);return}let Z=nr(Y,r);if(Z.maxValid===!1){h.value=Z.message,(0,t.triggerRef)(y);return}}else if(r.min!=null&&de(r.min)>=0){(0,t.triggerRef)(y);return}B.value=Y,Se(r.showTip)&&(T.value=Y.length>0),y.value=Y,w.value=tr(Y,r.rates,r.precision,!0),v("update:modelValue",w.value,K),v("change",w.value,K)},U=K=>{if(S.value=!0,Se(r.showTip)){let Y=y.value;ce(Y)&&(Y=r.hintText),ce(Y)||(B.value=Y,T.value=!0)}h.value="",v("focus",w.value,K)},W=K=>{if(setTimeout(()=>{S.value=!1,Se(r.showTip)&&T.value===!0&&(T.value=!1)},0),!ce(y.value)){let Y=nr(y.value,r);if(Y.minValid===!1||Y.maxValid===!1){h.value=Y.message;return}}v("update:modelValue",w.value,K),v("blur",w.value,K)},$=(0,t.computed)(()=>({[`${m}__append`]:!0,"is-disabled":s.value,"is-readonly":p.value})),P=(0,t.computed)(()=>{const K={};return i.slots.append&&!M.value&&!G.value&&(K.display="none"),K}),M=(0,t.computed)(()=>ke(r.unit)>0),q=(0,t.computed)(()=>!G.value),O=(0,t.computed)(()=>({[`${m}__unit`]:!0,hidden:!q.value})),H=K=>{w.value="",v("update:modelValue","",K),v("change","",K),v("clear","")},I=(0,t.computed)(()=>Se(r.clearable)&&!s.value&&!p.value),G=(0,t.computed)(()=>{let K=ke(w.value)>0;return Se(r.clearable)&&K&&S.value}),te=(0,t.computed)(()=>({action:!0,hidden:!G.value}));be({setDisabled:K=>{u.value=K},setReadonly:K=>{d.value=K}});const _=()=>w.value?b.value:w.value;return()=>{if(c.value==="on"&&(p.value||s.value))return l(_(),i.slots);let K={class:A.value,style:g.value,type:"digit",maxlength:r.maxLength,placeholder:b.value,disabled:s.value,readonly:p.value,value:k.value,"adjust-position":r.adjustPosition,"always-system":r.alwaysSystem,onInput:V,onFocus:U,onBlur:W},Y=[],Z=(0,t.h)("input",K);Y.push(Z);let E=[];if(I.value){const ne=(0,t.h)(a,{class:["action-icon"]}),z=(0,t.h)("view",{class:te.value,onClick:H},{default:()=>[ne]});E.push(z)}if(M.value){const ne=(0,t.h)("view",{class:O.value},[r.unit]);E.push(ne)}const L=(0,t.h)("view",{class:$.value,style:P.value},{default:()=>E});Y.push(L);const X={default:()=>Y};X.label=i.slots.default,X.prepend=i.slots.prepend,X.append=i.slots.append,X.fixedPreTip=i.slots.fixedPreTip,X.fixedTip=i.slots.fixedTip;const Q={...et(r,ki),errorTip:N.value,hintText:B.value,hintVisible:T.value,hintType:"number"};return r.prop&&(Q.prop=`${r.prop}_item`),o(Q,X)}}}}var{componentName:Lc,create:Rc,scope:Fc}=J("money-item"),Oc=Rc(zc(Lc,Fc,qe,Me,oe.CircleClose)),mo=Oc,Ol={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:Kc,create:Uc,scope:Hc}=J("textarea"),_c=Uc({props:{...Ol},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:o}=(0,pe.useFoxI18n)(Hc);const l=o(e,["placeholder"]),a=(0,t.ref)(),r=(0,t.computed)(()=>{const v=Kc;return{[v]:!0,[`${v}--disabled`]:e.disabled}});(0,t.onMounted)(()=>{e.modelValue&&s(String(e.modelValue)),e.autosize&&(0,t.nextTick)(u)});const i=(0,t.computed)(()=>({textAlign:e.textAlign})),u=()=>{let v=a.value;v.style.height="auto";let S=v.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:w,minHeight:y}=e.autosize;w!==void 0&&(S=Math.min(S,w)),y!==void 0&&(S=Math.max(S,y))}S&&(console.info("----------- height",S),v.style.height=S+"px")};(0,t.watch)(()=>e.modelValue,()=>{e.autosize&&(0,t.nextTick)(u)});const s=(v,S)=>{e.maxLength&&v.length>Number(e.maxLength)&&(v=v.substring(0,Number(e.maxLength))),n("update:modelValue",v,S),n("change",v,S)};return{...l,textareaRef:a,classes:r,styles:i,change:v=>{const S=v.target;s(S.value,v)},focus:v=>{e.disabled||e.readonly||n("focus",v)},blur:v=>{if(e.disabled||e.readonly)return;let S=v.target.value;s(S,v),n("blur",{value:S,event:v})}}}}),jc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Wc={key:0,class:"fox-textarea__limit"};function Yc(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:(0,t.normalizeStyle)(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...i)=>e.change&&e.change(...i)),onBlur:n[1]||(n[1]=(...i)=>e.blur&&e.blur(...i)),onFocus:n[2]||(n[2]=(...i)=>e.focus&&e.focus(...i)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,jc),e.limitShow?((0,t.openBlock)(),(0,t.createElementBlock)("view",Wc,(0,t.toDisplayString)(e.modelValue?e.modelValue.length:0)+"/"+(0,t.toDisplayString)(e.maxLength),1)):(0,t.createCommentVNode)("",!0)],2)}var el=ae(_c,[["render",Yc]]);function Xc(e,n,o,l){return{props:{...he,...ge,...Ol},emits:["update:modelValue","change","blur","focus","setValue"],setup(a,r){const i=Rn((0,t.computed)(()=>a.disabled)),u=Ln((0,t.computed)(()=>a.readonly)),{emitEvent:s}=Be({componentName:e,get readonly(){return u.value},get disabled(){return i.value}},a.prop??r.attrs.name),d=De(a,"modelValue",null,s),p=y=>{d.value=y,s("update:modelValue",y,{}),s("change",y,{})};let c=De(a,"hintText"),v=(0,t.ref)(!1);const S=y=>{ce(c.value)||(v.value=!0),s("focus",d.value,y)},w=y=>{setTimeout(()=>{v.value&&(v.value=!1)},0),s("blur",d.value,y)};return()=>{const y={...ve(a,Ol),disabled:i.value,readonly:u.value,value:d.value,"onUpdate:modelValue":p,onFocus:S,onBlur:w},k=[],f=(0,t.h)(l,y);k.push(f);const b={default:()=>k};b.label=r.slots.default,b.prepend=r.slots.prepend,b.append=r.slots.append,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const m={...ve(a,ge,he)};return a.prop&&(m.prop=`${a.prop}_item`),(0,t.h)(o,m,b)}}}}var{componentName:Qc,create:Gc,scope:Zc}=J("textarea-item"),Jc=Gc(Xc(Qc,Zc,Et,el)),po=Jc;function ed(e){return e===window}var $e=e=>{const n=(0,t.unref)(e);if(ed(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}},lr=10;function wi(e,n){return e>n&&e>lr?"horizontal":n>e&&n>lr?"vertical":""}function tl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function nl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(i=>{if(i.touches){const u=i.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=i;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=wi(e.offsetX,e.offsetY))}),start:(i=>{if(l(),i.touches){const u=i.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()}),reset:l,isVertical:n,isHorizontal:o,state:e}}function lt(){const e=(0,t.ref)(0),n=(0,t.ref)(0),o=(0,t.ref)(0),l=(0,t.ref)(0),a=(0,t.ref)(0),r=(0,t.ref)(0),i=(0,t.ref)(0),u=(0,t.ref)(0),s=(0,t.ref)(0),d=(0,t.ref)(0),p=(0,t.ref)(""),c=()=>p.value==="vertical",v=()=>p.value==="horizontal",S=()=>{i.value=0,u.value=0,s.value=0,d.value=0,p.value="",o.value=0};return{move:(k=>{if(k.touches){const f=k.touches[0];i.value=f.clientX-e.value,u.value=f.clientY-n.value,a.value=f.clientX,r.value=f.clientY}else{const f=k;i.value=f.clientX-e.value,u.value=f.clientY-n.value,a.value=f.clientX,r.value=f.clientY}s.value=Math.abs(i.value),d.value=Math.abs(u.value),l.value=Date.now()-o.value,p.value||(p.value=wi(s.value,d.value))}),start:(k=>{if(S(),k.touches){const f=k.touches[0];e.value=f.clientX,n.value=f.clientY}else{const f=k;e.value=f.clientX,n.value=f.clientY}o.value=Date.now()}),reset:S,startX:e,startY:n,startTime:o,duration:l,moveX:a,moveY:r,deltaX:i,deltaY:u,offsetX:s,offsetY:d,direction:p,isVertical:c,isHorizontal:v}}var td=2e3,or=()=>td++,Ze={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:{}}},nd=(e,n)=>({components:n,props:{...Ze},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const a=(0,t.reactive)({zIndex:0,showSlot:!0,closed:o.closeable});o.visible&&(a.zIndex=or());const r=(0,t.computed)(()=>{const y=e,k=[y,`${y}--${o.position}`];return o.round&&k.push("round"),o.position==="bottom"&&o.safeAreaInsetBottom&&k.push(`${y}--${o.position}--safebottom`),typeof o.popClass=="string"?k.push(o.popClass):Array.isArray(o.popClass)&&o.popClass.forEach(f=>{k.push(f)}),k}),i=(0,t.computed)(()=>({zIndex:a.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?a.zIndex=o.zIndex:a.zIndex=or(),o.destroyOnClose&&(a.showSlot=!0),l("open")},d=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+o.duration*1e3)},p=y=>{l("click-pop",y)},c=y=>{y.stopPropagation(),l("click-close-icon",y),l("update:visible",!1)},v=y=>{l("click-overlay",y),o.closeOnClickOverlay&&l("update:visible",!1)},S=y=>{l("opend",y)},w=y=>{l("closed",y)};return(0,t.watch)(()=>o.visible,y=>{o.visible?s():d()}),(0,t.watch)(()=>o.closeable,y=>{a.closed=y}),{...(0,t.toRefs)(a),popStyle:i,transitionName:u,classes:r,onClick:p,onClickCloseIcon:c,onClickOverlay:v,onOpened:S,onClosed:w}}}),Ci={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},ho={...Ze,...Ci,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}},Ni=36;function ld(){return Ni}function od(e){Ni=e}function Re(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Kl(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function ad(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 ar(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}var rd=class{proxy;constructor(e){this.proxy=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=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function id(){return new rd((0,t.getCurrentInstance)().proxy)}function rr(e,n,o){return!(Re(e,n)!==Re(e,o)||it(e,n)!==it(e,o))}function sd(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const a=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<o.length;i++){const u=n[i];let s=o[i].findIndex(d=>{if(r==="text")return Re(e,d)===u;if(r==="value"){let p=it(e,d);return p==null&&(p=Re(e,d)),p===u}else if(r==="item")return rr(e,d,u)});if(s==-1)break;a.push(s)}else{let i=o[0];for(let u=0;u<n.length;u++){const s=n[u];let d=i.findIndex(c=>{if(r==="text")return Re(e,c)===s;if(r==="value"){let v=it(e,c);return v==null&&(v=Re(e,c)),v===s}else if(r==="item")return rr(e,c,s)});if(d==-1)break;a.push(d);const p=Kl(e,i[d]);if(!Array.isArray(p))break;i=p}}return a}function ir(e,n,o,l){if(o.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<o.length;i++){const u=o[i];let s=n[i];s<0&&s>=u.length&&(s=0);const d=u[s],p=Re(e,d);if(a.texts.push(p),a.items.push(d),r==="text")a.values.push(p);else if(r==="value"){let c=it(e,d);c==null&&(c=p),a.values.push(c)}else a.values.push(d)}else{let i=o[0];for(let u=0;u<n.length;u++){let s=n[u];s<0&&s>=i.length&&(s=0);const d=i[s],p=Object.assign({},d);p.children=null;const c=Re(e,d);if(a.texts.push(c),a.items.push(p),r==="text")a.values.push(c);else if(r==="value"){let v=it(e,d);v==null&&(v=c),a.values.push(v)}else a.values.push(p);if(!Array.isArray(d.children))break;i=d.children}}return a}function sr(e){return{text:e,value:e}}var ud=15,cd=300,dd=200,{create:fd}=J("picker-column");function md(e){e.stopPropagation()}function pd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&md(e)}var hd={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},...Ci},vd=fd({props:hd,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`})),a=(0,t.computed)(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=(0,t.computed)(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=h=>{const N=h+1;return N>=c.currIndex+8||N<=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:`${r.value}px`})),s=h=>{const N=h+1;return`transform: rotate3d(1, 0, 0, ${-c.rotation*N}deg) translate3d(0px, 0px, 104px)`},d=(0,t.computed)(()=>({transition:`transform ${c.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${c.scrollDistance+r.value}px, 0)`})),p=(0,t.ref)(null),c=(0,t.reactive)({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),v=h=>Re(e,h),S=h=>it(e,h),w=lt(),y=()=>{c.transitionEndTrigger&&(c.transitionEndTrigger(),c.transitionEndTrigger=null)},k=(h,N=!1,B=!1)=>{if(c.currIndex=h,N){const T=()=>{c.moving=!1,n("update:modelValue",h),n("change",h)};B?c.transitionEndTrigger=T:T()}},f=(h,N,B)=>{let T=h+c.startDistance;if(N==="end"){const V=-(e.source.length-1)*e.itemHeight;T<V&&(T=V),T>0&&(T=0);let U=Math.abs(Math.round(-T/e.itemHeight));const W=-U*e.itemHeight,$=`${(U+1)*c.rotation}deg`;k(U,!0,B?B>0:!1),b(W,N,B,$)}else{let V=(-T/e.itemHeight+1)*c.rotation;const U=(e.source.length+1)*c.rotation,W=0;if(V=Math.min(Math.max(V,W),U),e.threeDimensional&&(V<W||V>U))return;b(T,null,void 0,`${V}deg`)}},b=(h=0,N,B=dd,T)=>{N==="end"?c.scrollTime=B:c.scrollTime=0,c.deg=T,c.scrollDistance=h},m=(h,N)=>(h=Math.abs(h/N)/.003*(h<0?-1:1),h),A=h=>{e.readonly||(c.startDistance=c.scrollDistance,w.start(h),c.transitionEndTrigger=null)},C=h=>{e.readonly||(c.moving=!0,w.move(h),w.isVertical()&&(c.moving=!0,pd(h,!0)),f(w.deltaY.value,"",0))},g=()=>{if(e.readonly)return;const h=w.deltaY.value,N=w.duration.value;N<cd&&Math.abs(h)>ud?f(m(h,N),"end",de(e.swipeDuration)):f(h,"end",0)};return(0,t.watch)(()=>e.modelValue,h=>{const N=c.currIndex-h;N!==0&&(c.currIndex=h,c.startDistance=c.scrollDistance,f(N*e.itemHeight,"",0))}),(0,t.watch)(()=>e.source,h=>{if(c.currIndex>=h.length){const N=(h.length-1-c.currIndex)*e.itemHeight;c.startDistance=c.scrollDistance,f(N,"end",0)}}),(0,t.watch)(()=>e.visible,h=>{h===!1&&y()}),(0,t.onMounted)(()=>{f(-e.modelValue*e.itemHeight)}),{classes:o,styles:l,contentClasses:a,itemText:v,itemValue:S,...(0,t.toRefs)(c),roller:p,getItemText:Re,onTouchStart:A,onTouchMove:C,onTouchEnd:g,isHidden:i,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:d,stopMomentum:y}}}),gd={key:1,class:"fox-picker__item-tile"};function yd(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[(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,(i,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(i)),7)):((0,t.openBlock)(),(0,t.createElementBlock)("view",gd,(0,t.toDisplayString)(e.itemText(i)),1))],64))),128))],6)],38)}var bd=ae(vd,[["render",yd]]),Mt=0,ur="fox-overflow-hidden",cr=()=>Je?document.body:{classList:[]},Sd=e=>[()=>{if(e())try{!Mt&&cr().classList.add(ur),Mt++}catch{}},()=>{if(e()&&Mt)try{Mt--,!Mt&&cr().classList.remove(ur)}catch{}}],kd={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:wd,create:Cd}=J("overlay"),Nd=Cd({props:{...kd},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=Sd(()=>e.lockScroll),a=(0,t.computed)(()=>({[wd]:!0,[e.overlayClass]:!0})),r=(0,t.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,t.watch)(()=>e.visible,u=>{u?o():l()}),{classes:a,style:r,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Ad(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"overlay-fade"},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var st=ae(Nd,[["render",Ad]]),{componentName:Bd,create:Td}=J("popup"),Vd=Td(nd(Bd,{FoxOverLay:st,Close:oe.Close}));function xd(e,n,o,l,a,r){const i=(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)(i,(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 ye=ae(Vd,[["render",xd]]),$d=(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)(ye,et({...e},{poppable:!1}),n):n?.default?.()??null}}),Ed=$d,{create:Dd,componentName:dr,scope:Id}=J("picker"),qd=Dd({components:{Column:bd,Wrapper:Ed},props:ho,emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=(0,pe.useFoxI18n)(Id),a=o(e,["title","cancelText","clearText","confirmText"]),r=(0,t.ref)(null),i=(0,t.ref)(ld());(0,t.watch)(()=>e.visible,M=>{M&&i.value<=0&&setTimeout(()=>{r.value&&(i.value=$e(r.value).height,od(i.value))},50)});const u=(0,t.computed)(()=>({[dr]:!0})),s=(0,t.computed)(()=>{const M=[];return Array.isArray(e.popClass)?M.push(...e.popClass):typeof e.popClass=="string"&&e.popClass.length>0&&M.push(e.popClass),M.push(`${dr}__popup`),M.join(" ")}),d=id(),p=(0,t.ref)("singleColumn");let c=(0,t.ref)([]);const v=(0,t.computed)(()=>{if(typeof e.sourceFilter=="function"){const M=[];for(let q=0;q<c.value.length;q++){const O=c.value[q];if(Array.isArray(O)){const H=O.filter(e.sourceFilter);M.push(H)}}return M}return c.value});(0,t.watch)([()=>e.source,()=>e.params],async([M,q])=>{if(M){let O=await d.load("picker",M,q);if(O.length>0){let H=O[0];if(Array.isArray(H)){if(typeof H[0]=="string"){let I=O,G=[];I.forEach(te=>{let _=te.map(K=>sr(K));G.push(_)}),c.value=G}else c.value=O;p.value="multipleColumn"}else if(typeof H=="string"){let I=O,G=[],te=I.map(_=>sr(_));G.push(te),c.value=G,p.value="singleColumn"}else{const I=Kl(e,H);Array.isArray(I)?(p.value="cascade",c.value=[O]):(p.value="singleColumn",c.value=[O])}}else c.value=[]}},{immediate:!0});const S=(0,t.ref)([]),w=(0,t.ref)(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),y=(0,t.ref)([]);let k=null;const f=(0,t.ref)([]);(0,t.watch)([()=>e.modelValue,()=>v.value],([M,q])=>{let O=sd(e,M,q,p.value);if(!xe(O,f.value)){f.value=O,k||(k=O?[...O]:[]);let H=ir(e,O,q,p.value);H&&(S.value=H.texts,xe(w.value,H.values)||(w.value=H.values),xe(y.value,H.items)||(y.value=H.items),n("update:text",S.value))}});let b="";const m=(0,t.ref)(e.visible);(0,t.watch)(()=>e.visible,M=>{m.value=M,M&&(b="active",f.value.length>0&&(k=[...f.value]))});const A=M=>{let q=ar(e,M);return Ve(q)?q.defaultIndex??0:0},C=M=>{if(e.readonly===!0)return!0;let q=ar(e,M);return Ve(q)?q.readonly??!1:!1},g=(M,q)=>{let O=f.value;O[M]=q;for(let I=0;I<M;I++)O[I]==null&&(O[I]=A(I));if(p.value==="cascade")for(let I=M+1;I<N.value.length;I++){let G=A(I);I<O.length?O[I]=G:O.push(G)}else for(let I=O.length;I<N.value.length;I++){let G=A(I);O.push(G)}f.value=O;let H=ir(e,O,v.value,p.value);H&&(S.value=H.texts,w.value=H.values,y.value=H.items)},h=M=>M<f.value.length?f.value[M]:A(M),N=(0,t.computed)(()=>{if(v.value.length==0)return[];if(p.value=="singleColumn"||p.value=="multipleColumn")return v.value;let M=[],q=0,O=v.value[0],H=0;for(;;){let I=O.map(_=>{let K=Object.assign({},_);return ad(e,K,null),K});M.push(I),q>=f.value.length?H=0:H=f.value[q],(H<0||H>=O.length)&&(H=0);let G=O[H];const te=Kl(e,G);if(!Array.isArray(te))break;O=te,q++}return M}),B=(0,t.computed)(()=>de(+e.visibleItemCount-1)/2*i.value),T=(M=!1)=>{if(e.readonly===!0){M&&n("update:visible",!1);return}let q=v.value.length-1;for(;q>=0&&!(f.value[q]===null||f.value[q]===void 0);q--);if(q>=0&&g(q,0),p.value==="singleColumn"){let O=w.value.length>0?w.value[0]:"",H=y.value.length>0?y.value[0]:null;n("update:modelValue",O),n("update:text",S.value),n("change",O,H),M&&(n("confirm",O),n("update:visible",!1))}else n("update:modelValue",w.value),n("update:text",S.value),n("change",w.value,y.value),M&&(n("confirm",w.value),n("update:visible",!1))},V=(M,q)=>{b!=="close"&&(g(M,q),e.isAutoBackFill&&T(!m.value))},U=()=>{b==="active"&&(b="confirm",k=Array.isArray(f.value)?[...f.value]:[],T(!0))},W=()=>{p.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),f.value=[],k=null};return{...a,pickerLineRef:r,classes:u,popClasses:s,columns:N,dataType:p,show:m,itemHeight:i,top:B,isReadonly:C,getIndex:h,change:V,close:()=>{if(b==="active"){if(b="close",k===null||k.length===0)W();else{if(Array.isArray(k))for(let M=0;M<k.length;M++)g(M,k[M]);T(!1)}n("close"),n("update:visible",!1)}},confirm:U,clear:()=>{if(b==="active"){if(b="clear",e.readonly===!0){n("update:visible",!1);return}W(),k=null,n("clear",""),n("update:visible",!1)}}}}}),Pd={key:0,class:"fox-picker__bar"},Md={class:"fox-picker__title"},zd={class:"fox-picker__bar__action"},Ld={class:"fox-picker__column"};function Rd(e,n,o,l,a,r){const i=(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",Pd,[(0,t.createElementVNode)("view",Md,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",zd,[(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",Ld,[(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)(i,{visible:e.show,source:s,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":p=>e.change(d,p),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["pop-class","visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable","poppable"])],2)}var ln=ae(qd,[["render",Rd]]),Fd={...he,...ge,...ho,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 Od(e,n,o,l,a,r,i,u=!0){return{props:Fd,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{innerDisabled:p,disabled:c,innerReadonly:v,readonly:S,browse:w}=Ie(s),{emitEvent:y}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return c.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),b=(0,t.ref)(!1),m=De(s,"modelValue",null,y),A=(0,t.ref)([]),C=(0,t.computed)(()=>Array.isArray(A.value)?A.value.join(s.separator):A.value),g="fox-input-item",h=(0,t.computed)(()=>({[g]:!0,"is-disabled":c.value,"is-readonly":S.value})),N=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),B=(0,t.computed)(()=>{const L={};return N.value&&(L["text-align"]=N.value),L}),T=(0,t.ref)(!1),V=()=>{T.value=!0},U=L=>{T.value=L},W=L=>{m.value=L,y("update:modelValue",L)},$=(L,X)=>{y("change",L,X)},P=L=>{let X=L.target.value;b.value=!0,y("focus",X,L)},M=L=>{setTimeout(()=>{b.value=!1},0);let X=L.target.value;s.maxLength&&X.length>Number(s.maxLength)&&(X=X.slice(0,Number(s.maxLength))),y("blur",X,L)},q=L=>{A.value=L,Array.isArray(L)&&L.length===0?y("update:text",L[0]):y("update:text",L)},O=(0,t.computed)(()=>({[`${g}__append`]:!0,"is-disabled":c.value,"is-readonly":S.value})),H=(0,t.computed)(()=>ke(s.unit)>0),I=(0,t.computed)(()=>ke(s.unit)>0&&!b.value),G=(0,t.computed)(()=>({hidden:!I.value})),te=L=>{m.value="",y("update:modelValue","",L),y("change","",L),y("clear","")},_=(0,t.computed)(()=>s.clearable&&!c.value&&!S.value),K=(0,t.computed)(()=>ke(m.value)>0&&b.value),Y=L=>{K.value?te(L):V()},Z=(0,t.computed)(()=>K.value&&_.value?a:r),E=(0,t.computed)(()=>({action:!0}));return be({setDisabled:L=>{p.value=L},setReadonly:L=>{v.value=L}}),()=>{if(w.value==="on"&&(S.value||c.value))return l(C.value,d.slots);const L={class:h.value,style:B.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:C.value,onClick:V,onFocus:P,onBlur:M};u&&(L.disabled=!0);const X=[],Q=(0,t.h)("input",L);X.push(Q);const ne=[],z=(0,t.h)(Z.value,{class:["action-icon"]}),R=(0,t.h)("view",{class:E.value,onClick:Y},{default:()=>[z]});if(ne.push(R),H.value){const le=(0,t.h)("view",{class:G.value},[s.unit]);ne.push(le)}const D=(0,t.h)("view",{class:O.value},{default:()=>ne});X.push(D);const x={default:()=>X};x.label=d.slots.default,x.prepend=d.slots.prepend,x.append=d.slots.append,x.fixedPreTip=d.slots.fixedPreTip,x.fixedTip=d.slots.fixedTip;const F=ve(s,ho);F.disabled=!1,F.readonly=c.value||S.value,F.visible=T.value,F["onUpdate:visible"]=U,F.modelValue=m.value,F["onUpdate:modelValue"]=W,F.text=A.value,F["onUpdate:text"]=q,F.onChange=$;const j=(0,t.h)(i,F);x.hide=()=>[j];const ee=ve(s,ge,he);return s.prop&&(ee.prop=`${s.prop}_item`),o(ee,x)}}}}var{componentName:Kd,create:Ud,scope:Hd}=J("picker-item"),_d=Ud(Od(Kd,Hd,qe,Me,oe.CircleClose,oe.ArrowRight,ln,!1)),vo=_d,jd=(0,t.defineComponent)({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:o}){return()=>e.poppable?(0,t.h)(ye,{...o},n):n?.default?.()??null}}),Wd=jd,fn=(e,n,o)=>e.map(l=>{const{value:a="value",text:r="text",children:i="children"}=o??{},{[a]:u,[r]:s,[i]:d,...p}=l,c={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:d,_parent:n};return c.children&&c.children.length&&(c.children=fn(c.children,c,o)),c}),Ai=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&Ai(l.children,n)},Yd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Xd=(e,n)=>{const{topId:o,idKey:l,pidKey:a,sortKey:r}={...Yd,...n||{}};let i=[],u={};return e.forEach(s=>{s={...s};const{[l]:d,[a]:p}=s,c=u[p]=u[p]||[];!i.length&&p===o&&(i=c),c.push(s),s.children=u[d]||(u[d]=[])}),r&&Object.keys(u).forEach(s=>{u[s].length>1&&u[s].sort((d,p)=>d[r]-p[r])}),u=null,i},go={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},fr=(e,n)=>n[e.textKey],zt=(e,n)=>n[e.valueKey],Qd=(e,n)=>n[e.visibleKey],mr=(e,n)=>n[e.disabledKey],Gd=(e,n)=>{const o=n[e.doitKey];return Se(o)},Zd=(e,n)=>{const o=n[e.numKey];return o==null?null:de(n[o])},pr=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function Jd(e,n,o,l,a,r=!1){return{props:go,emits:["update:modelValue","change","click"],setup(i,{slots:u,emit:s}){const d=(0,t.computed)(()=>{const D={};return D[`${e}`]=!0,D}),p=(0,t.computed)(()=>{const D={};return D[`${e}__titles`]=!0,D[`${i.direction}`]=!0,i.align&&(D[`${i.align}`]=!0),i.scroll===!0&&(D.scrollable=!0),i.shape&&(D[`${i.shape}`]=!0),i.showScrollArrow?(Z.value===!0&&(D["has-left-scroll-arrow "]=!0),E.value===!0&&(D["has-right-scroll-arrow "]=!0)):i.showQuickNavigation&&(D["has-navigation"]=!0),D}),c=(0,t.computed)(()=>({})),v=(0,t.computed)(()=>{if(!i.gutter)return 0;const D=se(i.gutter);return D<=0?0:D}),S=(0,t.ref)(i.modelValue);(0,t.watch)(()=>i.modelValue,D=>{S.value!==D&&(S.value=D,H(!1))});const w=(0,t.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),y=(0,t.computed)(()=>{const D={};return f.value||(D.display="none"),D}),k=(0,t.ref)(),f=(0,t.ref)(!1),b=()=>{m(!f.value)},m=D=>{const x=D;x?(f.value=x,setTimeout(()=>{w.value["fox-tabs-bar__popup--show"]=!0,w.value["fox-tabs-bar__popup--hide"]=!1},0)):(w.value["fox-tabs-bar__popup--show"]=!1,w.value["fox-tabs-bar__popup--hide"]=!0,k.value?k.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},A=(0,t.ref)(),C=(0,t.ref)([]),g=(D,x)=>{C.value[x]=D},h=D=>x=>{g(x,D)},N=(D,x)=>{const F=A.value,j=C.value;if(!F||!j||!j[D])return;const ee=j[D];let le=0;i.direction==="vertical"?le=ee.offsetTop-(F.offsetHeight-ee.offsetHeight)/2:le=ee.offsetLeft-(F.offsetWidth-ee.offsetWidth)/2,B(F,le,x?0:.3,i.direction)},B=(D,x,F,j)=>{let ee=0;const le=j==="horizontal"?D.scrollLeft:D.scrollTop,ie=F===0?1:Math.round(F*1e3/16);function ue(){j==="horizontal"?D.scrollLeft+=(x-le)/ie:D.scrollTop+=(x-le)/ie,++ee<ie&&He(ue)}ue()},T=(D,x)=>{const F=zt(i,D),j={};return j[`${e}__titles-item`]=!0,j.disabled=mr(i,D),j.active=F===S.value,i.shape&&(j[`${i.shape}`]=!0),i.ellipsis&&(j.ellipsis=!0),x&&(x.class&&(j[`${x.class}`]=!0),x.disabled===!0&&(j.disabled=x.disabled)),j},V=(D,x)=>{const F={};if(v.value>0){const j=Math.abs(v.value/2);i.direction==="vertical"?(F["margin-top"]=`${j}px`,F["margin-bottom"]=`${j}px`):(F["margin-left"]=`${j}px`,F["margin-right"]=`${j}px`)}return x&&x.style&&Object.assign(F,x.style),F},U=(D,x)=>`${zt(i,D)??x}`,W=(D,x)=>{const F=zt(i,D),j={};j[`${e}__popup-item`]=!0,j.disabled=mr(i,D),j.active=F===S.value,i.shape&&(j[`${i.shape}`]=!0);const ee=pr(i,D,x);return ee&&ee.disabled===!0&&(j.disabled=ee.disabled),j},$=(0,t.computed)(()=>(i.data??[]).filter(D=>Qd(i,D)!==!1)),P=(D,x)=>{const F=zt(i,D);if(s("click",D,x),S.value==F)return;const j=()=>{S.value=F,i.scroll&&N(x,!1),s("update:modelValue",F),s("change",D,x)};if(typeof i.beforeChange=="function"){const ee=i.beforeChange(D,x);bt(ee)?ee.then(le=>{le!==!1&&j()}).catch(()=>{j()}):ee!==!1&&j()}else j()},M=(D,x)=>function(){P(D,x)},q=(D,x)=>{P(D,x),m(!1)},O=(D,x)=>function(){q(D,x)},H=D=>{if(!Array.isArray(i.data)||!i.scroll)return;Y()&&ne();const x=i.data.findIndex(F=>zt(i,F)===S.value);x!==-1&&N(x,D)},I=()=>{Y()||z()};(0,t.watch)(()=>i.data,()=>{setTimeout(H,0)}),(0,t.onMounted)(()=>{H(!0)}),(0,t.onBeforeUnmount)(()=>{I()});const G=(D,x)=>{if(u.item)return u.item({item:D,index:x});const F=pr(i,D,x),j=[];if(u.text){const le=u.text({item:D,index:x});j.push(le)}else{const le=[];if(F?.doit===!0||Gd(i,D)){const Ue=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});le.push(Ue)}const ie=F?.num??Zd(i,D);if(ie){let Ue="";const ze=de(ie);ze>=100?Ue="99+":Ue=`${ze}`;const It=(0,t.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[Ue]);le.push(It)}const ue={class:`${e}__titles-item-text`};le.push(fr(i,D));const Ke=(0,t.h)("view",ue,le);j.push(Ke)}const ee=(0,t.h)("view",{class:`${e}__titles-item-line`});return j.push(ee),(0,t.h)("view",{ref:h(x),class:T(D,F),style:V(D,F),key:U(D,x),onClick:M(D,x)},j)},te=()=>{const D=u.default?u.default():[];if(D.length===0)for(let x=0;x<$.value.length;x++){const F=$.value[x],j=G(F,x);D.push(j)}return(0,t.h)("view",{ref:A,class:p.value,style:c.value},D)},_=()=>{let D=null;return u.navigation?D=u.navigation():D=(0,t.h)(o),(0,t.h)("view",{class:`${e}__navigation`,onClick:b},[D])},K=()=>{const D=[];for(let x=0;x<$.value.length;x++){const F=$.value[x];let j=null;u.popupItem?j=u.popupItem({item:F,index:x}):j=fr(i,F);const ee=(0,t.h)("view",{class:W(F,x),key:U(F,x),onClick:O(F,x)},[j]);D.push(ee)}return(0,t.h)("view",{class:w.value,style:y.value},D)},Y=()=>i.showScrollArrow&&i.direction=="horizontal",Z=(0,t.ref)(!1),E=(0,t.ref)(!1),L=D=>{const x=A.value,F=C.value;if(!(!x||!F))if(D==="left"){const j=x.scrollLeft;let ee=j;for(let le=0;le<F.length;le++){const ie=F[le].offsetLeft;if(j-ie<0)break;ee=ie}B(x,ee,.3,"horizontal")}else{const j=x.scrollLeft;let ee=j,le=x.offsetWidth;for(let ie=F.length-1;ie>=0;ie--){const ue=F[ie].offsetLeft+F[ie].offsetWidth;if(ue-j<x.offsetWidth){ee+=le-ue;break}le=ue}B(x,ee,.3,"horizontal")}},X=Ee(()=>{const D=A.value;if(!D)return;let x=D.scrollLeft>0;x!==Z.value&&(Z.value=x);let F=D.scrollWidth-D.scrollLeft>D.offsetWidth;F!==E.value&&(E.value=F)},50),Q=D=>{X()},ne=()=>{const D=A.value;D&&(X(),D.addEventListener("scroll",Q))},z=()=>{const D=A.value;D&&D.removeEventListener("scroll",Q)},R=D=>{if(D==="left"&&Z.value!==!0||D==="right"&&E.value!==!0)return null;let x=null;return D==="left"?u.leftArrow?x=u.leftArrow():x=(0,t.h)(l):u.rightArrow?x=u.rightArrow():x=(0,t.h)(a),(0,t.h)("view",{class:[`${e}__scroll-arrow`,D],onClick:()=>{L(D)}},[x])};return()=>{const D=[],x=te();if(D.push(x),Y()){const F=R("left");F&&D.push(F);const j=R("right");j&&D.push(j)}else if(i.showQuickNavigation){const F=_();D.push(F);const j=K();D.push(j)}return(0,t.h)("view",{class:d.value},D)}}}}var{create:ef,componentName:tf,scope:nf}=J("tabs-bar"),lf=ef(Jd(tf,nf,oe.MoreH,oe.Left,oe.Right,!1)),on=lf,Bi=Symbol("TabsStatesKey"),yo={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]}},of=15,af=300,rf=200;function sf(e,n,o=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*o}function hr(e,n=0,o,l,a=rf){o==="end"?e.style.transition=`transform ${a}ms linear`:e.style.transition="transform 0ms linear",l==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}var uf=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,n,o,l=1,a){this.onStart=e,this.onMove=n,this.onEnd=o,this.momentumReduceRatio=l,this.isTouch=a??tl()}open(e){this.el=e;const n=nl(),o=(l,a,r)=>{const i={delta:l,direction:a,type:r};this.onMove(i)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;n.start(l),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=l=>{if(!this.moving)return;n.move(l);let a=0;if(this.direction==="horizontal"){if(n.isVertical())return;a=n.state.deltaX}else{if(n.isHorizontal())return;a=n.state.deltaY}o(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(n.isVertical()){this.moving=!1;return}l=n.state.deltaX}else{if(n.isHorizontal()){this.moving=!1;return}l=n.state.deltaY}const a=n.state.duration;a<af&&Math.abs(l)>of?(l=sf(l,a,this.momentumReduceRatio),o(l,this.direction,"end")):o(l,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function cf(e,n,o,l=1,a){return new uf(e,n,o,l,a)}function df(e,n,o=!1){return{props:yo,emits:["update:modelValue","change"],setup(l,{emit:a,slots:r}){const i=(0,t.shallowRef)([]),u={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:h=>{const N={name:h};u.current.value===h&&(N.loaded=!0),i.value.push(N),(0,t.triggerRef)(i)},remove:h=>{const N=i.value.findIndex(B=>B.name===h);N!==-1&&i.value.splice(N,1)},isLoaded:h=>{if(!l.lazy)return!0;const N=i.value.findIndex(B=>B.name===h);return N!==-1?u.current.value?i.value[N].loaded??!1:N===0:!1}};(0,t.provide)(Bi,u);const s=h=>{const N=i.value.findIndex(B=>B.name===h);N!==-1&&(i.value[N].loaded=!0,(0,t.triggerRef)(i))};(0,t.watch)([()=>l.modelValue,()=>l.direction],([h,N])=>{u.current.value!==h&&(u.current.value=h??"",s(h??"")),u.direction.value!==N&&(u.direction.value=N)});const d=(0,t.ref)(null),p=(0,t.ref)(null),c=(0,t.computed)(()=>({[e]:!0,[`${l.direction}`]:!0})),v=(0,t.computed)(()=>{const h={};if(l.width){const N=me(l.width);N&&(h.width=N)}if(l.height){const N=me(l.height);N&&(h.height=N)}return h});let S=!0;const w=(0,t.computed)(()=>{const h={};if(l.transition===!1)return h;const N=i.value.length;if(N<=0)return h;const B=i.value.findIndex(T=>T.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(h.height=`${N*u.tabHeight.value}px`,B!==-1&&(h.transform=`translate(0, -${B*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(h.width=`${N*u.tabWidth.value}px`,B!==-1&&(h.transform=`translate(-${B*u.tabWidth.value}px, 0)`)),S&&(S=!1,h.transition="transform 0s ease"),h}),y={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},k=h=>{const N=i.value.length,B=i.value.findIndex(T=>T.name===u.current.value);y.moved=0,h.direction==="vertical"?(y.min=-1*(u.tabHeight.value*(N-1)+u.tabHeight.value/4),y.max=u.tabHeight.value/4,y.start=-B*u.tabHeight.value,y.itemDistance=u.tabHeight.value):(y.min=-1*(u.tabWidth.value*(N-1)+u.tabWidth.value/4),y.max=u.tabWidth.value/4,y.start=-B*u.tabWidth.value,y.itemDistance=u.tabWidth.value)},f=h=>{const N=p.value;if(!N)return;let B=y.start+h.delta;if(B>y.max?B=y.max:B<y.min&&(B=y.min),h.type==="move")hr(N,B,"move",h.direction,300);else if(h.type==="end"){let T=Math.floor(Math.abs(B)*1/y.itemDistance);const V=Math.abs(B)%y.itemDistance;y.start>B?V>=y.itemDistance*y.triggerAutoMoveRatio&&(T+=1):V>y.itemDistance-y.itemDistance*y.triggerAutoMoveRatio&&(T+=1),B=-1*T*y.itemDistance,hr(N,B,"end",h.direction,300),y.moved=B;const U=i.value[T].name;u.current.value=U??"",s(U??""),a("update:modelValue",U)}},b=()=>{},m=()=>{if(!d.value)return;const h=Fn(d.value);u.tabWidth.value=h.width,u.tabHeight.value=h.height},A=Sn(m,250);let C=null,g=null;return(0,t.onMounted)(()=>{l.transition!==!1&&d.value&&(m(),window.ResizeObserver&&(g=new window.ResizeObserver(A),g.observe(d.value)),l.draggle&&(C=cf(k,f,b),C.open(p.value)))}),(0,t.onBeforeUnmount)(()=>{g&&(g.disconnect(),g=null),C&&C.close()}),be({doLayout(){m()}}),()=>{const h=(0,t.h)("view",{class:`${e}__panes`,style:w.value,ref:p},[r?.default?.()]);return(0,t.h)("view",{class:c.value,style:v.value,ref:d},[h])}}}}var{create:ff,componentName:mf,scope:pf}=J("tabs-container"),hf=ff(df(mf,pf,!1)),an=hf,vf={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 gf(e,n,o){return{props:vf,setup(l,{emit:a,slots:r}){const i=(0,t.inject)(Bi);(0,t.onMounted)(()=>{i.add(l.paneKey)}),(0,t.onBeforeUnmount)(()=>{i.remove(l.paneKey)});const u=(0,t.computed)(()=>{const p=[e];return i.direction.value==="vertical"?p.push("is-vertical"):p.push("is-horizontal"),i.transition===!1?p.push("is-no-transition"):p.push("is-transition"),p}),s=(0,t.computed)(()=>{const p={};return i.transition===!1?(i.current.value!==l.paneKey&&(p.display="none"),p):(i.direction.value==="vertical"&&i.tabHeight.value>0?p.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(p.width=`${i.tabWidth.value}px`),p)}),d=(0,t.computed)(()=>l.loaded!=null?Se(l.loaded):i.isLoaded(l.paneKey));return()=>{let p=[];if(d.value)p=r?.default?.()??[];else if(r.empty)p=r.empty();else{const c={class:`${e}__empty-icon`},v=(0,t.h)(l.emptyIcon??o,c),S=(0,t.h)("view",{class:`${e}__empty-text`},[l.emptyText??"Loading"]),w=(0,t.h)("view",{class:`${e}__empty`},[v,S]);p.push(w)}return(0,t.h)("view",{class:u.value,style:s.value,prop:l.paneKey},p)}}}}var{create:yf,componentName:bf,scope:Sf}=J("tabs-pane"),kf=yf(gf(bf,Sf,oe.Loading)),ll=kf,vr=class{nodes;config;constructor(e,n){this.config={value:"value",text:"text",children:"children",...n||{}},this.nodes=fn(e,null,this.config)}updateChildren(e,n){n?n.children=fn(e,n,this.config):this.nodes=fn(e,null,this.config)}getNodeByValue(e){let n;return Ai(this.nodes,o=>{if(o.value===e)return n=o,!0}),n}getPathNodesByValue(e){if(!e.length)return[];const n=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(a=>a.value===e[a.level]);if(!l)break;n.push(l),o=l.children}return n}isLeaf(e,n){const{leaf:o,children:l}=e,a=Array.isArray(l)&&!!l.length;return o||!a&&!n}hasChildren(e,n){if(this.isLeaf(e,n))return!1;const{children:o}=e;return Array.isArray(o)&&!!o.length}},{create:wf,scope:Cf}=J("cascader-pane"),Nf=wf({components:{Loading:oe.Loading,Checklist:oe.Checklist,TabsBar:on,TabsContainer:an,TabsPane:ll},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:o}=(0,pe.useFoxI18n)(Cf),l=(0,t.computed)(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),a=(0,t.ref)(0),r=(0,t.ref)(),i=(0,t.ref)(!1),u=(0,t.ref)(e.modelValue),s=(0,t.ref)(new vr([],{})),d=(0,t.ref)([]),p=(0,t.computed)(()=>l.value.lazy&&!!l.value.lazyLoad),c=(0,t.computed)(()=>i.value==!0||d.value.length==0?[{text:"Loading",value:0}]:d.value.map((m,A)=>({text:m.selectedNode?m.selectedNode.text:o("select"),value:A}))),v=new Map;let S;const w=async()=>{v.clear(),d.value=[],a.value=0,i.value=!1,S=null;let{options:m}=e;l.value.convertConfig&&(m=Xd(m,l.value.convertConfig)),s.value=new vr(m,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),p.value&&!s.value.nodes.length&&await k({root:!0,loading:!0,text:"",value:""}),d.value=[{nodes:s.value.nodes,selectedNode:null}],y(!p.value)},y=async(m=!0)=>{const A=u.value;if(A===void 0||!s.value.nodes.length)return;if(A.length===0){a.value=0,d.value=[{nodes:s.value.nodes,selectedNode:null}];return}let C=A;if(p.value&&Array.isArray(A)&&A.length){C=[];let g=s.value.nodes.find(h=>h.value===A[0]);g&&(C=[g.value],i.value=!0,await k(await A.slice(1).reduce(async(h,N)=>{const B=await h;await k(B);const T=B&&B?.children?.find(V=>V.value===N);return T&&C.push(N),Promise.resolve(T)},Promise.resolve(g))),i.value=!1)}C.length&&A===e.modelValue&&s.value.getPathNodesByValue(C).map((g,h)=>{a.value=h,b.handleNode(g,m)})},k=async m=>{if(!m)return;if(!l.value.lazyLoad){m.leaf=!0;return}if(s.value.isLeaf(m,p.value)||s.value.hasChildren(m,p.value))return;m.loading=!0;const A=m.root?null:m;let C=v.get(m);C||(C=new Promise(h=>{l.value.lazyLoad?.(m,h)}),v.set(m,C));const g=await C;Array.isArray(g)&&g.length>0?s.value.updateChildren(g,A):m.leaf=!0,m.loading=!1,v.delete(m)},f=m=>{const A=m.map(C=>C.value);u.value=A,n("change",A,m),n("pathChange",m),n("update:modelValue",A)},b={async handleNode(m,A){const{disabled:C,loading:g}=m;if(!(!A&&C||!d.value[a.value])){if(s.value.isLeaf(m,p.value)){if(m.leaf=!0,d.value[a.value].selectedNode=m,d.value=d.value.slice(0,m.level+1),!A){const h=d.value.map(N=>N.selectedNode);f(h),n("pathChange",h)}return}if(s.value.hasChildren(m,p.value)){const h=m.level+1;d.value[a.value].selectedNode=m,d.value=d.value.slice(0,h),d.value.push({nodes:m.children||[],selectedNode:null}),a.value=h,A||n("pathChange",d.value.map(N=>N.selectedNode));return}S=m,!g&&(await k(m),S===m&&(d.value[a.value].selectedNode=m,b.handleNode(m,A)))}},handleTabChange(m,A){S=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:o("select")},isSelected(m,A){return m.selectedNode&&m.selectedNode.value===A.value}};return(0,t.watch)([l,()=>e.options],()=>{w()},{deep:!0,immediate:!0}),(0,t.watch)(()=>e.modelValue,m=>{xe(m,u.value)||(u.value=m,y(!p.value))}),(0,t.watch)(()=>e.visible,m=>{m&&Array.isArray(u.value)&&u.value.length>0&&y(),m&&r.value&&setTimeout(()=>{r.value.doLayout()},0)}),{panes:d,panesTitles:c,initLoading:i,tabsCursor:a,tabsContainerRef:r,...b}}}),Af={class:"fox-cascader"},Bf={role:"menu",class:"fox-cascader__pane"},Tf=["aria-checked","aria-disabled","onClick"],Vf={class:"fox-cascader__item__title"};function xf(e,n,o,l,a,r){const i=(0,t.resolveComponent)("TabsBar"),u=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Checklist"),d=(0,t.resolveComponent)("TabsPane"),p=(0,t.resolveComponent)("TabsContainer");return(0,t.openBlock)(),(0,t.createElementBlock)("view",Af,[(0,t.createVNode)(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=c=>e.tabsCursor=c),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),(0,t.createVNode)(p,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=c=>e.tabsCursor=c)},{default:(0,t.withCtx)(()=>[!e.initLoading&&e.panes.length?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(e.panes,(c,v)=>((0,t.openBlock)(),(0,t.createBlock)(d,{"pane-key":v,key:v},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Bf,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.nodes,S=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:S.value,class:(0,t.normalizeClass)(["fox-cascader__item",{active:e.isSelected(c,S),disabled:S.disabled}]),"aria-checked":e.isSelected(c,S),"aria-disabled":S.disabled||void 0,role:"menuitemradio",onClick:w=>e.handleNode(S,!1)},[(0,t.createElementVNode)("view",Vf,(0,t.toDisplayString)(S.text),1),S.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,Tf))),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 $f=ae(Nf,[["render",xf]]),{create:Ef}=J("cascader"),Df=Ef({components:{CascaderPane:$f,Wrapper:Wd},props:{...Ze,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(i){n("update:visible",i)}}),a=(i,u)=>{o.value=i,l.value=!1,n("change",i,u),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return(0,t.watch)(()=>e.modelValue,i=>{i!==o.value&&(o.value=i)}),{onChange:a,onPathChange:r,innerValue:o,innerVisible:l}}}),If=["innerHTML"];function qf(e,n,o,l,a,r){const i=(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,If)):(0,t.createCommentVNode)("",!0)]),(0,t.createVNode)(i,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:3},8,["poppable","visible","closeable","close-icon-position"])}var ol=ae(Df,[["render",qf]]);function Nt(e,n){return n[e.textKey??"text"]??""}function At(e,n){return n[e.valueKey??"value"]}function Ti(e,n){return n[e.childrenKey??"children"]}function cn(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const a=n[l],r=Nt(e,a),i=At(e,a);o.texts.push(r),o.values.push(i??"")}return o}function Vi(e,n,o,l,a=[]){if(!o)return;const r=o[l];for(let i=0;i<n.length;i++)if(Nt(e,n[i])===r){const u=At(e,n[i])??"",s={[e.textKey]:r,[e.valueKey]:u};a.push(s);const d=Ti(e,n[i]);Array.isArray(d)&&Vi(e,d,o,l+1,a);return}}function xi(e,n,o,l,a=[]){if(!o)return;const r=o[l];for(let i=0;i<n.length;i++)if(At(e,n[i])===r){const u=Nt(e,n[i])??"",s={[e.textKey]:u,[e.valueKey]:r};a.push(s);const d=Ti(e,n[i]);Array.isArray(d)&&xi(e,d,o,l+1,a);return}}function Nl(e,n,o){if(n===o)return!0;if(n.length!==o.length)return!1;for(let l=0;l<n.length;l++)if(Nt(e,n[l])!==Nt(e,o[l])||At(e,n[l])!==At(e,o[l]))return!1;return!0}var Pf=class{proxy;constructor(e){this.proxy=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 a=nt(this.proxy,l);return a===null?(console.error(`${l} component not found api function`),[]):(Ve(n)&&(0,t.isReactive)(n)&&(n=(0,t.toRaw)(n)),await a(e,n,o))}};function Mf(){return new Pf((0,t.getCurrentInstance)().proxy)}var $i={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]}},zf={...he,...ge,...$i};function Lf(e,n,o,l,a,r,i,u=!1){return{props:zf,emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,d){const{innerDisabled:p,disabled:c,innerReadonly:v,readonly:S,browse:w}=Ie(s),{emitEvent:y}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return c.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),b=(0,t.ref)(!1),m=Mf(),A=(0,t.ref)([]),C=(0,t.ref)([]),g=(0,t.computed)(()=>{if(Array.isArray(C.value)){if(s.showAllLevels===!1){const R=C.value.length-1;return C.value[R]}return C.value.join(s.separator)}else return C.value}),h=(0,t.ref)([]),N=(0,t.ref)([]);(0,t.watch)([()=>s.modelValue,()=>A.value],async([R,D])=>{if(y("setValue",R),s.lazy===!0){N.value.length==0&&(C.value=Array.isArray(R)?R:[],h.value=Array.isArray(R)?R:[]);return}if(s.valueType==="item"){let x=R;if(!Nl(s,x,N.value)){N.value=x;let F=cn(s,x);C.value=F.texts,h.value=F.values}}else if(s.valueType==="text"){let x=R,F=[];if(Vi(s,D,x,0,F),!Nl(s,F,N.value)){N.value=F;let j=cn(s,F);C.value=j.texts,h.value=j.values}}else{let x=R,F=[];if(xi(s,D,x,0,F),!Nl(s,F,N.value)){N.value=F;let j=cn(s,F);C.value=j.texts,h.value=j.values}}}),s.lazy===!0&&(h.value=Array.isArray(s.modelValue)?s.modelValue:[]),(0,t.watch)([()=>s.source,()=>s.params],async([R,D])=>{s.lazy||R&&(A.value=await m.load(R,D))},{immediate:!0});const B="fox-input-item",T=(0,t.computed)(()=>({[B]:!0,"is-disabled":c.value,"is-readonly":S.value})),V=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),U=(0,t.computed)(()=>{const R={};return V.value&&(R["text-align"]=V.value),R}),W=(0,t.ref)(!1),$=()=>{c.value===!0||S.value===!0||(W.value=!0)},P=R=>{W.value=R},M=(R,D)=>{let x=D.map(j=>{if(j==null)return j;let ee={...j};return Reflect.deleteProperty(ee,"text"),ee[s.textKey]=j.text??"",Reflect.deleteProperty(ee,"value"),ee[s.valueKey]=j.value??"",ee});N.value=x;let F=cn(s,x);C.value=F.texts,h.value=F.values,s.valueType==="text"?(y("change",C.value,x),y("update:modelValue",C.value)):s.valueType==="item"?(y("change",x,x),y("update:modelValue",x)):(y("change",h.value,x),y("update:modelValue",h.value)),y("update:pathNodes",x)},q=R=>{y("pathChange",R.map(D=>{if(D==null)return D;let x={...D};return Reflect.deleteProperty(x,"text"),x[s.textKey]=D.text??"",Reflect.deleteProperty(x,"value"),x[s.valueKey]=D.value??"",x}))},O=R=>{b.value=!0,y("focus",h.value,R)},H=R=>{setTimeout(()=>{b.value=!1},0),y("blur",h.value,R)},I=(0,t.computed)(()=>({[`${B}__append`]:!0,"is-disabled":c.value,"is-readonly":S.value})),G=(0,t.computed)(()=>ke(s.unit)>0),te=(0,t.computed)(()=>ke(s.unit)>0&&!b.value),_=(0,t.computed)(()=>({hidden:!te.value})),K=R=>{N.value=[],C.value=[],h.value=[],y("update:modelValue",[]),y("change",[],R),y("clear",[]),y("update:pathNodes",[])},Y=(0,t.computed)(()=>s.clearable&&!c.value&&!S.value),Z=(0,t.computed)(()=>{let R=h.value&&h.value.length>0;return s.clearable&&R&&b.value}),E=R=>{Z.value?K(R):$()},L=(0,t.computed)(()=>Z.value&&Y.value?a:r),X=(0,t.computed)(()=>({action:!0}));let Q=null;const ne=()=>typeof Q=="function"?Q:typeof s.lazyLoad=="function"?s.lazyLoad:(Q=async(R,D)=>{const x=[],F=[];let j=0;if(!R.root){let ee=R;for(;ee;){const le=Nt(s,ee),ie=At(s,ee);F.splice(0,0,le),x.splice(0,0,ie),ee=ee._parent}j=x.length}D(await m.load(s.source,{...R,level:j,pathLabels:F,pathValues:x},!0))},Q),z=(0,t.ref)();return be({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()},setDisabled:R=>{p.value=R},setReadonly:R=>{v.value=R}}),()=>{if(w.value==="on"&&(S.value||c.value))return l(g.value,d.slots);const R={class:T.value,style:U.value,ref:z,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:$,onFocus:O,onBlur:H};u&&(R.disabled=!0);const D=[],x=(0,t.h)("input",R);D.push(x);const F=[],j=(0,t.h)(L.value,{class:["action-icon"]}),ee=(0,t.h)("view",{class:X.value,onClick:E},{default:()=>[j]});if(F.push(ee),G.value){const It=(0,t.h)("view",{class:_.value},[s.unit]);F.push(It)}const le=(0,t.h)("view",{class:I.value},{default:()=>F});D.push(le);const ie={default:()=>D};ie.label=d.slots.default,ie.prepend=d.slots.prepend,ie.append=d.slots.append,ie.fixedPreTip=d.slots.fixedPreTip,ie.fixedTip=d.slots.fixedTip;const ue={};ue.visible=W.value,ue["onUpdate:visible"]=P,ue.modelValue=h.value,ue.onChange=M,ue.onPathChange=q,ue.title=s.title,ue.valueKey=s.valueKey,ue.textKey=s.textKey,ue.childrenKey=s.childrenKey,ue.convertConfig=s.convertConfig,s.lazy?(ue.lazy=!0,ue.lazyLoad=ne()):ue.options=A.value;const Ke={};Ke.header=d.slots.header;const Ue=(0,t.h)(i,ue,Ke);ie.hide=()=>[Ue];const ze={...et(s,$i)};return s.prop&&(ze.prop=`${s.prop}_item`),o(ze,ie)}}}}var{componentName:Rf,create:Ff,scope:Of}=J("cascader-item"),Kf=Ff(Lf(Rf,Of,qe,Me,oe.CircleClose,oe.ArrowRight,ol,!1)),bo=Kf,Uf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs=l()})(e,(function(){"use strict";var o=1e3,l=6e4,a=36e5,r="millisecond",i="second",u="minute",s="hour",d="day",p="week",c="month",v="quarter",S="year",w="date",y="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var P=["th","st","nd","rd"],M=$%100;return"["+$+(P[(M-20)%10]||P[M]||P[0])+"]"}},m=function($,P,M){var q=String($);return!q||q.length>=P?$:""+Array(P+1-q.length).join(M)+$},A={s:m,z:function($){var P=-$.utcOffset(),M=Math.abs(P),q=Math.floor(M/60),O=M%60;return(P<=0?"+":"-")+m(q,2,"0")+":"+m(O,2,"0")},m:function $(P,M){if(P.date()<M.date())return-$(M,P);var q=12*(M.year()-P.year())+(M.month()-P.month()),O=P.clone().add(q,c),H=M-O<0,I=P.clone().add(q+(H?-1:1),c);return+(-(q+(M-O)/(H?O-I:I-O))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:c,y:S,w:p,d,D:w,h:s,m:u,s:i,ms:r,Q:v}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},C="en",g={};g[C]=b;var h="$isDayjsObject",N=function($){return $ instanceof U||!(!$||!$[h])},B=function $(P,M,q){var O;if(!P)return C;if(typeof P=="string"){var H=P.toLowerCase();g[H]&&(O=H),M&&(g[H]=M,O=H);var I=P.split("-");if(!O&&I.length>1)return $(I[0])}else{var G=P.name;g[G]=P,O=G}return!q&&O&&(C=O),O||!q&&C},T=function($,P){if(N($))return $.clone();var M=typeof P=="object"?P:{};return M.date=$,M.args=arguments,new U(M)},V=A;V.l=B,V.i=N,V.w=function($,P){return T($,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var U=(function(){function $(M){this.$L=B(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[h]=!0}var P=$.prototype;return P.parse=function(M){this.$d=(function(q){var O=q.date,H=q.utc;if(O===null)return new Date(NaN);if(V.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var I=O.match(k);if(I){var G=I[2]-1||0,te=(I[7]||"0").substring(0,3);return H?new Date(Date.UTC(I[1],G,I[3]||1,I[4]||0,I[5]||0,I[6]||0,te)):new Date(I[1],G,I[3]||1,I[4]||0,I[5]||0,I[6]||0,te)}}return new Date(O)})(M),this.init()},P.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},P.$utils=function(){return V},P.isValid=function(){return this.$d.toString()!==y},P.isSame=function(M,q){var O=T(M);return this.startOf(q)<=O&&O<=this.endOf(q)},P.isAfter=function(M,q){return T(M)<this.startOf(q)},P.isBefore=function(M,q){return this.endOf(q)<T(M)},P.$g=function(M,q,O){return V.u(M)?this[q]:this.set(O,M)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(M,q){var O=this,H=!!V.u(q)||q,I=V.p(M),G=function(X,Q){var ne=V.w(O.$u?Date.UTC(O.$y,Q,X):new Date(O.$y,Q,X),O);return H?ne:ne.endOf(d)},te=function(X,Q){return V.w(O.toDate()[X].apply(O.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(Q)),O)},_=this.$W,K=this.$M,Y=this.$D,Z="set"+(this.$u?"UTC":"");switch(I){case S:return H?G(1,0):G(31,11);case c:return H?G(1,K):G(0,K+1);case p:var E=this.$locale().weekStart||0,L=(_<E?_+7:_)-E;return G(H?Y-L:Y+(6-L),K);case d:case w:return te(Z+"Hours",0);case s:return te(Z+"Minutes",1);case u:return te(Z+"Seconds",2);case i:return te(Z+"Milliseconds",3);default:return this.clone()}},P.endOf=function(M){return this.startOf(M,!1)},P.$set=function(M,q){var O,H=V.p(M),I="set"+(this.$u?"UTC":""),G=(O={},O[d]=I+"Date",O[w]=I+"Date",O[c]=I+"Month",O[S]=I+"FullYear",O[s]=I+"Hours",O[u]=I+"Minutes",O[i]=I+"Seconds",O[r]=I+"Milliseconds",O)[H],te=H===d?this.$D+(q-this.$W):q;if(H===c||H===S){var _=this.clone().set(w,1);_.$d[G](te),_.init(),this.$d=_.set(w,Math.min(this.$D,_.daysInMonth())).$d}else G&&this.$d[G](te);return this.init(),this},P.set=function(M,q){return this.clone().$set(M,q)},P.get=function(M){return this[V.p(M)]()},P.add=function(M,q){var O,H=this;M=Number(M);var I=V.p(q),G=function(K){var Y=T(H);return V.w(Y.date(Y.date()+Math.round(K*M)),H)};if(I===c)return this.set(c,this.$M+M);if(I===S)return this.set(S,this.$y+M);if(I===d)return G(1);if(I===p)return G(7);var te=(O={},O[u]=l,O[s]=a,O[i]=o,O)[I]||1,_=this.$d.getTime()+M*te;return V.w(_,this)},P.subtract=function(M,q){return this.add(-1*M,q)},P.format=function(M){var q=this,O=this.$locale();if(!this.isValid())return O.invalidDate||y;var H=M||"YYYY-MM-DDTHH:mm:ssZ",I=V.z(this),G=this.$H,te=this.$m,_=this.$M,K=O.weekdays,Y=O.months,Z=O.meridiem,E=function(Q,ne,z,R){return Q&&(Q[ne]||Q(q,H))||z[ne].slice(0,R)},L=function(Q){return V.s(G%12||12,Q,"0")},X=Z||function(Q,ne,z){var R=Q<12?"AM":"PM";return z?R.toLowerCase():R};return H.replace(f,(function(Q,ne){return ne||(function(z){switch(z){case"YY":return String(q.$y).slice(-2);case"YYYY":return V.s(q.$y,4,"0");case"M":return _+1;case"MM":return V.s(_+1,2,"0");case"MMM":return E(O.monthsShort,_,Y,3);case"MMMM":return E(Y,_);case"D":return q.$D;case"DD":return V.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return E(O.weekdaysMin,q.$W,K,2);case"ddd":return E(O.weekdaysShort,q.$W,K,3);case"dddd":return K[q.$W];case"H":return String(G);case"HH":return V.s(G,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return X(G,te,!0);case"A":return X(G,te,!1);case"m":return String(te);case"mm":return V.s(te,2,"0");case"s":return String(q.$s);case"ss":return V.s(q.$s,2,"0");case"SSS":return V.s(q.$ms,3,"0");case"Z":return I}return null})(Q)||I.replace(":","")}))},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(M,q,O){var H,I=this,G=V.p(q),te=T(M),_=(te.utcOffset()-this.utcOffset())*l,K=this-te,Y=function(){return V.m(I,te)};switch(G){case S:H=Y()/12;break;case c:H=Y();break;case v:H=Y()/3;break;case p:H=(K-_)/6048e5;break;case d:H=(K-_)/864e5;break;case s:H=K/a;break;case u:H=K/l;break;case i:H=K/o;break;default:H=K}return O?H:V.a(H)},P.daysInMonth=function(){return this.endOf(c).$D},P.$locale=function(){return g[this.$L]},P.locale=function(M,q){if(!M)return this.$L;var O=this.clone(),H=B(M,q,!0);return H&&(O.$L=H),O},P.clone=function(){return V.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},$})(),W=U.prototype;return T.prototype=W,[["$ms",r],["$s",i],["$m",u],["$H",s],["$W",d],["$M",c],["$y",S],["$D",w]].forEach((function($){W[$[1]]=function(P){return this.$g(P,$[0],$[1])}})),T.extend=function($,P){return $.$i||($(P,U,T),$.$i=!0),T},T.locale=B,T.isDayjs=N,T.unix=function($){return T(1e3*$)},T.en=g[C],T.Ls=g,T.p={},T}))})),Hf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_customParseFormat=l()})(e,(function(){"use strict";var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,r=/\d\d/,i=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},d=function(k){return(k=+k)+(k>68?1900:2e3)},p=function(k){return function(f){this[k]=+f}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(f){if(!f||f==="Z")return 0;var b=f.match(/([+-]|\d\d)/g),m=60*b[1]+(+b[2]||0);return m===0?0:b[0]==="+"?-m:m})(k)}],v=function(k){var f=s[k];return f&&(f.indexOf?f:f.s.concat(f.f))},S=function(k,f){var b,m=s.meridiem;if(m){for(var A=1;A<=24;A+=1)if(k.indexOf(m(A,0,f))>-1){b=A>12;break}}else b=k===(f?"pm":"PM");return b},w={A:[u,function(k){this.afternoon=S(k,!1)}],a:[u,function(k){this.afternoon=S(k,!0)}],Q:[a,function(k){this.month=3*(k-1)+1}],S:[a,function(k){this.milliseconds=100*+k}],SS:[r,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[i,p("seconds")],ss:[i,p("seconds")],m:[i,p("minutes")],mm:[i,p("minutes")],H:[i,p("hours")],h:[i,p("hours")],HH:[i,p("hours")],hh:[i,p("hours")],D:[i,p("day")],DD:[r,p("day")],Do:[u,function(k){var f=s.ordinal;if(this.day=k.match(/\d+/)[0],f)for(var b=1;b<=31;b+=1)f(b).replace(/\[|\]/g,"")===k&&(this.day=b)}],w:[i,p("week")],ww:[r,p("week")],M:[i,p("month")],MM:[r,p("month")],MMM:[u,function(k){var f=v("months"),b=(v("monthsShort")||f.map((function(m){return m.slice(0,3)}))).indexOf(k)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[u,function(k){var f=v("months").indexOf(k)+1;if(f<1)throw new Error;this.month=f%12||f}],Y:[/[+-]?\d+/,p("year")],YY:[r,function(k){this.year=d(k)}],YYYY:[/\d{4}/,p("year")],Z:c,ZZ:c};function y(k){for(var f=k,b=s&&s.formats,m=(k=f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(T,V,U){var W=U&&U.toUpperCase();return V||b[U]||o[U]||b[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function($,P,M){return P||M.slice(1)}))}))).match(l),A=m.length,C=0;C<A;C+=1){var g=m[C],h=w[g],N=h&&h[0],B=h&&h[1];m[C]=B?{regex:N,parser:B}:g.replace(/^\[|\]$/g,"")}return function(T){for(var V={},U=0,W=0;U<A;U+=1){var $=m[U];if(typeof $=="string")W+=$.length;else{var P=$.regex,M=$.parser,q=T.slice(W),O=P.exec(q)[0];M.call(V,O),T=T.replace(O,"")}}return(function(H){var I=H.afternoon;if(I!==void 0){var G=H.hours;I?G<12&&(H.hours+=12):G===12&&(H.hours=0),delete H.afternoon}})(V),V}}return function(k,f,b){b.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(d=k.parseTwoDigitYear);var m=f.prototype,A=m.parse;m.parse=function(C){var g=C.date,h=C.utc,N=C.args;this.$u=h;var B=N[1];if(typeof B=="string"){var T=N[2]===!0,V=N[3]===!0,U=T||V,W=N[2];V&&(W=N[2]),s=this.$locale(),!T&&W&&(s=b.Ls[W]),this.$d=(function(q,O,H,I){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*q);var G=y(O)(q),te=G.year,_=G.month,K=G.day,Y=G.hours,Z=G.minutes,E=G.seconds,L=G.milliseconds,X=G.zone,Q=G.week,ne=new Date,z=K||(te||_?1:ne.getDate()),R=te||ne.getFullYear(),D=0;te&&!_||(D=_>0?_-1:ne.getMonth());var x,F=Y||0,j=Z||0,ee=E||0,le=L||0;return X?new Date(Date.UTC(R,D,z,F,j,ee,le+60*X.offset*1e3)):H?new Date(Date.UTC(R,D,z,F,j,ee,le)):(x=new Date(R,D,z,F,j,ee,le),Q&&(x=I(x).week(Q).toDate()),x)}catch{return new Date("")}})(g,B,h,b),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),U&&g!=this.format(B)&&(this.$d=new Date("")),s={}}else if(B instanceof Array)for(var $=B.length,P=1;P<=$;P+=1){N[1]=B[P-1];var M=b.apply(this,N);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}P===$&&(this.$d=new Date(""))}else A.call(this,C)}}}))})),_f=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_advancedFormat=l()})(e,(function(){"use strict";return function(o,l){var a=l.prototype,r=a.format;a.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return r.bind(this)(i);var d=this.$utils(),p=(i||"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 r.bind(this)(p)}}}))})),jf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_localeData=l()})(e,(function(){"use strict";return function(o,l,a){var r=l.prototype,i=function(c){return c&&(c.indexOf?c:c.s)},u=function(c,v,S,w,y){var k=c.name?c:c.$locale(),f=i(k[v]),b=i(k[S]),m=f||b.map((function(C){return C.slice(0,w)}));if(!y)return m;var A=k.weekStart;return m.map((function(C,g){return m[(g+(A||0))%7]}))},s=function(){return a.Ls[a.locale()]},d=function(c,v){return c.formats[v]||(function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,y,k){return y||k.slice(1)}))})(c.formats[v.toUpperCase()])},p=function(){var c=this;return{months:function(v){return v?v.format("MMMM"):u(c,"months")},monthsShort:function(v){return v?v.format("MMM"):u(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):u(c,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):u(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):u(c,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return d(c.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},a.localeData=function(){var c=s();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(v){return d(c,v)},meridiem:c.meridiem,ordinal:c.ordinal}},a.months=function(){return u(s(),"months")},a.monthsShort=function(){return u(s(),"monthsShort","months",3)},a.weekdays=function(c){return u(s(),"weekdays",null,null,c)},a.weekdaysShort=function(c){return u(s(),"weekdaysShort","weekdays",3,c)},a.weekdaysMin=function(c){return u(s(),"weekdaysMin","weekdays",2,c)}}}))})),Wf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekOfYear=l()})(e,(function(){"use strict";var o="week",l="year";return function(a,r,i){var u=r.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 p=i(this).startOf(l).add(1,l).date(d),c=i(this).endOf(o);if(p.isBefore(c))return 1}var v=i(this).startOf(l).date(d).startOf(o).subtract(1,"millisecond"),S=this.diff(v,o,!0);return S<0?i(this).startOf("week").week():Math.ceil(S)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})),Yf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_weekYear=l()})(e,(function(){"use strict";return function(o,l){l.prototype.weekYear=function(){var a=this.month(),r=this.week(),i=this.year();return r===1&&a===11?i+1:a===0&&r>=52?i-1:i}}}))})),Xf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_dayOfYear=l()})(e,(function(){"use strict";return function(o,l,a){l.prototype.dayOfYear=function(r){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}}))})),Qf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrAfter=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}}))})),Gf=We(((e,n)=>{(function(o,l){typeof e=="object"&&typeof n<"u"?n.exports=l():typeof define=="function"&&define.amd?define(l):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_isSameOrBefore=l()})(e,(function(){"use strict";return function(o,l){l.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}}))})),Oe=Ye(Uf(),1),Zf=Ye(Hf(),1),Jf=Ye(_f(),1),em=Ye(jf(),1),tm=Ye(Wf(),1),nm=Ye(Yf(),1),lm=Ye(Xf(),1),om=Ye(Qf(),1),am=Ye(Gf(),1);Oe.default.extend(em.default);Oe.default.extend(Jf.default);Oe.default.extend(Zf.default);Oe.default.extend(tm.default);Oe.default.extend(nm.default);Oe.default.extend(lm.default);Oe.default.extend(om.default);Oe.default.extend(am.default);var gt={format(e,n="YYYY-MM-DD"){return(0,Oe.default)(e).format(n)},parser(e,n){return(0,Oe.default)(e,n).toDate()},getDay(e,n,o){let l=n??new Date;const a=e*(1e3*60*60*24);return l=new Date(l.getTime()+a),o=o??"YYYY-MM-DD",this.format(l,o)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){let l=new Date(e+"/"+n+"/"+o).getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},compare(e,n,o){const l=typeof e=="string"?this.parser(e,o):e,a=typeof n=="string"?this.parser(n,o):n,r=l.getTime(),i=a.getTime();return r==i?0:r>i?1:-1},between(e,n,o,l){let a;l==="year"?a=new Date(new Date(n).setFullYear(n.getFullYear()+o)):l==="month"?a=new Date(new Date(n).setMonth(n.getMonth()+o)):a=new Date(new Date(n).setDate(n.getDate()+o));const r=e.getTime(),i=a.getTime(),u=n.getTime();return i>u?r>=u&&r<=i:r>=i&&r<=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")}},gr=new Date().getFullYear(),So={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"},An=(e,n,o)=>{let l;if(je(n)?l=n:typeof n=="string"&&ke(n)>0?l=gt.parser(n,o):l=new Date,l.toString()==="Invalid Date")return null;let a=Math.max(l.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Ul=(e,n,o)=>{je(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),gt.format(new Date(l),o)},ko={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(gr-10,0,1),validator:je},maxDate:{type:Date,default:()=>new Date(gr+10,11,31),validator:je},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:rm,scope:im}=J("date-picker"),sm=rm({components:{Picker:ln},props:{...ko},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=(0,pe.useFoxI18n)(im),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds"),today:o("today"),fullWeekdays:JSON.parse(o("fullWeekdays"))},a=(0,t.ref)(!1);(0,t.watch)(()=>e.visible,m=>{a.value=m});function r(m,A){return new Date(m,A,0).getDate()}const i=(m,A)=>{const C=e[`${m}Date`],g=C.getFullYear();let h=1,N=1,B=0,T=0;m==="max"&&(h=12,N=r(A.getFullYear(),A.getMonth()+1),B=23,T=59);const V=T;return A.getFullYear()===g&&(h=C.getMonth()+1,A.getMonth()+1===h&&(N=C.getDate(),A.getDate()===N&&(B=C.getHours(),A.getHours()===B&&(T=C.getMinutes())))),{[`${m}Year`]:g,[`${m}Month`]:h,[`${m}Date`]:N,[`${m}Hour`]:B,[`${m}Minute`]:T,[`${m}Seconds`]:V}},u=(0,t.computed)(()=>{if(!v.value)return[];const{maxYear:m,maxDate:A,maxMonth:C,maxHour:g,maxMinute:h,maxSeconds:N}=i("max",v.value),{minYear:B,minDate:T,minMonth:V,minHour:U,minMinute:W,minSeconds:$}=i("min",v.value);let P=[{type:"year",range:[B,m]},{type:"month",range:[V,C]},{type:"day",range:[T,A]},{type:"hour",range:[U,g]},{type:"minute",range:[W,h]},{type:"seconds",range:[$,N]}];switch(e.type){case"date":P=P.slice(0,3);break;case"datetime":P=P.slice(0,5);break;case"time":P=P.slice(3,6);break;case"year-month":P=P.slice(0,2);break;case"month-day":P=P.slice(1,3);break;case"datehour":P=P.slice(0,4);break;case"hour-minute":P=P.slice(3,5);break}return P}),s=(m,A,C,g,h)=>{const N=[];for(;m<=A;){let B=!0;if(typeof e.itemFilter=="function"){const T={text:`${m}`,value:m,type:C,currentYearMonth:g};B=e.itemFilter(T)}if(B)if(typeof e.itemFormatter=="function"){const T={text:`${m}`,value:m,type:C,currentYearMonth:g};e.itemFormatter(T),N.push({text:T.text,value:T.value})}else if(e.isShowChinese){let T=`${m}${l[C]}`;if(C==="day"){if(g[0]===h[0]&&g[1]===h[1]&&m===h[2])T=l.today;else{const V=new Date(g[0],g[1],m).getDay();T=`${T} ${l.fullWeekdays[V]}`}N.push({text:T,value:m})}else N.push({text:m+l[C],value:m})}else N.push({text:`${m}`,value:m});C==="minute"?m+=e.minuteStep:m++}return N},d=(0,t.computed)(()=>{const m=new Date,A=[m.getFullYear(),m.getMonth(),m.getDate()],C=[];v.value&&(C[0]=v.value.getFullYear(),C[1]=v.value.getMonth());let g=[];return u.value.forEach(h=>{let N=s(h.range[0],h.range[1],h.type,C,A);N&&g.push(N)}),g}),p=(m,A)=>m==="year"?A.getFullYear():m==="month"?A.getMonth()+1:m==="day"?A.getDate():m==="hour"?A.getHours():m==="minute"?A.getMinutes():m==="seconds"?A.getSeconds():0,c=(0,t.ref)(),v=(0,t.ref)(null);(0,t.watch)(()=>e.modelValue,m=>{let A;if(typeof m=="string"?m.length==0||m==="Invalid Date"?A=new Date:e.valueFormat?A=An(e,e.modelValue,e.valueFormat):A=An(e,m,So[e.type]):je(m)?A=m:A=new Date,!!A&&(!v.value||A.getTime()!==v.value.getTime())){v.value=A;let C=[];u.value.forEach(g=>{let h=p(g.type,A);C.push(h)}),c.value=C}},{immediate:!0});const S=m=>{if(!m||m.length===0){v.value=new Date;let A=[];u.value.forEach(C=>{let g=p(C.type,v.value);A.push(g)}),c.value=A;return}if(e.type==="date"){const A=m[0],C=m[1]-1,g=Math.min(m[2],r(A,C+1));g!==m[2]&&(m[2]=g),v.value=new Date(A,C,g)}else if(e.type==="datetime"){const A=m[0],C=m[1]-1,g=Math.min(m[2],r(A,C+1)),h=m[3],N=m[4];g!==m[2]&&(m[2]=g),v.value=new Date(A,C,g,h,N)}else if(e.type==="time"){const A=m[0],C=m[1],g=m[2],h=v.value??new Date;v.value=new Date(h.getFullYear(),h.getMonth(),h.getDate(),A,C,g)}else if(e.type==="year-month"){const A=m[0],C=m[1]-1;v.value=new Date(A,C)}else if(e.type==="month-day"){const A=(v.value??new Date).getFullYear(),C=m[0]-1,g=Math.min(m[1],r(A,C+1));g!==m[1]&&(m[1]=g),v.value=new Date(A,C,g)}else if(e.type==="datehour"){const A=m[0],C=m[1]-1,g=Math.min(m[2],r(A,C+1)),h=m[3];g!==m[2]&&(m[2]=g),v.value=new Date(A,C,g,h)}else if(e.type==="hour-minute"){const A=m[0],C=m[1],g=v.value??new Date;v.value=new Date(g.getFullYear(),g.getMonth(),g.getDate(),A,C)}c.value=m};return{columns:d,dateIndexs:c,show:a,onChange:m=>{S(m)},onClose:()=>{n("update:close",!1)},onConfirm:m=>{S(m);const A=v.value??new Date;e.valueFormat?n("update:modelValue",Ul(e,A,e.valueFormat)):n("update:modelValue",A),n("confirm",m)},onClear:()=>{n("clear")},onUpdateVisible:m=>{a.value=m,n("update:visible",m)}}}});function um(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Picker");return(0,t.openBlock)(),(0,t.createBlock)(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"top")]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}var al=ae(sm,[["render",um]]),cm={format:{type:[String]},placeholder:{type:[String]},textAlign:{type:[String]},unit:{type:[String]},clearable:{type:[Boolean]},maxLength:{type:[Number]}};function dm(e){let n=e.format;return n||(n=So[e.type??"date"]),n}var fm={...he,...ge,...ko,...cm};function mm(e,n,o,l,a,r,i,u=!1){return{props:fm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{innerDisabled:p,disabled:c,innerReadonly:v,readonly:S,browse:w}=Ie(s),{emitEvent:y}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return c.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),b=(0,t.ref)(!1),A=De(s,"modelValue",E=>E==null?null:typeof E=="string"?E.length==0?null:s.valueFormat?An(s,E,s.valueFormat)??E:An(s,E,So[s.type])??E:je(E)?E:null,y),C=(0,t.computed)(()=>{if(!A.value)return"";const E=dm(s);return Ul(s,A.value,E)}),g="fox-input-item",h=(0,t.computed)(()=>({[g]:!0,"is-disabled":c.value,"is-readonly":S.value})),N=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),B=(0,t.computed)(()=>{const E={};return N.value&&(E["text-align"]=N.value),E}),T=(0,t.ref)(!1),V=()=>{T.value=!0},U=()=>{T.value=!1};d.expose({showPicker:V,hidePicker:U});const W=E=>{T.value=E},$=E=>{if(A.value=E,s.valueFormat){let L=Ul(s,E,s.valueFormat);y("update:modelValue",L,{}),y("change",L,{})}else y("update:modelValue",E,{}),y("change",E,{})},P=E=>{let L=E.target.value;b.value=!0,y("focus",L,E)},M=E=>{setTimeout(()=>{b.value=!1},0);let L=E.target.value;s.maxLength&&L.length>Number(s.maxLength)&&(L=L.slice(0,Number(s.maxLength))),y("blur",L,E)},q=(0,t.computed)(()=>({[`${g}__append`]:!0,"is-disabled":c.value,"is-readonly":S.value})),O=(0,t.computed)(()=>ke(s.unit)>0),H=(0,t.computed)(()=>ke(s.unit)>0&&!b.value),I=(0,t.computed)(()=>({hidden:!H.value})),G=E=>{A.value="",y("update:modelValue","",E),y("change","",E),y("clear",""),U()},te=(0,t.computed)(()=>s.clearable&&!c.value&&!S.value),_=(0,t.computed)(()=>{let E=ke(A.value)>0;return s.clearable&&E&&b.value}),K=E=>{_.value?G(E):V()},Y=(0,t.computed)(()=>_.value&&te.value?a:r),Z=(0,t.computed)(()=>({action:!0}));return be({setDisabled:E=>{p.value=E},setReadonly:E=>{v.value=E}}),()=>{if(w.value==="on"&&(S.value||c.value))return l(C.value,d.slots);const E={class:h.value,style:B.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:C.value,onClick:V,onFocus:P,onBlur:M};u&&(E.disabled=!0);const L=[],X=(0,t.h)("input",E);L.push(X);const Q=[],ne=(0,t.h)(Y.value,{class:["action-icon"]}),z=(0,t.h)("view",{class:Z.value,onClick:K},{default:()=>[ne]});if(Q.push(z),O.value){const le=(0,t.h)("view",{class:I.value},[s.unit]);Q.push(le)}const R=(0,t.h)("view",{class:q.value},{default:()=>Q});L.push(R);const D={default:()=>L};D.label=d.slots.default,D.prepend=d.slots.prepend,D.append=d.slots.append,D.fixedPreTip=d.slots.fixedPreTip,D.fixedTip=d.slots.fixedTip;const x=ve(s,ko);x.valueFormat=null,x.disabled=!1,x.readonly=c.value||S.value,x.visible=T.value,x["onUpdate:visible"]=W,x.modelValue=A.value,x["onUpdate:modelValue"]=$,x.onClear=G;const F={};if(d.slots.top){const le=d.slots.top();F.top=()=>le}if(d.slots.bottom){const le=d.slots.bottom();F.default=()=>le}const j=(0,t.h)(i,x,F);D.hide=()=>[j];const ee={...ve(s,ge,he)};return s.prop&&(ee.prop=`${s.prop}_item`),o(ee,D)}}}}var{create:pm,componentName:hm,scope:vm}=J("date-item"),gm=pm(mm(hm,vm,qe,Me,oe.CircleClose,oe.Date,al,!1)),wo=gm,re={format(e,n="YYYY-MM-DD"){return gt.format(e,n)},parser(e,n){return gt.parser(e,n)},isLeapYear:function(e){return gt.isLeapYear(e)},getWhatDay:function(e,n,o){return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][new Date(e+"/"+n+"/"+o).getDay()]},getMonthPreDay:function(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays:function(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit:function(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){return n=n||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(n)},getDay:function(e){e=e||0;let n=new Date;const o=e*(1e3*60*60*24);return n=new Date(n.getTime()+o),this.date2Str(n)},compareDate:function(e,n){return!(new Date(e.replace("-","/").replace("-","/"))>=new Date(n.replace("-","/").replace("-","/")))},isEqual:function(e,n){return new Date(e).getTime()==new Date(n).getTime()},getMonthWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o));let r=a.getDay();const i=a.getDate();let u=6-r;return l!==0&&(r=r==0?7:r,u=7-r),Math.ceil((i+u)/7)},getYearWeek:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=new Date(Number(e),0,1),i=Math.round((a.valueOf()-r.valueOf())/864e5);return Math.ceil((i+(r.getDay()+1-1))/7)},getWeekDate:function(e,n,o,l=0){const a=new Date(Number(e),parseInt(n)-1,Number(o)),r=a.getTime();let i=a.getDay();if(l===0){const s=r-i*864e5,d=r+(6-i)*864e5;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}else{i=i==0?7:i;const u=1440*60*1e3,s=r-(i-1)*u,d=r+(7-i)*u;return[this.date2Str(new Date(s)),this.date2Str(new Date(d))]}},formatResultDate:function(e){const n=[...e.split("-")];return n[2]=re.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=re.getWhatDay(+n[0],+n[1],+n[2]),n}},{create:ym,scope:bm}=J("calendar-pane"),Sm=ym({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String},confirmText:{type:String},startText:{type:String},endText:{type:String},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:re.getDay(0)},endDate:{type:String,default:re.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l,t:a}=(0,pe.useFoxI18n)(bm),r=l(e,["title","confirmText","startText","endText","today"]),i=JSON.parse(a("weekdays")),u=(0,t.ref)([...i.slice(e.firstDayOfWeek,7),...i.slice(0,e.firstDayOfWeek)]),s=(0,t.ref)(null),d=(0,t.ref)(null),p=(0,t.ref)(null),c=(0,t.ref)(null),v=(0,t.ref)(0),S=(0,t.computed)(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),w=(0,t.computed)(()=>o.btn),y=(0,t.computed)(()=>o["top-info"]),k=(0,t.computed)(()=>o["bottom-info"]),f=(0,t.reactive)({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),b=E=>E.split("-"),m=E=>re.isEqual(f.currDate[0],E),A=E=>re.isEqual(f.currDate[1],E),C=E=>f.currDate?.length>0?f.currDate?.some(L=>re.isEqual(L,E)):!1,g=(E,L)=>L.curData[0]+"-"+L.curData[1]+"-"+re.getNumTwoBit(+E.day),h=(E,L)=>{const X=g(E,L),{type:Q}=e;return E.type=="curr"?re.isEqual(f.currDate,X)||(Q=="range"||Q=="week")&&(m(X)||A(X))||Q=="multiple"&&C(X)?`${f.dayPrefix}--active`:f.propStartDate&&re.compareDate(X,f.propStartDate)||f.propEndDate&&re.compareDate(f.propEndDate,X)?`${f.dayPrefix}--disabled`:(Q=="range"||Q=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&re.compareDate(f.currDate[0],X)&&re.compareDate(X,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},N=()=>{const{type:E}=e;if(E=="range"&&f.chooseData.length==2||E!="range"){let L=f.chooseData.slice(0);E=="week"&&(L={weekDate:[T(f.chooseData[0]),T(f.chooseData[1])]}),n("choose",L),e.poppable&&n("update")}},B=(E,L,X=!1)=>{if(h(E,L)!=`${f.dayPrefix}--disabled`){const{type:Q}=e;let[ne,z]=L.curData,R=[...L.curData];if(R[2]=re.getNumTwoBit(Number(E.day)),R[3]=`${R[0]}-${R[1]}-${R[2]}`,R[4]=re.getWhatDay(+R[0],+R[1],+R[2]),Q=="multiple")if(f.currDate?.length>0){let D;f.currDate?.forEach((x,F)=>{x==R[3]&&(D=F)}),X?f.chooseData.push([...R]):D!==void 0?(f.currDate.splice(D,1),f.chooseData.splice(D,1)):(f.currDate.push(R[3]),f.chooseData.push([...R]))}else f.currDate=[R[3]],f.chooseData=[[...R]];else if(Q=="range"){let D=Object.values(f.currDate).length;D==2||D==0?f.currDate=[R[3]]:re.compareDate(f.currDate[0],R[3])?Array.isArray(f.currDate)&&f.currDate.push(R[3]):Array.isArray(f.currDate)&&f.currDate.unshift(R[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...R]]:re.compareDate(f.chooseData[0][3],R[3])?f.chooseData=[...f.chooseData,[...R]]:f.chooseData=[[...R],...f.chooseData]}else if(Q=="week"){let D=re.getWeekDate(ne,z,E.day,e.firstDayOfWeek);f.propStartDate&&re.compareDate(D[0],f.propStartDate)&&D.splice(0,1,f.propStartDate),f.propEndDate&&re.compareDate(f.propEndDate,D[1])&&D.splice(1,1,f.propEndDate),f.currDate=D,f.chooseData=[re.formatResultDate(D[0]),re.formatResultDate(D[1])]}else f.currDate=R[3],f.chooseData=[...R];if(!X){let D=f.chooseData;Q=="week"&&(D={weekDate:[T(f.chooseData[0]),T(f.chooseData[1])]}),n("select",D),(e.isAutoBackFill||!e.poppable)&&N()}}},T=E=>{let[L,X,Q]=E;return{date:E,monthWeekNum:re.getMonthWeek(L,X,Q,e.firstDayOfWeek),yearWeekNum:re.getYearWeek(L,X,Q,e.firstDayOfWeek)}},V=E=>{const L=E=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let X=parseInt(L.curData[0]),Q=parseInt(L.curData[1].toString().replace(/^0/,""));switch(E){case"prev":Q==1&&(X-=1),Q=Q==1?12:--Q;break;case"next":Q==12&&(X+=1),Q=Q==12?1:++Q;break}return[X+"",re.getNumTwoBit(Q),re.getMonthDays(String(X),String(Q))+""]},U=(E,L,X)=>{let{year:Q,month:ne}=X;return L=="prev"&&E>=7&&(E-=7),Array.from(Array(E),(z,R)=>({day:String(R+1),type:L,year:Q,month:ne}))},W=(E,L,X,Q)=>{E=E-e.firstDayOfWeek;let{year:ne,month:z}=X;return L=="prev"&&E>=7&&(E-=7),Array.from(Array(Q),(R,D)=>({day:String(D+1),type:L,year:ne,month:z})).slice(Q-E)},$=(E,L)=>{const X=re.getMonthPreDay(+E[0],+E[1]);let Q=Number(E[1])-1,ne=Number(E[0]);Q<=0&&(Q=12,ne+=1);const z=re.getMonthDays(String(E[0]),String(E[1])),R=re.getMonthDays(ne+"",Q+""),D={year:E[0],month:E[1]},x={curData:E,title:a("monthTitle",{year:D.year,month:D.month}),monthData:[...W(X,"prev",{month:String(Q),year:String(ne)},R),...U(z,"curr",D)],cssHeight:0,cssScrollHeight:0};x.cssHeight=39+64*(x.monthData.length>35?6:5);let F=0;f.monthsData.length>0&&(F=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),x.cssScrollHeight=F,L=="next"?(!f.endData||!re.compareDate(`${f.endData[0]}-${f.endData[1]}-${re.getMonthDays(f.endData[0],f.endData[1])}`,`${E[0]}-${E[1]}-${E[2]}`))&&f.monthsData.push(x):!f.startData||!re.compareDate(`${E[0]}-${E[1]}-${E[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(x):f.unLoadPrev=!0},P=()=>{let E=e.startDate?e.startDate:re.getDay(0),L=e.endDate?e.endDate:re.getDay(365);f.propStartDate=E,f.propEndDate=L,f.startData=b(E),f.endData=b(L),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const X={year:Number(f.startData[0]),month:Number(f.startData[1])},Q={year:Number(f.endData[0]),month:Number(f.endData[1])};let ne=Q.month-X.month;Q.year-X.year>0&&(ne=ne+12*(Q.year-X.year)),ne<=0&&(ne=1),$(f.startData,"next");let z=1;do $(V("next"),"next");while(z++<ne);if(f.monthsNum=ne,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(E&&re.compareDate(f.currDate[0],E)&&f.currDate.splice(0,1,E),L&&re.compareDate(L,f.currDate[1])&&f.currDate.splice(1,1,L),f.defaultData=[...b(f.currDate[0]),...b(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let R=[],D={};f.currDate.forEach(x=>{E&&!re.compareDate(x,E)&&L&&!re.compareDate(L,x)&&(Object.hasOwnProperty.call(D,x)||(R.push(x),D[x]=x))}),f.currDate=[...R],f.defaultData=[...b(R[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[R,D,x]=b(f.currDate[0]);f.currDate=re.getWeekDate(R,D,x,e.firstDayOfWeek),E&&re.compareDate(f.currDate[0],E)&&f.currDate.splice(0,1,E),L&&re.compareDate(L,f.currDate[1])&&f.currDate.splice(1,1,L),f.defaultData=[...b(f.currDate[0]),...b(f.currDate[1])]}}else f.currDate&&(E&&re.compareDate(f.currDate,E)?f.currDate=E:L&&!re.compareDate(f.currDate,L)&&(f.currDate=L),f.defaultData=[...b(f.currDate)])};be({scrollToDate:E=>{re.compareDate(E,f.propStartDate)?E=f.propStartDate:re.compareDate(E,f.propEndDate)||(E=f.propEndDate);let L=b(E);f.monthsData.forEach((X,Q)=>{if(X.title==a("monthTitle",{year:L[0],month:L[1]})&&s.value){let ne=f.monthsData[Q].cssScrollHeight-s.value.scrollTop;if(e.toDateAnimation){let z=0,R=setInterval(()=>{if(z++,s.value){let D=ne/10;s.value.scrollTop=s.value.scrollTop+D}z>=10&&(clearInterval(R),s.value&&(s.value.scrollTop=f.monthsData[Q].cssScrollHeight))},40)}else s.value.scrollTop=f.monthsData[Q].cssScrollHeight}})},initPosition:()=>{s?.value&&(s.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let E=0,L=0;f.defaultData.length>0&&f.monthsData.forEach((ne,z)=>{ne.title==a("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(E=z),(e.type=="range"||e.type=="week")&&ne.title==a("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(L=z)}),H(f.monthsNum,E),f.currentIndex=E,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),B({day:f.defaultData[5],type:"curr"},f.monthsData[L],!0)):e.type=="week"?B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(ne=>{let z=b(ne),R=f.currentIndex;f.monthsData.forEach((D,x)=>{D.title==a("monthTitle",{year:z[0],month:z[1]})&&(R=x)}),B({day:z[2],type:"curr"},f.monthsData[R],!0)}):B({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let X=f.monthsData[f.monthsData.length-1],Q=X.cssHeight+X.cssScrollHeight;Xe(()=>{s?.value&&d?.value&&c?.value&&(v.value=s.value.clientHeight,d.value.style.height=`${Q}px`,s.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(Q/(f.monthsNum+1))}});const H=(E,L)=>{E>=3?L>0&&L<E?f.defaultRange=[L-1,L+3]:L==0?f.defaultRange=[L,L+4]:L==E&&(f.defaultRange=[L-2,L+2]):f.defaultRange=[0,E+2],f.translateY=f.monthsData[f.defaultRange[0]].cssScrollHeight},I=(E,L)=>(e.type=="range"||e.type=="week")&&E.type=="curr"&&h(E,L)=="fox-calendar__day--active",G=(E,L)=>I(E,L)&&m(g(E,L)),te=(E,L)=>f.currDate.length>=2&&A(g(E,L))?I(E,L):!1,_=()=>{if(f.currDate.length>=2)return re.isEqual(f.currDate[0],f.currDate[1])},K=E=>{const L=`${E.year}-${E.month}-${Number(E.day)<10?"0"+E.day:E.day}`;return re.isEqual(L,re.date2Str(new Date))},Y=E=>{if(f.monthsData.length<=1)return;const L=E.target.scrollTop;let X=Math.floor(L/f.avgHeight);if(X==0)L>=f.monthsData[X+1].cssScrollHeight&&(X+=1);else if(X>0&&X<f.monthsNum-1)L>=f.monthsData[X+1].cssScrollHeight&&(X+=1),L<f.monthsData[X].cssScrollHeight&&(X-=1);else{const Q=Math.round(L+v.value);Q<f.monthsData[X].cssScrollHeight+f.monthsData[X].cssHeight&&L>f.monthsData[X-1].cssScrollHeight&&(X-=1),X+1<=f.monthsNum&&Q>=f.monthsData[X+1].cssScrollHeight+f.monthsData[X+1].cssHeight&&(X+=1),X>=1&&L<f.monthsData[X-1].cssScrollHeight&&(X-=1)}f.currentIndex!==X&&(f.currentIndex=X,H(f.monthsNum,X)),f.yearMonthTitle=f.monthsData[X].title},Z=()=>{f.chooseData.splice(0),f.monthsData.splice(0),P()};return P(),(0,t.watch)(()=>e.defaultValue,E=>{E&&e.poppable&&Z()}),{weeks:u,compConthsData:S,showTopBtn:w,topInfo:y,bottomInfo:k,rangeTip:_,mothsViewScroll:Y,getClass:h,isStartTip:G,isEndTip:te,chooseDay:B,isCurrDay:K,confirm:N,months:s,...(0,t.toRefs)(f),...(0,t.toRefs)(e),...r,monthsPanel:d,weeksPanel:p,viewArea:c}}}),km={class:"fox-calendar__header"},wm={key:0,class:"fox-calendar__header-title"},Cm={key:1,class:"fox-calendar__header-slot"},Nm={key:2,class:"fox-calendar__header-subtitle"},Am={class:"fox-calendar__weekdays",ref:"weeksPanel"},Bm={class:"fox-calendar__panel",ref:"monthsPanel"},Tm={class:"fox-calendar__month-title"},Vm={class:"fox-calendar__days"},xm=["onClick"],$m={class:"fox-calendar__day-value"},Em={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Dm={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Im={key:2,class:"fox-calendar__day-tips--curr"},qm={key:4,class:"fox-calendar__day-tip"},Pm={key:0,class:"fox-calendar__footer"};function Mm(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[(0,t.createElementVNode)("view",km,[e.showTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",wm,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.showTopBtn?((0,t.openBlock)(),(0,t.createElementBlock)("view",Cm,[(0,t.renderSlot)(e.$slots,"btn")])):(0,t.createCommentVNode)("",!0),e.showSubTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Nm,(0,t.toDisplayString)(e.yearMonthTitle),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Am,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.weeks,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__weekday",key:u},(0,t.toDisplayString)(i),1))),128))],512)]),(0,t.createElementVNode)("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[(0,t.createElementVNode)("view",Bm,[(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,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-calendar__month",key:u},[(0,t.createElementVNode)("view",Tm,(0,t.toDisplayString)(i.title),1),(0,t.createElementVNode)("view",Vm,[(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)(i.monthData,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-calendar__day",e.getClass(s,i)]),onClick:p=>e.chooseDay(s,i)},[(0,t.createElementVNode)("view",$m,[(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",Em,[(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",Dm,[(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",Im,(0,t.toDisplayString)(e.today),1)):(0,t.createCommentVNode)("",!0),e.isStartTip(s,i)?((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,i)?((0,t.openBlock)(),(0,t.createElementBlock)("view",qm,(0,t.toDisplayString)(e.endText),1)):(0,t.createCommentVNode)("",!0)],10,xm))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?((0,t.openBlock)(),(0,t.createElementBlock)("view",Pm,[(0,t.createElementVNode)("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},(0,t.toDisplayString)(e.confirmText),1)])):(0,t.createCommentVNode)("",!0)],2)}var zm=ae(Sm,[["render",Mm]]),Lm=(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)(ye,et({...e},{poppable:!1}),n):n?.default?.()??null}}),Rm=Lm,Fm=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Bn={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:Om}=J("calendar"),Km=Om({components:{Wrapper:Rm,CalendarPane:zm},props:{...Bn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o}){const l=(0,t.computed)(()=>o.btn),a=(0,t.computed)(()=>o["top-info"]),r=(0,t.computed)(()=>o.day),i=(0,t.computed)(()=>o["bottom-info"]),u=(0,t.ref)(null),s=y=>{u.value?.scrollToDate(y)},d=()=>{u.value?.initPosition()};(0,t.watch)(()=>e.visible,y=>{y&&(0,t.nextTick)(()=>{u.value?u.value.doLayout():setTimeout(()=>{u.value&&u.value.doLayout()},250)})}),be({scrollToDate:s,initPosition:d});const p=()=>{n("update:visible",!1)},c=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{c()},update:p,close:c,select:y=>{n("select",y)},choose:y=>{c(),n("choose",y)},calendarRef:u,showTopBtn:l,topInfo:a,dayInfo:r,bottomInfo:i}}});function Um(e,n,o,l,a,r){const i=(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)(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},(0,t.createSlots)({_:2},[e.showTopBtn?{name:"btn",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:(0,t.withCtx)(s=>[(0,t.renderSlot)(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","poppable"])}var rl=ae(Km,[["render",Um]]),Ei={modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:[String],default:"-"},valueFormat:{type:[String],default:"YYYY-MM-DD"},format:{type:[String],default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:[String]},textAlign:{type:[String]},clearable:{type:[Boolean],default:!0},maxLength:{type:[String,Number]},unit:{type:[String]}},Al=(e,n)=>{let o;return je(e)?o=e:typeof e=="string"&&ke(e)>0?o=re.parser(e,n):o=new Date,o},ct=(e,n,o)=>(je(n)||(n=new Date),re.format(n,o)),dt=e=>[`${e.getFullYear()}`,`${e.getMonth()+1}`,`${e.getDate()}`,re.date2Str(e),re.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate())],Hm={...he,...ge,...Bn,...Ei};function _m(e,n,o,l,a,{CloseIcon:r,MarkIcon:i},u=!1){return{props:Hm,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,d){const{disabled:p,readonly:c,browse:v}=Ie(s),{emitEvent:S}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return p.value}},s.prop??d.attrs.name),{toLocaleRefs:w}=(0,pe.useFoxI18n)(n),y=w(s,["placeholder"]),k=(0,t.ref)(!1),f=(0,t.computed)(()=>s.type==="range"),b=(0,t.reactive)({startDate:null,endDate:null,startArray:[],endArray:[]}),m=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},A=(E,L="one",X="YYYY-MM-DD")=>{if(Fm(E)){m();return}if(f.value&&Array.isArray(E)&&E.length==2){let Q,ne;typeof E[0]=="string"?(Q=Al(E[0],X),ne=Al(E[1],X)):(Q=E[0],ne=E[1]);let z=dt(Q),R=dt(ne);(b.startDate===null||b.startDate.getTime()!==Q.getTime()||b.endDate?.getTime()!==ne.getTime())&&(b.startDate=Q,b.startArray=z,b.endDate=ne,b.endArray=R)}else{let Q;typeof E=="string"?Q=Al(E,X):Q=E;let ne=dt(Q);(b.startDate===null||b.startDate.getTime()!==Q.getTime())&&(b.startDate=Q,b.startArray=ne)}};A(s.modelValue,s.type,s.valueFormat),(0,t.watch)(()=>s.modelValue,E=>{A(E,s.type,s.valueFormat),S("setValue",E)});const C=(0,t.computed)(()=>{if(b.startDate===null)return"";if(f.value){let E=ct(s,b.startDate,s.format),L=ct(s,b.endDate,s.format);return`${E} ${s.rangeSeparator} ${L}`}else{let E=ct(s,b.startDate,s.format);return s.showWeek&&(E=`${E} ${b.startArray[4]}`),E}}),g=(0,t.computed)(()=>b.startDate===null?null:f.value?[re.date2Str(b.startDate),re.date2Str(b.endDate??new Date)]:re.date2Str(b.startDate)),h="fox-input-item",N=(0,t.computed)(()=>({[h]:!0,"is-disabled":p.value,"is-readonly":c.value})),B=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),T=(0,t.computed)(()=>{const E={};return B.value&&(E["text-align"]=B.value),E}),V=(0,t.ref)(!1),U=()=>{c.value||p.value||(V.value=!0)},W=E=>{V.value=E},$=E=>{if(E){if(f.value&&Array.isArray(E)){let L=E[0],X=de(L[0]),Q=de(L[1]),ne=de(L[2]),z=new Date(X,Q-1,ne),R=E[1];X=de(R[0]),Q=de(R[1]),ne=de(R[2]);let D=new Date(X,Q-1,ne);b.startDate=z,b.startArray=dt(z),b.endDate=D,b.endArray=dt(D),s.valueFormat?S("update:modelValue",[ct(s,z,s.valueFormat),ct(s,D,s.valueFormat)],{}):S("update:modelValue",[z,D],{})}else{let L=E,X=de(L[0]),Q=de(L[1]),ne=de(L[2]),z=new Date(X,Q-1,ne);b.startDate=z,b.startArray=dt(z),s.valueFormat?S("update:modelValue",ct(s,z,s.valueFormat),{}):S("update:modelValue",z,{})}S("change",E,{})}},P=E=>{let L=E.target.value;k.value=!0,S("focus",L,E)},M=E=>{setTimeout(()=>{k.value=!1},0);let L=E.target.value;s.maxLength&&L.length>Number(s.maxLength)&&(L=L.slice(0,Number(s.maxLength))),S("blur",L,E)},q=(0,t.computed)(()=>({[`${h}__append`]:!0,"is-disabled":p.value,"is-readonly":c.value})),O=(0,t.computed)(()=>ke(s.unit)>0),H=(0,t.computed)(()=>ke(s.unit)>0&&!k.value),I=(0,t.computed)(()=>({hidden:!H.value})),G=E=>{m(),S("update:modelValue",null,E),S("change","",E),S("clear","")},te=(0,t.computed)(()=>s.clearable&&!p.value&&!c.value),_=(0,t.computed)(()=>{let E=ke(C.value)>0;return s.clearable&&E&&k.value}),K=E=>{_.value?G(E):U()},Y=(0,t.computed)(()=>_.value&&te.value?r:i),Z=(0,t.computed)(()=>({action:!0}));return()=>{if(v.value==="on"&&(c.value||p.value))return a(C.value,d.slots);const E={class:N.value,style:T.value,type:"text",maxlength:s.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:C.value,onClick:U,onFocus:P,onBlur:M};u&&(E.disabled=!0);const L=[],X=(0,t.h)("input",E);L.push(X);const Q=[],ne=(0,t.h)(Y.value,{class:["action-icon"]}),z=(0,t.h)("view",{class:Z.value,onClick:K},{default:()=>[ne]});if(Q.push(z),O.value){const le=(0,t.h)("view",{class:I.value},[s.unit]);Q.push(le)}const R=(0,t.h)("view",{class:q.value},{default:()=>Q});L.push(R);const D={default:()=>L};D.label=d.slots.default,D.prepend=d.slots.prepend,D.append=d.slots.append,D.fixedPreTip=d.slots.fixedPreTip,D.fixedTip=d.slots.fixedTip;const x=ve(s,Bn);x.visible=V.value,x["onUpdate:visible"]=W,x["default-value"]=g.value,x.onChoose=$;const F={};if(d.slots.btn){const le=d.slots.btn();F.btn=()=>le}d.slots.day&&(F.day=d.slots.day),d.slots.topInfo&&(F.topInfo=d.slots.topInfo),d.slots.bottomInfo&&(F.bottomInfo=d.slots.bottomInfo);const j=(0,t.h)(o,x,F);D.hide=()=>[j];const ee={...et(s,Bn,Ei)};return s.prop&&(ee.prop=`${s.prop}_item`),l(ee,D)}}}}var{componentName:jm,create:Wm,scope:Ym}=J("calendar-item"),Xm=Wm(_m(jm,Ym,rl,qe,Me,{CloseIcon:oe.CircleClose,MarkIcon:oe.Date},!1)),Co=Xm,Qm={readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},shape:{type:String,default:"round"},label:{type:[String,Number,Boolean],default:""},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}};function Gm(e,{CheckNormal:n,Checked:o}){return{props:{...Qm},setup(l,{emit:a,slots:r}){const i=(0,t.inject)("parent",null),u=On(),s=(0,t.computed)(()=>i.label.value===l.label),d=(0,t.computed)(()=>i.position),p=()=>{const y=[];if(s.value){if(r.checkedIcon)return r.checkedIcon();{const k=se(l.iconSize),f=l.checkedIcon??u.radio.Checked??o;return y.push("fox-radio__icon"),l.disabled&&y.push("is-disabled"),l.readonly&&y.push("is-readonly"),(0,t.h)(f,{width:k,height:k,class:y})}}else{if(r.icon)return r.icon();{const k=se(l.iconSize),f=l.icon??u.radio.CheckNormal??n;return y.push("fox-radio__icon--unchecked"),l.disabled&&y.push("is-disabled"),l.readonly&&y.push("is-readonly"),(0,t.h)(f,{width:k,height:k,class:y})}}},c=()=>{const y=[`${e}__label`];return l.disabled&&y.push("is-disabled"),l.readonly&&y.push("is-readonly"),(0,t.h)("view",{class:y},r.default?.())},v=()=>{const y=[`${e}__button`];return s.value&&y.push(`${e}__button--active`),l.disabled&&y.push("is-disabled"),l.readonly&&y.push("is-readonly"),(0,t.h)("view",{class:y},r.default?.())},S=()=>{s.value||l.disabled||l.readonly||i.updateValue(l.label)},w=d.value==="left";return()=>(0,t.h)("view",{class:`${e} ${e}--${l.shape} ${w?`${e}--reverse`:""}`,onClick:S},[l.shape=="button"?v():w?[c(),p()]:[p(),c()]])}}}var{componentName:Zm,create:Jm}=J("radio"),e0=Jm(Gm(Zm,{CheckNormal:oe.CheckNormal,Checked:oe.CheckChecked})),il=e0,{componentName:yr,create:t0}=J("radio-group"),n0=t0({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:o}=xt(),l=a=>o("update:modelValue",a);return(0,t.provide)("parent",{label:(0,t.readonly)((0,t.computed)(()=>e.modelValue)),position:e.textPosition,updateValue:l}),(0,t.watch)(()=>e.modelValue,a=>o("change",a)),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),(0,t.h)("view",{class:`${yr} ${yr}--${e.direction}`,style:a},n.default?.())}}}),sl=n0;function br(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(mn(e,r)===o)return a}else if(l==="item"){if(xe(o,r))return a}else if(Kt(e,r)===o)return a}return-1}function mn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Kt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function l0(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function o0(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var a0=class{proxy;constructor(e){this.proxy=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=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function r0(){return new a0((0,t.getCurrentInstance)().proxy)}function i0(e){return{text:e,value:e}}var Di={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},s0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},u0={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:""}},c0={...he,...ge,...Di,...s0,...u0};function d0(e,n,o,l,a,r){return{props:c0,emits:["change","update:modelValue","setValue"],setup(i,u){const{innerDisabled:s,disabled:d,innerReadonly:p,readonly:c,browse:v}=Ie(i),{emitEvent:S}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value}},i.prop??u.attrs.name),w=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),y=r0(),k=(0,t.ref)([]),f=(0,t.computed)(()=>typeof i.sourceFilter=="function"&&Array.isArray(k.value)?k.value.filter(i.sourceFilter):k.value);(0,t.watch)([()=>i.source,()=>i.params],async([g,h])=>{if(g){const N=await y.load("radio",g,h);N.length>0?typeof N[0]=="string"?k.value=N.map(B=>i0(B)):k.value=N:k.value=[]}},{immediate:!0});let b=(0,t.ref)(-1);(0,t.watch)([()=>i.modelValue,()=>f.value],async([g,h])=>{b.value=br(i,h,g,i.valueType),S("setValue",g)},{deep:!0});const m=(0,t.computed)(()=>{if(!i.source)return i.modelValue;if(b.value===-1)return null;const g=f.value[b.value];return Kt(i,g)}),A=g=>{let h=null,N=null;if(f.value.length>0){let B=br(i,f.value,g,"value");b.value=B,B>=0&&(N=f.value[B],i.valueType==="text"?h=mn(i,N):i.valueType==="item"?h=N:h=Kt(i,N))}else h=g;S("update:modelValue",h),S("change",h,N)},C=()=>{let g=null,h=null;if(f.value.length>0&&b.value!==-1){let N=f.value[b.value];i.valueType==="text"?g=mn(i,N):i.valueType==="item"?g=N:g=Kt(i,N)}S("update:modelValue",g),S("change",g,h)};if(be({clear(){b.value!==-1&&(b.value=-1,C())},setDisabled:g=>{s.value=g},setReadonly:g=>{p.value=g}}),i.source){const g=()=>{const h=[],N=ve(i,Di);return f.value.forEach((B,T)=>{const V=Kt(i,B),U=l0(i,B);let W={...N,label:V,disabled:U};const $=o0(i,B,T);W={...W,...$},d.value&&(W.disabled=!0),c.value&&(W.readonly=!0);const P={};if(u.slots.icon&&(P.icon=u.slots.icon),u.slots.checkedIcon&&(P.checkedIcon=u.slots.checkedIcon),typeof u.slots.text=="function"){const q=u.slots.text(B);P.default=()=>[q]}else{const q=mn(i,B);P.default=()=>q}let M=(0,t.h)(r,W,P);h.push(M)}),h};return()=>{if(v.value==="on"&&(c.value||d.value))return l(m.value,u.slots,f.value);const h=g(),N=(0,t.h)(a,{class:`${e}`,direction:i.direction,textPosition:i.textPosition,textAlign:w.value,modelValue:m.value,"onUpdate:modelValue":A},{default:()=>h}),B={default:()=>N};B.label=u.slots.default,B.prepend=u.slots.prepend,B.append=u.slots.append,B.fixedPreTip=u.slots.fixedPreTip,B.fixedTip=u.slots.fixedTip;const T={...ve(i,ge,he)};return i.prop&&(T.prop=`${i.prop}_item`),o(T,B)}}else return()=>{const g=u.slots.options?.()??[];return(0,t.h)(a,{class:`${e}`,direction:i.direction,textPosition:i.textPosition,textAlign:w.value,modelValue:m,"update:modelValue":A},{default:()=>g})}}}}var{componentName:f0,create:m0,scope:p0}=J("radio-item"),h0=m0(d0(f0,p0,qe,Me,sl,il)),No=h0,v0=(e,{CheckNormal:n,Checked:o,Indeterminate:l})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(a,{slots:r}){const{emitEvent:i}=xt(),u=On(),s=(0,t.inject)("parent",null),d=(0,t.reactive)({partialSelect:a.indeterminate});(0,t.watch)(()=>a.indeterminate,m=>{d.partialSelect=m});const p=(0,t.computed)(()=>!!s),c=(0,t.computed)(()=>p.value?s.value.value.includes(a.label):!!a.modelValue),v=(0,t.computed)(()=>p.value?s.position:a.textPosition);let S="";const w=(m,A)=>{S="click",i("update:modelValue",m),i("change",m,A)};(0,t.watch)(()=>a.modelValue,m=>{S=="click"?S="":i("change",m)});const y=()=>{const m=[];if(d.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const A=se(a.iconSize),C=a.indeterminateIcon??u.checkbox.Indeterminate??l;return m.push("fox-checkbox__icon--indeterminate"),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)(C,{width:A,height:A,class:m})}}else if(c.value){if(r.checkedIcon)return r.checkedIcon();{const A=se(a.iconSize),C=a.checkedIcon??u.checkbox.Checked??o;return m.push("fox-checkbox__icon"),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)(C,{width:A,height:A,class:m})}}else{if(r.icon)return r.icon();{const A=se(a.iconSize),C=a.icon??u.checkbox.CheckNormal??n;return m.push("fox-checkbox__icon--unchecked"),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)(C,{width:A,height:A,class:m})}}},k=()=>{const m=[`${e}__label`];return a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)("view",{class:m},r.default?.())},f=()=>{const m=[`${e}__button`];return c.value&&m.push(`${e}__button--active`),a.disabled&&m.push("is-disabled"),a.readonly&&m.push("is-readonly"),(0,t.h)("view",{class:m},r.default?.())},b=m=>{if(!(a.disabled||a.readonly)){if(c.value&&d.partialSelect){d.partialSelect=!1,w(c.value,r.default?.()[0].children);return}if(w(!c.value,r.default?.()[0].children),p.value){const A=s.value.value,C=s.max.value,{label:g}=a,h=A.indexOf(g);h>-1?A.splice(h,1):h<=-1&&(A.length<C||!C)&&A.push(g),s.updateValue(A)}}};return(0,t.onMounted)(()=>{p.value&&s.link((0,t.getCurrentInstance)())}),(0,t.onBeforeUnmount)(()=>{p.value&&s.unlink((0,t.getCurrentInstance)())}),()=>(0,t.h)("view",{class:`${e} ${e}--${a.shape} ${v.value==="left"?`${e}--reverse`:""}`,onClick:b},[a.shape=="button"?f():[y(),k()]])}}),{componentName:g0,create:y0}=J("checkbox"),b0=y0(v0(g0,{CheckNormal:oe.CheckNormal,Checked:oe.Checked,Indeterminate:oe.CheckDisabled})),ul=b0,{create:S0,componentName:Sr}=J("checkbox-group"),k0=S0({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:o}=xt(),l=(0,t.reactive)({children:[]}),a=d=>{d.proxy&&l.children.push(d.proxy)},r=d=>{d.proxy&&(l.children=l.children.filter(p=>p!==d.proxy))},i=d=>{o("update:modelValue",d),o("change",d)},u=d=>{const p=[];d&&l.children.forEach(c=>{c?.disabled||p.push(c?.label)}),o("update:modelValue",p)},s=()=>{o("update:modelValue",l.children.filter(d=>d?.disabled?!1:!e.modelValue.includes(d.label)).map(d=>d.label))};return(0,t.provide)("parent",{value:(0,t.computed)(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:(0,t.computed)(()=>e.max),updateValue:i,link:a,unlink:r}),(0,t.watch)(()=>e.modelValue,d=>{o("change",d)}),be({toggleAll:u,toggleReverse:s}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),(0,t.h)("view",{class:`${Sr} ${Sr}--${e.direction}`,style:d},n.default?.())}}}),cl=k0;function kr(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(Hl(e,r)===o)return a}else if(l==="item"){if(xe(o,r))return a}else if(pn(e,r)===o)return a}return-1}function Hl(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function pn(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{proxy;constructor(e){this.proxy=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=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await l(n,o))}};function A0(){return new N0((0,t.getCurrentInstance)().proxy)}function B0(e){return{text:e,value:e}}var T0={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Ii={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},V0={source:{type:[Array,Function,String],required:!1},sourceFilter:{type:[Function]},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]},separator:{type:[String],required:!1,default:", "}},x0={...he,...ge,...T0,...Ii,...V0};function $0(e,n,o,l,a,r){return{props:x0,emits:["change","update:modelValue","setValue"],setup(i,u){const{innerDisabled:s,disabled:d,innerReadonly:p,readonly:c,browse:v}=Ie(i),S=Ae((0,t.computed)(()=>i.textAlign),"textAlign"),{emitEvent:w}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return d.value}},i.prop??u.attrs.name),y=A0(),k=(0,t.ref)([]),f=(0,t.computed)(()=>typeof i.sourceFilter=="function"&&Array.isArray(k.value)?k.value.filter(i.sourceFilter):k.value);(0,t.watch)([()=>i.source,()=>i.params],async([g,h])=>{if(g){const N=await y.load("checkbox",g,h);N.length>0?typeof N[0]=="string"?k.value=N.map(B=>B0(B)):k.value=N:k.value=[]}},{immediate:!0});const b=(0,t.ref)([]);(0,t.watch)([()=>i.modelValue,()=>f.value],async([g,h])=>{const N=[];Array.isArray(g)&&g.forEach(B=>{let T=kr(i,h,B,i.valueType);T!==-1&&N.push(T)}),!xe(N,b.value)&&(b.value=N,w("setValue",N))},{deep:!0});const m=(0,t.computed)(()=>{if(!i.source)return i.modelValue;let g=[];return b.value.forEach(h=>{let N=f.value[h];g.push(pn(i,N))}),g}),A=g=>{let h=[],N=[];if(f.value.length>0){const B=[];Array.isArray(g)&&g.forEach(T=>{let V=kr(i,f.value,T,"value");V!==-1&&B.push(V);const U=f.value[V];N.push(U),i.valueType==="text"?h.push(Hl(i,U)):i.valueType==="item"?h.push(U):h.push(pn(i,U))}),b.value=B}else h=g;w("update:modelValue",h),w("change",h,N)},C=(0,t.ref)();if(be({toggleAll:g=>{C.value.toggleAll(g)},toggleReverse:()=>{C.value.toggleReverse()},setDisabled:g=>{s.value=g},setReadonly:g=>{p.value=g}}),i.source){const g=()=>{const h=[],N=ve(i,Ii);return f.value.forEach((B,T)=>{const V=pn(i,B),U=w0(i,B);let W={...N,label:V,disabled:U};const $=C0(i,B,T);W={...W,...$},d.value&&(W.disabled=!0),c.value&&(W.readonly=!0);const P={};if(u.slots.icon&&(P.icon=u.slots.icon),u.slots.checkedIcon&&(P.checkedIcon=u.slots.checkedIcon),u.slots.indeterminateIcon&&(P.indeterminateIcon=u.slots.indeterminateIcon),typeof u.slots.text=="function"){const q=u.slots.text(B);P.default=()=>[q]}else{const q=Hl(i,B);P.default=()=>q}let M=(0,t.h)(r,W,P);h.push(M)}),h};return()=>{if(v.value==="on"&&(c.value||d.value))return l(m.value,u.slots,f.value,i.separator);const h=g(),N=(0,t.h)(a,{class:`${e}`,ref:C,direction:i.direction,max:i.max,textPosition:i.textPosition,modelValue:m.value,"onUpdate:modelValue":A},{default:()=>h}),B={default:()=>N};B.label=u.slots.default,B.prepend=u.slots.prepend,B.append=u.slots.append,B.fixedPreTip=u.slots.fixedPreTip,B.fixedTip=u.slots.fixedTip;const T={...ve(i,ge,he)};return i.prop&&(T.prop=`${i.prop}_item`),o(T,B)}}else return()=>{const g=u.slots.options?.()??[];return(0,t.h)("view",{class:`${e}`,ref:C,direction:i.direction,max:i.max,textPosition:i.textPosition,textAlign:S.value,modelValue:m,"onUpdate:modelValue":A},{default:()=>g})}}}}var{componentName:E0,create:D0,scope:I0}=J("checkbox-item"),q0=D0($0(E0,I0,qe,Me,cl,ul)),Ao=q0,Bo={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:P0,create:M0}=J("switch"),z0=M0({components:{Loading1:oe.Loading1},props:{...Bo},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=P0;return{[u]:!0,[o.value?"fox-switch-open":"fox-switch-close"]:!0,[`${u}-base`]:!0,"is-disabled":e.disabled}}),a=(0,t.computed)(()=>({backgroundColor:o.value?e.activeColor:e.inactiveColor}));let r="";const i=u=>{if(e.disabled||e.loading)return;r="click";const s=o.value?e.inactiveValue:e.activeValue;n("update:modelValue",s),n("change",s,u)};return(0,t.watch)(()=>e.modelValue,u=>{r=="click"?r="":n("change",u)}),{classes:l,style:a,isActive:o,onClick:i}}}),L0={class:"fox-switch-button"};function R0(e,n,o,l,a,r){const i=(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",L0,[e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,t.createVNode)(i,{name:"loading",color:e.activeColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.activeText?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label open"},(0,t.toDisplayString)(e.activeText),513),[[t.vShow,e.isActive]]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:"fox-switch-label close"},(0,t.toDisplayString)(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):(0,t.createCommentVNode)("",!0)])],6)}var dl=ae(z0,[["render",R0]]),F0={...he,...ge,...Bo};function O0(e,n,o,l,a){return{props:F0,emits:["change","update:modelValue","setValue"],setup(r,i){const{innerDisabled:u,disabled:s,innerReadonly:d,readonly:p,browse:c}=Ie(r),{emitEvent:v}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return s.value}},r.prop??i.attrs.name),S=e,w=De(r,"modelValue",null,v),y=k=>{w.value=k,v("update:modelValue",k,{}),v("change",k,{})};return be({setDisabled:k=>{u.value=k},setReadonly:k=>{d.value=k}}),()=>{if(c.value==="on"&&(p.value||s.value))return l(w.value,i.slots);const k={...ve(r,Bo),disabled:s.value||p.value,value:w.value,"onUpdate:modelValue":y},f=[],b=(0,t.h)(a,k);f.push(b);const m={default:()=>f};m.label=i.slots.default,m.fixedPreTip=i.slots.fixedPreTip,m.fixedTip=i.slots.fixedTip;const A={...ve(r,ge,he)};return r.prop&&(A.prop=`${r.prop}_item`),A["content-class"]=S,o(A,m)}}}}var{componentName:K0,create:U0,scope:H0}=J("switch-item"),_0=U0(O0(K0,H0,qe,Me,dl)),To=_0,j0={...he,...ge,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 W0(e,n,o,l){return{props:j0,emits:["click","focus","blur","change"],setup(a,r){const i=Rn((0,t.computed)(()=>a.disabled)),u=Ln((0,t.computed)(()=>a.readonly)),{emitEvent:s}=Be({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return u.value},get disabled(){return i.value}},a.prop??r.attrs.name),{toLocaleRefs:d}=(0,pe.useFoxI18n)(n),p=d(a,["placeholder"]),c=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,U=>{c.value=U,s("change",U)});const v=(0,t.computed)(()=>({[`${e}`]:!0})),S=(0,t.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!i.value&&ce(c.value),"is-disabled":i.value,"is-readonly":u.value})),w=Ae((0,t.computed)(()=>a.textAlign),"textAlign"),y=(0,t.computed)(()=>{const U={};return w.value&&(U["text-align"]=w.value),U}),k=(0,t.computed)(()=>!ce(a.modelValue)||r.slots.main?!0:!!ce(a.desc)),f=(0,t.computed)(()=>ce(c.value)?p.placeholder.value:c.value),b=(0,t.computed)(()=>!ce(a.desc)||r.slots.sub),m=(0,t.computed)(()=>({[`${e}__sub`]:!0})),A=(0,t.computed)(()=>{const U={};return w.value&&(U["text-align"]=w.value),U}),C=()=>{s("focus",c.value)},g=()=>{s("blur",c.value)},h=(0,t.computed)(()=>({[`${e}__append`]:!0,"is-disabled":i.value,"is-readonly":u.value})),N=(0,t.computed)(()=>ke(a.unit)>0),B=U=>{i.value==!0||u.value==!0||s("click")},T=(0,t.computed)(()=>a.icon??o),V=(0,t.computed)(()=>({action:!0}));return()=>{const U=[];if(typeof r.slots.content=="function"){const I=r.slots.content();U.push(I)}else{const I=[];if(k.value){const te={tabIndex:0,class:S.value,style:y.value,onFocus:C,onBlur:g};let _=null;r.slots.main?_=(0,t.h)("view",te,[r.slots.main(f.value)]):_=(0,t.h)("view",te,[f.value]),I.push(_)}if(b.value){const te={tabIndex:0,class:m.value,style:A.value,onFocus:C,onBlur:g};let _=null;r.slots.sub?_=(0,t.h)("view",te,[r.slots.sub(a.desc)]):_=(0,t.h)("view",te,[a.desc]),I.push(_)}const G=(0,t.h)("view",{class:v.value,onClick:B},I);U.push(G)}const W=[],$=se(a.iconSize);let P=r.slots.icon;if(!P){const I={width:$,height:$,class:["action-icon"]};P=(0,t.h)(T.value,I)}const M=(0,t.h)("view",{class:V.value,onClick:B},{default:()=>[P]});if(W.push(M),N.value){const I=(0,t.h)("view",{},[a.unit]);W.push(I)}const q=(0,t.h)("view",{class:h.value},{default:()=>W});U.push(q);const O={default:()=>U};O.label=r.slots.default,O.prepend=r.slots.prepend,O.append=r.slots.append,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const H={...ve(a,ge,he)};return a.prop&&(H.prop=`${a.prop}_item`),l(H,O)}}}}var{componentName:Y0,create:X0,scope:Q0}=J("link-item"),G0=X0(W0(Y0,Q0,oe.ArrowRight,qe)),Vo=G0,xo={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:Z0,componentName:J0}=J("rate"),ep=Z0({props:{...xo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)([]),a=(0,t.computed)(()=>({[J0]:!0})),r=S=>{n("update:modelValue",S),n("change",S)},i=(S,w)=>{if(e.disabled||e.readonly)return;let y=0;w===1&&e.modelValue===w||(y=w,e.allowHalf&&S==2&&(y-=.5)),r(y)},u=(S,w,y)=>{let k=0;for(let f=w.value.length-1;f>=0;f--){const b=w.value[f];if(S>b.offsetLeft){y?k=f+(S>b.offsetLeft+b.clientWidth/2?1:.5):k=f+1;break}}return k},s=lt(),d={onTouchStart(S){!e.touchable||e.readonly||s.start(S)},onTouchMove(S){e.touchable&&(s.move(S),s.isHorizontal()&&l.value&&(S.preventDefault(),r(u(s.moveX.value,l,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),c=(0,t.computed)(()=>e.customIcon??oe.StarFillN);return{classes:a,...d,onClick:i,toPxString:me,renderIcon:(S,w)=>(0,t.h)(S,w),rateRefs:l,refRandomId:p,slots:o,customIcon:c}}}),tp=["id"],np={class:"fox-rate-item__icon--full"},lp={key:0,class:"fox-rate-item__icon--half"},op={key:1,class:"fox-rate-item__icon--half"};function ap(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.count),i=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-rate-item",key:i,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+i,style:(0,t.normalizeStyle)(i<Number(e.count)?{marginRight:e.toPxString(e.spacing)}:{})},[(0,t.createElementVNode)("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:i<=e.modelValue?e.activeColor:e.voidColor})),{class:(0,t.normalizeClass)(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||i>e.modelValue}]),onClick:u=>e.onClick(1,i)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>i?((0,t.openBlock)(),(0,t.createElementBlock)("view",lp,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:u=>e.onClick(2,i)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<i?((0,t.openBlock)(),(0,t.createElementBlock)("view",op,[((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,i)},null,8,["onClick"]))])):(0,t.createCommentVNode)("",!0)],12,tp))),128))],34)}var fl=ae(ep,[["render",ap]]),rp={...he,...ge,...xo};function ip(e,n,o,l,a){return{props:rp,emits:["change","update:modelValue","setValue"],setup(r,i){const{innerDisabled:u,disabled:s,innerReadonly:d,readonly:p,browse:c}=Ie(r),{emitEvent:v}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return s.value}},r.prop??i.attrs.name),S=e,w=De(r,"modelValue",null,v),y=k=>{w.value=k,v("update:modelValue",k,{}),v("change",k,{})};return be({setDisabled:k=>{u.value=k},setReadonly:k=>{d.value=k}}),()=>{if(c.value==="on"&&(p.value||s.value))return l(w.value,i.slots);const k={...ve(r,xo),disabled:s.value,readonly:p.value,value:w.value,"onUpdate:modelValue":y},f=[],b=(0,t.h)(a,k);f.push(b);const m={default:()=>f};if(i.slots.default){const C=i.slots.default();m.label=()=>C}const A=ve(r,ge,he);return r.prop&&(A.prop=`${r.prop}_item`),A["content-class"]=S,o(A,m)}}}}var{componentName:sp,create:up,scope:cp}=J("rate-item"),dp=up(ip(sp,cp,qe,Me,fl)),$o=dp,fp=/scroll|auto|overlay/i,qi=window;function mp(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function _l(e,n=qi){let o=e;for(;o&&o!==n&&mp(o);){const{overflowY:l}=window.getComputedStyle(o);if(fp.test(l))return o;o=o.parentNode}return n}function Pi(e,n=qi){const o=(0,t.ref)();return(0,t.onMounted)(()=>{e.value&&(o.value=_l(e.value,n))}),o}var Mi=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,pp={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function hp(e,n,o){return{props:{...pp},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),u=i(l,["pullText","loadText","noMoreText"]),s=(0,t.ref)(),d=Pi(s),p=(0,t.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=(0,t.computed)(()=>({[e]:!0})),v=b=>b?b.offsetTop+v(b.offsetParent):0,S=()=>{let b=0,m=0,A="down";if(d.value==window){const C=Mi();s.value&&(b=v(s.value)+s.value.offsetHeight-C-window.innerHeight),m=C}else{const{scrollHeight:C,clientHeight:g,scrollTop:h}=d.value;b=C-g-h,m=h}return p.beforeScrollTop>m?A="up":A="down",p.beforeScrollTop=m,a("scroll-change",m),b<=l.threshold&&A=="down"},w=()=>{Xe(()=>{if(!S()||!l.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,a("update:modelValue",!0),(0,t.nextTick)(()=>a("load-more"))})},y=()=>{d.value&&d.value.addEventListener("scroll",w,l.useCapture)},k=()=>{d.value&&d.value.removeEventListener("scroll",w,l.useCapture)};(0,t.onMounted)(()=>{y(),l.immediate&&w()}),(0,t.onUnmounted)(()=>{k()});const f=(0,t.ref)(!1);return(0,t.onActivated)(()=>{f.value&&(f.value=!1,y())}),(0,t.onDeactivated)(()=>{f.value=!0,k()}),(0,t.watch)(()=>l.modelValue,b=>{b||(p.isInfiniting=!1)}),()=>{const b=(0,t.h)("view",{class:"fox-infinite__container"},[r?.default?.()]),m=[];if(p.isInfiniting){let C=r?.loading?.()??null;if(!C){let h=r?.loadingIcon?.()??null;h||(h=(0,t.h)(o,{class:["fox-infinite__bottom-box__img"]}));const N=(0,t.h)("view",{class:"fox-infinite__bottom-box__text"},[u.loadText.value]);C=[h,N]}const g=(0,t.h)("view",{class:"fox-infinite__bottom-box"},C);m.push(g)}else if(!l.hasMore){let C=r?.finished?.()??null;C||(C=(0,t.h)("view",{class:"fox-infinite__bottom-tips"},[u.noMoreText.value]),m.push(C))}const A=(0,t.h)("view",{class:"fox-infinite__bottom"},m);return(0,t.h)("view",{class:c.value,ref:s},[b,A])}}}}var{componentName:vp,create:gp,scope:yp}=J("infinite-loading"),bp=gp(hp(vp,yp,oe.Loading)),ml=bp,{componentName:Sp,create:kp}=J("button"),wp=kp({components:{Loading:oe.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:o}){const{type:l,size:a,shape:r,disabled:i,loading:u,color:s,plain:d,block:p}=(0,t.toRefs)(e);return{handleClick:v=>{!u.value&&!i.value&&n("click",v)},classes:(0,t.computed)(()=>{const v=Sp;return{[v]:!0,[`${v}--${l.value}`]:l.value,[`${v}--${a.value}`]:a.value,[`${v}--${r.value}`]:r.value,[`${v}--plain`]:d.value,[`${v}--block`]:p.value,[`${v}--disabled`]:i.value,[`${v}--loading`]:u.value}}),getStyle:(0,t.computed)(()=>{const v={};return s?.value&&(d.value?(v.color=s.value,v.background="#fff",s.value?.includes("gradient")||(v.borderColor=s.value)):(v.color="#fff",v.background=s.value)),v})}}}),Cp={class:"fox-button__wrap"};function Np(e,n,o,l,a,r){const i=(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",Cp,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-icon-loading"})):(0,t.createCommentVNode)("",!0),e.$slots.icon&&!e.loading?(0,t.renderSlot)(e.$slots,"icon",{key:1}):(0,t.createCommentVNode)("",!0),e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:(0,t.normalizeClass)({"fox-button__text":e.$slots.icon||e.loading})},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)])],6)}var ut=ae(wp,[["render",Np]]),Ap={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Bp=(e,n,o)=>({props:{...Ap},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:a}){const{emitEvent:r}=xt(),{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),u=i(l,["placeholder"]),s=(0,t.reactive)({active:!1}),d=(0,t.computed)(()=>({background:l.background})),p=(0,t.computed)(()=>({background:l.inputBackground})),c=B=>{let T=B.target.value;l.maxLength&&T.length>Number(l.maxLength)&&(T=T.slice(0,Number(l.maxLength))),r("update:modelValue",T,B),r("change",T,B)},v=(0,t.ref)({}),S=B=>{let T=B.target.value;s.active=!0,v.value=l.focusStyle,r("focus",T,B)},w=B=>{setTimeout(()=>{s.active=!1},0);let T=B.target.value;l.maxLength&&T.length>Number(l.maxLength)&&(T=T.slice(0,Number(l.maxLength))),v.value={},r("blur",T,B)},y=B=>{r("update:modelValue","",B),r("change","",B),r("clear","")},k=(0,t.computed)(()=>String(l.modelValue).length>0),f=(0,t.computed)(()=>{const B={};return k.value||(B.display="none"),B}),b=B=>{l.autoblur&&h.value?.blur(),(typeof B.cancelable!="boolean"||B.cancelable)&&B.preventDefault(),r("search",l.modelValue)},m=B=>{r("keyup-input",B)},A=B=>{r("click-input",B)},C=B=>{r("click-left-icon",l.modelValue,B)},g=(0,t.computed)(()=>({textAlign:l.inputAlign})),h=(0,t.ref)(null);(0,t.onMounted)(()=>{l.autofocus&&h.value.focus()});const N=()=>{const B=[];if(a.leftin){const W=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:C},[a.leftin()]);B.push(W)}const T=(0,t.h)("input",{class:`${e}__input-inner-input`,ref:h,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:c,onFocus:S,onBlur:w,onkeyup:m}),V=(0,t.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:b},[T]);B.push(V);const U=[];if(l.clearable){const W=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:y},[(0,t.h)(a?.clear?.()??l.clearIcon??o)]);U.push(W)}if(a.rightin){const W=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[a.rightin()]);U.push(W)}if(U.length>0){const W=(0,t.h)("view",{class:`${e}__input-inner-right`},U);B.push(W)}return(0,t.h)("view",{class:[`${e}__search-input`,`${l.shape}`],style:{...p.value,...v.value}},B)};return()=>{const B=[];if(l.label){const V=(0,t.h)("span",{class:`${e}__search-label`},[l.label]);B.push(V)}if(a.leftout){const V=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[a.leftout()]);B.push(V)}const T=N();if(B.push(T),a.rightout){const V=(0,t.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[a.rightout()]);B.push(V)}return(0,t.h)("view",{class:`${e}`,style:d.value},B)}}}),{componentName:Tp,create:Vp,scope:xp}=J("searchbar"),$p=Vp(Bp(Tp,xp,oe.CircleClose)),pl=$p,Tn={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 Ep(e,n,o,l="value"){for(let a=0;a<n.length;a++){let r=n[a];if(l==="text"){if(hn(e,r)===o)return a}else if(l==="item"){if(xe(o,r))return a}else if(zi(e,r)===o)return a}return-1}function hn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function wr(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function zi(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Dp(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Ip(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var qp=class{proxy;constructor(e){this.proxy=e}async load(e,n,o,l,a,r,i){if(!n)return{totalSize:0,page:[]};if(Array.isArray(n)){let s=n;typeof i=="function"&&(s=s.filter(i));let d=(o-1)*l,p=d+l;p>s.length&&(p=s.length);const c=s.slice(d,p);return{totalSize:s.length,page:c}}if(typeof n=="function")return await Reflect.apply(n,null,[o,l,a,r]);const u=nt(this.proxy,e);return u===null?(console.error(`${e} component not found api function`),{totalSize:0,page:[]}):(Ve(a)&&(0,t.isReactive)(a)&&(a=(0,t.toRaw)(a)),await Reflect.apply(u,null,[n,o,l,a]))}};function Pp(){return new qp((0,t.getCurrentInstance)().proxy)}function Mp(e,n,o,l,a,r,i,u,s,d,p){return{props:Tn,emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(c,{slots:v}){const{emitEvent:S}=xt(),{toLocaleRefs:w}=(0,pe.useFoxI18n)(n),y=w(c,["title","loadText","noMoreText","seachPlaceholder","confirmText"]),k=Pp(),f=(0,t.ref)([]),b=(0,t.ref)(0),m=(0,t.ref)(""),A=(0,t.shallowRef)(null),C=(0,t.computed)(()=>{const z={};return c.params&&Object.assign(z,c.params),ce(m.value)||(z[`${c.searchKey}`]=m.value),A.value&&Object.assign(z,A.value),z});let g=!0;const h=async(z,R,D)=>{try{if(B.value===!1)return;let x=null;ce(m.value)||(x=j=>{const ee=hn(c,j);if(typeof ee=="string"&&ee.includes(m.value))return!0;const le=wr(c,j);return!!(typeof le=="string"&&le.includes(m.value))});const F=await k.load("actionsheet",z,R,D,C.value,g,x??void 0);g=!1,Array.isArray(F)?(f.value=F,b.value=1,B.value=!1):!Array.isArray(F.page)||F.page.length===0?(console.warn("[FoxUI] can not load more data"),B.value=!1):(Reflect.apply([].push,f.value,F.page),b.value=Math.ceil(f.value.length/c.pageSize),(F.totalSize&&f.value.length>=F.totalSize||D<F.page.length)&&(B.value=!1)),N.value=!1}catch(x){console.error("[FoxUI] ActionSheet load more data fail",x),B.value=!0,b.value=0,f.value=[]}setTimeout(()=>{S("loaded-data")},250)},N=(0,t.ref)(!1),B=(0,t.ref)(!0),T=async()=>{if(!c.source){N.value=!1;return}await h(c.source,b.value+1,c.pageSize)};let V=null;(0,t.watch)(m,(z,R)=>{V&&(clearTimeout(V),V=null),ce(z)&&!ce(R)&&(V=setTimeout(()=>{W()},c.searchDelayTriggerClear))});const U=()=>{B.value=!0,b.value=0,f.value=[],c.source&&T()},W=()=>{U()};(0,t.watch)([()=>c.source,()=>c.pageSize,()=>c.params],async([z,R,D])=>{c.source&&U()},{immediate:!0});const $=(0,t.computed)(()=>!c.multiple&&c.isAutoBackFill),P=(0,t.ref)([]);let M=null;const q=(0,t.ref)(c.visible);(0,t.watch)(()=>c.visible,z=>{q.value!==z&&(q.value=z),z?M=[...P.value]:M=null});const O=(z,R)=>{const D=[];return Array.isArray(z)||(z=[z]),z.forEach(x=>{let F=Ep(c,R,x,c.valueType);F!==-1&&D.push(F)}),xe(D,P.value)?!1:(P.value=D,!0)};(0,t.watch)([()=>c.modelValue,()=>f.value],([z,R],[D,x])=>{O(z,R)&&I(H())},{deep:!0});const H=()=>{const z=[],R=[],D=[];for(let ee of P.value){const le=f.value[ee];R.push(le);const ie=hn(c,le);if(D.push(ie),c.valueType==="item")z.push(le);else if(c.valueType==="text")z.push(ie);else{const ue=zi(c,le);z.push(ue)}}let x=null,F=null,j=null;return c.multiple?(x=z,F=D,j=R):(x=z[0]??null,F=D[0]??null,j=R[0]??null),{value:x,text:F,item:j}},I=z=>{S("update:modelValue",z.value),S("update:text",z.text),S("change",z.value,z.item,z.text)},G=()=>{M&&(P.value=M)},te=z=>{const R=P.value.indexOf(z);c.multiple?R===-1?P.value.push(z):P.value.splice(R,1):R===-1?P.value=[z]:P.value=[],($.value||!c.poppable&&!c.showFooter)&&Y()},_=z=>{q.value=z,S("update:visible",z)},K=()=>{const z=()=>{G(),_(!1)},R=c.beforeMethod??c.beforeClose;if(typeof R=="function"){const D=R("close");bt(D)?D.then(x=>{x!==!1&&z()}).catch(()=>{z()}):D!==!1&&z()}else z()},Y=()=>{const z=H(),R=()=>{I(z),_(!1)},D=c.beforeMethod??c.beforeClose;if(typeof D=="function"){const x=D("confirm",z.value,z.item,z.text);bt(x)?x.then(F=>{F!==!1&&R()}).catch(()=>{R()}):x!==!1&&R()}else R()},Z=()=>{let z=y.title.value??"";return v.title&&(z=v.title()),(0,t.h)("view",{class:["fox-actionsheet__header"]},[(0,t.h)("view",{class:["fox-actionsheet__header-title"]},[z]),(0,t.h)(s,{class:["fox-actionsheet__header-icon"],onClick:K})])},E=()=>{let z=null;return v.search?z=v.search():z=(0,t.h)(r,{onSearch:U,placeholder:y.seachPlaceholder.value,disabled:c.disabled,modelValue:m.value,"onUpdate:modelValue":R=>{m.value=R}},{leftin:()=>(0,t.h)(d)}),(0,t.h)("view",{class:["fox-actionsheet__searchbar"]},[z])},L=(z,R,D,x,F)=>{if(v.optionLabel)return v.optionLabel({text:z,checked:R,disabled:D,subText:x,item:F});const j=[],ee=(0,t.h)("view",{class:"fox-actionsheet__list-item-text"},[z]);if(j.push(ee),x){const le=(0,t.h)("view",{class:"fox-actionsheet__list-item-subtext"},[x]);j.push(le)}return(0,t.h)("view",{class:["fox-actionsheet__list-item-label"]},j)},X=(z,R,D,x)=>v.optionIcon?v.optionIcon({checked:z,disabled:R,iconSize:D,item:x}):z?v.checkedIcon?v.checkedIcon({disabled:R,item:x}):(0,t.h)(c.checkedIcon??u,{width:D,height:D,class:["fox-actionsheet__list-item-icon"]}):v.icon?v.icon({disabled:R,item:x}):(0,t.h)(c.icon??i,{width:D,height:D,class:["fox-actionsheet__list-item-icon"]}),Q=()=>{const z=[];for(let R=0;R<f.value.length;R++){const D=f.value[R],x=hn(c,D),F=wr(c,D),j=["fox-actionsheet__list-item"],ee={};let le=Dp(c,D),ie=c.iconSize?se(c.iconSize):null;const ue=Ip(c,D,R);ue&&(le=le||ue.disabled,ue.class&&j.push(ue.class),ue.style&&Object.assign(ee,ue.style)),le=!!(c.disabled||le);const Ke=P.value.includes(R);le&&j.push("is-disabled"),Ke&&j.push("is-checked");const Ue={class:j,style:ee,key:`${R}`,onClick:()=>{le||te(R)}};let ze=[];if(v.option)ze.push(v.option({item:D,checked:Ke,disabled:le}));else{const ji=L(x,Ke,le,F,D);ze.push(ji);const Wi=X(Ke,le,ie,D);ze.push(Wi),c.textPosition==="right"&&ze.reverse()}const It=(0,t.h)("view",Ue,ze);z.push(It)}return z},ne=()=>{let z=[];if(v.buttons)z=v.buttons();else{const R=(0,t.h)(a,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:Y,disabled:c.disabled},{default:()=>y.confirmText.value});z.push(R)}return(0,t.h)("view",{class:"fox-actionsheet__footer"},[z])};return be({search:async(z=null,R=!0)=>{A.value=z&&(0,t.toRaw)(z),(0,t.triggerRef)(A),R&&(B.value=!0,b.value=0,f.value=[]),(0,t.nextTick)(()=>{T()})},clear:()=>{B.value=!0,b.value=0,f.value=[]},confirm:()=>{Y()},cancel:()=>{K()}}),()=>{const z=[];if(c.showHeader){const le=Z();z.push(le)}if(c.showSearchbar){const le=E();z.push(le)}let R=null;if(v.content)R=v.content();else{const le=Q();R=(0,t.h)(l,{hasMore:B.value,loadText:y.loadText.value,noMoreText:y.noMoreText.value,modelValue:N.value,"onUpdate:modelValue":ie=>{N.value=ie},onLoadMore:T},{default:()=>le})}const D={};c.optionsHeight&&(D.height=c.optionsHeight);const x={"fox-actionsheet__list":!0};c.poppable||(x["fox-actionsheet__list--inner"]=!0);const F=(0,t.h)("view",{class:x,style:D},[R]);if(z.push(F),c.showFooter&&!$.value){const le=ne();z.push(le)}const j=(0,t.h)("view",{class:"fox-actionsheet"},z);if(!c.poppable)return j;const ee=["fox-actionsheet__popup"];return c.popClass&&ee.push(c.popClass),(0,t.h)(o,{popClass:ee.join(" "),visible:q.value,closeable:!1,"onUpdate:visible":_,position:c.position,round:"round",onClickOverlay:K,closeOnClickOverlay:c.closeOnClickOverlay},{default:()=>j})}}}}var{componentName:zp,create:Lp,scope:Rp}=J("actionsheet-pane"),Fp=Lp(Mp(zp,Rp,ye,ml,ut,pl,oe.CheckNormal,oe.Checked,oe.Close,oe.Search2,!1)),hl=Fp,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:" "}},Op={...he,...ge,...Li,...Tn};function Kp(e,n,o,l,a,r,i,u){return{props:Op,emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,d){const{innerDisabled:p,disabled:c,innerReadonly:v,readonly:S,browse:w}=Ie(s),{emitEvent:y}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return S.value},get disabled(){return c.value}},s.prop??d.attrs.name),{toLocaleRefs:k}=(0,pe.useFoxI18n)(n),f=k(s,["placeholder"]),b=(0,t.ref)(!1),m=De(s,"modelValue",null,y),A=(0,t.ref)(""),C=(0,t.computed)(()=>Array.isArray(A.value)?A.value.join(s.separator):A.value),g="fox-input-item",h=(0,t.computed)(()=>({[g]:!0,"is-disabled":c.value,"is-readonly":S.value})),N=Ae((0,t.computed)(()=>s.textAlign),"textAlign"),B=(0,t.computed)(()=>{const X={};return N.value&&(X["text-align"]=N.value),X}),T=(0,t.ref)(!1),V=()=>{T.value=!0},U=X=>{T.value=X},W=X=>{m.value=X,y("update:modelValue",X)},$=(X,Q)=>{y("change",X,Q)},P=X=>{let Q=X.target.value;b.value=!0,y("focus",Q,X)},M=X=>{setTimeout(()=>{b.value=!1},0);let Q=X.target.value;s.maxLength&&Q.length>Number(s.maxLength)&&(Q=Q.slice(0,Number(s.maxLength))),y("blur",Q,X)},q=X=>{A.value=X,y("update:text",X)},O=(0,t.computed)(()=>({[`${g}__append`]:!0,"is-disabled":c.value,"is-readonly":S.value})),H=(0,t.computed)(()=>ke(s.unit)>0),I=(0,t.computed)(()=>ke(s.unit)>0&&!b.value),G=(0,t.computed)(()=>({hidden:!I.value})),te=X=>{m.value="",y("update:modelValue","",X),y("change","",X),y("clear","")},_=(0,t.computed)(()=>s.clearable&&!c.value&&!S.value),K=(0,t.computed)(()=>ke(m.value)>0&&b.value),Y=X=>{K.value?te(X):V()},Z=(0,t.computed)(()=>K.value&&_.value?a:r),E=(0,t.computed)(()=>({action:!0})),L=(0,t.ref)(null);return be({search:X=>{L.value&&L.value.search(X)},clear:()=>{L.value&&L.value.clear},confirm:X=>{L.value&&L.value.confirm()},cancel:()=>{L.value&&L.value.cancel()},setDisabled:X=>{p.value=X},setReadonly:X=>{v.value=X}}),()=>{if(w.value==="on"&&(S.value||c.value))return l(C.value,d.slots);const X={class:h.value,style:B.value,type:"text",maxlength:s.maxLength,placeholder:f.placeholder.value,readonly:!0,unselectable:"on",value:C.value,onClick:V,onFocus:P,onBlur:M};u&&(X.disabled=!0);const Q=[],ne=(0,t.h)("input",X);Q.push(ne);const z=[],R=(0,t.h)(Z.value,{class:["action-icon"]}),D=(0,t.h)("view",{class:E.value,onClick:Y},{default:()=>[R]});if(z.push(D),H.value){const ie=(0,t.h)("view",{class:G.value},[s.unit]);z.push(ie)}const x=(0,t.h)("view",{class:O.value},{default:()=>z});Q.push(x);const F={default:()=>Q};F.label=d.slots.default,F.prepend=d.slots.prepend,F.append=d.slots.append,F.fixedPreTip=d.slots.fixedPreTip,F.fixedTip=d.slots.fixedTip;const j=ve(s,Tn);j.ref=L,j.class=s.actionSheetClass,j.disabled=c.value||S.value,j.visible=T.value,j["onUpdate:visible"]=U,j.modelValue=m.value,j["onUpdate:modelValue"]=W,j.text=A.value,j["onUpdate:text"]=q,j.onChange=$,j.poppable=!0,j["text-position"]=s.textPosition;const ee=(0,t.h)(i,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});F.hide=()=>[ee];const le={...et(s,Li,Tn)};return s.prop&&(le.prop=`${s.prop}_item`),o(le,F)}}}}var{componentName:Up,create:Hp,scope:_p}=J("actionsheet-item"),jp=Hp(Kp(Up,_p,qe,Me,oe.CircleClose,oe.ArrowRight,hl)),Eo=jp,Do={modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:[Boolean],default:!1},readonly:{type:[Boolean],default:!1}},{componentName:Wp,create:Yp}=J("input-number"),Xp=Yp({components:{Minus:oe.Minus,Plus:oe.Plus},props:{...Do},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const S=Wp;return{[S]:!0,[`${S}--disabled`]:e.disabled}}),l=S=>Number(S).toFixed(Number(e.decimalPlaces)),a=S=>{const w=S.target;n("update:modelValue",w.valueAsNumber,S)},r=(S,w)=>{let y=l(S);n("update:modelValue",y,w),n("change",y,w)},i=(S=Number(e.modelValue))=>S<Number(e.max)&&!e.disabled,u=(S=Number(e.modelValue))=>S>Number(e.min)&&!e.disabled,s=S=>{n("reduce",S),u()?r(Number(e.modelValue)-Number(e.step),S):n("overlimit",S,"reduce")},d=S=>{n("add",S),i()?r(Number(e.modelValue)+Number(e.step),S):n("overlimit",S,"add")},p=S=>{e.disabled||e.readonly||n("focus",S)},c=S=>{if(e.disabled||e.readonly)return;let w=S.target.valueAsNumber;w<Number(e.min)?w=Number(e.min):w>Number(e.max)&&(w=Number(e.max)),r(w,S),n("blur",S)},v=S=>{let w=Number(S);return w<Number(e.min)?w=Number(e.min):w>Number(e.max)&&(w=Number(e.max)),w};return(0,t.watch)(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const S=v(e.modelValue);S!==Number(e.modelValue)&&r(S,{})}),{classes:o,change:a,blur:c,focus:p,add:d,addAllow:i,reduce:s,reduceAllow:u,toPxString:me}}}),Qp=["min","max","disabled","readonly","value"];function Gp(e,n,o,l,a,r){const i=(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)(i,{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,Qp),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[4]=(...s)=>e.add&&e.add(...s))},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[(0,t.createVNode)(u,{width:e.toPxString(e.buttonSize),height:e.toPxString(e.buttonSize)},null,8,["width","height"])])],2)],2)}var vl=ae(Xp,[["render",Gp]]),Zp={...he,...ge,...Do};function Jp(e,n,o,l,a){return{props:Zp,emits:["change","update:modelValue","setValue","add","reduce"],setup(r,i){const{innerDisabled:u,disabled:s,innerReadonly:d,readonly:p,browse:c}=Ie(r),{emitEvent:v}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!p.value}},r.prop??i.attrs.name),S=(0,t.computed)(()=>{const b=[`${e}`];return r.textAlign==="left"?b.push("is-left"):r.textAlign==="center"?b.push("is-center"):r.textAlign==="right"&&b.push("is-right"),b.join(" ")}),w=De(r,"modelValue",null,v),y=b=>{w.value=b,v("update:modelValue",b,{}),v("change",b,{})},k=b=>{v("add",b)},f=b=>{v("reduce",b)};return be({setDisabled:b=>{u.value=b},setReadonly:b=>{d.value=b}}),()=>{if(c.value==="on"&&(p.value||s.value))return l(w.value,i.slots);const b={"left-icon":i.slots["left-icon"],"right-icon":i.slots["right-icon"]},m=ve(r,Do),A=(0,t.h)(a,{...i.attrs,...m,disabled:s.value,readonly:p.value,value:w.value,"onUpdate:modelValue":y,onAdd:k,onReduce:f},b),C=[];C.push(A);const g={default:()=>C};g.label=i.slots.default,g.fixedPreTip=i.slots.fixedPreTip,g.fixedTip=i.slots.fixedTip;const h={...ve(r,ge,he)};return r.prop&&(h.prop=`${r.prop}_item`),h["content-class"]=S.value,o(h,g)}}}}var{componentName:eh,create:th,scope:nh}=J("input-number-item"),lh=th(Jp(eh,nh,qe,Me,vl)),Io=lh,oh={...go,...yo,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function ah(e,n,o,l){return{props:oh,emits:["update:modelValue","change"],setup(a,{emit:r,slots:i}){const u=e,s=(0,t.computed)(()=>{const y=[`${u}`];return a.direction==="vertical"?y.push("vertical-tabbar"):y.push("horizontal-tabbar"),y}),d=(0,t.computed)(()=>{const y={};if(a.width){const k=me(a.width);k&&(y.width=k)}if(a.height){const k=me(a.height);k&&(y.height=k)}return y}),p=(0,t.computed)(()=>[`${u}__bar`]),c=(0,t.computed)(()=>[`${u}__container`]),v=(0,t.ref)(a.modelValue);(0,t.watch)(()=>a.modelValue,y=>{v.value!==y&&(v.value=y)});const S=y=>{r("change",y)},w=y=>{v.value!==y&&(v.value=y,r("update:modelValue",y))};return()=>{const{getChildren:y}=Yn(i.default),k=y(),f=[];if(Array.isArray(a.data))f.push(...a.data);else for(let N=0;N<k.length;N++){const B=k[N].props??{},T={text:B.label??"",value:B["pane-key"]??B.paneKey??""};f.push(T)}const b={};for(let N in i)N!=="default"&&(b[N]=i[N]);const m=ve(a,go);Object.assign(m,{data:f,class:p.value,modelValue:v.value,direction:a.direction,onChange:S,"onUpdate:modelValue":w});const A=(0,t.h)(o,m,b),C={default:()=>k},g=ve(a,yo);Object.assign(g,{class:c.value,modelValue:v.value,onChange:S,"onUpdate:modelValue":w});const h=(0,t.h)(l,g,C);return(0,t.h)("view",{class:s.value,style:d.value},[A,h])}}}}var{create:rh,componentName:ih,scope:sh}=J("tabs-frame"),uh=rh(ah(ih,sh,on,an)),qo=uh,ch={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 dh(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Cr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Nr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function fh(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function Bl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Ar(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Br(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Tl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}var mh=class{proxy;constructor(e){this.proxy=e}async load(e,n,o){if(Array.isArray(n))return n;if(typeof n=="function")return await Reflect.apply(n,null,[o]);const l=nt(this.proxy,e);return l===null?(console.error(`${e} component not found api function`),[]):(Ve(o)&&(0,t.isReactive)(o)&&(o=(0,t.toRaw)(o)),await Reflect.apply(l,null,[n,o]))}};function ph(){return new mh((0,t.getCurrentInstance)().proxy)}function hh(e,n,o,l){return{props:{...ch},emits:["update:modelValue","change","loaded-data","click"],setup(a,{slots:r,emit:i}){const u=e,s=ph(),d=(0,t.ref)([]),p=(0,t.computed)(()=>d.value.filter(_=>fh(a,_)!==!1)),c=(0,t.ref)(-1),v=()=>{const _=a.modelValue,K=p.value.findIndex(Y=>Cr(a,Y)===_);c.value!==K&&(c.value=K,a.scroll&&G(K,!1))};(0,t.watch)([()=>a.modelValue,p],()=>{v()});const S=_=>c.value===_,w=_=>{if(_<0&&_>=p.value.length)return!1;const K=p.value[_],Y=(Tl(a,K,_)??{}).status??Bl(a,K);return S(_)||Y},y=(0,t.computed)(()=>{const _={[u]:!0};return a.mode?_[`is-${a.mode}`]=!0:a.direction&&(_[`is-${a.direction}`]=!0),a.scroll&&(_["is-scroll"]=!0),_}),k=(0,t.computed)(()=>({})),f=(_,K,Y,Z,E)=>{const L={[`${u}__step`]:!0};return E&&(L[`${E}`]=!0),L[`${b.value}`]=!0,Z&&(L["is-doit"]=!0),_===c.value?L["is-active"]=!0:K==="done"?L["is-done"]=!0:K==="error"?L["is-error"]=!0:K==="half"?L["is-half"]=!0:Y?L["is-disabled"]=!0:L["is-normal"]=!0,L},b=(0,t.computed)(()=>{let _=a.align;if(!_){if(a.mode==="simple")return"start";a.direction==="vertical"?_="start":_="center"}return _}),m=(_,K={})=>{const Y={...K};if(b.value==="start"&&_===p.value.length-1)Y.flex="0 0 auto";else if(a.step){const Z=typeof a.step=="number"||En(a.step)?me(a.step):a.step;a.direction==="vertical"?Y.height=Z:Y.width=Z}else Y.flex="1 1 100%";return Y},A=(_,K)=>{let Y={};if(K<p.value.length-1){const Z=K+1;w(K)&&w(Z)?a.direction==="vertical"?Y.height="100%":Y.width="100%":Y.opacity="0"}return Y},C=_=>p.value.length-1===_,g=(_,K)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&K>c.value||c.value===K)return;const Y=c.value,Z=K;c.value=K,a.scroll&&G(K,!1);const E=Cr(a,_);i("update:modelValue",E),i("change",E,{fromIndex:Y,currentIndex:Z,item:_,items:p.value,clickNavigatePolicy:a.clickNavigatePolicy})},h=(0,t.ref)(!0),N=async(_,K)=>{try{const Y=await s.load("stesbar",_,K);Array.isArray(Y)&&(d.value=Y),h.value=!1}catch(Y){console.error("[FoxUI] Load StepsBar Data Fail",Y),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};(0,t.watch)([()=>a.data,()=>a.params],async([_,K])=>{_&&N(_,K)},{immediate:!0});const B=(_,K,Y,Z,E,L)=>{const X=[];let Q=null;if(!L)if(r.icon)Q=r.icon({item:_,index:K,status:Z});else if(Z==="done"){const ne={};a.iconSize&&(ne.width=a.iconSize,ne.height=a.iconSize),Q=(0,t.h)(a.icon??o,ne)}else Q=(0,t.h)("span",{},[Y??`${K+1}`]);return Q&&X.push(Q),(0,t.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{i("click",{item:_,index:K}),!E&&g(_,K)}},X)},T=(_,K,Y)=>(0,t.h)("view",{class:"fox-steps-bar__line"},[(0,t.h)("i",{class:"fox-steps-bar__line-inner",style:A(_,K)})]),V=()=>{let _=null;if(r.markIcon)_=r.markIcon();else{const K={};a.iconSize&&(K.width=a.markIconSize,K.height=a.markIconSize),_=(0,t.h)(a.markIcon??l,K)}return(0,t.h)("view",{class:"fox-steps-bar__mark"},[_])},U=(_,K,Y,Z,E,L)=>{const X=[];if(!C(K)){const ne=T(_,K,Z);X.push(ne)}const Q=B(_,K,Y,Z,E,L);return X.push(Q),(0,t.h)("view",{class:"fox-steps-bar__head"},X)},W=(_,K,Y,Z)=>{let E=null;return r.main?E=r.main({item:_,index:K,status:Y}):E=dh(a,_),(0,t.h)("view",{class:"fox-steps-bar__main",onClick:()=>{i("click",{item:_,index:K}),!Z&&g(_,K)}},[E])},$=(_,K,Y)=>{let Z=null;return r.sub?(Z=r.sub({item:_,index:K,status:Y}),(0,t.h)("view",{class:"fox-steps-bar__sub"},[Z])):null},P=(_,K)=>{const Y=Tl(a,_,K)??{},Z=Y.status??Bl(a,_);let E=Nr(a,_);Y.disabled===!0&&(E=!0),a.disabled===!0&&(E=!0);let L=Ar(a,_);Y.doit===!0&&(L=!0);const X=Y.label??Br(a,_),Q=[],ne=B(_,K,X,Z,E,L);ne&&Q.push(ne);const z=W(_,K,Z,E);if(z&&Q.push(z),!C(K)){const F=T(_,K,Z);F&&Q.push(F)}const R=(0,t.h)("view",{class:"fox-steps-bar__head"},Q),D=Y.class,x=Y.style??{};return(0,t.h)("view",{ref:I(K),class:f(K,Z,E,L,D),style:m(K,x)},[R])},M=(_,K)=>{const Y=Tl(a,_,K)??{},Z=Y.status??Bl(a,_);let E=Nr(a,_);Y.disabled===!0&&(E=!0),a.disabled===!0&&(E=!0);let L=Ar(a,_);Y.doit===!0&&(L=!0);const X=Y.label??Br(a,_),Q=[],ne=a.layout;for(let D of ne)if(D==="head"){const x=U(_,K,X,Z,E,L);Q.push(x)}else if(D==="main"){const x=W(_,K,Z,E);Q.push(x)}else if(D==="sub"){const x=$(_,K,Z);Q.push(x)}else if(D==="mark"){const x=V();Q.push(x)}const z=Y.class,R=Y.style??{};return(0,t.h)("view",{ref:I(K),class:f(K,Z,E,L,z),style:m(K,R)},Q)},q=(0,t.ref)(),O=(0,t.ref)([]),H=(_,K)=>{O.value[K]=_},I=_=>K=>{H(K,_)},G=(_,K)=>{const Y=q.value,Z=O.value;if(!Y||!Z||!Z[_])return;const E=Z[_];let L=0;a.direction==="vertical"?L=E.offsetTop-(Y.offsetHeight-E.offsetHeight)/2:L=E.offsetLeft-(Y.offsetWidth-E.offsetWidth)/2,te(Y,L,K?0:.3,a.direction)},te=(_,K,Y,Z)=>{let E=0;const L=Z==="horizontal"?_.scrollLeft:_.scrollTop,X=Y===0?1:Math.round(Y*1e3/16);function Q(){Z==="horizontal"?_.scrollLeft+=(K-L)/X:_.scrollTop+=(K-L)/X,++E<X&&He(Q)}Q()};return()=>{let _=[];if(a.mode==="simple")for(let Y=0;Y<p.value.length;Y++){const Z=p.value[Y],E=P(Z,Y);_.push(E)}else for(let Y=0;Y<p.value.length;Y++){const Z=p.value[Y],E=M(Z,Y);_.push(E)}const K={ref:q,class:y.value,style:k.value};return _.length===0&&typeof r.default=="function"&&(_=r.default()),(0,t.h)("view",K,_)}}}}var{componentName:vh,create:gh,scope:yh}=J("steps-bar"),bh=gh(hh(vh,yh,oe.Checklist,oe.ArrowRight)),Po=bh;function Sh(e){e.stopPropagation()}var kh=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,n){this.startMove=e,this.updateMove=n,this.isTouch=tl()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const n=nl(),o=(l,a,r,i)=>{this.updateMove({x:l,y:a})};this.touchstart=l=>{this.moving||(n.start(l),this.startMove({x:n.state.startX,y:n.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(n.move(l),Sh(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 wh(e,n){return new kh(e,n)}var Ch={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]}},Nh=(e,n,o,l=!1)=>({props:{...Ch},emits:["click"],setup(a,{slots:r,emit:i}){let u=-1,s=-1;const d=(0,t.reactive)({top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:0,height:0}),p=(0,t.computed)(()=>{const C=[`${e}`];return a.customClass&&C.push(a.customClass),C}),c=C=>typeof C=="string"&&!En(C)?C:`${C}px`,v=(0,t.computed)(()=>{const C={};return ce(d.top)||(C.top=c(d.top)),ce(d.right)||(C.right=c(d.right)),ce(d.bottom)||(C.bottom=c(d.bottom)),ce(d.left)||(C.left=c(d.left)),ce(a.width)||(C.width=c(a.width)),ce(a.height)||(C.height=c(a.height)),ce(a.color)||(C.color=a.color),ce(a.background)||(C.background=a.background),ce(a.borderRadius)||(C["border-radius"]=a.borderRadius),ce(a.zIndex)||(C["z-index"]=a.zIndex),C}),S=(0,t.computed)(()=>({[`${e}__icon`]:!0})),w=()=>{i("click")},y=(0,t.ref)(null),k=()=>{d.top=null,d.right=null,d.bottom=null,d.left=null},f={x:0,y:0},A=wh(C=>{if(!y.value)return;const g=y.value;k(),d.left=g.offsetLeft,d.top=g.offsetTop,g.style.left=`${d.left}px`,g.style.top=`${d.top}px`,g.style.right=null,g.style.bottom=null,f.x=d.left,f.y=d.top,d.width=g.offsetWidth,d.height=g.offsetHeight,u=document.documentElement.clientWidth||document.body.clientWidth,s=document.documentElement.clientHeight||document.body.clientHeight},C=>{if(!y.value)return;const g=y.value;k();let h=f.x+C.x;h<0&&(h=0),h>u-d.width&&(h=u-d.width);let N=f.y+C.y;N<0&&(N=0),N>s-d.height&&(N=s-d.height),d.left=h,d.top=N,g.style.left=`${h}px`,g.style.top=`${N}px`});return(0,t.onMounted)(()=>{if(a.draggable&&y.value){const C=[y.value];A.open(C)}}),(0,t.onBeforeUnmount)(()=>{a.draggable&&y.value&&A.close()}),()=>{let C=[];const g=typeof r.default=="function"?r.default():[];if(g&&g.length>0)C=g;else{const h=(0,t.h)(o,{class:S.value});C.push(h)}return(0,t.h)("view",{ref:h=>{y.value=h},class:p.value,style:v.value,onClick:w},C)}}}),{componentName:Ah,create:Bh,scope:Th}=J("floating-button"),Vh=Bh(Nh(Ah,Th,oe.Uploader,!1)),Mo=Vh,xh={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function $h(e,n,o){return{props:{...xh},emits:["click","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),u=i(l,["collapseText","expandText"]),s=(0,t.computed)(()=>{const w={[`${e}`]:!0};return l.disabled?w[`${e}--disabled`]=!0:w[`${e}--${l.type}`]=!0,w}),d=De(l,"modelValue"),p=(0,t.computed)(()=>d.value?u.expandText.value??"":u.collapseText.value??""),c=(0,t.computed)(()=>({[`${e}__text`]:!0})),v=(0,t.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!d.value,"is-collapse":d.value})),S=()=>{a("update:modelValue",!d.value)};return()=>{const w=[];if(p.value){const f=(0,t.h)("span",{class:c.value},[p.value]);w.push(f)}const y={class:v.value},k=(r.icon&&r.icon())??(l.icon&&(0,t.h)(l.icon))??(0,t.h)(o);if(k){const f=(0,t.h)("view",y,[k]);w.push(f)}return l.textPosition==="right"&&w.reverse(),(0,t.h)("view",{class:s.value,onClick:S},w)}}}}var{componentName:Eh,create:Dh,scope:Ih}=J("more-button"),qh=Dh($h(Eh,Ih,oe.RectUp)),zo=qh,Ph={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}},Mh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function zh(e,n,o){return{props:{...Ph},emits:["update:visible"],setup(l,{attrs:a,slots:r,emit:i}){const{toLocaleRefs:u}=(0,pe.useFoxI18n)(n),s=u(l,["confirmText","cancelText"]),d=e,p=(0,t.ref)(l.visible),c=C=>{p.value=C,i("update:visible",C)};(0,t.watch)(()=>l.visible,C=>{p.value!==C&&(p.value=C)});const v=C=>{if(typeof l.unmount=="function")try{l.unmount()}catch(g){console.error(g)}if(typeof l.callback=="function")try{l.callback(C)}catch(g){console.error(g)}},S=()=>{v("confirm")},w=()=>{v("cancel")},y=()=>{l.closeOnClickOverlay!==!1&&v("close")},k=(C,g)=>Mh(C)?(g.src=C,(0,t.h)("img",g)):typeof C=="string"?(Array.isArray(g.class)?g.class.push(C):g.class&&typeof g.class=="object"?g[`${C}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${C}`:g.class=C,(0,t.h)(l.tag,g)):(0,t.h)(C,g),f=()=>{const C=[];if(l.icon){const g={class:[`${d}__header-icon`]},h=k(l.icon,g);C.push(h)}if(l.title){const g=(0,t.h)("view",{class:`${d}__header-title`},[l.title]);C.push(g)}if(l.showClose&&l.closeIcon){const g={class:[`${d}__header-close-icon`],onClick:y},h=k(l.closeIcon,g);C.push(h)}return(0,t.h)("view",{class:[`${d}__header`]},C)},b=(C,g)=>{const h=[];if(g){const N=(0,t.h)("view",{class:`${d}__group-title`},[g]);h.push(N)}if(C){const N=[];Array.isArray(C)||(C=[C]);for(let B of C){const T=(0,t.h)("view",{class:`${d}__group-row`,innerHTML:B});N.push(T)}if(N.length>0){const B=(0,t.h)("view",{class:`${d}__group-rows`},N);h.push(B)}}return h.length===0?null:(0,t.h)("view",{class:`${d}__group`},h)},m=()=>{const C=[];if(typeof l.message=="string")C.push(l.message);else if(Array.isArray(l.message))for(let g of l.message)if(typeof g=="string"){const h=b(g);C.push(h)}else{const h=b(g.content,g.title);C.push(h)}else if(typeof l.message=="function"){const g=l.message();C.push(g)}else{const g=l.message;C.push(g)}return(0,t.h)("view",{class:`${d}__body`},C)},A=()=>{const C=[];if(l.showCancelButton){const g={class:[`${d}__footer-button`],style:{},onClick:w};l.cancelButtonClass&&g.class.push(l.cancelButtonClass),l.cancleButtonStyle&&typeof l.cancleButtonStyle=="object"&&Object.assign(g.style,l.cancleButtonStyle);const h=(0,t.h)("button",g,[l.cancelButtonText??s.cancelText.value]);C.push(h)}if(l.showConfirmButton){const g={class:[`${d}__footer-button`],style:{},onClick:S};l.confirmButtonClass&&g.class.push(l.confirmButtonClass),l.confirmButtonStyle&&typeof l.confirmButtonStyle=="object"&&Object.assign(g.style,l.confirmButtonStyle);const h=(0,t.h)("button",g,[l.confirmButtonText??s.confirmText.value]);C.push(h)}return C.length===0?null:(0,t.h)("view",{class:`${d}__footer`},C)};return()=>{const C=[],g=f();g&&C.push(g);const h=m();h&&C.push(h);const N=A();N&&C.push(N);const B=(0,t.h)("view",{class:{[`${d}`]:!0,[`${d}--${l.type||"info"}`]:!0}},C),T=[`${d}__popup`];l.popClass&&T.push(l.popClass);const V={};return l.width&&(V.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(V.height=typeof l.height=="number"?`${l.height}px`:l.height),(0,t.h)(o,{popClass:T.join(" "),style:V,visible:p.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":c,position:l.position,round:"round",onClickOverlay:y,closeOnClickOverlay:l.closeOnClickOverlay},{default:()=>B})}}}}var{componentName:Lh,create:Rh,scope:Fh}=J("messagebox"),Oh=Rh(zh(Lh,Fh,ye)),Kh=Oh,Uh="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",Hh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cpath%20d='M8%2087L8%2095C8%2095.5523%207.55228%2096%207%2096C6.44772%2096%206%2095.5523%206%2095L6%2087L2%2087C1.44772%2087%201%2086.5523%201%2086C1%2085.4477%201.44772%2085%202%2085L6%2085L6%2082C6%2081.4477%206.44772%2081%207%2081C7.55228%2081%208%2081.4477%208%2082L8%2085L12%2085C12.5523%2085%2013%2085.4477%2013%2086C13%2086.5523%2012.5523%2087%2012%2087L8%2087Z'%20fill-rule='evenodd'%20fill='%2396CEFF'%20%3e%3c/path%3e%3cpath%20d='M89%205L89%2010C89%2010.5523%2088.5523%2011%2088%2011C87.4477%2011%2087%2010.5523%2087%2010L87%205L85%205C84.4477%205%2084%204.55228%2084%204C84%203.44772%2084.4477%203%2085%203L87%203L87%201C87%200.447715%2087.4477%200%2088%200C88.5523%200%2089%200.447715%2089%201L89%203L91%203C91.5523%203%2092%203.44772%2092%204C92%204.55228%2091.5523%205%2091%205L89%205Z'%20fill-rule='evenodd'%20fill='%23BDE2FF'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23237FFA'%20%3e%3c/circle%3e%3crect%20x='47.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%2396CEFF'%20%3e%3c/rect%3e%3crect%20x='47.5'%20y='66'%20width='7'%20height='7'%20rx='4'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3c/svg%3e",_h="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='105'%20viewBox='0%200%20102%20105'%20fill='none'%3e%3cpath%20d='M7%2076C7.55228%2076%208%2076.4477%208%2077L7.999%2079.999L12%2080C12.5523%2080%2013%2080.4477%2013%2081C13%2081.5523%2012.5523%2082%2012%2082L7.999%2081.999L8%2090C8%2090.5523%207.55228%2091%207%2091C6.44772%2091%206%2090.5523%206%2090L5.999%2081.999L2%2082C1.44772%2082%201%2081.5523%201%2081C1%2080.4477%201.44772%2080%202%2080L5.999%2079.999L6%2077C6%2076.4477%206.44772%2076%207%2076Z'%20fill='%2338D677'%20%3e%3c/path%3e%3cpath%20d='M75%201.72421e-32C75.5523%20-1.01453e-16%2076%200.447715%2076%201L76%202.999L78%203C78.5523%203%2079%203.44772%2079%204C79%204.55228%2078.5523%205%2078%205L76%204.999L76%2010C76%2010.5523%2075.5523%2011%2075%2011C74.4477%2011%2074%2010.5523%2074%2010L74%204.999L72%205C71.4477%205%2071%204.55228%2071%204C71%203.44772%2071.4477%203%2072%203L74%202.999L74%201C74%200.447715%2074.4477%201.01453e-16%2075%201.72421e-32Z'%20fill='%238BF0AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='54'%20r='28'%20fill='%2338D677'%20%3e%3c/circle%3e%3cpath%20d='M36.8787%2051.8786C38.3265%2050.4309%2040.6736%2050.4309%2042.1213%2051.8786L50.1214%2059.8786C51.5691%2061.3263%2051.5691%2063.6735%2050.1214%2065.1212C48.6737%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212L36.8787%2057.1212C35.431%2055.6735%2035.431%2053.3263%2036.8787%2051.8786Z'%20fill='%23B3F2C6'%20%3e%3c/path%3e%3cpath%20d='M64.1214%2045.8786C65.5691%2047.3263%2065.5691%2049.6735%2064.1214%2051.1212L50.1213%2065.1212C48.6736%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212C43.431%2063.6735%2043.431%2061.3263%2044.8787%2059.8786L58.8788%2045.8786C60.3265%2044.4309%2062.6737%2044.4309%2064.1214%2045.8786Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='14.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='101.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='25'%20r='7'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3c/svg%3e",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",Wh=new Qn,Yh={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Xh=e=>{let n=document.body,o=e.teleport;o!="body"&&(typeof o=="string"?n=document.querySelector(o):o&&(n=e.teleport));const l=document.createElement("view"),a=`messagebox-${Wh.get()}`;l.id=a,l.classList.add("fox-messagebox__root"),e.zIndex&&(l.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const i=document.querySelector(`#${a}`);i&&i.parentNode?.removeChild(i)};const r=(0,t.createVNode)(Kh,e);n.appendChild(l),(0,t.render)(r,l)},rt={show:(e,n,o,l)=>{const a={...Yh};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(a,n):(n&&(a.message=n),o&&typeof o=="object"?Object.assign(a,o):(typeof o=="string"&&(a.title=o),l&&typeof l=="object"?Object.assign(a,l):typeof l=="string"&&(a.type=l)));const r=a.type??"info";return a.icon||(r==="success"?a.icon=_h:r==="warning"?a.icon=jh:r==="error"?a.icon=Uh:a.icon=Hh),e==="alert"?(a.showCancelButton=!1,a.showConfirmButton=!0):e==="confirm"&&(a.showCancelButton=!0,a.showConfirmButton=!0),a.showClose&&!a.closeIcon&&(a.closeIcon=oe.Close),new Promise((i,u)=>{const s=a.callback;a.callback=d=>{if(typeof s=="function")try{s(d)}catch(p){console.error(p)}i({action:d})},Xh(a)})},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}},Qh=(e,n,o)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const l=document.createEvent("Events");let a=!0,r=!0;for(let i in n)i==="bubbles"?a=!!n[i]:i==="cancelable"?r=!!n[i]:l[i]=n[i];l.initEvent(e,a,r),(o??document).dispatchEvent(l)},Gh=new Qn,Zh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Jh=e=>`${e}-${Gh.get()}`,ev=Symbol.for("InnerPageScopeKey"),tv=Symbol.for("PageWrapperKey"),nv="FoxLeave",lv="FoxLeaveEnd",ov={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 av(e,n,o,l){return{props:{...Ze,...ov},emits:["update:visible"],setup(a,{attrs:r,slots:i,emit:u}){(0,t.provide)(ev,!0);const s={};(0,t.provide)(tv,s);const d=g=>(typeof s.beforeClose=="function"&&s.beforeClose(),!1),p=()=>{d("close")},c=e,v=g=>{S.value=g,u("update:visible",g)},S=(0,t.ref)(!1),w=(g,h)=>Zh(g)?(h.src=g,(0,t.h)("img",h)):typeof g=="string"?(Array.isArray(h.class)?h.class.push(g):h.class&&typeof h.class=="object"?h[`${g}`]=!0:typeof h.class=="string"?h.class=`${h.class}, ${g}`:h.class=g,(0,t.h)(a.tag,h)):(0,t.h)(g,h),y=()=>{if(!a.showHeader)return null;const g=[];if(i.header){const h=i.header();g.push(h)}else if(a.title){const h=(0,t.h)("view",{class:`${c}__header-title`},[a.title]);g.push(h)}return g.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},g)},k=()=>{if(!a.showClose)return null;const g={class:[`${c}__close-icon`],onClick:p};return w(a.closeIcon??l,g)};let f=null;const b=g=>{Qh(lv,{},f)},m=Jh(e),A=()=>{v(!0)},C=()=>{if(!f)return;const g=f.querySelector(".fox-overlay");g&&(g.classList.add("overlay-fade-leave-active"),g.classList.add("overlay-fade-leave-to"));const h=f.querySelector(".fox-popup");h&&(h.classList.add(`fox-popup-slide-${a.position}-leave-active`),h.classList.add(`fox-popup-slide-${a.position}-leave-to`),h.addEventListener("animationend",b,{once:!0}),h.addEventListener("transitionend",b,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return(0,t.onMounted)(()=>{f=document.querySelector(`.${m}`),f?.addEventListener(nv,C,{once:!0}),A()}),()=>{const g=[],h=y();h&&g.push(h);const N=k();N&&g.push(N);const B=i.default?i.default():[];Reflect.apply([].push,g,B);const T={[`${c}`]:!0};a.mode&&(T[`${c}--${a.mode}`]=!0);const V=(0,t.h)("view",{class:T},g),U=[`${c}__popup`,m];a.popClass&&U.push(a.popClass),a.position&&U.push(`${c}__popup--${a.position}`);const W={};a.width&&(W.width=typeof a.width=="number"?`${a.width}px`:a.width),a.height&&(W.height=typeof a.height=="number"?`${a.height}px`:a.height);const $=(0,t.h)(o,{...ve(a,Ze),popClass:U.join(" "),style:W,visible:S.value,teleportDisable:!0,closeable:!1,position:a.position,closeOnClickOverlay:a.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":v},{default:()=>V});return(0,t.h)("div",{class:[`${c}__root`,m]},[$])}}}}var{componentName:rv,create:iv,scope:sv}=J("popup-wrapper"),uv=iv(av(rv,sv,ye,oe.Close)),Lo=uv,cv={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function dv(e,n,o,l){return{props:{...cv},emits:["update:visible"],setup(a,{emit:r,slots:i}){const u=s=>{r("update:visible",s)};return()=>{const s=[`${e}__popup`];a.popClass&&s.push(a.popClass);const d=(0,t.h)(o,{popClass:s,style:a.popStyle??{},position:"top",zIndex:a.zIndex,closeOnClickOverlay:a.closeOnClickOverlay,teleportDisable:!0,visible:a.visible,"onUpdate:visible":u},i);return(0,t.h)("view",{class:`${e}`},[d])}}}}var{componentName:fv,create:mv,scope:pv}=J("dropdown"),hv=mv(dv(fv,pv,ye,!1)),Ro=hv;function vv(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean],required:!1}},setup(o,{slots:l}){return Zr(o.name,()=>o.config),Pe(o.innerPageScope)||ti(o.innerPageScope),Pe(o.abstractPageScope)||ni(o.abstractPageScope),()=>typeof l.default=="function"?l.default():null}}}var{componentName:gv,create:yv,scope:bv}=J("domain-provider"),Sv=yv(vv(gv,bv)),Fo=Sv,kv={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 wv(e,n){return{inheritAttrs:!1,props:kv,emits:["change"],setup(o,{slots:l,emit:a}){if(Je&&window.IntersectionObserver){const r=new WeakMap;let i=new Map;const u=(v,S)=>{if(p===null){i.set(v,{visible:null,callback:S});return}r.has(v)&&p.unobserve(v),r.set(v,{visible:null,callback:S}),p.observe(v)},s=v=>{if(p===null){i.delete(v);return}r.has(v)&&(r.delete(v),p.unobserve(v))};let d=o.initialVisibleObserverSize;uu({acquire:()=>{if(o.loadPolicy==="always")return!0;const v=d>0;return d--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:u,unobserve:s});let p=null;const c=(v,S,w)=>{p=new IntersectionObserver(y=>{if(a("change",y),o.loadPolicy!=="always")for(let k of y){let f=!1;k.intersectionRatio>0&&(f=!0);const b=r.get(k.target);if(b)try{if(o.loadPolicy==="lazy"&&!f&&b.visible!==null)return;b.visible=f,b.callback(f)}catch(m){console.error(m)}}},{root:v,rootMargin:S,threshold:w}),i.forEach((y,k)=>{r.set(k,y),p?.observe(k)}),i.clear()};(0,t.watch)([()=>o.root,()=>o.disabled],([v,S])=>{if(S||!v||p)return;let w=null;typeof v=="string"?w=document.querySelector(v):w=v,w&&c(w,o.rootMargin,o.threshold)},{immediate:!0}),(0,t.onUnmounted)(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof l.default=="function"?l.default():null}}}var{componentName:Cv,create:Nv,scope:Av}=J("rolling-provider"),Bv=Nv(wv(Cv,Av)),Oo=Bv,{componentName:Tv,create:Vv}=J("cell"),xv=Vv({components:{Right:oe.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const o=(0,t.computed)(()=>{const r=Tv;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),l=(0,t.computed)(()=>({borderRadius:me(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:o,baseStyle:l}}}),$v={key:0,class:"fox-cell__icon"},Ev={key:1,class:"fox-cell__title"},Dv={class:"title"},Iv={class:"fox-cell__title-desc"};function qv(e,n,o,l,a,r){const i=(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",$v,[(0,t.renderSlot)(e.$slots,"icon")])):(0,t.createCommentVNode)("",!0),e.title||e.subTitle||e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ev,[e.subTitle?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.renderSlot)(e.$slots,"title",{},()=>[(0,t.createElementVNode)("view",Dv,(0,t.toDisplayString)(e.title),1)]),(0,t.createElementVNode)("view",Iv,(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)(i,{key:0,class:"fox-cell__link"})):(0,t.createCommentVNode)("",!0)])])],6)}var Ko=ae(xv,[["render",qv]]),Pv={tag:{type:[String],default:()=>"li"},color:{type:[String]},size:{type:[String,Number]}};function Mv(e,n){return{props:{...Pv},setup(o,{attrs:l,slots:a}){const r=(0,t.computed)(()=>{const i={};return o.color&&(i.color=o.color),o.size&&(i.fontSize=me(o.size)),i});return()=>{const i={style:r.value,class:`${e}-wrap`,...l};return(0,t.h)(o.tag??"li",i,a)}}}}var{componentName:zv,create:Lv,scope:Rv}=J("icon"),Fv=Lv(Mv(zv,Rv)),Uo=Fv,{componentName:Ov,create:Kv}=J("cell-group"),Uv=Kv({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:(0,t.computed)(()=>({[Ov]:!0}))}}}),Hv={key:1,class:"fox-cell-group__title"},_v={key:3,class:"fox-cell-group__desc"},jv={class:"fox-cell-group__wrap"};function Wv(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.title?(0,t.renderSlot)(e.$slots,"title",{key:0}):e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",Hv,(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",_v,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",jv,[(0,t.renderSlot)(e.$slots,"default")])],2)}var Ho=ae(Uv,[["render",Wv]]),{componentName:Yv,create:Xv}=J("image"),Qv=Xv({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:oe.Image,ImageError:oe.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const o=(0,t.reactive)({loading:!0,isError:!1,slotLoding:(0,t.useSlots)().loading,slotError:(0,t.useSlots)().error}),l=(0,t.computed)(()=>{const S=Yv;return{[S]:!0,[`${S}-round`]:e.round}}),a=(0,t.ref)(null),r=(0,t.ref)(!1),i=(0,t.ref)(null),u=()=>{a.value=new IntersectionObserver(S=>{S.forEach(w=>{w.isIntersecting&&(r.value=!0,a.value.disconnect())})},{threshold:[0],rootMargin:"0px"}),i.value&&a.value.observe(i.value)};(0,t.onMounted)(()=>{e.lazyLoad&&u()}),(0,t.onBeforeUnmount)(()=>{a.value&&a.value.disconnect()});const s=(0,t.computed)(()=>{let S={};return e.width&&(S.width=me(e.width)),e.height&&(S.height=me(e.height)),e.radius!==void 0&&e.radius!==null&&(S.overflow="hidden",S.borderRadius=me(e.radius)),S}),d=(0,t.computed)(()=>({objectFit:e.fit,objectPosition:e.position}));(0,t.watch)(()=>e.src,S=>{o.isError=!1,o.loading=!0});const p=()=>{o.loading=!1,n("load")},c=()=>{o.isError=!0,o.loading=!1,n("error")},v=S=>{n("click",S)};return{...(0,t.toRefs)(o),imageClick:v,classes:l,styles:d,stylebox:s,error:c,load:p,show:r,imgRef:i}}}),Gv=["src","date-src","alt"],Zv={key:0,class:"fox-img-loading"},Jv={key:1,class:"fox-img-error"};function eg(e,n,o,l,a,r){const i=(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,Gv),e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("div",Zv,[e.slotLoding?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(i,{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",Jv,[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 _o=ae(Qv,[["render",eg]]),{create:tg}=J("layout"),ng=tg({}),jo=ng,{componentName:lg,create:og}=J("col"),ag=og({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=lg,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 rg(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Wo=ae(ag,[["render",rg]]),{componentName:ig,create:sg}=J("row"),ug=sg({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=ig;(0,t.provide)("gutter",e.gutter);const o=(l,a)=>l?a?`fox-row-${l}-${a}`:"":`fox-row-${a}`;return{classes:(0,t.computed)(()=>e.type==="flex"?`
2
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 Kv(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)}var _o=oe(Fv,[["render",Kv]]),{create:Uv}=J("sticky"),Hv=Uv({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.ref)(),a=(0,t.reactive)({fixed:!1,height:0,transform:0}),r=(0,t.computed)(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=(0,t.computed)(()=>a.fixed?{height:`${a.height}px`}:{}),i=(0,t.computed)(()=>a.fixed?{[e.position]:`${r.value}px`,transform:a.transform?`translate3d(0, ${a.transform}px, 0)`:void 0,position:a.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),u=()=>{const m=e.container;if(!o.value&&!m)return;const p=Ie(o),c=l.value,h=Ie(c),y=Ie(m);a.height=p.height;const w=()=>{let b=!1;if(e.position==="top")b=m?r.value>p.top&&y.bottom>0:r.value>p.top;else{const f=document.documentElement.clientHeight;b=m?y.bottom>0&&f-r.value-h.height>y.top:f-r.value<p.bottom}return b},S=()=>{if(m)if(e.position==="top"){const b=y.bottom-r.value-h.height;return b<0?b:0}else{const b=document.documentElement.clientHeight,f=y.bottom-(b-r.value);return f<0?f:0}return 0};a.transform=S(),a.fixed=w()};return(0,t.watch)(()=>a.fixed,m=>{n("change",m)}),(0,t.onMounted)(()=>{u(),jl(o.value).addEventListener("scroll",u,!0)}),(0,t.onUnmounted)(()=>{jl(o.value).removeEventListener("scroll",u)}),{rootRef:o,rootStyle:s,stickyRef:l,stickyStyle:i}}});function _v(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-sticky",ref:"rootRef",style:(0,t.normalizeStyle)(e.rootStyle)},[(0,t.createElementVNode)("div",{class:"fox-sticky__box",ref:"stickyRef",style:(0,t.normalizeStyle)(e.stickyStyle)},[(0,t.renderSlot)(e.$slots,"default")],4)],4)}var _t=oe(Hv,[["render",_v]]),{componentName:jv,create:Wv}=J("divider"),Yv=Wv({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=jv;let l={[o]:!0},a={};return e.direction==="horizontal"?a={...l,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:a={...l,[`${o}-vertical`]:e.direction==="vertical"},a})}}});function Xv(e,n,o,l,a,r){return e.direction==="horizontal"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes)},null,2))}var jo=oe(Yv,[["render",Xv]]);function Qv(e,n){const o=[],l=a=>{Array.isArray(a)&&a.forEach(r=>{if((0,t.isVNode)(r)){if(n){if(r.type&&r.type.name===n){o.push(r);return}}else o.push(r);r.component?.subTree&&l(r.component.subTree.children),r.children&&l(r.children)}})};return l(e),o}function Gv(e,n,o){const l=Qv(e.subTree.children,o);n.sort((a,r)=>l.indexOf(a.vnode)-l.indexOf(r.vnode))}function Zv(e,n){const o=(0,t.shallowReactive)([]),l=(0,t.getCurrentInstance)(),a=i=>{i.proxy&&(o.push((0,t.markRaw)(i)),Gv(l,o,n))},r=i=>{o.splice(o.indexOf((0,t.markRaw)(i)),1)},s=Object.assign;return i=>((0,t.provide)(e,s({add:a,remove:r,internalChildren:o},i)),{internalChildren:o})}var{componentName:Er}=J("grid"),Di=Symbol("grid"),Jv={columnNum:{type:[Number,String],default:4},border:{type:Boolean,default:!0},gutter:{type:[Number,String],default:0},center:{type:Boolean,default:!0},square:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},direction:{type:String},clickable:{type:Boolean,default:!1}},eg={props:Jv,setup(e,{slots:n}){Zv(Di,`${Er}-item`)({props:e});const o=(0,t.computed)(()=>{const a=Er;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),l=(0,t.computed)(()=>{const a={};return e.gutter&&(a.paddingLeft=de(e.gutter)),a});return()=>(0,t.h)("view",{class:o.value,style:l.value},n.default?.())}},{create:tg}=J("grid"),ng=tg(eg),Wo=ng;function lg(e){const n=(0,t.inject)(e,null);if(n){const o=(0,t.getCurrentInstance)(),{add:l,remove:a,internalChildren:r}=n;return l(o),(0,t.onUnmounted)(()=>a(o)),{parent:n,index:(0,t.computed)(()=>r.indexOf(o))}}return{parent:null,index:(0,t.ref)(-1)}}var{create:og,componentName:Dr}=J("grid-item"),ag=og({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const o=lg(Di);if(!o.parent)return{};const l=o.index,a=o.parent.props,r=(0,t.computed)(()=>({[Dr]:!0})),s=(0,t.computed)(()=>{const m={flexBasis:`${100/+a.columnNum}%`};return a.square?m.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(m.paddingRight=de(a.gutter),l.value>=a.columnNum&&(m.marginTop=de(a.gutter))),m}),i=(0,t.computed)(()=>{const m=`${Dr}__content`;return{[`${m}`]:!0,[`${m}--border`]:a.border,[`${m}--surround`]:a.border&&a.gutter,[`${m}--center`]:a.center,[`${m}--square`]:a.square,[`${m}--reverse`]:a.reverse,[`${m}--${a.direction}`]:!!a.direction,[`${m}--clickable`]:a.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:m=>{n("click",m)}}}}),rg={class:"fox-grid-item__text"};function ig(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.rootClass),style:(0,t.normalizeStyle)(e.rootStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.contentClass)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("view",rg,[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 Yo=oe(ag,[["render",ig]]),{componentName:sg,create:ug}=J("navbar"),cg=ug({components:{Left:le.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:o,fixed:l,safeAreaInsetTop:a,placeholder:r,zIndex:s}=(0,t.toRefs)(e),i=(0,t.ref)(null),u=(0,t.ref)(null);let m=(0,t.ref)();const p=(0,t.computed)(()=>{const b=sg;return{[b]:!0,[`${b}--border`]:o.value,[`${b}--fixed`]:l.value,[`${b}--safe-area-inset-top`]:a.value}}),c=(0,t.computed)(()=>({zIndex:s.value}));(0,t.onMounted)(()=>{l.value&&r.value&&(0,t.nextTick)(()=>{m.value=u?.value?.getBoundingClientRect().height,i.value.style.height=m.value+"px"})});function h(){n("on-click-back")}function y(){n("on-click-title")}function w(){n("on-click-icon")}function S(){n("on-click-right")}return{navBarWrap:i,navBarHtml:u,classes:p,styles:c,handleLeft:h,handleCenter:y,handleCenterIcon:w,handleRight:S}}}),dg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},fg={key:1,class:"fox-navbar__text"},mg={class:"fox-navbar__title"},pg={key:0,class:"fox-navbar__text"},hg={key:1,class:"fox-navbar__text"},vg={class:"fox-navbar__title"},gg={key:0,class:"fox-navbar__text"};function yg(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",dg,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles),ref:"navBarHtml"},[(0,t.createElementVNode)("view",{class:"fox-navbar__left",onClick:n[0]||(n[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(s,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",fg,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",mg,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...i)=>e.handleCenter&&e.handleCenter(...i))},(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.titleIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"icon",onClick:n[3]||(n[3]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",pg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6)],512)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.styles)},[(0,t.createElementVNode)("view",{class:"fox-navbar__left",onClick:n[5]||(n[5]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?(0,t.renderSlot)(e.$slots,"left-show",{key:0},()=>[(0,t.createVNode)(s,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",hg,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",vg,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...i)=>e.handleCenter&&e.handleCenter(...i))},(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),e.titleIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"icon",onClick:n[8]||(n[8]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[(0,t.renderSlot)(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content")]),(0,t.createElementVNode)("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?((0,t.openBlock)(),(0,t.createElementBlock)("view",gg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var Xo=oe(cg,[["render",yg]]),bg=(e,n,o)=>({components:o,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{type:String,default:""},activeText:{type:String},unActiveText:{type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(l,{emit:a}){const{toLocaleRefs:r}=(0,me.useFoxI18n)(n),s=r(l,["activeText","unActiveText"]),i=(0,t.computed)(()=>({[e]:!0,active:l.visible,[l.type]:!0})),u=(0,t.ref)(-1);return{...s,classes:i,updateValue:(c=!l.visible)=>{a("update:visible",c)},selected:(c,h)=>{a("selected",{item:c,event:h}),u.value=c.id},current:u}}}),{componentName:Sg,create:kg,scope:wg}=J("fixednav"),Cg=kg(bg(Sg,wg,{[it.name]:it,Left:le.Left})),Ng={class:"fox-fixednav__list"},Ag=["onClick"],Bg=["src"],Tg={class:"span"},Vg={key:0,class:"b"},xg={class:"text"};function $g(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-overlay"),i=(0,t.resolveComponent)("Left");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.position)},[e.overlay?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=u=>e.updateValue(!1))},null,8,["visible"])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"list",{},()=>[(0,t.createElementVNode)("view",Ng,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.navList,(u,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-fixednav__list-item",{active:u.id==e.current}]),onClick:p=>e.selected(u,p),key:u.id||m},[(0,t.createElementVNode)("img",{src:u.icon},null,8,Bg),(0,t.createElementVNode)("view",Tg,(0,t.toDisplayString)(u.text),1),u.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",Vg,(0,t.toDisplayString)(u.num),1)):(0,t.createCommentVNode)("",!0)],10,Ag))),128))])]),(0,t.createElementVNode)("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=u=>e.updateValue())},[(0,t.renderSlot)(e.$slots,"btn",{},()=>[(0,t.createVNode)(i,{color:"#fff"}),(0,t.createElementVNode)("view",xg,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var Qo=oe(Cg,[["render",$g]]),{componentName:Eg,create:Dg}=J("menu"),Ig=Dg({components:{ArrowUp2:le.ArrowUp2,ArrowDown2:le.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:o}){const l=(0,t.ref)(),a=(0,t.ref)(0),r=(0,t.ref)(!1),s=()=>{const b=(0,t.reactive)([]),f=(0,t.reactive)([]);return{children:b,linkChildren:d=>{const C=v=>{v.proxy&&(f.push(v),b.push(v.proxy))},N=v=>{if(v.proxy){let g=f.indexOf(v);g>-1&&f.splice(g,1);let A=b.indexOf(v.proxy);g>-1&&b.splice(A,1)}};(0,t.provide)("menuParent",Object.assign({removeLink:N,link:C,children:b,internalChildren:f},d))}}},{children:i,linkChildren:u}=s(),m=(0,t.computed)(()=>i.some(b=>b.state.showWrapper)),p=(0,t.computed)(()=>({[Eg]:!0,"scroll-fixed":r.value})),c=()=>{if(l.value){const b=Ie(l);e.direction==="down"?a.value=b.bottom:a.value=window.innerHeight-b.top}};u({props:e,offset:a});const h=b=>{i.forEach((f,k)=>{k===b?(c(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},y=b=>Math.max(0,"scrollTop"in b?b.scrollTop:b.pageYOffset),w=()=>{const{scrollFixed:b}=e;r.value=y(window)>(typeof b=="boolean"?30:Number(b))},S=b=>{let f="";const{titleClass:k}=e;return b&&(f+="active"),k&&(f+=` ${k}`),f};return(0,t.onMounted)(()=>{const{scrollFixed:b}=e;b&&window.addEventListener("scroll",w)}),(0,t.onUnmounted)(()=>{const{scrollFixed:b}=e;b&&window.removeEventListener("scroll",w)}),{toggleItem:h,children:i,opened:m,classes:p,barRef:l,getClasses:S}}}),qg=["onClick"],Pg={class:"fox-menu__title-text"},Mg={class:"fox-menu__title-icon"};function zg(e,n,o,l,a,r){const s=(0,t.resolveComponent)("ArrowUp2"),i=(0,t.resolveComponent)("ArrowDown2");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.children,(u,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:m,class:(0,t.normalizeClass)(["fox-menu__item",{disabled:u.disabled,active:u.state.showPopup}]),onClick:p=>!u.disabled&&e.toggleItem(m),style:(0,t.normalizeStyle)({color:u.state.showPopup?e.activeColor:""})},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__title",e.getClasses(u.state.showPopup)])},[(0,t.createElementVNode)("view",Pg,(0,t.toDisplayString)(u.renderTitle()),1),(0,t.createElementVNode)("span",Mg,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.direction==="up"?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1}))])])],2)],14,qg))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var Go=oe(Ig,[["render",zg]]),{componentName:Lg,create:Og}=J("menu-item"),Rg=Og({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[ge.name]:ge,Check:le.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:o}){const l=(0,t.reactive)({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),a=()=>{const y=(0,t.inject)("menuParent",null);if(y){const w=(0,t.getCurrentInstance)(),{link:S,removeLink:b}=y;return S(w),(0,t.onUnmounted)(()=>{b(w)}),{parent:y}}},{parent:r}=a(),s=(0,t.computed)(()=>({[Lg]:!0})),i=(0,t.computed)(()=>{const y={height:r.offset.value+"px"};return r.props.direction==="down"?y:{...y,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const y=e.options?.find(w=>w.value===e.modelValue);return y?y.text:""},state:l,parent:r,toggle:(y=!l.showPopup,w={})=>{y!==l.showPopup&&(l.showPopup=y,l.isShowPlaceholderElement=y,y&&(l.showWrapper=!0,n("open")))},onClick:y=>{l.showPopup=!1,l.isShowPlaceholderElement=!1,y.value!==e.modelValue&&(n("update:modelValue",y.value),n("change",y.value))},handleClose:()=>{n("close"),l.showWrapper=!1,l.isShowPlaceholderElement=!1},handleClickOutside:()=>{l.showPopup=!1,n("close")}}}}),Fg={class:"fox-menu-item__content fox-menu-item__overflow"},Kg=["onClick"];function Ug(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Check"),i=(0,t.resolveComponent)("fox-popup");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{onClick:n[0]||(n[0]=(...u)=>e.handleClickOutside&&e.handleClickOutside(...u)),class:(0,t.normalizeClass)(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:(0,t.normalizeStyle)(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),(0,t.createVNode)(i,(0,t.mergeProps)({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",top:"auto"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=u=>e.state.showPopup=u),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Fg,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,(u,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:m,class:(0,t.normalizeClass)(["fox-menu-item__option",[{active:u.value===e.modelValue}]]),style:(0,t.normalizeStyle)({"flex-basis":100/e.cols+"%"}),onClick:p=>e.onClick(u)},[u.value===e.modelValue?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:(0,t.normalizeClass)(["fox-menu-item__span",[u.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[(0,t.renderSlot)(e.$slots,"icon",{},()=>[(0,t.createVNode)(s,(0,t.mergeProps)({ref_for:!0},e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)([u.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:(0,t.normalizeStyle)({color:u.value===e.modelValue?e.parent.props.activeColor:""})},(0,t.toDisplayString)(u.text),7)],14,Kg))),128)),(0,t.renderSlot)(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}var Zo=oe(Rg,[["render",Ug]]),{create:Hg}=J("tabbar"),_g=Hg({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,n){function o(a){l.value!==a&&(l.value=a,n.emit("update:modelValue",a),n.emit("change",a,l.children[a]))}const l=(0,t.reactive)({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:o});return(0,t.provide)("parent",l),(0,t.watch)(()=>e.modelValue,a=>{l.value=a}),{changeIndex:o}}});function jg(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[(0,t.renderSlot)(e.$slots,"default")],2)}var Jo=oe(_g,[["render",jg]]),{create:Wg}=J("tabbar-item"),Yg=Wg({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,n){const o=(0,t.inject)("parent"),l=(0,t.reactive)({size:o.size,inactiveColor:o.inactiveColor,activeColor:o.activeColor,value:o.value,index:0}),a=(0,t.getCurrentInstance)();a!==null&&(u=>{if(u.proxy){let m=o.children.length;l.index=m;let p=Object.assign(u.proxy,{index:m});o.children.push(p)}})(a);const r=(0,t.computed)(()=>l.index===l.value);function s(i){o&&typeof o.changeIndex=="function"&&o.changeIndex(i)}return(0,t.watch)((0,t.computed)(()=>o?o.value:null),i=>{l.value=i}),{state:l,active:r,change:s}}}),Xg={class:"fox-tabbar-item_icon-box"},Qg={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Gg={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Zg={key:1,class:"fox-tabbar-item_icon-box_dot"},Jg={key:2},ey={key:0};function ty(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:(0,t.normalizeStyle)({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=s=>e.change(e.state.index))},[(0,t.createElementVNode)("view",Xg,[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",Qg,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",Gg,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",Zg)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",Jg,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):(0,t.createCommentVNode)("",!0),!e.icon&&e.activeImg?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:(0,t.normalizeStyle)({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",ey,(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 ea=oe(Yg,[["render",ty]]),{componentName:ny,create:ly}=J("elevator"),oy=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}),a=(0,t.computed)(()=>({[ny]:!0})),r=(0,t.computed)(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),s=(0,t.computed)(()=>o.value.clientHeight),i=(f,k)=>f.getAttribute("data-"+k),u=f=>{(0,t.nextTick)(()=>{!l.listGroup.includes(f)&&f!=null&&l.listGroup.push(f)})},m=()=>{let f=0;l.listHeight.push(f);for(let k=0;k<l.listGroup.length;k++){let d=l.listGroup[k];f+=Math.floor(d.clientHeight),l.listHeight.push(f)}},p=f=>{!f&&f!==0||(f<0&&(f=0),f>l.listHeight.length-2&&(f=l.listHeight.length-2),l.codeIndex=f,o.value.scrollTo(0,l.listHeight[f]))},c=f=>{l.scrollStart=!0;let k=i(f.target,"index"),d=f.touches[0];l.touchState.y1=d.pageY,l.anchorIndex=+k,l.codeIndex=+k,p(+k)},h=f=>{let k=f.touches[0];l.touchState.y2=k.pageY;let d=(l.touchState.y2-l.touchState.y1)/e.spaceHeight|0;l.codeIndex=l.anchorIndex+d,p(l.codeIndex)},y=()=>{l.scrollStart=!1},w=(f,k)=>{n.emit("click-item",f,k),l.currentData=k,l.currentKey=f},S=f=>{n.emit("click-index",f)},b=f=>{let k=f.target.scrollTop;const d=l.listHeight;l.scrollY=k;for(let C=0;C<d.length-1;C++){let N=d[C],v=d[C+1];if(l.scrollY>=N&&l.scrollY<v){l.currentIndex=C,l.diff=v-l.scrollY;return}}l.currentIndex=d.length-2};return(0,t.onMounted)(()=>{o.value.addEventListener("scroll",b)}),Be({scrollTo:p}),(0,t.watch)(()=>l.listGroup.length,()=>{l.listHeight=[],(0,t.nextTick)(m)}),(0,t.watch)(()=>l.diff,f=>{const k=l.listHeight;let d=f>0&&f<e.titleHeight?f-e.titleHeight:0;l.scrollY+s.value===k[k.length-1]&&d!==0&&(d=0),l.fixedTop!==d&&(l.fixedTop=d)}),(0,t.watch)(()=>l.currentIndex,f=>{n.emit("change",f)}),{classes:a,...(0,t.toRefs)(l),fixedStyle:r,clientHeight:s,setListGroup:u,listview:o,touchStart:c,touchMove:h,touchEnd:y,handleClickItem:w,handleClickIndex:S}}}),ay={class:"fox-elevator__list__item__code"},ry=["onClick"],iy=["innerHTML"],sy={class:"fox-elevator__fixed-title"},uy={class:"fox-elevator__bars__inner"},cy=["data-index","onClick"];function dy(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:"fox-elevator__list",ref:"listview",style:(0,t.normalizeStyle)({height:isNaN(+e.height)?e.height:`${e.height}px`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,s=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[(0,t.createElementVNode)("view",ay,(0,t.toDisplayString)(s[e.acceptKey]),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(s.list,i=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===i.id&&e.currentKey===s[e.acceptKey]}]),key:i.id,onClick:u=>e.handleClickItem(s[e.acceptKey],i)},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:1,item:i}):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:i.name},null,8,iy))],10,ry))),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",sy,(0,t.toDisplayString)(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):(0,t.createCommentVNode)("",!0)],4),e.indexList.length?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-elevator__code--current"},(0,t.toDisplayString)(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-elevator__bars",onTouchstart:n[0]||(n[0]=(...s)=>e.touchStart&&e.touchStart(...s)),onTouchmove:n[1]||(n[1]=(0,t.withModifiers)((...s)=>e.touchMove&&e.touchMove(...s),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...s)=>e.touchEnd&&e.touchEnd(...s))},[(0,t.createElementVNode)("view",uy,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__bars__inner__item",{active:s[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":i,key:s[e.acceptKey],onClick:u=>e.handleClickIndex(s[e.acceptKey])},(0,t.toDisplayString)(s[e.acceptKey]),11,cy))),128))])],32)],2)}var ta=oe(oy,[["render",dy]]),{componentName:m2,create:fy,scope:my}=J("pagination"),py=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,me.useFoxI18n)(my),l=o(e,["prevText","nextText"]),{modelValue:a,mode:r,showPageSize:s,forceEllipses:i}=(0,t.toRefs)(e),u=(0,t.computed)(()=>{const{pageCount:h,totalItems:y,itemsPerPage:w}=(0,t.toRefs)(e),S=+h.value||Math.ceil(+y.value/+w.value);return Math.max(1,S)}),m=(h,y)=>{h>u.value||h<1||(h!=a.value&&n("update:modelValue",h),y&&n("change",h))},p=(h,y,w=!1)=>({number:h,text:y,active:w}),c=(0,t.computed)(()=>{if(r.value=="simple")return;let h=[];const y=u.value,w=+s.value;let S=1,b=y;const f=y>w;f&&(S=Math.max(a.value-Math.floor(w/2),1),b=S+w-1,b>y&&(b=y,S=b-w+1));for(var k=S;k<=b;k++){const d=p(k,k,a.value==k);h.push(d)}if(f&&w>0&&i.value){if(S>1){const d=p(S-1,"...");h.unshift(d)}if(b<y){const d=p(b+1,"...");h.push(d)}}return h});return(0,t.watchEffect)(()=>{m(a.value,!1)}),{...l,modelValue:a,select:m,countRef:u,mode:r,pages:c,forceEllipses:i}}}),hy={class:"fox-pagination"},vy={key:0,class:"fox-pagination-contain"},gy=["onClick"],yy={key:1,class:"fox-pagination-contain"},by={class:"fox-pagination-simple"};function Sy(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",hy,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=s=>e.select(e.modelValue-1,!0))},[(0,t.renderSlot)(e.$slots,"prev-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.prevText),1)])],2),e.mode=="multi"?((0,t.openBlock)(),(0,t.createElementBlock)("view",vy,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pages,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:i+"pagination",class:(0,t.normalizeClass)(["fox-pagination-item",s.active?"active":""]),onClick:u=>e.select(s.number,!0)},[(0,t.renderSlot)(e.$slots,"page",{item:s},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.text),1)])],10,gy))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",yy,[(0,t.createElementVNode)("view",by,(0,t.toDisplayString)(e.modelValue)+"/"+(0,t.toDisplayString)(e.countRef),1)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=s=>e.select(e.modelValue+1,!0))},[(0,t.renderSlot)(e.$slots,"next-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextText),1)])],2)])}var na=oe(py,[["render",Sy]]),ky=(e,n,o,l)=>{const a=(0,t.ref)(),r=(0,t.ref)({width:0,height:0}),s=async()=>{if(o&&o.getEnv()!==o.ENV_TYPE.WEB){let c=await l(a,o);r.value.width=c.width||0,r.value.height=c.height||0}else r.value.width=a.value?.clientWidth||0,r.value.height=a.value?.clientHeight||0};(0,t.onMounted)(()=>{setTimeout(()=>{s()},100)});const i=(0,t.reactive)({offset:0,moving:!1}),u=et();let m="";const p=(c,h)=>{let y=c;switch(e.direction=="horizontal"?(m=c>0?"right":"left",y=Math.abs(y)/r.value.width*100):(m=h>0?"bottom":"top",y=h,y=Math.abs(y)/r.value?.height*100),y>85&&(y=85),m){case"left":case"top":n.isEnd()&&(y=0,i.moving=!1);break;case"right":case"bottom":y=-y,n.isBegin()&&(y=0,i.moving=!1);break}i.offset=y};return{touchMethods:{onTouchStart(c){e.swipeable&&u.start(c)},onTouchMove(c){e.swipeable&&(u.move(c),i.moving=!0,p(u.deltaX.value,u.deltaY.value),e.direction=="horizontal"&&u.isHorizontal()&&(c.preventDefault(),c.stopPropagation()),e.direction=="vertical"&&u.isVertical()&&(c.preventDefault(),c.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,m){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:a}},wy=class{title="";titleSlot;paneKey="";disabled=!1;constructor(){}},{create:Cy}=J("tabs"),Ny=Cy({components:{[_t.name]:_t,JoySmile:le.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null);let a;(0,t.provide)("tabsOpiton",{activeKey:(0,t.computed)(()=>e.modelValue||"0"),autoHeight:(0,t.computed)(()=>e.autoHeight),animatedTime:(0,t.computed)(()=>e.animatedTime)});const r=(0,t.ref)([]),s=V=>{V.forEach((T,_)=>{let G=T.type;if(G=G.name||G,G=="fox-tab-pane"){let x=new wy;if(T.props?.title||T.props?.["pane-key"]||T.props?.paneKey){let $=kt(T.props?.["pane-key"]),z=$=="number"||$=="string"?String(T.props?.["pane-key"]):null,P=kt(T.props?.paneKey),O=P=="number"||P=="string"?String(T.props?.paneKey):null;x.title=T.props?.title,x.paneKey=z||O||String(_),x.disabled=T.props?.disabled}r.value.push(x)}else{if(T.children==" ")return;Array.isArray(T.children)&&s(T.children)}})},i=(0,t.ref)(e.modelValue||0),u=V=>{let T=r.value.findIndex(_=>_.paneKey==V);r.value.length==0||T==-1||(i.value=T)},m=(0,t.computed)(()=>e.titleScroll&&e.direction==="vertical"),p=(0,t.ref)(),c=(0,t.ref)([]),h=V=>{const T=p.value,_=c.value;if(!T||!_||!_[i.value])return;const G=_[i.value];let x=0;e.direction==="vertical"?x=G.offsetTop-T.offsetTop+10-(T.offsetHeight-G.offsetHeight)/2:x=G.offsetLeft-(T.offsetWidth-G.offsetWidth)/2,y(T,x,V?0:.3,e.direction)},y=(V,T,_,G)=>{let x=0;const $=G==="horizontal"?V.scrollLeft:V.scrollTop,z=_===0?1:Math.round(_*1e3/16);function P(){G==="horizontal"?V.scrollLeft+=(T-$)/z:V.scrollTop+=(T-$)/z,++x<z&&Fe(P)}P()},w=(V=o.default?.())=>{r.value=[],V=V?.filter(T=>typeof T.children!="string"),V&&V.length&&s(V),u(e.modelValue),(0,t.nextTick)(()=>{h()})},S=V=>{a=V.fixed};(0,t.watch)(()=>o.default?.(),V=>{w(V)});const b=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;(0,t.watch)(()=>e.modelValue,V=>{if(u(V),h(),a){let T=Ie(l.value).top+b(),_=Math.ceil(T-e.top);window.scrollTo({top:_,behavior:"smooth"})}}),(0,t.onMounted)(w),(0,t.onActivated)(w);const f={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,f.updateValue(r.value[i.value])},prev:()=>{i.value-=1,f.updateValue(r.value[i.value])},updateValue:V=>{n("update:modelValue",V.paneKey),n("change",V)},tabChange:(V,T)=>{n("click",V),!(V.disabled||i.value==T)&&(i.value=T,f.updateValue(V))},setTabItemRef:(V,T)=>{c.value[T]=V}},{tabsContentRef:k,touchState:d,touchMethods:C}=ky(e,f),N=(0,t.computed)(()=>{let V=i.value*100;d.moving&&(V+=d.offset);let T={transform:e.direction=="horizontal"?`translate3d(-${V}%, 0, 0)`:`translate3d( 0,-${V}%, 0)`,transitionDuration:d.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(T={}),T}),v=(0,t.computed)(()=>({background:e.background})),g=(0,t.computed)(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),A=(0,t.computed)(()=>{if(!e.titleGutter)return{};const V=de(e.titleGutter);return e.direction==="vertical"?{marginTop:V,marginBottom:V}:{marginLeft:V,marginRight:V}}),B=(0,t.computed)(()=>o.fixedTitle);return{navRef:p,tabsContentRef:k,titles:r,contentStyle:N,tabsNavStyle:v,titleStyle:A,tabsActiveStyle:g,container:l,getScrollY:m,onStickyScroll:S,...f,...C,hasFixedTitle:B}}}),Ay=["onClick"],By={key:0,class:"fox-tabs__titles-fixed-item"},Ty=["onClick"],Vy={key:0,class:"fox-tabs__titles-fixed-item"};function xy(e,n,o,l,a,r){const s=(0,t.resolveComponent)("JoySmile"),i=(0,t.resolveComponent)("fox-sticky");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:(0,t.normalizeStyle)(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?(0,t.renderSlot)(e.$slots,"titles",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.titles,(u,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:u.paneKey==e.modelValue,disabled:u.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:p=>e.tabChange(u,m),key:u.paneKey},[(0,t.renderSlot)(e.$slots,"title",{title:u.title,paneKey:u.paneKey},()=>[e.type=="line"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-tabs__titles-item__line",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},null,4)):(0,t.createCommentVNode)("",!0),e.type=="smile"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-tabs__titles-item__smile",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},[(0,t.createVNode)(s,{color:e.color},null,8,["color"])],4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},(0,t.toDisplayString)(u.title),3)])],14,Ay))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",By,[(0,t.renderSlot)(e.$slots,"fixedTitle")])):(0,t.createCommentVNode)("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:(0,t.normalizeStyle)(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?(0,t.renderSlot)(e.$slots,"titles",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.titles,(u,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:u.paneKey==e.modelValue,disabled:u.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:p=>e.tabChange(u,m),key:u.paneKey,ref_for:!0,ref:p=>e.setTabItemRef(p,m)},[(0,t.renderSlot)(e.$slots,"title",{title:u.title,paneKey:u.paneKey},()=>[e.type=="line"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-tabs__titles-item__line",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},null,4)):(0,t.createCommentVNode)("",!0),e.type=="smile"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-tabs__titles-item__smile",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},[(0,t.createVNode)(s,{color:e.color},null,8,["color"])],4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},(0,t.toDisplayString)(u.title),3)])],14,Ty))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Vy,[(0,t.renderSlot)(e.$slots,"fixedTitle")])):(0,t.createCommentVNode)("",!0)],64))],6)),(0,t.createElementVNode)("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:(0,t.normalizeStyle)(e.contentStyle),onTouchstart:n[0]||(n[0]=(...u)=>e.onTouchStart&&e.onTouchStart(...u)),onTouchmove:n[1]||(n[1]=(...u)=>e.onTouchMove&&e.onTouchMove(...u)),onTouchend:n[2]||(n[2]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u)),onTouchcancel:n[3]||(n[3]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u))},[(0,t.renderSlot)(e.$slots,"default")],36)],2)}var la=oe(Ny,[["render",xy]]),{create:$y}=J("tab-pane"),Ey=$y({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const o=(0,t.inject)("tabsOpiton"),l=(0,t.computed)(()=>({display:o.animatedTime.value==0&&e.paneKey!=o.activeKey.value?"none":void 0}));return{...o,paneStyle:l}}});function Dy(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:(0,t.normalizeStyle)(e.paneStyle)},[(0,t.renderSlot)(e.$slots,"default")],6)}var oa=oe(Ey,[["render",Dy]]),{componentName:Ir,create:Iy}=J("indicator"),qy=Iy({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=Ir;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${o.value}`]:n.value&&o.value}}),componentName:Ir,padZero:nt}}});function Py(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.size,s=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:s},[s===e.current?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(`${e.componentName}--number`)},(0,t.toDisplayString)(e.fillZero&&e.padZero(s)||s),3)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var aa=oe(qy,[["render",Py]]),{componentName:My,create:zy}=J("side-navbar"),Ly=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)(()=>({[My]:!0})),a=(s,i=1)=>{for(let u=0;u<s.length;u++){let m=s[u];m?.children?.[0]&&(m.children[0].style.paddingLeft=+e.offset*i+"px",m.className.includes("fox-side-navbar-item")||a(Array.from(m.children[1].children),++o.count))}o.count--},r=()=>{let s=n.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),a(s))};return(0,t.onMounted)(()=>{r(),o.observer=new MutationObserver(function(){o.count=1,r()}),o.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(o),list:n,classes:l}}}),Oy={class:"fox-side-navbar__content"},Ry={class:"fox-side-navbar__content__list",ref:"list"};function Fy(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",Oy,[(0,t.createElementVNode)("view",Ry,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var ra=oe(Ly,[["render",Fy]]),{componentName:Ky,create:Uy}=J("side-navbar-item"),Hy=Uy({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[Ky]:!0})),handleClick:()=>{n.emit("click")}})}),_y=["ikey"],jy={class:"fox-side-navbar-item__title"};function Wy(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[(0,t.createElementVNode)("span",jy,(0,t.toDisplayString)(e.title),1)],10,_y)}var ia=oe(Hy,[["render",Wy]]),{componentName:Yy,create:Xy}=J("sub-side-navbar"),Qy=Xy({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:le.ArrowDown2,ArrowUp2:le.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const o=(0,t.reactive)({direction:""}),l=(0,t.computed)(()=>({[Yy]:!0})),a=(0,t.computed)(()=>({height:o.direction?"0px":"auto"})),r=()=>{n.emit("title-click"),o.direction=o.direction?"":"up"};return(0,t.onMounted)(()=>{o.direction=e.open?"":"up"}),{...(0,t.toRefs)(o),classes:l,style:a,handleClick:r}}}),Gy=["ikey"],Zy={class:"fox-sub-side-navbar__title__text"},Jy={class:"fox-sub-side-navbar__title__icon"};function eb(e,n,o,l,a,r){const s=(0,t.resolveComponent)("ArrowDown2"),i=(0,t.resolveComponent)("ArrowUp2");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ikey:e.ikey},[(0,t.createElementVNode)("view",{class:"fox-sub-side-navbar__title",onClick:n[0]||(n[0]=(0,t.withModifiers)((...u)=>e.handleClick&&e.handleClick(...u),["stop"]))},[(0,t.createElementVNode)("span",Zy,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",Jy,[e.direction?((0,t.openBlock)(),(0,t.createBlock)(i,{key:1})):((0,t.openBlock)(),(0,t.createBlock)(s,{key:0}))])]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,Gy)}var sa=oe(Qy,[["render",eb]]),{componentName:tb,create:nb}=J("range"),lb=nb({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const o=(0,t.ref)(0);let l,a;const r=(0,t.ref)(),s=(0,t.ref)(),i=et(),u=(0,t.computed)(()=>{const{marks:x,max:$,min:z}=e;return Object.keys(x).map(parseFloat).sort((P,O)=>P-O).filter(P=>{const O=fe(P);return O>=fe(z)&&O<=fe($)})}),m=(0,t.computed)(()=>Number(e.max)-Number(e.min)),p=(0,t.computed)(()=>{const x=tb;return{[x]:!0,[`${x}-disabled`]:e.disabled,[`${x}-vertical`]:e.vertical,[`${x}-show-number`]:!e.hiddenRange}}),c=(0,t.computed)(()=>{const x="fox-range-container";return{[x]:!0,[`${x}-vertical`]:e.vertical}}),h=(0,t.computed)(()=>({background:e.inactiveColor})),y=(0,t.computed)(()=>({borderColor:e.buttonColor})),w=x=>!!e.range&&Array.isArray(x),S=()=>{const{modelValue:x,min:$}=e;return w(x)?`${(x[1]-x[0])*100/m.value}%`:`${(x-Number($))*100/m.value}%`},b=()=>{const{modelValue:x,min:$}=e;return w(x)?`${(x[0]-Number($))*100/m.value}%`:"0%"},f=(0,t.computed)(()=>e.vertical?{height:S(),top:b(),background:e.activeColor,transition:s.value?"none":void 0}:{width:S(),left:b(),background:e.activeColor,transition:s.value?"none":void 0}),k=x=>{const $="fox-range-mark",{modelValue:z,max:P,min:O}=e;let F=Number(O),D=Number(P);if(e.range){const[te,L]=z;F=te,D=L}else D=z;let X=x<=D&&x>=F;return{[`${$}-text`]:!0,[`${$}-text-active`]:X}},d=x=>{const{min:$,vertical:z}=e;let P={left:`${(x-Number($))/m.value*100}%`};return z&&(P={top:`${(x-Number($))/m.value*100}%`}),P},C=x=>{const{modelValue:$,max:z,min:P}=e;let O=Number(P),F=Number(z);if(e.range){const[D,X]=$;O=D,F=X}return{background:x<=F&&x>=O?e.activeColor:e.inactiveColor}},N=x=>{const{min:$,max:z,step:P}=e;return x=Math.max(+$,Math.min(x,+z)),Math.round(x/+P)*+P},v=(x,$)=>JSON.stringify(x)===JSON.stringify($),g=x=>x[0]>x[1]?x.slice(0).reverse():x,A=(x,$)=>{w(x)?x=g(x).map(N):x=N(x),v(x,e.modelValue)||n("update:modelValue",x),$&&!v(x,l)&&n("change",x)},B=x=>{if(e.disabled)return;const{min:$,modelValue:z}=e,P=Ie(r);let O=x.clientX-P.left,F=P.width;e.vertical&&(O=x.clientY-P.top,F=P.height);const D=Number($)+O/F*m.value;if(w(z)){const[X,te]=z;D<=(X+te)/2?A([D,te],!0):A([X,D],!0)}else A(D,!0)},V=x=>{e.disabled||(i.start(x),a=e.modelValue,w(a)?l=a.map(N):l=N(a),s.value="start")},T=x=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(x),s.value="draging";const $=Ie(r);let z=i.deltaX.value,P=$.width,O=z/P*m.value;e.vertical&&(z=i.deltaY.value,P=$.height,O=z/P*m.value),w(l)?a[o.value]=l[o.value]+O:a=l+O,A(a),x.stopPropagation(),x.preventDefault()},_=()=>{e.disabled||(s.value==="draging"&&(A(a,!0),n("drag-end")),s.value="")},G=x=>Bn(e.modelValue)&&typeof x=="number"?e.modelValue[x]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:h,buttonStyle:y,onClick:B,onTouchStart:V,onTouchMove:T,onTouchEnd:_,...(0,t.toRefs)(e),barStyle:f,curValue:G,buttonIndex:o,containerClasses:c,markClassName:k,marksStyle:d,marksList:u,tickStyle:C}}}),ob={key:0,class:"fox-range-min"},ab={key:0,class:"fox-range-mark"},rb=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],ib={key:0,class:"number"},sb=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],ub={key:0,class:"number"},cb={key:1,class:"fox-range-max"};function db(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.containerClasses)},[e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",ob,(0,t.toDisplayString)(+e.min),1)),(0,t.createElementVNode)("view",{ref:"root",style:(0,t.normalizeStyle)(e.wrapperStyle),class:(0,t.normalizeClass)(e.classes),onClick:n[9]||(n[9]=(0,t.withModifiers)((...s)=>e.onClick&&e.onClick(...s),["stop"]))},[e.marksList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",ab,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.marksList,s=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:s,class:(0,t.normalizeClass)(e.markClassName(s)),style:(0,t.normalizeStyle)(e.marksStyle(s))},[(0,t.createTextVNode)((0,t.toDisplayString)(s)+" ",1),(0,t.createElementVNode)("span",{class:"fox-range-tick",style:(0,t.normalizeStyle)(e.tickStyle(s))},null,4)],6))),128))])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-range-bar",style:(0,t.normalizeStyle)(e.barStyle)},[e.range?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)([0,1],s=>(0,t.createElementVNode)("view",{key:s,role:"slider",class:(0,t.normalizeClass)({"fox-range-button-wrapper-left":s==0,"fox-range-button-wrapper-right":s==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(s),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:(0,t.withModifiers)(i=>{typeof s=="number"&&(e.buttonIndex=s),e.onTouchStart(i)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=(0,t.withModifiers)((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:n[1]||(n[1]=(0,t.withModifiers)((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=(0,t.withModifiers)((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:n[3]||(n[3]=i=>i.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",ib,(0,t.toDisplayString)(e.curValue(s)),1))],4))],42,rb)),64)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=(0,t.withModifiers)(s=>{e.onTouchStart(s)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=(0,t.withModifiers)((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=(0,t.withModifiers)((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:n[8]||(n[8]=s=>s.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",ub,(0,t.toDisplayString)(e.curValue()),1))],4))],40,sb))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",cb,(0,t.toDisplayString)(+e.max),1))],2)}var jt=oe(lb,[["render",db]]),{create:fb,scope:mb}=J("short-password"),pb=fb({components:{[ge.name]:ge,Tips:le.Tips},props:{title:{type:String},desc:{type:String},tips:{type:String},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:o}=(0,me.useFoxI18n)(mb),l=o(e,["title","desc","tips"]),a=(0,t.ref)(e.modelValue),r=(0,t.computed)(()=>m(Number(e.length))),s=(0,t.ref)(e.visible),i=c=>{c.stopPropagation(),n("focus")};(0,t.watch)(()=>e.visible,c=>{s.value=c}),(0,t.watch)(()=>e.modelValue,c=>{a.value=c,String(c).length===r.value&&n("complete",c)});const u=()=>{n("update:visible",!1),n("close")},m=c=>Math.min(Math.max(4,c),6);return{comLen:r,realInput:a,onTouchStart:i,range:m,close:u,onTips:()=>{n("tips")},show:s,...l}}}),hb={class:"fox-short-password-title"},vb={class:"fox-short-password-subtitle"},gb={class:"fox-short-password-wrapper"},yb={key:0,class:"fox-short-password__item-icon"},bb={class:"fox-short-password__message"},Sb={class:"fox-short-password--error"},kb={key:0,class:"fox-short-password--forget"};function wb(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Tips"),i=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)("view",null,[(0,t.createVNode)(i,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":n[2]||(n[2]=u=>e.show=u),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",hb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",vb,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",gb,[(0,t.createElementVNode)("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...u)=>e.onTouchStart&&e.onTouchStart(...u))},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(new Array(e.comLen),(u,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-short-password__item",key:m},[String(e.realInput).length>m?((0,t.openBlock)(),(0,t.createElementBlock)("view",yb)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",bb,[(0,t.createElementVNode)("view",Sb,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",kb,[(0,t.createVNode)(s,{class:"icon",width:"11px",height:"11px"}),(0,t.createElementVNode)("view",{onClick:n[1]||(n[1]=(...u)=>e.onTips&&e.onTips(...u))},(0,t.toDisplayString)(e.tips),1)])):(0,t.createCommentVNode)("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}var ua=oe(pb,[["render",wb]]),Cb=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},Nb=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")}},Ab=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},Ii=(e,{args:n=[],done:o,canceled:l})=>{if(e){const a=e.apply(null,n);bt(a)?a.then(r=>{r?o(r):l&&l()}).catch(()=>{}):a?o():l&&l()}else o()},{create:Bb}=J("progress"),Tb=Bb({components:{Checked:le.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!(0,t.useSlots)().default,o=(0,t.ref)(e.strokeWidth+"px"),l=(0,t.ref)(),a=(0,t.ref)(),r=(0,t.computed)(()=>{const u=fe(e.percentage);return u>=100?100:u}),s=(0,t.computed)(()=>({width:r.value+"%",background:e.strokeColor||""})),i=(0,t.computed)(()=>({color:e.textColor||""}));return(0,t.onMounted)(()=>{}),{height:o,percentage:r,bgStyle:s,textStyle:i,progressOuter:l,insideText:a,slotDefault:n}}}),Vb={class:"fox-progress"},xb={key:0,class:"fox-progress-text"};function $b(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",Vb,[(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",xb,[e.status=="active"||e.status==""?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,style:(0,t.normalizeStyle)(e.textStyle)},(0,t.toDisplayString)(e.percentage)+(0,t.toDisplayString)(e.isShowPercentage?"%":""),5)):e.status=="icon"?(0,t.renderSlot)(e.$slots,"icon-name",{key:1},()=>[(0,t.createVNode)(s,{width:"15px",height:"15px",color:"#439422"})]):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)])}var Wt=oe(Tb,[["render",$b]]),{componentName:Eb,create:Db,scope:Ib}=J("uploader"),qb=Db({components:{[Wt.name]:Wt,Photograph:le.Photograph,Failure:le.Failure,Loading:le.Loading,Del:le.Del,Link:le.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:o}=(0,me.useFoxI18n)(Ib),l=(0,t.reactive)(e.fileList);let a=[];const r=(0,t.computed)(()=>({[Eb]:!0})),s=()=>{let k={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(k.capture="camera"),(0,t.h)("input",k)},i=k=>{k.value=""},u=k=>{n("file-item-click",{fileItem:k})},m=(k,d)=>{const C=new Cb;C.url=e.url,C.formData=k.formData,C.timeout=e.timeout*1,C.method=e.method,C.xhrState=e.xhrState,C.headers=e.headers,C.withCredentials=e.withCredentials,C.beforeXhrUpload=e.beforeXhrUpload;try{C.sourceFile=k.formData.get(e.name)}catch{}C.onStart=v=>{k.status="ready",k.message=o("readyUpload"),p(d),n("start",v)},C.onProgress=(v,g)=>{k.status="uploading",k.message=o("uploading"),k.percentage=(v.loaded/v.total*100).toFixed(0),n("progress",{event:v,option:g,percentage:k.percentage})},C.onSuccess=(v,g)=>{k.status="success",k.message=o("success"),n("success",{responseText:v,option:g,fileItem:k}),n("update:fileList",l)},C.onFailure=(v,g)=>{k.status="error",k.message=o("error"),n("failure",{responseText:v,option:g,fileItem:k})};let N=new Nb(C);e.autoUpload?N.upload():a.push(new Promise((v,g)=>{v(N)}))},p=(k=-1)=>{k>-1?a.splice(k,1):(a=[],l.splice(0,l.length))},c=()=>{Promise.all(a).then(k=>{k.forEach(d=>d.upload())})},h=k=>{k.forEach((d,C)=>{const N=new FormData;for(const[g,A]of Object.entries(e.data))N.append(g,A);N.append(e.name,d);const v=(0,t.reactive)(new Ab);if(v.name=d.name,v.status="ready",v.type=d.type,v.formData=N,v.message=o("waitingUpload"),m(v,C),e.isPreview&&d.type.includes("image")){const g=new FileReader;g.onload=A=>{v.url=A.target.result,l.push(v)},g.readAsDataURL(d)}else l.push(v)})},y=k=>{const d=e.maximum*1,C=e.maximize*1,N=new Array;k=k.filter(g=>g.size>C?(N.push(g),!1):!0),N.length&&n("oversize",N);let v=k.length+l.length;return v>d&&k.splice(k.length-(v-d)),k},w=(k,d)=>{l.splice(d,1),n("delete",{file:k,fileList:l,index:d})},S=(k,d)=>{p(d),Ii(e.beforeDelete,{args:[k,l],done:()=>w(k,d)})},b=k=>{if(e.disabled)return;const d=k.target;let{files:C}=d;e.beforeUpload?e.beforeUpload(C).then(N=>f(N)):f(C),n("change",{fileList:l,event:k}),e.clearInput&&i(d)},f=k=>{h(y(new Array().slice.call(k)))};return{onChange:b,onDelete:S,fileList:l,classes:r,fileItemClick:u,clearUploadQueue:p,submit:c,renderInput:s}}}),Pb={key:0,class:"fox-uploader__slot"},Mb={key:0,class:"fox-uploader__preview-img"},zb={key:0,class:"fox-uploader__preview__progress"},Lb={class:"fox-uploader__preview__progress__msg"},Ob=["onClick"],Rb=["onClick","src"],Fb={key:3,class:"fox-uploader__preview-img__file"},Kb=["onClick"],Ub={class:"file__name_tips"},Hb={class:"tips"},_b={key:1,class:"fox-uploader__preview-list"},jb=["onClick"],Wb={class:"file__name_tips"};function Yb(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Failure"),i=(0,t.resolveComponent)("Loading"),u=(0,t.resolveComponent)("Link"),m=(0,t.resolveComponent)("Del"),p=(0,t.resolveComponent)("fox-progress"),c=(0,t.resolveComponent)("Photograph");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",Pb,[(0,t.renderSlot)(e.$slots,"default"),Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.fileList,(h,y)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-uploader__preview",[e.listType]]),key:h.uid},[e.listType=="picture"&&!e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",Mb,[h.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",zb,[h.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[h.status=="error"?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,color:"#fff"})):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,name:"loading",color:"#fff"}))],64)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Lb,(0,t.toDisplayString)(h.message),1)])):(0,t.createCommentVNode)("",!0),e.isDeletable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"close",onClick:w=>e.onDelete(h,y)},[(0,t.renderSlot)(e.$slots,"delete-icon",{},()=>[(0,t.createVNode)(s)])],8,Ob)):(0,t.createCommentVNode)("",!0),h?.type?.includes("image")&&h.url?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,class:"fox-uploader__preview-img__c",onClick:w=>e.fileItemClick(h),src:h.url},null,8,Rb)):((0,t.openBlock)(),(0,t.createElementBlock)("view",Fb,[(0,t.createElementVNode)("view",{onClick:w=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[(0,t.createElementVNode)("view",Ub,(0,t.toDisplayString)(h.name),1)],8,Kb)])),(0,t.createElementVNode)("view",Hb,(0,t.toDisplayString)(h.name),1)])):e.listType=="list"?((0,t.openBlock)(),(0,t.createElementBlock)("view",_b,[(0,t.createElementVNode)("view",{onClick:w=>e.fileItemClick(h),class:(0,t.normalizeClass)(["fox-uploader__preview-img__file__name",[h.status]])},[(0,t.createVNode)(u,{class:"fox-uploader__preview-img__file__link"}),(0,t.createElementVNode)("view",Wb,(0,t.toDisplayString)(h.name),1),e.isDeletable?((0,t.openBlock)(),(0,t.createBlock)(m,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:w=>e.onDelete(h,y)},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],10,jb),h.status=="uploading"?((0,t.openBlock)(),(0,t.createBlock)(p,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(["fox-uploader__upload",[e.listType]])},[(0,t.renderSlot)(e.$slots,"upload-icon",{},()=>[(0,t.createVNode)(c,{color:"#808080"})]),((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):(0,t.createCommentVNode)("",!0)],2)}var ca=oe(qb,[["render",Yb]]),Xb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlk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OHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:Gb,scope:Zb}=J("number-keyboard"),Jb=Gb({components:{[ge.name]:ge},props:{confirmText:{type:String},title:{type:String},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:n}){const{toLocaleRefs:o}=(0,me.useFoxI18n)(Zb),l=o(e,["confirmText"]),a=(0,t.ref)(void 0),r=(0,t.ref)(e.visible),s=(0,t.ref)();function i(){const{customKey:f}=e;let k={id:"lock",type:"lock"},d=Array.isArray(f)?f:[f];return d.length===1&&(k={id:d[0],type:"custom"}),[...u(),k,{id:0,type:"number"},{id:"delete",type:"delete"}]}function u(){const f=[];for(let k=1;k<=9;k++)f.push({id:k,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function m(){const f=u(),{customKey:k}=e;let d=Array.isArray(k)?k:[k];return d.length>2&&(d=[d[0],d[1]]),d.length==2&&e.title&&e.type!="rightColumn"&&(d=[d[0]]),d.length===1?e.title&&e.type!="rightColumn"?f.push({id:d[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:d[0],type:"custom"}):d.length===2&&f.push({id:d[0],type:"custom"},{id:0,type:"number"},{id:d[1],type:"custom"}),f}const p=(0,t.computed)(()=>e.type=="rightColumn"||e.title!=""?m():i()),c=()=>{e.visible&&n("blur")},h=f=>{const k=s.value;k&&!k.contains(f.target)&&c()};(0,t.watch)(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function y(f,k){k.stopPropagation(),a.value=f.id,(f.type=="number"||f.type=="custom")&&(n("input",f.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+f.id)),f.type=="lock"&&b(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function w(f){f.stopPropagation()}function S(f){f.preventDefault(),a.value=void 0}function b(){n("update:visible",!1),n("close")}return{...l,delImg:Xb,lockImg:Qb,clickKeyIndex:a,defaultKey:i,closeBoard:b,onTouchEnd:S,onTouchMove:w,onTouchstart:y,keysList:p,genCustomKeys:m,getBasicKeys:u,root:s,show:r}}}),e1={ref:"root"},t1={class:"fox-number-keyboard"},n1={key:0,class:"fox-number-keyboard__header"},l1={class:"fox-number-keyboard__title"},o1={class:"fox-number-keyboard__body"},a1={class:"fox-number-keyboard__keys"},r1=["onTouchstart"],i1=["src"],s1=["src"],u1={key:0,class:"fox-number-keyboard__sidebar"},c1={class:"fox-key__wrapper"},d1=["src"];function f1(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",e1,[(0,t.createVNode)(s,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=i=>e.show=i),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",t1,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",n1,[(0,t.createElementVNode)("h3",l1,(0,t.toDisplayString)(e.title),1),e.type=="default"?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-number-keyboard__close",onClick:n[0]||(n[0]=i=>e.closeBoard())},(0,t.toDisplayString)(e.confirmText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",o1,[(0,t.createElementVNode)("div",a1,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.keysList,i=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:"key"+i.id,class:(0,t.normalizeClass)(["fox-key__wrapper",{"fox-key__wrapper--wider":i.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{"fox-key--active":i.id==e.clickKeyIndex},{"fox-key--lock":i.type=="lock"},{"fox-key--delete":i.type=="delete"}]),onTouchstart:u=>e.onTouchstart(i,u),onTouchmove:n[1]||(n[1]=u=>e.onTouchMove(u)),onTouchend:n[2]||(n[2]=u=>e.onTouchEnd(u))},[i.type=="number"||i.type=="custom"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createTextVNode)((0,t.toDisplayString)(i.id),1)],64)):(0,t.createCommentVNode)("",!0),i.type=="lock"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:1,src:e.lockImg},null,8,i1)):(0,t.createCommentVNode)("",!0),i.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,s1)):(0,t.createCommentVNode)("",!0)],42,r1)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",u1,[(0,t.createElementVNode)("div",c1,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=i=>e.onTouchstart({id:"delete",type:"delete"},i)),onTouchmove:n[4]||(n[4]=i=>e.onTouchMove(i)),onTouchend:n[5]||(n[5]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[(0,t.createElementVNode)("img",{src:e.delImg},null,8,d1)],34)]),(0,t.createElementVNode)("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=i=>e.closeBoard())},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},(0,t.toDisplayString)(e.confirmText),3)])])):(0,t.createCommentVNode)("",!0)])])]),_:1},8,["visible","popClass"])],512)}var da=oe(Jb,[["render",f1]]),{componentName:m1,create:p1}=J("swipe"),h1=p1({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n}){const o=(0,t.computed)(()=>({[m1]:!0})),l=k=>k.value?.clientWidth||0,a=(0,t.ref)(),r=(0,t.computed)(()=>l(a)),s=(0,t.ref)(),i=(0,t.computed)(()=>l(s));let u=!1,m="",p="";const c=(0,t.reactive)({offset:0,moving:!1}),h=(k="")=>{u=!0,k&&(c.offset=k==="left"?-i.value:r.value),n("open",{name:e.name,position:m||k})},y=()=>{c.offset=0,u=!1,n("close",{name:e.name,position:m})},w=(0,t.computed)(()=>({transform:`translate3d(${c.offset}px, 0, 0)`})),S=k=>{m=k>0?"right":"left";let d=k;switch(m){case"left":u&&p===m?d=-i.value:d=Math.abs(k)>i.value?-i.value:k;break;case"right":u&&p===m?d=r.value:d=Math.abs(k)>r.value?r.value:k;break}c.offset=d},b=et(),f={onTouchStart(k){e.disabled||b.start(k)},onTouchMove(k){e.disabled||(b.move(k),b.isHorizontal()&&(c.moving=!0,S(b.deltaX.value),e.touchMovePreventDefault&&k.preventDefault(),e.touchMoveStopPropagation&&k.stopPropagation()))},onTouchEnd(){if(c.moving)switch(c.moving=!1,p=m,m){case"left":Math.abs(c.offset)<=i.value/2?y():(c.offset=-i.value,h());break;case"right":Math.abs(c.offset)<=r.value/2?y():(c.offset=r.value,h());break}}};return Be({open:h,close:y}),{classes:o,touchStyle:w,...f,leftRef:a,rightRef:s,open:h,close:y}}}),v1={class:"fox-swipe__left",ref:"leftRef"},g1={class:"fox-swipe__content"},y1={class:"fox-swipe__right",ref:"rightRef"};function b1(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.touchStyle),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[(0,t.createElementVNode)("view",v1,[(0,t.renderSlot)(e.$slots,"left")],512),(0,t.createElementVNode)("view",g1,[(0,t.renderSlot)(e.$slots,"default")]),(0,t.createElementVNode)("view",y1,[(0,t.renderSlot)(e.$slots,"right")],512)],38)}var fa=oe(h1,[["render",b1]]),{componentName:S1,create:k1}=J("action-sheet"),w1=k1({components:{Popup:ge,Loading:le.Loading},props:{...Xe,cancelTxt:{type:String},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String},title:{type:String},color:{type:String,default:"#ee0a24"},description:{type:String},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const o=!!(0,t.useSlots)().default,l=(0,t.computed)(()=>({[S1]:!0}));return{slotDefault:o,isHighlight:u=>e.chooseTagValue&&e.chooseTagValue===u[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(u,m)=>{!u.disable&&!u.loading&&(n("choose",u,m),n("update:visible",!1))},close:u=>{n("close",u),n("update:visible",!1)},classes:l}}}),C1={key:0,class:"fox-action-sheet__title"},N1={key:1},A1={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},B1={key:1,class:"fox-action-sheet__menu"},T1=["onClick"],V1={key:1},x1={class:"fox-action-sheet__subdesc"};function $1(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Loading"),i=(0,t.resolveComponent)("Popup");return(0,t.openBlock)(),(0,t.createBlock)(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes)},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",C1,(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",N1,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",A1,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",B1,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.menuItems,(u,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":u.disable,"fox-action-sheet__item--loading":u.loading}]),style:(0,t.normalizeStyle)({color:e.isHighlight(u)||u.color}),key:m,onClick:p=>e.chooseItem(u,m)},[u.loading?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",V1,(0,t.toDisplayString)(u[e.optionTag]),1)),(0,t.createElementVNode)("view",x1,(0,t.toDisplayString)(u[e.optionSubTag]),1)],14,T1))),128))])):(0,t.createCommentVNode)("",!0),e.cancelTxt?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:2,class:"fox-action-sheet__cancel",onClick:n[0]||(n[0]=(...u)=>e.cancelActionSheet&&e.cancelActionSheet(...u))},(0,t.toDisplayString)(e.cancelTxt),1)):(0,t.createCommentVNode)("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}var ma=oe(w1,[["render",$1]]),{componentName:E1,create:D1}=J("backtop"),I1=D1({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:o}){const l=(0,t.reactive)({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),a=(0,t.computed)(()=>({[E1]:!0,show:l.backTop})),r=(0,t.computed)(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){l.scrollEl instanceof Window?l.scrollTop=l.scrollEl.pageYOffset:l.scrollTop=l.scrollEl.scrollTop,l.backTop=l.scrollTop>=e.distance}function i(w=0){l.scrollEl instanceof Window?window.scrollTo(0,w):l.scrollEl.scrollTop=w}function u(){let w=We(function S(){var b=e.duration-Math.max(0,l.startTime-+new Date+e.duration),f=b*-l.scrollTop/e.duration+l.scrollTop;i(f),w=We(S),(b==e.duration||f==0)&&Mr(w)})}function m(){l.scrollEl.addEventListener("scroll",s,!1),l.scrollEl.addEventListener("resize",s,!1)}function p(){l.scrollEl.removeEventListener("scroll",s,!1),l.scrollEl.removeEventListener("resize",s,!1)}function c(w){l.startTime=+new Date,e.isAnimation&&e.duration>0?u():i(),n("click",w)}function h(){y.value?l.scrollEl=y.value.el:e.elId&&document.getElementById(e.elId)&&(l.scrollEl=document.getElementById(e.elId)),m()}(0,t.onMounted)(()=>{e.distance==0&&(l.backTop=!0),h()}),(0,t.onUnmounted)(()=>{p()}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1,h())}),(0,t.onDeactivated)(()=>{l.keepAlive=!0,p()});const y=(0,t.computed)(()=>{if(typeof o.content=="function"){const w=o.content();return Array.isArray(w)?w[0]:w}return null});return()=>{const w=[];y.value&&w.push(y.value);const S=[];if(typeof o.default=="function")S.push(o.default());else{const f=(0,t.h)(le.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});S.push(f)}const b=(0,t.h)("div",{class:a.value,style:r.value,onClick:c},S);return w.push(b),w}}}),pa=I1,{componentName:q1,create:P1}=J("drag"),M1=P1({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.reactive)({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),a=(0,t.computed)(()=>({[q1]:!0}));function r(){const c=document.documentElement;l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight,l.screenWidth=c.clientWidth,l.screenHeight=c.clientHeight}function s(c){l.boundary.left?+c.style.left.split("px")[0]>l.boundary.left?(c.style.left=+c.style.left.split("px")[0]-10+"px",Fe(()=>{s(c)})):c.style.left=`${l.boundary.left}px`:+c.style.left.split("px")[0]>10?(c.style.left=+c.style.left.split("px")[0]-10+"px",Fe(()=>{s(c)})):c.style.left="0px"}function i(c,h){h-parseInt(c.style.left.split("px")[0])>10?(c.style.left=parseInt(c.style.left.split("px")[0])+10+"px",Fe(()=>{i(c,h)})):c.style.left=h+"px"}function u(c){c.preventDefault();const h=c.currentTarget;if(c.targetTouches.length===1){const y=c.targetTouches[0];l.nx=y.clientX-l.position.x,l.ny=y.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const w=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>w?l.xPum=w:l.xPum<=l.boundary.left&&(l.xPum=l.boundary.left),l.yPum<l.boundary.top?l.yPum=l.boundary.top:l.yPum>l.screenHeight-l.elHeight-l.boundary.bottom&&(l.yPum=l.screenHeight-l.elHeight-l.boundary.bottom),e.direction!="y"&&(h.style.left=l.xPum+"px"),e.direction!="x"&&(h.style.top=l.yPum+"px")}}function m(c){const h=c.currentTarget;let y=c.changedTouches[0].clientX;const w=l.screenWidth-l.elWidth-l.boundary.right;y>w?y=w:y<l.boundary.left?y=l.boundary.left:y=y<l.screenWidth/2?l.boundary.left:w,e.direction!="y"&&e.attract&&(y<l.screenWidth/2?Fe(()=>{s(h)}):Fe(()=>{i(h,w)})),e.direction!="x"&&(h.style.top=l.yPum+"px")}function p(c){const h=c.currentTarget,y=c.touches[0],w=c.targetTouches[0];l.startTop=h.offsetTop,l.startLeft=h.offsetLeft,l.position.x=y.clientX,l.position.y=y.clientY,l.nx=w.clientX-l.position.x,l.ny=w.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return(0,t.onMounted)(()=>{r(),l.boundary=e.boundary}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1)}),(0,t.onDeactivated)(()=>{l.keepAlive=!0;const c=o;c.value.removeEventListener("touchstart",p),c.value.removeEventListener("touchmove",u),c.value.removeEventListener("touchend",m)}),{classes:a,myDrag:o,touchStart:p,touchMove:u,touchEnd:m}}});function z1(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=s=>e.touchStart(s)),onTouchmove:n[1]||(n[1]=s=>e.touchMove(s)),onTouchend:n[2]||(n[2]=s=>e.touchEnd(s))},[(0,t.renderSlot)(e.$slots,"default")],34)}var ha=oe(M1,[["render",z1]]),L1={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}},O1=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function R1(e,n,o,l,a){return{props:{...Xe,...L1},setup(r,{attrs:s,slots:i,emit:u}){const{toLocaleRefs:m}=(0,me.useFoxI18n)(n),p=m(r,["confirmText","cancelText"]),c=e,h=(0,t.ref)(r.visible);(0,t.watch)(()=>r.visible,v=>{h.value!==v&&(h.value=v,v&&u("opened"))});const y=v=>{h.value=v,u("update:visible",v),u("update",v)},w=v=>{if(u(v),!(v==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const g=r.beforeClose(v);bt(g)?g.then(A=>{A&&(y(!1),u("closed",v))}):g===!0&&(y(!1),u("closed",v))}else y(!1),u("closed",v)},S=()=>{w("confirm")},b=()=>{w("cancel")},f=()=>{w("close")},k=(v,g)=>O1(v)?(g.src=v,(0,t.h)("img",g)):typeof v=="string"?(Array.isArray(g.class)?g.class.push(v):g.class&&typeof g.class=="object"?g[`${v}`]=!0:typeof g.class=="string"?g.class=`${g.class}, ${v}`:g.class=v,(0,t.h)(r.tag,g)):(0,t.h)(v,g),d=()=>{const v=[];if(i.header){const g=i.header();v.push(g)}else{if(r.title){const g=(0,t.h)("view",{class:`${c}__header-title`},[r.title]);v.push(g)}if(r.showClose){const g={class:[`${c}__header-close-icon`],onClick:f},A=k(r.closeIcon??a,g);v.push(A)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},v)},C=()=>{const v=[];if(i.default)v.push(i.default());else{const g={class:[`${c}__content`]};if(r.textAlign&&g.class.push(r.textAlign),typeof r.content=="string"){g.innerHTML=r.content;const A=(0,t.h)("view",g);v.push(A)}else if(typeof r.content=="function"){const A=(0,t.h)("view",g,[r.content()]);v.push(A)}else{const A=(0,t.h)("view",g,[r.content]);v.push(A)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__body`]},v)},N=()=>{if(!r.showFooter)return null;const v=[];if(i.footer)v.push(i.footer());else if(r.plain){if(r.showCancelButton){const g={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},onClick:b};r.cancelButtonClass&&g.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(g.style,r.cancleButtonStyle);const A=(0,t.h)("view",g,[r.cancelButtonText??p.cancelText.value]);v.push(A)}if(r.showConfirmButton){const g={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},onClick:S};r.confirmButtonClass&&g.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(g.style,r.confirmButtonStyle);const A=(0,t.h)("view",g,[r.confirmButtonText??p.confirmText.value]);v.push(A)}}else{if(r.showCancelButton){const g={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:b};r.cancelButtonClass&&g.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(g.style,r.cancleButtonStyle);const A=(0,t.h)(l,g,{default:()=>[r.cancelButtonText??p.cancelText.value]});v.push(A)}if(r.showConfirmButton){const g={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:S};r.confirmButtonClass&&g.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(g.style,r.confirmButtonStyle);const A=(0,t.h)(l,g,{default:()=>[r.confirmButtonText??p.confirmText.value]});v.push(A)}}return v.length===0?null:(0,t.h)("view",{class:[`${c}__footer`,`${c}__footer--${r.footerDirection}`]},v)};return()=>{const v=[],g=d();g&&v.push(g);const A=C();A&&v.push(A);const B=N();B&&v.push(B);const V=(0,t.h)("view",{class:{[`${c}`]:!0,[`${c}--plain`]:r.plain}},v),T=[`${c}__popup`];r.popClass&&T.push(r.popClass);const _={};return r.width&&(_.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(_.height=typeof r.height=="number"?`${r.height}px`:r.height),(0,t.h)(o,{...he(r,Xe),popClass:T.join(" "),style:_,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay},{default:()=>V})}}}}var{componentName:F1,create:K1,scope:U1}=J("dialog"),H1=K1(R1(F1,U1,ge,st,le.Close)),qi=H1,_1=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},j1=class{options=new _1;constructor(e){let n=Object.assign(this.options,e),o=document.body,l=n.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=n.teleport);const a=document.createElement("view"),r=`dialog-${n.id}`;a.id=r;const s=(0,t.createVNode)({setup(){return n.onUpdate=i=>{if(i===!1){const u=document.querySelector(`#${r}`);u&&u.parentNode?.removeChild(u)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(qi,n)}});o.appendChild(a),(0,t.render)(s,a)}},Yt=function(e){return new j1(e)};Yt.install=e=>{e.use(qi),e.config.globalProperties.$dialog=Yt};var W1={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},Y1=(e,n,o)=>({props:{...W1},emits:["change","refresh","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:s}=(0,me.useFoxI18n)(n),i=s(l,["pullingText","loosingText","loadingText"]),u=Qn(),m=(0,t.ref)(),p=xi(m),c=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=(0,t.computed)(()=>({[e]:!0})),y=(0,t.computed)(()=>{switch(c.status){case"pulling":return r.pulling?"":i.pullingText.value;case"loosing":return r.loosing?"":i.loosingText.value;case"loading":return r.loading?"":i.loadingText.value;default:return""}}),w=(0,t.computed)(()=>({transitionDuration:`${l.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),S=(0,t.computed)(()=>{const g={};return l.headHeight!=50&&(g.height=de(l.headHeight)),g}),b=g=>{const A=+(l.pullDistance||l.headHeight);let B=g;return g>A&&(g<A*2?B=(g+A)/2:B=A+g/4),Math.round(B)},f=(g,A)=>{const B=+(l.pullDistance||l.headHeight);c.distance=g,A?c.status="loading":g===0?c.status="normal":g<B?c.status="pulling":c.status="loosing",a("change",{status:c.status,distance:g})},k=()=>c.status!=="loading"&&c.status!=="complete",d=()=>p.value==window?$i()==0:p.value&&p.value.scrollTop==0,C=g=>{k()&&(d()?(u.start(g),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},N=g=>{k()&&c.moving&&(u.move(g),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(g.cancelable&&g.preventDefault(),f(b(u.state.deltaY))))},v=()=>{c.moving=!1,c.isPullRefresh&&k()&&u.state.deltaY&&(c.status==="loosing"?(f(+l.headHeight,!0),a("update:modelValue",!0),(0,t.nextTick)(()=>a("refresh"))):f(0)),setTimeout(()=>{u.reset()},0)};return(0,t.watch)(()=>l.modelValue,g=>{g?f(+l.headHeight,!0):f(0)}),()=>{const g=[];let A=null;c.status==="loading"?(A=r?.loading?.()??null,A||(A=(0,t.h)(o,{class:["fox-pull-refresh-container-topbox-icon"]}))):c.status==="pulling"?A=r?.pulling?.()??null:c.status==="loosing"&&(A=r?.loosing?.()??null),A&&g.push(A);const B=(0,t.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[y.value]);g.push(B);const V=(0,t.h)("div",{class:["fox-pull-refresh-container-topbox"],style:S.value},g),T=(0,t.h)("div",{class:"fox-pull-refresh-container",style:w.value},[V,r?.default?.()]),_={ref:m,class:h.value};return Xn()?Object.assign(_,{onTouchstart:C,onTouchmove:N,onTouchend:v}):Object.assign(_,{onMousedown:C,onMousemove:N,onMouseup:v}),(0,t.h)("div",_,[T])}}}),{componentName:X1,create:Q1,scope:G1}=J("pull-refresh"),Z1=Q1(Y1(X1,G1,le.Loading)),va=Z1,{create:J1}=J("notify"),eS=J1({components:{[ge.name]:ge},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const o=()=>{e.onClick&&e.onClick()};let l=null;const a=()=>{l&&clearTimeout(l),l=null},r=()=>{n("update:visible",!1)},s=(0,t.ref)(!1),i=(0,t.watch)(()=>e.visible,m=>{s.value=e.visible;const p=e.duration;m&&p&&(l=setTimeout(()=>{r()},p))},{immediate:!0});return{onAfterLeave:()=>{a(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:o,isShowPopup:s}}});function tS(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(s,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.isShowPopup=i),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-notify",`fox-notify--${e.type}`,e.className]),style:(0,t.normalizeStyle)({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}var ga=oe(eS,[["render",tS]]),Yl={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function},mt=[],Kt=[],Pi=e=>{if(e){const n=document.getElementById(e);Kt=Kt.filter(o=>o.id!==e),mt=mt.filter(o=>o!==e),n&&document.body.removeChild(n)}else mt.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),Kt=[],mt=[]},nS=e=>{const n=document.getElementById(e.id);if(n){const o=Kt.find(a=>a.id===e.id);o?e={...Yl,...o,...e}:e={...Yl,...e};const l=(0,t.createVNode)(ga,e);return(0,t.render)(l,n),l.component.data}},Pt=e=>{e.unmount=Pi;let n;if(e.id){if(n=e.id,mt.find(a=>a===e.id))return nS(e)}else n=new Date().getTime()+"";e={...Yl,...e},e.id=n,mt.push(e.id),Kt.push(e);const o=document.createElement("view");o.id="notify-"+e.id;const l=(0,t.createVNode)({setup(){return e.teleport=`#notify-${e.id}`,(0,t.onMounted)(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(o)},e.duration)}),()=>(0,t.h)(ga,e)}});document.body.appendChild(o),(0,t.render)(l,o)},Mt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},ya={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(){Pi()},install(e){e.use(ga)}},{create:lS}=J("toast"),oS=lS({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const a=()=>{o&&(clearTimeout(o),o=null)},r=()=>{l.mounted=!1},s=()=>{a(),e.duration&&(o=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),(0,t.watch)(()=>e.duration,y=>{y&&s()});const u=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),m=()=>{const y=se(e.iconSize);return(0,t.h)(e.icon,{width:y,height:y,color:e.iconColor})},p=(0,t.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=(0,t.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:r,clickCover:i,renderIcon:m,hasIcon:u,toastBodyClass:p,toastIconWrapperClass:c,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),aS={key:1,class:"fox-toast-title"},rS=["innerHTML"];function iS(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.toastBodyClass),style:(0,t.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[(0,t.createElementVNode)("view",{class:"fox-toast-inner",style:(0,t.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.toastIconWrapperClass)},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon())))],2)):(0,t.createCommentVNode)("",!0),e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",aS,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,rS)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var ba=oe(oS,[["render",iS]]),Xl={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1},pt=[],Ut=[],Mi=e=>{if(e){const n=document.getElementById(e);Ut=Ut.filter(o=>o.id!==e),pt=pt.filter(o=>o!==e),n&&document.body.removeChild(n)}else pt.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),Ut=[],pt=[]},sS=e=>{const n=document.getElementById(e.id);if(n){const o=Ut.find(l=>l.id===e.id);return o?e={...Xl,...o,...e}:e={...Xl,...e},(0,t.render)((0,t.createVNode)(ba,e),n),$t}},zt=e=>{e.unmount=Mi;let n;if(e.id){if(n=e.id,pt.find(l=>l===e.id))return sS(e)}else n=new Date().getTime()+"";e={...Xl,...e},e.id=n,pt.push(e.id),Ut.push(e);const o=document.createElement("div");return o.id=e.id,(0,t.render)((0,t.createVNode)(ba,e),o),document.body.appendChild(o),$t},sn=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},$t={text(e,n={}){return sn(e),zt({...n,type:"text",msg:e})},success(e,n={}){return sn(e),zt({icon:le.Success,...n,msg:e,type:"success"})},fail(e,n={}){return sn(e),zt({icon:le.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return sn(e),zt({icon:le.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return zt({icon:le.Loading,...n,msg:e,type:"loading"})},hide(e){Mi(e)},install(e){e.use(ba),e.config.globalProperties.$toast=$t}},{componentName:p2,create:uS}=J("audio"),cS=uS({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:le.Service,[jt.name]:jt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null),a=(0,t.reactive)({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});(0,t.onMounted)(()=>{var S=["webkitVisibilityState","visibilitychange"];try{for(let b=0;b<S.length;b++)document.addEventListener(S[b],()=>{document.hidden?l.value.pause():a.playing&&setTimeout(()=>{l.value.play()},200)})}catch(b){b.message}});const r=S=>{const b=l.value;e.autoplay&&b&&b.paused&&b.play(),a.second=b.duration,a.duration=w(b.duration),n("can-play",S)},s=S=>{a.currentTime=parseInt(S.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,l.value.currentTime=a.currentTime,n("fastBack",a.currentTime)},u=()=>{const S=l.value;a.playing?(S.pause(),a.handPlaying=!1):(S.play(),a.handPlaying=!0),a.playing=!a.playing,n("play",a.playing)},m=()=>{a.currentTime++,l.value.currentTime=a.currentTime,n("forward",a.currentTime)},p=S=>{a.currentDuration=w(S),a.percent=S/a.second*100},c=()=>{a.playing=!1,n("ended")},h=S=>{const b=l.value;b.currentTime=a.second*S/100,n("changeProgress",b.currentTime)},y=()=>{a.hanMuted=!a.hanMuted,n("mute",a.hanMuted)},w=S=>{if(!S)return"00:00:00";let b=parseInt(S),f=Math.floor(b/3600),k=Math.floor((b-f*3600)/60),d=b-f*3600-k*60,C="";return C+=("0"+f.toString()).slice(-2)+":",C+=("0"+k.toString()).slice(-2)+":",C+=("0"+d.toString()).slice(-2),C};return(0,t.watch)(()=>a.currentTime,S=>{p(S)}),(0,t.provide)("audioParent",{children:[],props:e,audioData:a,handleMute:y,forward:m,fastBack:i,changeStatus:u}),{...(0,t.toRefs)(e),...(0,t.toRefs)(a),audioRef:l,fastBack:i,forward:m,changeStatus:u,progressChange:h,audioEnd:c,onTimeupdate:s,handleMute:y,onCanplay:r,slots:o}}}),dS={class:"fox-audio"},fS={key:0,class:"fox-audio__progress"},mS={class:"fox-audio__time"},pS={class:"fox-audio__bar"},hS={class:"fox-audio__time"},vS={key:1,class:"fox-audio__icon"},gS=["controls","src","preload","autoplay","loop","muted"];function yS(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-range"),i=(0,t.resolveComponent)("Service");return(0,t.openBlock)(),(0,t.createElementBlock)("div",dS,[e.type=="progress"?((0,t.openBlock)(),(0,t.createElementBlock)("div",fS,[(0,t.createElementVNode)("div",mS,(0,t.toDisplayString)(e.currentDuration),1),(0,t.createElementVNode)("div",pS,[(0,t.createVNode)(s,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=u=>e.percent=u),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:(0,t.withCtx)(()=>[...n[6]||(n[6]=[(0,t.createElementVNode)("div",{class:"fox-audio__button--custom"},null,-1)])]),_:1},8,["modelValue","onChange"])]),(0,t.createElementVNode)("div",hS,(0,t.toDisplayString)(e.duration),1)])):(0,t.createCommentVNode)("",!0),e.type=="icon"?((0,t.openBlock)(),(0,t.createElementBlock)("div",vS,[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:n[1]||(n[1]=(...u)=>e.changeStatus&&e.changeStatus(...u))},[e.playing?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1}))],2)])):(0,t.createCommentVNode)("",!0),e.type=="none"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,onClick:n[2]||(n[2]=(...u)=>e.changeStatus&&e.changeStatus(...u))},[(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type!="none"?(0,t.renderSlot)(e.$slots,"default",{key:3}):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:n[3]||(n[3]=(...u)=>e.onTimeupdate&&e.onTimeupdate(...u)),onCanplay:n[4]||(n[4]=(...u)=>e.onCanplay&&e.onCanplay(...u)),onEnded:n[5]||(n[5]=(...u)=>e.audioEnd&&e.audioEnd(...u)),muted:e.hanMuted},null,40,gS)])}var Sa=oe(cS,[["render",yS]]),{componentName:h2,create:bS,scope:SS}=J("audio-operate"),kS=bS({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:o}=(0,me.useFoxI18n)(SS),l=(0,t.reactive)((0,t.inject)("audioParent")),a=(0,t.ref)((0,t.useSlots)().default);return{...(0,t.toRefs)(e),...(0,t.toRefs)(l),customSlot:a,t:o}}}),wS={class:"fox-audio-operate"};function CS(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",wS,[e.type=="back"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...i)=>e.fastBack&&e.fastBack(...i))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("back")),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="play"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...i)=>e.changeStatus&&e.changeStatus(...i))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="forward"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...i)=>e.forward&&e.forward(...i))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,type:"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("forward")),1)]),_:1})),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0),e.type=="mute"?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...i)=>e.handleMute&&e.handleMute(...i))},[e.customSlot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.t("mute")),1)]),_:1},8,["type"])),(0,t.renderSlot)(e.$slots,"default")])):(0,t.createCommentVNode)("",!0)])}var ka=oe(kS,[["render",CS]]),{componentName:NS,create:AS}=J("avatar"),BS=AS({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:o,bgColor:l,color:a}=(0,t.toRefs)(e),r=["large","normal","small"],s=(0,t.inject)("avatarGroup",null),i=(0,t.ref)(null),u=(0,t.reactive)({lightTheme:!1}),m=(0,t.reactive)({index:1,showMax:!1,maxIndex:0});(0,t.onMounted)(()=>{const w=s?.avatarGroupRef?.value?.children;w&&y(w)});const p=(0,t.computed)(()=>({[NS]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${o.value||s?.props?.shape||"normal"}`]:!0})),c=(0,t.computed)(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${l.value}`,color:`${a.value}`,marginLeft:m.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(m.maxIndex-m.index)}`:""})),h=(0,t.computed)(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),y=w=>{m.maxIndex=w.length;for(let S=0;S<w.length;S++)w[S]&&w[S].classList&&w[S].classList[0]=="fox-avatar"&&w[S].setAttribute("data-index",S+1);m.index=i?.value?.dataset?.index,m.index==m.maxIndex&&m.index!=s?.props?.maxCount&&(m.showMax=!0)};return{classes:p,styles:c,maxStyles:h,avatarGroup:s,visible:u,avatarRef:i,...(0,t.toRefs)(m)}}});function TS(e,n,o,l,a,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,style:(0,t.normalizeStyle)(e.showMax?e.maxStyles:e.styles),class:(0,t.normalizeClass)(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):(0,t.createCommentVNode)("",!0)],6)):(0,t.createCommentVNode)("",!0)}var Xt=oe(BS,[["render",TS]]),{componentName:VS,create:xS}=J("avatar-group"),$S=xS({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:o}){const{size:l}=(0,t.toRefs)(e),a=(0,t.ref)(null),r=(0,t.ref)(0),s=(0,t.computed)(()=>({[VS]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:a,index:r}),{classes:s,avatarGroupRef:a}}});function ES(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"avatarGroupRef"},[(0,t.renderSlot)(e.$slots,"default")],2)}var wa=oe($S,[["render",ES]]),yt=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function DS(e,n,o){let l=0,a=e.length-1,r=null;for(;l<=a;){r=Math.floor((l+a)/2);const s=e[r],i=o(s,n);if(i===yt.eq)return r;i===yt.lt?l=r+1:i===yt.gt&&(a=r-1)}return r}var{componentName:IS,create:qS}=J("list"),qr=document.documentElement.clientHeight||document.body.clientHeight||667,PS=qS({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:qr},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const o=(0,t.ref)(null),l=(0,t.ref)(null),a=(0,t.ref)(null),r=(0,t.reactive)({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),s=(0,t.computed)(()=>Math.min(e.containerHeight,qr)),i=(0,t.computed)(()=>Math.ceil(s.value/e.height)),u=(0,t.computed)(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),m=(0,t.computed)(()=>({[IS]:!0})),p=(0,t.computed)(()=>r.list.slice(r.start,u.value)),c=()=>{if(a.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let f=0;f<r.list.length;++f)r.cachePositions[f]={index:f,height:e.height,top:f*e.height,bottom:(f+1)*(e.height+e.margin),dValue:0}},y=()=>{let f=a.value.childNodes;f=Array.from(f).filter(v=>v.nodeType===1);const k=f[0];f.forEach((v,g)=>{if(!v)return;const{height:A}=Ie(v),B=r.cachePositions[g+r.start].height-A;B&&(r.cachePositions[g+r.start].bottom-=B,r.cachePositions[g+r.start].height=A,r.cachePositions[g+r.start].dValue=B)});let d=0;k&&(d=r.start);const C=r.cachePositions.length;let N=r.cachePositions[d].dValue;r.cachePositions[d].dValue=0;for(let v=d+1;v<C;++v){const g=r.cachePositions[v];r.cachePositions[v].top=r.cachePositions[v-1].bottom,r.cachePositions[v].bottom=r.cachePositions[v].bottom-N,g.dValue!==0&&(N+=g.dValue,g.dValue=0)}r.phantomHeight=r.cachePositions[C-1].bottom},w=(f=0)=>{let k=DS(r.cachePositions,f,(d,C)=>{const N=d.bottom;return N===C?yt.eq:N<C?yt.lt:yt.gt});return r.cachePositions[k].bottom<f&&(k+=1),k},S=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,o.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},b=()=>{const f=o.value?.scrollTop,{originStartIndex:k}=r,d=w(f);d!==k&&(r.originStartIndex=d,r.start=Math.max(r.originStartIndex-e.bufferSize,0),u.value>=r.list.length-1&&n("scroll-bottom")),n(f>r.scrollTop?"scroll-up":"scroll-down",f),r.scrollTop=f};return(0,t.watch)(()=>e.listData,f=>{if(r.list=f.slice(),r.list.length===f.length)h(),y();else{S();return}}),(0,t.watch)(()=>r.start,()=>{a.value&&r.list.length>0&&y()}),{...(0,t.toRefs)(r),list:o,phantom:l,actualContent:a,getTransform:c,visibleData:p,classes:m,getContainerHeight:s,handleScrollEvent:b}}});function MS(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[(0,t.createElementVNode)("div",{class:"fox-list-phantom",style:(0,t.normalizeStyle)({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),(0,t.createElementVNode)("div",{class:"fox-list-container",style:(0,t.normalizeStyle)({transform:e.getTransform()}),ref:"actualContent"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.visibleData,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-list-item",key:s},[(0,t.renderSlot)(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}var Ca=oe(PS,[["render",MS]]),{componentName:zS,create:LS}=J("circleprogress"),OS=LS({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const o=!!(0,t.useSlots)().default,l=Math.random().toString(36).slice(-8),a=(0,t.computed)(()=>({[zS]:!0})),r=(0,t.computed)(()=>{const i=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${i} 0 90 a 45 45 0 1, ${i} 0 -90`}),s=(0,t.computed)(()=>Ee(e.color)?`url(#${l})`:e.color);return{classes:a,hoverStyle:(0,t.computed)(()=>{let i=283,u=i*Number(e.progress)/100;return{stroke:Ee(e.color)?`url(#${l})`:e.color,strokeDasharray:`${u}px ${i}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:r,hoverColor:s,stop:(0,t.computed)(()=>{if(!Ee(e.color))return;let i=e.color;const u=Object.keys(i).sort((p,c)=>parseFloat(p)-parseFloat(c));let m=[];return u.map((p,c)=>{let h={key:"",value:""};h.key=p,h.value=i[p],m.push(h)}),m}),slotDefault:o,refRandomId:l}}}),RS={viewBox:"0 0 100 100"},FS=["id"],KS=["offset","stop-color"],US=["d","stroke-width"],HS=["d","stroke","stroke-linecap","stroke-width"],_S={class:"fox-circleprogress-text"},jS={key:0};function WS(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:e.radius*2+"px",width:e.radius*2+"px"})},[((0,t.openBlock)(),(0,t.createElementBlock)("svg",RS,[(0,t.createElementVNode)("defs",null,[(0,t.createElementVNode)("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.stop,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("stop",{key:i,offset:s.key,"stop-color":s.value},null,8,KS))),128))],8,FS)]),(0,t.createElementVNode)("path",{class:"fox-circleprogress-path",style:(0,t.normalizeStyle)(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,US),(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,HS)])),(0,t.createElementVNode)("div",_S,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",jS,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var Na=oe(OS,[["render",WS]]),{componentName:YS,create:XS}=J("noticebar"),QS=XS({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,(0,t.h)(e.item)},Notice:le.Notice,CircleClose:le.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null),a=(0,t.ref)(null),r=(0,t.reactive)({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=(0,t.computed)(()=>({[YS]:!0})),i=(0,t.computed)(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),u=(0,t.computed)(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),m=(0,t.computed)(()=>{let g={};return e.color&&(g.color=e.color),e.background&&(g.background=e.background),e.direction=="vertical"&&(g.height=`${e.height}px`),g}),p=(0,t.computed)(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),c=(0,t.computed)(()=>{let g={};if(e.complexAm)g={transform:`translateY(${r.distance}px)`};else if(r.animate){let A=~~(e.height/e.speed/4);g={transition:`all ${A==0?~~(e.height/e.speed):A}s`,"margin-top":`-${e.height}px`}}return g});(0,t.watch)(()=>e.text,g=>{h(g)}),(0,t.watch)(()=>e.list,g=>{r.scrollList=[...g]});const h=g=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!l.value||!a.value)return;const A=l.value.getBoundingClientRect().width,B=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?B>A:e.scrollable,r.isCanScroll?(r.wrapWidth=A,r.offsetWidth=B,r.duration=B/e.speed,r.animationClass="play"):r.animationClass=""},0)},y=g=>{n("click",g)},w=g=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",g)},S=g=>{r.firstRound=!1,n("across-end",g),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},b=()=>{f(),r.timer=setInterval(f,~~(e.height/e.speed/4*1e3)+e.standTime)},f=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},k=()=>{r.timer=setInterval(()=>{let g=100;for(let A=0;A<g;A++)d(A,!(A<g-1))},e.standTime+100*e.speed)},d=(g,A)=>{setTimeout(()=>{r.distance-=e.height/100,A&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},g*e.speed)},C=g=>{n("click",g)},N=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(o.default?v(o.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?k():b()},e.standTime)):h(e.text)}),(0,t.watch)(()=>o.default?o.default():[],g=>{e.direction==="vertical"&&o.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),v(g))});const v=g=>{g&&g.length>0&&(r.scrollList=g[0].children)};return(0,t.onActivated)(()=>{r.keepAlive&&(r.keepAlive=!1)}),(0,t.onDeactivated)(()=>{r.keepAlive=!0,clearInterval(r.timer)}),(0,t.onUnmounted)(()=>{clearInterval(r.timer)}),{...(0,t.toRefs)(e),...(0,t.toRefs)(r),isEllipsis:i,classes:s,barStyle:m,contentStyle:p,horseLampStyle:c,wrap:l,content:a,handleClick:y,onClickIcon:w,onAnimationEnd:S,go:C,handleClickIcon:N,slots:o,toPxString:de,wrapContentClass:u}}}),GS={key:0,class:"fox-noticebar__page-lefticon"},ZS={ref:"wrap",class:"fox-noticebar__page-wrap"},JS={class:"showNotica"},ek=["onClick"];function tk(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Notice"),i=(0,t.resolveComponent)("CircleClose"),u=(0,t.resolveComponent)("ScrollItem");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.direction=="across"?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:(0,t.normalizeStyle)(e.barStyle),onClick:n[3]||(n[3]=(...m)=>e.handleClick&&e.handleClick(...m))},[e.showLeftIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",GS,[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,size:"16px"})):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",ZS,[(0,t.createElementVNode)("view",{ref:"content",class:(0,t.normalizeClass)(e.wrapContentClass),style:(0,t.normalizeStyle)(e.contentStyle),onAnimationend:n[0]||(n[0]=(...m)=>e.onAnimationEnd&&e.onAnimationEnd(...m)),"on:webkitAnimationEnd":n[1]||(n[1]=(...m)=>e.onAnimationEnd&&e.onAnimationEnd(...m))},[(0,t.renderSlot)(e.$slots,"default",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=(0,t.withModifiers)((...m)=>e.onClickIcon&&e.onClickIcon(...m),["stop"]))},[e.$slots["right-icon"]?(0,t.renderSlot)(e.$slots,"right-icon",{key:0}):((0,t.openBlock)(),(0,t.createBlock)(i,{key:1}))])):(0,t.createCommentVNode)("",!0)],6)),[[t.vShow,e.showNoticebar]]):(0,t.createCommentVNode)("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-noticebar__vertical",style:(0,t.normalizeStyle)(e.barStyle)},[e.slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[(0,t.createElementVNode)("div",JS,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(m,p)=>((0,t.openBlock)(),(0,t.createBlock)(u,{key:p,style:(0,t.normalizeStyle)({height:e.height+"px","line-height":e.height+"px"}),item:m},null,8,["style","item"]))),128))])],4)):((0,t.openBlock)(),(0,t.createElementBlock)("ul",{key:1,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(m,p)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{class:"fox-noticebar__vertical-item",key:p,style:(0,t.normalizeStyle)({height:e.toPxString(e.height),lineHeight:e.toPxString(e.height)}),onClick:c=>e.go(m)},[(0,t.renderSlot)(e.$slots,"item",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(m),1)])],12,ek))),128))],4)),(0,t.createElementVNode)("view",{class:"go",onClick:n[4]||(n[4]=m=>!e.slots.rightIcon&&e.handleClickIcon())},[(0,t.renderSlot)(e.$slots,"right-icon",{},()=>[e.closeMode?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):(0,t.createCommentVNode)("",!0)])])],4)):(0,t.createCommentVNode)("",!0)],2)}var Aa=oe(QS,[["render",tk]]),nk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/xdD/y9UyMD0TExP5sb+4uLj/y9X+w879ws3/y9X1tMH8s8H/y9UkJSWAgYHj5OT/ytTY2NheXWDs7e7r7Ozv8PDs7u55eYH09fXMzMzY2NgyMD3/y9UzMzP8s8GwsLDm5+eKiorv8PDLy8s6Ojrl5ubZ2trPz88UFBTh4uLV1dXc3Ny5ubnu7u7T09O1tbXf39+zsrLx8vLR0dHJycm8vLzj5OQ3NUHq6+vo6ek2NjbGxsbCwsK3t7f9x9K+vr79t8Q4ODjs7e0+O0XAwMBiYWaSkZVbW1/27e/8vspUSlZMTExwcHL709tERESjo6ZHQU5MR1N8fH762uD35un54eaCgoThtL7hzNCGhozcsbuqqqzm5ubWq7Z3YG3w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KR80AWOsNlmIK5vCpg0ZuVoNTqS9KpaTGbVp3aKSLlVOaZPCgOIjqKc7L6ojRAlRZxs8VoK5WMy6lTjT/gRak1QKlFFxO9FKsBZzZZZSWQBY3nNKllAOdG70CtDcP9/s4DHtSzEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:v2,create:ak,scope:rk}=J("empty"),ik={empty:nk,error:lk,network:ok},sk=ak({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,me.useFoxI18n)(rk),o=n(e,["description"]),{image:l,imageSize:a}=(0,t.toRefs)(e),r=(0,t.computed)(()=>a.value?typeof a.value=="number"?`width:${a.value}px;height:${a.value}px`:`width:${a.value};height:${a.value}`:""),s=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:ik[l.value];return{...o,imageUrl:s,imgStyle:r}}}),uk={class:"fox-empty"},ck=["src"],dk={key:1,class:"fox-empty-description"};function fk(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",uk,[(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,ck)):(0,t.createCommentVNode)("",!0)],64))],4),e.$slots.description?(0,t.renderSlot)(e.$slots,"description",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",dk,(0,t.toDisplayString)(e.description),1)),e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:2}):(0,t.createCommentVNode)("",!0)])}var Ba=oe(sk,[["render",fk]]),{create:mk,scope:pk}=J("video"),hk=mk({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:o}=(0,me.useFoxI18n)(pk),l=(0,t.reactive)({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),a=(0,t.ref)(null),r=(0,t.computed)(()=>e.options.disabled);(0,t.watch)(()=>e.source,v=>{v.src&&(0,t.nextTick)(()=>{l.videoElm.load()})},{immediate:!0,deep:!0}),(0,t.watch)(()=>e.options,v=>{l.state.isMuted=v?v.muted:!1},{immediate:!0});const s=()=>{l.videoElm=a.value,e.options.autoplay&&setTimeout(()=>{l.videoElm.play()},200),e.options.touchPlay&&(l.showTouchMask=!0),e.options.playsinline&&(l.videoElm.setAttribute("playsinline",e.options.playsinline),l.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),l.videoElm.setAttribute("x5-video-player-type","h5-page"),l.videoElm.setAttribute("x5-video-player-fullscreen",!1)),w(),l.showToolbox?i():(l.videoElm.addEventListener("play",()=>{l.state.playing=!0,n("play",l.videoElm)}),l.videoElm.addEventListener("pause",()=>{l.state.playing=!1,n("pause",l.videoElm)}),l.videoElm.addEventListener("ended",h),l.videoElm.addEventListener("timeupdate",bn(c,1e3)))},i=()=>{const v=a.value,g=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];l.player.$player=v,l.progressBar.progressElm=g,l.progressBar.pos=g.getBoundingClientRect(),l.videoSet.progress.width=Math.round(g.getBoundingClientRect().width)},u=()=>{if(e.options.autoplay&&e.options.disabled)return l.state.playing=!0,!1;if(l.state.playing=!l.state.playing,l.videoElm)if(l.state.playing)try{setTimeout(()=>{l.videoElm.play()},200),l.videoElm.addEventListener("progress",()=>{p()}),l.videoElm.addEventListener("timeupdate",bn(c,1e3)),l.videoElm.addEventListener("ended",h),n("play",l.videoElm)}catch{y()}else l.videoElm.pause(),n("pause",l.videoElm)},m=v=>{let g=[];const A=Math.floor(v/3600);A>0&&(A<10?g.push(`0${A}`):g.push(`${A}`));const B=Math.floor(v%3600/60);B<10?g.push(`0${B}`):g.push(`${B}`);const V=Math.round(v%3600%60);return V<10?g.push(`0${V}`):g.push(`${V}`),g.join(":")},p=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},c=()=>{const v=l.videoElm.currentTime/l.videoElm.duration;l.videoSet.progress.current=Math.round(l.videoSet.progress.width*v),l.videoSet.totalTime=m(l.videoElm.duration),l.videoSet.displayTime=m(l.videoElm.currentTime),n("time",l.videoSet.displayTime,l.videoSet.totalTime)},h=()=>{l.state.playing=!1,l.state.isEnd=!0,l.videoSet.displayTime="00:00",l.videoSet.progress.current=0,l.videoElm.currentTime=0,n("playend",l.videoElm)},y=()=>{l.state.isError=!0},w=()=>{l.state.vol=e.options.volume},S=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},b=()=>{},f=v=>{let g=v.targetTouches[0].pageX-l.progressBar.pos.left;g<=0&&(g=0),g>=l.videoSet.progress.width&&(g=l.videoSet.progress.width),l.videoSet.progress.current=g;let A=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&d(A,l.videoElm.duration)},k=v=>{let g=v.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=g;let A=g/l.videoSet.progress.width;l.videoElm.duration&&d(A,l.videoElm.duration)},d=(v,g)=>{l.videoElm.currentTime=Math.floor(v*g)},C=()=>{l.state.isError=!1,s()},N=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{s()}),{root:a,...(0,t.toRefs)(e),...(0,t.toRefs)(l),handleError:y,isDisabled:r,play:u,handleMuted:S,touchSlidSrart:b,touchSlidMove:f,touchSlidEnd:k,retry:C,fullScreen:N,t:o}}}),vk={class:"fox-video",ref:"videocon"},gk=["muted","autoplay","loop","poster","controls","preload"],yk=["src","type"],bk={class:"fox-video-controller__now"},Sk={class:"fox-video-controller__progress"},kk={class:"fox-video-controller__progress-value",ref:"progressBar"},wk={class:"fox-video-controller__played",ref:"playedBar"},Ck={class:"fox-video-controller__total"},Nk={class:"fox-video-error"},Ak={class:"fox-video-error-tip"};function Bk(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",vk,[(0,t.createElementVNode)("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:n[0]||(n[0]=(...s)=>e.handleError&&e.handleError(...s))},[(0,t.createElementVNode)("source",{src:e.source.src,type:e.source.type},null,8,yk)],40,gk),e.showToolbox&&!e.isDisabled?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...s)=>e.play&&e.play(...s))},null,512)):(0,t.createCommentVNode)("",!0),e.showToolbox&&!e.isDisabled?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:n[2]||(n[2]=(...s)=>e.play&&e.play(...s))},null,512)),[[t.vShow,!e.state.playing]]):(0,t.createCommentVNode)("",!0),(0,t.withDirectives)((0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[(0,t.createElementVNode)("div",{class:"fox-video-controller__playbtn",onClick:n[3]||(n[3]=(...s)=>e.play&&e.play(...s))}),(0,t.createElementVNode)("div",bk,(0,t.toDisplayString)(e.videoSet.displayTime),1),(0,t.createElementVNode)("div",Sk,[(0,t.createElementVNode)("div",kk,[(0,t.createElementVNode)("div",{class:"buffered",style:(0,t.normalizeStyle)({width:`${e.videoSet.loaded}%`})},null,4),(0,t.createElementVNode)("div",{class:"fox-video-controller__ball",style:(0,t.normalizeStyle)({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:n[4]||(n[4]=(0,t.withModifiers)(s=>e.touchSlidMove(s),["stop","prevent"])),onTouchstart:n[5]||(n[5]=(0,t.withModifiers)(s=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)(s=>e.touchSlidEnd(s),["stop"]))},[...n[10]||(n[10]=[(0,t.createElementVNode)("div",{class:"fox-video-controller__ball-move"},null,-1)])],36),(0,t.createElementVNode)("div",wk,null,512)],512)]),(0,t.createElementVNode)("div",Ck,(0,t.toDisplayString)(e.videoSet.totalTime),1),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...s)=>e.handleMuted&&e.handleMuted(...s))},null,2),(0,t.createElementVNode)("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...s)=>e.fullScreen&&e.fullScreen(...s))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),(0,t.withDirectives)((0,t.createElementVNode)("div",Nk,[(0,t.createElementVNode)("p",Ak,(0,t.toDisplayString)(e.t("errorTip")),1),(0,t.createElementVNode)("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...s)=>e.retry&&e.retry(...s))},(0,t.toDisplayString)(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var At=oe(hk,[["render",Bk]]),{create:Tk,componentName:Vk}=J("steps"),xk=Tk({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:o}){const l=(0,t.reactive)({children:[]}),a=(0,t.computed)(()=>{const i=Vk;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&l.children.push(i)},s=i=>{n("click-step",i)};return(0,t.provide)("parent",{relation:r,state:l,props:e,onEmit:s}),()=>(0,t.h)("view",{class:a.value},o.default?.())}}),Ta=xk,{create:$k,componentName:Ek}=J("step"),Dk=$k({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=(0,t.getCurrentInstance)(),n=(0,t.inject)("parent");n.relation(e);const o=(0,t.reactive)({dot:n.props.progressDot}),l=(0,t.computed)(()=>n.state.children.indexOf(e)+1),a=()=>{const u=l.value;return u<+n.props.current?"finish":u===+n.props.current?"process":"wait"},r=(0,t.computed)(()=>a()),s=(0,t.computed)(()=>{const u=Ek;return{[u]:!0,[`${u}-${r.value}`]:!0}}),i=()=>{n.onEmit(l.value)};return{...(0,t.toRefs)(o),index:l,classes:s,handleClickStep:i}}}),Ik={class:"fox-step-head"},qk={class:"fox-step-icon-inner"},Pk={key:1,class:"fox-step-inner"},Mk={class:"fox-step-main"},zk={class:"fox-step-title"},Lk={key:0},Ok={key:0,class:"fox-step-content"},Rk=["innerHTML"];function Fk(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[(0,t.createElementVNode)("view",Ik,[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",qk,[(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",Pk,(0,t.toDisplayString)(e.index),1))])])],2)]),(0,t.createElementVNode)("view",Mk,[(0,t.createElementVNode)("view",zk,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",Lk,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ok,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,Rk)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var Va=oe(Dk,[["render",Fk]]),{create:Kk,componentName:Cl}=J("swiper"),Uk=Kk({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(),a=(0,t.reactive)({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=et(),s=(0,t.computed)(()=>({[Cl]:!0})),i=(0,t.computed)(()=>e.direction==="vertical"),u=(0,t.computed)(()=>{const P=Cl;return{[`${P}-inner`]:!0,[`${P}-vertical`]:i.value}}),m=(0,t.computed)(()=>{const P=Cl;return{[`${P}-pagination`]:!0,[`${P}-pagination-vertical`]:i.value}}),p=(0,t.computed)(()=>i.value?r.deltaY.value:r.deltaX.value),c=(0,t.computed)(()=>r.direction.value===e.direction),h=(0,t.computed)(()=>a.children.length),y=(0,t.computed)(()=>a[i.value?"height":"width"]),w=(0,t.computed)(()=>h.value*y.value),S=(0,t.computed)(()=>a.rect?(i.value?a.rect.height:a.rect.width)-y.value*h.value:0),b=(0,t.computed)(()=>(a.active+h.value)%h.value),f=()=>{let P=0;P=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${P}px)`,[i.value?"height":"width"]:`${y.value*h.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},k=P=>{let O=[];const F=a.childrenVNode.length;let D=o?.default?.();if(D=D.filter(X=>X.children&&Array.isArray(X.children)),D.forEach(X=>{O=O.concat(X.children)}),!F)a.childrenVNode=O.slice(),P.proxy&&a.children.push(P.proxy);else if(F>O.length)a.children=a.children.filter(X=>P.proxy!==X);else if(F<O.length){for(let X=0;X<F;X++)if(O[X].key!==a.childrenVNode[X].key){P.proxy&&a.children.splice(X,0,P.proxy),P.vnode&&a.childrenVNode.splice(X,0,P.vnode);break}F!==O.length&&(P.proxy&&a.children.push(P.proxy),P.vnode&&a.childrenVNode.push(P.vnode))}else a.childrenVNode=O.slice(),P.proxy&&a.children.push(P.proxy)},d=(P,O=0)=>{let F=P*y.value;e.loop||(F=Math.min(F,-S.value));let D=O-F;return e.loop||(D=Ke(D,S.value,0)),D},C=P=>{const{active:O}=a;return P?e.loop?Ke(O+P,-1,h.value):Ke(O+P,0,h.value-1):O},N=({pace:P=0,offset:O=0,isEmit:F=!1})=>{if(h.value<=1)return;const{active:D}=a,X=C(P),te=d(X,O);if(e.loop){if(a.children[0]&&te!==S.value){const L=te<S.value;a.children[0].setOffset(L?w.value:0)}if(a.children[h.value-1]&&te!==0){const L=te>0;a.children[h.value-1].setOffset(L?-w.value:0)}}a.active=X,a.offset=te,F&&D!==a.active&&n("change",b.value),f()},v=()=>{a.moving=!0,a.active<=-1&&N({pace:h.value}),a.active>=h.value&&N({pace:-h.value})},g=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},A=P=>{v(),r.reset(),We(()=>{We(()=>{a.moving=!1,N({pace:P,isEmit:!0})})})},B=()=>{A(-1)},V=()=>{A(1)},T=P=>{v(),r.reset(),We(()=>{a.moving=!1;let O;e.loop&&h.value===P?O=a.active===0?0:P:O=P%h.value,N({pace:O-a.active,isEmit:!0})})},_=()=>{const P=fe(e.autoPlay);P<=0||h.value<=1||(g(),a.autoplayTimer=setTimeout(()=>{V(),_()},P))},G=(P=+e.initPage)=>{g(),a.rect=l.value.getBoundingClientRect(),P=Math.min(h.value-1,P),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=P,a.offset=d(a.active),a.moving=!0,f(),_()},x=P=>{e.isPreventDefault&&P.preventDefault(),e.isStopPropagation&&P.stopPropagation(),e.touchable&&(r.start(P),a.touchTime=Date.now(),g(),v())},$=P=>{e.touchable&&a.moving&&(r.move(P),c.value&&N({offset:p.value}))},z=P=>{if(!e.touchable||!a.moving)return;const O=p.value/(Date.now()-a.touchTime);if((Math.abs(O)>.3||Math.abs(p.value)>+(y.value/2).toFixed(2))&&c.value){let F=0;const D=i.value?r.offsetY.value:r.offsetX.value;e.loop?F=D>0?p.value>0?-1:1:0:F=-Math[p.value>0?"ceil":"floor"](p.value/y.value),N({pace:F,isEmit:!0})}else p.value&&N({pace:0});a.moving=!1,f(),_()};return(0,t.provide)("parent",{props:e,size:y,relation:k}),Be({prev:B,next:V,to:T}),(0,t.onDeactivated)(()=>{g()}),(0,t.onBeforeUnmount)(()=>{g()}),(0,t.watch)(()=>e.initPage,P=>{(0,t.nextTick)(()=>{G(Number(P))})}),(0,t.watch)(()=>a.children.length,()=>{(0,t.nextTick)(()=>{G()})}),(0,t.watch)(()=>e.autoPlay,P=>{fe(P)>0?_():g()}),{state:a,classes:s,classesInner:u,classesPagination:m,container:l,activePagination:b,onTouchStart:x,onTouchMove:$,onTouchEnd:z}}});function Hk(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{ref:"container",class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classesInner),style:(0,t.normalizeStyle)(e.state.style)},[(0,t.renderSlot)(e.$slots,"default")],6),(0,t.renderSlot)(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classesPagination)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.state.children.length,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("i",{style:(0,t.normalizeStyle)({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:(0,t.normalizeClass)({active:e.activePagination===i}),key:i},null,6))),128))],2)):(0,t.createCommentVNode)("",!0)],34)}var Bt=oe(Uk,[["render",Hk]]),{create:_k,componentName:jk}=J("swiper-item"),Wk=_k({setup(e,{slots:n}){const o=(0,t.inject)("parent");o.relation((0,t.getCurrentInstance)());const l=(0,t.reactive)({offset:0}),a=(0,t.computed)(()=>({[jk]:!0})),r=(0,t.computed)(()=>{const i={},u=o?.props.direction;return o?.size.value&&(i[u==="horizontal"?"width":"height"]=`${o?.size.value}px`),l.offset&&(i.transform=`translate${u==="horizontal"?"X":"Y"}(${l.offset}px)`),i}),s=i=>{l.offset=i};return(0,t.onUnmounted)(()=>{o.relation((0,t.getCurrentInstance)(),"unmount")}),Be({setOffset:s}),{style:r,classes:a}}});function Yk(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Tt=oe(Wk,[["render",Yk]]),zi={show:{type:Boolean,default:!1},initNo:{type:Number,default:0},showIndex:{type:Boolean,default:!0},minZoom:{type:Number,default:1/3},maxZoom:{type:Number,default:3}},{create:Xk}=J("image-preview-item"),Qk=Xk({props:{...zi,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},contentClose:{type:Boolean,default:!0}},emits:["close","scale"],components:{[At.name]:At,[Tt.name]:Tt},setup(e,{emit:n}){const o=(0,t.reactive)({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),l=et(),a=(0,t.computed)(()=>{const{rootWidth:B,rootHeight:V}=e,T=V/B;return o.imageRatio>T}),r=(0,t.computed)(()=>{const B=e.image;if(B&&B.src){const{scale:V,moveX:T,moveY:_,moving:G,zooming:x}=o,$={transitionDuration:x||G?"0s":".3s"};return V!==1&&($.transform=`scale(${V}, ${V}) translate(${T/V}px, ${_/V}px)`),$}return{}}),s=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:B,rootHeight:V}=e,T=a.value?V/o.imageRatio:B;return Math.max(0,(o.scale*T-B)/2)}return 0}),i=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:B,rootHeight:V}=e,T=a.value?V:B*o.imageRatio;return Math.max(0,(o.scale*T-V)/2)}return 0}),u=B=>{const{naturalWidth:V,naturalHeight:T}=B.target;o.imageRatio=T/V},m=()=>{p(1),o.moveX=0,o.moveY=0},p=B=>{B=Ke(B,+e.minZoom,+e.maxZoom+1),B!==o.scale&&(o.scale=B,n("scale",{scale:B,index:e.initNo}))},c=()=>{p(o.scale>1?1:2),o.moveX=0,o.moveY=0},h=B=>Math.sqrt((B[0].clientX-B[1].clientX)**2+(B[0].clientY-B[1].clientY)**2);let y,w,S,b,f,k,d;const C=B=>{const{touches:V}=B,{offsetX:T}=l;l.start(B),d=V.length,y=o.moveX,w=o.moveY,k=Date.now(),o.moving=d===1&&o.scale!==1,o.zooming=d===2&&!T.value,o.zooming&&(S=o.scale,b=h(B.touches))},N=B=>{const{touches:V}=B;if(l.move(B),(o.moving||o.zooming)&&El(B,!0),o.moving){const{deltaX:T,deltaY:_}=l,G=T.value+y,x=_.value+w;o.moveX=Ke(G,-s.value,s.value),o.moveY=Ke(x,-i.value,i.value)}if(o.zooming&&V.length===2){const T=h(V);p(S*T/b)}},v=()=>{if(d==1&&e.video&&e.video.source||d>1)return;const{offsetX:B,offsetY:V}=l,T=Date.now()-k,_=250,G=5;B.value<G&&V.value<G&&T<_&&(f?(clearTimeout(f),f=null,c()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},_))},g=B=>{let V=!1;(o.moving||o.zooming)&&(V=!0,o.moving&&y===o.moveX&&w===o.moveY&&(V=!1),B.touches.length||(o.zooming&&(o.moveX=Ke(o.moveX,-s.value,s.value),o.moveY=Ke(o.moveY,-i.value,i.value),o.zooming=!1),o.moving=!1,y=0,w=0,S=1,o.scale<1&&m(),o.scale>e.maxZoom&&(o.scale=+e.maxZoom))),El(B,V),v(),l.reset()},A=()=>{n("close")};return(0,t.watch)(()=>e.initNo,m),(0,t.watch)(()=>e.show,B=>{B||m()}),{...(0,t.toRefs)(o),onTouchStart:C,onTouchMove:N,onTouchEnd:g,getDistance:h,imageStyle:r,imageLoad:u,closeSwiper:A}}}),Gk=["src"];function Zk(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-video"),i=(0,t.resolveComponent)("fox-swiper-item");return(0,t.openBlock)(),(0,t.createBlock)(i,{onClick:e.closeSwiper},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{style:(0,t.normalizeStyle)(e.imageStyle),class:"fox-image-preview-box",onTouchstart:n[1]||(n[1]=(...u)=>e.onTouchStart&&e.onTouchStart(...u)),onTouchmove:n[2]||(n[2]=(...u)=>e.onTouchMove&&e.onTouchMove(...u)),onTouchend:n[3]||(n[3]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u)),onTouchcancel:n[4]||(n[4]=(...u)=>e.onTouchEnd&&e.onTouchEnd(...u))},[e.image&&e.image.src?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:n[0]||(n[0]=(...u)=>e.imageLoad&&e.imageLoad(...u))},null,40,Gk)):(0,t.createCommentVNode)("",!0),e.video&&e.video.source?((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):(0,t.createCommentVNode)("",!0)],36)]),_:1},8,["onClick"])}var Jk=oe(Qk,[["render",Zk]]),{create:ew}=J("image-preview"),tw=ew({props:{...zi,images:{type:Array,default:()=>[]},videos:{type:Array,default:()=>[]},contentClose:{type:Boolean,default:!0},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},autoplay:{type:[Number,String],default:0},teleport:{type:[String,Element],default:"body"},teleportDisable:{ype:Boolean,default:!1},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},beforeClose:Function,isLoop:{type:Boolean,default:!0}},emits:["close","change"],components:{ImagePreviewItem:Jk,CircleClose:le.CircleClose,[ge.name]:ge,[Bt.name]:Bt},setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.reactive)({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),a=(0,t.computed)(()=>{const p="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${p}-right`:`${p}-left`}`}),r=(0,t.computed)(()=>Bn(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=p=>{p!==l.active&&(l.active=p,n("change",l.active))},i=()=>{Ii(e.beforeClose,{args:[l.active],done:()=>u()})},u=()=>{l.showPop=!1,n("close")},m=()=>{if(o.value){const p=Ie(o.value);l.rootHeight=p.height,l.rootWidth=p.width}};return(0,t.watch)(()=>e.show,p=>{l.showPop=p,p&&(s(e.initNo),m())}),(0,t.watch)(()=>e.initNo,p=>{p!=l.active&&s(p)}),(0,t.onMounted)(()=>{s(e.initNo)}),{swipeRef:o,...(0,t.toRefs)(l),onClose:i,mergeImages:r,setActive:s,iconClasses:a}}}),nw={class:"fox-image-preview",ref:"swipeRef"},lw={key:0,class:"fox-image-preview-index"};function ow(e,n,o,l,a,r){const s=(0,t.resolveComponent)("image-preview-item"),i=(0,t.resolveComponent)("fox-swiper"),u=(0,t.resolveComponent)("CircleClose"),m=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(m,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=p=>e.showPop=p),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",nw,[e.showPop?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.mergeImages,(p,c)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:c,video:c<e.videos.length?p:{},image:c>=e.videos.length?p:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):(0,t.createCommentVNode)("",!0)],512),e.showIndex?((0,t.openBlock)(),(0,t.createElementBlock)("view",lw,(0,t.toDisplayString)(e.active+1)+" / "+(0,t.toDisplayString)(e.mergeImages.length),1)):(0,t.createCommentVNode)("",!0),e.closeable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.iconClasses),onClick:n[0]||(n[0]=(...p)=>e.onClose&&e.onClose(...p))},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(u,{color:"#ffffff"})])],2)):(0,t.createCommentVNode)("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}var Li=oe(tw,[["render",ow]]),aw=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"},rw=class{options=new aw;constructor(e){const n=Object.assign(this.options,e),{unmount:o}=Es(n,{name:"image-preview",components:[ge,At,Bt,Tt,it],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{o()})},(0,t.h)(Li,n))}})})}},dl=e=>new rw(e);dl.install=e=>{e.use(Li)};function iw(e){const n=(0,t.getCurrentInstance)();if(n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}var{componentName:g2,create:sw}=J("countup"),uw=sw({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:n}){const o=(0,t.ref)(null),l=(0,t.ref)([]),a=A=>{A&&l.value.push(A)},r=(0,t.reactive)({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:u,type:m}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,(A,B)=>{c(),b(0)}),(0,t.watch)(()=>e.machinePrizeLevel,(A,B)=>{r.prizeLevelTrun=A}),(0,t.watch)(()=>e.initNum,(A,B)=>{r.current=A,r.valFlag=!1,p()}),(0,t.watch)(()=>e.endNum,(A,B)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;s&&(i||u?m!="machine"&&b():(S(),setTimeout(()=>{r.valFlag=!0},300)))},c=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(A,B,V)=>{const T=(A.toString().split(".")[1]||"").length,_=(B.toString().split(".")[1]||"").length,G=Math.pow(10,Math.max(T,_));return V=="-"?Number((A*G-B*G).toFixed(0))/G:Number((A*G+B*G).toFixed(0))/G},y=A=>{let{num_total_len:B,pointNum:V,initDigit1:T,initDigit2:_,sortFlag:G}=r,x=G=="add"||G=="equal"?String(_)[A-(B-V)]:10-Number(String(_)[A-(B-V)]),$=G=="add"||G=="equal"?String(T)[A]:10-Number(String(T)[A]),z=A>B-V-1?-x*100+"%":A<=String(T).length-1?-$*100+"%":0;return z=="-1000%"&&(z=0),z},w=A=>{let{num_total_len:B,pointNum:V,initDigit1:T,initDigit2:_,sortFlag:G}=r,x=String(_)[A-(B-V)];return A>B-V-1?x||0:A<=String(T).length-1?String(T)[A]:0},S=()=>{let{endNum:A,initNum:B,speed:V,toFixed:T}=e,_=setInterval(()=>{if(B>A)if(r.current<=A||r.current<=V)r.current=Number(A.toFixed(T)),clearInterval(_),n("scroll-end"),r.valFlag=!1;else{let G=parseFloat(String(r.current))-parseFloat(String(V));r.current=Number(G.toFixed(T))}else if(r.current>=A)r.current=Number(A.toFixed(T)),clearInterval(_),n("scroll-end"),r.valFlag=!1;else{let G=parseFloat(String(r.current))+parseFloat(String(V));r.current=Number(G.toFixed(T))}},e.during)},b=A=>{let{initNum:B,endNum:V,toFixed:T,customBgImg:_}=e;_&&(B=e.customChangeNum);let G,x,$,z;B!=0?(T!=0&&(B=Number(B.toFixed(T))),String(B).indexOf(".")>-1?(G=String(B).split(".")[0].length,x=String(B).split(".")[1].length):(G=String(B).length,x=0)):(G=1,x=0),V!=0?(T!=0&&(V=Number(V.toFixed(T))),String(V).indexOf(".")>-1?($=String(V).split(".")[0].length,z=String(V).split(".")[1].length):($=String(V).length,z=0)):($=1,z=0);let P=G>=$?G:$,O=x>=z?x:z;r.num_total_len=P+O,r.pointNum=O,B>V?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(B,V,"-"),r.numberVal=Number(String(B))):B<V?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(V,B,"-"),r.numberVal=Number(String(V))):r.sortFlag="equal";var F=1;for(let X=0;X<r.pointNum;X++)F*=10;var D=r.numberVal*F;if(r.relNum=D,T!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(D).length),String(B).indexOf(".")>-1){let X=String(B).split(".");r.initDigit1=Number(X[0]),r.initDigit2=Number(X[1])}else r.initDigit1=B,r.initDigit2=0;i&&!_?(0,t.nextTick)(()=>{if(r.sortFlag=="equal")return!1;let X=l.value[r.num_total_len-1];f(X)}):A!==0&&C()},f=A=>{c();var B=1;r.pointNum!=0&&(B=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{k(A),r.totalCount=h(r.totalCount,B,"-"),r.totalCount<=0&&(c(),n("scroll-end"),r.valFlag=!1)},e.during)},k=A=>{let B=A.getAttribute("turn-number"),V;if(r.sortFlag=="add"?V=parseInt(String(B))+1:V=parseInt(String(B))-1>=0?parseInt(String(B))-1:9,A.setAttribute("turn-number",String(V)),(A.style.transition=="none 0s ease 0s"||V==1||!A.style.transition)&&(A.style.transition=`all linear ${e.during}ms`),V==10||r.sortFlag=="reduce"&&V==0){var T=null;A.style.top=`-${r.sortFlag=="add"?V*100:(10-V)*100}%`,A.setAttribute("turn-number","0"),T=setTimeout(()=>{T&&clearTimeout(T),A.style.transition="none",A.style.top="0",d(A,V)},.975*e.during)}else A.style.top=`-${r.sortFlag=="add"?V*100:(10-V)*100}%`;A.style.top=="-100%"&&r.sortFlag=="reduce"&&k(A.previousSibling)},d=(A,B)=>{setTimeout(()=>{B==10&&A.previousSibling&&k(A.previousSibling)},200)},C=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),(0,t.nextTick)(()=>{o.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},N=()=>{for(r.notPrize=[];r.notPrize.length<3;){var A=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(A)==-1&&r.notPrize.push(A)}};iw({machineLuck:()=>{const A=e.machineTurnMore<0?0:e.machineTurnMore;let B=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&N();for(let V=0;V<e.machineNum;V++)setTimeout(()=>{let T=B*(V+1+parseFloat(String(A)));r.prizeYPrev.length!=0&&(r.prizeY[V]=r.prizeYPrev[V]);let _=r.prizeYPrev[V]?r.prizeYPrev[V]:0,G=T+_+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(B-_);r.prizeLevelTrun<0&&(G+=e.numHeight*r.notPrize[V]),g(V,G,_)},500*V)}});const g=(A,B,V)=>{let T=setInterval(()=>{if(V<=B)V+=10,r.prizeY[A]=parseFloat(String(V));else if(clearInterval(T),T=null,r.finshMachine+=1,r.prizeY[A]=B,r.finshMachine==e.machineNum){let _=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(G=>{let x=G;for(;x>_;)x-=_;r.prizeYPrev.push(x)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return(0,t.onMounted)(()=>{r.current=e.initNum,(0,t.nextTick)(()=>{p()})}),(0,t.onUnmounted)(()=>{c(),r.timer=null}),{...(0,t.toRefs)(r),...(0,t.toRefs)((0,t.reactive)(e)),runNumberImg:o,setRef:a,topNumber:y,turnNumber:w}}}),cw={class:"fox-countup"},dw=["turn-number"];function fw(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",cw,[e.customBgImg!=""?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.type=="machine"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup__machine",style:(0,t.normalizeStyle)({height:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.machineNum,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:(0,t.normalizeStyle)({height:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.num_total_len,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(Number(i)>e.num_total_len-e.pointNum-1?Number(i)==e.num_total_len-e.pointNum?Number(i)*1.5:Number(i)*1.3:Number(i))+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup-pointstyl",style:(0,t.normalizeStyle)({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):(0,t.createCommentVNode)("",!0)],4))],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[e.scrolling?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-countup__number",style:(0,t.normalizeStyle)({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.num_total_len,(s,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{ref_for:!0,ref:u=>e.setRef(u),class:"fox-countup__number-item",key:s,style:(0,t.normalizeStyle)({top:e.topNumber(i),left:e.numWidth*(Number(i)>e.num_total_len-e.pointNum-1?Number(i)*1.1:Number(i))+"px"}),"turn-number":e.turnNumber(i)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.to0_10,(u,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-countup__number-item__span",key:"dote"+m,style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},(0,t.toDisplayString)(u),5))),128))],12,dw))),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 xa=oe(uw,[["render",fw]]),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:pw,create:hw}=J("countdown"),vw=hw({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:o}){const l=(0,t.reactive)({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),a=(0,t.computed)(()=>({[pw]:!0})),r=(0,t.computed)(()=>u(l.restTime)),s=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-mw(e.startTime),l.counting||(l.counting=!0),i()},i=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const y=Date.now()-l.diffTime,w=Math.max(l.handleEndTime-y,0);l.restTime=w,w||(l.counting=!1,c(),n("on-end")),w>0&&i()}}))},u=(y,w)=>{const S=y;let b={d:0,h:0,m:0,s:0,ms:0};const f=1e3,k=60*f,d=60*k,C=24*d;return S>0&&(b.d=S>=f?Math.floor(S/C):0,b.h=Math.floor(S%C/d),b.m=Math.floor(S%d/k),b.s=Math.floor(S%k/f),b.ms=Math.floor(S%f)),w=="custom"?b:m({...b})},m=y=>{let{d:w,h:S,m:b,s:f,ms:k}=y,d=e.format;if(d.includes("DD")?d=d.replace("DD",nt(w)):S+=Number(w)*24,d.includes("HH")?d=d.replace("HH",nt(S)):b+=Number(S)*60,d.includes("mm")?d=d.replace("mm",nt(b)):f+=Number(b)*60,d.includes("ss")?d=d.replace("ss",nt(f)):k+=Number(f)*1e3,d.includes("S")){const C=nt(k,3).toString();d.includes("SSS")?d=d.replace("SSS",C):d.includes("SS")?d=d.replace("SS",C.slice(0,2)):d.includes("S")&&(d=d.replace("SS",C.slice(0,1)))}return d},p=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),i(),n("on-restart",l.restTime))},c=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},h=()=>{e.autoStart||(c(),l.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?s():l.restTime=e.time}),(0,t.watch)(()=>l.restTime,y=>{let w=u(y,"custom");n("update:modelValue",w),n("input",w)}),(0,t.watch)(()=>e.paused,(y,w)=>{w?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),i()),n("on-restart",l.restTime)):l.counting&&c()}),(0,t.watch)(()=>e.endTime,y=>{s()}),(0,t.watch)(()=>e.startTime,y=>{s()}),{...(0,t.toRefs)(e),slots:o,classes:a,start:p,pause:c,renderTime:r,reset:h}}}),gw=["innerHTML"];function yw(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,gw))],2)}var $a=oe(vw,[["render",yw]]),{create:bw}=J("badge"),Sw=bw({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})}}}),kw={class:"fox-badge"},ww=["textContent"];function Cw(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",kw,[(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,ww),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var Ea=oe(Sw,[["render",Cw]]),{componentName:Nw,create:Aw}=J("tag"),Bw=Aw({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:le.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:(0,t.computed)(()=>{const s=Nw;return{[s]:!0,[`${s}--${e.type}`]:!0,[`${s}--plain`]:e.plain,[`${s}--round`]:e.round,[`${s}--mark`]:e.mark,[`${s}--symbol`]:e.symbol,[`${s}--text`]:e.text,[`${s}--light`]:e.light}}),getStyle:()=>{const s={};return e.textColor?s.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(s.color=e.color),e.plain?(s.background="#fff",s["border-color"]=e.color):!e.text&&e.color&&(s.background=e.color),s},onClose:s=>{s.stopPropagation(),n("close",s)},onClick:s=>{n("click",s)}}}});function Tw(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Close");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.getStyle()),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i))},[(0,t.renderSlot)(e.$slots,"default"),e.closeable?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],6)}var Da=oe(Bw,[["render",Tw]]),{create:Vw}=J("popover"),xw=Vw({components:{FoxPopup:ge},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.ref)(),a=(0,t.ref)(e.visible);let r=(0,t.ref)(),s=(0,t.ref)();const i=(0,t.computed)(()=>{const k="fox-popover-arrow",d=e.location;return`${k} ${k}-${d.split("-")[0]} ${k}--${d}`}),u=(0,t.computed)(()=>{const k={},{bgColor:d,arrowOffset:C,location:N}=e,v=N.split("-")[0],g=N.split("-")[1],A=16;return d&&(k[`border${m(v)}Color`]=d),e.arrowOffset!=0&&(["bottom","top"].includes(v)&&(g||(k.left=`calc(50% + ${C}px)`),g=="start"&&(k.left=`${A+C}px`),g=="end"&&(k.right=`${A-C}px`)),["left","right"].includes(v)&&(g||(k.top=`calc(50% - ${C}px)`),g=="start"&&(k.top=`${A-C}px`),g=="end"&&(k.bottom=`${A+C}px`))),k}),m=k=>(k=k.toLowerCase(),k=k.replace(/\b\w+\b/g,d=>d.substring(0,1).toUpperCase()+d.substring(1)),k),p=(0,t.computed)(()=>{let k={};if(!r.value||!s.value)return{};const d=s.value.width,C=s.value.height,{width:N,height:v,left:g,top:A}=r.value,{location:B,offset:V}=e,T=B.split("-")[0],_=B.split("-")[1];let G=0,x=0;return Bn(V)&&V.length==2&&(G+=Number(V[1]),x+=Number(V[0])),N&&(["bottom","top"].includes(T)&&(k.top=`${A+(T=="bottom"?v+G:-(C+G))}px`,_||(k.left=`${-(d-N)/2+g+x}px`),_=="start"&&(k.left=`${g+x}px`),_=="end"&&(k.left=`${r.value.right+x}px`)),["left","right"].includes(T)&&(k.left=`${g+(T=="left"?-(d+G):N+G)}px`,_||(k.top=`${A-C/2+v/2-4+x}px`),_=="start"&&(k.top=`${A+x}px`),_=="end"&&(k.top=`${A+v+x}px`))),k}),c=(0,t.computed)(()=>{const k={};return e.bgColor&&(k.background=e.bgColor),k}),h=()=>{let k=Ie(o.value);e.targetId&&(k=Ie(document.querySelector(`#${e.targetId}`))),r.value=k,setTimeout(()=>{s.value={height:l.value?.clientHeight,width:l.value?.clientWidth}},0)};(0,t.onMounted)(()=>{setTimeout(()=>{h()},200)}),(0,t.watch)(()=>e.visible,k=>{a.value=k,k?(window.addEventListener("touchstart",f,!0),h()):window.removeEventListener("touchstart",f,!0)});const y=k=>{n("update",k),n("update:visible",k)},w=()=>{y(!e.visible),n("open")},S=()=>{n("update:visible",!1),n("close")},b=(k,d)=>{!k.disabled&&n("choose",k,d),e.closeOnClickAction&&S()},f=k=>{const d=o.value,C=l.value;let N=d&&!d.contains(k.target);if(e.targetId){const v=document.querySelector(`#${e.targetId}`);N=v&&!v.contains(k.target)}N&&C&&!C.contains(k.target)&&e.closeOnClickOutside&&S()};return{showPopup:a,openPopover:w,popoverArrow:i,closePopover:S,chooseItem:b,popoverRef:o,popoverContentRef:l,getRootPosition:p,customStyle:c,popoverArrowStyle:u,renderIcon:ui}}}),$w={ref:"popoverContentRef",class:"fox-popover-content-group"},Ew=["onClick"],Dw={class:"fox-popover-menu-item-name"};function Iw(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.targetId?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:n[0]||(n[0]=(...i)=>e.openPopover&&e.openPopover(...i))},[(0,t.renderSlot)(e.$slots,"reference")],512)),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:(0,t.normalizeStyle)(e.getRootPosition)},[(0,t.createVNode)(s,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.showPopup=i),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:(0,t.normalizeStyle)(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",$w,[e.showArrow?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.popoverArrow),style:(0,t.normalizeStyle)(e.popoverArrowStyle)},null,6)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"content"),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.list,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u,class:(0,t.normalizeClass)([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:(0,t.withModifiers)(m=>e.chooseItem(i,u),["stop"])},[i.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Dw,(0,t.toDisplayString)(i.name),1)],10,Ew))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}var Qt=oe(xw,[["render",Iw]]),qw=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:o,round:l,avatarSize:a}=(0,t.toRefs)(n),r=(0,t.computed)(()=>{const u="avatarClass";return{[u]:!0,[`${u}--${o.value}`]:o.value}});return{avatarShape:o,avatarClass:r,getBlockClass:u=>({[u]:!0,[`${u}--round`]:l.value}),getStyle:()=>a.value?{width:a.value,height:a.value}:{width:"50px",height:"50px"}}}}),{create:Pw}=J("skeleton"),Mw=Pw(qw({[Xt.name]:Xt})),zw={key:0},Lw={key:1,class:"fox-skeleton"},Ow={key:0,class:"fox-skeleton-animation"},Rw={class:"fox-skeleton-content"};function Fw(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",Lw,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ow)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Rw,[e.avatar?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,class:(0,t.normalizeClass)(e.avatarClass),shape:e.avatarShape,style:(0,t.normalizeStyle)(e.getStyle())},null,8,["class","shape","style"])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-skeleton-content__line",style:(0,t.normalizeStyle)({width:e.width})},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.getBlockClass("fox-skeleton-blockTitle")),style:(0,t.normalizeStyle)({height:e.height})},null,6)):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Number(e.row),i=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:i,class:(0,t.normalizeClass)(e.getBlockClass("fox-skeleton-blockLine")),style:(0,t.normalizeStyle)({height:e.height})},null,6))),128))],4)])])):((0,t.openBlock)(),(0,t.createElementBlock)("view",zw,[(0,t.renderSlot)(e.$slots,"default")]))}var Ia=oe(Mw,[["render",Fw]]),{create:Kw,componentName:Uw}=J("collapse"),Hw=Kw({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const o=(0,t.ref)(null),l=(0,t.ref)(e.modelValue||(e.accordion?"":[])),a=(0,t.computed)(()=>({[Uw]:!0}));(0,t.watch)(()=>e.modelValue,u=>{l.value=u});const r=(u,m,p=!0)=>{l.value=u,n("update:modelValue",u),n("change",u,m,p)},s=u=>{e.accordion?l.value===u?r("",u,!1):r(u,u,!0):Array.isArray(l.value)?l.value.includes(u)?r(l.value.filter(m=>m!==u),u,!1):r(l.value.concat([u]),u,!0):console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=u=>e.accordion?l.value===u:Array.isArray(l.value)?l.value.includes(u):!1;return(0,t.provide)("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:o,classes:a}}});function _w(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"collapseDom"},[(0,t.renderSlot)(e.$slots,"default")],2)}var qa=oe(Hw,[["render",_w]]),{create:jw,componentName:Ww}=J("collapse-item"),Yw=jw({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:le.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=(0,t.ref)(null),o=(0,t.ref)(null),l=(0,t.reactive)((0,t.inject)("collapseParent")),a=(0,t.computed)(()=>{const c=Ww;return{[c]:!0,[c+"__border"]:e.border}}),r=(0,t.computed)(()=>l?l.isExpanded(e.name):!1),s=(0,t.ref)(r.value?"auto":"0px"),i=()=>{l.updateVal(e.name)},u=()=>{r.value&&(s.value="auto")},m=()=>{s.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const c=o.value?.offsetHeight;s.value=c?`${c}px`:"auto"})})},p=()=>{const c=o.value?.offsetHeight;s.value=c?`${c}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{s.value="0px"})})};return(0,t.watch)(r,c=>{c?m():p()}),{classes:a,renderIcon:ui,wrapperRef:n,contentRef:o,open:m,toggle:i,wrapperHeight:s,expanded:r,onTransitionEnd:u}}}),Xw={class:"fox-collapse-item__title-main"},Qw={class:"fox-collapse-item__title-main-value"},Gw=["innerHTML"],Zw={key:2,class:"fox-collapse-item__title-label"},Jw={key:0,class:"fox-collapse-item__title-sub"},eC=["innerHTML"],tC={key:0,class:"fox-collapse__item-extraWrapper"},nC={class:"fox-collapse__item-extraWrapper__extraRender"},lC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function oC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:n[0]||(n[0]=(...s)=>e.toggle&&e.toggle(...s))},[(0,t.createElementVNode)("view",Xw,[(0,t.createElementVNode)("view",Qw,[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,Gw)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",Zw,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",Jw,[(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,eC)),(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",tC,[(0,t.createElementVNode)("div",nC,[(0,t.renderSlot)(e.$slots,"extra")])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:(0,t.normalizeStyle)({willChange:"height",height:e.wrapperHeight}),onTransitionend:n[1]||(n[1]=(...s)=>e.onTransitionEnd&&e.onTransitionEnd(...s))},[(0,t.createElementVNode)("view",lC,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var Pa=oe(Yw,[["render",oC]]),aC=(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:rC,create:iC,scope:sC}=J("table"),uC=iC({components:{RenderColumn:aC,DownArrow:le.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:o}){const{t:l}=(0,me.useFoxI18n)(sC),a=(0,t.reactive)({curData:e.data}),r=(0,t.computed)(()=>({[rC]:!0})),s=y=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${y.align?y.align:""}`]:!0}),i=y=>y.stylehead?y.stylehead:"",u=y=>y.stylecolumn?y.stylecolumn:"",m=y=>e.columns.filter(w=>w.key===y)[0],p=y=>{const w=e.columns.filter(S=>S.key===y);return w[0].stylecolumn?w[0].stylecolumn:""},c=y=>{y.sorter&&(n("sorter",y),a.curData=typeof y.sorter=="function"?a.curData.sort(y.sorter):y.sorter==="default"?a.curData.sort():a.curData)},h=()=>e.columns.map(y=>[y.key,y.render]);return(0,t.watch)(()=>e.data,y=>{a.curData=y.slice()}),{...(0,t.toRefs)(a),classes:r,cellClasses:s,getColumnItem:m,getColumnItemStyle:p,handleSorterClick:c,sortDataItem:h,t:l,stylehead:i,stylecolumn:u}}}),cC={class:"fox-table__main__head"},dC={class:"fox-table__main__head__tr"},fC=["onClick"],mC={class:"fox-table__main__body"},pC={key:1},hC={key:0,class:"fox-table__nodata"},vC={key:0,class:"fox-table__nodata__text"},gC={key:1,class:"fox-table__summary"},yC=["innerHTML"];function bC(e,n,o,l,a,r){const s=(0,t.resolveComponent)("DownArrow"),i=(0,t.resolveComponent)("RenderColumn");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-table__main",{"fox-table__main--striped":e.striped}])},[(0,t.createElementVNode)("view",cC,[(0,t.createElementVNode)("view",dC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.columns,u=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__head__tr__th",e.cellClasses(u)]),key:u.key,onClick:m=>e.handleSorterClick(u),style:(0,t.normalizeStyle)(u.stylehead)},[(0,t.createTextVNode)((0,t.toDisplayString)(u.title)+" ",1),(0,t.renderSlot)(e.$slots,"icon"),!e.$slots.icon&&u.sorter?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,width:"12px",height:"12px"})):(0,t.createCommentVNode)("",!0)],14,fC))),128))])]),(0,t.createElementVNode)("view",mC,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.curData,u=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-table__main__body__tr",key:u},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.sortDataItem(),([m,p])=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(m))]),key:m,style:(0,t.normalizeStyle)(e.getColumnItemStyle(m))},[typeof u[m]=="function"||typeof p=="function"?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,slots:[p,u[m]],record:u},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",pC,(0,t.toDisplayString)(u[m]),1))],6))),128))]))),128))])],2),e.curData.length?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",hC,[(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",vC,(0,t.toDisplayString)(e.t("noData")),1))],2)])),e.summary?((0,t.openBlock)(),(0,t.createElementBlock)("view",gC,[(0,t.createElementVNode)("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,yC)])):(0,t.createCommentVNode)("",!0)],2)}var Ma=oe(uC,[["render",bC]]),{componentName:SC,create:kC}=J("ellipsis"),wC=kC({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const o=(0,t.ref)(null);let l=null,a=0;const r=(0,t.ref)(),s=(0,t.reactive)({exceeded:!1,expanded:!1}),i=(0,t.computed)(()=>({[SC]:!0}));(0,t.watch)(()=>e.content,(S,b)=>{S!=b&&u()}),(0,t.onMounted)(()=>{u()});const u=()=>{if(!o.value)return;const S=window.getComputedStyle(o.value);l=document.createElement("div"),Array.prototype.slice.apply(S).forEach(f=>{l.style.setProperty(f,S.getPropertyValue(f))}),l.style.position="fixed",l.style.left="999999px",l.style.top="999999px",l.style.zIndex="-1000",l.style.height="auto",l.style.minHeight="auto",l.style.maxHeight="auto",l.style.textOverflow="clip",l.style.whiteSpace="normal",l.style.webkitLineClamp="unset",l.style.display="block";const b=h(S.lineHeight==="normal"?e.lineHeight:S.lineHeight);a=Math.floor(b*(Number(e.rows)+.5)+h(S.paddingTop)+h(S.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),m()},m=()=>{if(l.offsetHeight<=a)s.exceeded=!1,document.body.removeChild(l);else{s.exceeded=!0;const S=e.content.length,b=Math.floor((0+S)/2);r.value=e.direction==="middle"?c([0,b],[b,S]):p(0,S),document.body.removeChild(l)}},p=(S,b)=>{const f=s.expanded?e.collapseText:e.expandText,k=e.content.length;if(b-S<=1)return e.direction==="end"?{leading:e.content.slice(0,S)+e.symbol}:{tailing:e.symbol+e.content.slice(b,k)};const d=Math.round((S+b)/2);return e.direction==="end"?l.innerText=e.content.slice(0,d)+e.symbol+f:l.innerText=f+e.symbol+e.content.slice(d,k),l.offsetHeight<=a?e.direction==="end"?p(d,b):p(S,d):e.direction==="end"?p(S,d):p(d,b)},c=(S,b)=>{const f=s.expanded?e.collapseText:e.expandText,k=e.content.length;if(S[1]-S[0]<=1&&b[1]-b[0]<=1)return{leading:e.content.slice(0,S[0])+e.symbol,tailing:e.symbol+e.content.slice(b[1],k)};const d=Math.floor((S[0]+S[1])/2),C=Math.ceil((b[0]+b[1])/2);return l.innerText=e.content.slice(0,d)+e.symbol+f+e.symbol+e.content.slice(C,k),l.offsetHeight<=a?c([d,S[1]],[b[0],C]):c([S[0],d],[C,b[1]])},h=S=>{if(!S)return 0;const b=S.match(/^\d*(\.\d*)?/);return b?Number(b[0]):0},y=S=>{S==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},w=()=>{n("click")};return{...(0,t.toRefs)(s),root:o,ellipsis:r,classes:i,clickHandle:y,handleClick:w}}}),CC={key:0},NC={key:1},AC={key:2};function BC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[2]||(n[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",CC,(0,t.toDisplayString)(e.content),1)),e.exceeded&&!e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",NC,[(0,t.createTextVNode)((0,t.toDisplayString)(e.ellipsis&&e.ellipsis.leading),1),e.expandText?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-ellipsis__text",onClick:n[0]||(n[0]=(0,t.withModifiers)(s=>e.clickHandle(1),["stop"]))},(0,t.toDisplayString)(e.expandText),1)):(0,t.createCommentVNode)("",!0),(0,t.createTextVNode)((0,t.toDisplayString)(e.ellipsis&&e.ellipsis.tailing),1)])):(0,t.createCommentVNode)("",!0),e.exceeded&&e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",AC,[(0,t.createTextVNode)((0,t.toDisplayString)(e.content)+" ",1),e.expandText?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-ellipsis__text",onClick:n[1]||(n[1]=(0,t.withModifiers)(s=>e.clickHandle(2),["stop"]))},(0,t.toDisplayString)(e.collapseText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2)}var za=oe(wC,[["render",BC]]),{componentName:TC,create:VC}=J("animate"),xC=VC({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:o,loop:l,action:a}=(0,t.toRefs)(e),r=(0,t.reactive)({clicked:!1});let s=(0,t.computed)(()=>({"fox-animate__container":!0,[`${TC}-${o.value}`]:a.value==="initial"||r.clicked?o.value:!1,loop:l.value}));const i=u=>{r.clicked=!0,l.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",u)};return{...(0,t.toRefs)(r),classes:s,handleClick:i}}}),$C={class:"fox-animate"};function EC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",$C,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s)),style:(0,t.normalizeStyle)({animationDuration:e.duration?`${e.duration}ms`:void 0})},[(0,t.renderSlot)(e.$slots,"default")],6)])}var La=oe(xC,[["render",EC]]),{componentName:DC,create:IC}=J("watermark"),qC=IC({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const o=(0,t.reactive)({base64Url:""}),{zIndex:l,gapX:a,gapY:r,width:s,height:i,rotate:u,image:m,imageWidth:p,imageHeight:c,content:h,fontStyle:y,fontWeight:w,fontColor:S,fontSize:b,fontFamily:f}=e,k=()=>{const C=document.createElement("canvas"),N=window.devicePixelRatio,v=C.getContext("2d"),g=`${(a+s)*N}px`,A=`${(r+i)*N}px`,B=s*N,V=i*N;if(C.setAttribute("width",g),C.setAttribute("height",A),v)if(m){v.translate(B/2,V/2),v.rotate(Math.PI/180*Number(u));const T=new Image;T.crossOrigin="anonymous",T.referrerPolicy="no-referrer",T.src=m,T.onload=()=>{v.drawImage(T,-p*N/2,-c*N/2,p*N,c*N),v.restore(),o.base64Url=C.toDataURL()}}else h&&(v.textBaseline="middle",v.textAlign="center",v.translate(B/2,V/2),v.rotate(Math.PI/180*Number(u)),v.font=`${y} normal ${w} ${Number(b)*N}px/${V}px ${f}`,v.fillStyle=S,v.fillText(h,0,0),v.restore(),o.base64Url=C.toDataURL());else throw new Error("当前环境不支持Canvas")};k(),(0,t.watch)(()=>[l,a,r,s,i,u,m,p,c,h,y,w,S,b,f],()=>{k()});const d=(0,t.computed)(()=>{const C=DC;return{[C]:!0,[`${C}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(o),classes:d}}});function PC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}var Oa=oe(qC,[["render",PC]]);function MC(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:zC,create:LC}=J("trend-arrow"),OC=LC({components:{TriangleUp:le.TriangleUp,TriangleDown:le.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=(0,t.reactive)({rateTrend:e.rate>0}),o=(0,t.computed)(()=>({[zC]:!0})),l=(0,t.computed)(()=>{const{rate:r,digits:s,showSign:i,showZero:u}=e;n.rateTrend=r>0;const m=Math.abs(r);return!u&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${MC(Number(m),s)}%`}),a=(0,t.computed)(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:u,rate:m}=e;return{color:m===0?u:i?n.rateTrend?s:r:u}});return{...(0,t.toRefs)(n),classes:o,calcRate:l,calcStyle:a}}});function RC(e,n,o,l,a,r){const s=(0,t.resolveComponent)("TriangleUp"),i=(0,t.resolveComponent)("TriangleDown");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.arrowLeft?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?(0,t.renderSlot)(e.$slots,"up-icon",{key:1},()=>[(0,t.createVNode)(s,{color:e.riseColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),Number(e.rate)!==0&&!e.rateTrend?(0,t.renderSlot)(e.$slots,"down-icon",{key:2},()=>[(0,t.createVNode)(i,{color:e.dropColor},null,8,["color"])]):(0,t.createCommentVNode)("",!0),e.arrowLeft?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:(0,t.normalizeStyle)(e.calcStyle)},(0,t.toDisplayString)(e.calcRate),5)):(0,t.createCommentVNode)("",!0)],2)}var Ra=oe(OC,[["render",RC]]),{create:FC}=J("tour"),KC=FC({components:{[Qt.name]:Qt,Close:le.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const o=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),l=(0,t.ref)({}),a=(0,t.computed)(()=>"fox-tour"),r=(0,t.computed)(()=>{const{offset:p,maskWidth:c,maskHeight:h}=e,{width:y,height:w,left:S,top:b}=l.value,f=[S+y/2,b+w/2],k=Number(c||y),d=Number(h||w);return{width:`${k+ +p[1]*2}px`,height:`${d+ +p[0]*2}px`,top:`${f[1]-d/2-+p[0]}px`,left:`${f[0]-k/2-+p[1]}px`}}),s=p=>{p=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,(0,t.nextTick)(()=>{o.showPopup=!0,i()}),n("change",o.active)},i=()=>{l.value=Ie(document.querySelector(`#${e.steps[o.active].target}`))},u=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},m=()=>{e.closeOnClickOverlay&&u()};return(0,t.onMounted)(()=>{o.active=0,i()}),(0,t.watch)(()=>e.modelValue,p=>{p&&i(),o.active=0,o.showTour=p,o.showPopup=p}),{...(0,t.toRefs)(o),classes:a,maskStyle:r,changeStep:s,close:u,handleClickMask:m}}}),UC={key:0,class:"fox-tour-content"},HC={key:0,class:"fox-tour-content-top"},_C={class:"fox-tour-content-inner"},jC={class:"fox-tour-content-bottom"},WC={class:"fox-tour-content-bottom-init"},YC={class:"fox-tour-content-bottom-operate"},XC={key:1,class:"fox-tour-content fox-tour-content-tile"},QC={class:"fox-tour-content-inner"};function GC(e,n,o,l,a,r){const s=(0,t.resolveComponent)("Close"),i=(0,t.resolveComponent)("fox-popover");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...u)=>e.handleClickMask&&e.handleClickMask(...u))},null,512),[[t.vShow,e.showTour]]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.steps,(u,m)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:m,style:{height:"0"}},[m==e.active?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.showTour?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:(0,t.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,t.createCommentVNode)("",!0),(0,t.createVNode)(i,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=p=>e.showPopup=p),location:u.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:u.popoverOffset||[0,12],arrowOffset:u.arrowOffset||0},{content:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,t.openBlock)(),(0,t.createElementBlock)("div",UC,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",HC,[(0,t.createElementVNode)("div",{onClick:n[1]||(n[1]=(...p)=>e.close&&e.close(...p))},[(0,t.createVNode)(s,{class:"fox-tour-content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",_C,(0,t.toDisplayString)(u.content),1),(0,t.createElementVNode)("div",jC,[(0,t.createElementVNode)("div",WC,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",YC,[(0,t.renderSlot)(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:n[2]||(n[2]=p=>e.changeStep("prev"))},(0,t.toDisplayString)(e.prevStepTxt),1)):(0,t.createCommentVNode)("",!0)]),e.steps.length-1==e.active?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[3]||(n[3]=(...p)=>e.close&&e.close(...p))},(0,t.toDisplayString)(e.completeTxt),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[4]||(n[4]=p=>e.changeStep("next"))},(0,t.toDisplayString)(e.nextStepTxt),1)):(0,t.createCommentVNode)("",!0)])])])])):(0,t.createCommentVNode)("",!0),e.type=="tile"?((0,t.openBlock)(),(0,t.createElementBlock)("div",XC,[(0,t.createElementVNode)("div",QC,(0,t.toDisplayString)(u.content),1)])):(0,t.createCommentVNode)("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):(0,t.createCommentVNode)("",!0)]))),128))],2)}var Fa=oe(KC,[["render",GC]]),{componentName:ZC,create:JC}=J("barrage"),e2=JC({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)(()=>({[ZC]:!0}));let a=(0,t.ref)(document.createElement("div")),r=(0,t.ref)(document.createElement("div")),s=null;const i=(0,t.ref)(e.danmu),u=(0,t.ref)(e.rows),m=(0,t.ref)(e.top),p=(0,t.ref)(0),c=e.speeds,h=(0,t.ref)(0);(0,t.onMounted)(()=>{y(),o&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(S(),p.value=0,w("hidden")):document.visibilityState==="visible"&&y()})}),(0,t.onUnmounted)(()=>{i.value=[],S()});const y=()=>{h.value=a.value.offsetWidth,o&&w("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${h.value}px`),f()},300)},w=d=>{let C=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const N=[];C&&Array.from(C).forEach(v=>{d=="init"?(v.style.opacity="0",N.push(v)):(v.classList="",v.style={})}),d=="init"&&(i.value=N)},S=()=>{s&&(clearTimeout(s),s=null)};(0,t.watch)(()=>e.danmu,d=>{e.danmu.length>0&&(i.value=[...d])});const b=d=>{const C=p.value%i.value.length;!e.loop&&p.value===i.value.length?i.value.splice(i.value.length,0,d):i.value.splice(C,0,d)},f=()=>{S(),s=setTimeout(()=>{k()},e.frequency)},k=()=>{const d=e.loop?p.value%i.value.length:p.value;let C=document.createElement("view");o&&typeof i.value[d]=="object"?(C=i.value[d],C?.classList?.add("fox-barrage__item")):(C.innerHTML=i.value[d],C.classList.add("fox-barrage__item"),r.value.appendChild(C)),(0,t.nextTick)(()=>{const N=C.offsetHeight;if(C?.classList?.add("move"),C.style.animationDuration=`${c}ms`,C.style.top=d%u.value*(N+m.value)+20+"px",C.style.opacity="1",!o){const v=C.offsetWidth;C.style.width=v+20+"px"}C.addEventListener("animationend",()=>{o?C.classList.remove("move"):r.value.removeChild(C)}),!(!e.loop&&p.value>=i.value.length-1)&&(p.value++,p.value>=i.value.length&&(p.value=0),C.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:l,danmuList:i,dmBody:a,dmContainer:r,add:b}}});function t2(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{ref:"dmBody",class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",{ref:"dmContainer",class:(0,t.normalizeClass)(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["slotBody","slotBody"+e.classTime])},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)],2)],2)}var Ka=oe(e2,[["render",t2]]),{componentName:n2,create:l2,scope:o2}=J("signature"),a2=l2({props:{customClass:{type:String,default:""},lineWidth:{type:Number,default:2},strokeStyle:{type:String,default:()=>document.getElementsByTagName("body")[0].className.indexOf("fox-theme-dark")==-1?"#000":"#fff"},type:{type:String,default:"png"},unSupportTpl:{type:String,default:""}},components:{[st.name]:st},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:o}=(0,me.useFoxI18n)(o2),l=o(e,["unSupportTpl","reSign","confirmText"]),a=(0,t.ref)(null),r=(0,t.ref)(null),s=(0,t.computed)(()=>({[n2]:!0,[`${e.customClass}`]:e.customClass})),i=(0,t.reactive)({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),u=()=>{let k=document.createElement("canvas");return!!(k.getContext&&k.getContext("2d"))},m=()=>{a.value.addEventListener(i.events[0],p,!1)},p=k=>{k.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),a.value.addEventListener(i.events[1],c,!1),a.value.addEventListener(i.events[2],h,!1),a.value.addEventListener(i.events[3],y,!1)},c=k=>{k.preventDefault();let d=i.isSupportTouch?k.touches[0]:k;n("signing",d);let C=a.value.getBoundingClientRect(),N=d.clientX-C.left,v=d.clientY-C.top;i.ctx.lineTo(N,v),i.ctx.stroke()},h=k=>{k.preventDefault(),n("end"),a.value.removeEventListener(i.events[1],c,!1),a.value.removeEventListener(i.events[2],h,!1)},y=k=>{k.preventDefault(),a.value.removeEventListener(i.events[1],c,!1),a.value.removeEventListener(i.events[2],h,!1)},w=()=>{a.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},S=()=>{f(a.value)},b=k=>{if(!k)return!0;var d=document.createElement("canvas");return d.width=k.width,d.height=k.height,k?.toDataURL()==d.toDataURL()},f=k=>{let d;switch(e.type){case"png":d=k.toDataURL("image/png");break;case"jpg":d=k.toDataURL("image/jpeg",.8);break}n("confirm",b(k)?"请绘制签名":k,b(k)?"":d)};return(0,t.onMounted)(()=>{u()&&(i.ctx=a.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,m())}),{...l,...(0,t.toRefs)(i),canvas:a,wrap:r,isCanvasSupported:u,confirm:S,clear:w,classes:s}}}),r2={class:"fox-signature-inner",ref:"wrap"},i2=["height","width"],s2={key:0,class:"fox-signature-unsopport"};function u2(e,n,o,l,a,r){const s=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",r2,[(0,t.withDirectives)((0,t.createElementVNode)("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,i2),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("p",s2,(0,t.toDisplayString)(e.unSupportTpl),1))],512),(0,t.createVNode)(s,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=i=>e.clear())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.reSign),1)]),_:1}),(0,t.createVNode)(s,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=i=>e.confirm())},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.confirmText),1)]),_:1})],2)}var Ua=oe(a2,[["render",u2]]),c2=[oo,ro,io,so,co,Ce,_n,mo,po,ho,vo,go,Yn,yo,bo,ko,wo,tl,nl,Co,ll,ol,No,Ao,xt,Bo,To,ul,Vo,xo,tn,nn,Gn,$o,Eo,Do,Io,ot,qo,Po,Wn,jn,Mo,zo,Lo,st,Oo,Ro,Fo,it,ge,Ko,Uo,Ho,_o,_t,jo,Wo,Yo,Xo,Qo,Go,Zo,Jo,ea,ta,na,la,oa,aa,ra,ia,sa,jt,sl,Zn,el,Jn,cl,rl,en,ua,ca,da,fa,ma,pa,ha,Yt,il,va,ya,al,$t,Sa,ka,Xt,wa,Ca,Wt,Na,Aa,Ba,At,Ta,Va,Bt,Tt,Un,dl,xa,$a,Ea,Da,Qt,Ia,qa,Pa,Ma,za,La,Oa,Ra,Fa,Ka,Ua],d2=new $s(c2,"4.0.0");exports.AbstractPageScopeKey=lo;exports.ActionSheet=ma;exports.FoxActionSheet=ma;exports.ActionsheetItem=Vo;exports.FoxActionsheetItem=Vo;exports.ActionsheetPane=ul;exports.FoxActionsheetPane=ul;exports.Animate=La;exports.FoxAnimate=La;exports.Audio=Sa;exports.FoxAudio=Sa;exports.AudioOperate=ka;exports.FoxAudioOperate=ka;exports.Avatar=Xt;exports.FoxAvatar=Xt;exports.AvatarGroup=wa;exports.FoxAvatarGroup=wa;exports.BackTop=pa;exports.FoxBackTop=pa;exports.Badge=Ea;exports.FoxBadge=Ea;exports.Barrage=Ka;exports.FoxBarrage=Ka;exports.Broadcast=Jl;exports.BroadcastKey=ke;exports.Button=st;exports.FoxButton=st;exports.ButtonsItem=mo;exports.FoxButtonsItem=mo;exports.Calendar=el;exports.FoxCalendar=el;exports.CalendarItem=wo;exports.FoxCalendarItem=wo;exports.Cascader=Zn;exports.FoxCascader=Zn;exports.CascaderItem=bo;exports.FoxCascaderItem=bo;exports.Cell=Oo;exports.FoxCell=Oo;exports.CellGroup=Fo;exports.FoxCellGroup=Fo;exports.Checkbox=ll;exports.FoxCheckbox=ll;exports.CheckboxGroup=ol;exports.FoxCheckboxGroup=ol;exports.CheckboxItem=No;exports.FoxCheckboxItem=No;exports.CircleProgress=Na;exports.FoxCircleProgress=Na;exports.Col=Ho;exports.FoxCol=Ho;exports.Collapse=qa;exports.FoxCollapse=qa;exports.CollapseItem=Pa;exports.FoxCollapseItem=Pa;exports.Content=so;exports.FoxContent=so;exports.CountDown=$a;exports.FoxCountDown=$a;exports.CountUp=xa;exports.FoxCountUp=xa;exports.DataItemsKey=ft;exports.DateItem=ko;exports.FoxDateItem=ko;exports.DatePicker=Jn;exports.FoxDatePicker=Jn;exports.DateUtils=gt;exports.Dialog=Yt;exports.FoxDialog=Yt;exports.Divider=jo;exports.FoxDivider=jo;exports.Domain=En;exports.DomainKey=$e;exports.DomainProvider=zo;exports.FoxDomainProvider=zo;exports.Drag=ha;exports.FoxDrag=ha;exports.Dropdown=Po;exports.FoxDropdown=Po;exports.Elevator=ta;exports.FoxElevator=ta;exports.Ellipsis=za;exports.FoxEllipsis=za;exports.Empty=Ba;exports.FoxEmpty=Ba;exports.FixedNav=Qo;exports.FoxFixedNav=Qo;exports.FloatingButton=Do;exports.FoxFloatingButton=Do;exports.FooterBar=io;exports.FoxFooterBar=io;exports.FoxGrid=Wo;exports.Grid=Wo;exports.FoxGridItem=Yo;exports.GridItem=Yo;exports.FoxGroup=co;exports.Group=co;exports.FoxHeaderBar=ro;exports.HeaderBar=ro;exports.FoxHintText=xt;exports.HintText=xt;exports.FoxIcon=Ro;exports.Icon=Ro;exports.FoxImage=Ko;exports.Image=Ko;exports.FoxImagePreview=dl;exports.ImagePreview=dl;exports.FoxIndicator=aa;exports.Indicator=aa;exports.FoxInfiniteLoading=il;exports.InfiniteLoading=il;exports.FoxInputItem=ho;exports.InputItem=ho;exports.FoxInputNumber=cl;exports.InputNumber=cl;exports.FoxInputNumberItem=xo;exports.InputNumberItem=xo;exports.FoxItem=Ce;exports.Item=Ce;exports.FoxLayout=Uo;exports.Layout=Uo;exports.FoxLinkItem=Bo;exports.LinkItem=Bo;exports.FoxList=Ca;exports.List=Ca;exports.FoxMapping=Mo;exports.Mapping=Mo;exports.FoxMenu=Go;exports.Menu=Go;exports.FoxMenuItem=Zo;exports.MenuItem=Zo;exports.FoxMessageBox=ot;exports.MessageBox=ot;exports.FoxMoneyItem=vo;exports.MoneyItem=vo;exports.FoxMoreButton=Io;exports.MoreButton=Io;exports.FoxNavbar=Xo;exports.Navbar=Xo;exports.FoxNoticeBar=Aa;exports.NoticeBar=Aa;exports.FoxNotify=ya;exports.Notify=ya;exports.FoxNumberKeyboard=da;exports.NumberKeyboard=da;exports.FoxOverLay=it;exports.OverLay=it;exports.FoxPage=oo;exports.Page=oo;exports.FoxPagination=na;exports.Pagination=na;exports.FoxPicker=en;exports.Picker=en;exports.FoxPickerItem=yo;exports.PickerItem=yo;exports.FoxPopover=Qt;exports.Popover=Qt;exports.FoxPopoverDialog=Wn;exports.PopoverDialog=Wn;exports.FoxPopup=ge;exports.Popup=ge;exports.FoxPopupWrapper=qo;exports.PopupWrapper=qo;exports.FoxPrice=Un;exports.Price=Un;exports.FoxProgress=Wt;exports.Progress=Wt;exports.FoxPullRefresh=va;exports.PullRefresh=va;exports.FoxRadio=tl;exports.Radio=tl;exports.FoxRadioGroup=nl;exports.RadioGroup=nl;exports.FoxRadioItem=Co;exports.RadioItem=Co;exports.FoxRange=jt;exports.Range=jt;exports.FoxRate=rl;exports.Rate=rl;exports.FoxRateItem=To;exports.RateItem=To;exports.FoxRollingProvider=Lo;exports.RollingProvider=Lo;exports.FoxRow=_o;exports.Row=_o;exports.FoxRowItem=_n;exports.RowItem=_n;exports.FoxSearchBar=sl;exports.SearchBar=sl;exports.FoxShortPassword=ua;exports.ShortPassword=ua;exports.FoxSideNavBar=ra;exports.SideNavBar=ra;exports.FoxSideNavBarItem=ia;exports.SideNavBarItem=ia;exports.FoxSignature=Ua;exports.Signature=Ua;exports.FoxSkeleton=Ia;exports.Skeleton=Ia;exports.FoxSlotItem=po;exports.SlotItem=po;exports.FoxStep=Va;exports.Step=Va;exports.FoxSteps=Ta;exports.Steps=Ta;exports.FoxStepsBar=Eo;exports.StepsBar=Eo;exports.FoxSticky=_t;exports.Sticky=_t;exports.FoxSubSideNavBar=sa;exports.SubSideNavBar=sa;exports.FoxSwipe=fa;exports.Swipe=fa;exports.FoxSwiper=Bt;exports.Swiper=Bt;exports.FoxSwiperItem=Tt;exports.SwiperItem=Tt;exports.FoxSwitch=al;exports.Switch=al;exports.FoxSwitchItem=Ao;exports.SwitchItem=Ao;exports.FoxTabPane=oa;exports.TabPane=oa;exports.FoxTabbar=Jo;exports.Tabbar=Jo;exports.FoxTabbarItem=ea;exports.TabbarItem=ea;exports.FoxTable=Ma;exports.Table=Ma;exports.FoxTabs=la;exports.Tabs=la;exports.FoxTabsBar=tn;exports.TabsBar=tn;exports.FoxTabsContainer=nn;exports.TabsContainer=nn;exports.FoxTabsFrame=$o;exports.TabsFrame=$o;exports.FoxTabsPane=Gn;exports.TabsPane=Gn;exports.FoxTag=Da;exports.Tag=Da;exports.FoxText=jn;exports.Text=jn;exports.FoxTextarea=Yn;exports.Textarea=Yn;exports.FoxTextareaItem=go;exports.TextareaItem=go;exports.FoxToast=$t;exports.Toast=$t;exports.FoxTour=Fa;exports.Tour=Fa;exports.FoxTrendArrow=Ra;exports.TrendArrow=Ra;exports.FoxUploader=ca;exports.Uploader=ca;exports.FoxVideo=At;exports.Video=At;exports.FoxWaterMark=Oa;exports.WaterMark=Oa;exports.InnerPageScopeKey=no;exports.PriorityPolicy=at;exports.UniqueID=Hn;exports.ValidateSchema=ei;exports.ValidateSchemaKey=ze;exports.cancelRaf=Mr;exports.clamp=Ke;exports.clearNonNumber=$l;exports.compareTo=Vl;exports.createBroadcast=xn;exports.createValidateSchema=$n;exports.debounce=qe;exports.debounceRef=ys;exports.decimalLength=Xr;exports.default=d2;exports.defineBroadcast=us;exports.defineConfigDomain=ni;exports.defineDataItem=li;exports.defineDomain=to;exports.defineItem=Ae;exports.definePageState=oi;exports.defineSimpleItem=Vt;exports.deleteGlobalValidator=ps;exports.disabledProperty=xe;exports.divide=Gl;exports.excludeProps=Ge;exports.extend=St;exports.floatData=is;exports.getGlobalIcons=Mn;exports.getGlobalValidateCheckEvents=Gr;exports.getGlobalValidateResetEvents=Jr;exports.getPageContentAreaHeight=Sn;exports.getPageContentAreaWidth=kn;exports.getPageFooterAreaHeight=qn;exports.getPageHeaderAreaHeight=In;exports.getRootDomain=ht;exports.hasSymbol=Ur;exports.includeProps=he;exports.indexOf=as;exports.injectAbstractPageScope=Jt;exports.injectInnerPageScope=Zt;exports.integerLength=Yr;exports.isArray=Bn;exports.isArrayLike=jr;exports.isBrowser=Qe;exports.isDate=Ue;exports.isDisplayNone=Zl;exports.isESModule=es;exports.isEmptyString=ue;exports.isEqual=De;exports.isFunction=vn;exports.isHidden=Hr;exports.isMap=Qi;exports.isNil=Me;exports.isNumberString=Vn;exports.isObject=Ee;exports.isPlainObject=Ji;exports.isPromise=bt;exports.isRegExp=xl;exports.isSet=Gi;exports.isString=Fr;exports.isSubPage=Cs;exports.isSymbol=Zi;exports.isTouch=Xn;exports.isWindow=_r;exports.kebabToPascal=gn;exports.lastIndexOf=rs;exports.makeArray=os;exports.merge=Wr;exports.multiply=Lr;exports.negate=Or;exports.nextTick=ns;exports.numberFormat=An;exports.objectToString=Kr;exports.once=bs;exports.overrideGlobalIcons=Ls;exports.overrideGlobalValidateHandler=fs;exports.padZero=nt;exports.pascalToKebab=ss;exports.preventDefault=El;exports.property=Te;exports.provideAbstractPageScope=ri;exports.provideInnerPageScope=ai;exports.px2Number=ws;exports.raf=Fe;exports.readonlyProperty=Ve;exports.setGlobalValidateCheckEvents=hs;exports.setGlobalValidateHandler=ds;exports.setGlobalValidateMessages=gs;exports.setGlobalValidateResetEvents=vs;exports.setGlobalValidator=ms;exports.throttle=bn;exports.toBoolean=ye;exports.toNumber=fe;exports.toPadding=Oe;exports.toPx=se;exports.toPxDesc=ks;exports.toPxString=de;exports.toTypeString=Tn;exports.toValue=Pe;exports.tryTimes=eo;exports.typeOf=kt;exports.unNumberFormat=Rr;exports.updatePageState=Dl;exports.useBroadcast=Lt;exports.useDomain=Ze;exports.useExpose=Be;exports.useInnerSize=Pn;exports.usePageState=Dn;exports.usePosition=fo;exports.useRawTouch=Qn;exports.useRect=Ie;exports.useSize=ao;exports.useSlotChildren=uo;exports.useTouch=et;exports.valueLength=be;
9
+ `)}}});function cg(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)}var Yo=ae(ug,[["render",cg]]),{create:dg}=J("sticky"),fg=dg({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.ref)(),a=(0,t.reactive)({fixed:!1,height:0,transform:0}),r=(0,t.computed)(()=>e.position==="top"?Number(e.top):Number(e.bottom)),i=(0,t.computed)(()=>a.fixed?{height:`${a.height}px`}:{}),u=(0,t.computed)(()=>a.fixed?{[e.position]:`${r.value}px`,transform:a.transform?`translate3d(0, ${a.transform}px, 0)`:void 0,position:a.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),s=()=>{const d=e.container;if(!o.value&&!d)return;const p=$e(o),c=l.value,v=$e(c),S=$e(d);a.height=p.height;const w=()=>{let k=!1;if(e.position==="top")k=d?r.value>p.top&&S.bottom>0:r.value>p.top;else{const f=document.documentElement.clientHeight;k=d?S.bottom>0&&f-r.value-v.height>S.top:f-r.value<p.bottom}return k},y=()=>{if(d)if(e.position==="top"){const k=S.bottom-r.value-v.height;return k<0?k:0}else{const k=document.documentElement.clientHeight,f=S.bottom-(k-r.value);return f<0?f:0}return 0};a.transform=y(),a.fixed=w()};return(0,t.watch)(()=>a.fixed,d=>{n("change",d)}),(0,t.onMounted)(()=>{s(),_l(o.value).addEventListener("scroll",s,!0)}),(0,t.onUnmounted)(()=>{_l(o.value).removeEventListener("scroll",s)}),{rootRef:o,rootStyle:i,stickyRef:l,stickyStyle:u}}});function mg(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-sticky",ref:"rootRef",style:(0,t.normalizeStyle)(e.rootStyle)},[(0,t.createElementVNode)("div",{class:"fox-sticky__box",ref:"stickyRef",style:(0,t.normalizeStyle)(e.stickyStyle)},[(0,t.renderSlot)(e.$slots,"default")],4)],4)}var Yt=ae(fg,[["render",mg]]),{componentName:pg,create:hg}=J("divider"),vg=hg({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=pg;let l={[o]:!0},a={};return e.direction==="horizontal"?a={...l,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:a={...l,[`${o}-vertical`]:e.direction==="vertical"},a})}}});function gg(e,n,o,l,a,r){return e.direction==="horizontal"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classes)},[(0,t.renderSlot)(e.$slots,"default")],2)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.classes)},null,2))}var Xo=ae(vg,[["render",gg]]);function yg(e,n){const o=[],l=a=>{Array.isArray(a)&&a.forEach(r=>{if((0,t.isVNode)(r)){if(n){if(r.type&&r.type.name===n){o.push(r);return}}else o.push(r);r.component?.subTree&&l(r.component.subTree.children),r.children&&l(r.children)}})};return l(e),o}function bg(e,n,o){const l=yg(e.subTree.children,o);n.sort((a,r)=>l.indexOf(a.vnode)-l.indexOf(r.vnode))}function Sg(e,n){const o=(0,t.shallowReactive)([]),l=(0,t.getCurrentInstance)(),a=u=>{u.proxy&&(o.push((0,t.markRaw)(u)),bg(l,o,n))},r=u=>{o.splice(o.indexOf((0,t.markRaw)(u)),1)},i=Object.assign;return u=>((0,t.provide)(e,i({add:a,remove:r,internalChildren:o},u)),{internalChildren:o})}var{componentName:Tr}=J("grid"),Ri=Symbol("grid"),kg={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}},wg={props:kg,setup(e,{slots:n}){Sg(Ri,`${Tr}-item`)({props:e});const o=(0,t.computed)(()=>{const a=Tr;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),l=(0,t.computed)(()=>{const a={};return e.gutter&&(a.paddingLeft=me(e.gutter)),a});return()=>(0,t.h)("view",{class:o.value,style:l.value},n.default?.())}},{create:Cg}=J("grid"),Ng=Cg(wg),Qo=Ng;function Ag(e){const n=(0,t.inject)(e,null);if(n){const o=(0,t.getCurrentInstance)(),{add:l,remove:a,internalChildren:r}=n;return l(o),(0,t.onUnmounted)(()=>a(o)),{parent:n,index:(0,t.computed)(()=>r.indexOf(o))}}return{parent:null,index:(0,t.ref)(-1)}}var{create:Bg,componentName:Vr}=J("grid-item"),Tg=Bg({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const o=Ag(Ri);if(!o.parent)return{};const l=o.index,a=o.parent.props,r=(0,t.computed)(()=>({[Vr]:!0})),i=(0,t.computed)(()=>{const d={flexBasis:`${100/+a.columnNum}%`};return a.square?d.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(d.paddingRight=me(a.gutter),l.value>=a.columnNum&&(d.marginTop=me(a.gutter))),d}),u=(0,t.computed)(()=>{const d=`${Vr}__content`;return{[`${d}`]:!0,[`${d}--border`]:a.border,[`${d}--surround`]:a.border&&a.gutter,[`${d}--center`]:a.center,[`${d}--square`]:a.square,[`${d}--reverse`]:a.reverse,[`${d}--${a.direction}`]:!!a.direction,[`${d}--clickable`]:a.clickable}});return{rootClass:r,rootStyle:i,contentClass:u,handleClick:d=>{n("click",d)}}}}),Vg={class:"fox-grid-item__text"};function xg(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.rootClass),style:(0,t.normalizeStyle)(e.rootStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.contentClass)},[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("view",Vg,[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 Go=ae(Tg,[["render",xg]]),{componentName:$g,create:Eg}=J("navbar"),Dg=Eg({components:{Left:oe.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:o,fixed:l,safeAreaInsetTop:a,placeholder:r,zIndex:i}=(0,t.toRefs)(e),u=(0,t.ref)(null),s=(0,t.ref)(null);let d=(0,t.ref)();const p=(0,t.computed)(()=>{const k=$g;return{[k]:!0,[`${k}--border`]:o.value,[`${k}--fixed`]:l.value,[`${k}--safe-area-inset-top`]:a.value}}),c=(0,t.computed)(()=>({zIndex:i.value}));(0,t.onMounted)(()=>{l.value&&r.value&&(0,t.nextTick)(()=>{d.value=s?.value?.getBoundingClientRect().height,u.value.style.height=d.value+"px"})});function v(){n("on-click-back")}function S(){n("on-click-title")}function w(){n("on-click-icon")}function y(){n("on-click-right")}return{navBarWrap:u,navBarHtml:s,classes:p,styles:c,handleLeft:v,handleCenter:S,handleCenterIcon:w,handleRight:y}}}),Ig={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},qg={key:1,class:"fox-navbar__text"},Pg={class:"fox-navbar__title"},Mg={key:0,class:"fox-navbar__text"},zg={key:1,class:"fox-navbar__text"},Lg={class:"fox-navbar__title"},Rg={key:0,class:"fox-navbar__text"};function Fg(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Left");return e.fixed&&e.placeholder?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ig,[(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)(i,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",qg,(0,t.toDisplayString)(e.leftText),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"left")]),(0,t.createElementVNode)("view",Pg,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"title",onClick:n[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",Mg,(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)(i,{height:"12px",color:"#979797"})]):(0,t.createCommentVNode)("",!0),e.leftText?((0,t.openBlock)(),(0,t.createElementBlock)("view",zg,(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[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",Rg,(0,t.toDisplayString)(e.desc),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"right")])],6))}var Zo=ae(Dg,[["render",Fg]]),Og=(e,n,o)=>({components:o,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{type:String,default:""},activeText:{type:String},unActiveText:{type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(l,{emit:a}){const{toLocaleRefs:r}=(0,pe.useFoxI18n)(n),i=r(l,["activeText","unActiveText"]),u=(0,t.computed)(()=>({[e]:!0,active:l.visible,[l.type]:!0})),s=(0,t.ref)(-1);return{...i,classes:u,updateValue:(c=!l.visible)=>{a("update:visible",c)},selected:(c,v)=>{a("selected",{item:c,event:v}),s.value=c.id},current:s}}}),{componentName:Kg,create:Ug,scope:Hg}=J("fixednav"),_g=Ug(Og(Kg,Hg,{[st.name]:st,Left:oe.Left})),jg={class:"fox-fixednav__list"},Wg=["onClick"],Yg=["src"],Xg={class:"span"},Qg={key:0,class:"b"},Gg={class:"text"};function Zg(e,n,o,l,a,r){const i=(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)(i,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=s=>e.updateValue(!1))},null,8,["visible"])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"list",{},()=>[(0,t.createElementVNode)("view",jg,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.navList,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-fixednav__list-item",{active:s.id==e.current}]),onClick:p=>e.selected(s,p),key:s.id||d},[(0,t.createElementVNode)("img",{src:s.icon},null,8,Yg),(0,t.createElementVNode)("view",Xg,(0,t.toDisplayString)(s.text),1),s.num?((0,t.openBlock)(),(0,t.createElementBlock)("view",Qg,(0,t.toDisplayString)(s.num),1)):(0,t.createCommentVNode)("",!0)],10,Wg))),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",Gg,(0,t.toDisplayString)(e.visible?e.activeText:e.unActiveText),1)])])],6)}var Jo=ae(_g,[["render",Zg]]),{componentName:Jg,create:ey}=J("menu"),ty=ey({components:{ArrowUp2:oe.ArrowUp2,ArrowDown2:oe.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:o}){const l=(0,t.ref)(),a=(0,t.ref)(0),r=(0,t.ref)(!1),i=()=>{const k=(0,t.reactive)([]),f=(0,t.reactive)([]);return{children:k,linkChildren:m=>{const A=g=>{g.proxy&&(f.push(g),k.push(g.proxy))},C=g=>{if(g.proxy){let h=f.indexOf(g);h>-1&&f.splice(h,1);let N=k.indexOf(g.proxy);h>-1&&k.splice(N,1)}};(0,t.provide)("menuParent",Object.assign({removeLink:C,link:A,children:k,internalChildren:f},m))}}},{children:u,linkChildren:s}=i(),d=(0,t.computed)(()=>u.some(k=>k.state.showWrapper)),p=(0,t.computed)(()=>({[Jg]:!0,"scroll-fixed":r.value})),c=()=>{if(l.value){const k=$e(l);e.direction==="down"?a.value=k.bottom:a.value=window.innerHeight-k.top}};s({props:e,offset:a});const v=k=>{u.forEach((f,b)=>{b===k?(c(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},S=k=>Math.max(0,"scrollTop"in k?k.scrollTop:k.pageYOffset),w=()=>{const{scrollFixed:k}=e;r.value=S(window)>(typeof k=="boolean"?30:Number(k))},y=k=>{let f="";const{titleClass:b}=e;return k&&(f+="active"),b&&(f+=` ${b}`),f};return(0,t.onMounted)(()=>{const{scrollFixed:k}=e;k&&window.addEventListener("scroll",w)}),(0,t.onUnmounted)(()=>{const{scrollFixed:k}=e;k&&window.removeEventListener("scroll",w)}),{toggleItem:v,children:u,opened:d,classes:p,barRef:l,getClasses:y}}}),ny=["onClick"],ly={class:"fox-menu__title-text"},oy={class:"fox-menu__title-icon"};function ay(e,n,o,l,a,r){const i=(0,t.resolveComponent)("ArrowUp2"),u=(0,t.resolveComponent)("ArrowDown2");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.children,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:d,class:(0,t.normalizeClass)(["fox-menu__item",{disabled:s.disabled,active:s.state.showPopup}]),onClick:p=>!s.disabled&&e.toggleItem(d),style:(0,t.normalizeStyle)({color:s.state.showPopup?e.activeColor:""})},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-menu__title",e.getClasses(s.state.showPopup)])},[(0,t.createElementVNode)("view",ly,(0,t.toDisplayString)(s.renderTitle()),1),(0,t.createElementVNode)("span",oy,[(0,t.renderSlot)(e.$slots,"icon",{},()=>[e.direction==="up"?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0})):((0,t.openBlock)(),(0,t.createBlock)(u,{key:1}))])])],2)],14,ny))),128))],2),(0,t.renderSlot)(e.$slots,"default")],2)}var ea=ae(ty,[["render",ay]]),{componentName:ry,create:iy}=J("menu-item"),sy=iy({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[ye.name]:ye,Check:oe.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:o}){const l=(0,t.reactive)({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),a=()=>{const S=(0,t.inject)("menuParent",null);if(S){const w=(0,t.getCurrentInstance)(),{link:y,removeLink:k}=S;return y(w),(0,t.onUnmounted)(()=>{k(w)}),{parent:S}}},{parent:r}=a(),i=(0,t.computed)(()=>({[ry]:!0})),u=(0,t.computed)(()=>{const S={height:r.offset.value+"px"};return r.props.direction==="down"?S:{...S,top:"auto"}});return{classes:i,placeholderElementStyle:u,renderTitle:()=>{if(e.title)return e.title;const S=e.options?.find(w=>w.value===e.modelValue);return S?S.text:""},state:l,parent:r,toggle:(S=!l.showPopup,w={})=>{S!==l.showPopup&&(l.showPopup=S,l.isShowPlaceholderElement=S,S&&(l.showWrapper=!0,n("open")))},onClick:S=>{l.showPopup=!1,l.isShowPlaceholderElement=!1,S.value!==e.modelValue&&(n("update:modelValue",S.value),n("change",S.value))},handleClose:()=>{n("close"),l.showWrapper=!1,l.isShowPlaceholderElement=!1},handleClickOutside:()=>{l.showPopup=!1,n("close")}}}}),uy={class:"fox-menu-item__content fox-menu-item__overflow"},cy=["onClick"];function dy(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Check"),u=(0,t.resolveComponent)("fox-popup");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.withDirectives)((0,t.createElementVNode)("div",{onClick:n[0]||(n[0]=(...s)=>e.handleClickOutside&&e.handleClickOutside(...s)),class:(0,t.normalizeClass)(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:(0,t.normalizeStyle)(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),(0,t.createVNode)(u,(0,t.mergeProps)({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",top:"auto"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.state.showPopup=s),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",uy,[((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:p=>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)(i,(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,cy))),128)),(0,t.renderSlot)(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}var ta=ae(sy,[["render",dy]]),{create:fy}=J("tabbar"),my=fy({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,n){function o(a){l.value!==a&&(l.value=a,n.emit("update:modelValue",a),n.emit("change",a,l.children[a]))}const l=(0,t.reactive)({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:o});return(0,t.provide)("parent",l),(0,t.watch)(()=>e.modelValue,a=>{l.value=a}),{changeIndex:o}}});function py(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[(0,t.renderSlot)(e.$slots,"default")],2)}var na=ae(my,[["render",py]]),{create:hy}=J("tabbar-item"),vy=hy({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,n){const o=(0,t.inject)("parent"),l=(0,t.reactive)({size:o.size,inactiveColor:o.inactiveColor,activeColor:o.activeColor,value:o.value,index:0}),a=(0,t.getCurrentInstance)();a!==null&&(s=>{if(s.proxy){let d=o.children.length;l.index=d;let p=Object.assign(s.proxy,{index:d});o.children.push(p)}})(a);const r=(0,t.computed)(()=>l.index===l.value);function i(u){o&&typeof o.changeIndex=="function"&&o.changeIndex(u)}return(0,t.watch)((0,t.computed)(()=>o?o.value:null),u=>{l.value=u}),{state:l,active:r,change:i}}}),gy={class:"fox-tabbar-item_icon-box"},yy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},by={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Sy={key:1,class:"fox-tabbar-item_icon-box_dot"},ky={key:2},wy={key:0};function Cy(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:(0,t.normalizeStyle)({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=i=>e.change(e.state.index))},[(0,t.createElementVNode)("view",gy,[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",yy,(0,t.toDisplayString)(e.num),1)):e.num&&e.num>100?((0,t.openBlock)(),(0,t.createElementBlock)("view",by,(0,t.toDisplayString)("99+"))):(0,t.createCommentVNode)("",!0)],64)),e.dot?((0,t.openBlock)(),(0,t.createElementBlock)("div",Sy)):(0,t.createCommentVNode)("",!0),e.icon?((0,t.openBlock)(),(0,t.createElementBlock)("view",ky,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.icon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):(0,t.createCommentVNode)("",!0),!e.icon&&e.activeImg?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:(0,t.normalizeStyle)({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("view",wy,(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 la=ae(vy,[["render",Cy]]),{componentName:Ny,create:Ay}=J("elevator"),By=Ay({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const o=(0,t.ref)(null),l=(0,t.reactive)({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),a=(0,t.computed)(()=>({[Ny]:!0})),r=(0,t.computed)(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),i=(0,t.computed)(()=>o.value.clientHeight),u=(f,b)=>f.getAttribute("data-"+b),s=f=>{(0,t.nextTick)(()=>{!l.listGroup.includes(f)&&f!=null&&l.listGroup.push(f)})},d=()=>{let f=0;l.listHeight.push(f);for(let b=0;b<l.listGroup.length;b++){let m=l.listGroup[b];f+=Math.floor(m.clientHeight),l.listHeight.push(f)}},p=f=>{!f&&f!==0||(f<0&&(f=0),f>l.listHeight.length-2&&(f=l.listHeight.length-2),l.codeIndex=f,o.value.scrollTo(0,l.listHeight[f]))},c=f=>{l.scrollStart=!0;let b=u(f.target,"index"),m=f.touches[0];l.touchState.y1=m.pageY,l.anchorIndex=+b,l.codeIndex=+b,p(+b)},v=f=>{let b=f.touches[0];l.touchState.y2=b.pageY;let m=(l.touchState.y2-l.touchState.y1)/e.spaceHeight|0;l.codeIndex=l.anchorIndex+m,p(l.codeIndex)},S=()=>{l.scrollStart=!1},w=(f,b)=>{n.emit("click-item",f,b),l.currentData=b,l.currentKey=f},y=f=>{n.emit("click-index",f)},k=f=>{let b=f.target.scrollTop;const m=l.listHeight;l.scrollY=b;for(let A=0;A<m.length-1;A++){let C=m[A],g=m[A+1];if(l.scrollY>=C&&l.scrollY<g){l.currentIndex=A,l.diff=g-l.scrollY;return}}l.currentIndex=m.length-2};return(0,t.onMounted)(()=>{o.value.addEventListener("scroll",k)}),be({scrollTo:p}),(0,t.watch)(()=>l.listGroup.length,()=>{l.listHeight=[],(0,t.nextTick)(d)}),(0,t.watch)(()=>l.diff,f=>{const b=l.listHeight;let m=f>0&&f<e.titleHeight?f-e.titleHeight:0;l.scrollY+i.value===b[b.length-1]&&m!==0&&(m=0),l.fixedTop!==m&&(l.fixedTop=m)}),(0,t.watch)(()=>l.currentIndex,f=>{n.emit("change",f)}),{classes:a,...(0,t.toRefs)(l),fixedStyle:r,clientHeight:i,setListGroup:s,listview:o,touchStart:c,touchMove:v,touchEnd:S,handleClickItem:w,handleClickIndex:y}}}),Ty={class:"fox-elevator__list__item__code"},Vy=["onClick"],xy=["innerHTML"],$y={class:"fox-elevator__fixed-title"},Ey={class:"fox-elevator__bars__inner"},Dy=["data-index","onClick"];function Iy(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:"fox-elevator__list",ref:"listview",style:(0,t.normalizeStyle)({height:isNaN(+e.height)?e.height:`${e.height}px`})},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,i=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-elevator__list__item",key:i[e.acceptKey],ref_for:!0,ref:e.setListGroup},[(0,t.createElementVNode)("view",Ty,(0,t.toDisplayString)(i[e.acceptKey]),1),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.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===i[e.acceptKey]}]),key:u.id,onClick:s=>e.handleClickItem(i[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,xy))],10,Vy))),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]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:n[1]||(n[1]=(0,t.withModifiers)((...i)=>e.touchMove&&e.touchMove(...i),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[(0,t.createElementVNode)("view",Ey,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.indexList,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-elevator__bars__inner__item",{active:i[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":u,key:i[e.acceptKey],onClick:s=>e.handleClickIndex(i[e.acceptKey])},(0,t.toDisplayString)(i[e.acceptKey]),11,Dy))),128))])],32)],2)}var oa=ae(By,[["render",Iy]]),{componentName:P2,create:qy,scope:Py}=J("pagination"),My=qy({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,pe.useFoxI18n)(Py),l=o(e,["prevText","nextText"]),{modelValue:a,mode:r,showPageSize:i,forceEllipses:u}=(0,t.toRefs)(e),s=(0,t.computed)(()=>{const{pageCount:v,totalItems:S,itemsPerPage:w}=(0,t.toRefs)(e),y=+v.value||Math.ceil(+S.value/+w.value);return Math.max(1,y)}),d=(v,S)=>{v>s.value||v<1||(v!=a.value&&n("update:modelValue",v),S&&n("change",v))},p=(v,S,w=!1)=>({number:v,text:S,active:w}),c=(0,t.computed)(()=>{if(r.value=="simple")return;let v=[];const S=s.value,w=+i.value;let y=1,k=S;const f=S>w;f&&(y=Math.max(a.value-Math.floor(w/2),1),k=y+w-1,k>S&&(k=S,y=k-w+1));for(var b=y;b<=k;b++){const m=p(b,b,a.value==b);v.push(m)}if(f&&w>0&&u.value){if(y>1){const m=p(y-1,"...");v.unshift(m)}if(k<S){const m=p(k+1,"...");v.push(m)}}return v});return(0,t.watchEffect)(()=>{d(a.value,!1)}),{...l,modelValue:a,select:d,countRef:s,mode:r,pages:c,forceEllipses:u}}}),zy={class:"fox-pagination"},Ly={key:0,class:"fox-pagination-contain"},Ry=["onClick"],Fy={key:1,class:"fox-pagination-contain"},Oy={class:"fox-pagination-simple"};function Ky(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",zy,[(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]=i=>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",Ly,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pages,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:u+"pagination",class:(0,t.normalizeClass)(["fox-pagination-item",i.active?"active":""]),onClick:s=>e.select(i.number,!0)},[(0,t.renderSlot)(e.$slots,"page",{item:i},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(i.text),1)])],10,Ry))),128))])):(0,t.createCommentVNode)("",!0),e.mode=="simple"?((0,t.openBlock)(),(0,t.createElementBlock)("view",Fy,[(0,t.createElementVNode)("view",Oy,(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]=i=>e.select(e.modelValue+1,!0))},[(0,t.renderSlot)(e.$slots,"next-text",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.nextText),1)])],2)])}var aa=ae(My,[["render",Ky]]),Uy=(e,n,o,l)=>{const a=(0,t.ref)(),r=(0,t.ref)({width:0,height:0}),i=async()=>{if(o&&o.getEnv()!==o.ENV_TYPE.WEB){let c=await l(a,o);r.value.width=c.width||0,r.value.height=c.height||0}else r.value.width=a.value?.clientWidth||0,r.value.height=a.value?.clientHeight||0};(0,t.onMounted)(()=>{setTimeout(()=>{i()},100)});const u=(0,t.reactive)({offset:0,moving:!1}),s=lt();let d="";const p=(c,v)=>{let S=c;switch(e.direction=="horizontal"?(d=c>0?"right":"left",S=Math.abs(S)/r.value.width*100):(d=v>0?"bottom":"top",S=v,S=Math.abs(S)/r.value?.height*100),S>85&&(S=85),d){case"left":case"top":n.isEnd()&&(S=0,u.moving=!1);break;case"right":case"bottom":S=-S,n.isBegin()&&(S=0,u.moving=!1);break}u.offset=S};return{touchMethods:{onTouchStart(c){e.swipeable&&s.start(c)},onTouchMove(c){e.swipeable&&(s.move(c),u.moving=!0,p(s.deltaX.value,s.deltaY.value),e.direction=="horizontal"&&s.isHorizontal()&&(c.preventDefault(),c.stopPropagation()),e.direction=="vertical"&&s.isVertical()&&(c.preventDefault(),c.stopPropagation()))},onTouchEnd(){if(u.moving)switch(u.moving=!1,d){case"left":case"top":u.offset>35&&n.next();break;case"right":case"bottom":u.offset<-35&&n.prev();break}}},touchState:u,tabsContentRef:a}},Hy=class{title="";titleSlot;paneKey="";disabled=!1;constructor(){}},{create:_y}=J("tabs"),jy=_y({components:{[Yt.name]:Yt,JoySmile:oe.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null);let a;(0,t.provide)("tabsOpiton",{activeKey:(0,t.computed)(()=>e.modelValue||"0"),autoHeight:(0,t.computed)(()=>e.autoHeight),animatedTime:(0,t.computed)(()=>e.animatedTime)});const r=(0,t.ref)([]),i=T=>{T.forEach((V,U)=>{let W=V.type;if(W=W.name||W,W=="fox-tab-pane"){let $=new Hy;if(V.props?.title||V.props?.["pane-key"]||V.props?.paneKey){let P=kt(V.props?.["pane-key"]),M=P=="number"||P=="string"?String(V.props?.["pane-key"]):null,q=kt(V.props?.paneKey),O=q=="number"||q=="string"?String(V.props?.paneKey):null;$.title=V.props?.title,$.paneKey=M||O||String(U),$.disabled=V.props?.disabled}r.value.push($)}else{if(V.children==" ")return;Array.isArray(V.children)&&i(V.children)}})},u=(0,t.ref)(e.modelValue||0),s=T=>{let V=r.value.findIndex(U=>U.paneKey==T);r.value.length==0||V==-1||(u.value=V)},d=(0,t.computed)(()=>e.titleScroll&&e.direction==="vertical"),p=(0,t.ref)(),c=(0,t.ref)([]),v=T=>{const V=p.value,U=c.value;if(!V||!U||!U[u.value])return;const W=U[u.value];let $=0;e.direction==="vertical"?$=W.offsetTop-V.offsetTop+10-(V.offsetHeight-W.offsetHeight)/2:$=W.offsetLeft-(V.offsetWidth-W.offsetWidth)/2,S(V,$,T?0:.3,e.direction)},S=(T,V,U,W)=>{let $=0;const P=W==="horizontal"?T.scrollLeft:T.scrollTop,M=U===0?1:Math.round(U*1e3/16);function q(){W==="horizontal"?T.scrollLeft+=(V-P)/M:T.scrollTop+=(V-P)/M,++$<M&&He(q)}q()},w=(T=o.default?.())=>{r.value=[],T=T?.filter(V=>typeof V.children!="string"),T&&T.length&&i(T),s(e.modelValue),(0,t.nextTick)(()=>{v()})},y=T=>{a=T.fixed};(0,t.watch)(()=>o.default?.(),T=>{w(T)});const k=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;(0,t.watch)(()=>e.modelValue,T=>{if(s(T),v(),a){let V=$e(l.value).top+k(),U=Math.ceil(V-e.top);window.scrollTo({top:U,behavior:"smooth"})}}),(0,t.onMounted)(w),(0,t.onActivated)(w);const f={isBegin:()=>u.value==0,isEnd:()=>u.value==r.value.length-1,next:()=>{u.value+=1,f.updateValue(r.value[u.value])},prev:()=>{u.value-=1,f.updateValue(r.value[u.value])},updateValue:T=>{n("update:modelValue",T.paneKey),n("change",T)},tabChange:(T,V)=>{n("click",T),!(T.disabled||u.value==V)&&(u.value=V,f.updateValue(T))},setTabItemRef:(T,V)=>{c.value[V]=T}},{tabsContentRef:b,touchState:m,touchMethods:A}=Uy(e,f),C=(0,t.computed)(()=>{let T=u.value*100;m.moving&&(T+=m.offset);let V={transform:e.direction=="horizontal"?`translate3d(-${T}%, 0, 0)`:`translate3d( 0,-${T}%, 0)`,transitionDuration:m.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(V={}),V}),g=(0,t.computed)(()=>({background:e.background})),h=(0,t.computed)(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),N=(0,t.computed)(()=>{if(!e.titleGutter)return{};const T=me(e.titleGutter);return e.direction==="vertical"?{marginTop:T,marginBottom:T}:{marginLeft:T,marginRight:T}}),B=(0,t.computed)(()=>o.fixedTitle);return{navRef:p,tabsContentRef:b,titles:r,contentStyle:C,tabsNavStyle:g,titleStyle:N,tabsActiveStyle:h,container:l,getScrollY:d,onStickyScroll:y,...f,...A,hasFixedTitle:B}}}),Wy=["onClick"],Yy={key:0,class:"fox-tabs__titles-fixed-item"},Xy=["onClick"],Qy={key:0,class:"fox-tabs__titles-fixed-item"};function Gy(e,n,o,l,a,r){const i=(0,t.resolveComponent)("JoySmile"),u=(0,t.resolveComponent)("fox-sticky");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:(0,t.normalizeStyle)(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?(0,t.renderSlot)(e.$slots,"titles",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.titles,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:s.paneKey==e.modelValue,disabled:s.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:p=>e.tabChange(s,d),key:s.paneKey},[(0,t.renderSlot)(e.$slots,"title",{title:s.title,paneKey:s.paneKey},()=>[e.type=="line"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-tabs__titles-item__line",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},null,4)):(0,t.createCommentVNode)("",!0),e.type=="smile"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-tabs__titles-item__smile",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},[(0,t.createVNode)(i,{color:e.color},null,8,["color"])],4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},(0,t.toDisplayString)(s.title),3)])],14,Wy))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Yy,[(0,t.renderSlot)(e.$slots,"fixedTitle")])):(0,t.createCommentVNode)("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:(0,t.normalizeStyle)(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?(0,t.renderSlot)(e.$slots,"titles",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.titles,(s,d)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item",{active:s.paneKey==e.modelValue,disabled:s.disabled}]),style:(0,t.normalizeStyle)(e.titleStyle),onClick:p=>e.tabChange(s,d),key:s.paneKey,ref_for:!0,ref:p=>e.setTabItemRef(p,d)},[(0,t.renderSlot)(e.$slots,"title",{title:s.title,paneKey:s.paneKey},()=>[e.type=="line"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:"fox-tabs__titles-item__line",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},null,4)):(0,t.createCommentVNode)("",!0),e.type=="smile"?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-tabs__titles-item__smile",style:(0,t.normalizeStyle)(e.tabsActiveStyle)},[(0,t.createVNode)(i,{color:e.color},null,8,["color"])],4)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},(0,t.toDisplayString)(s.title),3)])],14,Xy))),128)),e.hasFixedTitle?((0,t.openBlock)(),(0,t.createElementBlock)("view",Qy,[(0,t.renderSlot)(e.$slots,"fixedTitle")])):(0,t.createCommentVNode)("",!0)],64))],6)),(0,t.createElementVNode)("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:(0,t.normalizeStyle)(e.contentStyle),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[(0,t.renderSlot)(e.$slots,"default")],36)],2)}var ra=ae(jy,[["render",Gy]]),{create:Zy}=J("tab-pane"),Jy=Zy({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const o=(0,t.inject)("tabsOpiton"),l=(0,t.computed)(()=>({display:o.animatedTime.value==0&&e.paneKey!=o.activeKey.value?"none":void 0}));return{...o,paneStyle:l}}});function eb(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:(0,t.normalizeStyle)(e.paneStyle)},[(0,t.renderSlot)(e.$slots,"default")],6)}var ia=ae(Jy,[["render",eb]]),{componentName:xr,create:tb}=J("indicator"),nb=tb({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 lb(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.size,i=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:i},[i===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(i)||i),3)):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var sa=ae(nb,[["render",lb]]),{componentName:ob,create:ab}=J("side-navbar"),rb=ab({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)(()=>({[ob]:!0})),a=(i,u=1)=>{for(let s=0;s<i.length;s++){let d=i[s];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*u+"px",d.className.includes("fox-side-navbar-item")||a(Array.from(d.children[1].children),++o.count))}o.count--},r=()=>{let i=n.value.childNodes;i.length&&(i=Array.from(i).filter(u=>u.nodeType!==3).map(u=>u),a(i))};return(0,t.onMounted)(()=>{r(),o.observer=new MutationObserver(function(){o.count=1,r()}),o.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...(0,t.toRefs)(o),list:n,classes:l}}}),ib={class:"fox-side-navbar__content"},sb={class:"fox-side-navbar__content__list",ref:"list"};function ub(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",ib,[(0,t.createElementVNode)("view",sb,[(0,t.renderSlot)(e.$slots,"default")],512)])],2)}var ua=ae(rb,[["render",ub]]),{componentName:cb,create:db}=J("side-navbar-item"),fb=db({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:(0,t.computed)(()=>({[cb]:!0})),handleClick:()=>{n.emit("click")}})}),mb=["ikey"],pb={class:"fox-side-navbar-item__title"};function hb(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(0,t.withModifiers)((...i)=>e.handleClick&&e.handleClick(...i),["stop"])),ikey:e.ikey},[(0,t.createElementVNode)("span",pb,(0,t.toDisplayString)(e.title),1)],10,mb)}var ca=ae(fb,[["render",hb]]),{componentName:vb,create:gb}=J("sub-side-navbar"),yb=gb({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:oe.ArrowDown2,ArrowUp2:oe.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const o=(0,t.reactive)({direction:""}),l=(0,t.computed)(()=>({[vb]:!0})),a=(0,t.computed)(()=>({height:o.direction?"0px":"auto"})),r=()=>{n.emit("title-click"),o.direction=o.direction?"":"up"};return(0,t.onMounted)(()=>{o.direction=e.open?"":"up"}),{...(0,t.toRefs)(o),classes:l,style:a,handleClick:r}}}),bb=["ikey"],Sb={class:"fox-sub-side-navbar__title__text"},kb={class:"fox-sub-side-navbar__title__icon"};function wb(e,n,o,l,a,r){const i=(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",Sb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("span",kb,[e.direction?((0,t.openBlock)(),(0,t.createBlock)(u,{key:1})):((0,t.openBlock)(),(0,t.createBlock)(i,{key:0}))])]),(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,bb)}var da=ae(yb,[["render",wb]]),{componentName:Cb,create:Nb}=J("range"),Ab=Nb({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const o=(0,t.ref)(0);let l,a;const r=(0,t.ref)(),i=(0,t.ref)(),u=lt(),s=(0,t.computed)(()=>{const{marks:$,max:P,min:M}=e;return Object.keys($).map(parseFloat).sort((q,O)=>q-O).filter(q=>{const O=de(q);return O>=de(M)&&O<=de(P)})}),d=(0,t.computed)(()=>Number(e.max)-Number(e.min)),p=(0,t.computed)(()=>{const $=Cb;return{[$]:!0,[`${$}-disabled`]:e.disabled,[`${$}-vertical`]:e.vertical,[`${$}-show-number`]:!e.hiddenRange}}),c=(0,t.computed)(()=>{const $="fox-range-container";return{[$]:!0,[`${$}-vertical`]:e.vertical}}),v=(0,t.computed)(()=>({background:e.inactiveColor})),S=(0,t.computed)(()=>({borderColor:e.buttonColor})),w=$=>!!e.range&&Array.isArray($),y=()=>{const{modelValue:$,min:P}=e;return w($)?`${($[1]-$[0])*100/d.value}%`:`${($-Number(P))*100/d.value}%`},k=()=>{const{modelValue:$,min:P}=e;return w($)?`${($[0]-Number(P))*100/d.value}%`:"0%"},f=(0,t.computed)(()=>e.vertical?{height:y(),top:k(),background:e.activeColor,transition:i.value?"none":void 0}:{width:y(),left:k(),background:e.activeColor,transition:i.value?"none":void 0}),b=$=>{const P="fox-range-mark",{modelValue:M,max:q,min:O}=e;let H=Number(O),I=Number(q);if(e.range){const[te,_]=M;H=te,I=_}else I=M;let G=$<=I&&$>=H;return{[`${P}-text`]:!0,[`${P}-text-active`]:G}},m=$=>{const{min:P,vertical:M}=e;let q={left:`${($-Number(P))/d.value*100}%`};return M&&(q={top:`${($-Number(P))/d.value*100}%`}),q},A=$=>{const{modelValue:P,max:M,min:q}=e;let O=Number(q),H=Number(M);if(e.range){const[I,G]=P;O=I,H=G}return{background:$<=H&&$>=O?e.activeColor:e.inactiveColor}},C=$=>{const{min:P,max:M,step:q}=e;return $=Math.max(+P,Math.min($,+M)),Math.round($/+q)*+q},g=($,P)=>JSON.stringify($)===JSON.stringify(P),h=$=>$[0]>$[1]?$.slice(0).reverse():$,N=($,P)=>{w($)?$=h($).map(C):$=C($),g($,e.modelValue)||n("update:modelValue",$),P&&!g($,l)&&n("change",$)},B=$=>{if(e.disabled)return;const{min:P,modelValue:M}=e,q=$e(r);let O=$.clientX-q.left,H=q.width;e.vertical&&(O=$.clientY-q.top,H=q.height);const I=Number(P)+O/H*d.value;if(w(M)){const[G,te]=M;I<=(G+te)/2?N([I,te],!0):N([G,I],!0)}else N(I,!0)},T=$=>{e.disabled||(u.start($),a=e.modelValue,w(a)?l=a.map(C):l=C(a),i.value="start")},V=$=>{if(e.disabled)return;i.value==="start"&&n("drag-start"),u.move($),i.value="draging";const P=$e(r);let M=u.deltaX.value,q=P.width,O=M/q*d.value;e.vertical&&(M=u.deltaY.value,q=P.height,O=M/q*d.value),w(l)?a[o.value]=l[o.value]+O:a=l+O,N(a),$.stopPropagation(),$.preventDefault()},U=()=>{e.disabled||(i.value==="draging"&&(N(a,!0),n("drag-end")),i.value="")},W=$=>xn(e.modelValue)&&typeof $=="number"?e.modelValue[$]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:v,buttonStyle:S,onClick:B,onTouchStart:T,onTouchMove:V,onTouchEnd:U,...(0,t.toRefs)(e),barStyle:f,curValue:W,buttonIndex:o,containerClasses:c,markClassName:b,marksStyle:m,marksList:s,tickStyle:A}}}),Bb={key:0,class:"fox-range-min"},Tb={key:0,class:"fox-range-mark"},Vb=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],xb={key:0,class:"number"},$b=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Eb={key:0,class:"number"},Db={key:1,class:"fox-range-max"};function Ib(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.containerClasses)},[e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",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)((...i)=>e.onClick&&e.onClick(...i),["stop"]))},[e.marksList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)("view",Tb,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.marksList,i=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:i,class:(0,t.normalizeClass)(e.markClassName(i)),style:(0,t.normalizeStyle)(e.marksStyle(i))},[(0,t.createTextVNode)((0,t.toDisplayString)(i)+" ",1),(0,t.createElementVNode)("span",{class:"fox-range-tick",style:(0,t.normalizeStyle)(e.tickStyle(i))},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],i=>(0,t.createElementVNode)("view",{key:i,role:"slider",class:(0,t.normalizeClass)({"fox-range-button-wrapper-left":i==0,"fox-range-button-wrapper-right":i==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(i),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:(0,t.withModifiers)(u=>{typeof i=="number"&&(e.buttonIndex=i),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",xb,(0,t.toDisplayString)(e.curValue(i)),1))],4))],42,Vb)),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)(i=>{e.onTouchStart(i)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=(0,t.withModifiers)((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=(0,t.withModifiers)((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:n[8]||(n[8]=i=>i.stopPropagation())},[e.$slots.button?(0,t.renderSlot)(e.$slots,"button",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-range-button",style:(0,t.normalizeStyle)(e.buttonStyle)},[e.hiddenTag?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Eb,(0,t.toDisplayString)(e.curValue()),1))],4))],40,$b))],4)],6),e.hiddenRange?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",Db,(0,t.toDisplayString)(+e.max),1))],2)}var Xt=ae(Ab,[["render",Ib]]),{create:qb,scope:Pb}=J("short-password"),Mb=qb({components:{[ye.name]:ye,Tips:oe.Tips},props:{title:{type:String},desc:{type:String},tips:{type:String},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:o}=(0,pe.useFoxI18n)(Pb),l=o(e,["title","desc","tips"]),a=(0,t.ref)(e.modelValue),r=(0,t.computed)(()=>d(Number(e.length))),i=(0,t.ref)(e.visible),u=c=>{c.stopPropagation(),n("focus")};(0,t.watch)(()=>e.visible,c=>{i.value=c}),(0,t.watch)(()=>e.modelValue,c=>{a.value=c,String(c).length===r.value&&n("complete",c)});const s=()=>{n("update:visible",!1),n("close")},d=c=>Math.min(Math.max(4,c),6);return{comLen:r,realInput:a,onTouchStart:u,range:d,close:s,onTips:()=>{n("tips")},show:i,...l}}}),zb={class:"fox-short-password-title"},Lb={class:"fox-short-password-subtitle"},Rb={class:"fox-short-password-wrapper"},Fb={key:0,class:"fox-short-password__item-icon"},Ob={class:"fox-short-password__message"},Kb={class:"fox-short-password--error"},Ub={key:0,class:"fox-short-password--forget"};function Hb(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Tips"),u=(0,t.resolveComponent)("fox-popup");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",zb,(0,t.toDisplayString)(e.title),1),(0,t.createElementVNode)("view",Lb,(0,t.toDisplayString)(e.desc),1),(0,t.createElementVNode)("div",Rb,[(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",Fb)):(0,t.createCommentVNode)("",!0)]))),128))],32)]),(0,t.createElementVNode)("view",Ob,[(0,t.createElementVNode)("view",Kb,(0,t.toDisplayString)(e.errorMsg),1),e.tips?((0,t.openBlock)(),(0,t.createElementBlock)("view",Ub,[(0,t.createVNode)(i,{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=ae(Mb,[["render",Hb]]),_b=class{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload},jb=class{options;constructor(e){this.options=e}upload(){const e=this.options,n=new XMLHttpRequest;if(n.timeout=e.timeout,n.upload){n.upload.addEventListener("progress",o=>{e.onProgress?.(o,e)},!1),n.onreadystatechange=()=>{n.readyState===4&&(n.status==e.xhrState?e.onSuccess?.(n.responseText,e):e.onFailure?.(n.responseText,e))},n.withCredentials=e.withCredentials,n.open(e.method,e.url,!0);for(const[o,l]of Object.entries(e.headers))n.setRequestHeader(o,l);e.onStart?.(e),e.beforeXhrUpload?e.beforeXhrUpload(n,e):n.send(e.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}},Wb=class{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}},Fi=(e,{args:n=[],done:o,canceled:l})=>{if(e){const a=e.apply(null,n);bt(a)?a.then(r=>{r?o(r):l&&l()}).catch(()=>{}):a?o():l&&l()}else o()},{create:Yb}=J("progress"),Xb=Yb({components:{Checked:oe.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!(0,t.useSlots)().default,o=(0,t.ref)(e.strokeWidth+"px"),l=(0,t.ref)(),a=(0,t.ref)(),r=(0,t.computed)(()=>{const s=de(e.percentage);return s>=100?100:s}),i=(0,t.computed)(()=>({width:r.value+"%",background:e.strokeColor||""})),u=(0,t.computed)(()=>({color:e.textColor||""}));return(0,t.onMounted)(()=>{}),{height:o,percentage:r,bgStyle:i,textStyle:u,progressOuter:l,insideText:a,slotDefault:n}}}),Qb={class:"fox-progress"},Gb={key:0,class:"fox-progress-text"};function Zb(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Checked");return(0,t.openBlock)(),(0,t.createElementBlock)("div",Qb,[(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",Gb,[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)(i,{width:"15px",height:"15px",color:"#439422"})]):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)])}var Qt=ae(Xb,[["render",Zb]]),{componentName:Jb,create:e1,scope:t1}=J("uploader"),n1=e1({components:{[Qt.name]:Qt,Photograph:oe.Photograph,Failure:oe.Failure,Loading:oe.Loading,Del:oe.Del,Link:oe.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:o}=(0,pe.useFoxI18n)(t1),l=(0,t.reactive)(e.fileList);let a=[];const r=(0,t.computed)(()=>({[Jb]:!0})),i=()=>{let b={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(b.capture="camera"),(0,t.h)("input",b)},u=b=>{b.value=""},s=b=>{n("file-item-click",{fileItem:b})},d=(b,m)=>{const A=new _b;A.url=e.url,A.formData=b.formData,A.timeout=e.timeout*1,A.method=e.method,A.xhrState=e.xhrState,A.headers=e.headers,A.withCredentials=e.withCredentials,A.beforeXhrUpload=e.beforeXhrUpload;try{A.sourceFile=b.formData.get(e.name)}catch{}A.onStart=g=>{b.status="ready",b.message=o("readyUpload"),p(m),n("start",g)},A.onProgress=(g,h)=>{b.status="uploading",b.message=o("uploading"),b.percentage=(g.loaded/g.total*100).toFixed(0),n("progress",{event:g,option:h,percentage:b.percentage})},A.onSuccess=(g,h)=>{b.status="success",b.message=o("success"),n("success",{responseText:g,option:h,fileItem:b}),n("update:fileList",l)},A.onFailure=(g,h)=>{b.status="error",b.message=o("error"),n("failure",{responseText:g,option:h,fileItem:b})};let C=new jb(A);e.autoUpload?C.upload():a.push(new Promise((g,h)=>{g(C)}))},p=(b=-1)=>{b>-1?a.splice(b,1):(a=[],l.splice(0,l.length))},c=()=>{Promise.all(a).then(b=>{b.forEach(m=>m.upload())})},v=b=>{b.forEach((m,A)=>{const C=new FormData;for(const[h,N]of Object.entries(e.data))C.append(h,N);C.append(e.name,m);const g=(0,t.reactive)(new Wb);if(g.name=m.name,g.status="ready",g.type=m.type,g.formData=C,g.message=o("waitingUpload"),d(g,A),e.isPreview&&m.type.includes("image")){const h=new FileReader;h.onload=N=>{g.url=N.target.result,l.push(g)},h.readAsDataURL(m)}else l.push(g)})},S=b=>{const m=e.maximum*1,A=e.maximize*1,C=new Array;b=b.filter(h=>h.size>A?(C.push(h),!1):!0),C.length&&n("oversize",C);let g=b.length+l.length;return g>m&&b.splice(b.length-(g-m)),b},w=(b,m)=>{l.splice(m,1),n("delete",{file:b,fileList:l,index:m})},y=(b,m)=>{p(m),Fi(e.beforeDelete,{args:[b,l],done:()=>w(b,m)})},k=b=>{if(e.disabled)return;const m=b.target;let{files:A}=m;e.beforeUpload?e.beforeUpload(A).then(C=>f(C)):f(A),n("change",{fileList:l,event:b}),e.clearInput&&u(m)},f=b=>{v(S(new Array().slice.call(b)))};return{onChange:k,onDelete:y,fileList:l,classes:r,fileItemClick:s,clearUploadQueue:p,submit:c,renderInput:i}}}),l1={key:0,class:"fox-uploader__slot"},o1={key:0,class:"fox-uploader__preview-img"},a1={key:0,class:"fox-uploader__preview__progress"},r1={class:"fox-uploader__preview__progress__msg"},i1=["onClick"],s1=["onClick","src"],u1={key:3,class:"fox-uploader__preview-img__file"},c1=["onClick"],d1={class:"file__name_tips"},f1={class:"tips"},m1={key:1,class:"fox-uploader__preview-list"},p1=["onClick"],h1={class:"file__name_tips"};function v1(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Failure"),u=(0,t.resolveComponent)("Loading"),s=(0,t.resolveComponent)("Link"),d=(0,t.resolveComponent)("Del"),p=(0,t.resolveComponent)("fox-progress"),c=(0,t.resolveComponent)("Photograph");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",l1,[(0,t.renderSlot)(e.$slots,"default"),Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.fileList,(v,S)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(["fox-uploader__preview",[e.listType]]),key:v.uid},[e.listType=="picture"&&!e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("view",o1,[v.status!="success"?((0,t.openBlock)(),(0,t.createElementBlock)("view",a1,[v.status!="ready"?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[v.status=="error"?((0,t.openBlock)(),(0,t.createBlock)(i,{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",r1,(0,t.toDisplayString)(v.message),1)])):(0,t.createCommentVNode)("",!0),e.isDeletable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"close",onClick:w=>e.onDelete(v,S)},[(0,t.renderSlot)(e.$slots,"delete-icon",{},()=>[(0,t.createVNode)(i)])],8,i1)):(0,t.createCommentVNode)("",!0),v?.type?.includes("image")&&v.url?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,class:"fox-uploader__preview-img__c",onClick:w=>e.fileItemClick(v),src:v.url},null,8,s1)):((0,t.openBlock)(),(0,t.createElementBlock)("view",u1,[(0,t.createElementVNode)("view",{onClick:w=>e.fileItemClick(v),class:"fox-uploader__preview-img__file__name"},[(0,t.createElementVNode)("view",d1,(0,t.toDisplayString)(v.name),1)],8,c1)])),(0,t.createElementVNode)("view",f1,(0,t.toDisplayString)(v.name),1)])):e.listType=="list"?((0,t.openBlock)(),(0,t.createElementBlock)("view",m1,[(0,t.createElementVNode)("view",{onClick:w=>e.fileItemClick(v),class:(0,t.normalizeClass)(["fox-uploader__preview-img__file__name",[v.status]])},[(0,t.createVNode)(s,{class:"fox-uploader__preview-img__file__link"}),(0,t.createElementVNode)("view",h1,(0,t.toDisplayString)(v.name),1),e.isDeletable?((0,t.openBlock)(),(0,t.createBlock)(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:w=>e.onDelete(v,S)},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],10,p1),v.status=="uploading"?((0,t.openBlock)(),(0,t.createBlock)(p,{key:0,size:"small",percentage:v.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(["fox-uploader__upload",[e.listType]])},[(0,t.renderSlot)(e.$slots,"upload-icon",{},()=>[(0,t.createVNode)(c,{color:"#808080"})]),((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):(0,t.createCommentVNode)("",!0)],2)}var ma=ae(n1,[["render",v1]]),g1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5cc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3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:b1,scope:S1}=J("number-keyboard"),k1=b1({components:{[ye.name]:ye},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,pe.useFoxI18n)(S1),l=o(e,["confirmText"]),a=(0,t.ref)(void 0),r=(0,t.ref)(e.visible),i=(0,t.ref)();function u(){const{customKey:f}=e;let b={id:"lock",type:"lock"},m=Array.isArray(f)?f:[f];return m.length===1&&(b={id:m[0],type:"custom"}),[...s(),b,{id:0,type:"number"},{id:"delete",type:"delete"}]}function s(){const f=[];for(let b=1;b<=9;b++)f.push({id:b,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function d(){const f=s(),{customKey:b}=e;let m=Array.isArray(b)?b:[b];return m.length>2&&(m=[m[0],m[1]]),m.length==2&&e.title&&e.type!="rightColumn"&&(m=[m[0]]),m.length===1?e.title&&e.type!="rightColumn"?f.push({id:m[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:m[0],type:"custom"}):m.length===2&&f.push({id:m[0],type:"custom"},{id:0,type:"number"},{id:m[1],type:"custom"}),f}const p=(0,t.computed)(()=>e.type=="rightColumn"||e.title!=""?d():u()),c=()=>{e.visible&&n("blur")},v=f=>{const b=i.value;b&&!b.contains(f.target)&&c()};(0,t.watch)(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",v,!1):window.removeEventListener("touchstart",v,!1)});function S(f,b){b.stopPropagation(),a.value=f.id,(f.type=="number"||f.type=="custom")&&(n("input",f.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+f.id)),f.type=="lock"&&k(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function w(f){f.stopPropagation()}function y(f){f.preventDefault(),a.value=void 0}function k(){n("update:visible",!1),n("close")}return{...l,delImg:g1,lockImg:y1,clickKeyIndex:a,defaultKey:u,closeBoard:k,onTouchEnd:y,onTouchMove:w,onTouchstart:S,keysList:p,genCustomKeys:d,getBasicKeys:s,root:i,show:r}}}),w1={ref:"root"},C1={class:"fox-number-keyboard"},N1={key:0,class:"fox-number-keyboard__header"},A1={class:"fox-number-keyboard__title"},B1={class:"fox-number-keyboard__body"},T1={class:"fox-number-keyboard__keys"},V1=["onTouchstart"],x1=["src"],$1=["src"],E1={key:0,class:"fox-number-keyboard__sidebar"},D1={class:"fox-key__wrapper"},I1=["src"];function q1(e,n,o,l,a,r){const i=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createElementBlock)("div",w1,[(0,t.createVNode)(i,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=u=>e.show=u),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",C1,[e.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",N1,[(0,t.createElementVNode)("h3",A1,(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",T1,[((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,x1)):(0,t.createCommentVNode)("",!0),u.type=="delete"?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,src:e.delImg},null,8,$1)):(0,t.createCommentVNode)("",!0)],42,V1)],2))),128))]),e.type=="rightColumn"?((0,t.openBlock)(),(0,t.createElementBlock)("div",E1,[(0,t.createElementVNode)("div",D1,[(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,I1)],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=ae(k1,[["render",q1]]),{componentName:P1,create:M1}=J("swipe"),z1=M1({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n}){const o=(0,t.computed)(()=>({[P1]:!0})),l=b=>b.value?.clientWidth||0,a=(0,t.ref)(),r=(0,t.computed)(()=>l(a)),i=(0,t.ref)(),u=(0,t.computed)(()=>l(i));let s=!1,d="",p="";const c=(0,t.reactive)({offset:0,moving:!1}),v=(b="")=>{s=!0,b&&(c.offset=b==="left"?-u.value:r.value),n("open",{name:e.name,position:d||b})},S=()=>{c.offset=0,s=!1,n("close",{name:e.name,position:d})},w=(0,t.computed)(()=>({transform:`translate3d(${c.offset}px, 0, 0)`})),y=b=>{d=b>0?"right":"left";let m=b;switch(d){case"left":s&&p===d?m=-u.value:m=Math.abs(b)>u.value?-u.value:b;break;case"right":s&&p===d?m=r.value:m=Math.abs(b)>r.value?r.value:b;break}c.offset=m},k=lt(),f={onTouchStart(b){e.disabled||k.start(b)},onTouchMove(b){e.disabled||(k.move(b),k.isHorizontal()&&(c.moving=!0,y(k.deltaX.value),e.touchMovePreventDefault&&b.preventDefault(),e.touchMoveStopPropagation&&b.stopPropagation()))},onTouchEnd(){if(c.moving)switch(c.moving=!1,p=d,d){case"left":Math.abs(c.offset)<=u.value/2?S():(c.offset=-u.value,v());break;case"right":Math.abs(c.offset)<=r.value/2?S():(c.offset=r.value,v());break}}};return be({open:v,close:S}),{classes:o,touchStyle:w,...f,leftRef:a,rightRef:i,open:v,close:S}}}),L1={class:"fox-swipe__left",ref:"leftRef"},R1={class:"fox-swipe__content"},F1={class:"fox-swipe__right",ref:"rightRef"};function O1(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.touchStyle),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[(0,t.createElementVNode)("view",L1,[(0,t.renderSlot)(e.$slots,"left")],512),(0,t.createElementVNode)("view",R1,[(0,t.renderSlot)(e.$slots,"default")]),(0,t.createElementVNode)("view",F1,[(0,t.renderSlot)(e.$slots,"right")],512)],38)}var ha=ae(z1,[["render",O1]]),{componentName:K1,create:U1}=J("action-sheet"),H1=U1({components:{Popup:ye,Loading:oe.Loading},props:{...Ze,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)(()=>({[K1]:!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}}}),_1={key:0,class:"fox-action-sheet__title"},j1={key:1},W1={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},Y1={key:1,class:"fox-action-sheet__menu"},X1=["onClick"],Q1={key:1},G1={class:"fox-action-sheet__subdesc"};function Z1(e,n,o,l,a,r){const i=(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",_1,(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",j1,[e.description?((0,t.openBlock)(),(0,t.createElementBlock)("view",W1,(0,t.toDisplayString)(e.description),1)):(0,t.createCommentVNode)("",!0),e.menuItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("view",Y1,[((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:p=>e.chooseItem(s,d)},[s.loading?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,name:"loading"})):((0,t.openBlock)(),(0,t.createElementBlock)("view",Q1,(0,t.toDisplayString)(s[e.optionTag]),1)),(0,t.createElementVNode)("view",G1,(0,t.toDisplayString)(s[e.optionSubTag]),1)],14,X1))),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=ae(H1,[["render",Z1]]),{componentName:J1,create:eS}=J("backtop"),tS=eS({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:o}){const l=(0,t.reactive)({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),a=(0,t.computed)(()=>({[J1]:!0,show:l.backTop})),r=(0,t.computed)(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function i(){l.scrollEl instanceof Window?l.scrollTop=l.scrollEl.pageYOffset:l.scrollTop=l.scrollEl.scrollTop,l.backTop=l.scrollTop>=e.distance}function u(w=0){l.scrollEl instanceof Window?window.scrollTo(0,w):l.scrollEl.scrollTop=w}function s(){let w=Xe(function y(){var k=e.duration-Math.max(0,l.startTime-+new Date+e.duration),f=k*-l.scrollTop/e.duration+l.scrollTop;u(f),w=Xe(y),(k==e.duration||f==0)&&Dr(w)})}function d(){l.scrollEl.addEventListener("scroll",i,!1),l.scrollEl.addEventListener("resize",i,!1)}function p(){l.scrollEl.removeEventListener("scroll",i,!1),l.scrollEl.removeEventListener("resize",i,!1)}function c(w){l.startTime=+new Date,e.isAnimation&&e.duration>0?s():u(),n("click",w)}function v(){S.value?l.scrollEl=S.value.el:e.elId&&document.getElementById(e.elId)&&(l.scrollEl=document.getElementById(e.elId)),d()}(0,t.onMounted)(()=>{e.distance==0&&(l.backTop=!0),v()}),(0,t.onUnmounted)(()=>{p()}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1,v())}),(0,t.onDeactivated)(()=>{l.keepAlive=!0,p()});const S=(0,t.computed)(()=>{if(typeof o.content=="function"){const w=o.content();return Array.isArray(w)?w[0]:w}return null});return()=>{const w=[];S.value&&w.push(S.value);const y=[];if(typeof o.default=="function")y.push(o.default());else{const f=(0,t.h)(oe.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});y.push(f)}const k=(0,t.h)("div",{class:a.value,style:r.value,onClick:c},y);return w.push(k),w}}}),ga=tS,{componentName:nS,create:lS}=J("drag"),oS=lS({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.reactive)({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),a=(0,t.computed)(()=>({[nS]:!0}));function r(){const c=document.documentElement;l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight,l.screenWidth=c.clientWidth,l.screenHeight=c.clientHeight}function i(c){l.boundary.left?+c.style.left.split("px")[0]>l.boundary.left?(c.style.left=+c.style.left.split("px")[0]-10+"px",He(()=>{i(c)})):c.style.left=`${l.boundary.left}px`:+c.style.left.split("px")[0]>10?(c.style.left=+c.style.left.split("px")[0]-10+"px",He(()=>{i(c)})):c.style.left="0px"}function u(c,v){v-parseInt(c.style.left.split("px")[0])>10?(c.style.left=parseInt(c.style.left.split("px")[0])+10+"px",He(()=>{u(c,v)})):c.style.left=v+"px"}function s(c){c.preventDefault();const v=c.currentTarget;if(c.targetTouches.length===1){const S=c.targetTouches[0];l.nx=S.clientX-l.position.x,l.ny=S.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const w=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>w?l.xPum=w:l.xPum<=l.boundary.left&&(l.xPum=l.boundary.left),l.yPum<l.boundary.top?l.yPum=l.boundary.top:l.yPum>l.screenHeight-l.elHeight-l.boundary.bottom&&(l.yPum=l.screenHeight-l.elHeight-l.boundary.bottom),e.direction!="y"&&(v.style.left=l.xPum+"px"),e.direction!="x"&&(v.style.top=l.yPum+"px")}}function d(c){const v=c.currentTarget;let S=c.changedTouches[0].clientX;const w=l.screenWidth-l.elWidth-l.boundary.right;S>w?S=w:S<l.boundary.left?S=l.boundary.left:S=S<l.screenWidth/2?l.boundary.left:w,e.direction!="y"&&e.attract&&(S<l.screenWidth/2?He(()=>{i(v)}):He(()=>{u(v,w)})),e.direction!="x"&&(v.style.top=l.yPum+"px")}function p(c){const v=c.currentTarget,S=c.touches[0],w=c.targetTouches[0];l.startTop=v.offsetTop,l.startLeft=v.offsetLeft,l.position.x=S.clientX,l.position.y=S.clientY,l.nx=w.clientX-l.position.x,l.ny=w.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return(0,t.onMounted)(()=>{r(),l.boundary=e.boundary}),(0,t.onActivated)(()=>{l.keepAlive&&(l.keepAlive=!1)}),(0,t.onDeactivated)(()=>{l.keepAlive=!0;const c=o;c.value.removeEventListener("touchstart",p),c.value.removeEventListener("touchmove",s),c.value.removeEventListener("touchend",d)}),{classes:a,myDrag:o,touchStart:p,touchMove:s,touchEnd:d}}});function aS(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=i=>e.touchStart(i)),onTouchmove:n[1]||(n[1]=i=>e.touchMove(i)),onTouchend:n[2]||(n[2]=i=>e.touchEnd(i))},[(0,t.renderSlot)(e.$slots,"default")],34)}var ya=ae(oS,[["render",aS]]),rS={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}},iS=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function sS(e,n,o,l,a){return{props:{...Ze,...rS},setup(r,{attrs:i,slots:u,emit:s}){const{toLocaleRefs:d}=(0,pe.useFoxI18n)(n),p=d(r,["confirmText","cancelText"]),c=e,v=(0,t.ref)(r.visible);(0,t.watch)(()=>r.visible,g=>{v.value!==g&&(v.value=g,g&&s("opened"))});const S=g=>{v.value=g,s("update:visible",g),s("update",g)},w=g=>{if(s(g),!(g==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const h=r.beforeClose(g);bt(h)?h.then(N=>{N&&(S(!1),s("closed",g))}):h===!0&&(S(!1),s("closed",g))}else S(!1),s("closed",g)},y=()=>{w("confirm")},k=()=>{w("cancel")},f=()=>{w("close")},b=(g,h)=>iS(g)?(h.src=g,(0,t.h)("img",h)):typeof g=="string"?(Array.isArray(h.class)?h.class.push(g):h.class&&typeof h.class=="object"?h[`${g}`]=!0:typeof h.class=="string"?h.class=`${h.class}, ${g}`:h.class=g,(0,t.h)(r.tag,h)):(0,t.h)(g,h),m=()=>{const g=[];if(u.header){const h=u.header();g.push(h)}else{if(r.title){const h=(0,t.h)("view",{class:`${c}__header-title`},[r.title]);g.push(h)}if(r.showClose){const h={class:[`${c}__header-close-icon`],onClick:f},N=b(r.closeIcon??a,h);g.push(N)}}return g.length===0?null:(0,t.h)("view",{class:[`${c}__header`]},g)},A=()=>{const g=[];if(u.default)g.push(u.default());else{const h={class:[`${c}__content`]};if(r.textAlign&&h.class.push(r.textAlign),typeof r.content=="string"){h.innerHTML=r.content;const N=(0,t.h)("view",h);g.push(N)}else if(typeof r.content=="function"){const N=(0,t.h)("view",h,[r.content()]);g.push(N)}else{const N=(0,t.h)("view",h,[r.content]);g.push(N)}}return g.length===0?null:(0,t.h)("view",{class:[`${c}__body`]},g)},C=()=>{if(!r.showFooter)return null;const g=[];if(u.footer)g.push(u.footer());else if(r.plain){if(r.showCancelButton){const h={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},onClick:k};r.cancelButtonClass&&h.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(h.style,r.cancleButtonStyle);const N=(0,t.h)("view",h,[r.cancelButtonText??p.cancelText.value]);g.push(N)}if(r.showConfirmButton){const h={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},onClick:y};r.confirmButtonClass&&h.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(h.style,r.confirmButtonStyle);const N=(0,t.h)("view",h,[r.confirmButtonText??p.confirmText.value]);g.push(N)}}else{if(r.showCancelButton){const h={class:[`${c}__footer-button`,`${c}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:k};r.cancelButtonClass&&h.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(h.style,r.cancleButtonStyle);const N=(0,t.h)(l,h,{default:()=>[r.cancelButtonText??p.cancelText.value]});g.push(N)}if(r.showConfirmButton){const h={class:[`${c}__footer-button`,`${c}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:y};r.confirmButtonClass&&h.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(h.style,r.confirmButtonStyle);const N=(0,t.h)(l,h,{default:()=>[r.confirmButtonText??p.confirmText.value]});g.push(N)}}return g.length===0?null:(0,t.h)("view",{class:[`${c}__footer`,`${c}__footer--${r.footerDirection}`]},g)};return()=>{const g=[],h=m();h&&g.push(h);const N=A();N&&g.push(N);const B=C();B&&g.push(B);const T=(0,t.h)("view",{class:{[`${c}`]:!0,[`${c}--plain`]:r.plain}},g),V=[`${c}__popup`];r.popClass&&V.push(r.popClass);const U={};return r.width&&(U.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(U.height=typeof r.height=="number"?`${r.height}px`:r.height),(0,t.h)(o,{...ve(r,Ze),popClass:V.join(" "),style:U,visible:v.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":S,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay},{default:()=>T})}}}}var{componentName:uS,create:cS,scope:dS}=J("dialog"),fS=cS(sS(uS,dS,ye,ut,oe.Close)),Oi=fS,mS=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},pS=class{options=new mS;constructor(e){let n=Object.assign(this.options,e),o=document.body,l=n.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=n.teleport);const a=document.createElement("view"),r=`dialog-${n.id}`;a.id=r;const i=(0,t.createVNode)({setup(){return n.onUpdate=u=>{if(u===!1){const s=document.querySelector(`#${r}`);s&&s.parentNode?.removeChild(s)}},n?.onOpened&&n?.onOpened(),()=>(0,t.h)(Oi,n)}});o.appendChild(a),(0,t.render)(i,a)}},Gt=function(e){return new pS(e)};Gt.install=e=>{e.use(Oi),e.config.globalProperties.$dialog=Gt};var hS={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}},vS=(e,n,o)=>({props:{...hS},emits:["change","refresh","update:modelValue"],setup(l,{emit:a,slots:r}){const{toLocaleRefs:i}=(0,pe.useFoxI18n)(n),u=i(l,["pullingText","loosingText","loadingText"]),s=nl(),d=(0,t.ref)(),p=Pi(d),c=(0,t.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=(0,t.computed)(()=>({[e]:!0})),S=(0,t.computed)(()=>{switch(c.status){case"pulling":return r.pulling?"":u.pullingText.value;case"loosing":return r.loosing?"":u.loosingText.value;case"loading":return r.loading?"":u.loadingText.value;default:return""}}),w=(0,t.computed)(()=>({transitionDuration:`${l.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),y=(0,t.computed)(()=>{const h={};return l.headHeight!=50&&(h.height=me(l.headHeight)),h}),k=h=>{const N=+(l.pullDistance||l.headHeight);let B=h;return h>N&&(h<N*2?B=(h+N)/2:B=N+h/4),Math.round(B)},f=(h,N)=>{const B=+(l.pullDistance||l.headHeight);c.distance=h,N?c.status="loading":h===0?c.status="normal":h<B?c.status="pulling":c.status="loosing",a("change",{status:c.status,distance:h})},b=()=>c.status!=="loading"&&c.status!=="complete",m=()=>p.value==window?Mi()==0:p.value&&p.value.scrollTop==0,A=h=>{b()&&(m()?(s.start(h),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},C=h=>{b()&&c.moving&&(s.move(h),s.isVertical()&&s.state.deltaY>0&&c.isPullRefresh&&(h.cancelable&&h.preventDefault(),f(k(s.state.deltaY))))},g=()=>{c.moving=!1,c.isPullRefresh&&b()&&s.state.deltaY&&(c.status==="loosing"?(f(+l.headHeight,!0),a("update:modelValue",!0),(0,t.nextTick)(()=>a("refresh"))):f(0)),setTimeout(()=>{s.reset()},0)};return(0,t.watch)(()=>l.modelValue,h=>{h?f(+l.headHeight,!0):f(0)}),()=>{const h=[];let N=null;c.status==="loading"?(N=r?.loading?.()??null,N||(N=(0,t.h)(o,{class:["fox-pull-refresh-container-topbox-icon"]}))):c.status==="pulling"?N=r?.pulling?.()??null:c.status==="loosing"&&(N=r?.loosing?.()??null),N&&h.push(N);const B=(0,t.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[S.value]);h.push(B);const T=(0,t.h)("div",{class:["fox-pull-refresh-container-topbox"],style:y.value},h),V=(0,t.h)("div",{class:"fox-pull-refresh-container",style:w.value},[T,r?.default?.()]),U={ref:d,class:v.value};return tl()?Object.assign(U,{onTouchstart:A,onTouchmove:C,onTouchend:g}):Object.assign(U,{onMousedown:A,onMousemove:C,onMouseup:g}),(0,t.h)("div",U,[V])}}}),{componentName:gS,create:yS,scope:bS}=J("pull-refresh"),SS=yS(vS(gS,bS,oe.Loading)),ba=SS,{create:kS}=J("notify"),wS=kS({components:{[ye.name]:ye},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const o=()=>{e.onClick&&e.onClick()};let l=null;const a=()=>{l&&clearTimeout(l),l=null},r=()=>{n("update:visible",!1)},i=(0,t.ref)(!1),u=(0,t.watch)(()=>e.visible,d=>{i.value=e.visible;const p=e.duration;d&&p&&(l=setTimeout(()=>{r()},p))},{immediate:!0});return{onAfterLeave:()=>{a(),u&&u(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:o,isShowPopup:i}}});function CS(e,n,o,l,a,r){const i=(0,t.resolveComponent)("fox-popup");return(0,t.openBlock)(),(0,t.createBlock)(i,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=u=>e.isShowPopup=u),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["fox-notify",`fox-notify--${e.type}`,e.className]),style:(0,t.normalizeStyle)({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...u)=>e.clickCover&&e.clickCover(...u))},[e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}var Sa=ae(wS,[["render",CS]]),jl={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function},mt=[],_t=[],Ki=e=>{if(e){const n=document.getElementById(e);_t=_t.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)}),_t=[],mt=[]},NS=e=>{const n=document.getElementById(e.id);if(n){const o=_t.find(a=>a.id===e.id);o?e={...jl,...o,...e}:e={...jl,...e};const l=(0,t.createVNode)(Sa,e);return(0,t.render)(l,n),l.component.data}},Lt=e=>{e.unmount=Ki;let n;if(e.id){if(n=e.id,mt.find(a=>a===e.id))return NS(e)}else n=new Date().getTime()+"";e={...jl,...e},e.id=n,mt.push(e.id),_t.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)},Rt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},ka={text(e,n={}){return Rt(e),Lt({...n,msg:e})},primary(e,n={}){return Rt(e),Lt({...n,msg:e,type:"primary"})},success(e,n={}){return Rt(e),Lt({...n,msg:e,type:"success"})},danger(e,n={}){return Rt(e),Lt({...n,msg:e,type:"danger"})},warn(e,n={}){return Rt(e),Lt({...n,msg:e,type:"warning"})},hide(){Ki()},install(e){e.use(Sa)}},{create:AS}=J("toast"),BS=AS({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o=null;const l=(0,t.reactive)({mounted:!1});(0,t.onMounted)(()=>{l.mounted=!0});const a=()=>{o&&(clearTimeout(o),o=null)},r=()=>{l.mounted=!1},i=()=>{a(),e.duration&&(o=setTimeout(()=>{r()},e.duration))},u=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),(0,t.watch)(()=>e.duration,S=>{S&&i()});const s=(0,t.computed)(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const S=se(e.iconSize);return(0,t.h)(e.icon,{width:S,height:S,color:e.iconColor})},p=(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:r,clickCover:u,renderIcon:d,hasIcon:s,toastBodyClass:p,toastIconWrapperClass:c,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),TS={key:1,class:"fox-toast-title"},VS=["innerHTML"];function xS(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.toastBodyClass),style:(0,t.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[(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",TS,(0,t.toDisplayString)(e.title),1)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,VS)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var wa=ae(BS,[["render",xS]]),Wl={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=[],jt=[],Ui=e=>{if(e){const n=document.getElementById(e);jt=jt.filter(o=>o.id!==e),pt=pt.filter(o=>o!==e),n&&document.body.removeChild(n)}else pt.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),jt=[],pt=[]},$S=e=>{const n=document.getElementById(e.id);if(n){const o=jt.find(l=>l.id===e.id);return o?e={...Wl,...o,...e}:e={...Wl,...e},(0,t.render)((0,t.createVNode)(wa,e),n),Dt}},Ft=e=>{e.unmount=Ui;let n;if(e.id){if(n=e.id,pt.find(l=>l===e.id))return $S(e)}else n=new Date().getTime()+"";e={...Wl,...e},e.id=n,pt.push(e.id),jt.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),Dt},dn=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Dt={text(e,n={}){return dn(e),Ft({...n,type:"text",msg:e})},success(e,n={}){return dn(e),Ft({icon:oe.Success,...n,msg:e,type:"success"})},fail(e,n={}){return dn(e),Ft({icon:oe.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return dn(e),Ft({icon:oe.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Ft({icon:oe.Loading,...n,msg:e,type:"loading"})},hide(e){Ui(e)},install(e){e.use(wa),e.config.globalProperties.$toast=Dt}},{componentName:M2,create:ES}=J("audio"),DS=ES({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:oe.Service,[Xt.name]:Xt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null),a=(0,t.reactive)({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});(0,t.onMounted)(()=>{var y=["webkitVisibilityState","visibilitychange"];try{for(let k=0;k<y.length;k++)document.addEventListener(y[k],()=>{document.hidden?l.value.pause():a.playing&&setTimeout(()=>{l.value.play()},200)})}catch(k){k.message}});const r=y=>{const k=l.value;e.autoplay&&k&&k.paused&&k.play(),a.second=k.duration,a.duration=w(k.duration),n("can-play",y)},i=y=>{a.currentTime=parseInt(y.target.currentTime)},u=()=>{a.currentTime>0&&a.currentTime--,l.value.currentTime=a.currentTime,n("fastBack",a.currentTime)},s=()=>{const y=l.value;a.playing?(y.pause(),a.handPlaying=!1):(y.play(),a.handPlaying=!0),a.playing=!a.playing,n("play",a.playing)},d=()=>{a.currentTime++,l.value.currentTime=a.currentTime,n("forward",a.currentTime)},p=y=>{a.currentDuration=w(y),a.percent=y/a.second*100},c=()=>{a.playing=!1,n("ended")},v=y=>{const k=l.value;k.currentTime=a.second*y/100,n("changeProgress",k.currentTime)},S=()=>{a.hanMuted=!a.hanMuted,n("mute",a.hanMuted)},w=y=>{if(!y)return"00:00:00";let k=parseInt(y),f=Math.floor(k/3600),b=Math.floor((k-f*3600)/60),m=k-f*3600-b*60,A="";return A+=("0"+f.toString()).slice(-2)+":",A+=("0"+b.toString()).slice(-2)+":",A+=("0"+m.toString()).slice(-2),A};return(0,t.watch)(()=>a.currentTime,y=>{p(y)}),(0,t.provide)("audioParent",{children:[],props:e,audioData:a,handleMute:S,forward:d,fastBack:u,changeStatus:s}),{...(0,t.toRefs)(e),...(0,t.toRefs)(a),audioRef:l,fastBack:u,forward:d,changeStatus:s,progressChange:v,audioEnd:c,onTimeupdate:i,handleMute:S,onCanplay:r,slots:o}}}),IS={class:"fox-audio"},qS={key:0,class:"fox-audio__progress"},PS={class:"fox-audio__time"},MS={class:"fox-audio__bar"},zS={class:"fox-audio__time"},LS={key:1,class:"fox-audio__icon"},RS=["controls","src","preload","autoplay","loop","muted"];function FS(e,n,o,l,a,r){const i=(0,t.resolveComponent)("fox-range"),u=(0,t.resolveComponent)("Service");return(0,t.openBlock)(),(0,t.createElementBlock)("div",IS,[e.type=="progress"?((0,t.openBlock)(),(0,t.createElementBlock)("div",qS,[(0,t.createElementVNode)("div",PS,(0,t.toDisplayString)(e.currentDuration),1),(0,t.createElementVNode)("div",MS,[(0,t.createVNode)(i,{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",zS,(0,t.toDisplayString)(e.duration),1)])):(0,t.createCommentVNode)("",!0),e.type=="icon"?((0,t.openBlock)(),(0,t.createElementBlock)("div",LS,[(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,RS)])}var Ca=ae(DS,[["render",FS]]),{componentName:z2,create:OS,scope:KS}=J("audio-operate"),US=OS({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:o}=(0,pe.useFoxI18n)(KS),l=(0,t.reactive)((0,t.inject)("audioParent")),a=(0,t.ref)((0,t.useSlots)().default);return{...(0,t.toRefs)(e),...(0,t.toRefs)(l),customSlot:a,t:o}}}),HS={class:"fox-audio-operate"};function _S(e,n,o,l,a,r){const i=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",HS,[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)(i,{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)(i,{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)(i,{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)(i,{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=ae(US,[["render",_S]]),{componentName:jS,create:WS}=J("avatar"),YS=WS({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:o,bgColor:l,color:a}=(0,t.toRefs)(e),r=["large","normal","small"],i=(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 w=i?.avatarGroupRef?.value?.children;w&&S(w)});const p=(0,t.computed)(()=>({[jS]:!0,[`fox-avatar-${n.value||i?.props?.size||"normal"}`]:!0,[`fox-avatar-${o.value||i?.props?.shape||"normal"}`]:!0})),c=(0,t.computed)(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${l.value}`,color:`${a.value}`,marginLeft:d.index!=1&&(i?.props?.span?`${i?.props?.span}px`:""),zIndex:i?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),v=(0,t.computed)(()=>({backgroundColor:`${i?.props?.maxBgColor}`,color:`${i?.props?.maxColor}`})),S=w=>{d.maxIndex=w.length;for(let y=0;y<w.length;y++)w[y]&&w[y].classList&&w[y].classList[0]=="fox-avatar"&&w[y].setAttribute("data-index",y+1);d.index=u?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=i?.props?.maxCount&&(d.showMax=!0)};return{classes:p,styles:c,maxStyles:v,avatarGroup:i,visible:s,avatarRef:u,...(0,t.toRefs)(d)}}});function XS(e,n,o,l,a,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,style:(0,t.normalizeStyle)(e.showMax?e.maxStyles:e.styles),class:(0,t.normalizeClass)(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(0,t.renderSlot)(e.$slots,"default",{key:0}):(0,t.createCommentVNode)("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):(0,t.createCommentVNode)("",!0)],6)):(0,t.createCommentVNode)("",!0)}var Zt=ae(YS,[["render",XS]]),{componentName:QS,create:GS}=J("avatar-group"),ZS=GS({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:o}){const{size:l}=(0,t.toRefs)(e),a=(0,t.ref)(null),r=(0,t.ref)(0),i=(0,t.computed)(()=>({[QS]:!0}));return(0,t.onMounted)(()=>{}),(0,t.provide)("avatarGroup",{props:e,avatarGroupRef:a,index:r}),{classes:i,avatarGroupRef:a}}});function JS(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"avatarGroupRef"},[(0,t.renderSlot)(e.$slots,"default")],2)}var Aa=ae(ZS,[["render",JS]]),yt=(function(e){return e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e})({});function ek(e,n,o){let l=0,a=e.length-1,r=null;for(;l<=a;){r=Math.floor((l+a)/2);const i=e[r],u=o(i,n);if(u===yt.eq)return r;u===yt.lt?l=r+1:u===yt.gt&&(a=r-1)}return r}var{componentName:tk,create:nk}=J("list"),$r=document.documentElement.clientHeight||document.body.clientHeight||667,lk=nk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:$r},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const o=(0,t.ref)(null),l=(0,t.ref)(null),a=(0,t.ref)(null),r=(0,t.reactive)({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),i=(0,t.computed)(()=>Math.min(e.containerHeight,$r)),u=(0,t.computed)(()=>Math.ceil(i.value/e.height)),s=(0,t.computed)(()=>Math.min(r.originStartIndex+u.value+e.bufferSize,r.list.length)),d=(0,t.computed)(()=>({[tk]:!0})),p=(0,t.computed)(()=>r.list.slice(r.start,s.value)),c=()=>{if(a.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},v=()=>{r.cachePositions=[];for(let f=0;f<r.list.length;++f)r.cachePositions[f]={index:f,height:e.height,top:f*e.height,bottom:(f+1)*(e.height+e.margin),dValue:0}},S=()=>{let f=a.value.childNodes;f=Array.from(f).filter(g=>g.nodeType===1);const b=f[0];f.forEach((g,h)=>{if(!g)return;const{height:N}=$e(g),B=r.cachePositions[h+r.start].height-N;B&&(r.cachePositions[h+r.start].bottom-=B,r.cachePositions[h+r.start].height=N,r.cachePositions[h+r.start].dValue=B)});let m=0;b&&(m=r.start);const A=r.cachePositions.length;let C=r.cachePositions[m].dValue;r.cachePositions[m].dValue=0;for(let g=m+1;g<A;++g){const h=r.cachePositions[g];r.cachePositions[g].top=r.cachePositions[g-1].bottom,r.cachePositions[g].bottom=r.cachePositions[g].bottom-C,h.dValue!==0&&(C+=h.dValue,h.dValue=0)}r.phantomHeight=r.cachePositions[A-1].bottom},w=(f=0)=>{let b=ek(r.cachePositions,f,(m,A)=>{const C=m.bottom;return C===A?yt.eq:C<A?yt.lt:yt.gt});return r.cachePositions[b].bottom<f&&(b+=1),b},y=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,o.value.scrollTop=0,v(),r.phantomHeight=e.height*r.list.length},k=()=>{const f=o.value?.scrollTop,{originStartIndex:b}=r,m=w(f);m!==b&&(r.originStartIndex=m,r.start=Math.max(r.originStartIndex-e.bufferSize,0),s.value>=r.list.length-1&&n("scroll-bottom")),n(f>r.scrollTop?"scroll-up":"scroll-down",f),r.scrollTop=f};return(0,t.watch)(()=>e.listData,f=>{if(r.list=f.slice(),r.list.length===f.length)v(),S();else{y();return}}),(0,t.watch)(()=>r.start,()=>{a.value&&r.list.length>0&&S()}),{...(0,t.toRefs)(r),list:o,phantom:l,actualContent:a,getTransform:c,visibleData:p,classes:d,getContainerHeight:i,handleScrollEvent:k}}});function ok(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...i)=>e.handleScrollEvent&&e.handleScrollEvent(...i)),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,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:"fox-list-item",key:i},[(0,t.renderSlot)(e.$slots,"default",{item:i,index:u+e.start})]))),128))],4)],38)}var Ba=ae(lk,[["render",ok]]),{componentName:ak,create:rk}=J("circleprogress"),ik=rk({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const o=!!(0,t.useSlots)().default,l=Math.random().toString(36).slice(-8),a=(0,t.computed)(()=>({[ak]:!0})),r=(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`}),i=(0,t.computed)(()=>Ve(e.color)?`url(#${l})`:e.color);return{classes:a,hoverStyle:(0,t.computed)(()=>{let u=283,s=u*Number(e.progress)/100;return{stroke:Ve(e.color)?`url(#${l})`:e.color,strokeDasharray:`${s}px ${u}px`}}),pathStyle:(0,t.computed)(()=>({stroke:e.pathColor})),path:r,hoverColor:i,stop:(0,t.computed)(()=>{if(!Ve(e.color))return;let u=e.color;const s=Object.keys(u).sort((p,c)=>parseFloat(p)-parseFloat(c));let d=[];return s.map((p,c)=>{let v={key:"",value:""};v.key=p,v.value=u[p],d.push(v)}),d}),slotDefault:o,refRandomId:l}}}),sk={viewBox:"0 0 100 100"},uk=["id"],ck=["offset","stop-color"],dk=["d","stroke-width"],fk=["d","stroke","stroke-linecap","stroke-width"],mk={class:"fox-circleprogress-text"},pk={key:0};function hk(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({height:e.radius*2+"px",width:e.radius*2+"px"})},[((0,t.openBlock)(),(0,t.createElementBlock)("svg",sk,[(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,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("stop",{key:u,offset:i.key,"stop-color":i.value},null,8,ck))),128))],8,uk)]),(0,t.createElementVNode)("path",{class:"fox-circleprogress-path",style:(0,t.normalizeStyle)(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,dk),(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,fk)])),(0,t.createElementVNode)("div",mk,[(0,t.renderSlot)(e.$slots,"default"),e.slotDefault?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",pk,(0,t.toDisplayString)(e.progress)+"%",1))])],6)}var Ta=ae(ik,[["render",hk]]),{componentName:vk,create:gk}=J("noticebar"),yk=gk({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,(0,t.h)(e.item)},Notice:oe.Notice,CircleClose:oe.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(null),a=(0,t.ref)(null),r=(0,t.reactive)({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),i=(0,t.computed)(()=>({[vk]:!0})),u=(0,t.computed)(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),s=(0,t.computed)(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":u.value,[r.animationClass]:!0})),d=(0,t.computed)(()=>{let h={};return e.color&&(h.color=e.color),e.background&&(h.background=e.background),e.direction=="vertical"&&(h.height=`${e.height}px`),h}),p=(0,t.computed)(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),c=(0,t.computed)(()=>{let h={};if(e.complexAm)h={transform:`translateY(${r.distance}px)`};else if(r.animate){let N=~~(e.height/e.speed/4);h={transition:`all ${N==0?~~(e.height/e.speed):N}s`,"margin-top":`-${e.height}px`}}return h});(0,t.watch)(()=>e.text,h=>{v(h)}),(0,t.watch)(()=>e.list,h=>{r.scrollList=[...h]});const v=h=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!l.value||!a.value)return;const N=l.value.getBoundingClientRect().width,B=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?B>N:e.scrollable,r.isCanScroll?(r.wrapWidth=N,r.offsetWidth=B,r.duration=B/e.speed,r.animationClass="play"):r.animationClass=""},0)},S=h=>{n("click",h)},w=h=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",h)},y=h=>{r.firstRound=!1,n("across-end",h),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},k=()=>{f(),r.timer=setInterval(f,~~(e.height/e.speed/4*1e3)+e.standTime)},f=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},b=()=>{r.timer=setInterval(()=>{let h=100;for(let N=0;N<h;N++)m(N,!(N<h-1))},e.standTime+100*e.speed)},m=(h,N)=>{setTimeout(()=>{r.distance-=e.height/100,N&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},h*e.speed)},A=h=>{n("click",h)},C=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};(0,t.onMounted)(()=>{e.direction=="vertical"?(o.default?g(o.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?b():k()},e.standTime)):v(e.text)}),(0,t.watch)(()=>o.default?o.default():[],h=>{e.direction==="vertical"&&o.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),g(h))});const g=h=>{h&&h.length>0&&(r.scrollList=h[0].children)};return(0,t.onActivated)(()=>{r.keepAlive&&(r.keepAlive=!1)}),(0,t.onDeactivated)(()=>{r.keepAlive=!0,clearInterval(r.timer)}),(0,t.onUnmounted)(()=>{clearInterval(r.timer)}),{...(0,t.toRefs)(e),...(0,t.toRefs)(r),isEllipsis:u,classes:i,barStyle:d,contentStyle:p,horseLampStyle:c,wrap:l,content:a,handleClick:S,onClickIcon:w,onAnimationEnd:y,go:A,handleClickIcon:C,slots:o,toPxString:me,wrapContentClass:s}}}),bk={key:0,class:"fox-noticebar__page-lefticon"},Sk={ref:"wrap",class:"fox-noticebar__page-wrap"},kk={class:"showNotica"},wk=["onClick"];function Ck(e,n,o,l,a,r){const i=(0,t.resolveComponent)("Notice"),u=(0,t.resolveComponent)("CircleClose"),s=(0,t.resolveComponent)("ScrollItem");return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.direction=="across"?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:(0,t.normalizeStyle)(e.barStyle),onClick:n[3]||(n[3]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.showLeftIcon?((0,t.openBlock)(),(0,t.createElementBlock)("view",bk,[(0,t.renderSlot)(e.$slots,"left-icon",{},()=>[e.leftIcon?((0,t.openBlock)(),(0,t.createBlock)(i,{key:0,size:"16px"})):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",Sk,[(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",kk,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,p)=>((0,t.openBlock)(),(0,t.createBlock)(s,{key:p,style:(0,t.normalizeStyle)({height:e.height+"px","line-height":e.height+"px"}),item:d},null,8,["style","item"]))),128))])],4)):((0,t.openBlock)(),(0,t.createElementBlock)("ul",{key:1,class:"fox-noticebar__vertical-list",style:(0,t.normalizeStyle)(e.horseLampStyle)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.scrollList,(d,p)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{class:"fox-noticebar__vertical-item",key:p,style:(0,t.normalizeStyle)({height:e.toPxString(e.height),lineHeight:e.toPxString(e.height)}),onClick:c=>e.go(d)},[(0,t.renderSlot)(e.$slots,"item",{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(d),1)])],12,wk))),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=ae(yk,[["render",Ck]]),Nk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/xdD/y9UyMD0TExP5sb+4uLj/y9X+w879ws3/y9X1tMH8s8H/y9UkJSWAgYHj5OT/ytTY2NheXWDs7e7r7Ozv8PDs7u55eYH09fXMzMzY2NgyMD3/y9UzMzP8s8GwsLDm5+eKiorv8PDLy8s6Ojrl5ubZ2trPz88UFBTh4uLV1dXc3Ny5ubnu7u7T09O1tbXf39+zsrLx8vLR0dHJycm8vLzj5OQ3NUHq6+vo6ek2NjbGxsbCwsK3t7f9x9K+v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Gzwl2UgpO+og/il1+l33E87H98i51kAJxjvZ0Cp08lT074JcKKB8eUJMWwH+8K3v77/7N4LkfNLAGA28qgSl1xInpquROEseRhxSkAWPOM8wxRODSIt7GNHQanCpeQAtQURq4KR80AWOsNlmIK5vCpg0ZuVoNTqS9KpaTGbVp3aKSLlVOaZPCgOIjqKc7L6ojRAlRZxs8VoK5WMy6lTjT/gRak1QKlFFxO9FKsBZzZZZSWQBY3nNKllAOdG70CtDcP9/s4DHtSzEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:L2,create:Tk,scope:Vk}=J("empty"),xk={empty:Nk,error:Ak,network:Bk},$k=Tk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=(0,pe.useFoxI18n)(Vk),o=n(e,["description"]),{image:l,imageSize:a}=(0,t.toRefs)(e),r=(0,t.computed)(()=>a.value?typeof a.value=="number"?`width:${a.value}px;height:${a.value}px`:`width:${a.value};height:${a.value}`:""),i=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:xk[l.value];return{...o,imageUrl:i,imgStyle:r}}}),Ek={class:"fox-empty"},Dk=["src"],Ik={key:1,class:"fox-empty-description"};function qk(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Ek,[(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,Dk)):(0,t.createCommentVNode)("",!0)],64))],4),e.$slots.description?(0,t.renderSlot)(e.$slots,"description",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",Ik,(0,t.toDisplayString)(e.description),1)),e.$slots.default?(0,t.renderSlot)(e.$slots,"default",{key:2}):(0,t.createCommentVNode)("",!0)])}var xa=ae($k,[["render",qk]]),{create:Pk,scope:Mk}=J("video"),zk=Pk({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,pe.useFoxI18n)(Mk),l=(0,t.reactive)({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),a=(0,t.ref)(null),r=(0,t.computed)(()=>e.options.disabled);(0,t.watch)(()=>e.source,g=>{g.src&&(0,t.nextTick)(()=>{l.videoElm.load()})},{immediate:!0,deep:!0}),(0,t.watch)(()=>e.options,g=>{l.state.isMuted=g?g.muted:!1},{immediate:!0});const i=()=>{l.videoElm=a.value,e.options.autoplay&&setTimeout(()=>{l.videoElm.play()},200),e.options.touchPlay&&(l.showTouchMask=!0),e.options.playsinline&&(l.videoElm.setAttribute("playsinline",e.options.playsinline),l.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),l.videoElm.setAttribute("x5-video-player-type","h5-page"),l.videoElm.setAttribute("x5-video-player-fullscreen",!1)),w(),l.showToolbox?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",v),l.videoElm.addEventListener("timeupdate",Sn(c,1e3)))},u=()=>{const g=a.value,h=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];l.player.$player=g,l.progressBar.progressElm=h,l.progressBar.pos=h.getBoundingClientRect(),l.videoSet.progress.width=Math.round(h.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",()=>{p()}),l.videoElm.addEventListener("timeupdate",Sn(c,1e3)),l.videoElm.addEventListener("ended",v),n("play",l.videoElm)}catch{S()}else l.videoElm.pause(),n("pause",l.videoElm)},d=g=>{let h=[];const N=Math.floor(g/3600);N>0&&(N<10?h.push(`0${N}`):h.push(`${N}`));const B=Math.floor(g%3600/60);B<10?h.push(`0${B}`):h.push(`${B}`);const T=Math.round(g%3600%60);return T<10?h.push(`0${T}`):h.push(`${T}`),h.join(":")},p=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},c=()=>{const g=l.videoElm.currentTime/l.videoElm.duration;l.videoSet.progress.current=Math.round(l.videoSet.progress.width*g),l.videoSet.totalTime=d(l.videoElm.duration),l.videoSet.displayTime=d(l.videoElm.currentTime),n("time",l.videoSet.displayTime,l.videoSet.totalTime)},v=()=>{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)},S=()=>{l.state.isError=!0},w=()=>{l.state.vol=e.options.volume},y=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},k=()=>{},f=g=>{let h=g.targetTouches[0].pageX-l.progressBar.pos.left;h<=0&&(h=0),h>=l.videoSet.progress.width&&(h=l.videoSet.progress.width),l.videoSet.progress.current=h;let N=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&m(N,l.videoElm.duration)},b=g=>{let h=g.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=h;let N=h/l.videoSet.progress.width;l.videoElm.duration&&m(N,l.videoElm.duration)},m=(g,h)=>{l.videoElm.currentTime=Math.floor(g*h)},A=()=>{l.state.isError=!1,i()},C=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return(0,t.onMounted)(()=>{i()}),{root:a,...(0,t.toRefs)(e),...(0,t.toRefs)(l),handleError:S,isDisabled:r,play:s,handleMuted:y,touchSlidSrart:k,touchSlidMove:f,touchSlidEnd:b,retry:A,fullScreen:C,t:o}}}),Lk={class:"fox-video",ref:"videocon"},Rk=["muted","autoplay","loop","poster","controls","preload"],Fk=["src","type"],Ok={class:"fox-video-controller__now"},Kk={class:"fox-video-controller__progress"},Uk={class:"fox-video-controller__progress-value",ref:"progressBar"},Hk={class:"fox-video-controller__played",ref:"playedBar"},_k={class:"fox-video-controller__total"},jk={class:"fox-video-error"},Wk={class:"fox-video-error-tip"};function Yk(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",Lk,[(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]=(...i)=>e.handleError&&e.handleError(...i))},[(0,t.createElementVNode)("source",{src:e.source.src,type:e.source.type},null,8,Fk)],40,Rk),e.showToolbox&&!e.isDisabled?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...i)=>e.play&&e.play(...i))},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]=(...i)=>e.play&&e.play(...i))},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]=(...i)=>e.play&&e.play(...i))}),(0,t.createElementVNode)("div",Ok,(0,t.toDisplayString)(e.videoSet.displayTime),1),(0,t.createElementVNode)("div",Kk,[(0,t.createElementVNode)("div",Uk,[(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)(i=>e.touchSlidMove(i),["stop","prevent"])),onTouchstart:n[5]||(n[5]=(0,t.withModifiers)(i=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=(0,t.withModifiers)(i=>e.touchSlidEnd(i),["stop"]))},[...n[10]||(n[10]=[(0,t.createElementVNode)("div",{class:"fox-video-controller__ball-move"},null,-1)])],36),(0,t.createElementVNode)("div",Hk,null,512)],512)]),(0,t.createElementVNode)("div",_k,(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]=(...i)=>e.handleMuted&&e.handleMuted(...i))},null,2),(0,t.createElementVNode)("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...i)=>e.fullScreen&&e.fullScreen(...i))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),(0,t.withDirectives)((0,t.createElementVNode)("div",jk,[(0,t.createElementVNode)("p",Wk,(0,t.toDisplayString)(e.t("errorTip")),1),(0,t.createElementVNode)("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...i)=>e.retry&&e.retry(...i))},(0,t.toDisplayString)(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var Bt=ae(zk,[["render",Yk]]),{create:Xk,componentName:Qk}=J("steps"),Gk=Xk({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:o}){const l=(0,t.reactive)({children:[]}),a=(0,t.computed)(()=>{const u=Qk;return{[u]:!0,[`${u}-${e.direction}`]:!0,[`${u}-dot`]:!!e.progressDot}}),r=u=>{u&&l.children.push(u)},i=u=>{n("click-step",u)};return(0,t.provide)("parent",{relation:r,state:l,props:e,onEmit:i}),()=>(0,t.h)("view",{class:a.value},o.default?.())}}),$a=Gk,{create:Zk,componentName:Jk}=J("step"),ew=Zk({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=(0,t.getCurrentInstance)(),n=(0,t.inject)("parent");n.relation(e);const o=(0,t.reactive)({dot:n.props.progressDot}),l=(0,t.computed)(()=>n.state.children.indexOf(e)+1),a=()=>{const s=l.value;return s<+n.props.current?"finish":s===+n.props.current?"process":"wait"},r=(0,t.computed)(()=>a()),i=(0,t.computed)(()=>{const s=Jk;return{[s]:!0,[`${s}-${r.value}`]:!0}}),u=()=>{n.onEmit(l.value)};return{...(0,t.toRefs)(o),index:l,classes:i,handleClickStep:u}}}),tw={class:"fox-step-head"},nw={class:"fox-step-icon-inner"},lw={key:1,class:"fox-step-inner"},ow={class:"fox-step-main"},aw={class:"fox-step-title"},rw={key:0},iw={key:0,class:"fox-step-content"},sw=["innerHTML"];function uw(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...i)=>e.handleClickStep&&e.handleClickStep(...i))},[(0,t.createElementVNode)("view",tw,[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",nw,[(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",lw,(0,t.toDisplayString)(e.index),1))])])],2)]),(0,t.createElementVNode)("view",ow,[(0,t.createElementVNode)("view",aw,[e.$slots.title?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",rw,(0,t.toDisplayString)(e.title),1)),(0,t.renderSlot)(e.$slots,"title")]),e.content||e.$slots.content?((0,t.openBlock)(),(0,t.createElementBlock)("view",iw,[e.$slots.content?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,innerHTML:e.content},null,8,sw)),(0,t.renderSlot)(e.$slots,"content")])):(0,t.createCommentVNode)("",!0)])],2)}var Ea=ae(ew,[["render",uw]]),{create:cw,componentName:Vl}=J("swiper"),dw=cw({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:n,slots:o}){const l=(0,t.ref)(),a=(0,t.reactive)({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=lt(),i=(0,t.computed)(()=>({[Vl]:!0})),u=(0,t.computed)(()=>e.direction==="vertical"),s=(0,t.computed)(()=>{const q=Vl;return{[`${q}-inner`]:!0,[`${q}-vertical`]:u.value}}),d=(0,t.computed)(()=>{const q=Vl;return{[`${q}-pagination`]:!0,[`${q}-pagination-vertical`]:u.value}}),p=(0,t.computed)(()=>u.value?r.deltaY.value:r.deltaX.value),c=(0,t.computed)(()=>r.direction.value===e.direction),v=(0,t.computed)(()=>a.children.length),S=(0,t.computed)(()=>a[u.value?"height":"width"]),w=(0,t.computed)(()=>v.value*S.value),y=(0,t.computed)(()=>a.rect?(u.value?a.rect.height:a.rect.width)-S.value*v.value:0),k=(0,t.computed)(()=>(a.active+v.value)%v.value),f=()=>{let q=0;q=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${u.value?"Y":"X"}(${q}px)`,[u.value?"height":"width"]:`${S.value*v.value}px`,[u.value?"width":"height"]:`${u.value?a.width:a.height}px`}},b=q=>{let O=[];const H=a.childrenVNode.length;let I=o?.default?.();if(I=I.filter(G=>G.children&&Array.isArray(G.children)),I.forEach(G=>{O=O.concat(G.children)}),!H)a.childrenVNode=O.slice(),q.proxy&&a.children.push(q.proxy);else if(H>O.length)a.children=a.children.filter(G=>q.proxy!==G);else if(H<O.length){for(let G=0;G<H;G++)if(O[G].key!==a.childrenVNode[G].key){q.proxy&&a.children.splice(G,0,q.proxy),q.vnode&&a.childrenVNode.splice(G,0,q.vnode);break}H!==O.length&&(q.proxy&&a.children.push(q.proxy),q.vnode&&a.childrenVNode.push(q.vnode))}else a.childrenVNode=O.slice(),q.proxy&&a.children.push(q.proxy)},m=(q,O=0)=>{let H=q*S.value;e.loop||(H=Math.min(H,-y.value));let I=O-H;return e.loop||(I=_e(I,y.value,0)),I},A=q=>{const{active:O}=a;return q?e.loop?_e(O+q,-1,v.value):_e(O+q,0,v.value-1):O},C=({pace:q=0,offset:O=0,isEmit:H=!1})=>{if(v.value<=1)return;const{active:I}=a,G=A(q),te=m(G,O);if(e.loop){if(a.children[0]&&te!==y.value){const _=te<y.value;a.children[0].setOffset(_?w.value:0)}if(a.children[v.value-1]&&te!==0){const _=te>0;a.children[v.value-1].setOffset(_?-w.value:0)}}a.active=G,a.offset=te,H&&I!==a.active&&n("change",k.value),f()},g=()=>{a.moving=!0,a.active<=-1&&C({pace:v.value}),a.active>=v.value&&C({pace:-v.value})},h=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},N=q=>{g(),r.reset(),Xe(()=>{Xe(()=>{a.moving=!1,C({pace:q,isEmit:!0})})})},B=()=>{N(-1)},T=()=>{N(1)},V=q=>{g(),r.reset(),Xe(()=>{a.moving=!1;let O;e.loop&&v.value===q?O=a.active===0?0:q:O=q%v.value,C({pace:O-a.active,isEmit:!0})})},U=()=>{const q=de(e.autoPlay);q<=0||v.value<=1||(h(),a.autoplayTimer=setTimeout(()=>{T(),U()},q))},W=(q=+e.initPage)=>{h(),a.rect=l.value.getBoundingClientRect(),q=Math.min(v.value-1,q),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=q,a.offset=m(a.active),a.moving=!0,f(),U()},$=q=>{e.isPreventDefault&&q.preventDefault(),e.isStopPropagation&&q.stopPropagation(),e.touchable&&(r.start(q),a.touchTime=Date.now(),h(),g())},P=q=>{e.touchable&&a.moving&&(r.move(q),c.value&&C({offset:p.value}))},M=q=>{if(!e.touchable||!a.moving)return;const O=p.value/(Date.now()-a.touchTime);if((Math.abs(O)>.3||Math.abs(p.value)>+(S.value/2).toFixed(2))&&c.value){let H=0;const I=u.value?r.offsetY.value:r.offsetX.value;e.loop?H=I>0?p.value>0?-1:1:0:H=-Math[p.value>0?"ceil":"floor"](p.value/S.value),C({pace:H,isEmit:!0})}else p.value&&C({pace:0});a.moving=!1,f(),U()};return(0,t.provide)("parent",{props:e,size:S,relation:b}),be({prev:B,next:T,to:V}),(0,t.onDeactivated)(()=>{h()}),(0,t.onBeforeUnmount)(()=>{h()}),(0,t.watch)(()=>e.initPage,q=>{(0,t.nextTick)(()=>{W(Number(q))})}),(0,t.watch)(()=>a.children.length,()=>{(0,t.nextTick)(()=>{W()})}),(0,t.watch)(()=>e.autoPlay,q=>{de(q)>0?U():h()}),{state:a,classes:i,classesInner:s,classesPagination:d,container:l,activePagination:k,onTouchStart:$,onTouchMove:P,onTouchEnd:M}}});function fw(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{ref:"container",class:(0,t.normalizeClass)(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classesInner),style:(0,t.normalizeStyle)(e.state.style)},[(0,t.renderSlot)(e.$slots,"default")],6),(0,t.renderSlot)(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:0,class:(0,t.normalizeClass)(e.classesPagination)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.state.children.length,(i,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 Tt=ae(dw,[["render",fw]]),{create:mw,componentName:pw}=J("swiper-item"),hw=mw({setup(e,{slots:n}){const o=(0,t.inject)("parent");o.relation((0,t.getCurrentInstance)());const l=(0,t.reactive)({offset:0}),a=(0,t.computed)(()=>({[pw]:!0})),r=(0,t.computed)(()=>{const u={},s=o?.props.direction;return o?.size.value&&(u[s==="horizontal"?"width":"height"]=`${o?.size.value}px`),l.offset&&(u.transform=`translate${s==="horizontal"?"X":"Y"}(${l.offset}px)`),u}),i=u=>{l.offset=u};return(0,t.onUnmounted)(()=>{o.relation((0,t.getCurrentInstance)(),"unmount")}),be({setOffset:i}),{style:r,classes:a}}});function vw(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)(e.style)},[(0,t.renderSlot)(e.$slots,"default")],6)}var Vt=ae(hw,[["render",vw]]),Hi={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:gw}=J("image-preview-item"),yw=gw({props:{...Hi,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:{[Bt.name]:Bt,[Vt.name]:Vt},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=lt(),a=(0,t.computed)(()=>{const{rootWidth:B,rootHeight:T}=e,V=T/B;return o.imageRatio>V}),r=(0,t.computed)(()=>{const B=e.image;if(B&&B.src){const{scale:T,moveX:V,moveY:U,moving:W,zooming:$}=o,P={transitionDuration:$||W?"0s":".3s"};return T!==1&&(P.transform=`scale(${T}, ${T}) translate(${V/T}px, ${U/T}px)`),P}return{}}),i=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:B,rootHeight:T}=e,V=a.value?T/o.imageRatio:B;return Math.max(0,(o.scale*V-B)/2)}return 0}),u=(0,t.computed)(()=>{if(o.imageRatio){const{rootWidth:B,rootHeight:T}=e,V=a.value?T:B*o.imageRatio;return Math.max(0,(o.scale*V-T)/2)}return 0}),s=B=>{const{naturalWidth:T,naturalHeight:V}=B.target;o.imageRatio=V/T},d=()=>{p(1),o.moveX=0,o.moveY=0},p=B=>{B=_e(B,+e.minZoom,+e.maxZoom+1),B!==o.scale&&(o.scale=B,n("scale",{scale:B,index:e.initNo}))},c=()=>{p(o.scale>1?1:2),o.moveX=0,o.moveY=0},v=B=>Math.sqrt((B[0].clientX-B[1].clientX)**2+(B[0].clientY-B[1].clientY)**2);let S,w,y,k,f,b,m;const A=B=>{const{touches:T}=B,{offsetX:V}=l;l.start(B),m=T.length,S=o.moveX,w=o.moveY,b=Date.now(),o.moving=m===1&&o.scale!==1,o.zooming=m===2&&!V.value,o.zooming&&(y=o.scale,k=v(B.touches))},C=B=>{const{touches:T}=B;if(l.move(B),(o.moving||o.zooming)&&Ml(B,!0),o.moving){const{deltaX:V,deltaY:U}=l,W=V.value+S,$=U.value+w;o.moveX=_e(W,-i.value,i.value),o.moveY=_e($,-u.value,u.value)}if(o.zooming&&T.length===2){const V=v(T);p(y*V/k)}},g=()=>{if(m==1&&e.video&&e.video.source||m>1)return;const{offsetX:B,offsetY:T}=l,V=Date.now()-b,U=250,W=5;B.value<W&&T.value<W&&V<U&&(f?(clearTimeout(f),f=null,c()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},U))},h=B=>{let T=!1;(o.moving||o.zooming)&&(T=!0,o.moving&&S===o.moveX&&w===o.moveY&&(T=!1),B.touches.length||(o.zooming&&(o.moveX=_e(o.moveX,-i.value,i.value),o.moveY=_e(o.moveY,-u.value,u.value),o.zooming=!1),o.moving=!1,S=0,w=0,y=1,o.scale<1&&d(),o.scale>e.maxZoom&&(o.scale=+e.maxZoom))),Ml(B,T),g(),l.reset()},N=()=>{n("close")};return(0,t.watch)(()=>e.initNo,d),(0,t.watch)(()=>e.show,B=>{B||d()}),{...(0,t.toRefs)(o),onTouchStart:A,onTouchMove:C,onTouchEnd:h,getDistance:v,imageStyle:r,imageLoad:s,closeSwiper:N}}}),bw=["src"];function Sw(e,n,o,l,a,r){const i=(0,t.resolveComponent)("fox-video"),u=(0,t.resolveComponent)("fox-swiper-item");return(0,t.openBlock)(),(0,t.createBlock)(u,{onClick:e.closeSwiper},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",{style:(0,t.normalizeStyle)(e.imageStyle),class:"fox-image-preview-box",onTouchstart:n[1]||(n[1]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[2]||(n[2]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[4]||(n[4]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[e.image&&e.image.src?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:n[0]||(n[0]=(...s)=>e.imageLoad&&e.imageLoad(...s))},null,40,bw)):(0,t.createCommentVNode)("",!0),e.video&&e.video.source?((0,t.openBlock)(),(0,t.createBlock)(i,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):(0,t.createCommentVNode)("",!0)],36)]),_:1},8,["onClick"])}var kw=ae(yw,[["render",Sw]]),{create:ww}=J("image-preview"),Cw=ww({props:{...Hi,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:kw,CircleClose:oe.CircleClose,[ye.name]:ye,[Tt.name]:Tt},setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.reactive)({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),a=(0,t.computed)(()=>{const p="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${p}-right`:`${p}-left`}`}),r=(0,t.computed)(()=>xn(e.videos)?[].concat(e.videos).concat(e.images):e.images),i=p=>{p!==l.active&&(l.active=p,n("change",l.active))},u=()=>{Fi(e.beforeClose,{args:[l.active],done:()=>s()})},s=()=>{l.showPop=!1,n("close")},d=()=>{if(o.value){const p=$e(o.value);l.rootHeight=p.height,l.rootWidth=p.width}};return(0,t.watch)(()=>e.show,p=>{l.showPop=p,p&&(i(e.initNo),d())}),(0,t.watch)(()=>e.initNo,p=>{p!=l.active&&i(p)}),(0,t.onMounted)(()=>{i(e.initNo)}),{swipeRef:o,...(0,t.toRefs)(l),onClose:u,mergeImages:r,setActive:i,iconClasses:a}}}),Nw={class:"fox-image-preview",ref:"swipeRef"},Aw={key:0,class:"fox-image-preview-index"};function Bw(e,n,o,l,a,r){const i=(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]=p=>e.showPop=p),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("view",Nw,[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,(p,c)=>((0,t.openBlock)(),(0,t.createBlock)(i,{key:c,video:c<e.videos.length?p:{},image:c>=e.videos.length?p:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):(0,t.createCommentVNode)("",!0)],512),e.showIndex?((0,t.openBlock)(),(0,t.createElementBlock)("view",Aw,(0,t.toDisplayString)(e.active+1)+" / "+(0,t.toDisplayString)(e.mergeImages.length),1)):(0,t.createCommentVNode)("",!0),e.closeable?((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:(0,t.normalizeClass)(e.iconClasses),onClick:n[0]||(n[0]=(...p)=>e.onClose&&e.onClose(...p))},[(0,t.renderSlot)(e.$slots,"close-icon",{},()=>[(0,t.createVNode)(s,{color:"#ffffff"})])],2)):(0,t.createCommentVNode)("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}var _i=ae(Cw,[["render",Bw]]),Tw=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"},Vw=class{options=new Tw;constructor(e){const n=Object.assign(this.options,e),{unmount:o}=Ls(n,{name:"image-preview",components:[ye,Bt,Tt,Vt,st],wrapper:()=>({setup(){return()=>(n.onClose=()=>{n.show=!1,(0,t.nextTick)(()=>{o()})},(0,t.h)(_i,n))}})})}},gl=e=>new Vw(e);gl.install=e=>{e.use(_i)};function xw(e){const n=(0,t.getCurrentInstance)();if(n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}var{componentName:R2,create:$w}=J("countup"),Ew=$w({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:n}){const o=(0,t.ref)(null),l=(0,t.ref)([]),a=N=>{N&&l.value.push(N)},r=(0,t.reactive)({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:i,scrolling:u,customBgImg:s,type:d}=(0,t.reactive)(e);(0,t.watch)(()=>e.customChangeNum,(N,B)=>{c(),k(0)}),(0,t.watch)(()=>e.machinePrizeLevel,(N,B)=>{r.prizeLevelTrun=N}),(0,t.watch)(()=>e.initNum,(N,B)=>{r.current=N,r.valFlag=!1,p()}),(0,t.watch)(()=>e.endNum,(N,B)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;i&&(u||s?d!="machine"&&k():(y(),setTimeout(()=>{r.valFlag=!0},300)))},c=()=>{clearInterval(Number(r.timer)),r.timer=null},v=(N,B,T)=>{const V=(N.toString().split(".")[1]||"").length,U=(B.toString().split(".")[1]||"").length,W=Math.pow(10,Math.max(V,U));return T=="-"?Number((N*W-B*W).toFixed(0))/W:Number((N*W+B*W).toFixed(0))/W},S=N=>{let{num_total_len:B,pointNum:T,initDigit1:V,initDigit2:U,sortFlag:W}=r,$=W=="add"||W=="equal"?String(U)[N-(B-T)]:10-Number(String(U)[N-(B-T)]),P=W=="add"||W=="equal"?String(V)[N]:10-Number(String(V)[N]),M=N>B-T-1?-$*100+"%":N<=String(V).length-1?-P*100+"%":0;return M=="-1000%"&&(M=0),M},w=N=>{let{num_total_len:B,pointNum:T,initDigit1:V,initDigit2:U,sortFlag:W}=r,$=String(U)[N-(B-T)];return N>B-T-1?$||0:N<=String(V).length-1?String(V)[N]:0},y=()=>{let{endNum:N,initNum:B,speed:T,toFixed:V}=e,U=setInterval(()=>{if(B>N)if(r.current<=N||r.current<=T)r.current=Number(N.toFixed(V)),clearInterval(U),n("scroll-end"),r.valFlag=!1;else{let W=parseFloat(String(r.current))-parseFloat(String(T));r.current=Number(W.toFixed(V))}else if(r.current>=N)r.current=Number(N.toFixed(V)),clearInterval(U),n("scroll-end"),r.valFlag=!1;else{let W=parseFloat(String(r.current))+parseFloat(String(T));r.current=Number(W.toFixed(V))}},e.during)},k=N=>{let{initNum:B,endNum:T,toFixed:V,customBgImg:U}=e;U&&(B=e.customChangeNum);let W,$,P,M;B!=0?(V!=0&&(B=Number(B.toFixed(V))),String(B).indexOf(".")>-1?(W=String(B).split(".")[0].length,$=String(B).split(".")[1].length):(W=String(B).length,$=0)):(W=1,$=0),T!=0?(V!=0&&(T=Number(T.toFixed(V))),String(T).indexOf(".")>-1?(P=String(T).split(".")[0].length,M=String(T).split(".")[1].length):(P=String(T).length,M=0)):(P=1,M=0);let q=W>=P?W:P,O=$>=M?$:M;r.num_total_len=q+O,r.pointNum=O,B>T?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=v(B,T,"-"),r.numberVal=Number(String(B))):B<T?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=v(T,B,"-"),r.numberVal=Number(String(T))):r.sortFlag="equal";var H=1;for(let G=0;G<r.pointNum;G++)H*=10;var I=r.numberVal*H;if(r.relNum=I,V!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(I).length),String(B).indexOf(".")>-1){let G=String(B).split(".");r.initDigit1=Number(G[0]),r.initDigit2=Number(G[1])}else r.initDigit1=B,r.initDigit2=0;u&&!U?(0,t.nextTick)(()=>{if(r.sortFlag=="equal")return!1;let G=l.value[r.num_total_len-1];f(G)}):N!==0&&A()},f=N=>{c();var B=1;r.pointNum!=0&&(B=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{b(N),r.totalCount=v(r.totalCount,B,"-"),r.totalCount<=0&&(c(),n("scroll-end"),r.valFlag=!1)},e.during)},b=N=>{let B=N.getAttribute("turn-number"),T;if(r.sortFlag=="add"?T=parseInt(String(B))+1:T=parseInt(String(B))-1>=0?parseInt(String(B))-1:9,N.setAttribute("turn-number",String(T)),(N.style.transition=="none 0s ease 0s"||T==1||!N.style.transition)&&(N.style.transition=`all linear ${e.during}ms`),T==10||r.sortFlag=="reduce"&&T==0){var V=null;N.style.top=`-${r.sortFlag=="add"?T*100:(10-T)*100}%`,N.setAttribute("turn-number","0"),V=setTimeout(()=>{V&&clearTimeout(V),N.style.transition="none",N.style.top="0",m(N,T)},.975*e.during)}else N.style.top=`-${r.sortFlag=="add"?T*100:(10-T)*100}%`;N.style.top=="-100%"&&r.sortFlag=="reduce"&&b(N.previousSibling)},m=(N,B)=>{setTimeout(()=>{B==10&&N.previousSibling&&b(N.previousSibling)},200)},A=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),(0,t.nextTick)(()=>{o.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},C=()=>{for(r.notPrize=[];r.notPrize.length<3;){var N=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(N)==-1&&r.notPrize.push(N)}};xw({machineLuck:()=>{const N=e.machineTurnMore<0?0:e.machineTurnMore;let B=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&C();for(let T=0;T<e.machineNum;T++)setTimeout(()=>{let V=B*(T+1+parseFloat(String(N)));r.prizeYPrev.length!=0&&(r.prizeY[T]=r.prizeYPrev[T]);let U=r.prizeYPrev[T]?r.prizeYPrev[T]:0,W=V+U+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(B-U);r.prizeLevelTrun<0&&(W+=e.numHeight*r.notPrize[T]),h(T,W,U)},500*T)}});const h=(N,B,T)=>{let V=setInterval(()=>{if(T<=B)T+=10,r.prizeY[N]=parseFloat(String(T));else if(clearInterval(V),V=null,r.finshMachine+=1,r.prizeY[N]=B,r.finshMachine==e.machineNum){let U=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(W=>{let $=W;for(;$>U;)$-=U;r.prizeYPrev.push($)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return(0,t.onMounted)(()=>{r.current=e.initNum,(0,t.nextTick)(()=>{p()})}),(0,t.onUnmounted)(()=>{c(),r.timer=null}),{...(0,t.toRefs)(r),...(0,t.toRefs)((0,t.reactive)(e)),runNumberImg:o,setRef:a,topNumber:S,turnNumber:w}}}),Dw={class:"fox-countup"},Iw=["turn-number"];function qw(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Dw,[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,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-countup__machine-item",key:"mImg"+u,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,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{class:"fox-countup__numberimg__item",key:"cImg"+u,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,(i,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("view",{ref_for:!0,ref:s=>e.setRef(s),class:"fox-countup__number-item",key:i,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",{class:"fox-countup__number-item__span",key:"dote"+d,style:(0,t.normalizeStyle)({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},(0,t.toDisplayString)(s),5))),128))],12,Iw))),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=ae(Ew,[["render",qw]]),Pw=e=>{if(!e)return Date.now();let n=Number(e),o=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(o).getTime()},{componentName:Mw,create:zw}=J("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}),a=(0,t.computed)(()=>({[Mw]:!0})),r=(0,t.computed)(()=>s(l.restTime)),i=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-Pw(e.startTime),l.counting||(l.counting=!0),u()},u=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const S=Date.now()-l.diffTime,w=Math.max(l.handleEndTime-S,0);l.restTime=w,w||(l.counting=!1,c(),n("on-end")),w>0&&u()}}))},s=(S,w)=>{const y=S;let k={d:0,h:0,m:0,s:0,ms:0};const f=1e3,b=60*f,m=60*b,A=24*m;return y>0&&(k.d=y>=f?Math.floor(y/A):0,k.h=Math.floor(y%A/m),k.m=Math.floor(y%m/b),k.s=Math.floor(y%b/f),k.ms=Math.floor(y%f)),w=="custom"?k:d({...k})},d=S=>{let{d:w,h:y,m:k,s:f,ms:b}=S,m=e.format;if(m.includes("DD")?m=m.replace("DD",ot(w)):y+=Number(w)*24,m.includes("HH")?m=m.replace("HH",ot(y)):k+=Number(y)*60,m.includes("mm")?m=m.replace("mm",ot(k)):f+=Number(k)*60,m.includes("ss")?m=m.replace("ss",ot(f)):b+=Number(f)*1e3,m.includes("S")){const A=ot(b,3).toString();m.includes("SSS")?m=m.replace("SSS",A):m.includes("SS")?m=m.replace("SS",A.slice(0,2)):m.includes("S")&&(m=m.replace("SS",A.slice(0,1)))}return m},p=()=>{!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)},v=()=>{e.autoStart||(c(),l.restTime=e.time)};return(0,t.onBeforeMount)(()=>{e.autoStart?i():l.restTime=e.time}),(0,t.watch)(()=>l.restTime,S=>{let w=s(S,"custom");n("update:modelValue",w),n("input",w)}),(0,t.watch)(()=>e.paused,(S,w)=>{w?(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,S=>{i()}),(0,t.watch)(()=>e.startTime,S=>{i()}),{...(0,t.toRefs)(e),slots:o,classes:a,start:p,pause:c,renderTime:r,reset:v}}}),Rw=["innerHTML"];function Fw(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[e.slots.default?(0,t.renderSlot)(e.$slots,"default",{key:0}):((0,t.openBlock)(),(0,t.createElementBlock)("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,Rw))],2)}var Ia=ae(Lw,[["render",Fw]]),{create:Ow}=J("badge"),Kw=Ow({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})}}}),Uw={class:"fox-badge"},Hw=["textContent"];function _w(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",Uw,[(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 qa=ae(Kw,[["render",_w]]),{componentName:jw,create:Ww}=J("tag"),Yw=Ww({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:oe.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:(0,t.computed)(()=>{const i=jw;return{[i]:!0,[`${i}--${e.type}`]:!0,[`${i}--plain`]:e.plain,[`${i}--round`]:e.round,[`${i}--mark`]:e.mark,[`${i}--symbol`]:e.symbol,[`${i}--text`]:e.text,[`${i}--light`]:e.light}}),getStyle:()=>{const i={};return e.textColor?i.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(i.color=e.color),e.plain?(i.background="#fff",i["border-color"]=e.color):!e.text&&e.color&&(i.background=e.color),i},onClose:i=>{i.stopPropagation(),n("close",i)},onClick:i=>{n("click",i)}}}});function Xw(e,n,o,l,a,r){const i=(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)(i,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):(0,t.createCommentVNode)("",!0)],6)}var Pa=ae(Yw,[["render",Xw]]),{create:Qw}=J("popover"),Gw=Qw({components:{FoxPopup:ye},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const o=(0,t.ref)(),l=(0,t.ref)(),a=(0,t.ref)(e.visible);let r=(0,t.ref)(),i=(0,t.ref)();const u=(0,t.computed)(()=>{const b="fox-popover-arrow",m=e.location;return`${b} ${b}-${m.split("-")[0]} ${b}--${m}`}),s=(0,t.computed)(()=>{const b={},{bgColor:m,arrowOffset:A,location:C}=e,g=C.split("-")[0],h=C.split("-")[1],N=16;return m&&(b[`border${d(g)}Color`]=m),e.arrowOffset!=0&&(["bottom","top"].includes(g)&&(h||(b.left=`calc(50% + ${A}px)`),h=="start"&&(b.left=`${N+A}px`),h=="end"&&(b.right=`${N-A}px`)),["left","right"].includes(g)&&(h||(b.top=`calc(50% - ${A}px)`),h=="start"&&(b.top=`${N-A}px`),h=="end"&&(b.bottom=`${N+A}px`))),b}),d=b=>(b=b.toLowerCase(),b=b.replace(/\b\w+\b/g,m=>m.substring(0,1).toUpperCase()+m.substring(1)),b),p=(0,t.computed)(()=>{let b={};if(!r.value||!i.value)return{};const m=i.value.width,A=i.value.height,{width:C,height:g,left:h,top:N}=r.value,{location:B,offset:T}=e,V=B.split("-")[0],U=B.split("-")[1];let W=0,$=0;return xn(T)&&T.length==2&&(W+=Number(T[1]),$+=Number(T[0])),C&&(["bottom","top"].includes(V)&&(b.top=`${N+(V=="bottom"?g+W:-(A+W))}px`,U||(b.left=`${-(m-C)/2+h+$}px`),U=="start"&&(b.left=`${h+$}px`),U=="end"&&(b.left=`${r.value.right+$}px`)),["left","right"].includes(V)&&(b.left=`${h+(V=="left"?-(m+W):C+W)}px`,U||(b.top=`${N-A/2+g/2-4+$}px`),U=="start"&&(b.top=`${N+$}px`),U=="end"&&(b.top=`${N+g+$}px`))),b}),c=(0,t.computed)(()=>{const b={};return e.bgColor&&(b.background=e.bgColor),b}),v=()=>{let b=$e(o.value);e.targetId&&(b=$e(document.querySelector(`#${e.targetId}`))),r.value=b,setTimeout(()=>{i.value={height:l.value?.clientHeight,width:l.value?.clientWidth}},0)};(0,t.onMounted)(()=>{setTimeout(()=>{v()},200)}),(0,t.watch)(()=>e.visible,b=>{a.value=b,b?(window.addEventListener("touchstart",f,!0),v()):window.removeEventListener("touchstart",f,!0)});const S=b=>{n("update",b),n("update:visible",b)},w=()=>{S(!e.visible),n("open")},y=()=>{n("update:visible",!1),n("close")},k=(b,m)=>{!b.disabled&&n("choose",b,m),e.closeOnClickAction&&y()},f=b=>{const m=o.value,A=l.value;let C=m&&!m.contains(b.target);if(e.targetId){const g=document.querySelector(`#${e.targetId}`);C=g&&!g.contains(b.target)}C&&A&&!A.contains(b.target)&&e.closeOnClickOutside&&y()};return{showPopup:a,openPopover:w,popoverArrow:u,closePopover:y,chooseItem:k,popoverRef:o,popoverContentRef:l,getRootPosition:p,customStyle:c,popoverArrowStyle:s,renderIcon:ui}}}),Zw={ref:"popoverContentRef",class:"fox-popover-content-group"},Jw=["onClick"],eC={class:"fox-popover-menu-item-name"};function tC(e,n,o,l,a,r){const i=(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)(i,{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",Zw,[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",eC,(0,t.toDisplayString)(u.name),1)],10,Jw))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}var Jt=ae(Gw,[["render",tC]]),nC=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:o,round:l,avatarSize:a}=(0,t.toRefs)(n),r=(0,t.computed)(()=>{const s="avatarClass";return{[s]:!0,[`${s}--${o.value}`]:o.value}});return{avatarShape:o,avatarClass:r,getBlockClass:s=>({[s]:!0,[`${s}--round`]:l.value}),getStyle:()=>a.value?{width:a.value,height:a.value}:{width:"50px",height:"50px"}}}}),{create:lC}=J("skeleton"),oC=lC(nC({[Zt.name]:Zt})),aC={key:0},rC={key:1,class:"fox-skeleton"},iC={key:0,class:"fox-skeleton-animation"},sC={class:"fox-skeleton-content"};function uC(e,n,o,l,a,r){const i=(0,t.resolveComponent)("fox-avatar");return e.loading?((0,t.openBlock)(),(0,t.createElementBlock)("view",rC,[e.animated?((0,t.openBlock)(),(0,t.createElementBlock)("view",iC)):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("view",sC,[e.avatar?((0,t.openBlock)(),(0,t.createBlock)(i,{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",aC,[(0,t.renderSlot)(e.$slots,"default")]))}var Ma=ae(oC,[["render",uC]]),{create:cC,componentName:dC}=J("collapse"),fC=cC({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const o=(0,t.ref)(null),l=(0,t.ref)(e.modelValue||(e.accordion?"":[])),a=(0,t.computed)(()=>({[dC]:!0}));(0,t.watch)(()=>e.modelValue,s=>{l.value=s});const r=(s,d,p=!0)=>{l.value=s,n("update:modelValue",s),n("change",s,d,p)},i=s=>{e.accordion?l.value===s?r("",s,!1):r(s,s,!0):Array.isArray(l.value)?l.value.includes(s)?r(l.value.filter(d=>d!==s),s,!1):r(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:i,isExpanded:u}),{collapseDom:o,classes:a}}});function mC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),ref:"collapseDom"},[(0,t.renderSlot)(e.$slots,"default")],2)}var za=ae(fC,[["render",mC]]),{create:pC,componentName:hC}=J("collapse-item"),vC=pC({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:oe.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=(0,t.ref)(null),o=(0,t.ref)(null),l=(0,t.reactive)((0,t.inject)("collapseParent")),a=(0,t.computed)(()=>{const c=hC;return{[c]:!0,[c+"__border"]:e.border}}),r=(0,t.computed)(()=>l?l.isExpanded(e.name):!1),i=(0,t.ref)(r.value?"auto":"0px"),u=()=>{l.updateVal(e.name)},s=()=>{r.value&&(i.value="auto")},d=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const c=o.value?.offsetHeight;i.value=c?`${c}px`:"auto"})})},p=()=>{const c=o.value?.offsetHeight;i.value=c?`${c}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return(0,t.watch)(r,c=>{c?d():p()}),{classes:a,renderIcon:ui,wrapperRef:n,contentRef:o,open:d,toggle:u,wrapperHeight:i,expanded:r,onTransitionEnd:s}}}),gC={class:"fox-collapse-item__title-main"},yC={class:"fox-collapse-item__title-main-value"},bC=["innerHTML"],SC={key:2,class:"fox-collapse-item__title-label"},kC={key:0,class:"fox-collapse-item__title-sub"},wC=["innerHTML"],CC={key:0,class:"fox-collapse__item-extraWrapper"},NC={class:"fox-collapse__item-extraWrapper__extraRender"},AC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function BC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:n[0]||(n[0]=(...i)=>e.toggle&&e.toggle(...i))},[(0,t.createElementVNode)("view",gC,[(0,t.createElementVNode)("view",yC,[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,bC)),e.label?((0,t.openBlock)(),(0,t.createElementBlock)("view",SC,(0,t.toDisplayString)(e.label),1)):(0,t.createCommentVNode)("",!0)])]),e.$slots.value?((0,t.openBlock)(),(0,t.createElementBlock)("view",kC,[(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,wC)),(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",CC,[(0,t.createElementVNode)("div",NC,[(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]=(...i)=>e.onTransitionEnd&&e.onTransitionEnd(...i))},[(0,t.createElementVNode)("view",AC,[(0,t.renderSlot)(e.$slots,"default")],512)],36)],2)}var La=ae(vC,[["render",BC]]),TC=(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:VC,create:xC,scope:$C}=J("table"),EC=xC({components:{RenderColumn:TC,DownArrow:oe.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:o}){const{t:l}=(0,pe.useFoxI18n)($C),a=(0,t.reactive)({curData:e.data}),r=(0,t.computed)(()=>({[VC]:!0})),i=S=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${S.align?S.align:""}`]:!0}),u=S=>S.stylehead?S.stylehead:"",s=S=>S.stylecolumn?S.stylecolumn:"",d=S=>e.columns.filter(w=>w.key===S)[0],p=S=>{const w=e.columns.filter(y=>y.key===S);return w[0].stylecolumn?w[0].stylecolumn:""},c=S=>{S.sorter&&(n("sorter",S),a.curData=typeof S.sorter=="function"?a.curData.sort(S.sorter):S.sorter==="default"?a.curData.sort():a.curData)},v=()=>e.columns.map(S=>[S.key,S.render]);return(0,t.watch)(()=>e.data,S=>{a.curData=S.slice()}),{...(0,t.toRefs)(a),classes:r,cellClasses:i,getColumnItem:d,getColumnItemStyle:p,handleSorterClick:c,sortDataItem:v,t:l,stylehead:u,stylecolumn:s}}}),DC={class:"fox-table__main__head"},IC={class:"fox-table__main__head__tr"},qC=["onClick"],PC={class:"fox-table__main__body"},MC={key:1},zC={key:0,class:"fox-table__nodata"},LC={key:0,class:"fox-table__nodata__text"},RC={key:1,class:"fox-table__summary"},FC=["innerHTML"];function OC(e,n,o,l,a,r){const i=(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",DC,[(0,t.createElementVNode)("view",IC,[((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)(i,{key:0,width:"12px",height:"12px"})):(0,t.createCommentVNode)("",!0)],14,qC))),128))])]),(0,t.createElementVNode)("view",PC,[((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,p])=>((0,t.openBlock)(),(0,t.createElementBlock)("span",{class:(0,t.normalizeClass)(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:(0,t.normalizeStyle)(e.getColumnItemStyle(d))},[typeof s[d]=="function"||typeof p=="function"?((0,t.openBlock)(),(0,t.createBlock)(u,{key:0,slots:[p,s[d]],record:s},null,8,["slots","record"])):((0,t.openBlock)(),(0,t.createElementBlock)("view",MC,(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",RC,[(0,t.createElementVNode)("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,FC)])):(0,t.createCommentVNode)("",!0)],2)}var Ra=ae(EC,[["render",OC]]),{componentName:KC,create:UC}=J("ellipsis"),HC=UC({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const o=(0,t.ref)(null);let l=null,a=0;const r=(0,t.ref)(),i=(0,t.reactive)({exceeded:!1,expanded:!1}),u=(0,t.computed)(()=>({[KC]:!0}));(0,t.watch)(()=>e.content,(y,k)=>{y!=k&&s()}),(0,t.onMounted)(()=>{s()});const s=()=>{if(!o.value)return;const y=window.getComputedStyle(o.value);l=document.createElement("div"),Array.prototype.slice.apply(y).forEach(f=>{l.style.setProperty(f,y.getPropertyValue(f))}),l.style.position="fixed",l.style.left="999999px",l.style.top="999999px",l.style.zIndex="-1000",l.style.height="auto",l.style.minHeight="auto",l.style.maxHeight="auto",l.style.textOverflow="clip",l.style.whiteSpace="normal",l.style.webkitLineClamp="unset",l.style.display="block";const k=v(y.lineHeight==="normal"?e.lineHeight:y.lineHeight);a=Math.floor(k*(Number(e.rows)+.5)+v(y.paddingTop)+v(y.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),d()},d=()=>{if(l.offsetHeight<=a)i.exceeded=!1,document.body.removeChild(l);else{i.exceeded=!0;const y=e.content.length,k=Math.floor((0+y)/2);r.value=e.direction==="middle"?c([0,k],[k,y]):p(0,y),document.body.removeChild(l)}},p=(y,k)=>{const f=i.expanded?e.collapseText:e.expandText,b=e.content.length;if(k-y<=1)return e.direction==="end"?{leading:e.content.slice(0,y)+e.symbol}:{tailing:e.symbol+e.content.slice(k,b)};const m=Math.round((y+k)/2);return e.direction==="end"?l.innerText=e.content.slice(0,m)+e.symbol+f:l.innerText=f+e.symbol+e.content.slice(m,b),l.offsetHeight<=a?e.direction==="end"?p(m,k):p(y,m):e.direction==="end"?p(y,m):p(m,k)},c=(y,k)=>{const f=i.expanded?e.collapseText:e.expandText,b=e.content.length;if(y[1]-y[0]<=1&&k[1]-k[0]<=1)return{leading:e.content.slice(0,y[0])+e.symbol,tailing:e.symbol+e.content.slice(k[1],b)};const m=Math.floor((y[0]+y[1])/2),A=Math.ceil((k[0]+k[1])/2);return l.innerText=e.content.slice(0,m)+e.symbol+f+e.symbol+e.content.slice(A,b),l.offsetHeight<=a?c([m,y[1]],[k[0],A]):c([y[0],m],[A,k[1]])},v=y=>{if(!y)return 0;const k=y.match(/^\d*(\.\d*)?/);return k?Number(k[0]):0},S=y=>{y==1?(i.expanded=!0,n("change","expand")):(i.expanded=!1,n("change","collapse"))},w=()=>{n("click")};return{...(0,t.toRefs)(i),root:o,ellipsis:r,classes:u,clickHandle:S,handleClick:w}}}),_C={key:0},jC={key:1},WC={key:2};function YC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[2]||(n[2]=(...i)=>e.handleClick&&e.handleClick(...i)),ref:"root"},[e.exceeded?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("view",_C,(0,t.toDisplayString)(e.content),1)),e.exceeded&&!e.expanded?((0,t.openBlock)(),(0,t.createElementBlock)("view",jC,[(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)(i=>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",WC,[(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)(i=>e.clickHandle(2),["stop"]))},(0,t.toDisplayString)(e.collapseText),1)):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)],2)}var Fa=ae(HC,[["render",YC]]),{componentName:XC,create:QC}=J("animate"),GC=QC({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:o,loop:l,action:a}=(0,t.toRefs)(e),r=(0,t.reactive)({clicked:!1});let i=(0,t.computed)(()=>({"fox-animate__container":!0,[`${XC}-${o.value}`]:a.value==="initial"||r.clicked?o.value:!1,loop:l.value}));const u=s=>{r.clicked=!0,l.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",s)};return{...(0,t.toRefs)(r),classes:i,handleClick:u}}}),ZC={class:"fox-animate"};function JC(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",ZC,[(0,t.createElementVNode)("view",{class:(0,t.normalizeClass)(e.classes),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i)),style:(0,t.normalizeStyle)({animationDuration:e.duration?`${e.duration}ms`:void 0})},[(0,t.renderSlot)(e.$slots,"default")],6)])}var Oa=ae(GC,[["render",JC]]),{componentName:e2,create:t2}=J("watermark"),n2=t2({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const o=(0,t.reactive)({base64Url:""}),{zIndex:l,gapX:a,gapY:r,width:i,height:u,rotate:s,image:d,imageWidth:p,imageHeight:c,content:v,fontStyle:S,fontWeight:w,fontColor:y,fontSize:k,fontFamily:f}=e,b=()=>{const A=document.createElement("canvas"),C=window.devicePixelRatio,g=A.getContext("2d"),h=`${(a+i)*C}px`,N=`${(r+u)*C}px`,B=i*C,T=u*C;if(A.setAttribute("width",h),A.setAttribute("height",N),g)if(d){g.translate(B/2,T/2),g.rotate(Math.PI/180*Number(s));const V=new Image;V.crossOrigin="anonymous",V.referrerPolicy="no-referrer",V.src=d,V.onload=()=>{g.drawImage(V,-p*C/2,-c*C/2,p*C,c*C),g.restore(),o.base64Url=A.toDataURL()}}else v&&(g.textBaseline="middle",g.textAlign="center",g.translate(B/2,T/2),g.rotate(Math.PI/180*Number(s)),g.font=`${S} normal ${w} ${Number(k)*C}px/${T}px ${f}`,g.fillStyle=y,g.fillText(v,0,0),g.restore(),o.base64Url=A.toDataURL());else throw new Error("当前环境不支持Canvas")};b(),(0,t.watch)(()=>[l,a,r,i,u,s,d,p,c,v,S,w,y,k,f],()=>{b()});const m=(0,t.computed)(()=>{const A=e2;return{[A]:!0,[`${A}-full-page`]:e.fullPage}});return{...(0,t.toRefs)(o),classes:m}}});function l2(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("view",{class:(0,t.normalizeClass)(e.classes),style:(0,t.normalizeStyle)({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}var Ka=ae(n2,[["render",l2]]);function o2(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:a2,create:r2}=J("trend-arrow"),i2=r2({components:{TriangleUp:oe.TriangleUp,TriangleDown:oe.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=(0,t.reactive)({rateTrend:e.rate>0}),o=(0,t.computed)(()=>({[a2]:!0})),l=(0,t.computed)(()=>{const{rate:r,digits:i,showSign:u,showZero:s}=e;n.rateTrend=r>0;const d=Math.abs(r);return!s&&r===0?"--":`${u&&r!==0?n.rateTrend?"+":"-":""}${o2(Number(d),i)}%`}),a=(0,t.computed)(()=>{const{dropColor:r,riseColor:i,syncTextColor:u,textColor:s,rate:d}=e;return{color:d===0?s:u?n.rateTrend?i:r:s}});return{...(0,t.toRefs)(n),classes:o,calcRate:l,calcStyle:a}}});function s2(e,n,o,l,a,r){const i=(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)(i,{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=ae(i2,[["render",s2]]),{create:u2}=J("tour"),c2=u2({components:{[Jt.name]:Jt,Close:oe.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const o=(0,t.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),l=(0,t.ref)({}),a=(0,t.computed)(()=>"fox-tour"),r=(0,t.computed)(()=>{const{offset:p,maskWidth:c,maskHeight:v}=e,{width:S,height:w,left:y,top:k}=l.value,f=[y+S/2,k+w/2],b=Number(c||S),m=Number(v||w);return{width:`${b+ +p[1]*2}px`,height:`${m+ +p[0]*2}px`,top:`${f[1]-m/2-+p[0]}px`,left:`${f[0]-b/2-+p[1]}px`}}),i=p=>{p=="next"?o.active=o.active+1:o.active=o.active-1,o.showPopup=!1,(0,t.nextTick)(()=>{o.showPopup=!0,u()}),n("change",o.active)},u=()=>{l.value=$e(document.querySelector(`#${e.steps[o.active].target}`))},s=()=>{o.showTour=!1,o.showPopup=!1,n("close",o.active),n("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&s()};return(0,t.onMounted)(()=>{o.active=0,u()}),(0,t.watch)(()=>e.modelValue,p=>{p&&u(),o.active=0,o.showTour=p,o.showPopup=p}),{...(0,t.toRefs)(o),classes:a,maskStyle:r,changeStep:i,close:s,handleClickMask:d}}}),d2={key:0,class:"fox-tour-content"},f2={key:0,class:"fox-tour-content-top"},m2={class:"fox-tour-content-inner"},p2={class:"fox-tour-content-bottom"},h2={class:"fox-tour-content-bottom-init"},v2={class:"fox-tour-content-bottom-operate"},g2={key:1,class:"fox-tour-content fox-tour-content-tile"},y2={class:"fox-tour-content-inner"};function b2(e,n,o,l,a,r){const i=(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]=p=>e.showPopup=p),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",d2,[e.showTitleBar?((0,t.openBlock)(),(0,t.createElementBlock)("div",f2,[(0,t.createElementVNode)("div",{onClick:n[1]||(n[1]=(...p)=>e.close&&e.close(...p))},[(0,t.createVNode)(i,{class:"fox-tour-content-top-close"})])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",m2,(0,t.toDisplayString)(s.content),1),(0,t.createElementVNode)("div",p2,[(0,t.createElementVNode)("div",h2,(0,t.toDisplayString)(e.active+1)+"/"+(0,t.toDisplayString)(e.steps.length),1),(0,t.createElementVNode)("div",v2,[(0,t.renderSlot)(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:n[2]||(n[2]=p=>e.changeStep("prev"))},(0,t.toDisplayString)(e.prevStepTxt),1)):(0,t.createCommentVNode)("",!0)]),e.steps.length-1==e.active?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[3]||(n[3]=(...p)=>e.close&&e.close(...p))},(0,t.toDisplayString)(e.completeTxt),1)):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[4]||(n[4]=p=>e.changeStep("next"))},(0,t.toDisplayString)(e.nextStepTxt),1)):(0,t.createCommentVNode)("",!0)])])])])):(0,t.createCommentVNode)("",!0),e.type=="tile"?((0,t.openBlock)(),(0,t.createElementBlock)("div",g2,[(0,t.createElementVNode)("div",y2,(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=ae(c2,[["render",b2]]),{componentName:S2,create:k2}=J("barrage"),w2=k2({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)(()=>({[S2]:!0}));let a=(0,t.ref)(document.createElement("div")),r=(0,t.ref)(document.createElement("div")),i=null;const u=(0,t.ref)(e.danmu),s=(0,t.ref)(e.rows),d=(0,t.ref)(e.top),p=(0,t.ref)(0),c=e.speeds,v=(0,t.ref)(0);(0,t.onMounted)(()=>{S(),o&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(y(),p.value=0,w("hidden")):document.visibilityState==="visible"&&S()})}),(0,t.onUnmounted)(()=>{u.value=[],y()});const S=()=>{v.value=a.value.offsetWidth,o&&w("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${v.value}px`),f()},300)},w=m=>{let A=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const C=[];A&&Array.from(A).forEach(g=>{m=="init"?(g.style.opacity="0",C.push(g)):(g.classList="",g.style={})}),m=="init"&&(u.value=C)},y=()=>{i&&(clearTimeout(i),i=null)};(0,t.watch)(()=>e.danmu,m=>{e.danmu.length>0&&(u.value=[...m])});const k=m=>{const A=p.value%u.value.length;!e.loop&&p.value===u.value.length?u.value.splice(u.value.length,0,m):u.value.splice(A,0,m)},f=()=>{y(),i=setTimeout(()=>{b()},e.frequency)},b=()=>{const m=e.loop?p.value%u.value.length:p.value;let A=document.createElement("view");o&&typeof u.value[m]=="object"?(A=u.value[m],A?.classList?.add("fox-barrage__item")):(A.innerHTML=u.value[m],A.classList.add("fox-barrage__item"),r.value.appendChild(A)),(0,t.nextTick)(()=>{const C=A.offsetHeight;if(A?.classList?.add("move"),A.style.animationDuration=`${c}ms`,A.style.top=m%s.value*(C+d.value)+20+"px",A.style.opacity="1",!o){const g=A.offsetWidth;A.style.width=g+20+"px"}A.addEventListener("animationend",()=>{o?A.classList.remove("move"):r.value.removeChild(A)}),!(!e.loop&&p.value>=u.value.length-1)&&(p.value++,p.value>=u.value.length&&(p.value=0),A.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:l,danmuList:u,dmBody:a,dmContainer:r,add:k}}});function C2(e,n,o,l,a,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{ref:"dmBody",class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",{ref:"dmContainer",class:(0,t.normalizeClass)(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["slotBody","slotBody"+e.classTime])},[(0,t.renderSlot)(e.$slots,"default")],2)):(0,t.createCommentVNode)("",!0)],2)],2)}var _a=ae(w2,[["render",C2]]),{componentName:N2,create:A2,scope:B2}=J("signature"),T2=A2({props:{customClass:{type:String,default:""},lineWidth:{type:Number,default:2},strokeStyle:{type:String,default:()=>document.getElementsByTagName("body")[0].className.indexOf("fox-theme-dark")==-1?"#000":"#fff"},type:{type:String,default:"png"},unSupportTpl:{type:String,default:""}},components:{[ut.name]:ut},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:o}=(0,pe.useFoxI18n)(B2),l=o(e,["unSupportTpl","reSign","confirmText"]),a=(0,t.ref)(null),r=(0,t.ref)(null),i=(0,t.computed)(()=>({[N2]:!0,[`${e.customClass}`]:e.customClass})),u=(0,t.reactive)({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),s=()=>{let b=document.createElement("canvas");return!!(b.getContext&&b.getContext("2d"))},d=()=>{a.value.addEventListener(u.events[0],p,!1)},p=b=>{b.preventDefault(),u.ctx.beginPath(),u.ctx.lineWidth=e.lineWidth,u.ctx.strokeStyle=e.strokeStyle,n("start"),a.value.addEventListener(u.events[1],c,!1),a.value.addEventListener(u.events[2],v,!1),a.value.addEventListener(u.events[3],S,!1)},c=b=>{b.preventDefault();let m=u.isSupportTouch?b.touches[0]:b;n("signing",m);let A=a.value.getBoundingClientRect(),C=m.clientX-A.left,g=m.clientY-A.top;u.ctx.lineTo(C,g),u.ctx.stroke()},v=b=>{b.preventDefault(),n("end"),a.value.removeEventListener(u.events[1],c,!1),a.value.removeEventListener(u.events[2],v,!1)},S=b=>{b.preventDefault(),a.value.removeEventListener(u.events[1],c,!1),a.value.removeEventListener(u.events[2],v,!1)},w=()=>{a.value.addEventListener(u.events[2],v,!1),u.ctx.clearRect(0,0,u.canvasWidth,u.canvasHeight),u.ctx.closePath(),n("clear")},y=()=>{f(a.value)},k=b=>{if(!b)return!0;var m=document.createElement("canvas");return m.width=b.width,m.height=b.height,b?.toDataURL()==m.toDataURL()},f=b=>{let m;switch(e.type){case"png":m=b.toDataURL("image/png");break;case"jpg":m=b.toDataURL("image/jpeg",.8);break}n("confirm",k(b)?"请绘制签名":b,k(b)?"":m)};return(0,t.onMounted)(()=>{s()&&(u.ctx=a.value.getContext("2d"),u.canvasWidth=r.value.offsetWidth,u.canvasHeight=r.value.offsetHeight,d())}),{...l,...(0,t.toRefs)(u),canvas:a,wrap:r,isCanvasSupported:s,confirm:y,clear:w,classes:i}}}),V2={class:"fox-signature-inner",ref:"wrap"},x2=["height","width"],$2={key:0,class:"fox-signature-unsopport"};function E2(e,n,o,l,a,r){const i=(0,t.resolveComponent)("fox-button");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(e.classes)},[(0,t.createElementVNode)("div",V2,[(0,t.withDirectives)((0,t.createElementVNode)("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,x2),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createElementBlock)("p",$2,(0,t.toDisplayString)(e.unSupportTpl),1))],512),(0,t.createVNode)(i,{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)(i,{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=ae(T2,[["render",E2]]),D2=[no,oo,ao,ro,io,Et,Gn,uo,co,fo,mo,po,el,vo,bo,wo,Co,il,sl,No,ul,cl,Ao,To,$t,Vo,$o,hl,Eo,Io,on,an,ll,qo,Po,Mo,zo,rt,Lo,Ro,Zn,Ct,Jn,Fo,Oo,ut,Ko,Uo,Ho,st,ye,_o,jo,Wo,Yo,Yt,Xo,Qo,Go,Zo,Jo,ea,ta,na,la,oa,aa,ra,ia,sa,ua,ca,da,Xt,pl,ol,rl,al,vl,fl,ln,fa,ma,pa,ha,va,ga,ya,Gt,ml,ba,ka,dl,Dt,Ca,Na,Zt,Aa,Ba,Qt,Ta,Va,xa,Bt,$a,Ea,Tt,Vt,Xn,gl,Da,Ia,qa,Pa,Jt,Ma,za,La,Ra,Fa,Oa,Ka,Ua,Ha,_a,ja],I2=new zs(D2,"4.0.0");exports.AbstractPageScopeKey=to;exports.ActionSheet=va;exports.FoxActionSheet=va;exports.ActionsheetItem=Eo;exports.FoxActionsheetItem=Eo;exports.ActionsheetPane=hl;exports.FoxActionsheetPane=hl;exports.Animate=Oa;exports.FoxAnimate=Oa;exports.Audio=Ca;exports.FoxAudio=Ca;exports.AudioOperate=Na;exports.FoxAudioOperate=Na;exports.Avatar=Zt;exports.FoxAvatar=Zt;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=Gl;exports.BroadcastKey=we;exports.Button=ut;exports.FoxButton=ut;exports.ButtonsItem=uo;exports.FoxButtonsItem=uo;exports.Calendar=rl;exports.FoxCalendar=rl;exports.CalendarItem=Co;exports.FoxCalendarItem=Co;exports.Cascader=ol;exports.FoxCascader=ol;exports.CascaderItem=bo;exports.FoxCascaderItem=bo;exports.Cell=Ko;exports.FoxCell=Ko;exports.CellGroup=Ho;exports.FoxCellGroup=Ho;exports.Checkbox=ul;exports.FoxCheckbox=ul;exports.CheckboxGroup=cl;exports.FoxCheckboxGroup=cl;exports.CheckboxItem=Ao;exports.FoxCheckboxItem=Ao;exports.CircleProgress=Ta;exports.FoxCircleProgress=Ta;exports.Col=Wo;exports.FoxCol=Wo;exports.Collapse=za;exports.FoxCollapse=za;exports.CollapseItem=La;exports.FoxCollapseItem=La;exports.Content=ro;exports.FoxContent=ro;exports.CountDown=Ia;exports.FoxCountDown=Ia;exports.CountUp=Da;exports.FoxCountUp=Da;exports.DataItemsKey=ft;exports.DateItem=wo;exports.FoxDateItem=wo;exports.DatePicker=al;exports.FoxDatePicker=al;exports.DateUtils=gt;exports.Dialog=Gt;exports.FoxDialog=Gt;exports.Divider=Xo;exports.FoxDivider=Xo;exports.Domain=qn;exports.DomainKey=Te;exports.DomainProvider=Fo;exports.FoxDomainProvider=Fo;exports.Drag=ya;exports.FoxDrag=ya;exports.Dropdown=Ro;exports.FoxDropdown=Ro;exports.Elevator=oa;exports.FoxElevator=oa;exports.Ellipsis=Fa;exports.FoxEllipsis=Fa;exports.Empty=xa;exports.FoxEmpty=xa;exports.FixedNav=Jo;exports.FoxFixedNav=Jo;exports.FloatingButton=Mo;exports.FoxFloatingButton=Mo;exports.FooterBar=ao;exports.FoxFooterBar=ao;exports.FoxGrid=Qo;exports.Grid=Qo;exports.FoxGridItem=Go;exports.GridItem=Go;exports.FoxGroup=io;exports.Group=io;exports.FoxHeaderBar=oo;exports.HeaderBar=oo;exports.FoxHintText=$t;exports.HintText=$t;exports.FoxIcon=Uo;exports.Icon=Uo;exports.FoxImage=_o;exports.Image=_o;exports.FoxImagePreview=gl;exports.ImagePreview=gl;exports.FoxIndicator=sa;exports.Indicator=sa;exports.FoxInfiniteLoading=ml;exports.InfiniteLoading=ml;exports.FoxInputItem=fo;exports.InputItem=fo;exports.FoxInputNumber=vl;exports.InputNumber=vl;exports.FoxInputNumberItem=Io;exports.InputNumberItem=Io;exports.FoxItem=Et;exports.Item=Et;exports.FoxLayout=jo;exports.Layout=jo;exports.FoxLinkItem=Vo;exports.LinkItem=Vo;exports.FoxList=Ba;exports.List=Ba;exports.FoxMapping=Jn;exports.Mapping=Jn;exports.FoxMenu=ea;exports.Menu=ea;exports.FoxMenuItem=ta;exports.MenuItem=ta;exports.FoxMessageBox=rt;exports.MessageBox=rt;exports.FoxMoneyItem=mo;exports.MoneyItem=mo;exports.FoxMoreButton=zo;exports.MoreButton=zo;exports.FoxNavbar=Zo;exports.Navbar=Zo;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=no;exports.Page=no;exports.FoxPagination=aa;exports.Pagination=aa;exports.FoxPicker=ln;exports.Picker=ln;exports.FoxPickerItem=vo;exports.PickerItem=vo;exports.FoxPopover=Jt;exports.Popover=Jt;exports.FoxPopoverDialog=Zn;exports.PopoverDialog=Zn;exports.FoxPopup=ye;exports.Popup=ye;exports.FoxPopupWrapper=Lo;exports.PopupWrapper=Lo;exports.FoxPrice=Xn;exports.Price=Xn;exports.FoxProgress=Qt;exports.Progress=Qt;exports.FoxPullRefresh=ba;exports.PullRefresh=ba;exports.FoxRadio=il;exports.Radio=il;exports.FoxRadioGroup=sl;exports.RadioGroup=sl;exports.FoxRadioItem=No;exports.RadioItem=No;exports.FoxRange=Xt;exports.Range=Xt;exports.FoxRate=fl;exports.Rate=fl;exports.FoxRateItem=$o;exports.RateItem=$o;exports.FoxRollingProvider=Oo;exports.RollingProvider=Oo;exports.FoxRow=Yo;exports.Row=Yo;exports.FoxRowItem=Gn;exports.RowItem=Gn;exports.FoxSearchBar=pl;exports.SearchBar=pl;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=co;exports.SlotItem=co;exports.FoxStep=Ea;exports.Step=Ea;exports.FoxSteps=$a;exports.Steps=$a;exports.FoxStepsBar=Po;exports.StepsBar=Po;exports.FoxSticky=Yt;exports.Sticky=Yt;exports.FoxSubSideNavBar=da;exports.SubSideNavBar=da;exports.FoxSwipe=ha;exports.Swipe=ha;exports.FoxSwiper=Tt;exports.Swiper=Tt;exports.FoxSwiperItem=Vt;exports.SwiperItem=Vt;exports.FoxSwitch=dl;exports.Switch=dl;exports.FoxSwitchItem=To;exports.SwitchItem=To;exports.FoxTabPane=ia;exports.TabPane=ia;exports.FoxTabbar=na;exports.Tabbar=na;exports.FoxTabbarItem=la;exports.TabbarItem=la;exports.FoxTable=Ra;exports.Table=Ra;exports.FoxTabs=ra;exports.Tabs=ra;exports.FoxTabsBar=on;exports.TabsBar=on;exports.FoxTabsContainer=an;exports.TabsContainer=an;exports.FoxTabsFrame=qo;exports.TabsFrame=qo;exports.FoxTabsPane=ll;exports.TabsPane=ll;exports.FoxTag=Pa;exports.Tag=Pa;exports.FoxText=Ct;exports.Text=Ct;exports.FoxTextarea=el;exports.Textarea=el;exports.FoxTextareaItem=po;exports.TextareaItem=po;exports.FoxToast=Dt;exports.Toast=Dt;exports.FoxTour=Ha;exports.Tour=Ha;exports.FoxTrendArrow=Ua;exports.TrendArrow=Ua;exports.FoxUploader=ma;exports.Uploader=ma;exports.FoxVideo=Bt;exports.Video=Bt;exports.FoxWaterMark=Ka;exports.WaterMark=Ka;exports.InnerPageScopeKey=eo;exports.PriorityPolicy=Ge;exports.UniqueID=Qn;exports.ValidateSchema=Qr;exports.ValidateSchemaKey=Le;exports.browseProperty=ri;exports.cancelRaf=Dr;exports.clamp=_e;exports.clearNonNumber=Pl;exports.compareTo=Il;exports.createBroadcast=Dn;exports.createValidateSchema=In;exports.debounce=Ee;exports.debounceRef=As;exports.decimalLength=_r;exports.default=I2;exports.defineBroadcast=vs;exports.defineConfigDomain=Zr;exports.defineDataItem=Jr;exports.defineDomain=Jl;exports.defineDomainItemProperty=Ie;exports.defineItem=Be;exports.definePageState=ei;exports.defineSimpleItem=xt;exports.deleteGlobalValidator=ks;exports.disabledProperty=Rn;exports.divide=Xl;exports.excludeProps=et;exports.extend=St;exports.floatData=ps;exports.getGlobalIcons=On;exports.getGlobalValidateCheckEvents=Wr;exports.getGlobalValidateResetEvents=Xr;exports.getPageContentAreaHeight=kn;exports.getPageContentAreaWidth=wn;exports.getPageFooterAreaHeight=zn;exports.getPageHeaderAreaHeight=Mn;exports.getRootDomain=ht;exports.hasSymbol=Rr;exports.includeProps=ve;exports.indexOf=fs;exports.injectAbstractPageScope=nn;exports.injectAbstractPageScopeForContent=ai;exports.injectAbstractPageScopeForFooterBar=oi;exports.injectAbstractPageScopeForHeaderBar=li;exports.injectInnerPageScope=tn;exports.integerLength=Hr;exports.isArray=xn;exports.isArrayLike=Kr;exports.isBrowser=Je;exports.isDate=je;exports.isDisplayNone=Ql;exports.isESModule=is;exports.isEmptyString=ce;exports.isEqual=xe;exports.isFunction=gn;exports.isHidden=Fr;exports.isMap=ls;exports.isNil=Pe;exports.isNumberString=En;exports.isObject=Ve;exports.isPlainObject=rs;exports.isPromise=bt;exports.isRegExp=ql;exports.isSet=os;exports.isString=zr;exports.isSubPage=$s;exports.isSymbol=as;exports.isTouch=tl;exports.isWindow=Or;exports.kebabToPascal=yn;exports.lastIndexOf=ms;exports.makeArray=ds;exports.merge=Ur;exports.multiply=qr;exports.negate=Pr;exports.nextTick=us;exports.numberFormat=Vn;exports.objectToString=Lr;exports.once=Bs;exports.overrideGlobalIcons=_s;exports.overrideGlobalValidateHandler=bs;exports.padZero=ot;exports.pascalToKebab=hs;exports.preventDefault=Ml;exports.property=Ae;exports.provideAbstractPageScope=ni;exports.provideInnerPageScope=ti;exports.px2Number=xs;exports.raf=He;exports.readonlyProperty=Ln;exports.setGlobalValidateCheckEvents=ws;exports.setGlobalValidateHandler=ys;exports.setGlobalValidateMessages=Ns;exports.setGlobalValidateResetEvents=Cs;exports.setGlobalValidator=Ss;exports.throttle=Sn;exports.toBoolean=Se;exports.toNumber=de;exports.toPadding=Fe;exports.toPx=se;exports.toPxDesc=Vs;exports.toPxString=me;exports.toTypeString=$n;exports.toValue=De;exports.tryTimes=Zl;exports.typeOf=kt;exports.unNumberFormat=Mr;exports.updatePageState=zl;exports.useBroadcast=Ot;exports.useDomain=tt;exports.useExpose=be;exports.useInnerSize=Fn;exports.usePageState=Pn;exports.usePosition=so;exports.useRawTouch=nl;exports.useRect=$e;exports.useSize=lo;exports.useSlotChildren=Yn;exports.useTouch=lt;exports.valueLength=ke;